]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: add parallels-sdk build check
authorPavel Hrdina <phrdina@redhat.com>
Thu, 30 Apr 2020 09:35:36 +0000 (11:35 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 3 Aug 2020 07:27:00 +0000 (09:27 +0200)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
m4/virt-driver-vz.m4
meson.build

index 9a8bc42efa18be2038dca5c709c43b4afcb101ce..11045e8b39318cb1f8655a6a72ce69f76c047b50 100644 (file)
@@ -22,12 +22,8 @@ AC_DEFUN([LIBVIRT_DRIVER_ARG_VZ],[
 ])
 
 AC_DEFUN([LIBVIRT_DRIVER_CHECK_VZ],[
-    PARALLELS_SDK_REQUIRED="7.0.22"
-
     if test "$with_vz" = "yes" ||
        test "$with_vz" = "check"; then
-        PKG_CHECK_MODULES([PARALLELS_SDK], [parallels-sdk >= $PARALLELS_SDK_REQUIRED],
-                          [PARALLELS_SDK_FOUND=yes], [PARALLELS_SDK_FOUND=no])
 
         if test "$with_vz" = "yes" && test "$PARALLELS_SDK_FOUND" = "no"; then
             AC_MSG_ERROR([Parallels Virtualization SDK is needed to build the Virtuozzo driver.])
index 5b6a42bfcfad8b8b19875ca7b9eb4e9c0c194cc2..a544694d27ef50fdb0fdacc2e1557143fc89f2a4 100644 (file)
@@ -1238,6 +1238,9 @@ endif
 openwsman_version = '2.2.3'
 openwsman_dep = dependency('openwsman', version: '>=' + openwsman_version, required: get_option('openwsman'))
 
+parallels_sdk_version = '7.0.22'
+parallels_sdk_dep = dependency('parallels-sdk', version: '>=' + parallels_sdk_version, required: false)
+
 # readline 7.0 is the first version which includes pkg-config support
 readline_version = '7.0'
 readline_dep = dependency('readline', version: '>=' + readline_version, required: false)