diff options
author | Richard Levitte <levitte@openssl.org> | 2015-10-22 17:33:47 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2015-10-22 17:37:10 +0200 |
commit | 489eb74090a6327454f4a53213480eaa6659704b (patch) | |
tree | a1dc1d16c6b86f73caad412e3edb3aa09888fe0b /Configure | |
parent | 8b527be2db48064673640dda2d57edc6b362ae64 (diff) |
Make Configure die when unsupported options are given
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -947,6 +947,7 @@ while($argv_unprocessed) $argvstring=join(' ',@argvcopy); PROCESS_ARGS: + my %unsupported_options = (); foreach (@argvcopy) { s /^-no-/no-/; # some people just can't read the instructions @@ -963,7 +964,7 @@ PROCESS_ARGS: my $word = $2; if (!grep { $word =~ /^${_}$/ } @disablables) { - warn "Unsupported option ${word}, ignored...\n"; + $unsupported_options{$_} = 1; next; } } @@ -1135,6 +1136,12 @@ PROCESS_ARGS: { $options .= " ".$_; } } } + + if (keys %unsupported_options) + { + die "***** Unsupported options: ", + join(", ", keys %unsupported_options), "\n"; + } } |