diff options
author | Ulf Möller <ulf@openssl.org> | 1999-04-01 12:34:33 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 1999-04-01 12:34:33 +0000 |
commit | 99aab1619f02b184f140150c72276bf55716cc42 (patch) | |
tree | 4a242345579d7fddff7371432170b6081a3cfd8f /util/pl | |
parent | 6b01fa64904749537db5dcf948a9a094d63cfc16 (diff) | |
download | openssl-99aab1619f02b184f140150c72276bf55716cc42.tar.gz |
New Makefile variables $(RANLIB) and $(PERL).
Diffstat (limited to 'util/pl')
-rw-r--r-- | util/pl/unix.pl | 15 |
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; |