diff --git a/configure.ac b/configure.ac index ddf0f5f..95bdc0c 100644 --- a/configure.ac +++ b/configure.ac @@ -2089,24 +2089,9 @@ fi # Does the opsystem file prohibit the use of the GNU malloc? # Assume not, until told otherwise. -GNU_MALLOC=yes - -AC_CACHE_CHECK( - [whether malloc is Doug Lea style], - [emacs_cv_var_doug_lea_malloc], - [emacs_cv_var_doug_lea_malloc=no - dnl Hooks do not work with address sanitization. - if test "$emacs_cv_sanitize_address" != yes; then - AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [[#include - static void hook (void) {}]], - [[malloc_set_state (malloc_get_state ()); - __after_morecore_hook = hook; - __malloc_initialize_hook = hook;]])], - [emacs_cv_var_doug_lea_malloc=yes]) - fi]) -doug_lea_malloc=$emacs_cv_var_doug_lea_malloc +GNU_MALLOC=no + +doug_lea_malloc=no system_malloc=$emacs_cv_sanitize_address