diff options
| -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 |