configure not POSIX compliant
SNMP MIB Browser for Linux platforms
Status: Beta
Brought to you by:
rcpteam
With dash as /bin/sh:
$ ./configure
...
./configure: 4008: test: /usr/bin/qmake: unexpected operator
Found /usr/bin/qmake
QMake version 2.01a
Using Qt version 4.8.5 in /usr/lib64/qt4
./configure: 4039: test: /usr/bin/snmpget: unexpected operator
Found /usr/bin/snmpget
configure: creating ./config.status
config.status: creating Makefile
Problem is the use of ==, suggest changing to -z:
--- /var/tmp/qtmib-1.1/configure.ac.orig +++ /var/tmp/qtmib-1.1/configure.ac @@ -19,14 +19,14 @@ # testing qmake QMAKE=`which qmake` -if test "$QMAKE" == "" +if test -z "$QMAKE" then # fix for Fedora if test -f /usr/lib64/qt4/bin/qmake; then QMAKE=/usr/lib64/qt4/bin/qmake fi - if test "$QMAKE" == "" + if test -z "$QMAKE" then AC_MSG_ERROR([qmake is missing, please install QT4 development packages.]) fi @@ -50,7 +50,7 @@ # testing net-snmp NETSNMP=`which snmpget` -if test "$NETSNMP" == "" +if test -z "$NETSNMP" then AC_MSG_WARN([net-snmp is requred for running qtmib, please install it (http://www.net-snmp.org/).]) else
Fixed in version 1.1.1. Thank you for the patch!