diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-10-02 22:29:25 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-10-02 22:29:25 +0000 |
commit | b7c95147188502651e4cb2b60c7062137f73e878 (patch) | |
tree | eb7c55033f62112301d00352864d512efabccf15 /configure.ac | |
parent | 64b0a6f17bff78a41bcdf0a7832a5c3e3e4a29e4 (diff) | |
download | gnunet-b7c95147188502651e4cb2b60c7062137f73e878.tar.gz gnunet-b7c95147188502651e4cb2b60c7062137f73e878.zip |
make code compile with enable-malicious option set
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index b958efc7e..2e2b90321 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -726,15 +726,15 @@ 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) | 728 | # should malicious code be compiled (code used for testing with malicious peers) |
729 | disable_malicious=yes | 729 | enable_malicious=0 |
730 | AC_MSG_CHECKING(whether to compile malicious code) | 730 | AC_MSG_CHECKING(whether to compile malicious code) |
731 | AC_ARG_ENABLE(malicious, | 731 | AC_ARG_ENABLE(malicious, |
732 | [AS_HELP_STRING([--enable-malicious], | 732 | [AS_HELP_STRING([--enable-malicious], |
733 | [enable compiling malicious code (only for developers for testing)])], | 733 | [enable compiling malicious code (only for developers for testing)])], |
734 | [enable_malicious=$enableval], | 734 | [enable_malicious=1], |
735 | [enable_malicious="no"]) | 735 | [enable_malicious=0]) |
736 | AC_MSG_RESULT($enable_malicious) | 736 | AC_MSG_RESULT($enable_malicious) |
737 | AM_CONDITIONAL([HAVE_MALICIOUS], [test "x$enable_malicious" = "xyes"]) | 737 | AM_CONDITIONAL([HAVE_MALICIOUS], [test "x$enable_malicious" = "x1"]) |
738 | AC_DEFINE_UNQUOTED([HAVE_MALICIOUS], $enable_malicious, [Compile malicious code]) | 738 | AC_DEFINE_UNQUOTED([HAVE_MALICIOUS], $enable_malicious, [Compile malicious code]) |
739 | 739 | ||
740 | # gcov compilation | 740 | # gcov compilation |