summaryrefslogtreecommitdiff
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
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.
-rw-r--r--lib/ChangeLog20
-rw-r--r--lib/addext.c4
-rw-r--r--lib/backupfile.c13
-rw-r--r--lib/exclude.c6
-rw-r--r--lib/fatal.c27
-rw-r--r--lib/fsusage.c12
-rw-r--r--lib/hash.c4
-rw-r--r--lib/human.c12
-rw-r--r--lib/modechange.c9
-rw-r--r--lib/pathmax.h4
-rw-r--r--lib/quote.c4
-rw-r--r--lib/rpmatch.c12
-rw-r--r--lib/safe-read.c16
-rw-r--r--lib/savedir.c6
-rw-r--r--lib/tempname.c5
-rw-r--r--lib/userspec.c8
-rw-r--r--lib/xreadlink.c6
-rw-r--r--lib/xstrtol.c17
-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
28 files changed, 115 insertions, 136 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index 772433a05e..bfa1f96533 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,5 +1,25 @@
2003-05-28 Paul Eggert <eggert@twinsun.com>
+ Assume the headers required for C89 freestanding compilers.
+ * 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.
+
* addext.c (addext): Use assignment rather than cast, to avoid
warnings on some platforms.
diff --git a/lib/addext.c b/lib/addext.c
index a69c1748de..283756bf43 100644
--- a/lib/addext.c
+++ b/lib/addext.c
@@ -31,9 +31,7 @@
# define HAVE_LONG_FILE_NAMES 0
#endif
-#if HAVE_LIMITS_H
-# include <limits.h>
-#endif
+#include <limits.h>
#ifndef _POSIX_NAME_MAX
# define _POSIX_NAME_MAX 14
#endif
diff --git a/lib/backupfile.c b/lib/backupfile.c
index b0c3976074..0dfa02eace 100644
--- a/lib/backupfile.c
+++ b/lib/backupfile.c
@@ -1,6 +1,7 @@
/* backupfile.c -- make Emacs style backup file names
- Copyright (C) 1990,91,92,93,94,95,96,97,98,99,2000, 2001, 2002 Free Software
- Foundation, Inc.
+
+ Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
+ 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -80,12 +81,8 @@ char *malloc ();
# define HAVE_DIR 0
#endif
-#if HAVE_LIMITS_H
-# include <limits.h>
-#endif
-#ifndef CHAR_BIT
-# define CHAR_BIT 8
-#endif
+#include <limits.h>
+
/* Upper bound on the string length of an integer converted to string.
302 / 1000 is ceil (log10 (2.0)). Subtract 1 for the sign bit;
add 1 for integer division truncation; add 1 more for a minus sign. */
diff --git a/lib/exclude.c b/lib/exclude.c
index d2c6502dff..9f2970f4b7 100644
--- a/lib/exclude.c
+++ b/lib/exclude.c
@@ -24,11 +24,7 @@
# include <config.h>
#endif
-#if HAVE_STDBOOL_H
-# include <stdbool.h>
-#else
-typedef enum {false = 0, true = 1} bool;
-#endif
+#include <stdbool.h>
#include <errno.h>
#ifndef errno
diff --git a/lib/fatal.c b/lib/fatal.c
index e6f46ec94c..430e52a1cd 100644
--- a/lib/fatal.c
+++ b/lib/fatal.c
@@ -1,3 +1,21 @@
+/* Fatal exits for noninteractive utilities
+
+ Copyright (C) 2001, 2003 Free Software Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation,
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
@@ -7,13 +25,8 @@
#include <stdio.h>
#if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC
-# if __STDC__
-# include <stdarg.h>
-# define VA_START(args, lastarg) va_start(args, lastarg)
-# else
-# include <varargs.h>
-# define VA_START(args, lastarg) va_start(args)
-# endif
+# include <stdarg.h>
+# define VA_START(args, lastarg) va_start(args, lastarg)
#else
# define va_alist a1, a2, a3, a4, a5, a6, a7, a8
# define va_dcl char *a1, *a2, *a3, *a4, *a5, *a6, *a7, *a8;
diff --git a/lib/fsusage.c b/lib/fsusage.c
index 2d935fb306..7172238821 100644
--- a/lib/fsusage.c
+++ b/lib/fsusage.c
@@ -1,6 +1,7 @@
/* fsusage.c -- return space usage of mounted filesystems
- Copyright (C) 1991, 1992, 1996, 1998, 1999, 2002 Free Software
- Foundation, Inc.
+
+ Copyright (C) 1991, 1992, 1996, 1998, 1999, 2002, 2003 Free
+ Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -35,12 +36,7 @@
#include <sys/stat.h>
#include "fsusage.h"
-#if HAVE_LIMITS_H
-# include <limits.h>
-#endif
-#ifndef CHAR_BIT
-# define CHAR_BIT 8
-#endif
+#include <limits.h>
int statfs ();
diff --git a/lib/hash.c b/lib/hash.c
index d73bb6b26e..7373a011ce 100644
--- a/lib/hash.c
+++ b/lib/hash.c
@@ -31,6 +31,7 @@
# include <stdlib.h>
#endif
+#include <limits.h>
#include <stdbool.h>
#include <stdio.h>
@@ -403,9 +404,6 @@ hash_do_for_each (const Hash_table *table, Hash_processor processor,
unsigned
hash_string (const char *string, unsigned n_buckets)
{
-# ifndef CHAR_BIT
-# define CHAR_BIT 8
-# endif
# define ROTATE_LEFT(Value, Shift) \
((Value) << (Shift) | (Value) >> ((sizeof (unsigned) * CHAR_BIT) - (Shift)))
# define HASH_ONE_CHAR(Value, Byte) \
diff --git a/lib/human.c b/lib/human.c
index 2367137e00..4e232403bd 100644
--- a/lib/human.c
+++ b/lib/human.c
@@ -1,7 +1,7 @@
/* human.c -- print human readable file size
- Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free Software
- Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free
+ Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -27,10 +27,7 @@
#include <sys/types.h>
#include <stdio.h>
-
-#if HAVE_LIMITS_H
-# include <limits.h>
-#endif
+#include <limits.h>
#if HAVE_STRING_H
# include <string.h>
@@ -38,9 +35,6 @@
# include <strings.h>
#endif
-#ifndef CHAR_BIT
-# define CHAR_BIT 8
-#endif
#if HAVE_STDLIB_H
# include <stdlib.h>
#endif
diff --git a/lib/modechange.c b/lib/modechange.c
index a102b6956f..d04614cf8a 100644
--- a/lib/modechange.c
+++ b/lib/modechange.c
@@ -1,5 +1,7 @@
/* modechange.c -- file mode manipulation
- Copyright (C) 1989, 1990, 1997, 1998, 1999, 2001 Free Software Foundation, Inc.
+
+ Copyright (C) 1989, 1990, 1997, 1998, 1999, 2001, 2003 Free Software
+ Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -31,6 +33,7 @@
#include "modechange.h"
#include <sys/stat.h>
#include "xstrtol.h"
+#include <stddef.h>
#if STDC_HEADERS
# include <stdlib.h>
@@ -38,10 +41,6 @@
char *malloc ();
#endif
-#ifndef NULL
-# define NULL 0
-#endif
-
#if STAT_MACROS_BROKEN
# undef S_ISDIR
#endif
diff --git a/lib/pathmax.h b/lib/pathmax.h
index de9313b0ab..bdd756e9c5 100644
--- a/lib/pathmax.h
+++ b/lib/pathmax.h
@@ -1,5 +1,5 @@
/* Define PATH_MAX somehow. Requires sys/types.h.
- Copyright (C) 1992, 1999, 2001 Free Software Foundation, Inc.
+ Copyright (C) 1992, 1999, 2001, 2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -25,7 +25,7 @@
/* Non-POSIX BSD systems might have gcc's limits.h, which doesn't define
PATH_MAX but might cause redefinition warnings when sys/param.h is
later included (as on MORE/BSD 4.3). */
-# if defined _POSIX_VERSION || (defined HAVE_LIMITS_H && !defined __GNUC__)
+# if defined _POSIX_VERSION || !defined __GNUC__
# include <limits.h>
# endif
diff --git a/lib/quote.c b/lib/quote.c
index 1284937f82..5f11d836b3 100644
--- a/lib/quote.c
+++ b/lib/quote.c
@@ -21,10 +21,6 @@
# include <config.h>
#endif
-#if HAVE_STDDEF_H
-# include <stddef.h> /* For the definition of size_t on windows w/MSVC. */
-#endif
-#include <sys/types.h>
#include "quotearg.h"
#include "quote.h"
diff --git a/lib/rpmatch.c b/lib/rpmatch.c
index 02c2abdb88..7759d0ca7e 100644
--- a/lib/rpmatch.c
+++ b/lib/rpmatch.c
@@ -1,6 +1,6 @@
/* Determine whether string value is affirmation or negative response
according to current locale's data.
- Copyright (C) 1996, 1998, 2000, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1998, 2000, 2002, 2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -20,20 +20,14 @@
# include <config.h>
#endif
+#include <stddef.h>
#if STDC_HEADERS || _LIBC
-# include <stddef.h>
# include <stdlib.h>
-#else
-# ifndef NULL
-# define NULL 0
-# endif
#endif
#if ENABLE_NLS
# include <sys/types.h>
-# if HAVE_LIMITS_H
-# include <limits.h>
-# endif
+# include <limits.h>
# include <regex.h>
# include "gettext.h"
# define _(msgid) gettext (msgid)
diff --git a/lib/safe-read.c b/lib/safe-read.c
index c84c79b924..c21d1cf194 100644
--- a/lib/safe-read.c
+++ b/lib/safe-read.c
@@ -45,22 +45,6 @@ extern int errno;
#include <limits.h>
-#ifndef CHAR_BIT
-# define CHAR_BIT 8
-#endif
-
-/* The extra casts work around common compiler bugs. */
-#define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
-/* The outer cast is needed to work around a bug in Cray C 5.0.3.0.
- It is necessary at least when t == time_t. */
-#define TYPE_MINIMUM(t) ((t) (TYPE_SIGNED (t) \
- ? ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1) : (t) 0))
-#define TYPE_MAXIMUM(t) ((t) (~ (t) 0 - TYPE_MINIMUM (t)))
-
-#ifndef INT_MAX
-# define INT_MAX TYPE_MAXIMUM (int)
-#endif
-
#ifdef SAFE_WRITE
# define safe_rw safe_write
# define rw write
diff --git a/lib/savedir.c b/lib/savedir.c
index 112f5c0451..a1f8a6cd7a 100644
--- a/lib/savedir.c
+++ b/lib/savedir.c
@@ -1,6 +1,6 @@
/* savedir.c -- save the list of files in a directory in a string
- Copyright 1990, 1997, 1998, 1999, 2000, 2001 Free Software
+ Copyright 1990, 1997, 1998, 1999, 2000, 2001, 2003 Free Software
Foundation, Inc.
This program is free software; you can redistribute it and/or modify
@@ -56,9 +56,7 @@ extern int errno;
# include <stdlib.h>
# include <string.h>
#endif
-#ifndef NULL
-# define NULL 0
-#endif
+#include <stddef.h>
#include "savedir.h"
#include "xalloc.h"
diff --git a/lib/tempname.c b/lib/tempname.c
index e30872a708..13a8204a4f 100644
--- a/lib/tempname.c
+++ b/lib/tempname.c
@@ -1,7 +1,7 @@
/* tempname.c - generate the name of a temporary file.
Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
- 2000, 2001, 2002 Free Software Foundation, Inc.
+ 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -43,8 +43,9 @@
# define __GT_NOCREATE 3
#endif
+#include <stddef.h>
+
#if STDC_HEADERS || _LIBC
-# include <stddef.h>
# include <string.h>
#endif
diff --git a/lib/userspec.c b/lib/userspec.c
index 88b43a1310..80ace3e237 100644
--- a/lib/userspec.c
+++ b/lib/userspec.c
@@ -32,9 +32,7 @@
# include <sys/param.h>
#endif
-#if HAVE_LIMITS_H
-# include <limits.h>
-#endif
+#include <limits.h>
#if HAVE_STRING_H
# include <string.h>
@@ -74,10 +72,6 @@ struct group *getgrgid ();
# define endpwent() ((void) 0)
#endif
-#ifndef CHAR_BIT
-# define CHAR_BIT 8
-#endif
-
/* The extra casts work around common compiler bugs. */
#define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
/* The outer cast is needed to work around a bug in Cray C 5.0.3.0.
diff --git a/lib/xreadlink.c b/lib/xreadlink.c
index 54b5e9e597..e4c565f8bb 100644
--- a/lib/xreadlink.c
+++ b/lib/xreadlink.c
@@ -1,6 +1,6 @@
/* xreadlink.c -- readlink wrapper to return the link name in malloc'd storage
- Copyright 2001 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -29,9 +29,7 @@
extern int errno;
#endif
-#if HAVE_LIMITS_H
-# include <limits.h>
-#endif
+#include <limits.h>
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
diff --git a/lib/xstrtol.c b/lib/xstrtol.c
index 446d62ec1f..73d87bacb2 100644
--- a/lib/xstrtol.c
+++ b/lib/xstrtol.c
@@ -1,5 +1,7 @@
/* A more useful interface to strtol.
- Copyright (C) 1995, 1996, 1998-2001 Free Software Foundation, Inc.
+
+ Copyright (C) 1995, 1996, 1998, 1999, 2000, 2001, 2003 Free
+ Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -52,21 +54,10 @@
extern int errno;
#endif
-#if HAVE_LIMITS_H
-# include <limits.h>
-#endif
-
-#ifndef CHAR_BIT
-# define CHAR_BIT 8
-#endif
+#include <limits.h>
/* The extra casts work around common compiler bugs. */
#define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
-/* The outer cast is needed to work around a bug in Cray C 5.0.3.0.
- It is necessary at least when t == time_t. */
-#define TYPE_MINIMUM(t) ((t) (TYPE_SIGNED (t) \
- ? ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1) : (t) 0))
-#define TYPE_MAXIMUM(t) (~ (t) 0 - TYPE_MINIMUM (t))
#if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII))
# define IN_CTYPE_DOMAIN(c) 1
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])