Skip to contentSkip to conversation

configure: detect xen with --extra-cflags / --extra-ldflags

PATCH New Christoph Egger 1 participant 1 message Jun 30, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure: detect xen with --extra-cflags / --extra-ldflags

Hi!

Attached patch lets configure find xen headers and xen libs when called with --extra-cflags and --extra-ldflags options.

Signature · 6 lines
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Thomas M. McCoy, Giuliano Meroni
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
configure +2 -2
index eb9d73a..41cdcf9 100755
@@ -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"