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>
This commit is contained in:
parent
79c4f6b080
commit
df7a607b6b
4
configure
vendored
4
configure
vendored
@ -849,9 +849,9 @@ if test "$xen" = "yes" ; then
|
|||||||
cat > $TMPC <<EOF
|
cat > $TMPC <<EOF
|
||||||
#include <xenctrl.h>
|
#include <xenctrl.h>
|
||||||
#include <xs.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
|
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
|
else
|
||||||
xen="no"
|
xen="no"
|
||||||
|
Loading…
Reference in New Issue
Block a user