New version update
[m6w6/libmemcached] / config / debug.m4
1 dnl ---------------------------------------------------------------------------
2 dnl Macro: DEBUG_TEST
3 dnl ---------------------------------------------------------------------------
4 AC_ARG_ENABLE(debug,
5 [ --enable-debug Build with support for the DEBUG.],
6 [
7 AC_DEFINE([HAVE_DEBUG], [1], [Enables DEBUG Support])
8 AC_CHECK_PROGS(DEBUG, debug)
9 ENABLE_DEBUG="yes"
10 AC_SUBST(DEBUGFLAGS)
11 AC_SUBST(HAVE_DEBUG)
12 ],
13 [
14 ENABLE_DEBUG="no"
15 ]
16 )
17 AM_CONDITIONAL([HAVE_DEBUG], [ test "$ENABLE_DEBUG" = "yes" ])
18 dnl ---------------------------------------------------------------------------
19 dnl End Macro: DEBUG_TEST
20 dnl ---------------------------------------------------------------------------