1 ## ----------------------------------- ##
2 ## Check if --with-dmalloc was given. ##
3 ## From Franc,ois Pinard ##
4 ## ----------------------------------- ##
8 AC_DEFUN(AM_WITH_DMALLOC,
9 [AC_MSG_CHECKING(if malloc debugging is wanted)
11 [ --with-dmalloc use dmalloc, as in
12 ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz],
13 [if test "$withval" = yes; then
15 AC_DEFINE(WITH_DMALLOC)
16 LIBS="$LIBS -ldmalloc"
20 fi], [AC_MSG_RESULT(no)])