summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-12-01 23:29:37 +0000
committerng0 <ng0@n0.is>2019-12-01 23:29:37 +0000
commit5a525c0349701d8b511c34ef2deaf0eec7b26f22 (patch)
treead0a0a7224a35db6fca4de6364d44fafb8b6ce3d /configure.ac
parentdf0af6b7067e6a4ad0a88f2775da28cfc159ee66 (diff)
define HAVE_AWK... we require awk for many parts, but for some cases
it could make sense to skip it.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index e8a450b61..7de7b26fc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -254,6 +254,9 @@ AS_IF([test -x "$PERL"],
# awk
AC_PATH_PROGS( AWK_BINARY, [awk gawk], ,$PATH:/usr/bin/:/usr/local/bin )
AC_SUBST([AWK_BINARY])
+AS_IF([test -x "$AWK_BINARY"],
+ [AC_DEFINE_UNQUOTED([HAVE_AWK], [1], [Path to awk])],
+ [AC_DEFINE_UNQUOTED([HAVE_AWK], [0], [Path to awk])])
# should we install gnunet-logread?
AC_MSG_CHECKING(whether to install gnunet-logread)