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