hard-locale: Rename LIB_HARD_LOCALE to HARD_LOCALE_LIB.
authorBruno Haible <bruno@clisp.org>
Sat, 7 Jan 2023 10:42:52 +0000 (11:42 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 7 Jan 2023 17:06:51 +0000 (18:06 +0100)
* modules/hard-locale (configure.ac): Rename LIB_HARD_LOCALE to
HARD_LOCALE_LIB.
All uses changed.
* NEWS: Mention the change.

ChangeLog
NEWS
modules/hard-locale
modules/hard-locale-tests

index 2d968f4f7537e55d1b29a14aed6597ca6245f7c5..50fd1701de63d38c2f6bfde86f5bd084b51f419e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2023-01-07  Bruno Haible  <bruno@clisp.org>
+
+       hard-locale: Rename LIB_HARD_LOCALE to HARD_LOCALE_LIB.
+       * modules/hard-locale (configure.ac): Rename LIB_HARD_LOCALE to
+       HARD_LOCALE_LIB.
+       All uses changed.
+       * NEWS: Mention the change.
+
 2023-01-07  Bruno Haible  <bruno@clisp.org>
 
        getrandom: Rename LIB_GETRANDOM to GETRANDOM_LIB.
diff --git a/NEWS b/NEWS
index 5ff7d0816f24a51974d16d90873daaae23594ad2..913e04dd5f8faedaa6a7a53bd22f69807d1035ad 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -74,6 +74,9 @@ User visible incompatible changes
 
 Date        Modules         Changes
 
+2023-01-07  hard-locale     Link with $(HARD_LOCALE_LIB) instead of
+                            $(LIB_HARD_LOCALE).
+
 2023-01-07  getrandom       Link with $(GETRANDOM_LIB) instead of
                             $(LIB_GETRANDOM).
 
index df07d4a6ed5df27ad8aa4bfc913202c2c97726df..2c7846442eb35394e5faef8de0cfd5560a945997 100644 (file)
@@ -11,7 +11,10 @@ setlocale-null
 
 configure.ac:
 AC_REQUIRE([gl_FUNC_SETLOCALE_NULL])
-LIB_HARD_LOCALE="$LIB_SETLOCALE_NULL"
+HARD_LOCALE_LIB="$LIB_SETLOCALE_NULL"
+AC_SUBST([HARD_LOCALE_LIB])
+dnl For backward compatibility.
+LIB_HARD_LOCALE="$HARD_LOCALE_LIB"
 AC_SUBST([LIB_HARD_LOCALE])
 
 Makefile.am:
@@ -21,7 +24,7 @@ Include:
 "hard-locale.h"
 
 Link:
-$(LIB_HARD_LOCALE)
+$(HARD_LOCALE_LIB)
 
 License:
 LGPLv2+
index 7ed85754e5d109259b7f5f90dbe922fbef2ec58d..90677d996fd34015ca40af985ee0f8861fe7d91d 100644 (file)
@@ -13,7 +13,7 @@ AC_CHECK_FUNCS_ONCE([duplocale])
 Makefile.am:
 TESTS += test-hard-locale
 check_PROGRAMS += test-hard-locale
-test_hard_locale_LDADD = $(LDADD) $(LIB_SETLOCALE) @LIB_HARD_LOCALE@
+test_hard_locale_LDADD = $(LDADD) $(LIB_SETLOCALE) @HARD_LOCALE_LIB@
 # We cannot call this program 'locale', because the C++ compiler on Mac OS X
 # would then barf upon '#include <locale>'. So, call it 'current-locale'.
 noinst_PROGRAMS += current-locale