~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to m4/largefile.m4

  • Committer: Colin Watson
  • Date: 2013-10-30 15:48:33 UTC
  • mfrom: (8.3.5 sid)
  • Revision ID: cjwatson@canonical.com-20131030154833-xdt6e1yfffqom1c4
merge from Debian 8.21-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Enable large files on systems where this is not the default.
2
2
 
3
 
# Copyright 1992-1996, 1998-2012 Free Software Foundation, Inc.
 
3
# Copyright 1992-1996, 1998-2013 Free Software Foundation, Inc.
4
4
# This file is free software; the Free Software Foundation
5
5
# gives unlimited permission to copy and/or distribute it,
6
6
# with or without modifications, as long as this notice is preserved.
7
7
 
8
 
# The following implementation works around a problem in autoconf <= 2.68;
9
 
# AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5.
10
 
m4_version_prereq([2.69], [] ,[
 
8
# The following implementation works around a problem in autoconf <= 2.69;
 
9
# AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5,
 
10
# or configures them incorrectly in some cases.
 
11
m4_version_prereq([2.70], [] ,[
11
12
 
12
13
# _AC_SYS_LARGEFILE_TEST_INCLUDES
13
14
# -------------------------------
25
26
 
26
27
 
27
28
# _AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, VALUE,
28
 
#                               CACHE-VAR,
29
 
#                               DESCRIPTION,
30
 
#                               PROLOGUE, [FUNCTION-BODY])
 
29
#                               CACHE-VAR,
 
30
#                               DESCRIPTION,
 
31
#                               PROLOGUE, [FUNCTION-BODY])
31
32
# --------------------------------------------------------
32
33
m4_define([_AC_SYS_LARGEFILE_MACRO_VALUE],
33
34
[AC_CACHE_CHECK([for $1 value needed for large files], [$3],
93
94
      [_AC_SYS_LARGEFILE_TEST_INCLUDES])
94
95
  fi
95
96
 
96
 
  AH_VERBATIM([_DARWIN_USE_64_BIT_INODE],
97
 
[/* Enable large inode numbers on Mac OS X.  */
98
 
#ifndef _DARWIN_USE_64_BIT_INODE
99
 
# define _DARWIN_USE_64_BIT_INODE 1
100
 
#endif])
 
97
  AC_DEFINE([_DARWIN_USE_64_BIT_INODE], [1],
 
98
    [Enable large inode numbers on Mac OS X 10.5.])
101
99
fi
102
100
])# AC_SYS_LARGEFILE
103
 
 
104
 
])# m4_version_prereq 2.69
 
101
])# m4_version_prereq 2.70
105
102
 
106
103
# Enable large files on systems where this is implemented by Gnulib, not by the
107
104
# system headers.