From 2764fd265cdf18522c3d852057bbdbd947072e17 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 4 Apr 2012 08:21:40 +0000 Subject: [PATCH] adding configure option to run GNUnet with monkey --- configure.ac | 18 ++++++++++++++++++ src/fs/fs.conf.in | 2 ++ 2 files changed, 20 insertions(+) diff --git a/configure.ac b/configure.ac index 7fb10cf32..57dcd36b3 100644 --- a/configure.ac +++ b/configure.ac @@ -775,6 +775,24 @@ AC_ARG_ENABLE([testruns], AC_MSG_RESULT($enable_test_run) AM_CONDITIONAL([ENABLE_TEST_RUN], [test "x$enable_tests_run" = "xyes"]) + +# should monkey be used when running (certain) services? +AC_MSG_CHECKING(whether to run with monkey) +AC_ARG_ENABLE([monkey], + [AS_HELP_STRING([--enable-monkey], [enable running with monkey])], + [enable_monkey=${enableval}], + [enable_monkey=no]) +AC_MSG_RESULT($enable_monkey) +AM_CONDITIONAL([ENABLE_MONKEY], [test "x$enable_monkey" = "xyes"]) +if test "x$enable_monkey" = "xyes" +then + MONKEYPREFIX="" +else + MONKEYPREFIX="monkey" +fi +AC_SUBST(MONKEYPREFIX) + + # should expensive tests be run? AC_MSG_CHECKING(whether to run expensive tests) AC_ARG_ENABLE([expensivetests], diff --git a/src/fs/fs.conf.in b/src/fs/fs.conf.in index 0c1a5895b..fed0e5f01 100644 --- a/src/fs/fs.conf.in +++ b/src/fs/fs.conf.in @@ -29,4 +29,6 @@ MAX_PENDING_REQUESTS = 65536 MIN_MIGRATION_DELAY = 100 ms EXPECTED_NEIGHBOUR_COUNT = 128 +# Enable monkey? +PREFIX = @MONKEYPREFIX@ -- 2.25.1