summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2006-02-24 02:52:33 +0000
committerStef Walter <stef@memberwebs.com>2006-02-24 02:52:33 +0000
commitbcb73670d04b2354a2c265aff76d354805c7139c (patch)
treedee8b148070dab89a20d8ba72a54b9482882b9ef
parentb3c5a880acf988f8792573b93f5b32cd36c0e917 (diff)
Add dmalloc support to clamsmtp.
-rw-r--r--configure.in14
1 files changed, 9 insertions, 5 deletions
diff --git a/configure.in b/configure.in
index 3f19d18..7d2c4be 100644
--- a/configure.in
+++ b/configure.in
@@ -36,8 +36,8 @@ dnl Nate Nielsen <nielsen@memberwebs.com>
dnl
dnl Process this file with autoconf to produce a configure script.
-AC_INIT(clamsmtp, 1.6.90, nielsen@memberwebs.com)
-AM_INIT_AUTOMAKE(clamsmtp, 1.6.90)
+AC_INIT(clamsmtp, 1.6.91, nielsen@memberwebs.com)
+AM_INIT_AUTOMAKE(clamsmtp, 1.6.91)
LDFLAGS="$LDFLAGS -L/usr/local/lib"
CFLAGS="$CFLAGS -I/usr/local/include"
@@ -115,9 +115,13 @@ AC_ARG_ENABLE(dmalloc,
[malloc memory debugging (default: no)]))
if test "$enable_dmalloc" = "yes"; then
- AC_DEFINE_UNQUOTED(WITH_DMALLOC, 1, [malloc memory debugging])
- LIBS="${LIBS} -ldmalloc"
- echo "enabling dmalloc memory debugging"
+
+ AC_CHECK_LIB(dmalloc, malloc, , [echo "DMalloc library not installed"; exit 1])
+
+ AC_DEFINE_UNQUOTED(WITH_DMALLOC, 1, [malloc memory debugging])
+ LIBS="${LIBS} -ldmalloc"
+ echo "enabling dmalloc memory debugging"
+
fi
# Have to resolve this for the path below