summary refs log tree commit diff
path: root/configure.in
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2008-08-13 16:00:57 +0200
committerAlexander Barton <alex@barton.de>2008-08-13 16:00:57 +0200
commitc769cbecb6214f518135c4bb2a52479747c2bf7b (patch)
tree518d4fa3b3f21c1a9b268013b95f3e608a1f7799 /configure.in
parent707cc42dec2439da1fdee4ed3eb0e0a44d5ea9fe (diff)
downloadngircd-c769cbecb6214f518135c4bb2a52479747c2bf7b.tar.gz
ngircd-c769cbecb6214f518135c4bb2a52479747c2bf7b.zip
Enable GNU libc "memory tracing" when compiled with debug code.
This patch lets ngIRCd activate "memory tracing" of the GNU libc when
compiled with debug code (configure: --enable-debug) and the functionality
is available on the system.
(http://www.gnu.org/software/libc/manual/html_node/Allocation-Debugging.html)
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 7cbc80ac..36f0bc28 100644
--- a/configure.in
+++ b/configure.in
@@ -457,6 +457,7 @@ AC_ARG_ENABLE(debug,
 if test "$x_debug_on" = "yes"; then
 	AC_DEFINE(DEBUG, 1)
 	test "$GCC" = "yes" && CFLAGS="-pedantic $CFLAGS"
+	AC_CHECK_FUNCS(mtrace)
 fi
 
 # enable "strict RFC rules"?