Make fipscanisteronly auto detect work on WIN32.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 21 Apr 2011 16:58:51 +0000 (16:58 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 21 Apr 2011 16:58:51 +0000 (16:58 +0000)
util/mk1mf.pl
util/mkfiles.pl

index afad229ebc781e216cf8db30f6988cd849a0173f..eec5d41fbafa8db857f34f4eb838e594063cc4ce 100755 (executable)
@@ -58,7 +58,8 @@ my %mf_import = (
        RMD160_ASM_OBJ => \$mf_rmd_asm,
        WP_ASM_OBJ     => \$mf_wp_asm,
        CMLL_ENC       => \$mf_cm_asm,
-       MODES_ASM_OBJ  => \$mf_modes_asm
+       MODES_ASM_OBJ  => \$mf_modes_asm,
+       FIPSCANISTERONLY  => \$mf_fipscanisteronly
 );
 
 open(IN,"<Makefile") || die "unable to open Makefile!\n";
@@ -74,6 +75,13 @@ close(IN);
 
 $debug = 1 if $mf_platform =~ /^debug-/;
 
+if ($mf_fipscanisteronly eq "y") {
+       $fips = 1;
+       $fipscanisterbuild = 1;
+       $fipscanisteronly = 1;
+}
+
+
 die "Makefile is not the toplevel Makefile!\n" if $ssl_version eq "";
 
 $infile="MINFO";
index 1c8493ae2209cfa91a2767fb303ed368a119f068..94ab502f8d0c44f9aacf38fae1881711c03d6f70 100755 (executable)
@@ -155,7 +155,7 @@ if ($dir eq "." && defined($sym{"BUILDENV"}))
 print "RELATIVE_DIRECTORY=\n";
 
 close (IN);
-if ($dir eq "." && $sym{CONFIGURE_ARGS} =~ /fipscanisteronly/)
+if ($dir eq "." && $sym{FIPSCANISTERONLY} eq "y")
        {
        $fipscanisteronly = 1;
        }