aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure.ac
diff options
context:
space:
mode:
authorRobin Haberkorn <rhaberkorn@fmsbw.de>2026-07-05 12:11:23 +0200
committerRobin Haberkorn <rhaberkorn@fmsbw.de>2026-07-05 12:11:23 +0200
commit01d77dafb8fc4d40f8603e0d776b9b4b9283918d (patch)
treefc35868e1e2f703bc6d7f7b5f1249039e45ed526 /configure.ac
parent45d8de38393c2b34eaafd49901a48fced685b1e8 (diff)
terex is built with assertions now on --enable-debugHEADmaster-fmsbw-cimaster
* terex disables assertions by default unless you add `-DREG_DEBUG`. Since we heavily modified the original by Henry Spencer it makes sense to enable assertions. * dlmalloc will still be built without assertions even if --enable-debug is given since that has a significant speed impact and I consider dlmalloc to be rock solid. It would need `-DDEBUG=1` to enable assertions (among other things). We only disable additional checks in dlmalloc if --disable-debug.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 09d0804..03b06ba 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,11 +18,16 @@ AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AX_CHECK_ENABLE_DEBUG
-if [[ x$ax_enable_debug = xno ]]; then
+if [[ x$ax_enable_debug = xyes ]]; then
+ #DLMALLOC_CPPFLAGS="$DLMALLOC_CPPFLAGS -DDEBUG=1"
+ TEREX_CPPFLAGS="$TEREX_CPPFLAGS -DREG_DEBUG"
+else
# glib does not look at NDEBUG
AC_DEFINE(G_DISABLE_ASSERT, 1, [Disable g_assert()])
DLMALLOC_CPPFLAGS="$DLMALLOC_CPPFLAGS -DINSECURE=1"
fi
+AC_SUBST(DLMALLOC_CPPFLAGS)
+AC_SUBST(TEREX_CPPFLAGS)
# Use the user provided CXXFLAGS for Scintilla as well.
# This makes sure that the same optimizations are applied
@@ -229,7 +234,6 @@ esac
AC_CHECK_FUNCS([sbrk], , [
DLMALLOC_CPPFLAGS="$DLMALLOC_CPPFLAGS -DHAVE_MORECORE=0"
])
-AC_SUBST(DLMALLOC_CPPFLAGS)
#
# Config options