@@ -291,20 +291,18 @@ AC_MSG_RESULT(done)
291
291
292
292
AC_ARG_ENABLE ( [ zend-signals] ,
293
293
[ AS_HELP_STRING ( [ --disable-zend-signals] ,
294
- [ whether to enable zend signal handling] ) ] ,
294
+ [ whether to enable Zend signal handling] ) ] ,
295
295
[ ZEND_SIGNALS=$enableval] ,
296
296
[ ZEND_SIGNALS=yes] )
297
297
298
- AC_CHECK_FUNCS ( [ sigaction] , [ ] , [
299
- ZEND_SIGNALS=no
300
- ] )
301
- if test "$ZEND_SIGNALS" = "yes"; then
302
- AC_DEFINE ( ZEND_SIGNALS , 1 , [ Use zend signal handling] )
303
- CFLAGS="$CFLAGS -DZEND_SIGNALS"
304
- fi
298
+ AC_CHECK_FUNCS ( [ sigaction] ,, [ ZEND_SIGNALS=no] )
299
+ AS_VAR_IF ( [ ZEND_SIGNALS] , [ yes] ,
300
+ [ AC_DEFINE ( [ ZEND_SIGNALS] , [ 1] ,
301
+ [ Define to 1 if Zend signal handling is enabled.] )
302
+ AS_VAR_APPEND ( [ CFLAGS] , [ " -DZEND_SIGNALS"] ) ] )
305
303
306
- AC_MSG_CHECKING ( whether to enable zend signal handling )
307
- AC_MSG_RESULT ( $ZEND_SIGNALS )
304
+ AC_MSG_CHECKING ( [ whether to enable Zend signal handling] )
305
+ AC_MSG_RESULT ( [ $ZEND_SIGNALS] )
308
306
309
307
dnl Don't enable Zend Max Execution Timers by default until PHP 8.3 to not break the ABI
310
308
AC_ARG_ENABLE ( [ zend-max-execution-timers] ,
0 commit comments