bump standards version; extra is now optional
[deb_pkgs/spamass-milter.git] / ac_dmalloc.m4
1 ## ----------------------------------- ##
2 ## Check if --with-dmalloc was given.  ##
3 ## ----------------------------------- ##
4
5 # serial 1
6
7 AC_DEFUN([DN_WITH_DMALLOC],
8 [AC_MSG_CHECKING([if malloc debugging is wanted])
9 AC_ARG_WITH(dmalloc,
10 [  --with-dmalloc          use dmalloc ( http://www.dmalloc.com )],
11 [if test "$withval" = yes; then
12   AC_MSG_RESULT(yes)
13   AC_DEFINE(WITH_DMALLOC,1,
14             [Define if using the dmalloc debugging malloc package])
15   AC_CHECK_HEADERS(dmalloc.h)
16   AC_CHECK_LIB(dmallocthcxx, dmalloc_malloc,,AC_MSG_ERROR([Threaded C++ dmalloc library not found]))
17 else
18   AC_MSG_RESULT(no)
19 fi], [AC_MSG_RESULT(no)])
20 ])