[virt-tools-list] [PATCH virt-viewer] configure: Check for all libvirt dependencies

Pavel Grunt pgrunt at redhat.com
Mon Apr 24 07:42:43 UTC 2017


Build with libvirt only when libvirt-glib is present
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index d5eb258..0081375 100644
--- a/configure.ac
+++ b/configure.ac
@@ -118,7 +118,7 @@ AC_ARG_WITH([libvirt],
     AS_HELP_STRING([--without-libvirt], [Ignore presence of libvirt and disable it]))
 
 AS_IF([test "x$with_libvirt" != "xno" && test "x$with_libvirt" != "xyes"],
-      [PKG_CHECK_EXISTS([libvirt >= $LIBVIRT_REQUIRED],
+      [PKG_CHECK_EXISTS([libvirt >= $LIBVIRT_REQUIRED libvirt-glib-1.0 >= $LIBVIRT_GLIB_REQUIRED],
                         [with_libvirt=yes], [with_libvirt=no])])
 
 AS_IF([test "x$with_libvirt" = "xyes"],
-- 
2.12.2




More information about the virt-tools-list mailing list