Skip to contentSkip to conversation

configure: fix 3rd arg w/AC_ARG_ENABLE

PATCH Applied Mike Frysinger 2 participants 2 messages Aug 15, 2015 – Aug 18, 2015 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure: fix 3rd arg w/AC_ARG_ENABLE

The 3rd arg is used when --{enable,disable}-foo are passed in, not when the feature is enabled. Use the existing $enableval instead.

---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
configure.ac +2 -2
index 2521ccc..7ff572a 100644
@@ -53,10 +53,10 @@ AC_ARG_ENABLE([libipq],
 	[enable_libipq="$enableval"], [enable_libipq="no"])
 AC_ARG_ENABLE([bpf-compiler],
 	AS_HELP_STRING([--enable-bpf-compiler], [Build bpf compiler]),
-	[enable_bpfc="yes"], [enable_bpfc="no"])
+	[enable_bpfc="$enableval"], [enable_bpfc="no"])
 AC_ARG_ENABLE([nfsynproxy],
 	AS_HELP_STRING([--enable-nfsynproxy], [Build SYNPROXY configuration tool]),
-	[enable_nfsynproxy="yes"], [enable_nfsynproxy="no"])
+	[enable_nfsynproxy="$enableval"], [enable_nfsynproxy="no"])
 AC_ARG_WITH([pkgconfigdir], AS_HELP_STRING([--with-pkgconfigdir=PATH],
 	[Path to the pkgconfig directory [[LIBDIR/pkgconfig]]]),
 	[pkgconfigdir="$withval"], [pkgconfigdir='${libdir}/pkgconfig'])
Signature · 1 line
2.4.4
maintainer Applied
#1 lore raw
Quoted 2 lines · Mike Frysinger

The 3rd arg is used when --{enable,disable}-foo are passed in, not when the feature is enabled. Use the existing $enableval instead.

Applied, thanks.