configure: warn when en/disabling has no effect.
authorNicolas George <nicolas.george@normalesup.org>
Sun, 11 Nov 2012 20:29:27 +0000 (21:29 +0100)
committerNicolas George <nicolas.george@normalesup.org>
Sat, 17 Nov 2012 10:57:17 +0000 (11:57 +0100)
Print a warning for --enable- or --disable-something=pattern
does not match any component.

configure

index e7738cd..6904330 100755 (executable)
--- a/configure
+++ b/configure
@@ -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')