From bcb73670d04b2354a2c265aff76d354805c7139c Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 24 Feb 2006 02:52:33 +0000 Subject: Add dmalloc support to clamsmtp. --- configure.in | 14 +++++++++----- 1 file 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 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 -- cgit v1.2.3