104:ea36fd802446 | 105:4b3e655339cb |
---|---|
204 return 1 | 204 return 1 |
205 fi | 205 fi |
206 done | 206 done |
207 return 0 | 207 return 0 |
208 } | 208 } |
209 istoolchain() | |
210 { | |
211 for t in $TOOLCHAIN | |
212 do | |
213 if [ "$t" = "$1" ]; then | |
214 return 0 | |
215 fi | |
216 done | |
217 return 1 | |
218 } | |
219 notistoolchain() | |
220 { | |
221 for t in $TOOLCHAIN | |
222 do | |
223 if [ "$t" = "$1" ]; then | |
224 return 1 | |
225 fi | |
226 done | |
227 return 0 | |
228 } | |
209 | 229 |
210 | 230 |
211 # generate vars.mk | 231 # generate vars.mk |
212 cat > "$TEMP_DIR/vars.mk" << __EOF__ | 232 cat > "$TEMP_DIR/vars.mk" << __EOF__ |
213 prefix="$prefix" | 233 prefix="$prefix" |
399 while true | 419 while true |
400 do | 420 do |
401 if notisplatform "bsd"; then | 421 if notisplatform "bsd"; then |
402 break | 422 break |
403 fi | 423 fi |
404 if isplatform "macos"; then | 424 if isplatform "macos" || istoolchain "macos"; then |
405 break | 425 break |
406 fi | 426 fi |
407 TEMP_CFLAGS="$TEMP_CFLAGS -DBSD" | 427 TEMP_CFLAGS="$TEMP_CFLAGS -DBSD" |
408 print_check_msg "$dep_checked_test" "yes\n" | 428 print_check_msg "$dep_checked_test" "yes\n" |
409 dep_checked_test=1 | 429 dep_checked_test=1 |