]> git.saurik.com Git - wxWidgets.git/blame - include/wx/chkconf.h
Applied patch, fixes #12090: wxGTK cursor handling revamp
[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
a57d600f 550#ifndef wxUSE_COMBOCTRL
481e2766 551# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 552# error "wxUSE_COMBOCTRL must be defined, please read comment near the top of this file."
481e2766 553# else
a57d600f 554# define wxUSE_COMBOCTRL 0
481e2766 555# endif
a57d600f 556#endif /* !defined(wxUSE_COMBOCTRL) */
481e2766 557
1e6feb95
VZ
558#ifndef wxUSE_DATAOBJ
559# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 560# error "wxUSE_DATAOBJ must be defined, please read comment near the top of this file."
1e6feb95
VZ
561# else
562# define wxUSE_DATAOBJ 0
563# endif
564#endif /* !defined(wxUSE_DATAOBJ) */
565
e16514bf
VZ
566#ifndef wxUSE_DATAVIEWCTRL
567# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 568# error "wxUSE_DATAVIEWCTRL must be defined, please read comment near the top of this file."
e16514bf
VZ
569# else
570# define wxUSE_DATAVIEWCTRL 0
571# endif
572#endif /* !defined(wxUSE_DATAVIEWCTRL) */
573
337dc4c1
WS
574#ifndef wxUSE_DATEPICKCTRL
575# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 576# error "wxUSE_DATEPICKCTRL must be defined, please read comment near the top of this file."
337dc4c1
WS
577# else
578# define wxUSE_DATEPICKCTRL 0
579# endif
580#endif /* !defined(wxUSE_DATEPICKCTRL) */
581
ec376c8f
VZ
582#ifndef wxUSE_DIRPICKERCTRL
583# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 584# error "wxUSE_DIRPICKERCTRL must be defined, please read comment near the top of this file."
ec376c8f
VZ
585# else
586# define wxUSE_DIRPICKERCTRL 0
587# endif
588#endif /* !defined(wxUSE_DIRPICKERCTRL) */
589
f8ba082e
VZ
590#ifndef wxUSE_DISPLAY
591# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 592# error "wxUSE_DISPLAY must be defined, please read comment near the top of this file."
f8ba082e
VZ
593# else
594# define wxUSE_DISPLAY 0
595# endif
596#endif /* !defined(wxUSE_DISPLAY) */
597
3379ed37
VZ
598#ifndef wxUSE_DOC_VIEW_ARCHITECTURE
599# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 600# error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined, please read comment near the top of this file."
3379ed37
VZ
601# else
602# define wxUSE_DOC_VIEW_ARCHITECTURE 0
603# endif
604#endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
605
0cf3e587
VZ
606#ifndef wxUSE_FILECTRL
607# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 608# error "wxUSE_FILECTRL must be defined, please read comment near the top of this file."
0cf3e587
VZ
609# else
610# define wxUSE_FILECTRL 0
611# endif
612#endif /* !defined(wxUSE_FILECTRL) */
613
1e6feb95
VZ
614#ifndef wxUSE_FILEDLG
615# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 616# error "wxUSE_FILEDLG must be defined, please read comment near the top of this file."
1e6feb95
VZ
617# else
618# define wxUSE_FILEDLG 0
619# endif
620#endif /* !defined(wxUSE_FILEDLG) */
621
ec376c8f
VZ
622#ifndef wxUSE_FILEPICKERCTRL
623# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 624# error "wxUSE_FILEPICKERCTRL must be defined, please read comment near the top of this file."
ec376c8f
VZ
625# else
626# define wxUSE_FILEPICKERCTRL 0
627# endif
628#endif /* !defined(wxUSE_FILEPICKERCTRL) */
629
1e6feb95
VZ
630#ifndef wxUSE_FONTDLG
631# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 632# error "wxUSE_FONTDLG must be defined, please read comment near the top of this file."
1e6feb95
VZ
633# else
634# define wxUSE_FONTDLG 0
635# endif
636#endif /* !defined(wxUSE_FONTDLG) */
637
638#ifndef wxUSE_FONTMAP
639# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 640# error "wxUSE_FONTMAP must be defined, please read comment near the top of this file."
1e6feb95
VZ
641# else
642# define wxUSE_FONTMAP 0
643# endif
644#endif /* !defined(wxUSE_FONTMAP) */
645
ec376c8f
VZ
646#ifndef wxUSE_FONTPICKERCTRL
647# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 648# error "wxUSE_FONTPICKERCTRL must be defined, please read comment near the top of this file."
ec376c8f
VZ
649# else
650# define wxUSE_FONTPICKERCTRL 0
651# endif
652#endif /* !defined(wxUSE_FONTPICKERCTRL) */
653
1e6feb95
VZ
654#ifndef wxUSE_GAUGE
655# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 656# error "wxUSE_GAUGE must be defined, please read comment near the top of this file."
1e6feb95
VZ
657# else
658# define wxUSE_GAUGE 0
659# endif
660#endif /* !defined(wxUSE_GAUGE) */
661
f43426c1
RD
662#ifndef wxUSE_GRAPHICS_CONTEXT
663# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 664# error "wxUSE_GRAPHICS_CONTEXT must be defined, please read comment near the top of this file."
f43426c1
RD
665# else
666# define wxUSE_GRAPHICS_CONTEXT 0
667# endif
668#endif /* !defined(wxUSE_GRAPHICS_CONTEXT) */
669
670
1e6feb95
VZ
671#ifndef wxUSE_GRID
672# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 673# error "wxUSE_GRID must be defined, please read comment near the top of this file."
1e6feb95
VZ
674# else
675# define wxUSE_GRID 0
676# endif
677#endif /* !defined(wxUSE_GRID) */
678
e721a2a2
VZ
679#ifndef wxUSE_HEADERCTRL
680# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 681# error "wxUSE_HEADERCTRL must be defined, please read comment near the top of this file."
e721a2a2
VZ
682# else
683# define wxUSE_HEADERCTRL 0
684# endif
685#endif /* !defined(wxUSE_HEADERCTRL) */
686
3379ed37
VZ
687#ifndef wxUSE_HELP
688# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 689# error "wxUSE_HELP must be defined, please read comment near the top of this file."
3379ed37
VZ
690# else
691# define wxUSE_HELP 0
692# endif
693#endif /* !defined(wxUSE_HELP) */
694
17e91437
VZ
695#ifndef wxUSE_HYPERLINKCTRL
696# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 697# error "wxUSE_HYPERLINKCTRL must be defined, please read comment near the top of this file."
17e91437
VZ
698# else
699# define wxUSE_HYPERLINKCTRL 0
700# endif
701#endif /* !defined(wxUSE_HYPERLINKCTRL) */
702
05dcbb8e
VZ
703#ifndef wxUSE_HTML
704# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 705# error "wxUSE_HTML must be defined, please read comment near the top of this file."
05dcbb8e
VZ
706# else
707# define wxUSE_HTML 0
708# endif
709#endif /* !defined(wxUSE_HTML) */
710
c839485c 711#ifndef wxUSE_LIBMSPACK
abd0503c 712# if !defined(__UNIX__) || defined(__WXPALMOS__)
c839485c
VS
713 /* set to 0 on platforms that don't have libmspack */
714# define wxUSE_LIBMSPACK 0
715# else
716# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 717# error "wxUSE_LIBMSPACK must be defined, please read comment near the top of this file."
c839485c
VS
718# else
719# define wxUSE_LIBMSPACK 0
720# endif
721# endif
722#endif /* !defined(wxUSE_LIBMSPACK) */
723
658974ae
VS
724#ifndef wxUSE_ICO_CUR
725# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 726# error "wxUSE_ICO_CUR must be defined, please read comment near the top of this file."
658974ae
VS
727# else
728# define wxUSE_ICO_CUR 0
729# endif
730#endif /* !defined(wxUSE_ICO_CUR) */
731
1663afc0
VS
732#ifndef wxUSE_IFF
733# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 734# error "wxUSE_IFF must be defined, please read comment near the top of this file."
1663afc0
VS
735# else
736# define wxUSE_IFF 0
737# endif
738#endif /* !defined(wxUSE_IFF) */
739
1e6feb95
VZ
740#ifndef wxUSE_IMAGLIST
741# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 742# error "wxUSE_IMAGLIST must be defined, please read comment near the top of this file."
1e6feb95
VZ
743# else
744# define wxUSE_IMAGLIST 0
745# endif
746#endif /* !defined(wxUSE_IMAGLIST) */
747
a92b5dfe
VZ
748#ifndef wxUSE_INFOBAR
749# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 750# error "wxUSE_INFOBAR must be defined, please read comment near the top of this file."
a92b5dfe
VZ
751# else
752# define wxUSE_INFOBAR 0
753# endif
754#endif /* !defined(wxUSE_INFOBAR) */
755
2131b89d
VZ
756#ifndef wxUSE_JOYSTICK
757# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 758# error "wxUSE_JOYSTICK must be defined, please read comment near the top of this file."
2131b89d
VZ
759# else
760# define wxUSE_JOYSTICK 0
761# endif
762#endif /* !defined(wxUSE_JOYSTICK) */
763
5b5e4f32
VZ
764#ifndef wxUSE_LISTBOOK
765# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 766# error "wxUSE_LISTBOOK must be defined, please read comment near the top of this file."
5b5e4f32
VZ
767# else
768# define wxUSE_LISTBOOK 0
769# endif
770#endif /* !defined(wxUSE_LISTBOOK) */
771
1e6feb95
VZ
772#ifndef wxUSE_LISTBOX
773# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 774# error "wxUSE_LISTBOX must be defined, please read comment near the top of this file."
1e6feb95
VZ
775# else
776# define wxUSE_LISTBOX 0
777# endif
778#endif /* !defined(wxUSE_LISTBOX) */
779
780#ifndef wxUSE_LISTCTRL
781# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 782# error "wxUSE_LISTCTRL must be defined, please read comment near the top of this file."
1e6feb95
VZ
783# else
784# define wxUSE_LISTCTRL 0
785# endif
786#endif /* !defined(wxUSE_LISTCTRL) */
787
3379ed37
VZ
788#ifndef wxUSE_LOGGUI
789# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 790# error "wxUSE_LOGGUI must be defined, please read comment near the top of this file."
3379ed37
VZ
791# else
792# define wxUSE_LOGGUI 0
793# endif
794#endif /* !defined(wxUSE_LOGGUI) */
795
796#ifndef wxUSE_LOGWINDOW
797# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 798# error "wxUSE_LOGWINDOW must be defined, please read comment near the top of this file."
3379ed37
VZ
799# else
800# define wxUSE_LOGWINDOW 0
801# endif
802#endif /* !defined(wxUSE_LOGWINDOW) */
e421922f 803
3e6e2754
JS
804#ifndef wxUSE_LOG_DIALOG
805# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 806# error "wxUSE_LOG_DIALOG must be defined, please read comment near the top of this file."
3e6e2754
JS
807# else
808# define wxUSE_LOG_DIALOG 0
809# endif
71908213 810#endif /* !defined(wxUSE_LOG_DIALOG) */
3e6e2754 811
efd17a1d
VZ
812#ifndef wxUSE_MDI
813# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 814# error "wxUSE_MDI must be defined, please read comment near the top of this file."
efd17a1d
VZ
815# else
816# define wxUSE_MDI 0
817# endif
818#endif /* !defined(wxUSE_MDI) */
819
1e6feb95
VZ
820#ifndef wxUSE_MDI_ARCHITECTURE
821# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 822# error "wxUSE_MDI_ARCHITECTURE must be defined, please read comment near the top of this file."
1e6feb95
VZ
823# else
824# define wxUSE_MDI_ARCHITECTURE 0
825# endif
826#endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
827
828#ifndef wxUSE_MENUS
829# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 830# error "wxUSE_MENUS must be defined, please read comment near the top of this file."
1e6feb95
VZ
831# else
832# define wxUSE_MENUS 0
833# endif
834#endif /* !defined(wxUSE_MENUS) */
835
3379ed37
VZ
836#ifndef wxUSE_MSGDLG
837# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 838# error "wxUSE_MSGDLG must be defined, please read comment near the top of this file."
3379ed37
VZ
839# else
840# define wxUSE_MSGDLG 0
841# endif
842#endif /* !defined(wxUSE_MSGDLG) */
843
1e6feb95
VZ
844#ifndef wxUSE_NOTEBOOK
845# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 846# error "wxUSE_NOTEBOOK must be defined, please read comment near the top of this file."
1e6feb95
VZ
847# else
848# define wxUSE_NOTEBOOK 0
849# endif
850#endif /* !defined(wxUSE_NOTEBOOK) */
851
e36a1739
VZ
852#ifndef wxUSE_NOTIFICATION_MESSAGE
853# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 854# error "wxUSE_NOTIFICATION_MESSAGE must be defined, please read comment near the top of this file."
e36a1739
VZ
855# else
856# define wxUSE_NOTIFICATION_MESSAGE 0
857# endif
858#endif /* !defined(wxUSE_NOTIFICATION_MESSAGE) */
859
a57d600f 860#ifndef wxUSE_ODCOMBOBOX
481e2766 861# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 862# error "wxUSE_ODCOMBOBOX must be defined, please read comment near the top of this file."
481e2766 863# else
a57d600f 864# define wxUSE_ODCOMBOBOX 0
481e2766 865# endif
a57d600f 866#endif /* !defined(wxUSE_ODCOMBOBOX) */
481e2766 867
d275c7eb
VZ
868#ifndef wxUSE_PALETTE
869# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 870# error "wxUSE_PALETTE must be defined, please read comment near the top of this file."
d275c7eb
VZ
871# else
872# define wxUSE_PALETTE 0
873# endif
874#endif /* !defined(wxUSE_PALETTE) */
875
1e6feb95
VZ
876#ifndef wxUSE_POPUPWIN
877# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 878# error "wxUSE_POPUPWIN must be defined, please read comment near the top of this file."
1e6feb95
VZ
879# else
880# define wxUSE_POPUPWIN 0
881# endif
882#endif /* !defined(wxUSE_POPUPWIN) */
883
3379ed37
VZ
884#ifndef wxUSE_PRINTING_ARCHITECTURE
885# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 886# error "wxUSE_PRINTING_ARCHITECTURE must be defined, please read comment near the top of this file."
3379ed37
VZ
887# else
888# define wxUSE_PRINTING_ARCHITECTURE 0
889# endif
890#endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
891
1e6feb95
VZ
892#ifndef wxUSE_RADIOBOX
893# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 894# error "wxUSE_RADIOBOX must be defined, please read comment near the top of this file."
1e6feb95
VZ
895# else
896# define wxUSE_RADIOBOX 0
897# endif
898#endif /* !defined(wxUSE_RADIOBOX) */
899
900#ifndef wxUSE_RADIOBTN
901# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 902# error "wxUSE_RADIOBTN must be defined, please read comment near the top of this file."
1e6feb95
VZ
903# else
904# define wxUSE_RADIOBTN 0
905# endif
906#endif /* !defined(wxUSE_RADIOBTN) */
907
65ead230
VZ
908#ifndef wxUSE_REARRANGECTRL
909# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 910# error "wxUSE_REARRANGECTRL must be defined, please read comment near the top of this file."
65ead230
VZ
911# else
912# define wxUSE_REARRANGECTRL 0
913# endif
914#endif /* !defined(wxUSE_REARRANGECTRL) */
915
11c2b041
VZ
916#ifndef wxUSE_RIBBON
917# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 918# error "wxUSE_RIBBON must be defined, please read comment near the top of this file."
11c2b041
VZ
919# else
920# define wxUSE_RIBBON 0
921# endif
922#endif /* !defined(wxUSE_RIBBON) */
923
1e6feb95
VZ
924#ifndef wxUSE_SASH
925# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 926# error "wxUSE_SASH must be defined, please read comment near the top of this file."
1e6feb95
VZ
927# else
928# define wxUSE_SASH 0
929# endif
930#endif /* !defined(wxUSE_SASH) */
931
932#ifndef wxUSE_SCROLLBAR
933# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 934# error "wxUSE_SCROLLBAR must be defined, please read comment near the top of this file."
1e6feb95
VZ
935# else
936# define wxUSE_SCROLLBAR 0
937# endif
938#endif /* !defined(wxUSE_SCROLLBAR) */
939
940#ifndef wxUSE_SLIDER
941# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 942# error "wxUSE_SLIDER must be defined, please read comment near the top of this file."
1e6feb95
VZ
943# else
944# define wxUSE_SLIDER 0
945# endif
946#endif /* !defined(wxUSE_SLIDER) */
947
cad1a197
VS
948#ifndef wxUSE_SOUND
949# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 950# error "wxUSE_SOUND must be defined, please read comment near the top of this file."
cad1a197
VS
951# else
952# define wxUSE_SOUND 0
953# endif
954#endif /* !defined(wxUSE_SOUND) */
955
1e6feb95
VZ
956#ifndef wxUSE_SPINBTN
957# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 958# error "wxUSE_SPINBTN must be defined, please read comment near the top of this file."
1e6feb95
VZ
959# else
960# define wxUSE_SPINBTN 0
961# endif
962#endif /* !defined(wxUSE_SPINBTN) */
963
964#ifndef wxUSE_SPINCTRL
965# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 966# error "wxUSE_SPINCTRL must be defined, please read comment near the top of this file."
1e6feb95
VZ
967# else
968# define wxUSE_SPINCTRL 0
969# endif
970#endif /* !defined(wxUSE_SPINCTRL) */
971
2654a046
MB
972#ifndef wxUSE_SPLASH
973# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 974# error "wxUSE_SPLASH must be defined, please read comment near the top of this file."
2654a046
MB
975# else
976# define wxUSE_SPLASH 0
977# endif
978#endif /* !defined(wxUSE_SPLASH) */
979
1e6feb95
VZ
980#ifndef wxUSE_SPLITTER
981# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 982# error "wxUSE_SPLITTER must be defined, please read comment near the top of this file."
1e6feb95
VZ
983# else
984# define wxUSE_SPLITTER 0
985# endif
986#endif /* !defined(wxUSE_SPLITTER) */
987
988#ifndef wxUSE_STATBMP
989# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 990# error "wxUSE_STATBMP must be defined, please read comment near the top of this file."
1e6feb95
VZ
991# else
992# define wxUSE_STATBMP 0
993# endif
994#endif /* !defined(wxUSE_STATBMP) */
995
996#ifndef wxUSE_STATBOX
997# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 998# error "wxUSE_STATBOX must be defined, please read comment near the top of this file."
1e6feb95
VZ
999# else
1000# define wxUSE_STATBOX 0
1001# endif
1002#endif /* !defined(wxUSE_STATBOX) */
1003
1004#ifndef wxUSE_STATLINE
1005# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1006# error "wxUSE_STATLINE must be defined, please read comment near the top of this file."
1e6feb95
VZ
1007# else
1008# define wxUSE_STATLINE 0
1009# endif
1010#endif /* !defined(wxUSE_STATLINE) */
1011
3379ed37
VZ
1012#ifndef wxUSE_STATTEXT
1013# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1014# error "wxUSE_STATTEXT must be defined, please read comment near the top of this file."
3379ed37
VZ
1015# else
1016# define wxUSE_STATTEXT 0
1017# endif
1018#endif /* !defined(wxUSE_STATTEXT) */
1019
1e6feb95
VZ
1020#ifndef wxUSE_STATUSBAR
1021# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1022# error "wxUSE_STATUSBAR must be defined, please read comment near the top of this file."
1e6feb95
VZ
1023# else
1024# define wxUSE_STATUSBAR 0
1025# endif
1026#endif /* !defined(wxUSE_STATUSBAR) */
1027
4f167b46
VZ
1028#ifndef wxUSE_TASKBARICON
1029# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1030# error "wxUSE_TASKBARICON must be defined, please read comment near the top of this file."
4f167b46
VZ
1031# else
1032# define wxUSE_TASKBARICON 0
1033# endif
1034#endif /* !defined(wxUSE_TASKBARICON) */
1035
1e6feb95
VZ
1036#ifndef wxUSE_TEXTCTRL
1037# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1038# error "wxUSE_TEXTCTRL must be defined, please read comment near the top of this file."
1e6feb95
VZ
1039# else
1040# define wxUSE_TEXTCTRL 0
1041# endif
1042#endif /* !defined(wxUSE_TEXTCTRL) */
1043
f38bcae5
VZ
1044#ifndef wxUSE_TIPWINDOW
1045# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1046# error "wxUSE_TIPWINDOW must be defined, please read comment near the top of this file."
f38bcae5
VZ
1047# else
1048# define wxUSE_TIPWINDOW 0
1049# endif
1050#endif /* !defined(wxUSE_TIPWINDOW) */
1051
1e6feb95
VZ
1052#ifndef wxUSE_TOOLBAR
1053# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1054# error "wxUSE_TOOLBAR must be defined, please read comment near the top of this file."
1e6feb95
VZ
1055# else
1056# define wxUSE_TOOLBAR 0
1057# endif
1058#endif /* !defined(wxUSE_TOOLBAR) */
1059
1060#ifndef wxUSE_TOOLTIPS
1061# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1062# error "wxUSE_TOOLTIPS must be defined, please read comment near the top of this file."
1e6feb95
VZ
1063# else
1064# define wxUSE_TOOLTIPS 0
1065# endif
1066#endif /* !defined(wxUSE_TOOLTIPS) */
1067
1068#ifndef wxUSE_TREECTRL
1069# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1070# error "wxUSE_TREECTRL must be defined, please read comment near the top of this file."
1e6feb95
VZ
1071# else
1072# define wxUSE_TREECTRL 0
1073# endif
1074#endif /* !defined(wxUSE_TREECTRL) */
1075
9b7e0226
VZ
1076#ifndef wxUSE_UIACTIONSIMULATOR
1077# ifdef wxABORT_ON_CONFIG_ERROR
1078# error "wxUSE_UIACTIONSIMULATOR must be defined, please read comment near the top of this file."
1079# else
1080# define wxUSE_UIACTIONSIMULATOR 0
1081# endif
1082#endif /* !defined(wxUSE_UIACTIONSIMULATOR) */
1083
f8ba082e 1084#ifndef wxUSE_VALIDATORS
12491c1f 1085# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1086# error "wxUSE_VALIDATORS must be defined, please read comment near the top of this file."
12491c1f 1087# else
f8ba082e 1088# define wxUSE_VALIDATORS 0
12491c1f 1089# endif
f8ba082e 1090#endif /* !defined(wxUSE_VALIDATORS) */
12491c1f 1091
3379ed37
VZ
1092#ifndef wxUSE_WXHTML_HELP
1093# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1094# error "wxUSE_WXHTML_HELP must be defined, please read comment near the top of this file."
3379ed37
VZ
1095# else
1096# define wxUSE_WXHTML_HELP 0
1097# endif
1098#endif /* !defined(wxUSE_WXHTML_HELP) */
1099
e16514bf
VZ
1100#ifndef wxUSE_XRC
1101# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1102# error "wxUSE_XRC must be defined, please read comment near the top of this file."
e16514bf
VZ
1103# else
1104# define wxUSE_XRC 0
1105# endif
1106#endif /* !defined(wxUSE_XRC) */
1107
a5d46b73 1108#endif /* wxUSE_GUI */
c4d596ea 1109
1e6feb95 1110/*
6619edf0
VZ
1111 Section 2: platform-specific checks.
1112
1113 This must be done after checking that everything is defined as the platform
1114 checks use wxUSE_XXX symbols in #if tests.
1115 */
1116
1117#if defined(__WXPALMOS__)
1118# include "wx/palmos/chkconf.h"
1119#elif defined(__WXWINCE__)
1120# include "wx/msw/wince/chkconf.h"
1121#elif defined(__WXMSW__)
1122# include "wx/msw/chkconf.h"
1123#elif defined(__WXGTK__)
1124# include "wx/gtk/chkconf.h"
d30ef769
VZ
1125#elif defined(__WXCOCOA__)
1126# include "wx/cocoa/chkconf.h"
6619edf0 1127#elif defined(__WXMAC__)
ef0e9220 1128# include "wx/osx/chkconf.h"
6619edf0
VZ
1129#elif defined(__OS2__)
1130# include "wx/os2/chkconf.h"
1131#elif defined(__WXMGL__)
1132# include "wx/mgl/chkconf.h"
1133#elif defined(__WXDFB__)
1134# include "wx/dfb/chkconf.h"
1135#elif defined(__WXMOTIF__)
1136# include "wx/motif/chkconf.h"
1137#elif defined(__WXX11__)
1138# include "wx/x11/chkconf.h"
1139#endif
1140
149e70e1
VZ
1141/*
1142 __UNIX__ is also defined under Cygwin but we shouldn't perform these checks
1143 there if we're building wxMSW.
1144 */
1145#if defined(__UNIX__) && !defined(__WXMSW__)
6619edf0
VZ
1146# include "wx/unix/chkconf.h"
1147#endif
1148
1149#ifdef __WXUNIVERSAL__
1150# include "wx/univ/chkconf.h"
1151#endif
1152
1153/*
1154 Section 3a: check consistency of the non-GUI settings.
1e6feb95 1155 */
a5d46b73 1156
c1dc9f83
VZ
1157#if WXWIN_COMPATIBILITY_2_6
1158# if !WXWIN_COMPATIBILITY_2_8
f7c3b945 1159# ifdef wxABORT_ON_CONFIG_ERROR
c1dc9f83 1160# error "2.6.X compatibility requires 2.8.X compatibility"
f7c3b945 1161# else
c1dc9f83
VZ
1162# undef WXWIN_COMPATIBILITY_2_8
1163# define WXWIN_COMPATIBILITY_2_8 1
f7c3b945
WS
1164# endif
1165# endif
c1dc9f83 1166#endif /* WXWIN_COMPATIBILITY_2_6 */
f7c3b945 1167
5d36ad18
VZ
1168#if wxUSE_ARCHIVE_STREAMS
1169# if !wxUSE_DATETIME
1170# ifdef wxABORT_ON_CONFIG_ERROR
1171# error "wxArchive requires wxUSE_DATETIME"
1172# else
1173# undef wxUSE_ARCHIVE_STREAMS
1174# define wxUSE_ARCHIVE_STREAMS 0
1175# endif
1176# endif
1177#endif /* wxUSE_ARCHIVE_STREAMS */
1178
a5d46b73
VZ
1179#if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
1180# if !wxUSE_PROTOCOL
1181# ifdef wxABORT_ON_CONFIG_ERROR
1182# error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
1183# else
1184# undef wxUSE_PROTOCOL
1185# define wxUSE_PROTOCOL 1
1186# endif
1187# endif
1188#endif /* wxUSE_PROTOCOL_XXX */
1189
1190#if wxUSE_URL
1191# if !wxUSE_PROTOCOL
1192# ifdef wxABORT_ON_CONFIG_ERROR
1193# error "wxUSE_URL requires wxUSE_PROTOCOL"
1194# else
1195# undef wxUSE_PROTOCOL
1196# define wxUSE_PROTOCOL 1
1197# endif
1198# endif
1199#endif /* wxUSE_URL */
1200
1201#if wxUSE_PROTOCOL
1202# if !wxUSE_SOCKETS
1203# if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
1204# ifdef wxABORT_ON_CONFIG_ERROR
1205# error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
1206# else
1207# undef wxUSE_SOCKETS
1208# define wxUSE_SOCKETS 1
1209# endif
1210# endif
1211# endif
1212
1213# if !wxUSE_STREAMS
1214# ifdef wxABORT_ON_CONFIG_ERROR
1215# error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
1216# else
1217# undef wxUSE_STREAMS
1218# define wxUSE_STREAMS 1
1219# endif
1220# endif
1221#endif /* wxUSE_PROTOCOL */
1222
c7f3eecc
VZ
1223/* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
1224#if wxUSE_HTML
1225# if !wxUSE_FILESYSTEM
1226# ifdef wxABORT_ON_CONFIG_ERROR
1227# error "wxHTML requires wxFileSystem"
1228# else
1229# undef wxUSE_FILESYSTEM
1230# define wxUSE_FILESYSTEM 1
1231# endif
1232# endif
1233#endif /* wxUSE_HTML */
1234
916af76f
MW
1235#if wxUSE_FS_ARCHIVE
1236# if !wxUSE_FILESYSTEM
1237# ifdef wxABORT_ON_CONFIG_ERROR
1238# error "wxArchiveFSHandler requires wxFileSystem"
1239# else
1240# undef wxUSE_FILESYSTEM
1241# define wxUSE_FILESYSTEM 1
1242# endif
1243# endif
1244# if !wxUSE_ARCHIVE_STREAMS
1245# ifdef wxABORT_ON_CONFIG_ERROR
1246# error "wxArchiveFSHandler requires wxArchive"
1247# else
1248# undef wxUSE_ARCHIVE_STREAMS
1249# define wxUSE_ARCHIVE_STREAMS 1
1250# endif
1251# endif
1252#endif /* wxUSE_FS_ARCHIVE */
1253
c7f3eecc
VZ
1254#if wxUSE_FILESYSTEM
1255# if !wxUSE_STREAMS
1256# ifdef wxABORT_ON_CONFIG_ERROR
1257# error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
1258# else
1259# undef wxUSE_STREAMS
1260# define wxUSE_STREAMS 1
1261# endif
1262# endif
d9b0ee1e
VZ
1263# if !wxUSE_FILE && !wxUSE_FFILE
1264# ifdef wxABORT_ON_CONFIG_ERROR
1265# error "wxUSE_FILESYSTEM requires either wxUSE_FILE or wxUSE_FFILE"
1266# else
916af76f
MW
1267# undef wxUSE_FILE
1268# define wxUSE_FILE 1
1269# undef wxUSE_FFILE
1270# define wxUSE_FFILE 1
d9b0ee1e
VZ
1271# endif
1272# endif
c7f3eecc
VZ
1273#endif /* wxUSE_FILESYSTEM */
1274
ce73e654
VS
1275#if wxUSE_FS_INET
1276# if !wxUSE_PROTOCOL
1277# ifdef wxABORT_ON_CONFIG_ERROR
1278# error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
1279# else
1280# undef wxUSE_PROTOCOL
1281# define wxUSE_PROTOCOL 1
1282# endif
1283# endif
1284#endif /* wxUSE_FS_INET */
1285
c7f3eecc 1286#if wxUSE_STOPWATCH || wxUSE_DATETIME
a5d46b73
VZ
1287# if !wxUSE_LONGLONG
1288# ifdef wxABORT_ON_CONFIG_ERROR
c7f3eecc 1289# error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
a5d46b73
VZ
1290# else
1291# undef wxUSE_LONGLONG
1292# define wxUSE_LONGLONG 1
1293# endif
1294# endif
1295#endif /* wxUSE_STOPWATCH */
1296
1297#if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
1298# ifdef wxABORT_ON_CONFIG_ERROR
1299# error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
1300# else
1301# undef wxUSE_TEXTFILE
1302# define wxUSE_TEXTFILE 1
1303# endif
1304#endif /* wxUSE_MIMETYPE */
1305
1306#if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
1307# ifdef wxABORT_ON_CONFIG_ERROR
1308# error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
1309# else
1310# undef wxUSE_TEXTBUFFER
1311# define wxUSE_TEXTBUFFER 1
1312# endif
1313#endif /* wxUSE_TEXTFILE */
1314
1315#if wxUSE_TEXTFILE && !wxUSE_FILE
1316# ifdef wxABORT_ON_CONFIG_ERROR
1317# error "wxUSE_TEXTFILE requires wxUSE_FILE"
1318# else
1319# undef wxUSE_FILE
1320# define wxUSE_FILE 1
1321# endif
1322#endif /* wxUSE_TEXTFILE */
1323
1948bb32
VS
1324#if !wxUSE_DYNLIB_CLASS
1325# if wxUSE_DYNAMIC_LOADER
1326# ifdef wxABORT_ON_CONFIG_ERROR
1327# error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
1328# else
1329# define wxUSE_DYNLIB_CLASS 1
1330# endif
1331# endif
1332#endif /* wxUSE_DYNLIB_CLASS */
1333
81f90336
MW
1334#if wxUSE_ZIPSTREAM
1335# if !wxUSE_ZLIB
1336# ifdef wxABORT_ON_CONFIG_ERROR
1337# error "wxZip requires wxZlib"
1338# else
1339# undef wxUSE_ZLIB
1340# define wxUSE_ZLIB 1
1341# endif
1342# endif
9e8e867f 1343# if !wxUSE_ARCHIVE_STREAMS
81f90336
MW
1344# ifdef wxABORT_ON_CONFIG_ERROR
1345# error "wxZip requires wxArchive"
1346# else
9e8e867f
MW
1347# undef wxUSE_ARCHIVE_STREAMS
1348# define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
1349# endif
1350# endif
1351#endif /* wxUSE_ZIPSTREAM */
1352
26e422a9
MW
1353#if wxUSE_TARSTREAM
1354# if !wxUSE_ARCHIVE_STREAMS
1355# ifdef wxABORT_ON_CONFIG_ERROR
1356# error "wxTar requires wxArchive"
1357# else
1358# undef wxUSE_ARCHIVE_STREAMS
1359# define wxUSE_ARCHIVE_STREAMS 1
1360# endif
1361# endif
1362#endif /* wxUSE_TARSTREAM */
1363
6619edf0
VZ
1364/*
1365 Section 3b: the tests for the GUI settings only.
1366 */
a5d46b73
VZ
1367#if wxUSE_GUI
1368
93629862 1369#if wxUSE_ACCESSIBILITY && !defined(__WXMSW__) && !defined(__GCCXML__)
a9c64a1b
VZ
1370# ifdef wxABORT_ON_CONFIG_ERROR
1371# error "wxUSE_ACCESSIBILITY is currently only supported under wxMSW"
1372# else
1373# undef wxUSE_ACCESSIBILITY
1374# define wxUSE_ACCESSIBILITY 0
1375# endif
1376#endif /* wxUSE_ACCESSIBILITY */
1377
1e6feb95
VZ
1378#if wxUSE_BUTTON || \
1379 wxUSE_CALENDARCTRL || \
1380 wxUSE_CARET || \
1381 wxUSE_COMBOBOX || \
1382 wxUSE_BMPBUTTON || \
1383 wxUSE_CHECKBOX || \
1384 wxUSE_CHECKLISTBOX || \
1385 wxUSE_CHOICE || \
1386 wxUSE_GAUGE || \
1387 wxUSE_GRID || \
e721a2a2 1388 wxUSE_HEADERCTRL || \
1e6feb95
VZ
1389 wxUSE_LISTBOX || \
1390 wxUSE_LISTCTRL || \
1391 wxUSE_NOTEBOOK || \
1392 wxUSE_RADIOBOX || \
1393 wxUSE_RADIOBTN || \
e721a2a2 1394 wxUSE_REARRANGECTRL || \
1e6feb95
VZ
1395 wxUSE_SCROLLBAR || \
1396 wxUSE_SLIDER || \
1397 wxUSE_SPINBTN || \
1398 wxUSE_SPINCTRL || \
1399 wxUSE_STATBMP || \
1400 wxUSE_STATBOX || \
1401 wxUSE_STATLINE || \
3379ed37 1402 wxUSE_STATTEXT || \
1e6feb95
VZ
1403 wxUSE_STATUSBAR || \
1404 wxUSE_TEXTCTRL || \
1405 wxUSE_TOOLBAR || \
1406 wxUSE_TREECTRL
1407# if !wxUSE_CONTROLS
1408# ifdef wxABORT_ON_CONFIG_ERROR
1409# error "wxUSE_CONTROLS unset but some controls used"
1410# else
1411# undef wxUSE_CONTROLS
1412# define wxUSE_CONTROLS 1
1413# endif
1414# endif
1415#endif /* controls */
1416
0b4f47a3
DS
1417#if wxUSE_BMPBUTTON
1418# if !wxUSE_BUTTON
1419# ifdef wxABORT_ON_CONFIG_ERROR
1420# error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1421# else
1422# undef wxUSE_BUTTON
1423# define wxUSE_BUTTON 1
1424# endif
1425# endif
1426#endif /* wxUSE_BMPBUTTON */
1427
aa017eab
VZ
1428/*
1429 wxUSE_BOOKCTRL should be only used if any of the controls deriving from it
1430 are used
1431 */
1432#ifdef wxUSE_BOOKCTRL
1433# ifdef wxABORT_ON_CONFIG_ERROR
1434# error "wxUSE_BOOKCTRL is defined automatically, don't define it"
1435# else
1436# undef wxUSE_BOOKCTRL
15aad3b9 1437# endif
aa017eab 1438#endif
15aad3b9 1439
aa017eab
VZ
1440#define wxUSE_BOOKCTRL (wxUSE_NOTEBOOK || \
1441 wxUSE_LISTBOOK || \
1442 wxUSE_CHOICEBOOK || \
8d206c07 1443 wxUSE_TOOLBOOK || \
aa017eab 1444 wxUSE_TREEBOOK)
15aad3b9 1445
0917b10c
VZ
1446#if wxUSE_COLLPANE
1447# if !wxUSE_BUTTON || !wxUSE_STATLINE
1448# ifdef wxABORT_ON_CONFIG_ERROR
1449# error "wxUSE_COLLPANE requires wxUSE_BUTTON and wxUSE_STATLINE"
1450# else
1451# undef wxUSE_COLLPANE
1452# define wxUSE_COLLPANE 0
1453# endif
1454# endif
1455#endif /* wxUSE_COLLPANE */
1456
5b5e4f32
VZ
1457#if wxUSE_LISTBOOK
1458# if !wxUSE_LISTCTRL
1459# ifdef wxABORT_ON_CONFIG_ERROR
1460# error "wxListbook requires wxListCtrl"
1461# else
1462# undef wxUSE_LISTCTRL
1463# define wxUSE_LISTCTRL 1
1464# endif
1465# endif
1466#endif /* wxUSE_LISTBOOK */
1467
f5e0b4bc
WS
1468#if wxUSE_CHOICEBOOK
1469# if !wxUSE_CHOICE
1470# ifdef wxABORT_ON_CONFIG_ERROR
1471# error "wxChoicebook requires wxChoice"
1472# else
1473# undef wxUSE_CHOICE
1474# define wxUSE_CHOICE 1
1475# endif
1476# endif
1477#endif /* wxUSE_CHOICEBOOK */
1478
8d206c07
PC
1479#if wxUSE_TOOLBOOK
1480# if !wxUSE_TOOLBAR
1481# ifdef wxABORT_ON_CONFIG_ERROR
1482# error "wxToolbook requires wxToolBar"
1483# else
1484# undef wxUSE_TOOLBAR
1485# define wxUSE_TOOLBAR 1
1486# endif
1487# endif
1488#endif /* wxUSE_TOOLBOOK */
1489
8d37334f
VZ
1490#if !wxUSE_ODCOMBOBOX
1491# if wxUSE_BITMAPCOMBOBOX
e721a2a2
VZ
1492# ifdef wxABORT_ON_CONFIG_ERROR
1493# error "wxBitmapComboBox requires wxOwnerDrawnComboBox"
1494# else
1495# undef wxUSE_BITMAPCOMBOBOX
1496# define wxUSE_BITMAPCOMBOBOX 0
1497# endif
8d37334f
VZ
1498# endif
1499#endif /* !wxUSE_ODCOMBOBOX */
1500
e721a2a2
VZ
1501#if !wxUSE_HEADERCTRL
1502# if wxUSE_DATAVIEWCTRL || wxUSE_GRID
1503# ifdef wxABORT_ON_CONFIG_ERROR
1504# error "wxDataViewCtrl and wxGrid require wxHeaderCtrl"
1505# else
1506# undef wxUSE_HEADERCTRL
1507# define wxUSE_HEADERCTRL 1
1508# endif
1509# endif
1510#endif /* !wxUSE_HEADERCTRL */
1511
75545930
VZ
1512#if wxUSE_REARRANGECTRL
1513# if !wxUSE_CHECKLISTBOX
1514# ifdef wxABORT_ON_CONFIG_ERROR
1515# error "wxRearrangeCtrl requires wxCheckListBox"
1516# else
1517# undef wxUSE_REARRANGECTRL
1518# define wxUSE_REARRANGECTRL 0
1519# endif
1520# endif
1521#endif /* wxUSE_REARRANGECTRL */
1522
da4486fb
VZ
1523/* don't attempt to use native status bar on the platforms not having it */
1524#ifndef wxUSE_NATIVE_STATUSBAR
1525# define wxUSE_NATIVE_STATUSBAR 0
1526#elif wxUSE_NATIVE_STATUSBAR
b08cd3bf
WS
1527# if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1528 defined(__WXMAC__) || \
1529 defined(__WXPALMOS__) )
da4486fb
VZ
1530# undef wxUSE_NATIVE_STATUSBAR
1531# define wxUSE_NATIVE_STATUSBAR 0
1532# endif
1533#endif
1534
f43426c1
RD
1535#if wxUSE_GRAPHICS_CONTEXT && !wxUSE_GEOMETRY
1536# ifdef wxABORT_ON_CONFIG_ERROR
1537# error "wxUSE_GRAPHICS_CONTEXT requires wxUSE_GEOMETRY"
1538# else
1539# undef wxUSE_GRAPHICS_CONTEXT
1540# define wxUSE_GRAPHICS_CONTEXT 0
1541# endif
1542#endif /* wxUSE_GRAPHICS_CONTEXT */
1543
1544
3379ed37
VZ
1545/* generic controls dependencies */
1546#if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1547# if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1548 /* all common controls are needed by these dialogs */
1549# if !defined(wxUSE_CHOICE) || \
1550 !defined(wxUSE_TEXTCTRL) || \
1551 !defined(wxUSE_BUTTON) || \
1552 !defined(wxUSE_CHECKBOX) || \
1553 !defined(wxUSE_STATTEXT)
1554# ifdef wxABORT_ON_CONFIG_ERROR
1555# error "These common controls are needed by common dialogs"
1556# else
1557# undef wxUSE_CHOICE
1558# define wxUSE_CHOICE 1
1559# undef wxUSE_TEXTCTRL
1560# define wxUSE_TEXTCTRL 1
1561# undef wxUSE_BUTTON
1562# define wxUSE_BUTTON 1
1563# undef wxUSE_CHECKBOX
1564# define wxUSE_CHECKBOX 1
1565# undef wxUSE_STATTEXT
1566# define wxUSE_STATTEXT 1
1567# endif
1568# endif
1569# endif
1570#endif /* !wxMSW || wxUniv */
1571
0cf3e587
VZ
1572/* generic file dialog depends on (generic) file control */
1573#if wxUSE_FILEDLG && !wxUSE_FILECTRL && \
1574 (defined(__WXUNIVERSAL__) || defined(__WXGTK__))
1575# ifdef wxABORT_ON_CONFIG_ERROR
1576# error "Generic wxFileDialog requires wxFileCtrl"
1577# else
1578# undef wxUSE_FILECTRL
1579# define wxUSE_FILECTRL 1
1580# endif
1581#endif /* wxUSE_FILEDLG */
1582
3379ed37 1583/* common dependencies */
1e6feb95
VZ
1584#if wxUSE_CALENDARCTRL
1585# if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1586# ifdef wxABORT_ON_CONFIG_ERROR
1587# error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1588# else
1589# undef wxUSE_SPINBTN
1590# undef wxUSE_COMBOBOX
1591# define wxUSE_SPINBTN 1
1592# define wxUSE_COMBOBOX 1
1593# endif
1594# endif
e2b87f38
VZ
1595
1596# if !wxUSE_DATETIME
1597# ifdef wxABORT_ON_CONFIG_ERROR
1598# error "wxCalendarCtrl requires wxUSE_DATETIME"
1599# else
1600# undef wxUSE_DATETIME
1601# define wxUSE_DATETIME 1
1602# endif
1603# endif
1e6feb95
VZ
1604#endif /* wxUSE_CALENDARCTRL */
1605
324eeecb
WS
1606#if wxUSE_DATEPICKCTRL
1607# if !wxUSE_DATETIME
1608# ifdef wxABORT_ON_CONFIG_ERROR
60bea0cf 1609# error "wxDatePickerCtrl requires wxUSE_DATETIME"
324eeecb
WS
1610# else
1611# undef wxUSE_DATETIME
1612# define wxUSE_DATETIME 1
1613# endif
1614# endif
1615#endif /* wxUSE_DATEPICKCTRL */
1616
1e6feb95
VZ
1617#if wxUSE_CHECKLISTBOX
1618# if !wxUSE_LISTBOX
1619# ifdef wxABORT_ON_CONFIG_ERROR
1620# error "wxCheckListBox requires wxListBox"
1621# else
1622# undef wxUSE_LISTBOX
1623# define wxUSE_LISTBOX 1
1624# endif
1625# endif
97e4cf6d
WS
1626#endif /* wxUSE_CHECKLISTBOX */
1627
1628#if wxUSE_CHOICEDLG
1629# if !wxUSE_LISTBOX
1630# ifdef wxABORT_ON_CONFIG_ERROR
1631# error "Choice dialogs requires wxListBox"
1632# else
1633# undef wxUSE_LISTBOX
1634# define wxUSE_LISTBOX 1
1635# endif
1636# endif
1637#endif /* wxUSE_CHOICEDLG */
1e6feb95 1638
0b4f47a3
DS
1639#if wxUSE_HELP
1640# if !wxUSE_BMPBUTTON
1641# ifdef wxABORT_ON_CONFIG_ERROR
1642# error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1643# else
1644# undef wxUSE_BMPBUTTON
1645# define wxUSE_BMPBUTTON 1
1646# endif
1647# endif
adb799d6
DS
1648
1649# if !wxUSE_CHOICEDLG
1650# ifdef wxABORT_ON_CONFIG_ERROR
1651# error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1652# else
1653# undef wxUSE_CHOICEDLG
1654# define wxUSE_CHOICEDLG 1
1655# endif
1656# endif
0b4f47a3
DS
1657#endif /* wxUSE_HELP */
1658
09f43fd3
VZ
1659#if wxUSE_MS_HTML_HELP
1660 /*
1661 this doesn't make sense for platforms other than MSW but we still
1662 define it in wx/setup_inc.h so don't complain if it happens to be
1663 defined under another platform but just silently fix it.
1664 */
1665# ifndef __WXMSW__
1666# undef wxUSE_MS_HTML_HELP
1667# define wxUSE_MS_HTML_HELP 0
1668# endif
1669#endif /* wxUSE_MS_HTML_HELP */
1670
3379ed37 1671#if wxUSE_WXHTML_HELP
0e871ad0 1672# if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
3379ed37
VZ
1673# ifdef wxABORT_ON_CONFIG_ERROR
1674# error "Built in help controller can't be compiled"
1675# else
1676# undef wxUSE_HELP
1677# define wxUSE_HELP 1
1678# undef wxUSE_HTML
1679# define wxUSE_HTML 1
1680# undef wxUSE_COMBOBOX
1681# define wxUSE_COMBOBOX 1
730dfeb4
VS
1682# undef wxUSE_NOTEBOOK
1683# define wxUSE_NOTEBOOK 1
0e871ad0
WS
1684# undef wxUSE_SPINCTRL
1685# define wxUSE_SPINCTRL 1
3379ed37
VZ
1686# endif
1687# endif
1688#endif /* wxUSE_WXHTML_HELP */
1689
05e4fd64
DS
1690#if !wxUSE_IMAGE
1691/*
1692 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1693 user explicitly wants this and disable all other features that require
1694 wxUSE_IMAGE.
1695 */
1696# if wxUSE_DRAGIMAGE
1697# ifdef wxABORT_ON_CONFIG_ERROR
1698# error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1699# else
1700# undef wxUSE_DRAGIMAGE
1701# define wxUSE_DRAGIMAGE 0
1702# endif
1703# endif
1704
1705# if wxUSE_LIBPNG
1706# ifdef wxABORT_ON_CONFIG_ERROR
1707# error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1708# else
1709# undef wxUSE_LIBPNG
1710# define wxUSE_LIBPNG 0
1711# endif
1712# endif
1713
1714# if wxUSE_LIBJPEG
1715# ifdef wxABORT_ON_CONFIG_ERROR
1716# error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1717# else
1718# undef wxUSE_LIBJPEG
1719# define wxUSE_LIBJPEG 0
1720# endif
1721# endif
1722
1723# if wxUSE_LIBTIFF
1724# ifdef wxABORT_ON_CONFIG_ERROR
1725# error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1726# else
1727# undef wxUSE_LIBTIFF
1728# define wxUSE_LIBTIFF 0
1729# endif
1730# endif
1731
1732# if wxUSE_GIF
1733# ifdef wxABORT_ON_CONFIG_ERROR
1734# error "wxUSE_GIF requires wxUSE_IMAGE"
1735# else
1736# undef wxUSE_GIF
1737# define wxUSE_GIF 0
1738# endif
1739# endif
1740
1741# if wxUSE_PNM
1742# ifdef wxABORT_ON_CONFIG_ERROR
1743# error "wxUSE_PNM requires wxUSE_IMAGE"
1744# else
1745# undef wxUSE_PNM
1746# define wxUSE_PNM 0
1747# endif
1748# endif
1749
1750# if wxUSE_PCX
1751# ifdef wxABORT_ON_CONFIG_ERROR
1752# error "wxUSE_PCX requires wxUSE_IMAGE"
1753# else
1754# undef wxUSE_PCX
1755# define wxUSE_PCX 0
1756# endif
1757# endif
1758
1759# if wxUSE_IFF
1760# ifdef wxABORT_ON_CONFIG_ERROR
1761# error "wxUSE_IFF requires wxUSE_IMAGE"
1762# else
1763# undef wxUSE_IFF
1764# define wxUSE_IFF 0
1765# endif
1766# endif
1767
1768# if wxUSE_TOOLBAR
1769# ifdef wxABORT_ON_CONFIG_ERROR
1770# error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1771# else
1772# undef wxUSE_TOOLBAR
1773# define wxUSE_TOOLBAR 0
1774# endif
1775# endif
1776
1777# if wxUSE_XPM
1778# ifdef wxABORT_ON_CONFIG_ERROR
1779# error "wxUSE_XPM requires wxUSE_IMAGE"
1780# else
1781# undef wxUSE_XPM
1782# define wxUSE_XPM 0
1783# endif
1784# endif
1785
1786#endif /* !wxUSE_IMAGE */
1787
e30285ab
VZ
1788#if wxUSE_DOC_VIEW_ARCHITECTURE
1789# if !wxUSE_MENUS
1790# ifdef wxABORT_ON_CONFIG_ERROR
1791# error "DocView requires wxUSE_MENUS"
1792# else
1793# undef wxUSE_MENUS
1794# define wxUSE_MENUS 1
1795# endif
1796# endif
1797
adb799d6
DS
1798# if !wxUSE_CHOICEDLG
1799# ifdef wxABORT_ON_CONFIG_ERROR
1800# error "DocView requires wxUSE_CHOICEDLG"
1801# else
1802# undef wxUSE_CHOICEDLG
1803# define wxUSE_CHOICEDLG 1
1804# endif
1805# endif
1806
e30285ab
VZ
1807# if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1808# ifdef wxABORT_ON_CONFIG_ERROR
1809# error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1810# else
1811# undef wxUSE_STREAMS
1812# define wxUSE_STREAMS 1
1813# endif
1814# endif
a0219e45
VS
1815
1816# if !wxUSE_FILE_HISTORY
1817# ifdef wxABORT_ON_CONFIG_ERROR
1818# error "DocView requires wxUSE_FILE_HISTORY"
1819# else
1820# undef wxUSE_FILE_HISTORY
1821# define wxUSE_FILE_HISTORY 1
1822# endif
1823# endif
e30285ab
VZ
1824#endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1825
3379ed37
VZ
1826#if wxUSE_PRINTING_ARCHITECTURE
1827# if !wxUSE_COMBOBOX
1828# ifdef wxABORT_ON_CONFIG_ERROR
1829# error "Print dialog requires wxUSE_COMBOBOX"
1830# else
1831# undef wxUSE_COMBOBOX
1832# define wxUSE_COMBOBOX 1
1833# endif
1834# endif
1835#endif /* wxUSE_PRINTING_ARCHITECTURE */
1836
e30285ab 1837#if wxUSE_MDI_ARCHITECTURE
efd17a1d
VZ
1838# if !wxUSE_MDI
1839# ifdef wxABORT_ON_CONFIG_ERROR
1840# error "MDI requires wxUSE_MDI"
1841# else
1842# undef wxUSE_MDI
1843# define wxUSE_MDI 1
1844# endif
1845# endif
1846
e30285ab 1847# if !wxUSE_DOC_VIEW_ARCHITECTURE
1e6feb95 1848# ifdef wxABORT_ON_CONFIG_ERROR
0872eaf9 1849# error "wxUSE_MDI_ARCHITECTURE requires wxUSE_DOC_VIEW_ARCHITECTURE"
1e6feb95 1850# else
e30285ab
VZ
1851# undef wxUSE_DOC_VIEW_ARCHITECTURE
1852# define wxUSE_DOC_VIEW_ARCHITECTURE 1
1e6feb95
VZ
1853# endif
1854# endif
e30285ab 1855#endif /* wxUSE_MDI_ARCHITECTURE */
1e6feb95
VZ
1856
1857#if !wxUSE_FILEDLG
2119e280 1858# if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1e6feb95 1859# ifdef wxABORT_ON_CONFIG_ERROR
0872eaf9 1860# error "wxUSE_FILEDLG is required by wxUSE_DOC_VIEW_ARCHITECTURE and wxUSE_WXHTML_HELP!"
1e6feb95
VZ
1861# else
1862# undef wxUSE_FILEDLG
1863# define wxUSE_FILEDLG 1
1864# endif
1865# endif
e421922f 1866#endif /* wxUSE_FILEDLG */
1e6feb95 1867
555f645a
WS
1868#if !wxUSE_GAUGE || !wxUSE_BUTTON
1869# if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
063b752e 1870# ifdef wxABORT_ON_CONFIG_ERROR
555f645a 1871# error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
063b752e
WS
1872# else
1873# undef wxUSE_GAUGE
555f645a 1874# undef wxUSE_BUTTON
063b752e 1875# define wxUSE_GAUGE 1
555f645a 1876# define wxUSE_BUTTON 1
063b752e
WS
1877# endif
1878# endif
1879#endif /* !wxUSE_GAUGE */
1880
0b4f47a3 1881#if !wxUSE_BUTTON
555f645a 1882# if wxUSE_FONTDLG || \
0b4f47a3
DS
1883 wxUSE_FILEDLG || \
1884 wxUSE_CHOICEDLG || \
1885 wxUSE_NUMBERDLG || \
1886 wxUSE_TEXTDLG || \
1887 wxUSE_DIRDLG || \
1888 wxUSE_STARTUP_TIPS || \
1889 wxUSE_WIZARDDLG
1890# ifdef wxABORT_ON_CONFIG_ERROR
1891# error "Common and generic dialogs require wxUSE_BUTTON"
1892# else
1893# undef wxUSE_BUTTON
1894# define wxUSE_BUTTON 1
1895# endif
1896# endif
063b752e 1897#endif /* !wxUSE_BUTTON */
0b4f47a3 1898
12491c1f
JS
1899#if !wxUSE_TOOLBAR
1900# if wxUSE_TOOLBAR_NATIVE
1901# ifdef wxABORT_ON_CONFIG_ERROR
1902# error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1903# else
1904# undef wxUSE_TOOLBAR_NATIVE
1905# define wxUSE_TOOLBAR_NATIVE 0
1906# endif
1907# endif
12491c1f
JS
1908#endif
1909
1e6feb95
VZ
1910#if !wxUSE_IMAGLIST
1911# if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1912# ifdef wxABORT_ON_CONFIG_ERROR
1913# error "wxImageList must be compiled as well"
1914# else
1915# undef wxUSE_IMAGLIST
1916# define wxUSE_IMAGLIST 1
1917# endif
1918# endif
1919#endif /* !wxUSE_IMAGLIST */
1920
1e6feb95 1921#if wxUSE_RADIOBOX
9a727a3b 1922# if !wxUSE_RADIOBTN
1e6feb95 1923# ifdef wxABORT_ON_CONFIG_ERROR
9a727a3b 1924# error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
1e6feb95
VZ
1925# else
1926# undef wxUSE_RADIOBTN
1e6feb95 1927# define wxUSE_RADIOBTN 1
9a727a3b
WS
1928# endif
1929# endif
1930# if !wxUSE_STATBOX && !defined(__WXPALMOS__)
1931# ifdef wxABORT_ON_CONFIG_ERROR
1932# error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
1933# else
1934# undef wxUSE_STATBOX
1e6feb95
VZ
1935# define wxUSE_STATBOX 1
1936# endif
1937# endif
1938#endif /* wxUSE_RADIOBOX */
1939
3379ed37
VZ
1940#if wxUSE_LOGWINDOW
1941# if !wxUSE_TEXTCTRL
1942# ifdef wxABORT_ON_CONFIG_ERROR
1943# error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1944# else
1945# undef wxUSE_TEXTCTRL
1946# define wxUSE_TEXTCTRL 1
1947# endif
1948# endif
1949#endif /* wxUSE_LOGWINDOW */
1e6feb95 1950
3e6e2754 1951#if wxUSE_LOG_DIALOG
0b4f47a3 1952# if !wxUSE_LISTCTRL || !wxUSE_BUTTON
3e6e2754 1953# ifdef wxABORT_ON_CONFIG_ERROR
0b4f47a3 1954# error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
3e6e2754
JS
1955# else
1956# undef wxUSE_LISTCTRL
1957# define wxUSE_LISTCTRL 1
0b4f47a3
DS
1958# undef wxUSE_BUTTON
1959# define wxUSE_BUTTON 1
3e6e2754
JS
1960# endif
1961# endif
1962#endif /* wxUSE_LOG_DIALOG */
1963
1e6feb95 1964#if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
3379ed37 1965# ifdef wxABORT_ON_CONFIG_ERROR
1e6feb95
VZ
1966# error "wxClipboard requires wxDataObject"
1967# else
1968# undef wxUSE_DATAOBJ
1969# define wxUSE_DATAOBJ 1
1970# endif
1971#endif /* wxUSE_CLIPBOARD */
1972
d2ebf0b7
VS
1973#if wxUSE_XRC && !wxUSE_XML
1974# ifdef wxABORT_ON_CONFIG_ERROR
1975# error "wxUSE_XRC requires wxUSE_XML"
1976# else
1977# undef wxUSE_XRC
1978# define wxUSE_XRC 0
1979# endif
5a017695 1980#endif /* wxUSE_XRC */
d2ebf0b7 1981
4669dcb2
RN
1982#if wxUSE_SOCKETS && !wxUSE_STOPWATCH
1983# ifdef wxABORT_ON_CONFIG_ERROR
1984# error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
1985# else
1986# undef wxUSE_SOCKETS
1987# define wxUSE_SOCKETS 0
1988# endif
1989#endif /* wxUSE_SOCKETS */
1990
b0fc907f
VZ
1991#if wxUSE_SVG && !wxUSE_STREAMS
1992# ifdef wxABORT_ON_CONFIG_ERROR
1993# error "wxUSE_SVG requires wxUSE_STREAMS"
1994# else
1995# undef wxUSE_SVG
1996# define wxUSE_SVG 0
1997# endif
1998#endif /* wxUSE_SVG */
1999
d5cbee17
VS
2000#if wxUSE_SVG && !wxUSE_IMAGE
2001# ifdef wxABORT_ON_CONFIG_ERROR
2002# error "wxUSE_SVG requires wxUSE_IMAGE"
2003# else
2004# undef wxUSE_SVG
2005# define wxUSE_SVG 0
2006# endif
2007#endif /* wxUSE_SVG */
2008
2009#if wxUSE_SVG && !wxUSE_LIBPNG
2010# ifdef wxABORT_ON_CONFIG_ERROR
2011# error "wxUSE_SVG requires wxUSE_LIBPNG"
2012# else
2013# undef wxUSE_SVG
2014# define wxUSE_SVG 0
2015# endif
2016#endif /* wxUSE_SVG */
2017
ca5c6ac3
VZ
2018#if !wxUSE_VARIANT
2019# if wxUSE_DATAVIEWCTRL
2020# ifdef wxABORT_ON_CONFIG_ERROR
2021# error "wxDataViewCtrl requires wxVariant"
2022# else
2023# undef wxUSE_DATAVIEWCTRL
2024# define wxUSE_DATAVIEWCTRL 0
2025# endif
2026# endif
ca5c6ac3
VZ
2027#endif /* wxUSE_VARIANT */
2028
1e6feb95 2029#endif /* wxUSE_GUI */
8ba16443
VZ
2030
2031#endif /* _WX_CHKCONF_H_ */