From 77923149528a1a661a9a816fa10d78d1c679564f Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Sat, 1 Jul 2023 17:26:08 -0400 Subject: [PATCH] Fix TEST_NEED_PROGRAM to work on old Solaris /bin/sh. Solaris /bin/sh does not support ${x##y} expansions. For this macro we can almost as easily use a case statement instead. --- testsuite.at | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuite.at b/testsuite.at index 30b1be6..9533e66 100644 --- a/testsuite.at +++ b/testsuite.at @@ -46,7 +46,7 @@ m4_divert_pop([PREPARE_TESTS]) m4_define([TEST_NEED_PROGRAM], [AT_KEYWORDS([$1])dnl AT_CHECK([for arg in $check_PROGRAMS; do -test x"${arg##*/}" != x"$1$EXEEXT" || exit 0 +progexe="$1$EXEEXT"; case $arg in "$progexe"|*/"$progexe") exit 0 ;; esac done exit 77])]) -- 2.43.2