Commit b05a95cb authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

If malloc_{get,set}_state exist, set DOUG_LEA_MALLOC.

parent 486ece3d
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment