* configure.in (doug_lea_malloc): Check for __malloc_initialize_hook.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 22 Apr 2012 06:56:42 +0000 (23:56 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 22 Apr 2012 06:56:42 +0000 (23:56 -0700)
commit4b5b5289577b4cc89ee45595832f943ef9a43de6
treef9ba05ad7f326ebcf6616a00ae8ffc2e3446eceb
parentf01769f9ca9cc718cc5ae3c9b6f2669ad8d93c24
* configure.in (doug_lea_malloc): Check for __malloc_initialize_hook.

With glibc 2.14 or later, when compiled with GCC 4.7.0's
-Werror=deprecated-declarations flag, use of hooks like
__malloc_initialize_hook causes compilation to fail because these
hooks are deprecated.  Modify 'configure' to check for these hooks too.
Simplify the 'configure' code to test for all the hooks at once.
(emacs_cv_var___after_morecore_hook): Remove, replacing with ...
(emacs_cv_var_doug_lea_malloc): ... this new var.
ChangeLog
configure.in