Skip to content
Snippets Groups Projects
Commit c551c3b1 authored by Nicolas George's avatar Nicolas George
Browse files

configure: warn when en/disabling has no effect.

Print a warning for --enable- or --disable-something=pattern
does not match any component.
parent a0f2d3ff
No related branches found
No related tags found
No related merge requests found
...@@ -2222,7 +2222,9 @@ for opt do ...@@ -2222,7 +2222,9 @@ for opt do
is_in "${thing}s" $COMPONENT_LIST || die_unknown "$opt" is_in "${thing}s" $COMPONENT_LIST || die_unknown "$opt"
eval list=\$$(toupper $thing)_LIST eval list=\$$(toupper $thing)_LIST
name=$(echo "${optval}" | sed "s/,/_${thing}|/g")_${thing} 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-?*) --enable-?*|--disable-?*)
eval $(echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g') eval $(echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment