aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorChristoph Egger <Christoph.Egger@amd.com>2009-06-30 14:59:38 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-09 16:06:36 -0500
commitdf7a607b6b1cf3966ba30e7c7bae7c1ae348d679 (patch)
tree743517b990bbac6029a8b342906a9a9a70bd21cd /configure
parent79c4f6b08009a1d23177c2be8bd003253cf3686a (diff)
downloadqemu-df7a607b6b1cf3966ba30e7c7bae7c1ae348d679.zip
qemu-df7a607b6b1cf3966ba30e7c7bae7c1ae348d679.tar.gz
qemu-df7a607b6b1cf3966ba30e7c7bae7c1ae348d679.tar.bz2
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 <Christoph.Egger@amd.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index ed58b0a..7eeb054 100755
--- a/configure
+++ b/configure
@@ -849,9 +849,9 @@ if test "$xen" = "yes" ; then
cat > $TMPC <<EOF
#include <xenctrl.h>
#include <xs.h>
-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"