]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: fix regression in requiring yajl for new enough qemu
authorEric Blake <eblake@redhat.com>
Thu, 5 Sep 2013 20:32:25 +0000 (14:32 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 10 Sep 2013 18:03:19 +0000 (12:03 -0600)
commitf92c7e31fc3fc37c1b589cbb5453c2e2bbae508c
treeb8313f63611cf507454d099ecc3ee1abeca41ace
parentff777421042a4583916e534795bb375d9e3cca10
build: fix regression in requiring yajl for new enough qemu

Jonathan Lebon reported an issue to me off-list about his build
failing to use qemu because he failed to install yajl-devel.  But
I recalled specifically tweaking configure.ac to die in that
situation (commits 350583cba9c38b).  After a bit more
head-scratching, we found the cause of the regression: commit
654c709 rearranged things so that the qemu version check now
occurs before AC_ARG_WITH has had a chance to set either
$with_qemu or $with_yajl.

Coincidentally, this fix aligns with a documentation patch that
was just posted to the autoconf mailing list :)
http://thread.gmane.org/gmane.comp.sysutils.autoconf.patches/8324

* m4/virt-lib.m4 (LIBVIRT_CHECK_LIB, LIBVIRT_CHECK_LIB_ALT)
(LIBVIRT_CHECK_PKG): Populate defaults earlier.
* configure.ac (AC_ARG_WITH): Likewise for drivers.

Signed-off-by: Eric Blake <eblake@redhat.com>
configure.ac
m4/virt-lib.m4