dnl ])
+squid_opt_useragent_log="no"
AC_ARG_ENABLE(useragent-log,
AS_HELP_STRING([--enable-useragent-log],[Enable logging of User-Agent header]), [
- if test "$enableval" = "yes" ; then
- AC_MSG_NOTICE([User-Agent logging enabled])
- AC_DEFINE(USE_USERAGENT_LOG,1,
- [If you want to log User-Agent request header values, define this.])
- fi
+ SQUID_YESNO([$enableval],[unrecognized argument to --enable-useragent-log: $enableval])
+ squid_opt_useragent_log=$enableval
])
+AC_MSG_NOTICE([User-Agent logging enabled: $squid_opt_useragent_log])
+SQUID_DEFINE_UNQUOTED(USE_USERAGENT_LOG,$squid_opt_useragent_log,
+ [If you want to log User-Agent request header values, define this.])
+squid_opt_referer_log="no"
AC_ARG_ENABLE(referer-log,
- AS_HELP_STRING([--enable-referer-log],[Enable logging of Referer header]),
-[ if test "$enableval" = "yes" ; then
- AC_MSG_NOTICE([Referer logging enabled])
- AC_DEFINE(USE_REFERER_LOG,1,
- [If you want to log Referer request header values, define this.
- By default, they are written to referer.log in the Squid log directory.])
- fi
+ AS_HELP_STRING([--enable-referer-log],[Enable logging of Referer header]), [
+ SQUID_YESNO([$enableval],[unrecognized argument to --enable-referer-log: $enableval])
+ squid_opt_referer_log=$enableval
])
+AC_MSG_NOTICE([Referer logging enabled: $squid_opt_referer_log])
+SQUID_DEFINE_UNQUOTED(USE_REFERER_LOG,$squid_opt_referer_log,
+ [If you want to log Referer request header values, define this.
+ By default, they are written to referer.log in the Squid log directory.])
squid_opt_use_wccp="yes"
AC_ARG_ENABLE(wccp,
AS_HELP_STRING([--disable-wccp],[Disable Web Cache Coordination Protocol]), [
-if test "$enableval" = "no" ; then
- squid_opt_use_wccp="no"
- fi
+ SQUID_YESNO([$enableval],[unrecognized argument to --disable-wccp: $enableval])
+ squid_opt_use_wccp=$enableval
])
AC_MSG_NOTICE([Web Cache Coordination Protocol enabled: $squid_opt_use_wccp])
SQUID_DEFINE_UNQUOTED(USE_WCCP, $squid_opt_use_wccp, [Define to enable WCCP])
squid_opt_use_wccp_v2="yes"
AC_ARG_ENABLE(wccpv2,
AS_HELP_STRING([--disable-wccpv2],[Disable Web Cache Coordination V2 Protocol]), [
-if test "$enableval" = "no" ; then
- squid_opt_use_wccp_v2=yes
- fi
+ SQUID_YESNO([$enableval],[unrecognized argument to --disable-wccpv2: $enableval])
+ squid_opt_use_wccp_v2=$enableval
])
AC_MSG_NOTICE([Web Cache Coordination V2 Protocol enabled: $squid_opt_use_wccp_v2])
SQUID_DEFINE_UNQUOTED(USE_WCCPv2,$squid_opt_use_wccp_v2,[Define to enable WCCP V2])
-
squid_opt_kill_parent="no"
AC_ARG_ENABLE(kill-parent-hack,
AS_HELP_STRING([--enable-kill-parent-hack],[Kill parent on shutdown]), [
- if test "$enableval" = "yes" ; then
- squid_opt_kill_parent="yes"
- fi
+ SQUID_YESNO([$enableval],[unrecognized argument to --enable-kill-parent-hack: $enableval])
+ squid_opt_kill_parent=$enableval
])
AC_MSG_NOTICE([Kill parent on shutdown hack enabled: $squid_opt_kill_parent])
SQUID_DEFINE_UNQUOTED(KILL_PARENT_OPT,$squid_opt_kill_parent,
(presumably the RunCache script) upon receipt of SIGTERM or SIGINT.
Use with caution.])
-
squid_opt_enable_snmp="yes"
AC_ARG_ENABLE(snmp,
- AS_HELP_STRING([--disable-snmp],[Disable SNMP monitoring support]), [
- if test "$enableval" = "no" ; then
- AC_MSG_NOTICE([SNMP monitoring disabled])
- squid_opt_enable_snmp="no"
- fi
+ AS_HELP_STRING([--disable-snmp],[Disable SNMP monitoring support]), [
+ SQUID_YESNO([$enableval],[unrecognized argument to --disable-snmp: $enableval])
+ squid_opt_enable_snmp=$enableval
])
if test "$squid_opt_enable_snmp" = "yes"; then
SNMPLIB='../snmplib/libsnmp.a'
AC_ARG_ENABLE(cachemgr-hostname,
AS_HELP_STRING([--enable-cachemgr-hostname=hostname],
[Make cachemgr.cgi default to this host.
- If unspecified, uses the name of the build-host]),
-[ case $enableval in
- yes)
- AC_DEFINE(CACHEMGR_HOSTNAME,[getfullhostname()],
- [If you are upset that the cachemgr.cgi form comes up with the hostname field blank, then define this to getfullhostname()])
- AC_MSG_NOTICE([Cachemgr default hostname == host where cachemgr runs])
- ;;
- no)
- : # Nothing to do..
- ;;
- *)
- AC_DEFINE_UNQUOTED(CACHEMGR_HOSTNAME,"${enableval}")
- AC_MSG_NOTICE([Cachemgr default hostname set to ${enableval}])
- ;;
- esac
+ If unspecified, uses the name of the build-host]), [
+ case $enableval in
+ yes)
+ AC_DEFINE(CACHEMGR_HOSTNAME,[getfullhostname()],
+ [If you are upset that the cachemgr.cgi form comes up with the hostname field blank, then define this to getfullhostname()])
+ AC_MSG_NOTICE([Cachemgr default hostname == host where cachemgr runs])
+ ;;
+ no)
+ : # Nothing to do..
+ ;;
+ *)
+ AC_DEFINE_UNQUOTED(CACHEMGR_HOSTNAME,"${enableval}")
+ AC_MSG_NOTICE([Cachemgr default hostname set to ${enableval}])
+ ;;
+ esac
])
AM_CONDITIONAL(USE_SQUID_EUI, false)