From 38adc0c1e08c0b754c55624e9a0661a633fa7997 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 19 Nov 2018 07:00:12 +0000 Subject: _colorize_result_prepare.m4: do not save CONFIGURE_TTY redirection to a tty, file or pipe is not a permanent status. `rb_cv_` prefix means that it should be saved/restored across re-configurations. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/m4/_colorize_result_prepare.m4 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tool/m4/_colorize_result_prepare.m4') diff --git a/tool/m4/_colorize_result_prepare.m4 b/tool/m4/_colorize_result_prepare.m4 index af572caa18..cc2bbaa703 100644 --- a/tool/m4/_colorize_result_prepare.m4 +++ b/tool/m4/_colorize_result_prepare.m4 @@ -2,12 +2,12 @@ AC_DEFUN([_COLORIZE_RESULT_PREPARE], [ msg_checking= msg_result_yes= msg_result_no= msg_result_other= msg_reset= AS_CASE(["x${CONFIGURE_TTY}"], - [xyes|xalways],[rb_cv_configure_tty=1], - [xno|xnever], [rb_cv_configure_tty=0], + [xyes|xalways],[configure_tty=1], + [xno|xnever], [configure_tty=0], [AS_IF([test -t 1], - [rb_cv_configure_tty=1], - [rb_cv_configure_tty=0])]) - AS_IF([test $rb_cv_configure_tty -eq 1], [ + [configure_tty=1], + [configure_tty=0])]) + AS_IF([test $configure_tty -eq 1], [ msg_begin="`tput smso 2>/dev/null`" AS_CASE(["$msg_begin"], ['@<:@'*m], [msg_begin="`echo "$msg_begin" | sed ['s/[0-9]*m$//']`" -- cgit v1.2.3