aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2017-09-29 17:58:28 +0200
committerMihai Moldovan <ionic@ionic.de>2017-09-29 17:58:28 +0200
commitb5c714690e9c13c85bdd9b2f4b21dd8f86164e4e (patch)
treee5e85a0143b353e5174eaef19ae40474fc6ef0fd
parent03ebe6f258ef29fc2bb6dc10fb9b829213dfd780 (diff)
downloadnx-libs-b5c714690e9c13c85bdd9b2f4b21dd8f86164e4e.tar.gz
nx-libs-b5c714690e9c13c85bdd9b2f4b21dd8f86164e4e.tar.bz2
nx-libs-b5c714690e9c13c85bdd9b2f4b21dd8f86164e4e.zip
nxcomp/configure.ac: prettify AC_ARG_ENABLE() calls, use more quotes and AS_IF() where appropriate.
-rw-r--r--nxcomp/configure.ac26
1 files changed, 13 insertions, 13 deletions
diff --git a/nxcomp/configure.ac b/nxcomp/configure.ac
index efe245162..40dced209 100644
--- a/nxcomp/configure.ac
+++ b/nxcomp/configure.ac
@@ -66,19 +66,19 @@ fi
# If in_addr_t is not defined use unsigned int.
AC_CHECK_TYPES([in_addr_t], [], [], [[#include <netinet/in.h>]])
-AC_ARG_ENABLE(info,
- [AS_HELP_STRING([--enable-debug], [enable to get info session log output (disabled by default)])],
- [if test x$enableval = xyes; then
- AC_DEFINE(INFO, 1, [Define this to get info session log output.])
- info_messages=yes
- fi])
-
-AC_ARG_ENABLE(valgrind,
- [AS_HELP_STRING([--enable-valgrind], [enable for extra valgrind hacks (disabled by default)])],
- [if test x$enableval = xyes; then
- AC_DEFINE(VALGRIND, 1, [Define this for extra valgrind hacks.])
- valgrind_hacks=yes
- fi])
+AC_ARG_ENABLE([info],
+ [AS_HELP_STRING([--enable-debug],
+ [enable to get info session log output (disabled by default)])],
+ [AS_IF([test x$enableval = xyes],
+ [AC_DEFINE(INFO, 1, [Define this to get info session log output.])
+ info_messages=yes])])
+
+AC_ARG_ENABLE([valgrind],
+ [AS_HELP_STRING([--enable-valgrind],
+ [enable for extra valgrind hacks (disabled by default)])],
+ [AS_IF([test x$enableval = xyes],
+ [AC_DEFINE(VALGRIND, 1, [Define this for extra valgrind hacks.])
+ valgrind_hacks=yes])])
AC_CONFIG_FILES([
Makefile