home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / share / aclocal / am_with_dmalloc.m4 < prev    next >
Encoding:
Text File  |  1996-10-12  |  581 b   |  22 lines

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