On Fri, 30 Jan 2004 16:52:18 -0600 Dan Nelson <[EMAIL PROTECTED]> wrote:
[Reply not stripped as your answer wasn't sent to the lists] > In the last episode (Jan 30), Alexander Leidinger said: > > On Thu, 29 Jan 2004 15:53:18 -0600 > > Dan Nelson <[EMAIL PROTECTED]> wrote: > > > > > Autoconf already knows about most OSes and whether they need special > > > flags. From my recollection, Linux and Solaris need _FILE_OFFSET_BITS > > > and _LARGEFILE_SOURCE, AIX needs _LARGE_FILES, *BSD and Tru64 don't > > > need anything. Just add this to configure.in, and you'll transparently > > > support them all automatically. > > > > > > AC_SYS_LARGEFILE > > > > Nothing more? No changes to the sources needed? > > Usually not. What the macro does is find out what needs to be defined > to make off_t 64 bits. Depending on the OS, that may involve #defines > that rewrite your fopen() calls to fopen64(), adding an O_LARGEFILE to > open() calls etc, but it should all be basically invisible to the > program. The only thing to watch for is libraries. If libmp3lame > exports or calls functions with off_t arguments, that library will only > be useable by prgrams built with the same off_t size (since the > arguments on the stack won't align otherwise). It looks like lame is > safe here. I'm going to commit this now, but this may not be enough as the source uses ints and longs where other types would be more "appropriate"... Bye, Alexander. -- I will be available to get hired in April 2004. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 _______________________________________________ mp3encoder mailing list [EMAIL PROTECTED] http://minnie.tuhs.org/mailman/listinfo/mp3encoder