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'
;;
*-*-*)
# 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'
fi
;;
esac
for dir in "${tryfirstdir}" unix win macosx __fail__; do
if [ -z "${dir}" ]; then
continue
fi
if [ "${dir}" = "__fail__" ]; then
# If we haven't figured out how to build it, reject.
|
|
|
|
|
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='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='unix'
fi
;;
esac
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.
|