]> git.eshelyaron.com Git - emacs.git/commitdiff
(doug_lea_malloc): First check for SYSTEM_MALLOC,
authorRichard M. Stallman <rms@gnu.org>
Fri, 11 Apr 1997 08:24:41 +0000 (08:24 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 11 Apr 1997 08:24:41 +0000 (08:24 +0000)
in case it is desirable to disable the GNU malloc features withglibc.

configure.in

index 0452c255271ee6767cd7669bf34aec8d0d2f1d4f..381cb7128ce01b9e8fa8f756012fc91dcb74b5d8 100644 (file)
@@ -1284,15 +1284,18 @@ 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)
-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
+if test "${system_malloc}" = "yes"; then
   GNU_MALLOC=no
   GNU_MALLOC_reason="
     (The GNU allocators don't work with this system configuration.)"
 fi
+if test "$doug_lea_malloc" = "yes" ; then
+  if test "$GNU_MALLOC" = yes ; then
+    GNU_MALLOC_reason="
+      (Using new Doug Lea's new malloc from the GNU C Library.)"
+  fi
+  AC_DEFINE(DOUG_LEA_MALLOC)
+fi
 
 if test x"${REL_ALLOC}" = x; then
   REL_ALLOC=${GNU_MALLOC}