Allow fips install dir to be specified for VC++ build.
authorDr. Stephen Henson <steve@openssl.org>
Wed, 8 Feb 2006 00:47:30 +0000 (00:47 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 8 Feb 2006 00:47:30 +0000 (00:47 +0000)
Configure
util/mk1mf.pl

index 9feec9637c5cd1b097778cea08177905afd7cfb0..fe333fe44312d784f07723b2ac510ed048d2c924 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -869,6 +869,10 @@ PROCESS_ARGS:
                                {
                                $withargs{"zlib-lib"}=$1;
                                }
+                       elsif (/^--with-fipslibdir=(.*)$/)
+                               {
+                               $withargs{"fipslibdir"}="$1";
+                               }
                        elsif (/^--with-zlib-include=(.*)$/)
                                {
                                $withargs{"zlib-include"}="-I$1";
@@ -1318,6 +1322,7 @@ while (<IN>)
        s/^KRB5_INCLUDES=.*/KRB5_INCLUDES=$withargs{"krb5-include"}/;
        s/^LIBKRB5=.*/LIBKRB5=$withargs{"krb5-lib"}/;
        s/^LIBZLIB=.*/LIBZLIB=$withargs{"zlib-lib"}/;
+       s/^FIPSLIBDIR=.*/FIPSLIBDIR=$withargs{"fipslibdir"}/;
        s/^ZLIB_INCLUDE=.*/ZLIB_INCLUDE=$withargs{"zlib-include"}/;
        s/^SHLIB_TARGET=.*/SHLIB_TARGET=$shared_target/;
        s/^SHLIB_MARK=.*/SHLIB_MARK=$shared_mark/;
index 9f1af5679611ae74c908a600f198a4070681b1bd..d727b72001d2cbea51c4f0abc5f39a68e1b9b371 100755 (executable)
@@ -359,6 +359,9 @@ for (;;)
        if ($key eq "LIBOBJ")
                { $libobj=&var_add($dir,$val); }
 
+       if ($key eq "FIPSLIBDIR")
+               { $fipslibdir=$val;}
+
        if (!($_=<IN>))
                { $_="RELATIVE_DIRECTORY=FINISHED\n"; }
        }
@@ -401,7 +404,7 @@ if ($fips)
                $ex_build_targets .= " \$(LIB_D)$o$crypto_compat \$(PREMAIN_DSO_EXE)";
                $ex_l_libs .= " \$(O_FIPSCANISTER)";
                }
-       if ($fipslibpath eq "")
+       if ($fipslibdir eq "")
                {
                open (IN, "util/fipslib_path.txt") || fipslib_error();
                $fipslibdir = <IN>;