From 52b3923a9dbcc2660f593bef288a624e5c7ed696 Mon Sep 17 00:00:00 2001 From: "Greg J. Badros" Date: Mon, 27 Sep 1999 23:29:07 +0000 Subject: [PATCH] * configure.in: Added --enable-debug-freelist option. * acconfig.h: Added DEBUG_FREELIST. --- acconfig.h | 3 +++ configure.in | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/acconfig.h b/acconfig.h index 6f5fc715e..28066bfcb 100644 --- a/acconfig.h +++ b/acconfig.h @@ -52,6 +52,9 @@ #undef DEBUG_EXTENSIONS #undef READER_EXTENSIONS +/* Define this if you want to debug the free list (helps w/ GC bugs) */ +#undef DEBUG_FREELIST + /* Define this if your system defines S_ISLNK in sys/stat.h */ #undef HAVE_S_ISLNK diff --git a/configure.in b/configure.in index dc8ab11e4..614e57de0 100644 --- a/configure.in +++ b/configure.in @@ -50,6 +50,12 @@ AC_ARG_ENABLE(guile-debug, AC_DEFINE(GUILE_DEBUG) fi) +AC_ARG_ENABLE(debug-freelist, + [ --enable-debug-freelist Include garbage collector freelist debugging code], + if test "$enable_debug_freelist" = y || test "$enable_debug_freelist" = yes; then + AC_DEFINE(DEBUG_FREELIST) + fi) + AC_ARG_ENABLE(posix, [ --disable-posix omit posix interfaces],, enable_posix=yes)