_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
This commit is contained in:
nobu 2018-11-19 07:00:12 +00:00
Родитель 74564fbe74
Коммит 38adc0c1e0
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -2,12 +2,12 @@
AC_DEFUN([_COLORIZE_RESULT_PREPARE], [ AC_DEFUN([_COLORIZE_RESULT_PREPARE], [
msg_checking= msg_result_yes= msg_result_no= msg_result_other= msg_reset= msg_checking= msg_result_yes= msg_result_no= msg_result_other= msg_reset=
AS_CASE(["x${CONFIGURE_TTY}"], AS_CASE(["x${CONFIGURE_TTY}"],
[xyes|xalways],[rb_cv_configure_tty=1], [xyes|xalways],[configure_tty=1],
[xno|xnever], [rb_cv_configure_tty=0], [xno|xnever], [configure_tty=0],
[AS_IF([test -t 1], [AS_IF([test -t 1],
[rb_cv_configure_tty=1], [configure_tty=1],
[rb_cv_configure_tty=0])]) [configure_tty=0])])
AS_IF([test $rb_cv_configure_tty -eq 1], [ AS_IF([test $configure_tty -eq 1], [
msg_begin="`tput smso 2>/dev/null`" msg_begin="`tput smso 2>/dev/null`"
AS_CASE(["$msg_begin"], ['@<:@'*m], AS_CASE(["$msg_begin"], ['@<:@'*m],
[msg_begin="`echo "$msg_begin" | sed ['s/[0-9]*m$//']`" [msg_begin="`echo "$msg_begin" | sed ['s/[0-9]*m$//']`"