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

« back to all changes in this revision

Viewing changes to m4/unistd_h.m4

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# unistd_h.m4 serial 56
2
 
dnl Copyright (C) 2006-2011 Free Software Foundation, Inc.
 
1
# unistd_h.m4 serial 65
 
2
dnl Copyright (C) 2006-2012 Free Software Foundation, Inc.
3
3
dnl This file is free software; the Free Software Foundation
4
4
dnl gives unlimited permission to copy and/or distribute it,
5
5
dnl with or without modifications, as long as this notice is preserved.
21
21
  fi
22
22
  AC_SUBST([HAVE_UNISTD_H])
23
23
 
 
24
  dnl Ensure the type pid_t gets defined.
 
25
  AC_REQUIRE([AC_TYPE_PID_T])
 
26
 
 
27
  dnl Determine WINDOWS_64_BIT_OFF_T.
 
28
  AC_REQUIRE([gl_TYPE_OFF_T])
 
29
 
24
30
  dnl Check for declarations of anything we want to poison if the
25
31
  dnl corresponding gnulib module is not in use.
26
 
  gl_WARN_ON_USE_PREPARE([[#include <unistd.h>
 
32
  gl_WARN_ON_USE_PREPARE([[
 
33
#if HAVE_UNISTD_H
 
34
# include <unistd.h>
 
35
#endif
27
36
/* Some systems declare various items in the wrong headers.  */
28
37
#if !(defined __GLIBC__ && !defined __UCLIBC__)
29
38
# include <fcntl.h>
33
42
#  include <io.h>
34
43
# endif
35
44
#endif
36
 
    ]], [chown dup2 dup3 environ euidaccess faccessat fchdir fchownat
37
 
    fsync ftruncate getcwd getdomainname getdtablesize getgroups
38
 
    gethostname getlogin getlogin_r getpagesize getusershell setusershell
39
 
    endusershell group_member lchown link linkat lseek pipe pipe2 pread pwrite
40
 
    readlink readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat
41
 
    usleep])
 
45
    ]], [chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat
 
46
    fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups
 
47
    gethostname getlogin getlogin_r getpagesize
 
48
    getusershell setusershell endusershell
 
49
    group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite
 
50
    readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r
 
51
    unlink unlinkat usleep])
42
52
])
43
53
 
44
54
AC_DEFUN([gl_UNISTD_MODULE_INDICATOR],
52
62
 
53
63
AC_DEFUN([gl_UNISTD_H_DEFAULTS],
54
64
[
 
65
  GNULIB_CHDIR=0;                AC_SUBST([GNULIB_CHDIR])
55
66
  GNULIB_CHOWN=0;                AC_SUBST([GNULIB_CHOWN])
56
67
  GNULIB_CLOSE=0;                AC_SUBST([GNULIB_CLOSE])
 
68
  GNULIB_DUP=0;                  AC_SUBST([GNULIB_DUP])
57
69
  GNULIB_DUP2=0;                 AC_SUBST([GNULIB_DUP2])
58
70
  GNULIB_DUP3=0;                 AC_SUBST([GNULIB_DUP3])
59
71
  GNULIB_ENVIRON=0;              AC_SUBST([GNULIB_ENVIRON])
61
73
  GNULIB_FACCESSAT=0;            AC_SUBST([GNULIB_FACCESSAT])
62
74
  GNULIB_FCHDIR=0;               AC_SUBST([GNULIB_FCHDIR])
63
75
  GNULIB_FCHOWNAT=0;             AC_SUBST([GNULIB_FCHOWNAT])
 
76
  GNULIB_FDATASYNC=0;            AC_SUBST([GNULIB_FDATASYNC])
64
77
  GNULIB_FSYNC=0;                AC_SUBST([GNULIB_FSYNC])
65
78
  GNULIB_FTRUNCATE=0;            AC_SUBST([GNULIB_FTRUNCATE])
66
79
  GNULIB_GETCWD=0;               AC_SUBST([GNULIB_GETCWD])
73
86
  GNULIB_GETPAGESIZE=0;          AC_SUBST([GNULIB_GETPAGESIZE])
74
87
  GNULIB_GETUSERSHELL=0;         AC_SUBST([GNULIB_GETUSERSHELL])
75
88
  GNULIB_GROUP_MEMBER=0;         AC_SUBST([GNULIB_GROUP_MEMBER])
 
89
  GNULIB_ISATTY=0;               AC_SUBST([GNULIB_ISATTY])
76
90
  GNULIB_LCHOWN=0;               AC_SUBST([GNULIB_LCHOWN])
77
91
  GNULIB_LINK=0;                 AC_SUBST([GNULIB_LINK])
78
92
  GNULIB_LINKAT=0;               AC_SUBST([GNULIB_LINKAT])
85
99
  GNULIB_READLINK=0;             AC_SUBST([GNULIB_READLINK])
86
100
  GNULIB_READLINKAT=0;           AC_SUBST([GNULIB_READLINKAT])
87
101
  GNULIB_RMDIR=0;                AC_SUBST([GNULIB_RMDIR])
 
102
  GNULIB_SETHOSTNAME=0;          AC_SUBST([GNULIB_SETHOSTNAME])
88
103
  GNULIB_SLEEP=0;                AC_SUBST([GNULIB_SLEEP])
89
104
  GNULIB_SYMLINK=0;              AC_SUBST([GNULIB_SYMLINK])
90
105
  GNULIB_SYMLINKAT=0;            AC_SUBST([GNULIB_SYMLINKAT])
91
106
  GNULIB_TTYNAME_R=0;            AC_SUBST([GNULIB_TTYNAME_R])
92
 
  GNULIB_UNISTD_H_GETOPT=0;      AC_SUBST([GNULIB_UNISTD_H_GETOPT])
93
107
  GNULIB_UNISTD_H_NONBLOCKING=0; AC_SUBST([GNULIB_UNISTD_H_NONBLOCKING])
94
108
  GNULIB_UNISTD_H_SIGPIPE=0;     AC_SUBST([GNULIB_UNISTD_H_SIGPIPE])
95
109
  GNULIB_UNLINK=0;               AC_SUBST([GNULIB_UNLINK])
104
118
  HAVE_FACCESSAT=1;       AC_SUBST([HAVE_FACCESSAT])
105
119
  HAVE_FCHDIR=1;          AC_SUBST([HAVE_FCHDIR])
106
120
  HAVE_FCHOWNAT=1;        AC_SUBST([HAVE_FCHOWNAT])
 
121
  HAVE_FDATASYNC=1;       AC_SUBST([HAVE_FDATASYNC])
107
122
  HAVE_FSYNC=1;           AC_SUBST([HAVE_FSYNC])
108
123
  HAVE_FTRUNCATE=1;       AC_SUBST([HAVE_FTRUNCATE])
109
124
  HAVE_GETDTABLESIZE=1;   AC_SUBST([HAVE_GETDTABLESIZE])
121
136
  HAVE_PWRITE=1;          AC_SUBST([HAVE_PWRITE])
122
137
  HAVE_READLINK=1;        AC_SUBST([HAVE_READLINK])
123
138
  HAVE_READLINKAT=1;      AC_SUBST([HAVE_READLINKAT])
 
139
  HAVE_SETHOSTNAME=1;     AC_SUBST([HAVE_SETHOSTNAME])
124
140
  HAVE_SLEEP=1;           AC_SUBST([HAVE_SLEEP])
125
141
  HAVE_SYMLINK=1;         AC_SUBST([HAVE_SYMLINK])
126
142
  HAVE_SYMLINKAT=1;       AC_SUBST([HAVE_SYMLINKAT])
128
144
  HAVE_USLEEP=1;          AC_SUBST([HAVE_USLEEP])
129
145
  HAVE_DECL_ENVIRON=1;    AC_SUBST([HAVE_DECL_ENVIRON])
130
146
  HAVE_DECL_FCHDIR=1;     AC_SUBST([HAVE_DECL_FCHDIR])
 
147
  HAVE_DECL_FDATASYNC=1;  AC_SUBST([HAVE_DECL_FDATASYNC])
131
148
  HAVE_DECL_GETDOMAINNAME=1; AC_SUBST([HAVE_DECL_GETDOMAINNAME])
132
149
  HAVE_DECL_GETLOGIN_R=1; AC_SUBST([HAVE_DECL_GETLOGIN_R])
133
150
  HAVE_DECL_GETPAGESIZE=1; AC_SUBST([HAVE_DECL_GETPAGESIZE])
134
151
  HAVE_DECL_GETUSERSHELL=1; AC_SUBST([HAVE_DECL_GETUSERSHELL])
 
152
  HAVE_DECL_SETHOSTNAME=1; AC_SUBST([HAVE_DECL_SETHOSTNAME])
135
153
  HAVE_DECL_TTYNAME_R=1;  AC_SUBST([HAVE_DECL_TTYNAME_R])
136
154
  HAVE_OS_H=0;            AC_SUBST([HAVE_OS_H])
137
155
  HAVE_SYS_PARAM_H=0;     AC_SUBST([HAVE_SYS_PARAM_H])
140
158
  REPLACE_DUP=0;          AC_SUBST([REPLACE_DUP])
141
159
  REPLACE_DUP2=0;         AC_SUBST([REPLACE_DUP2])
142
160
  REPLACE_FCHOWNAT=0;     AC_SUBST([REPLACE_FCHOWNAT])
 
161
  REPLACE_FTRUNCATE=0;    AC_SUBST([REPLACE_FTRUNCATE])
143
162
  REPLACE_GETCWD=0;       AC_SUBST([REPLACE_GETCWD])
144
163
  REPLACE_GETDOMAINNAME=0; AC_SUBST([REPLACE_GETDOMAINNAME])
145
164
  REPLACE_GETLOGIN_R=0;   AC_SUBST([REPLACE_GETLOGIN_R])
146
165
  REPLACE_GETGROUPS=0;    AC_SUBST([REPLACE_GETGROUPS])
147
166
  REPLACE_GETPAGESIZE=0;  AC_SUBST([REPLACE_GETPAGESIZE])
 
167
  REPLACE_ISATTY=0;       AC_SUBST([REPLACE_ISATTY])
148
168
  REPLACE_LCHOWN=0;       AC_SUBST([REPLACE_LCHOWN])
149
169
  REPLACE_LINK=0;         AC_SUBST([REPLACE_LINK])
150
170
  REPLACE_LINKAT=0;       AC_SUBST([REPLACE_LINKAT])