From abff4e5b412348ccf7bf176ef699e45bc98abe19 Mon Sep 17 00:00:00 2001 From: axel Date: Mon, 5 Feb 2007 22:25:53 +1000 Subject: [PATCH] Add flags for long file support in configure.ac. They should be useful when supported (e.g. Linux and Solaris) and should do no harm when unsupported. darcs-hash:20070205122553-ac50b-93adeeafc5c4bb43397e4b088f6e9de5744b3058.gz --- configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure.ac b/configure.ac index 76ef63c4c..248ce04ed 100644 --- a/configure.ac +++ b/configure.ac @@ -245,6 +245,14 @@ AC_CACHE_VAL( ] ) +# +# Try to enale large file support. This will make sure that on systems +# where off_t can be either 32 or 64 bit, the latter size is used. On +# other systems, this should do nothing. (Hopefully) +# + +CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64" + AC_MSG_RESULT($local_cv_has__std_c99) case x$local_cv_has__std_c99 in xno)