Detect MSYS and use Unix like build if detected.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 4 May 2006 16:24:27 +0000 (16:24 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 4 May 2006 16:24:27 +0000 (16:24 +0000)
Configure

index 9831ff3fab5ca7a8f30e8003d440f804327605f0..afcc056f290348a61e29c0dc5ee293d17a0714f6 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -918,7 +918,7 @@ foreach (sort (keys %disabled))
 
 my $IsMK1MF=scalar grep /^$target$/,@MK1MF_Builds;
 
 
 my $IsMK1MF=scalar grep /^$target$/,@MK1MF_Builds;
 
-$IsMK1MF=1 if ($target eq "mingw" && $^O ne "cygwin");
+$IsMK1MF=1 if ($target eq "mingw" && $^O ne "cygwin" && !is_msys());
 
 $exe_ext=".exe" if ($target eq "Cygwin" || $target eq "DJGPP" || $target eq "mingw");
 $exe_ext=".pm"  if ($target =~ /vos/);
 
 $exe_ext=".exe" if ($target eq "Cygwin" || $target eq "DJGPP" || $target eq "mingw");
 $exe_ext=".pm"  if ($target =~ /vos/);
@@ -1806,3 +1806,11 @@ sub test_sanity
        print STDERR "No sanity errors detected!\n" if $errorcnt == 0;
        return $errorcnt;
        }
        print STDERR "No sanity errors detected!\n" if $errorcnt == 0;
        return $errorcnt;
        }
+
+# Attempt to detect MSYS environment
+
+sub is_msys
+       {
+       return 1 if (exists $ENV{"TERM"} && $ENV{"TERM"} eq "msys");
+       return 0;
+       }