dnl Configuration input file for Squid
dnl
-dnl $Id: configure.in,v 1.464 2007/08/17 18:56:24 serassio Exp $
+dnl $Id: configure.in,v 1.465 2007/08/24 02:26:52 amosjeffries Exp $
dnl
dnl
dnl
AC_CONFIG_AUX_DIR(cfgaux)
AC_CONFIG_SRCDIR([src/main.cc])
AM_INIT_AUTOMAKE([tar-ustar])
-AC_REVISION($Revision: 1.464 $)dnl
+AC_REVISION($Revision: 1.465 $)dnl
AC_PREFIX_DEFAULT(/usr/local/squid)
AM_MAINTAINER_MODE
[What default TCP port to use for HTTP listening?])
AC_SUBST(CACHE_HTTP_PORT)
AC_DEFINE_UNQUOTED(CACHE_ICP_PORT, $CACHE_ICP_PORT,
-AC_SUBST(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])
dnl Enable optional modules
AC_ARG_ENABLE(dlmalloc,
-[ --enable-dlmalloc[=LIB] Compile & use the malloc package by Doug Lea],
+[ --enable-dlmalloc[=LIB] Compile & use the malloc package by Doug Lea],
[
case "$enableval" in
'yes')
use_carp=1
AC_ARG_ENABLE(carp,
-[ --disable-carp Disable CARP support],
+[ --disable-carp Disable CARP support],
[ if test "$enableval" = "no" ; then
echo "CARP disabled"
use_carp=0
AC_SUBST(EXTERNAL_ACL_HELPERS)
AC_ARG_WITH(valgrind,
-[ --with-valgrind Include debug instrumentation for use with valgrind],
+[ --with-valgrind Include debug instrumentation for use with valgrind],
[ case $withval in
yes)
valgrind=1
])
AC_ARG_WITH(filedescriptors,
-[ --with-filedescriptors=NUMBER Force squid to support NUMBER filedescriptors],
+[ --with-filedescriptors=NUMBER
+ Force squid to support NUMBER filedescriptors],
[ squid_filedescriptors_num=$withval ])
AC_PATH_PROG(CPPUNITCONFIG, cppunit-config, false)
timegm \
vsnprintf \
)
+dnl ... and some we provide local replacements for
+AC_REPLACE_FUNCS(\
+ drand48 \
+ initgroups \
+ strerror \
+ tempnam \
+)
# check for crypt, may require -lcrypt
SAVED_LIBS="$LIBS"
AC_SUBST(REGEXLIB)
AC_SUBST(LIBREGEX)
-AC_REPLACE_FUNCS(\
- drand48 \
- tempnam \
- strerror \
- initgroups
-)
-
dnl Not cached since people are likely to tune this
AC_MSG_CHECKING(Default FD_SETSIZE value)
AC_TRY_RUN([
mingw|mingw32)
echo "Using Win32 resolver instead."
;;
- *)
+ *)
echo "Will use our own inet_ntoa()."
AC_LIBOBJ(inet_ntoa)
# echo "WARNING: This looks bad, and probably prevents Squid from working."