aboutsummaryrefslogtreecommitdiffstats
path: root/Configure
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-02-22 02:06:05 +0100
committerRichard Levitte <levitte@openssl.org>2016-02-22 14:38:31 +0100
commit19ab579060aa261bb1f7ed3dcd102471dfd556ee (patch)
tree092d99d2fb231c7c16bda0208713c680af19797b /Configure
parent2b9608b049eb33269f9b900e9e5f1c37fc1a1563 (diff)
downloadopenssl-19ab579060aa261bb1f7ed3dcd102471dfd556ee.tar.gz
Use $disabled{"dynamic-engine"} internally
We were kinda sorta using a mix of $disabled{"static-engine" and $disabled{"dynamic-engine"} in Configure. Let's avoid confusion, choose one of them and stick to it. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure20
1 files changed, 10 insertions, 10 deletions
diff --git a/Configure b/Configure
index 1cb5ace1af..2435e03f5b 100755
--- a/Configure
+++ b/Configure
@@ -550,11 +550,11 @@ foreach (@argvcopy)
}
elsif ($1 eq "static-engine")
{
- $disabled{"static-engine"} = "option";
+ delete $disabled{"dynamic-engine"};
}
elsif ($1 eq "dynamic-engine")
{
- delete $disabled{"static-engine"};
+ $disabled{"dynamic-engine"} = "option";
}
else
{
@@ -565,11 +565,11 @@ foreach (@argvcopy)
{
if ($1 eq "static-engine")
{
- delete $disabled{"static-engine"};
+ $disabled{"dynamic-engine"} = "option";
}
elsif ($1 eq "dynamic-engine")
{
- $disabled{"static-engine"} = "option";
+ delete $disabled{"dynamic-engine"};
}
my $algo = $1;
delete $disabled{$algo};
@@ -766,7 +766,7 @@ foreach (sort (keys %disabled))
{ $config{no_shared} = 1; }
elsif (/^zlib$/)
{ $zlib = 0; }
- elsif (/^static-engine$/)
+ elsif (/^dynamic-engine$/)
{ }
elsif (/^zlib-dynamic$/)
{ }
@@ -1004,12 +1004,12 @@ if ($target{shared_target} eq "")
$config{no_shared} = 1;
}
-if ($disabled{"static-engine"}) {
- push @{$config{defines}}, "OPENSSL_NO_STATIC_ENGINE";
- $config{dynamic_engines} = 1;
-} else {
+if ($disabled{"dynamic-engine"}) {
push @{$config{defines}}, "OPENSSL_NO_DYNAMIC_ENGINE";
$config{dynamic_engines} = 0;
+} else {
+ push @{$config{defines}}, "OPENSSL_NO_STATIC_ENGINE";
+ $config{dynamic_engines} = 1;
}
#
@@ -1385,7 +1385,7 @@ if ($builder eq "unified") {
}
die <<"EOF" if scalar @engines and !$config{dynamic_engines};
-ENGINES can only be used if configured with 'static-enginex'.
+ENGINES can only be used if configured with 'dynamic-engine'.
This is usually a fault in a build.info file.
EOF
foreach (@engines) {