From 53b997359fe5c18b64e587f0324ee0258ef5a719 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Mon, 31 Jul 2017 22:34:26 +0200 Subject: [PATCH] build: fix --disable-snmp --disable-foo results in "no" as value in $enable_foo Signed-off-by: David Lamparter --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) -- 2.39.5