Skip to content

Commit 186a07f

Browse files
authored
Fix too many arguments in FPM ACL compile check (php#12242)
The AC_COMPILE_IFELSE takes 3 arguments unlike AC_RUN_IFELSE which needs the 4th argument for cross-compilation.
1 parent 9652889 commit 186a07f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sapi/fpm/config.m4

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ if test "$PHP_FPM" != "no"; then
591591
return 0;
592592
}
593593
]])], [
594-
AC_CHECK_LIB(acl, acl_free,
594+
AC_CHECK_LIB(acl, acl_free,
595595
[PHP_ADD_LIBRARY(acl)
596596
have_fpm_acl=yes
597597
AC_MSG_RESULT([yes])
@@ -615,12 +615,12 @@ if test "$PHP_FPM" != "no"; then
615615
], [
616616
have_fpm_acl=no
617617
AC_MSG_RESULT([no])
618-
], [AC_MSG_RESULT([skipped])])
618+
], [AC_MSG_RESULT([skipped (cross-compiling)])])
619619
])
620620
], [
621621
have_fpm_acl=no
622622
AC_MSG_RESULT([no])
623-
], [AC_MSG_RESULT([skipped (cross-compiling)])])
623+
])
624624

625625
if test "$have_fpm_acl" = "yes"; then
626626
AC_DEFINE([HAVE_FPM_ACL], 1, [do we have acl support?])

0 commit comments

Comments
 (0)