Commit 196ae25f authored by mru's avatar mru

configure: allow recursive foo_select options

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15688 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 32cea91e
...@@ -277,6 +277,21 @@ disable(){ ...@@ -277,6 +277,21 @@ disable(){
set_all no $* set_all no $*
} }
do_enable_deep(){
for var; do
enabled $var && continue
eval sel="\$${var}_select"
pushvar var
enable_deep $sel
popvar var
done
}
enable_deep(){
do_enable_deep $*
enable $*
}
enabled(){ enabled(){
test "${1#!}" = "$1" && op== || op=!= test "${1#!}" = "$1" && op== || op=!=
eval test "x\$${1#!}" $op "xyes" eval test "x\$${1#!}" $op "xyes"
...@@ -349,7 +364,7 @@ check_deps(){ ...@@ -349,7 +364,7 @@ check_deps(){
if enabled $cfg; then if enabled $cfg; then
eval dep_extralibs="\$${cfg}_extralibs" eval dep_extralibs="\$${cfg}_extralibs"
test -n "$dep_extralibs" && add_extralibs $dep_extralibs test -n "$dep_extralibs" && add_extralibs $dep_extralibs
enable $dep_sel enable_deep $dep_sel
fi fi
disable ${cfg}_checking disable ${cfg}_checking
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment