summaryrefslogtreecommitdiffstats
path: root/Configure
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2006-05-04 16:32:31 +0000
committerDr. Stephen Henson <steve@openssl.org>2006-05-04 16:32:31 +0000
commitf3df90b2bb064a10bd4a944fb59fedf2cc29035c (patch)
treea65fbe0c11ff59847b4e3499fa9fc4e50e567082 /Configure
parent11e46bd7ae27c982b53b175055fa28d2d1712276 (diff)
Update from stable branch.
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure10
1 files changed, 9 insertions, 1 deletions
diff --git a/Configure b/Configure
index 367e1683cc..a2dc83921e 100755
--- a/Configure
+++ b/Configure
@@ -928,7 +928,7 @@ foreach (sort (keys %disabled))
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/);
@@ -1829,3 +1829,11 @@ sub test_sanity
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;
+ }