kloczek / rpms / net-snmp

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