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