[FFmpeg-cvslog] r21215 - trunk/configure
mru
subversion
Thu Jan 14 19:25:39 CET 2010
Author: mru
Date: Thu Jan 14 19:25:38 2010
New Revision: 21215
Log:
configure: allow reverse auto-selection of options
This adds the possibility to set foo_if and foo_if_any variables,
causing foo to be enabled if all/any of the listed options are
enabled.
Modified:
trunk/configure
Modified: trunk/configure
==============================================================================
--- trunk/configure Thu Jan 14 18:50:33 2010 (r21214)
+++ trunk/configure Thu Jan 14 19:25:38 2010 (r21215)
@@ -450,11 +450,15 @@ check_deps(){
eval dep_any="\$${cfg}_deps_any"
eval dep_sel="\$${cfg}_select"
eval dep_sgs="\$${cfg}_suggest"
+ eval dep_ifa="\$${cfg}_if"
+ eval dep_ifn="\$${cfg}_if_any"
- pushvar cfg dep_all dep_any dep_sel dep_sgs
- check_deps $dep_all $dep_any $dep_sel $dep_sgs
- popvar cfg dep_all dep_any dep_sel dep_sgs
+ pushvar cfg dep_all dep_any dep_sel dep_sgs dep_ifa dep_ifn
+ check_deps $dep_all $dep_any $dep_sel $dep_sgs $dep_ifa $dep_ifn
+ popvar cfg dep_all dep_any dep_sel dep_sgs dep_ifa dep_ifn
+ [ -n "$dep_ifa" ] && { enabled_all $dep_ifa && enable_weak $cfg; }
+ [ -n "$dep_ifn" ] && { enabled_any $dep_ifn && enable_weak $cfg; }
enabled_all $dep_all || disable $cfg
enabled_any $dep_any || disable $cfg
disabled_any $dep_sel && disable $cfg
More information about the ffmpeg-cvslog
mailing list