]> git.sesse.net Git - ffmpeg/commitdiff
configure: add 'warn' function
authorMåns Rullgård <mans@mansr.com>
Thu, 24 Jun 2010 20:49:32 +0000 (20:49 +0000)
committerMåns Rullgård <mans@mansr.com>
Thu, 24 Jun 2010 20:49:32 +0000 (20:49 +0000)
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

configure

index 8c8de8cb52480d079e0a5ad5dc88307585730891..8590064df3d0eff9f3f859d5e12047b456df766b 100755 (executable)
--- a/configure
+++ b/configure
@@ -265,6 +265,11 @@ echolog(){
     echo "$@"
 }
 
+warn(){
+    log "WARNING: $*"
+    WARNINGS="${WARNINGS}WARNING: $*\n"
+}
+
 die(){
     echolog "$@"
     cat <<EOF
@@ -3069,6 +3074,8 @@ echo "#endif /* AVUTIL_AVCONFIG_H */" >> $TMPH
 
 cp_if_changed $TMPH libavutil/avconfig.h
 
+test -n "$WARNINGS" && printf "\n$WARNINGS"
+
 # build pkg-config files
 
 pkgconfig_generate(){