summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-07-25 17:57:47 +0000
committerRichard M. Stallman <rms@gnu.org>1997-07-25 17:57:47 +0000
commit36c4b2adbc2f34a52efad94fca31f47ede1887c4 (patch)
treed04850663001d61ad79e4c87cbe6f895aef4a75f
parentcd71b81f8cc71413c71f769fee92afb48359bfdf (diff)
downloademacs-36c4b2adbc2f34a52efad94fca31f47ede1887c4.tar.gz
(doug_lea_malloc): Make __after_morecore_hook a
prerequisite to the use of Doug Lea's malloc.
-rw-r--r--configure.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 477e0af63ba..21d1b2992c0 100644
--- a/configure.in
+++ b/configure.in
@@ -1321,6 +1321,11 @@ GNU_MALLOC=yes
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="