Misc afalg build fixes

Misc afalg build fixes as suggested by Richard Levitte for the latest
Configure changes.

Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
Matt Caswell
2016-02-29 13:36:47 +00:00
parent 6cba4a6661
commit 8da00a38cd
4 changed files with 21 additions and 28 deletions

View File

@@ -1183,14 +1183,17 @@ if ($target =~ m/^linux/) {
my ($ma, $mi1, $mi2) = split("\\.", $verstr);
($mi2) = $mi2 =~ /(\d+)/;
my $ver = $ma*10000 + $mi1*100 + $mi2;
if ($ver >= $minver) {
$config{afalg}="afalg";
if ($ver < $minver) {
$disabled{afalg} = "too-old-kernel";
} else {
push @{$config{openssl_other_defines}}, "OPENSSL_NO_AFALGENG";
push @{$config{engdirs}}, "afalg";
}
}
} else {
$disabled{afalg} = "not-linux";
}
push @{$config{engdirs}}, $config{afalg};
push @{$config{openssl_other_defines}}, "OPENSSL_NO_AFALGENG" if ($disabled{afalg});
# If we use the unified build, collect information from build.info files
my %unified_info = ();