diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-10-02 13:58:26 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-10-02 13:58:26 +0000 |
commit | 3b54e87cfe8f36ce11af703bae138a3a0a828e8a (patch) | |
tree | fd6a61aabfd01f4115d8e549efc7c7bae9f3687c | |
parent | 7b80cc15aaf3f61fb05635577fdd5258d5b8bb17 (diff) | |
download | gnunet-3b54e87cfe8f36ce11af703bae138a3a0a828e8a.tar.gz gnunet-3b54e87cfe8f36ce11af703bae138a3a0a828e8a.zip |
new configure flag to enable 'malicious' test code
-rw-r--r-- | configure.ac | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 22133e07d..b958efc7e 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -725,6 +725,18 @@ AC_ARG_ENABLE(experimental, | |||
725 | AC_MSG_RESULT($enable_experimental) | 725 | AC_MSG_RESULT($enable_experimental) |
726 | AM_CONDITIONAL([HAVE_EXPERIMENTAL], [test "x$enable_experimental" = "xyes"]) | 726 | AM_CONDITIONAL([HAVE_EXPERIMENTAL], [test "x$enable_experimental" = "xyes"]) |
727 | 727 | ||
728 | # should malicious code be compiled (code used for testing with malicious peers) | ||
729 | disable_malicious=yes | ||
730 | AC_MSG_CHECKING(whether to compile malicious code) | ||
731 | AC_ARG_ENABLE(malicious, | ||
732 | [AS_HELP_STRING([--enable-malicious], | ||
733 | [enable compiling malicious code (only for developers for testing)])], | ||
734 | [enable_malicious=$enableval], | ||
735 | [enable_malicious="no"]) | ||
736 | AC_MSG_RESULT($enable_malicious) | ||
737 | AM_CONDITIONAL([HAVE_MALICIOUS], [test "x$enable_malicious" = "xyes"]) | ||
738 | AC_DEFINE_UNQUOTED([HAVE_MALICIOUS], $enable_malicious, [Compile malicious code]) | ||
739 | |||
728 | # gcov compilation | 740 | # gcov compilation |
729 | use_gcov=no | 741 | use_gcov=no |
730 | AC_ARG_ENABLE([coverage], AS_HELP_STRING([--enable-coverage], | 742 | AC_ARG_ENABLE([coverage], AS_HELP_STRING([--enable-coverage], |