From: Akim Demaille Date: Sun, 27 Oct 2002 18:30:39 +0000 (+0000) Subject: * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use X-Git-Tag: AUTOCONF-2.54b~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c5c6ff00b4f564aeeae3fb70efda458c886eca6;p=thirdparty%2Fautoconf.git * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use AC_RUN_IFELSE. --- diff --git a/ChangeLog b/ChangeLog index 1633a735c..0f138d8ce 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-10-27 Akim Demaille + + * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use + AC_RUN_IFELSE. + 2002-10-27 Akim Demaille * doc/autoconf.texi: More AC_MSG_FAILURE promotion. diff --git a/lib/autoconf/functions.m4 b/lib/autoconf/functions.m4 index 67142122d..d8f8ba20d 100644 --- a/lib/autoconf/functions.m4 +++ b/lib/autoconf/functions.m4 @@ -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 #include #include @@ -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])]) diff --git a/tests/acgeneral.at b/tests/acgeneral.at index 38df5f366..324d05c72 100644 --- a/tests/acgeneral.at +++ b/tests/acgeneral.at @@ -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])