summaryrefslogtreecommitdiffstats
path: root/gl/m4/largefile.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/largefile.m4')
-rw-r--r--gl/m4/largefile.m49
1 files changed, 7 insertions, 2 deletions
diff --git a/gl/m4/largefile.m4 b/gl/m4/largefile.m4
index fbde5e6..ec9677c 100644
--- a/gl/m4/largefile.m4
+++ b/gl/m4/largefile.m4
@@ -1,7 +1,7 @@
1# Enable large files on systems where this is not the default. 1# Enable large files on systems where this is not the default.
2# Enable support for files on Linux file systems with 64-bit inode numbers. 2# Enable support for files on Linux file systems with 64-bit inode numbers.
3 3
4# Copyright 1992-1996, 1998-2021 Free Software Foundation, Inc. 4# Copyright 1992-1996, 1998-2022 Free Software Foundation, Inc.
5# This file is free software; the Free Software Foundation 5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it, 6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved. 7# with or without modifications, as long as this notice is preserved.
@@ -10,8 +10,10 @@
10# It does not set _LARGEFILE_SOURCE=1 on HP-UX/ia64 32-bit, although this 10# It does not set _LARGEFILE_SOURCE=1 on HP-UX/ia64 32-bit, although this
11# setting of _LARGEFILE_SOURCE is needed so that <stdio.h> declares fseeko 11# setting of _LARGEFILE_SOURCE is needed so that <stdio.h> declares fseeko
12# and ftello in C++ mode as well. 12# and ftello in C++ mode as well.
13# Fixed in Autoconf 2.72, which has AC_SYS_YEAR2038.
13AC_DEFUN([gl_SET_LARGEFILE_SOURCE], 14AC_DEFUN([gl_SET_LARGEFILE_SOURCE],
14[ 15[
16 m4_ifndef([AC_SYS_YEAR2038], [
15 AC_REQUIRE([AC_CANONICAL_HOST]) 17 AC_REQUIRE([AC_CANONICAL_HOST])
16 AC_FUNC_FSEEKO 18 AC_FUNC_FSEEKO
17 case "$host_os" in 19 case "$host_os" in
@@ -20,9 +22,10 @@ AC_DEFUN([gl_SET_LARGEFILE_SOURCE],
20 [Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2).]) 22 [Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2).])
21 ;; 23 ;;
22 esac 24 esac
25 ])
23]) 26])
24 27
25# Work around a problem in Autoconf through at least 2.71 on glibc 2.34+ 28# Work around a problem in Autoconf through 2.71 on glibc 2.34+
26# with _TIME_BITS. Also, work around a problem in autoconf <= 2.69: 29# with _TIME_BITS. Also, work around a problem in autoconf <= 2.69:
27# AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5, 30# AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5,
28# or configures them incorrectly in some cases. 31# or configures them incorrectly in some cases.
@@ -43,6 +46,7 @@ m4_define([_AC_SYS_LARGEFILE_TEST_INCLUDES],
43]) 46])
44])# m4_version_prereq 2.70 47])# m4_version_prereq 2.70
45 48
49m4_ifndef([AC_SYS_YEAR2038], [
46 50
47# _AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, VALUE, 51# _AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, VALUE,
48# CACHE-VAR, 52# CACHE-VAR,
@@ -118,6 +122,7 @@ AS_IF([test "$enable_largefile" != no],
118 [64], 122 [64],
119 [gl_YEAR2038_BODY([])])]) 123 [gl_YEAR2038_BODY([])])])
120])# AC_SYS_LARGEFILE 124])# AC_SYS_LARGEFILE
125])# m4_ifndef AC_SYS_YEAR2038
121 126
122# Enable large files on systems where this is implemented by Gnulib, not by the 127# Enable large files on systems where this is implemented by Gnulib, not by the
123# system headers. 128# system headers.