components/openssl/openssl-1.0.1-fips-140/patches/28-enginesdir.patch
author Ron Jordan <ron.jordan@oracle.com>
Tue, 24 Mar 2015 20:05:38 -0700
branchs11u2-sru
changeset 4016 7f9e1e7611b8
parent 2921 8da1e7689d13
permissions -rw-r--r--
20735615 Upgrade OpenSSL version to 1.0.1m 20735495 problem in LIBRARY/OPENSSL 20735520 problem in LIBRARY/OPENSSL 20735531 problem in LIBRARY/OPENSSL 20735537 problem in LIBRARY/OPENSSL 20735541 problem in LIBRARY/OPENSSL 20735555 problem in LIBRARY/OPENSSL 20735563 problem in LIBRARY/OPENSSL 20688058 problem in LIBRARY/OPENSSL

#
# This was developed in house to configure the engine dir.
# Not suitable for upstream.
#
--- /tmp/18/Configure	Fri Feb 11 15:15:50 2011
+++ openssl-1.0.0d/Configure	Fri Feb 11 15:18:09 2011
@@ -18,6 +18,8 @@
 #               --prefix option is given; /usr/local/ssl otherwise)
 # --prefix      prefix for the OpenSSL include, lib and bin directories
 #               (Default: the OPENSSLDIR directory)
+# --enginesdir  engines shared library location
+#               (Default: $prefix/lib/engines)
 #
 # --pk11-libname  PKCS#11 library name.
 #               (Default: none)
@@ -679,6 +679,7 @@
 my $prefix="";
 my $libdir="";
 my $openssldir="";
+my $enginesdir="";
 my $exe_ext="";
 my $install_prefix= "$ENV{'INSTALL_PREFIX'}";
 my $cross_compile_prefix="";
@@ -917,6 +920,10 @@
 				{
 				$openssldir=$1;
 				}
+			elsif (/^--enginesdir=(.*)$/)
+				{
+				$enginesdir=$1;
+				}
 			elsif (/^--install.prefix=(.*)$/)
 				{
 				$install_prefix=$1;
@@ -1224,6 +1231,10 @@
 # we're ready to tolerate, so don't...
 $multilib="" if !-d "$prefix/lib$multilib";
 
+if ($enginesdir eq "") {
+	$enginesdir = "$prefix/lib/engines";
+}
+
 $libdir="lib$multilib" if $libdir eq "";
 
 $cflags = "$cflags$exp_cflags";
@@ -1846,7 +1857,7 @@
 		}
 	elsif	(/^#define\s+ENGINESDIR/)
 		{
-		my $foo = "$prefix/$libdir/engines";
+		my $foo = "$enginesdir";
 		$foo =~ s/\\/\\\\/g;
 		print OUT "#define ENGINESDIR \"$foo\"\n";
 		}