--------------------- PatchSet 12307 Date: 2008/07/10 09:46:53 Author: hno Branch: SQUID_2_7 Tag: (none) Log: Make --with-large-files and --with-build-envirnment=default play nice together in this combination we need to add -D_FILE_OFFSET_BITS=64 just as we do when not finding a suitable build environment. Members: configure:1.458.2.10->1.458.2.11 configure.in:1.430.2.11->1.430.2.12 Index: squid/configure =================================================================== RCS file: /cvsroot/squid/squid/configure,v retrieving revision 1.458.2.10 retrieving revision 1.458.2.11 diff -u -r1.458.2.10 -r1.458.2.11 --- squid/configure 24 Jun 2008 23:36:56 -0000 1.458.2.10 +++ squid/configure 10 Jul 2008 09:46:53 -0000 1.458.2.11 @@ -5228,10 +5228,16 @@ if test -z "$buildmodel"; then echo "WARNING: No suitable build environment found for large files. Trying to use _FILE_OFFSET_BITS=64" sleep 1 - CFLAGS="-D_FILE_OFFSET_BITS=64 $CFLAGS" fi fi -if test -n "$buildmodel" && test "$buildmodel" != "default"; then +case "$buildmodel" in +"default"|"") + if test $needlargefiles; then + echo "Enabling -D_FILE_OFFSET_BITS=64 for large file support" + CFLAGS="-D_FILE_OFFSET_BITS=64 $CFLAGS" + fi + ;; +*) echo "Using $buildmodel build environment" if test "`getconf _$buildmodel 2>/dev/null || true`" = 1 || test "`getconf $buildmodel 2>/dev/null || true`" ; then : # All fine @@ -5265,7 +5271,8 @@ *) ;; esac -fi + ;; +esac # Check whether --enable-linux-tproxy was given. if test "${enable_linux_tproxy+set}" = set; then Index: squid/configure.in =================================================================== RCS file: /cvsroot/squid/squid/configure.in,v retrieving revision 1.430.2.11 retrieving revision 1.430.2.12 diff -u -r1.430.2.11 -r1.430.2.12 --- squid/configure.in 24 Jun 2008 23:17:19 -0000 1.430.2.11 +++ squid/configure.in 10 Jul 2008 09:46:54 -0000 1.430.2.12 @@ -1,7 +1,7 @@ dnl dnl Configuration input file for Squid dnl -dnl $Id: configure.in,v 1.430.2.11 2008/06/24 23:17:19 hno Exp $ +dnl $Id: configure.in,v 1.430.2.12 2008/07/10 09:46:54 hno Exp $ dnl dnl dnl @@ -10,7 +10,7 @@ AM_CONFIG_HEADER(include/autoconf.h) AC_CONFIG_AUX_DIR(cfgaux) AM_INIT_AUTOMAKE -AC_REVISION($Revision: 1.430.2.11 $)dnl +AC_REVISION($Revision: 1.430.2.12 $)dnl AC_PREFIX_DEFAULT(/usr/local/squid) AM_MAINTAINER_MODE @@ -1077,10 +1077,16 @@ if test -z "$buildmodel"; then echo "WARNING: No suitable build environment found for large files. Trying to use _FILE_OFFSET_BITS=64" sleep 1 - CFLAGS="-D_FILE_OFFSET_BITS=64 $CFLAGS" fi fi -if test -n "$buildmodel" && test "$buildmodel" != "default"; then +case "$buildmodel" in +"default"|"") + if test $needlargefiles; then + echo "Enabling -D_FILE_OFFSET_BITS=64 for large file support" + CFLAGS="-D_FILE_OFFSET_BITS=64 $CFLAGS" + fi + ;; +*) echo "Using $buildmodel build environment" if test "`getconf _$buildmodel 2>/dev/null || true`" = 1 || test "`getconf $buildmodel 2>/dev/null || true`" ; then : # All fine @@ -1127,7 +1133,8 @@ *) ;; esac -fi + ;; +esac dnl Enable Linux transparent proxy support AC_ARG_ENABLE(linux-tproxy,