summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-04-19 14:20:54 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2023-04-19 14:20:54 -0700
commitfe92102332352143ab17ba8596d66f91a5e256b3 (patch)
tree889193f4dcccc0bb3311c04c939318eaa8df17c6
parente7d121249b4e236535454ee175e537271d2ceae0 (diff)
downloadgnulib-fe92102332352143ab17ba8596d66f91a5e256b3.tar.gz
year2038-required: Fix configure failure with MSVC.
* m4/largefile.m4 (_AC_SYS_LARGEFILE_PROBE): Distinguish the results "support not detected" and "supported through gnulib". If the result is "supported through gnulib", don't fail.
-rw-r--r--ChangeLog7
-rw-r--r--m4/largefile.m413
2 files changed, 20 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 88338a6cdc..5026c8c1cf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2023-04-19 Bruno Haible <bruno@clisp.org>
+ year2038-required: Fix configure failure with MSVC.
+ * m4/largefile.m4 (_AC_SYS_LARGEFILE_PROBE): Distinguish the results
+ "support not detected" and "supported through gnulib". If the result is
+ "supported through gnulib", don't fail.
+
+2023-04-19 Bruno Haible <bruno@clisp.org>
+
doc: Add references to changes accepted for future POSIX revisions.
* doc/glibc-functions/bind_textdomain_codeset.texi: Add reference to
www.austingroupbugs.net issue.
diff --git a/m4/largefile.m4 b/m4/largefile.m4
index f741d0df6e..46b019a670 100644
--- a/m4/largefile.m4
+++ b/m4/largefile.m4
@@ -266,11 +266,24 @@ AC_DEFUN([_AC_SYS_LARGEFILE_PROBE],
test $ac_opt_found = no || break
done
CC="$ac_save_CC"
+ dnl Gnulib implements large file support for native Windows, based on the
+ dnl variables WINDOWS_64_BIT_OFF_T, WINDOWS_64_BIT_ST_SIZE.
+ m4_ifdef([gl_LARGEFILE], [
+ AC_REQUIRE([AC_CANONICAL_HOST])
+ if test $ac_opt_found != yes; then
+ AS_CASE([$host_os],
+ [mingw*],
+ [ac_cv_sys_largefile_opts="supported through gnulib"
+ ac_opt_found=yes]
+ )
+ fi
+ ])
test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected"])
ac_have_largefile=yes
AS_CASE([$ac_cv_sys_largefile_opts],
["none needed"], [],
+ ["supported through gnulib"], [],
["support not detected"],
[ac_have_largefile=no
AS_IF([test $ac_largefile_required,$ac_year2038_required != no,no],