aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-08-14 12:04:59 +0000
committerChristian Grothoff <christian@grothoff.org>2013-08-14 12:04:59 +0000
commit0c8ec33a71a39ff5bb512ff672696bdd41726fdc (patch)
tree66b8454e05259ab087778cc373f78437f0a0f3ff
parentd1069706dea6c8de21ca118d45a5f117364b1fda (diff)
downloadgnunet-ext-0c8ec33a71a39ff5bb512ff672696bdd41726fdc.tar.gz
gnunet-ext-0c8ec33a71a39ff5bb512ff672696bdd41726fdc.zip
-add logging options to ext template as well
-rw-r--r--configure.ac22
1 files changed, 22 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 08cd9b5..41dc08c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -167,6 +167,28 @@ then
167 AC_MSG_ERROR([gnunet-ext requires GNUnet]) 167 AC_MSG_ERROR([gnunet-ext requires GNUnet])
168fi 168fi
169 169
170
171
172# Linker hardening options
173# Currently these options are ELF specific - you can't use this with MacOSX
174AC_ARG_ENABLE(linker-hardening,
175 AS_HELP_STRING(--enable-linker-hardening, enable linker security fixups),
176[if test x$enableval = xyes; then
177 LDFLAGS="$LDFLAGS -z relro -z now"
178fi])
179
180
181extra_logging=GNUNET_NO
182AC_ARG_ENABLE([logging],
183 AS_HELP_STRING([--enable-logging@<:@=value@:>@],[Enable logging calls. Possible values: yes,no,verbose,veryverbose ('yes' is the default)]),
184 [AS_IF([test "x$enableval" = "xyes"], [],
185 [test "x$enableval" = "xno"], [AC_DEFINE([GNUNET_CULL_LOGGING],[],[Define to cull all logging calls])],
186 [test "x$enableval" = "xverbose"], [extra_logging=GNUNET_YES]
187 [test "x$enableval" = "xveryverbose"], [extra_logging=\(GNUNET_YES+1\)])
188 ], [])
189AC_DEFINE_UNQUOTED([GNUNET_EXTRA_LOGGING],[$extra_logging],[1 if extra logging is enabled, 2 for very verbose extra logging, 0 otherwise])
190
191
170AC_SUBST(GNUNET_CPPFLAGS) 192AC_SUBST(GNUNET_CPPFLAGS)
171AC_SUBST(GNUNET_LDFLAGS) 193AC_SUBST(GNUNET_LDFLAGS)
172LDFLAGS="$backup_LDFLAGS" 194LDFLAGS="$backup_LDFLAGS"