]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: hoist system-specific checks before library checks
authorEric Blake <eblake@redhat.com>
Tue, 17 Sep 2013 16:25:42 +0000 (10:25 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 17 Sep 2013 16:25:42 +0000 (10:25 -0600)
commit0e1f012c1d06caacd24cb6a009dbecc8b532bbd3
treedf45f537d494caa05153bd4ddcefaeb689a11e23
parentceaa536d491416b983b072b988e80d5cad035943
build: hoist system-specific checks before library checks

Commit f92c7e3 fixed a regression for native builds, but introduced
a regression for cross-compilation builds; in particular,
./autobuild.sh on a Fedora system with mingw cross-compiler fails
with:

checking for qemu-kvm... /usr/bin/qemu-kvm
checking for yajl_parse_complete in -lyajl... no
checking for yajl_tree_parse in -lyajl... no
configure: error: You must install the libyajl library & headers to compile libvirt

Since we default $with_qemu to 'yes' rather than 'check', and then
flip that default based on platform-specific checks, those platform
specifics need to come prior to any library checks that depend on
the value of $with_qemu.

* configure.ac: Ensure system defaults are sane before checking
for things that make decisions based on system default.

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