mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
configure: allow !foo as argument to enabled/disabled and *_deps lists
Originally committed as revision 14194 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
dd57251cb0
commit
3250003c79
7
configure
vendored
7
configure
vendored
@ -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(){
|
|||||||
|
|
||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user