[libvirt] [PATCH] build: hoist system-specific checks before library checks

Eric Blake eblake at redhat.com
Tue Sep 17 17:52:35 UTC 2013


On 09/17/2013 10:29 AM, Eric Blake wrote:
> 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 at redhat.com>
> ---
> 
> I'm tempted to push this under the build-breaker rule, so that
> I can get a successful ./autobuild.sh run.

That required one more patch:
https://www.redhat.com/archives/libvir-list/2013-September/msg01019.html

But now that my run completed successfully, I've gone ahead and pushed this.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130917/865f04a8/attachment-0001.sig>


More information about the libvir-list mailing list