From: Paul Eggert Date: Sun, 2 Apr 2023 03:25:13 +0000 (-0700) Subject: Support underquoted callers better X-Git-Tag: v2.72d~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=794182506c3c5814d48b2fc4d832770f608ce0ef;p=thirdparty%2Fautoconf.git Support underquoted callers better Problem reported bh Khem Raj for mcpp 2.7.2 (2008) in: https://lists.gnu.org/r/autoconf/2023-04/msg00001.html * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Add two ‘@%:@(’s to cater to underquoted callers. * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Use quadrigraph instead of ‘#’, for underquoted callers. --- diff --git a/lib/autoconf/programs.m4 b/lib/autoconf/programs.m4 index 62ba6b8b6..d06d18c44 100644 --- a/lib/autoconf/programs.m4 +++ b/lib/autoconf/programs.m4 @@ -543,11 +543,12 @@ dnl # for best performing tool in a list breaks down. # ---------------------------------------------------------------- m4_define([_AC_PATH_PROG_FLAVOR_GNU], [# Check for GNU $1 -case `"$1" --version 2>&1` in +case `"$1" --version 2>&1` in @%:@( *GNU*) $2;; m4_ifval([$3], -[*) +[@%:@( +*) $3;; ])esac ])# _AC_PATH_PROG_FLAVOR_GNU diff --git a/lib/m4sugar/m4sh.m4 b/lib/m4sugar/m4sh.m4 index ab5ca7db7..368487fa0 100644 --- a/lib/m4sugar/m4sh.m4 +++ b/lib/m4sugar/m4sh.m4 @@ -1389,7 +1389,7 @@ m4_if([$1], m4_translit([[$1]], [:;]), for as_dir in $as_dummy]) do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;;