X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=configure.ac;h=2e2b90321cbdcd7fe8203fd81f0a98a959bc6ad7;hb=7fb21027ff8726fec229ef0a55b84263be0c18d0;hp=8742605d2469c033fcc03c93a5e9a257665a5836;hpb=190d294e3c9aa487ba03562b8bb32d4cf6f54948;p=oweals%2Fgnunet.git diff --git a/configure.ac b/configure.ac index 8742605d2..2e2b90321 100644 --- a/configure.ac +++ b/configure.ac @@ -725,6 +725,18 @@ AC_ARG_ENABLE(experimental, AC_MSG_RESULT($enable_experimental) AM_CONDITIONAL([HAVE_EXPERIMENTAL], [test "x$enable_experimental" = "xyes"]) +# should malicious code be compiled (code used for testing with malicious peers) +enable_malicious=0 +AC_MSG_CHECKING(whether to compile malicious code) +AC_ARG_ENABLE(malicious, + [AS_HELP_STRING([--enable-malicious], + [enable compiling malicious code (only for developers for testing)])], + [enable_malicious=1], + [enable_malicious=0]) +AC_MSG_RESULT($enable_malicious) +AM_CONDITIONAL([HAVE_MALICIOUS], [test "x$enable_malicious" = "x1"]) +AC_DEFINE_UNQUOTED([HAVE_MALICIOUS], $enable_malicious, [Compile malicious code]) + # gcov compilation use_gcov=no AC_ARG_ENABLE([coverage], AS_HELP_STRING([--enable-coverage], @@ -753,8 +765,6 @@ src/include/gnunet_directories.h src/hostlist/Makefile src/monkey/Makefile src/nat/Makefile -src/nat/libnatpmp/Makefile -src/nat/miniupnp/Makefile src/peerinfo/Makefile src/peerinfo-tool/Makefile src/statistics/Makefile