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