configure: allow names with spaces in enable/disable_safe
authorMåns Rullgård <mans@mansr.com>
Mon, 11 Jan 2010 13:36:58 +0000 (13:36 +0000)
committerMåns Rullgård <mans@mansr.com>
Mon, 11 Jan 2010 13:36:58 +0000 (13:36 +0000)
Originally committed as revision 21137 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 8bccec5..b595496 100755 (executable)
--- a/configure
+++ b/configure
@@ -355,11 +355,15 @@ disable_weak(){
 }
 
 enable_safe(){
-    enable $(echo "$*" | sed 's/[^A-Za-z0-9_ ]/_/g')
+    for var; do
+        enable $(echo "$var" | sed 's/[^A-Za-z0-9_]/_/g')
+    done
 }
 
 disable_safe(){
-    disable $(echo "$*" | sed 's/[^A-Za-z0-9_ ]/_/g')
+    for var; do
+        disable $(echo "$var" | sed 's/[^A-Za-z0-9_]/_/g')
+    done
 }
 
 do_enable_deep(){