[Print stack traces on fatal errors])
-# Enable USE_XPROF_STATS
+# CPU Profiling options handling
squid_opt_enable_cpu_profiling=no
AC_ARG_ENABLE(cpu-profiling,
AS_HELP_STRING([--enable-cpu-profiling],
AM_CONDITIONAL(ENABLE_XPROF_STATS,
test $squid_opt_enable_cpu_profiling = "yes")
-dnl Enable X-Accelerator-Vary for Vary support within an accelerator setup
+# Enable X-Accelerator-Vary for Vary support within an accelerator setup
+squid_opt_enable_x_accelerator_vary=no
AC_ARG_ENABLE(x-accelerator-vary,
- AS_HELP_STRING([--enable-x-accelerator-vary],[Enable support for the X-Accelerator-Vary
+ AS_HELP_STRING([--enable-x-accelerator-vary],
+ [Enable support for the X-Accelerator-Vary
HTTP header. Can be used to indicate
variance within an accelerator setup.
Typically used together with other code
- that adds custom HTTP headers to the requests.]),
-[ if test "$enableval" = "yes" ; then
- AC_MSG_NOTICE([Enabling support for X-Accelerator-Vary])
- AC_DEFINE(X_ACCELERATOR_VARY, 1, [Enable support for the X-Accelerator-Vary HTTP header])
- fi
+ that adds custom HTTP headers to the requests.]), [
+SQUID_YESNO([$enableval],
+ [unrecognized argument to --enable-x-accelerator-vary: $enableval])
+squid_opt_enable_x_accelerator_vary=$enableval
])
+AC_MSG_NOTICE([X-Accelerator-Vary support enabled: $squid_opt_enable_x_accelerator_vary])
+SQUID_DEFINE_UNQUOTED([X_ACCELERATOR_VARY],$squid_opt_enable_x_accelerator_vary,
+ [Enable support for the X-Accelerator-Vary HTTP header])
AC_ARG_ENABLE(zph-qos,
AS_HELP_STRING([--enable-zph-qos],[Enable ZPH QOS support]),