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

ChangeLog
NEWS
m4/spawn_h.m4
modules/posix_spawn

index edfd93d690d4819c8b948eb74caa69ee2c6263c9..934f4e139824f31e2e8c4fdece688d7aaa5114ce 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2023-01-07  Bruno Haible  <bruno@clisp.org>
+
+       posix_spawn: Rename LIB_POSIX_SPAWN to POSIX_SPAWN_LIB.
+       * m4/spawn_h.m4: Rename LIB_POSIX_SPAWN to POSIX_SPAWN_LIB.
+       All uses changed.
+       * NEWS: Mention the change.
+
 2023-01-07  Bruno Haible  <bruno@clisp.org>
 
        poll: Rename LIB_POLL to POLL_LIB.
diff --git a/NEWS b/NEWS
index 894a52404cc25978a20a6a8006b4e571e16c7700..a4db3501d0f6a66445f1f3ba75919f3e9b85ae2f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -74,6 +74,9 @@ User visible incompatible changes
 
 Date        Modules         Changes
 
+2023-01-07  posix_spawn     Link with $(POSIX_SPAWN_LIB) instead of
+                            $(LIB_POSIX_SPAWN).
+
 2023-01-07  poll            Link with $(POLL_LIB) instead of $(LIB_POLL).
 
 2023-01-07  nanosleep       Link with $(NANOSLEEP_LIB) instead of
index 118490adb7eb8a811f74965375859c98ac7b51ce..3bee0f7be4d78547e915f784edc399a732df5711 100644 (file)
@@ -1,4 +1,4 @@
-# spawn_h.m4 serial 22
+# spawn_h.m4 serial 23
 dnl Copyright (C) 2008-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,
@@ -65,14 +65,17 @@ AC_DEFUN([gl_HAVE_POSIX_SPAWN],
   dnl that occur in other macros.
   AC_REQUIRE([gl_SPAWN_H_DEFAULTS])
 
-  LIB_POSIX_SPAWN=
-  AC_SUBST([LIB_POSIX_SPAWN])
+  POSIX_SPAWN_LIB=
+  AC_SUBST([POSIX_SPAWN_LIB])
   gl_saved_libs=$LIBS
     AC_SEARCH_LIBS([posix_spawn], [rt],
                    [test "$ac_cv_search_posix_spawn" = "none required" ||
-                    LIB_POSIX_SPAWN=$ac_cv_search_posix_spawn])
+                    POSIX_SPAWN_LIB=$ac_cv_search_posix_spawn])
     gl_CHECK_FUNCS_ANDROID([posix_spawn], [[#include <spawn.h>]])
   LIBS=$gl_saved_libs
+  dnl For backward compatibility.
+  LIB_POSIX_SPAWN="$POSIX_SPAWN_LIB"
+  AC_SUBST([LIB_POSIX_SPAWN])
 
   if test $ac_cv_func_posix_spawn != yes; then
     HAVE_POSIX_SPAWN=0
index b150aab643982db41386c2072c4d607c2c5f349a..6ca7ab9331311e346a208228e91cdbe356bd15ae 100644 (file)
@@ -24,7 +24,7 @@ Include:
 <spawn.h>
 
 Link:
-$(LIB_POSIX_SPAWN)
+$(POSIX_SPAWN_LIB)
 
 License:
 LGPLv2+