aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2008-10-24 23:18:04 +0000
committerMåns Rullgård <mans@mansr.com>2008-10-24 23:18:04 +0000
commitf9d328da8f071849395ec4be48bc0d6f1803f749 (patch)
tree76a942ac4ce12f643519d6d54422647263c126f9
parent7f8cd075e0f6a83c2d55cffaa5545776602125fd (diff)
downloadffmpeg-f9d328da8f071849395ec4be48bc0d6f1803f749.tar.gz
configure: allow recursive foo_select options
Originally committed as revision 15688 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xconfigure17
1 files changed, 16 insertions, 1 deletions
diff --git a/configure b/configure
index 036106e531..542c9a7949 100755
--- a/configure
+++ b/configure
@@ -277,6 +277,21 @@ disable(){
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(){
test "${1#!}" = "$1" && op== || op=!=
eval test "x\$${1#!}" $op "xyes"
@@ -349,7 +364,7 @@ check_deps(){
if enabled $cfg; then
eval dep_extralibs="\$${cfg}_extralibs"
test -n "$dep_extralibs" && add_extralibs $dep_extralibs
- enable $dep_sel
+ enable_deep $dep_sel
fi
disable ${cfg}_checking