Moved m4 stuff to m4 dir to match how we're doing it in the other projects.
[awesomized/libmemcached] / m4 / debug.m4
diff --git a/m4/debug.m4 b/m4/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 ---------------------------------------------------------------------------