From d0317a2716b894306b1de2a3338827d36a1aee24 Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Fri, 9 Apr 2004 20:47:39 +0000 Subject: [PATCH] build static interfaces by default --- ipmitool/configure.in | 51 ++++++++++++++++++++++++++++--------------- 1 file changed, 34 insertions(+), 17 deletions(-) diff --git a/ipmitool/configure.in b/ipmitool/configure.in index 5816455..c37889c 100644 --- a/ipmitool/configure.in +++ b/ipmitool/configure.in @@ -108,21 +108,26 @@ PLUGIN_INTF_LAN= STATIC_INTF_LAN= LDFLAGS_INTF_LAN= AC_ARG_ENABLE([intf-lan], - [[ --enable-intf-lan enable IPMI-over-LAN interface [default=yes]]], - [if test "x$enableval" = "xyes"; then +[[ --enable-intf-lan enable IPMI-over-LAN interface]] +[[ plugin : build dynamic]] +[[ static : link statically [default]]] +[[ --diable-intf-lan disable IPMI-over-LAN interface]], + [if test "x$enableval" = "xplugin" || test "x$enableval" = "xdynamic"; then AC_SUBST(INTF_LAN,lan) PLUGIN_INTF_LAN="libintf_lan.la" LDFLAGS_INTF_LAN="-rpath $pluginpath -avoid-version" DYNAMIC_INTF_LIST="lan $DYNAMIC_INTF_LIST" - elif test "x$enableval" = "xstatic"; then + echo "Building dynamic IPMI-over-LAN interface plugin" + elif test "x$enableval" = "xstatic" || test "x$enableval" = "xyes"; then AC_SUBST(INTF_LAN,lan) STATIC_INTF_LAN="libintf_lan.la" STATIC_INTF_LIST="lan $STATIC_INTF_LIST" + echo "Building statically linked IPMI-over-LAN interface" fi], [AC_SUBST(INTF_LAN,lan) - PLUGIN_INTF_LAN="libintf_lan.la" - LDFLAGS_INTF_LAN="-rpath $pluginpath -avoid-version" - DYNAMIC_INTF_LIST="lan $DYNAMIC_INTF_LIST" + STATIC_INTF_LAN="libintf_lan.la" + STATIC_INTF_LIST="lan $STATIC_INTF_LIST" + echo "Building statically linked IPMI-over-LAN interface" ]) AC_SUBST(PLUGIN_INTF_LAN) AC_SUBST(STATIC_INTF_LAN) @@ -132,22 +137,34 @@ PLUGIN_INTF_OPEN= STATIC_INTF_OPEN= LDFLAGS_INTF_OPEN= AC_ARG_ENABLE([intf-open], - [[ --enable-intf-open enable OpenIPMI device interface [default=no]]], - [if test "x$enableval" = "xyes"; then - if test "x$have_openipmi" = "xyes"; then - AC_SUBST(INTF_OPEN,open) +[[ --enable-intf-open enable OpenIPMI interface]] +[[ plugin : build dynamic]] +[[ static : link statically [default]]] +[[ --diable-intf-open disable OpenIPMI interface]], + [if test "x$have_openipmi" = "xyes"; then + if test "x$enableval" = "xplugin" || test "x$enableval" = "xdynamic"; then + AC_SUBST(INTF_OPEN,open) PLUGIN_INTF_OPEN="libintf_open.la" LDFLAGS_INTF_OPEN="-rpath $pluginpath -avoid-version" - DYNAMIC_INTF_LIST="open $DYNAMIC_INTF_LIST" - else - echo "** Unable to build OpenIPMI interface support!" - exit 1 - fi - elif test "x$enableval" = "xstatic"; then + DYNAMIC_INTF_LIST="open $DYNAMIC_INTF_LIST" + echo "Building dynamic OpenIPMI interface plugin" + elif test "x$enableval" = "xstatic" || test "x$enableval" = "xyes"; then + AC_SUBST(INTF_OPEN,open) + STATIC_INTF_OPEN="libintf_open.la" + STATIC_INTF_LIST="open $STATIC_INTF_LIST" + echo "Building statically linked OpenIPMI interface" + fi + else + echo "** Unable to build OpenIPMI interface support!" + fi], + [if test "x$have_openipmi" = "xyes"; then AC_SUBST(INTF_OPEN,open) STATIC_INTF_OPEN="libintf_open.la" STATIC_INTF_LIST="open $STATIC_INTF_LIST" - fi]) + echo "Building statically linked OpenIPMI interface" + else + echo "** Unable to build OpenIPMI interface support!" + fi]) AC_SUBST(PLUGIN_INTF_OPEN) AC_SUBST(STATIC_INTF_OPEN) AC_SUBST(LDFLAGS_INTF_OPEN)