Commit 7bfc8ae6 authored by Måns Rullgård's avatar Måns Rullgård
Browse files

configure: add 'warn' function

The 'warn' function records a warning message for display after other
informational messages.

Originally committed as revision 23760 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 5113b3bd
...@@ -265,6 +265,11 @@ echolog(){ ...@@ -265,6 +265,11 @@ echolog(){
echo "$@" echo "$@"
} }
warn(){
log "WARNING: $*"
WARNINGS="${WARNINGS}WARNING: $*\n"
}
die(){ die(){
echolog "$@" echolog "$@"
cat <<EOF cat <<EOF
...@@ -3069,6 +3074,8 @@ echo "#endif /* AVUTIL_AVCONFIG_H */" >> $TMPH ...@@ -3069,6 +3074,8 @@ echo "#endif /* AVUTIL_AVCONFIG_H */" >> $TMPH
cp_if_changed $TMPH libavutil/avconfig.h cp_if_changed $TMPH libavutil/avconfig.h
test -n "$WARNINGS" && printf "\n$WARNINGS"
# build pkg-config files # build pkg-config files
pkgconfig_generate(){ pkgconfig_generate(){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment