diff options
| author | Paul Eggert | 2018-02-20 13:42:19 -0800 |
|---|---|---|
| committer | Paul Eggert | 2018-02-20 13:45:27 -0800 |
| commit | 630da78a3cc2a5df2d61e1edf0c209b806b336e2 (patch) | |
| tree | 733a99c301158e849bc3f612f6eb896e55ad47a8 | |
| parent | 3d38ab8f1fbfaeb1f3eddbc79ef6ded1d9a87841 (diff) | |
| download | emacs-630da78a3cc2a5df2d61e1edf0c209b806b336e2.tar.gz emacs-630da78a3cc2a5df2d61e1edf0c209b806b336e2.zip | |
Update from gnulib
This includes:
2018-02-18 warnings: Add support for Objective C
2018-02-03 stdlib: Fix compilation error on OpenIndiana
* lib/gnulib.mk.in: Regenerate.
* lib/stdlib.in.h, m4/getloadavg.m4, m4/stdlib_h.m4, m4/warnings.m4:
Copy from gnulib.
| -rw-r--r-- | lib/gnulib.mk.in | 8 | ||||
| -rw-r--r-- | lib/stdlib.in.h | 3 | ||||
| -rw-r--r-- | m4/getloadavg.m4 | 5 | ||||
| -rw-r--r-- | m4/stdlib_h.m4 | 5 | ||||
| -rw-r--r-- | m4/warnings.m4 | 11 |
5 files changed, 26 insertions, 6 deletions
diff --git a/lib/gnulib.mk.in b/lib/gnulib.mk.in index 451c1572fdc..ce47b9de661 100644 --- a/lib/gnulib.mk.in +++ b/lib/gnulib.mk.in | |||
| @@ -548,6 +548,8 @@ KQUEUE_CFLAGS = @KQUEUE_CFLAGS@ | |||
| 548 | KQUEUE_LIBS = @KQUEUE_LIBS@ | 548 | KQUEUE_LIBS = @KQUEUE_LIBS@ |
| 549 | KRB4LIB = @KRB4LIB@ | 549 | KRB4LIB = @KRB4LIB@ |
| 550 | KRB5LIB = @KRB5LIB@ | 550 | KRB5LIB = @KRB5LIB@ |
| 551 | LCMS2_CFLAGS = @LCMS2_CFLAGS@ | ||
| 552 | LCMS2_LIBS = @LCMS2_LIBS@ | ||
| 551 | LDFLAGS = @LDFLAGS@ | 553 | LDFLAGS = @LDFLAGS@ |
| 552 | LD_SWITCH_SYSTEM = @LD_SWITCH_SYSTEM@ | 554 | LD_SWITCH_SYSTEM = @LD_SWITCH_SYSTEM@ |
| 553 | LD_SWITCH_SYSTEM_TEMACS = @LD_SWITCH_SYSTEM_TEMACS@ | 555 | LD_SWITCH_SYSTEM_TEMACS = @LD_SWITCH_SYSTEM_TEMACS@ |
| @@ -562,7 +564,6 @@ LIBGPM = @LIBGPM@ | |||
| 562 | LIBHESIOD = @LIBHESIOD@ | 564 | LIBHESIOD = @LIBHESIOD@ |
| 563 | LIBINTL = @LIBINTL@ | 565 | LIBINTL = @LIBINTL@ |
| 564 | LIBJPEG = @LIBJPEG@ | 566 | LIBJPEG = @LIBJPEG@ |
| 565 | LIBLCMS2 = @LIBLCMS2@ | ||
| 566 | LIBMODULES = @LIBMODULES@ | 567 | LIBMODULES = @LIBMODULES@ |
| 567 | LIBOBJS = @LIBOBJS@ | 568 | LIBOBJS = @LIBOBJS@ |
| 568 | LIBOTF_CFLAGS = @LIBOTF_CFLAGS@ | 569 | LIBOTF_CFLAGS = @LIBOTF_CFLAGS@ |
| @@ -672,6 +673,7 @@ PKG_CONFIG = @PKG_CONFIG@ | |||
| 672 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | 673 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ |
| 673 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | 674 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ |
| 674 | PNG_CFLAGS = @PNG_CFLAGS@ | 675 | PNG_CFLAGS = @PNG_CFLAGS@ |
| 676 | PNG_LIBS = @PNG_LIBS@ | ||
| 675 | POST_ALLOC_OBJ = @POST_ALLOC_OBJ@ | 677 | POST_ALLOC_OBJ = @POST_ALLOC_OBJ@ |
| 676 | PRAGMA_COLUMNS = @PRAGMA_COLUMNS@ | 678 | PRAGMA_COLUMNS = @PRAGMA_COLUMNS@ |
| 677 | PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ | 679 | PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ |
| @@ -1984,8 +1986,8 @@ signal.h: signal.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H | |||
| 1984 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | 1986 | -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ |
| 1985 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ | 1987 | -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ |
| 1986 | -e 's|@''NEXT_SIGNAL_H''@|$(NEXT_SIGNAL_H)|g' \ | 1988 | -e 's|@''NEXT_SIGNAL_H''@|$(NEXT_SIGNAL_H)|g' \ |
| 1987 | -e 's|@''GNULIB_PTHREAD_SIGMASK''@|$(GNULIB_PTHREAD_SIGMASK)|g' \ | 1989 | -e 's/@''GNULIB_PTHREAD_SIGMASK''@/$(GNULIB_PTHREAD_SIGMASK)/g' \ |
| 1988 | -e 's|@''GNULIB_RAISE''@|$(GNULIB_RAISE)|g' \ | 1990 | -e 's/@''GNULIB_RAISE''@/$(GNULIB_RAISE)/g' \ |
| 1989 | -e 's/@''GNULIB_SIGNAL_H_SIGPIPE''@/$(GNULIB_SIGNAL_H_SIGPIPE)/g' \ | 1991 | -e 's/@''GNULIB_SIGNAL_H_SIGPIPE''@/$(GNULIB_SIGNAL_H_SIGPIPE)/g' \ |
| 1990 | -e 's/@''GNULIB_SIGPROCMASK''@/$(GNULIB_SIGPROCMASK)/g' \ | 1992 | -e 's/@''GNULIB_SIGPROCMASK''@/$(GNULIB_SIGPROCMASK)/g' \ |
| 1991 | -e 's/@''GNULIB_SIGACTION''@/$(GNULIB_SIGACTION)/g' \ | 1993 | -e 's/@''GNULIB_SIGACTION''@/$(GNULIB_SIGACTION)/g' \ |
diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index b9701d5b287..c8a5d0d0c61 100644 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h | |||
| @@ -47,6 +47,9 @@ | |||
| 47 | 47 | ||
| 48 | /* Solaris declares getloadavg() in <sys/loadavg.h>. */ | 48 | /* Solaris declares getloadavg() in <sys/loadavg.h>. */ |
| 49 | #if (@GNULIB_GETLOADAVG@ || defined GNULIB_POSIXCHECK) && @HAVE_SYS_LOADAVG_H@ | 49 | #if (@GNULIB_GETLOADAVG@ || defined GNULIB_POSIXCHECK) && @HAVE_SYS_LOADAVG_H@ |
| 50 | /* OpenIndiana has a bug: <sys/time.h> must be included before | ||
| 51 | <sys/loadavg.h>. */ | ||
| 52 | # include <sys/time.h> | ||
| 50 | # include <sys/loadavg.h> | 53 | # include <sys/loadavg.h> |
| 51 | #endif | 54 | #endif |
| 52 | 55 | ||
diff --git a/m4/getloadavg.m4 b/m4/getloadavg.m4 index acc266531ed..7b6a09a5c5b 100644 --- a/m4/getloadavg.m4 +++ b/m4/getloadavg.m4 | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | # gives unlimited permission to copy and/or distribute it, | 7 | # gives unlimited permission to copy and/or distribute it, |
| 8 | # with or without modifications, as long as this notice is preserved. | 8 | # with or without modifications, as long as this notice is preserved. |
| 9 | 9 | ||
| 10 | #serial 6 | 10 | #serial 7 |
| 11 | 11 | ||
| 12 | # Autoconf defines AC_FUNC_GETLOADAVG, but that is obsolescent. | 12 | # Autoconf defines AC_FUNC_GETLOADAVG, but that is obsolescent. |
| 13 | # New applications should use gl_GETLOADAVG instead. | 13 | # New applications should use gl_GETLOADAVG instead. |
| @@ -92,6 +92,9 @@ else | |||
| 92 | fi | 92 | fi |
| 93 | AC_CHECK_DECL([getloadavg], [], [HAVE_DECL_GETLOADAVG=0], | 93 | AC_CHECK_DECL([getloadavg], [], [HAVE_DECL_GETLOADAVG=0], |
| 94 | [[#if HAVE_SYS_LOADAVG_H | 94 | [[#if HAVE_SYS_LOADAVG_H |
| 95 | /* OpenIndiana has a bug: <sys/time.h> must be included before | ||
| 96 | <sys/loadavg.h>. */ | ||
| 97 | # include <sys/time.h> | ||
| 95 | # include <sys/loadavg.h> | 98 | # include <sys/loadavg.h> |
| 96 | #endif | 99 | #endif |
| 97 | #include <stdlib.h>]]) | 100 | #include <stdlib.h>]]) |
diff --git a/m4/stdlib_h.m4 b/m4/stdlib_h.m4 index eff6f9e685b..49dc5d59cbe 100644 --- a/m4/stdlib_h.m4 +++ b/m4/stdlib_h.m4 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # stdlib_h.m4 serial 44 | 1 | # stdlib_h.m4 serial 45 |
| 2 | dnl Copyright (C) 2007-2018 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2007-2018 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, |
| @@ -14,6 +14,9 @@ AC_DEFUN([gl_STDLIB_H], | |||
| 14 | dnl guaranteed by C89. | 14 | dnl guaranteed by C89. |
| 15 | gl_WARN_ON_USE_PREPARE([[#include <stdlib.h> | 15 | gl_WARN_ON_USE_PREPARE([[#include <stdlib.h> |
| 16 | #if HAVE_SYS_LOADAVG_H | 16 | #if HAVE_SYS_LOADAVG_H |
| 17 | /* OpenIndiana has a bug: <sys/time.h> must be included before | ||
| 18 | <sys/loadavg.h>. */ | ||
| 19 | # include <sys/time.h> | ||
| 17 | # include <sys/loadavg.h> | 20 | # include <sys/loadavg.h> |
| 18 | #endif | 21 | #endif |
| 19 | #if HAVE_RANDOM_H | 22 | #if HAVE_RANDOM_H |
diff --git a/m4/warnings.m4 b/m4/warnings.m4 index eb1c795c598..07edda1cca6 100644 --- a/m4/warnings.m4 +++ b/m4/warnings.m4 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # warnings.m4 serial 13 | 1 | # warnings.m4 serial 14 |
| 2 | dnl Copyright (C) 2008-2018 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2008-2018 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, |
| @@ -76,6 +76,15 @@ m4_defun([gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)], | |||
| 76 | AC_LANG_POP([C++]) | 76 | AC_LANG_POP([C++]) |
| 77 | ]) | 77 | ]) |
| 78 | 78 | ||
| 79 | # Specialization for _AC_LANG = Objective C. This macro can be AC_REQUIREd. | ||
| 80 | # Use of m4_defun rather than AC_DEFUN works around a bug in autoconf < 2.63b. | ||
| 81 | m4_defun([gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)], | ||
| 82 | [ | ||
| 83 | AC_LANG_PUSH([Objective C]) | ||
| 84 | gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL | ||
| 85 | AC_LANG_POP([Objective C]) | ||
| 86 | ]) | ||
| 87 | |||
| 79 | AC_DEFUN([gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL], | 88 | AC_DEFUN([gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL], |
| 80 | [gl_COMPILER_OPTION_IF([-Werror -Wunknown-warning-option], | 89 | [gl_COMPILER_OPTION_IF([-Werror -Wunknown-warning-option], |
| 81 | [gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'], | 90 | [gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'], |