]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix SQUID_YESNO 'syntax error near unexpected token' (#2117) auto master
authorAmos Jeffries <yadij@users.noreply.github.com>
Fri, 11 Jul 2025 13:50:50 +0000 (13:50 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Fri, 11 Jul 2025 16:44:09 +0000 (16:44 +0000)
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

index f1c4770408122bddd4f56b383875113602cc309e..339220b0f5681596ce3da7f66aef94b081e71ad4 100644 (file)
@@ -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,