adding configure option to run GNUnet with monkey
authorChristian Grothoff <christian@grothoff.org>
Wed, 4 Apr 2012 08:21:40 +0000 (08:21 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 4 Apr 2012 08:21:40 +0000 (08:21 +0000)
configure.ac
src/fs/fs.conf.in

index 7fb10cf322dcd7beeefd005925d2f5c5af108dd9..57dcd36b36d655dfef3b5091eb55d6d368be02aa 100644 (file)
@@ -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],
index 0c1a5895bda48e6227c6893d61f3b43901782ace..fed0e5f01934996d324b9affd9910212c644c907 100644 (file)
@@ -29,4 +29,6 @@ MAX_PENDING_REQUESTS = 65536
 MIN_MIGRATION_DELAY = 100 ms
 EXPECTED_NEIGHBOUR_COUNT = 128
 
+# Enable monkey?
+PREFIX = @MONKEYPREFIX@