summaryrefslogtreecommitdiffstats
path: root/Configure
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2018-01-09 19:51:19 +0100
committerRichard Levitte <levitte@openssl.org>2018-01-09 19:51:19 +0100
commit225f980d22dfe66aa3945c21609042c32284e61c (patch)
tree03d3490582659a89c2fd8626179acf27d01fe717 /Configure
parent8e403a79b0e679c8df41a9686006c5fe052d79bd (diff)
Configure: try to make sure every config target name is unique
Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5047)
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/Configure b/Configure
index b172595ece..67e59a252d 100755
--- a/Configure
+++ b/Configure
@@ -2381,6 +2381,17 @@ sub read_config {
%targets = read_eval_file($fname);
}
+ my %preexisting = ();
+ foreach (sort keys %targets) {
+ $preexisting{$_} = 1 if $table{$_};
+ }
+ die <<"EOF",
+The following config targets from $fname
+shadow pre-existing config targets with the same name:
+EOF
+ map { " $_\n" } sort keys %preexisting
+ if %preexisting;
+
# For each target, check that it's configured with a hash table.
foreach (keys %targets) {