Windows 98+ provides a LFS API that is not POSIX compatible.

Index: configure.in
===================================================================
--- configure.in.orig
+++ configure.in
@@ -450,7 +450,16 @@ AC_SUBST(OBJECTS_PLATFORM)
 AC_ARG_ENABLE(lfs,[  --disable-lfs           Disable large file support on 
32-bit platforms],
 [apr_lfs_choice=$enableval], [apr_lfs_choice=yes])
 
+# Windows 98+ provides a LFS API that is not POSIX compatible.
+# The following test for LFS is not suitable, and changing it isnt warrented.
 if test "$apr_lfs_choice" = "yes"; then
+  case $host in
+    *mingw*) apr_cv_use_lfs64=yes
+             ;;
+  esac
+fi
+
+if test "$apr_lfs_choice" = "yes" -a "x$apr_cv_use_lfs64" != "xyes"; then
    # Check whether the transitional LFS API is sufficient
    AC_CACHE_CHECK([whether to enable -D_LARGEFILE64_SOURCE], 
[apr_cv_use_lfs64], [
    apr_save_CPPFLAGS=$CPPFLAGS

--

Reply via email to