]> granicus.if.org Git - openssl/commitdiff
Fix from HEAD.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 6 Dec 2005 13:37:56 +0000 (13:37 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 6 Dec 2005 13:37:56 +0000 (13:37 +0000)
Configure
util/mk1mf.pl

index 6b4727cffaa9889f5a25ac500f6313a236713271..d88fe9d288a57f43a3c11209000a8e7e8750e04a 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -748,9 +748,13 @@ PROCESS_ARGS:
                                {
                                $withargs{"krb5-".$1}=$2;
                                }
-                       elsif (/^--with-zlib-(lib|include)=(.*)$/)
+                       elsif (/^--with-zlib-lib=(.*)$/)
                                {
-                               $withargs{"zlib-".$1}=$2;
+                               $withargs{"zlib-lib"}=$1;
+                               }
+                       elsif (/^--with-zlib-include=(.*)$/)
+                               {
+                               $withargs{"zlib-include"}="-I$1";
                                }
                        else
                                {
index bf4f89f48c3da0b511a8ceb8814db9c38ca3ffe5..ba26f28fc63f409f300d81da4c7eee606e6395c3 100755 (executable)
@@ -291,7 +291,7 @@ for (;;)
                { $cflags .= " $val";}
 
        if ($key eq "ZLIB_INCLUDE")
-               { $cflags .= " -I$val";}
+               { $cflags .= " $val" if $val ne "";}
 
        if ($key eq "LIBZLIB")
                { $zlib_lib = "$val" if $val ne "";}