Fixed opengldesktop configure test for mac.
authorRohan McGovern <rohan.mcgovern@nokia.com>
Tue, 5 Jul 2011 01:02:44 +0000 (11:02 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 5 Jul 2011 03:17:35 +0000 (05:17 +0200)
This configure test has never worked for mac.

In a non-qpa configuration, this didn't matter, as the configure script
would skip this configure test on mac.  The configure script could also
be modified to skip the configure test in the qpa case, but it seems
cleaner to make the test actually work.

Change-Id: I0402c490fc4c2401f6363ba2215b261f74ee5d75
Reviewed-on: http://codereview.qt.nokia.com/1127
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
config.tests/unix/opengldesktop/opengldesktop.cpp
config.tests/unix/opengldesktop/opengldesktop.pro

index 54860fe..af21cfd 100644 (file)
 **
 ****************************************************************************/
 
-#include <GL/gl.h>
+#if defined(Q_OS_MAC)
+# include <OpenGL/gl.h>
+#else
+# include <GL/gl.h>
+#endif
 
 int main(int, char **)
 {
index ac70ca3..fbf36a0 100644 (file)
@@ -7,3 +7,6 @@ for(p, QMAKE_LIBDIR_OPENGL) {
 
 CONFIG -= qt
 LIBS += $$QMAKE_LIBS_OPENGL
+
+mac:DEFINES += Q_OS_MAC
+CONFIG -= app_bundle