diff options
author | Morten Johan Sørvig <morten.sorvig@nokia.com> | 2009-11-05 12:11:38 (GMT) |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@nokia.com> | 2009-11-05 12:11:38 (GMT) |
commit | 8927e54d9ab5dda2c1f8e0e17988ad37ab0e4b1e (patch) | |
tree | cb1e88def98d433d6dd2b99937ff1757546eb3b6 /configure | |
parent | ee88b2d8408396188eb2ce52d740c395c6cd4656 (diff) | |
download | Qt-8927e54d9ab5dda2c1f8e0e17988ad37ab0e4b1e.zip Qt-8927e54d9ab5dda2c1f8e0e17988ad37ab0e4b1e.tar.gz Qt-8927e54d9ab5dda2c1f8e0e17988ad37ab0e4b1e.tar.bz2 |
Make configure warn on incompatible gcc / SDK.
Print a warning if configure was called with the
10.4u SDK option on Snow Leopard with the default
mkspec. The 10.4u SDK does not support gcc 4.2.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -3022,6 +3022,18 @@ else CFG_FRAMEWORK=no fi +# Print a warning if configure was called with the 10.4u SDK option on Snow Leopard +# with the default mkspec. The 10.4u SDK does not support gcc 4.2. +if [ "$PLATFORM_MAC" = "yes" ] && [ '!' -z "$CFG_SDK" ]; then + # get the darwin version. 10.0.0 and up means snow leopard. + VERSION=`uname -r | tr '.' ' ' | awk '{print $1}'` + if [ "$VERSION" -gt 9 ] && [ "$CFG_SDK" == "/Developer/SDKs/MacOSX10.4u.sdk/" ] && [ "$PLATFORM" == "macx-g++" ]; then + echo + echo "WARNING: The 10.4u SDK does not support gcc 4.2. Configure with -platform macx-g++40. " + echo + fi +fi + # x11 tests are done after qmake is built |