From fac54c8ef6ac57fe0ce73138c55c17210925f9b2 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Sun, 14 Jul 2024 02:55:38 +0200 Subject: [PATCH] Autotools: Quote RE2C_FLAGS argument This enables and simplifies adding blank-or-newline-separated global re2c flags to the PHP_PROG_RE2C macro possibly at some point. Fixed just in case, so this works normally: PHP_PROG_RE2C([1.0.3], [--no-generation-date -W -foo]) --- build/php.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/php.m4 b/build/php.m4 index dc373be3512f4..67cfa562bb308 100644 --- a/build/php.m4 +++ b/build/php.m4 @@ -1740,7 +1740,7 @@ AC_DEFUN([PHP_PROG_RE2C],[ esac PHP_SUBST([RE2C]) - AS_VAR_SET([RE2C_FLAGS], [m4_normalize([$2])]) + AS_VAR_SET([RE2C_FLAGS], [m4_normalize(["$2"])]) PHP_SUBST([RE2C_FLAGS]) ])