Merge commit '1f821e5ad3f8ebacbbb362668561ad976c392c9e'
authorJames Almer <jamrial@gmail.com>
Thu, 23 Mar 2017 21:41:46 +0000 (18:41 -0300)
committerJames Almer <jamrial@gmail.com>
Thu, 23 Mar 2017 21:43:39 +0000 (18:43 -0300)
* commit '1f821e5ad3f8ebacbbb362668561ad976c392c9e':
  configure: Print warnings after all other output

Merged-by: James Almer <jamrial@gmail.com>
1  2 
configure

diff --cc configure
index 487a4d7eef0c6c59871f0bea3183229f1f7d253c,745b5b7b91946dea0f251b9ad848d402cdb3892e..c1aeb6e252c1aaea55bb528e98f9b6a62e2b59d8
+++ b/configure
@@@ -6865,6 -5404,8 +6860,11 @@@ print_enabled_components()
  print_enabled_components libavcodec/bsf_list.c AVBitStreamFilter bitstream_filters $BSF_LIST
  print_enabled_components libavformat/protocol_list.c URLProtocol url_protocols $PROTOCOL_LIST
  
 -test -n "$WARNINGS" && printf "\n$WARNINGS"
++if test -n "$WARNINGS"; then
++    printf "\n%s%s$WARNINGS%s" "$warn_color" "$bold_color" "$reset_color"
++    enabled fatal_warnings && exit 1
++fi
  # build pkg-config files
  
  lib_version(){