diff options
author | Colin Watson <cjwatson@debian.org> | 2009-12-29 21:38:40 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2009-12-29 21:38:40 +0000 |
commit | 1b816ea846aca3ee89e7995373ace609e9518424 (patch) | |
tree | b41cdc8495cae7fa9c2e0f98a5f2e71656b61f9a /contrib/findssl.sh | |
parent | fa585019a79ebcb4e0202b1c33f87ff1c5c9ce1c (diff) | |
parent | 086ea76990b1e6287c24b6db74adffd4605eb3b0 (diff) |
import openssh-4.6p1-gsskex-20070312.patch
Diffstat (limited to 'contrib/findssl.sh')
-rw-r--r-- | contrib/findssl.sh | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/contrib/findssl.sh b/contrib/findssl.sh index 716abced5..263fd2644 100644 --- a/contrib/findssl.sh +++ b/contrib/findssl.sh | |||
@@ -1,6 +1,6 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # | 2 | # |
3 | # $Id: findssl.sh,v 1.3 2004/12/13 07:08:33 dtucker Exp $ | 3 | # $Id: findssl.sh,v 1.4 2007/02/19 11:44:25 dtucker Exp $ |
4 | # | 4 | # |
5 | # findssl.sh | 5 | # findssl.sh |
6 | # Search for all instances of OpenSSL headers and libraries | 6 | # Search for all instances of OpenSSL headers and libraries |
@@ -89,6 +89,25 @@ LD_LIBRARY_PATH=${LD_LIBRARY_PATH:=$DEFAULT_LIBPATH} | |||
89 | LIBRARY_PATH=${LIBRARY_PATH:=$DEFAULT_LIBPATH} | 89 | LIBRARY_PATH=${LIBRARY_PATH:=$DEFAULT_LIBPATH} |
90 | export LIBPATH LD_LIBRARY_PATH LIBRARY_PATH | 90 | export LIBPATH LD_LIBRARY_PATH LIBRARY_PATH |
91 | 91 | ||
92 | # not all platforms have a 'which' command | ||
93 | if which ls >/dev/null 2>/dev/null; then | ||
94 | : which is defined | ||
95 | else | ||
96 | which () { | ||
97 | saveIFS="$IFS" | ||
98 | IFS=: | ||
99 | for p in $PATH; do | ||
100 | if test -x "$p/$1" -a -f "$p/$1"; then | ||
101 | IFS="$saveIFS" | ||
102 | echo "$p/$1" | ||
103 | return 0 | ||
104 | fi | ||
105 | done | ||
106 | IFS="$saveIFS" | ||
107 | return 1 | ||
108 | } | ||
109 | fi | ||
110 | |||
92 | # | 111 | # |
93 | # Search for OpenSSL headers and print versions | 112 | # Search for OpenSSL headers and print versions |
94 | # | 113 | # |