]> git.saurik.com Git - wxWidgets.git/blame - include/wx/chkconf.h
Added support for delayed deactivation of windows (for MDI)
[wxWidgets.git] / include / wx / chkconf.h
CommitLineData
1e6feb95
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@wxwindows.org>
371a5b4e 9 * Licence: wxWindows licence
1e6feb95
VZ
10 */
11
12/* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
13
14/*
730dfeb4 15 this global setting determines what should we do if the setting FOO
1e6feb95
VZ
16 requires BAR and BAR is not set: we can either silently define BAR
17 (default, recommended) or give an error and abort (mainly useful for
730dfeb4 18 developers only)
1e6feb95
VZ
19 */
20#define wxABORT_ON_CONFIG_ERROR
21
6962f34e
VZ
22/*
23 global features
24 */
25
26/* GUI build by default */
27#if !defined(wxUSE_GUI)
28# define wxUSE_GUI 1
29#endif /* !defined(wxUSE_GUI) */
30
31/* wxBase doesn't need compatibility settings as it's a new port */
32#if !wxUSE_GUI
33# undef WXWIN_COMPATIBILITY
34# undef WXWIN_COMPATIBILITY_2
35# undef WXWIN_COMPATIBILITY_2_2
36# define WXWIN_COMPATIBILITY 0
37# define WXWIN_COMPATIBILITY_2 0
38# define WXWIN_COMPATIBILITY_2_2 0
39#endif /* !wxUSE_GUI */
03169422 40
1e6feb95 41/*
03169422
RL
42 tests for non GUI features
43 */
44
45#ifndef wxUSE_DYNLIB_CLASS
46# ifdef wxABORT_ON_CONFIG_ERROR
47# error "wxUSE_DYNLIB_CLASS must be defined."
48# else
49# define wxUSE_DYNLIB_CLASS 0
50# endif
51#endif /* !defined(wxUSE_DYNLIB_CLASS) */
52
c7f3eecc
VZ
53#ifndef wxUSE_FILESYSTEM
54# ifdef wxABORT_ON_CONFIG_ERROR
55# error "wxUSE_FILESYSTEM must be defined."
56# else
57# define wxUSE_FILESYSTEM 0
58# endif
59#endif /* !defined(wxUSE_FILESYSTEM) */
60
6fb17fd5 61/* don't give an error about this one yet, it's not fully implemented */
05815ab3 62#ifndef wxUSE_FSVOLUME
6fb17fd5 63# define wxUSE_FSVOLUME 0
05815ab3
VZ
64#endif /* !defined(wxUSE_FSVOLUME) */
65
03169422
RL
66#ifndef wxUSE_DYNAMIC_LOADER
67# ifdef wxABORT_ON_CONFIG_ERROR
68# error "wxUSE_DYNAMIC_LOADER must be defined."
69# else
70# define wxUSE_DYNAMIC_LOADER 0
71# endif
72#endif /* !defined(wxUSE_DYNAMIC_LOADER) */
73
a5d46b73
VZ
74#ifndef wxUSE_LOG
75# ifdef wxABORT_ON_CONFIG_ERROR
76# error "wxUSE_LOG must be defined."
77# else
78# define wxUSE_LOG 0
79# endif
80#endif /* !defined(wxUSE_LOG) */
81
82#ifndef wxUSE_LONGLONG
83# ifdef wxABORT_ON_CONFIG_ERROR
84# error "wxUSE_LONGLONG must be defined."
85# else
86# define wxUSE_LONGLONG 0
87# endif
88#endif /* !defined(wxUSE_LONGLONG) */
89
90#ifndef wxUSE_MIMETYPE
91# ifdef wxABORT_ON_CONFIG_ERROR
92# error "wxUSE_MIMETYPE must be defined."
93# else
94# define wxUSE_MIMETYPE 0
95# endif
96#endif /* !defined(wxUSE_MIMETYPE) */
97
98#ifndef wxUSE_PROTOCOL
99# ifdef wxABORT_ON_CONFIG_ERROR
100# error "wxUSE_PROTOCOL must be defined."
101# else
102# define wxUSE_PROTOCOL 0
103# endif
104#endif /* !defined(wxUSE_PROTOCOL) */
105
106/* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
107#if !wxUSE_PROTOCOL
108# undef wxUSE_PROTOCOL_HTTP
109# undef wxUSE_PROTOCOL_FTP
110# undef wxUSE_PROTOCOL_FILE
111# define wxUSE_PROTOCOL_HTTP 0
112# define wxUSE_PROTOCOL_FTP 0
113# define wxUSE_PROTOCOL_FILE 0
114#endif /* wxUSE_PROTOCOL */
115
116#ifndef wxUSE_PROTOCOL_HTTP
117# ifdef wxABORT_ON_CONFIG_ERROR
118# error "wxUSE_PROTOCOL_HTTP must be defined."
119# else
120# define wxUSE_PROTOCOL_HTTP 0
121# endif
122#endif /* !defined(wxUSE_PROTOCOL_HTTP) */
123
124#ifndef wxUSE_PROTOCOL_FTP
125# ifdef wxABORT_ON_CONFIG_ERROR
126# error "wxUSE_PROTOCOL_FTP must be defined."
127# else
128# define wxUSE_PROTOCOL_FTP 0
129# endif
130#endif /* !defined(wxUSE_PROTOCOL_FTP) */
131
132#ifndef wxUSE_PROTOCOL_FILE
133# ifdef wxABORT_ON_CONFIG_ERROR
134# error "wxUSE_PROTOCOL_FILE must be defined."
135# else
136# define wxUSE_PROTOCOL_FILE 0
137# endif
138#endif /* !defined(wxUSE_PROTOCOL_FILE) */
139
140#ifndef wxUSE_REGEX
141# ifdef wxABORT_ON_CONFIG_ERROR
142# error "wxUSE_REGEX must be defined."
143# else
144# define wxUSE_REGEX 0
145# endif
146#endif /* !defined(wxUSE_REGEX) */
147
148#ifndef wxUSE_SOCKETS
149# ifdef wxABORT_ON_CONFIG_ERROR
150# error "wxUSE_SOCKETS must be defined."
151# else
152# define wxUSE_SOCKETS 0
153# endif
154#endif /* !defined(wxUSE_SOCKETS) */
155
156#ifndef wxUSE_STREAMS
157# ifdef wxABORT_ON_CONFIG_ERROR
158# error "wxUSE_STREAMS must be defined."
159# else
160# define wxUSE_STREAMS 0
161# endif
162#endif /* !defined(wxUSE_STREAMS) */
163
164#ifndef wxUSE_STOPWATCH
165# ifdef wxABORT_ON_CONFIG_ERROR
166# error "wxUSE_STOPWATCH must be defined."
167# else
168# define wxUSE_STOPWATCH 0
169# endif
170#endif /* !defined(wxUSE_STOPWATCH) */
171
172#ifndef wxUSE_TEXTBUFFER
173# ifdef wxABORT_ON_CONFIG_ERROR
174# error "wxUSE_TEXTBUFFER must be defined."
175# else
176# define wxUSE_TEXTBUFFER 0
177# endif
178#endif /* !defined(wxUSE_TEXTBUFFER) */
179
180#ifndef wxUSE_TEXTFILE
181# ifdef wxABORT_ON_CONFIG_ERROR
182# error "wxUSE_TEXTFILE must be defined."
183# else
184# define wxUSE_TEXTFILE 0
185# endif
186#endif /* !defined(wxUSE_TEXTFILE) */
187
188#ifndef wxUSE_UNICODE
189# ifdef wxABORT_ON_CONFIG_ERROR
190# error "wxUSE_UNICODE must be defined."
191# else
192# define wxUSE_UNICODE 0
193# endif
194#endif /* !defined(wxUSE_UNICODE) */
195
196#ifndef wxUSE_URL
197# ifdef wxABORT_ON_CONFIG_ERROR
198# error "wxUSE_URL must be defined."
199# else
200# define wxUSE_URL 0
201# endif
202#endif /* !defined(wxUSE_URL) */
203
03169422
RL
204/*
205 all these tests are for GUI only
1e6feb95
VZ
206 */
207#if wxUSE_GUI
208
209/*
210 all of the settings tested below must be defined or we'd get an error from
211 preprocessor about invalid integer expression
212 */
213
214#ifndef wxUSE_ACCEL
215# ifdef wxABORT_ON_CONFIG_ERROR
216# error "wxUSE_ACCEL must be defined."
217# else
218# define wxUSE_ACCEL 0
219# endif
220#endif /* !defined(wxUSE_ACCEL) */
221
222#ifndef wxUSE_BMPBUTTON
223# ifdef wxABORT_ON_CONFIG_ERROR
224# error "wxUSE_BMPBUTTON must be defined."
225# else
226# define wxUSE_BMPBUTTON 0
227# endif
228#endif /* !defined(wxUSE_BMPBUTTON) */
229
230#ifndef wxUSE_BUTTON
231# ifdef wxABORT_ON_CONFIG_ERROR
232# error "wxUSE_BUTTON must be defined."
233# else
234# define wxUSE_BUTTON 0
235# endif
236#endif /* !defined(wxUSE_BUTTON) */
237
238#ifndef wxUSE_CALENDARCTRL
239# ifdef wxABORT_ON_CONFIG_ERROR
240# error "wxUSE_CALENDARCTRL must be defined."
241# else
242# define wxUSE_CALENDARCTRL 0
243# endif
244#endif /* !defined(wxUSE_CALENDARCTRL) */
245
246#ifndef wxUSE_CARET
247# ifdef wxABORT_ON_CONFIG_ERROR
248# error "wxUSE_CARET must be defined."
249# else
250# define wxUSE_CARET 0
251# endif
252#endif /* !defined(wxUSE_CARET) */
253
254#ifndef wxUSE_CHECKBOX
255# ifdef wxABORT_ON_CONFIG_ERROR
256# error "wxUSE_CHECKBOX must be defined."
257# else
258# define wxUSE_CHECKBOX 0
259# endif
260#endif /* !defined(wxUSE_CHECKBOX) */
261
262#ifndef wxUSE_CHECKLISTBOX
263# ifdef wxABORT_ON_CONFIG_ERROR
264# error "wxUSE_CHECKLISTBOX must be defined."
265# else
266# define wxUSE_CHECKLISTBOX 0
267# endif
268#endif /* !defined(wxUSE_CHECKLISTBOX) */
269
270#ifndef wxUSE_CHOICE
271# ifdef wxABORT_ON_CONFIG_ERROR
272# error "wxUSE_CHOICE must be defined."
273# else
274# define wxUSE_CHOICE 0
275# endif
276#endif /* !defined(wxUSE_CHOICE) */
277
3379ed37
VZ
278#ifndef wxUSE_CHOICEDLG
279# ifdef wxABORT_ON_CONFIG_ERROR
280# error "wxUSE_CHOICEDLG must be defined."
281# else
282# define wxUSE_CHOICEDLG 0
283# endif
284#endif /* !defined(wxUSE_CHOICEDLG) */
285
1e6feb95
VZ
286#ifndef wxUSE_CLIPBOARD
287# ifdef wxABORT_ON_CONFIG_ERROR
288# error "wxUSE_CLIPBOARD must be defined."
289# else
290# define wxUSE_CLIPBOARD 0
291# endif
292#endif /* !defined(wxUSE_CLIPBOARD) */
293
a2c0a9c5
VZ
294#ifndef wxUSE_COLOURDLG
295# ifdef wxABORT_ON_CONFIG_ERROR
296# error "wxUSE_COLOURDLG must be defined."
297# else
298# define wxUSE_COLOURDLG 0
299# endif
300#endif /* !defined(wxUSE_COLOURDLG) */
301
1e6feb95
VZ
302#ifndef wxUSE_COMBOBOX
303# ifdef wxABORT_ON_CONFIG_ERROR
304# error "wxUSE_COMBOBOX must be defined."
305# else
306# define wxUSE_COMBOBOX 0
307# endif
308#endif /* !defined(wxUSE_COMBOBOX) */
309
310#ifndef wxUSE_DATAOBJ
311# ifdef wxABORT_ON_CONFIG_ERROR
312# error "wxUSE_DATAOBJ must be defined."
313# else
314# define wxUSE_DATAOBJ 0
315# endif
316#endif /* !defined(wxUSE_DATAOBJ) */
317
3379ed37
VZ
318#ifndef wxUSE_DOC_VIEW_ARCHITECTURE
319# ifdef wxABORT_ON_CONFIG_ERROR
320# error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
321# else
322# define wxUSE_DOC_VIEW_ARCHITECTURE 0
323# endif
324#endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
325
1e6feb95
VZ
326#ifndef wxUSE_FILEDLG
327# ifdef wxABORT_ON_CONFIG_ERROR
328# error "wxUSE_FILEDLG must be defined."
329# else
330# define wxUSE_FILEDLG 0
331# endif
332#endif /* !defined(wxUSE_FILEDLG) */
333
334#ifndef wxUSE_FONTDLG
335# ifdef wxABORT_ON_CONFIG_ERROR
336# error "wxUSE_FONTDLG must be defined."
337# else
338# define wxUSE_FONTDLG 0
339# endif
340#endif /* !defined(wxUSE_FONTDLG) */
341
342#ifndef wxUSE_FONTMAP
343# ifdef wxABORT_ON_CONFIG_ERROR
344# error "wxUSE_FONTMAP must be defined."
345# else
346# define wxUSE_FONTMAP 0
347# endif
348#endif /* !defined(wxUSE_FONTMAP) */
349
350#ifndef wxUSE_GAUGE
351# ifdef wxABORT_ON_CONFIG_ERROR
352# error "wxUSE_GAUGE must be defined."
353# else
354# define wxUSE_GAUGE 0
355# endif
356#endif /* !defined(wxUSE_GAUGE) */
357
358#ifndef wxUSE_GRID
359# ifdef wxABORT_ON_CONFIG_ERROR
360# error "wxUSE_GRID must be defined."
361# else
362# define wxUSE_GRID 0
363# endif
364#endif /* !defined(wxUSE_GRID) */
365
3379ed37
VZ
366#ifndef wxUSE_HELP
367# ifdef wxABORT_ON_CONFIG_ERROR
368# error "wxUSE_HELP must be defined."
369# else
370# define wxUSE_HELP 0
371# endif
372#endif /* !defined(wxUSE_HELP) */
373
05dcbb8e
VZ
374#ifndef wxUSE_HTML
375# ifdef wxABORT_ON_CONFIG_ERROR
376# error "wxUSE_HTML must be defined."
377# else
378# define wxUSE_HTML 0
379# endif
380#endif /* !defined(wxUSE_HTML) */
381
658974ae
VS
382#ifndef wxUSE_ICO_CUR
383# ifdef wxABORT_ON_CONFIG_ERROR
384# error "wxUSE_ICO_CUR must be defined."
385# else
386# define wxUSE_ICO_CUR 0
387# endif
388#endif /* !defined(wxUSE_ICO_CUR) */
389
1663afc0
VS
390#ifndef wxUSE_IFF
391# ifdef wxABORT_ON_CONFIG_ERROR
392# error "wxUSE_IFF must be defined."
393# else
394# define wxUSE_IFF 0
395# endif
396#endif /* !defined(wxUSE_IFF) */
397
1e6feb95
VZ
398#ifndef wxUSE_IMAGLIST
399# ifdef wxABORT_ON_CONFIG_ERROR
400# error "wxUSE_IMAGLIST must be defined."
401# else
402# define wxUSE_IMAGLIST 0
403# endif
404#endif /* !defined(wxUSE_IMAGLIST) */
405
2131b89d
VZ
406#ifndef wxUSE_JOYSTICK
407# ifdef wxABORT_ON_CONFIG_ERROR
408# error "wxUSE_JOYSTICK must be defined."
409# else
410# define wxUSE_JOYSTICK 0
411# endif
412#endif /* !defined(wxUSE_JOYSTICK) */
413
1e6feb95
VZ
414#ifndef wxUSE_LISTBOX
415# ifdef wxABORT_ON_CONFIG_ERROR
416# error "wxUSE_LISTBOX must be defined."
417# else
418# define wxUSE_LISTBOX 0
419# endif
420#endif /* !defined(wxUSE_LISTBOX) */
421
422#ifndef wxUSE_LISTCTRL
423# ifdef wxABORT_ON_CONFIG_ERROR
424# error "wxUSE_LISTCTRL must be defined."
425# else
426# define wxUSE_LISTCTRL 0
427# endif
428#endif /* !defined(wxUSE_LISTCTRL) */
429
3379ed37
VZ
430#ifndef wxUSE_LOGGUI
431# ifdef wxABORT_ON_CONFIG_ERROR
432# error "wxUSE_LOGGUI must be defined."
433# else
434# define wxUSE_LOGGUI 0
435# endif
436#endif /* !defined(wxUSE_LOGGUI) */
437
438#ifndef wxUSE_LOGWINDOW
439# ifdef wxABORT_ON_CONFIG_ERROR
440# error "wxUSE_LOGWINDOW must be defined."
441# else
442# define wxUSE_LOGWINDOW 0
443# endif
444#endif /* !defined(wxUSE_LOGWINDOW) */
e421922f 445
3e6e2754
JS
446#ifndef wxUSE_LOG_DIALOG
447# ifdef wxABORT_ON_CONFIG_ERROR
448# error "wxUSE_LOG_DIALOG must be defined."
449# else
450# define wxUSE_LOG_DIALOG 0
451# endif
71908213 452#endif /* !defined(wxUSE_LOG_DIALOG) */
3e6e2754 453
1e6feb95
VZ
454#ifndef wxUSE_MDI_ARCHITECTURE
455# ifdef wxABORT_ON_CONFIG_ERROR
456# error "wxUSE_MDI_ARCHITECTURE must be defined."
457# else
458# define wxUSE_MDI_ARCHITECTURE 0
459# endif
460#endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
461
462#ifndef wxUSE_MENUS
463# ifdef wxABORT_ON_CONFIG_ERROR
464# error "wxUSE_MENUS must be defined."
465# else
466# define wxUSE_MENUS 0
467# endif
468#endif /* !defined(wxUSE_MENUS) */
469
3379ed37
VZ
470#ifndef wxUSE_MSGDLG
471# ifdef wxABORT_ON_CONFIG_ERROR
472# error "wxUSE_MSGDLG must be defined."
473# else
474# define wxUSE_MSGDLG 0
475# endif
476#endif /* !defined(wxUSE_MSGDLG) */
477
1e6feb95
VZ
478#ifndef wxUSE_NOTEBOOK
479# ifdef wxABORT_ON_CONFIG_ERROR
480# error "wxUSE_NOTEBOOK must be defined."
481# else
482# define wxUSE_NOTEBOOK 0
483# endif
484#endif /* !defined(wxUSE_NOTEBOOK) */
485
d275c7eb
VZ
486#ifndef wxUSE_PALETTE
487# ifdef wxABORT_ON_CONFIG_ERROR
488# error "wxUSE_PALETTE must be defined."
489# else
490# define wxUSE_PALETTE 0
491# endif
492#endif /* !defined(wxUSE_PALETTE) */
493
1e6feb95
VZ
494#ifndef wxUSE_POPUPWIN
495# ifdef wxABORT_ON_CONFIG_ERROR
496# error "wxUSE_POPUPWIN must be defined."
497# else
498# define wxUSE_POPUPWIN 0
499# endif
500#endif /* !defined(wxUSE_POPUPWIN) */
501
3379ed37
VZ
502#ifndef wxUSE_PRINTING_ARCHITECTURE
503# ifdef wxABORT_ON_CONFIG_ERROR
504# error "wxUSE_PRINTING_ARCHITECTURE must be defined."
505# else
506# define wxUSE_PRINTING_ARCHITECTURE 0
507# endif
508#endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
509
1e6feb95
VZ
510#ifndef wxUSE_RADIOBOX
511# ifdef wxABORT_ON_CONFIG_ERROR
512# error "wxUSE_RADIOBOX must be defined."
513# else
514# define wxUSE_RADIOBOX 0
515# endif
516#endif /* !defined(wxUSE_RADIOBOX) */
517
518#ifndef wxUSE_RADIOBTN
519# ifdef wxABORT_ON_CONFIG_ERROR
520# error "wxUSE_RADIOBTN must be defined."
521# else
522# define wxUSE_RADIOBTN 0
523# endif
524#endif /* !defined(wxUSE_RADIOBTN) */
525
526#ifndef wxUSE_SASH
527# ifdef wxABORT_ON_CONFIG_ERROR
528# error "wxUSE_SASH must be defined."
529# else
530# define wxUSE_SASH 0
531# endif
532#endif /* !defined(wxUSE_SASH) */
533
534#ifndef wxUSE_SCROLLBAR
535# ifdef wxABORT_ON_CONFIG_ERROR
536# error "wxUSE_SCROLLBAR must be defined."
537# else
538# define wxUSE_SCROLLBAR 0
539# endif
540#endif /* !defined(wxUSE_SCROLLBAR) */
541
542#ifndef wxUSE_SLIDER
543# ifdef wxABORT_ON_CONFIG_ERROR
544# error "wxUSE_SLIDER must be defined."
545# else
546# define wxUSE_SLIDER 0
547# endif
548#endif /* !defined(wxUSE_SLIDER) */
549
550#ifndef wxUSE_SPINBTN
551# ifdef wxABORT_ON_CONFIG_ERROR
552# error "wxUSE_SPINBTN must be defined."
553# else
554# define wxUSE_SPINBTN 0
555# endif
556#endif /* !defined(wxUSE_SPINBTN) */
557
558#ifndef wxUSE_SPINCTRL
559# ifdef wxABORT_ON_CONFIG_ERROR
560# error "wxUSE_SPINCTRL must be defined."
561# else
562# define wxUSE_SPINCTRL 0
563# endif
564#endif /* !defined(wxUSE_SPINCTRL) */
565
2654a046
MB
566#ifndef wxUSE_SPLASH
567# ifdef wxABORT_ON_CONFIG_ERROR
568# error "wxUSE_SPLASH must be defined."
569# else
570# define wxUSE_SPLASH 0
571# endif
572#endif /* !defined(wxUSE_SPLASH) */
573
1e6feb95
VZ
574#ifndef wxUSE_SPLITTER
575# ifdef wxABORT_ON_CONFIG_ERROR
576# error "wxUSE_SPLITTER must be defined."
577# else
578# define wxUSE_SPLITTER 0
579# endif
580#endif /* !defined(wxUSE_SPLITTER) */
581
582#ifndef wxUSE_STATBMP
583# ifdef wxABORT_ON_CONFIG_ERROR
584# error "wxUSE_STATBMP must be defined."
585# else
586# define wxUSE_STATBMP 0
587# endif
588#endif /* !defined(wxUSE_STATBMP) */
589
590#ifndef wxUSE_STATBOX
591# ifdef wxABORT_ON_CONFIG_ERROR
592# error "wxUSE_STATBOX must be defined."
593# else
594# define wxUSE_STATBOX 0
595# endif
596#endif /* !defined(wxUSE_STATBOX) */
597
598#ifndef wxUSE_STATLINE
599# ifdef wxABORT_ON_CONFIG_ERROR
600# error "wxUSE_STATLINE must be defined."
601# else
602# define wxUSE_STATLINE 0
603# endif
604#endif /* !defined(wxUSE_STATLINE) */
605
3379ed37
VZ
606#ifndef wxUSE_STATTEXT
607# ifdef wxABORT_ON_CONFIG_ERROR
608# error "wxUSE_STATTEXT must be defined."
609# else
610# define wxUSE_STATTEXT 0
611# endif
612#endif /* !defined(wxUSE_STATTEXT) */
613
1e6feb95
VZ
614#ifndef wxUSE_STATUSBAR
615# ifdef wxABORT_ON_CONFIG_ERROR
616# error "wxUSE_STATUSBAR must be defined."
617# else
618# define wxUSE_STATUSBAR 0
619# endif
620#endif /* !defined(wxUSE_STATUSBAR) */
621
1e6feb95
VZ
622#ifndef wxUSE_TAB_DIALOG
623# ifdef wxABORT_ON_CONFIG_ERROR
624# error "wxUSE_TAB_DIALOG must be defined."
625# else
626# define wxUSE_TAB_DIALOG 0
627# endif
628#endif /* !defined(wxUSE_TAB_DIALOG) */
629
630#ifndef wxUSE_TEXTCTRL
631# ifdef wxABORT_ON_CONFIG_ERROR
632# error "wxUSE_TEXTCTRL must be defined."
633# else
634# define wxUSE_TEXTCTRL 0
635# endif
636#endif /* !defined(wxUSE_TEXTCTRL) */
637
f38bcae5
VZ
638#ifndef wxUSE_TIPWINDOW
639# ifdef wxABORT_ON_CONFIG_ERROR
640# error "wxUSE_TIPWINDOW must be defined."
641# else
642# define wxUSE_TIPWINDOW 0
643# endif
644#endif /* !defined(wxUSE_TIPWINDOW) */
645
1e6feb95
VZ
646#ifndef wxUSE_TOOLBAR
647# ifdef wxABORT_ON_CONFIG_ERROR
648# error "wxUSE_TOOLBAR must be defined."
649# else
650# define wxUSE_TOOLBAR 0
651# endif
652#endif /* !defined(wxUSE_TOOLBAR) */
653
654#ifndef wxUSE_TOOLTIPS
655# ifdef wxABORT_ON_CONFIG_ERROR
656# error "wxUSE_TOOLTIPS must be defined."
657# else
658# define wxUSE_TOOLTIPS 0
659# endif
660#endif /* !defined(wxUSE_TOOLTIPS) */
661
662#ifndef wxUSE_TREECTRL
663# ifdef wxABORT_ON_CONFIG_ERROR
664# error "wxUSE_TREECTRL must be defined."
665# else
666# define wxUSE_TREECTRL 0
667# endif
668#endif /* !defined(wxUSE_TREECTRL) */
669
12491c1f
JS
670#ifndef wxUSE_DISPLAY
671# ifdef wxABORT_ON_CONFIG_ERROR
672# error "wxUSE_DISPLAY must be defined."
673# else
674# define wxUSE_DISPLAY 0
675# endif
676#endif /* !defined(wxUSE_TREECTRL) */
677
3379ed37
VZ
678#ifndef wxUSE_WXHTML_HELP
679# ifdef wxABORT_ON_CONFIG_ERROR
680# error "wxUSE_WXHTML_HELP must be defined."
681# else
682# define wxUSE_WXHTML_HELP 0
683# endif
684#endif /* !defined(wxUSE_WXHTML_HELP) */
685
a5d46b73 686#endif /* wxUSE_GUI */
c4d596ea 687
1e6feb95
VZ
688/*
689 check consistency of the settings
690 */
a5d46b73
VZ
691
692#if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
693# if !wxUSE_PROTOCOL
694# ifdef wxABORT_ON_CONFIG_ERROR
695# error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
696# else
697# undef wxUSE_PROTOCOL
698# define wxUSE_PROTOCOL 1
699# endif
700# endif
701#endif /* wxUSE_PROTOCOL_XXX */
702
703#if wxUSE_URL
704# if !wxUSE_PROTOCOL
705# ifdef wxABORT_ON_CONFIG_ERROR
706# error "wxUSE_URL requires wxUSE_PROTOCOL"
707# else
708# undef wxUSE_PROTOCOL
709# define wxUSE_PROTOCOL 1
710# endif
711# endif
712#endif /* wxUSE_URL */
713
714#if wxUSE_PROTOCOL
715# if !wxUSE_SOCKETS
716# if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
717# ifdef wxABORT_ON_CONFIG_ERROR
718# error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
719# else
720# undef wxUSE_SOCKETS
721# define wxUSE_SOCKETS 1
722# endif
723# endif
724# endif
725
726# if !wxUSE_STREAMS
727# ifdef wxABORT_ON_CONFIG_ERROR
728# error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
729# else
730# undef wxUSE_STREAMS
731# define wxUSE_STREAMS 1
732# endif
733# endif
734#endif /* wxUSE_PROTOCOL */
735
c7f3eecc
VZ
736/* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
737#if wxUSE_HTML
738# if !wxUSE_FILESYSTEM
739# ifdef wxABORT_ON_CONFIG_ERROR
740# error "wxHTML requires wxFileSystem"
741# else
742# undef wxUSE_FILESYSTEM
743# define wxUSE_FILESYSTEM 1
744# endif
745# endif
746#endif /* wxUSE_HTML */
747
748#if wxUSE_FILESYSTEM
749# if !wxUSE_STREAMS
750# ifdef wxABORT_ON_CONFIG_ERROR
751# error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
752# else
753# undef wxUSE_STREAMS
754# define wxUSE_STREAMS 1
755# endif
756# endif
757#endif /* wxUSE_FILESYSTEM */
758
ce73e654
VS
759#if wxUSE_FS_INET
760# if !wxUSE_PROTOCOL
761# ifdef wxABORT_ON_CONFIG_ERROR
762# error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
763# else
764# undef wxUSE_PROTOCOL
765# define wxUSE_PROTOCOL 1
766# endif
767# endif
768#endif /* wxUSE_FS_INET */
769
c7f3eecc 770#if wxUSE_STOPWATCH || wxUSE_DATETIME
a5d46b73
VZ
771# if !wxUSE_LONGLONG
772# ifdef wxABORT_ON_CONFIG_ERROR
c7f3eecc 773# error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
a5d46b73
VZ
774# else
775# undef wxUSE_LONGLONG
776# define wxUSE_LONGLONG 1
777# endif
778# endif
779#endif /* wxUSE_STOPWATCH */
780
781#if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
782# ifdef wxABORT_ON_CONFIG_ERROR
783# error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
784# else
785# undef wxUSE_TEXTFILE
786# define wxUSE_TEXTFILE 1
787# endif
788#endif /* wxUSE_MIMETYPE */
789
790#if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
791# ifdef wxABORT_ON_CONFIG_ERROR
792# error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
793# else
794# undef wxUSE_TEXTBUFFER
795# define wxUSE_TEXTBUFFER 1
796# endif
797#endif /* wxUSE_TEXTFILE */
798
799#if wxUSE_TEXTFILE && !wxUSE_FILE
800# ifdef wxABORT_ON_CONFIG_ERROR
801# error "wxUSE_TEXTFILE requires wxUSE_FILE"
802# else
803# undef wxUSE_FILE
804# define wxUSE_FILE 1
805# endif
806#endif /* wxUSE_TEXTFILE */
807
808#if wxUSE_UNICODE_MSLU && !wxUSE_UNICODE
809# ifdef wxABORT_ON_CONFIG_ERROR
810# error "wxUSE_UNICODE_MSLU requires wxUSE_UNICODE"
811# else
812# undef wxUSE_UNICODE
813# define wxUSE_UNICODE 1
814# endif
815#endif /* wxUSE_UNICODE_MSLU */
816
4ccf704a
VZ
817#if wxUSE_ODBC && wxUSE_UNICODE
818# ifdef wxABORT_ON_CONFIG_ERROR
819 /* (ODBC classes aren't Unicode-compatible yet) */
820# error "wxUSE_ODBC can't be used with wxUSE_UNICODE"
821# else
822# undef wxUSE_ODBC
823# define wxUSE_ODBC 0
824# endif
825#endif /* wxUSE_ODBC */
826
a5d46b73
VZ
827/* the rest of the tests is for the GUI settings only */
828#if wxUSE_GUI
829
1e6feb95
VZ
830#if wxUSE_BUTTON || \
831 wxUSE_CALENDARCTRL || \
832 wxUSE_CARET || \
833 wxUSE_COMBOBOX || \
834 wxUSE_BMPBUTTON || \
835 wxUSE_CHECKBOX || \
836 wxUSE_CHECKLISTBOX || \
837 wxUSE_CHOICE || \
838 wxUSE_GAUGE || \
839 wxUSE_GRID || \
1e6feb95
VZ
840 wxUSE_LISTBOX || \
841 wxUSE_LISTCTRL || \
842 wxUSE_NOTEBOOK || \
843 wxUSE_RADIOBOX || \
844 wxUSE_RADIOBTN || \
845 wxUSE_SCROLLBAR || \
846 wxUSE_SLIDER || \
847 wxUSE_SPINBTN || \
848 wxUSE_SPINCTRL || \
849 wxUSE_STATBMP || \
850 wxUSE_STATBOX || \
851 wxUSE_STATLINE || \
3379ed37 852 wxUSE_STATTEXT || \
1e6feb95
VZ
853 wxUSE_STATUSBAR || \
854 wxUSE_TEXTCTRL || \
855 wxUSE_TOOLBAR || \
856 wxUSE_TREECTRL
857# if !wxUSE_CONTROLS
858# ifdef wxABORT_ON_CONFIG_ERROR
859# error "wxUSE_CONTROLS unset but some controls used"
860# else
861# undef wxUSE_CONTROLS
862# define wxUSE_CONTROLS 1
863# endif
864# endif
865#endif /* controls */
866
3379ed37
VZ
867/* wxUniv-specific dependencies */
868#if defined(__WXUNIVERSAL__)
869# if (wxUSE_COMBOBOX || wxUSE_MENUS) && !wxUSE_POPUPWIN
870# ifdef wxABORT_ON_CONFIG_ERROR
871# error "wxUSE_POPUPWIN must be defined to use comboboxes/menus"
872# else
873# undef wxUSE_POPUPWIN
874# define wxUSE_POPUPWIN 1
875# endif
876# endif
877
878# if wxUSE_COMBOBOX
879# if !wxUSE_LISTBOX
880# ifdef wxABORT_ON_CONFIG_ERROR
881# error "wxComboBox requires wxListBox in wxUniversal"
882# else
883# undef wxUSE_LISTBOX
884# define wxUSE_LISTBOX 1
885# endif
886# endif
887# endif /* wxUSE_COMBOBOX */
888
889# if wxUSE_RADIOBTN
890# if !wxUSE_CHECKBOX
891# ifdef wxABORT_ON_CONFIG_ERROR
892# error "wxUSE_RADIOBTN requires wxUSE_CHECKBOX in wxUniversal"
893# else
894# undef wxUSE_CHECKBOX
895# define wxUSE_CHECKBOX 1
896# endif
897# endif
898# endif /* wxUSE_RADIOBTN */
899
900# if wxUSE_TEXTCTRL
901# if !wxUSE_CARET
902# ifdef wxABORT_ON_CONFIG_ERROR
903# error "wxTextCtrl requires wxCaret in wxUniversal"
904# else
905# undef wxUSE_CARET
906# define wxUSE_CARET 1
907# endif
908# endif /* wxUSE_CARET */
909
910# if !wxUSE_SCROLLBAR
911# ifdef wxABORT_ON_CONFIG_ERROR
912# error "wxTextCtrl requires wxScrollBar in wxUniversal"
913# else
914# undef wxUSE_SCROLLBAR
915# define wxUSE_SCROLLBAR 1
916# endif
917# endif /* wxUSE_SCROLLBAR */
918# endif /* wxUSE_TEXTCTRL */
919#endif /* __WXUNIVERSAL__ */
920
921/* wxGTK-specific dependencies */
2131b89d
VZ
922#ifdef __WXGTK__
923# ifndef __WXUNIVERSAL__
924# if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS
925# ifdef wxABORT_ON_CONFIG_ERROR
926# error "MDI requires wxUSE_MENUS in wxGTK"
927# else
928# undef wxUSE_MENUS
929# define wxUSE_MENUS 1
930# endif
931# endif
932# endif /* !__WXUNIVERSAL__ */
933
934# if wxUSE_JOYSTICK
935# if !wxUSE_THREADS
936# ifdef wxABORT_ON_CONFIG_ERROR
937# error "wxJoystick requires threads in wxGTK"
938# else
939# undef wxUSE_JOYSTICK
940# define wxUSE_JOYSTICK 0
941# endif
3379ed37
VZ
942# endif
943# endif
944#endif /* wxGTK && !wxUniv */
945
03169422
RL
946/* wxMSW-specific dependencies */
947#ifdef __WXMSW__
948# ifndef wxUSE_UNICODE_MSLU
949# ifdef wxABORT_ON_CONFIG_ERROR
950# error "wxUSE_UNICODE_MSLU must be defined."
951# else
952# define wxUSE_UNICODE_MSLU 0
953# endif
954# endif /* wxUSE_UNICODE_MSLU */
955# ifndef wxUSE_MS_HTML_HELP
956# ifdef wxABORT_ON_CONFIG_ERROR
957# error "wxUSE_MS_HTML_HELP must be defined."
958# else
959# define wxUSE_MS_HTML_HELP 0
960# endif
961# endif /* !defined(wxUSE_MS_HTML_HELP) */
962# ifndef wxUSE_DIALUP_MANAGER
963# ifdef wxABORT_ON_CONFIG_ERROR
964# error "wxUSE_DIALUP_MANAGER must be defined."
965# else
966# define wxUSE_DIALUP_MANAGER 0
967# endif
968# endif /* !defined(wxUSE_DIALUP_MANAGER) */
969
19f478fd 970# if !wxUSE_DYNAMIC_LOADER
03169422
RL
971# if wxUSE_MS_HTML_HELP
972# ifdef wxABORT_ON_CONFIG_ERROR
973# error "wxUSE_MS_HTML_HELP requires wxUSE_DYNAMIC_LOADER."
974# else
975# define wxUSE_DYNAMIC_LOADER 1
976# endif
977# endif
978# if wxUSE_DIALUP_MANAGER
979# ifdef wxABORT_ON_CONFIG_ERROR
980# error "wxUSE_DIALUP_MANAGER requires wxUSE_DYNAMIC_LOADER."
981# else
982# define wxUSE_DYNAMIC_LOADER 1
983# endif
984# endif
985# endif /* wxUSE_DYNAMIC_LOADER */
986#endif /* wxMSW */
987
c4e41ce3
SC
988/* wxMAC-specific dependencies */
989#ifdef __WXMAC__
990# if wxUSE_UNICODE
991# if !TARGET_CARBON
992# ifdef wxABORT_ON_CONFIG_ERROR
993# error "wxUSE_UNICODE is only supported for Carbon Targets."
994# else
995# define wxUSE_UNICODE 0
996# endif
997# endif
998# endif
999#endif /* wxMAC */
9806a47c
JS
1000/* wxMotif-specific dependencies */
1001#if defined(__WXMOTIF__) && wxUSE_NOTEBOOK && !wxUSE_TAB_DIALOG
1002# undef wxUSE_TAB_DIALOG
1003# define wxUSE_TAB_DIALOG 1
1004#endif
9806a47c 1005
bfc4a1c1
VS
1006/* wxMGL-specific dependencies */
1007#ifdef __WXMGL__
1008# if !wxUSE_PALETTE
1009# error "wxMGL requires wxUSE_PALETTE=1"
1010# endif
1011#endif /* wxMGL */
1012
3379ed37
VZ
1013/* generic controls dependencies */
1014#if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1015# if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1016 /* all common controls are needed by these dialogs */
1017# if !defined(wxUSE_CHOICE) || \
1018 !defined(wxUSE_TEXTCTRL) || \
1019 !defined(wxUSE_BUTTON) || \
1020 !defined(wxUSE_CHECKBOX) || \
1021 !defined(wxUSE_STATTEXT)
1022# ifdef wxABORT_ON_CONFIG_ERROR
1023# error "These common controls are needed by common dialogs"
1024# else
1025# undef wxUSE_CHOICE
1026# define wxUSE_CHOICE 1
1027# undef wxUSE_TEXTCTRL
1028# define wxUSE_TEXTCTRL 1
1029# undef wxUSE_BUTTON
1030# define wxUSE_BUTTON 1
1031# undef wxUSE_CHECKBOX
1032# define wxUSE_CHECKBOX 1
1033# undef wxUSE_STATTEXT
1034# define wxUSE_STATTEXT 1
1035# endif
1036# endif
1037# endif
1038#endif /* !wxMSW || wxUniv */
1039
1040/* common dependencies */
1e6feb95
VZ
1041#if wxUSE_CALENDARCTRL
1042# if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1043# ifdef wxABORT_ON_CONFIG_ERROR
1044# error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1045# else
1046# undef wxUSE_SPINBTN
1047# undef wxUSE_COMBOBOX
1048# define wxUSE_SPINBTN 1
1049# define wxUSE_COMBOBOX 1
1050# endif
1051# endif
e2b87f38
VZ
1052
1053# if !wxUSE_DATETIME
1054# ifdef wxABORT_ON_CONFIG_ERROR
1055# error "wxCalendarCtrl requires wxUSE_DATETIME"
1056# else
1057# undef wxUSE_DATETIME
1058# define wxUSE_DATETIME 1
1059# endif
1060# endif
1e6feb95
VZ
1061#endif /* wxUSE_CALENDARCTRL */
1062
1063#if wxUSE_CHECKLISTBOX
1064# if !wxUSE_LISTBOX
1065# ifdef wxABORT_ON_CONFIG_ERROR
1066# error "wxCheckListBox requires wxListBox"
1067# else
1068# undef wxUSE_LISTBOX
1069# define wxUSE_LISTBOX 1
1070# endif
1071# endif
1072#endif /* wxUSE_RADIOBTN */
1073
3379ed37 1074#if wxUSE_WXHTML_HELP
730dfeb4 1075# if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK
3379ed37
VZ
1076# ifdef wxABORT_ON_CONFIG_ERROR
1077# error "Built in help controller can't be compiled"
1078# else
1079# undef wxUSE_HELP
1080# define wxUSE_HELP 1
1081# undef wxUSE_HTML
1082# define wxUSE_HTML 1
1083# undef wxUSE_COMBOBOX
1084# define wxUSE_COMBOBOX 1
730dfeb4
VS
1085# undef wxUSE_NOTEBOOK
1086# define wxUSE_NOTEBOOK 1
3379ed37
VZ
1087# endif
1088# endif
1089#endif /* wxUSE_WXHTML_HELP */
1090
e30285ab
VZ
1091#if wxUSE_DOC_VIEW_ARCHITECTURE
1092# if !wxUSE_MENUS
1093# ifdef wxABORT_ON_CONFIG_ERROR
1094# error "DocView requires wxUSE_MENUS"
1095# else
1096# undef wxUSE_MENUS
1097# define wxUSE_MENUS 1
1098# endif
1099# endif
1100
1101# if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1102# ifdef wxABORT_ON_CONFIG_ERROR
1103# error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1104# else
1105# undef wxUSE_STREAMS
1106# define wxUSE_STREAMS 1
1107# endif
1108# endif
1109#endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1110
3379ed37
VZ
1111#if wxUSE_PRINTING_ARCHITECTURE
1112# if !wxUSE_COMBOBOX
1113# ifdef wxABORT_ON_CONFIG_ERROR
1114# error "Print dialog requires wxUSE_COMBOBOX"
1115# else
1116# undef wxUSE_COMBOBOX
1117# define wxUSE_COMBOBOX 1
1118# endif
1119# endif
e30285ab
VZ
1120
1121# if !wxUSE_DOC_VIEW_ARCHITECTURE
1122# ifdef wxABORT_ON_CONFIG_ERROR
1123# error "Print architecture requires wxUSE_DOC_VIEW_ARCHITECTURE"
1124# else
1125# undef wxUSE_DOC_VIEW_ARCHITECTURE
1126# define wxUSE_DOC_VIEW_ARCHITECTURE 1
1127# endif
1128# endif
3379ed37
VZ
1129#endif /* wxUSE_PRINTING_ARCHITECTURE */
1130
e30285ab
VZ
1131#if wxUSE_MDI_ARCHITECTURE
1132# if !wxUSE_DOC_VIEW_ARCHITECTURE
1e6feb95 1133# ifdef wxABORT_ON_CONFIG_ERROR
e30285ab 1134# error "MDI requires wxUSE_DOC_VIEW_ARCHITECTURE"
1e6feb95 1135# else
e30285ab
VZ
1136# undef wxUSE_DOC_VIEW_ARCHITECTURE
1137# define wxUSE_DOC_VIEW_ARCHITECTURE 1
1e6feb95
VZ
1138# endif
1139# endif
e30285ab 1140#endif /* wxUSE_MDI_ARCHITECTURE */
1e6feb95
VZ
1141
1142#if !wxUSE_FILEDLG
2119e280 1143# if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1e6feb95
VZ
1144# ifdef wxABORT_ON_CONFIG_ERROR
1145# error "wxFileDialog must be compiled as well"
1146# else
1147# undef wxUSE_FILEDLG
1148# define wxUSE_FILEDLG 1
1149# endif
1150# endif
e421922f 1151#endif /* wxUSE_FILEDLG */
1e6feb95 1152
12491c1f
JS
1153#if !wxUSE_TOOLBAR
1154# if wxUSE_TOOLBAR_NATIVE
1155# ifdef wxABORT_ON_CONFIG_ERROR
1156# error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1157# else
1158# undef wxUSE_TOOLBAR_NATIVE
1159# define wxUSE_TOOLBAR_NATIVE 0
1160# endif
1161# endif
1162
1163# if wxUSE_TOOLBAR_SIMPLE
1164# ifdef wxABORT_ON_CONFIG_ERROR
1165# error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_SIMPLE is set to 1"
1166# else
1167# undef wxUSE_TOOLBAR_SIMPLE
1168# define wxUSE_TOOLBAR_SIMPLE 0
1169# endif
1170# endif
1171#endif
1172
1e6feb95
VZ
1173#if !wxUSE_IMAGLIST
1174# if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1175# ifdef wxABORT_ON_CONFIG_ERROR
1176# error "wxImageList must be compiled as well"
1177# else
1178# undef wxUSE_IMAGLIST
1179# define wxUSE_IMAGLIST 1
1180# endif
1181# endif
1182#endif /* !wxUSE_IMAGLIST */
1183
e421922f
VZ
1184#if !wxUSE_MSGDLG
1185# ifdef wxABORT_ON_CONFIG_ERROR
1186 /* FIXME: should compile without it, of course, but doesn't */
1187# error "wxMessageBox is always needed"
1188# else
1189# undef wxUSE_MSGDLG
1190# define wxUSE_MSGDLG 1
1191# endif
1192#endif
1193
1e6feb95
VZ
1194#if wxUSE_RADIOBOX
1195# if !wxUSE_RADIOBTN || !wxUSE_STATBOX
1196# ifdef wxABORT_ON_CONFIG_ERROR
1197# error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN and wxUSE_STATBOX"
1198# else
1199# undef wxUSE_RADIOBTN
1200# undef wxUSE_STATBOX
1201# define wxUSE_RADIOBTN 1
1202# define wxUSE_STATBOX 1
1203# endif
1204# endif
1205#endif /* wxUSE_RADIOBOX */
1206
3379ed37
VZ
1207#if wxUSE_LOGWINDOW
1208# if !wxUSE_TEXTCTRL
1209# ifdef wxABORT_ON_CONFIG_ERROR
1210# error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1211# else
1212# undef wxUSE_TEXTCTRL
1213# define wxUSE_TEXTCTRL 1
1214# endif
1215# endif
1216#endif /* wxUSE_LOGWINDOW */
1e6feb95 1217
3e6e2754
JS
1218#if wxUSE_LOG_DIALOG
1219# if !wxUSE_LISTCTRL
1220# ifdef wxABORT_ON_CONFIG_ERROR
1221# error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL"
1222# else
1223# undef wxUSE_LISTCTRL
1224# define wxUSE_LISTCTRL 1
1225# endif
1226# endif
1227#endif /* wxUSE_LOG_DIALOG */
1228
1e6feb95
VZ
1229/* I wonder if we shouldn't just remove all occurrences of
1230 wxUSE_DYNAMIC_CLASSES from the sources? */
1231#if !defined(wxUSE_DYNAMIC_CLASSES) || !wxUSE_DYNAMIC_CLASSES
3379ed37 1232# ifdef wxABORT_ON_CONFIG_ERROR
1e6feb95
VZ
1233# error "wxUSE_DYNAMIC_CLASSES must be defined as 1"
1234# else
1235# undef wxUSE_DYNAMIC_CLASSES
03169422 1236# define wxUSE_DYNAMIC_CLASSES 1
1e6feb95
VZ
1237# endif
1238#endif /* wxUSE_DYNAMIC_CLASSES */
1239
1e6feb95 1240#if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
3379ed37 1241# ifdef wxABORT_ON_CONFIG_ERROR
1e6feb95
VZ
1242# error "wxClipboard requires wxDataObject"
1243# else
1244# undef wxUSE_DATAOBJ
1245# define wxUSE_DATAOBJ 1
1246# endif
1247#endif /* wxUSE_CLIPBOARD */
1248
2b5f62a0
VZ
1249#if wxUSE_WX_RESOURCES && !wxUSE_PROLOGIO
1250# ifdef wxABORT_ON_CONFIG_ERROR
1251# error "wxr resources require PrologIO"
1252# else
1253# undef wxUSE_PROLOGIO
1254# define wxUSE_PROLOGIO 1
1255# endif
1256#endif /* wxUSE_WX_RESOURCES */
1257
1e6feb95
VZ
1258#endif /* wxUSE_GUI */
1259