diff options
author | Bruno Haible <bruno@clisp.org> | 2023-04-19 14:17:24 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2023-04-19 14:18:44 -0700 |
commit | 2277f2c15744ad1cc5cd1ecc50a43108e50530a2 (patch) | |
tree | 81fa96b3fda062012390604aa13f37d8a388c32c | |
parent | e704a13c9644f4f4b9a9dd4e215ee7a1707f5850 (diff) | |
download | autoconf-2277f2c15744ad1cc5cd1ecc50a43108e50530a2.tar.gz |
AC_SYS_YEAR2038_REQUIRED: Fix configure failure with MSVC.
* lib/autoconf/specific.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-- | lib/autoconf/specific.m4 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/autoconf/specific.m4 b/lib/autoconf/specific.m4 index 3bf1a0ed..f411695f 100644 --- a/lib/autoconf/specific.m4 +++ b/lib/autoconf/specific.m4 @@ -323,11 +323,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], |