]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/chkconf.h
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 Platform-specific checking.
18 #if defined(__WXPALMOS__)
19 # include "wx/palmos/chkconf.h"
20 #elif defined(__WXWINCE__)
21 # include "wx/msw/wince/chkconf.h"
22 #elif defined(__WXMSW__)
23 # include "wx/msw/chkconf.h"
24 #elif defined(__WXMAC__)
25 # include "wx/mac/chkconf.h"
26 #elif defined(__OS2__)
27 # include "wx/os2/chkconf.h"
28 #elif defined(__WXMGL__)
29 # include "wx/mgl/chkconf.h"
30 #elif defined(__WXMOTIF__)
31 # include "wx/motif/chkconf.h"
32 #elif defined(__WXX11__)
33 # include "wx/x11/chkconf.h"
37 this global setting determines what should we do if the setting FOO
38 requires BAR and BAR is not set: we can either silently unset FOO as well
39 (do this if you're trying to build the smallest possible library) or give an
40 error and abort (default as leads to least surprizing behaviour)
42 #define wxABORT_ON_CONFIG_ERROR
48 /* GUI build by default */
49 #if !defined(wxUSE_GUI)
51 #endif /* !defined(wxUSE_GUI) */
54 If we're compiling without support for threads/exceptions we have to
55 disable the corresponding features.
59 # define wxUSE_THREADS 0
60 #endif /* wxNO_THREADS */
62 #ifdef wxNO_EXCEPTIONS
63 # undef wxUSE_EXCEPTIONS
64 # define wxUSE_EXCEPTIONS 0
65 #endif /* wxNO_EXCEPTIONS */
67 /* we also must disable exceptions if compiler doesn't support them */
68 #if defined(_MSC_VER) && !defined(_CPPUNWIND)
69 # undef wxUSE_EXCEPTIONS
70 # define wxUSE_EXCEPTIONS 0
71 #endif /* VC++ without exceptions support */
75 tests for non GUI features
77 please keep the options in alphabetical order!
80 #ifndef wxUSE_CRASHREPORT
81 /* this one is special: as currently it is Windows-only, don't force it
82 to be defined on other platforms */
83 # if defined(wxABORT_ON_CONFIG_ERROR) && defined(__WXMSW__)
84 # error "wxUSE_CRASHREPORT must be defined."
86 # define wxUSE_CRASHREPORT 0
88 #endif /* !defined(wxUSE_CRASHREPORT) */
90 #ifndef wxUSE_DYNLIB_CLASS
91 # ifdef wxABORT_ON_CONFIG_ERROR
92 # error "wxUSE_DYNLIB_CLASS must be defined."
94 # define wxUSE_DYNLIB_CLASS 0
96 #endif /* !defined(wxUSE_DYNLIB_CLASS) */
98 #ifndef wxUSE_EXCEPTIONS
99 # ifdef wxABORT_ON_CONFIG_ERROR
100 # error "wxUSE_EXCEPTIONS must be defined."
102 # define wxUSE_EXCEPTIONS 0
104 #endif /* !defined(wxUSE_EXCEPTIONS) */
106 #ifndef wxUSE_FILESYSTEM
107 # ifdef wxABORT_ON_CONFIG_ERROR
108 # error "wxUSE_FILESYSTEM must be defined."
110 # define wxUSE_FILESYSTEM 0
112 #endif /* !defined(wxUSE_FILESYSTEM) */
114 /* don't give an error about this one yet, it's not fully implemented */
115 #ifndef wxUSE_FSVOLUME
116 # define wxUSE_FSVOLUME 0
117 #endif /* !defined(wxUSE_FSVOLUME) */
119 #ifndef wxUSE_DYNAMIC_LOADER
120 # ifdef wxABORT_ON_CONFIG_ERROR
121 # error "wxUSE_DYNAMIC_LOADER must be defined."
123 # define wxUSE_DYNAMIC_LOADER 0
125 #endif /* !defined(wxUSE_DYNAMIC_LOADER) */
128 # ifdef wxABORT_ON_CONFIG_ERROR
129 # error "wxUSE_LOG must be defined."
133 #endif /* !defined(wxUSE_LOG) */
135 #ifndef wxUSE_LONGLONG
136 # ifdef wxABORT_ON_CONFIG_ERROR
137 # error "wxUSE_LONGLONG must be defined."
139 # define wxUSE_LONGLONG 0
141 #endif /* !defined(wxUSE_LONGLONG) */
143 #ifndef wxUSE_MIMETYPE
144 # ifdef wxABORT_ON_CONFIG_ERROR
145 # error "wxUSE_MIMETYPE must be defined."
147 # define wxUSE_MIMETYPE 0
149 #endif /* !defined(wxUSE_MIMETYPE) */
151 #ifndef wxUSE_ON_FATAL_EXCEPTION
152 # ifdef wxABORT_ON_CONFIG_ERROR
153 # error "wxUSE_ON_FATAL_EXCEPTION must be defined."
155 # define wxUSE_ON_FATAL_EXCEPTION 0
157 #endif /* !defined(wxUSE_ON_FATAL_EXCEPTION) */
159 #ifndef wxUSE_PRINTF_POS_PARAMS
160 # ifdef wxABORT_ON_CONFIG_ERROR
161 # error "wxUSE_PRINTF_POS_PARAMS must be defined."
163 # define wxUSE_PRINTF_POS_PARAMS 0
165 #endif /* !defined(wxUSE_PRINTF_POS_PARAMS) */
167 #ifndef wxUSE_PROTOCOL
168 # ifdef wxABORT_ON_CONFIG_ERROR
169 # error "wxUSE_PROTOCOL must be defined."
171 # define wxUSE_PROTOCOL 0
173 #endif /* !defined(wxUSE_PROTOCOL) */
175 /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
177 # undef wxUSE_PROTOCOL_HTTP
178 # undef wxUSE_PROTOCOL_FTP
179 # undef wxUSE_PROTOCOL_FILE
180 # define wxUSE_PROTOCOL_HTTP 0
181 # define wxUSE_PROTOCOL_FTP 0
182 # define wxUSE_PROTOCOL_FILE 0
183 #endif /* wxUSE_PROTOCOL */
185 #ifndef wxUSE_PROTOCOL_HTTP
186 # ifdef wxABORT_ON_CONFIG_ERROR
187 # error "wxUSE_PROTOCOL_HTTP must be defined."
189 # define wxUSE_PROTOCOL_HTTP 0
191 #endif /* !defined(wxUSE_PROTOCOL_HTTP) */
193 #ifndef wxUSE_PROTOCOL_FTP
194 # ifdef wxABORT_ON_CONFIG_ERROR
195 # error "wxUSE_PROTOCOL_FTP must be defined."
197 # define wxUSE_PROTOCOL_FTP 0
199 #endif /* !defined(wxUSE_PROTOCOL_FTP) */
201 #ifndef wxUSE_PROTOCOL_FILE
202 # ifdef wxABORT_ON_CONFIG_ERROR
203 # error "wxUSE_PROTOCOL_FILE must be defined."
205 # define wxUSE_PROTOCOL_FILE 0
207 #endif /* !defined(wxUSE_PROTOCOL_FILE) */
210 # ifdef wxABORT_ON_CONFIG_ERROR
211 # error "wxUSE_REGEX must be defined."
213 # define wxUSE_REGEX 0
215 #endif /* !defined(wxUSE_REGEX) */
217 #ifndef wxUSE_STDPATHS
218 # ifdef wxABORT_ON_CONFIG_ERROR
219 # error "wxUSE_STDPATHS must be defined."
221 # define wxUSE_STDPATHS 1
223 #endif /* !defined(wxUSE_STDPATHS) */
226 # ifdef wxABORT_ON_CONFIG_ERROR
227 # error "wxUSE_XML must be defined."
231 #endif /* !defined(wxUSE_XML) */
233 #ifndef wxUSE_SOCKETS
234 # ifdef wxABORT_ON_CONFIG_ERROR
235 # error "wxUSE_SOCKETS must be defined."
237 # define wxUSE_SOCKETS 0
239 #endif /* !defined(wxUSE_SOCKETS) */
241 #ifndef wxUSE_STREAMS
242 # ifdef wxABORT_ON_CONFIG_ERROR
243 # error "wxUSE_STREAMS must be defined."
245 # define wxUSE_STREAMS 0
247 #endif /* !defined(wxUSE_STREAMS) */
249 #ifndef wxUSE_STOPWATCH
250 # ifdef wxABORT_ON_CONFIG_ERROR
251 # error "wxUSE_STOPWATCH must be defined."
253 # define wxUSE_STOPWATCH 0
255 #endif /* !defined(wxUSE_STOPWATCH) */
257 #ifndef wxUSE_TEXTBUFFER
258 # ifdef wxABORT_ON_CONFIG_ERROR
259 # error "wxUSE_TEXTBUFFER must be defined."
261 # define wxUSE_TEXTBUFFER 0
263 #endif /* !defined(wxUSE_TEXTBUFFER) */
265 #ifndef wxUSE_TEXTFILE
266 # ifdef wxABORT_ON_CONFIG_ERROR
267 # error "wxUSE_TEXTFILE must be defined."
269 # define wxUSE_TEXTFILE 0
271 #endif /* !defined(wxUSE_TEXTFILE) */
273 #ifndef wxUSE_UNICODE
274 # ifdef wxABORT_ON_CONFIG_ERROR
275 # error "wxUSE_UNICODE must be defined."
277 # define wxUSE_UNICODE 0
279 #endif /* !defined(wxUSE_UNICODE) */
282 # ifdef wxABORT_ON_CONFIG_ERROR
283 # error "wxUSE_URL must be defined."
287 #endif /* !defined(wxUSE_URL) */
290 all these tests are for GUI only
292 please keep the options in alphabetical order!
297 all of the settings tested below must be defined or we'd get an error from
298 preprocessor about invalid integer expression
302 # ifdef wxABORT_ON_CONFIG_ERROR
303 # error "wxUSE_ACCEL must be defined."
305 # define wxUSE_ACCEL 0
307 #endif /* !defined(wxUSE_ACCEL) */
309 #ifndef wxUSE_BMPBUTTON
310 # ifdef wxABORT_ON_CONFIG_ERROR
311 # error "wxUSE_BMPBUTTON must be defined."
313 # define wxUSE_BMPBUTTON 0
315 #endif /* !defined(wxUSE_BMPBUTTON) */
318 # ifdef wxABORT_ON_CONFIG_ERROR
319 # error "wxUSE_BUTTON must be defined."
321 # define wxUSE_BUTTON 0
323 #endif /* !defined(wxUSE_BUTTON) */
325 #ifndef wxUSE_CALENDARCTRL
326 # ifdef wxABORT_ON_CONFIG_ERROR
327 # error "wxUSE_CALENDARCTRL must be defined."
329 # define wxUSE_CALENDARCTRL 0
331 #endif /* !defined(wxUSE_CALENDARCTRL) */
334 # ifdef wxABORT_ON_CONFIG_ERROR
335 # error "wxUSE_CARET must be defined."
337 # define wxUSE_CARET 0
339 #endif /* !defined(wxUSE_CARET) */
341 #ifndef wxUSE_CHECKBOX
342 # ifdef wxABORT_ON_CONFIG_ERROR
343 # error "wxUSE_CHECKBOX must be defined."
345 # define wxUSE_CHECKBOX 0
347 #endif /* !defined(wxUSE_CHECKBOX) */
349 #ifndef wxUSE_CHECKLISTBOX
350 # ifdef wxABORT_ON_CONFIG_ERROR
351 # error "wxUSE_CHECKLISTBOX must be defined."
353 # define wxUSE_CHECKLISTBOX 0
355 #endif /* !defined(wxUSE_CHECKLISTBOX) */
358 # ifdef wxABORT_ON_CONFIG_ERROR
359 # error "wxUSE_CHOICE must be defined."
361 # define wxUSE_CHOICE 0
363 #endif /* !defined(wxUSE_CHOICE) */
365 #ifndef wxUSE_CHOICEBOOK
366 # ifdef wxABORT_ON_CONFIG_ERROR
367 # error "wxUSE_CHOICEBOOK must be defined."
369 # define wxUSE_CHOICEBOOK 0
371 #endif /* !defined(wxUSE_CHOICEBOOK) */
373 #ifndef wxUSE_CHOICEDLG
374 # ifdef wxABORT_ON_CONFIG_ERROR
375 # error "wxUSE_CHOICEDLG must be defined."
377 # define wxUSE_CHOICEDLG 0
379 #endif /* !defined(wxUSE_CHOICEDLG) */
381 #ifndef wxUSE_CLIPBOARD
382 # ifdef wxABORT_ON_CONFIG_ERROR
383 # error "wxUSE_CLIPBOARD must be defined."
385 # define wxUSE_CLIPBOARD 0
387 #endif /* !defined(wxUSE_CLIPBOARD) */
389 #ifndef wxUSE_COLOURDLG
390 # ifdef wxABORT_ON_CONFIG_ERROR
391 # error "wxUSE_COLOURDLG must be defined."
393 # define wxUSE_COLOURDLG 0
395 #endif /* !defined(wxUSE_COLOURDLG) */
397 #ifndef wxUSE_COLOURPICKERCTRL
398 # ifdef wxABORT_ON_CONFIG_ERROR
399 # error "wxUSE_COLOURPICKERCTRL must be defined."
401 # define wxUSE_COLOURPICKERCTRL 0
403 #endif /* !defined(wxUSE_COLOURPICKERCTRL) */
405 #ifndef wxUSE_COMBOBOX
406 # ifdef wxABORT_ON_CONFIG_ERROR
407 # error "wxUSE_COMBOBOX must be defined."
409 # define wxUSE_COMBOBOX 0
411 #endif /* !defined(wxUSE_COMBOBOX) */
413 #ifndef wxUSE_COMBOCTRL
414 # ifdef wxABORT_ON_CONFIG_ERROR
415 # error "wxUSE_COMBOCTRL must be defined."
417 # define wxUSE_COMBOCTRL 0
419 #endif /* !defined(wxUSE_COMBOCTRL) */
421 #ifndef wxUSE_DATAOBJ
422 # ifdef wxABORT_ON_CONFIG_ERROR
423 # error "wxUSE_DATAOBJ must be defined."
425 # define wxUSE_DATAOBJ 0
427 #endif /* !defined(wxUSE_DATAOBJ) */
429 #ifndef wxUSE_DATAVIEWCTRL
430 # ifdef wxABORT_ON_CONFIG_ERROR
431 # error "wxUSE_DATAVIEWCTRL must be defined."
433 # define wxUSE_DATAVIEWCTRL 0
435 #endif /* !defined(wxUSE_DATAVIEWCTRL) */
437 #ifndef wxUSE_DATEPICKCTRL
438 # ifdef wxABORT_ON_CONFIG_ERROR
439 # error "wxUSE_DATEPICKCTRL must be defined."
441 # define wxUSE_DATEPICKCTRL 0
443 #endif /* !defined(wxUSE_DATEPICKCTRL) */
445 #ifndef wxUSE_DIRPICKERCTRL
446 # ifdef wxABORT_ON_CONFIG_ERROR
447 # error "wxUSE_DIRPICKERCTRL must be defined."
449 # define wxUSE_DIRPICKERCTRL 0
451 #endif /* !defined(wxUSE_DIRPICKERCTRL) */
453 #ifndef wxUSE_DISPLAY
454 # ifdef wxABORT_ON_CONFIG_ERROR
455 # error "wxUSE_DISPLAY must be defined."
457 # define wxUSE_DISPLAY 0
459 #endif /* !defined(wxUSE_DISPLAY) */
461 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
462 # ifdef wxABORT_ON_CONFIG_ERROR
463 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
465 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
467 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
469 #ifndef wxUSE_FILEDLG
470 # ifdef wxABORT_ON_CONFIG_ERROR
471 # error "wxUSE_FILEDLG must be defined."
473 # define wxUSE_FILEDLG 0
475 #endif /* !defined(wxUSE_FILEDLG) */
477 #ifndef wxUSE_FILEPICKERCTRL
478 # ifdef wxABORT_ON_CONFIG_ERROR
479 # error "wxUSE_FILEPICKERCTRL must be defined."
481 # define wxUSE_FILEPICKERCTRL 0
483 #endif /* !defined(wxUSE_FILEPICKERCTRL) */
485 #ifndef wxUSE_FONTDLG
486 # ifdef wxABORT_ON_CONFIG_ERROR
487 # error "wxUSE_FONTDLG must be defined."
489 # define wxUSE_FONTDLG 0
491 #endif /* !defined(wxUSE_FONTDLG) */
493 #ifndef wxUSE_FONTMAP
494 # ifdef wxABORT_ON_CONFIG_ERROR
495 # error "wxUSE_FONTMAP must be defined."
497 # define wxUSE_FONTMAP 0
499 #endif /* !defined(wxUSE_FONTMAP) */
501 #ifndef wxUSE_FONTPICKERCTRL
502 # ifdef wxABORT_ON_CONFIG_ERROR
503 # error "wxUSE_FONTPICKERCTRL must be defined."
505 # define wxUSE_FONTPICKERCTRL 0
507 #endif /* !defined(wxUSE_FONTPICKERCTRL) */
510 # ifdef wxABORT_ON_CONFIG_ERROR
511 # error "wxUSE_GAUGE must be defined."
513 # define wxUSE_GAUGE 0
515 #endif /* !defined(wxUSE_GAUGE) */
518 # ifdef wxABORT_ON_CONFIG_ERROR
519 # error "wxUSE_GRID must be defined."
521 # define wxUSE_GRID 0
523 #endif /* !defined(wxUSE_GRID) */
526 # ifdef wxABORT_ON_CONFIG_ERROR
527 # error "wxUSE_HELP must be defined."
529 # define wxUSE_HELP 0
531 #endif /* !defined(wxUSE_HELP) */
533 #ifndef wxUSE_HYPERLINKCTRL
534 # ifdef wxABORT_ON_CONFIG_ERROR
535 # error "wxUSE_HYPERLINKCTRL must be defined."
537 # define wxUSE_HYPERLINKCTRL 0
539 #endif /* !defined(wxUSE_HYPERLINKCTRL) */
542 # ifdef wxABORT_ON_CONFIG_ERROR
543 # error "wxUSE_HTML must be defined."
545 # define wxUSE_HTML 0
547 #endif /* !defined(wxUSE_HTML) */
549 #ifndef wxUSE_LIBMSPACK
551 /* set to 0 on platforms that don't have libmspack */
552 # define wxUSE_LIBMSPACK 0
554 # ifdef wxABORT_ON_CONFIG_ERROR
555 # error "wxUSE_LIBMSPACK must be defined."
557 # define wxUSE_LIBMSPACK 0
560 #endif /* !defined(wxUSE_LIBMSPACK) */
562 #ifndef wxUSE_ICO_CUR
563 # ifdef wxABORT_ON_CONFIG_ERROR
564 # error "wxUSE_ICO_CUR must be defined."
566 # define wxUSE_ICO_CUR 0
568 #endif /* !defined(wxUSE_ICO_CUR) */
571 # ifdef wxABORT_ON_CONFIG_ERROR
572 # error "wxUSE_IFF must be defined."
576 #endif /* !defined(wxUSE_IFF) */
578 #ifndef wxUSE_IMAGLIST
579 # ifdef wxABORT_ON_CONFIG_ERROR
580 # error "wxUSE_IMAGLIST must be defined."
582 # define wxUSE_IMAGLIST 0
584 #endif /* !defined(wxUSE_IMAGLIST) */
586 #ifndef wxUSE_JOYSTICK
587 # ifdef wxABORT_ON_CONFIG_ERROR
588 # error "wxUSE_JOYSTICK must be defined."
590 # define wxUSE_JOYSTICK 0
592 #endif /* !defined(wxUSE_JOYSTICK) */
594 #ifndef wxUSE_LISTBOOK
595 # ifdef wxABORT_ON_CONFIG_ERROR
596 # error "wxUSE_LISTBOOK must be defined."
598 # define wxUSE_LISTBOOK 0
600 #endif /* !defined(wxUSE_LISTBOOK) */
602 #ifndef wxUSE_LISTBOX
603 # ifdef wxABORT_ON_CONFIG_ERROR
604 # error "wxUSE_LISTBOX must be defined."
606 # define wxUSE_LISTBOX 0
608 #endif /* !defined(wxUSE_LISTBOX) */
610 #ifndef wxUSE_LISTCTRL
611 # ifdef wxABORT_ON_CONFIG_ERROR
612 # error "wxUSE_LISTCTRL must be defined."
614 # define wxUSE_LISTCTRL 0
616 #endif /* !defined(wxUSE_LISTCTRL) */
619 # ifdef wxABORT_ON_CONFIG_ERROR
620 # error "wxUSE_LOGGUI must be defined."
622 # define wxUSE_LOGGUI 0
624 #endif /* !defined(wxUSE_LOGGUI) */
626 #ifndef wxUSE_LOGWINDOW
627 # ifdef wxABORT_ON_CONFIG_ERROR
628 # error "wxUSE_LOGWINDOW must be defined."
630 # define wxUSE_LOGWINDOW 0
632 #endif /* !defined(wxUSE_LOGWINDOW) */
634 #ifndef wxUSE_LOG_DIALOG
635 # ifdef wxABORT_ON_CONFIG_ERROR
636 # error "wxUSE_LOG_DIALOG must be defined."
638 # define wxUSE_LOG_DIALOG 0
640 #endif /* !defined(wxUSE_LOG_DIALOG) */
643 # ifdef wxABORT_ON_CONFIG_ERROR
644 # error "wxUSE_MDI must be defined."
648 #endif /* !defined(wxUSE_MDI) */
650 #ifndef wxUSE_MDI_ARCHITECTURE
651 # ifdef wxABORT_ON_CONFIG_ERROR
652 # error "wxUSE_MDI_ARCHITECTURE must be defined."
654 # define wxUSE_MDI_ARCHITECTURE 0
656 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
659 # ifdef wxABORT_ON_CONFIG_ERROR
660 # error "wxUSE_MENUS must be defined."
662 # define wxUSE_MENUS 0
664 #endif /* !defined(wxUSE_MENUS) */
667 # ifdef wxABORT_ON_CONFIG_ERROR
668 # error "wxUSE_MSGDLG must be defined."
670 # define wxUSE_MSGDLG 0
672 #endif /* !defined(wxUSE_MSGDLG) */
674 #ifndef wxUSE_NOTEBOOK
675 # ifdef wxABORT_ON_CONFIG_ERROR
676 # error "wxUSE_NOTEBOOK must be defined."
678 # define wxUSE_NOTEBOOK 0
680 #endif /* !defined(wxUSE_NOTEBOOK) */
682 #ifndef wxUSE_ODCOMBOBOX
683 # ifdef wxABORT_ON_CONFIG_ERROR
684 # error "wxUSE_ODCOMBOBOX must be defined."
686 # define wxUSE_ODCOMBOBOX 0
688 #endif /* !defined(wxUSE_ODCOMBOBOX) */
690 #ifndef wxUSE_PALETTE
691 # ifdef wxABORT_ON_CONFIG_ERROR
692 # error "wxUSE_PALETTE must be defined."
694 # define wxUSE_PALETTE 0
696 #endif /* !defined(wxUSE_PALETTE) */
698 #ifndef wxUSE_POPUPWIN
699 # ifdef wxABORT_ON_CONFIG_ERROR
700 # error "wxUSE_POPUPWIN must be defined."
702 # define wxUSE_POPUPWIN 0
704 #endif /* !defined(wxUSE_POPUPWIN) */
706 #ifndef wxUSE_PRINTING_ARCHITECTURE
707 # ifdef wxABORT_ON_CONFIG_ERROR
708 # error "wxUSE_PRINTING_ARCHITECTURE must be defined."
710 # define wxUSE_PRINTING_ARCHITECTURE 0
712 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
714 #ifndef wxUSE_RADIOBOX
715 # ifdef wxABORT_ON_CONFIG_ERROR
716 # error "wxUSE_RADIOBOX must be defined."
718 # define wxUSE_RADIOBOX 0
720 #endif /* !defined(wxUSE_RADIOBOX) */
722 #ifndef wxUSE_RADIOBTN
723 # ifdef wxABORT_ON_CONFIG_ERROR
724 # error "wxUSE_RADIOBTN must be defined."
726 # define wxUSE_RADIOBTN 0
728 #endif /* !defined(wxUSE_RADIOBTN) */
731 # ifdef wxABORT_ON_CONFIG_ERROR
732 # error "wxUSE_SASH must be defined."
734 # define wxUSE_SASH 0
736 #endif /* !defined(wxUSE_SASH) */
738 #ifndef wxUSE_SCROLLBAR
739 # ifdef wxABORT_ON_CONFIG_ERROR
740 # error "wxUSE_SCROLLBAR must be defined."
742 # define wxUSE_SCROLLBAR 0
744 #endif /* !defined(wxUSE_SCROLLBAR) */
747 # ifdef wxABORT_ON_CONFIG_ERROR
748 # error "wxUSE_SLIDER must be defined."
750 # define wxUSE_SLIDER 0
752 #endif /* !defined(wxUSE_SLIDER) */
755 # ifdef wxABORT_ON_CONFIG_ERROR
756 # error "wxUSE_SOUND must be defined."
758 # define wxUSE_SOUND 0
760 #endif /* !defined(wxUSE_SOUND) */
762 #ifndef wxUSE_SPINBTN
763 # ifdef wxABORT_ON_CONFIG_ERROR
764 # error "wxUSE_SPINBTN must be defined."
766 # define wxUSE_SPINBTN 0
768 #endif /* !defined(wxUSE_SPINBTN) */
770 #ifndef wxUSE_SPINCTRL
771 # ifdef wxABORT_ON_CONFIG_ERROR
772 # error "wxUSE_SPINCTRL must be defined."
774 # define wxUSE_SPINCTRL 0
776 #endif /* !defined(wxUSE_SPINCTRL) */
779 # ifdef wxABORT_ON_CONFIG_ERROR
780 # error "wxUSE_SPLASH must be defined."
782 # define wxUSE_SPLASH 0
784 #endif /* !defined(wxUSE_SPLASH) */
786 #ifndef wxUSE_SPLITTER
787 # ifdef wxABORT_ON_CONFIG_ERROR
788 # error "wxUSE_SPLITTER must be defined."
790 # define wxUSE_SPLITTER 0
792 #endif /* !defined(wxUSE_SPLITTER) */
794 #ifndef wxUSE_STATBMP
795 # ifdef wxABORT_ON_CONFIG_ERROR
796 # error "wxUSE_STATBMP must be defined."
798 # define wxUSE_STATBMP 0
800 #endif /* !defined(wxUSE_STATBMP) */
802 #ifndef wxUSE_STATBOX
803 # ifdef wxABORT_ON_CONFIG_ERROR
804 # error "wxUSE_STATBOX must be defined."
806 # define wxUSE_STATBOX 0
808 #endif /* !defined(wxUSE_STATBOX) */
810 #ifndef wxUSE_STATLINE
811 # ifdef wxABORT_ON_CONFIG_ERROR
812 # error "wxUSE_STATLINE must be defined."
814 # define wxUSE_STATLINE 0
816 #endif /* !defined(wxUSE_STATLINE) */
818 #ifndef wxUSE_STATTEXT
819 # ifdef wxABORT_ON_CONFIG_ERROR
820 # error "wxUSE_STATTEXT must be defined."
822 # define wxUSE_STATTEXT 0
824 #endif /* !defined(wxUSE_STATTEXT) */
826 #ifndef wxUSE_STATUSBAR
827 # ifdef wxABORT_ON_CONFIG_ERROR
828 # error "wxUSE_STATUSBAR must be defined."
830 # define wxUSE_STATUSBAR 0
832 #endif /* !defined(wxUSE_STATUSBAR) */
834 #ifndef wxUSE_TAB_DIALOG
835 # ifdef wxABORT_ON_CONFIG_ERROR
836 # error "wxUSE_TAB_DIALOG must be defined."
838 # define wxUSE_TAB_DIALOG 0
840 #endif /* !defined(wxUSE_TAB_DIALOG) */
842 #ifndef wxUSE_TEXTCTRL
843 # ifdef wxABORT_ON_CONFIG_ERROR
844 # error "wxUSE_TEXTCTRL must be defined."
846 # define wxUSE_TEXTCTRL 0
848 #endif /* !defined(wxUSE_TEXTCTRL) */
850 #ifndef wxUSE_TIPWINDOW
851 # ifdef wxABORT_ON_CONFIG_ERROR
852 # error "wxUSE_TIPWINDOW must be defined."
854 # define wxUSE_TIPWINDOW 0
856 #endif /* !defined(wxUSE_TIPWINDOW) */
858 #ifndef wxUSE_TOOLBAR
859 # ifdef wxABORT_ON_CONFIG_ERROR
860 # error "wxUSE_TOOLBAR must be defined."
862 # define wxUSE_TOOLBAR 0
864 #endif /* !defined(wxUSE_TOOLBAR) */
866 #ifndef wxUSE_TOOLTIPS
867 # ifdef wxABORT_ON_CONFIG_ERROR
868 # error "wxUSE_TOOLTIPS must be defined."
870 # define wxUSE_TOOLTIPS 0
872 #endif /* !defined(wxUSE_TOOLTIPS) */
874 #ifndef wxUSE_TREECTRL
875 # ifdef wxABORT_ON_CONFIG_ERROR
876 # error "wxUSE_TREECTRL must be defined."
878 # define wxUSE_TREECTRL 0
880 #endif /* !defined(wxUSE_TREECTRL) */
882 #ifndef wxUSE_VALIDATORS
883 # ifdef wxABORT_ON_CONFIG_ERROR
884 # error "wxUSE_VALIDATORS must be defined."
886 # define wxUSE_VALIDATORS 0
888 #endif /* !defined(wxUSE_VALIDATORS) */
890 #ifndef wxUSE_WXHTML_HELP
891 # ifdef wxABORT_ON_CONFIG_ERROR
892 # error "wxUSE_WXHTML_HELP must be defined."
894 # define wxUSE_WXHTML_HELP 0
896 #endif /* !defined(wxUSE_WXHTML_HELP) */
899 # ifdef wxABORT_ON_CONFIG_ERROR
900 # error "wxUSE_XRC must be defined."
904 #endif /* !defined(wxUSE_XRC) */
906 #endif /* wxUSE_GUI */
909 check consistency of the settings
912 #if WXWIN_COMPATIBILITY_2_4
913 # if !WXWIN_COMPATIBILITY_2_6
914 # ifdef wxABORT_ON_CONFIG_ERROR
915 # error "2.4.X compatibility requires 2.6.X compatibility"
917 # undef WXWIN_COMPATIBILITY_2_6
918 # define WXWIN_COMPATIBILITY_2_6 1
921 #endif /* WXWIN_COMPATIBILITY_2_4 */
923 #if wxUSE_ARCHIVE_STREAMS
925 # ifdef wxABORT_ON_CONFIG_ERROR
926 # error "wxArchive requires wxUSE_DATETIME"
928 # undef wxUSE_ARCHIVE_STREAMS
929 # define wxUSE_ARCHIVE_STREAMS 0
932 #endif /* wxUSE_ARCHIVE_STREAMS */
934 #if wxUSE_CRASHREPORT && !wxUSE_ON_FATAL_EXCEPTION
935 # ifdef wxABORT_ON_CONFIG_ERROR
936 # error "wxUSE_CRASHREPORT requires wxUSE_ON_FATAL_EXCEPTION"
938 # undef wxUSE_CRASHREPORT
939 # define wxUSE_CRASHREPORT 0
941 #endif /* wxUSE_CRASHREPORT */
943 #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
945 # ifdef wxABORT_ON_CONFIG_ERROR
946 # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
948 # undef wxUSE_PROTOCOL
949 # define wxUSE_PROTOCOL 1
952 #endif /* wxUSE_PROTOCOL_XXX */
956 # ifdef wxABORT_ON_CONFIG_ERROR
957 # error "wxUSE_URL requires wxUSE_PROTOCOL"
959 # undef wxUSE_PROTOCOL
960 # define wxUSE_PROTOCOL 1
963 #endif /* wxUSE_URL */
967 # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
968 # ifdef wxABORT_ON_CONFIG_ERROR
969 # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
971 # undef wxUSE_SOCKETS
972 # define wxUSE_SOCKETS 1
978 # ifdef wxABORT_ON_CONFIG_ERROR
979 # error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
981 # undef wxUSE_STREAMS
982 # define wxUSE_STREAMS 1
985 #endif /* wxUSE_PROTOCOL */
987 /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
989 # if !wxUSE_FILESYSTEM
990 # ifdef wxABORT_ON_CONFIG_ERROR
991 # error "wxHTML requires wxFileSystem"
993 # undef wxUSE_FILESYSTEM
994 # define wxUSE_FILESYSTEM 1
997 #endif /* wxUSE_HTML */
1001 # ifdef wxABORT_ON_CONFIG_ERROR
1002 # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
1004 # undef wxUSE_STREAMS
1005 # define wxUSE_STREAMS 1
1008 #endif /* wxUSE_FILESYSTEM */
1011 # if !wxUSE_PROTOCOL
1012 # ifdef wxABORT_ON_CONFIG_ERROR
1013 # error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
1015 # undef wxUSE_PROTOCOL
1016 # define wxUSE_PROTOCOL 1
1019 #endif /* wxUSE_FS_INET */
1021 #if wxUSE_STOPWATCH || wxUSE_DATETIME
1022 # if !wxUSE_LONGLONG
1023 # ifdef wxABORT_ON_CONFIG_ERROR
1024 # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
1026 # undef wxUSE_LONGLONG
1027 # define wxUSE_LONGLONG 1
1030 #endif /* wxUSE_STOPWATCH */
1032 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
1033 # ifdef wxABORT_ON_CONFIG_ERROR
1034 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
1036 # undef wxUSE_TEXTFILE
1037 # define wxUSE_TEXTFILE 1
1039 #endif /* wxUSE_MIMETYPE */
1042 # if !wxUSE_DATETIME
1043 # ifdef wxABORT_ON_CONFIG_ERROR
1044 # error "wxODBC requires wxUSE_DATETIME"
1047 # define wxUSE_ODBC 0
1050 #endif /* wxUSE_ODBC */
1052 #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
1053 # ifdef wxABORT_ON_CONFIG_ERROR
1054 # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
1056 # undef wxUSE_TEXTBUFFER
1057 # define wxUSE_TEXTBUFFER 1
1059 #endif /* wxUSE_TEXTFILE */
1061 #if wxUSE_TEXTFILE && !wxUSE_FILE
1062 # ifdef wxABORT_ON_CONFIG_ERROR
1063 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
1066 # define wxUSE_FILE 1
1068 #endif /* wxUSE_TEXTFILE */
1070 #if wxUSE_XML && !wxUSE_WCHAR_T
1071 # ifdef wxABORT_ON_CONFIG_ERROR
1072 # error "wxUSE_XML requires wxUSE_WCHAR_T"
1075 # define wxUSE_XML 0
1077 #endif /* wxUSE_XML */
1079 #if !wxUSE_DYNLIB_CLASS
1080 # if wxUSE_DYNAMIC_LOADER
1081 # ifdef wxABORT_ON_CONFIG_ERROR
1082 # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
1084 # define wxUSE_DYNLIB_CLASS 1
1087 #endif /* wxUSE_DYNLIB_CLASS */
1091 # ifdef wxABORT_ON_CONFIG_ERROR
1092 # error "wxZip requires wxZlib"
1095 # define wxUSE_ZLIB 1
1098 # if !wxUSE_ARCHIVE_STREAMS
1099 # ifdef wxABORT_ON_CONFIG_ERROR
1100 # error "wxZip requires wxArchive"
1102 # undef wxUSE_ARCHIVE_STREAMS
1103 # define wxUSE_ARCHIVE_STREAMS 1
1106 #endif /* wxUSE_ZIPSTREAM */
1108 /* the rest of the tests is for the GUI settings only */
1111 #if wxUSE_BUTTON || \
1112 wxUSE_CALENDARCTRL || \
1115 wxUSE_BMPBUTTON || \
1117 wxUSE_CHECKLISTBOX || \
1126 wxUSE_SCROLLBAR || \
1134 wxUSE_STATUSBAR || \
1138 # if !wxUSE_CONTROLS
1139 # ifdef wxABORT_ON_CONFIG_ERROR
1140 # error "wxUSE_CONTROLS unset but some controls used"
1142 # undef wxUSE_CONTROLS
1143 # define wxUSE_CONTROLS 1
1146 #endif /* controls */
1150 # ifdef wxABORT_ON_CONFIG_ERROR
1151 # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1153 # undef wxUSE_BUTTON
1154 # define wxUSE_BUTTON 1
1157 #endif /* wxUSE_BMPBUTTON */
1159 #if wxUSE_NOTEBOOK || wxUSE_LISTBOOK || wxUSE_CHOICEBOOK
1160 # if defined(wxUSE_BOOKCTRL) && !wxUSE_BOOKCTRL
1161 # ifdef wxABORT_ON_CONFIG_ERROR
1162 # error "wxUSE_BOOKCTRL must be set."
1164 # undef wxUSE_BOOKCTRL
1168 # ifndef wxUSE_BOOKCTRL
1169 # define wxUSE_BOOKCTRL 1
1171 #endif /* wxUSE_NOTEBOOK */
1174 # if !wxUSE_LISTCTRL
1175 # ifdef wxABORT_ON_CONFIG_ERROR
1176 # error "wxListbook requires wxListCtrl"
1178 # undef wxUSE_LISTCTRL
1179 # define wxUSE_LISTCTRL 1
1182 #endif /* wxUSE_LISTBOOK */
1184 #if wxUSE_CHOICEBOOK
1186 # ifdef wxABORT_ON_CONFIG_ERROR
1187 # error "wxChoicebook requires wxChoice"
1189 # undef wxUSE_CHOICE
1190 # define wxUSE_CHOICE 1
1193 #endif /* wxUSE_CHOICEBOOK */
1195 /* don't attempt to use native status bar on the platforms not having it */
1196 #ifndef wxUSE_NATIVE_STATUSBAR
1197 # define wxUSE_NATIVE_STATUSBAR 0
1198 #elif wxUSE_NATIVE_STATUSBAR
1199 # if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1200 defined(__WXMAC__) || \
1201 defined(__WXPALMOS__) )
1202 # undef wxUSE_NATIVE_STATUSBAR
1203 # define wxUSE_NATIVE_STATUSBAR 0
1207 /* wxUniv-specific dependencies */
1208 #if defined(__WXUNIVERSAL__)
1209 # if (wxUSE_COMBOBOX || wxUSE_MENUS) && !wxUSE_POPUPWIN
1210 # ifdef wxABORT_ON_CONFIG_ERROR
1211 # error "wxUSE_POPUPWIN must be defined to use comboboxes/menus"
1213 # undef wxUSE_POPUPWIN
1214 # define wxUSE_POPUPWIN 1
1220 # ifdef wxABORT_ON_CONFIG_ERROR
1221 # error "wxComboBox requires wxListBox in wxUniversal"
1223 # undef wxUSE_LISTBOX
1224 # define wxUSE_LISTBOX 1
1227 # endif /* wxUSE_COMBOBOX */
1230 # if !wxUSE_CHECKBOX
1231 # ifdef wxABORT_ON_CONFIG_ERROR
1232 # error "wxUSE_RADIOBTN requires wxUSE_CHECKBOX in wxUniversal"
1234 # undef wxUSE_CHECKBOX
1235 # define wxUSE_CHECKBOX 1
1238 # endif /* wxUSE_RADIOBTN */
1242 # ifdef wxABORT_ON_CONFIG_ERROR
1243 # error "wxTextCtrl requires wxCaret in wxUniversal"
1246 # define wxUSE_CARET 1
1248 # endif /* wxUSE_CARET */
1250 # if !wxUSE_SCROLLBAR
1251 # ifdef wxABORT_ON_CONFIG_ERROR
1252 # error "wxTextCtrl requires wxScrollBar in wxUniversal"
1254 # undef wxUSE_SCROLLBAR
1255 # define wxUSE_SCROLLBAR 1
1257 # endif /* wxUSE_SCROLLBAR */
1258 # endif /* wxUSE_TEXTCTRL */
1259 #endif /* __WXUNIVERSAL__ */
1261 /* wxGTK-specific dependencies */
1263 # ifndef __WXUNIVERSAL__
1264 # if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS
1265 # ifdef wxABORT_ON_CONFIG_ERROR
1266 # error "MDI requires wxUSE_MENUS in wxGTK"
1269 # define wxUSE_MENUS 1
1272 # endif /* !__WXUNIVERSAL__ */
1276 # ifdef wxABORT_ON_CONFIG_ERROR
1277 # error "wxJoystick requires threads in wxGTK"
1279 # undef wxUSE_JOYSTICK
1280 # define wxUSE_JOYSTICK 0
1284 #endif /* wxGTK && !wxUniv */
1286 /* Hopefully we can emulate these dialogs in due course */
1287 #if defined(__SMARTPHONE__) && defined(__WXWINCE__)
1288 # ifdef wxUSE_COLOURDLG
1289 # undef wxUSE_COLOURDLG
1290 # define wxUSE_COLOURDLG 0
1292 #endif /* __SMARTPHONE__ && __WXWINCE__ */
1295 /* generic controls dependencies */
1296 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1297 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1298 /* all common controls are needed by these dialogs */
1299 # if !defined(wxUSE_CHOICE) || \
1300 !defined(wxUSE_TEXTCTRL) || \
1301 !defined(wxUSE_BUTTON) || \
1302 !defined(wxUSE_CHECKBOX) || \
1303 !defined(wxUSE_STATTEXT)
1304 # ifdef wxABORT_ON_CONFIG_ERROR
1305 # error "These common controls are needed by common dialogs"
1307 # undef wxUSE_CHOICE
1308 # define wxUSE_CHOICE 1
1309 # undef wxUSE_TEXTCTRL
1310 # define wxUSE_TEXTCTRL 1
1311 # undef wxUSE_BUTTON
1312 # define wxUSE_BUTTON 1
1313 # undef wxUSE_CHECKBOX
1314 # define wxUSE_CHECKBOX 1
1315 # undef wxUSE_STATTEXT
1316 # define wxUSE_STATTEXT 1
1320 #endif /* !wxMSW || wxUniv */
1322 /* common dependencies */
1323 #if wxUSE_CALENDARCTRL
1324 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1325 # ifdef wxABORT_ON_CONFIG_ERROR
1326 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1328 # undef wxUSE_SPINBTN
1329 # undef wxUSE_COMBOBOX
1330 # define wxUSE_SPINBTN 1
1331 # define wxUSE_COMBOBOX 1
1335 # if !wxUSE_DATETIME
1336 # ifdef wxABORT_ON_CONFIG_ERROR
1337 # error "wxCalendarCtrl requires wxUSE_DATETIME"
1339 # undef wxUSE_DATETIME
1340 # define wxUSE_DATETIME 1
1343 #endif /* wxUSE_CALENDARCTRL */
1345 #if wxUSE_DATEPICKCTRL
1346 # if !wxUSE_DATETIME
1347 # ifdef wxABORT_ON_CONFIG_ERROR
1348 # error "wxDatePickerCtrl requires wxUSE_DATETIME"
1350 # undef wxUSE_DATETIME
1351 # define wxUSE_DATETIME 1
1354 #endif /* wxUSE_DATEPICKCTRL */
1356 #if wxUSE_CHECKLISTBOX
1358 # ifdef wxABORT_ON_CONFIG_ERROR
1359 # error "wxCheckListBox requires wxListBox"
1361 # undef wxUSE_LISTBOX
1362 # define wxUSE_LISTBOX 1
1365 #endif /* wxUSE_CHECKLISTBOX */
1369 # ifdef wxABORT_ON_CONFIG_ERROR
1370 # error "Choice dialogs requires wxListBox"
1372 # undef wxUSE_LISTBOX
1373 # define wxUSE_LISTBOX 1
1376 #endif /* wxUSE_CHOICEDLG */
1379 # if !wxUSE_BMPBUTTON
1380 # ifdef wxABORT_ON_CONFIG_ERROR
1381 # error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1383 # undef wxUSE_BMPBUTTON
1384 # define wxUSE_BMPBUTTON 1
1388 # if !wxUSE_CHOICEDLG
1389 # ifdef wxABORT_ON_CONFIG_ERROR
1390 # error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1392 # undef wxUSE_CHOICEDLG
1393 # define wxUSE_CHOICEDLG 1
1396 #endif /* wxUSE_HELP */
1398 #if wxUSE_WXHTML_HELP
1399 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
1400 # ifdef wxABORT_ON_CONFIG_ERROR
1401 # error "Built in help controller can't be compiled"
1404 # define wxUSE_HELP 1
1406 # define wxUSE_HTML 1
1407 # undef wxUSE_COMBOBOX
1408 # define wxUSE_COMBOBOX 1
1409 # undef wxUSE_NOTEBOOK
1410 # define wxUSE_NOTEBOOK 1
1411 # undef wxUSE_SPINCTRL
1412 # define wxUSE_SPINCTRL 1
1415 #endif /* wxUSE_WXHTML_HELP */
1419 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1420 user explicitly wants this and disable all other features that require
1423 # if wxUSE_DRAGIMAGE
1424 # ifdef wxABORT_ON_CONFIG_ERROR
1425 # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1427 # undef wxUSE_DRAGIMAGE
1428 # define wxUSE_DRAGIMAGE 0
1433 # ifdef wxABORT_ON_CONFIG_ERROR
1434 # error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1436 # undef wxUSE_LIBPNG
1437 # define wxUSE_LIBPNG 0
1442 # ifdef wxABORT_ON_CONFIG_ERROR
1443 # error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1445 # undef wxUSE_LIBJPEG
1446 # define wxUSE_LIBJPEG 0
1451 # ifdef wxABORT_ON_CONFIG_ERROR
1452 # error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1454 # undef wxUSE_LIBTIFF
1455 # define wxUSE_LIBTIFF 0
1460 # ifdef wxABORT_ON_CONFIG_ERROR
1461 # error "wxUSE_GIF requires wxUSE_IMAGE"
1464 # define wxUSE_GIF 0
1469 # ifdef wxABORT_ON_CONFIG_ERROR
1470 # error "wxUSE_PNM requires wxUSE_IMAGE"
1473 # define wxUSE_PNM 0
1478 # ifdef wxABORT_ON_CONFIG_ERROR
1479 # error "wxUSE_PCX requires wxUSE_IMAGE"
1482 # define wxUSE_PCX 0
1487 # ifdef wxABORT_ON_CONFIG_ERROR
1488 # error "wxUSE_IFF requires wxUSE_IMAGE"
1491 # define wxUSE_IFF 0
1496 # ifdef wxABORT_ON_CONFIG_ERROR
1497 # error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1499 # undef wxUSE_TOOLBAR
1500 # define wxUSE_TOOLBAR 0
1505 # ifdef wxABORT_ON_CONFIG_ERROR
1506 # error "wxUSE_XPM requires wxUSE_IMAGE"
1509 # define wxUSE_XPM 0
1513 #endif /* !wxUSE_IMAGE */
1515 #if wxUSE_DOC_VIEW_ARCHITECTURE
1517 # ifdef wxABORT_ON_CONFIG_ERROR
1518 # error "DocView requires wxUSE_MENUS"
1521 # define wxUSE_MENUS 1
1525 # if !wxUSE_CHOICEDLG
1526 # ifdef wxABORT_ON_CONFIG_ERROR
1527 # error "DocView requires wxUSE_CHOICEDLG"
1529 # undef wxUSE_CHOICEDLG
1530 # define wxUSE_CHOICEDLG 1
1534 # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1535 # ifdef wxABORT_ON_CONFIG_ERROR
1536 # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1538 # undef wxUSE_STREAMS
1539 # define wxUSE_STREAMS 1
1542 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1544 #if wxUSE_PRINTING_ARCHITECTURE
1545 # if !wxUSE_COMBOBOX
1546 # ifdef wxABORT_ON_CONFIG_ERROR
1547 # error "Print dialog requires wxUSE_COMBOBOX"
1549 # undef wxUSE_COMBOBOX
1550 # define wxUSE_COMBOBOX 1
1553 #endif /* wxUSE_PRINTING_ARCHITECTURE */
1555 #if wxUSE_MDI_ARCHITECTURE
1557 # ifdef wxABORT_ON_CONFIG_ERROR
1558 # error "MDI requires wxUSE_MDI"
1561 # define wxUSE_MDI 1
1565 # if !wxUSE_DOC_VIEW_ARCHITECTURE
1566 # ifdef wxABORT_ON_CONFIG_ERROR
1567 # error "wxUSE_MDI_ARCHITECTURE requires wxUSE_DOC_VIEW_ARCHITECTURE"
1569 # undef wxUSE_DOC_VIEW_ARCHITECTURE
1570 # define wxUSE_DOC_VIEW_ARCHITECTURE 1
1573 #endif /* wxUSE_MDI_ARCHITECTURE */
1576 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1577 # ifdef wxABORT_ON_CONFIG_ERROR
1578 # error "wxUSE_FILEDLG is required by wxUSE_DOC_VIEW_ARCHITECTURE and wxUSE_WXHTML_HELP!"
1580 # undef wxUSE_FILEDLG
1581 # define wxUSE_FILEDLG 1
1584 #endif /* wxUSE_FILEDLG */
1586 #if !wxUSE_GAUGE || !wxUSE_BUTTON
1587 # if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
1588 # ifdef wxABORT_ON_CONFIG_ERROR
1589 # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
1592 # undef wxUSE_BUTTON
1593 # define wxUSE_GAUGE 1
1594 # define wxUSE_BUTTON 1
1597 #endif /* !wxUSE_GAUGE */
1600 # if wxUSE_FONTDLG || \
1602 wxUSE_CHOICEDLG || \
1603 wxUSE_NUMBERDLG || \
1606 wxUSE_STARTUP_TIPS || \
1608 # ifdef wxABORT_ON_CONFIG_ERROR
1609 # error "Common and generic dialogs require wxUSE_BUTTON"
1611 # undef wxUSE_BUTTON
1612 # define wxUSE_BUTTON 1
1615 #endif /* !wxUSE_BUTTON */
1618 # if wxUSE_TOOLBAR_NATIVE
1619 # ifdef wxABORT_ON_CONFIG_ERROR
1620 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1622 # undef wxUSE_TOOLBAR_NATIVE
1623 # define wxUSE_TOOLBAR_NATIVE 0
1629 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1630 # ifdef wxABORT_ON_CONFIG_ERROR
1631 # error "wxImageList must be compiled as well"
1633 # undef wxUSE_IMAGLIST
1634 # define wxUSE_IMAGLIST 1
1637 #endif /* !wxUSE_IMAGLIST */
1640 # ifdef wxABORT_ON_CONFIG_ERROR
1641 /* FIXME: should compile without it, of course, but doesn't */
1642 # error "wxMessageBox is always needed"
1644 # undef wxUSE_MSGDLG
1645 # define wxUSE_MSGDLG 1
1650 # if !wxUSE_RADIOBTN
1651 # ifdef wxABORT_ON_CONFIG_ERROR
1652 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
1654 # undef wxUSE_RADIOBTN
1655 # define wxUSE_RADIOBTN 1
1658 # if !wxUSE_STATBOX && !defined(__WXPALMOS__)
1659 # ifdef wxABORT_ON_CONFIG_ERROR
1660 # error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
1662 # undef wxUSE_STATBOX
1663 # define wxUSE_STATBOX 1
1666 #endif /* wxUSE_RADIOBOX */
1669 # if !wxUSE_TEXTCTRL
1670 # ifdef wxABORT_ON_CONFIG_ERROR
1671 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1673 # undef wxUSE_TEXTCTRL
1674 # define wxUSE_TEXTCTRL 1
1677 #endif /* wxUSE_LOGWINDOW */
1679 #if wxUSE_LOG_DIALOG
1680 # if !wxUSE_LISTCTRL || !wxUSE_BUTTON
1681 # ifdef wxABORT_ON_CONFIG_ERROR
1682 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
1684 # undef wxUSE_LISTCTRL
1685 # define wxUSE_LISTCTRL 1
1686 # undef wxUSE_BUTTON
1687 # define wxUSE_BUTTON 1
1690 #endif /* wxUSE_LOG_DIALOG */
1692 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
1693 # ifdef wxABORT_ON_CONFIG_ERROR
1694 # error "wxClipboard requires wxDataObject"
1696 # undef wxUSE_DATAOBJ
1697 # define wxUSE_DATAOBJ 1
1699 #endif /* wxUSE_CLIPBOARD */
1701 #if wxUSE_WX_RESOURCES && !wxUSE_PROLOGIO
1702 # ifdef wxABORT_ON_CONFIG_ERROR
1703 # error "wxr resources require PrologIO"
1705 # undef wxUSE_PROLOGIO
1706 # define wxUSE_PROLOGIO 1
1708 #endif /* wxUSE_WX_RESOURCES */
1710 #if wxUSE_XRC && !wxUSE_XML
1711 # ifdef wxABORT_ON_CONFIG_ERROR
1712 # error "wxUSE_XRC requires wxUSE_XML"
1715 # define wxUSE_XRC 0
1717 #endif /* wxUSE_XRC */
1719 #if wxUSE_SOCKETS && !wxUSE_STOPWATCH
1720 # ifdef wxABORT_ON_CONFIG_ERROR
1721 # error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
1723 # undef wxUSE_SOCKETS
1724 # define wxUSE_SOCKETS 0
1726 #endif /* wxUSE_SOCKETS */
1728 #endif /* wxUSE_GUI */