Message ID | 20151017105720.GA1462@salvia |
---|---|
State | RFC |
Delegated to: | Pablo Neira |
Headers | show |
On Saturday 2015-10-17 12:57, Pablo Neira Ayuso wrote: >Something like this (that we already have in nftables) should be fine: > > AC_ARG_ENABLE([debug], >- AS_HELP_STRING([--enable-debug], [Enable debugging]), >- [with_debug=no], >+ AS_HELP_STRING([--enable-debug], [Disable debugging]), >+ AS_IF([test "x$enable_debug" = "xno"], [with_debug=no], >[with_debug=yes]), > [with_debug=yes]) Well the whole AS_IF part is not really needed, because you are already testing in AM_CONDITIONAL: > AC_SUBST(with_debug) > AM_CONDITIONAL([BUILD_DEBUG], [test "x$with_debug" != xno]) -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/configure.ac b/configure.ac index d8f949a..931dbe1 100644 --- a/configure.ac +++ b/configure.ac @@ -23,8 +23,8 @@ AC_DEFINE([_GNU_SOURCE], [], [Enable various GNU extensions]) AC_DEFINE([_STDC_FORMAT_MACROS], [], [printf-style format macros]) AC_ARG_ENABLE([debug], - AS_HELP_STRING([--enable-debug], [Enable debugging]), - [with_debug=no], + AS_HELP_STRING([--enable-debug], [Disable debugging]), + AS_IF([test "x$enable_debug" = "xno"], [with_debug=no], [with_debug=yes]), [with_debug=yes])