]> Savannah Git Hosting - gnulib.git/commitdiff
setlocale-null: Rename LIB_SETLOCALE_NULL to SETLOCALE_NULL_LIB.
authorBruno Haible <bruno@clisp.org>
Sat, 7 Jan 2023 14:12:41 +0000 (15:12 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 7 Jan 2023 17:06:52 +0000 (18:06 +0100)
* m4/setlocale_null.m4: Rename LIB_SETLOCALE_NULL to SETLOCALE_NULL_LIB.
All uses changed.
* NEWS: Mention the change

ChangeLog
NEWS
m4/duplocale.m4
m4/nl_langinfo.m4
m4/setlocale.m4
m4/setlocale_null.m4
modules/hard-locale
modules/setlocale-null
modules/setlocale-null-tests
tests/test-setlocale_null.c

index af5ae11f35cf8de500bc782cc666f81a1c392cc8..bd0f9bbfe5d712a73fcdf3e9ab7bf3e960df5d27 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2023-01-07  Bruno Haible  <bruno@clisp.org>
+
+       setlocale-null: Rename LIB_SETLOCALE_NULL to SETLOCALE_NULL_LIB.
+       * m4/setlocale_null.m4: Rename LIB_SETLOCALE_NULL to SETLOCALE_NULL_LIB.
+       All uses changed.
+       * NEWS: Mention the change
+
 2023-01-07  Bruno Haible  <bruno@clisp.org>
 
        setlocale: Rename LIB_SETLOCALE to SETLOCALE_LIB.
diff --git a/NEWS b/NEWS
index adc1a5c7de0f4634ea44bc9a47d9c4e37cc9c759..ee439a078465d9a27591f4578756b1c59ca85a3d 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -74,6 +74,9 @@ User visible incompatible changes
 
 Date        Modules         Changes
 
+2023-01-07  setlocale-null  Link with $(SETLOCALE_NULL_LIB) instead of
+                            $(LIB_SETLOCALE_NULL).
+
 2023-01-07  setlocale       Link with $(SETLOCALE_LIB) instead of
                             $(LIB_SETLOCALE).
 
index 2e4686f0784cb1d1720ca15ccff96ef1cab3d438..c1525e90f5b859bba5f3b8a63056b91517db5ac3 100644 (file)
@@ -1,4 +1,4 @@
-# duplocale.m4 serial 13
+# duplocale.m4 serial 14
 dnl Copyright (C) 2009-2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -111,7 +111,7 @@ int main ()
     HAVE_DUPLOCALE=0
   fi
   if test $REPLACE_DUPLOCALE = 1; then
-    DUPLOCALE_LIB="$LIB_SETLOCALE_NULL"
+    DUPLOCALE_LIB="$SETLOCALE_NULL_LIB"
   else
     DUPLOCALE_LIB=
   fi
index 51e783ce86fd6eac89d5303adb8f99a3583ea0b0..f3192f30d152ce2eaa6e0d5f769527d88a7c632f 100644 (file)
@@ -1,4 +1,4 @@
-# nl_langinfo.m4 serial 8
+# nl_langinfo.m4 serial 9
 dnl Copyright (C) 2009-2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -62,7 +62,7 @@ AC_DEFUN([gl_FUNC_NL_LANGINFO],
     HAVE_NL_LANGINFO=0
   fi
   if test $HAVE_NL_LANGINFO = 0 || test $HAVE_LANGINFO_CODESET = 0; then
-    LIB_NL_LANGINFO="$LIB_SETLOCALE_NULL"
+    LIB_NL_LANGINFO="$SETLOCALE_NULL_LIB"
   else
     LIB_NL_LANGINFO=
   fi
index 7e9e40889cb58a29476eb9151b9d1eb7284e2da2..2e8094dc9ac7820c50416d64aa4ff7f0a3ba8bc0 100644 (file)
@@ -1,4 +1,4 @@
-# setlocale.m4 serial 8
+# setlocale.m4 serial 9
 dnl Copyright (C) 2011-2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -66,7 +66,7 @@ int main ()
   fi
 
   if test $NEED_SETLOCALE_MTSAFE = 1; then
-    SETLOCALE_LIB="$LIB_SETLOCALE_NULL"
+    SETLOCALE_LIB="$SETLOCALE_NULL_LIB"
   else
     SETLOCALE_LIB=
   fi
index 032119d0f47ea45848054d083a687862f5118a60..dd6a5ef538265159bb662cf5daf25913eb1582d8 100644 (file)
@@ -1,4 +1,4 @@
-# setlocale_null.m4 serial 5
+# setlocale_null.m4 serial 6
 dnl Copyright (C) 2019-2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -74,20 +74,23 @@ AC_DEFUN([gl_FUNC_SETLOCALE_NULL],
   dnl Determine link dependencies of lib/setlocale_null.c and lib/setlocale-lock.c.
   if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
     case "$host_os" in
-      mingw*) LIB_SETLOCALE_NULL= ;;
+      mingw*) SETLOCALE_NULL_LIB= ;;
       *)
         gl_WEAK_SYMBOLS
         case "$gl_cv_have_weak" in
-          *yes) LIB_SETLOCALE_NULL= ;;
-          *)    LIB_SETLOCALE_NULL="$LIBPTHREAD" ;;
+          *yes) SETLOCALE_NULL_LIB= ;;
+          *)    SETLOCALE_NULL_LIB="$LIBPTHREAD" ;;
         esac
         ;;
     esac
   else
-    LIB_SETLOCALE_NULL=
+    SETLOCALE_NULL_LIB=
   fi
-  dnl LIB_SETLOCALE_NULL is expected to be '-pthread' or '-lpthread' on AIX
+  dnl SETLOCALE_NULL_LIB is expected to be '-pthread' or '-lpthread' on AIX
   dnl with gcc or xlc, and empty otherwise.
+  AC_SUBST([SETLOCALE_NULL_LIB])
+  dnl For backward compatibility.
+  LIB_SETLOCALE_NULL="$SETLOCALE_NULL_LIB"
   AC_SUBST([LIB_SETLOCALE_NULL])
 ])
 
index 2c7846442eb35394e5faef8de0cfd5560a945997..2dbe64e4a90d899ef660e50406b120accedc8195 100644 (file)
@@ -11,7 +11,7 @@ setlocale-null
 
 configure.ac:
 AC_REQUIRE([gl_FUNC_SETLOCALE_NULL])
-HARD_LOCALE_LIB="$LIB_SETLOCALE_NULL"
+HARD_LOCALE_LIB="$SETLOCALE_NULL_LIB"
 AC_SUBST([HARD_LOCALE_LIB])
 dnl For backward compatibility.
 LIB_HARD_LOCALE="$HARD_LOCALE_LIB"
index 11ad6f1faa5146167d8995d155a6b480eccf4a50..91efd51483f7cfc4583d169e7bea862d05c5ad49 100644 (file)
@@ -33,7 +33,7 @@ Include:
 #include "setlocale_null.h" or #include <locale.h>
 
 Link:
-$(LIB_SETLOCALE_NULL)
+$(SETLOCALE_NULL_LIB)
 
 License:
 LGPLv2+
index 8f8b835f5a40a3f65f16eae7368ca27048c0ed82..d92e2291339df1d285525ae8268f8f783dcb4209 100644 (file)
@@ -18,6 +18,6 @@ check_PROGRAMS += \
   test-setlocale_null \
   test-setlocale_null-mt-one \
   test-setlocale_null-mt-all
-test_setlocale_null_LDADD = $(LDADD) @LIB_SETLOCALE_NULL@
-test_setlocale_null_mt_one_LDADD = $(LDADD) @LIB_SETLOCALE_NULL@ $(LIBMULTITHREAD) $(NANOSLEEP_LIB)
-test_setlocale_null_mt_all_LDADD = $(LDADD) @LIB_SETLOCALE_NULL@ $(LIBMULTITHREAD) $(NANOSLEEP_LIB)
+test_setlocale_null_LDADD = $(LDADD) @SETLOCALE_NULL_LIB@
+test_setlocale_null_mt_one_LDADD = $(LDADD) @SETLOCALE_NULL_LIB@ $(LIBMULTITHREAD) $(NANOSLEEP_LIB)
+test_setlocale_null_mt_all_LDADD = $(LDADD) @SETLOCALE_NULL_LIB@ $(LIBMULTITHREAD) $(NANOSLEEP_LIB)
index 73cbc3c0959806c69fb98cdeeddd192ce92bea9e..2495964b60b785d3321cd438e60490c2b40a9db4 100644 (file)
@@ -27,6 +27,6 @@ static char buf[SETLOCALE_NULL_ALL_MAX];
 int
 main ()
 {
-  /* Check that setlocale_null_r() can be used with $(LIB_SETLOCALE_NULL).  */
+  /* Check that setlocale_null_r() can be used with $(SETLOCALE_NULL_LIB).  */
   return setlocale_null_r (LC_ALL, buf, sizeof (buf)) != 0;
 }