- HAVE_GC_SET_START_CALLBACK was defined unconditionally
- there was no AC_DEFINE if system_boehm was false
- there was a typo in one usage site of this macro
see
6b754564f1d1a2d320b1fd46f0c0da2e623862c1
if test "${system_boehm}" = "yes"; then
AC_CHECK_LIB( [gc], [GC_set_start_callback],
[AC_DEFINE(HAVE_GC_SET_START_CALLBACK)], [] )
+ else
+ AC_DEFINE(HAVE_GC_SET_START_CALLBACK)
fi
AC_MSG_CHECKING( [whether we can use the existing Boehm-Weiser library] )
AC_MSG_RESULT( [${system_boehm}] )
#ifdef GBC_BOEHM
static void (*GC_old_start_callback)(void) = NULL;
-#ifdef HAVE_GC_START_CALLBACK
+#ifdef HAVE_GC_SET_START_CALLBACK
extern void GC_set_start_callback(void *);
extern void *GC_get_start_callback(void *);
#else
fi
+ else
+ $as_echo "#define HAVE_GC_SET_START_CALLBACK 1" >>confdefs.h
+
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use the existing Boehm-Weiser library " >&5
$as_echo_n "checking whether we can use the existing Boehm-Weiser library ... " >&6; }
#endif
/* GC_set_start_callback */
-#define HAVE_GC_SET_START_CALLBACK
+#undef HAVE_GC_SET_START_CALLBACK
/*
* SYSTEM FEATURES: