3 * Purpose: check the config settings for consistency
4 * Author: Vadim Zeitlin
8 * Copyright: (c) 2000 Vadim Zeitlin <vadim@wxwidgets.org>
9 * Licence: wxWindows licence
12 /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
15 Compiler-specific checking.
18 #if defined(__WXPALMOS__)
19 # include "wx/palmos/chkconf.h"
20 #elif defined(__WXMSW__)
21 # include "wx/msw/chkconf.h"
22 #elif defined(__WXMAC__)
23 # include "wx/mac/chkconf.h"
27 this global setting determines what should we do if the setting FOO
28 requires BAR and BAR is not set: we can either silently define BAR
29 (default, recommended) or give an error and abort (mainly useful for
32 #define wxABORT_ON_CONFIG_ERROR
38 /* GUI build by default */
39 #if !defined(wxUSE_GUI)
41 #endif /* !defined(wxUSE_GUI) */
44 tests for non GUI features
47 #ifndef wxUSE_DYNLIB_CLASS
48 # ifdef wxABORT_ON_CONFIG_ERROR
49 # error "wxUSE_DYNLIB_CLASS must be defined."
51 # define wxUSE_DYNLIB_CLASS 0
53 #endif /* !defined(wxUSE_DYNLIB_CLASS) */
55 #ifndef wxUSE_EXCEPTIONS
56 # ifdef wxABORT_ON_CONFIG_ERROR
57 # error "wxUSE_EXCEPTIONS must be defined."
59 # define wxUSE_EXCEPTIONS 0
61 #endif /* !defined(wxUSE_EXCEPTIONS) */
63 #ifndef wxUSE_FILESYSTEM
64 # ifdef wxABORT_ON_CONFIG_ERROR
65 # error "wxUSE_FILESYSTEM must be defined."
67 # define wxUSE_FILESYSTEM 0
69 #endif /* !defined(wxUSE_FILESYSTEM) */
71 /* don't give an error about this one yet, it's not fully implemented */
72 #ifndef wxUSE_FSVOLUME
73 # define wxUSE_FSVOLUME 0
74 #endif /* !defined(wxUSE_FSVOLUME) */
76 #ifndef wxUSE_DYNAMIC_LOADER
77 # ifdef wxABORT_ON_CONFIG_ERROR
78 # error "wxUSE_DYNAMIC_LOADER must be defined."
80 # define wxUSE_DYNAMIC_LOADER 0
82 #endif /* !defined(wxUSE_DYNAMIC_LOADER) */
85 # ifdef wxABORT_ON_CONFIG_ERROR
86 # error "wxUSE_LOG must be defined."
90 #endif /* !defined(wxUSE_LOG) */
92 #ifndef wxUSE_LONGLONG
93 # ifdef wxABORT_ON_CONFIG_ERROR
94 # error "wxUSE_LONGLONG must be defined."
96 # define wxUSE_LONGLONG 0
98 #endif /* !defined(wxUSE_LONGLONG) */
100 #ifndef wxUSE_MIMETYPE
101 # ifdef wxABORT_ON_CONFIG_ERROR
102 # error "wxUSE_MIMETYPE must be defined."
104 # define wxUSE_MIMETYPE 0
106 #endif /* !defined(wxUSE_MIMETYPE) */
108 #ifndef wxUSE_PROTOCOL
109 # ifdef wxABORT_ON_CONFIG_ERROR
110 # error "wxUSE_PROTOCOL must be defined."
112 # define wxUSE_PROTOCOL 0
114 #endif /* !defined(wxUSE_PROTOCOL) */
116 /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
118 # undef wxUSE_PROTOCOL_HTTP
119 # undef wxUSE_PROTOCOL_FTP
120 # undef wxUSE_PROTOCOL_FILE
121 # define wxUSE_PROTOCOL_HTTP 0
122 # define wxUSE_PROTOCOL_FTP 0
123 # define wxUSE_PROTOCOL_FILE 0
124 #endif /* wxUSE_PROTOCOL */
126 #ifndef wxUSE_PROTOCOL_HTTP
127 # ifdef wxABORT_ON_CONFIG_ERROR
128 # error "wxUSE_PROTOCOL_HTTP must be defined."
130 # define wxUSE_PROTOCOL_HTTP 0
132 #endif /* !defined(wxUSE_PROTOCOL_HTTP) */
134 #ifndef wxUSE_PROTOCOL_FTP
135 # ifdef wxABORT_ON_CONFIG_ERROR
136 # error "wxUSE_PROTOCOL_FTP must be defined."
138 # define wxUSE_PROTOCOL_FTP 0
140 #endif /* !defined(wxUSE_PROTOCOL_FTP) */
142 #ifndef wxUSE_PROTOCOL_FILE
143 # ifdef wxABORT_ON_CONFIG_ERROR
144 # error "wxUSE_PROTOCOL_FILE must be defined."
146 # define wxUSE_PROTOCOL_FILE 0
148 #endif /* !defined(wxUSE_PROTOCOL_FILE) */
151 # ifdef wxABORT_ON_CONFIG_ERROR
152 # error "wxUSE_REGEX must be defined."
154 # define wxUSE_REGEX 0
156 #endif /* !defined(wxUSE_REGEX) */
159 # ifdef wxABORT_ON_CONFIG_ERROR
160 # error "wxUSE_XML must be defined."
164 #endif /* !defined(wxUSE_XML) */
166 #ifndef wxUSE_SOCKETS
167 # ifdef wxABORT_ON_CONFIG_ERROR
168 # error "wxUSE_SOCKETS must be defined."
170 # define wxUSE_SOCKETS 0
172 #endif /* !defined(wxUSE_SOCKETS) */
174 #ifndef wxUSE_STREAMS
175 # ifdef wxABORT_ON_CONFIG_ERROR
176 # error "wxUSE_STREAMS must be defined."
178 # define wxUSE_STREAMS 0
180 #endif /* !defined(wxUSE_STREAMS) */
182 #ifndef wxUSE_STOPWATCH
183 # ifdef wxABORT_ON_CONFIG_ERROR
184 # error "wxUSE_STOPWATCH must be defined."
186 # define wxUSE_STOPWATCH 0
188 #endif /* !defined(wxUSE_STOPWATCH) */
190 #ifndef wxUSE_TEXTBUFFER
191 # ifdef wxABORT_ON_CONFIG_ERROR
192 # error "wxUSE_TEXTBUFFER must be defined."
194 # define wxUSE_TEXTBUFFER 0
196 #endif /* !defined(wxUSE_TEXTBUFFER) */
198 #ifndef wxUSE_TEXTFILE
199 # ifdef wxABORT_ON_CONFIG_ERROR
200 # error "wxUSE_TEXTFILE must be defined."
202 # define wxUSE_TEXTFILE 0
204 #endif /* !defined(wxUSE_TEXTFILE) */
206 #ifndef wxUSE_UNICODE
207 # ifdef wxABORT_ON_CONFIG_ERROR
208 # error "wxUSE_UNICODE must be defined."
210 # define wxUSE_UNICODE 0
212 #endif /* !defined(wxUSE_UNICODE) */
215 # ifdef wxABORT_ON_CONFIG_ERROR
216 # error "wxUSE_URL must be defined."
220 #endif /* !defined(wxUSE_URL) */
223 all these tests are for GUI only
228 all of the settings tested below must be defined or we'd get an error from
229 preprocessor about invalid integer expression
233 # ifdef wxABORT_ON_CONFIG_ERROR
234 # error "wxUSE_ACCEL must be defined."
236 # define wxUSE_ACCEL 0
238 #endif /* !defined(wxUSE_ACCEL) */
240 #ifndef wxUSE_BMPBUTTON
241 # ifdef wxABORT_ON_CONFIG_ERROR
242 # error "wxUSE_BMPBUTTON must be defined."
244 # define wxUSE_BMPBUTTON 0
246 #endif /* !defined(wxUSE_BMPBUTTON) */
249 # ifdef wxABORT_ON_CONFIG_ERROR
250 # error "wxUSE_BUTTON must be defined."
252 # define wxUSE_BUTTON 0
254 #endif /* !defined(wxUSE_BUTTON) */
256 #ifndef wxUSE_CALENDARCTRL
257 # ifdef wxABORT_ON_CONFIG_ERROR
258 # error "wxUSE_CALENDARCTRL must be defined."
260 # define wxUSE_CALENDARCTRL 0
262 #endif /* !defined(wxUSE_CALENDARCTRL) */
265 # ifdef wxABORT_ON_CONFIG_ERROR
266 # error "wxUSE_CARET must be defined."
268 # define wxUSE_CARET 0
270 #endif /* !defined(wxUSE_CARET) */
272 #ifndef wxUSE_CHECKBOX
273 # ifdef wxABORT_ON_CONFIG_ERROR
274 # error "wxUSE_CHECKBOX must be defined."
276 # define wxUSE_CHECKBOX 0
278 #endif /* !defined(wxUSE_CHECKBOX) */
280 #ifndef wxUSE_CHECKLISTBOX
281 # ifdef wxABORT_ON_CONFIG_ERROR
282 # error "wxUSE_CHECKLISTBOX must be defined."
284 # define wxUSE_CHECKLISTBOX 0
286 #endif /* !defined(wxUSE_CHECKLISTBOX) */
289 # ifdef wxABORT_ON_CONFIG_ERROR
290 # error "wxUSE_CHOICE must be defined."
292 # define wxUSE_CHOICE 0
294 #endif /* !defined(wxUSE_CHOICE) */
296 #ifndef wxUSE_CHOICEBOOK
297 # ifdef wxABORT_ON_CONFIG_ERROR
298 # error "wxUSE_CHOICEBOOK must be defined."
300 # define wxUSE_CHOICEBOOK 0
302 #endif /* !defined(wxUSE_CHOICEBOOK) */
304 #ifndef wxUSE_CHOICEDLG
305 # ifdef wxABORT_ON_CONFIG_ERROR
306 # error "wxUSE_CHOICEDLG must be defined."
308 # define wxUSE_CHOICEDLG 0
310 #endif /* !defined(wxUSE_CHOICEDLG) */
312 #ifndef wxUSE_CLIPBOARD
313 # ifdef wxABORT_ON_CONFIG_ERROR
314 # error "wxUSE_CLIPBOARD must be defined."
316 # define wxUSE_CLIPBOARD 0
318 #endif /* !defined(wxUSE_CLIPBOARD) */
320 #ifndef wxUSE_COLOURDLG
321 # ifdef wxABORT_ON_CONFIG_ERROR
322 # error "wxUSE_COLOURDLG must be defined."
324 # define wxUSE_COLOURDLG 0
326 #endif /* !defined(wxUSE_COLOURDLG) */
328 #ifndef wxUSE_COMBOBOX
329 # ifdef wxABORT_ON_CONFIG_ERROR
330 # error "wxUSE_COMBOBOX must be defined."
332 # define wxUSE_COMBOBOX 0
334 #endif /* !defined(wxUSE_COMBOBOX) */
336 #ifndef wxUSE_DATAOBJ
337 # ifdef wxABORT_ON_CONFIG_ERROR
338 # error "wxUSE_DATAOBJ must be defined."
340 # define wxUSE_DATAOBJ 0
342 #endif /* !defined(wxUSE_DATAOBJ) */
344 #ifndef wxUSE_DISPLAY
345 # ifdef wxABORT_ON_CONFIG_ERROR
346 # error "wxUSE_DISPLAY must be defined."
348 # define wxUSE_DISPLAY 0
350 #endif /* !defined(wxUSE_DISPLAY) */
352 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
353 # ifdef wxABORT_ON_CONFIG_ERROR
354 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
356 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
358 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
360 #ifndef wxUSE_FILEDLG
361 # ifdef wxABORT_ON_CONFIG_ERROR
362 # error "wxUSE_FILEDLG must be defined."
364 # define wxUSE_FILEDLG 0
366 #endif /* !defined(wxUSE_FILEDLG) */
368 #ifndef wxUSE_FONTDLG
369 # ifdef wxABORT_ON_CONFIG_ERROR
370 # error "wxUSE_FONTDLG must be defined."
372 # define wxUSE_FONTDLG 0
374 #endif /* !defined(wxUSE_FONTDLG) */
376 #ifndef wxUSE_FONTMAP
377 # ifdef wxABORT_ON_CONFIG_ERROR
378 # error "wxUSE_FONTMAP must be defined."
380 # define wxUSE_FONTMAP 0
382 #endif /* !defined(wxUSE_FONTMAP) */
385 # ifdef wxABORT_ON_CONFIG_ERROR
386 # error "wxUSE_GAUGE must be defined."
388 # define wxUSE_GAUGE 0
390 #endif /* !defined(wxUSE_GAUGE) */
393 # ifdef wxABORT_ON_CONFIG_ERROR
394 # error "wxUSE_GRID must be defined."
396 # define wxUSE_GRID 0
398 #endif /* !defined(wxUSE_GRID) */
401 # ifdef wxABORT_ON_CONFIG_ERROR
402 # error "wxUSE_HELP must be defined."
404 # define wxUSE_HELP 0
406 #endif /* !defined(wxUSE_HELP) */
409 # ifdef wxABORT_ON_CONFIG_ERROR
410 # error "wxUSE_HTML must be defined."
412 # define wxUSE_HTML 0
414 #endif /* !defined(wxUSE_HTML) */
417 # ifdef wxABORT_ON_CONFIG_ERROR
418 # error "wxUSE_XRC must be defined."
422 #endif /* !defined(wxUSE_XRC) */
424 #ifndef wxUSE_LIBMSPACK
426 /* set to 0 on platforms that don't have libmspack */
427 # define wxUSE_LIBMSPACK 0
429 # ifdef wxABORT_ON_CONFIG_ERROR
430 # error "wxUSE_LIBMSPACK must be defined."
432 # define wxUSE_LIBMSPACK 0
435 #endif /* !defined(wxUSE_LIBMSPACK) */
437 #ifndef wxUSE_ICO_CUR
438 # ifdef wxABORT_ON_CONFIG_ERROR
439 # error "wxUSE_ICO_CUR must be defined."
441 # define wxUSE_ICO_CUR 0
443 #endif /* !defined(wxUSE_ICO_CUR) */
446 # ifdef wxABORT_ON_CONFIG_ERROR
447 # error "wxUSE_IFF must be defined."
451 #endif /* !defined(wxUSE_IFF) */
453 #ifndef wxUSE_IMAGLIST
454 # ifdef wxABORT_ON_CONFIG_ERROR
455 # error "wxUSE_IMAGLIST must be defined."
457 # define wxUSE_IMAGLIST 0
459 #endif /* !defined(wxUSE_IMAGLIST) */
461 #ifndef wxUSE_JOYSTICK
462 # ifdef wxABORT_ON_CONFIG_ERROR
463 # error "wxUSE_JOYSTICK must be defined."
465 # define wxUSE_JOYSTICK 0
467 #endif /* !defined(wxUSE_JOYSTICK) */
469 #ifndef wxUSE_LISTBOOK
470 # ifdef wxABORT_ON_CONFIG_ERROR
471 # error "wxUSE_LISTBOOK must be defined."
473 # define wxUSE_LISTBOOK 0
475 #endif /* !defined(wxUSE_LISTBOOK) */
477 #ifndef wxUSE_LISTBOX
478 # ifdef wxABORT_ON_CONFIG_ERROR
479 # error "wxUSE_LISTBOX must be defined."
481 # define wxUSE_LISTBOX 0
483 #endif /* !defined(wxUSE_LISTBOX) */
485 #ifndef wxUSE_LISTCTRL
486 # ifdef wxABORT_ON_CONFIG_ERROR
487 # error "wxUSE_LISTCTRL must be defined."
489 # define wxUSE_LISTCTRL 0
491 #endif /* !defined(wxUSE_LISTCTRL) */
494 # ifdef wxABORT_ON_CONFIG_ERROR
495 # error "wxUSE_LOGGUI must be defined."
497 # define wxUSE_LOGGUI 0
499 #endif /* !defined(wxUSE_LOGGUI) */
501 #ifndef wxUSE_LOGWINDOW
502 # ifdef wxABORT_ON_CONFIG_ERROR
503 # error "wxUSE_LOGWINDOW must be defined."
505 # define wxUSE_LOGWINDOW 0
507 #endif /* !defined(wxUSE_LOGWINDOW) */
509 #ifndef wxUSE_LOG_DIALOG
510 # ifdef wxABORT_ON_CONFIG_ERROR
511 # error "wxUSE_LOG_DIALOG must be defined."
513 # define wxUSE_LOG_DIALOG 0
515 #endif /* !defined(wxUSE_LOG_DIALOG) */
518 # ifdef wxABORT_ON_CONFIG_ERROR
519 # error "wxUSE_MDI must be defined."
523 #endif /* !defined(wxUSE_MDI) */
525 #ifndef wxUSE_MDI_ARCHITECTURE
526 # ifdef wxABORT_ON_CONFIG_ERROR
527 # error "wxUSE_MDI_ARCHITECTURE must be defined."
529 # define wxUSE_MDI_ARCHITECTURE 0
531 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
534 # ifdef wxABORT_ON_CONFIG_ERROR
535 # error "wxUSE_MENUS must be defined."
537 # define wxUSE_MENUS 0
539 #endif /* !defined(wxUSE_MENUS) */
542 # ifdef wxABORT_ON_CONFIG_ERROR
543 # error "wxUSE_MSGDLG must be defined."
545 # define wxUSE_MSGDLG 0
547 #endif /* !defined(wxUSE_MSGDLG) */
549 #ifndef wxUSE_NOTEBOOK
550 # ifdef wxABORT_ON_CONFIG_ERROR
551 # error "wxUSE_NOTEBOOK must be defined."
553 # define wxUSE_NOTEBOOK 0
555 #endif /* !defined(wxUSE_NOTEBOOK) */
557 #ifndef wxUSE_PALETTE
558 # ifdef wxABORT_ON_CONFIG_ERROR
559 # error "wxUSE_PALETTE must be defined."
561 # define wxUSE_PALETTE 0
563 #endif /* !defined(wxUSE_PALETTE) */
565 #ifndef wxUSE_POPUPWIN
566 # ifdef wxABORT_ON_CONFIG_ERROR
567 # error "wxUSE_POPUPWIN must be defined."
569 # define wxUSE_POPUPWIN 0
571 #endif /* !defined(wxUSE_POPUPWIN) */
573 #ifndef wxUSE_PRINTING_ARCHITECTURE
574 # ifdef wxABORT_ON_CONFIG_ERROR
575 # error "wxUSE_PRINTING_ARCHITECTURE must be defined."
577 # define wxUSE_PRINTING_ARCHITECTURE 0
579 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
581 #ifndef wxUSE_RADIOBOX
582 # ifdef wxABORT_ON_CONFIG_ERROR
583 # error "wxUSE_RADIOBOX must be defined."
585 # define wxUSE_RADIOBOX 0
587 #endif /* !defined(wxUSE_RADIOBOX) */
589 #ifndef wxUSE_RADIOBTN
590 # ifdef wxABORT_ON_CONFIG_ERROR
591 # error "wxUSE_RADIOBTN must be defined."
593 # define wxUSE_RADIOBTN 0
595 #endif /* !defined(wxUSE_RADIOBTN) */
598 # ifdef wxABORT_ON_CONFIG_ERROR
599 # error "wxUSE_SASH must be defined."
601 # define wxUSE_SASH 0
603 #endif /* !defined(wxUSE_SASH) */
605 #ifndef wxUSE_SCROLLBAR
606 # ifdef wxABORT_ON_CONFIG_ERROR
607 # error "wxUSE_SCROLLBAR must be defined."
609 # define wxUSE_SCROLLBAR 0
611 #endif /* !defined(wxUSE_SCROLLBAR) */
614 # ifdef wxABORT_ON_CONFIG_ERROR
615 # error "wxUSE_SLIDER must be defined."
617 # define wxUSE_SLIDER 0
619 #endif /* !defined(wxUSE_SLIDER) */
622 # ifdef wxABORT_ON_CONFIG_ERROR
623 # error "wxUSE_SOUND must be defined."
625 # define wxUSE_SOUND 0
627 #endif /* !defined(wxUSE_SOUND) */
629 #ifndef wxUSE_SPINBTN
630 # ifdef wxABORT_ON_CONFIG_ERROR
631 # error "wxUSE_SPINBTN must be defined."
633 # define wxUSE_SPINBTN 0
635 #endif /* !defined(wxUSE_SPINBTN) */
637 #ifndef wxUSE_SPINCTRL
638 # ifdef wxABORT_ON_CONFIG_ERROR
639 # error "wxUSE_SPINCTRL must be defined."
641 # define wxUSE_SPINCTRL 0
643 #endif /* !defined(wxUSE_SPINCTRL) */
646 # ifdef wxABORT_ON_CONFIG_ERROR
647 # error "wxUSE_SPLASH must be defined."
649 # define wxUSE_SPLASH 0
651 #endif /* !defined(wxUSE_SPLASH) */
653 #ifndef wxUSE_SPLITTER
654 # ifdef wxABORT_ON_CONFIG_ERROR
655 # error "wxUSE_SPLITTER must be defined."
657 # define wxUSE_SPLITTER 0
659 #endif /* !defined(wxUSE_SPLITTER) */
661 #ifndef wxUSE_STATBMP
662 # ifdef wxABORT_ON_CONFIG_ERROR
663 # error "wxUSE_STATBMP must be defined."
665 # define wxUSE_STATBMP 0
667 #endif /* !defined(wxUSE_STATBMP) */
669 #ifndef wxUSE_STATBOX
670 # ifdef wxABORT_ON_CONFIG_ERROR
671 # error "wxUSE_STATBOX must be defined."
673 # define wxUSE_STATBOX 0
675 #endif /* !defined(wxUSE_STATBOX) */
677 #ifndef wxUSE_STATLINE
678 # ifdef wxABORT_ON_CONFIG_ERROR
679 # error "wxUSE_STATLINE must be defined."
681 # define wxUSE_STATLINE 0
683 #endif /* !defined(wxUSE_STATLINE) */
685 #ifndef wxUSE_STATTEXT
686 # ifdef wxABORT_ON_CONFIG_ERROR
687 # error "wxUSE_STATTEXT must be defined."
689 # define wxUSE_STATTEXT 0
691 #endif /* !defined(wxUSE_STATTEXT) */
693 #ifndef wxUSE_STATUSBAR
694 # ifdef wxABORT_ON_CONFIG_ERROR
695 # error "wxUSE_STATUSBAR must be defined."
697 # define wxUSE_STATUSBAR 0
699 #endif /* !defined(wxUSE_STATUSBAR) */
701 #ifndef wxUSE_TAB_DIALOG
702 # ifdef wxABORT_ON_CONFIG_ERROR
703 # error "wxUSE_TAB_DIALOG must be defined."
705 # define wxUSE_TAB_DIALOG 0
707 #endif /* !defined(wxUSE_TAB_DIALOG) */
709 #ifndef wxUSE_TEXTCTRL
710 # ifdef wxABORT_ON_CONFIG_ERROR
711 # error "wxUSE_TEXTCTRL must be defined."
713 # define wxUSE_TEXTCTRL 0
715 #endif /* !defined(wxUSE_TEXTCTRL) */
717 #ifndef wxUSE_TIPWINDOW
718 # ifdef wxABORT_ON_CONFIG_ERROR
719 # error "wxUSE_TIPWINDOW must be defined."
721 # define wxUSE_TIPWINDOW 0
723 #endif /* !defined(wxUSE_TIPWINDOW) */
725 #ifndef wxUSE_TOOLBAR
726 # ifdef wxABORT_ON_CONFIG_ERROR
727 # error "wxUSE_TOOLBAR must be defined."
729 # define wxUSE_TOOLBAR 0
731 #endif /* !defined(wxUSE_TOOLBAR) */
733 #ifndef wxUSE_TOOLTIPS
734 # ifdef wxABORT_ON_CONFIG_ERROR
735 # error "wxUSE_TOOLTIPS must be defined."
737 # define wxUSE_TOOLTIPS 0
739 #endif /* !defined(wxUSE_TOOLTIPS) */
741 #ifndef wxUSE_TREECTRL
742 # ifdef wxABORT_ON_CONFIG_ERROR
743 # error "wxUSE_TREECTRL must be defined."
745 # define wxUSE_TREECTRL 0
747 #endif /* !defined(wxUSE_TREECTRL) */
749 #ifndef wxUSE_VALIDATORS
750 # ifdef wxABORT_ON_CONFIG_ERROR
751 # error "wxUSE_VALIDATORS must be defined."
753 # define wxUSE_VALIDATORS 0
755 #endif /* !defined(wxUSE_VALIDATORS) */
757 #ifndef wxUSE_WXHTML_HELP
758 # ifdef wxABORT_ON_CONFIG_ERROR
759 # error "wxUSE_WXHTML_HELP must be defined."
761 # define wxUSE_WXHTML_HELP 0
763 #endif /* !defined(wxUSE_WXHTML_HELP) */
765 #endif /* wxUSE_GUI */
768 check consistency of the settings
771 #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
773 # ifdef wxABORT_ON_CONFIG_ERROR
774 # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
776 # undef wxUSE_PROTOCOL
777 # define wxUSE_PROTOCOL 1
780 #endif /* wxUSE_PROTOCOL_XXX */
784 # ifdef wxABORT_ON_CONFIG_ERROR
785 # error "wxUSE_URL requires wxUSE_PROTOCOL"
787 # undef wxUSE_PROTOCOL
788 # define wxUSE_PROTOCOL 1
791 #endif /* wxUSE_URL */
795 # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
796 # ifdef wxABORT_ON_CONFIG_ERROR
797 # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
799 # undef wxUSE_SOCKETS
800 # define wxUSE_SOCKETS 1
806 # ifdef wxABORT_ON_CONFIG_ERROR
807 # error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
809 # undef wxUSE_STREAMS
810 # define wxUSE_STREAMS 1
813 #endif /* wxUSE_PROTOCOL */
815 /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
817 # if !wxUSE_FILESYSTEM
818 # ifdef wxABORT_ON_CONFIG_ERROR
819 # error "wxHTML requires wxFileSystem"
821 # undef wxUSE_FILESYSTEM
822 # define wxUSE_FILESYSTEM 1
825 #endif /* wxUSE_HTML */
829 # ifdef wxABORT_ON_CONFIG_ERROR
830 # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
832 # undef wxUSE_STREAMS
833 # define wxUSE_STREAMS 1
836 #endif /* wxUSE_FILESYSTEM */
840 # ifdef wxABORT_ON_CONFIG_ERROR
841 # error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
843 # undef wxUSE_PROTOCOL
844 # define wxUSE_PROTOCOL 1
847 #endif /* wxUSE_FS_INET */
849 #if wxUSE_STOPWATCH || wxUSE_DATETIME
851 # ifdef wxABORT_ON_CONFIG_ERROR
852 # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
854 # undef wxUSE_LONGLONG
855 # define wxUSE_LONGLONG 1
858 #endif /* wxUSE_STOPWATCH */
860 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
861 # ifdef wxABORT_ON_CONFIG_ERROR
862 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
864 # undef wxUSE_TEXTFILE
865 # define wxUSE_TEXTFILE 1
867 #endif /* wxUSE_MIMETYPE */
869 #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
870 # ifdef wxABORT_ON_CONFIG_ERROR
871 # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
873 # undef wxUSE_TEXTBUFFER
874 # define wxUSE_TEXTBUFFER 1
876 #endif /* wxUSE_TEXTFILE */
878 #if wxUSE_TEXTFILE && !wxUSE_FILE
879 # ifdef wxABORT_ON_CONFIG_ERROR
880 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
883 # define wxUSE_FILE 1
885 #endif /* wxUSE_TEXTFILE */
887 #if wxUSE_UNICODE_MSLU && !wxUSE_UNICODE
888 # ifdef wxABORT_ON_CONFIG_ERROR
889 # error "wxUSE_UNICODE_MSLU requires wxUSE_UNICODE"
891 # undef wxUSE_UNICODE
892 # define wxUSE_UNICODE 1
894 #endif /* wxUSE_UNICODE_MSLU */
896 /* ODBC and Unicode are now compatible */
898 #if 0 /* wxUSE_ODBC && wxUSE_UNICODE */
899 # ifdef wxABORT_ON_CONFIG_ERROR
900 /* (ODBC classes aren't Unicode-compatible yet) */
901 # error "wxUSE_ODBC can't be used with wxUSE_UNICODE"
904 # define wxUSE_ODBC 0
906 #endif /* wxUSE_ODBC */
908 #if wxUSE_XML && !wxUSE_WCHAR_T
909 # ifdef wxABORT_ON_CONFIG_ERROR
910 # error "wxUSE_XML requires wxUSE_WCHAR_T"
915 #endif /* wxUSE_UNICODE_MSLU */
917 #if !wxUSE_DYNLIB_CLASS
918 # if wxUSE_DYNAMIC_LOADER
919 # ifdef wxABORT_ON_CONFIG_ERROR
920 # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
922 # define wxUSE_DYNLIB_CLASS 1
925 #endif /* wxUSE_DYNLIB_CLASS */
929 # ifdef wxABORT_ON_CONFIG_ERROR
930 # error "wxZip requires wxZlib"
933 # define wxUSE_ZLIB 1
936 # if !wxUSE_ARCHIVE_STREAMS
937 # ifdef wxABORT_ON_CONFIG_ERROR
938 # error "wxZip requires wxArchive"
940 # undef wxUSE_ARCHIVE_STREAMS
941 # define wxUSE_ARCHIVE_STREAMS 1
944 #endif /* wxUSE_ZIPSTREAM */
946 /* the rest of the tests is for the GUI settings only */
949 #if wxUSE_BUTTON || \
950 wxUSE_CALENDARCTRL || \
955 wxUSE_CHECKLISTBOX || \
977 # ifdef wxABORT_ON_CONFIG_ERROR
978 # error "wxUSE_CONTROLS unset but some controls used"
980 # undef wxUSE_CONTROLS
981 # define wxUSE_CONTROLS 1
984 #endif /* controls */
988 # ifdef wxABORT_ON_CONFIG_ERROR
989 # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
992 # define wxUSE_BUTTON 1
995 #endif /* wxUSE_BMPBUTTON */
997 #if wxUSE_NOTEBOOK || wxUSE_LISTBOOK || wxUSE_CHOICEBOOK
998 # if defined(wxUSE_BOOKCTRL) && !wxUSE_BOOKCTRL
999 # ifdef wxABORT_ON_CONFIG_ERROR
1000 # error "wxUSE_BOOKCTRL must be set."
1002 # undef wxUSE_BOOKCTRL
1006 # ifndef wxUSE_BOOKCTRL
1007 # define wxUSE_BOOKCTRL 1
1009 #endif /* wxUSE_NOTEBOOK */
1012 # if !wxUSE_LISTCTRL
1013 # ifdef wxABORT_ON_CONFIG_ERROR
1014 # error "wxListbook requires wxListCtrl"
1016 # undef wxUSE_LISTCTRL
1017 # define wxUSE_LISTCTRL 1
1020 #endif /* wxUSE_LISTBOOK */
1022 #if wxUSE_CHOICEBOOK
1024 # ifdef wxABORT_ON_CONFIG_ERROR
1025 # error "wxChoicebook requires wxChoice"
1027 # undef wxUSE_CHOICE
1028 # define wxUSE_CHOICE 1
1031 #endif /* wxUSE_CHOICEBOOK */
1033 /* don't attempt to use native status bar on the platforms not having it */
1034 #ifndef wxUSE_NATIVE_STATUSBAR
1035 # define wxUSE_NATIVE_STATUSBAR 0
1036 #elif wxUSE_NATIVE_STATUSBAR
1037 # if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1038 defined(__WXMAC__) || \
1039 defined(__WXPALMOS__) )
1040 # undef wxUSE_NATIVE_STATUSBAR
1041 # define wxUSE_NATIVE_STATUSBAR 0
1045 /* wxUniv-specific dependencies */
1046 #if defined(__WXUNIVERSAL__)
1047 # if (wxUSE_COMBOBOX || wxUSE_MENUS) && !wxUSE_POPUPWIN
1048 # ifdef wxABORT_ON_CONFIG_ERROR
1049 # error "wxUSE_POPUPWIN must be defined to use comboboxes/menus"
1051 # undef wxUSE_POPUPWIN
1052 # define wxUSE_POPUPWIN 1
1058 # ifdef wxABORT_ON_CONFIG_ERROR
1059 # error "wxComboBox requires wxListBox in wxUniversal"
1061 # undef wxUSE_LISTBOX
1062 # define wxUSE_LISTBOX 1
1065 # endif /* wxUSE_COMBOBOX */
1068 # if !wxUSE_CHECKBOX
1069 # ifdef wxABORT_ON_CONFIG_ERROR
1070 # error "wxUSE_RADIOBTN requires wxUSE_CHECKBOX in wxUniversal"
1072 # undef wxUSE_CHECKBOX
1073 # define wxUSE_CHECKBOX 1
1076 # endif /* wxUSE_RADIOBTN */
1080 # ifdef wxABORT_ON_CONFIG_ERROR
1081 # error "wxTextCtrl requires wxCaret in wxUniversal"
1084 # define wxUSE_CARET 1
1086 # endif /* wxUSE_CARET */
1088 # if !wxUSE_SCROLLBAR
1089 # ifdef wxABORT_ON_CONFIG_ERROR
1090 # error "wxTextCtrl requires wxScrollBar in wxUniversal"
1092 # undef wxUSE_SCROLLBAR
1093 # define wxUSE_SCROLLBAR 1
1095 # endif /* wxUSE_SCROLLBAR */
1096 # endif /* wxUSE_TEXTCTRL */
1097 #endif /* __WXUNIVERSAL__ */
1099 /* wxGTK-specific dependencies */
1101 # ifndef __WXUNIVERSAL__
1102 # if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS
1103 # ifdef wxABORT_ON_CONFIG_ERROR
1104 # error "MDI requires wxUSE_MENUS in wxGTK"
1107 # define wxUSE_MENUS 1
1110 # endif /* !__WXUNIVERSAL__ */
1114 # ifdef wxABORT_ON_CONFIG_ERROR
1115 # error "wxJoystick requires threads in wxGTK"
1117 # undef wxUSE_JOYSTICK
1118 # define wxUSE_JOYSTICK 0
1122 #endif /* wxGTK && !wxUniv */
1124 /* wxMSW-specific dependencies */
1126 # ifndef wxUSE_UNICODE_MSLU
1127 # ifdef wxABORT_ON_CONFIG_ERROR
1128 # error "wxUSE_UNICODE_MSLU must be defined."
1130 # define wxUSE_UNICODE_MSLU 0
1132 # endif /* wxUSE_UNICODE_MSLU */
1133 # ifndef wxUSE_UXTHEME
1134 # ifdef wxABORT_ON_CONFIG_ERROR
1135 # error "wxUSE_UXTHEME must be defined."
1137 # define wxUSE_UXTHEME 0
1139 # endif /* wxUSE_UXTHEME */
1140 # ifndef wxUSE_UXTHEME_AUTO
1141 # ifdef wxABORT_ON_CONFIG_ERROR
1142 # error "wxUSE_UXTHEME_AUTO must be defined."
1144 # define wxUSE_UXTHEME_AUTO 0
1146 # endif /* wxUSE_UXTHEME_AUTO */
1147 # ifndef wxUSE_MS_HTML_HELP
1148 # ifdef wxABORT_ON_CONFIG_ERROR
1149 # error "wxUSE_MS_HTML_HELP must be defined."
1151 # define wxUSE_MS_HTML_HELP 0
1153 # endif /* !defined(wxUSE_MS_HTML_HELP) */
1154 # ifndef wxUSE_DIALUP_MANAGER
1155 # ifdef wxABORT_ON_CONFIG_ERROR
1156 # error "wxUSE_DIALUP_MANAGER must be defined."
1158 # define wxUSE_DIALUP_MANAGER 0
1160 # endif /* !defined(wxUSE_DIALUP_MANAGER) */
1162 # if !wxUSE_DYNAMIC_LOADER
1163 # if wxUSE_MS_HTML_HELP
1164 # ifdef wxABORT_ON_CONFIG_ERROR
1165 # error "wxUSE_MS_HTML_HELP requires wxUSE_DYNAMIC_LOADER."
1167 # define wxUSE_DYNAMIC_LOADER 1
1170 # if wxUSE_DIALUP_MANAGER
1171 # ifdef wxABORT_ON_CONFIG_ERROR
1172 # error "wxUSE_DIALUP_MANAGER requires wxUSE_DYNAMIC_LOADER."
1174 # define wxUSE_DYNAMIC_LOADER 1
1177 # endif /* wxUSE_DYNAMIC_LOADER */
1181 /* wxMAC-specific dependencies */
1185 # ifdef wxABORT_ON_CONFIG_ERROR
1186 # error "wxUSE_UNICODE is only supported for Carbon Targets."
1188 # define wxUSE_UNICODE 0
1193 /* wxMotif-specific dependencies */
1194 #if defined(__WXMOTIF__) && wxUSE_NOTEBOOK && !wxUSE_TAB_DIALOG
1195 # undef wxUSE_TAB_DIALOG
1196 # define wxUSE_TAB_DIALOG 1
1199 /* wxMGL-specific dependencies */
1202 # error "wxMGL requires wxUSE_PALETTE=1"
1206 /* Hopefully we can emulate these dialogs in due course */
1207 #if defined(__SMARTPHONE__) && defined(__WXWINCE__)
1208 # ifdef wxUSE_COLOURDLG
1209 # undef wxUSE_COLOURDLG
1210 # define wxUSE_COLOURDLG 0
1212 #endif /* __SMARTPHONE__ && __WXWINCE__ */
1215 /* generic controls dependencies */
1216 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1217 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1218 /* all common controls are needed by these dialogs */
1219 # if !defined(wxUSE_CHOICE) || \
1220 !defined(wxUSE_TEXTCTRL) || \
1221 !defined(wxUSE_BUTTON) || \
1222 !defined(wxUSE_CHECKBOX) || \
1223 !defined(wxUSE_STATTEXT)
1224 # ifdef wxABORT_ON_CONFIG_ERROR
1225 # error "These common controls are needed by common dialogs"
1227 # undef wxUSE_CHOICE
1228 # define wxUSE_CHOICE 1
1229 # undef wxUSE_TEXTCTRL
1230 # define wxUSE_TEXTCTRL 1
1231 # undef wxUSE_BUTTON
1232 # define wxUSE_BUTTON 1
1233 # undef wxUSE_CHECKBOX
1234 # define wxUSE_CHECKBOX 1
1235 # undef wxUSE_STATTEXT
1236 # define wxUSE_STATTEXT 1
1240 #endif /* !wxMSW || wxUniv */
1242 /* common dependencies */
1243 #if wxUSE_CALENDARCTRL
1244 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1245 # ifdef wxABORT_ON_CONFIG_ERROR
1246 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1248 # undef wxUSE_SPINBTN
1249 # undef wxUSE_COMBOBOX
1250 # define wxUSE_SPINBTN 1
1251 # define wxUSE_COMBOBOX 1
1255 # if !wxUSE_DATETIME
1256 # ifdef wxABORT_ON_CONFIG_ERROR
1257 # error "wxCalendarCtrl requires wxUSE_DATETIME"
1259 # undef wxUSE_DATETIME
1260 # define wxUSE_DATETIME 1
1263 #endif /* wxUSE_CALENDARCTRL */
1265 #if wxUSE_DATEPICKCTRL
1266 # if !wxUSE_DATETIME
1267 # ifdef wxABORT_ON_CONFIG_ERROR
1268 # error wxDatePickerCtrl requires wxUSE_DATETIME"
1270 # undef wxUSE_DATETIME
1271 # define wxUSE_DATETIME 1
1274 #endif /* wxUSE_DATEPICKCTRL */
1276 #if wxUSE_CHECKLISTBOX
1278 # ifdef wxABORT_ON_CONFIG_ERROR
1279 # error "wxCheckListBox requires wxListBox"
1281 # undef wxUSE_LISTBOX
1282 # define wxUSE_LISTBOX 1
1285 #endif /* wxUSE_CHECKLISTBOX */
1289 # ifdef wxABORT_ON_CONFIG_ERROR
1290 # error "Choice dialogs requires wxListBox"
1292 # undef wxUSE_LISTBOX
1293 # define wxUSE_LISTBOX 1
1296 #endif /* wxUSE_CHOICEDLG */
1299 # if !wxUSE_BMPBUTTON
1300 # ifdef wxABORT_ON_CONFIG_ERROR
1301 # error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1303 # undef wxUSE_BMPBUTTON
1304 # define wxUSE_BMPBUTTON 1
1308 # if !wxUSE_CHOICEDLG
1309 # ifdef wxABORT_ON_CONFIG_ERROR
1310 # error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1312 # undef wxUSE_CHOICEDLG
1313 # define wxUSE_CHOICEDLG 1
1316 #endif /* wxUSE_HELP */
1318 #if wxUSE_WXHTML_HELP
1319 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
1320 # ifdef wxABORT_ON_CONFIG_ERROR
1321 # error "Built in help controller can't be compiled"
1324 # define wxUSE_HELP 1
1326 # define wxUSE_HTML 1
1327 # undef wxUSE_COMBOBOX
1328 # define wxUSE_COMBOBOX 1
1329 # undef wxUSE_NOTEBOOK
1330 # define wxUSE_NOTEBOOK 1
1331 # undef wxUSE_SPINCTRL
1332 # define wxUSE_SPINCTRL 1
1335 #endif /* wxUSE_WXHTML_HELP */
1339 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1340 user explicitly wants
this and disable all other features that require
1343 # if wxUSE_DRAGIMAGE
1344 # ifdef wxABORT_ON_CONFIG_ERROR
1345 # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1347 # undef wxUSE_DRAGIMAGE
1348 # define wxUSE_DRAGIMAGE 0
1353 # ifdef wxABORT_ON_CONFIG_ERROR
1354 # error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1356 # undef wxUSE_LIBPNG
1357 # define wxUSE_LIBPNG 0
1362 # ifdef wxABORT_ON_CONFIG_ERROR
1363 # error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1365 # undef wxUSE_LIBJPEG
1366 # define wxUSE_LIBJPEG 0
1371 # ifdef wxABORT_ON_CONFIG_ERROR
1372 # error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1374 # undef wxUSE_LIBTIFF
1375 # define wxUSE_LIBTIFF 0
1380 # ifdef wxABORT_ON_CONFIG_ERROR
1381 # error "wxUSE_GIF requires wxUSE_IMAGE"
1384 # define wxUSE_GIF 0
1389 # ifdef wxABORT_ON_CONFIG_ERROR
1390 # error "wxUSE_PNM requires wxUSE_IMAGE"
1393 # define wxUSE_PNM 0
1398 # ifdef wxABORT_ON_CONFIG_ERROR
1399 # error "wxUSE_PCX requires wxUSE_IMAGE"
1402 # define wxUSE_PCX 0
1407 # ifdef wxABORT_ON_CONFIG_ERROR
1408 # error "wxUSE_IFF requires wxUSE_IMAGE"
1411 # define wxUSE_IFF 0
1416 # ifdef wxABORT_ON_CONFIG_ERROR
1417 # error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1419 # undef wxUSE_TOOLBAR
1420 # define wxUSE_TOOLBAR 0
1425 # ifdef wxABORT_ON_CONFIG_ERROR
1426 # error "wxUSE_XPM requires wxUSE_IMAGE"
1429 # define wxUSE_XPM 0
1433 #endif /* !wxUSE_IMAGE */
1435 #if wxUSE_DOC_VIEW_ARCHITECTURE
1437 # ifdef wxABORT_ON_CONFIG_ERROR
1438 # error "DocView requires wxUSE_MENUS"
1441 # define wxUSE_MENUS 1
1445 # if !wxUSE_CHOICEDLG
1446 # ifdef wxABORT_ON_CONFIG_ERROR
1447 # error "DocView requires wxUSE_CHOICEDLG"
1449 # undef wxUSE_CHOICEDLG
1450 # define wxUSE_CHOICEDLG 1
1454 # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1455 # ifdef wxABORT_ON_CONFIG_ERROR
1456 # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1458 # undef wxUSE_STREAMS
1459 # define wxUSE_STREAMS 1
1462 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1464 #if wxUSE_PRINTING_ARCHITECTURE
1465 # if !wxUSE_COMBOBOX
1466 # ifdef wxABORT_ON_CONFIG_ERROR
1467 # error "Print dialog requires wxUSE_COMBOBOX"
1469 # undef wxUSE_COMBOBOX
1470 # define wxUSE_COMBOBOX 1
1473 #endif /* wxUSE_PRINTING_ARCHITECTURE */
1475 #if wxUSE_MDI_ARCHITECTURE
1477 # ifdef wxABORT_ON_CONFIG_ERROR
1478 # error "MDI requires wxUSE_MDI"
1481 # define wxUSE_MDI 1
1485 # if !wxUSE_DOC_VIEW_ARCHITECTURE
1486 # ifdef wxABORT_ON_CONFIG_ERROR
1487 # error "MDI requires wxUSE_DOC_VIEW_ARCHITECTURE"
1489 # undef wxUSE_DOC_VIEW_ARCHITECTURE
1490 # define wxUSE_DOC_VIEW_ARCHITECTURE 1
1493 #endif /* wxUSE_MDI_ARCHITECTURE */
1496 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1497 # ifdef wxABORT_ON_CONFIG_ERROR
1498 # error "wxFileDialog must be compiled as well"
1500 # undef wxUSE_FILEDLG
1501 # define wxUSE_FILEDLG 1
1504 #endif /* wxUSE_FILEDLG */
1506 #if !wxUSE_GAUGE || !wxUSE_BUTTON
1507 # if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
1508 # ifdef wxABORT_ON_CONFIG_ERROR
1509 # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
1512 # undef wxUSE_BUTTON
1513 # define wxUSE_GAUGE 1
1514 # define wxUSE_BUTTON 1
1517 #endif /* !wxUSE_GAUGE */
1520 # if wxUSE_FONTDLG || \
1522 wxUSE_CHOICEDLG || \
1523 wxUSE_NUMBERDLG || \
1526 wxUSE_STARTUP_TIPS || \
1528 # ifdef wxABORT_ON_CONFIG_ERROR
1529 # error "Common and generic dialogs require wxUSE_BUTTON"
1531 # undef wxUSE_BUTTON
1532 # define wxUSE_BUTTON 1
1535 #endif /* !wxUSE_BUTTON */
1538 # if wxUSE_TOOLBAR_NATIVE
1539 # ifdef wxABORT_ON_CONFIG_ERROR
1540 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1542 # undef wxUSE_TOOLBAR_NATIVE
1543 # define wxUSE_TOOLBAR_NATIVE 0
1547 # if wxUSE_TOOLBAR_SIMPLE
1548 # ifdef wxABORT_ON_CONFIG_ERROR
1549 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_SIMPLE is set to 1"
1551 # undef wxUSE_TOOLBAR_SIMPLE
1552 # define wxUSE_TOOLBAR_SIMPLE 0
1558 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1559 # ifdef wxABORT_ON_CONFIG_ERROR
1560 # error "wxImageList must be compiled as well"
1562 # undef wxUSE_IMAGLIST
1563 # define wxUSE_IMAGLIST 1
1566 #endif /* !wxUSE_IMAGLIST */
1569 # ifdef wxABORT_ON_CONFIG_ERROR
1570 /* FIXME: should compile without it, of course, but doesn't */
1571 # error "wxMessageBox is always needed"
1573 # undef wxUSE_MSGDLG
1574 # define wxUSE_MSGDLG 1
1579 # if !wxUSE_RADIOBTN
1580 # ifdef wxABORT_ON_CONFIG_ERROR
1581 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
1583 # undef wxUSE_RADIOBTN
1584 # define wxUSE_RADIOBTN 1
1587 # if !wxUSE_STATBOX && !defined(__WXPALMOS__)
1588 # ifdef wxABORT_ON_CONFIG_ERROR
1589 # error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
1591 # undef wxUSE_STATBOX
1592 # define wxUSE_STATBOX 1
1595 #endif /* wxUSE_RADIOBOX */
1598 # if !wxUSE_TEXTCTRL
1599 # ifdef wxABORT_ON_CONFIG_ERROR
1600 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1602 # undef wxUSE_TEXTCTRL
1603 # define wxUSE_TEXTCTRL 1
1606 #endif /* wxUSE_LOGWINDOW */
1608 #if wxUSE_LOG_DIALOG
1609 # if !wxUSE_LISTCTRL || !wxUSE_BUTTON
1610 # ifdef wxABORT_ON_CONFIG_ERROR
1611 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
1613 # undef wxUSE_LISTCTRL
1614 # define wxUSE_LISTCTRL 1
1615 # undef wxUSE_BUTTON
1616 # define wxUSE_BUTTON 1
1619 #endif /* wxUSE_LOG_DIALOG */
1621 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
1622 # ifdef wxABORT_ON_CONFIG_ERROR
1623 # error "wxClipboard requires wxDataObject"
1625 # undef wxUSE_DATAOBJ
1626 # define wxUSE_DATAOBJ 1
1628 #endif /* wxUSE_CLIPBOARD */
1630 #if wxUSE_WX_RESOURCES && !wxUSE_PROLOGIO
1631 # ifdef wxABORT_ON_CONFIG_ERROR
1632 # error "wxr resources require PrologIO"
1634 # undef wxUSE_PROLOGIO
1635 # define wxUSE_PROLOGIO 1
1637 #endif /* wxUSE_WX_RESOURCES */
1639 #if wxUSE_XRC && !wxUSE_XML
1640 # ifdef wxABORT_ON_CONFIG_ERROR
1641 # error "wxUSE_XRC requires wxUSE_XML"
1644 # define wxUSE_XRC 0
1646 #endif /* wxUSE_XRC */
1648 #endif /* wxUSE_GUI */