diff options
author | Paul Smith <psmith@gnu.org> | 1999-07-21 05:53:23 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 1999-07-21 05:53:23 +0000 |
commit | 588da9812e055fbceb900c350ab406f97eccbf37 (patch) | |
tree | cc291944695d7e922ac93c5ae293289349acd7d5 /configure.in | |
parent | 73846549f62b832ca6ff761ad3640a86d3b32c86 (diff) | |
download | gunmake-588da9812e055fbceb900c350ab406f97eccbf37.tar.gz |
* Add configure option to enable dmalloc library.
* Various code cleanups.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 4bcf56f..f62c192 100644 --- a/configure.in +++ b/configure.in @@ -136,6 +136,18 @@ case "$ac_cv_func_pipe $make_cv_job_server" in "yes yes") AC_DEFINE(MAKE_JOBSERVER) ;; esac +dnl Allow building with dmalloc + +AC_ARG_ENABLE(dmalloc, + [ --enable-dmalloc Enable support for the dmalloc debugging library], + [make_cv_dmalloc="$enableval"], + [make_cv_dmalloc="no"]) + +case "$make_cv_dmalloc" in + yes) AC_CHECK_HEADERS(dmalloc.h) + AC_CHECK_LIB(dmalloc, dmalloc_shutdown) + CPPFLAGS="$CPPFLAGS -DDMALLOC_FUNC_CHECK" ;; +esac AC_CACHE_CHECK(for location of SCCS get command, make_cv_path_sccs_get, [ if test -f /usr/sccs/get; then |