From b11ec5f4b8c3cac9ef6a38f6c6894cd8c441a4b4 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Thu, 29 Jul 2010 14:38:03 +0000 Subject: [PATCH] Add configure option --enable-large-file-support. It sets a few defines that are required by platforms like GNU/Linux to support files larger then 2GB. --- configure.in | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 29908b96..f265bbba 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. dnl -dnl $Id: configure.in,v 1.142 2010/02/13 16:35:45 fabiankeil Exp $ +dnl $Id: configure.in,v 1.143 2010/03/07 12:05:46 fabiankeil Exp $ dnl dnl Written by and Copyright (C) 2001-2010 the dnl Privoxy team. http://www.privoxy.org/ @@ -32,7 +32,7 @@ dnl ================================================================= dnl AutoConf Initialization dnl ================================================================= -AC_REVISION($Revision: 1.142 $) +AC_REVISION($Revision: 1.143 $) AC_INIT(jcc.c) if test ! -f config.h.in; then @@ -398,6 +398,13 @@ fi AC_SUBST(JADECAT) AC_SUBST(DKPREFIX) +AC_ARG_ENABLE(large-file-support, +[ --enable-large-file-support Define _LARGE_FILES and friends. + Required by some systems to support files larger then 2GB.], +[if test $enableval = yes; then + CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1" +fi]) + dnl Save old CFLAGS so we can restore them later, then add SPECIAL_CFLAGS old_CFLAGS_nospecial=$CFLAGS CFLAGS="$CFLAGS $SPECIAL_CFLAGS" -- 2.49.0