Hi,

This is kind of a convenience patch.  It allows you
to specify the type of pools debugging you want at
configure time.
Any objections?

Sander

Index: configure.in
===================================================================
RCS file: /home/cvs/apr/configure.in,v
retrieving revision 1.398
diff -u -r1.398 configure.in
--- configure.in        13 Jan 2002 04:20:10 -0000      1.398
+++ configure.in        14 Jan 2002 15:23:58 -0000
@@ -188,6 +188,15 @@
   fi
 )dnl

+AC_ARG_ENABLE(pool-debug,
+  [  --enable-pool-debug[={yes|verbose}]],
+  [ if test -z "$enableval" -o "$enableval" = "yes"; then
+        APR_ADDTO(CPPFLAGS, -DAPR_POOL_DEBUG)
+    elif test "$enableval" = "verbose"; then
+        APR_ADDTO(CPPFLAGS, -DAPR_POOL_DEBUG_VERBOSE)
+    fi
+  ])
+
 dnl Electric Fence malloc checker.
 dnl --with-efence specifies the path to Electric Fence
 AC_ARG_WITH(efence,

Reply via email to