ruby-changes:53585
From: nobu <ko1@a...>
Date: Mon, 19 Nov 2018 16:00:17 +0900 (JST)
Subject: [ruby-changes:53585] nobu:r65801 (trunk): _colorize_result_prepare.m4: do not save CONFIGURE_TTY
nobu 2018-11-19 16:00:12 +0900 (Mon, 19 Nov 2018) New Revision: 65801 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65801 Log: _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. Modified files: trunk/tool/m4/_colorize_result_prepare.m4 Index: tool/m4/_colorize_result_prepare.m4 =================================================================== --- tool/m4/_colorize_result_prepare.m4 (revision 65800) +++ tool/m4/_colorize_result_prepare.m4 (revision 65801) @@ -2,12 +2,12 @@ https://github.com/ruby/ruby/blob/trunk/tool/m4/_colorize_result_prepare.m4#L2 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$//']`" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/