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