Check for the executable $openssl, not just the file.

Part of PR: 75
This commit is contained in:
Richard Levitte 2002-06-13 19:59:40 +00:00
parent e888074bb4
commit 127dca46a0

View File

@ -17,10 +17,10 @@ if(defined $ENV{OPENSSL}) {
$ENV{PATH} .= ":$dir/bin";
if(! -f $openssl) {
if(! -x $openssl) {
my $found = 0;
foreach (split /:/, $ENV{PATH}) {
if(-f "$_/$openssl") {
if(-x "$_/$openssl") {
$found = 1;
last;
}