diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-11-11 21:29:27 +0100 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-11-17 11:57:17 +0100 |
commit | c551c3b18bab9710bc50ddacf866431f43e033f6 (patch) | |
tree | 09ab72d4918a8b2661fbe369d47fc2d4a3a8422f | |
parent | a0f2d3fff5344649698f17d614b29ec337654e48 (diff) | |
download | ffmpeg-c551c3b18bab9710bc50ddacf866431f43e033f6.tar.gz |
configure: warn when en/disabling has no effect.
Print a warning for --enable- or --disable-something=pattern
does not match any component.
-rwxr-xr-x | configure | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2222,7 +2222,9 @@ for opt do is_in "${thing}s" $COMPONENT_LIST || die_unknown "$opt" eval list=\$$(toupper $thing)_LIST name=$(echo "${optval}" | sed "s/,/_${thing}|/g")_${thing} - $action $(filter "$name" $list) + list=$(filter "$name" $list) + [ "$list" = "" ] && warn "Option $opt did not match anything" + $action $list ;; --enable-?*|--disable-?*) eval $(echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g') |