]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
authorAkim Demaille <akim@epita.fr>
Mon, 25 Feb 2002 17:38:41 +0000 (17:38 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 25 Feb 2002 17:38:41 +0000 (17:38 +0000)
From Akinori Musha.

ChangeLog
NEWS
THANKS
lib/autoconf/functions.m4

index c7d9ef809586e609d02048b78c4ec7d3da725da4..b41f3951d71f7c22dada246ea3555f5785a9e2e2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-02-25  Akim Demaille  <akim@epita.fr>
+
+       * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
+       From Akinori Musha.
+
 2002-02-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
 
        * lib/Autom4te/XFile.pm (getline, getlines): New functions,
diff --git a/NEWS b/NEWS
index 236b9f1238e2dd130592b3b790e345342bfbf1b2..14dd12af2e7b183fe3d0db8e6569b2dc19faefb8 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -66,6 +66,8 @@
   assignments.
 - AC_PATH_PROG and family.
   Works properly when given a literal path.
+- AC_FUNC_SETPGRP
+  Somewhere since 2.13, the result had been reversed.
 
 ** C Macros
 
diff --git a/THANKS b/THANKS
index f6f29e619bc7b881b6096fa66fc38c0235048021..6246877b9c20a0eaff88ced690e9532786314c44 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -6,6 +6,7 @@ Aaron Crane                 aaronc@pobox.com
 Aaron M. Ucko               amu@alum.mit.edu
 Aharon Robbins              arnold@gnu.org
 Akim Demaille               akim@freefriends.org
+Akinori Musha               knu@iDaemons.org
 Alain Knaff                 Alain.Knaff@imag.fr
 Alec Wolman                 wolman@cs.washington.edu
 Alexandre Duret-Lutz        duret_g@epita.fr
index 1adfaeb83b073a1a32f333ffaeb67d0b21d9bfc3..67ebeb169c963564049aafb0faa0c775dc09f0d3 100644 (file)
@@ -1109,9 +1109,10 @@ AC_DEFUN([AC_FUNC_SETPGRP],
 # include <unistd.h>
 #endif
 ],
-[/* If this system has a BSD-style setpgrp, which takes arguments, exit
-   successfully.  */
-  exit (setpgrp (1,1) == -1);])],
+[/* If this system has a BSD-style setpgrp which takes arguments,
+  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
+  exit successfully. */
+  exit (setpgrp (1,1) == -1 ? 0 : 1);])],
                [ac_cv_func_setpgrp_void=no],
                [ac_cv_func_setpgrp_void=yes],
                [AC_MSG_ERROR([cannot check setpgrp if cross compiling])])])