[Please CC me on any replies since I'm not subscribed to this list.]

The attached patch (against openssl-0.9.6g) prevents Configure from
misinterpreting Win32 pathnames that begin with a drive letter as a
relative as opposed to an absolute pathname.

For example, without this patch when Configure is invoked as follows:

    perl Configure VC-WIN32 --prefix=c:/Win32/openssl

the following bad OPENSSLDIR #define is generated:

    #define OPENSSLDIR "c:/Win32/openssl/c:/Win32/openssl/ssl
                        ^^^^^^^^^^^^^^^^^

Jason
--- Configure.orig      2002-08-08 17:12:40.000000000 -0400
+++ Configure   2002-08-12 12:56:48.000000000 -0400
@@ -752,7 +752,8 @@ chop $openssldir if $openssldir =~ /\/$/
 chop $prefix if $prefix =~ /\/$/;
 
 $openssldir=$prefix . "/ssl" if $openssldir eq "";
-$openssldir=$prefix . "/" . $openssldir if $openssldir !~ /^\//;
+$openssldir=$prefix . "/" . $openssldir if $openssldir !~ /^\// and !$IsWindows
+    or $openssldir !~ /^[A-Za-z]:\// and $IsWindows;
 
 
 print "IsWindows=$IsWindows\n";

Reply via email to