Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.7.1
-
None
-
66242e0e492137e051273055f566c3edd42c07e9
Description
The configure script contains logic to try to figure out what platform it is building for based on the presence or absence of certain platform-specific source files. However, since Qt 4.6.0, we stopped making platform-specific source packages, so the logic (reproduced below) is no longer useful and needs to be reworked.
#------------------------------------------------------------------------------- # window system detection #------------------------------------------------------------------------------- PLATFORM_X11=no PLATFORM_MAC=no PLATFORM_QWS=no if [ -f "$relpath"/src/gui/kernel/qapplication_mac.mm ] && [ -d /System/Library/Frameworks/Carbon.framework ]; then # Qt/Mac # ~ the Carbon SDK exists # ~ src/gui/base/qapplication_mac.cpp is present # ~ this is the internal edition and Qt/Mac sources exist PLATFORM_MAC=maybe elif [ -f "$relpath"/src/gui/kernel/qapplication_qws.cpp ]; then # Qt Embedded # ~ src/gui/base/qapplication_qws.cpp is present # ~ this is the free or commercial edition # ~ this is the internal edition and Qt Embedded is explicitly enabled if [ -f "$relpath"/src/gui/kernel/qapplication_mac.mm ]; then # This is a depot build, or an all-platforms package PLATFORM_QWS=maybe else # This must be the embedded package, since the Qt/Mac source files are not present PLATFORM_QWS=yes fi fi