changeset 36787:4704c3f95273

configure: Avoid annoying error messages in case of external FFmpeg.
author ib
date Wed, 19 Feb 2014 01:18:34 +0000
parents 568afd60302c
children 64a53697effe
files configure
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Feb 18 22:14:59 2014 +0000
+++ b/configure	Wed Feb 19 01:18:34 2014 +0000
@@ -1532,19 +1532,32 @@
 fi
 
 list_subparts() {
+  test ! -e ffmpeg/libav${3} && return 1
   pattern="s/^[^#]*${1}.*([^ ,]*, *\([^ ,)]*\).*/\1_${2}/p"
   sed -n "$pattern" ffmpeg/libav${3} | toupper
+  return 0
 }
 
+echocheck "ffmpeg/libavcodec/allcodecs.c"
 libavdecoders_all=$(list_subparts  DEC      decoder  codec/allcodecs.c)
 libavencoders_all=$(list_subparts  ENC      encoder  codec/allcodecs.c)
 libavparsers_all=$(list_subparts   PARSER   parser   codec/allcodecs.c)
 libavbsfs_all=$(list_subparts      BSF      bsf      codec/allcodecs.c)
 libavhwaccels_all=$(list_subparts  HWACCEL  hwaccel  codec/allcodecs.c)
+test $? -eq 0 && _list_subparts=found || _list_subparts="not found"
+echores "$_list_subparts"
+
+echocheck "ffmpeg/libavformat/allformats.c"
 libavdemuxers_all=$(list_subparts  DEMUX    demuxer  format/allformats.c)
 libavmuxers_all=$(list_subparts    _MUX     muxer    format/allformats.c)
 libavprotocols_all=$(list_subparts PROTOCOL protocol format/allformats.c)
+test $? -eq 0 && _list_subparts=found || _list_subparts="not found"
+echores "$_list_subparts"
+
+echocheck "ffmpeg/libavfilter/allfilters.c"
 libavfilters_all=$(list_subparts   FILTER   filter   filter/allfilters.c)
+test $? -eq 0 && _list_subparts=found || _list_subparts="not found"
+echores "$_list_subparts"
 
 filter_out_component() {
   eval list=\$libav${1}s