large file support in glib



Hi,

we've discovered that for some obscure reasons g_file_test() fails on
files larger than 2GB. I also expect g_io_channel_seek() to fail since
it uses off_t. A clean and simple solution to this problem would be to
add AC_SYS_LARGE_FILE to configure.in.  This macro would also allow to
easily disable large file support using the --disable-largefile
configure option. Unfortunately autoconf-2.13 does not support
AC_SYS_LARGE_FILE. So the patch would boil down to:


Index: configure.in
===================================================================
RCS file: /cvs/gnome/glib/configure.in,v
retrieving revision 1.265
diff -u -p -r1.265 configure.in
--- configure.in	2002/02/09 20:08:02	1.265
+++ configure.in	2002/02/13 18:23:10
@@ -5,8 +5,8 @@ builtin(include, acglib.m4)dnl
 builtin(include, glib/libcharset/codeset.m4)dnl
 builtin(include, glib/libcharset/glibc21.m4)dnl
 
-# require autoconf 2.13
-AC_PREREQ(2.13)
+# require autoconf 2.52
+AC_PREREQ(2.52)
 
 # Process this file with autoconf to produce a configure script.
 AC_INIT(glib/glib.h)
@@ -195,6 +195,8 @@ AC_LANG_RESTORE
 
 AM_PROG_CC_STDC
 AC_PROG_INSTALL
+
+AC_SYS_LARGEFILE
 
 #
 # Find pkg-config



Probably it's time to do the switch to autoconf-2.5 now. What do you
think?


Salut, Sven






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]