changeset 18985:3fa26ad85f77

(doug_lea_malloc): Make __after_morecore_hook a prerequisite to the use of Doug Lea's malloc.
author Richard M. Stallman <rms@gnu.org>
date Fri, 25 Jul 1997 17:57:47 +0000
parents d2c26a873eb4
children d22331526e2d
files configure.in
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Fri Jul 25 17:29:29 1997 +0000
+++ b/configure.in	Fri Jul 25 17:57:47 1997 +0000
@@ -1321,6 +1321,11 @@
 doug_lea_malloc=yes
 AC_CHECK_FUNC(malloc_get_state, ,doug_lea_malloc=no)
 AC_CHECK_FUNC(malloc_set_state, ,doug_lea_malloc=no)
+AC_MSG_CHECKING(whether __after_morecore_hook exists)
+AC_TRY_LINK([extern void (* __after_morecore_hook)();],[__after_morecore_hook = 0],
+  [AC_MSG_RESULT(yes)],
+  [AC_MSG_RESULT(no)
+   doug_lea_malloc=no])
 if test "${system_malloc}" = "yes"; then
   GNU_MALLOC=no
   GNU_MALLOC_reason="