Skip to content

Commit c4546d4

Browse files
authored
Autotools: Sync CS in ext/standard process check (#15049)
- AC_* macros simplified and arguments quoted
1 parent 97afc86 commit c4546d4

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

ext/standard/config.m4

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -263,19 +263,14 @@ dnl
263263
dnl Check if there is a support means of creating a new process and defining
264264
dnl which handles it receives
265265
dnl
266-
AC_CHECK_FUNCS([fork CreateProcess], [
267-
php_can_support_proc_open=yes
268-
break
269-
],[
270-
php_can_support_proc_open=no
271-
])
266+
AC_CHECK_FUNCS([fork CreateProcess],
267+
[php_can_support_proc_open=yes; break;],
268+
[php_can_support_proc_open=no])
272269
AC_MSG_CHECKING([if your OS can spawn processes with inherited handles])
273-
if test "$php_can_support_proc_open" = "yes"; then
274-
AC_MSG_RESULT(yes)
275-
AC_DEFINE(PHP_CAN_SUPPORT_PROC_OPEN,1, [Define if your system has fork/vfork/CreateProcess])
276-
else
277-
AC_MSG_RESULT(no)
278-
fi
270+
AS_VAR_IF([php_can_support_proc_open], [yes],
271+
[AC_DEFINE([PHP_CAN_SUPPORT_PROC_OPEN], [1],
272+
[Define to 1 if your system has fork/vfork/CreateProcess.])])
273+
AC_MSG_RESULT([$php_can_support_proc_open])
279274

280275
PHP_ENABLE_CHROOT_FUNC=no
281276
case "$PHP_SAPI" in

0 commit comments

Comments
 (0)