diff options
| author | Richard M. Stallman | 1997-04-09 03:52:47 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-04-09 03:52:47 +0000 |
| commit | b05a95cbefcc974fb7188d787bf2a9c30d3849ca (patch) | |
| tree | bd21dfd61c46a72bfb30588e74be3244156a783b | |
| parent | 486ece3d969a24cd695f19f0e27f71f3ef03770f (diff) | |
| download | emacs-b05a95cbefcc974fb7188d787bf2a9c30d3849ca.tar.gz emacs-b05a95cbefcc974fb7188d787bf2a9c30d3849ca.zip | |
If malloc_{get,set}_state exist, set DOUG_LEA_MALLOC.
| -rw-r--r-- | configure.in | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 97c21d9804e..0452c255271 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -1281,10 +1281,17 @@ UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |||
| 1281 | # Do the opsystem or machine files prohibit the use of the GNU malloc? | 1281 | # Do the opsystem or machine files prohibit the use of the GNU malloc? |
| 1282 | # Assume not, until told otherwise. | 1282 | # Assume not, until told otherwise. |
| 1283 | GNU_MALLOC=yes | 1283 | GNU_MALLOC=yes |
| 1284 | if test "${system_malloc}" = "yes"; then | 1284 | doug_lea_malloc=yes |
| 1285 | AC_CHECK_FUNC(malloc_get_state, ,doug_lea_malloc=no) | ||
| 1286 | AC_CHECK_FUNC(malloc_set_state, ,doug_lea_malloc=no) | ||
| 1287 | if test "$doug_lea_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) | ||
| 1291 | elif test "${system_malloc}" = "yes"; then | ||
| 1285 | GNU_MALLOC=no | 1292 | GNU_MALLOC=no |
| 1286 | GNU_MALLOC_reason=" | 1293 | GNU_MALLOC_reason=" |
| 1287 | (The GNU allocators don't work with this system configuration.)" | 1294 | (The GNU allocators don't work with this system configuration.)" |
| 1288 | fi | 1295 | fi |
| 1289 | 1296 | ||
| 1290 | if test x"${REL_ALLOC}" = x; then | 1297 | if test x"${REL_ALLOC}" = x; then |