Blame SOURCES/net-snmp-config

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