From cf890744c13276bf9e1cdfdf9c2e35ac2b59122f Mon Sep 17 00:00:00 2001 From: Mikael Djurfeldt Date: Fri, 21 Apr 2000 00:24:26 +0000 Subject: [PATCH] * configure.in: New --enable-debug-malloc configuration option. --- configure.in | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/configure.in b/configure.in index 2d711a6be..f7c0ffe00 100644 --- a/configure.in +++ b/configure.in @@ -52,6 +52,12 @@ AC_ARG_ENABLE(debug-freelist, AC_DEFINE(GUILE_DEBUG_FREELIST) fi) +AC_ARG_ENABLE(debug-malloc, + [ --enable-debug-malloc Include malloc debugging code], + if test "$enable_debug_malloc" = y || test "$enable_debug_malloc" = yes; then + AC_DEFINE(GUILE_DEBUG_MALLOC) + fi) + AC_ARG_ENABLE(arrays, [ --disable-arrays omit array and uniform array support],, enable_arrays=yes) @@ -90,6 +96,10 @@ if test "$enable_networking" = yes; then AC_DEFINE(HAVE_NETWORKING) fi +if test "$enable_debug_malloc" = yes; then + LIBOBJS="$LIBOBJS debug-malloc.o" +fi + #-------------------------------------------------------------------- AC_LIBLTDL_CONVENIENCE