Browse Source

configure: warn when en/disabling has no effect.

Print a warning for --enable- or --disable-something=pattern
does not match any component.
tags/n1.1
Nicolas George 12 years ago
parent
commit
c551c3b18b
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      configure

+ 3
- 1
configure View File

@@ -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')


Loading…
Cancel
Save