From 766a8158c0377bc28bb1d86f9f7de8528aec6009 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Sat, 21 Nov 2020 22:28:53 +0000 Subject: [PATCH] Don't use tput on MorphOS The colored output is quite unreadable and in some MorphOS versions, the output from tput is not 8-bit safe, with awk (for AC_SUBST) failing as a result. FossilOrigin-Name: 349e5fb9d2ed4181d6db16fb995e496d4a1730add9c8e2984a0a9b53b0d5cbff --- build-aux/m4/buildsys.m4 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/build-aux/m4/buildsys.m4 b/build-aux/m4/buildsys.m4 index aa9576a..9064707 100644 --- a/build-aux/m4/buildsys.m4 +++ b/build-aux/m4/buildsys.m4 @@ -49,7 +49,18 @@ AC_DEFUN([BUILDSYS_INIT], [ AC_SUBST(AMIGA_LIB_CFLAGS) AC_SUBST(AMIGA_LIB_LDFLAGS) - AC_PATH_PROG(TPUT, tput) + case "$build_os" in + morphos*) + dnl Don't use tput on MorphOS: The colored + dnl output is quite unreadable and in some + dnl MorphOS versions, the output from tput is + dnl not 8-bit safe, with awk (for AC_SUBST) + dnl failing as a result. + ;; + *) + AC_PATH_PROG(TPUT, tput) + ;; + esac AS_IF([test x"$TPUT" != x""], [ if x=$($TPUT el 2>/dev/null); then