Adding debug rules
author <brian@dhcpvisitor216236.slac.stanford.edu> <>
Thu, 25 Oct 2007 18:00:50 +0000 (11:00 -0700)
committer <brian@dhcpvisitor216236.slac.stanford.edu> <>
Thu, 25 Oct 2007 18:00:50 +0000 (11:00 -0700)
ChangeLog
config/debug.m4 [new file with mode: 0644]

index b5cf01900243b60b0cb8ed43b1e9d66395a60b70..47c3a5cd9d7d0dad76dc535a49e9d1cd7c127f5b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@
     building strings as it goes.
   * Propper flush now for making sure we get all IO sent even when in
     non-block mode.
+  * Added --enable-debug rule for configure
 
 
 0.6 Wed Oct 17 08:41:35 PDT 2007
diff --git a/config/debug.m4 b/config/debug.m4
new file mode 100644 (file)
index 0000000..9b17781
--- /dev/null
@@ -0,0 +1,20 @@
+dnl ---------------------------------------------------------------------------
+dnl Macro: DEBUG_TEST
+dnl ---------------------------------------------------------------------------
+AC_ARG_ENABLE(debug,
+    [  --enable-debug      Build with support for the DEBUG.],
+    [ 
+      AC_DEFINE([HAVE_DEBUG], [1], [Enables DEBUG Support])
+      AC_CHECK_PROGS(DEBUG, debug)
+      ENABLE_DEBUG="yes" 
+      AC_SUBST(DEBUGFLAGS)
+      AC_SUBST(HAVE_DEBUG)
+    ],
+    [
+      ENABLE_DEBUG="no" 
+    ]
+    )
+AM_CONDITIONAL([HAVE_DEBUG], [ test "$ENABLE_DEBUG" = "yes" ])
+dnl ---------------------------------------------------------------------------
+dnl End Macro: DEBUG_TEST
+dnl ---------------------------------------------------------------------------