annotate m4/largefile.m4 @ 17290:44c34bc536ac

Fix typo in comment.
author Paul Eggert <eggert@cs.ucla.edu>
date Wed, 16 Jan 2013 09:38:28 -0800
parents e03debf767a4
children 344018b6e5d7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15443
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
1 # Enable large files on systems where this is not the default.
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
2
17249
e542fd46ad6f maint: update all copyright year number ranges
Eric Blake <eblake@redhat.com>
parents: 16935
diff changeset
3 # Copyright 1992-1996, 1998-2013 Free Software Foundation, Inc.
15443
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
4 # This file is free software; the Free Software Foundation
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
5 # gives unlimited permission to copy and/or distribute it,
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
6 # with or without modifications, as long as this notice is preserved.
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
7
17290
44c34bc536ac Fix typo in comment.
Paul Eggert <eggert@cs.ucla.edu>
parents: 17289
diff changeset
8 # The following implementation works around a problem in autoconf <= 2.69;
17289
e03debf767a4 largefile: port better to Mac OS X 10.5
Paul Eggert <eggert@cs.ucla.edu>
parents: 17249
diff changeset
9 # AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5,
e03debf767a4 largefile: port better to Mac OS X 10.5
Paul Eggert <eggert@cs.ucla.edu>
parents: 17249
diff changeset
10 # or configures them incorrectly in some cases.
e03debf767a4 largefile: port better to Mac OS X 10.5
Paul Eggert <eggert@cs.ucla.edu>
parents: 17249
diff changeset
11 m4_version_prereq([2.70], [] ,[
15443
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
12
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
13 # _AC_SYS_LARGEFILE_TEST_INCLUDES
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
14 # -------------------------------
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
15 m4_define([_AC_SYS_LARGEFILE_TEST_INCLUDES],
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
16 [@%:@include <sys/types.h>
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
17 /* Check that off_t can represent 2**63 - 1 correctly.
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
18 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
19 since some C++ compilers masquerading as C compilers
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
20 incorrectly reject 9223372036854775807. */
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
21 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
22 int off_t_is_large[[(LARGE_OFF_T % 2147483629 == 721
15544
c2b10d683d4c maint: indent with spaces, not TABs
Jim Meyering <meyering@redhat.com>
parents: 15443
diff changeset
23 && LARGE_OFF_T % 2147483647 == 1)
c2b10d683d4c maint: indent with spaces, not TABs
Jim Meyering <meyering@redhat.com>
parents: 15443
diff changeset
24 ? 1 : -1]];[]dnl
15443
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
25 ])
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
26
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
27
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
28 # _AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, VALUE,
17289
e03debf767a4 largefile: port better to Mac OS X 10.5
Paul Eggert <eggert@cs.ucla.edu>
parents: 17249
diff changeset
29 # CACHE-VAR,
e03debf767a4 largefile: port better to Mac OS X 10.5
Paul Eggert <eggert@cs.ucla.edu>
parents: 17249
diff changeset
30 # DESCRIPTION,
e03debf767a4 largefile: port better to Mac OS X 10.5
Paul Eggert <eggert@cs.ucla.edu>
parents: 17249
diff changeset
31 # PROLOGUE, [FUNCTION-BODY])
15443
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
32 # --------------------------------------------------------
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
33 m4_define([_AC_SYS_LARGEFILE_MACRO_VALUE],
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
34 [AC_CACHE_CHECK([for $1 value needed for large files], [$3],
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
35 [while :; do
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
36 m4_ifval([$6], [AC_LINK_IFELSE], [AC_COMPILE_IFELSE])(
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
37 [AC_LANG_PROGRAM([$5], [$6])],
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
38 [$3=no; break])
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
39 m4_ifval([$6], [AC_LINK_IFELSE], [AC_COMPILE_IFELSE])(
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
40 [AC_LANG_PROGRAM([@%:@define $1 $2
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
41 $5], [$6])],
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
42 [$3=$2; break])
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
43 $3=unknown
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
44 break
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
45 done])
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
46 case $$3 in #(
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
47 no | unknown) ;;
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
48 *) AC_DEFINE_UNQUOTED([$1], [$$3], [$4]);;
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
49 esac
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
50 rm -rf conftest*[]dnl
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
51 ])# _AC_SYS_LARGEFILE_MACRO_VALUE
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
52
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
53
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
54 # AC_SYS_LARGEFILE
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
55 # ----------------
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
56 # By default, many hosts won't let programs access large files;
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
57 # one must use special compiler options to get large-file access to work.
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
58 # For more details about this brain damage please see:
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
59 # http://www.unix-systems.org/version2/whatsnew/lfs20mar.html
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
60 AC_DEFUN([AC_SYS_LARGEFILE],
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
61 [AC_ARG_ENABLE(largefile,
15544
c2b10d683d4c maint: indent with spaces, not TABs
Jim Meyering <meyering@redhat.com>
parents: 15443
diff changeset
62 [ --disable-largefile omit support for large files])
15443
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
63 if test "$enable_largefile" != no; then
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
64
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
65 AC_CACHE_CHECK([for special C compiler options needed for large files],
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
66 ac_cv_sys_largefile_CC,
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
67 [ac_cv_sys_largefile_CC=no
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
68 if test "$GCC" != yes; then
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
69 ac_save_CC=$CC
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
70 while :; do
15544
c2b10d683d4c maint: indent with spaces, not TABs
Jim Meyering <meyering@redhat.com>
parents: 15443
diff changeset
71 # IRIX 6.2 and later do not support large files by default,
c2b10d683d4c maint: indent with spaces, not TABs
Jim Meyering <meyering@redhat.com>
parents: 15443
diff changeset
72 # so use the C compiler's -n32 option if that helps.
c2b10d683d4c maint: indent with spaces, not TABs
Jim Meyering <meyering@redhat.com>
parents: 15443
diff changeset
73 AC_LANG_CONFTEST([AC_LANG_PROGRAM([_AC_SYS_LARGEFILE_TEST_INCLUDES])])
c2b10d683d4c maint: indent with spaces, not TABs
Jim Meyering <meyering@redhat.com>
parents: 15443
diff changeset
74 AC_COMPILE_IFELSE([], [break])
c2b10d683d4c maint: indent with spaces, not TABs
Jim Meyering <meyering@redhat.com>
parents: 15443
diff changeset
75 CC="$CC -n32"
c2b10d683d4c maint: indent with spaces, not TABs
Jim Meyering <meyering@redhat.com>
parents: 15443
diff changeset
76 AC_COMPILE_IFELSE([], [ac_cv_sys_largefile_CC=' -n32'; break])
c2b10d683d4c maint: indent with spaces, not TABs
Jim Meyering <meyering@redhat.com>
parents: 15443
diff changeset
77 break
15443
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
78 done
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
79 CC=$ac_save_CC
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
80 rm -f conftest.$ac_ext
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
81 fi])
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
82 if test "$ac_cv_sys_largefile_CC" != no; then
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
83 CC=$CC$ac_cv_sys_largefile_CC
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
84 fi
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
85
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
86 _AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS, 64,
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
87 ac_cv_sys_file_offset_bits,
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
88 [Number of bits in a file offset, on hosts where this is settable.],
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
89 [_AC_SYS_LARGEFILE_TEST_INCLUDES])
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
90 if test $ac_cv_sys_file_offset_bits = unknown; then
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
91 _AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES, 1,
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
92 ac_cv_sys_large_files,
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
93 [Define for large files, on AIX-style hosts.],
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
94 [_AC_SYS_LARGEFILE_TEST_INCLUDES])
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
95 fi
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
96
17289
e03debf767a4 largefile: port better to Mac OS X 10.5
Paul Eggert <eggert@cs.ucla.edu>
parents: 17249
diff changeset
97 AC_DEFINE([_DARWIN_USE_64_BIT_INODE], [1],
e03debf767a4 largefile: port better to Mac OS X 10.5
Paul Eggert <eggert@cs.ucla.edu>
parents: 17249
diff changeset
98 [Enable large inode numbers on Mac OS X 10.5.])
15443
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
99 fi
7167d8365695 largefile: new module, replacing large-inode
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
100 ])# AC_SYS_LARGEFILE
17289
e03debf767a4 largefile: port better to Mac OS X 10.5
Paul Eggert <eggert@cs.ucla.edu>
parents: 17249
diff changeset
101 ])# m4_version_prereq 2.70
16795
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
102
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
103 # Enable large files on systems where this is implemented by Gnulib, not by the
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
104 # system headers.
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
105 # Set the variables WINDOWS_64_BIT_OFF_T, WINDOWS_64_BIT_ST_SIZE if Gnulib
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
106 # overrides ensure that off_t or 'struct size.st_size' are 64-bit, respectively.
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
107 AC_DEFUN([gl_LARGEFILE],
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
108 [
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
109 AC_REQUIRE([AC_CANONICAL_HOST])
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
110 case "$host_os" in
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
111 mingw*)
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
112 dnl Native Windows.
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
113 dnl mingw64 defines off_t to a 64-bit type already, if
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
114 dnl _FILE_OFFSET_BITS=64, which is ensured by AC_SYS_LARGEFILE.
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
115 AC_CACHE_CHECK([for 64-bit off_t], [gl_cv_type_off_t_64],
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
116 [AC_COMPILE_IFELSE(
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
117 [AC_LANG_PROGRAM(
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
118 [[#include <sys/types.h>
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
119 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
120 ]],
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
121 [[]])],
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
122 [gl_cv_type_off_t_64=yes], [gl_cv_type_off_t_64=no])
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
123 ])
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
124 if test $gl_cv_type_off_t_64 = no; then
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
125 WINDOWS_64_BIT_OFF_T=1
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
126 else
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
127 WINDOWS_64_BIT_OFF_T=0
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
128 fi
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
129 dnl But all native Windows platforms (including mingw64) have a 32-bit
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
130 dnl st_size member in 'struct stat'.
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
131 WINDOWS_64_BIT_ST_SIZE=1
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
132 ;;
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
133 *)
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
134 dnl Nothing to do on gnulib's side.
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
135 dnl A 64-bit off_t is
16935
498a2211d839 Write "Mac OS X" instead of "MacOS X".
Bruno Haible <bruno@clisp.org>
parents: 16795
diff changeset
136 dnl - already the default on Mac OS X, FreeBSD, NetBSD, OpenBSD, IRIX,
16795
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
137 dnl OSF/1, Cygwin,
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
138 dnl - enabled by _FILE_OFFSET_BITS=64 (ensured by AC_SYS_LARGEFILE) on
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
139 dnl glibc, HP-UX, Solaris,
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
140 dnl - enabled by _LARGE_FILES=1 (ensured by AC_SYS_LARGEFILE) on AIX,
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
141 dnl - impossible to achieve on Minix 3.1.8.
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
142 WINDOWS_64_BIT_OFF_T=0
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
143 WINDOWS_64_BIT_ST_SIZE=0
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
144 ;;
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
145 esac
6a9ea5d7b466 Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
146 ])