diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-09-18 18:16:38 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-09-18 18:18:23 +0200 |
commit | 6c1b61b0292359304863cd6e593b8f5d7a2cb94a (patch) | |
tree | 3768a863cbf68838a3b10dbc323e8db7d49c0403 | |
parent | 970b56c40c0c66125d4dfe6d7708c3535551cd4a (diff) |
configure: test if tput(1) exists before calling it
Change-Id: I63576b42187fb0cbf3fc867487e9530fd11319d5
-rw-r--r-- | configure.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.in b/configure.in index eafb07b217df..7f9ec0119261 100644 --- a/configure.in +++ b/configure.in @@ -56,7 +56,7 @@ add_warning() if test "$have_WARNINGS" = "no" ; then echo "*************************************" >> warn have_WARNINGS="yes" - if test $(tput colors) -ge 8 ; then + if which tput >/dev/null 2>/dev/null && test `tput colors` -ge 8; then dnl <esc> as actual byte (U+1b), [ escaped using quadrigraph @<:@ COLORWARN='*@<:@1;33;40m WARNING @<:@0m:' else |