| @@ -1,242 +1,245 @@ | | | @@ -1,242 +1,245 @@ |
1 | # $NetBSD: tools.SunOS.mk,v 1.56 2022/11/22 13:18:59 jperkin Exp $ | | 1 | # $NetBSD: tools.SunOS.mk,v 1.57 2023/05/09 12:23:22 jperkin Exp $ |
2 | # | | 2 | # |
3 | # System-supplied tools for the Solaris and illumos operating systems. | | 3 | # System-supplied tools for the Solaris and illumos operating systems. |
4 | # | | 4 | # |
5 | | | 5 | |
6 | TOOLS_PLATFORM.[?= [ # shell builtin | | 6 | TOOLS_PLATFORM.[?= [ # shell builtin |
7 | .if exists(/usr/bin/gawk) | | 7 | .if exists(/usr/bin/gawk) |
8 | TOOLS_PLATFORM.awk?= /usr/bin/gawk | | 8 | TOOLS_PLATFORM.awk?= /usr/bin/gawk |
9 | .else | | 9 | .else |
10 | TOOLS_PLATFORM.awk?= /usr/bin/nawk | | 10 | TOOLS_PLATFORM.awk?= /usr/bin/nawk |
11 | .endif | | 11 | .endif |
12 | TOOLS_PLATFORM.basename?= /usr/bin/basename | | 12 | TOOLS_PLATFORM.basename?= /usr/bin/basename |
13 | .if exists(/bin/bash) | | 13 | .if exists(/bin/bash) |
14 | TOOLS_PLATFORM.bash?= /bin/bash | | 14 | TOOLS_PLATFORM.bash?= /bin/bash |
15 | .endif | | 15 | .endif |
16 | .if exists(/usr/bin/bison) | | 16 | .if exists(/usr/bin/bison) |
17 | TOOLS_PLATFORM.bison?= /usr/bin/bison | | 17 | TOOLS_PLATFORM.bison?= /usr/bin/bison |
18 | TOOLS_PLATFORM.bison-yacc?= /usr/bin/bison -y | | 18 | TOOLS_PLATFORM.bison-yacc?= /usr/bin/bison -y |
19 | .elif exists(/usr/sfw/bison) | | 19 | .elif exists(/usr/sfw/bison) |
20 | TOOLS_PLATFORM.bison?= /usr/sfw/bin/bison | | 20 | TOOLS_PLATFORM.bison?= /usr/sfw/bin/bison |
21 | TOOLS_PLATFORM.bison-yacc?= /usr/sfw/bin/bison -y | | 21 | TOOLS_PLATFORM.bison-yacc?= /usr/sfw/bin/bison -y |
22 | .endif | | 22 | .endif |
23 | .if exists(/usr/bin/bzcat) | | 23 | .if exists(/usr/bin/bzcat) |
24 | TOOLS_PLATFORM.bzcat?= /usr/bin/bzcat | | 24 | TOOLS_PLATFORM.bzcat?= /usr/bin/bzcat |
25 | .endif | | 25 | .endif |
26 | .if exists(/usr/bin/bzip2) | | 26 | .if exists(/usr/bin/bzip2) |
27 | TOOLS_PLATFORM.bzip2?= /usr/bin/bzip2 | | 27 | TOOLS_PLATFORM.bzip2?= /usr/bin/bzip2 |
28 | .endif | | 28 | .endif |
29 | TOOLS_PLATFORM.cat?= /usr/bin/cat | | 29 | TOOLS_PLATFORM.cat?= /usr/bin/cat |
30 | TOOLS_PLATFORM.chgrp?= /usr/bin/chgrp | | 30 | TOOLS_PLATFORM.chgrp?= /usr/bin/chgrp |
31 | TOOLS_PLATFORM.chmod?= /usr/bin/chmod | | 31 | TOOLS_PLATFORM.chmod?= /usr/bin/chmod |
32 | TOOLS_PLATFORM.chown?= /usr/bin/chown | | 32 | TOOLS_PLATFORM.chown?= /usr/bin/chown |
33 | .if exists(/bin/cmp) | | 33 | .if exists(/bin/cmp) |
34 | TOOLS_PLATFORM.cmp?= /bin/cmp | | 34 | TOOLS_PLATFORM.cmp?= /bin/cmp |
35 | .elif exists(/usr/bin/cmp) | | 35 | .elif exists(/usr/bin/cmp) |
36 | TOOLS_PLATFORM.cmp?= /usr/bin/cmp | | 36 | TOOLS_PLATFORM.cmp?= /usr/bin/cmp |
37 | .endif | | 37 | .endif |
38 | TOOLS_PLATFORM.cp?= /bin/cp | | 38 | TOOLS_PLATFORM.cp?= /bin/cp |
39 | TOOLS_PLATFORM.csh?= /bin/csh | | 39 | TOOLS_PLATFORM.csh?= /bin/csh |
40 | .if exists(/usr/bin/curl) | | 40 | .if exists(/usr/bin/curl) |
41 | TOOLS_PLATFORM.curl?= /usr/bin/curl | | 41 | TOOLS_PLATFORM.curl?= /usr/bin/curl |
42 | .endif | | 42 | .endif |
43 | TOOLS_PLATFORM.cut?= /usr/bin/cut | | 43 | TOOLS_PLATFORM.cut?= /usr/bin/cut |
44 | TOOLS_PLATFORM.date?= /usr/xpg4/bin/date | | 44 | TOOLS_PLATFORM.date?= /usr/xpg4/bin/date |
45 | .if exists(/usr/bin/gdiff) | | 45 | .if exists(/usr/bin/gdiff) |
46 | TOOLS_PLATFORM.diff?= /usr/bin/gdiff | | 46 | TOOLS_PLATFORM.diff?= /usr/bin/gdiff |
47 | .else | | 47 | .else |
48 | TOOLS_PLATFORM.diff?= /usr/bin/diff | | 48 | TOOLS_PLATFORM.diff?= /usr/bin/diff |
49 | .endif | | 49 | .endif |
50 | .if exists(/usr/bin/gdiff3) | | 50 | .if exists(/usr/bin/gdiff3) |
51 | TOOLS_PLATFORM.diff3?= /usr/bin/gdiff3 | | 51 | TOOLS_PLATFORM.diff3?= /usr/bin/gdiff3 |
52 | .else | | 52 | .else |
53 | TOOLS_PLATFORM.diff3?= /usr/bin/diff3 | | 53 | TOOLS_PLATFORM.diff3?= /usr/bin/diff3 |
54 | .endif | | 54 | .endif |
55 | TOOLS_PLATFORM.dirname?= /usr/bin/dirname | | 55 | TOOLS_PLATFORM.dirname?= /usr/bin/dirname |
56 | TOOLS_PLATFORM.echo?= echo # shell builtin | | 56 | TOOLS_PLATFORM.echo?= echo # shell builtin |
57 | .if exists(/usr/gnu/bin/grep) | | 57 | .if exists(/usr/gnu/bin/grep) |
58 | TOOLS_PLATFORM.grep?= /usr/gnu/bin/grep | | 58 | TOOLS_PLATFORM.grep?= /usr/gnu/bin/grep |
59 | TOOLS_PLATFORM.egrep?= /usr/gnu/bin/grep -E | | 59 | TOOLS_PLATFORM.egrep?= /usr/gnu/bin/grep -E |
60 | TOOLS_PLATFORM.fgrep?= /usr/gnu/bin/grep -F | | 60 | TOOLS_PLATFORM.fgrep?= /usr/gnu/bin/grep -F |
61 | TOOLS_PLATFORM.ggrep?= /usr/gnu/bin/grep | | 61 | TOOLS_PLATFORM.ggrep?= /usr/gnu/bin/grep |
62 | .elif exists(/usr/sfw/bin/ggrep) | | 62 | .elif exists(/usr/sfw/bin/ggrep) |
63 | TOOLS_PLATFORM.grep?= /usr/sfw/bin/ggrep | | 63 | TOOLS_PLATFORM.grep?= /usr/sfw/bin/ggrep |
64 | TOOLS_PLATFORM.egrep?= /usr/sfw/bin/ggrep -E | | 64 | TOOLS_PLATFORM.egrep?= /usr/sfw/bin/ggrep -E |
65 | TOOLS_PLATFORM.fgrep?= /usr/sfw/bin/ggrep -F | | 65 | TOOLS_PLATFORM.fgrep?= /usr/sfw/bin/ggrep -F |
66 | TOOLS_PLATFORM.ggrep?= /usr/sfw/bin/ggrep | | 66 | TOOLS_PLATFORM.ggrep?= /usr/sfw/bin/ggrep |
67 | .else | | 67 | .else |
68 | TOOLS_PLATFORM.grep?= /usr/xpg4/bin/grep | | 68 | TOOLS_PLATFORM.grep?= /usr/xpg4/bin/grep |
69 | TOOLS_PLATFORM.egrep?= /usr/xpg4/bin/grep -E | | 69 | TOOLS_PLATFORM.egrep?= /usr/xpg4/bin/grep -E |
70 | TOOLS_PLATFORM.fgrep?= /usr/xpg4/bin/grep -F | | 70 | TOOLS_PLATFORM.fgrep?= /usr/xpg4/bin/grep -F |
71 | .endif | | 71 | .endif |
72 | TOOLS_PLATFORM.env?= /usr/bin/env | | 72 | TOOLS_PLATFORM.env?= /usr/bin/env |
73 | TOOLS_PLATFORM.expr?= /usr/xpg4/bin/expr | | 73 | TOOLS_PLATFORM.expr?= /usr/xpg4/bin/expr |
74 | TOOLS_PLATFORM.false?= false # shell builtin | | 74 | TOOLS_PLATFORM.false?= false # shell builtin |
75 | TOOLS_PLATFORM.file?= /usr/bin/file | | 75 | TOOLS_PLATFORM.file?= /usr/bin/file |
76 | .if exists(/usr/gnu/bin/find) | | 76 | .if exists(/usr/gnu/bin/find) |
77 | TOOLS_PLATFORM.find?= /usr/gnu/bin/find | | 77 | TOOLS_PLATFORM.find?= /usr/gnu/bin/find |
78 | .else | | 78 | .else |
79 | TOOLS_PLATFORM.find?= /usr/bin/find | | 79 | TOOLS_PLATFORM.find?= /usr/bin/find |
80 | .endif | | 80 | .endif |
81 | .if exists(/usr/bin/flex) | | 81 | .if exists(/usr/bin/flex) |
82 | TOOLS_PLATFORM.flex?= /usr/bin/flex | | 82 | TOOLS_PLATFORM.flex?= /usr/bin/flex |
83 | TOOLS_PLATFORM.lex?= /usr/bin/flex | | 83 | TOOLS_PLATFORM.lex?= /usr/bin/flex |
84 | .elif exists(/usr/sfw/bin/flex) | | 84 | .elif exists(/usr/sfw/bin/flex) |
85 | TOOLS_PLATFORM.flex?= /usr/sfw/bin/flex | | 85 | TOOLS_PLATFORM.flex?= /usr/sfw/bin/flex |
86 | TOOLS_PLATFORM.lex?= /usr/sfw/bin/flex | | 86 | TOOLS_PLATFORM.lex?= /usr/sfw/bin/flex |
87 | .endif | | 87 | .endif |
88 | .if exists(/usr/bin/gawk) | | 88 | .if exists(/usr/bin/gawk) |
89 | TOOLS_PLATFORM.gawk?= /usr/bin/gawk | | 89 | TOOLS_PLATFORM.gawk?= /usr/bin/gawk |
90 | .endif | | 90 | .endif |
91 | .if exists(/usr/bin/gm4) | | 91 | .if exists(/usr/bin/gm4) |
92 | TOOLS_PLATFORM.gm4?= /usr/bin/gm4 | | 92 | TOOLS_PLATFORM.gm4?= /usr/bin/gm4 |
93 | .endif | | 93 | .endif |
94 | .if exists(/usr/bin/gmake) | | 94 | .if exists(/usr/bin/gmake) |
95 | TOOLS_PLATFORM.gmake?= /usr/bin/gmake | | 95 | TOOLS_PLATFORM.gmake?= /usr/bin/gmake |
96 | .elif exists(/usr/sfw/bin/gmake) | | 96 | .elif exists(/usr/sfw/bin/gmake) |
97 | TOOLS_PLATFORM.gmake?= /usr/sfw/bin/gmake | | 97 | TOOLS_PLATFORM.gmake?= /usr/sfw/bin/gmake |
98 | .endif | | 98 | .endif |
99 | .if exists(/usr/bin/groff) | | 99 | .if exists(/usr/bin/groff) |
100 | TOOLS_PLATFORM.groff?= /usr/bin/groff | | 100 | TOOLS_PLATFORM.groff?= /usr/bin/groff |
101 | .endif | | 101 | .endif |
102 | .if exists(/usr/bin/gsed) | | 102 | .if exists(/usr/bin/gsed) |
103 | TOOLS_PLATFORM.gsed?= /usr/bin/gsed | | 103 | TOOLS_PLATFORM.gsed?= /usr/bin/gsed |
104 | .endif | | 104 | .endif |
105 | .if exists(/usr/bin/gsoelim) | | 105 | .if exists(/usr/bin/gsoelim) |
106 | TOOLS_PLATFORM.gsoelim?= /usr/bin/gsoelim | | 106 | TOOLS_PLATFORM.gsoelim?= /usr/bin/gsoelim |
107 | .endif | | 107 | .endif |
108 | .if exists(/usr/bin/gtar) | | 108 | .if exists(/usr/bin/gtar) |
109 | TOOLS_PLATFORM.gtar?= /usr/bin/gtar | | 109 | TOOLS_PLATFORM.gtar?= /usr/bin/gtar |
110 | TOOLS_PLATFORM.tar?= /usr/bin/gtar | | 110 | TOOLS_PLATFORM.tar?= /usr/bin/gtar |
111 | .elif exists(/usr/sfw/bin/gtar) | | 111 | .elif exists(/usr/sfw/bin/gtar) |
112 | TOOLS_PLATFORM.gtar?= /usr/sfw/bin/gtar | | 112 | TOOLS_PLATFORM.gtar?= /usr/sfw/bin/gtar |
113 | TOOLS_PLATFORM.tar?= /usr/sfw/bin/gtar | | 113 | TOOLS_PLATFORM.tar?= /usr/sfw/bin/gtar |
114 | .endif | | 114 | .endif |
115 | .if exists(/usr/bin/gzip) | | 115 | .if exists(/usr/bin/gzip) |
116 | TOOLS_PLATFORM.gunzip?= /usr/bin/gzip -df | | 116 | TOOLS_PLATFORM.gunzip?= /usr/bin/gzip -df |
117 | TOOLS_PLATFORM.gzcat?= /usr/bin/gzip -cd | | 117 | TOOLS_PLATFORM.gzcat?= /usr/bin/gzip -cd |
118 | TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP} | | 118 | TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP} |
119 | .endif | | 119 | .endif |
120 | TOOLS_PLATFORM.head?= /usr/bin/head | | 120 | TOOLS_PLATFORM.head?= /usr/bin/head |
121 | TOOLS_PLATFORM.hostname?= /bin/hostname | | 121 | TOOLS_PLATFORM.hostname?= /bin/hostname |
122 | TOOLS_PLATFORM.id?= /usr/xpg4/bin/id | | 122 | TOOLS_PLATFORM.id?= /usr/xpg4/bin/id |
123 | .if exists(/usr/bin/install-info) | | 123 | .if exists(/usr/bin/install-info) |
124 | TOOLS_PLATFORM.install-info?= /usr/bin/install-info | | 124 | TOOLS_PLATFORM.install-info?= /usr/bin/install-info |
125 | .elif exists(/usr/sfw/bin/install-info) | | 125 | .elif exists(/usr/sfw/bin/install-info) |
126 | TOOLS_PLATFORM.install-info?= /usr/sfw/bin/install-info | | 126 | TOOLS_PLATFORM.install-info?= /usr/sfw/bin/install-info |
127 | .endif | | 127 | .endif |
128 | .if exists(/usr/bin/ginstall) | | 128 | .if exists(/usr/bin/ginstall) |
129 | TOOLS_PLATFORM.install?= /usr/bin/ginstall | | 129 | TOOLS_PLATFORM.install?= /usr/bin/ginstall |
130 | .else | | 130 | .else |
131 | TOOLS_PLATFORM.install?= /usr/ucb/install | | 131 | TOOLS_PLATFORM.install?= /usr/ucb/install |
132 | .endif | | 132 | .endif |
133 | TOOLS_PLATFORM.ksh?= /bin/ksh | | 133 | TOOLS_PLATFORM.ksh?= /bin/ksh |
134 | .if exists(/usr/bin/ld) | | 134 | .if exists(/usr/bin/ld) |
135 | TOOLS_PLATFORM.ld?= /usr/bin/ld | | 135 | TOOLS_PLATFORM.ld?= /usr/bin/ld |
136 | .elif exists(/usr/ccs/bin/ld) | | 136 | .elif exists(/usr/ccs/bin/ld) |
137 | TOOLS_PLATFORM.ld?= /usr/ccs/bin/ld | | 137 | TOOLS_PLATFORM.ld?= /usr/ccs/bin/ld |
138 | .endif | | 138 | .endif |
139 | TOOLS_PLATFORM.ln?= /usr/bin/ln | | 139 | TOOLS_PLATFORM.ln?= /usr/bin/ln |
140 | TOOLS_PLATFORM.ls?= /usr/bin/ls | | 140 | TOOLS_PLATFORM.ls?= /usr/bin/ls |
141 | TOOLS_PLATFORM.m4?= /usr/ccs/bin/m4 | | 141 | TOOLS_PLATFORM.m4?= /usr/ccs/bin/m4 |
142 | TOOLS_PLATFORM.mail?= /usr/bin/mailx | | 142 | TOOLS_PLATFORM.mail?= /usr/bin/mailx |
143 | .if exists(/usr/bin/makeinfo) | | 143 | .if exists(/usr/bin/makeinfo) |
144 | TOOLS_PLATFORM.makeinfo?= /usr/bin/makeinfo | | 144 | TOOLS_PLATFORM.makeinfo?= /usr/bin/makeinfo |
145 | .elif exists(/usr/sfw/bin/makeinfo) | | 145 | .elif exists(/usr/sfw/bin/makeinfo) |
146 | TOOLS_PLATFORM.makeinfo?= /usr/sfw/bin/makeinfo | | 146 | TOOLS_PLATFORM.makeinfo?= /usr/sfw/bin/makeinfo |
147 | .endif | | 147 | .endif |
| | | 148 | .if exists(/usr/bin/mandoc) |
| | | 149 | TOOLS_PLATFORM.mandoc?= /usr/bin/mandoc |
| | | 150 | .endif |
148 | TOOLS_PLATFORM.mkdir?= /usr/bin/mkdir -p | | 151 | TOOLS_PLATFORM.mkdir?= /usr/bin/mkdir -p |
149 | .if exists(/usr/bin/mktemp) | | 152 | .if exists(/usr/bin/mktemp) |
150 | TOOLS_PLATFORM.mktemp?= /usr/bin/mktemp | | 153 | TOOLS_PLATFORM.mktemp?= /usr/bin/mktemp |
151 | .endif | | 154 | .endif |
152 | TOOLS_PLATFORM.mv?= /usr/bin/mv | | 155 | TOOLS_PLATFORM.mv?= /usr/bin/mv |
153 | TOOLS_PLATFORM.nice?= /usr/xpg4/bin/nice | | 156 | TOOLS_PLATFORM.nice?= /usr/xpg4/bin/nice |
154 | .if exists(/usr/bin/gnroff) | | 157 | .if exists(/usr/bin/gnroff) |
155 | TOOLS_PLATFORM.nroff?= /usr/bin/gnroff | | 158 | TOOLS_PLATFORM.nroff?= /usr/bin/gnroff |
156 | .endif | | 159 | .endif |
157 | .if exists(/usr/bin/openssl) | | 160 | .if exists(/usr/bin/openssl) |
158 | TOOLS_PLATFORM.openssl?= /usr/bin/openssl | | 161 | TOOLS_PLATFORM.openssl?= /usr/bin/openssl |
159 | .endif | | 162 | .endif |
160 | # Don't use GNU patch | | 163 | # Don't use GNU patch |
161 | #TOOLS_PLATFORM.gpatch?= /usr/bin/gpatch | | 164 | #TOOLS_PLATFORM.gpatch?= /usr/bin/gpatch |
162 | #TOOLS_PLATFORM.patch?= /usr/bin/gpatch | | 165 | #TOOLS_PLATFORM.patch?= /usr/bin/gpatch |
163 | # Native pax doesn't support -O required by mk/extract/extract | | 166 | # Native pax doesn't support -O required by mk/extract/extract |
164 | #TOOLS_PLATFORM.pax?= /bin/pax | | 167 | #TOOLS_PLATFORM.pax?= /bin/pax |
165 | #.if exists(/usr/bin/perl) | | 168 | #.if exists(/usr/bin/perl) |
166 | #TOOLS_PLATFORM.perl?= /usr/bin/perl | | 169 | #TOOLS_PLATFORM.perl?= /usr/bin/perl |
167 | #TOOLS_PLATFORM.pod2man?= /usr/perl5/bin/pod2man | | 170 | #TOOLS_PLATFORM.pod2man?= /usr/perl5/bin/pod2man |
168 | #.endif | | 171 | #.endif |
169 | TOOLS_PLATFORM.printf?= /bin/printf | | 172 | TOOLS_PLATFORM.printf?= /bin/printf |
170 | TOOLS_PLATFORM.pwd?= pwd # shell builtin | | 173 | TOOLS_PLATFORM.pwd?= pwd # shell builtin |
171 | .if exists(/usr/gnu/bin/readelf) | | 174 | .if exists(/usr/gnu/bin/readelf) |
172 | TOOLS_PLATFORM.readelf?= /usr/gnu/bin/readelf | | 175 | TOOLS_PLATFORM.readelf?= /usr/gnu/bin/readelf |
173 | .elif exists(/usr/sfw/bin/greadelf) | | 176 | .elif exists(/usr/sfw/bin/greadelf) |
174 | TOOLS_PLATFORM.readelf?= /usr/sfw/bin/greadelf | | 177 | TOOLS_PLATFORM.readelf?= /usr/sfw/bin/greadelf |
175 | .endif | | 178 | .endif |
176 | TOOLS_PLATFORM.rm?= /usr/bin/rm | | 179 | TOOLS_PLATFORM.rm?= /usr/bin/rm |
177 | TOOLS_PLATFORM.rmdir?= /usr/bin/rmdir | | 180 | TOOLS_PLATFORM.rmdir?= /usr/bin/rmdir |
178 | .if exists(/usr/bin/gsdiff) | | 181 | .if exists(/usr/bin/gsdiff) |
179 | TOOLS_PLATFORM.sdiff?= /usr/bin/gsdiff | | 182 | TOOLS_PLATFORM.sdiff?= /usr/bin/gsdiff |
180 | .else | | 183 | .else |
181 | TOOLS_PLATFORM.sdiff?= /usr/bin/sdiff | | 184 | TOOLS_PLATFORM.sdiff?= /usr/bin/sdiff |
182 | .endif | | 185 | .endif |
183 | .if exists(/usr/gnu/bin/sed) | | 186 | .if exists(/usr/gnu/bin/sed) |
184 | TOOLS_PLATFORM.sed?= /usr/gnu/bin/sed | | 187 | TOOLS_PLATFORM.sed?= /usr/gnu/bin/sed |
185 | .endif | | 188 | .endif |
186 | TOOLS_PLATFORM.sh?= /bin/ksh | | 189 | TOOLS_PLATFORM.sh?= /bin/ksh |
187 | TOOLS_PLATFORM.sleep?= /bin/sleep | | 190 | TOOLS_PLATFORM.sleep?= /bin/sleep |
188 | .if exists(/usr/bin/soelim) | | 191 | .if exists(/usr/bin/soelim) |
189 | TOOLS_PLATFORM.soelim?= /usr/bin/soelim | | 192 | TOOLS_PLATFORM.soelim?= /usr/bin/soelim |
190 | .endif | | 193 | .endif |
191 | TOOLS_PLATFORM.sort?= /usr/bin/sort | | 194 | TOOLS_PLATFORM.sort?= /usr/bin/sort |
192 | .if exists(/usr/ccs/bin/strip) | | 195 | .if exists(/usr/ccs/bin/strip) |
193 | TOOLS_PLATFORM.strip?= /usr/ccs/bin/strip | | 196 | TOOLS_PLATFORM.strip?= /usr/ccs/bin/strip |
194 | .elif exists(/usr/bin/strip) | | 197 | .elif exists(/usr/bin/strip) |
195 | TOOLS_PLATFORM.strip?= /usr/bin/strip | | 198 | TOOLS_PLATFORM.strip?= /usr/bin/strip |
196 | .endif | | 199 | .endif |
197 | TOOLS_PLATFORM.tail?= /usr/xpg4/bin/tail | | 200 | TOOLS_PLATFORM.tail?= /usr/xpg4/bin/tail |
198 | .if exists(/usr/bin/tbl) | | 201 | .if exists(/usr/bin/tbl) |
199 | TOOLS_PLATFORM.tbl?= /usr/bin/tbl | | 202 | TOOLS_PLATFORM.tbl?= /usr/bin/tbl |
200 | .endif | | 203 | .endif |
201 | TOOLS_PLATFORM.tee?= /usr/bin/tee | | 204 | TOOLS_PLATFORM.tee?= /usr/bin/tee |
202 | TOOLS_PLATFORM.test?= test # shell builtin | | 205 | TOOLS_PLATFORM.test?= test # shell builtin |
203 | TOOLS_PLATFORM.touch?= /usr/bin/touch | | 206 | TOOLS_PLATFORM.touch?= /usr/bin/touch |
204 | TOOLS_PLATFORM.tr?= /usr/xpg4/bin/tr | | 207 | TOOLS_PLATFORM.tr?= /usr/xpg4/bin/tr |
205 | TOOLS_PLATFORM.true?= true # shell builtin | | 208 | TOOLS_PLATFORM.true?= true # shell builtin |
206 | TOOLS_PLATFORM.tsort?= /usr/ccs/bin/tsort | | 209 | TOOLS_PLATFORM.tsort?= /usr/ccs/bin/tsort |
207 | TOOLS_PLATFORM.uniq?= /usr/bin/uniq | | 210 | TOOLS_PLATFORM.uniq?= /usr/bin/uniq |
208 | .if exists(/usr/bin/unzip) | | 211 | .if exists(/usr/bin/unzip) |
209 | TOOLS_PLATFORM.unzip?= /usr/bin/unzip | | 212 | TOOLS_PLATFORM.unzip?= /usr/bin/unzip |
210 | .endif | | 213 | .endif |
211 | TOOLS_PLATFORM.wc?= /usr/bin/wc | | 214 | TOOLS_PLATFORM.wc?= /usr/bin/wc |
212 | TOOLS_PLATFORM.xargs?= /usr/bin/xargs | | 215 | TOOLS_PLATFORM.xargs?= /usr/bin/xargs |
213 | .if exists(/usr/bin/xz) | | 216 | .if exists(/usr/bin/xz) |
214 | TOOLS_PLATFORM.xz?= /usr/bin/xz | | 217 | TOOLS_PLATFORM.xz?= /usr/bin/xz |
215 | .endif | | 218 | .endif |
216 | .if exists(/usr/bin/xzcat) | | 219 | .if exists(/usr/bin/xzcat) |
217 | TOOLS_PLATFORM.xzcat?= /usr/bin/xzcat | | 220 | TOOLS_PLATFORM.xzcat?= /usr/bin/xzcat |
218 | .endif | | 221 | .endif |
219 | .if exists(/usr/bin/yacc) | | 222 | .if exists(/usr/bin/yacc) |
220 | TOOLS_PLATFORM.yacc?= /usr/bin/yacc | | 223 | TOOLS_PLATFORM.yacc?= /usr/bin/yacc |
221 | .endif | | 224 | .endif |
222 | .if exists(/usr/bin/zip) | | 225 | .if exists(/usr/bin/zip) |
223 | TOOLS_PLATFORM.zip?= /usr/bin/zip | | 226 | TOOLS_PLATFORM.zip?= /usr/bin/zip |
224 | TOOLS_PLATFORM.zipcloak?= /usr/bin/zipcloak | | 227 | TOOLS_PLATFORM.zipcloak?= /usr/bin/zipcloak |
225 | TOOLS_PLATFORM.zipnote?= /usr/bin/zipnote | | 228 | TOOLS_PLATFORM.zipnote?= /usr/bin/zipnote |
226 | TOOLS_PLATFORM.zipsplit?= /usr/bin/zipsplit | | 229 | TOOLS_PLATFORM.zipsplit?= /usr/bin/zipsplit |
227 | .endif | | 230 | .endif |
228 | | | 231 | |
229 | # | | 232 | # |
230 | # If we've bootstrapped with bash as the default shell then ensure print is a | | 233 | # If we've bootstrapped with bash as the default shell then ensure print is a |
231 | # broken wrapper to work around a bug in the libtool configure script that | | 234 | # broken wrapper to work around a bug in the libtool configure script that |
232 | # assumes print, if available, is always a builtin. bash does not have print | | 235 | # assumes print, if available, is always a builtin. bash does not have print |
233 | # builtin and /usr/bin/print gets called instead, affecting performance. | | 236 | # builtin and /usr/bin/print gets called instead, affecting performance. |
234 | # | | 237 | # |
235 | # Also ensure we do use any bash builtins instead of separate commands. | | 238 | # Also ensure we do use any bash builtins instead of separate commands. |
236 | # | | 239 | # |
237 | .if ${TOOLS_PLATFORM.sh:M*bash} | | 240 | .if ${TOOLS_PLATFORM.sh:M*bash} |
238 | TOOLS_CREATE+= print | | 241 | TOOLS_CREATE+= print |
239 | TOOLS_PATH.print= ${FALSE} | | 242 | TOOLS_PATH.print= ${FALSE} |
240 | | | 243 | |
241 | TOOLS_PLATFORM.printf= printf | | 244 | TOOLS_PLATFORM.printf= printf |
242 | .endif | | 245 | .endif |