aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-01-25 14:44:07 +0000
committerMans Rullgard <mans@mansr.com>2011-01-25 20:32:08 +0000
commit9d201b260627aacdb00e4a54622849aca11d85ee (patch)
treea02f964487b7670b3204e920434f61f792e74c0c /configure
parent44002d8323023c35f51d523a7d305e45103ba7a1 (diff)
downloadffmpeg-9d201b260627aacdb00e4a54622849aca11d85ee.tar.gz
configure: add filter_out() function
This adds a function to filter out words matching a pattern from a list. Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure
index 70b18b3b05..51e1172775 100755
--- a/configure
+++ b/configure
@@ -321,6 +321,14 @@ filter(){
done
}
+filter_out(){
+ pat=$1
+ shift
+ for v; do
+ eval "case $v in $pat) ;; *) echo $v ;; esac"
+ done
+}
+
map(){
m=$1
shift