Blame SOURCES/net-snmp-config

b5ae06
#!/bin/sh
b5ae06
#
b5ae06
# net-snmp-config
b5ae06
#
b5ae06
# this shell script is designed to merely dump the configuration
b5ae06
# information about how the net-snmp package was compiled.  The
b5ae06
# information is particularily useful for applications that need to
b5ae06
# link against the net-snmp libraries and hence must know about any
b5ae06
# other libraries that must be linked in as well.
b5ae06
b5ae06
# this particular shell script calls arch specific script to avoid
b5ae06
# multilib conflicts
b5ae06
b5ae06
# Supported arches ix86 ia64 ppc ppc64 s390 s390x x86_64 alpha sparc sparc64
b5ae06
b5ae06
arch=`arch`
b5ae06
echo $arch | grep -q i.86
b5ae06
if [ $? -eq 0 ] ; then
b5ae06
    net-snmp-config-i386 $*
b5ae06
    exit 0
b5ae06
fi
b5ae06
if [ "$arch" = "ia64" ] ; then
b5ae06
    net-snmp-config-ia64 $*
b5ae06
    exit 0
b5ae06
fi
b5ae06
if [ "$arch" = "ppc" ] ; then
b5ae06
    net-snmp-config-ppc $*
b5ae06
    exit 0
b5ae06
fi
b5ae06
if [ "$arch" = "ppc64" ] ; then
b5ae06
    net-snmp-config-ppc64 $*
b5ae06
    exit 0
b5ae06
fi
b5ae06
if [ "$arch" = "s390" ] ; then
b5ae06
    net-snmp-config-s390 $*
b5ae06
    exit 0
b5ae06
fi
b5ae06
if [ "$arch" = "s390x" ] ; then
b5ae06
    net-snmp-config-s390x $*
b5ae06
    exit 0
b5ae06
fi
b5ae06
if [ "$arch" = "x86_64" ] ; then
b5ae06
    net-snmp-config-x86_64 $*
b5ae06
    exit 0
b5ae06
fi
b5ae06
if [ "$arch" = "alpha" ] ; then
b5ae06
    net-snmp-config-alpha $*
b5ae06
    exit 0
b5ae06
fi
b5ae06
if [ "$arch" = "sparc" ] ; then
b5ae06
    net-snmp-config-sparc $*
b5ae06
    exit 0
b5ae06
fi
b5ae06
if [ "$arch" = "sparc64" ] ; then
b5ae06
    net-snmp-config-sparc64 $*
b5ae06
    exit 0
b5ae06
fi
b5ae06
echo "Cannot determine architecture"