summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index a819f3fd..b9ed65c1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -78,6 +78,17 @@ else
CXXFLAGS="$CFLAGS -DNDEBUG"
fi
+
+# Boost shared_ptr debugging
+pointer_debug="no"
+AC_ARG_ENABLE(debug,
+ [AS_HELP_STRING(--enable-pointer-debug, [Enable smart pointer debugging (no)])],
+ [pointer-debug="$enableval"])
+if test "$pointer_debug" = "yes"; then
+ CFLAGS+="-DBOOST_SP_ENABLE_DEBUG_HOOKS"
+ CXXFLAGS+="-DBOOST_SP_ENABLE_DEBUG_HOOKS"
+fi
+
# Use strict flags?
strict="no"
AC_ARG_ENABLE(strict,