OSDN Git Service

configure: simplify set_default function
authorMåns Rullgård <mans@mansr.com>
Sun, 23 Nov 2008 12:36:31 +0000 (12:36 +0000)
committerMåns Rullgård <mans@mansr.com>
Sun, 23 Nov 2008 12:36:31 +0000 (12:36 +0000)
Originally committed as revision 15911 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 5cf1ef6..617ad55 100755 (executable)
--- a/configure
+++ b/configure
@@ -362,7 +362,7 @@ disabled_any(){
 
 set_default(){
     for opt; do
-        eval test -z "\$$opt" && eval $opt=\$${opt}_default
+        eval : \${$opt:=\$${opt}_default}
     done
 }