--- /dev/null
+--- autoconf-2.72/lib/autoconf/specific.m4.orig 2023-12-01 14:25:07.000000000 +0100
++++ autoconf-2.72/lib/autoconf/specific.m4 2024-04-12 21:55:21.447121323 +0200
+@@ -281,23 +281,23 @@ m4_define([_AC_SYS_LARGEFILE_OPTIONS], m
+ AC_DEFUN([_AC_SYS_LARGEFILE_PROBE],
+ [AC_CACHE_CHECK([for $CC option to enable large file support],
+ [ac_cv_sys_largefile_opts],
+- [ac_save_CC="$CC"
++ [ac_save_compile="$ac_compile"
+ ac_opt_found=no
+ for ac_opt in _AC_SYS_LARGEFILE_OPTIONS; do
+ AS_IF([test x"$ac_opt" != x"none needed"],
+- [CC="$ac_save_CC $ac_opt"])
++ [ac_compile="$ac_save_compile $ac_opt"])
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([_AC_SYS_LARGEFILE_TEST_CODE])],
+ [AS_IF([test x"$ac_opt" = x"none needed"],
+ [# GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
+- CC="$CC -DFTYPE=ino_t"
++ ac_compile="$ac_compile -DFTYPE=ino_t"
+ AC_COMPILE_IFELSE([], [],
+- [CC="$CC -D_FILE_OFFSET_BITS=64"
++ [ac_compile="$ac_compile -D_FILE_OFFSET_BITS=64"
+ AC_COMPILE_IFELSE([], [ac_opt='-D_FILE_OFFSET_BITS=64'])])])
+ ac_cv_sys_largefile_opts=$ac_opt
+ ac_opt_found=yes])
+ test $ac_opt_found = no || break
+ done
+- CC="$ac_save_CC"
++ ac_compile="$ac_save_compile"
+ 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], [
-# TODO: https://savannah.gnu.org/support/index.php?110983 (AC_SYS_LARGEFILE/AC_SYS_YEAR2038 test failures on ix86)
#
# Conditional build:
%bcond_with emacs # emacs autoconf-mode
Patch2: %{name}-AC_EGREP.patch
Patch3: %{name}-cxxcpp-warnonly.patch
Patch4: %{name}-mksh.patch
+# https://savannah.gnu.org/support/index.php?110983 (AC_SYS_LARGEFILE/AC_SYS_YEAR2038 test failures on ix86)
+Patch5: %{name}-largefile.patch
Patch6: %{name}-tests.patch
URL: http://www.gnu.org/software/autoconf/
%{?with_emacs:BuildRequires: emacs}
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
%patch6 -p1
%build