summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2003-05-29 07:21:59 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2003-05-29 07:21:59 +0000
commit552a680fa612218b68d4ef2f49bc276b95f6677b (patch)
tree2f02ae2220694b236bf85e512009aee45d5a3e70 /m4
parent83255753896e5084f5471391b2a1b44b9fe8b47b (diff)
downloadgnulib-552a680fa612218b68d4ef2f49bc276b95f6677b.tar.gz
in lib:
* addext.c, backupfile.c, fsusage.c, human.c, pathmax.h, rpmatch.c, userspec.c, xreadlink.c, xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H. * backupfile.c, fsusage.c, hash.c, human.c, safe-read.c, userspec.c, xstrtol.c (CHAR_BIT) : Don't define, since <limits.h> is guaranteed to do that. * fatal.c: Include <stdarg.h> without checking for __STDC__. * exclude.c: Include <stdbool.h> unconditionally. * tempname.c: Include <stddef.h> unconditionally. * hash.c: Include <limits.h>, since we no longer define CHAR_BIT. * modechange.c, rpmatch.c (NULL): Don't define, since <stddef.h> does that. * quote.c: Dont include <stddef.h> or <sys/types.h>; not needed. * safe-read.c (INT_MAX): Don't define, since <limits.h> does that. * safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer needed. * xstrtol.c: Likewise. * safe-read.c: Remove TYPE_SIGNED; no longer needed. * savedir.c: Include <stddef.h> instead of defining NULL. in m4: * backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h. * fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise. * human.m4 (gl_HUMAN): Likewise. * pathmax.m4 (gl_PATHMAX): Likewise. * rpmatch.m4 (gl_FUNC_RPMATCH): Likewise. * userspec.m4 (gl_USERSPEC): Likewise. * xreadlink.m4 (gl_XREADLINK): Likewise. * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise. * quote.m4 (gl_QUOTE): Don't check for stddef.h.
Diffstat (limited to 'm4')
-rw-r--r--m4/ChangeLog13
-rw-r--r--m4/backupfile.m48
-rw-r--r--m4/fsusage.m44
-rw-r--r--m4/human.m46
-rw-r--r--m4/pathmax.m46
-rw-r--r--m4/quote.m46
-rw-r--r--m4/rpmatch.m45
-rw-r--r--m4/userspec.m46
-rw-r--r--m4/xreadlink.m46
-rw-r--r--m4/xstrtol.m46
10 files changed, 39 insertions, 27 deletions
diff --git a/m4/ChangeLog b/m4/ChangeLog
index daf789fe8e..9536d58489 100644
--- a/m4/ChangeLog
+++ b/m4/ChangeLog
@@ -1,3 +1,16 @@
+2003-05-28 Paul Eggert <eggert@twinsun.com>
+
+ Assume the headers required for C89 freestanding compilers.
+ * backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
+ * fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
+ * human.m4 (gl_HUMAN): Likewise.
+ * pathmax.m4 (gl_PATHMAX): Likewise.
+ * rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
+ * userspec.m4 (gl_USERSPEC): Likewise.
+ * xreadlink.m4 (gl_XREADLINK): Likewise.
+ * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
+ * quote.m4 (gl_QUOTE): Don't check for stddef.h.
+
2003-05-26 Jim Meyering <jim@meyering.net>
Merge in a change from coreutils:
diff --git a/m4/backupfile.m4 b/m4/backupfile.m4
index 0f63f4ef89..1326bb2ab4 100644
--- a/m4/backupfile.m4
+++ b/m4/backupfile.m4
@@ -1,5 +1,5 @@
-# backupfile.m4 serial 1
-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+# backupfile.m4 serial 2
+dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -11,13 +11,13 @@ AC_DEFUN([gl_BACKUPFILE],
dnl Prerequisites of lib/backupfile.c.
AC_REQUIRE([AC_HEADER_DIRENT])
AC_REQUIRE([AC_FUNC_CLOSEDIR_VOID])
- AC_CHECK_HEADERS_ONCE(limits.h stdlib.h string.h)
+ AC_CHECK_HEADERS_ONCE(stdlib.h string.h)
AC_CHECK_DECLS_ONCE(getenv malloc)
jm_CHECK_TYPE_STRUCT_DIRENT_D_INO
dnl Prerequisites of lib/addext.c.
AC_REQUIRE([jm_AC_DOS])
AC_SYS_LONG_FILE_NAMES
- AC_CHECK_HEADERS_ONCE(limits.h string.h unistd.h)
+ AC_CHECK_HEADERS_ONCE(string.h unistd.h)
AC_CHECK_FUNCS(pathconf)
])
diff --git a/m4/fsusage.m4 b/m4/fsusage.m4
index 13ed7c6273..018563bdb9 100644
--- a/m4/fsusage.m4
+++ b/m4/fsusage.m4
@@ -1,4 +1,4 @@
-#serial 9
+#serial 10
# From fileutils/configure.in
@@ -235,7 +235,7 @@ choke -- this is a workaround for a Sun-specific problem
AC_DEFUN([gl_PREREQ_FSUSAGE_EXTRA],
[
AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])
- AC_CHECK_HEADERS_ONCE(fcntl.h limits.h)
+ AC_CHECK_HEADERS_ONCE(fcntl.h)
AC_CHECK_HEADERS(dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h sys/statvfs.h)
jm_STATFS_TRUNCATES
])
diff --git a/m4/human.m4 b/m4/human.m4
index f0ed3a7554..0f1c76f56b 100644
--- a/m4/human.m4
+++ b/m4/human.m4
@@ -1,5 +1,5 @@
-# human.m4 serial 1
-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+# human.m4 serial 2
+dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -12,6 +12,6 @@ AC_DEFUN([gl_HUMAN],
AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])
dnl Prerequisites of lib/human.c.
- AC_CHECK_HEADERS_ONCE(limits.h stdlib.h string.h)
+ AC_CHECK_HEADERS_ONCE(stdlib.h string.h)
AC_CHECK_DECLS_ONCE([getenv])
])
diff --git a/m4/pathmax.m4 b/m4/pathmax.m4
index 6a600197ea..95ab044d84 100644
--- a/m4/pathmax.m4
+++ b/m4/pathmax.m4
@@ -1,5 +1,5 @@
-# pathmax.m4 serial 1
-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+# pathmax.m4 serial 2
+dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -9,5 +9,5 @@ dnl the same distribution terms as the rest of that program.
AC_DEFUN([gl_PATHMAX],
[
dnl Prerequisites of lib/pathmax.h.
- AC_CHECK_HEADERS_ONCE(limits.h sys/param.h unistd.h)
+ AC_CHECK_HEADERS_ONCE(sys/param.h unistd.h)
])
diff --git a/m4/quote.m4 b/m4/quote.m4
index 025911fef3..14ce1b6198 100644
--- a/m4/quote.m4
+++ b/m4/quote.m4
@@ -1,5 +1,5 @@
-# quote.m4 serial 1
-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+# quote.m4 serial 2
+dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -9,5 +9,5 @@ dnl the same distribution terms as the rest of that program.
AC_DEFUN([gl_QUOTE],
[
dnl Prerequisites of lib/quote.c.
- AC_CHECK_HEADERS_ONCE(stddef.h)
+ dnl (none)
])
diff --git a/m4/rpmatch.m4 b/m4/rpmatch.m4
index 6aec429dff..21c28274c5 100644
--- a/m4/rpmatch.m4
+++ b/m4/rpmatch.m4
@@ -1,5 +1,5 @@
-# rpmatch.m4 serial 1
-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+# rpmatch.m4 serial 2
+dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -17,6 +17,5 @@ AC_DEFUN([gl_FUNC_RPMATCH],
# Prerequisites of lib/rpmatch.c.
AC_DEFUN([gl_PREREQ_RPMATCH], [
AC_REQUIRE([AC_HEADER_STDC])
- AC_CHECK_HEADERS_ONCE(limits.h)
])
diff --git a/m4/userspec.m4 b/m4/userspec.m4
index b60ae3d27b..862c871709 100644
--- a/m4/userspec.m4
+++ b/m4/userspec.m4
@@ -1,5 +1,5 @@
-# userspec.m4 serial 1
-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+# userspec.m4 serial 2
+dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -11,5 +11,5 @@ AC_DEFUN([gl_USERSPEC],
dnl Prerequisites of lib/userspec.c.
AC_REQUIRE([AC_HEADER_STDC])
AC_REQUIRE([AC_FUNC_ALLOCA])
- AC_CHECK_HEADERS_ONCE(limits.h string.h sys/param.h unistd.h)
+ AC_CHECK_HEADERS_ONCE(string.h sys/param.h unistd.h)
])
diff --git a/m4/xreadlink.m4 b/m4/xreadlink.m4
index c499364b3e..ca3bcef7e9 100644
--- a/m4/xreadlink.m4
+++ b/m4/xreadlink.m4
@@ -1,5 +1,5 @@
-# xreadlink.m4 serial 1
-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+# xreadlink.m4 serial 2
+dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -9,5 +9,5 @@ dnl the same distribution terms as the rest of that program.
AC_DEFUN([gl_XREADLINK],
[
dnl Prerequisites of lib/xreadlink.c.
- AC_CHECK_HEADERS_ONCE(limits.h stdlib.h sys/types.h unistd.h)
+ AC_CHECK_HEADERS_ONCE(stdlib.h sys/types.h unistd.h)
])
diff --git a/m4/xstrtol.m4 b/m4/xstrtol.m4
index f69680cb5e..86d14b68c0 100644
--- a/m4/xstrtol.m4
+++ b/m4/xstrtol.m4
@@ -1,5 +1,5 @@
-# xstrtol.m4 serial 1
-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+# xstrtol.m4 serial 2
+dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -24,7 +24,7 @@ AC_DEFUN([gl_PREREQ_XSTRTOL],
[
AC_REQUIRE([gl_PREREQ_XSTRTOL_H])
AC_REQUIRE([AC_HEADER_STDC])
- AC_CHECK_HEADERS_ONCE(limits.h string.h)
+ AC_CHECK_HEADERS_ONCE(string.h)
AC_CHECK_FUNCS_ONCE(isascii)
AC_CHECK_DECLS_ONCE(strtol strtoul)
AC_CHECK_DECLS([strtoimax, strtoumax])