From 4d1d2477555b528e96241724824152094d99a194 Mon Sep 17 00:00:00 2001 From: Francesco Chemolli Date: Mon, 5 Jul 2010 14:25:19 +0200 Subject: [PATCH] Refactored --enable-xmalloc-statistics --- configure.in | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index e9b8a65335..0480555256 100644 --- a/configure.in +++ b/configure.in @@ -405,11 +405,12 @@ AH_TEMPLATE(XMALLOC_STATISTICS,[Define to have malloc statistics]) AC_ARG_ENABLE(xmalloc-statistics, AS_HELP_STRING([--enable-xmalloc-statistics], [Show malloc statistics in status page]), [ -if test "$enableval" = "yes" ; then - AC_MSG_NOTICE([malloc statistics enabled]) - AC_DEFINE(XMALLOC_STATISTICS,1) -fi +SQUID_YESNO([$enableval], + [unrecognized argument to --enable-xmalloc-statistics: $enableval]) ]) +SQUID_DEFINE_BOOL(XMALLOC_STATISTICS,${enable_xmalloc_statistics:=no}, + [Show malloc statistics in status page]) +AC_MSG_NOTICE([xmalloc stats display: $enable_xmalloc_statistics]) squid_opt_aufs_threads="" AC_ARG_WITH(aufs-threads, -- 2.47.3