Attached is a fix. One liner.


Philip Prindeville wrote:
> I'm looking at ./Configure where it does:
>
> chop $prefix if $prefix =~ /\/$/;
>
>
> and then later on:
>
> s/^INSTALLTOP=.*$/INSTALLTOP=$prefix/;
>
>
> And then in crypto/Makefile, we have:
>
> install:
> @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
>
>
> which means that if you invoke "Configure" with --prefix / ... this
> will fail.
>
> Should it be:
>
> chop $prefix if $prefix =~ /.\/$/;
>
>
> instead to make sure that $prefix must be at least 2 chars long???
> Otherwise, how do you correctly install with INSTALLTOP=/ ?
>
> Or do I need to have --prefix=/. instead?
>
> Thanks,
>
> -Philip
>
>
>




--- openssl-0.9.8i/Configure.old 2008-11-09 13:34:02.000000000 -0800
+++ openssl-0.9.8i/Configure 2008-11-09 13:46:27.000000000 -0800
@@ -976,7 +976,7 @@
or $perl="perl";

chop $openssldir if $openssldir =~ /\/$/;
-chop $prefix if $prefix =~ /\/$/;
+chop $prefix if $prefix =~ /.\/$/;

$openssldir=$prefix . "/ssl" if $openssldir eq "";
$openssldir=$prefix . "/" . $openssldir if $openssldir !~ /(^\/|^[a-zA-Z]:[\\\/])/;