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
This commit is contained in:
Jonathan Schleifer 2020-11-21 22:28:53 +00:00
parent 95b2b15893
commit 766a8158c0

View file

@ -49,7 +49,18 @@ AC_DEFUN([BUILDSYS_INIT], [
AC_SUBST(AMIGA_LIB_CFLAGS) AC_SUBST(AMIGA_LIB_CFLAGS)
AC_SUBST(AMIGA_LIB_LDFLAGS) 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""], [ AS_IF([test x"$TPUT" != x""], [
if x=$($TPUT el 2>/dev/null); then if x=$($TPUT el 2>/dev/null); then