Blame SOURCES/net-snmp-config

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