mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
build static interfaces by default
This commit is contained in:
parent
bbb7cc35ab
commit
d0317a2716
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user