]> git.draconx.ca Git - cdecl99.git/commitdiff
Fix TEST_NEED_PROGRAM to work on old Solaris /bin/sh.
authorNick Bowler <nbowler@draconx.ca>
Sat, 1 Jul 2023 21:26:08 +0000 (17:26 -0400)
committerNick Bowler <nbowler@draconx.ca>
Sat, 1 Jul 2023 21:41:16 +0000 (17:41 -0400)
Solaris /bin/sh does not support ${x##y} expansions.  For this macro
we can almost as easily use a case statement instead.

testsuite.at

index 30b1be6a802baaf6e612e8b36084177e1a130674..9533e66eddb6d4616b7792c9b83bb026f1ca7df4 100644 (file)
@@ -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])])