configure: fix filter() function when matching multiple patterns
authorMåns Rullgård <mans@mansr.com>
Sun, 23 Aug 2009 15:39:39 +0000 (15:39 +0000)
committerMåns Rullgård <mans@mansr.com>
Sun, 23 Aug 2009 15:39:39 +0000 (15:39 +0000)
This makes comma-separated patters to --disable-decoder and friends
work correctly with POSIX-compliant shells.

Originally committed as revision 19688 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 6d918c8..5c13369 100755 (executable)
--- a/configure
+++ b/configure
@@ -295,7 +295,7 @@ filter(){
     pat=$1
     shift
     for v; do
-        case "$v" in $pat) echo "$v" ;; esac
+        eval "case $v in $pat) echo $v ;; esac"
     done
 }