[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AC_SYS_LARGEFILE
From: |
Peter Simons |
Subject: |
AC_SYS_LARGEFILE |
Date: |
Wed, 9 Jan 2002 20:39:03 +0100 |
Hi,
I recently added AC_SYS_LARGEFILE macro to my configure scripts, but I
encountered an interesting problem on Solaris 8: The configure script
adds the define "_FILE_OFFSET_BITS=64" to my CPPFLAGS, but once it
does, <unistd.h> and colleagues don't define open(2) anymore;
apparently, I have to use open64(2) instead.
Now I wonder: What is the best way to support this? Can't autoconf
somehow re-define the necessary routines transparently?
Another thing: I would be willing to have appropriate macros in my own
code, but how can I realiably determine, whether large-file support
has been enabled or not? Is there some define somewhere that tells me
whether I have large-file support or not? The symbol defined by
AC_SYS_LARGEFILE seems to vary from platform to platform ...
Any input is appreciated!
-peter
- AC_SYS_LARGEFILE,
Peter Simons <=