Sophie

Sophie

distrib > Mandriva > 2007.1 > x86_64 > by-pkgid > e23b4d7d6d7751848cd9d0cfbf09a931 > files > 15

squid-2.6.STABLE7-2.2mdv2007.1.src.rpm

--- configure.in	2006-07-24 11:52:25.000000000 +0200
+++ configure.in.oden	2006-07-24 11:52:04.000000000 +0200
@@ -1072,6 +1072,25 @@
 	esac
 fi
 
+if test "$buildmodel" = "default"; then
+	case "$host" in
+	    *i?86*)
+		if test "$GCC" = "yes"; then
+		    CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $CFLAGS"
+
+		fi
+		;;
+	    *x86_64*)
+		if test "$GCC" = "yes"; then
+		    CFLAGS="`echo $CFLAGS | sed -e 's/-m32/-m64/'`"
+		    CFLAGS="`echo $CFLAGS | sed -e 's/-D_LARGEFILE_SOURCE/-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64/'`" 
+		fi
+		;;
+	    *)
+		;;
+	esac
+fi
+
 dnl Enable Linux transparent proxy support
 AC_ARG_ENABLE(linux-tproxy,
 [  --enable-linux-tproxy