diff options
author | Måns Rullgård <mans@mansr.com> | 2008-07-12 20:55:04 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2008-07-12 20:55:04 +0000 |
commit | 3250003c79e24f79d00603b67b2b9543fbd10e82 (patch) | |
tree | 84d5716c4ad1beecb481793dc5dfdf8c8b4e7ccd /configure | |
parent | dd57251cb0945c1eaf7eebbf23cdab77278ce05f (diff) | |
download | ffmpeg-3250003c79e24f79d00603b67b2b9543fbd10e82.tar.gz |
configure: allow !foo as argument to enabled/disabled and *_deps lists
Originally committed as revision 14194 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -269,11 +269,13 @@ disable(){ } enabled(){ - eval test "x\$$1" = "xyes" + test "${1#!}" = "$1" && op== || op=!= + eval test "x\$${1#!}" $op "xyes" } disabled(){ - eval test "x\$$1" = "xno" + test "${1#!}" = "$1" && op== || op=!= + eval test "x\$${1#!}" $op "xno" } enabled_all(){ @@ -317,6 +319,7 @@ is_in(){ check_deps(){ for cfg; do + cfg="${cfg#!}" enabled ${cfg}_checking && die "Circular dependency for $cfg." disabled ${cfg}_checking && continue enable ${cfg}_checking |