]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
CPU profiler is a dev testing feature. Disable by default.
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 24 Dec 2010 14:00:09 +0000 (07:00 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 24 Dec 2010 14:00:09 +0000 (07:00 -0700)
configure.ac

index 1394e0ff9859393f98c72e2132f1e00cc2c9c153..d846a6ad95492261848ade8c7184338f2fec1a9a 100644 (file)
@@ -2103,14 +2103,12 @@ AC_ARG_ENABLE(cpu-profiling,
 SQUID_YESNO([$enableval],
             [unrecognized argument to --enable-cpu-profiling: $enableval])
 ])
-if test "x$enable_cpu_profiling" != "xno"; then
+# Default OFF. This is a debug feature. Only check and enable if forced ON.
+if test "x$enable_cpu_profiling" = "xyes"; then
   SQUID_CHECK_FUNCTIONAL_CPU_PROFILER
-  if test "x$enable_cpu_profiling" = "xyes" -a "x$squid_cv_cpu_profiler_works" = "xno"; then
+  if test "x$squid_cv_cpu_profiler_works" = "xno"; then
     AC_MSG_ERROR([CPU profiling will not be functional in this build.])
-  elif test "x$squid_cv_cpu_profiler_works" = "xno"; then
-    AC_MSG_NOTICE([CPU profiling will not be functional in this build.])
   fi
-  enable_cpu_profiling="$squid_cv_cpu_profiler_works"
 fi
 SQUID_DEFINE_BOOL(USE_XPROF_STATS,${enable_cpu_profiling:=no},
                       [Define to enable CPU profiling within Squid])