]> git.ipfire.org Git - thirdparty/pdns.git/blob - m4/pdns_enable_malloc_trace.m4
Merge pull request #13082 from jacobbunk/doc-send-recv-latencies
[thirdparty/pdns.git] / m4 / pdns_enable_malloc_trace.m4
1 AC_DEFUN([PDNS_ENABLE_MALLOC_TRACE], [
2 AC_MSG_CHECKING([whether to enable code malloc-trace])
3 AC_ARG_ENABLE([malloc-trace],
4 AS_HELP_STRING([--enable-malloc-trace],
5 [enable malloc-trace @<:@default=no@:>@]),
6 [enable_malloc_trace=$enableval],
7 [enable_malloc_trace=no]
8 )
9 AC_MSG_RESULT([$enable_malloc_trace])
10 AM_CONDITIONAL([MALLOC_TRACE], [test "x$enable_malloc_trace" = "xyes"])
11 AS_IF([test "x$enable_malloc_trace" = "xyes"],
12 AC_DEFINE([MALLOC_TRACE], [1], [Define to 1 if you want to benefit from malloc trace]) )
13 ])