diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-19 07:00:12 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-19 07:00:12 +0000 |
commit | 38adc0c1e08c0b754c55624e9a0661a633fa7997 (patch) | |
tree | a687fca84ff245cc6be06ba778d1c63a287bfe58 /tool | |
parent | 74564fbe74835a9d7a8ff178d535078ecc85a9bc (diff) | |
download | ruby-38adc0c1e08c0b754c55624e9a0661a633fa7997.tar.gz |
_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
Diffstat (limited to 'tool')
-rw-r--r-- | tool/m4/_colorize_result_prepare.m4 | 10 |
1 files changed, 5 insertions, 5 deletions
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$//']`" |