From d5770a0acd45e72ac121bfa114e150721a2a2da9 Mon Sep 17 00:00:00 2001
From: Bill Currie <bill@taniwha.org>
Date: Thu, 16 Nov 2023 17:39:31 +0900
Subject: [PATCH] Allow white space in yymore and yyreject checks

AC_PROG_LEX puts a space between yymore and its ()s causing the yymore
check to fail and thus break configure.
---
 src/scan.l | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/scan.l b/src/scan.l
index ed5560f30..37b37ca86 100644
--- a/src/scan.l
+++ b/src/scan.l
@@ -922,11 +922,11 @@ nmstr[yyleng - 2 - end_is_ws] = '\0';  /* chop trailing brace */
 			ACTION_ECHO;
 			CHECK_REJECT(yytext);
         }
-		"yyreject()" {
+		"yyreject"{OPTWS}"("{OPTWS}")" {
 			add_action("]""]M4_HOOK_REJECT[""[");
 			CHECK_YYREJECT(yytext);
         }
-		"yymore()" {
+		"yymore"{OPTWS}"("{OPTWS}")" {
 			yymore_used = true;
 			if (ctrl.rewrite)
 				context_call(yytext);