summaryrefslogtreecommitdiffstats
path: root/Configure
diff options
context:
space:
mode:
authorclucey <catriona.lucey@intel.com>2016-02-17 13:38:36 +0000
committerMatt Caswell <matt@openssl.org>2016-03-07 13:36:17 +0000
commit7f458a48ff3a231d5841466525d2aacbcd4f6b77 (patch)
tree85f066e1efad61b09242ec27d23f300ae9742fa9 /Configure
parentb63447c1150f659cfc54ed290df33345e8ce7cbd (diff)
ALG: Add AFALG engine
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure13
1 files changed, 13 insertions, 0 deletions
diff --git a/Configure b/Configure
index 305820b6f1..1a578be091 100755
--- a/Configure
+++ b/Configure
@@ -1175,6 +1175,19 @@ else { $no_user_defines=1; }
# ALL MODIFICATIONS TO %config and %target MUST BE DONE FROM HERE ON
+$config{afalg}="";
+if ($target =~ m/^linux/) {
+ my $minver = 4*10000 + 1*100 + 0;
+ if ($config{cross_compile_prefix} eq "") {
+ my $verstr = `uname -r`;
+ my ($ma, $mi1, $mi2) = split("\\.", $verstr);
+ ($mi2) = $mi2 =~ /(\d+)/;
+ my $ver = $ma*10000 + $mi1*100 + $mi2;
+ $config{afalg}="afalg" if ($ver >= $minver);
+ }
+}
+push @{$config{engdirs}}, $config{afalg};
+
# If we use the unified build, collect information from build.info files
my %unified_info = ();