-# From configure.in Revision: 1.56
+# From configure.in Revision: 1.57
ac_aux_dir=
for ac_dir in aux $srcdir/aux; do
if test -f $ac_dir/install-sh; then
esac
fi
- case "$host" in
+ case "$host" in
*-hp-hpux*)
echo "Disabling 'ranlib' for HP-UX..."
RANLIB=":"
cat > conftest.$ac_ext <<EOF
#line 1583 "configure"
#include "confdefs.h"
-int foo(char *); int foo (char *bar) { }
+int foo(char *); int foo (char *bar) {return 1;}
int main() { return 0; }
int t() {
-return 1;
+foo("bar")
; return 0; }
EOF
if { (eval echo configure:1591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
#line 2797 "configure"
#include "confdefs.h"
+#include <stdio.h>
#include <unistd.h>
#include <sys/time.h> /* needed on FreeBSD */
#include <sys/param.h>
}
EOF
-{ (eval echo configure:2848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
+{ (eval echo configure:2849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
SQUID_MAXFD=`cat conftestval`
else
SQUID_UDP_SO_SNDBUF=16384
else
cat > conftest.$ac_ext <<EOF
-#line 2867 "configure"
+#line 2868 "configure"
#include "confdefs.h"
+#include <stdlib.h>
+#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
}
EOF
-{ (eval echo configure:2884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
+{ (eval echo configure:2887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
SQUID_UDP_SO_SNDBUF=`cat conftestval`
else
SQUID_UDP_SO_RCVBUF=16384
else
cat > conftest.$ac_ext <<EOF
-#line 2903 "configure"
+#line 2906 "configure"
#include "confdefs.h"
+#include <stdlib.h>
+#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
}
EOF
-{ (eval echo configure:2920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
+{ (eval echo configure:2925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
SQUID_UDP_SO_RCVBUF=`cat conftestval`
else
SQUID_TCP_SO_SNDBUF=16384
else
cat > conftest.$ac_ext <<EOF
-#line 2939 "configure"
+#line 2944 "configure"
#include "confdefs.h"
+#include <stdlib.h>
+#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
}
EOF
-{ (eval echo configure:2956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
+{ (eval echo configure:2963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
SQUID_TCP_SO_SNDBUF=`cat conftestval`
else
SQUID_TCP_SO_RCVBUF=16384
else
cat > conftest.$ac_ext <<EOF
-#line 2975 "configure"
+#line 2982 "configure"
#include "confdefs.h"
+#include <stdlib.h>
+#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
}
EOF
-{ (eval echo configure:2992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
+{ (eval echo configure:3001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
SQUID_TCP_SO_RCVBUF=`cat conftestval`
else
echo $ac_n "checking if sys_errlist is already defined""... $ac_c" 1>&6
cat > conftest.$ac_ext <<EOF
-#line 3008 "configure"
+#line 3017 "configure"
#include "confdefs.h"
#include <stdio.h>
int main() { return 0; }
char *s = sys_errlist[0];
; return 0; }
EOF
-if { (eval echo configure:3016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:3025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
else
echo $ac_n "checking for libresolv _dns_ttl_ hack""... $ac_c" 1>&6
cat > conftest.$ac_ext <<EOF
-#line 3032 "configure"
+#line 3041 "configure"
#include "confdefs.h"
extern int _dns_ttl_;
int main() { return 0; }
return _dns_ttl_;
; return 0; }
EOF
-if { (eval echo configure:3040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+if { (eval echo configure:3049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
dnl
dnl Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9)
dnl
-dnl $Id: configure.in,v 1.57 1996/12/03 00:46:04 wessels Exp $
+dnl $Id: configure.in,v 1.58 1996/12/03 20:28:46 wessels Exp $
dnl
dnl
dnl
AC_INIT(src/main.c)
AC_CONFIG_HEADER(include/autoconf.h)
-AC_REVISION($Revision: 1.57 $)dnl
+AC_REVISION($Revision: 1.58 $)dnl
AC_PREFIX_DEFAULT(/usr/local/squid)
AC_CONFIG_AUX_DIR(aux)
esac
fi
- dnl Check if ANSI compile options are needed
- dnl
case "$host" in
*-hp-hpux*)
echo "Disabling 'ranlib' for HP-UX..."
AC_C_CONST
AC_MSG_CHECKING(if ANSI prototypes work)
-AC_TRY_COMPILE([int foo(char *); int foo (char *bar) { }],
-[return 1;],
+AC_TRY_COMPILE([int foo(char *); int foo (char *bar) {return 1;}],
+[foo("bar")],
[AC_DEFINE(HAVE_ANSI_PROTOTYPES)
AC_MSG_RESULT(yes)],
AC_MSG_RESULT(no))
AC_MSG_CHECKING(Maximum number of filedescriptors we can open)
AC_TRY_RUN([
+#include <stdio.h>
#include <unistd.h>
#include <sys/time.h> /* needed on FreeBSD */
#include <sys/param.h>
AC_MSG_CHECKING(Default UDP send buffer size)
AC_TRY_RUN([
+#include <stdlib.h>
+#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
AC_MSG_CHECKING(Default UDP receive buffer size)
AC_TRY_RUN([
+#include <stdlib.h>
+#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
AC_MSG_CHECKING(Default TCP send buffer size)
AC_TRY_RUN([
+#include <stdlib.h>
+#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
AC_MSG_CHECKING(Default TCP receive buffer size)
AC_TRY_RUN([
+#include <stdlib.h>
+#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>