]> git.saurik.com Git - wxWidgets.git/blame - include/wx/chkconf.h
Fix errors in handling of maximum field in wxGenericProgressDialog.
[wxWidgets.git] / include / wx / chkconf.h
CommitLineData
b45f79ec
VZ
1/*
2 * Name: wx/chkconf.h
3 * Purpose: check the config settings for consistency
4 * Author: Vadim Zeitlin
5 * Modified by:
6 * Created: 09.08.00
7 * RCS-ID: $Id$
8 * Copyright: (c) 2000 Vadim Zeitlin <vadim@wxwidgets.org>
9 * Licence: wxWindows licence
10 */
1e6feb95
VZ
11
12/* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
8ba16443
VZ
13#ifndef _WX_CHKCONF_H_
14#define _WX_CHKCONF_H_
1e6feb95 15
aa62256a
VZ
16/*
17 **************************************************
18 PLEASE READ THIS IF YOU GET AN ERROR IN THIS FILE!
19 **************************************************
20
21 If you get an error saying "wxUSE_FOO must be defined", it means that you
22 are not using the correct up-to-date version of setup.h. This happens most
23 often when using svn or daily snapshots and a new symbol was added to
24 setup0.h and you haven't updated your local setup.h to to reflect it. If
25 this is the case, you need to propagate the changes from setup0.h to your
26 setup.h and, if using makefiles under MSW, also remove setup.h under the
27 build directory (lib/$(COMPILER)_{lib,dll}/msw[u][d][dll]/wx) so that it
28 the new setup.h is copied there.
29
30 If you get an error of the form "wxFoo requires wxBar", then the settings
31 in your setup.h are inconsistent. You have the choice between correcting
32 them manually or commenting out #define wxABORT_ON_CONFIG_ERROR below to
33 try to correct the problems automatically (not really recommended but
34 might work).
35 */
36
01ebf752 37/*
6619edf0
VZ
38 This file has the following sections:
39 1. checks that all wxUSE_XXX symbols we use are defined
40 a) first the non-GUI ones
41 b) then the GUI-only ones
42 2. platform-specific checks done in the platform headers
43 3. generic consistency checks
44 a) first the non-GUI ones
45 b) then the GUI-only ones
01ebf752
JS
46 */
47
1e6feb95 48/*
730dfeb4 49 this global setting determines what should we do if the setting FOO
8a43eaec
VZ
50 requires BAR and BAR is not set: we can either silently unset FOO as well
51 (do this if you're trying to build the smallest possible library) or give an
cbab1556 52 error and abort (default as leads to least surprising behaviour)
1e6feb95
VZ
53 */
54#define wxABORT_ON_CONFIG_ERROR
55
6962f34e
VZ
56/*
57 global features
58 */
59
60/* GUI build by default */
61#if !defined(wxUSE_GUI)
62# define wxUSE_GUI 1
63#endif /* !defined(wxUSE_GUI) */
64
1bbcb0d5
VZ
65/*
66 If we're compiling without support for threads/exceptions we have to
67 disable the corresponding features.
68 */
69#ifdef wxNO_THREADS
70# undef wxUSE_THREADS
71# define wxUSE_THREADS 0
72#endif /* wxNO_THREADS */
73
74#ifdef wxNO_EXCEPTIONS
75# undef wxUSE_EXCEPTIONS
76# define wxUSE_EXCEPTIONS 0
77#endif /* wxNO_EXCEPTIONS */
78
4652511f
VZ
79/* we also must disable exceptions if compiler doesn't support them */
80#if defined(_MSC_VER) && !defined(_CPPUNWIND)
81# undef wxUSE_EXCEPTIONS
82# define wxUSE_EXCEPTIONS 0
83#endif /* VC++ without exceptions support */
84
1bbcb0d5 85
1e6feb95 86/*
6619edf0 87 Section 1a: tests for non GUI features.
e16514bf
VZ
88
89 please keep the options in alphabetical order!
03169422
RL
90 */
91
178c7760
JS
92#ifndef wxUSE_ANY
93# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 94# error "wxUSE_ANY must be defined, please read comment near the top of this file."
178c7760
JS
95# else
96# define wxUSE_ANY 0
97# endif
98#endif /* wxUSE_ANY */
99
a1873279
VZ
100#ifndef wxUSE_CONSOLE_EVENTLOOP
101# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 102# error "wxUSE_CONSOLE_EVENTLOOP must be defined, please read comment near the top of this file."
a1873279
VZ
103# else
104# define wxUSE_CONSOLE_EVENTLOOP 0
105# endif
106#endif /* !defined(wxUSE_CONSOLE_EVENTLOOP) */
107
03169422
RL
108#ifndef wxUSE_DYNLIB_CLASS
109# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 110# error "wxUSE_DYNLIB_CLASS must be defined, please read comment near the top of this file."
03169422
RL
111# else
112# define wxUSE_DYNLIB_CLASS 0
113# endif
114#endif /* !defined(wxUSE_DYNLIB_CLASS) */
115
4199367e
VZ
116#ifndef wxUSE_EXCEPTIONS
117# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 118# error "wxUSE_EXCEPTIONS must be defined, please read comment near the top of this file."
4199367e
VZ
119# else
120# define wxUSE_EXCEPTIONS 0
121# endif
122#endif /* !defined(wxUSE_EXCEPTIONS) */
123
f19f8180
VS
124#ifndef wxUSE_FILE_HISTORY
125# ifdef wxABORT_ON_CONFIG_ERROR
126# error "wxUSE_FILE_HISTORY must be defined, please read comment near the top of this file."
127# else
128# define wxUSE_FILE_HISTORY 0
129# endif
130#endif /* !defined(wxUSE_FILE_HISTORY) */
131
c7f3eecc
VZ
132#ifndef wxUSE_FILESYSTEM
133# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 134# error "wxUSE_FILESYSTEM must be defined, please read comment near the top of this file."
c7f3eecc
VZ
135# else
136# define wxUSE_FILESYSTEM 0
137# endif
138#endif /* !defined(wxUSE_FILESYSTEM) */
139
26e422a9
MW
140#ifndef wxUSE_FS_ARCHIVE
141# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 142# error "wxUSE_FS_ARCHIVE must be defined, please read comment near the top of this file."
26e422a9
MW
143# else
144# define wxUSE_FS_ARCHIVE 0
145# endif
146#endif /* !defined(wxUSE_FS_ARCHIVE) */
147
05815ab3 148#ifndef wxUSE_FSVOLUME
83d56dd1 149# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 150# error "wxUSE_FSVOLUME must be defined, please read comment near the top of this file."
83d56dd1
FM
151# else
152# define wxUSE_FSVOLUME 0
153# endif
05815ab3
VZ
154#endif /* !defined(wxUSE_FSVOLUME) */
155
6b8ef0b3
VZ
156#ifndef wxUSE_FSWATCHER
157# ifdef wxABORT_ON_CONFIG_ERROR
158# error "wxUSE_FSWATCHER must be defined, please read comment near the top of this file."
159# else
160# define wxUSE_FSWATCHER 0
161# endif
162#endif /* !defined(wxUSE_FSWATCHER) */
163
03169422
RL
164#ifndef wxUSE_DYNAMIC_LOADER
165# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 166# error "wxUSE_DYNAMIC_LOADER must be defined, please read comment near the top of this file."
03169422
RL
167# else
168# define wxUSE_DYNAMIC_LOADER 0
169# endif
170#endif /* !defined(wxUSE_DYNAMIC_LOADER) */
171
149e70e1
VZ
172#ifndef wxUSE_INTL
173# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 174# error "wxUSE_INTL must be defined, please read comment near the top of this file."
149e70e1
VZ
175# else
176# define wxUSE_INTL 0
177# endif
178#endif /* !defined(wxUSE_INTL) */
179
8ac36abb
VZ
180#ifndef wxUSE_IPV6
181# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 182# error "wxUSE_IPV6 must be defined, please read comment near the top of this file."
8ac36abb
VZ
183# else
184# define wxUSE_IPV6 0
185# endif
186#endif /* !defined(wxUSE_IPV6) */
187
a5d46b73
VZ
188#ifndef wxUSE_LOG
189# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 190# error "wxUSE_LOG must be defined, please read comment near the top of this file."
a5d46b73
VZ
191# else
192# define wxUSE_LOG 0
193# endif
194#endif /* !defined(wxUSE_LOG) */
195
196#ifndef wxUSE_LONGLONG
197# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 198# error "wxUSE_LONGLONG must be defined, please read comment near the top of this file."
a5d46b73
VZ
199# else
200# define wxUSE_LONGLONG 0
201# endif
202#endif /* !defined(wxUSE_LONGLONG) */
203
204#ifndef wxUSE_MIMETYPE
205# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 206# error "wxUSE_MIMETYPE must be defined, please read comment near the top of this file."
a5d46b73
VZ
207# else
208# define wxUSE_MIMETYPE 0
209# endif
210#endif /* !defined(wxUSE_MIMETYPE) */
211
0c46d866
VZ
212#ifndef wxUSE_ON_FATAL_EXCEPTION
213# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 214# error "wxUSE_ON_FATAL_EXCEPTION must be defined, please read comment near the top of this file."
0c46d866
VZ
215# else
216# define wxUSE_ON_FATAL_EXCEPTION 0
217# endif
218#endif /* !defined(wxUSE_ON_FATAL_EXCEPTION) */
219
7a828c7f
VZ
220#ifndef wxUSE_PRINTF_POS_PARAMS
221# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 222# error "wxUSE_PRINTF_POS_PARAMS must be defined, please read comment near the top of this file."
7a828c7f
VZ
223# else
224# define wxUSE_PRINTF_POS_PARAMS 0
225# endif
226#endif /* !defined(wxUSE_PRINTF_POS_PARAMS) */
227
a5d46b73
VZ
228#ifndef wxUSE_PROTOCOL
229# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 230# error "wxUSE_PROTOCOL must be defined, please read comment near the top of this file."
a5d46b73
VZ
231# else
232# define wxUSE_PROTOCOL 0
233# endif
234#endif /* !defined(wxUSE_PROTOCOL) */
235
236/* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
237#if !wxUSE_PROTOCOL
238# undef wxUSE_PROTOCOL_HTTP
239# undef wxUSE_PROTOCOL_FTP
240# undef wxUSE_PROTOCOL_FILE
241# define wxUSE_PROTOCOL_HTTP 0
242# define wxUSE_PROTOCOL_FTP 0
243# define wxUSE_PROTOCOL_FILE 0
244#endif /* wxUSE_PROTOCOL */
245
246#ifndef wxUSE_PROTOCOL_HTTP
247# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 248# error "wxUSE_PROTOCOL_HTTP must be defined, please read comment near the top of this file."
a5d46b73
VZ
249# else
250# define wxUSE_PROTOCOL_HTTP 0
251# endif
252#endif /* !defined(wxUSE_PROTOCOL_HTTP) */
253
254#ifndef wxUSE_PROTOCOL_FTP
255# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 256# error "wxUSE_PROTOCOL_FTP must be defined, please read comment near the top of this file."
a5d46b73
VZ
257# else
258# define wxUSE_PROTOCOL_FTP 0
259# endif
260#endif /* !defined(wxUSE_PROTOCOL_FTP) */
261
262#ifndef wxUSE_PROTOCOL_FILE
263# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 264# error "wxUSE_PROTOCOL_FILE must be defined, please read comment near the top of this file."
a5d46b73
VZ
265# else
266# define wxUSE_PROTOCOL_FILE 0
267# endif
268#endif /* !defined(wxUSE_PROTOCOL_FILE) */
269
270#ifndef wxUSE_REGEX
271# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 272# error "wxUSE_REGEX must be defined, please read comment near the top of this file."
a5d46b73
VZ
273# else
274# define wxUSE_REGEX 0
275# endif
276#endif /* !defined(wxUSE_REGEX) */
277
07158944
VZ
278#ifndef wxUSE_STDPATHS
279# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 280# error "wxUSE_STDPATHS must be defined, please read comment near the top of this file."
07158944
VZ
281# else
282# define wxUSE_STDPATHS 1
283# endif
284#endif /* !defined(wxUSE_STDPATHS) */
285
27b0c286
VS
286#ifndef wxUSE_XML
287# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 288# error "wxUSE_XML must be defined, please read comment near the top of this file."
27b0c286
VS
289# else
290# define wxUSE_XML 0
291# endif
292#endif /* !defined(wxUSE_XML) */
293
a5d46b73
VZ
294#ifndef wxUSE_SOCKETS
295# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 296# error "wxUSE_SOCKETS must be defined, please read comment near the top of this file."
a5d46b73
VZ
297# else
298# define wxUSE_SOCKETS 0
299# endif
300#endif /* !defined(wxUSE_SOCKETS) */
301
302#ifndef wxUSE_STREAMS
303# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 304# error "wxUSE_STREAMS must be defined, please read comment near the top of this file."
a5d46b73
VZ
305# else
306# define wxUSE_STREAMS 0
307# endif
308#endif /* !defined(wxUSE_STREAMS) */
309
310#ifndef wxUSE_STOPWATCH
311# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 312# error "wxUSE_STOPWATCH must be defined, please read comment near the top of this file."
a5d46b73
VZ
313# else
314# define wxUSE_STOPWATCH 0
315# endif
316#endif /* !defined(wxUSE_STOPWATCH) */
317
318#ifndef wxUSE_TEXTBUFFER
319# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 320# error "wxUSE_TEXTBUFFER must be defined, please read comment near the top of this file."
a5d46b73
VZ
321# else
322# define wxUSE_TEXTBUFFER 0
323# endif
324#endif /* !defined(wxUSE_TEXTBUFFER) */
325
326#ifndef wxUSE_TEXTFILE
327# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 328# error "wxUSE_TEXTFILE must be defined, please read comment near the top of this file."
a5d46b73
VZ
329# else
330# define wxUSE_TEXTFILE 0
331# endif
332#endif /* !defined(wxUSE_TEXTFILE) */
333
334#ifndef wxUSE_UNICODE
335# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 336# error "wxUSE_UNICODE must be defined, please read comment near the top of this file."
a5d46b73
VZ
337# else
338# define wxUSE_UNICODE 0
339# endif
340#endif /* !defined(wxUSE_UNICODE) */
341
342#ifndef wxUSE_URL
343# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 344# error "wxUSE_URL must be defined, please read comment near the top of this file."
a5d46b73
VZ
345# else
346# define wxUSE_URL 0
347# endif
348#endif /* !defined(wxUSE_URL) */
349
ca5c6ac3
VZ
350#ifndef wxUSE_VARIANT
351# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 352# error "wxUSE_VARIANT must be defined, please read comment near the top of this file."
ca5c6ac3
VZ
353# else
354# define wxUSE_VARIANT 0
355# endif
356#endif /* wxUSE_VARIANT */
357
149e70e1
VZ
358#ifndef wxUSE_XLOCALE
359# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 360# error "wxUSE_XLOCALE must be defined, please read comment near the top of this file."
149e70e1
VZ
361# else
362# define wxUSE_XLOCALE 0
363# endif
364#endif /* !defined(wxUSE_XLOCALE) */
365
03169422 366/*
6619edf0 367 Section 1b: all these tests are for GUI only.
e16514bf
VZ
368
369 please keep the options in alphabetical order!
1e6feb95
VZ
370 */
371#if wxUSE_GUI
372
373/*
374 all of the settings tested below must be defined or we'd get an error from
375 preprocessor about invalid integer expression
376 */
377
9211cf3c
VZ
378#ifndef wxUSE_ABOUTDLG
379# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 380# error "wxUSE_ABOUTDLG must be defined, please read comment near the top of this file."
9211cf3c
VZ
381# else
382# define wxUSE_ABOUTDLG 0
383# endif
384#endif /* !defined(wxUSE_ABOUTDLG) */
385
1e6feb95
VZ
386#ifndef wxUSE_ACCEL
387# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 388# error "wxUSE_ACCEL must be defined, please read comment near the top of this file."
1e6feb95
VZ
389# else
390# define wxUSE_ACCEL 0
391# endif
392#endif /* !defined(wxUSE_ACCEL) */
393
a9c64a1b
VZ
394#ifndef wxUSE_ACCESSIBILITY
395# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 396# error "wxUSE_ACCESSIBILITY must be defined, please read comment near the top of this file."
a9c64a1b
VZ
397# else
398# define wxUSE_ACCESSIBILITY 0
399# endif
400#endif /* !defined(wxUSE_ACCESSIBILITY) */
401
72045d57
VZ
402#ifndef wxUSE_ANIMATIONCTRL
403# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 404# error "wxUSE_ANIMATIONCTRL must be defined, please read comment near the top of this file."
72045d57
VZ
405# else
406# define wxUSE_ANIMATIONCTRL 0
407# endif
408#endif /* !defined(wxUSE_ANIMATIONCTRL) */
409
8084f8b7
VZ
410#ifndef wxUSE_AUTOID_MANAGEMENT
411# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 412# error "wxUSE_AUTOID_MANAGEMENT must be defined, please read comment near the top of this file."
8084f8b7
VZ
413# else
414# define wxUSE_AUTOID_MANAGEMENT 0
415# endif
416#endif /* !defined(wxUSE_AUTOID_MANAGEMENT) */
417
8d37334f
VZ
418#ifndef wxUSE_BITMAPCOMBOBOX
419# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 420# error "wxUSE_BITMAPCOMBOBOX must be defined, please read comment near the top of this file."
8d37334f
VZ
421# else
422# define wxUSE_BITMAPCOMBOBOX 0
423# endif
424#endif /* !defined(wxUSE_BITMAPCOMBOBOX) */
425
1e6feb95
VZ
426#ifndef wxUSE_BMPBUTTON
427# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 428# error "wxUSE_BMPBUTTON must be defined, please read comment near the top of this file."
1e6feb95
VZ
429# else
430# define wxUSE_BMPBUTTON 0
431# endif
432#endif /* !defined(wxUSE_BMPBUTTON) */
433
434#ifndef wxUSE_BUTTON
435# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 436# error "wxUSE_BUTTON must be defined, please read comment near the top of this file."
1e6feb95
VZ
437# else
438# define wxUSE_BUTTON 0
439# endif
440#endif /* !defined(wxUSE_BUTTON) */
441
6c99dbd5
VZ
442/*
443 This one is special, it's only used under wxGTK currently so don't require
444 pre-defining it.
445 */
446#ifndef wxUSE_CAIRO
447# ifdef __WXGTK210__
448# define wxUSE_CAIRO 1
449# else
450# define wxUSE_CAIRO 0
451# endif
452#endif
453
1e6feb95
VZ
454#ifndef wxUSE_CALENDARCTRL
455# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 456# error "wxUSE_CALENDARCTRL must be defined, please read comment near the top of this file."
1e6feb95
VZ
457# else
458# define wxUSE_CALENDARCTRL 0
459# endif
460#endif /* !defined(wxUSE_CALENDARCTRL) */
461
462#ifndef wxUSE_CARET
463# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 464# error "wxUSE_CARET must be defined, please read comment near the top of this file."
1e6feb95
VZ
465# else
466# define wxUSE_CARET 0
467# endif
468#endif /* !defined(wxUSE_CARET) */
469
470#ifndef wxUSE_CHECKBOX
471# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 472# error "wxUSE_CHECKBOX must be defined, please read comment near the top of this file."
1e6feb95
VZ
473# else
474# define wxUSE_CHECKBOX 0
475# endif
476#endif /* !defined(wxUSE_CHECKBOX) */
477
478#ifndef wxUSE_CHECKLISTBOX
479# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 480# error "wxUSE_CHECKLISTBOX must be defined, please read comment near the top of this file."
1e6feb95
VZ
481# else
482# define wxUSE_CHECKLISTBOX 0
483# endif
484#endif /* !defined(wxUSE_CHECKLISTBOX) */
485
486#ifndef wxUSE_CHOICE
487# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 488# error "wxUSE_CHOICE must be defined, please read comment near the top of this file."
1e6feb95
VZ
489# else
490# define wxUSE_CHOICE 0
491# endif
492#endif /* !defined(wxUSE_CHOICE) */
493
f5e0b4bc
WS
494#ifndef wxUSE_CHOICEBOOK
495# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 496# error "wxUSE_CHOICEBOOK must be defined, please read comment near the top of this file."
f5e0b4bc
WS
497# else
498# define wxUSE_CHOICEBOOK 0
499# endif
500#endif /* !defined(wxUSE_CHOICEBOOK) */
501
3379ed37
VZ
502#ifndef wxUSE_CHOICEDLG
503# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 504# error "wxUSE_CHOICEDLG must be defined, please read comment near the top of this file."
3379ed37
VZ
505# else
506# define wxUSE_CHOICEDLG 0
507# endif
508#endif /* !defined(wxUSE_CHOICEDLG) */
509
1e6feb95
VZ
510#ifndef wxUSE_CLIPBOARD
511# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 512# error "wxUSE_CLIPBOARD must be defined, please read comment near the top of this file."
1e6feb95
VZ
513# else
514# define wxUSE_CLIPBOARD 0
515# endif
516#endif /* !defined(wxUSE_CLIPBOARD) */
517
912c3932
VZ
518#ifndef wxUSE_COLLPANE
519# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 520# error "wxUSE_COLLPANE must be defined, please read comment near the top of this file."
912c3932
VZ
521# else
522# define wxUSE_COLLPANE 0
523# endif
524#endif /* !defined(wxUSE_COLLPANE) */
525
a2c0a9c5
VZ
526#ifndef wxUSE_COLOURDLG
527# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 528# error "wxUSE_COLOURDLG must be defined, please read comment near the top of this file."
a2c0a9c5
VZ
529# else
530# define wxUSE_COLOURDLG 0
531# endif
532#endif /* !defined(wxUSE_COLOURDLG) */
533
ec376c8f
VZ
534#ifndef wxUSE_COLOURPICKERCTRL
535# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 536# error "wxUSE_COLOURPICKERCTRL must be defined, please read comment near the top of this file."
ec376c8f
VZ
537# else
538# define wxUSE_COLOURPICKERCTRL 0
539# endif
540#endif /* !defined(wxUSE_COLOURPICKERCTRL) */
541
1e6feb95
VZ
542#ifndef wxUSE_COMBOBOX
543# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 544# error "wxUSE_COMBOBOX must be defined, please read comment near the top of this file."
1e6feb95
VZ
545# else
546# define wxUSE_COMBOBOX 0
547# endif
548#endif /* !defined(wxUSE_COMBOBOX) */
549
3571e1ad
VZ
550#ifndef wxUSE_COMMANDLINKBUTTON
551# ifdef wxABORT_ON_CONFIG_ERROR
552# error "wxUSE_COMMANDLINKBUTTON must be defined, please read comment near the top of this file."
553# else
554# define wxUSE_COMMANDLINKBUTTON 0
555# endif
556#endif /* !defined(wxUSE_COMMANDLINKBUTTON) */
557
a57d600f 558#ifndef wxUSE_COMBOCTRL
481e2766 559# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 560# error "wxUSE_COMBOCTRL must be defined, please read comment near the top of this file."
481e2766 561# else
a57d600f 562# define wxUSE_COMBOCTRL 0
481e2766 563# endif
a57d600f 564#endif /* !defined(wxUSE_COMBOCTRL) */
481e2766 565
1e6feb95
VZ
566#ifndef wxUSE_DATAOBJ
567# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 568# error "wxUSE_DATAOBJ must be defined, please read comment near the top of this file."
1e6feb95
VZ
569# else
570# define wxUSE_DATAOBJ 0
571# endif
572#endif /* !defined(wxUSE_DATAOBJ) */
573
e16514bf
VZ
574#ifndef wxUSE_DATAVIEWCTRL
575# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 576# error "wxUSE_DATAVIEWCTRL must be defined, please read comment near the top of this file."
e16514bf
VZ
577# else
578# define wxUSE_DATAVIEWCTRL 0
579# endif
580#endif /* !defined(wxUSE_DATAVIEWCTRL) */
581
337dc4c1
WS
582#ifndef wxUSE_DATEPICKCTRL
583# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 584# error "wxUSE_DATEPICKCTRL must be defined, please read comment near the top of this file."
337dc4c1
WS
585# else
586# define wxUSE_DATEPICKCTRL 0
587# endif
588#endif /* !defined(wxUSE_DATEPICKCTRL) */
589
ec376c8f
VZ
590#ifndef wxUSE_DIRPICKERCTRL
591# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 592# error "wxUSE_DIRPICKERCTRL must be defined, please read comment near the top of this file."
ec376c8f
VZ
593# else
594# define wxUSE_DIRPICKERCTRL 0
595# endif
596#endif /* !defined(wxUSE_DIRPICKERCTRL) */
597
f8ba082e
VZ
598#ifndef wxUSE_DISPLAY
599# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 600# error "wxUSE_DISPLAY must be defined, please read comment near the top of this file."
f8ba082e
VZ
601# else
602# define wxUSE_DISPLAY 0
603# endif
604#endif /* !defined(wxUSE_DISPLAY) */
605
3379ed37
VZ
606#ifndef wxUSE_DOC_VIEW_ARCHITECTURE
607# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 608# error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined, please read comment near the top of this file."
3379ed37
VZ
609# else
610# define wxUSE_DOC_VIEW_ARCHITECTURE 0
611# endif
612#endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
613
0cf3e587
VZ
614#ifndef wxUSE_FILECTRL
615# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 616# error "wxUSE_FILECTRL must be defined, please read comment near the top of this file."
0cf3e587
VZ
617# else
618# define wxUSE_FILECTRL 0
619# endif
620#endif /* !defined(wxUSE_FILECTRL) */
621
1e6feb95
VZ
622#ifndef wxUSE_FILEDLG
623# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 624# error "wxUSE_FILEDLG must be defined, please read comment near the top of this file."
1e6feb95
VZ
625# else
626# define wxUSE_FILEDLG 0
627# endif
628#endif /* !defined(wxUSE_FILEDLG) */
629
ec376c8f
VZ
630#ifndef wxUSE_FILEPICKERCTRL
631# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 632# error "wxUSE_FILEPICKERCTRL must be defined, please read comment near the top of this file."
ec376c8f
VZ
633# else
634# define wxUSE_FILEPICKERCTRL 0
635# endif
636#endif /* !defined(wxUSE_FILEPICKERCTRL) */
637
1e6feb95
VZ
638#ifndef wxUSE_FONTDLG
639# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 640# error "wxUSE_FONTDLG must be defined, please read comment near the top of this file."
1e6feb95
VZ
641# else
642# define wxUSE_FONTDLG 0
643# endif
644#endif /* !defined(wxUSE_FONTDLG) */
645
646#ifndef wxUSE_FONTMAP
647# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 648# error "wxUSE_FONTMAP must be defined, please read comment near the top of this file."
1e6feb95
VZ
649# else
650# define wxUSE_FONTMAP 0
651# endif
652#endif /* !defined(wxUSE_FONTMAP) */
653
ec376c8f
VZ
654#ifndef wxUSE_FONTPICKERCTRL
655# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 656# error "wxUSE_FONTPICKERCTRL must be defined, please read comment near the top of this file."
ec376c8f
VZ
657# else
658# define wxUSE_FONTPICKERCTRL 0
659# endif
660#endif /* !defined(wxUSE_FONTPICKERCTRL) */
661
1e6feb95
VZ
662#ifndef wxUSE_GAUGE
663# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 664# error "wxUSE_GAUGE must be defined, please read comment near the top of this file."
1e6feb95
VZ
665# else
666# define wxUSE_GAUGE 0
667# endif
668#endif /* !defined(wxUSE_GAUGE) */
669
f43426c1
RD
670#ifndef wxUSE_GRAPHICS_CONTEXT
671# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 672# error "wxUSE_GRAPHICS_CONTEXT must be defined, please read comment near the top of this file."
f43426c1
RD
673# else
674# define wxUSE_GRAPHICS_CONTEXT 0
675# endif
676#endif /* !defined(wxUSE_GRAPHICS_CONTEXT) */
677
678
1e6feb95
VZ
679#ifndef wxUSE_GRID
680# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 681# error "wxUSE_GRID must be defined, please read comment near the top of this file."
1e6feb95
VZ
682# else
683# define wxUSE_GRID 0
684# endif
685#endif /* !defined(wxUSE_GRID) */
686
e721a2a2
VZ
687#ifndef wxUSE_HEADERCTRL
688# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 689# error "wxUSE_HEADERCTRL must be defined, please read comment near the top of this file."
e721a2a2
VZ
690# else
691# define wxUSE_HEADERCTRL 0
692# endif
693#endif /* !defined(wxUSE_HEADERCTRL) */
694
3379ed37
VZ
695#ifndef wxUSE_HELP
696# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 697# error "wxUSE_HELP must be defined, please read comment near the top of this file."
3379ed37
VZ
698# else
699# define wxUSE_HELP 0
700# endif
701#endif /* !defined(wxUSE_HELP) */
702
17e91437
VZ
703#ifndef wxUSE_HYPERLINKCTRL
704# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 705# error "wxUSE_HYPERLINKCTRL must be defined, please read comment near the top of this file."
17e91437
VZ
706# else
707# define wxUSE_HYPERLINKCTRL 0
708# endif
709#endif /* !defined(wxUSE_HYPERLINKCTRL) */
710
05dcbb8e
VZ
711#ifndef wxUSE_HTML
712# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 713# error "wxUSE_HTML must be defined, please read comment near the top of this file."
05dcbb8e
VZ
714# else
715# define wxUSE_HTML 0
716# endif
717#endif /* !defined(wxUSE_HTML) */
718
c839485c 719#ifndef wxUSE_LIBMSPACK
abd0503c 720# if !defined(__UNIX__) || defined(__WXPALMOS__)
c839485c
VS
721 /* set to 0 on platforms that don't have libmspack */
722# define wxUSE_LIBMSPACK 0
723# else
724# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 725# error "wxUSE_LIBMSPACK must be defined, please read comment near the top of this file."
c839485c
VS
726# else
727# define wxUSE_LIBMSPACK 0
728# endif
729# endif
730#endif /* !defined(wxUSE_LIBMSPACK) */
731
658974ae
VS
732#ifndef wxUSE_ICO_CUR
733# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 734# error "wxUSE_ICO_CUR must be defined, please read comment near the top of this file."
658974ae
VS
735# else
736# define wxUSE_ICO_CUR 0
737# endif
738#endif /* !defined(wxUSE_ICO_CUR) */
739
1663afc0
VS
740#ifndef wxUSE_IFF
741# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 742# error "wxUSE_IFF must be defined, please read comment near the top of this file."
1663afc0
VS
743# else
744# define wxUSE_IFF 0
745# endif
746#endif /* !defined(wxUSE_IFF) */
747
1e6feb95
VZ
748#ifndef wxUSE_IMAGLIST
749# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 750# error "wxUSE_IMAGLIST must be defined, please read comment near the top of this file."
1e6feb95
VZ
751# else
752# define wxUSE_IMAGLIST 0
753# endif
754#endif /* !defined(wxUSE_IMAGLIST) */
755
a92b5dfe
VZ
756#ifndef wxUSE_INFOBAR
757# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 758# error "wxUSE_INFOBAR must be defined, please read comment near the top of this file."
a92b5dfe
VZ
759# else
760# define wxUSE_INFOBAR 0
761# endif
762#endif /* !defined(wxUSE_INFOBAR) */
763
2131b89d
VZ
764#ifndef wxUSE_JOYSTICK
765# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 766# error "wxUSE_JOYSTICK must be defined, please read comment near the top of this file."
2131b89d
VZ
767# else
768# define wxUSE_JOYSTICK 0
769# endif
770#endif /* !defined(wxUSE_JOYSTICK) */
771
5b5e4f32
VZ
772#ifndef wxUSE_LISTBOOK
773# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 774# error "wxUSE_LISTBOOK must be defined, please read comment near the top of this file."
5b5e4f32
VZ
775# else
776# define wxUSE_LISTBOOK 0
777# endif
778#endif /* !defined(wxUSE_LISTBOOK) */
779
1e6feb95
VZ
780#ifndef wxUSE_LISTBOX
781# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 782# error "wxUSE_LISTBOX must be defined, please read comment near the top of this file."
1e6feb95
VZ
783# else
784# define wxUSE_LISTBOX 0
785# endif
786#endif /* !defined(wxUSE_LISTBOX) */
787
788#ifndef wxUSE_LISTCTRL
789# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 790# error "wxUSE_LISTCTRL must be defined, please read comment near the top of this file."
1e6feb95
VZ
791# else
792# define wxUSE_LISTCTRL 0
793# endif
794#endif /* !defined(wxUSE_LISTCTRL) */
795
3379ed37
VZ
796#ifndef wxUSE_LOGGUI
797# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 798# error "wxUSE_LOGGUI must be defined, please read comment near the top of this file."
3379ed37
VZ
799# else
800# define wxUSE_LOGGUI 0
801# endif
802#endif /* !defined(wxUSE_LOGGUI) */
803
804#ifndef wxUSE_LOGWINDOW
805# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 806# error "wxUSE_LOGWINDOW must be defined, please read comment near the top of this file."
3379ed37
VZ
807# else
808# define wxUSE_LOGWINDOW 0
809# endif
810#endif /* !defined(wxUSE_LOGWINDOW) */
e421922f 811
3e6e2754
JS
812#ifndef wxUSE_LOG_DIALOG
813# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 814# error "wxUSE_LOG_DIALOG must be defined, please read comment near the top of this file."
3e6e2754
JS
815# else
816# define wxUSE_LOG_DIALOG 0
817# endif
71908213 818#endif /* !defined(wxUSE_LOG_DIALOG) */
3e6e2754 819
efd17a1d
VZ
820#ifndef wxUSE_MDI
821# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 822# error "wxUSE_MDI must be defined, please read comment near the top of this file."
efd17a1d
VZ
823# else
824# define wxUSE_MDI 0
825# endif
826#endif /* !defined(wxUSE_MDI) */
827
1e6feb95
VZ
828#ifndef wxUSE_MDI_ARCHITECTURE
829# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 830# error "wxUSE_MDI_ARCHITECTURE must be defined, please read comment near the top of this file."
1e6feb95
VZ
831# else
832# define wxUSE_MDI_ARCHITECTURE 0
833# endif
834#endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
835
836#ifndef wxUSE_MENUS
837# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 838# error "wxUSE_MENUS must be defined, please read comment near the top of this file."
1e6feb95
VZ
839# else
840# define wxUSE_MENUS 0
841# endif
842#endif /* !defined(wxUSE_MENUS) */
843
3379ed37
VZ
844#ifndef wxUSE_MSGDLG
845# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 846# error "wxUSE_MSGDLG must be defined, please read comment near the top of this file."
3379ed37
VZ
847# else
848# define wxUSE_MSGDLG 0
849# endif
850#endif /* !defined(wxUSE_MSGDLG) */
851
1e6feb95
VZ
852#ifndef wxUSE_NOTEBOOK
853# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 854# error "wxUSE_NOTEBOOK must be defined, please read comment near the top of this file."
1e6feb95
VZ
855# else
856# define wxUSE_NOTEBOOK 0
857# endif
858#endif /* !defined(wxUSE_NOTEBOOK) */
859
e36a1739
VZ
860#ifndef wxUSE_NOTIFICATION_MESSAGE
861# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 862# error "wxUSE_NOTIFICATION_MESSAGE must be defined, please read comment near the top of this file."
e36a1739
VZ
863# else
864# define wxUSE_NOTIFICATION_MESSAGE 0
865# endif
866#endif /* !defined(wxUSE_NOTIFICATION_MESSAGE) */
867
a57d600f 868#ifndef wxUSE_ODCOMBOBOX
481e2766 869# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 870# error "wxUSE_ODCOMBOBOX must be defined, please read comment near the top of this file."
481e2766 871# else
a57d600f 872# define wxUSE_ODCOMBOBOX 0
481e2766 873# endif
a57d600f 874#endif /* !defined(wxUSE_ODCOMBOBOX) */
481e2766 875
d275c7eb
VZ
876#ifndef wxUSE_PALETTE
877# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 878# error "wxUSE_PALETTE must be defined, please read comment near the top of this file."
d275c7eb
VZ
879# else
880# define wxUSE_PALETTE 0
881# endif
882#endif /* !defined(wxUSE_PALETTE) */
883
1e6feb95
VZ
884#ifndef wxUSE_POPUPWIN
885# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 886# error "wxUSE_POPUPWIN must be defined, please read comment near the top of this file."
1e6feb95
VZ
887# else
888# define wxUSE_POPUPWIN 0
889# endif
890#endif /* !defined(wxUSE_POPUPWIN) */
891
3379ed37
VZ
892#ifndef wxUSE_PRINTING_ARCHITECTURE
893# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 894# error "wxUSE_PRINTING_ARCHITECTURE must be defined, please read comment near the top of this file."
3379ed37
VZ
895# else
896# define wxUSE_PRINTING_ARCHITECTURE 0
897# endif
898#endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
899
1e6feb95
VZ
900#ifndef wxUSE_RADIOBOX
901# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 902# error "wxUSE_RADIOBOX must be defined, please read comment near the top of this file."
1e6feb95
VZ
903# else
904# define wxUSE_RADIOBOX 0
905# endif
906#endif /* !defined(wxUSE_RADIOBOX) */
907
908#ifndef wxUSE_RADIOBTN
909# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 910# error "wxUSE_RADIOBTN must be defined, please read comment near the top of this file."
1e6feb95
VZ
911# else
912# define wxUSE_RADIOBTN 0
913# endif
914#endif /* !defined(wxUSE_RADIOBTN) */
915
65ead230
VZ
916#ifndef wxUSE_REARRANGECTRL
917# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 918# error "wxUSE_REARRANGECTRL must be defined, please read comment near the top of this file."
65ead230
VZ
919# else
920# define wxUSE_REARRANGECTRL 0
921# endif
922#endif /* !defined(wxUSE_REARRANGECTRL) */
923
11c2b041
VZ
924#ifndef wxUSE_RIBBON
925# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 926# error "wxUSE_RIBBON must be defined, please read comment near the top of this file."
11c2b041
VZ
927# else
928# define wxUSE_RIBBON 0
929# endif
930#endif /* !defined(wxUSE_RIBBON) */
931
a1bdd4ab
VZ
932#ifndef wxUSE_RICHMSGDLG
933# ifdef wxABORT_ON_CONFIG_ERROR
934# error "wxUSE_RICHMSGDLG must be defined, please read comment near the top of this file."
935# else
936# define wxUSE_RICHMSGDLG 0
937# endif
938#endif /* !defined(wxUSE_RIBBON) */
939
1e6feb95
VZ
940#ifndef wxUSE_SASH
941# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 942# error "wxUSE_SASH must be defined, please read comment near the top of this file."
1e6feb95
VZ
943# else
944# define wxUSE_SASH 0
945# endif
946#endif /* !defined(wxUSE_SASH) */
947
948#ifndef wxUSE_SCROLLBAR
949# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 950# error "wxUSE_SCROLLBAR must be defined, please read comment near the top of this file."
1e6feb95
VZ
951# else
952# define wxUSE_SCROLLBAR 0
953# endif
954#endif /* !defined(wxUSE_SCROLLBAR) */
955
956#ifndef wxUSE_SLIDER
957# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 958# error "wxUSE_SLIDER must be defined, please read comment near the top of this file."
1e6feb95
VZ
959# else
960# define wxUSE_SLIDER 0
961# endif
962#endif /* !defined(wxUSE_SLIDER) */
963
cad1a197
VS
964#ifndef wxUSE_SOUND
965# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 966# error "wxUSE_SOUND must be defined, please read comment near the top of this file."
cad1a197
VS
967# else
968# define wxUSE_SOUND 0
969# endif
970#endif /* !defined(wxUSE_SOUND) */
971
1e6feb95
VZ
972#ifndef wxUSE_SPINBTN
973# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 974# error "wxUSE_SPINBTN must be defined, please read comment near the top of this file."
1e6feb95
VZ
975# else
976# define wxUSE_SPINBTN 0
977# endif
978#endif /* !defined(wxUSE_SPINBTN) */
979
980#ifndef wxUSE_SPINCTRL
981# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 982# error "wxUSE_SPINCTRL must be defined, please read comment near the top of this file."
1e6feb95
VZ
983# else
984# define wxUSE_SPINCTRL 0
985# endif
986#endif /* !defined(wxUSE_SPINCTRL) */
987
2654a046
MB
988#ifndef wxUSE_SPLASH
989# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 990# error "wxUSE_SPLASH must be defined, please read comment near the top of this file."
2654a046
MB
991# else
992# define wxUSE_SPLASH 0
993# endif
994#endif /* !defined(wxUSE_SPLASH) */
995
1e6feb95
VZ
996#ifndef wxUSE_SPLITTER
997# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 998# error "wxUSE_SPLITTER must be defined, please read comment near the top of this file."
1e6feb95
VZ
999# else
1000# define wxUSE_SPLITTER 0
1001# endif
1002#endif /* !defined(wxUSE_SPLITTER) */
1003
1004#ifndef wxUSE_STATBMP
1005# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1006# error "wxUSE_STATBMP must be defined, please read comment near the top of this file."
1e6feb95
VZ
1007# else
1008# define wxUSE_STATBMP 0
1009# endif
1010#endif /* !defined(wxUSE_STATBMP) */
1011
1012#ifndef wxUSE_STATBOX
1013# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1014# error "wxUSE_STATBOX must be defined, please read comment near the top of this file."
1e6feb95
VZ
1015# else
1016# define wxUSE_STATBOX 0
1017# endif
1018#endif /* !defined(wxUSE_STATBOX) */
1019
1020#ifndef wxUSE_STATLINE
1021# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1022# error "wxUSE_STATLINE must be defined, please read comment near the top of this file."
1e6feb95
VZ
1023# else
1024# define wxUSE_STATLINE 0
1025# endif
1026#endif /* !defined(wxUSE_STATLINE) */
1027
3379ed37
VZ
1028#ifndef wxUSE_STATTEXT
1029# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1030# error "wxUSE_STATTEXT must be defined, please read comment near the top of this file."
3379ed37
VZ
1031# else
1032# define wxUSE_STATTEXT 0
1033# endif
1034#endif /* !defined(wxUSE_STATTEXT) */
1035
1e6feb95
VZ
1036#ifndef wxUSE_STATUSBAR
1037# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1038# error "wxUSE_STATUSBAR must be defined, please read comment near the top of this file."
1e6feb95
VZ
1039# else
1040# define wxUSE_STATUSBAR 0
1041# endif
1042#endif /* !defined(wxUSE_STATUSBAR) */
1043
4f167b46
VZ
1044#ifndef wxUSE_TASKBARICON
1045# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1046# error "wxUSE_TASKBARICON must be defined, please read comment near the top of this file."
4f167b46
VZ
1047# else
1048# define wxUSE_TASKBARICON 0
1049# endif
1050#endif /* !defined(wxUSE_TASKBARICON) */
1051
1e6feb95
VZ
1052#ifndef wxUSE_TEXTCTRL
1053# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1054# error "wxUSE_TEXTCTRL must be defined, please read comment near the top of this file."
1e6feb95
VZ
1055# else
1056# define wxUSE_TEXTCTRL 0
1057# endif
1058#endif /* !defined(wxUSE_TEXTCTRL) */
1059
f38bcae5
VZ
1060#ifndef wxUSE_TIPWINDOW
1061# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1062# error "wxUSE_TIPWINDOW must be defined, please read comment near the top of this file."
f38bcae5
VZ
1063# else
1064# define wxUSE_TIPWINDOW 0
1065# endif
1066#endif /* !defined(wxUSE_TIPWINDOW) */
1067
1e6feb95
VZ
1068#ifndef wxUSE_TOOLBAR
1069# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1070# error "wxUSE_TOOLBAR must be defined, please read comment near the top of this file."
1e6feb95
VZ
1071# else
1072# define wxUSE_TOOLBAR 0
1073# endif
1074#endif /* !defined(wxUSE_TOOLBAR) */
1075
1076#ifndef wxUSE_TOOLTIPS
1077# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1078# error "wxUSE_TOOLTIPS must be defined, please read comment near the top of this file."
1e6feb95
VZ
1079# else
1080# define wxUSE_TOOLTIPS 0
1081# endif
1082#endif /* !defined(wxUSE_TOOLTIPS) */
1083
1084#ifndef wxUSE_TREECTRL
1085# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1086# error "wxUSE_TREECTRL must be defined, please read comment near the top of this file."
1e6feb95
VZ
1087# else
1088# define wxUSE_TREECTRL 0
1089# endif
1090#endif /* !defined(wxUSE_TREECTRL) */
1091
9b7e0226
VZ
1092#ifndef wxUSE_UIACTIONSIMULATOR
1093# ifdef wxABORT_ON_CONFIG_ERROR
1094# error "wxUSE_UIACTIONSIMULATOR must be defined, please read comment near the top of this file."
1095# else
1096# define wxUSE_UIACTIONSIMULATOR 0
1097# endif
1098#endif /* !defined(wxUSE_UIACTIONSIMULATOR) */
1099
f8ba082e 1100#ifndef wxUSE_VALIDATORS
12491c1f 1101# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1102# error "wxUSE_VALIDATORS must be defined, please read comment near the top of this file."
12491c1f 1103# else
f8ba082e 1104# define wxUSE_VALIDATORS 0
12491c1f 1105# endif
f8ba082e 1106#endif /* !defined(wxUSE_VALIDATORS) */
12491c1f 1107
3379ed37
VZ
1108#ifndef wxUSE_WXHTML_HELP
1109# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1110# error "wxUSE_WXHTML_HELP must be defined, please read comment near the top of this file."
3379ed37
VZ
1111# else
1112# define wxUSE_WXHTML_HELP 0
1113# endif
1114#endif /* !defined(wxUSE_WXHTML_HELP) */
1115
e16514bf
VZ
1116#ifndef wxUSE_XRC
1117# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1118# error "wxUSE_XRC must be defined, please read comment near the top of this file."
e16514bf
VZ
1119# else
1120# define wxUSE_XRC 0
1121# endif
1122#endif /* !defined(wxUSE_XRC) */
1123
a5d46b73 1124#endif /* wxUSE_GUI */
c4d596ea 1125
1e6feb95 1126/*
6619edf0
VZ
1127 Section 2: platform-specific checks.
1128
1129 This must be done after checking that everything is defined as the platform
1130 checks use wxUSE_XXX symbols in #if tests.
1131 */
1132
1133#if defined(__WXPALMOS__)
1134# include "wx/palmos/chkconf.h"
1135#elif defined(__WXWINCE__)
1136# include "wx/msw/wince/chkconf.h"
1137#elif defined(__WXMSW__)
1138# include "wx/msw/chkconf.h"
1139#elif defined(__WXGTK__)
1140# include "wx/gtk/chkconf.h"
d30ef769
VZ
1141#elif defined(__WXCOCOA__)
1142# include "wx/cocoa/chkconf.h"
6619edf0 1143#elif defined(__WXMAC__)
ef0e9220 1144# include "wx/osx/chkconf.h"
6619edf0
VZ
1145#elif defined(__OS2__)
1146# include "wx/os2/chkconf.h"
1147#elif defined(__WXMGL__)
1148# include "wx/mgl/chkconf.h"
1149#elif defined(__WXDFB__)
1150# include "wx/dfb/chkconf.h"
1151#elif defined(__WXMOTIF__)
1152# include "wx/motif/chkconf.h"
1153#elif defined(__WXX11__)
1154# include "wx/x11/chkconf.h"
1155#endif
1156
149e70e1
VZ
1157/*
1158 __UNIX__ is also defined under Cygwin but we shouldn't perform these checks
1159 there if we're building wxMSW.
1160 */
1161#if defined(__UNIX__) && !defined(__WXMSW__)
6619edf0
VZ
1162# include "wx/unix/chkconf.h"
1163#endif
1164
1165#ifdef __WXUNIVERSAL__
1166# include "wx/univ/chkconf.h"
1167#endif
1168
1169/*
1170 Section 3a: check consistency of the non-GUI settings.
1e6feb95 1171 */
a5d46b73 1172
c1dc9f83
VZ
1173#if WXWIN_COMPATIBILITY_2_6
1174# if !WXWIN_COMPATIBILITY_2_8
f7c3b945 1175# ifdef wxABORT_ON_CONFIG_ERROR
c1dc9f83 1176# error "2.6.X compatibility requires 2.8.X compatibility"
f7c3b945 1177# else
c1dc9f83
VZ
1178# undef WXWIN_COMPATIBILITY_2_8
1179# define WXWIN_COMPATIBILITY_2_8 1
f7c3b945
WS
1180# endif
1181# endif
c1dc9f83 1182#endif /* WXWIN_COMPATIBILITY_2_6 */
f7c3b945 1183
5d36ad18
VZ
1184#if wxUSE_ARCHIVE_STREAMS
1185# if !wxUSE_DATETIME
1186# ifdef wxABORT_ON_CONFIG_ERROR
1187# error "wxArchive requires wxUSE_DATETIME"
1188# else
1189# undef wxUSE_ARCHIVE_STREAMS
1190# define wxUSE_ARCHIVE_STREAMS 0
1191# endif
1192# endif
1193#endif /* wxUSE_ARCHIVE_STREAMS */
1194
a5d46b73
VZ
1195#if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
1196# if !wxUSE_PROTOCOL
1197# ifdef wxABORT_ON_CONFIG_ERROR
1198# error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
1199# else
1200# undef wxUSE_PROTOCOL
1201# define wxUSE_PROTOCOL 1
1202# endif
1203# endif
1204#endif /* wxUSE_PROTOCOL_XXX */
1205
1206#if wxUSE_URL
1207# if !wxUSE_PROTOCOL
1208# ifdef wxABORT_ON_CONFIG_ERROR
1209# error "wxUSE_URL requires wxUSE_PROTOCOL"
1210# else
1211# undef wxUSE_PROTOCOL
1212# define wxUSE_PROTOCOL 1
1213# endif
1214# endif
1215#endif /* wxUSE_URL */
1216
1217#if wxUSE_PROTOCOL
1218# if !wxUSE_SOCKETS
1219# if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
1220# ifdef wxABORT_ON_CONFIG_ERROR
1221# error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
1222# else
1223# undef wxUSE_SOCKETS
1224# define wxUSE_SOCKETS 1
1225# endif
1226# endif
1227# endif
1228
1229# if !wxUSE_STREAMS
1230# ifdef wxABORT_ON_CONFIG_ERROR
1231# error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
1232# else
1233# undef wxUSE_STREAMS
1234# define wxUSE_STREAMS 1
1235# endif
1236# endif
1237#endif /* wxUSE_PROTOCOL */
1238
c7f3eecc
VZ
1239/* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
1240#if wxUSE_HTML
1241# if !wxUSE_FILESYSTEM
1242# ifdef wxABORT_ON_CONFIG_ERROR
1243# error "wxHTML requires wxFileSystem"
1244# else
1245# undef wxUSE_FILESYSTEM
1246# define wxUSE_FILESYSTEM 1
1247# endif
1248# endif
1249#endif /* wxUSE_HTML */
1250
916af76f
MW
1251#if wxUSE_FS_ARCHIVE
1252# if !wxUSE_FILESYSTEM
1253# ifdef wxABORT_ON_CONFIG_ERROR
1254# error "wxArchiveFSHandler requires wxFileSystem"
1255# else
1256# undef wxUSE_FILESYSTEM
1257# define wxUSE_FILESYSTEM 1
1258# endif
1259# endif
1260# if !wxUSE_ARCHIVE_STREAMS
1261# ifdef wxABORT_ON_CONFIG_ERROR
1262# error "wxArchiveFSHandler requires wxArchive"
1263# else
1264# undef wxUSE_ARCHIVE_STREAMS
1265# define wxUSE_ARCHIVE_STREAMS 1
1266# endif
1267# endif
1268#endif /* wxUSE_FS_ARCHIVE */
1269
c7f3eecc
VZ
1270#if wxUSE_FILESYSTEM
1271# if !wxUSE_STREAMS
1272# ifdef wxABORT_ON_CONFIG_ERROR
1273# error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
1274# else
1275# undef wxUSE_STREAMS
1276# define wxUSE_STREAMS 1
1277# endif
1278# endif
d9b0ee1e
VZ
1279# if !wxUSE_FILE && !wxUSE_FFILE
1280# ifdef wxABORT_ON_CONFIG_ERROR
1281# error "wxUSE_FILESYSTEM requires either wxUSE_FILE or wxUSE_FFILE"
1282# else
916af76f
MW
1283# undef wxUSE_FILE
1284# define wxUSE_FILE 1
1285# undef wxUSE_FFILE
1286# define wxUSE_FFILE 1
d9b0ee1e
VZ
1287# endif
1288# endif
c7f3eecc
VZ
1289#endif /* wxUSE_FILESYSTEM */
1290
ce73e654
VS
1291#if wxUSE_FS_INET
1292# if !wxUSE_PROTOCOL
1293# ifdef wxABORT_ON_CONFIG_ERROR
1294# error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
1295# else
1296# undef wxUSE_PROTOCOL
1297# define wxUSE_PROTOCOL 1
1298# endif
1299# endif
1300#endif /* wxUSE_FS_INET */
1301
c7f3eecc 1302#if wxUSE_STOPWATCH || wxUSE_DATETIME
a5d46b73
VZ
1303# if !wxUSE_LONGLONG
1304# ifdef wxABORT_ON_CONFIG_ERROR
c7f3eecc 1305# error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
a5d46b73
VZ
1306# else
1307# undef wxUSE_LONGLONG
1308# define wxUSE_LONGLONG 1
1309# endif
1310# endif
1311#endif /* wxUSE_STOPWATCH */
1312
1313#if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
1314# ifdef wxABORT_ON_CONFIG_ERROR
1315# error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
1316# else
1317# undef wxUSE_TEXTFILE
1318# define wxUSE_TEXTFILE 1
1319# endif
1320#endif /* wxUSE_MIMETYPE */
1321
1322#if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
1323# ifdef wxABORT_ON_CONFIG_ERROR
1324# error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
1325# else
1326# undef wxUSE_TEXTBUFFER
1327# define wxUSE_TEXTBUFFER 1
1328# endif
1329#endif /* wxUSE_TEXTFILE */
1330
1331#if wxUSE_TEXTFILE && !wxUSE_FILE
1332# ifdef wxABORT_ON_CONFIG_ERROR
1333# error "wxUSE_TEXTFILE requires wxUSE_FILE"
1334# else
1335# undef wxUSE_FILE
1336# define wxUSE_FILE 1
1337# endif
1338#endif /* wxUSE_TEXTFILE */
1339
1948bb32
VS
1340#if !wxUSE_DYNLIB_CLASS
1341# if wxUSE_DYNAMIC_LOADER
1342# ifdef wxABORT_ON_CONFIG_ERROR
1343# error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
1344# else
1345# define wxUSE_DYNLIB_CLASS 1
1346# endif
1347# endif
1348#endif /* wxUSE_DYNLIB_CLASS */
1349
81f90336
MW
1350#if wxUSE_ZIPSTREAM
1351# if !wxUSE_ZLIB
1352# ifdef wxABORT_ON_CONFIG_ERROR
1353# error "wxZip requires wxZlib"
1354# else
1355# undef wxUSE_ZLIB
1356# define wxUSE_ZLIB 1
1357# endif
1358# endif
9e8e867f 1359# if !wxUSE_ARCHIVE_STREAMS
81f90336
MW
1360# ifdef wxABORT_ON_CONFIG_ERROR
1361# error "wxZip requires wxArchive"
1362# else
9e8e867f
MW
1363# undef wxUSE_ARCHIVE_STREAMS
1364# define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
1365# endif
1366# endif
1367#endif /* wxUSE_ZIPSTREAM */
1368
26e422a9
MW
1369#if wxUSE_TARSTREAM
1370# if !wxUSE_ARCHIVE_STREAMS
1371# ifdef wxABORT_ON_CONFIG_ERROR
1372# error "wxTar requires wxArchive"
1373# else
1374# undef wxUSE_ARCHIVE_STREAMS
1375# define wxUSE_ARCHIVE_STREAMS 1
1376# endif
1377# endif
1378#endif /* wxUSE_TARSTREAM */
1379
6619edf0
VZ
1380/*
1381 Section 3b: the tests for the GUI settings only.
1382 */
a5d46b73
VZ
1383#if wxUSE_GUI
1384
93629862 1385#if wxUSE_ACCESSIBILITY && !defined(__WXMSW__) && !defined(__GCCXML__)
a9c64a1b
VZ
1386# ifdef wxABORT_ON_CONFIG_ERROR
1387# error "wxUSE_ACCESSIBILITY is currently only supported under wxMSW"
1388# else
1389# undef wxUSE_ACCESSIBILITY
1390# define wxUSE_ACCESSIBILITY 0
1391# endif
1392#endif /* wxUSE_ACCESSIBILITY */
1393
1e6feb95
VZ
1394#if wxUSE_BUTTON || \
1395 wxUSE_CALENDARCTRL || \
1396 wxUSE_CARET || \
1397 wxUSE_COMBOBOX || \
1398 wxUSE_BMPBUTTON || \
1399 wxUSE_CHECKBOX || \
1400 wxUSE_CHECKLISTBOX || \
1401 wxUSE_CHOICE || \
1402 wxUSE_GAUGE || \
1403 wxUSE_GRID || \
e721a2a2 1404 wxUSE_HEADERCTRL || \
1e6feb95
VZ
1405 wxUSE_LISTBOX || \
1406 wxUSE_LISTCTRL || \
1407 wxUSE_NOTEBOOK || \
1408 wxUSE_RADIOBOX || \
1409 wxUSE_RADIOBTN || \
e721a2a2 1410 wxUSE_REARRANGECTRL || \
1e6feb95
VZ
1411 wxUSE_SCROLLBAR || \
1412 wxUSE_SLIDER || \
1413 wxUSE_SPINBTN || \
1414 wxUSE_SPINCTRL || \
1415 wxUSE_STATBMP || \
1416 wxUSE_STATBOX || \
1417 wxUSE_STATLINE || \
3379ed37 1418 wxUSE_STATTEXT || \
1e6feb95
VZ
1419 wxUSE_STATUSBAR || \
1420 wxUSE_TEXTCTRL || \
1421 wxUSE_TOOLBAR || \
1422 wxUSE_TREECTRL
1423# if !wxUSE_CONTROLS
1424# ifdef wxABORT_ON_CONFIG_ERROR
1425# error "wxUSE_CONTROLS unset but some controls used"
1426# else
1427# undef wxUSE_CONTROLS
1428# define wxUSE_CONTROLS 1
1429# endif
1430# endif
1431#endif /* controls */
1432
0b4f47a3
DS
1433#if wxUSE_BMPBUTTON
1434# if !wxUSE_BUTTON
1435# ifdef wxABORT_ON_CONFIG_ERROR
1436# error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1437# else
1438# undef wxUSE_BUTTON
1439# define wxUSE_BUTTON 1
1440# endif
1441# endif
1442#endif /* wxUSE_BMPBUTTON */
1443
3571e1ad
VZ
1444#if wxUSE_COMMANDLINKBUTTON
1445# if !wxUSE_BUTTON
1446# ifdef wxABORT_ON_CONFIG_ERROR
1447# error "wxUSE_COMMANDLINKBUTTON requires wxUSE_BUTTON"
1448# else
1449# undef wxUSE_BUTTON
1450# define wxUSE_BUTTON 1
1451# endif
1452# endif
1453#endif /* wxUSE_COMMANDLINKBUTTON */
1454
aa017eab
VZ
1455/*
1456 wxUSE_BOOKCTRL should be only used if any of the controls deriving from it
1457 are used
1458 */
1459#ifdef wxUSE_BOOKCTRL
1460# ifdef wxABORT_ON_CONFIG_ERROR
1461# error "wxUSE_BOOKCTRL is defined automatically, don't define it"
1462# else
1463# undef wxUSE_BOOKCTRL
15aad3b9 1464# endif
aa017eab 1465#endif
15aad3b9 1466
aa017eab
VZ
1467#define wxUSE_BOOKCTRL (wxUSE_NOTEBOOK || \
1468 wxUSE_LISTBOOK || \
1469 wxUSE_CHOICEBOOK || \
8d206c07 1470 wxUSE_TOOLBOOK || \
aa017eab 1471 wxUSE_TREEBOOK)
15aad3b9 1472
0917b10c
VZ
1473#if wxUSE_COLLPANE
1474# if !wxUSE_BUTTON || !wxUSE_STATLINE
1475# ifdef wxABORT_ON_CONFIG_ERROR
1476# error "wxUSE_COLLPANE requires wxUSE_BUTTON and wxUSE_STATLINE"
1477# else
1478# undef wxUSE_COLLPANE
1479# define wxUSE_COLLPANE 0
1480# endif
1481# endif
1482#endif /* wxUSE_COLLPANE */
1483
5b5e4f32
VZ
1484#if wxUSE_LISTBOOK
1485# if !wxUSE_LISTCTRL
1486# ifdef wxABORT_ON_CONFIG_ERROR
1487# error "wxListbook requires wxListCtrl"
1488# else
1489# undef wxUSE_LISTCTRL
1490# define wxUSE_LISTCTRL 1
1491# endif
1492# endif
1493#endif /* wxUSE_LISTBOOK */
1494
f5e0b4bc
WS
1495#if wxUSE_CHOICEBOOK
1496# if !wxUSE_CHOICE
1497# ifdef wxABORT_ON_CONFIG_ERROR
1498# error "wxChoicebook requires wxChoice"
1499# else
1500# undef wxUSE_CHOICE
1501# define wxUSE_CHOICE 1
1502# endif
1503# endif
1504#endif /* wxUSE_CHOICEBOOK */
1505
8d206c07
PC
1506#if wxUSE_TOOLBOOK
1507# if !wxUSE_TOOLBAR
1508# ifdef wxABORT_ON_CONFIG_ERROR
1509# error "wxToolbook requires wxToolBar"
1510# else
1511# undef wxUSE_TOOLBAR
1512# define wxUSE_TOOLBAR 1
1513# endif
1514# endif
1515#endif /* wxUSE_TOOLBOOK */
1516
8d37334f
VZ
1517#if !wxUSE_ODCOMBOBOX
1518# if wxUSE_BITMAPCOMBOBOX
e721a2a2
VZ
1519# ifdef wxABORT_ON_CONFIG_ERROR
1520# error "wxBitmapComboBox requires wxOwnerDrawnComboBox"
1521# else
1522# undef wxUSE_BITMAPCOMBOBOX
1523# define wxUSE_BITMAPCOMBOBOX 0
1524# endif
8d37334f
VZ
1525# endif
1526#endif /* !wxUSE_ODCOMBOBOX */
1527
e721a2a2
VZ
1528#if !wxUSE_HEADERCTRL
1529# if wxUSE_DATAVIEWCTRL || wxUSE_GRID
1530# ifdef wxABORT_ON_CONFIG_ERROR
1531# error "wxDataViewCtrl and wxGrid require wxHeaderCtrl"
1532# else
1533# undef wxUSE_HEADERCTRL
1534# define wxUSE_HEADERCTRL 1
1535# endif
1536# endif
1537#endif /* !wxUSE_HEADERCTRL */
1538
75545930
VZ
1539#if wxUSE_REARRANGECTRL
1540# if !wxUSE_CHECKLISTBOX
1541# ifdef wxABORT_ON_CONFIG_ERROR
1542# error "wxRearrangeCtrl requires wxCheckListBox"
1543# else
1544# undef wxUSE_REARRANGECTRL
1545# define wxUSE_REARRANGECTRL 0
1546# endif
1547# endif
1548#endif /* wxUSE_REARRANGECTRL */
1549
a1bdd4ab
VZ
1550#if wxUSE_RICHMSGDLG
1551# if !wxUSE_MSGDLG
1552# ifdef wxABORT_ON_CONFIG_ERROR
1553# error "wxUSE_RICHMSGDLG requires wxUSE_MSGDLG"
1554# else
1555# undef wxUSE_MSGDLG
1556# define wxUSE_MSGDLG 1
1557# endif
1558# endif
1559#endif /* wxUSE_RICHMSGDLG */
1560
da4486fb
VZ
1561/* don't attempt to use native status bar on the platforms not having it */
1562#ifndef wxUSE_NATIVE_STATUSBAR
1563# define wxUSE_NATIVE_STATUSBAR 0
1564#elif wxUSE_NATIVE_STATUSBAR
b08cd3bf
WS
1565# if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1566 defined(__WXMAC__) || \
1567 defined(__WXPALMOS__) )
da4486fb
VZ
1568# undef wxUSE_NATIVE_STATUSBAR
1569# define wxUSE_NATIVE_STATUSBAR 0
1570# endif
1571#endif
1572
f43426c1
RD
1573#if wxUSE_GRAPHICS_CONTEXT && !wxUSE_GEOMETRY
1574# ifdef wxABORT_ON_CONFIG_ERROR
1575# error "wxUSE_GRAPHICS_CONTEXT requires wxUSE_GEOMETRY"
1576# else
1577# undef wxUSE_GRAPHICS_CONTEXT
1578# define wxUSE_GRAPHICS_CONTEXT 0
1579# endif
1580#endif /* wxUSE_GRAPHICS_CONTEXT */
1581
1582
3379ed37
VZ
1583/* generic controls dependencies */
1584#if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1585# if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1586 /* all common controls are needed by these dialogs */
1587# if !defined(wxUSE_CHOICE) || \
1588 !defined(wxUSE_TEXTCTRL) || \
1589 !defined(wxUSE_BUTTON) || \
1590 !defined(wxUSE_CHECKBOX) || \
1591 !defined(wxUSE_STATTEXT)
1592# ifdef wxABORT_ON_CONFIG_ERROR
1593# error "These common controls are needed by common dialogs"
1594# else
1595# undef wxUSE_CHOICE
1596# define wxUSE_CHOICE 1
1597# undef wxUSE_TEXTCTRL
1598# define wxUSE_TEXTCTRL 1
1599# undef wxUSE_BUTTON
1600# define wxUSE_BUTTON 1
1601# undef wxUSE_CHECKBOX
1602# define wxUSE_CHECKBOX 1
1603# undef wxUSE_STATTEXT
1604# define wxUSE_STATTEXT 1
1605# endif
1606# endif
1607# endif
1608#endif /* !wxMSW || wxUniv */
1609
0cf3e587
VZ
1610/* generic file dialog depends on (generic) file control */
1611#if wxUSE_FILEDLG && !wxUSE_FILECTRL && \
1612 (defined(__WXUNIVERSAL__) || defined(__WXGTK__))
1613# ifdef wxABORT_ON_CONFIG_ERROR
1614# error "Generic wxFileDialog requires wxFileCtrl"
1615# else
1616# undef wxUSE_FILECTRL
1617# define wxUSE_FILECTRL 1
1618# endif
1619#endif /* wxUSE_FILEDLG */
1620
3379ed37 1621/* common dependencies */
1e6feb95
VZ
1622#if wxUSE_CALENDARCTRL
1623# if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1624# ifdef wxABORT_ON_CONFIG_ERROR
1625# error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1626# else
1627# undef wxUSE_SPINBTN
1628# undef wxUSE_COMBOBOX
1629# define wxUSE_SPINBTN 1
1630# define wxUSE_COMBOBOX 1
1631# endif
1632# endif
e2b87f38
VZ
1633
1634# if !wxUSE_DATETIME
1635# ifdef wxABORT_ON_CONFIG_ERROR
1636# error "wxCalendarCtrl requires wxUSE_DATETIME"
1637# else
1638# undef wxUSE_DATETIME
1639# define wxUSE_DATETIME 1
1640# endif
1641# endif
1e6feb95
VZ
1642#endif /* wxUSE_CALENDARCTRL */
1643
324eeecb
WS
1644#if wxUSE_DATEPICKCTRL
1645# if !wxUSE_DATETIME
1646# ifdef wxABORT_ON_CONFIG_ERROR
60bea0cf 1647# error "wxDatePickerCtrl requires wxUSE_DATETIME"
324eeecb
WS
1648# else
1649# undef wxUSE_DATETIME
1650# define wxUSE_DATETIME 1
1651# endif
1652# endif
1653#endif /* wxUSE_DATEPICKCTRL */
1654
1e6feb95
VZ
1655#if wxUSE_CHECKLISTBOX
1656# if !wxUSE_LISTBOX
1657# ifdef wxABORT_ON_CONFIG_ERROR
1658# error "wxCheckListBox requires wxListBox"
1659# else
1660# undef wxUSE_LISTBOX
1661# define wxUSE_LISTBOX 1
1662# endif
1663# endif
97e4cf6d
WS
1664#endif /* wxUSE_CHECKLISTBOX */
1665
1666#if wxUSE_CHOICEDLG
1667# if !wxUSE_LISTBOX
1668# ifdef wxABORT_ON_CONFIG_ERROR
1669# error "Choice dialogs requires wxListBox"
1670# else
1671# undef wxUSE_LISTBOX
1672# define wxUSE_LISTBOX 1
1673# endif
1674# endif
1675#endif /* wxUSE_CHOICEDLG */
1e6feb95 1676
0b4f47a3
DS
1677#if wxUSE_HELP
1678# if !wxUSE_BMPBUTTON
1679# ifdef wxABORT_ON_CONFIG_ERROR
1680# error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1681# else
1682# undef wxUSE_BMPBUTTON
1683# define wxUSE_BMPBUTTON 1
1684# endif
1685# endif
adb799d6
DS
1686
1687# if !wxUSE_CHOICEDLG
1688# ifdef wxABORT_ON_CONFIG_ERROR
1689# error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1690# else
1691# undef wxUSE_CHOICEDLG
1692# define wxUSE_CHOICEDLG 1
1693# endif
1694# endif
0b4f47a3
DS
1695#endif /* wxUSE_HELP */
1696
09f43fd3
VZ
1697#if wxUSE_MS_HTML_HELP
1698 /*
1699 this doesn't make sense for platforms other than MSW but we still
1700 define it in wx/setup_inc.h so don't complain if it happens to be
1701 defined under another platform but just silently fix it.
1702 */
1703# ifndef __WXMSW__
1704# undef wxUSE_MS_HTML_HELP
1705# define wxUSE_MS_HTML_HELP 0
1706# endif
1707#endif /* wxUSE_MS_HTML_HELP */
1708
3379ed37 1709#if wxUSE_WXHTML_HELP
0e871ad0 1710# if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
3379ed37
VZ
1711# ifdef wxABORT_ON_CONFIG_ERROR
1712# error "Built in help controller can't be compiled"
1713# else
1714# undef wxUSE_HELP
1715# define wxUSE_HELP 1
1716# undef wxUSE_HTML
1717# define wxUSE_HTML 1
1718# undef wxUSE_COMBOBOX
1719# define wxUSE_COMBOBOX 1
730dfeb4
VS
1720# undef wxUSE_NOTEBOOK
1721# define wxUSE_NOTEBOOK 1
0e871ad0
WS
1722# undef wxUSE_SPINCTRL
1723# define wxUSE_SPINCTRL 1
3379ed37
VZ
1724# endif
1725# endif
1726#endif /* wxUSE_WXHTML_HELP */
1727
05e4fd64
DS
1728#if !wxUSE_IMAGE
1729/*
1730 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1731 user explicitly wants this and disable all other features that require
1732 wxUSE_IMAGE.
1733 */
1734# if wxUSE_DRAGIMAGE
1735# ifdef wxABORT_ON_CONFIG_ERROR
1736# error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1737# else
1738# undef wxUSE_DRAGIMAGE
1739# define wxUSE_DRAGIMAGE 0
1740# endif
1741# endif
1742
1743# if wxUSE_LIBPNG
1744# ifdef wxABORT_ON_CONFIG_ERROR
1745# error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1746# else
1747# undef wxUSE_LIBPNG
1748# define wxUSE_LIBPNG 0
1749# endif
1750# endif
1751
1752# if wxUSE_LIBJPEG
1753# ifdef wxABORT_ON_CONFIG_ERROR
1754# error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1755# else
1756# undef wxUSE_LIBJPEG
1757# define wxUSE_LIBJPEG 0
1758# endif
1759# endif
1760
1761# if wxUSE_LIBTIFF
1762# ifdef wxABORT_ON_CONFIG_ERROR
1763# error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1764# else
1765# undef wxUSE_LIBTIFF
1766# define wxUSE_LIBTIFF 0
1767# endif
1768# endif
1769
1770# if wxUSE_GIF
1771# ifdef wxABORT_ON_CONFIG_ERROR
1772# error "wxUSE_GIF requires wxUSE_IMAGE"
1773# else
1774# undef wxUSE_GIF
1775# define wxUSE_GIF 0
1776# endif
1777# endif
1778
1779# if wxUSE_PNM
1780# ifdef wxABORT_ON_CONFIG_ERROR
1781# error "wxUSE_PNM requires wxUSE_IMAGE"
1782# else
1783# undef wxUSE_PNM
1784# define wxUSE_PNM 0
1785# endif
1786# endif
1787
1788# if wxUSE_PCX
1789# ifdef wxABORT_ON_CONFIG_ERROR
1790# error "wxUSE_PCX requires wxUSE_IMAGE"
1791# else
1792# undef wxUSE_PCX
1793# define wxUSE_PCX 0
1794# endif
1795# endif
1796
1797# if wxUSE_IFF
1798# ifdef wxABORT_ON_CONFIG_ERROR
1799# error "wxUSE_IFF requires wxUSE_IMAGE"
1800# else
1801# undef wxUSE_IFF
1802# define wxUSE_IFF 0
1803# endif
1804# endif
1805
1806# if wxUSE_TOOLBAR
1807# ifdef wxABORT_ON_CONFIG_ERROR
1808# error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1809# else
1810# undef wxUSE_TOOLBAR
1811# define wxUSE_TOOLBAR 0
1812# endif
1813# endif
1814
1815# if wxUSE_XPM
1816# ifdef wxABORT_ON_CONFIG_ERROR
1817# error "wxUSE_XPM requires wxUSE_IMAGE"
1818# else
1819# undef wxUSE_XPM
1820# define wxUSE_XPM 0
1821# endif
1822# endif
1823
1824#endif /* !wxUSE_IMAGE */
1825
e30285ab
VZ
1826#if wxUSE_DOC_VIEW_ARCHITECTURE
1827# if !wxUSE_MENUS
1828# ifdef wxABORT_ON_CONFIG_ERROR
1829# error "DocView requires wxUSE_MENUS"
1830# else
1831# undef wxUSE_MENUS
1832# define wxUSE_MENUS 1
1833# endif
1834# endif
1835
adb799d6
DS
1836# if !wxUSE_CHOICEDLG
1837# ifdef wxABORT_ON_CONFIG_ERROR
1838# error "DocView requires wxUSE_CHOICEDLG"
1839# else
1840# undef wxUSE_CHOICEDLG
1841# define wxUSE_CHOICEDLG 1
1842# endif
1843# endif
1844
e30285ab
VZ
1845# if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1846# ifdef wxABORT_ON_CONFIG_ERROR
1847# error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1848# else
1849# undef wxUSE_STREAMS
1850# define wxUSE_STREAMS 1
1851# endif
1852# endif
a0219e45
VS
1853
1854# if !wxUSE_FILE_HISTORY
1855# ifdef wxABORT_ON_CONFIG_ERROR
1856# error "DocView requires wxUSE_FILE_HISTORY"
1857# else
1858# undef wxUSE_FILE_HISTORY
1859# define wxUSE_FILE_HISTORY 1
1860# endif
1861# endif
e30285ab
VZ
1862#endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1863
3379ed37
VZ
1864#if wxUSE_PRINTING_ARCHITECTURE
1865# if !wxUSE_COMBOBOX
1866# ifdef wxABORT_ON_CONFIG_ERROR
1867# error "Print dialog requires wxUSE_COMBOBOX"
1868# else
1869# undef wxUSE_COMBOBOX
1870# define wxUSE_COMBOBOX 1
1871# endif
1872# endif
1873#endif /* wxUSE_PRINTING_ARCHITECTURE */
1874
e30285ab 1875#if wxUSE_MDI_ARCHITECTURE
efd17a1d
VZ
1876# if !wxUSE_MDI
1877# ifdef wxABORT_ON_CONFIG_ERROR
1878# error "MDI requires wxUSE_MDI"
1879# else
1880# undef wxUSE_MDI
1881# define wxUSE_MDI 1
1882# endif
1883# endif
1884
e30285ab 1885# if !wxUSE_DOC_VIEW_ARCHITECTURE
1e6feb95 1886# ifdef wxABORT_ON_CONFIG_ERROR
0872eaf9 1887# error "wxUSE_MDI_ARCHITECTURE requires wxUSE_DOC_VIEW_ARCHITECTURE"
1e6feb95 1888# else
e30285ab
VZ
1889# undef wxUSE_DOC_VIEW_ARCHITECTURE
1890# define wxUSE_DOC_VIEW_ARCHITECTURE 1
1e6feb95
VZ
1891# endif
1892# endif
e30285ab 1893#endif /* wxUSE_MDI_ARCHITECTURE */
1e6feb95
VZ
1894
1895#if !wxUSE_FILEDLG
2119e280 1896# if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1e6feb95 1897# ifdef wxABORT_ON_CONFIG_ERROR
0872eaf9 1898# error "wxUSE_FILEDLG is required by wxUSE_DOC_VIEW_ARCHITECTURE and wxUSE_WXHTML_HELP!"
1e6feb95
VZ
1899# else
1900# undef wxUSE_FILEDLG
1901# define wxUSE_FILEDLG 1
1902# endif
1903# endif
e421922f 1904#endif /* wxUSE_FILEDLG */
1e6feb95 1905
555f645a
WS
1906#if !wxUSE_GAUGE || !wxUSE_BUTTON
1907# if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
063b752e 1908# ifdef wxABORT_ON_CONFIG_ERROR
555f645a 1909# error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
063b752e
WS
1910# else
1911# undef wxUSE_GAUGE
555f645a 1912# undef wxUSE_BUTTON
063b752e 1913# define wxUSE_GAUGE 1
555f645a 1914# define wxUSE_BUTTON 1
063b752e
WS
1915# endif
1916# endif
1917#endif /* !wxUSE_GAUGE */
1918
0b4f47a3 1919#if !wxUSE_BUTTON
555f645a 1920# if wxUSE_FONTDLG || \
0b4f47a3
DS
1921 wxUSE_FILEDLG || \
1922 wxUSE_CHOICEDLG || \
1923 wxUSE_NUMBERDLG || \
1924 wxUSE_TEXTDLG || \
1925 wxUSE_DIRDLG || \
1926 wxUSE_STARTUP_TIPS || \
1927 wxUSE_WIZARDDLG
1928# ifdef wxABORT_ON_CONFIG_ERROR
1929# error "Common and generic dialogs require wxUSE_BUTTON"
1930# else
1931# undef wxUSE_BUTTON
1932# define wxUSE_BUTTON 1
1933# endif
1934# endif
063b752e 1935#endif /* !wxUSE_BUTTON */
0b4f47a3 1936
12491c1f
JS
1937#if !wxUSE_TOOLBAR
1938# if wxUSE_TOOLBAR_NATIVE
1939# ifdef wxABORT_ON_CONFIG_ERROR
1940# error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1941# else
1942# undef wxUSE_TOOLBAR_NATIVE
1943# define wxUSE_TOOLBAR_NATIVE 0
1944# endif
1945# endif
12491c1f
JS
1946#endif
1947
1e6feb95
VZ
1948#if !wxUSE_IMAGLIST
1949# if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1950# ifdef wxABORT_ON_CONFIG_ERROR
1951# error "wxImageList must be compiled as well"
1952# else
1953# undef wxUSE_IMAGLIST
1954# define wxUSE_IMAGLIST 1
1955# endif
1956# endif
1957#endif /* !wxUSE_IMAGLIST */
1958
1e6feb95 1959#if wxUSE_RADIOBOX
9a727a3b 1960# if !wxUSE_RADIOBTN
1e6feb95 1961# ifdef wxABORT_ON_CONFIG_ERROR
9a727a3b 1962# error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
1e6feb95
VZ
1963# else
1964# undef wxUSE_RADIOBTN
1e6feb95 1965# define wxUSE_RADIOBTN 1
9a727a3b
WS
1966# endif
1967# endif
1968# if !wxUSE_STATBOX && !defined(__WXPALMOS__)
1969# ifdef wxABORT_ON_CONFIG_ERROR
1970# error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
1971# else
1972# undef wxUSE_STATBOX
1e6feb95
VZ
1973# define wxUSE_STATBOX 1
1974# endif
1975# endif
1976#endif /* wxUSE_RADIOBOX */
1977
3379ed37
VZ
1978#if wxUSE_LOGWINDOW
1979# if !wxUSE_TEXTCTRL
1980# ifdef wxABORT_ON_CONFIG_ERROR
1981# error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1982# else
1983# undef wxUSE_TEXTCTRL
1984# define wxUSE_TEXTCTRL 1
1985# endif
1986# endif
1987#endif /* wxUSE_LOGWINDOW */
1e6feb95 1988
3e6e2754 1989#if wxUSE_LOG_DIALOG
0b4f47a3 1990# if !wxUSE_LISTCTRL || !wxUSE_BUTTON
3e6e2754 1991# ifdef wxABORT_ON_CONFIG_ERROR
0b4f47a3 1992# error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
3e6e2754
JS
1993# else
1994# undef wxUSE_LISTCTRL
1995# define wxUSE_LISTCTRL 1
0b4f47a3
DS
1996# undef wxUSE_BUTTON
1997# define wxUSE_BUTTON 1
3e6e2754
JS
1998# endif
1999# endif
2000#endif /* wxUSE_LOG_DIALOG */
2001
1e6feb95 2002#if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
3379ed37 2003# ifdef wxABORT_ON_CONFIG_ERROR
1e6feb95
VZ
2004# error "wxClipboard requires wxDataObject"
2005# else
2006# undef wxUSE_DATAOBJ
2007# define wxUSE_DATAOBJ 1
2008# endif
2009#endif /* wxUSE_CLIPBOARD */
2010
d2ebf0b7
VS
2011#if wxUSE_XRC && !wxUSE_XML
2012# ifdef wxABORT_ON_CONFIG_ERROR
2013# error "wxUSE_XRC requires wxUSE_XML"
2014# else
2015# undef wxUSE_XRC
2016# define wxUSE_XRC 0
2017# endif
5a017695 2018#endif /* wxUSE_XRC */
d2ebf0b7 2019
4669dcb2
RN
2020#if wxUSE_SOCKETS && !wxUSE_STOPWATCH
2021# ifdef wxABORT_ON_CONFIG_ERROR
2022# error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
2023# else
2024# undef wxUSE_SOCKETS
2025# define wxUSE_SOCKETS 0
2026# endif
2027#endif /* wxUSE_SOCKETS */
2028
b0fc907f
VZ
2029#if wxUSE_SVG && !wxUSE_STREAMS
2030# ifdef wxABORT_ON_CONFIG_ERROR
2031# error "wxUSE_SVG requires wxUSE_STREAMS"
2032# else
2033# undef wxUSE_SVG
2034# define wxUSE_SVG 0
2035# endif
2036#endif /* wxUSE_SVG */
2037
d5cbee17
VS
2038#if wxUSE_SVG && !wxUSE_IMAGE
2039# ifdef wxABORT_ON_CONFIG_ERROR
2040# error "wxUSE_SVG requires wxUSE_IMAGE"
2041# else
2042# undef wxUSE_SVG
2043# define wxUSE_SVG 0
2044# endif
2045#endif /* wxUSE_SVG */
2046
2047#if wxUSE_SVG && !wxUSE_LIBPNG
2048# ifdef wxABORT_ON_CONFIG_ERROR
2049# error "wxUSE_SVG requires wxUSE_LIBPNG"
2050# else
2051# undef wxUSE_SVG
2052# define wxUSE_SVG 0
2053# endif
2054#endif /* wxUSE_SVG */
2055
ca5c6ac3
VZ
2056#if !wxUSE_VARIANT
2057# if wxUSE_DATAVIEWCTRL
2058# ifdef wxABORT_ON_CONFIG_ERROR
2059# error "wxDataViewCtrl requires wxVariant"
2060# else
2061# undef wxUSE_DATAVIEWCTRL
2062# define wxUSE_DATAVIEWCTRL 0
2063# endif
2064# endif
ca5c6ac3
VZ
2065#endif /* wxUSE_VARIANT */
2066
1e6feb95 2067#endif /* wxUSE_GUI */
8ba16443
VZ
2068
2069#endif /* _WX_CHKCONF_H_ */