From 38282ae72f241c27059ef59b15c44fbf3da8e5b6 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Sun, 21 Jul 2024 01:50:07 +0200 Subject: [PATCH] Autotools: Sync CS in ext/standard process check - AC_* macros simplified and arguments quoted --- ext/standard/config.m4 | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/ext/standard/config.m4 b/ext/standard/config.m4 index 5da848363e01a..b055af732a832 100644 --- a/ext/standard/config.m4 +++ b/ext/standard/config.m4 @@ -263,19 +263,14 @@ dnl dnl Check if there is a support means of creating a new process and defining dnl which handles it receives dnl -AC_CHECK_FUNCS([fork CreateProcess], [ - php_can_support_proc_open=yes - break -],[ - php_can_support_proc_open=no -]) +AC_CHECK_FUNCS([fork CreateProcess], + [php_can_support_proc_open=yes; break;], + [php_can_support_proc_open=no]) AC_MSG_CHECKING([if your OS can spawn processes with inherited handles]) -if test "$php_can_support_proc_open" = "yes"; then - AC_MSG_RESULT(yes) - AC_DEFINE(PHP_CAN_SUPPORT_PROC_OPEN,1, [Define if your system has fork/vfork/CreateProcess]) -else - AC_MSG_RESULT(no) -fi +AS_VAR_IF([php_can_support_proc_open], [yes], + [AC_DEFINE([PHP_CAN_SUPPORT_PROC_OPEN], [1], + [Define to 1 if your system has fork/vfork/CreateProcess.])]) +AC_MSG_RESULT([$php_can_support_proc_open]) PHP_ENABLE_CHROOT_FUNC=no case "$PHP_SAPI" in