From aa397b7d69e3320411271c7e9c66d816ef21f7ad Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Tue, 21 May 2024 13:44:07 +0200 Subject: [PATCH] Simplify required functions checks in ext/pcntl --- ext/pcntl/config.m4 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/pcntl/config.m4 b/ext/pcntl/config.m4 index 658cff7d0dc61..4d54d75fb0302 100644 --- a/ext/pcntl/config.m4 +++ b/ext/pcntl/config.m4 @@ -4,9 +4,9 @@ PHP_ARG_ENABLE([pcntl], [Enable pcntl support (CLI/CGI only)])]) if test "$PHP_PCNTL" != "no"; then - AC_CHECK_FUNCS([fork], [], [AC_MSG_ERROR([pcntl: fork() not supported by this platform])]) - AC_CHECK_FUNCS([waitpid], [], [AC_MSG_ERROR([pcntl: waitpid() not supported by this platform])]) - AC_CHECK_FUNCS([sigaction], [], [AC_MSG_ERROR([pcntl: sigaction() not supported by this platform])]) + AC_CHECK_FUNCS([fork waitpid sigaction],, + [AC_MSG_ERROR([ext/pcntl: required function $ac_func() not found.])]) + AC_CHECK_FUNCS(m4_normalize([ forkx getcpuid