diff options
author | Richard M. Stallman <rms@gnu.org> | 1997-04-09 03:52:47 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1997-04-09 03:52:47 +0000 |
commit | 4a8d466221b69365a17181c299e21df94c9a01ed (patch) | |
tree | 7766637ce1166ab8b43e6c9927013aa0331e5dd6 /configure.in | |
parent | 907d4824150598588f5852c507fe887c2afc33ef (diff) | |
download | emacs-4a8d466221b69365a17181c299e21df94c9a01ed.tar.gz |
If malloc_{get,set}_state exist, set DOUG_LEA_MALLOC.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 97c21d9804e..0452c255271 100644 --- a/configure.in +++ b/configure.in @@ -1281,10 +1281,17 @@ UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" # Do the opsystem or machine files prohibit the use of the GNU malloc? # Assume not, until told otherwise. GNU_MALLOC=yes -if test "${system_malloc}" = "yes"; then +doug_lea_malloc=yes +AC_CHECK_FUNC(malloc_get_state, ,doug_lea_malloc=no) +AC_CHECK_FUNC(malloc_set_state, ,doug_lea_malloc=no) +if test "$doug_lea_malloc" = "yes" ; then + GNU_MALLOC_reason=" + (Using new Doug Lea's new malloc from the GNU C Library.)" + AC_DEFINE(DOUG_LEA_MALLOC) +elif test "${system_malloc}" = "yes"; then GNU_MALLOC=no GNU_MALLOC_reason=" - (The GNU allocators don't work with this system configuration.)" + (The GNU allocators don't work with this system configuration.)" fi if test x"${REL_ALLOC}" = x; then |