Skip to content

Commit

Permalink
Fix check for using computed goto flag for re2c
Browse files Browse the repository at this point in the history
AC_LANG_SOURCE should be used instead of the AC_LANG_PROG so the
compilation check can succeed when the computed goto extension is
available to optimize conditional jumps.
  • Loading branch information
petk committed Aug 9, 2023
1 parent 4833b84 commit d802f6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ if test "$PHP_RE2C_CGOTO" = "no"; then
RE2C_FLAGS=""
else
AC_MSG_CHECKING([whether re2c -g works])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
int main(int argc, const char **argv)
{
argc = argc;
Expand Down

0 comments on commit d802f6d

Please sign in to comment.