]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: require Jansson if QEMU driver is enabled
authorJán Tomko <jtomko@redhat.com>
Fri, 11 May 2018 12:27:02 +0000 (14:27 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 18 Jul 2018 15:54:18 +0000 (17:54 +0200)
If the QEMU driver was requested, require Jansson, since we need to use
the JSON monitor to probe capabilities for all QEMU version supported
by libvirt.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
m4/virt-driver-qemu.m4

index ddb283470596babc2a05cf4e5be650d62b04c886..2d9992d0dc6c35770e2e475c49ba29df75dcd2c2 100644 (file)
@@ -27,6 +27,9 @@ AC_DEFUN([LIBVIRT_DRIVER_ARG_QEMU], [
 
 AC_DEFUN([LIBVIRT_DRIVER_CHECK_QEMU], [
   AC_REQUIRE([LIBVIRT_CHECK_JANSSON])
+  if test "$with_qemu:$with_jansson" = "yes:no"; then
+    AC_MSG_ERROR([Jansson >= 2.5 is required to build QEMU driver])
+  fi
   if test "$with_qemu" = "check"; then
     with_qemu=$with_jansson
   fi