diff options
author | Egor Duda <deo@logos-m.ru> | 2001-04-24 15:25:31 +0000 |
---|---|---|
committer | Egor Duda <deo@logos-m.ru> | 2001-04-24 15:25:31 +0000 |
commit | 8db71e01698f00c71eed124b1609f019776900a1 (patch) | |
tree | 3614b12bd953007317cacf6e89eecccc24497c4a /winsup/cygwin/configure.in | |
parent | 19a90cfeaf3f3ed0de79f061a76cd5cabfd0f021 (diff) | |
download | newlib-8db71e01698f00c71eed124b1609f019776900a1.zip newlib-8db71e01698f00c71eed124b1609f019776900a1.tar.gz newlib-8db71e01698f00c71eed124b1609f019776900a1.tar.bz2 |
* dlmalloc.c: New file. Port of Doug Lea's malloc
* dlmalloc.h: Ditto.
* Makefile.in: Add support for MALLOC_DEBUG
* config.h.in: Ditto.
* winsup.h: Ditto.
* configure.in: Add --enable-malloc-debugging option.
* configure: Regenerate.
* debug.h: Include declarations for debugging malloc.
* tty.cc (grantpt): Fix definition.
(unlockpt): Ditto.
Diffstat (limited to 'winsup/cygwin/configure.in')
-rw-r--r-- | winsup/cygwin/configure.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/winsup/cygwin/configure.in b/winsup/cygwin/configure.in index 81ba6d9..d8e9180 100644 --- a/winsup/cygwin/configure.in +++ b/winsup/cygwin/configure.in @@ -166,6 +166,17 @@ no) ;; esac ]) +MALLOC_OFILES= +AC_ARG_ENABLE(malloc-debugging, +[ --enable-malloc-debugging Build a cygwin DLL with heap sanity checking (this is very slow, use only if you have heap corruption problems)], +[case "${enableval}" in +yes) AC_DEFINE(MALLOC_DEBUG) + MALLOC_OFILES=dlmalloc.o + ;; +no) ;; +esac +]) + AC_ARG_ENABLE(vfork, [ --enable-vfork Build a cygwin DLL which uses experimental vfork code], [case "${enableval}" in @@ -234,6 +245,7 @@ case "$target_cpu" in *) AC_MSG_ERROR(Invalid target processor \"$target_cpu\") ;; esac +AC_SUBST(MALLOC_OFILES) AC_SUBST(DLL_ENTRY) AC_SUBST(DEF_DLL_ENTRY) AC_SUBST(ALLOCA) |