mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
quick hack to make it working again on Win32 - however we should consider to set some defaults depending on the compiler architecture we guess we are since it doesnt work well if we prefer building the msvc makefile with gmake instead of nmake because we found gmake first in path....
This commit is contained in:
parent
32330300a9
commit
75dbb3189a
@ -412,20 +412,23 @@ if ($configurebuild) {
|
||||
}
|
||||
|
||||
sub findinpath {
|
||||
my $c;
|
||||
my $e;
|
||||
my $p=$ENV{'PATH'};
|
||||
my @pa = split(":", $p);
|
||||
for $c (@_) {
|
||||
for $e (@pa) {
|
||||
if( -x "$e/$c") {
|
||||
return $c;
|
||||
}
|
||||
}
|
||||
my $c;
|
||||
my $e;
|
||||
my $x='';
|
||||
$x='.exe' if ($^O eq 'MSWin32');
|
||||
my $s=':';
|
||||
$s=';' if ($^O eq 'MSWin32');
|
||||
my $p=$ENV{'PATH'};
|
||||
my @pa = split($s, $p);
|
||||
for $c (@_) {
|
||||
for $e (@pa) {
|
||||
if( -x "$e/$c$x") {
|
||||
return $c;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
my $make = findinpath("gmake", "make", "nmake");
|
||||
if(!$make) {
|
||||
mydie "Couldn't find make in the PATH";
|
||||
|
Loading…
Reference in New Issue
Block a user