Line | |
---|
1 | # Local additions to Autoconf macros.
|
---|
2 | # Copyright (C) 1992, 1994, 2004, 2006 Free Software Foundation, Inc.
|
---|
3 | # Francois Pinard <pinard@iro.umontreal.ca>, 1992.
|
---|
4 |
|
---|
5 | # Check if --with-dmalloc was given.
|
---|
6 |
|
---|
7 | AC_DEFUN([M4_WITH_DMALLOC],
|
---|
8 | [AC_MSG_CHECKING([if malloc debugging is wanted])
|
---|
9 | AC_ARG_WITH([dmalloc],
|
---|
10 | [AS_HELP_STRING([--with-dmalloc],
|
---|
11 | [use dmalloc, as in dmalloc.tar.gz from
|
---|
12 | @/ftp.antaire.com:antaire/src/dmalloc.])],
|
---|
13 | [if test "$withval" = yes; then
|
---|
14 | AC_MSG_RESULT([yes])
|
---|
15 | AC_DEFINE([WITH_DMALLOC], [1], [Define to 1 if malloc debugging is enabled])
|
---|
16 | LIBS="$LIBS -ldmalloc"
|
---|
17 | LDFLAGS="$LDFLAGS -g"
|
---|
18 | else
|
---|
19 | AC_MSG_RESULT([no])
|
---|
20 | fi], [AC_MSG_RESULT([no])])])
|
---|
Note:
See
TracBrowser
for help on using the repository browser.