autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AC_FUNC_FORK


From: Andreas Buening
Subject: AC_FUNC_FORK
Date: Sat, 22 Jun 2002 16:09:35 +0200

Hello!

If a system has an existing but non working fork() implementation
then $ac_cv_func_fork_works will be set to "yes" and therefore
_AC_FUNC_FORK assumes that it has been already tested successfully.
I suggest the following patch:

----------------------------------
--- old/autoconf-2.53/lib/autoconf/functions.m4 Mon Mar  4 14:34:20 2002
+++ gnu/autoconf-2.53/lib/autoconf/functions.m4 Sat Jun 22 16:04:56 2002
@@ -1387,9 +1387,10 @@
 [AC_REQUIRE([AC_TYPE_PID_T])dnl
 AC_CHECK_HEADERS(unistd.h vfork.h)
 AC_CHECK_FUNCS(fork vfork)
-ac_cv_func_fork_works=$ac_cv_func_fork
 if test "x$ac_cv_func_fork" = xyes; then
   _AC_FUNC_FORK
+else
+  ac_cv_func_fork_works=$ac_cv_func_fork
 fi
 if test "x$ac_cv_func_fork_works" = xcross; then
   case $host in
----------------------------------

bye,
Andreas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]