From: Dr. Stephen Henson Date: Thu, 4 May 2006 16:24:27 +0000 (+0000) Subject: Detect MSYS and use Unix like build if detected. X-Git-Tag: OpenSSL_0_9_8c~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ab3e743f3447c7bbeee089985bb6aab593ab479;p=openssl Detect MSYS and use Unix like build if detected. --- diff --git a/Configure b/Configure index 9831ff3fab..afcc056f29 100755 --- a/Configure +++ b/Configure @@ -918,7 +918,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/); @@ -1806,3 +1806,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; + }