- fixed build when using --enable-leak-detective

This commit is contained in:
Martin Willi
2006-05-23 08:00:29 +00:00
parent a2744feb63
commit 4acc8989ce
2 changed files with 6 additions and 1 deletions
-1
View File
@@ -77,7 +77,6 @@ AC_ARG_ENABLE(
[leak-detective],
AS_HELP_STRING([--enable-leak-detective],[enable malloc hooks to find memory leaks (default is NO).]),
leak_detective=true
AC_DEFINE(LEAK_DETECTIVE)
)
AM_CONDITIONAL(USE_LEAK_DETECTIVE, test x$leak_detective = xtrue)
+6
View File
@@ -20,6 +20,12 @@ INCLUDES = -I$(top_srcdir)/src/libstrongswan
EXTRA_DIST = asn1/oid.txt asn1/oid.pl
DISTCLEANFILES = asn1/oid.c asn1/oid.h
if USE_LEAK_DETECTIVE
libstrongswan_la_LIBADD += -ldl
AM_CFLAGS = -DLEAK_DETECTIVE
endif
# TODO: get perl from ./configure
PERL=perl