On Sun, 21 Dec 2003, Guido Draheim wrote: > > > > My configure script needs to have access to the values that > > AC_SYS_LARGEFILE sets since including config.h is not sufficient for > > all applications. Sometimes the options *must* be specified on the > > compiler command line to work. Therefore I augment AC_SYS_LARGEFILE > > as follows in order to define a LFS_CPPFLAGS variable which may be > > used within the Makefile: > > Can you specify why? I am always interested in additional info that > needs to be put at http://ac-archive.sf.net/largefile/ atleast for > a warning. Some `gcc -include xx`? Some aix magic `-Llib64`? In order to work properly, _FILE_OFFSET_BITS=64 must be defined before any system header is included. For Perl extensions, the fragment of code the extension writer has control over (the ".xs" file) is processed by Perl so that it is wrapped by other C code which includes system headers. If there is a way to prepend user code to the part Perl generates, I am not aware of it. This means that it is necessary to add -D_FILE_OFFSET_BITS=64 to the compilation options. Bob ====================================== Bob Friesenhahn bfriesen@xxxxxxxxxxxxxxxxxxx http://www.simplesystems.org/users/bfriesen