From 24d9ece906cc03e80db617168c9a2d93409e4640 Mon Sep 17 00:00:00 2001 From: ng0 Date: Sun, 1 Dec 2019 19:33:04 +0000 Subject: Add --with-gnunet-logread to configure. --- configure.ac | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 53db0bfaf..6471cb872 100644 --- a/configure.ac +++ b/configure.ac @@ -247,6 +247,25 @@ AC_PATH_PROG( PERL, perl, , $PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin ) AC_SUBST([PERL]) +# should we install gnunet-logread? +AC_MSG_CHECKING(whether to install gnunet-logread) +AC_ARG_WITH([gnunet-logread], + [AS_HELP_STRING([--with-gnunet-logread], + [Install gnunet-logread])], + [logread=${withval}], + [logread=no]) +AC_MSG_RESULT($logread) +AS_IF([test "x$logread" = "xyes"], + [AM_CONDITIONAL([GNUNET_LOGREAD], true) + AC_DEFINE([GNUNET_LOGREAD], + [1], + [Installing gnunet-logread])], + [AM_CONDITIONAL([GNUNET_LOGREAD], + false) + AC_DEFINE([GNUNET_LOGREAD], + [0], + [Not installing gnunet-logread])]) + # iptables is a soft requirement to run tests AC_PATH_TARGET_TOOL(VAR_IPTABLES_BINARY, iptables, false) -- cgit v1.2.3