From: Date: Thu, 25 Oct 2007 18:00:50 +0000 (-0700) Subject: Adding debug rules X-Git-Tag: 0_7~11 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=778edd59c0dcc55687e80adeeea6ce2552f8fcf1;p=m6w6%2Flibmemcached Adding debug rules --- diff --git a/ChangeLog b/ChangeLog index b5cf0190..47c3a5cd 100644 --- 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 index 00000000..9b177810 --- /dev/null +++ b/config/debug.m4 @@ -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 ---------------------------------------------------------------------------