]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Add missing extern-inline.m4 into archive 0.18.3 v0.18.3.2
authorDaiki Ueno <ueno@gnu.org>
Tue, 17 Dec 2013 03:16:02 +0000 (12:16 +0900)
committerDaiki Ueno <ueno@gnu.org>
Fri, 20 Dec 2013 03:59:58 +0000 (12:59 +0900)
Problem reported by Reuben Thomas in:
<https://lists.gnu.org/archive/html/bug-gettext/2013-12/msg00010.html>.
* gettext-runtime/m4/extern-inline.m4: New file, from gnulib.
* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Require gl_EXTERN_INLINE.
* gettext-runtime/m4/Makefile.am (EXTRA_DIST): Update.
* gettext-tools/m4/Makefile.am (aclocal_DATA): Add extern-inline.m4.
* Makefile.am (distcheck-hook): Check extern-inline.m4.

ChangeLog
Makefile.am
gettext-runtime/m4/ChangeLog
gettext-runtime/m4/Makefile.am
gettext-runtime/m4/extern-inline.m4 [new file with mode: 0644]
gettext-runtime/m4/intl.m4
gettext-tools/m4/ChangeLog
gettext-tools/m4/Makefile.am

index f525ec80202bd65cbe6d8e32962b182f4528f27a..d1e7bf1b3711c6a5158ec67a669603c5b6955d82 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2013-12-17  Daiki Ueno  <ueno@gnu.org>
+
+       Add missing extern-inline.m4 into archive.
+       Problem reported by Reuben Thomas in:
+       <https://lists.gnu.org/archive/html/bug-gettext/2013-12/msg00010.html>.
+       * Makefile.am (distcheck-hook): Check extern-inline.m4.
+
 2013-08-13  Michele Locati <michele@locati.it>  (tiny change)
 
        * windows/gettext.rc: Update copyright year.
index 9807288848373dd0aa63d55e1cc4162a5a6de7f2..2f1a3831c0a24cb56ece239c3d055c9405686529 100644 (file)
@@ -42,6 +42,7 @@ distcheck-hook:
        cmp -s gettext-runtime/po/remove-potcdate.sin gettext-tools/po/remove-potcdate.sin
        cmp -s gettext-runtime/po/remove-potcdate.sin gettext-tools/examples/po/remove-potcdate.sin
        cmp -s gettext-runtime/m4/codeset.m4 gettext-tools/gnulib-m4/codeset.m4
+       cmp -s gettext-runtime/m4/extern-inline.m4 gettext-tools/gnulib-m4/extern-inline.m4
        cmp -s gettext-runtime/m4/fcntl-o.m4 gettext-tools/gnulib-m4/fcntl-o.m4
        cmp -s gettext-runtime/m4/gettext.m4 gettext-tools/gnulib-m4/gettext.m4
        cmp -s gettext-runtime/m4/glibc2.m4 gettext-tools/gnulib-m4/glibc2.m4
index a3407a42a0bf6db59d0060505b42f2f8c90d0d24..dd96b6d4288dd0d5519ae987f82881501557e9ce 100644 (file)
@@ -1,3 +1,12 @@
+2013-12-17  Daiki Ueno  <ueno@gnu.org>
+
+       Add missing extern-inline.m4 into archive.
+       Problem reported by Reuben Thomas in:
+       <https://lists.gnu.org/archive/html/bug-gettext/2013-12/msg00010.html>.
+       * extern-inline.m4: New file, from gnulib.
+       * intl.m4 (AM_INTL_SUBDIR): Require gl_EXTERN_INLINE.
+       * Makefile.am (EXTRA_DIST): Update.
+
 2013-08-09  Daiki Ueno  <ueno@gnu.org>
 
        * intl.m4 (AM_INTL_SUBDIR): Fix AC_CHECK_DECLS usage.
index bf10c67b2aa7bf24c1df9c27f0e879a544ac3ceb..740e462da3f5912e8898e6afa75227cb642d6a2b 100644 (file)
@@ -4,6 +4,7 @@
 # find . -type f -name '*.m4' -printf '%f\n' | sort | tr '\012' @ | sed 's/@$/%/;s/@/ \\@/g' | tr @% '\012\012'
 EXTRA_DIST = README \
 codeset.m4 \
+extern-inline.m4 \
 fcntl-o.m4 \
 gettext.m4 \
 glibc2.m4 \
diff --git a/gettext-runtime/m4/extern-inline.m4 b/gettext-runtime/m4/extern-inline.m4
new file mode 100644 (file)
index 0000000..c4c5e7f
--- /dev/null
@@ -0,0 +1,70 @@
+dnl 'extern inline' a la ISO C99.
+
+dnl Copyright 2012-2013 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+AC_DEFUN([gl_EXTERN_INLINE],
+[
+  AH_VERBATIM([extern_inline],
+[/* Please see the Gnulib manual for how to use these macros.
+
+   Suppress extern inline with HP-UX cc, as it appears to be broken; see
+   <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
+
+   Suppress extern inline with Sun C in standards-conformance mode, as it
+   mishandles inline functions that call each other.  E.g., for 'inline void f
+   (void) { } inline void g (void) { f (); }', c99 incorrectly complains
+   'reference to static identifier "f" in extern inline function'.
+   This bug was observed with Sun C 5.12 SunOS_i386 2011/11/16.
+
+   Suppress the use of extern inline on Apple's platforms, as Libc at least
+   through Libc-825.26 (2013-04-09) is incompatible with it; see, e.g.,
+   <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
+   Perhaps Apple will fix this some day.  */
+#if ((__GNUC__ \
+      ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \
+      : (199901L <= __STDC_VERSION__ \
+         && !defined __HP_cc \
+         && !(defined __SUNPRO_C && __STDC__))) \
+     && !defined __APPLE__)
+# define _GL_INLINE inline
+# define _GL_EXTERN_INLINE extern inline
+#elif (2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __STRICT_ANSI__ \
+       && !defined __APPLE__)
+# if __GNUC_GNU_INLINE__
+   /* __gnu_inline__ suppresses a GCC 4.2 diagnostic.  */
+#  define _GL_INLINE extern inline __attribute__ ((__gnu_inline__))
+# else
+#  define _GL_INLINE extern inline
+# endif
+# define _GL_EXTERN_INLINE extern
+#else
+# define _GL_INLINE static _GL_UNUSED
+# define _GL_EXTERN_INLINE static _GL_UNUSED
+#endif
+
+#if 4 < __GNUC__ + (6 <= __GNUC_MINOR__)
+# if defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__
+#  define _GL_INLINE_HEADER_CONST_PRAGMA
+# else
+#  define _GL_INLINE_HEADER_CONST_PRAGMA \
+     _Pragma ("GCC diagnostic ignored \"-Wsuggest-attribute=const\"")
+# endif
+  /* Suppress GCC's bogus "no previous prototype for 'FOO'"
+     and "no previous declaration for 'FOO'"  diagnostics,
+     when FOO is an inline function in the header; see
+     <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54113>.  */
+# define _GL_INLINE_HEADER_BEGIN \
+    _Pragma ("GCC diagnostic push") \
+    _Pragma ("GCC diagnostic ignored \"-Wmissing-prototypes\"") \
+    _Pragma ("GCC diagnostic ignored \"-Wmissing-declarations\"") \
+    _GL_INLINE_HEADER_CONST_PRAGMA
+# define _GL_INLINE_HEADER_END \
+    _Pragma ("GCC diagnostic pop")
+#else
+# define _GL_INLINE_HEADER_BEGIN
+# define _GL_INLINE_HEADER_END
+#endif])
+])
index dffcd881b8ac60dcd0cb633f54d061cd8a40f09c..67feb5862fc30cfa38bc3c1b1905dcb82e0214c4 100644 (file)
@@ -1,4 +1,4 @@
-# intl.m4 serial 24 (gettext-0.18.3)
+# intl.m4 serial 25 (gettext-0.18.3)
 dnl Copyright (C) 1995-2013 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -42,6 +42,7 @@ AC_DEFUN([AM_INTL_SUBDIR],
   AC_REQUIRE([gl_XSIZE])dnl
   AC_REQUIRE([gl_FCNTL_O_FLAGS])dnl
   AC_REQUIRE([gt_INTL_MACOSX])dnl
+  AC_REQUIRE([gl_EXTERN_INLINE])dnl
 
   dnl Support for automake's --enable-silent-rules.
   case "$enable_silent_rules" in
index 45967b6832917dac74df8d893c0fa5cd3292e7b8..e2ddbaac575a421982bdb3ff356d056e66a3c329 100644 (file)
@@ -1,3 +1,10 @@
+2013-12-17  Daiki Ueno  <ueno@gnu.org>
+
+       Add missing extern-inline.m4 into archive.
+       Problem reported by Reuben Thomas in:
+       <https://lists.gnu.org/archive/html/bug-gettext/2013-12/msg00010.html>.
+       * Makefile.am (aclocal_DATA): Add extern-inline.m4.
+
 2012-12-25  Daiki Ueno  <ueno@gnu.org>
 
        * gettext-0.18.2 released.
index b994ae56812a35d3b7853f734c1b26b5e9dd8271..3c4c53c6aac965ace8b84b405625adab47af5f09 100644 (file)
@@ -8,6 +8,7 @@ aclocal_DATA = \
   ../../gettext-runtime/gnulib-m4/lib-link.m4 \
   ../../gettext-runtime/gnulib-m4/lib-prefix.m4 \
   ../../gettext-runtime/m4/codeset.m4 \
+  ../../gettext-runtime/m4/extern-inline.m4 \
   ../../gettext-runtime/m4/fcntl-o.m4 \
   ../../gettext-runtime/m4/gettext.m4 \
   ../../gettext-runtime/m4/glibc2.m4 \