]> Savannah Git Hosting - gnulib.git/commitdiff
pthread_sigmask: Rename LIB_PTHREAD_SIGMASK to PTHREAD_SIGMASK_LIB.
authorBruno Haible <bruno@clisp.org>
Sat, 7 Jan 2023 13:39:16 +0000 (14:39 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 7 Jan 2023 17:06:51 +0000 (18:06 +0100)
* m4/pthread_sigmask.m4: Rename LIB_PTHREAD_SIGMASK to
PTHREAD_SIGMASK_LIB.
All uses changed.
* NEWS: Mention the change.

ChangeLog
NEWS
m4/pthread_sigmask.m4
modules/pselect
modules/pselect-tests
modules/pthread_sigmask
modules/pthread_sigmask-tests
modules/signal-h-c++-tests

index 934f4e139824f31e2e8c4fdece688d7aaa5114ce..cb61ac4bc2459fbf39f6d43c655bf40b8ef27bc0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2023-01-07  Bruno Haible  <bruno@clisp.org>
+
+       pthread_sigmask: Rename LIB_PTHREAD_SIGMASK to PTHREAD_SIGMASK_LIB.
+       * m4/pthread_sigmask.m4: Rename LIB_PTHREAD_SIGMASK to
+       PTHREAD_SIGMASK_LIB.
+       All uses changed.
+       * NEWS: Mention the change.
+
 2023-01-07  Bruno Haible  <bruno@clisp.org>
 
        posix_spawn: Rename LIB_POSIX_SPAWN to POSIX_SPAWN_LIB.
diff --git a/NEWS b/NEWS
index a4db3501d0f6a66445f1f3ba75919f3e9b85ae2f..ec6147be996ffade3b8298b3082d9349df826d40 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -74,6 +74,9 @@ User visible incompatible changes
 
 Date        Modules         Changes
 
+2023-01-07  pthread_sigmask  Link with $(PTHREAD_SIGMASK_LIB) instead of
+                             $(LIB_PTHREAD_SIGMASK).
+
 2023-01-07  posix_spawn     Link with $(POSIX_SPAWN_LIB) instead of
                             $(LIB_POSIX_SPAWN).
 
index 5110668155eef4084fecfb2641fc4ee9b1be59e4..27795282beeca6cbc4907601ba91e99dedc2180f 100644 (file)
@@ -1,4 +1,4 @@
-# pthread_sigmask.m4 serial 21
+# pthread_sigmask.m4 serial 22
 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,
@@ -24,7 +24,7 @@ AC_DEFUN([gl_FUNC_PTHREAD_SIGMASK],
        [gl_cv_func_pthread_sigmask_macro=no])
     ])
 
-  LIB_PTHREAD_SIGMASK=
+  PTHREAD_SIGMASK_LIB=
 
   if test $gl_cv_func_pthread_sigmask_macro = yes; then
     dnl pthread_sigmask is a dummy macro.
@@ -62,7 +62,7 @@ AC_DEFUN([gl_FUNC_PTHREAD_SIGMASK],
               ])
             if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
               dnl pthread_sigmask is available with -pthread or -lpthread.
-              LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
+              PTHREAD_SIGMASK_LIB="$LIBMULTITHREAD"
             else
               dnl pthread_sigmask is not available at all.
               HAVE_PTHREAD_SIGMASK=0
@@ -101,6 +101,9 @@ AC_DEFUN([gl_FUNC_PTHREAD_SIGMASK],
     ])
   fi
 
+  AC_SUBST([PTHREAD_SIGMASK_LIB])
+  dnl For backward compatibility.
+  LIB_PTHREAD_SIGMASK="$PTHREAD_SIGMASK_LIB"
   AC_SUBST([LIB_PTHREAD_SIGMASK])
   dnl We don't need a variable LTLIB_PTHREAD_SIGMASK, because when
   dnl "$gl_threads_api" = posix, $LTLIBMULTITHREAD and $LIBMULTITHREAD are the
@@ -114,7 +117,7 @@ AC_DEFUN([gl_FUNC_PTHREAD_SIGMASK],
     dnl On FreeBSD 13.0, MidnightBSD 1.1, HP-UX 11.31, Solaris 9, in programs
     dnl that are not linked with -lpthread, the pthread_sigmask() function
     dnl always returns 0 and has no effect.
-    if test -z "$LIB_PTHREAD_SIGMASK"; then
+    if test -z "$PTHREAD_SIGMASK_LIB"; then
       case " $LIBS " in
         *' -pthread '*) ;;
         *' -lpthread '*) ;;
@@ -162,7 +165,7 @@ AC_DEFUN([gl_FUNC_PTHREAD_SIGMASK],
       [gl_cv_func_pthread_sigmask_return_works],
       [
         gl_save_LIBS="$LIBS"
-        LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
+        LIBS="$LIBS $PTHREAD_SIGMASK_LIB"
         AC_RUN_IFELSE(
           [AC_LANG_SOURCE([[
 #include <pthread.h>
@@ -208,7 +211,7 @@ int main ()
             gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
         esac
         m4_ifdef([gl_][THREADLIB],
-          [dnl Link against $LIBMULTITHREAD, not only $LIB_PTHREAD_SIGMASK.
+          [dnl Link against $LIBMULTITHREAD, not only $PTHREAD_SIGMASK_LIB.
            dnl Otherwise we get a false positive on those platforms where
            dnl $gl_cv_func_pthread_sigmask_in_libc_works is "no".
            gl_save_LIBS=$LIBS
index 207ec76c8ad15996ef82b25f1c10df0cdaca61ce..8c4c396f7af4c4588b1de2b22b4a5fa17efd2276 100644 (file)
@@ -27,7 +27,7 @@ Include:
 
 Link:
 $(LIB_SELECT)
-$(LIB_PTHREAD_SIGMASK)
+$(PTHREAD_SIGMASK_LIB)
 
 License:
 LGPLv2+
index 0c37ff6abf6a45e641452914c6ac4518f0c2e7a5..d7441f093750e8a5c015a0ca86e0e65fbae2800d 100644 (file)
@@ -30,4 +30,4 @@ AC_CHECK_HEADERS_ONCE([sys/wait.h])
 Makefile.am:
 TESTS += test-pselect
 check_PROGRAMS += test-pselect
-test_pselect_LDADD = $(LDADD) @LIB_SELECT@ @LIBSOCKET@ @LIB_PTHREAD_SIGMASK@ $(INET_PTON_LIB)
+test_pselect_LDADD = $(LDADD) @LIB_SELECT@ @LIBSOCKET@ @PTHREAD_SIGMASK_LIB@ $(INET_PTON_LIB)
index a519d3df4c98e47ba2ffb9a8ca2090c9d2fd5794..5919f40ce32f0b4ffd5fe4dd93d0af6b33465bbb 100644 (file)
@@ -28,7 +28,7 @@ Include:
 <signal.h>
 
 Link:
-$(LIB_PTHREAD_SIGMASK)
+$(PTHREAD_SIGMASK_LIB)
 
 License:
 LGPLv2+
index e30bb9141155328e5400d93dab8eba3252fd4bf6..e4e0d5b019561895a71a92e52a9059c83a4fb03b 100644 (file)
@@ -13,5 +13,5 @@ configure.ac:
 Makefile.am:
 TESTS += test-pthread_sigmask1 test-pthread_sigmask2
 check_PROGRAMS += test-pthread_sigmask1 test-pthread_sigmask2
-test_pthread_sigmask1_LDADD = $(LDADD) @LIB_PTHREAD_SIGMASK@
-test_pthread_sigmask2_LDADD = $(LDADD) @LIB_PTHREAD_SIGMASK@ @LIBMULTITHREAD@
+test_pthread_sigmask1_LDADD = $(LDADD) @PTHREAD_SIGMASK_LIB@
+test_pthread_sigmask2_LDADD = $(LDADD) @PTHREAD_SIGMASK_LIB@ @LIBMULTITHREAD@
index a3d9a40076391b4e4d0a35b183c92b98ec57283b..707f0b2734bf10ad69e0e79fb276bf82d53366cd 100644 (file)
@@ -16,5 +16,5 @@ if ANSICXX
 TESTS += test-signal-h-c++
 check_PROGRAMS += test-signal-h-c++
 test_signal_h_c___SOURCES = test-signal-h-c++.cc test-signal-h-c++2.cc
-test_signal_h_c___LDADD = $(LDADD) $(LIBINTL) $(NANOSLEEP_LIB) $(LIB_PTHREAD_SIGMASK)
+test_signal_h_c___LDADD = $(LDADD) $(LIBINTL) $(NANOSLEEP_LIB) $(PTHREAD_SIGMASK_LIB)
 endif