rust/cargo-c: update to 0.10.9+cargo-0.85.0
[oi-userland.git] / components / library / openssl / openssl-1.0.2 / patches / 028-enginesdir.patch
blob8600add955dcab27ef9dcd830f38c1a01d6e28fb
2 # This was developed in house to configure the engine dir.
3 # Not suitable for upstream.
5 --- /tmp/18/Configure Fri Feb 11 15:15:50 2011
6 +++ openssl-1.0.0d/Configure Fri Feb 11 15:18:09 2011
7 @@ -18,6 +18,8 @@
8 # --prefix option is given; /usr/local/ssl otherwise)
9 # --prefix prefix for the OpenSSL include, lib and bin directories
10 # (Default: the OPENSSLDIR directory)
11 +# --enginesdir engines shared library location
12 +# (Default: $prefix/lib/engines)
14 # --pk11-libname PKCS#11 library name.
15 # (Default: none)
16 @@ -741,6 +743,7 @@
17 my $prefix="";
18 my $libdir="";
19 my $openssldir="";
20 +my $enginesdir="";
21 my $exe_ext="";
22 my $install_prefix= "$ENV{'INSTALL_PREFIX'}";
23 my $cross_compile_prefix="";
24 @@ -972,6 +975,10 @@
26 $openssldir=$1;
28 + elsif (/^--enginesdir=(.*)$/)
29 + {
30 + $enginesdir=$1;
31 + }
32 elsif (/^--install.prefix=(.*)$/)
34 $install_prefix=$1;
35 @@ -1285,6 +1292,10 @@
36 # we're ready to tolerate, so don't...
37 $multilib="" if !-d "$prefix/lib$multilib";
39 +if ($enginesdir eq "") {
40 + $enginesdir = "$prefix/lib/engines";
43 $libdir="lib$multilib" if $libdir eq "";
45 $cflags = "$cflags$exp_cflags";
46 @@ -1934,7 +1945,7 @@
48 elsif (/^#define\s+ENGINESDIR/)
50 - my $foo = "$prefix/$libdir/engines";
51 + my $foo = "$enginesdir";
52 $foo =~ s/\\/\\\\/g;
53 print OUT "#define ENGINESDIR \"$foo\"\n";