Commit 70d2e893 authored by mru's avatar mru

configure: allow !foo as argument to enabled/disabled and *_deps lists

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14194 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 39d1d792
...@@ -269,11 +269,13 @@ disable(){ ...@@ -269,11 +269,13 @@ disable(){
} }
enabled(){ enabled(){
eval test "x\$$1" = "xyes" test "${1#!}" = "$1" && op== || op=!=
eval test "x\$${1#!}" $op "xyes"
} }
disabled(){ disabled(){
eval test "x\$$1" = "xno" test "${1#!}" = "$1" && op== || op=!=
eval test "x\$${1#!}" $op "xno"
} }
enabled_all(){ enabled_all(){
...@@ -317,6 +319,7 @@ is_in(){ ...@@ -317,6 +319,7 @@ is_in(){
check_deps(){ check_deps(){
for cfg; do for cfg; do
cfg="${cfg#!}"
enabled ${cfg}_checking && die "Circular dependency for $cfg." enabled ${cfg}_checking && die "Circular dependency for $cfg."
disabled ${cfg}_checking && continue disabled ${cfg}_checking && continue
enable ${cfg}_checking enable ${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