]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
authorAkim Demaille <akim@epita.fr>
Sun, 27 Oct 2002 18:30:39 +0000 (18:30 +0000)
committerAkim Demaille <akim@epita.fr>
Sun, 27 Oct 2002 18:30:39 +0000 (18:30 +0000)
AC_RUN_IFELSE.

ChangeLog
lib/autoconf/functions.m4
tests/acgeneral.at

index 1633a735cea6223b2e3929d4ea2f33ee03d4f2bc..0f138d8cefdb3a07278d03792d1da4e20d895075 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-10-27  Akim Demaille  <akim@epita.fr>
+
+       * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
+       AC_RUN_IFELSE.
+
 2002-10-27  Akim Demaille  <akim@epita.fr>
 
        * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
index 67142122dd3e5cd08a7d79381a6665c6c7e83af4..d8f8ba20d96ef9ea14428e59e76e7aa22133e8b9 100644 (file)
@@ -1748,7 +1748,7 @@ AC_DEFUN([_AC_FUNC_FORK],
 # -------------
 AC_DEFUN([_AC_FUNC_VFORK],
 [AC_CACHE_CHECK(for working vfork, ac_cv_func_vfork_works,
-[AC_TRY_RUN([/* Thanks to Paul Eggert for this test.  */
+[AC_RUN_IFELSE([AC_LANG_SOURCE([[/* Thanks to Paul Eggert for this test.  */
 #include <stdio.h>
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -1840,7 +1840,7 @@ main ()
         || fstat(fileno(stdout), &st) != 0
         );
   }
-}],
+}]])],
             [ac_cv_func_vfork_works=yes],
             [ac_cv_func_vfork_works=no],
             [ac_cv_func_vfork_works=cross])])
index 38df5f3664d7fbab07dd97c51eb5b83751b7140b..324d05c72e216bdf1fa838b5d87157f48114afb3 100644 (file)
@@ -16,5 +16,9 @@ AT_CHECK_MACRO([AC_PREFIX_DEFAULT])
 AT_CHECK_AU_MACRO([AC_CHECKING])
 AT_CHECK_AU_MACRO([AC_COMPILE_CHECK])
 AT_CHECK_AU_MACRO([AC_ENABLE])
+AT_CHECK_AU_MACRO([AC_TRY_COMPILE])
+AT_CHECK_AU_MACRO([AC_TRY_CPP])
+AT_CHECK_AU_MACRO([AC_TRY_LINK])
+AT_CHECK_AU_MACRO([AC_TRY_RUN])
 AT_CHECK_AU_MACRO([AC_VALIDATE_CACHED_SYSTEM_TUPLE])
 AT_CHECK_AU_MACRO([AC_WITH])