Add configure option --enable-large-file-support.
[privoxy.git] / configure.in
index e9d2a81..f265bbb 100644 (file)
@@ -1,6 +1,6 @@
 dnl Process this file with autoconf to produce a configure script.
 dnl 
-dnl $Id: configure.in,v 1.141 2009/12/16 08:35:47 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.141 $)
+AC_REVISION($Revision: 1.143 $)
 AC_INIT(jcc.c)
 
 if test ! -f config.h.in; then
@@ -78,8 +78,8 @@ dnl =================================================================
 
 VERSION_MAJOR=3
 VERSION_MINOR=0
-VERSION_POINT=16
-CODE_STATUS="stable"
+VERSION_POINT=17
+CODE_STATUS="UNRELEASED"
 
 dnl CODE_STATUS can be "alpha", "beta", or "stable", and will be
 dnl used for CGI output. Set version to 0.0.0 and status to "UNRELEASED"
@@ -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"