From 621dda5cd2d10898d9787e35f0cd80c1df1857ee Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Fri, 11 Jul 2025 13:50:50 +0000 Subject: [PATCH] Fix SQUID_YESNO 'syntax error near unexpected token' (#2117) autoconf can be confused by use of commas (,) in the error message when the SQUID_YESNO macro is followed by AC_CASE. --- acinclude/squid-util.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acinclude/squid-util.m4 b/acinclude/squid-util.m4 index f1c4770408..339220b0f5 100644 --- a/acinclude/squid-util.m4 +++ b/acinclude/squid-util.m4 @@ -211,7 +211,7 @@ unset squid_tmp_define dnl aborts with an error specified as the second argument if the first argument doesn't dnl contain either "yes" or "no" AC_DEFUN([SQUID_YESNO],[ - AS_IF([test "$1" != "yes" -a "$1" != "no"],[AC_MSG_ERROR([Bad argument for $2: "$1". Expecting "yes", "no", or no argument.])]) + AS_IF([test "$1" != "yes" -a "$1" != "no"],[AC_MSG_ERROR([[Bad argument for $2: '$1'. Expecting 'yes', 'no', or no argument.]])]) ]) dnl Check that a library is actually available, useable, -- 2.39.5