[gfortran] add 64 bit off_t for linux/i686 (and maybe some others)
Bud Davis
bdavis@gcc.gnu.org
Mon Jul 5 01:30:00 GMT 2004
Patch checks for LFS support and if available, uses it.
No additional test suite failures. Tested i686/gnu/linux.
--bud
2004-07-04 Bud Davis <bdavis9659@comcast.net>
* configure.ac: Add check for LFS support.
* configure: Regenerate
Index: gcc/libgfortran/configure.ac
===================================================================
RCS file: /cvs/gcc/gcc/libgfortran/configure.ac,v
retrieving revision 1.5
diff -c -3 -p -r1.5 configure.ac
*** gcc/libgfortran/configure.ac 4 Jul 2004 09:06:54 -0000 1.5
--- gcc/libgfortran/configure.ac 4 Jul 2004 19:33:29 -0000
*************** AC_CHECK_LIB([m],[roundf],[AC_DEFINE([HA
*** 166,171 ****
--- 166,178 ----
AC_CHECK_LIB([m],[nextafter],[AC_DEFINE([HAVE_NEXTAFTER],[1],[libm includes nextafter])])
AC_CHECK_LIB([m],[nextafterf],[AC_DEFINE([HAVE_NEXTAFTERF],[1],[libm includes nextafterf])])
+ # Check for LFS support
+ AC_TRY_LINK(
+ [#include <unistd.h>],
+ [fopen64("t", "w");
+ lseek64(1, 0, SEEK_CUR);],
+ [AC_DEFINE([_FILE_OFFSET_BITS],[64],["Define to 64 if LFS is supported"] )])
+
# Let the user override this
AC_ARG_ENABLE(cmath,
AC_HELP_STRING([--enable-cmath],[Include complex math functions]),
More information about the Fortran
mailing list