200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
|
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
|
-
+
-
+
-
+
|
fi
done
tryfirstdir=''
case "${KC_CROSSCOMPILE_HOST_OS}" in
*-*-darwin*)
# Cross-compiling for Mac OS X -- try to build macosx directory first
tryfirstdir='macosx'
tryfirstdir='unix'
;;
*-*-*)
# Cross-compiling, do not assume based on build platform
;;
'')
# Not cross-compiling, assume based on build platform
if [ "$(uname -s)" = "Darwin" ]; then
# Compiling for Mac OS X, build in that directory first
tryfirstdir='macosx'
tryfirstdir='unix'
fi
;;
esac
for dir in "${tryfirstdir}" unix win macosx __fail__; do
for dir in "${tryfirstdir}" unix win __fail__; do
if [ -z "${dir}" ]; then
continue
fi
if [ "${dir}" = "__fail__" ]; then
# If we haven't figured out how to build it, reject.
|