summaryrefslogtreecommitdiffstats
path: root/util/pl/unix.pl
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>1999-04-01 12:34:33 +0000
committerUlf Möller <ulf@openssl.org>1999-04-01 12:34:33 +0000
commit99aab1619f02b184f140150c72276bf55716cc42 (patch)
tree4a242345579d7fddff7371432170b6081a3cfd8f /util/pl/unix.pl
parent6b01fa64904749537db5dcf948a9a094d63cfc16 (diff)
New Makefile variables $(RANLIB) and $(PERL).
Diffstat (limited to 'util/pl/unix.pl')
-rw-r--r--util/pl/unix.pl15
1 files changed, 14 insertions, 1 deletions
diff --git a/util/pl/unix.pl b/util/pl/unix.pl
index aa2d7d1f37..146611ad99 100644
--- a/util/pl/unix.pl
+++ b/util/pl/unix.pl
@@ -38,7 +38,7 @@ $ex_libs="";
# static library stuff
$mklib='ar r';
$mlflags='';
-$ranlib='util/ranlib.sh';
+$ranlib=&which("ranlib") or $ranlib="true";
$plib='lib';
$libp=".a";
$shlibp=".a";
@@ -80,4 +80,17 @@ sub do_link_rule
return($ret);
}
+sub which
+ {
+ my ($name)=@_;
+ my $path;
+ foreach $path (split /:/, $ENV{PATH})
+ {
+ if (-x "$path/$name")
+ {
+ return "$path/$name";
+ }
+ }
+ }
+
1;