[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT df7a607] configure: detect xen with --extra-cflag
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT df7a607] configure: detect xen with --extra-cflags /--extra-ldflags |
Date: |
Fri, 10 Jul 2009 19:16:39 -0000 |
From: Christoph Egger <address@hidden>
Attached patch lets configure find xen headers and xen libs
when called with --extra-cflags and --extra-ldflags options.
Signed-off-by: Christoph Egger <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
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"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT df7a607] configure: detect xen with --extra-cflags /--extra-ldflags,
Anthony Liguori <=