diff options
| author | Paul Eggert | 2017-09-10 08:39:55 -0700 |
|---|---|---|
| committer | Paul Eggert | 2017-09-10 08:40:43 -0700 |
| commit | b079ee72ac25590cd8b7b185b32ea5d2d43a9909 (patch) | |
| tree | bbd4f1a2a0524ce1e380019d7d2b59a5c18f0844 | |
| parent | c990f8d93dcc78aa98e58b89bddb666efcea2710 (diff) | |
| download | emacs-b079ee72ac25590cd8b7b185b32ea5d2d43a9909.tar.gz emacs-b079ee72ac25590cd8b7b185b32ea5d2d43a9909.zip | |
Merge from gnulib
This incorporates:
2017-09-08 stddef: Avoid conflict with system-defined max_align_t
2017-08-24 warnings: fix compilation with old autoconf
2017-08-23 glob: merge from glibc with Zanella glob changes
2017-08-17 random: Fix test compilation failure on Cygwin 1.5.25
* doc/misc/texinfo.tex, lib/flexmember.h, lib/stddef.in.h:
* lib/stdlib.in.h, m4/manywarnings.m4, m4/stdlib_h.m4:
* m4/warnings.m4:
Copy from Gnulib.
* lib/gnulib.mk.in: Regenerate.
| -rw-r--r-- | doc/misc/texinfo.tex | 24 | ||||
| -rw-r--r-- | lib/flexmember.h | 21 | ||||
| -rw-r--r-- | lib/gnulib.mk.in | 4 | ||||
| -rw-r--r-- | lib/stddef.in.h | 18 | ||||
| -rw-r--r-- | lib/stdlib.in.h | 4 | ||||
| -rw-r--r-- | m4/manywarnings.m4 | 8 | ||||
| -rw-r--r-- | m4/stdlib_h.m4 | 4 | ||||
| -rw-r--r-- | m4/warnings.m4 | 8 |
8 files changed, 60 insertions, 31 deletions
diff --git a/doc/misc/texinfo.tex b/doc/misc/texinfo.tex index 3844333faec..a774790c511 100644 --- a/doc/misc/texinfo.tex +++ b/doc/misc/texinfo.tex | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | % Load plain if necessary, i.e., if running under initex. | 3 | % Load plain if necessary, i.e., if running under initex. |
| 4 | \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi | 4 | \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi |
| 5 | % | 5 | % |
| 6 | \def\texinfoversion{2017-07-04.16} | 6 | \def\texinfoversion{2017-08-23.19} |
| 7 | % | 7 | % |
| 8 | % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995, | 8 | % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995, |
| 9 | % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, | 9 | % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, |
| @@ -5696,10 +5696,13 @@ end | |||
| 5696 | \advance\dimen@ii by 1\dimen@i | 5696 | \advance\dimen@ii by 1\dimen@i |
| 5697 | \ifdim\wd\boxA > \dimen@ii % If the entry doesn't fit in one line | 5697 | \ifdim\wd\boxA > \dimen@ii % If the entry doesn't fit in one line |
| 5698 | \ifdim\dimen@ > 0.8\dimen@ii % due to long index text | 5698 | \ifdim\dimen@ > 0.8\dimen@ii % due to long index text |
| 5699 | \dimen@ = 0.7\dimen@ % Try to split the text roughly evenly | 5699 | % Try to split the text roughly evenly. \dimen@ will be the length of |
| 5700 | % the first line. | ||
| 5701 | \dimen@ = 0.7\dimen@ | ||
| 5700 | \dimen@ii = \hsize | 5702 | \dimen@ii = \hsize |
| 5701 | \ifnum\dimen@>\dimen@ii | 5703 | \ifnum\dimen@>\dimen@ii |
| 5702 | % If the entry is too long, use the whole line | 5704 | % If the entry is too long (for example, if it needs more than |
| 5705 | % two lines), use all the space in the first line. | ||
| 5703 | \dimen@ = \dimen@ii | 5706 | \dimen@ = \dimen@ii |
| 5704 | \fi | 5707 | \fi |
| 5705 | \advance\leftskip by 0pt plus 1fill % ragged right | 5708 | \advance\leftskip by 0pt plus 1fill % ragged right |
| @@ -5709,8 +5712,9 @@ end | |||
| 5709 | % instead of using \parshape with explicit line lengths, but TeX | 5712 | % instead of using \parshape with explicit line lengths, but TeX |
| 5710 | % doesn't seem to provide a way to do such a thing. | 5713 | % doesn't seem to provide a way to do such a thing. |
| 5711 | % | 5714 | % |
| 5712 | \leftskip = 1em | 5715 | % Indent all lines but the first one. |
| 5713 | \parindent = -1em | 5716 | \advance\leftskip by 1em |
| 5717 | \advance\parindent by -1em | ||
| 5714 | \fi\fi | 5718 | \fi\fi |
| 5715 | \indent % start paragraph | 5719 | \indent % start paragraph |
| 5716 | \unhbox\boxA | 5720 | \unhbox\boxA |
| @@ -6943,7 +6947,15 @@ end | |||
| 6943 | % exist, with an empty box. Let's hope all the numbers have the same width. | 6947 | % exist, with an empty box. Let's hope all the numbers have the same width. |
| 6944 | % Also ignore the page number, which is conventionally not printed. | 6948 | % Also ignore the page number, which is conventionally not printed. |
| 6945 | \def\numeralbox{\setbox0=\hbox{8}\hbox to \wd0{\hfil}} | 6949 | \def\numeralbox{\setbox0=\hbox{8}\hbox to \wd0{\hfil}} |
| 6946 | \def\partentry#1#2#3#4{\dochapentry{\numeralbox\labelspace#1}{}} | 6950 | \def\partentry#1#2#3#4{% |
| 6951 | % Add stretch and a bonus for breaking the page before the part heading. | ||
| 6952 | % This reduces the chance of the page being broken immediately after the | ||
| 6953 | % part heading, before a following chapter heading. | ||
| 6954 | \vskip 0pt plus 5\baselineskip | ||
| 6955 | \penalty-300 | ||
| 6956 | \vskip 0pt plus -5\baselineskip | ||
| 6957 | \dochapentry{\numeralbox\labelspace#1}{}% | ||
| 6958 | } | ||
| 6947 | % | 6959 | % |
| 6948 | % Parts, in the short toc. | 6960 | % Parts, in the short toc. |
| 6949 | \def\shortpartentry#1#2#3#4{% | 6961 | \def\shortpartentry#1#2#3#4{% |
diff --git a/lib/flexmember.h b/lib/flexmember.h index c71ea651036..7405c418382 100644 --- a/lib/flexmember.h +++ b/lib/flexmember.h | |||
| @@ -2,18 +2,21 @@ | |||
| 2 | 2 | ||
| 3 | Copyright 2016-2017 Free Software Foundation, Inc. | 3 | Copyright 2016-2017 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This program is free software: you can redistribute it and/or modify | 5 | This file is part of the GNU C Library. |
| 6 | it under the terms of the GNU General Public License as published by | ||
| 7 | the Free Software Foundation; either version 3 of the License, or | ||
| 8 | (at your option) any later version. | ||
| 9 | 6 | ||
| 10 | This program is distributed in the hope that it will be useful, | 7 | The GNU C Library is free software; you can redistribute it and/or |
| 8 | modify it under the terms of the GNU General Public | ||
| 9 | License as published by the Free Software Foundation; either | ||
| 10 | version 3 of the License, or (at your option) any later version. | ||
| 11 | |||
| 12 | The GNU C Library is distributed in the hope that it will be useful, | ||
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | GNU General Public License for more details. | 15 | General Public License for more details. |
| 14 | 16 | ||
| 15 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public |
| 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | License along with the GNU C Library; if not, see |
| 19 | <http://www.gnu.org/licenses/>. | ||
| 17 | 20 | ||
| 18 | Written by Paul Eggert. */ | 21 | Written by Paul Eggert. */ |
| 19 | 22 | ||
diff --git a/lib/gnulib.mk.in b/lib/gnulib.mk.in index b6eb0f69539..fdf87433e50 100644 --- a/lib/gnulib.mk.in +++ b/lib/gnulib.mk.in | |||
| @@ -369,12 +369,14 @@ HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ | |||
| 369 | HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ | 369 | HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ |
| 370 | HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@ | 370 | HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@ |
| 371 | HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@ | 371 | HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@ |
| 372 | HAVE_DECL_INITSTATE = @HAVE_DECL_INITSTATE@ | ||
| 372 | HAVE_DECL_LOCALTIME_R = @HAVE_DECL_LOCALTIME_R@ | 373 | HAVE_DECL_LOCALTIME_R = @HAVE_DECL_LOCALTIME_R@ |
| 373 | HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ | 374 | HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ |
| 374 | HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ | 375 | HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ |
| 375 | HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ | 376 | HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ |
| 376 | HAVE_DECL_SETENV = @HAVE_DECL_SETENV@ | 377 | HAVE_DECL_SETENV = @HAVE_DECL_SETENV@ |
| 377 | HAVE_DECL_SETHOSTNAME = @HAVE_DECL_SETHOSTNAME@ | 378 | HAVE_DECL_SETHOSTNAME = @HAVE_DECL_SETHOSTNAME@ |
| 379 | HAVE_DECL_SETSTATE = @HAVE_DECL_SETSTATE@ | ||
| 378 | HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ | 380 | HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ |
| 379 | HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ | 381 | HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ |
| 380 | HAVE_DECL_STRERROR_R = @HAVE_DECL_STRERROR_R@ | 382 | HAVE_DECL_STRERROR_R = @HAVE_DECL_STRERROR_R@ |
| @@ -2359,6 +2361,7 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \ | |||
| 2359 | -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \ | 2361 | -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \ |
| 2360 | -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \ | 2362 | -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \ |
| 2361 | -e 's|@''HAVE_GRANTPT''@|$(HAVE_GRANTPT)|g' \ | 2363 | -e 's|@''HAVE_GRANTPT''@|$(HAVE_GRANTPT)|g' \ |
| 2364 | -e 's|@''HAVE_DECL_INITSTATE''@|$(HAVE_DECL_INITSTATE)|g' \ | ||
| 2362 | -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \ | 2365 | -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \ |
| 2363 | -e 's|@''HAVE_MKOSTEMP''@|$(HAVE_MKOSTEMP)|g' \ | 2366 | -e 's|@''HAVE_MKOSTEMP''@|$(HAVE_MKOSTEMP)|g' \ |
| 2364 | -e 's|@''HAVE_MKOSTEMPS''@|$(HAVE_MKOSTEMPS)|g' \ | 2367 | -e 's|@''HAVE_MKOSTEMPS''@|$(HAVE_MKOSTEMPS)|g' \ |
| @@ -2376,6 +2379,7 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \ | |||
| 2376 | -e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \ | 2379 | -e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \ |
| 2377 | -e 's|@''HAVE_SECURE_GETENV''@|$(HAVE_SECURE_GETENV)|g' \ | 2380 | -e 's|@''HAVE_SECURE_GETENV''@|$(HAVE_SECURE_GETENV)|g' \ |
| 2378 | -e 's|@''HAVE_DECL_SETENV''@|$(HAVE_DECL_SETENV)|g' \ | 2381 | -e 's|@''HAVE_DECL_SETENV''@|$(HAVE_DECL_SETENV)|g' \ |
| 2382 | -e 's|@''HAVE_DECL_SETSTATE''@|$(HAVE_DECL_SETSTATE)|g' \ | ||
| 2379 | -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \ | 2383 | -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \ |
| 2380 | -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \ | 2384 | -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \ |
| 2381 | -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \ | 2385 | -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \ |
diff --git a/lib/stddef.in.h b/lib/stddef.in.h index 5b496a68320..16e72bd1e0d 100644 --- a/lib/stddef.in.h +++ b/lib/stddef.in.h | |||
| @@ -85,24 +85,28 @@ | |||
| 85 | a hack in case the configure-time test was done with g++ even though | 85 | a hack in case the configure-time test was done with g++ even though |
| 86 | we are currently compiling with gcc. */ | 86 | we are currently compiling with gcc. */ |
| 87 | #if ! (@HAVE_MAX_ALIGN_T@ || defined _GCC_MAX_ALIGN_T) | 87 | #if ! (@HAVE_MAX_ALIGN_T@ || defined _GCC_MAX_ALIGN_T) |
| 88 | # if !GNULIB_defined_max_align_t | ||
| 88 | /* On the x86, the maximum storage alignment of double, long, etc. is 4, | 89 | /* On the x86, the maximum storage alignment of double, long, etc. is 4, |
| 89 | but GCC's C11 ABI for x86 says that max_align_t has an alignment of 8, | 90 | but GCC's C11 ABI for x86 says that max_align_t has an alignment of 8, |
| 90 | and the C11 standard allows this. Work around this problem by | 91 | and the C11 standard allows this. Work around this problem by |
| 91 | using __alignof__ (which returns 8 for double) rather than _Alignof | 92 | using __alignof__ (which returns 8 for double) rather than _Alignof |
| 92 | (which returns 4), and align each union member accordingly. */ | 93 | (which returns 4), and align each union member accordingly. */ |
| 93 | # ifdef __GNUC__ | 94 | # ifdef __GNUC__ |
| 94 | # define _GL_STDDEF_ALIGNAS(type) \ | 95 | # define _GL_STDDEF_ALIGNAS(type) \ |
| 95 | __attribute__ ((__aligned__ (__alignof__ (type)))) | 96 | __attribute__ ((__aligned__ (__alignof__ (type)))) |
| 96 | # else | 97 | # else |
| 97 | # define _GL_STDDEF_ALIGNAS(type) /* */ | 98 | # define _GL_STDDEF_ALIGNAS(type) /* */ |
| 98 | # endif | 99 | # endif |
| 99 | typedef union | 100 | typedef union |
| 100 | { | 101 | { |
| 101 | char *__p _GL_STDDEF_ALIGNAS (char *); | 102 | char *__p _GL_STDDEF_ALIGNAS (char *); |
| 102 | double __d _GL_STDDEF_ALIGNAS (double); | 103 | double __d _GL_STDDEF_ALIGNAS (double); |
| 103 | long double __ld _GL_STDDEF_ALIGNAS (long double); | 104 | long double __ld _GL_STDDEF_ALIGNAS (long double); |
| 104 | long int __i _GL_STDDEF_ALIGNAS (long int); | 105 | long int __i _GL_STDDEF_ALIGNAS (long int); |
| 105 | } max_align_t; | 106 | } rpl_max_align_t; |
| 107 | # define max_align_t rpl_max_align_t | ||
| 108 | # define GNULIB_defined_max_align_t 1 | ||
| 109 | # endif | ||
| 106 | #endif | 110 | #endif |
| 107 | 111 | ||
| 108 | # endif /* _@GUARD_PREFIX@_STDDEF_H */ | 112 | # endif /* _@GUARD_PREFIX@_STDDEF_H */ |
diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index c6e68fddc48..ef41c992df5 100644 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h | |||
| @@ -597,7 +597,7 @@ _GL_WARN_ON_USE (srandom, "srandom is unportable - " | |||
| 597 | #endif | 597 | #endif |
| 598 | 598 | ||
| 599 | #if @GNULIB_RANDOM@ | 599 | #if @GNULIB_RANDOM@ |
| 600 | # if !@HAVE_RANDOM@ | 600 | # if !@HAVE_RANDOM@ || !@HAVE_DECL_INITSTATE@ |
| 601 | _GL_FUNCDECL_SYS (initstate, char *, | 601 | _GL_FUNCDECL_SYS (initstate, char *, |
| 602 | (unsigned int seed, char *buf, size_t buf_size) | 602 | (unsigned int seed, char *buf, size_t buf_size) |
| 603 | _GL_ARG_NONNULL ((2))); | 603 | _GL_ARG_NONNULL ((2))); |
| @@ -614,7 +614,7 @@ _GL_WARN_ON_USE (initstate, "initstate is unportable - " | |||
| 614 | #endif | 614 | #endif |
| 615 | 615 | ||
| 616 | #if @GNULIB_RANDOM@ | 616 | #if @GNULIB_RANDOM@ |
| 617 | # if !@HAVE_RANDOM@ | 617 | # if !@HAVE_RANDOM@ || !@HAVE_DECL_SETSTATE@ |
| 618 | _GL_FUNCDECL_SYS (setstate, char *, (char *arg_state) _GL_ARG_NONNULL ((1))); | 618 | _GL_FUNCDECL_SYS (setstate, char *, (char *arg_state) _GL_ARG_NONNULL ((1))); |
| 619 | # endif | 619 | # endif |
| 620 | _GL_CXXALIAS_SYS (setstate, char *, (char *arg_state)); | 620 | _GL_CXXALIAS_SYS (setstate, char *, (char *arg_state)); |
diff --git a/m4/manywarnings.m4 b/m4/manywarnings.m4 index a3d255a9402..eb89325519c 100644 --- a/m4/manywarnings.m4 +++ b/m4/manywarnings.m4 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # manywarnings.m4 serial 11 | 1 | # manywarnings.m4 serial 12 |
| 2 | dnl Copyright (C) 2008-2017 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2008-2017 Free Software Foundation, Inc. |
| 3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
| @@ -39,7 +39,8 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC], | |||
| 39 | [_AC_LANG_DISPATCH([$0], _AC_LANG, $@)]) | 39 | [_AC_LANG_DISPATCH([$0], _AC_LANG, $@)]) |
| 40 | 40 | ||
| 41 | # Specialization for _AC_LANG = C. | 41 | # Specialization for _AC_LANG = C. |
| 42 | AC_DEFUN([gl_MANYWARN_ALL_GCC(C)], | 42 | # Use of m4_defun rather than AC_DEFUN works around a bug in autoconf < 2.63b. |
| 43 | m4_defun([gl_MANYWARN_ALL_GCC(C)], | ||
| 43 | [ | 44 | [ |
| 44 | AC_LANG_PUSH([C]) | 45 | AC_LANG_PUSH([C]) |
| 45 | 46 | ||
| @@ -316,7 +317,8 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC(C)], | |||
| 316 | ]) | 317 | ]) |
| 317 | 318 | ||
| 318 | # Specialization for _AC_LANG = C++. | 319 | # Specialization for _AC_LANG = C++. |
| 319 | AC_DEFUN([gl_MANYWARN_ALL_GCC(C++)], | 320 | # Use of m4_defun rather than AC_DEFUN works around a bug in autoconf < 2.63b. |
| 321 | m4_defun([gl_MANYWARN_ALL_GCC(C++)], | ||
| 320 | [ | 322 | [ |
| 321 | gl_MANYWARN_ALL_GCC_CXX_IMPL([$1]) | 323 | gl_MANYWARN_ALL_GCC_CXX_IMPL([$1]) |
| 322 | ]) | 324 | ]) |
diff --git a/m4/stdlib_h.m4 b/m4/stdlib_h.m4 index ec4a058154b..35373463682 100644 --- a/m4/stdlib_h.m4 +++ b/m4/stdlib_h.m4 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # stdlib_h.m4 serial 43 | 1 | # stdlib_h.m4 serial 44 |
| 2 | dnl Copyright (C) 2007-2017 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2007-2017 Free Software Foundation, Inc. |
| 3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
| @@ -78,6 +78,7 @@ AC_DEFUN([gl_STDLIB_H_DEFAULTS], | |||
| 78 | HAVE_DECL_GETLOADAVG=1; AC_SUBST([HAVE_DECL_GETLOADAVG]) | 78 | HAVE_DECL_GETLOADAVG=1; AC_SUBST([HAVE_DECL_GETLOADAVG]) |
| 79 | HAVE_GETSUBOPT=1; AC_SUBST([HAVE_GETSUBOPT]) | 79 | HAVE_GETSUBOPT=1; AC_SUBST([HAVE_GETSUBOPT]) |
| 80 | HAVE_GRANTPT=1; AC_SUBST([HAVE_GRANTPT]) | 80 | HAVE_GRANTPT=1; AC_SUBST([HAVE_GRANTPT]) |
| 81 | HAVE_DECL_INITSTATE=1; AC_SUBST([HAVE_DECL_INITSTATE]) | ||
| 81 | HAVE_MKDTEMP=1; AC_SUBST([HAVE_MKDTEMP]) | 82 | HAVE_MKDTEMP=1; AC_SUBST([HAVE_MKDTEMP]) |
| 82 | HAVE_MKOSTEMP=1; AC_SUBST([HAVE_MKOSTEMP]) | 83 | HAVE_MKOSTEMP=1; AC_SUBST([HAVE_MKOSTEMP]) |
| 83 | HAVE_MKOSTEMPS=1; AC_SUBST([HAVE_MKOSTEMPS]) | 84 | HAVE_MKOSTEMPS=1; AC_SUBST([HAVE_MKOSTEMPS]) |
| @@ -96,6 +97,7 @@ AC_DEFUN([gl_STDLIB_H_DEFAULTS], | |||
| 96 | HAVE_SECURE_GETENV=1; AC_SUBST([HAVE_SECURE_GETENV]) | 97 | HAVE_SECURE_GETENV=1; AC_SUBST([HAVE_SECURE_GETENV]) |
| 97 | HAVE_SETENV=1; AC_SUBST([HAVE_SETENV]) | 98 | HAVE_SETENV=1; AC_SUBST([HAVE_SETENV]) |
| 98 | HAVE_DECL_SETENV=1; AC_SUBST([HAVE_DECL_SETENV]) | 99 | HAVE_DECL_SETENV=1; AC_SUBST([HAVE_DECL_SETENV]) |
| 100 | HAVE_DECL_SETSTATE=1; AC_SUBST([HAVE_DECL_SETSTATE]) | ||
| 99 | HAVE_STRTOD=1; AC_SUBST([HAVE_STRTOD]) | 101 | HAVE_STRTOD=1; AC_SUBST([HAVE_STRTOD]) |
| 100 | HAVE_STRTOLL=1; AC_SUBST([HAVE_STRTOLL]) | 102 | HAVE_STRTOLL=1; AC_SUBST([HAVE_STRTOLL]) |
| 101 | HAVE_STRTOULL=1; AC_SUBST([HAVE_STRTOULL]) | 103 | HAVE_STRTOULL=1; AC_SUBST([HAVE_STRTOULL]) |
diff --git a/m4/warnings.m4 b/m4/warnings.m4 index aa2735b77ff..870472b624b 100644 --- a/m4/warnings.m4 +++ b/m4/warnings.m4 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # warnings.m4 serial 12 | 1 | # warnings.m4 serial 13 |
| 2 | dnl Copyright (C) 2008-2017 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2008-2017 Free Software Foundation, Inc. |
| 3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
| @@ -59,7 +59,8 @@ AC_DEFUN([gl_UNKNOWN_WARNINGS_ARE_ERRORS], | |||
| 59 | [_AC_LANG_DISPATCH([$0], _AC_LANG, $@)]) | 59 | [_AC_LANG_DISPATCH([$0], _AC_LANG, $@)]) |
| 60 | 60 | ||
| 61 | # Specialization for _AC_LANG = C. This macro can be AC_REQUIREd. | 61 | # Specialization for _AC_LANG = C. This macro can be AC_REQUIREd. |
| 62 | AC_DEFUN([gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)], | 62 | # Use of m4_defun rather than AC_DEFUN works around a bug in autoconf < 2.63b. |
| 63 | m4_defun([gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)], | ||
| 63 | [ | 64 | [ |
| 64 | AC_LANG_PUSH([C]) | 65 | AC_LANG_PUSH([C]) |
| 65 | gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL | 66 | gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL |
| @@ -67,7 +68,8 @@ AC_DEFUN([gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)], | |||
| 67 | ]) | 68 | ]) |
| 68 | 69 | ||
| 69 | # Specialization for _AC_LANG = C++. This macro can be AC_REQUIREd. | 70 | # Specialization for _AC_LANG = C++. This macro can be AC_REQUIREd. |
| 70 | AC_DEFUN([gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)], | 71 | # Use of m4_defun rather than AC_DEFUN works around a bug in autoconf < 2.63b. |
| 72 | m4_defun([gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)], | ||
| 71 | [ | 73 | [ |
| 72 | AC_LANG_PUSH([C++]) | 74 | AC_LANG_PUSH([C++]) |
| 73 | gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL | 75 | gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL |