aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-04-11 08:24:41 +0000
committerRichard M. Stallman1997-04-11 08:24:41 +0000
commit8cd880383cdcfdefdc82f5c3fb6224f52f53fa5b (patch)
tree38eae80d0da7dec6c490212b45c9bcacf66eca4e
parent27d77e96424743b33a13b0cb3b1d3b2bdf678fa6 (diff)
downloademacs-8cd880383cdcfdefdc82f5c3fb6224f52f53fa5b.tar.gz
emacs-8cd880383cdcfdefdc82f5c3fb6224f52f53fa5b.zip
(doug_lea_malloc): First check for SYSTEM_MALLOC,
in case it is desirable to disable the GNU malloc features withglibc.
-rw-r--r--configure.in13
1 files changed, 8 insertions, 5 deletions
diff --git a/configure.in b/configure.in
index 0452c255271..381cb7128ce 100644
--- a/configure.in
+++ b/configure.in
@@ -1284,15 +1284,18 @@ GNU_MALLOC=yes
1284doug_lea_malloc=yes 1284doug_lea_malloc=yes
1285AC_CHECK_FUNC(malloc_get_state, ,doug_lea_malloc=no) 1285AC_CHECK_FUNC(malloc_get_state, ,doug_lea_malloc=no)
1286AC_CHECK_FUNC(malloc_set_state, ,doug_lea_malloc=no) 1286AC_CHECK_FUNC(malloc_set_state, ,doug_lea_malloc=no)
1287if test "$doug_lea_malloc" = "yes" ; then 1287if test "${system_malloc}" = "yes"; then
1288 GNU_MALLOC_reason="
1289 (Using new Doug Lea's new malloc from the GNU C Library.)"
1290 AC_DEFINE(DOUG_LEA_MALLOC)
1291elif test "${system_malloc}" = "yes"; then
1292 GNU_MALLOC=no 1288 GNU_MALLOC=no
1293 GNU_MALLOC_reason=" 1289 GNU_MALLOC_reason="
1294 (The GNU allocators don't work with this system configuration.)" 1290 (The GNU allocators don't work with this system configuration.)"
1295fi 1291fi
1292if test "$doug_lea_malloc" = "yes" ; then
1293 if test "$GNU_MALLOC" = yes ; then
1294 GNU_MALLOC_reason="
1295 (Using new Doug Lea's new malloc from the GNU C Library.)"
1296 fi
1297 AC_DEFINE(DOUG_LEA_MALLOC)
1298fi
1296 1299
1297if test x"${REL_ALLOC}" = x; then 1300if test x"${REL_ALLOC}" = x; then
1298 REL_ALLOC=${GNU_MALLOC} 1301 REL_ALLOC=${GNU_MALLOC}