| 88 |
kernel_path="" |
kernel_path="" |
| 89 |
cocoa="no" |
cocoa="no" |
| 90 |
check_gfx="yes" |
check_gfx="yes" |
| 91 |
|
check_gcc="yes" |
| 92 |
|
|
| 93 |
# OS specific |
# OS specific |
| 94 |
targetos=`uname -s` |
targetos=`uname -s` |
| 201 |
;; |
;; |
| 202 |
--disable-gfx-check) check_gfx="no" |
--disable-gfx-check) check_gfx="no" |
| 203 |
;; |
;; |
| 204 |
|
--disable-gcc-check) check_gcc="no" |
| 205 |
|
;; |
| 206 |
esac |
esac |
| 207 |
done |
done |
| 208 |
|
|
| 280 |
have_gcc3_options="yes" |
have_gcc3_options="yes" |
| 281 |
fi |
fi |
| 282 |
|
|
| 283 |
|
# Check for gcc4 |
| 284 |
|
if test "$check_gcc" = "yes" ; then |
| 285 |
|
cat > $TMPC <<EOF |
| 286 |
|
#if __GNUC__ >= 4 |
| 287 |
|
#error gcc4 |
| 288 |
|
#endif |
| 289 |
|
int main(){return 0;} |
| 290 |
|
EOF |
| 291 |
|
if ! $cc -o $TMPO $TMPC 2>/dev/null ; then |
| 292 |
|
echo "ERROR: \"$cc\" looks like gcc 4.x" |
| 293 |
|
echo "QEMU is known to have problems when compiled with gcc 4.x" |
| 294 |
|
echo "It is recommended that you use gcc 3.x to build QEMU" |
| 295 |
|
echo "To use this compiler anyway, configure with --disable-gcc-check" |
| 296 |
|
exit 1; |
| 297 |
|
fi |
| 298 |
|
fi |
| 299 |
|
|
| 300 |
########################################## |
########################################## |
| 301 |
# SDL probe |
# SDL probe |
| 302 |
|
|