diff options
author | Måns Rullgård <mans@mansr.com> | 2008-10-24 21:44:45 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2008-10-24 21:44:45 +0000 |
commit | 7ef3425f0a6e49a10a0392acd67b7580b399b41a (patch) | |
tree | 8522077c30d187cc706172f3cd02063f8fb772aa /configure | |
parent | f7b230a761d49ec5d5b88fff42f5c2b8a21a29be (diff) | |
download | ffmpeg-7ef3425f0a6e49a10a0392acd67b7580b399b41a.tar.gz |
configure: add foo_select facility
If an option 'foo' is enabled, all options listed in foo_select
are automatically enabled, unless explicitly disabled. In the
latter case, foo is also disabled.
Originally committed as revision 15684 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -336,17 +336,20 @@ check_deps(){ eval dep_all="\$${cfg}_deps" eval dep_any="\$${cfg}_deps_any" + eval dep_sel="\$${cfg}_select" - pushvar cfg dep_all dep_any - check_deps $dep_all $dep_any - popvar cfg dep_all dep_any + pushvar cfg dep_all dep_any dep_sel + check_deps $dep_all $dep_any $dep_sel + popvar cfg dep_all dep_any dep_sel enabled_all $dep_all || disable $cfg enabled_any $dep_any || disable $cfg + disabled_any $dep_sel && disable $cfg if enabled $cfg; then eval dep_extralibs="\$${cfg}_extralibs" test -n "$dep_extralibs" && add_extralibs $dep_extralibs + enable $dep_sel fi disable ${cfg}_checking |