]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Update after gnulib changed.
authorBruno Haible <bruno@clisp.org>
Thu, 7 Jan 2021 22:15:05 +0000 (23:15 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 9 Oct 2022 07:30:42 +0000 (09:30 +0200)
* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Test
gt_localename_enhances_locale_funcs instead of gt_nameless_locales. Set
ENHANCE_LOCALE_FUNCS, not HAVE_NAMELESS_LOCALES.
* gettext-runtime/intl/Makefile.am (libgnuintl.h, libintl.h): Substitute
ENHANCE_LOCALE_FUNCS, not HAVE_NAMELESS_LOCALES.
* gettext-runtime/intl/libgnuintl.in.h: Test ENHANCE_LOCALE_FUNCS, not
HAVE_NAMELESS_LOCALES.

gettext-runtime/intl/Makefile.am
gettext-runtime/intl/libgnuintl.in.h
gettext-runtime/m4/intl.m4

index ebd44dfb79c052a4a3f395b9c68f257ebf62e813..329c1410bce82bbf8771e9049af4b653c6c8a2d5 100644 (file)
@@ -1,6 +1,6 @@
 ## Makefile for the gettext-runtime/intl and gettext-tools/intl subdirectories
 ## of GNU gettext.
-## Copyright (C) 1995-1998, 2000-2007, 2009-2020 Free Software Foundation, Inc.
+## Copyright (C) 1995-1998, 2000-2007, 2009-2021 Free Software Foundation, Inc.
 ##
 ## This program is free software: you can redistribute it and/or modify
 ## it under the terms of the GNU Lesser General Public License as published by
@@ -276,8 +276,8 @@ libgnuintl.h: $(srcdir)/libgnuintl.in.h $(srcdir)/export.h
            -e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \
            -e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \
            -e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \
-           -e 's,@''HAVE_NAMELESS_LOCALES''@,@HAVE_NAMELESS_LOCALES@,g' \
            -e 's,@''HAVE_NEWLOCALE''@,@HAVE_NEWLOCALE@,g' \
+           -e 's,@''ENHANCE_LOCALE_FUNCS''@,@ENHANCE_LOCALE_FUNCS@,g' \
          < $(srcdir)/libgnuintl.in.h \
        | if test '@WOE32DLL@' = yes; then \
            sed -e 's/extern \([^()]*\);/extern __declspec (dllimport) \1;/'; \
@@ -296,8 +296,8 @@ libintl.h: $(srcdir)/libgnuintl.in.h
            -e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \
            -e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \
            -e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \
-           -e 's,@''HAVE_NAMELESS_LOCALES''@,@HAVE_NAMELESS_LOCALES@,g' \
            -e 's,@''HAVE_NEWLOCALE''@,@HAVE_NEWLOCALE@,g' \
+           -e 's,@''ENHANCE_LOCALE_FUNCS''@,@ENHANCE_LOCALE_FUNCS@,g' \
          < $(srcdir)/libgnuintl.in.h > libintl.h
 MOSTLYCLEANFILES += libintl.h
 
index 6fb1920614fb02062eac65a9b67c1c28d6f8ef73..7c672919739f5ee6abff5597c127dc2e1b4060b7 100644 (file)
@@ -1,5 +1,5 @@
 /* Message catalogs for internationalization.
-   Copyright (C) 1995-1997, 2000-2016, 2018-2020 Free Software Foundation, Inc.
+   Copyright (C) 1995-1997, 2000-2016, 2018-2021 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published by
@@ -459,7 +459,7 @@ extern int vswprintf (wchar_t *, size_t, const wchar_t *, va_list);
 
 
 /* Support for retrieving the name of a locale_t object.  */
-#if @HAVE_NAMELESS_LOCALES@
+#if @ENHANCE_LOCALE_FUNCS@
 
 #ifndef GNULIB_defined_newlocale /* don't override gnulib */
 #undef newlocale
index 3a94c2092b58e1e035533c50da26ecfd1b710023..788bc120a4cfc48f7eaeb370aa8db034f3eeb953 100644 (file)
@@ -1,5 +1,5 @@
-# intl.m4 serial 45 (gettext-0.21.1)
-dnl Copyright (C) 1995-2014, 2016-2020 Free Software Foundation, Inc.
+# intl.m4 serial 46 (gettext-0.21.1)
+dnl Copyright (C) 1995-2014, 2016-2021 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.
@@ -119,12 +119,12 @@ AC_DEFUN([AM_INTL_SUBDIR],
   AM_LANGINFO_CODESET
   gt_LC_MESSAGES
 
-  if test $gt_nameless_locales = yes; then
-    HAVE_NAMELESS_LOCALES=1
+  if test $gt_localename_enhances_locale_funcs = yes; then
+    ENHANCE_LOCALE_FUNCS=1
   else
-    HAVE_NAMELESS_LOCALES=0
+    ENHANCE_LOCALE_FUNCS=0
   fi
-  AC_SUBST([HAVE_NAMELESS_LOCALES])
+  AC_SUBST([ENHANCE_LOCALE_FUNCS])
 
   dnl Compilation on mingw and Cygwin needs special Makefile rules, because
   dnl 1. when we install a shared library, we must arrange to export