From d802f6dfb100ded268a85e44e16744b5bc54410c Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Wed, 9 Aug 2023 23:52:23 +0200 Subject: [PATCH] Fix check for using computed goto flag for re2c 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. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 6d6d44e0597c4..9c538863ff153 100644 --- a/configure.ac +++ b/configure.ac @@ -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;