From: Christian Grothoff Date: Wed, 4 Apr 2012 08:21:40 +0000 (+0000) Subject: adding configure option to run GNUnet with monkey X-Git-Tag: initial-import-from-subversion-38251~13991 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2764fd265cdf18522c3d852057bbdbd947072e17;p=oweals%2Fgnunet.git adding configure option to run GNUnet with monkey --- 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@