From: Christoph Egger Date: Tue, 30 Jun 2009 12:59:38 +0000 (+0200) Subject: configure: detect xen with --extra-cflags / --extra-ldflags X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=df7a607b6b1cf3966ba30e7c7bae7c1ae348d679;p=qemu.git configure: detect xen with --extra-cflags / --extra-ldflags Attached patch lets configure find xen headers and xen libs when called with --extra-cflags and --extra-ldflags options. Signed-off-by: Christoph Egger Signed-off-by: Anthony Liguori --- diff --git a/configure b/configure index ed58b0af54..7eeb054235 100755 --- a/configure +++ b/configure @@ -849,9 +849,9 @@ if test "$xen" = "yes" ; then cat > $TMPC < #include -int main(void) { xs_daemon_open; xc_interface_open; } +int main(void) { xs_daemon_open(); xc_interface_open(); return 0; } EOF - if $cc $ARCH_CFLAGS -c -o $TMPO $TMPC -lxenstore -lxenctrl 2> /dev/null > /dev/null ; then + if $cc $CFLAGS $ARCH_CFLAGS -c -o $TMPO $TMPC $LDFLAGS -lxenstore -lxenctrl 2> /dev/null > /dev/null ; then : else xen="no"