with_target_bdw_gc
with_target_bdw_gc_include
with_target_bdw_gc_lib
+enable_algol68_gc_debug
'
ac_precious_vars='build_alias
host_alias
--disable-symvers disable symbol versioning for libga68
--enable-algol68-gc enable use of Boehm's garbage collector with the GNU
Algol runtime
+ --enable-algol68-gc-debug
+ enable use of Boehm's garbage collector debug
+ functions with the GNU Algol runtime
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12832 "configure"
+#line 12836 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12938 "configure"
+#line 12942 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
fi
+# Check whether --enable-algol68-gc-debug was given.
+if test "${enable_algol68_gc_debug+set}" = set; then :
+ enableval=$enable_algol68_gc_debug;
+else
+ enable_algol68_gc_debug=no
+fi
+
+
bdw_lib_dir=
case "$enable_algol68_gc" in
no)
esac
+case "$enable_algol68_gc_debug" in
+ no) ;;
+ *)
+ if test "$use_bdw_gc" = no; then
+ as_fn_error $? "GC debugging enabled but GC is not being used" "$LINENO" 5
+ else
+ LIBGA68_GCFLAGS="$LIBGA68_GCFLAGS -DGC_DEBUG"
+ fi
+ ;;
+esac
+
# Subst some variables used in Makefile.am
[AS_HELP_STRING([--with-target-bdw-gc-lib=PATHLIST],
[specify directories for installed bdw-gc library])])
+AC_ARG_ENABLE(algol68-gc-debug,
+[AS_HELP_STRING([--enable-algol68-gc-debug],
+ [enable use of Boehm's garbage collector debug functions
+ with the GNU Algol runtime])],,enable_algol68_gc_debug=no)
+
bdw_lib_dir=
case "$enable_algol68_gc" in
no)
esac
AC_SUBST(extra_darwin_ldflags_libga68)
+case "$enable_algol68_gc_debug" in
+ no) ;;
+ *)
+ if test "$use_bdw_gc" = no; then
+ AC_MSG_ERROR([GC debugging enabled but GC is not being used])
+ else
+ LIBGA68_GCFLAGS="$LIBGA68_GCFLAGS -DGC_DEBUG"
+ fi
+ ;;
+esac
+
# Subst some variables used in Makefile.am
AC_SUBST(LIBGA68_GCFLAGS)
AC_SUBST(LIBGA68_BOEHM_GC_INCLUDES)
void *
_libga68_realloc (void *ptr, size_t size)
{
- void *res = (void *) GC_realloc (ptr, size);
+ void *res = (void *) GC_REALLOC (ptr, size);
if (!res)
_libga68_abort ("Virtual memory exhausted\n");
return res;
void *
_libga68_realloc_unchecked (void *ptr, size_t size)
{
- void *res = (void *) GC_realloc (ptr, size);
+ void *res = (void *) GC_REALLOC (ptr, size);
return res;
}
void *
_libga68_malloc (size_t size)
{
- void *res = (void *) GC_malloc (size);
+ void *res = (void *) GC_MALLOC (size);
if (!res)
_libga68_abort ("Virtual memory exhausted\n");
return res;