From: David Lamparter Date: Mon, 31 Jul 2017 20:34:26 +0000 (+0200) Subject: build: fix --disable-snmp X-Git-Tag: frr-4.0-dev~388^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=53b997359fe5c18b64e587f0324ee0258ef5a719;p=matthieu%2Ffrr.git build: fix --disable-snmp --disable-foo results in "no" as value in $enable_foo Signed-off-by: David Lamparter --- diff --git a/configure.ac b/configure.ac index 710a71f636..bf66e00f9f 100755 --- a/configure.ac +++ b/configure.ac @@ -1366,7 +1366,7 @@ fi dnl ------------------ dnl check Net-SNMP library dnl ------------------ -if test "${enable_snmp}" != ""; then +if test "${enable_snmp}" != "" -a "${enable_snmp}" != "no"; then AC_PATH_TOOL([NETSNMP_CONFIG], [net-snmp-config], [no]) if test x"$NETSNMP_CONFIG" = x"no"; then AC_MSG_ERROR([--enable-snmp given but unable to find net-snmp-config])