From: robertc <> Date: Sun, 15 Sep 2002 12:40:27 +0000 (+0000) Subject: fix headers to allow inclusion into C++ source X-Git-Tag: SQUID_3_0_PRE1~756 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29b8d8d6366760bd4b285d6f6d56042439e55e50;p=thirdparty%2Fsquid.git fix headers to allow inclusion into C++ source --- diff --git a/Makefile.in b/Makefile.in index f27edd252a..bf3087f4e3 100644 --- a/Makefile.in +++ b/Makefile.in @@ -14,7 +14,7 @@ @SET_MAKE@ # -# $Id: Makefile.in,v 1.25 2002/09/15 05:41:26 robertc Exp $ +# $Id: Makefile.in,v 1.26 2002/09/15 06:40:27 robertc Exp $ # SHELL = @SHELL@ @@ -73,6 +73,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/configure b/configure index 5af7f86431..5ca6e14656 100755 --- a/configure +++ b/configure @@ -1398,12 +1398,231 @@ echo "$ac_t""$am_cv_CC_dependencies_compiler_type" 1>&6 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type" +ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross + +for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl +do +# Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:1414: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_CXX="$ac_prog" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +CXX="$ac_cv_prog_CXX" +if test -n "$CXX"; then + echo "$ac_t""$CXX" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +test -n "$CXX" && break +done +test -n "$CXX" || CXX="gcc" + + +echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 +echo "configure:1446: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 + +ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross + +cat > conftest.$ac_ext << EOF + +#line 1457 "configure" +#include "confdefs.h" + +int main(){return(0);} +EOF +if { (eval echo configure:1462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + ac_cv_prog_cxx_works=yes + # If we can't run a trivial program, we are probably using a cross compiler. + if (./conftest; exit) 2>/dev/null; then + ac_cv_prog_cxx_cross=no + else + ac_cv_prog_cxx_cross=yes + fi +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + ac_cv_prog_cxx_works=no +fi +rm -fr conftest* +ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross + +echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 +if test $ac_cv_prog_cxx_works = no; then + { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } +fi +echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 +echo "configure:1488: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 +cross_compiling=$ac_cv_prog_cxx_cross + +echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 +echo "configure:1493: checking whether we are using GNU C++" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.C <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then + ac_cv_prog_gxx=yes +else + ac_cv_prog_gxx=no +fi +fi + +echo "$ac_t""$ac_cv_prog_gxx" 1>&6 + +if test $ac_cv_prog_gxx = yes; then + GXX=yes +else + GXX= +fi + +ac_test_CXXFLAGS="${CXXFLAGS+set}" +ac_save_CXXFLAGS="$CXXFLAGS" +CXXFLAGS= +echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 +echo "configure:1521: checking whether ${CXX-g++} accepts -g" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + echo 'void f(){}' > conftest.cc +if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then + ac_cv_prog_cxx_g=yes +else + ac_cv_prog_cxx_g=no +fi +rm -f conftest* + +fi + +echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS="$ac_save_CXXFLAGS" +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi + +depcc="$CXX" am_compiler_list= + +echo $ac_n "checking dependency style of $depcc""... $ac_c" 1>&6 +echo "configure:1555: checking dependency style of $depcc" >&5 +if eval "test \"`echo '$''{'am_cv_CXX_dependencies_compiler_type'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + + am_cv_CXX_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + for depmode in $am_compiler_list; do + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + echo '#include "conftest.h"' > conftest.c + echo 'int i;' > conftest.h + echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf + + case $depmode in + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + none) break ;; + esac + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. + if depmode=$depmode \ + source=conftest.c object=conftest.o \ + depfile=conftest.Po tmpdepfile=conftest.TPo \ + $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && + grep conftest.h conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + am_cv_CXX_dependencies_compiler_type=$depmode + break + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CXX_dependencies_compiler_type=none +fi + +fi + +echo "$ac_t""$am_cv_CXX_dependencies_compiler_type" 1>&6 +CXXDEPMODE="depmode=$am_cv_CXX_dependencies_compiler_type" + + if test "x$CC" != xcc; then echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6 -echo "configure:1404: checking whether $CC and cc understand -c and -o together" >&5 +echo "configure:1623: checking whether $CC and cc understand -c and -o together" >&5 else echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6 -echo "configure:1407: checking whether cc understands -c and -o together" >&5 +echo "configure:1626: checking whether cc understands -c and -o together" >&5 fi set dummy $CC; ac_cc="`echo $2 | sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`" @@ -1415,16 +1634,16 @@ else # We do the test twice because some compilers refuse to overwrite an # existing .o file with -o, though they will create one. ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5' -if { (eval echo configure:1419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && - test -f conftest.o && { (eval echo configure:1420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; +if { (eval echo configure:1638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && + test -f conftest.o && { (eval echo configure:1639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; then eval ac_cv_prog_cc_${ac_cc}_c_o=yes if test "x$CC" != xcc; then # Test first that cc exists at all. - if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then + if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then ac_try='cc -c conftest.c -o conftest.o 1>&5' - if { (eval echo configure:1427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && - test -f conftest.o && { (eval echo configure:1428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; + if { (eval echo configure:1646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && + test -f conftest.o && { (eval echo configure:1647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; then # cc works too. : @@ -1470,7 +1689,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } fi echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:1474: checking host system type" >&5 +echo "configure:1693: checking host system type" >&5 host_alias=$host case "$host_alias" in @@ -1497,12 +1716,12 @@ REGEXLIB='' # -lregex LIBREGEX='' # libregex.a echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 -echo "configure:1501: checking for Cygwin environment" >&5 +echo "configure:1720: checking for Cygwin environment" >&5 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_cygwin=yes else @@ -1530,19 +1749,19 @@ echo "$ac_t""$ac_cv_cygwin" 1>&6 CYGWIN= test "$ac_cv_cygwin" = yes && CYGWIN=yes echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 -echo "configure:1534: checking for mingw32 environment" >&5 +echo "configure:1753: checking for mingw32 environment" >&5 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_mingw32=yes else @@ -1561,7 +1780,7 @@ test "$ac_cv_mingw32" = yes && MINGW32=yes echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 -echo "configure:1565: checking for executable suffix" >&5 +echo "configure:1784: checking for executable suffix" >&5 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1571,7 +1790,7 @@ else rm -f conftest* echo 'int main () { return 0; }' > conftest.$ac_ext ac_cv_exeext= - if { (eval echo configure:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then + if { (eval echo configure:1794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then for file in conftest.*; do case $file in *.c | *.o | *.obj) ;; @@ -1592,13 +1811,13 @@ echo "$ac_t""${ac_cv_exeext}" 1>&6 ac_exeext=$EXEEXT echo $ac_n "checking for object suffix""... $ac_c" 1>&6 -echo "configure:1596: checking for object suffix" >&5 +echo "configure:1815: checking for object suffix" >&5 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else rm -f conftest* echo 'int i = 1;' > conftest.$ac_ext -if { (eval echo configure:1602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then for ac_file in conftest.*; do case $ac_file in *.c) ;; @@ -1678,7 +1897,7 @@ EOF # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1682: checking for $ac_word" >&5 +echo "configure:1901: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1708,7 +1927,7 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1712: checking for $ac_word" >&5 +echo "configure:1931: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1759,7 +1978,7 @@ fi # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1763: checking for $ac_word" >&5 +echo "configure:1982: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1791,7 +2010,7 @@ fi fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:1795: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 +echo "configure:2014: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. @@ -1802,12 +2021,12 @@ cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext << EOF -#line 1806 "configure" +#line 2025 "configure" #include "confdefs.h" main(){return(0);} EOF -if { (eval echo configure:1811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then @@ -1821,24 +2040,24 @@ else ac_cv_prog_cc_works=no fi rm -fr conftest* -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross +ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 if test $ac_cv_prog_cc_works = no; then { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:1837: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "configure:2056: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:1842: checking whether we are using GNU C" >&5 +echo "configure:2061: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1847,7 +2066,7 @@ else yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no @@ -1866,7 +2085,7 @@ ac_test_CFLAGS="${CFLAGS+set}" ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:1870: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:2089: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1900,7 +2119,7 @@ fi depcc="$CC" am_compiler_list= echo $ac_n "checking dependency style of $depcc""... $ac_c" 1>&6 -echo "configure:1904: checking dependency style of $depcc" >&5 +echo "configure:2123: checking dependency style of $depcc" >&5 if eval "test \"`echo '$''{'am_cv_CC_dependencies_compiler_type'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3335,7 +3554,7 @@ case "$host" in esac echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:3339: checking how to run the C preprocessor" >&5 +echo "configure:3558: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= @@ -3350,13 +3569,13 @@ else # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -3367,13 +3586,13 @@ else rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -3383,14 +3602,58 @@ else cat conftest.$ac_ext >&5 rm -rf conftest* CPP="${CC-cc} -nologo -E" + echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 +echo "configure:3607: checking how to run the C++ preprocessor" >&5 +if test -z "$CXXCPP"; then +if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross + CXXCPP="${CXX-g++} -E" cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + : +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + CXXCPP=/lib/cpp +fi +rm -f conftest* + ac_cv_prog_CXXCPP="$CXXCPP" +ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross +fi +fi +CXXCPP="$ac_cv_prog_CXXCPP" +echo "$ac_t""$CXXCPP" 1>&6 +s%@CXXCPP@%$CXXCPP%g + +cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -3426,7 +3689,7 @@ echo "$ac_t""$CPP" 1>&6 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:3430: checking for a BSD compatible install" >&5 +echo "configure:3693: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3481,7 +3744,7 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3485: checking for $ac_word" >&5 +echo "configure:3748: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3509,7 +3772,7 @@ else fi echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 -echo "configure:3513: checking whether ln -s works" >&5 +echo "configure:3776: checking whether ln -s works" >&5 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3532,7 +3795,7 @@ fi # Extract the first word of "sh", so it can be a program name with args. set dummy sh; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3536: checking for $ac_word" >&5 +echo "configure:3799: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_SH'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3568,7 +3831,7 @@ fi # Extract the first word of "false", so it can be a program name with args. set dummy false; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3572: checking for $ac_word" >&5 +echo "configure:3835: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_FALSE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3604,7 +3867,7 @@ fi # Extract the first word of "true", so it can be a program name with args. set dummy true; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3608: checking for $ac_word" >&5 +echo "configure:3871: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_TRUE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3640,7 +3903,7 @@ fi # Extract the first word of "rm", so it can be a program name with args. set dummy rm; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3644: checking for $ac_word" >&5 +echo "configure:3907: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3676,7 +3939,7 @@ fi # Extract the first word of "mv", so it can be a program name with args. set dummy mv; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3680: checking for $ac_word" >&5 +echo "configure:3943: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3712,7 +3975,7 @@ fi # Extract the first word of "mkdir", so it can be a program name with args. set dummy mkdir; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3716: checking for $ac_word" >&5 +echo "configure:3979: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_MKDIR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3748,7 +4011,7 @@ fi # Extract the first word of "ln", so it can be a program name with args. set dummy ln; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3752: checking for $ac_word" >&5 +echo "configure:4015: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3784,7 +4047,7 @@ fi # Extract the first word of "perl", so it can be a program name with args. set dummy perl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3788: checking for $ac_word" >&5 +echo "configure:4051: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3820,7 +4083,7 @@ fi # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3824: checking for $ac_word" >&5 +echo "configure:4087: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3880,12 +4143,12 @@ for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 -echo "configure:3884: checking for $ac_hdr that defines DIR" >&5 +echo "configure:4147: checking for $ac_hdr that defines DIR" >&5 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include <$ac_hdr> @@ -3893,7 +4156,7 @@ int main() { DIR *dirp = 0; ; return 0; } EOF -if { (eval echo configure:3897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_header_dirent_$ac_safe=yes" else @@ -3918,7 +4181,7 @@ done # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. if test $ac_header_dirent = dirent.h; then echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 -echo "configure:3922: checking for opendir in -ldir" >&5 +echo "configure:4185: checking for opendir in -ldir" >&5 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3926,9 +4189,12 @@ else ac_save_LIBS="$LIBS" LIBS="-ldir $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3959,7 +4225,7 @@ fi else echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 -echo "configure:3963: checking for opendir in -lx" >&5 +echo "configure:4229: checking for opendir in -lx" >&5 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3967,9 +4233,12 @@ else ac_save_LIBS="$LIBS" LIBS="-lx $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4001,12 +4270,12 @@ fi fi echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:4005: checking for ANSI C header files" >&5 +echo "configure:4274: checking for ANSI C header files" >&5 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -4014,7 +4283,7 @@ else #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -4031,7 +4300,7 @@ rm -f conftest* if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat > conftest.$ac_ext < EOF @@ -4049,7 +4318,7 @@ fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat > conftest.$ac_ext < EOF @@ -4070,8 +4339,11 @@ if test "$cross_compiling" = yes; then : else cat > conftest.$ac_ext < #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) @@ -4081,7 +4353,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } EOF -if { (eval echo configure:4085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:4357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -4188,17 +4460,17 @@ for ac_hdr in \ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:4192: checking for $ac_hdr" >&5 +echo "configure:4464: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -4226,12 +4498,12 @@ done echo $ac_n "checking for working const""... $ac_c" 1>&6 -echo "configure:4230: checking for working const" >&5 +echo "configure:4502: checking for working const" >&5 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yes else @@ -4301,14 +4573,14 @@ EOF fi echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 -echo "configure:4305: checking whether byte ordering is bigendian" >&5 +echo "configure:4577: checking whether byte ordering is bigendian" >&5 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_c_bigendian=unknown # See if sys/param.h defines the BYTE_ORDER macro. cat > conftest.$ac_ext < #include @@ -4319,11 +4591,11 @@ int main() { #endif ; return 0; } EOF -if { (eval echo configure:4323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* # It does; now see whether it defined to BIG_ENDIAN or not. cat > conftest.$ac_ext < #include @@ -4334,7 +4606,7 @@ int main() { #endif ; return 0; } EOF -if { (eval echo configure:4338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_bigendian=yes else @@ -4354,8 +4626,11 @@ if test "$cross_compiling" = yes; then { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:4646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_c_bigendian=no else @@ -4392,20 +4667,20 @@ fi echo $ac_n "checking if ANSI prototypes work""... $ac_c" 1>&6 -echo "configure:4396: checking if ANSI prototypes work" >&5 +echo "configure:4671: checking if ANSI prototypes work" >&5 if eval "test \"`echo '$''{'ac_cv_have_ansi_prototypes'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_have_ansi_prototypes="yes" else @@ -4427,13 +4702,13 @@ EOF fi echo $ac_n "checking for tm->tm_gmtoff""... $ac_c" 1>&6 -echo "configure:4431: checking for tm->tm_gmtoff" >&5 +echo "configure:4706: checking for tm->tm_gmtoff" >&5 if eval "test \"`echo '$''{'ac_cv_have_tm_gmoff'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -4442,7 +4717,7 @@ struct tm foo; foo.tm_gmtoff = 0; ; return 0; } EOF -if { (eval echo configure:4446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_have_tm_gmoff="yes" else @@ -4464,13 +4739,13 @@ EOF fi echo $ac_n "checking for struct mallinfo""... $ac_c" 1>&6 -echo "configure:4468: checking for struct mallinfo" >&5 +echo "configure:4743: checking for struct mallinfo" >&5 if eval "test \"`echo '$''{'ac_cv_have_struct_mallinfo'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if HAVE_MALLOC_H @@ -4488,7 +4763,7 @@ struct mallinfo foo; foo.keepcost = 0; ; return 0; } EOF -if { (eval echo configure:4492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_have_struct_mallinfo="yes" else @@ -4510,13 +4785,13 @@ EOF fi echo $ac_n "checking for extended mallinfo""... $ac_c" 1>&6 -echo "configure:4514: checking for extended mallinfo" >&5 +echo "configure:4789: checking for extended mallinfo" >&5 if eval "test \"`echo '$''{'ac_cv_have_ext_mallinfo'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -4525,7 +4800,7 @@ struct mallinfo foo; foo.mxfast = 0; ; return 0; } EOF -if { (eval echo configure:4529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_have_ext_mallinfo="yes" else @@ -4547,13 +4822,13 @@ EOF fi echo $ac_n "checking for struct rusage""... $ac_c" 1>&6 -echo "configure:4551: checking for struct rusage" >&5 +echo "configure:4826: checking for struct rusage" >&5 if eval "test \"`echo '$''{'ac_cv_have_struct_rusage'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_have_struct_rusage="yes" else @@ -4588,13 +4863,13 @@ EOF fi echo $ac_n "checking for ip->ip_hl""... $ac_c" 1>&6 -echo "configure:4592: checking for ip->ip_hl" >&5 +echo "configure:4867: checking for ip->ip_hl" >&5 if eval "test \"`echo '$''{'ac_cv_have_ip_hl'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -4613,7 +4888,7 @@ struct iphdr ip; ip.ip_hl= 0; ; return 0; } EOF -if { (eval echo configure:4617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_have_ip_hl="yes" else @@ -4635,7 +4910,7 @@ EOF fi echo $ac_n "checking size of void *""... $ac_c" 1>&6 -echo "configure:4639: checking size of void *" >&5 +echo "configure:4914: checking size of void *" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4643,8 +4918,11 @@ else { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < main() { @@ -4654,7 +4932,7 @@ main() exit(0); } EOF -if { (eval echo configure:4658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:4936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_void_p=`cat conftestval` else @@ -4674,7 +4952,7 @@ EOF echo $ac_n "checking size of short""... $ac_c" 1>&6 -echo "configure:4678: checking size of short" >&5 +echo "configure:4956: checking size of short" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4682,8 +4960,11 @@ else { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < main() { @@ -4693,7 +4974,7 @@ main() exit(0); } EOF -if { (eval echo configure:4697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:4978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_short=`cat conftestval` else @@ -4713,7 +4994,7 @@ EOF echo $ac_n "checking size of int""... $ac_c" 1>&6 -echo "configure:4717: checking size of int" >&5 +echo "configure:4998: checking size of int" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4721,8 +5002,11 @@ else { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < main() { @@ -4732,7 +5016,7 @@ main() exit(0); } EOF -if { (eval echo configure:4736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_int=`cat conftestval` else @@ -4752,7 +5036,7 @@ EOF echo $ac_n "checking size of long""... $ac_c" 1>&6 -echo "configure:4756: checking size of long" >&5 +echo "configure:5040: checking size of long" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4760,8 +5044,11 @@ else { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < main() { @@ -4771,7 +5058,7 @@ main() exit(0); } EOF -if { (eval echo configure:4775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_long=`cat conftestval` else @@ -4791,7 +5078,7 @@ EOF echo $ac_n "checking size of long long""... $ac_c" 1>&6 -echo "configure:4795: checking size of long long" >&5 +echo "configure:5082: checking size of long long" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4799,8 +5086,11 @@ else { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < main() { @@ -4810,7 +5100,7 @@ main() exit(0); } EOF -if { (eval echo configure:4814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_long_long=`cat conftestval` else @@ -4830,7 +5120,7 @@ EOF echo $ac_n "checking size of __int64""... $ac_c" 1>&6 -echo "configure:4834: checking size of __int64" >&5 +echo "configure:5124: checking size of __int64" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4838,8 +5128,11 @@ else { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -4864,7 +5157,7 @@ int main() } EOF -if { (eval echo configure:4868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof___int64=`cat conftestval` else @@ -4884,7 +5177,7 @@ EOF echo $ac_n "checking size of int16_t""... $ac_c" 1>&6 -echo "configure:4888: checking size of int16_t" >&5 +echo "configure:5181: checking size of int16_t" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_int16_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4892,8 +5185,11 @@ else { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -4918,7 +5214,7 @@ int main() } EOF -if { (eval echo configure:4922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_int16_t=`cat conftestval` else @@ -4938,7 +5234,7 @@ EOF echo $ac_n "checking size of uint16_t""... $ac_c" 1>&6 -echo "configure:4942: checking size of uint16_t" >&5 +echo "configure:5238: checking size of uint16_t" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_uint16_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4946,8 +5242,11 @@ else { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -4972,7 +5271,7 @@ int main() } EOF -if { (eval echo configure:4976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_uint16_t=`cat conftestval` else @@ -4992,7 +5291,7 @@ EOF echo $ac_n "checking size of u_int16_t""... $ac_c" 1>&6 -echo "configure:4996: checking size of u_int16_t" >&5 +echo "configure:5295: checking size of u_int16_t" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_u_int16_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5000,8 +5299,11 @@ else { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -5026,7 +5328,7 @@ int main() } EOF -if { (eval echo configure:5030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_u_int16_t=`cat conftestval` else @@ -5046,7 +5348,7 @@ EOF echo $ac_n "checking size of int32_t""... $ac_c" 1>&6 -echo "configure:5050: checking size of int32_t" >&5 +echo "configure:5352: checking size of int32_t" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_int32_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5054,8 +5356,11 @@ else { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -5080,7 +5385,7 @@ int main() } EOF -if { (eval echo configure:5084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_int32_t=`cat conftestval` else @@ -5100,7 +5405,7 @@ EOF echo $ac_n "checking size of uint32_t""... $ac_c" 1>&6 -echo "configure:5104: checking size of uint32_t" >&5 +echo "configure:5409: checking size of uint32_t" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_uint32_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5108,8 +5413,11 @@ else { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -5134,7 +5442,7 @@ int main() } EOF -if { (eval echo configure:5138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_uint32_t=`cat conftestval` else @@ -5154,7 +5462,7 @@ EOF echo $ac_n "checking size of u_int32_t""... $ac_c" 1>&6 -echo "configure:5158: checking size of u_int32_t" >&5 +echo "configure:5466: checking size of u_int32_t" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_u_int32_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5162,8 +5470,11 @@ else { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -5188,7 +5499,7 @@ int main() } EOF -if { (eval echo configure:5192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_u_int32_t=`cat conftestval` else @@ -5208,7 +5519,7 @@ EOF echo $ac_n "checking size of int64_t""... $ac_c" 1>&6 -echo "configure:5212: checking size of int64_t" >&5 +echo "configure:5523: checking size of int64_t" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_int64_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5216,8 +5527,11 @@ else { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -5242,7 +5556,7 @@ int main() } EOF -if { (eval echo configure:5246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_int64_t=`cat conftestval` else @@ -5262,7 +5576,7 @@ EOF echo $ac_n "checking size of uint64_t""... $ac_c" 1>&6 -echo "configure:5266: checking size of uint64_t" >&5 +echo "configure:5580: checking size of uint64_t" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_uint64_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5270,8 +5584,11 @@ else { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -5296,7 +5613,7 @@ int main() } EOF -if { (eval echo configure:5300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_uint64_t=`cat conftestval` else @@ -5316,7 +5633,7 @@ EOF echo $ac_n "checking size of u_int64_t""... $ac_c" 1>&6 -echo "configure:5320: checking size of u_int64_t" >&5 +echo "configure:5637: checking size of u_int64_t" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_u_int64_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5324,8 +5641,11 @@ else { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -5350,7 +5670,7 @@ int main() } EOF -if { (eval echo configure:5354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_u_int64_t=`cat conftestval` else @@ -5372,12 +5692,12 @@ EOF if test "x$ac_cv_sizeof_short" = "x2"; then echo $ac_n "checking for int16_t""... $ac_c" 1>&6 -echo "configure:5376: checking for int16_t" >&5 +echo "configure:5696: checking for int16_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 -echo "configure:5425: checking for int16_t" >&5 +echo "configure:5745: checking for int16_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 -echo "configure:5475: checking for u_int16_t" >&5 +echo "configure:5795: checking for u_int16_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_u_int16_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 -echo "configure:5524: checking for u_int16_t" >&5 +echo "configure:5844: checking for u_int16_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_u_int16_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 -echo "configure:5573: checking for u_int16_t" >&5 +echo "configure:5893: checking for u_int16_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_u_int16_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 -echo "configure:5623: checking for int32_t" >&5 +echo "configure:5943: checking for int32_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 -echo "configure:5672: checking for int32_t" >&5 +echo "configure:5992: checking for int32_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 -echo "configure:5722: checking for u_int32_t" >&5 +echo "configure:6042: checking for u_int32_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 -echo "configure:5771: checking for u_int32_t" >&5 +echo "configure:6091: checking for u_int32_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 -echo "configure:5820: checking for u_int32_t" >&5 +echo "configure:6140: checking for u_int32_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 -echo "configure:5870: checking for int64_t" >&5 +echo "configure:6190: checking for int64_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_int64_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 -echo "configure:5919: checking for int64_t" >&5 +echo "configure:6239: checking for int64_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_int64_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 -echo "configure:5968: checking for int64_t" >&5 +echo "configure:6288: checking for int64_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_int64_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 -echo "configure:6018: checking for u_int64_t" >&5 +echo "configure:6338: checking for u_int64_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_u_int64_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 -echo "configure:6067: checking for u_int64_t" >&5 +echo "configure:6387: checking for u_int64_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_u_int64_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 -echo "configure:6116: checking for u_int64_t" >&5 +echo "configure:6436: checking for u_int64_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_u_int64_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 -echo "configure:6165: checking for int64_t" >&5 +echo "configure:6485: checking for int64_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_int64_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 -echo "configure:6215: checking for pid_t" >&5 +echo "configure:6535: checking for pid_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -6244,12 +6564,12 @@ EOF fi echo $ac_n "checking for size_t""... $ac_c" 1>&6 -echo "configure:6248: checking for size_t" >&5 +echo "configure:6568: checking for size_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -6277,12 +6597,12 @@ EOF fi echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 -echo "configure:6281: checking for ssize_t" >&5 +echo "configure:6601: checking for ssize_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -6310,12 +6630,12 @@ EOF fi echo $ac_n "checking for off_t""... $ac_c" 1>&6 -echo "configure:6314: checking for off_t" >&5 +echo "configure:6634: checking for off_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -6343,12 +6663,12 @@ EOF fi echo $ac_n "checking for mode_t""... $ac_c" 1>&6 -echo "configure:6347: checking for mode_t" >&5 +echo "configure:6667: checking for mode_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -6376,12 +6696,12 @@ EOF fi echo $ac_n "checking for fd_mask""... $ac_c" 1>&6 -echo "configure:6380: checking for fd_mask" >&5 +echo "configure:6700: checking for fd_mask" >&5 if eval "test \"`echo '$''{'ac_cv_type_fd_mask'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -6410,7 +6730,7 @@ fi echo $ac_n "checking size of off_t""... $ac_c" 1>&6 -echo "configure:6414: checking size of off_t" >&5 +echo "configure:6734: checking size of off_t" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6418,8 +6738,11 @@ else ac_cv_sizeof_off_t=4 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -6444,7 +6767,7 @@ int main() } EOF -if { (eval echo configure:6448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:6771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_off_t=`cat conftestval` else @@ -6464,7 +6787,7 @@ EOF echo $ac_n "checking size of size_t""... $ac_c" 1>&6 -echo "configure:6468: checking size of size_t" >&5 +echo "configure:6791: checking size of size_t" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_size_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6472,8 +6795,11 @@ else ac_cv_sizeof_size_t=4 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -6498,7 +6824,7 @@ int main() } EOF -if { (eval echo configure:6502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:6828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_size_t=`cat conftestval` else @@ -6521,19 +6847,19 @@ EOF # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 -echo "configure:6525: checking for working alloca.h" >&5 +echo "configure:6851: checking for working alloca.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { char *p = alloca(2 * sizeof(int)); ; return 0; } EOF -if { (eval echo configure:6537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_header_alloca_h=yes else @@ -6554,12 +6880,12 @@ EOF fi echo $ac_n "checking for alloca""... $ac_c" 1>&6 -echo "configure:6558: checking for alloca" >&5 +echo "configure:6884: checking for alloca" >&5 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_func_alloca_works=yes else @@ -6619,12 +6945,12 @@ EOF echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 -echo "configure:6623: checking whether alloca needs Cray hooks" >&5 +echo "configure:6949: checking whether alloca needs Cray hooks" >&5 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 if test $ac_cv_os_cray = yes; then for ac_func in _getb67 GETB67 getb67; do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:6653: checking for $ac_func" >&5 +echo "configure:6979: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); @@ -6677,7 +7006,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:6681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -6704,7 +7033,7 @@ done fi echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 -echo "configure:6708: checking stack direction for C alloca" >&5 +echo "configure:7037: checking stack direction for C alloca" >&5 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6712,8 +7041,11 @@ else ac_cv_c_stack_direction=0 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:7067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_c_stack_direction=1 else @@ -6755,13 +7087,13 @@ fi echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 -echo "configure:6759: checking for socklen_t" >&5 +echo "configure:7091: checking for socklen_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -6792,13 +7124,13 @@ EOF fi echo $ac_n "checking for mtyp_t""... $ac_c" 1>&6 -echo "configure:6796: checking for mtyp_t" >&5 +echo "configure:7128: checking for mtyp_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_mtyp_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -6826,7 +7158,7 @@ EOF fi echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6 -echo "configure:6830: checking for main in -lnsl" >&5 +echo "configure:7162: checking for main in -lnsl" >&5 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6834,14 +7166,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lnsl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6869,7 +7201,7 @@ else fi echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6 -echo "configure:6873: checking for main in -lsocket" >&5 +echo "configure:7205: checking for main in -lsocket" >&5 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6877,14 +7209,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lsocket $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6913,13 +7245,13 @@ fi echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6 -echo "configure:6917: checking for unix domain sockets" >&5 +echo "configure:7249: checking for unix domain sockets" >&5 if eval "test \"`echo '$''{'squid_cv_unixsocket'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -6934,7 +7266,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:6938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:7270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* squid_cv_unixsocket=yes else @@ -6958,7 +7290,7 @@ if test "x$ac_cv_enabled_dlmalloc" = "xyes" ; then echo "skipping libmalloc check (--enable-dlmalloc specified)" else echo $ac_n "checking for main in -lgnumalloc""... $ac_c" 1>&6 -echo "configure:6962: checking for main in -lgnumalloc" >&5 +echo "configure:7294: checking for main in -lgnumalloc" >&5 ac_lib_var=`echo gnumalloc'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6966,14 +7298,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lgnumalloc $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7016,7 +7348,7 @@ fi *) echo $ac_n "checking for main in -lmalloc""... $ac_c" 1>&6 -echo "configure:7020: checking for main in -lmalloc" >&5 +echo "configure:7352: checking for main in -lmalloc" >&5 ac_lib_var=`echo malloc'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7024,14 +7356,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lmalloc $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7064,7 +7396,7 @@ fi fi echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6 -echo "configure:7068: checking for main in -lbsd" >&5 +echo "configure:7400: checking for main in -lbsd" >&5 ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7072,14 +7404,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lbsd $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7107,7 +7439,7 @@ else fi echo $ac_n "checking for main in -lregex""... $ac_c" 1>&6 -echo "configure:7111: checking for main in -lregex" >&5 +echo "configure:7443: checking for main in -lregex" >&5 ac_lib_var=`echo regex'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7115,14 +7447,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lregex $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7143,7 +7475,7 @@ else fi echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6 -echo "configure:7147: checking for gethostbyname in -lbind" >&5 +echo "configure:7479: checking for gethostbyname in -lbind" >&5 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7151,9 +7483,12 @@ else ac_save_LIBS="$LIBS" LIBS="-lbind $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7196,7 +7531,7 @@ if test $ac_cv_lib_bind_gethostbyname = "no" ; then ;; *) echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6 -echo "configure:7200: checking for inet_aton in -lresolv" >&5 +echo "configure:7535: checking for inet_aton in -lresolv" >&5 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7204,9 +7539,12 @@ else ac_save_LIBS="$LIBS" LIBS="-lresolv $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7231,7 +7569,7 @@ fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 echo $ac_n "checking for inet_aton in -l44bsd""... $ac_c" 1>&6 -echo "configure:7235: checking for inet_aton in -l44bsd" >&5 +echo "configure:7573: checking for inet_aton in -l44bsd" >&5 ac_lib_var=`echo 44bsd'_'inet_aton | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7239,9 +7577,12 @@ else ac_save_LIBS="$LIBS" LIBS="-l44bsd $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7282,7 +7623,7 @@ else fi echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6 -echo "configure:7286: checking for main in -lresolv" >&5 +echo "configure:7627: checking for main in -lresolv" >&5 ac_lib_var=`echo resolv'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7290,14 +7631,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lresolv $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7328,7 +7669,7 @@ fi esac fi echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 -echo "configure:7332: checking for main in -lm" >&5 +echo "configure:7673: checking for main in -lm" >&5 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7336,14 +7677,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lm $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7372,7 +7713,7 @@ fi echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 -echo "configure:7376: checking for crypt in -lcrypt" >&5 +echo "configure:7717: checking for crypt in -lcrypt" >&5 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7380,9 +7721,12 @@ else ac_save_LIBS="$LIBS" LIBS="-lcrypt $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7415,7 +7759,7 @@ fi if test "$with_dl" = "yes"; then echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 -echo "configure:7419: checking for dlopen in -ldl" >&5 +echo "configure:7763: checking for dlopen in -ldl" >&5 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7423,9 +7767,12 @@ else ac_save_LIBS="$LIBS" LIBS="-ldl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7465,7 +7812,7 @@ fi if test "$with_pthreads" = "yes"; then echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6 -echo "configure:7469: checking for main in -lpthread" >&5 +echo "configure:7816: checking for main in -lpthread" >&5 ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7473,14 +7820,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lpthread $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7511,7 +7858,7 @@ fi if test "$with_aio" = "yes"; then echo $ac_n "checking for aio_read in -lrt""... $ac_c" 1>&6 -echo "configure:7515: checking for aio_read in -lrt" >&5 +echo "configure:7862: checking for aio_read in -lrt" >&5 ac_lib_var=`echo rt'_'aio_read | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7519,9 +7866,12 @@ else ac_save_LIBS="$LIBS" LIBS="-lrt $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7562,7 +7912,7 @@ fi case "$host" in *-pc-sco3.2*) echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6 -echo "configure:7566: checking for strftime in -lintl" >&5 +echo "configure:7916: checking for strftime in -lintl" >&5 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7570,9 +7920,12 @@ else ac_save_LIBS="$LIBS" LIBS="-lintl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7769,17 +8122,20 @@ for ac_func in \ do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:7773: checking for $ac_func" >&5 +echo "configure:8126: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); @@ -7797,7 +8153,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:7801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -7855,7 +8211,7 @@ echo "Using ${SELECT_TYPE} for select loop." echo $ac_n "checking if setresuid is implemented""... $ac_c" 1>&6 -echo "configure:7859: checking if setresuid is implemented" >&5 +echo "configure:8215: checking if setresuid is implemented" >&5 if eval "test \"`echo '$''{'ac_cv_func_setresuid'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7863,8 +8219,11 @@ else { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < int main() { @@ -7876,7 +8235,7 @@ else } EOF -if { (eval echo configure:7880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:8239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_func_setresuid="yes" else @@ -7922,7 +8281,7 @@ fi if test "$IPF_TRANSPARENT" ; then echo $ac_n "checking if IP-Filter header files are installed""... $ac_c" 1>&6 -echo "configure:7926: checking if IP-Filter header files are installed" >&5 +echo "configure:8285: checking if IP-Filter header files are installed" >&5 # hold on to your hats... if test "$ac_cv_header_ip_compat_h" = "yes" || test "$ac_cv_header_ip_fil_compat_h" = "yes" || @@ -7963,7 +8322,7 @@ fi if test "$PF_TRANSPARENT" ; then echo $ac_n "checking if PF header file is installed""... $ac_c" 1>&6 -echo "configure:7967: checking if PF header file is installed" >&5 +echo "configure:8326: checking if PF header file is installed" >&5 # hold on to your hats... if test "$ac_cv_header_net_pfvar_h" = "yes"; then PF_TRANSPARENT="yes" @@ -7988,7 +8347,7 @@ fi if test "$LINUX_NETFILTER" ; then echo $ac_n "checking if Linux 2.4 kernel header files are installed""... $ac_c" 1>&6 -echo "configure:7992: checking if Linux 2.4 kernel header files are installed" >&5 +echo "configure:8351: checking if Linux 2.4 kernel header files are installed" >&5 # hold on to your hats... if test "$ac_cv_header_linux_netfilter_ipv4_h" = "yes"; then LINUX_NETFILTER="yes" @@ -8022,13 +8381,13 @@ if test -z "$USE_GNUREGEX" ; then esac fi echo $ac_n "checking if GNUregex needs to be compiled""... $ac_c" 1>&6 -echo "configure:8026: checking if GNUregex needs to be compiled" >&5 +echo "configure:8385: checking if GNUregex needs to be compiled" >&5 if test -z "$USE_GNUREGEX"; then if test "$ac_cv_func_regcomp" = "no" || test "$USE_GNUREGEX" = "yes" ; then USE_GNUREGEX="yes" else cat > conftest.$ac_ext < #include @@ -8036,7 +8395,7 @@ int main() { regex_t t; regcomp(&t,"",0); ; return 0; } EOF -if { (eval echo configure:8040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:8399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* USE_GNUREGEX="no" else @@ -8067,17 +8426,20 @@ for ac_func in \ do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:8071: checking for $ac_func" >&5 +echo "configure:8430: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); @@ -8095,7 +8457,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:8099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -8123,13 +8485,16 @@ done echo $ac_n "checking Default FD_SETSIZE value""... $ac_c" 1>&6 -echo "configure:8127: checking Default FD_SETSIZE value" >&5 +echo "configure:8489: checking Default FD_SETSIZE value" >&5 if test "$cross_compiling" = yes; then DEFAULT_FD_SETSIZE=256 else cat > conftest.$ac_ext < @@ -8153,7 +8518,7 @@ main() { } EOF -if { (eval echo configure:8157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:8522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then DEFAULT_FD_SETSIZE=`cat conftestval` else @@ -8172,7 +8537,7 @@ EOF echo $ac_n "checking Maximum number of filedescriptors we can open""... $ac_c" 1>&6 -echo "configure:8176: checking Maximum number of filedescriptors we can open" >&5 +echo "configure:8541: checking Maximum number of filedescriptors we can open" >&5 TLDFLAGS="$LDFLAGS" case $host in i386-unknown-freebsd*) @@ -8184,8 +8549,11 @@ if test "$cross_compiling" = yes; then SQUID_MAXFD=256 else cat > conftest.$ac_ext < #include @@ -8244,7 +8612,7 @@ main() { } EOF -if { (eval echo configure:8248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:8616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then SQUID_MAXFD=`cat conftestval` else @@ -8271,13 +8639,16 @@ fi LDFLAGS="$TLDFLAGS" echo $ac_n "checking Default UDP send buffer size""... $ac_c" 1>&6 -echo "configure:8275: checking Default UDP send buffer size" >&5 +echo "configure:8643: checking Default UDP send buffer size" >&5 if test "$cross_compiling" = yes; then SQUID_UDP_SO_SNDBUF=16384 else cat > conftest.$ac_ext < #include @@ -8297,7 +8668,7 @@ main () } EOF -if { (eval echo configure:8301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:8672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then SQUID_UDP_SO_SNDBUF=`cat conftestval` else @@ -8316,13 +8687,16 @@ EOF echo $ac_n "checking Default UDP receive buffer size""... $ac_c" 1>&6 -echo "configure:8320: checking Default UDP receive buffer size" >&5 +echo "configure:8691: checking Default UDP receive buffer size" >&5 if test "$cross_compiling" = yes; then SQUID_UDP_SO_RCVBUF=16384 else cat > conftest.$ac_ext < #include @@ -8342,7 +8716,7 @@ main () } EOF -if { (eval echo configure:8346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:8720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then SQUID_UDP_SO_RCVBUF=`cat conftestval` else @@ -8361,13 +8735,16 @@ EOF echo $ac_n "checking Default TCP send buffer size""... $ac_c" 1>&6 -echo "configure:8365: checking Default TCP send buffer size" >&5 +echo "configure:8739: checking Default TCP send buffer size" >&5 if test "$cross_compiling" = yes; then SQUID_TCP_SO_SNDBUF=16384 else cat > conftest.$ac_ext < #include @@ -8387,7 +8764,7 @@ main () } EOF -if { (eval echo configure:8391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:8768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then SQUID_TCP_SO_SNDBUF=`cat conftestval` else @@ -8406,13 +8783,16 @@ EOF echo $ac_n "checking Default TCP receive buffer size""... $ac_c" 1>&6 -echo "configure:8410: checking Default TCP receive buffer size" >&5 +echo "configure:8787: checking Default TCP receive buffer size" >&5 if test "$cross_compiling" = yes; then SQUID_TCP_SO_RCVBUF=16384 else cat > conftest.$ac_ext < #include @@ -8432,7 +8812,7 @@ main () } EOF -if { (eval echo configure:8436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:8816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then SQUID_TCP_SO_RCVBUF=`cat conftestval` else @@ -8451,19 +8831,19 @@ EOF echo $ac_n "checking if sys_errlist is already defined""... $ac_c" 1>&6 -echo "configure:8455: checking if sys_errlist is already defined" >&5 +echo "configure:8835: checking if sys_errlist is already defined" >&5 if eval "test \"`echo '$''{'ac_cv_needs_sys_errlist'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { char *s = sys_errlist; ; return 0; } EOF -if { (eval echo configure:8467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:8847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_needs_sys_errlist="no" else @@ -8485,16 +8865,16 @@ EOF fi echo $ac_n "checking for libresolv _dns_ttl_ hack""... $ac_c" 1>&6 -echo "configure:8489: checking for libresolv _dns_ttl_ hack" >&5 +echo "configure:8869: checking for libresolv _dns_ttl_ hack" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF @@ -8510,13 +8890,16 @@ fi rm -f conftest* echo $ac_n "checking if inet_ntoa() actually works""... $ac_c" 1>&6 -echo "configure:8514: checking if inet_ntoa() actually works" >&5 +echo "configure:8894: checking if inet_ntoa() actually works" >&5 if test "$cross_compiling" = yes; then INET_NTOA_RESULT="broken" else cat > conftest.$ac_ext < #include @@ -8534,7 +8917,7 @@ main () } EOF -if { (eval echo configure:8538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:8921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then INET_NTOA_RESULT=`cat conftestval` else @@ -8560,9 +8943,9 @@ fi if test "$ac_cv_header_sys_statvfs_h" = "yes" ; then echo $ac_n "checking for working statvfs() interface""... $ac_c" 1>&6 -echo "configure:8564: checking for working statvfs() interface" >&5 +echo "configure:8947: checking for working statvfs() interface" >&5 cat > conftest.$ac_ext < @@ -8579,7 +8962,7 @@ statvfs("/tmp", &sfs); ; return 0; } EOF -if { (eval echo configure:8583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:8966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_func_statvfs=yes else @@ -8599,12 +8982,12 @@ fi fi echo $ac_n "checking for _res.nsaddr_list""... $ac_c" 1>&6 -echo "configure:8603: checking for _res.nsaddr_list" >&5 +echo "configure:8986: checking for _res.nsaddr_list" >&5 if eval "test \"`echo '$''{'ac_cv_have_res_nsaddr_list'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:9014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_have_res_nsaddr_list="yes" else @@ -8649,12 +9032,12 @@ fi if test $ac_cv_have_res_nsaddr_list = "no" ; then echo $ac_n "checking for _res.ns_list""... $ac_c" 1>&6 -echo "configure:8653: checking for _res.ns_list" >&5 +echo "configure:9036: checking for _res.ns_list" >&5 if eval "test \"`echo '$''{'ac_cv_have_res_ns_list'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:9064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_have_res_ns_list="yes" else @@ -8934,6 +9317,8 @@ s%@CC@%$CC%g s%@am__include@%$am__include%g s%@am__quote@%$am__quote%g s%@CCDEPMODE@%$CCDEPMODE%g +s%@CXX@%$CXX%g +s%@CXXDEPMODE@%$CXXDEPMODE%g s%@host@%$host%g s%@host_alias@%$host_alias%g s%@host_cpu@%$host_cpu%g diff --git a/configure.in b/configure.in index a47b4234ea..a6c3df309d 100644 --- a/configure.in +++ b/configure.in @@ -3,7 +3,7 @@ dnl Configuration input file for Squid dnl dnl Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9) dnl -dnl $Id: configure.in,v 1.282 2002/09/01 15:13:08 hno Exp $ +dnl $Id: configure.in,v 1.283 2002/09/15 06:40:28 robertc Exp $ dnl dnl dnl @@ -11,7 +11,7 @@ AC_INIT(src/main.c) AC_CONFIG_AUX_DIR(cfgaux) AM_INIT_AUTOMAKE(squid, 2.6-DEVEL) AM_CONFIG_HEADER(include/autoconf.h) -AC_REVISION($Revision: 1.282 $)dnl +AC_REVISION($Revision: 1.283 $)dnl AC_PREFIX_DEFAULT(/usr/local/squid) AM_MAINTAINER_MODE @@ -24,6 +24,8 @@ PRESET_CFLAGS="$CFLAGS" dnl Check for GNU cc AC_PROG_CC +AC_LANG_CPLUSPLUS +AC_PROG_CXX AM_PROG_CC_C_O AC_CANONICAL_HOST diff --git a/contrib/Makefile.in b/contrib/Makefile.in index 7867eb83c8..bb12ccd19f 100644 --- a/contrib/Makefile.in +++ b/contrib/Makefile.in @@ -74,6 +74,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/doc/Makefile.in b/doc/Makefile.in index 4ad44f4fef..a7b1553b63 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -16,7 +16,7 @@ # # Makefile for the Squid Object Cache server # -# $Id: Makefile.in,v 1.10 2002/09/15 05:41:27 robertc Exp $ +# $Id: Makefile.in,v 1.11 2002/09/15 06:40:29 robertc Exp $ # # Uncomment and customize the following to suit your needs: # @@ -77,6 +77,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/errors/Makefile.in b/errors/Makefile.in index 4540c662ec..66b4ec0c50 100644 --- a/errors/Makefile.in +++ b/errors/Makefile.in @@ -14,7 +14,7 @@ @SET_MAKE@ # -# $Id: Makefile.in,v 1.25 2002/09/15 05:41:29 robertc Exp $ +# $Id: Makefile.in,v 1.26 2002/09/15 06:40:29 robertc Exp $ # SHELL = @SHELL@ @@ -73,6 +73,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/helpers/Makefile.in b/helpers/Makefile.in index dc775e8d32..a3693f4ea8 100644 --- a/helpers/Makefile.in +++ b/helpers/Makefile.in @@ -69,6 +69,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/helpers/basic_auth/LDAP/Makefile.in b/helpers/basic_auth/LDAP/Makefile.in index 0c6a6a4cd5..f88881b2ee 100644 --- a/helpers/basic_auth/LDAP/Makefile.in +++ b/helpers/basic_auth/LDAP/Makefile.in @@ -16,7 +16,7 @@ # # Makefile for the Squid LDAP authentication helper # -# $Id: Makefile.in,v 1.19 2002/09/15 05:41:30 robertc Exp $ +# $Id: Makefile.in,v 1.20 2002/09/15 06:40:31 robertc Exp $ # # Uncomment and customize the following to suit your needs: # @@ -77,6 +77,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/helpers/basic_auth/MSNT/Makefile.in b/helpers/basic_auth/MSNT/Makefile.in index 1a5608afe4..7a9ad2c43c 100644 --- a/helpers/basic_auth/MSNT/Makefile.in +++ b/helpers/basic_auth/MSNT/Makefile.in @@ -16,7 +16,7 @@ # # Makefile for the Squid Object Cache server # -# $Id: Makefile.in,v 1.22 2002/09/15 05:41:31 robertc Exp $ +# $Id: Makefile.in,v 1.23 2002/09/15 06:40:32 robertc Exp $ # # Uncomment and customize the following to suit your needs: # @@ -77,6 +77,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/helpers/basic_auth/Makefile.in b/helpers/basic_auth/Makefile.in index 876c2b51c1..c6b3b10c94 100644 --- a/helpers/basic_auth/Makefile.in +++ b/helpers/basic_auth/Makefile.in @@ -15,7 +15,7 @@ # Makefile for storage modules in the Squid Object Cache server # -# $Id: Makefile.in,v 1.17 2002/09/15 05:41:30 robertc Exp $ +# $Id: Makefile.in,v 1.18 2002/09/15 06:40:31 robertc Exp $ # SHELL = @SHELL@ @@ -74,6 +74,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/helpers/basic_auth/NCSA/Makefile.in b/helpers/basic_auth/NCSA/Makefile.in index c768a0d25a..5236fe274f 100644 --- a/helpers/basic_auth/NCSA/Makefile.in +++ b/helpers/basic_auth/NCSA/Makefile.in @@ -16,7 +16,7 @@ # # Makefile for the Squid Object Cache server # -# $Id: Makefile.in,v 1.17 2002/09/15 05:41:32 robertc Exp $ +# $Id: Makefile.in,v 1.18 2002/09/15 06:40:33 robertc Exp $ # # Uncomment and customize the following to suit your needs: # @@ -77,6 +77,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/helpers/basic_auth/PAM/Makefile.in b/helpers/basic_auth/PAM/Makefile.in index 48676201cc..7b1d63b67b 100644 --- a/helpers/basic_auth/PAM/Makefile.in +++ b/helpers/basic_auth/PAM/Makefile.in @@ -16,7 +16,7 @@ # # Makefile for the Squid PAM authentication helper # -# $Id: Makefile.in,v 1.18 2002/09/15 05:41:34 robertc Exp $ +# $Id: Makefile.in,v 1.19 2002/09/15 06:40:34 robertc Exp $ # # Uncomment and customize the following to suit your needs: # @@ -77,6 +77,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/helpers/basic_auth/SASL/Makefile.in b/helpers/basic_auth/SASL/Makefile.in index 08c31bfbcb..3d3f4c9be4 100644 --- a/helpers/basic_auth/SASL/Makefile.in +++ b/helpers/basic_auth/SASL/Makefile.in @@ -16,7 +16,7 @@ # # Makefile for the Squid SASL authentication helper # -# $Id: Makefile.in,v 1.15 2002/09/15 05:41:35 robertc Exp $ +# $Id: Makefile.in,v 1.16 2002/09/15 06:40:35 robertc Exp $ # # Uncomment and customize the following to suit your needs: # @@ -77,6 +77,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/helpers/basic_auth/SMB/Makefile.in b/helpers/basic_auth/SMB/Makefile.in index b7ae72749b..3c2fd3d83e 100644 --- a/helpers/basic_auth/SMB/Makefile.in +++ b/helpers/basic_auth/SMB/Makefile.in @@ -16,7 +16,7 @@ # # Makefile for the Squid Object Cache server # -# $Id: Makefile.in,v 1.18 2002/09/15 05:41:36 robertc Exp $ +# $Id: Makefile.in,v 1.19 2002/09/15 06:40:36 robertc Exp $ # # Uncomment and customize the following to suit your needs: # @@ -82,6 +82,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/helpers/basic_auth/YP/Makefile.in b/helpers/basic_auth/YP/Makefile.in index fa9509fc44..f229ee4d28 100644 --- a/helpers/basic_auth/YP/Makefile.in +++ b/helpers/basic_auth/YP/Makefile.in @@ -16,7 +16,7 @@ # # Makefile for the Squid Object Cache server # -# $Id: Makefile.in,v 1.19 2002/09/15 05:41:37 robertc Exp $ +# $Id: Makefile.in,v 1.20 2002/09/15 06:40:37 robertc Exp $ # # @@ -76,6 +76,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/helpers/basic_auth/getpwnam/Makefile.in b/helpers/basic_auth/getpwnam/Makefile.in index d368669c94..07aa5b6e13 100644 --- a/helpers/basic_auth/getpwnam/Makefile.in +++ b/helpers/basic_auth/getpwnam/Makefile.in @@ -16,7 +16,7 @@ # # Makefile for the Squid Object Cache server # -# $Id: Makefile.in,v 1.17 2002/09/15 05:41:39 robertc Exp $ +# $Id: Makefile.in,v 1.18 2002/09/15 06:40:37 robertc Exp $ # # Uncomment and customize the following to suit your needs: # @@ -77,6 +77,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/helpers/basic_auth/multi-domain-NTLM/Makefile.in b/helpers/basic_auth/multi-domain-NTLM/Makefile.in index 7376726659..f0aced5810 100644 --- a/helpers/basic_auth/multi-domain-NTLM/Makefile.in +++ b/helpers/basic_auth/multi-domain-NTLM/Makefile.in @@ -16,7 +16,7 @@ # # Makefile for the Squid Object Cache server # -# $Id: Makefile.in,v 1.15 2002/09/15 05:41:40 robertc Exp $ +# $Id: Makefile.in,v 1.16 2002/09/15 06:40:38 robertc Exp $ # # Uncomment and customize the following to suit your needs: # @@ -77,6 +77,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/helpers/basic_auth/winbind/Makefile.in b/helpers/basic_auth/winbind/Makefile.in index 5ad7a42a9b..bd9fcbd168 100644 --- a/helpers/basic_auth/winbind/Makefile.in +++ b/helpers/basic_auth/winbind/Makefile.in @@ -16,7 +16,7 @@ # # Makefile for the Squid Object Cache server # -# $Id: Makefile.in,v 1.9 2002/09/15 05:41:41 robertc Exp $ +# $Id: Makefile.in,v 1.10 2002/09/15 06:40:39 robertc Exp $ # SHELL = @SHELL@ @@ -75,6 +75,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/helpers/digest_auth/Makefile.in b/helpers/digest_auth/Makefile.in index d1cb3af506..1e373b49c3 100644 --- a/helpers/digest_auth/Makefile.in +++ b/helpers/digest_auth/Makefile.in @@ -15,7 +15,7 @@ # Makefile for digest auth helpers in the Squid Object Cache server # -# $Id: Makefile.in,v 1.14 2002/09/15 05:41:42 robertc Exp $ +# $Id: Makefile.in,v 1.15 2002/09/15 06:40:40 robertc Exp $ # SHELL = @SHELL@ @@ -74,6 +74,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/helpers/digest_auth/password/Makefile.in b/helpers/digest_auth/password/Makefile.in index 61132f75dc..b12bdffa67 100644 --- a/helpers/digest_auth/password/Makefile.in +++ b/helpers/digest_auth/password/Makefile.in @@ -16,7 +16,7 @@ # # Makefile for the Squid Object Cache server # -# $Id: Makefile.in,v 1.16 2002/09/15 05:41:42 robertc Exp $ +# $Id: Makefile.in,v 1.17 2002/09/15 06:40:41 robertc Exp $ # # Uncomment and customize the following to suit your needs: # @@ -77,6 +77,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/helpers/external_acl/Makefile.in b/helpers/external_acl/Makefile.in index d0cd3555dd..819884153c 100644 --- a/helpers/external_acl/Makefile.in +++ b/helpers/external_acl/Makefile.in @@ -15,7 +15,7 @@ # Makefile for storage modules in the Squid Object Cache server # -# $Id: Makefile.in,v 1.4 2002/09/15 05:41:43 robertc Exp $ +# $Id: Makefile.in,v 1.5 2002/09/15 06:40:42 robertc Exp $ # SHELL = @SHELL@ @@ -74,6 +74,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/helpers/external_acl/ip_user/Makefile.in b/helpers/external_acl/ip_user/Makefile.in index ebb37f5fc1..9dfccda68b 100644 --- a/helpers/external_acl/ip_user/Makefile.in +++ b/helpers/external_acl/ip_user/Makefile.in @@ -16,7 +16,7 @@ # # Makefile for the ip_user external_acl helper by Rodrigo Campos # -# $Id: Makefile.in,v 1.4 2002/09/15 05:41:44 robertc Exp $ +# $Id: Makefile.in,v 1.5 2002/09/15 06:40:43 robertc Exp $ # # Uncomment and customize the following to suit your needs: # @@ -77,6 +77,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/helpers/external_acl/ldap_group/Makefile.in b/helpers/external_acl/ldap_group/Makefile.in index 9e3870d006..5da9e0dbbe 100644 --- a/helpers/external_acl/ldap_group/Makefile.in +++ b/helpers/external_acl/ldap_group/Makefile.in @@ -16,7 +16,7 @@ # # Makefile for the Squid LDAP authentication helper # -# $Id: Makefile.in,v 1.4 2002/09/15 05:41:45 robertc Exp $ +# $Id: Makefile.in,v 1.5 2002/09/15 06:40:44 robertc Exp $ # # Uncomment and customize the following to suit your needs: # @@ -77,6 +77,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/helpers/external_acl/unix_group/Makefile.in b/helpers/external_acl/unix_group/Makefile.in index c3f2014ca0..d217b0cbf8 100644 --- a/helpers/external_acl/unix_group/Makefile.in +++ b/helpers/external_acl/unix_group/Makefile.in @@ -16,7 +16,7 @@ # # Makefile for the Squid LDAP authentication helper # -# $Id: Makefile.in,v 1.4 2002/09/15 05:41:45 robertc Exp $ +# $Id: Makefile.in,v 1.5 2002/09/15 06:40:44 robertc Exp $ # # Uncomment and customize the following to suit your needs: # @@ -77,6 +77,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/helpers/external_acl/wbinfo_group/Makefile.in b/helpers/external_acl/wbinfo_group/Makefile.in index d5238c874e..ac41c9c6b8 100644 --- a/helpers/external_acl/wbinfo_group/Makefile.in +++ b/helpers/external_acl/wbinfo_group/Makefile.in @@ -16,7 +16,7 @@ # # Makefile for the Squid LDAP authentication helper # -# $Id: Makefile.in,v 1.3 2002/09/15 05:41:46 robertc Exp $ +# $Id: Makefile.in,v 1.4 2002/09/15 06:40:45 robertc Exp $ # # Uncomment and customize the following to suit your needs: # @@ -77,6 +77,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/helpers/external_acl/winbind_group/Makefile.in b/helpers/external_acl/winbind_group/Makefile.in index e1af82fb01..ffb45feb08 100644 --- a/helpers/external_acl/winbind_group/Makefile.in +++ b/helpers/external_acl/winbind_group/Makefile.in @@ -16,7 +16,7 @@ # # Makefile for the wb_group external_acl helper # -# $Id: Makefile.in,v 1.4 2002/09/15 05:41:47 robertc Exp $ +# $Id: Makefile.in,v 1.5 2002/09/15 06:40:46 robertc Exp $ # SHELL = @SHELL@ @@ -75,6 +75,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/helpers/ntlm_auth/Makefile.in b/helpers/ntlm_auth/Makefile.in index efeef12576..c462aba0ba 100644 --- a/helpers/ntlm_auth/Makefile.in +++ b/helpers/ntlm_auth/Makefile.in @@ -15,7 +15,7 @@ # Makefile for storage modules in the Squid Object Cache server # -# $Id: Makefile.in,v 1.17 2002/09/15 05:41:48 robertc Exp $ +# $Id: Makefile.in,v 1.18 2002/09/15 06:40:47 robertc Exp $ # SHELL = @SHELL@ @@ -74,6 +74,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/helpers/ntlm_auth/SMB/Makefile.in b/helpers/ntlm_auth/SMB/Makefile.in index e8cee6fadc..3cbca5385b 100644 --- a/helpers/ntlm_auth/SMB/Makefile.in +++ b/helpers/ntlm_auth/SMB/Makefile.in @@ -16,7 +16,7 @@ # # Makefile for the Squid Object Cache server # -# $Id: Makefile.in,v 1.17 2002/09/15 05:41:49 robertc Exp $ +# $Id: Makefile.in,v 1.18 2002/09/15 06:40:47 robertc Exp $ # SHELL = @SHELL@ @@ -75,6 +75,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/helpers/ntlm_auth/SMB/smbval/Makefile.in b/helpers/ntlm_auth/SMB/smbval/Makefile.in index 48e74a33bd..48b671ce32 100644 --- a/helpers/ntlm_auth/SMB/smbval/Makefile.in +++ b/helpers/ntlm_auth/SMB/smbval/Makefile.in @@ -71,6 +71,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/helpers/ntlm_auth/fakeauth/Makefile.in b/helpers/ntlm_auth/fakeauth/Makefile.in index f8a9fc614a..4cfcc1ee5a 100644 --- a/helpers/ntlm_auth/fakeauth/Makefile.in +++ b/helpers/ntlm_auth/fakeauth/Makefile.in @@ -16,7 +16,7 @@ # # Makefile for the Squid Object Cache server # -# $Id: Makefile.in,v 1.16 2002/09/15 05:41:50 robertc Exp $ +# $Id: Makefile.in,v 1.17 2002/09/15 06:40:49 robertc Exp $ # # Uncomment and customize the following to suit your needs: # @@ -77,6 +77,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/helpers/ntlm_auth/no_check/Makefile.in b/helpers/ntlm_auth/no_check/Makefile.in index 9f9f9f7cf1..2ff281db2c 100644 --- a/helpers/ntlm_auth/no_check/Makefile.in +++ b/helpers/ntlm_auth/no_check/Makefile.in @@ -16,7 +16,7 @@ # # Makefile for the Squid Object Cache server # -# $Id: Makefile.in,v 1.18 2002/09/15 05:41:51 robertc Exp $ +# $Id: Makefile.in,v 1.19 2002/09/15 06:40:50 robertc Exp $ # # Uncomment and customize the following to suit your needs: # @@ -77,6 +77,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/helpers/ntlm_auth/winbind/Makefile.in b/helpers/ntlm_auth/winbind/Makefile.in index c1af077acd..574f5549ff 100644 --- a/helpers/ntlm_auth/winbind/Makefile.in +++ b/helpers/ntlm_auth/winbind/Makefile.in @@ -16,7 +16,7 @@ # # Makefile for the Squid Object Cache server # -# $Id: Makefile.in,v 1.9 2002/09/15 05:41:53 robertc Exp $ +# $Id: Makefile.in,v 1.10 2002/09/15 06:40:51 robertc Exp $ # SHELL = @SHELL@ @@ -75,6 +75,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/icons/Makefile.in b/icons/Makefile.in index f16bbdd1c8..0641ee0100 100644 --- a/icons/Makefile.in +++ b/icons/Makefile.in @@ -13,7 +13,7 @@ @SET_MAKE@ -# $Id: Makefile.in,v 1.28 2002/09/15 05:41:54 robertc Exp $ +# $Id: Makefile.in,v 1.29 2002/09/15 06:40:52 robertc Exp $ # SHELL = @SHELL@ @@ -72,6 +72,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/include/rfc1035.h b/include/rfc1035.h index db17ecd690..52efa94a51 100644 --- a/include/rfc1035.h +++ b/include/rfc1035.h @@ -1,5 +1,5 @@ /* - * $Id: rfc1035.h,v 1.6 2001/10/08 16:18:31 hno Exp $ + * $Id: rfc1035.h,v 1.7 2002/09/15 06:40:53 robertc Exp $ * * AUTHOR: Duane Wessels * @@ -51,7 +51,7 @@ typedef struct _rfc1035_rr rfc1035_rr; struct _rfc1035_rr { char name[RFC1035_MAXHOSTNAMESZ]; unsigned short type; - unsigned short class; + unsigned short _class; unsigned int ttl; unsigned short rdlength; char *rdata; diff --git a/lib/Makefile.in b/lib/Makefile.in index 48dc95920f..c64c5ed148 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in @@ -14,7 +14,7 @@ @SET_MAKE@ # -# $Id: Makefile.in,v 1.64 2002/09/15 05:41:55 robertc Exp $ +# $Id: Makefile.in,v 1.65 2002/09/15 06:40:54 robertc Exp $ # SHELL = @SHELL@ @@ -73,6 +73,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/lib/rfc1035.c b/lib/rfc1035.c index 8fe084f54d..9aa6574d05 100644 --- a/lib/rfc1035.c +++ b/lib/rfc1035.c @@ -1,6 +1,6 @@ /* - * $Id: rfc1035.c,v 1.26 2002/04/10 21:16:17 hno Exp $ + * $Id: rfc1035.c,v 1.27 2002/09/15 06:40:54 robertc Exp $ * * Low level DNS protocol routines * AUTHOR: Duane Wessels @@ -211,7 +211,7 @@ rfc1035QuestionPack(char *buf, size_t sz, const char *name, unsigned short type, - unsigned short class) + unsigned short _class) { off_t off = 0; unsigned short s; @@ -219,7 +219,7 @@ rfc1035QuestionPack(char *buf, s = htons(type); memcpy(buf + off, &s, sizeof(s)); off += sizeof(s); - s = htons(class); + s = htons(_class); memcpy(buf + off, &s, sizeof(s)); off += sizeof(s); assert(off <= sz); @@ -386,7 +386,7 @@ rfc1035RRUnpack(const char *buf, size_t sz, off_t * off, rfc1035_rr * RR) RR->type = ntohs(s); memcpy(&s, buf + (*off), sizeof(s)); (*off) += sizeof(s); - RR->class = ntohs(s); + RR->_class = ntohs(s); memcpy(&i, buf + (*off), sizeof(i)); (*off) += sizeof(i); RR->ttl = ntohl(i); diff --git a/scripts/Makefile.in b/scripts/Makefile.in index 3f73103ece..07022109a5 100644 --- a/scripts/Makefile.in +++ b/scripts/Makefile.in @@ -74,6 +74,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/snmplib/Makefile.in b/snmplib/Makefile.in index 81267c6f53..1f26650d9d 100644 --- a/snmplib/Makefile.in +++ b/snmplib/Makefile.in @@ -69,6 +69,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/src/Makefile.am b/src/Makefile.am index 8e98d5d9ab..9759897b51 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,7 +1,7 @@ # # Makefile for the Squid Object Cache server # -# $Id: Makefile.am,v 1.29 2002/09/15 05:41:56 robertc Exp $ +# $Id: Makefile.am,v 1.30 2002/09/15 06:40:56 robertc Exp $ # # Uncomment and customize the following to suit your needs: # @@ -228,6 +228,7 @@ squid_LDADD = \ @SSLLIB@ \ -lmiscutil \ @XTRA_LIBS@ +squid_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a unlinkd_SOURCES = unlinkd_LDADD = unlinkd-daemon.o diff --git a/src/Makefile.in b/src/Makefile.in index f6afbd6c89..52611fc904 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -16,7 +16,7 @@ # # Makefile for the Squid Object Cache server # -# $Id: Makefile.in,v 1.241 2002/09/15 05:41:56 robertc Exp $ +# $Id: Makefile.in,v 1.242 2002/09/15 06:40:56 robertc Exp $ # # Uncomment and customize the following to suit your needs: # @@ -77,6 +77,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ @@ -331,6 +332,7 @@ squid_LDADD = \ -lmiscutil \ @XTRA_LIBS@ +squid_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a unlinkd_SOURCES = unlinkd_LDADD = unlinkd-daemon.o @@ -500,7 +502,6 @@ nodist_squid_OBJECTS = repl_modules.$(OBJEXT) auth_modules.$(OBJEXT) \ store_modules.$(OBJEXT) globals.$(OBJEXT) \ string_arrays.$(OBJEXT) squid_OBJECTS = $(am_squid_OBJECTS) $(nodist_squid_OBJECTS) -squid_DEPENDENCIES = squid_LDFLAGS = am_squidclient_OBJECTS = client.$(OBJEXT) squidclient_OBJECTS = $(am_squidclient_OBJECTS) diff --git a/src/access_log.cc b/src/access_log.cc index 9aa4188c19..1ddd404c36 100644 --- a/src/access_log.cc +++ b/src/access_log.cc @@ -1,6 +1,6 @@ /* - * $Id: access_log.cc,v 1.74 2002/06/16 11:24:00 hno Exp $ + * $Id: access_log.cc,v 1.75 2002/09/15 06:40:56 robertc Exp $ * * DEBUG: section 46 Access Log * AUTHOR: Duane Wessels @@ -250,7 +250,7 @@ accessLogSquid(AccessLogEntry * al) log_tags[al->cache.code], al->http.code, (long int) al->cache.size, - al->private.method_str, + al->_private.method_str, al->url, user && *user ? user : dash_str, al->hier.ping.timedout ? "TIMEOUT_" : "", @@ -276,7 +276,7 @@ accessLogCommon(AccessLogEntry * al) user2 ? user2 : dash_str, user1 ? user1 : dash_str, mkhttpdlogtime(&squid_curtime), - al->private.method_str, + al->_private.method_str, al->url, al->http.version.major, al->http.version.minor, al->http.code, @@ -297,9 +297,9 @@ accessLogLog(AccessLogEntry * al) if (!al->http.content_type || *al->http.content_type == '\0') al->http.content_type = dash_str; if (al->icp.opcode) - al->private.method_str = icp_opcode_str[al->icp.opcode]; + al->_private.method_str = icp_opcode_str[al->icp.opcode]; else - al->private.method_str = RequestMethodStr[al->http.method]; + al->_private.method_str = RequestMethodStr[al->http.method]; if (al->hier.host[0] == '\0') xstrncpy(al->hier.host, dash_str, SQUIDHOSTNAMELEN); diff --git a/src/acl.cc b/src/acl.cc index e02c51891a..2ea7f13407 100644 --- a/src/acl.cc +++ b/src/acl.cc @@ -1,6 +1,6 @@ /* - * $Id: acl.cc,v 1.284 2002/09/07 15:12:55 hno Exp $ + * $Id: acl.cc,v 1.285 2002/09/15 06:40:56 robertc Exp $ * * DEBUG: section 28 Access Control * AUTHOR: Duane Wessels @@ -949,8 +949,8 @@ aclParseAccessLine(acl_access ** head) cbdataFree(A); return; } - aclParseAclList(&A->acl_list); - if (A->acl_list == NULL) { + aclParseAclList(&A->aclList); + if (A->aclList == NULL) { debug(28, 0) ("%s line %d: %s\n", cfg_filename, config_lineno, config_input_line); debug(28, 0) ("aclParseAccessLine: Access line contains no ACL's, skipping\n"); @@ -991,7 +991,7 @@ aclParseAclList(acl_list ** head) memFree(L, MEM_ACL_LIST); continue; } - L->acl = a; + L->_acl = a; *Tail = L; Tail = &L->next; } @@ -1683,10 +1683,10 @@ int aclMatchAclList(const acl_list * list, aclCheck_t * checklist) { while (list) { - AclMatchedName = list->acl->name; + AclMatchedName = list->_acl->name; debug(28, 3) ("aclMatchAclList: checking %s%s\n", - list->op ? null_string : "!", list->acl->name); - if (aclMatchAcl(list->acl, checklist) != list->op) { + list->op ? null_string : "!", list->_acl->name); + if (aclMatchAcl(list->_acl, checklist) != list->op) { debug(28, 3) ("aclMatchAclList: returning 0\n"); return 0; } @@ -1712,7 +1712,7 @@ aclCheckFast(const acl_access * A, aclCheck_t * checklist) debug(28, 5) ("aclCheckFast: list: %p\n", A); while (A) { allow = A->allow; - if (aclMatchAclList(A->acl_list, checklist)) { + if (aclMatchAclList(A->aclList, checklist)) { aclCheckCleanup(checklist); return allow == ACCESS_ALLOWED; } @@ -1733,19 +1733,19 @@ aclCheck(aclCheck_t * checklist) /* NOTE: This holds a cbdata reference to the current access_list * entry, not the whole list. */ - while ((A = checklist->access_list) != NULL) { + while ((A = checklist->accessList) != NULL) { /* * If the _acl_access is no longer valid (i.e. its been * freed because of a reconfigure), then bail on this * access check. For now, return ACCESS_DENIED. */ if (!cbdataReferenceValid(A)) { - cbdataReferenceDone(checklist->access_list); + cbdataReferenceDone(checklist->accessList); break; } debug(28, 3) ("aclCheck: checking '%s'\n", A->cfgline); allow = A->allow; - match = aclMatchAclList(A->acl_list, checklist); + match = aclMatchAclList(A->aclList, checklist); if (checklist->state[ACL_DST_IP] == ACL_LOOKUP_NEEDED) { checklist->state[ACL_DST_IP] = ACL_LOOKUP_PENDING; ipcache_nbgethostbyname(checklist->request->host, @@ -1815,14 +1815,14 @@ aclCheck(aclCheck_t * checklist) */ if (match) { debug(28, 3) ("aclCheck: match found, returning %d\n", allow); - cbdataReferenceDone(checklist->access_list); /* A */ + cbdataReferenceDone(checklist->accessList); /* A */ aclCheckCallback(checklist, allow); return; } /* * Reference the next _acl_access entry */ - checklist->access_list = cbdataReference(A->next); + checklist->accessList = cbdataReference(A->next); cbdataReferenceDone(A); } debug(28, 3) ("aclCheck: NO match found, returning %d\n", allow != ACCESS_DENIED ? ACCESS_DENIED : ACCESS_ALLOWED); @@ -1954,7 +1954,7 @@ aclChecklistCreate(const acl_access * A, request_t * request, const char *ident) int i; aclCheck_t *checklist; checklist = cbdataAlloc(aclCheck_t); - checklist->access_list = cbdataReference(A); + checklist->accessList = cbdataReference(A); if (request != NULL) { checklist->request = requestLink(request); checklist->src_addr = request->client_addr; @@ -2127,7 +2127,7 @@ aclDestroyAccessList(acl_access ** list) for (l = *list; l; l = next) { debug(28, 3) ("aclDestroyAccessList: '%s'\n", l->cfgline); next = l->next; - aclDestroyAclList(&l->acl_list); + aclDestroyAclList(&l->aclList); safe_free(l->cfgline); cbdataFree(l); } @@ -2530,10 +2530,10 @@ aclPurgeMethodInUse(acl_access * a) { acl_list *b; for (; a; a = a->next) { - for (b = a->acl_list; b; b = b->next) { - if (ACL_METHOD != b->acl->type) + for (b = a->aclList; b; b = b->next) { + if (ACL_METHOD != b->_acl->type) continue; - if (aclMatchInteger(b->acl->data, METHOD_PURGE)) + if (aclMatchInteger(b->_acl->data, METHOD_PURGE)) return 1; } } diff --git a/src/auth/Makefile.in b/src/auth/Makefile.in index 8a89924a99..42faeafc5a 100644 --- a/src/auth/Makefile.in +++ b/src/auth/Makefile.in @@ -15,7 +15,7 @@ # Makefile for authentication modules in the Squid Object Cache server # -# $Id: Makefile.in,v 1.13 2002/09/15 05:41:59 robertc Exp $ +# $Id: Makefile.in,v 1.14 2002/09/15 06:41:05 robertc Exp $ # SHELL = @SHELL@ @@ -74,6 +74,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/src/auth/basic/Makefile.in b/src/auth/basic/Makefile.in index 7944d65392..6bf541aab3 100644 --- a/src/auth/basic/Makefile.in +++ b/src/auth/basic/Makefile.in @@ -69,6 +69,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/src/auth/digest/Makefile.in b/src/auth/digest/Makefile.in index 4471b19e03..ba5c732b13 100644 --- a/src/auth/digest/Makefile.in +++ b/src/auth/digest/Makefile.in @@ -69,6 +69,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/src/auth/ntlm/Makefile.in b/src/auth/ntlm/Makefile.in index 39f3150c25..733833feaa 100644 --- a/src/auth/ntlm/Makefile.in +++ b/src/auth/ntlm/Makefile.in @@ -69,6 +69,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/src/cache_cf.cc b/src/cache_cf.cc index 0039f50148..0a487e2c32 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -1,6 +1,6 @@ /* - * $Id: cache_cf.cc,v 1.414 2002/09/07 15:12:56 hno Exp $ + * $Id: cache_cf.cc,v 1.415 2002/09/15 06:40:57 robertc Exp $ * * DEBUG: section 3 Configuration File Parsing * AUTHOR: Harvest Derived @@ -453,11 +453,11 @@ configDoConfigure(void) debug(22, 1) ("WARNING: HTTP requires the use of Via\n"); #endif if (Config.Wais.relayHost) { - if (Config.Wais.peer) - cbdataFree(Config.Wais.peer); - Config.Wais.peer = cbdataAlloc(peer); - Config.Wais.peer->host = xstrdup(Config.Wais.relayHost); - Config.Wais.peer->http_port = Config.Wais.relayPort; + if (Config.Wais._peer) + cbdataFree(Config.Wais._peer); + Config.Wais._peer = cbdataAlloc(peer); + Config.Wais._peer->host = xstrdup(Config.Wais.relayHost); + Config.Wais._peer->http_port = Config.Wais.relayPort; } if (aclPurgeMethodInUse(Config.accessList.http)) Config2.onoff.enable_purge = 1; @@ -634,7 +634,7 @@ dump_acl_list(StoreEntry * entry, acl_list * head) for (l = head; l; l = l->next) { storeAppendPrintf(entry, " %s%s", l->op ? null_string : "!", - l->acl->name); + l->_acl->name); } } @@ -646,7 +646,7 @@ dump_acl_access(StoreEntry * entry, const char *name, acl_access * head) storeAppendPrintf(entry, "%s %s", name, l->allow ? "Allow" : "Deny"); - dump_acl_list(entry, l->acl_list); + dump_acl_list(entry, l->aclList); storeAppendPrintf(entry, "\n"); } } @@ -702,7 +702,7 @@ dump_acl_address(StoreEntry * entry, const char *name, acl_address * head) storeAppendPrintf(entry, "%s %s", name, inet_ntoa(l->addr)); else storeAppendPrintf(entry, "%s autoselect", name); - dump_acl_list(entry, l->acl_list); + dump_acl_list(entry, l->aclList); storeAppendPrintf(entry, "\n"); } } @@ -711,7 +711,7 @@ static void freed_acl_address(void *data) { acl_address *l = data; - aclDestroyAclList(&l->acl_list); + aclDestroyAclList(&l->aclList); } static void @@ -722,7 +722,7 @@ parse_acl_address(acl_address ** head) CBDATA_INIT_TYPE_FREECB(acl_address, freed_acl_address); l = cbdataAlloc(acl_address); parse_address(&l->addr); - aclParseAclList(&l->acl_list); + aclParseAclList(&l->aclList); while (*tail) tail = &(*tail)->next; *tail = l; @@ -749,7 +749,7 @@ dump_acl_tos(StoreEntry * entry, const char *name, acl_tos * head) storeAppendPrintf(entry, "%s 0x%02X", name, l->tos); else storeAppendPrintf(entry, "%s none", name); - dump_acl_list(entry, l->acl_list); + dump_acl_list(entry, l->aclList); storeAppendPrintf(entry, "\n"); } } @@ -758,7 +758,7 @@ static void freed_acl_tos(void *data) { acl_tos *l = data; - aclDestroyAclList(&l->acl_list); + aclDestroyAclList(&l->aclList); } static void @@ -778,7 +778,7 @@ parse_acl_tos(acl_tos ** head) CBDATA_INIT_TYPE_FREECB(acl_tos, freed_acl_tos); l = cbdataAlloc(acl_tos); l->tos = tos; - aclParseAclList(&l->acl_list); + aclParseAclList(&l->aclList); while (*tail) tail = &(*tail)->next; *tail = l; @@ -2068,10 +2068,10 @@ dump_body_size_t(StoreEntry * entry, const char *name, dlink_list bodylist) while (head != NULL) { storeAppendPrintf(entry, "%s %ld %s", name, (long int) bs->maxsize, head->allow ? "Allow" : "Deny"); - for (l = head->acl_list; l != NULL; l = l->next) { + for (l = head->aclList; l != NULL; l = l->next) { storeAppendPrintf(entry, " %s%s", l->op ? null_string : "!", - l->acl->name); + l->_acl->name); } storeAppendPrintf(entry, "\n"); head = head->next; @@ -2519,4 +2519,3 @@ strtokFile(void) return t; } } - diff --git a/src/client_side.cc b/src/client_side.cc index 58fb0ff04f..f7d10fb32e 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.591 2002/09/15 05:41:56 robertc Exp $ + * $Id: client_side.cc,v 1.592 2002/09/15 06:40:57 robertc Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -228,13 +228,13 @@ clientUpdateCounters(clientHttpRequest * http) ping_data *i; HierarchyLogEntry *H; statCounter.client_http.requests++; - if (isTcpHit(http->log_type)) + if (isTcpHit(http->logType)) statCounter.client_http.hits++; - if (http->log_type == LOG_TCP_HIT) + if (http->logType == LOG_TCP_HIT) statCounter.client_http.disk_hits++; - else if (http->log_type == LOG_TCP_MEM_HIT) + else if (http->logType == LOG_TCP_MEM_HIT) statCounter.client_http.mem_hits++; - if (http->request->err_type != ERR_NONE) + if (http->request->errType != ERR_NONE) statCounter.client_http.errors++; statHistCount(&statCounter.client_http.all_svc_time, svc_time); /* @@ -243,7 +243,7 @@ clientUpdateCounters(clientHttpRequest * http) * LOG_TCP_REFRESH_FAIL_HIT because its not really a cache hit * (we *tried* to validate it, but failed). */ - switch (http->log_type) { + switch (http->logType) { case LOG_TCP_REFRESH_HIT: statHistCount(&statCounter.client_http.nh_svc_time, svc_time); break; @@ -303,10 +303,10 @@ httpRequestFree(void *data) /* the ICP check here was erroneous - storeReleaseRequest was always called if entry was valid */ } - assert(http->log_type < LOG_TYPE_MAX); + assert(http->logType < LOG_TYPE_MAX); if (http->entry) mem = http->entry->mem_obj; - if (http->out.size || http->log_type) { + if (http->out.size || http->logType) { http->al.icp.opcode = ICP_INVALID; http->al.url = http->log_uri; debug(33, 9) ("httpRequestFree: al.url='%s'\n", http->al.url); @@ -316,7 +316,7 @@ httpRequestFree(void *data) } http->al.cache.caddr = conn ? conn->log_addr : no_addr; http->al.cache.size = http->out.size; - http->al.cache.code = http->log_type; + http->al.cache.code = http->logType; http->al.cache.msec = tvSubMsec(http->start, current_time); if (request) { Packer p; @@ -343,11 +343,11 @@ httpRequestFree(void *data) accessLogLog(&http->al); clientUpdateCounters(http); if (conn) - clientdbUpdate(conn->peer.sin_addr, http->log_type, PROTO_HTTP, + clientdbUpdate(conn->peer.sin_addr, http->logType, PROTO_HTTP, http->out.size); } if (request) - checkFailureRatio(request->err_type, http->al.hier.code); + checkFailureRatio(request->errType, http->al.hier.code); safe_free(http->uri); safe_free(http->log_uri); safe_free(http->al.headers.request); @@ -656,7 +656,7 @@ clientWriteComplete(int fd, char *bufnotused, size_t size, int errflag, void *da fd, (long int) size, errflag, (long int) http->out.size, entry ? objectLen(entry) : 0); if (size > 0 && fd > -1) { kb_incr(&statCounter.client_http.kbytes_out, size); - if (isTcpHit(http->log_type)) + if (isTcpHit(http->logType)) kb_incr(&statCounter.client_http.hit_kbytes_out, size); } if (errflag) { diff --git a/src/client_side_reply.cc b/src/client_side_reply.cc index a4c43872b1..966c82ac47 100644 --- a/src/client_side_reply.cc +++ b/src/client_side_reply.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side_reply.cc,v 1.1 2002/09/15 05:41:56 robertc Exp $ + * $Id: client_side_reply.cc,v 1.2 2002/09/15 06:40:57 robertc Exp $ * * DEBUG: section 88 Client-side Reply Routines * AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c) @@ -128,7 +128,7 @@ clientSetReplyToError(void *data, if (status == HTTP_NOT_IMPLEMENTED && context->http->request) /* prevent confusion over whether we default to persistent or not */ context->http->request->flags.proxy_keepalive = 0; - context->http->al.http.code = errstate->http_status; + context->http->al.http.code = errstate->httpStatus; context->http->entry = clientCreateStoreEntry(context, method, null_request_flags); @@ -342,7 +342,7 @@ clientHandleIMSReply(void *data, char *buf, ssize_t size) debug(88, 3) ("clientHandleIMSReply: ABORTED '%s'\n", url); /* We have an existing entry, but failed to validate it */ /* Its okay to send the old one anyway */ - http->log_type = LOG_TCP_REFRESH_FAIL_HIT; + http->logType = LOG_TCP_REFRESH_FAIL_HIT; clientRemoveStoreReference(context, &context->sc, &entry); /* Get the old request back */ clientReplyContextRestoreState(context, http); @@ -358,7 +358,7 @@ clientHandleIMSReply(void *data, char *buf, ssize_t size) ("clientHandleIMSReply: Reply is too large '%s', using old entry\n", url); /* use old entry, this repeats the code abovez */ - http->log_type = LOG_TCP_REFRESH_FAIL_HIT; + http->logType = LOG_TCP_REFRESH_FAIL_HIT; clientRemoveStoreReference(context, &context->sc, &entry); entry = http->entry = http->old_entry; /* Get the old request back */ @@ -379,7 +379,7 @@ clientHandleIMSReply(void *data, char *buf, ssize_t size) * headers have been loaded from disk. */ clientStreamNode *next = context->http->client_stream.head->next->data; oldentry = http->old_entry; - http->log_type = LOG_TCP_REFRESH_HIT; + http->logType = LOG_TCP_REFRESH_HIT; if (oldentry->mem_obj->request == NULL) { oldentry->mem_obj->request = requestLink(mem->request); unlink_request = 1; @@ -404,12 +404,12 @@ clientHandleIMSReply(void *data, char *buf, ssize_t size) clientSendMoreData(context, next->readbuf, context->reqsize); } else { /* the client can handle this reply, whatever it is */ - http->log_type = LOG_TCP_REFRESH_MISS; + http->logType = LOG_TCP_REFRESH_MISS; if (HTTP_NOT_MODIFIED == mem->reply->sline.status) { httpReplyUpdateOnNotModified(http->old_entry->mem_obj->reply, mem->reply); storeTimestampsSet(http->old_entry); - http->log_type = LOG_TCP_REFRESH_HIT; + http->logType = LOG_TCP_REFRESH_HIT; } clientRemoveStoreReference(context, &context->old_sc, &http->old_entry); /* here the data to send is the data we just recieved */ @@ -446,7 +446,7 @@ clientCacheHit(void *data, char *buf, ssize_t size) } else if (size < 0) { /* swap in failure */ debug(88, 3) ("clientCacheHit: swapin failure for %s\n", http->uri); - http->log_type = LOG_TCP_SWAPFAIL_MISS; + http->logType = LOG_TCP_SWAPFAIL_MISS; clientRemoveStoreReference(context, &context->sc, &http->entry); clientProcessMiss(context); return; @@ -483,7 +483,7 @@ clientCacheHit(void *data, char *buf, ssize_t size) /* * Got the headers, now grok them */ - assert(http->log_type == LOG_TCP_HIT); + assert(http->logType == LOG_TCP_HIT); switch (varyEvaluateMatch(e, r)) { case VARY_NONE: /* No variance detected. Continue as normal */ @@ -517,7 +517,7 @@ clientCacheHit(void *data, char *buf, ssize_t size) return; } if (storeCheckNegativeHit(e)) { - http->log_type = LOG_TCP_NEGATIVE_HIT; + http->logType = LOG_TCP_NEGATIVE_HIT; clientSendMoreData(context, buf, size); } else if (r->method == METHOD_HEAD) { /* @@ -526,7 +526,7 @@ clientCacheHit(void *data, char *buf, ssize_t size) * request, nor can we return 304. */ if (e->mem_status == IN_MEMORY) - http->log_type = LOG_TCP_MEM_HIT; + http->logType = LOG_TCP_MEM_HIT; clientSendMoreData(context, buf, size); } else if (refreshCheckHTTP(e, r) && !http->flags.internal) { debug(88, 5) ("clientCacheHit: in refreshCheck() block\n"); @@ -546,28 +546,28 @@ clientCacheHit(void *data, char *buf, ssize_t size) * Previous reply didn't have a Last-Modified header, * we cannot revalidate it. */ - http->log_type = LOG_TCP_MISS; + http->logType = LOG_TCP_MISS; clientProcessMiss(context); } else if (r->flags.nocache) { /* * This did not match a refresh pattern that overrides no-cache * we should honour the client no-cache header. */ - http->log_type = LOG_TCP_CLIENT_REFRESH_MISS; + http->logType = LOG_TCP_CLIENT_REFRESH_MISS; clientProcessMiss(context); } else if (r->protocol == PROTO_HTTP) { /* * Object needs to be revalidated * XXX This could apply to FTP as well, if Last-Modified is known. */ - http->log_type = LOG_TCP_REFRESH_MISS; + http->logType = LOG_TCP_REFRESH_MISS; clientProcessExpired(context); } else { /* * We don't know how to re-validate other protocols. Handle * them as if the object has expired. */ - http->log_type = LOG_TCP_MISS; + http->logType = LOG_TCP_MISS; clientProcessMiss(context); } } else if (r->flags.ims) { @@ -577,16 +577,16 @@ clientCacheHit(void *data, char *buf, ssize_t size) if (mem->reply->sline.status != HTTP_OK) { debug(88, 4) ("clientCacheHit: Reply code %d != 200\n", mem->reply->sline.status); - http->log_type = LOG_TCP_MISS; + http->logType = LOG_TCP_MISS; clientProcessMiss(context); } else if (modifiedSince(e, http->request)) { - http->log_type = LOG_TCP_IMS_HIT; + http->logType = LOG_TCP_IMS_HIT; clientSendMoreData(context, buf, size); } else { clientStreamNode *next; time_t timestamp = e->timestamp; MemBuf mb = httpPacked304Reply(e->mem_obj->reply); - http->log_type = LOG_TCP_IMS_HIT; + http->logType = LOG_TCP_IMS_HIT; clientRemoveStoreReference(context, &context->sc, &http->entry); http->entry = e = clientCreateStoreEntry(context, http->request->method, @@ -616,9 +616,9 @@ clientCacheHit(void *data, char *buf, ssize_t size) * plain ol' cache hit */ if (e->mem_status == IN_MEMORY) - http->log_type = LOG_TCP_MEM_HIT; + http->logType = LOG_TCP_MEM_HIT; else if (Config.onoff.offline) - http->log_type = LOG_TCP_OFFLINE_HIT; + http->logType = LOG_TCP_OFFLINE_HIT; clientSendMoreData(context, buf, size); } } @@ -643,7 +643,7 @@ clientProcessMiss(clientReplyContext * context) if (EBIT_TEST(http->entry->flags, ENTRY_SPECIAL)) { debug(88, 0) ("clientProcessMiss: miss on a special object (%s).\n", url); - debug(88, 0) ("\tlog_type = %s\n", log_tags[http->log_type]); + debug(88, 0) ("\tlog_type = %s\n", log_tags[http->logType]); storeEntryDump(http->entry, 1); } clientRemoveStoreReference(context, &context->sc, &http->entry); @@ -684,7 +684,7 @@ clientProcessMiss(clientReplyContext * context) if (http->redirect.status) { HttpReply *rep = httpReplyCreate(); #if LOG_TCP_REDIRECTS - http->log_type = LOG_TCP_REDIRECT; + http->logType = LOG_TCP_REDIRECT; #endif storeReleaseRequest(http->entry); httpRedirectReply(rep, http->redirect.status, @@ -743,7 +743,7 @@ clientPurgeRequest(clientReplyContext * context) Config2.onoff.enable_purge); next = http->client_stream.head->next->data; if (!Config2.onoff.enable_purge) { - http->log_type = LOG_TCP_DENIED; + http->logType = LOG_TCP_DENIED; err = clientBuildError(ERR_ACCESS_DENIED, HTTP_FORBIDDEN, NULL, &http->conn->peer.sin_addr, http->request); @@ -775,7 +775,7 @@ clientPurgeRequest(clientReplyContext * context) storeCreateMemObject(http->entry, http->uri, http->log_uri); http->entry->mem_obj->method = http->request->method; context->sc = storeClientListAdd(http->entry, context); - http->log_type = LOG_TCP_HIT; + http->logType = LOG_TCP_HIT; context->reqofs = 0; storeClientCopy(context->sc, http->entry, http->out.offset, @@ -783,7 +783,7 @@ clientPurgeRequest(clientReplyContext * context) return; } } - http->log_type = LOG_TCP_MISS; + http->logType = LOG_TCP_MISS; /* Release the cached URI */ entry = storeGetPublicByRequestMethod(http->request, METHOD_GET); if (entry) { @@ -1059,7 +1059,7 @@ static void clientBuildReplyHeader(clientHttpRequest * http, HttpReply * rep) { HttpHeader *hdr = &rep->header; - int is_hit = isTcpHit(http->log_type); + int is_hit = isTcpHit(http->logType); request_t *request = http->request; #if DONT_FILTER_THESE /* but you might want to if you run Squid as an HTTP accelerator */ @@ -1288,9 +1288,9 @@ clientGetMoreData(clientStreamNode * this, clientHttpRequest * http) return; } /* continue forwarding, not finished yet. */ - http->log_type = LOG_TCP_MISS; + http->logType = LOG_TCP_MISS; } else - http->log_type = clientIdentifyStoreObject(http); + http->logType = clientIdentifyStoreObject(http); /* We still have to do store logic processing - vary, cache hit etc */ if (context->http->entry != NULL) { /* someone found the object in the cache for us */ @@ -1312,14 +1312,14 @@ clientGetMoreData(clientStreamNode * this, clientHttpRequest * http) #if DELAY_POOLS delaySetStoreClient(context->http->sc, delayClient(context->http)); #endif - assert(context->http->log_type == LOG_TCP_HIT); + assert(context->http->logType == LOG_TCP_HIT); context->reqofs = 0; assert(http->out.offset == http->out.size && http->out.offset == 0); storeClientCopy(context->sc, http->entry, context->reqofs, next->readlen, next->readbuf, clientCacheHit, context); } else { - /* MISS CASE, http->log_type is already set! */ + /* MISS CASE, http->logType is already set! */ clientProcessMiss(context); } } diff --git a/src/client_side_request.cc b/src/client_side_request.cc index 82d94b4019..ef5e613261 100644 --- a/src/client_side_request.cc +++ b/src/client_side_request.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side_request.cc,v 1.1 2002/09/15 05:41:57 robertc Exp $ + * $Id: client_side_request.cc,v 1.2 2002/09/15 06:40:57 robertc Exp $ * * DEBUG: section 85 Client-side Request Routines * AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c) @@ -263,7 +263,7 @@ clientAccessCheckDone(int answer, void *data) * just below. Pedro Ribeiro */ page_id = aclGetDenyInfoPage(&Config.denyInfoList, AclMatchedName); - http->log_type = LOG_TCP_DENIED; + http->logType = LOG_TCP_DENIED; if (answer == ACCESS_REQ_PROXY_AUTH || aclIsProxyAuth(AclMatchedName)) { if (!http->flags.accel) { /* Proxy authorisation needed */ @@ -582,14 +582,14 @@ clientProcessRequest(clientHttpRequest * http) debug(85, 4) ("clientProcessRequest: %s '%s'\n", RequestMethodStr[r->method], http->uri); if (r->method == METHOD_CONNECT) { - http->log_type = LOG_TCP_MISS; + http->logType = LOG_TCP_MISS; sslStart(http, &http->out.size, &http->al.http.code); return; } else { - http->log_type = LOG_TAG_NONE; + http->logType = LOG_TAG_NONE; } debug(85, 4) ("clientProcessRequest: %s for '%s'\n", - log_tags[http->log_type], http->uri); + log_tags[http->logType], http->uri); /* no one should have touched this */ assert(http->out.offset == 0); /* Use the Stream Luke */ diff --git a/src/comm.cc b/src/comm.cc index 88d725c05f..30b3a2177f 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1,6 +1,6 @@ /* - * $Id: comm.cc,v 1.333 2002/09/15 06:23:28 adrian Exp $ + * $Id: comm.cc,v 1.334 2002/09/15 06:40:57 robertc Exp $ * * DEBUG: section 5 Socket Functions * AUTHOR: Harvest Derived @@ -563,8 +563,8 @@ commCallCloseHandlers(int fd) fde *F = &fd_table[fd]; close_handler *ch; debug(5, 5) ("commCallCloseHandlers: FD %d\n", fd); - while ((ch = F->close_handler) != NULL) { - F->close_handler = ch->next; + while ((ch = F->closeHandler) != NULL) { + F->closeHandler = ch->next; debug(5, 5) ("commCallCloseHandlers: ch->handler=%p\n", ch->handler); if (cbdataReferenceValid(ch->data)) ch->handler(fd, ch->data); @@ -704,12 +704,12 @@ comm_add_close_handler(int fd, PF * handler, void *data) close_handler *c; debug(5, 5) ("comm_add_close_handler: FD %d, handler=%p, data=%p\n", fd, handler, data); - for (c = fd_table[fd].close_handler; c; c = c->next) + for (c = fd_table[fd].closeHandler; c; c = c->next) assert(c->handler != handler || c->data != data); new->handler = handler; new->data = cbdataReference(data); - new->next = fd_table[fd].close_handler; - fd_table[fd].close_handler = new; + new->next = fd_table[fd].closeHandler; + fd_table[fd].closeHandler = new; } void @@ -720,7 +720,7 @@ comm_remove_close_handler(int fd, PF * handler, void *data) /* Find handler in list */ debug(5, 5) ("comm_remove_close_handler: FD %d, handler=%p, data=%p\n", fd, handler, data); - for (p = fd_table[fd].close_handler; p != NULL; last = p, p = p->next) + for (p = fd_table[fd].closeHandler; p != NULL; last = p, p = p->next) if (p->handler == handler && p->data == data) break; /* This is our handler */ assert(p != NULL); @@ -728,7 +728,7 @@ comm_remove_close_handler(int fd, PF * handler, void *data) if (last) last->next = p->next; else - fd_table[fd].close_handler = p->next; + fd_table[fd].closeHandler = p->next; cbdataReferenceDone(p->data); memPoolFree(conn_close_pool, p); } diff --git a/src/comm_poll.cc b/src/comm_poll.cc index 866a73ef9c..a507cc75a4 100644 --- a/src/comm_poll.cc +++ b/src/comm_poll.cc @@ -1,6 +1,6 @@ /* - * $Id: comm_poll.cc,v 1.4 2002/09/15 06:23:28 adrian Exp $ + * $Id: comm_poll.cc,v 1.5 2002/09/15 06:40:57 robertc Exp $ * * DEBUG: section 5 Socket Functions * @@ -475,15 +475,15 @@ comm_select(int msec) F->timeout_handler, F->read_handler, F->write_handler); - for (ch = F->close_handler; ch; ch = ch->next) + for (ch = F->closeHandler; ch; ch = ch->next) debug(5, 0) (" close handler: %p\n", ch->handler); - if (F->close_handler) { + if (F->closeHandler) { commCallCloseHandlers(fd); } else if (F->timeout_handler) { debug(5, 0) ("comm_poll: Calling Timeout Handler\n"); F->timeout_handler(fd, F->timeout_data); } - F->close_handler = NULL; + F->closeHandler = NULL; F->timeout_handler = NULL; F->read_handler = NULL; F->write_handler = NULL; diff --git a/src/errorpage.cc b/src/errorpage.cc index bda2c501a7..e87190f69b 100644 --- a/src/errorpage.cc +++ b/src/errorpage.cc @@ -1,6 +1,6 @@ /* - * $Id: errorpage.cc,v 1.176 2002/09/15 06:23:28 adrian Exp $ + * $Id: errorpage.cc,v 1.177 2002/09/15 06:40:57 robertc Exp $ * * DEBUG: section 4 Error Generation * AUTHOR: Duane Wessels @@ -266,7 +266,7 @@ errorCon(err_type type, http_status status) err = cbdataAlloc(ErrorState); err->page_id = type; /* has to be reset manually if needed */ err->type = type; - err->http_status = status; + err->httpStatus = status; return err; } @@ -358,7 +358,7 @@ errorSend(int fd, ErrorState * err) * the client side for logging and error tracking. */ if (err->request) - err->request->err_type = err->type; + err->request->errType = err->type; /* moved in front of errorBuildBuf @?@ */ err->flags.flag_cbdata = 1; rep = errorBuildReply(err); @@ -681,10 +681,10 @@ errorBuildReply(ErrorState * err) char *quoted_url = rfc1738_escape_part(errorConvert('u', err)); httpReplySetHeaders(rep, version, HTTP_MOVED_TEMPORARILY, NULL, "text/html", 0, 0, squid_curtime); httpHeaderPutStrf(&rep->header, HDR_LOCATION, name, quoted_url); - httpHeaderPutStrf(&rep->header, HDR_X_SQUID_ERROR, "%d %s\n", err->http_status, "Access Denied"); + httpHeaderPutStrf(&rep->header, HDR_X_SQUID_ERROR, "%d %s\n", err->httpStatus, "Access Denied"); } else { MemBuf content = errorBuildContent(err); - httpReplySetHeaders(rep, version, err->http_status, NULL, "text/html", content.size, 0, squid_curtime); + httpReplySetHeaders(rep, version, err->httpStatus, NULL, "text/html", content.size, 0, squid_curtime); /* * include some information for downstream caches. Implicit * replaceable content. This isn't quite sufficient. xerrno is not diff --git a/src/forward.cc b/src/forward.cc index 5e1698bcb5..71de9d65a3 100644 --- a/src/forward.cc +++ b/src/forward.cc @@ -1,6 +1,6 @@ /* - * $Id: forward.cc,v 1.86 2002/09/15 06:23:29 adrian Exp $ + * $Id: forward.cc,v 1.87 2002/09/15 06:40:57 robertc Exp $ * * DEBUG: section 17 Request Forwarding * AUTHOR: Duane Wessels @@ -66,13 +66,13 @@ fwdStateServerPeer(FwdState * fwdState) return NULL; if (NULL == fwdState->servers) return NULL; - return fwdState->servers->peer; + return fwdState->servers->_peer; } static void fwdServerFree(FwdServer * fs) { - cbdataReferenceDone(fs->peer); + cbdataReferenceDone(fs->_peer); memFree(fs, MEM_FWD_SERVER); } @@ -159,7 +159,7 @@ fwdServerClosed(int fd, void *data) FwdServer **T, *T2 = NULL; fwdState->servers = fs->next; for (T = &fwdState->servers; *T; T2 = *T, T = &(*T)->next); - if (T2 && T2->peer) { + if (T2 && T2->_peer) { /* cycle */ *T = fs; fs->next = NULL; @@ -193,7 +193,7 @@ fwdConnectDone(int server_fd, comm_err_t status, void *data) * a direct connection. If DNS lookup fails when trying * a neighbor cache, we may want to retry another option. */ - if (NULL == fs->peer) + if (NULL == fs->_peer) fwdState->flags.dont_retry = 1; debug(17, 4) ("fwdConnectDone: Unknown host: %s\n", request->host); @@ -201,39 +201,39 @@ fwdConnectDone(int server_fd, comm_err_t status, void *data) err->dnsserver_msg = xstrdup(dns_error_message); err->request = requestLink(request); fwdFail(fwdState, err); - if (fs->peer) - fs->peer->stats.conn_open--; + if (fs->_peer) + fs->_peer->stats.conn_open--; comm_close(server_fd); } else if (status != COMM_OK) { assert(fs); err = errorCon(ERR_CONNECT_FAIL, HTTP_SERVICE_UNAVAILABLE); err->xerrno = errno; - if (fs->peer) { - err->host = xstrdup(fs->peer->host); - err->port = fs->peer->http_port; + if (fs->_peer) { + err->host = xstrdup(fs->_peer->host); + err->port = fs->_peer->http_port; } else { err->host = xstrdup(request->host); err->port = request->port; } err->request = requestLink(request); fwdFail(fwdState, err); - if (fs->peer) { - peerConnectFailed(fs->peer); - fs->peer->stats.conn_open--; + if (fs->_peer) { + peerConnectFailed(fs->_peer); + fs->_peer->stats.conn_open--; } comm_close(server_fd); } else { debug(17, 3) ("fwdConnectDone: FD %d: '%s'\n", server_fd, storeUrl(fwdState->entry)); - if (fs->peer) - hierarchyNote(&fwdState->request->hier, fs->code, fs->peer->host); + if (fs->_peer) + hierarchyNote(&fwdState->request->hier, fs->code, fs->_peer->host); else if (Config.onoff.log_ip_on_direct) hierarchyNote(&fwdState->request->hier, fs->code, fd_table[server_fd].ipaddr); else hierarchyNote(&fwdState->request->hier, fs->code, request->host); fd_note(server_fd, storeUrl(fwdState->entry)); fd_table[server_fd].uses++; - if (fs->peer) - peerConnectSucceded(fs->peer); + if (fs->_peer) + peerConnectSucceded(fs->_peer); fwdDispatch(fwdState); } current = NULL; @@ -257,8 +257,8 @@ fwdConnectTimeout(int fd, void *data) * This marks the peer DOWN ... */ if (fwdState->servers) - if (fwdState->servers->peer) - peerConnectFailed(fwdState->servers->peer); + if (fwdState->servers->_peer) + peerConnectFailed(fwdState->servers->_peer); } if (p) p->stats.conn_open--; @@ -271,7 +271,7 @@ aclMapAddr(acl_address * head, aclCheck_t * ch) acl_address *l; struct in_addr addr; for (l = head; l; l = l->next) { - if (aclMatchAclList(l->acl_list, ch)) + if (aclMatchAclList(l->aclList, ch)) return l->addr; } addr.s_addr = INADDR_ANY; @@ -283,7 +283,7 @@ aclMapTOS(acl_tos * head, aclCheck_t * ch) { acl_tos *l; for (l = head; l; l = l->next) { - if (aclMatchAclList(l->acl_list, ch)) + if (aclMatchAclList(l->aclList, ch)) return l->tos; } return 0; @@ -333,10 +333,10 @@ fwdConnectStart(void *data) assert(fs); assert(fwdState->server_fd == -1); debug(17, 3) ("fwdConnectStart: %s\n", url); - if (fs->peer) { - host = fs->peer->host; - port = fs->peer->http_port; - ctimeout = fs->peer->connect_timeout > 0 ? fs->peer->connect_timeout + if (fs->_peer) { + host = fs->_peer->host; + port = fs->_peer->http_port; + ctimeout = fs->_peer->connect_timeout > 0 ? fs->_peer->connect_timeout : Config.Timeout.peer_connect; } else if (fwdState->request->flags.accelerated && Config.Accel.single_host && Config.Accel.host) { @@ -388,8 +388,8 @@ fwdConnectStart(void *data) * based on the max-conn option. We need to increment here, * even if the connection may fail. */ - if (fs->peer) - fs->peer->stats.conn_open++; + if (fs->_peer) + fs->_peer->stats.conn_open++; comm_add_close_handler(fd, fwdServerClosed, fwdState); commSetTimeout(fd, ctimeout, @@ -445,7 +445,7 @@ fwdDispatch(FwdState * fwdState) * is closed. */ assert(fwdState->server_fd > -1); - if (fwdState->servers && (p = fwdState->servers->peer)) { + if (fwdState->servers && (p = fwdState->servers->_peer)) { p->stats.fetches++; fwdState->request->peer_login = p->login; httpStart(fwdState); @@ -655,7 +655,7 @@ fwdFail(FwdState * fwdState, ErrorState * errorState) assert(EBIT_TEST(fwdState->entry->flags, ENTRY_FWD_HDR_WAIT)); debug(17, 3) ("fwdFail: %s \"%s\"\n\t%s\n", err_type_str[errorState->type], - httpStatusString(errorState->http_status), + httpStatusString(errorState->httpStatus), storeUrl(fwdState->entry)); if (fwdState->err) errorStateFree(fwdState->err); diff --git a/src/fqdncache.cc b/src/fqdncache.cc index 088b02866c..9729b7f632 100644 --- a/src/fqdncache.cc +++ b/src/fqdncache.cc @@ -1,6 +1,6 @@ /* - * $Id: fqdncache.cc,v 1.150 2002/04/13 23:07:50 hno Exp $ + * $Id: fqdncache.cc,v 1.151 2002/09/15 06:40:57 robertc Exp $ * * DEBUG: section 35 FQDN Cache * AUTHOR: Harvest Derived @@ -296,7 +296,7 @@ fqdncacheParse(rfc1035_rr * answers, int nr) for (k = 0; k < nr; k++) { if (answers[k].type != RFC1035_TYPE_PTR) continue; - if (answers[k].class != RFC1035_CLASS_IN) + if (answers[k]._class != RFC1035_CLASS_IN) continue; na++; f.flags.negcached = 0; diff --git a/src/fs/Makefile.in b/src/fs/Makefile.in index 7774150960..1667548222 100644 --- a/src/fs/Makefile.in +++ b/src/fs/Makefile.in @@ -15,7 +15,7 @@ # Makefile for storage modules in the Squid Object Cache server # -# $Id: Makefile.in,v 1.16 2002/09/15 05:42:00 robertc Exp $ +# $Id: Makefile.in,v 1.17 2002/09/15 06:41:09 robertc Exp $ # SHELL = @SHELL@ @@ -74,6 +74,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/src/fs/aufs/Makefile.in b/src/fs/aufs/Makefile.in index 7f6714683b..dc1521a0ce 100644 --- a/src/fs/aufs/Makefile.in +++ b/src/fs/aufs/Makefile.in @@ -69,6 +69,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/src/fs/coss/Makefile.in b/src/fs/coss/Makefile.in index 69ffaf083d..4fca4d39be 100644 --- a/src/fs/coss/Makefile.in +++ b/src/fs/coss/Makefile.in @@ -69,6 +69,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/src/fs/diskd/Makefile.in b/src/fs/diskd/Makefile.in index 2372764d33..d8bed9cd77 100644 --- a/src/fs/diskd/Makefile.in +++ b/src/fs/diskd/Makefile.in @@ -16,7 +16,7 @@ # # Makefile for the DISKD storage driver for the Squid Object Cache server # -# $Id: Makefile.in,v 1.13 2002/09/15 05:42:01 robertc Exp $ +# $Id: Makefile.in,v 1.14 2002/09/15 06:41:13 robertc Exp $ # SHELL = @SHELL@ @@ -75,6 +75,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/src/fs/null/Makefile.in b/src/fs/null/Makefile.in index fb459a68ef..bc029b8615 100644 --- a/src/fs/null/Makefile.in +++ b/src/fs/null/Makefile.in @@ -69,6 +69,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/src/fs/ufs/Makefile.in b/src/fs/ufs/Makefile.in index 3168f8d5fe..a5693633b9 100644 --- a/src/fs/ufs/Makefile.in +++ b/src/fs/ufs/Makefile.in @@ -69,6 +69,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/src/http.cc b/src/http.cc index 6a7765ca89..0f9157163d 100644 --- a/src/http.cc +++ b/src/http.cc @@ -1,6 +1,6 @@ /* - * $Id: http.cc,v 1.391 2002/09/15 06:23:29 adrian Exp $ + * $Id: http.cc,v 1.392 2002/09/15 06:40:57 robertc Exp $ * * DEBUG: section 11 Hypertext Transfer Protocol (HTTP) * AUTHOR: Harvest Derived @@ -271,7 +271,7 @@ httpCachableReply(HttpStateData * httpState) return 1; else if (rep->last_modified > -1) return 1; - else if (!httpState->peer) + else if (!httpState->_peer) return 1; /* @?@ (here and 302): invalid expires header compiles to squid_curtime */ else if (rep->expires > -1) @@ -464,12 +464,12 @@ httpProcessReplyHeader(HttpStateData * httpState, const char *buf, int size) EBIT_SET(entry->flags, ENTRY_REVALIDATE); } if (httpState->flags.keepalive) - if (httpState->peer) - httpState->peer->stats.n_keepalives_sent++; + if (httpState->_peer) + httpState->_peer->stats.n_keepalives_sent++; if (reply->keep_alive) - if (httpState->peer) - httpState->peer->stats.n_keepalives_recv++; - if (reply->date > -1 && !httpState->peer) { + if (httpState->_peer) + httpState->_peer->stats.n_keepalives_recv++; + if (reply->date > -1 && !httpState->_peer) { int skew = abs(reply->date - squid_curtime); if (skew > 86400) debug(11, 3) ("%s's clock is skewed by %d seconds!\n", @@ -929,7 +929,7 @@ httpSendRequest(HttpStateData * httpState) request_t *req = httpState->request; StoreEntry *entry = httpState->entry; int cfd; - peer *p = httpState->peer; + peer *p = httpState->_peer; CWCB *sendHeaderDone; debug(11, 5) ("httpSendRequest: FD %d: httpState %p.\n", httpState->fd, httpState); @@ -961,9 +961,9 @@ httpSendRequest(HttpStateData * httpState) httpState->flags.keepalive = 1; else if ((double) p->stats.n_keepalives_recv / (double) p->stats.n_keepalives_sent > 0.50) httpState->flags.keepalive = 1; - if (httpState->peer) - if (neighborType(httpState->peer, httpState->request) == PEER_SIBLING && - !httpState->peer->options.allow_miss) + if (httpState->_peer) + if (neighborType(httpState->_peer, httpState->request) == PEER_SIBLING && + !httpState->_peer->options.allow_miss) httpState->flags.only_if_cached = 1; memBufDefInit(&mb); httpBuildRequestPrefix(req, @@ -992,12 +992,12 @@ httpStart(FwdState * fwd) httpState->entry = fwd->entry; httpState->fd = fd; if (fwd->servers) - httpState->peer = fwd->servers->peer; /* might be NULL */ - if (httpState->peer) { + httpState->_peer = fwd->servers->_peer; /* might be NULL */ + if (httpState->_peer) { proxy_req = requestCreate(orig_req->method, PROTO_NONE, storeUrl(httpState->entry)); - xstrncpy(proxy_req->host, httpState->peer->host, SQUIDHOSTNAMELEN); - proxy_req->port = httpState->peer->http_port; + xstrncpy(proxy_req->host, httpState->_peer->host, SQUIDHOSTNAMELEN); + proxy_req->port = httpState->_peer->http_port; proxy_req->flags = orig_req->flags; proxy_req->lastmod = orig_req->lastmod; httpState->request = requestLink(proxy_req); @@ -1008,11 +1008,11 @@ httpStart(FwdState * fwd) * We might end up getting the object from somewhere else if, * for example, the request to this neighbor fails. */ - if (httpState->peer->options.proxy_only) + if (httpState->_peer->options.proxy_only) storeReleaseRequest(httpState->entry); #if DELAY_POOLS assert(delayIsNoDelay(fd) == 0); - if (httpState->peer->options.no_delay) + if (httpState->_peer->options.no_delay) delaySetNoDelay(fd); #endif } else { diff --git a/src/ipcache.cc b/src/ipcache.cc index 27c4e65905..3ab6b6d5b1 100644 --- a/src/ipcache.cc +++ b/src/ipcache.cc @@ -1,6 +1,6 @@ /* - * $Id: ipcache.cc,v 1.237 2002/04/13 23:07:50 hno Exp $ + * $Id: ipcache.cc,v 1.238 2002/09/15 06:40:57 robertc Exp $ * * DEBUG: section 14 IP Cache * AUTHOR: Harvest Derived @@ -325,7 +325,7 @@ ipcacheParse(rfc1035_rr * answers, int nr) for (j = 0, k = 0; k < nr; k++) { if (answers[k].type != RFC1035_TYPE_A) continue; - if (answers[k].class != RFC1035_CLASS_IN) + if (answers[k]._class != RFC1035_CLASS_IN) continue; na++; } @@ -341,7 +341,7 @@ ipcacheParse(rfc1035_rr * answers, int nr) for (j = 0, k = 0; k < nr; k++) { if (answers[k].type != RFC1035_TYPE_A) continue; - if (answers[k].class != RFC1035_CLASS_IN) + if (answers[k]._class != RFC1035_CLASS_IN) continue; if (j == 0) i.expires = squid_curtime + answers[k].ttl; diff --git a/src/peer_select.cc b/src/peer_select.cc index 5f94f24370..795a252152 100644 --- a/src/peer_select.cc +++ b/src/peer_select.cc @@ -1,6 +1,6 @@ /* - * $Id: peer_select.cc,v 1.122 2002/06/23 14:50:07 hno Exp $ + * $Id: peer_select.cc,v 1.123 2002/09/15 06:40:57 robertc Exp $ * * DEBUG: section 44 Peer Selection Algorithm * AUTHOR: Duane Wessels @@ -421,7 +421,7 @@ peerGetSomeDirect(ps_state * ps) return; if (ps->request->protocol == PROTO_WAIS) /* Its not really DIRECT, now is it? */ - peerAddFwdServer(&ps->servers, Config.Wais.peer, DIRECT); + peerAddFwdServer(&ps->servers, Config.Wais._peer, DIRECT); else peerAddFwdServer(&ps->servers, NULL, DIRECT); } @@ -657,7 +657,7 @@ peerAddFwdServer(FwdServer ** FS, peer * p, hier_code code) debug(44, 5) ("peerAddFwdServer: adding %s %s\n", p ? p->host : "DIRECT", hier_strings[code]); - fs->peer = cbdataReference(p); + fs->_peer = cbdataReference(p); fs->code = code; while (*FS) FS = &(*FS)->next; diff --git a/src/repl/Makefile.in b/src/repl/Makefile.in index 39ed0b86da..42562c8502 100644 --- a/src/repl/Makefile.in +++ b/src/repl/Makefile.in @@ -15,7 +15,7 @@ # Makefile for storage modules in the Squid Object Cache server # -# $Id: Makefile.in,v 1.15 2002/09/15 05:42:02 robertc Exp $ +# $Id: Makefile.in,v 1.16 2002/09/15 06:41:17 robertc Exp $ # SHELL = @SHELL@ @@ -74,6 +74,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/src/repl/heap/Makefile.in b/src/repl/heap/Makefile.in index 4367e2b825..9d7b1070a5 100644 --- a/src/repl/heap/Makefile.in +++ b/src/repl/heap/Makefile.in @@ -69,6 +69,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/src/repl/lru/Makefile.in b/src/repl/lru/Makefile.in index 0a97a0fbf1..faf5e071ce 100644 --- a/src/repl/lru/Makefile.in +++ b/src/repl/lru/Makefile.in @@ -69,6 +69,7 @@ CC = @CC@ CGIEXT = @CGIEXT@ CPP = @CPP@ CRYPTLIB = @CRYPTLIB@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DIGEST_AUTH_HELPERS = @DIGEST_AUTH_HELPERS@ ERR_DEFAULT_LANGUAGE = @ERR_DEFAULT_LANGUAGE@ diff --git a/src/ssl.cc b/src/ssl.cc index 12a73e8621..ace89d11b8 100644 --- a/src/ssl.cc +++ b/src/ssl.cc @@ -1,6 +1,6 @@ /* - * $Id: ssl.cc,v 1.121 2002/09/15 06:23:29 adrian Exp $ + * $Id: ssl.cc,v 1.122 2002/09/15 06:40:57 robertc Exp $ * * DEBUG: section 26 Secure Sockets Layer Proxy * AUTHOR: Duane Wessels @@ -386,9 +386,9 @@ sslConnectDone(int fdnotused, comm_err_t status, void *data) SslStateData *sslState = data; request_t *request = sslState->request; ErrorState *err = NULL; - if (sslState->servers->peer) + if (sslState->servers->_peer) hierarchyNote(&sslState->request->hier, sslState->servers->code, - sslState->servers->peer->host); + sslState->servers->_peer->host); else if (Config.onoff.log_ip_on_direct) hierarchyNote(&sslState->request->hier, sslState->servers->code, fd_table[sslState->server.fd].ipaddr); @@ -415,7 +415,7 @@ sslConnectDone(int fdnotused, comm_err_t status, void *data) err->callback_data = sslState; errorSend(sslState->client.fd, err); } else { - if (sslState->servers->peer) + if (sslState->servers->_peer) sslProxyConnected(sslState->server.fd, sslState); else sslConnected(sslState->server.fd, sslState); @@ -578,18 +578,18 @@ sslPeerSelectComplete(FwdServer * fs, void *data) return; } sslState->servers = fs; - sslState->host = fs->peer ? fs->peer->host : request->host; - if (fs->peer == NULL) { + sslState->host = fs->_peer ? fs->_peer->host : request->host; + if (fs->_peer == NULL) { sslState->port = request->port; - } else if (fs->peer->http_port != 0) { - sslState->port = fs->peer->http_port; - } else if ((g = peerFindByName(fs->peer->host))) { + } else if (fs->_peer->http_port != 0) { + sslState->port = fs->_peer->http_port; + } else if ((g = peerFindByName(fs->_peer->host))) { sslState->port = g->http_port; } else { sslState->port = CACHE_HTTP_PORT; } - if (fs->peer) { - sslState->request->peer_login = fs->peer->login; + if (fs->_peer) { + sslState->request->peer_login = fs->_peer->login; sslState->request->flags.proxying = 1; } else { sslState->request->peer_login = NULL; diff --git a/src/stat.cc b/src/stat.cc index 11327ddf3e..5b1d2b52f0 100644 --- a/src/stat.cc +++ b/src/stat.cc @@ -1,6 +1,6 @@ /* - * $Id: stat.cc,v 1.356 2002/04/07 22:16:47 hno Exp $ + * $Id: stat.cc,v 1.357 2002/09/15 06:40:58 robertc Exp $ * * DEBUG: section 18 Cache Manager Statistics * AUTHOR: Harvest Derived @@ -1439,7 +1439,7 @@ statClientRequests(StoreEntry * s) conn->defer.n, (long int) conn->defer.until); } storeAppendPrintf(s, "uri %s\n", http->uri); - storeAppendPrintf(s, "log_type %s\n", log_tags[http->log_type]); + storeAppendPrintf(s, "logType %s\n", log_tags[http->logType]); storeAppendPrintf(s, "out.offset %ld, out.size %lu\n", (long int) http->out.offset, (unsigned long int) http->out.size); storeAppendPrintf(s, "req_sz %ld\n", (long int) http->req_sz); diff --git a/src/structs.h b/src/structs.h index 17a13d6e8f..5a80db549e 100644 --- a/src/structs.h +++ b/src/structs.h @@ -1,6 +1,6 @@ /* - * $Id: structs.h,v 1.429 2002/09/15 05:41:57 robertc Exp $ + * $Id: structs.h,v 1.430 2002/09/15 06:40:58 robertc Exp $ * * * SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -249,31 +249,31 @@ struct _acl { struct _acl_list { int op; - acl *acl; + acl *_acl; acl_list *next; }; struct _acl_access { int allow; - acl_list *acl_list; + acl_list *aclList; char *cfgline; acl_access *next; }; struct _acl_address { acl_address *next; - acl_list *acl_list; + acl_list *aclList; struct in_addr addr; }; struct _acl_tos { acl_tos *next; - acl_list *acl_list; + acl_list *aclList; int tos; }; struct _aclCheck_t { - const acl_access *access_list; + const acl_access *accessList; struct in_addr src_addr; struct in_addr dst_addr; struct in_addr my_addr; @@ -378,7 +378,7 @@ struct _SquidConfig { struct { char *relayHost; u_short relayPort; - peer *peer; + peer *_peer; } Wais; struct { size_t min; @@ -792,7 +792,7 @@ struct _fde { time_t timeout; void *timeout_data; void *lifetime_data; - close_handler *close_handler; /* linked list */ + close_handler *closeHandler; /* linked list */ DEFER *defer_check; /* check if we should defer read */ void *defer_data; CommWriteStateData *rwstate; /* State data for comm_write */ @@ -974,7 +974,7 @@ struct _HttpStateData { char *reply_hdr; size_t reply_hdr_size; int reply_hdr_state; - peer *peer; /* peer request made to */ + peer *_peer; /* peer request made to */ int eof; /* reached end-of-object? */ request_t *orig_request; int fd; @@ -1044,7 +1044,7 @@ struct _AccessLogEntry { } headers; struct { const char *method_str; - } private; + } _private; HierarchyLogEntry hier; }; @@ -1074,7 +1074,7 @@ struct _clientHttpRequest { size_t req_sz; /* raw request size on input, not current request size */ StoreEntry *entry; StoreEntry *old_entry; - log_type log_type; + log_type logType; struct timeval start; http_version_t http_ver; AccessLogEntry al; @@ -1677,7 +1677,7 @@ struct _request_t { ConnStateData *body_connection; /* used by clientReadBody() */ int content_length; HierarchyLogEntry hier; - err_type err_type; + err_type errType; char *peer_login; /* Configured peer login:password */ time_t lastmod; /* Used on refreshes */ const char *vary_headers; /* Used when varying entities are detected. Changes how the store key is calculated */ @@ -1719,7 +1719,7 @@ struct _CommWriteStateData { struct _ErrorState { err_type type; int page_id; - http_status http_status; + http_status httpStatus; auth_user_request_t *auth_user_request; request_t *request; char *url; @@ -1942,7 +1942,7 @@ struct _CacheDigest { }; struct _FwdServer { - peer *peer; /* NULL --> origin server */ + peer *_peer; /* NULL --> origin server */ hier_code code; FwdServer *next; }; diff --git a/src/tunnel.cc b/src/tunnel.cc index 025f053592..ba497553a8 100644 --- a/src/tunnel.cc +++ b/src/tunnel.cc @@ -1,6 +1,6 @@ /* - * $Id: tunnel.cc,v 1.121 2002/09/15 06:23:29 adrian Exp $ + * $Id: tunnel.cc,v 1.122 2002/09/15 06:40:57 robertc Exp $ * * DEBUG: section 26 Secure Sockets Layer Proxy * AUTHOR: Duane Wessels @@ -386,9 +386,9 @@ sslConnectDone(int fdnotused, comm_err_t status, void *data) SslStateData *sslState = data; request_t *request = sslState->request; ErrorState *err = NULL; - if (sslState->servers->peer) + if (sslState->servers->_peer) hierarchyNote(&sslState->request->hier, sslState->servers->code, - sslState->servers->peer->host); + sslState->servers->_peer->host); else if (Config.onoff.log_ip_on_direct) hierarchyNote(&sslState->request->hier, sslState->servers->code, fd_table[sslState->server.fd].ipaddr); @@ -415,7 +415,7 @@ sslConnectDone(int fdnotused, comm_err_t status, void *data) err->callback_data = sslState; errorSend(sslState->client.fd, err); } else { - if (sslState->servers->peer) + if (sslState->servers->_peer) sslProxyConnected(sslState->server.fd, sslState); else sslConnected(sslState->server.fd, sslState); @@ -578,18 +578,18 @@ sslPeerSelectComplete(FwdServer * fs, void *data) return; } sslState->servers = fs; - sslState->host = fs->peer ? fs->peer->host : request->host; - if (fs->peer == NULL) { + sslState->host = fs->_peer ? fs->_peer->host : request->host; + if (fs->_peer == NULL) { sslState->port = request->port; - } else if (fs->peer->http_port != 0) { - sslState->port = fs->peer->http_port; - } else if ((g = peerFindByName(fs->peer->host))) { + } else if (fs->_peer->http_port != 0) { + sslState->port = fs->_peer->http_port; + } else if ((g = peerFindByName(fs->_peer->host))) { sslState->port = g->http_port; } else { sslState->port = CACHE_HTTP_PORT; } - if (fs->peer) { - sslState->request->peer_login = fs->peer->login; + if (fs->_peer) { + sslState->request->peer_login = fs->_peer->login; sslState->request->flags.proxying = 1; } else { sslState->request->peer_login = NULL; diff --git a/src/typedefs.h b/src/typedefs.h index e635662eed..6d478f4aeb 100644 --- a/src/typedefs.h +++ b/src/typedefs.h @@ -1,6 +1,6 @@ /* - * $Id: typedefs.h,v 1.136 2002/09/15 06:23:29 adrian Exp $ + * $Id: typedefs.h,v 1.137 2002/09/15 06:40:58 robertc Exp $ * * * SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -65,12 +65,12 @@ typedef struct _authScheme authScheme; typedef struct _acl_user_data acl_user_data; typedef struct _acl_user_ip_data acl_user_ip_data; typedef struct _acl_arp_data acl_arp_data; -typedef struct _acl acl; typedef struct _acl_snmp_comm acl_snmp_comm; typedef struct _acl_list acl_list; typedef struct _acl_access acl_access; typedef struct _acl_address acl_address; typedef struct _acl_tos acl_tos; +typedef struct _acl acl; typedef struct _aclCheck_t aclCheck_t; typedef struct _wordlist wordlist; typedef struct _intlist intlist;