AR_R="$AR r"
AC_SUBST(AR_R)
-squid_opt_enable_werror="yes"
AC_ARG_ENABLE(strict-error-checking,
AS_HELP_STRING([--disable-strict-error-checking],[By default squid is compiled
with all possible static compiler error-checks enabled.
- This flag disables the behavior]), [
- if test "x${enableval}" = "xno"
- then
- squid_opt_enable_werror="no"
- fi
+ This flag disables the behavior]), [
+ SQUID_YESNO([$enableval],
+ [Unrecognized argument to --disable-strict-error-checking: $enableval])
])
+AC_MSG_NOTICE([strict error checking enabled: ${enable_strict_error_checking:=yes}])
AC_MSG_CHECKING(whether to use loadable modules)
AC_ARG_ENABLE(loadable-modules,
AC_SUBST(MINGW_LIBS)
fi
-if test "x$CACHE_HTTP_PORT" = "x"; then
- CACHE_HTTP_PORT="3128"
-fi
-if test "x$CACHE_ICP_PORT" = "x"; then
- CACHE_ICP_PORT="3130"
-fi
-
dnl Substitutions
-AC_DEFINE_UNQUOTED(CACHE_HTTP_PORT, $CACHE_HTTP_PORT,
- [What default TCP port to use for HTTP listening?])
-AC_SUBST(CACHE_HTTP_PORT)
-AC_DEFINE_UNQUOTED(CACHE_ICP_PORT, $CACHE_ICP_PORT,
- [What default UDP port to use for ICP listening?])
-AC_SUBST(CACHE_ICP_PORT)
-
AC_DEFINE_UNQUOTED(CONFIG_HOST_TYPE, "$host",[Host type from configure])
AC_DEFINE_UNQUOTED(SQUID_CONFIGURE_OPTIONS, "$ac_configure_args",
DEFAULT_LOG_DIR="$localstatedir/logs"
AC_ARG_WITH(logdir,
AS_HELP_STRING([--with-logdir=PATH],
- [Default location for squid logs. default: $DEFAULT_LOG_DIR]), [
+ [Default location for squid logs. default: PREFIX/var/logs]), [
case $withval in
yes|no)
AC_MSG_ERROR( --with-logdir requires a directory PATH. --with-logdir=PATH )
DEFAULT_PIDFILE="$localstatedir/run/squid.pid"
AC_ARG_WITH(pidfile,
AS_HELP_STRING([--with-pidfile=PATH],
- [Default location for squid PID file. default: PREFIX/var/run/squid.pid]), [
+ [Default location for squid pid file. Default: PREFIX/var/run/squid.pid]), [
case $withval in
yes|no)
AC_MSG_ERROR( --with-pidfile requires a file PATH. --with-pidfile=PATH )
SQUID_CXXFLAGS=
fi
-if test "x$squid_opt_enable_werror" != "xno"; then
+if test "x$enable_strict_error_checking" != "xno"; then
SQUID_CFLAGS="$SQUID_CFLAGS $squid_cv_cc_option_werror"
SQUID_CXXFLAGS="$SQUID_CXXFLAGS $squid_cv_cc_option_werror"
fi
Optimization is good for production builds, but not
good for debugging. During development, use
--disable-optimizations to reduce compilation times
- and allow easier debugging. This option implicitly
- also enabled --disable-inline]), [
+ and allow easier debugging. This option implies
+ --disable-inline]), [
if test "x$enableval" = "xno" ; then
AC_MSG_NOTICE([Disabling compiler optimizations (-O flag)])
CFLAGS="`echo $CFLAGS | sed -e 's/-O[[0-9]]*//'`"
#endif
)
-dnl *BSD dont include the depenencies for all their net/ and netinet/ files
+dnl *BSD dont include the dependencies for all their net/ and netinet/ files
dnl We must include a few basic type headers for them to work.
AC_CHECK_HEADERS( \
net/if.h \
AC_CHECK_TYPE(mode_t, AC_DEFINE(HAVE_MODE_T,1,[mode_t is defined by the system headers]),,SQUID_DEFAULT_INCLUDES)
AC_CHECK_TYPE(fd_mask, AC_DEFINE(HAVE_FD_MASK,1,[fd_mask is defined by the system headers]),,SQUID_DEFAULT_INCLUDES)
-dnl Check for special functions
-AC_FUNC_ALLOCA
-
AC_CHECK_TYPE(socklen_t,AC_DEFINE(HAVE_SOCKLEN_T,1,[socklen_t is defined by the system headers]),,[
#include <sys/types.h>
#include <sys/socket.h>
#include <stddef.h>
#endif])
+AC_CHECK_TYPE(mtyp_t,AC_DEFINE(HAVE_MTYP_T,1,
+ [mtyp_t is defined by the system headers]),,[#include <sys/types.h>
+#include <sys/ipc.h>
+#include <sys/msg.h>])
+
+dnl Check for special functions
+AC_FUNC_ALLOCA
+
+
dnl Check for libcap header (assume its not broken unless
AC_ARG_WITH(libcap, AS_HELP_STRING([--without-libcap],
[disable usage of Linux capabilities library to control privileges]), [
AC_MSG_NOTICE([libcap2 headers are ok: $squid_cv_sys_capability_works])
-AC_CHECK_TYPE(mtyp_t,AC_DEFINE(HAVE_MTYP_T,1,
- [mtyp_t is defined by the system headers]),,[#include <sys/types.h>
-#include <sys/ipc.h>
-#include <sys/msg.h>])
-
dnl Check for needed libraries
AC_SEARCH_LIBS([gethostbyname],[nsl resolv bind])
AC_SEARCH_LIBS([res_init],[resolv])
#used later. FIXME
AC_CHECK_LIB(malloc, main)
;;
- esac
- fi
+ esac
+fi
case "$host_os" in
mingw|mingw32)
library built in.]), [
SQUID_YESNO([$enableval],[unrecognized argument to --enable-gnuregex: $enableval])
])
-# force-enbable on old solaris and nextstep
+# force-enable on old solaris and nextstep
if test "x${enable_gnuregex:=auto}" = "xauto" ; then
case "$host" in
*-sun-solaris2.[[0-4]])
SQUID_CHECK_NEED_SYS_ERRLIST
SQUID_CHECK_MAXPATHLEN
-SQUID_CHECK_LIBRESOLV_DNS_TTL_HACK
-SQUID_CHECK_RESOLVER_FIELDS
+if test "x$squid_opt_use_dnsserver" = "xyes"; then
+ SQUID_CHECK_LIBRESOLV_DNS_TTL_HACK
+ SQUID_CHECK_RESOLVER_FIELDS
+fi
if test "x$ac_cv_header_sys_statvfs_h" = "xyes" ; then
SQUID_CHECK_WORKING_STATVFS