File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -239,18 +239,18 @@ AC_DEFUN([PHP_FPM_TRACE],
239
239
] )
240
240
241
241
AC_DEFUN ( [ PHP_FPM_BUILTIN_ATOMIC] ,
242
- [
243
- AC_MSG_CHECKING ( [ if gcc supports __sync_bool_compare_and_swap ] )
244
- AC_LINK_IFELSE ( [ AC_LANG_PROGRAM ( [ ] , [ [
242
+ [ AC_CACHE_CHECK ( [ if compiler supports __sync_bool_compare_and_swap ] ,
243
+ [ php_cv_have___sync_bool_compare_and_swap ] ,
244
+ [ AC_LINK_IFELSE ( [ AC_LANG_PROGRAM ( [ ] , [
245
245
int variable = 1;
246
246
return (__sync_bool_compare_and_swap(&variable, 1, 2)
247
247
&& __sync_add_and_fetch(&variable, 1)) ? 1 : 0;
248
- ] ] ) ] , [
249
- AC_MSG_RESULT ( [ yes] )
250
- AC_DEFINE ( HAVE_BUILTIN_ATOMIC , 1 , [ Define to 1 if gcc supports __sync_bool_compare_and_swap() a.o. ] )
251
- ] , [
252
- AC_MSG_RESULT ( [ no ] )
253
- ] )
248
+ ] ) ] ,
249
+ [ php_cv_have___sync_bool_compare_and_swap= yes] ,
250
+ [ php_cv_have___sync_bool_compare_and_swap=no ] ) ] )
251
+ AS_VAR_IF ( [ php_cv_have___sync_bool_compare_and_swap ] , [ yes ] ,
252
+ [ AC_DEFINE ( [ HAVE_BUILTIN_ATOMIC ] , [ 1 ] ,
253
+ [ Define to 1 if compiler supports __sync_bool_compare_and_swap() a.o. ] ) ] )
254
254
] )
255
255
256
256
AC_DEFUN ( [ PHP_FPM_LQ] ,
You can’t perform that action at this time.
0 commit comments