[FFmpeg-cvslog] r24119 - trunk/configure
mru
subversion
Thu Jul 8 20:44:03 CEST 2010
Author: mru
Date: Thu Jul 8 20:44:03 2010
New Revision: 24119
Log:
configure: add print_enabled() function
The print_enabled() function prints all elements in a list which
are enabled.
Modified:
trunk/configure
Modified: trunk/configure
==============================================================================
--- trunk/configure Thu Jul 8 20:44:00 2010 (r24118)
+++ trunk/configure Thu Jul 8 20:44:03 2010 (r24119)
@@ -510,6 +510,15 @@ print_config(){
done
}
+print_enabled(){
+ test "$1" = -n && end=" " && shift || end="\n"
+ suf=$1
+ shift
+ for v; do
+ enabled $v && printf "%s$end" ${v%$suf};
+ done
+}
+
append(){
var=$1
shift
@@ -2829,9 +2838,7 @@ echo
for type in decoder encoder hwaccel parser demuxer muxer protocol filter bsf indev outdev; do
echo "Enabled ${type}s:"
eval list=\$$(toupper $type)_LIST
- for part in $list; do
- enabled $part && echo ${part%_*}
- done | sort | pr -3 -t
+ print_enabled '_*' $list | sort | pr -3 -t
echo
done
More information about the ffmpeg-cvslog
mailing list