1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

configure: Reenable colorized warnings and check for tput's existence

Untested.
This commit is contained in:
Timothy Gu 2015-09-07 19:11:16 -07:00
parent 12e6b64cd4
commit 617d53f4c7

10
configure vendored
View File

@ -416,6 +416,14 @@ EOF
}
quotes='""'
if test -t 1 && which tput >/dev/null; then
ncolors=$(tput colors)
if test -n "$ncolors" && test $ncolors -ge 8; then
bold_color=$(tput bold)
warn_color=$(tput setaf 3)
reset_color=$(tput sgr0)
fi
fi
log(){
echo "$@" >> $logfile
@ -6201,7 +6209,7 @@ echo "#endif /* AVUTIL_AVCONFIG_H */" >> $TMPH
cp_if_changed $TMPH libavutil/avconfig.h
if test -n "$WARNINGS"; then
printf "\n$WARNINGS"
printf "\n%s%s$WARNINGS%s" "$warn_color" "$bold_color" "$reset_color"
enabled fatal_warnings && exit 1
fi