Minor portability update to c_rehash.

This commit is contained in:
Andy Polyakov 2006-10-26 10:52:12 +00:00
parent 5b50f99e1e
commit a2688c872d
1 changed files with 7 additions and 1 deletions

View File

@ -15,7 +15,13 @@ if(defined $ENV{OPENSSL}) {
$ENV{OPENSSL} = $openssl;
}
my $pwd = `pwd`; chomp $pwd;
my $pwd;
eval "require Cwd";
if (defined(&Cwd::getcwd)) {
$pwd=Cwd::getcwd();
} else {
$pwd=`pwd`; chomp($pwd);
}
my $path_delim = ($pwd =~ /^[a-z]\:/i) ? ';' : ':'; # DOS/Win32 or Unix delimiter?
$ENV{PATH} .= "$path_delim$dir/bin";