]> xenbits.xensource.com Git - libvirt.git/commitdiff
virt-yajl: Fix detection of yajl requirements
authorMartin Kletzander <mkletzan@redhat.com>
Thu, 29 Sep 2016 07:48:50 +0000 (09:48 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Thu, 6 Oct 2016 11:35:42 +0000 (13:35 +0200)
Running the output of qemu -help doesn't make any sense.  We should be
looking for libvirt being mentioned in the output.  This worked by
accident, let's make it work as expected it to.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
m4/virt-yajl.m4

index adf2819eeb66967dfe024ce7abfd80a2c276e9c0..8c452adca653096a575636206ec1d3674f2d173d 100644 (file)
@@ -26,7 +26,7 @@ AC_DEFUN([LIBVIRT_CHECK_YAJL],[
     AC_PATH_PROGS([QEMU], [qemu-kvm qemu kvm qemu-system-x86_64],
                   [], [$PATH:/usr/bin:/usr/libexec])
     if test -x "$QEMU"; then
-      if `$QEMU -help | grep libvirt` >/dev/null; then
+      if $QEMU -help 2>/dev/null | grep -q libvirt; then
         with_yajl=yes
       else
         [qemu_version_sed='s/.*ersion \([0-9.,]*\).*/\1/']