summaryrefslogtreecommitdiffstats
path: root/Configure
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-08-10 14:48:40 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-08-10 14:48:40 +0000
commit6727565a84ce174df591317218e1c5934357f732 (patch)
tree7db71036bb761f814de368be04d8d75df3d49357 /Configure
parenta0778bfae59a40bf3258e743916d9b97434b9b1b (diff)
PR: 2003
Make it possible to install OpenSSL in directories with name other than "lib" for example "lib64". Based on patch from Jeremy Utley.
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure8
1 files changed, 8 insertions, 0 deletions
diff --git a/Configure b/Configure
index f17e5640fb..c456d007bc 100755
--- a/Configure
+++ b/Configure
@@ -618,6 +618,7 @@ my $idx_arflags = $idx++;
my $idx_multilib = $idx++;
my $prefix="";
+my $libdir="";
my $openssldir="";
my $exe_ext="";
my $install_prefix="";
@@ -819,6 +820,10 @@ PROCESS_ARGS:
{
$prefix=$1;
}
+ elsif (/^--libdir=(.*)$/)
+ {
+ $libdir=$1;
+ }
elsif (/^--openssldir=(.*)$/)
{
$openssldir=$1;
@@ -1031,6 +1036,8 @@ $exe_ext=".pm" if ($target =~ /vos/);
$openssldir="/usr/local/ssl" if ($openssldir eq "" and $prefix eq "");
$prefix=$openssldir if $prefix eq "";
+$libdir="lib" if $libdir eq "";
+
$default_ranlib= &which("ranlib") or $default_ranlib="true";
$perl=$ENV{'PERL'} or $perl=&which("perl5") or $perl=&which("perl")
or $perl="perl";
@@ -1460,6 +1467,7 @@ while (<IN>)
s/^INSTALLTOP=.*$/INSTALLTOP=$prefix/;
s/^MULTILIB=.*$/MULTILIB=$multilib/;
s/^OPENSSLDIR=.*$/OPENSSLDIR=$openssldir/;
+ s/^LIBDIR=.*$/LIBDIR=$libdir/;
s/^INSTALL_PREFIX=.*$/INSTALL_PREFIX=$install_prefix/;
s/^PLATFORM=.*$/PLATFORM=$target/;
s/^OPTIONS=.*$/OPTIONS=$options/;