diff options
author | Juan Quintela <quintela@redhat.com> | 2009-07-27 16:13:16 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-07-27 14:09:22 -0500 |
commit | b2266bee1cc3c02a79af7267bc80115597c8fc8d (patch) | |
tree | ab44f7788caa228cce551209b35cc02af831eae2 | |
parent | ac119f9d0cb9f1eff62eda7c831b2e154baed033 (diff) |
Define and use xen libs in a single place
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rwxr-xr-x | configure | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -874,16 +874,17 @@ fi # xen probe if test "$xen" = "yes" ; then -cat > $TMPC <<EOF + xen_libs="-lxenstore -lxenctrl -lxenguest" + cat > $TMPC <<EOF #include <xenctrl.h> #include <xs.h> int main(void) { xs_daemon_open(); xc_interface_open(); return 0; } EOF - if $cc $CFLAGS $ARCH_CFLAGS -c -o $TMPO $TMPC $LDFLAGS -lxenstore -lxenctrl 2> /dev/null > /dev/null ; then - : - else - xen="no" - fi + if $cc $CFLAGS $ARCH_CFLAGS -c -o $TMPO $TMPC $LDFLAGS $xen_libs 2> /dev/null > /dev/null ; then + : + else + xen="no" + fi fi ########################################## @@ -1691,7 +1692,7 @@ if test "$bluez" = "yes" ; then echo "#define CONFIG_BLUEZ 1" >> $config_host_h fi if test "$xen" = "yes" ; then - echo "XEN_LIBS=-lxenstore -lxenctrl -lxenguest" >> $config_host_mak + echo "XEN_LIBS=$xen_libs" >> $config_host_mak fi if test "$aio" = "yes" ; then echo "#define CONFIG_AIO 1" >> $config_host_h |