aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Verona2012-11-30 19:30:45 +0100
committerJoakim Verona2012-11-30 19:30:45 +0100
commit3ee62d12162bf1d03f3f6f9af98ad7beb1806e7e (patch)
tree98436802837ccff8a924306fb799d148c86fca84
parent36a7ffb7f08f9b908081a56ce7ac13209b3483db (diff)
parentf64898abf40b09990c4974c921ddc2ebc698609a (diff)
downloademacs-3ee62d12162bf1d03f3f6f9af98ad7beb1806e7e.tar.gz
emacs-3ee62d12162bf1d03f3f6f9af98ad7beb1806e7e.zip
auto upstream
-rw-r--r--ChangeLog22
-rw-r--r--build-aux/snippet/warn-on-use.h2
-rw-r--r--lib/gnulib.mk2
-rw-r--r--lib/lstat.c2
-rw-r--r--lib/md5.c2
-rw-r--r--lib/sha1.c2
-rw-r--r--lib/sha256.c2
-rw-r--r--lib/sha512.c2
-rw-r--r--lib/stat.c2
-rw-r--r--lib/stdio.c3
-rw-r--r--lib/stdio.in.h8
-rw-r--r--lib/sys_stat.in.h2
-rw-r--r--lib/unistd.c3
-rw-r--r--lib/unistd.in.h10
-rw-r--r--m4/c-strtod.m48
-rw-r--r--m4/extern-inline.m45
-rw-r--r--m4/gnulib-comp.m42
-rw-r--r--m4/lstat.m48
-rw-r--r--m4/md5.m43
-rw-r--r--m4/sha1.m43
-rw-r--r--m4/sha256.m43
-rw-r--r--m4/sha512.m43
-rw-r--r--m4/stat.m48
-rw-r--r--m4/stdio_h.m43
-rw-r--r--m4/sys_socket_h.m43
-rw-r--r--m4/sys_stat_h.m45
-rw-r--r--m4/unistd_h.m43
27 files changed, 70 insertions, 51 deletions
diff --git a/ChangeLog b/ChangeLog
index ab81d73e45c..b27377baa4a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,25 @@
12012-11-30 Paul Eggert <eggert@cs.ucla.edu>
2
3 Merge from gnulib for 'inline' (Bug#13040), incorporating:
4 2012-11-29 snippet/warn-on-use: no 'static inline'
5 2012-11-29 ftruncate, fts, lstat, openat, raise: no 'static inline'
6 2012-11-29 arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
7 2012-11-29 fflush, stat: no 'static inline'
8 2012-11-29 stdio: better 'inline'
9 2012-11-29 sys_stat: no 'static inline'
10 2012-11-29 unistd: better 'inline'
11 2012-11-29 c-strtod, memcoll, readutmp: no 'static inline'
12 2012-11-29 extern-inline: no 'static inline'
13 2012-11-29 sys_socket: better 'inline'
14 * lib/stdio.c, lib/unistd.c: New files, from gnulib.
15 * build-aux/snippet/warn-on-use.h, lib/gnulib.mk, lib/lstat.c:
16 * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c, lib/stat.c:
17 * lib/stdio.in.h, lib/sys_stat.in.h, lib/unistd.in.h, m4/c-strtod.m4:
18 * m4/extern-inline.m4, m4/gnulib-comp.m4, m4/lstat.m4, m4/md5.m4:
19 * m4/sha1.m4, m4/sha256.m4, m4/sha512.m4, m4/stat.m4, m4/stdio_h.m4:
20 * m4/sys_socket_h.m4, m4/sys_stat_h.m4, m4/unistd_h.m4:
21 Update from gnulib.
22
12012-11-27 Eli Zaretskii <eliz@gnu.org> 232012-11-27 Eli Zaretskii <eliz@gnu.org>
2 24
3 * make-dist (nt): Adjust to changes in names of the *.manifest files. 25 * make-dist (nt): Adjust to changes in names of the *.manifest files.
diff --git a/build-aux/snippet/warn-on-use.h b/build-aux/snippet/warn-on-use.h
index d4cb94f3525..51e69bbd9b6 100644
--- a/build-aux/snippet/warn-on-use.h
+++ b/build-aux/snippet/warn-on-use.h
@@ -55,7 +55,7 @@
55 rather than issue the nice warning, but the end result of informing 55 rather than issue the nice warning, but the end result of informing
56 the developer about their portability problem is still achieved): 56 the developer about their portability problem is still achieved):
57 #if HAVE_RAW_DECL_ENVIRON 57 #if HAVE_RAW_DECL_ENVIRON
58 static inline char ***rpl_environ (void) { return &environ; } 58 static char ***rpl_environ (void) { return &environ; }
59 _GL_WARN_ON_USE (rpl_environ, "environ is not always properly declared"); 59 _GL_WARN_ON_USE (rpl_environ, "environ is not always properly declared");
60 # undef environ 60 # undef environ
61 # define environ (*rpl_environ ()) 61 # define environ (*rpl_environ ())
diff --git a/lib/gnulib.mk b/lib/gnulib.mk
index 834f63169e2..9d7cb281564 100644
--- a/lib/gnulib.mk
+++ b/lib/gnulib.mk
@@ -756,6 +756,7 @@ EXTRA_DIST += stdint.in.h
756## begin gnulib module stdio 756## begin gnulib module stdio
757 757
758BUILT_SOURCES += stdio.h 758BUILT_SOURCES += stdio.h
759libgnu_a_SOURCES += stdio.c
759 760
760# We need the following in order to create <stdio.h> when the system 761# We need the following in order to create <stdio.h> when the system
761# doesn't have one that works with the given compiler. 762# doesn't have one that works with the given compiler.
@@ -1251,6 +1252,7 @@ EXTRA_DIST += u64.h
1251## begin gnulib module unistd 1252## begin gnulib module unistd
1252 1253
1253BUILT_SOURCES += unistd.h 1254BUILT_SOURCES += unistd.h
1255libgnu_a_SOURCES += unistd.c
1254 1256
1255# We need the following in order to create an empty placeholder for 1257# We need the following in order to create an empty placeholder for
1256# <unistd.h> when the system doesn't have one. 1258# <unistd.h> when the system doesn't have one.
diff --git a/lib/lstat.c b/lib/lstat.c
index db119a10d3f..97fe6bb2d53 100644
--- a/lib/lstat.c
+++ b/lib/lstat.c
@@ -35,7 +35,7 @@ typedef int dummy;
35# include <sys/stat.h> 35# include <sys/stat.h>
36# undef __need_system_sys_stat_h 36# undef __need_system_sys_stat_h
37 37
38static inline int 38static int
39orig_lstat (const char *filename, struct stat *buf) 39orig_lstat (const char *filename, struct stat *buf)
40{ 40{
41 return lstat (filename, buf); 41 return lstat (filename, buf);
diff --git a/lib/md5.c b/lib/md5.c
index 30b7e50e3ae..6e6d61270dd 100644
--- a/lib/md5.c
+++ b/lib/md5.c
@@ -83,7 +83,7 @@ md5_init_ctx (struct md5_ctx *ctx)
83/* Copy the 4 byte value from v into the memory location pointed to by *cp, 83/* Copy the 4 byte value from v into the memory location pointed to by *cp,
84 If your architecture allows unaligned access this is equivalent to 84 If your architecture allows unaligned access this is equivalent to
85 * (uint32_t *) cp = v */ 85 * (uint32_t *) cp = v */
86static inline void 86static void
87set_uint32 (char *cp, uint32_t v) 87set_uint32 (char *cp, uint32_t v)
88{ 88{
89 memcpy (cp, &v, sizeof v); 89 memcpy (cp, &v, sizeof v);
diff --git a/lib/sha1.c b/lib/sha1.c
index 0d82af14bc9..b9505dd9467 100644
--- a/lib/sha1.c
+++ b/lib/sha1.c
@@ -70,7 +70,7 @@ sha1_init_ctx (struct sha1_ctx *ctx)
70/* Copy the 4 byte value from v into the memory location pointed to by *cp, 70/* Copy the 4 byte value from v into the memory location pointed to by *cp,
71 If your architecture allows unaligned access this is equivalent to 71 If your architecture allows unaligned access this is equivalent to
72 * (uint32_t *) cp = v */ 72 * (uint32_t *) cp = v */
73static inline void 73static void
74set_uint32 (char *cp, uint32_t v) 74set_uint32 (char *cp, uint32_t v)
75{ 75{
76 memcpy (cp, &v, sizeof v); 76 memcpy (cp, &v, sizeof v);
diff --git a/lib/sha256.c b/lib/sha256.c
index a8d29da18dd..55273c6a3bc 100644
--- a/lib/sha256.c
+++ b/lib/sha256.c
@@ -90,7 +90,7 @@ sha224_init_ctx (struct sha256_ctx *ctx)
90/* Copy the value from v into the memory location pointed to by *cp, 90/* Copy the value from v into the memory location pointed to by *cp,
91 If your architecture allows unaligned access this is equivalent to 91 If your architecture allows unaligned access this is equivalent to
92 * (uint32_t *) cp = v */ 92 * (uint32_t *) cp = v */
93static inline void 93static void
94set_uint32 (char *cp, uint32_t v) 94set_uint32 (char *cp, uint32_t v)
95{ 95{
96 memcpy (cp, &v, sizeof v); 96 memcpy (cp, &v, sizeof v);
diff --git a/lib/sha512.c b/lib/sha512.c
index cf62f2034e5..dfb67a305d8 100644
--- a/lib/sha512.c
+++ b/lib/sha512.c
@@ -97,7 +97,7 @@ sha384_init_ctx (struct sha512_ctx *ctx)
97/* Copy the value from V into the memory location pointed to by *CP, 97/* Copy the value from V into the memory location pointed to by *CP,
98 If your architecture allows unaligned access, this is equivalent to 98 If your architecture allows unaligned access, this is equivalent to
99 * (__typeof__ (v) *) cp = v */ 99 * (__typeof__ (v) *) cp = v */
100static inline void 100static void
101set_uint64 (char *cp, u64 v) 101set_uint64 (char *cp, u64 v)
102{ 102{
103 memcpy (cp, &v, sizeof v); 103 memcpy (cp, &v, sizeof v);
diff --git a/lib/stat.c b/lib/stat.c
index 75995408906..c0bcb88320f 100644
--- a/lib/stat.c
+++ b/lib/stat.c
@@ -42,7 +42,7 @@
42# endif 42# endif
43#endif 43#endif
44 44
45static inline int 45static int
46orig_stat (const char *filename, struct stat *buf) 46orig_stat (const char *filename, struct stat *buf)
47{ 47{
48 return stat (filename, buf); 48 return stat (filename, buf);
diff --git a/lib/stdio.c b/lib/stdio.c
new file mode 100644
index 00000000000..e6ed82996b7
--- /dev/null
+++ b/lib/stdio.c
@@ -0,0 +1,3 @@
1#include <config.h>
2#define _GL_STDIO_INLINE _GL_EXTERN_INLINE
3#include "stdio.h"
diff --git a/lib/stdio.in.h b/lib/stdio.in.h
index b1b543dee72..f3b52d28f6b 100644
--- a/lib/stdio.in.h
+++ b/lib/stdio.in.h
@@ -46,6 +46,11 @@
46#ifndef _@GUARD_PREFIX@_STDIO_H 46#ifndef _@GUARD_PREFIX@_STDIO_H
47#define _@GUARD_PREFIX@_STDIO_H 47#define _@GUARD_PREFIX@_STDIO_H
48 48
49_GL_INLINE_HEADER_BEGIN
50#ifndef _GL_STDIO_INLINE
51# define _GL_STDIO_INLINE _GL_INLINE
52#endif
53
49/* Get va_list. Needed on many systems, including glibc 2.8. */ 54/* Get va_list. Needed on many systems, including glibc 2.8. */
50#include <stdarg.h> 55#include <stdarg.h>
51 56
@@ -581,7 +586,7 @@ _GL_CXXALIAS_SYS (fwrite, size_t,
581 This affects only function declaration attributes, so it's not 586 This affects only function declaration attributes, so it's not
582 needed for C++. */ 587 needed for C++. */
583# if !defined __cplusplus && 0 < __USE_FORTIFY_LEVEL 588# if !defined __cplusplus && 0 < __USE_FORTIFY_LEVEL
584static inline size_t _GL_ARG_NONNULL ((1, 4)) 589_GL_STDIO_INLINE size_t _GL_ARG_NONNULL ((1, 4))
585rpl_fwrite (const void *ptr, size_t s, size_t n, FILE *stream) 590rpl_fwrite (const void *ptr, size_t s, size_t n, FILE *stream)
586{ 591{
587 size_t r = fwrite (ptr, s, n, stream); 592 size_t r = fwrite (ptr, s, n, stream);
@@ -1333,6 +1338,7 @@ _GL_WARN_ON_USE (vsprintf, "vsprintf is not always POSIX compliant - "
1333 "POSIX compliance"); 1338 "POSIX compliance");
1334#endif 1339#endif
1335 1340
1341_GL_INLINE_HEADER_END
1336 1342
1337#endif /* _@GUARD_PREFIX@_STDIO_H */ 1343#endif /* _@GUARD_PREFIX@_STDIO_H */
1338#endif /* _@GUARD_PREFIX@_STDIO_H */ 1344#endif /* _@GUARD_PREFIX@_STDIO_H */
diff --git a/lib/sys_stat.in.h b/lib/sys_stat.in.h
index 2efc1e92e06..ac05ddb5cec 100644
--- a/lib/sys_stat.in.h
+++ b/lib/sys_stat.in.h
@@ -497,7 +497,7 @@ _GL_CXXALIAS_RPL (mkdir, int, (char const *name, mode_t mode));
497# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ 497# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
498 498
499# if !GNULIB_defined_rpl_mkdir 499# if !GNULIB_defined_rpl_mkdir
500static inline int 500static int
501rpl_mkdir (char const *name, mode_t mode) 501rpl_mkdir (char const *name, mode_t mode)
502{ 502{
503 return _mkdir (name); 503 return _mkdir (name);
diff --git a/lib/unistd.c b/lib/unistd.c
new file mode 100644
index 00000000000..6c6a8e268c0
--- /dev/null
+++ b/lib/unistd.c
@@ -0,0 +1,3 @@
1#include <config.h>
2#define _GL_UNISTD_INLINE _GL_EXTERN_INLINE
3#include "unistd.h"
diff --git a/lib/unistd.in.h b/lib/unistd.in.h
index e904e512ee8..6171f77ac71 100644
--- a/lib/unistd.in.h
+++ b/lib/unistd.in.h
@@ -127,6 +127,11 @@
127# include <getopt.h> 127# include <getopt.h>
128#endif 128#endif
129 129
130_GL_INLINE_HEADER_BEGIN
131#ifndef _GL_UNISTD_INLINE
132# define _GL_UNISTD_INLINE _GL_INLINE
133#endif
134
130/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ 135/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */
131 136
132/* The definition of _GL_ARG_NONNULL is copied here. */ 137/* The definition of _GL_ARG_NONNULL is copied here. */
@@ -404,7 +409,7 @@ extern char **environ;
404# endif 409# endif
405#elif defined GNULIB_POSIXCHECK 410#elif defined GNULIB_POSIXCHECK
406# if HAVE_RAW_DECL_ENVIRON 411# if HAVE_RAW_DECL_ENVIRON
407static inline char *** 412_GL_UNISTD_INLINE char ***
408rpl_environ (void) 413rpl_environ (void)
409{ 414{
410 return &environ; 415 return &environ;
@@ -862,7 +867,7 @@ _GL_CXXALIAS_RPL (getpagesize, int, (void));
862# define getpagesize() _gl_getpagesize () 867# define getpagesize() _gl_getpagesize ()
863# else 868# else
864# if !GNULIB_defined_getpagesize_function 869# if !GNULIB_defined_getpagesize_function
865static inline int 870_GL_UNISTD_INLINE int
866getpagesize () 871getpagesize ()
867{ 872{
868 return _gl_getpagesize (); 873 return _gl_getpagesize ();
@@ -1530,6 +1535,7 @@ _GL_CXXALIAS_SYS_CAST (write, ssize_t, (int fd, const void *buf, size_t count));
1530_GL_CXXALIASWARN (write); 1535_GL_CXXALIASWARN (write);
1531#endif 1536#endif
1532 1537
1538_GL_INLINE_HEADER_END
1533 1539
1534#endif /* _@GUARD_PREFIX@_UNISTD_H */ 1540#endif /* _@GUARD_PREFIX@_UNISTD_H */
1535#endif /* _@GUARD_PREFIX@_UNISTD_H */ 1541#endif /* _@GUARD_PREFIX@_UNISTD_H */
diff --git a/m4/c-strtod.m4 b/m4/c-strtod.m4
index c002e5fcead..535721c8dbc 100644
--- a/m4/c-strtod.m4
+++ b/m4/c-strtod.m4
@@ -1,4 +1,4 @@
1# c-strtod.m4 serial 14 1# c-strtod.m4 serial 15
2 2
3# Copyright (C) 2004-2006, 2009-2012 Free Software Foundation, Inc. 3# Copyright (C) 2004-2006, 2009-2012 Free Software Foundation, Inc.
4# This file is free software; the Free Software Foundation 4# This file is free software; the Free Software Foundation
@@ -38,9 +38,6 @@ AC_DEFUN([gl_C_STRTOD],
38[ 38[
39 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) 39 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
40 AC_CHECK_FUNCS([strtod_l]) 40 AC_CHECK_FUNCS([strtod_l])
41
42 AC_REQUIRE([AC_C_INLINE])
43 :
44]) 41])
45 42
46dnl Prerequisites of lib/c-strtold.c. 43dnl Prerequisites of lib/c-strtold.c.
@@ -49,7 +46,4 @@ AC_DEFUN([gl_C_STRTOLD],
49 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) 46 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
50 AC_REQUIRE([gl_C99_STRTOLD]) 47 AC_REQUIRE([gl_C99_STRTOLD])
51 AC_CHECK_FUNCS([strtold_l]) 48 AC_CHECK_FUNCS([strtold_l])
52
53 AC_REQUIRE([AC_C_INLINE])
54 :
55]) 49])
diff --git a/m4/extern-inline.m4 b/m4/extern-inline.m4
index 600c8d3fa17..24922605e64 100644
--- a/m4/extern-inline.m4
+++ b/m4/extern-inline.m4
@@ -7,7 +7,6 @@ dnl with or without modifications, as long as this notice is preserved.
7 7
8AC_DEFUN([gl_EXTERN_INLINE], 8AC_DEFUN([gl_EXTERN_INLINE],
9[ 9[
10 AC_REQUIRE([AC_C_INLINE])
11 AH_VERBATIM([extern_inline], 10 AH_VERBATIM([extern_inline],
12[/* _GL_INLINE is a portable alternative to ISO C99 plain 'inline'. 11[/* _GL_INLINE is a portable alternative to ISO C99 plain 'inline'.
13 _GL_EXTERN_INLINE is a portable alternative to 'extern inline'. 12 _GL_EXTERN_INLINE is a portable alternative to 'extern inline'.
@@ -32,8 +31,8 @@ AC_DEFUN([gl_EXTERN_INLINE],
32# endif 31# endif
33# define _GL_EXTERN_INLINE extern 32# define _GL_EXTERN_INLINE extern
34#else 33#else
35# define _GL_INLINE static inline 34# define _GL_INLINE static
36# define _GL_EXTERN_INLINE static inline 35# define _GL_EXTERN_INLINE static
37#endif 36#endif
38 37
39#if 4 < __GNUC__ + (6 <= __GNUC_MINOR__) 38#if 4 < __GNUC__ + (6 <= __GNUC_MINOR__)
diff --git a/m4/gnulib-comp.m4 b/m4/gnulib-comp.m4
index 30f81b4781f..1d09eb8ef92 100644
--- a/m4/gnulib-comp.m4
+++ b/m4/gnulib-comp.m4
@@ -690,6 +690,7 @@ AC_DEFUN([gl_FILE_LIST], [
690 lib/stdbool.in.h 690 lib/stdbool.in.h
691 lib/stddef.in.h 691 lib/stddef.in.h
692 lib/stdint.in.h 692 lib/stdint.in.h
693 lib/stdio.c
693 lib/stdio.in.h 694 lib/stdio.in.h
694 lib/stdlib.in.h 695 lib/stdlib.in.h
695 lib/strftime.c 696 lib/strftime.c
@@ -712,6 +713,7 @@ AC_DEFUN([gl_FILE_LIST], [
712 lib/timespec.h 713 lib/timespec.h
713 lib/u64.c 714 lib/u64.c
714 lib/u64.h 715 lib/u64.h
716 lib/unistd.c
715 lib/unistd.in.h 717 lib/unistd.in.h
716 lib/utimens.c 718 lib/utimens.c
717 lib/utimens.h 719 lib/utimens.h
diff --git a/m4/lstat.m4 b/m4/lstat.m4
index b7335bda1b2..01b4eb953d5 100644
--- a/m4/lstat.m4
+++ b/m4/lstat.m4
@@ -1,4 +1,4 @@
1# serial 25 1# serial 26
2 2
3# Copyright (C) 1997-2001, 2003-2012 Free Software Foundation, Inc. 3# Copyright (C) 1997-2001, 2003-2012 Free Software Foundation, Inc.
4# 4#
@@ -27,11 +27,7 @@ AC_DEFUN([gl_FUNC_LSTAT],
27]) 27])
28 28
29# Prerequisites of lib/lstat.c. 29# Prerequisites of lib/lstat.c.
30AC_DEFUN([gl_PREREQ_LSTAT], 30AC_DEFUN([gl_PREREQ_LSTAT], [:])
31[
32 AC_REQUIRE([AC_C_INLINE])
33 :
34])
35 31
36AC_DEFUN([gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK], 32AC_DEFUN([gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK],
37[ 33[
diff --git a/m4/md5.m4 b/m4/md5.m4
index e22f7bdb17a..85ed8946068 100644
--- a/m4/md5.m4
+++ b/m4/md5.m4
@@ -1,4 +1,4 @@
1# md5.m4 serial 12 1# md5.m4 serial 13
2dnl Copyright (C) 2002-2006, 2008-2012 Free Software Foundation, Inc. 2dnl Copyright (C) 2002-2006, 2008-2012 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
@@ -8,6 +8,5 @@ AC_DEFUN([gl_MD5],
8[ 8[
9 dnl Prerequisites of lib/md5.c. 9 dnl Prerequisites of lib/md5.c.
10 AC_REQUIRE([gl_BIGENDIAN]) 10 AC_REQUIRE([gl_BIGENDIAN])
11 AC_REQUIRE([AC_C_INLINE])
12 : 11 :
13]) 12])
diff --git a/m4/sha1.m4 b/m4/sha1.m4
index 76198258b92..29fa4850341 100644
--- a/m4/sha1.m4
+++ b/m4/sha1.m4
@@ -1,4 +1,4 @@
1# sha1.m4 serial 10 1# sha1.m4 serial 11
2dnl Copyright (C) 2002-2006, 2008-2012 Free Software Foundation, Inc. 2dnl Copyright (C) 2002-2006, 2008-2012 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
@@ -8,6 +8,5 @@ AC_DEFUN([gl_SHA1],
8[ 8[
9 dnl Prerequisites of lib/sha1.c. 9 dnl Prerequisites of lib/sha1.c.
10 AC_REQUIRE([gl_BIGENDIAN]) 10 AC_REQUIRE([gl_BIGENDIAN])
11 AC_REQUIRE([AC_C_INLINE])
12 : 11 :
13]) 12])
diff --git a/m4/sha256.m4 b/m4/sha256.m4
index 78cc95ed8b6..f75a7fb9e07 100644
--- a/m4/sha256.m4
+++ b/m4/sha256.m4
@@ -1,4 +1,4 @@
1# sha256.m4 serial 5 1# sha256.m4 serial 6
2dnl Copyright (C) 2005, 2008-2012 Free Software Foundation, Inc. 2dnl Copyright (C) 2005, 2008-2012 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
@@ -8,5 +8,4 @@ AC_DEFUN([gl_SHA256],
8[ 8[
9 dnl Prerequisites of lib/sha256.c. 9 dnl Prerequisites of lib/sha256.c.
10 AC_REQUIRE([gl_BIGENDIAN]) 10 AC_REQUIRE([gl_BIGENDIAN])
11 AC_REQUIRE([AC_C_INLINE])
12]) 11])
diff --git a/m4/sha512.m4 b/m4/sha512.m4
index 937ea8d5e9d..e6e27393d7d 100644
--- a/m4/sha512.m4
+++ b/m4/sha512.m4
@@ -1,4 +1,4 @@
1# sha512.m4 serial 6 1# sha512.m4 serial 7
2dnl Copyright (C) 2005-2006, 2008-2012 Free Software Foundation, Inc. 2dnl Copyright (C) 2005-2006, 2008-2012 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
@@ -8,5 +8,4 @@ AC_DEFUN([gl_SHA512],
8[ 8[
9 dnl Prerequisites of lib/sha512.c. 9 dnl Prerequisites of lib/sha512.c.
10 AC_REQUIRE([gl_BIGENDIAN]) 10 AC_REQUIRE([gl_BIGENDIAN])
11 AC_REQUIRE([AC_C_INLINE])
12]) 11])
diff --git a/m4/stat.m4 b/m4/stat.m4
index a8b79f5bcba..0fd117e05eb 100644
--- a/m4/stat.m4
+++ b/m4/stat.m4
@@ -1,4 +1,4 @@
1# serial 10 1# serial 11
2 2
3# Copyright (C) 2009-2012 Free Software Foundation, Inc. 3# Copyright (C) 2009-2012 Free Software Foundation, Inc.
4# 4#
@@ -68,8 +68,4 @@ AC_DEFUN([gl_FUNC_STAT],
68]) 68])
69 69
70# Prerequisites of lib/stat.c. 70# Prerequisites of lib/stat.c.
71AC_DEFUN([gl_PREREQ_STAT], 71AC_DEFUN([gl_PREREQ_STAT], [:])
72[
73 AC_REQUIRE([AC_C_INLINE])
74 :
75])
diff --git a/m4/stdio_h.m4 b/m4/stdio_h.m4
index 5298dd6d9d5..3bd65803667 100644
--- a/m4/stdio_h.m4
+++ b/m4/stdio_h.m4
@@ -1,4 +1,4 @@
1# stdio_h.m4 serial 42 1# stdio_h.m4 serial 43
2dnl Copyright (C) 2007-2012 Free Software Foundation, Inc. 2dnl Copyright (C) 2007-2012 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
@@ -7,7 +7,6 @@ dnl with or without modifications, as long as this notice is preserved.
7AC_DEFUN([gl_STDIO_H], 7AC_DEFUN([gl_STDIO_H],
8[ 8[
9 AC_REQUIRE([gl_STDIO_H_DEFAULTS]) 9 AC_REQUIRE([gl_STDIO_H_DEFAULTS])
10 AC_REQUIRE([AC_C_INLINE])
11 gl_NEXT_HEADERS([stdio.h]) 10 gl_NEXT_HEADERS([stdio.h])
12 11
13 dnl No need to create extra modules for these functions. Everyone who uses 12 dnl No need to create extra modules for these functions. Everyone who uses
diff --git a/m4/sys_socket_h.m4 b/m4/sys_socket_h.m4
index 8d4e7e1ebb4..acfae413283 100644
--- a/m4/sys_socket_h.m4
+++ b/m4/sys_socket_h.m4
@@ -1,4 +1,4 @@
1# sys_socket_h.m4 serial 22 1# sys_socket_h.m4 serial 23
2dnl Copyright (C) 2005-2012 Free Software Foundation, Inc. 2dnl Copyright (C) 2005-2012 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
@@ -10,7 +10,6 @@ AC_DEFUN([gl_HEADER_SYS_SOCKET],
10[ 10[
11 AC_REQUIRE([gl_SYS_SOCKET_H_DEFAULTS]) 11 AC_REQUIRE([gl_SYS_SOCKET_H_DEFAULTS])
12 AC_REQUIRE([AC_CANONICAL_HOST]) 12 AC_REQUIRE([AC_CANONICAL_HOST])
13 AC_REQUIRE([AC_C_INLINE])
14 13
15 dnl On OSF/1, the functions recv(), send(), recvfrom(), sendto() have 14 dnl On OSF/1, the functions recv(), send(), recvfrom(), sendto() have
16 dnl old-style declarations (with return type 'int' instead of 'ssize_t') 15 dnl old-style declarations (with return type 'int' instead of 'ssize_t')
diff --git a/m4/sys_stat_h.m4 b/m4/sys_stat_h.m4
index f45dee1dc4d..8af3353ea51 100644
--- a/m4/sys_stat_h.m4
+++ b/m4/sys_stat_h.m4
@@ -1,4 +1,4 @@
1# sys_stat_h.m4 serial 27 -*- Autoconf -*- 1# sys_stat_h.m4 serial 28 -*- Autoconf -*-
2dnl Copyright (C) 2006-2012 Free Software Foundation, Inc. 2dnl Copyright (C) 2006-2012 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
@@ -11,9 +11,6 @@ AC_DEFUN([gl_HEADER_SYS_STAT_H],
11[ 11[
12 AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS]) 12 AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS])
13 13
14 dnl For the mkdir substitute.
15 AC_REQUIRE([AC_C_INLINE])
16
17 dnl Check for broken stat macros. 14 dnl Check for broken stat macros.
18 AC_REQUIRE([AC_HEADER_STAT]) 15 AC_REQUIRE([AC_HEADER_STAT])
19 16
diff --git a/m4/unistd_h.m4 b/m4/unistd_h.m4
index 7e7651b9d2e..f68fbff8cef 100644
--- a/m4/unistd_h.m4
+++ b/m4/unistd_h.m4
@@ -1,4 +1,4 @@
1# unistd_h.m4 serial 65 1# unistd_h.m4 serial 66
2dnl Copyright (C) 2006-2012 Free Software Foundation, Inc. 2dnl Copyright (C) 2006-2012 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
@@ -11,7 +11,6 @@ AC_DEFUN([gl_UNISTD_H],
11 dnl Use AC_REQUIRE here, so that the default behavior below is expanded 11 dnl Use AC_REQUIRE here, so that the default behavior below is expanded
12 dnl once only, before all statements that occur in other macros. 12 dnl once only, before all statements that occur in other macros.
13 AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) 13 AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
14 AC_REQUIRE([AC_C_INLINE])
15 14
16 gl_CHECK_NEXT_HEADERS([unistd.h]) 15 gl_CHECK_NEXT_HEADERS([unistd.h])
17 if test $ac_cv_header_unistd_h = yes; then 16 if test $ac_cv_header_unistd_h = yes; then