From ee6c7128ed0d58cb1812049463a13bba9cfb31b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Fri, 6 Nov 2015 01:42:41 +0100 Subject: Imported Upstream version 2.9.7 --- configure | 167 +++++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 95 insertions(+), 72 deletions(-) (limited to 'configure') diff --git a/configure b/configure index c657e03..b37e09c 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.63 for ipmiutil 2.9.6. +# Generated by GNU Autoconf 2.63 for ipmiutil 2.9.7. # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. @@ -743,8 +743,8 @@ SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME='ipmiutil' PACKAGE_TARNAME='ipmiutil' -PACKAGE_VERSION='2.9.6' -PACKAGE_STRING='ipmiutil 2.9.6' +PACKAGE_VERSION='2.9.7' +PACKAGE_STRING='ipmiutil 2.9.7' PACKAGE_BUGREPORT='' ac_unique_file="util/ipmiutil.c" @@ -1502,7 +1502,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures ipmiutil 2.9.6 to adapt to many kinds of systems. +\`configure' configures ipmiutil 2.9.7 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1572,7 +1572,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of ipmiutil 2.9.6:";; + short | recursive ) echo "Configuration of ipmiutil 2.9.7:";; esac cat <<\_ACEOF @@ -1681,7 +1681,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -ipmiutil configure 2.9.6 +ipmiutil configure 2.9.7 generated by GNU Autoconf 2.63 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, @@ -1695,7 +1695,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by ipmiutil $as_me 2.9.6, which was +It was created by ipmiutil $as_me 2.9.7, which was generated by GNU Autoconf 2.63. Invocation command line was $ $0 $@ @@ -2549,7 +2549,7 @@ fi # Define the identity of the package. PACKAGE='ipmiutil' - VERSION='2.9.6' + VERSION='2.9.7' cat >>confdefs.h <<_ACEOF @@ -12888,7 +12888,7 @@ fi tmpspec=/tmp/iuspec.tmp$$ archm=`uname -m` -archp=`uname -p` +archp=`uname -p 2>/dev/null` sysname=`uname -s` LIB_DIR="/usr/lib" isredhat=0 @@ -13042,19 +13042,23 @@ fi if test "x$enable_systemd" = "xyes"; then GPL_CFLAGS="$GPL_CFLAGS -DENABLE_SYSTEMD" # if systemd enabled, install service scripts in unitdir - SYSTEMD_DIR=`rpm --eval "%{_unitdir}"` + which rpm >/dev/null 2>&1 + if test $? -eq 0 ; then + SYSTEMD_DIR=`rpm --eval "%{_unitdir}"` + else + SYSTEMD_DIR=/usr/share/ipmiutil + fi else # otherwise install the systemd service scripts in the data dir - if test "x$sysname" = "xDarwin" ; then - # MacOS 'which' command returns 0 always - SYSTEMD_DIR=/usr/share/ipmiutil - else - which rpm >/dev/null 2>&1 - if test $? -eq 0 ; then - datad=`rpm --eval "%{_datadir}"` - SYSTEMD_DIR=${datad}/ipmiutil - else - SYSTEMD_DIR=/usr/share/ipmiutil + SYSTEMD_DIR=/usr/share/ipmiutil + if test "x$sysname" != "xDarwin" ; then + if test "x$os" != "xhpux" ; then + # MacOS and HP-UX: 'which' command returns 0 always + which rpm >/dev/null 2>&1 + if test $? -eq 0 ; then + datad=`rpm --eval "%{_datadir}"` + SYSTEMD_DIR=${datad}/ipmiutil + fi fi fi fi @@ -13133,13 +13137,13 @@ fi PKG_DIR=/usr/src/packages INS_LIB="" -SHR_LINK="libipmiutil.so" +SHR_LINK="libipmiutil.so.1" init0= if test "x$sysname" = "xSunOS"; then echo "Detected Solaris" os=solaris # archp=`uname -p` - if test -d "/usr/sfw/lib"; then + if test -d "/usr/sfw/lib"; then sfwdir=/usr/sfw else sfwdir=/usr/local @@ -13163,10 +13167,10 @@ else os=linux tmpc=/tmp/tmp.c tmpo=/tmp/tmp.o - echo $ECHO_N "checking compile warning flags ... $ECHO_C" - cfwarn="-Wno-pointer-sign -Wno-sign-conversion -Wunused-result -Wgnu-designator" + echo $ECHO_N "checking compile sign warning flags ... $ECHO_C" + cfwarn="-Wno-pointer-sign -Wno-sign-conversion -Wunused-result" echo "int main() { return(1); }" >$tmpc - gcc -o $tmpo -c $cfwarn $tmpc >/dev/null 2>&1 + $CC -o $tmpo -c $cfwarn $tmpc >/dev/null 2>&1 if test $? -ne 0 ; then cfwarn= echo "skip" @@ -13174,10 +13178,21 @@ else echo "ok, suppress excess warnings" fi rm -f $tmpc $tmpo >/dev/null 2>&1 + echo $ECHO_N "checking compile gnu warning flags ... $ECHO_C" + cfgnu="-Wgnu-designator" + echo "int main() { return(1); }" >$tmpc + $CC -o $tmpo -c $cfgnu $tmpc >/dev/null 2>&1 + if test $? -ne 0 ; then + cfgnu= + echo "skip" + else + echo "ok, suppress excess warnings" + fi + rm -f $tmpc $tmpo >/dev/null 2>&1 echo $ECHO_N "checking compile fortify flags ... $ECHO_C" cfhard="-fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2" echo "int main() { return(1); }" >$tmpc - gcc -o $tmpo -c $cfhard $tmpc >/dev/null 2>&1 + $CC -o $tmpo $cfhard $tmpc >/dev/null 2>&1 if test $? -ne 0 ; then cfhard= echo "skip" @@ -13194,24 +13209,24 @@ else else which rpm >/dev/null 2>&1 if test $? -eq 0; then - pkgtop=`rpm --eval "%{_topdir}"` - PKG_DIR=$pkgtop + pkgtop=`rpm --eval "%{_topdir}"` + PKG_DIR=$pkgtop fi fi if test -f "/etc/redhat-release"; then - echo "Detected Red Hat Linux" - os=redhat - isredhat=1 - fi + echo "Detected Red Hat Linux" + os=redhat + isredhat=1 + fi if test -f "/etc/SuSE-release"; then - echo "Detected SuSE Linux" - os=suse - sed -e 's/# POST_INSTALL/if [ ! -f \/etc\/snmp\/snmpd.conf ]; then\n if [ -f \/etc\/ucdsnmpd.conf ]; then\n mkdir -p \/etc\/snmp; ln -s \/etc\/ucdsnmpd.conf \/etc\/snmp\/snmpd.conf\n fi\nif [ -f \/etc\/snmpd.conf ]; then\nmkdir -p \/etc\/snmp; ln -s \/etc\/snmpd.conf \/etc\/snmp\/snmpd.conf\nfi\nfi\n#/' -e 's/make install DEST/make install-strip DEST/' doc/ipmiutil.spec >$tmpspec - cp -f $tmpspec doc/ipmiutil.spec - fi - if test -f "/etc/mvl-release"; then - echo "Detected MontaVista Linux" - os=montavista + echo "Detected SuSE Linux" + os=suse + sed -e 's/# POST_INSTALL/if [ ! -f \/etc\/snmp\/snmpd.conf ]; then\n if [ -f \/etc\/ucdsnmpd.conf ]; then\n mkdir -p \/etc\/snmp; ln -s \/etc\/ucdsnmpd.conf \/etc\/snmp\/snmpd.conf\n fi\nif [ -f \/etc\/snmpd.conf ]; then\nmkdir -p \/etc\/snmp; ln -s \/etc\/snmpd.conf \/etc\/snmp\/snmpd.conf\nfi\nfi\n#/' -e 's/make install DEST/make install-strip DEST/' doc/ipmiutil.spec >$tmpspec + cp -f $tmpspec doc/ipmiutil.spec + fi + if test -f "/etc/mvl-release"; then + echo "Detected MontaVista Linux" + os=montavista init0=/etc/init.d sed -e 's/openssl-devel/openssl-dev\n%ifarch x86_pentium3 x86_pentium4\nAutoReqProv: No\n%endif/' -e 's/%{_mandir}/\/usr\/share\/man/' -e 's/%{_initrddir}/\/etc\/init.d/' -e 's/%{_sysconfdir}/\/etc/' -e 's/# POST_INSTALL/newcrypto=%{_libdir}\/libcrypto.so.4\nif [ ! -f $newcrypto ]; then\n cp -f %{_libdir}\/libcrypto.so.0 $newcrypto\nfi\n#/' -e 's/make install DEST/make install-strip DEST/' doc/ipmiutil.spec >$tmpspec cp -f $tmpspec doc/ipmiutil.spec @@ -13236,7 +13251,7 @@ else sed -i 's/# Default-Start:/# Default-Start: 3 4 5/' $init_scripts sed -i 's/# Default-Stop:/# Default-Stop: 0 1 2 6/' $init_scripts fi - if test -f "$LIB_DIR/libcrypto.so"; then + if test -f "$LIB_DIR/libcrypto.so"; then strings $LIB_DIR/libcrypto.so | grep EVP_md2 >/dev/null 2>&1 if test $? -ne 0; then echo "No MD2 detected in openssl libcrypto.so" @@ -13246,50 +13261,52 @@ else echo "No openssl $LIB_DIR/libcrypto.so detected" MD2_CFLAGS="-DSKIP_MD2" fi - OS_CFLAGS="-DLINUX $MD2_CFLAGS -fPIC $cfwarn $cfhard" + OS_CFLAGS="-DLINUX $MD2_CFLAGS -fPIC $cfwarn $cfgnu $cfhard" else + macos=1 # =1 means not mac # usually "x$sysname" = "xFreeBSD", but allow NetBSD # echo $sysname | grep 'BSD' >/dev/null 2>&1 - macos=1 echo $sysname | grep -q BSD bsd=$? if test "x$sysname" = "xDarwin" ; then if test "$archp" = "powerpc" ; then macos=0 - else + else + # else treat Darwin like BSD bsd=0 fi fi uname -a | grep -i HP-UX >/dev/null 2>&1 hpux=$? - if test $bsd -eq 0; then - os=bsd - OS_CFLAGS="-DBSD -fPIC" - OS_LFLAGS="" - OS_DRIVERS="ipmimv.c ipmidir.c" - drivers="open direct" + if test $hpux -eq 0; then + echo "Detected HP-UX" + os=hpux + MD2_CFLAGS="-DSKIP_MD2" + OS_CFLAGS="-DHPUX $MD2_CFLAGS" + OS_LFLAGS="" + OS_DRIVERS="imbapi.c ipmimv.c ipmidir.c" + drivers="imb open direct" + SHR_LINK="" else - if test $hpux -eq 0; then - echo "Detected HP-UX" - os=hpux - MD2_CFLAGS="-DSKIP_MD2" - OS_CFLAGS="-DHPUX $MD2_CFLAGS" - OS_LFLAGS="" - OS_DRIVERS="ipmimv.c" - drivers="open" - SHR_LINK="" + if test $bsd -eq 0; then + echo "Detected BSD" + os=bsd + OS_CFLAGS="-DBSD -fPIC" + OS_LFLAGS="" + OS_DRIVERS="ipmimv.c ipmidir.c" + drivers="open direct" elif test $macos -eq 0; then echo "Detected MacOSX" os=macos MD2_CFLAGS="-DSKIP_MD2" OS_CFLAGS="-DMACOS $MD2_CFLAGS -fPIC" OS_LFLAGS="" - OS_DRIVERS="ipmimv.c ipmidir.c" - drivers="open direct" - SHR_LINK="" - # optionally check for AppleBMC.kext here? + OS_DRIVERS="ipmimv.c ipmidir.c" + drivers="open direct" + SHR_LINK="" + # optionally check for AppleBMC.kext here? else - # not Solaris, Linux, BSD, or HP-UX = error + # not Solaris, Linux, BSD, or HP-UX = error echo "OS $sysname not yet supported" exit 1 fi @@ -13299,12 +13316,14 @@ fi if test "x$init0" = "x" ; then if test "x$os" != "xmacos" ; then - which rpmbuild >/dev/null 2>&1 - if test $? -eq 0 ; then - init1=`rpmbuild --showrc |grep " _initrddir" | cut -d'}' -f2` - if test "x$init1" != "x" ; then - init0=/etc/${init1} - fi + if test "x$os" != "xhpux" ; then + which rpmbuild >/dev/null 2>&1 + if test $? -eq 0 ; then + init1=`rpmbuild --showrc |grep " _initrddir" | cut -d'}' -f2` + if test "x$init1" != "x" ; then + init0=/etc/${init1} + fi + fi fi fi fi @@ -13791,7 +13810,7 @@ exec 6>&1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by ipmiutil $as_me 2.9.6, which was +This file was extended by ipmiutil $as_me 2.9.7, which was generated by GNU Autoconf 2.63. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -13854,7 +13873,7 @@ Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_version="\\ -ipmiutil config.status 2.9.6 +ipmiutil config.status 2.9.7 configured by $0, generated by GNU Autoconf 2.63, with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" @@ -15713,6 +15732,10 @@ if test "x$sysname" = "xSunOS"; then # -e 's/ipmidir.c/ipmibmc.c/' cp -f /tmp/make util/Makefile fi +if test "x$os" = "xhpux" ; then + sed -e 's/^.NOEXPORT:/#.NOEXPORT:/' util/Makefile >/tmp/make + cp -f /tmp/make util/Makefile +fi { $as_echo "$as_me:$LINENO: result: " >&5 $as_echo "" >&6; } -- cgit v1.2.3