Initial Qt (NOT WORKING)
[fedora-mingw.git] / qt-win / qt-win-configure.patch
1 diff -urN qt-win-opensource-src-4.4.3.orig/configure.cache qt-win-opensource-src-4.4.3/configure.cache
2 --- qt-win-opensource-src-4.4.3.orig/configure.cache    1970-01-01 01:00:00.000000000 +0100
3 +++ qt-win-opensource-src-4.4.3/configure.cache 2009-02-01 23:43:14.000000000 +0000
4 @@ -0,0 +1,27 @@
5 +-platform \r
6 +win32-g++ \r
7 +-confirm-license \r
8 +-no-qmake \r
9 +-dont-process \r
10 +-prefix \r
11 +/usr/i686-pc-mingw32/sys-root/mingw \r
12 +-bindir \r
13 +/usr/i686-pc-mingw32/sys-root/mingw/bin \r
14 +-datadir \r
15 +/usr/i686-pc-mingw32/sys-root/mingw/share \r
16 +-demosdir \r
17 +/usr/i686-pc-mingw32/sys-root/mingw/lib/qt4/demos \r
18 +-docdir \r
19 +/usr/i686-pc-mingw32/sys-root/mingw/share/doc \r
20 +-examplesdir \r
21 +/usr/i686-pc-mingw32/sys-root/mingw/share/qt4/examples \r
22 +-headerdir \r
23 +/usr/i686-pc-mingw32/sys-root/mingw/include \r
24 +-libdir \r
25 +/usr/i686-pc-mingw32/sys-root/mingw/lib \r
26 +-plugindir \r
27 +/usr/i686-pc-mingw32/sys-root/mingw/lib/qt4/plugins \r
28 +-translationdir \r
29 +/usr/i686-pc-mingw32/sys-root/mingw/share/qt4/translations \r
30 +-release \r
31 +-shared \r
32 diff -urN qt-win-opensource-src-4.4.3.orig/include/Qt/qconfig.h qt-win-opensource-src-4.4.3/include/Qt/qconfig.h
33 --- qt-win-opensource-src-4.4.3.orig/include/Qt/qconfig.h       1970-01-01 01:00:00.000000000 +0100
34 +++ qt-win-opensource-src-4.4.3/include/Qt/qconfig.h    2009-02-01 23:43:14.000000000 +0000
35 @@ -0,0 +1 @@
36 +#include "../../src/corelib/global/qconfig.h"
37 diff -urN qt-win-opensource-src-4.4.3.orig/include/QtCore/qconfig.h qt-win-opensource-src-4.4.3/include/QtCore/qconfig.h
38 --- qt-win-opensource-src-4.4.3.orig/include/QtCore/qconfig.h   1970-01-01 01:00:00.000000000 +0100
39 +++ qt-win-opensource-src-4.4.3/include/QtCore/qconfig.h        2009-02-01 23:43:14.000000000 +0000
40 @@ -0,0 +1 @@
41 +#include "../../src/corelib/global/qconfig.h"
42 diff -urN qt-win-opensource-src-4.4.3.orig/mkspecs/default/qmake.conf qt-win-opensource-src-4.4.3/mkspecs/default/qmake.conf
43 --- qt-win-opensource-src-4.4.3.orig/mkspecs/default/qmake.conf 1970-01-01 01:00:00.000000000 +0100
44 +++ qt-win-opensource-src-4.4.3/mkspecs/default/qmake.conf      2009-02-01 23:43:14.000000000 +0000
45 @@ -0,0 +1,107 @@
46 +#\r
47 +# qmake configuration for win32-g++\r
48 +#\r
49 +# Written for MinGW\r
50 +#\r
51 +\r
52 +MAKEFILE_GENERATOR     = MINGW\r
53 +TEMPLATE               = app\r
54 +CONFIG                 += qt warn_on release link_prl copy_dir_files debug_and_release debug_and_release_target precompile_header\r
55 +QT                     += core gui\r
56 +DEFINES                        += UNICODE QT_LARGEFILE_SUPPORT\r
57 +QMAKE_COMPILER_DEFINES  += __GNUC__ WIN32\r
58 +\r
59 +QMAKE_EXT_OBJ           = .o\r
60 +QMAKE_EXT_RES           = _res.o\r
61 +\r
62 +QMAKE_CC               = gcc\r
63 +QMAKE_LEX              = flex\r
64 +QMAKE_LEXFLAGS         =\r
65 +QMAKE_YACC             = byacc\r
66 +QMAKE_YACCFLAGS                = -d\r
67 +QMAKE_CFLAGS           =\r
68 +QMAKE_CFLAGS_DEPS      = -M\r
69 +QMAKE_CFLAGS_WARN_ON   = -Wall\r
70 +QMAKE_CFLAGS_WARN_OFF  = -w\r
71 +QMAKE_CFLAGS_RELEASE   = -O2\r
72 +QMAKE_CFLAGS_DEBUG     = -g\r
73 +QMAKE_CFLAGS_YACC      = -Wno-unused -Wno-parentheses\r
74 +\r
75 +QMAKE_CXX              = g++\r
76 +QMAKE_CXXFLAGS         = $$QMAKE_CFLAGS\r
77 +QMAKE_CXXFLAGS_DEPS    = $$QMAKE_CFLAGS_DEPS\r
78 +QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON\r
79 +QMAKE_CXXFLAGS_WARN_OFF        = $$QMAKE_CFLAGS_WARN_OFF\r
80 +QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE\r
81 +QMAKE_CXXFLAGS_DEBUG   = $$QMAKE_CFLAGS_DEBUG\r
82 +QMAKE_CXXFLAGS_YACC    = $$QMAKE_CFLAGS_YACC\r
83 +QMAKE_CXXFLAGS_THREAD  = $$QMAKE_CFLAGS_THREAD\r
84 +QMAKE_CXXFLAGS_RTTI_ON = -frtti\r
85 +QMAKE_CXXFLAGS_RTTI_OFF        = -fno-rtti\r
86 +QMAKE_CXXFLAGS_EXCEPTIONS_ON = -fexceptions -mthreads\r
87 +QMAKE_CXXFLAGS_EXCEPTIONS_OFF = -fno-exceptions\r
88 +\r
89 +QMAKE_INCDIR           =\r
90 +QMAKE_INCDIR_QT                = $$[QT_INSTALL_HEADERS]\r
91 +QMAKE_LIBDIR_QT                = $$[QT_INSTALL_LIBS]\r
92 +\r
93 +QMAKE_RUN_CC           = $(CC) -c $(CFLAGS) $(INCPATH) -o $obj $src\r
94 +QMAKE_RUN_CC_IMP       = $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<\r
95 +QMAKE_RUN_CXX          = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $obj $src\r
96 +QMAKE_RUN_CXX_IMP      = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<\r
97 +\r
98 +QMAKE_LINK             = g++\r
99 +QMAKE_LFLAGS           = -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc\r
100 +QMAKE_LFLAGS_EXCEPTIONS_ON = -mthreads -Wl\r
101 +QMAKE_LFLAGS_EXCEPTIONS_OFF =\r
102 +QMAKE_LFLAGS_RELEASE   = -Wl,-s\r
103 +QMAKE_LFLAGS_DEBUG     =\r
104 +QMAKE_LFLAGS_CONSOLE   = -Wl,-subsystem,console\r
105 +QMAKE_LFLAGS_WINDOWS   = -Wl,-subsystem,windows\r
106 +QMAKE_LFLAGS_DLL        = -shared\r
107 +QMAKE_LINK_OBJECT_MAX  = 10\r
108 +QMAKE_LINK_OBJECT_SCRIPT= object_script\r
109 +\r
110 +\r
111 +QMAKE_LIBS             =\r
112 +QMAKE_LIBS_CORE         = -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws2_32\r
113 +QMAKE_LIBS_GUI          = -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lws2_32 -lole32 -luuid -luser32 -ladvapi32\r
114 +QMAKE_LIBS_NETWORK      = -lws2_32\r
115 +QMAKE_LIBS_OPENGL       = -lopengl32 -lglu32 -lgdi32 -luser32\r
116 +QMAKE_LIBS_COMPAT       = -ladvapi32 -lshell32 -lcomdlg32 -luser32 -lgdi32 -lws2_32\r
117 +QMAKE_LIBS_QT_ENTRY     = -lmingw32 -lqtmain\r
118 +\r
119 +!isEmpty(QMAKE_SH) {\r
120 +    MINGW_IN_SHELL      = 1\r
121 +       QMAKE_DIR_SEP           = /\r
122 +       QMAKE_COPY              = cp\r
123 +       QMAKE_COPY_DIR          = xcopy /s /q /y /i\r
124 +       QMAKE_MOVE              = mv\r
125 +       QMAKE_DEL_FILE          = rm\r
126 +       QMAKE_MKDIR             = mkdir\r
127 +       QMAKE_DEL_DIR           = rmdir\r
128 +    QMAKE_CHK_DIR_EXISTS = test -d\r
129 +} else {\r
130 +       QMAKE_COPY              = copy /y\r
131 +       QMAKE_COPY_DIR          = xcopy /s /q /y /i\r
132 +       QMAKE_MOVE              = move\r
133 +       QMAKE_DEL_FILE          = del\r
134 +       QMAKE_MKDIR             = mkdir\r
135 +       QMAKE_DEL_DIR           = rmdir\r
136 +    QMAKE_CHK_DIR_EXISTS       = if not exist\r
137 +}\r
138 +\r
139 +QMAKE_MOC              = $$[QT_INSTALL_BINS]$${DIR_SEPARATOR}moc.exe\r
140 +QMAKE_UIC              = $$[QT_INSTALL_BINS]$${DIR_SEPARATOR}uic.exe\r
141 +QMAKE_IDC              = $$[QT_INSTALL_BINS]$${DIR_SEPARATOR}idc.exe\r
142 +\r
143 +QMAKE_IDL              = midl\r
144 +QMAKE_LIB              = ar -ru\r
145 +QMAKE_RC               = windres\r
146 +QMAKE_ZIP              = zip -r -9\r
147 +\r
148 +QMAKE_STRIP            = strip\r
149 +QMAKE_STRIPFLAGS_LIB   += --strip-unneeded\r
150 +load(qt_config)\r
151 +\r
152 +QMAKESPEC_ORIGINAL=Z:/tmp/qt-win-opensource-src-4.4.3/mkspecs/win32-g++\r
153 diff -urN qt-win-opensource-src-4.4.3.orig/mkspecs/default/qplatformdefs.h qt-win-opensource-src-4.4.3/mkspecs/default/qplatformdefs.h
154 --- qt-win-opensource-src-4.4.3.orig/mkspecs/default/qplatformdefs.h    1970-01-01 01:00:00.000000000 +0100
155 +++ qt-win-opensource-src-4.4.3/mkspecs/default/qplatformdefs.h 2008-09-27 10:00:52.000000000 +0100
156 @@ -0,0 +1,160 @@
157 +/****************************************************************************\r
158 +**\r
159 +** Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies).\r
160 +** Contact: Qt Software Information (qt-info@nokia.com)\r
161 +**\r
162 +** This file is part of the qmake spec of the Qt Toolkit.\r
163 +**\r
164 +** Commercial Usage\r
165 +** Licensees holding valid Qt Commercial licenses may use this file in\r
166 +** accordance with the Qt Commercial License Agreement provided with the\r
167 +** Software or, alternatively, in accordance with the terms contained in\r
168 +** a written agreement between you and Nokia.\r
169 +**\r
170 +**\r
171 +** GNU General Public License Usage\r
172 +** Alternatively, this file may be used under the terms of the GNU\r
173 +** General Public License versions 2.0 or 3.0 as published by the Free\r
174 +** Software Foundation and appearing in the file LICENSE.GPL included in\r
175 +** the packaging of this file.  Please review the following information\r
176 +** to ensure GNU General Public Licensing requirements will be met:\r
177 +** http://www.fsf.org/licensing/licenses/info/GPLv2.html and\r
178 +** http://www.gnu.org/copyleft/gpl.html.  In addition, as a special\r
179 +** exception, Nokia gives you certain additional rights. These rights\r
180 +** are described in the Nokia Qt GPL Exception version 1.3, included in\r
181 +** the file GPL_EXCEPTION.txt in this package.\r
182 +**\r
183 +** Qt for Windows(R) Licensees\r
184 +** As a special exception, Nokia, as the sole copyright holder for Qt\r
185 +** Designer, grants users of the Qt/Eclipse Integration plug-in the\r
186 +** right for the Qt/Eclipse Integration to link to functionality\r
187 +** provided by Qt Designer and its related libraries.\r
188 +**\r
189 +** If you are unsure which license is appropriate for your use, please\r
190 +** contact the sales department at qt-sales@nokia.com.\r
191 +**\r
192 +****************************************************************************/\r
193 +\r
194 +#ifndef QPLATFORMDEFS_H\r
195 +#define QPLATFORMDEFS_H\r
196 +\r
197 +#ifdef UNICODE\r
198 +#ifndef _UNICODE\r
199 +#define _UNICODE\r
200 +#endif\r
201 +#endif\r
202 +\r
203 +// Get Qt defines/settings\r
204 +\r
205 +#include "qglobal.h"\r
206 +\r
207 +#include <tchar.h>\r
208 +#include <io.h>\r
209 +#include <direct.h>\r
210 +#include <stdio.h>\r
211 +#include <fcntl.h>\r
212 +#include <errno.h>\r
213 +#include <sys/stat.h>\r
214 +#include <stdlib.h>\r
215 +#include <windows.h>\r
216 +#include <limits.h>\r
217 +\r
218 +#if !defined(_WIN32_WINNT) || (_WIN32_WINNT-0 < 0x0500)\r
219 +typedef enum {\r
220 +    NameUnknown                  = 0, \r
221 +    NameFullyQualifiedDN  = 1, \r
222 +    NameSamCompatible    = 2, \r
223 +    NameDisplay                  = 3, \r
224 +    NameUniqueId         = 6, \r
225 +    NameCanonical        = 7, \r
226 +    NameUserPrincipal    = 8, \r
227 +    NameCanonicalEx      = 9, \r
228 +    NameServicePrincipal  = 10, \r
229 +    NameDnsDomain        = 12\r
230 +} EXTENDED_NAME_FORMAT, *PEXTENDED_NAME_FORMAT;\r
231 +#endif\r
232 +\r
233 +#define Q_FS_FAT\r
234 +#ifdef QT_LARGEFILE_SUPPORT\r
235 +#define QT_STATBUF             struct _stati64         // non-ANSI defs\r
236 +#define QT_STATBUF4TSTAT       struct _stati64         // non-ANSI defs\r
237 +#define QT_STAT                        ::_stati64\r
238 +#define QT_FSTAT               ::_fstati64\r
239 +#else\r
240 +#define QT_STATBUF             struct _stat            // non-ANSI defs\r
241 +#define QT_STATBUF4TSTAT       struct _stat            // non-ANSI defs\r
242 +#define QT_STAT                        ::_stat\r
243 +#define QT_FSTAT               ::_fstat\r
244 +#endif\r
245 +#define QT_STAT_REG            _S_IFREG\r
246 +#define QT_STAT_DIR            _S_IFDIR\r
247 +#define QT_STAT_MASK           _S_IFMT\r
248 +#if defined(_S_IFLNK)\r
249 +#  define QT_STAT_LNK          _S_IFLNK\r
250 +#endif\r
251 +#define QT_FILENO              _fileno\r
252 +#define QT_OPEN                        ::_open\r
253 +#define QT_CLOSE               ::_close\r
254 +#ifdef QT_LARGEFILE_SUPPORT\r
255 +#define QT_LSEEK               ::_lseeki64\r
256 +#ifndef UNICODE\r
257 +#define QT_TSTAT               ::_stati64\r
258 +#else\r
259 +#define QT_TSTAT               ::_wstati64\r
260 +#endif\r
261 +#else\r
262 +#define QT_LSEEK               ::_lseek\r
263 +#ifndef UNICODE\r
264 +#define QT_TSTAT               ::_stat\r
265 +#else\r
266 +#define QT_TSTAT               ::_wstat\r
267 +#endif\r
268 +#endif\r
269 +#define QT_READ                        ::_read\r
270 +#define QT_WRITE               ::_write\r
271 +#define QT_ACCESS              ::_access\r
272 +#define QT_GETCWD              ::_getcwd\r
273 +#define QT_CHDIR               ::_chdir\r
274 +#define QT_MKDIR               ::_mkdir\r
275 +#define QT_RMDIR               ::_rmdir\r
276 +#define QT_OPEN_LARGEFILE       0\r
277 +#define QT_OPEN_RDONLY         _O_RDONLY\r
278 +#define QT_OPEN_WRONLY         _O_WRONLY\r
279 +#define QT_OPEN_RDWR           _O_RDWR\r
280 +#define QT_OPEN_CREAT          _O_CREAT\r
281 +#define QT_OPEN_TRUNC          _O_TRUNC\r
282 +#define QT_OPEN_APPEND         _O_APPEND\r
283 +#if defined(O_TEXT)\r
284 +# define QT_OPEN_TEXT          _O_TEXT\r
285 +# define QT_OPEN_BINARY                _O_BINARY\r
286 +#endif\r
287 +\r
288 +#define QT_FOPEN                ::fopen\r
289 +#ifdef QT_LARGEFILE_SUPPORT\r
290 +#define QT_FSEEK                ::fseeko64\r
291 +#define QT_FTELL                ::ftello64\r
292 +#else\r
293 +#define QT_FSEEK                ::fseek\r
294 +#define QT_FTELL                ::ftell\r
295 +#endif\r
296 +#define QT_FGETPOS              ::fgetpos\r
297 +#define QT_FSETPOS              ::fsetpos\r
298 +#define QT_FPOS_T               fpos_t\r
299 +#ifdef QT_LARGEFILE_SUPPORT\r
300 +#define QT_OFF_T                off64_t\r
301 +#else\r
302 +#define QT_OFF_T                long\r
303 +#endif\r
304 +\r
305 +#define QT_SIGNAL_ARGS         int\r
306 +\r
307 +#define QT_VSNPRINTF           ::_vsnprintf\r
308 +#define QT_SNPRINTF            ::_snprintf\r
309 +\r
310 +# define F_OK  0\r
311 +# define X_OK  1\r
312 +# define W_OK  2\r
313 +# define R_OK  4\r
314 +\r
315 +\r
316 +#endif // QPLATFORMDEFS_H\r
317 diff -urN qt-win-opensource-src-4.4.3.orig/mkspecs/qconfig.pri qt-win-opensource-src-4.4.3/mkspecs/qconfig.pri
318 --- qt-win-opensource-src-4.4.3.orig/mkspecs/qconfig.pri        1970-01-01 01:00:00.000000000 +0100
319 +++ qt-win-opensource-src-4.4.3/mkspecs/qconfig.pri     2009-02-01 23:43:14.000000000 +0000
320 @@ -0,0 +1,11 @@
321 +CONFIG+= release shared stl exceptions rtti\r
322 +QT_ARCH = windows\r
323 +QT_EDITION = OpenSource\r
324 +QT_CONFIG += release zlib png accessibility qt3support opengl ipv6 xmlpatterns webkit svg minimal-config small-config medium-config large-config full-config\r
325 +#versioning \r
326 +QT_VERSION = 4.4.3\r
327 +QT_MAJOR_VERSION = 4\r
328 +QT_MINOR_VERSION = 4\r
329 +QT_PATCH_VERSION = 3\r
330 +#Qt for Windows CE c-runtime deployment\r
331 +QT_CE_C_RUNTIME = no\r
332 diff -urN qt-win-opensource-src-4.4.3.orig/.qmake.cache qt-win-opensource-src-4.4.3/.qmake.cache
333 --- qt-win-opensource-src-4.4.3.orig/.qmake.cache       1970-01-01 01:00:00.000000000 +0100
334 +++ qt-win-opensource-src-4.4.3/.qmake.cache    2009-02-01 23:43:14.000000000 +0000
335 @@ -0,0 +1,24 @@
336 +QMAKE_QT_VERSION_OVERRIDE = 4\r
337 +OBJECTS_DIR     = tmp/obj/release_shared\r
338 +MOC_DIR         = tmp/moc/release_shared\r
339 +RCC_DIR         = tmp/rcc/release_shared\r
340 +sql-plugins    += sqlite\r
341 +styles         += windows plastique cleanlooks windowsxp windowsvista motif cde\r
342 +imageformat-plugins += gif tiff jpeg\r
343 +TMPPATH            = $$quote($$(INCLUDE))\r
344 +QMAKE_INCDIR_POST += $$split(TMPPATH,";")\r
345 +TMPPATH            = $$quote($$(LIB))\r
346 +QMAKE_LIBDIR_POST += $$split(TMPPATH,";")\r
347 +CONFIG         += dist-config large-config medium-config minimal-config small-config full-config release incremental create_prl link_prl depend_includepath QTDIR_build\r
348 +QT_BUILD_PARTS  = libs tools examples demos docs translations\r
349 +QMAKESPEC       = Z:/tmp/qt-win-opensource-src-4.4.3/mkspecs/win32-g++\r
350 +ARCH            = windows\r
351 +QT_BUILD_TREE   = Z:/tmp/qt-win-opensource-src-4.4.3\r
352 +QT_SOURCE_TREE  = Z:/tmp/qt-win-opensource-src-4.4.3\r
353 +QMAKE_MOC       = $$QT_BUILD_TREE/bin/moc.exe\r
354 +QMAKE_UIC       = $$QT_BUILD_TREE/bin/uic.exe\r
355 +QMAKE_UIC3      = $$QT_BUILD_TREE/bin/uic3.exe\r
356 +QMAKE_RCC       = $$QT_BUILD_TREE/bin/rcc.exe\r
357 +QMAKE_DUMPCPP   = $$QT_BUILD_TREE/bin/dumpcpp.exe\r
358 +QMAKE_INCDIR_QT = $$QT_BUILD_TREE/include\r
359 +QMAKE_LIBDIR_QT = $$QT_BUILD_TREE/lib\r
360 diff -urN qt-win-opensource-src-4.4.3.orig/src/corelib/global/qconfig.cpp qt-win-opensource-src-4.4.3/src/corelib/global/qconfig.cpp
361 --- qt-win-opensource-src-4.4.3.orig/src/corelib/global/qconfig.cpp     1970-01-01 01:00:00.000000000 +0100
362 +++ qt-win-opensource-src-4.4.3/src/corelib/global/qconfig.cpp  2009-02-01 23:43:14.000000000 +0000
363 @@ -0,0 +1,27 @@
364 +/* Licensed */
365 +static const char qt_configure_licensee_str          [512 + 12] = "qt_lcnsuser=Open Source";
366 +static const char qt_configure_licensed_products_str [512 + 12] = "qt_lcnsprod=OpenSource";
367 +static const char qt_configure_prefix_path_str       [512 + 12] = "qt_prfxpath=/usr/i686-pc-mingw32/sys-root/mingw";
368 +static const char qt_configure_documentation_path_str[512 + 12] = "qt_docspath=/usr/i686-pc-mingw32/sys-root/mingw/share/doc";
369 +static const char qt_configure_headers_path_str      [512 + 12] = "qt_hdrspath=/usr/i686-pc-mingw32/sys-root/mingw/include";
370 +static const char qt_configure_libraries_path_str    [512 + 12] = "qt_libspath=/usr/i686-pc-mingw32/sys-root/mingw/lib";
371 +static const char qt_configure_binaries_path_str     [512 + 12] = "qt_binspath=/usr/i686-pc-mingw32/sys-root/mingw/bin";
372 +static const char qt_configure_plugins_path_str      [512 + 12] = "qt_plugpath=/usr/i686-pc-mingw32/sys-root/mingw/lib/qt4/plugins";
373 +static const char qt_configure_data_path_str         [512 + 12] = "qt_datapath=/usr/i686-pc-mingw32/sys-root/mingw/share";
374 +static const char qt_configure_translations_path_str [512 + 12] = "qt_trnspath=/usr/i686-pc-mingw32/sys-root/mingw/share/qt4/translations";
375 +static const char qt_configure_examples_path_str     [512 + 12] = "qt_xmplpath=/usr/i686-pc-mingw32/sys-root/mingw/share/qt4/examples";
376 +static const char qt_configure_demos_path_str        [512 + 12] = "qt_demopath=/usr/i686-pc-mingw32/sys-root/mingw/lib/qt4/demos";
377 +/* strlen( "qt_lcnsxxxx" ) == 12 */
378 +#define QT_CONFIGURE_LICENSEE qt_configure_licensee_str + 12;
379 +#define QT_CONFIGURE_LICENSED_PRODUCTS qt_configure_licensed_products_str + 12;
380 +#define QT_CONFIGURE_PREFIX_PATH qt_configure_prefix_path_str + 12;
381 +#define QT_CONFIGURE_DOCUMENTATION_PATH qt_configure_documentation_path_str + 12;
382 +#define QT_CONFIGURE_HEADERS_PATH qt_configure_headers_path_str + 12;
383 +#define QT_CONFIGURE_LIBRARIES_PATH qt_configure_libraries_path_str + 12;
384 +#define QT_CONFIGURE_BINARIES_PATH qt_configure_binaries_path_str + 12;
385 +#define QT_CONFIGURE_PLUGINS_PATH qt_configure_plugins_path_str + 12;
386 +#define QT_CONFIGURE_DATA_PATH qt_configure_data_path_str + 12;
387 +#define QT_CONFIGURE_TRANSLATIONS_PATH qt_configure_translations_path_str + 12;
388 +#define QT_CONFIGURE_EXAMPLES_PATH qt_configure_examples_path_str + 12;
389 +#define QT_CONFIGURE_DEMOS_PATH qt_configure_demos_path_str + 12;
390 +
391 diff -urN qt-win-opensource-src-4.4.3.orig/src/corelib/global/qconfig.h qt-win-opensource-src-4.4.3/src/corelib/global/qconfig.h
392 --- qt-win-opensource-src-4.4.3.orig/src/corelib/global/qconfig.h       1970-01-01 01:00:00.000000000 +0100
393 +++ qt-win-opensource-src-4.4.3/src/corelib/global/qconfig.h    2009-02-01 23:43:14.000000000 +0000
394 @@ -0,0 +1,72 @@
395 +/* Everything */
396 +
397 +#ifndef QT_DLL
398 +#define QT_DLL
399 +#endif
400 +
401 +/* License information */
402 +#define QT_PRODUCT_LICENSEE "Open Source"
403 +#define QT_PRODUCT_LICENSE "OpenSource"
404 +
405 +// Qt Edition
406 +#ifndef QT_EDITION
407 +#  define QT_EDITION QT_EDITION_OPENSOURCE
408 +#endif
409 +
410 +#if (defined(_DEBUG) || defined(DEBUG))
411 +# if (defined(WIN64) || defined(_WIN64) || defined(__WIN64__))
412 +#  define QT_BUILD_KEY "Windows x64 mingw debug full-config"
413 +# else
414 +#  define QT_BUILD_KEY "Windows mingw debug full-config"
415 +# endif
416 +#else
417 +# if (defined(WIN64) || defined(_WIN64) || defined(__WIN64__))
418 +#  define QT_BUILD_KEY "Windows x64 mingw release full-config"
419 +# else
420 +#  define QT_BUILD_KEY "Windows mingw release full-config"
421 +# endif
422 +#endif
423 +
424 +/* Machine byte-order */
425 +#define Q_BIG_ENDIAN 4321
426 +#define Q_LITTLE_ENDIAN 1234
427 +#define Q_BYTE_ORDER Q_LITTLE_ENDIAN
428 +
429 +// Compile time features
430 +#define QT_ARCH_WINDOWS
431 +#if defined(QT_NO_DBUS) && defined(QT_DBUS)
432 +# undef QT_NO_DBUS
433 +#elif !defined(QT_NO_DBUS)
434 +# define QT_NO_DBUS
435 +#endif
436 +
437 +#if defined(QT_NO_DIRECT3D) && defined(QT_DIRECT3D)
438 +# undef QT_NO_DIRECT3D
439 +#elif !defined(QT_NO_DIRECT3D)
440 +# define QT_NO_DIRECT3D
441 +#endif
442 +
443 +#if defined(QT_NO_OPENSSL) && defined(QT_OPENSSL)
444 +# undef QT_NO_OPENSSL
445 +#elif !defined(QT_NO_OPENSSL)
446 +# define QT_NO_OPENSSL
447 +#endif
448 +
449 +#if defined(QT_NO_PHONON) && defined(QT_PHONON)
450 +# undef QT_NO_PHONON
451 +#elif !defined(QT_NO_PHONON)
452 +# define QT_NO_PHONON
453 +#endif
454 +
455 +#if defined(QT_NO_STYLE_WINDOWSCE) && defined(QT_STYLE_WINDOWSCE)
456 +# undef QT_NO_STYLE_WINDOWSCE
457 +#elif !defined(QT_NO_STYLE_WINDOWSCE)
458 +# define QT_NO_STYLE_WINDOWSCE
459 +#endif
460 +
461 +#if defined(QT_NO_STYLE_WINDOWSMOBILE) && defined(QT_STYLE_WINDOWSMOBILE)
462 +# undef QT_NO_STYLE_WINDOWSMOBILE
463 +#elif !defined(QT_NO_STYLE_WINDOWSMOBILE)
464 +# define QT_NO_STYLE_WINDOWSMOBILE
465 +#endif
466 +