]>
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(__WXDFB__)
31 # include "wx/dfb/chkconf.h"
32 #elif defined(__WXMOTIF__)
33 # include "wx/motif/chkconf.h"
34 #elif defined(__WXX11__)
35 # include "wx/x11/chkconf.h"
38 #ifdef __WXUNIVERSAL__
39 # include "wx/univ/chkconf.h"
43 this global setting determines what should we do if the setting FOO
44 requires BAR and BAR is not set: we can either silently unset FOO as well
45 (do this if you're trying to build the smallest possible library) or give an
46 error and abort (default as leads to least surprizing behaviour)
48 #define wxABORT_ON_CONFIG_ERROR
54 /* GUI build by default */
55 #if !defined(wxUSE_GUI)
57 #endif /* !defined(wxUSE_GUI) */
60 If we're compiling without support for threads/exceptions we have to
61 disable the corresponding features.
65 # define wxUSE_THREADS 0
66 #endif /* wxNO_THREADS */
68 #ifdef wxNO_EXCEPTIONS
69 # undef wxUSE_EXCEPTIONS
70 # define wxUSE_EXCEPTIONS 0
71 #endif /* wxNO_EXCEPTIONS */
73 /* we also must disable exceptions if compiler doesn't support them */
74 #if defined(_MSC_VER) && !defined(_CPPUNWIND)
75 # undef wxUSE_EXCEPTIONS
76 # define wxUSE_EXCEPTIONS 0
77 #endif /* VC++ without exceptions support */
81 tests for non GUI features
83 please keep the options in alphabetical order!
86 #ifndef wxUSE_CRASHREPORT
87 /* this one is special: as currently it is Windows-only, don't force it
88 to be defined on other platforms */
89 # if defined(wxABORT_ON_CONFIG_ERROR) && defined(__WXMSW__)
90 # error "wxUSE_CRASHREPORT must be defined."
92 # define wxUSE_CRASHREPORT 0
94 #endif /* !defined(wxUSE_CRASHREPORT) */
96 #ifndef wxUSE_DYNLIB_CLASS
97 # ifdef wxABORT_ON_CONFIG_ERROR
98 # error "wxUSE_DYNLIB_CLASS must be defined."
100 # define wxUSE_DYNLIB_CLASS 0
102 #endif /* !defined(wxUSE_DYNLIB_CLASS) */
104 #ifndef wxUSE_EXCEPTIONS
105 # ifdef wxABORT_ON_CONFIG_ERROR
106 # error "wxUSE_EXCEPTIONS must be defined."
108 # define wxUSE_EXCEPTIONS 0
110 #endif /* !defined(wxUSE_EXCEPTIONS) */
112 #ifndef wxUSE_FILESYSTEM
113 # ifdef wxABORT_ON_CONFIG_ERROR
114 # error "wxUSE_FILESYSTEM must be defined."
116 # define wxUSE_FILESYSTEM 0
118 #endif /* !defined(wxUSE_FILESYSTEM) */
120 /* don't give an error about this one yet, it's not fully implemented */
121 #ifndef wxUSE_FSVOLUME
122 # define wxUSE_FSVOLUME 0
123 #endif /* !defined(wxUSE_FSVOLUME) */
125 #ifndef wxUSE_DYNAMIC_LOADER
126 # ifdef wxABORT_ON_CONFIG_ERROR
127 # error "wxUSE_DYNAMIC_LOADER must be defined."
129 # define wxUSE_DYNAMIC_LOADER 0
131 #endif /* !defined(wxUSE_DYNAMIC_LOADER) */
134 # ifdef wxABORT_ON_CONFIG_ERROR
135 # error "wxUSE_LOG must be defined."
139 #endif /* !defined(wxUSE_LOG) */
141 #ifndef wxUSE_LONGLONG
142 # ifdef wxABORT_ON_CONFIG_ERROR
143 # error "wxUSE_LONGLONG must be defined."
145 # define wxUSE_LONGLONG 0
147 #endif /* !defined(wxUSE_LONGLONG) */
149 #ifndef wxUSE_MIMETYPE
150 # ifdef wxABORT_ON_CONFIG_ERROR
151 # error "wxUSE_MIMETYPE must be defined."
153 # define wxUSE_MIMETYPE 0
155 #endif /* !defined(wxUSE_MIMETYPE) */
157 #ifndef wxUSE_ON_FATAL_EXCEPTION
158 # ifdef wxABORT_ON_CONFIG_ERROR
159 # error "wxUSE_ON_FATAL_EXCEPTION must be defined."
161 # define wxUSE_ON_FATAL_EXCEPTION 0
163 #endif /* !defined(wxUSE_ON_FATAL_EXCEPTION) */
165 #ifndef wxUSE_PRINTF_POS_PARAMS
166 # ifdef wxABORT_ON_CONFIG_ERROR
167 # error "wxUSE_PRINTF_POS_PARAMS must be defined."
169 # define wxUSE_PRINTF_POS_PARAMS 0
171 #endif /* !defined(wxUSE_PRINTF_POS_PARAMS) */
173 #ifndef wxUSE_PROTOCOL
174 # ifdef wxABORT_ON_CONFIG_ERROR
175 # error "wxUSE_PROTOCOL must be defined."
177 # define wxUSE_PROTOCOL 0
179 #endif /* !defined(wxUSE_PROTOCOL) */
181 /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
183 # undef wxUSE_PROTOCOL_HTTP
184 # undef wxUSE_PROTOCOL_FTP
185 # undef wxUSE_PROTOCOL_FILE
186 # define wxUSE_PROTOCOL_HTTP 0
187 # define wxUSE_PROTOCOL_FTP 0
188 # define wxUSE_PROTOCOL_FILE 0
189 #endif /* wxUSE_PROTOCOL */
191 #ifndef wxUSE_PROTOCOL_HTTP
192 # ifdef wxABORT_ON_CONFIG_ERROR
193 # error "wxUSE_PROTOCOL_HTTP must be defined."
195 # define wxUSE_PROTOCOL_HTTP 0
197 #endif /* !defined(wxUSE_PROTOCOL_HTTP) */
199 #ifndef wxUSE_PROTOCOL_FTP
200 # ifdef wxABORT_ON_CONFIG_ERROR
201 # error "wxUSE_PROTOCOL_FTP must be defined."
203 # define wxUSE_PROTOCOL_FTP 0
205 #endif /* !defined(wxUSE_PROTOCOL_FTP) */
207 #ifndef wxUSE_PROTOCOL_FILE
208 # ifdef wxABORT_ON_CONFIG_ERROR
209 # error "wxUSE_PROTOCOL_FILE must be defined."
211 # define wxUSE_PROTOCOL_FILE 0
213 #endif /* !defined(wxUSE_PROTOCOL_FILE) */
216 # ifdef wxABORT_ON_CONFIG_ERROR
217 # error "wxUSE_REGEX must be defined."
219 # define wxUSE_REGEX 0
221 #endif /* !defined(wxUSE_REGEX) */
223 #ifndef wxUSE_STDPATHS
224 # ifdef wxABORT_ON_CONFIG_ERROR
225 # error "wxUSE_STDPATHS must be defined."
227 # define wxUSE_STDPATHS 1
229 #endif /* !defined(wxUSE_STDPATHS) */
232 # ifdef wxABORT_ON_CONFIG_ERROR
233 # error "wxUSE_XML must be defined."
237 #endif /* !defined(wxUSE_XML) */
239 #ifndef wxUSE_SOCKETS
240 # ifdef wxABORT_ON_CONFIG_ERROR
241 # error "wxUSE_SOCKETS must be defined."
243 # define wxUSE_SOCKETS 0
245 #endif /* !defined(wxUSE_SOCKETS) */
247 #ifndef wxUSE_STREAMS
248 # ifdef wxABORT_ON_CONFIG_ERROR
249 # error "wxUSE_STREAMS must be defined."
251 # define wxUSE_STREAMS 0
253 #endif /* !defined(wxUSE_STREAMS) */
255 #ifndef wxUSE_STOPWATCH
256 # ifdef wxABORT_ON_CONFIG_ERROR
257 # error "wxUSE_STOPWATCH must be defined."
259 # define wxUSE_STOPWATCH 0
261 #endif /* !defined(wxUSE_STOPWATCH) */
263 #ifndef wxUSE_TEXTBUFFER
264 # ifdef wxABORT_ON_CONFIG_ERROR
265 # error "wxUSE_TEXTBUFFER must be defined."
267 # define wxUSE_TEXTBUFFER 0
269 #endif /* !defined(wxUSE_TEXTBUFFER) */
271 #ifndef wxUSE_TEXTFILE
272 # ifdef wxABORT_ON_CONFIG_ERROR
273 # error "wxUSE_TEXTFILE must be defined."
275 # define wxUSE_TEXTFILE 0
277 #endif /* !defined(wxUSE_TEXTFILE) */
279 #ifndef wxUSE_UNICODE
280 # ifdef wxABORT_ON_CONFIG_ERROR
281 # error "wxUSE_UNICODE must be defined."
283 # define wxUSE_UNICODE 0
285 #endif /* !defined(wxUSE_UNICODE) */
288 # ifdef wxABORT_ON_CONFIG_ERROR
289 # error "wxUSE_URL must be defined."
293 #endif /* !defined(wxUSE_URL) */
295 #ifndef wxUSE_VARIANT
296 # ifdef wxABORT_ON_CONFIG_ERROR
297 # error "wxUSE_VARIANT must be defined."
299 # define wxUSE_VARIANT 0
301 #endif /* wxUSE_VARIANT */
304 all these tests are for GUI only
306 please keep the options in alphabetical order!
311 all of the settings tested below must be defined or we'd get an error from
312 preprocessor about invalid integer expression
316 # ifdef wxABORT_ON_CONFIG_ERROR
317 # error "wxUSE_ACCEL must be defined."
319 # define wxUSE_ACCEL 0
321 #endif /* !defined(wxUSE_ACCEL) */
323 #ifndef wxUSE_BITMAPCOMBOBOX
324 # ifdef wxABORT_ON_CONFIG_ERROR
325 # error "wxUSE_BITMAPCOMBOBOX must be defined."
327 # define wxUSE_BITMAPCOMBOBOX 0
329 #endif /* !defined(wxUSE_BITMAPCOMBOBOX) */
331 #ifndef wxUSE_BMPBUTTON
332 # ifdef wxABORT_ON_CONFIG_ERROR
333 # error "wxUSE_BMPBUTTON must be defined."
335 # define wxUSE_BMPBUTTON 0
337 #endif /* !defined(wxUSE_BMPBUTTON) */
340 # ifdef wxABORT_ON_CONFIG_ERROR
341 # error "wxUSE_BUTTON must be defined."
343 # define wxUSE_BUTTON 0
345 #endif /* !defined(wxUSE_BUTTON) */
347 #ifndef wxUSE_CALENDARCTRL
348 # ifdef wxABORT_ON_CONFIG_ERROR
349 # error "wxUSE_CALENDARCTRL must be defined."
351 # define wxUSE_CALENDARCTRL 0
353 #endif /* !defined(wxUSE_CALENDARCTRL) */
356 # ifdef wxABORT_ON_CONFIG_ERROR
357 # error "wxUSE_CARET must be defined."
359 # define wxUSE_CARET 0
361 #endif /* !defined(wxUSE_CARET) */
363 #ifndef wxUSE_CHECKBOX
364 # ifdef wxABORT_ON_CONFIG_ERROR
365 # error "wxUSE_CHECKBOX must be defined."
367 # define wxUSE_CHECKBOX 0
369 #endif /* !defined(wxUSE_CHECKBOX) */
371 #ifndef wxUSE_CHECKLISTBOX
372 # ifdef wxABORT_ON_CONFIG_ERROR
373 # error "wxUSE_CHECKLISTBOX must be defined."
375 # define wxUSE_CHECKLISTBOX 0
377 #endif /* !defined(wxUSE_CHECKLISTBOX) */
380 # ifdef wxABORT_ON_CONFIG_ERROR
381 # error "wxUSE_CHOICE must be defined."
383 # define wxUSE_CHOICE 0
385 #endif /* !defined(wxUSE_CHOICE) */
387 #ifndef wxUSE_CHOICEBOOK
388 # ifdef wxABORT_ON_CONFIG_ERROR
389 # error "wxUSE_CHOICEBOOK must be defined."
391 # define wxUSE_CHOICEBOOK 0
393 #endif /* !defined(wxUSE_CHOICEBOOK) */
395 #ifndef wxUSE_CHOICEDLG
396 # ifdef wxABORT_ON_CONFIG_ERROR
397 # error "wxUSE_CHOICEDLG must be defined."
399 # define wxUSE_CHOICEDLG 0
401 #endif /* !defined(wxUSE_CHOICEDLG) */
403 #ifndef wxUSE_CLIPBOARD
404 # ifdef wxABORT_ON_CONFIG_ERROR
405 # error "wxUSE_CLIPBOARD must be defined."
407 # define wxUSE_CLIPBOARD 0
409 #endif /* !defined(wxUSE_CLIPBOARD) */
411 #ifndef wxUSE_COLOURDLG
412 # ifdef wxABORT_ON_CONFIG_ERROR
413 # error "wxUSE_COLOURDLG must be defined."
415 # define wxUSE_COLOURDLG 0
417 #endif /* !defined(wxUSE_COLOURDLG) */
419 #ifndef wxUSE_COLOURPICKERCTRL
420 # ifdef wxABORT_ON_CONFIG_ERROR
421 # error "wxUSE_COLOURPICKERCTRL must be defined."
423 # define wxUSE_COLOURPICKERCTRL 0
425 #endif /* !defined(wxUSE_COLOURPICKERCTRL) */
427 #ifndef wxUSE_COMBOBOX
428 # ifdef wxABORT_ON_CONFIG_ERROR
429 # error "wxUSE_COMBOBOX must be defined."
431 # define wxUSE_COMBOBOX 0
433 #endif /* !defined(wxUSE_COMBOBOX) */
435 #ifndef wxUSE_COMBOCTRL
436 # ifdef wxABORT_ON_CONFIG_ERROR
437 # error "wxUSE_COMBOCTRL must be defined."
439 # define wxUSE_COMBOCTRL 0
441 #endif /* !defined(wxUSE_COMBOCTRL) */
443 #ifndef wxUSE_DATAOBJ
444 # ifdef wxABORT_ON_CONFIG_ERROR
445 # error "wxUSE_DATAOBJ must be defined."
447 # define wxUSE_DATAOBJ 0
449 #endif /* !defined(wxUSE_DATAOBJ) */
451 #ifndef wxUSE_DATAVIEWCTRL
452 # ifdef wxABORT_ON_CONFIG_ERROR
453 # error "wxUSE_DATAVIEWCTRL must be defined."
455 # define wxUSE_DATAVIEWCTRL 0
457 #endif /* !defined(wxUSE_DATAVIEWCTRL) */
459 #ifndef wxUSE_DATEPICKCTRL
460 # ifdef wxABORT_ON_CONFIG_ERROR
461 # error "wxUSE_DATEPICKCTRL must be defined."
463 # define wxUSE_DATEPICKCTRL 0
465 #endif /* !defined(wxUSE_DATEPICKCTRL) */
467 #ifndef wxUSE_DIRPICKERCTRL
468 # ifdef wxABORT_ON_CONFIG_ERROR
469 # error "wxUSE_DIRPICKERCTRL must be defined."
471 # define wxUSE_DIRPICKERCTRL 0
473 #endif /* !defined(wxUSE_DIRPICKERCTRL) */
475 #ifndef wxUSE_DISPLAY
476 # ifdef wxABORT_ON_CONFIG_ERROR
477 # error "wxUSE_DISPLAY must be defined."
479 # define wxUSE_DISPLAY 0
481 #endif /* !defined(wxUSE_DISPLAY) */
483 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
484 # ifdef wxABORT_ON_CONFIG_ERROR
485 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
487 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
489 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
491 #ifndef wxUSE_FILEDLG
492 # ifdef wxABORT_ON_CONFIG_ERROR
493 # error "wxUSE_FILEDLG must be defined."
495 # define wxUSE_FILEDLG 0
497 #endif /* !defined(wxUSE_FILEDLG) */
499 #ifndef wxUSE_FILEPICKERCTRL
500 # ifdef wxABORT_ON_CONFIG_ERROR
501 # error "wxUSE_FILEPICKERCTRL must be defined."
503 # define wxUSE_FILEPICKERCTRL 0
505 #endif /* !defined(wxUSE_FILEPICKERCTRL) */
507 #ifndef wxUSE_FONTDLG
508 # ifdef wxABORT_ON_CONFIG_ERROR
509 # error "wxUSE_FONTDLG must be defined."
511 # define wxUSE_FONTDLG 0
513 #endif /* !defined(wxUSE_FONTDLG) */
515 #ifndef wxUSE_FONTMAP
516 # ifdef wxABORT_ON_CONFIG_ERROR
517 # error "wxUSE_FONTMAP must be defined."
519 # define wxUSE_FONTMAP 0
521 #endif /* !defined(wxUSE_FONTMAP) */
523 #ifndef wxUSE_FONTPICKERCTRL
524 # ifdef wxABORT_ON_CONFIG_ERROR
525 # error "wxUSE_FONTPICKERCTRL must be defined."
527 # define wxUSE_FONTPICKERCTRL 0
529 #endif /* !defined(wxUSE_FONTPICKERCTRL) */
532 # ifdef wxABORT_ON_CONFIG_ERROR
533 # error "wxUSE_GAUGE must be defined."
535 # define wxUSE_GAUGE 0
537 #endif /* !defined(wxUSE_GAUGE) */
540 # ifdef wxABORT_ON_CONFIG_ERROR
541 # error "wxUSE_GRID must be defined."
543 # define wxUSE_GRID 0
545 #endif /* !defined(wxUSE_GRID) */
548 # ifdef wxABORT_ON_CONFIG_ERROR
549 # error "wxUSE_HELP must be defined."
551 # define wxUSE_HELP 0
553 #endif /* !defined(wxUSE_HELP) */
555 #ifndef wxUSE_HYPERLINKCTRL
556 # ifdef wxABORT_ON_CONFIG_ERROR
557 # error "wxUSE_HYPERLINKCTRL must be defined."
559 # define wxUSE_HYPERLINKCTRL 0
561 #endif /* !defined(wxUSE_HYPERLINKCTRL) */
564 # ifdef wxABORT_ON_CONFIG_ERROR
565 # error "wxUSE_HTML must be defined."
567 # define wxUSE_HTML 0
569 #endif /* !defined(wxUSE_HTML) */
571 #ifndef wxUSE_LIBMSPACK
573 /* set to 0 on platforms that don't have libmspack */
574 # define wxUSE_LIBMSPACK 0
576 # ifdef wxABORT_ON_CONFIG_ERROR
577 # error "wxUSE_LIBMSPACK must be defined."
579 # define wxUSE_LIBMSPACK 0
582 #endif /* !defined(wxUSE_LIBMSPACK) */
584 #ifndef wxUSE_ICO_CUR
585 # ifdef wxABORT_ON_CONFIG_ERROR
586 # error "wxUSE_ICO_CUR must be defined."
588 # define wxUSE_ICO_CUR 0
590 #endif /* !defined(wxUSE_ICO_CUR) */
593 # ifdef wxABORT_ON_CONFIG_ERROR
594 # error "wxUSE_IFF must be defined."
598 #endif /* !defined(wxUSE_IFF) */
600 #ifndef wxUSE_IMAGLIST
601 # ifdef wxABORT_ON_CONFIG_ERROR
602 # error "wxUSE_IMAGLIST must be defined."
604 # define wxUSE_IMAGLIST 0
606 #endif /* !defined(wxUSE_IMAGLIST) */
608 #ifndef wxUSE_JOYSTICK
609 # ifdef wxABORT_ON_CONFIG_ERROR
610 # error "wxUSE_JOYSTICK must be defined."
612 # define wxUSE_JOYSTICK 0
614 #endif /* !defined(wxUSE_JOYSTICK) */
616 #ifndef wxUSE_LISTBOOK
617 # ifdef wxABORT_ON_CONFIG_ERROR
618 # error "wxUSE_LISTBOOK must be defined."
620 # define wxUSE_LISTBOOK 0
622 #endif /* !defined(wxUSE_LISTBOOK) */
624 #ifndef wxUSE_LISTBOX
625 # ifdef wxABORT_ON_CONFIG_ERROR
626 # error "wxUSE_LISTBOX must be defined."
628 # define wxUSE_LISTBOX 0
630 #endif /* !defined(wxUSE_LISTBOX) */
632 #ifndef wxUSE_LISTCTRL
633 # ifdef wxABORT_ON_CONFIG_ERROR
634 # error "wxUSE_LISTCTRL must be defined."
636 # define wxUSE_LISTCTRL 0
638 #endif /* !defined(wxUSE_LISTCTRL) */
641 # ifdef wxABORT_ON_CONFIG_ERROR
642 # error "wxUSE_LOGGUI must be defined."
644 # define wxUSE_LOGGUI 0
646 #endif /* !defined(wxUSE_LOGGUI) */
648 #ifndef wxUSE_LOGWINDOW
649 # ifdef wxABORT_ON_CONFIG_ERROR
650 # error "wxUSE_LOGWINDOW must be defined."
652 # define wxUSE_LOGWINDOW 0
654 #endif /* !defined(wxUSE_LOGWINDOW) */
656 #ifndef wxUSE_LOG_DIALOG
657 # ifdef wxABORT_ON_CONFIG_ERROR
658 # error "wxUSE_LOG_DIALOG must be defined."
660 # define wxUSE_LOG_DIALOG 0
662 #endif /* !defined(wxUSE_LOG_DIALOG) */
665 # ifdef wxABORT_ON_CONFIG_ERROR
666 # error "wxUSE_MDI must be defined."
670 #endif /* !defined(wxUSE_MDI) */
672 #ifndef wxUSE_MDI_ARCHITECTURE
673 # ifdef wxABORT_ON_CONFIG_ERROR
674 # error "wxUSE_MDI_ARCHITECTURE must be defined."
676 # define wxUSE_MDI_ARCHITECTURE 0
678 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
681 # ifdef wxABORT_ON_CONFIG_ERROR
682 # error "wxUSE_MENUS must be defined."
684 # define wxUSE_MENUS 0
686 #endif /* !defined(wxUSE_MENUS) */
689 # ifdef wxABORT_ON_CONFIG_ERROR
690 # error "wxUSE_MSGDLG must be defined."
692 # define wxUSE_MSGDLG 0
694 #endif /* !defined(wxUSE_MSGDLG) */
696 #ifndef wxUSE_NOTEBOOK
697 # ifdef wxABORT_ON_CONFIG_ERROR
698 # error "wxUSE_NOTEBOOK must be defined."
700 # define wxUSE_NOTEBOOK 0
702 #endif /* !defined(wxUSE_NOTEBOOK) */
704 #ifndef wxUSE_ODCOMBOBOX
705 # ifdef wxABORT_ON_CONFIG_ERROR
706 # error "wxUSE_ODCOMBOBOX must be defined."
708 # define wxUSE_ODCOMBOBOX 0
710 #endif /* !defined(wxUSE_ODCOMBOBOX) */
712 #ifndef wxUSE_PALETTE
713 # ifdef wxABORT_ON_CONFIG_ERROR
714 # error "wxUSE_PALETTE must be defined."
716 # define wxUSE_PALETTE 0
718 #endif /* !defined(wxUSE_PALETTE) */
720 #ifndef wxUSE_POPUPWIN
721 # ifdef wxABORT_ON_CONFIG_ERROR
722 # error "wxUSE_POPUPWIN must be defined."
724 # define wxUSE_POPUPWIN 0
726 #endif /* !defined(wxUSE_POPUPWIN) */
728 #ifndef wxUSE_PRINTING_ARCHITECTURE
729 # ifdef wxABORT_ON_CONFIG_ERROR
730 # error "wxUSE_PRINTING_ARCHITECTURE must be defined."
732 # define wxUSE_PRINTING_ARCHITECTURE 0
734 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
736 #ifndef wxUSE_RADIOBOX
737 # ifdef wxABORT_ON_CONFIG_ERROR
738 # error "wxUSE_RADIOBOX must be defined."
740 # define wxUSE_RADIOBOX 0
742 #endif /* !defined(wxUSE_RADIOBOX) */
744 #ifndef wxUSE_RADIOBTN
745 # ifdef wxABORT_ON_CONFIG_ERROR
746 # error "wxUSE_RADIOBTN must be defined."
748 # define wxUSE_RADIOBTN 0
750 #endif /* !defined(wxUSE_RADIOBTN) */
753 # ifdef wxABORT_ON_CONFIG_ERROR
754 # error "wxUSE_SASH must be defined."
756 # define wxUSE_SASH 0
758 #endif /* !defined(wxUSE_SASH) */
760 #ifndef wxUSE_SCROLLBAR
761 # ifdef wxABORT_ON_CONFIG_ERROR
762 # error "wxUSE_SCROLLBAR must be defined."
764 # define wxUSE_SCROLLBAR 0
766 #endif /* !defined(wxUSE_SCROLLBAR) */
769 # ifdef wxABORT_ON_CONFIG_ERROR
770 # error "wxUSE_SLIDER must be defined."
772 # define wxUSE_SLIDER 0
774 #endif /* !defined(wxUSE_SLIDER) */
777 # ifdef wxABORT_ON_CONFIG_ERROR
778 # error "wxUSE_SOUND must be defined."
780 # define wxUSE_SOUND 0
782 #endif /* !defined(wxUSE_SOUND) */
784 #ifndef wxUSE_SPINBTN
785 # ifdef wxABORT_ON_CONFIG_ERROR
786 # error "wxUSE_SPINBTN must be defined."
788 # define wxUSE_SPINBTN 0
790 #endif /* !defined(wxUSE_SPINBTN) */
792 #ifndef wxUSE_SPINCTRL
793 # ifdef wxABORT_ON_CONFIG_ERROR
794 # error "wxUSE_SPINCTRL must be defined."
796 # define wxUSE_SPINCTRL 0
798 #endif /* !defined(wxUSE_SPINCTRL) */
801 # ifdef wxABORT_ON_CONFIG_ERROR
802 # error "wxUSE_SPLASH must be defined."
804 # define wxUSE_SPLASH 0
806 #endif /* !defined(wxUSE_SPLASH) */
808 #ifndef wxUSE_SPLITTER
809 # ifdef wxABORT_ON_CONFIG_ERROR
810 # error "wxUSE_SPLITTER must be defined."
812 # define wxUSE_SPLITTER 0
814 #endif /* !defined(wxUSE_SPLITTER) */
816 #ifndef wxUSE_STATBMP
817 # ifdef wxABORT_ON_CONFIG_ERROR
818 # error "wxUSE_STATBMP must be defined."
820 # define wxUSE_STATBMP 0
822 #endif /* !defined(wxUSE_STATBMP) */
824 #ifndef wxUSE_STATBOX
825 # ifdef wxABORT_ON_CONFIG_ERROR
826 # error "wxUSE_STATBOX must be defined."
828 # define wxUSE_STATBOX 0
830 #endif /* !defined(wxUSE_STATBOX) */
832 #ifndef wxUSE_STATLINE
833 # ifdef wxABORT_ON_CONFIG_ERROR
834 # error "wxUSE_STATLINE must be defined."
836 # define wxUSE_STATLINE 0
838 #endif /* !defined(wxUSE_STATLINE) */
840 #ifndef wxUSE_STATTEXT
841 # ifdef wxABORT_ON_CONFIG_ERROR
842 # error "wxUSE_STATTEXT must be defined."
844 # define wxUSE_STATTEXT 0
846 #endif /* !defined(wxUSE_STATTEXT) */
848 #ifndef wxUSE_STATUSBAR
849 # ifdef wxABORT_ON_CONFIG_ERROR
850 # error "wxUSE_STATUSBAR must be defined."
852 # define wxUSE_STATUSBAR 0
854 #endif /* !defined(wxUSE_STATUSBAR) */
856 #ifndef wxUSE_TAB_DIALOG
857 # ifdef wxABORT_ON_CONFIG_ERROR
858 # error "wxUSE_TAB_DIALOG must be defined."
860 # define wxUSE_TAB_DIALOG 0
862 #endif /* !defined(wxUSE_TAB_DIALOG) */
864 #ifndef wxUSE_TEXTCTRL
865 # ifdef wxABORT_ON_CONFIG_ERROR
866 # error "wxUSE_TEXTCTRL must be defined."
868 # define wxUSE_TEXTCTRL 0
870 #endif /* !defined(wxUSE_TEXTCTRL) */
872 #ifndef wxUSE_TIPWINDOW
873 # ifdef wxABORT_ON_CONFIG_ERROR
874 # error "wxUSE_TIPWINDOW must be defined."
876 # define wxUSE_TIPWINDOW 0
878 #endif /* !defined(wxUSE_TIPWINDOW) */
880 #ifndef wxUSE_TOOLBAR
881 # ifdef wxABORT_ON_CONFIG_ERROR
882 # error "wxUSE_TOOLBAR must be defined."
884 # define wxUSE_TOOLBAR 0
886 #endif /* !defined(wxUSE_TOOLBAR) */
888 #ifndef wxUSE_TOOLTIPS
889 # ifdef wxABORT_ON_CONFIG_ERROR
890 # error "wxUSE_TOOLTIPS must be defined."
892 # define wxUSE_TOOLTIPS 0
894 #endif /* !defined(wxUSE_TOOLTIPS) */
896 #ifndef wxUSE_TREECTRL
897 # ifdef wxABORT_ON_CONFIG_ERROR
898 # error "wxUSE_TREECTRL must be defined."
900 # define wxUSE_TREECTRL 0
902 #endif /* !defined(wxUSE_TREECTRL) */
904 #ifndef wxUSE_VALIDATORS
905 # ifdef wxABORT_ON_CONFIG_ERROR
906 # error "wxUSE_VALIDATORS must be defined."
908 # define wxUSE_VALIDATORS 0
910 #endif /* !defined(wxUSE_VALIDATORS) */
912 #ifndef wxUSE_WXHTML_HELP
913 # ifdef wxABORT_ON_CONFIG_ERROR
914 # error "wxUSE_WXHTML_HELP must be defined."
916 # define wxUSE_WXHTML_HELP 0
918 #endif /* !defined(wxUSE_WXHTML_HELP) */
921 # ifdef wxABORT_ON_CONFIG_ERROR
922 # error "wxUSE_XRC must be defined."
926 #endif /* !defined(wxUSE_XRC) */
928 #endif /* wxUSE_GUI */
931 check consistency of the settings
934 #if WXWIN_COMPATIBILITY_2_4
935 # if !WXWIN_COMPATIBILITY_2_6
936 # ifdef wxABORT_ON_CONFIG_ERROR
937 # error "2.4.X compatibility requires 2.6.X compatibility"
939 # undef WXWIN_COMPATIBILITY_2_6
940 # define WXWIN_COMPATIBILITY_2_6 1
943 #endif /* WXWIN_COMPATIBILITY_2_4 */
945 #if wxUSE_ARCHIVE_STREAMS
947 # ifdef wxABORT_ON_CONFIG_ERROR
948 # error "wxArchive requires wxUSE_DATETIME"
950 # undef wxUSE_ARCHIVE_STREAMS
951 # define wxUSE_ARCHIVE_STREAMS 0
954 #endif /* wxUSE_ARCHIVE_STREAMS */
956 #if wxUSE_CRASHREPORT && !wxUSE_ON_FATAL_EXCEPTION
957 # ifdef wxABORT_ON_CONFIG_ERROR
958 # error "wxUSE_CRASHREPORT requires wxUSE_ON_FATAL_EXCEPTION"
960 # undef wxUSE_CRASHREPORT
961 # define wxUSE_CRASHREPORT 0
963 #endif /* wxUSE_CRASHREPORT */
965 #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
967 # ifdef wxABORT_ON_CONFIG_ERROR
968 # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
970 # undef wxUSE_PROTOCOL
971 # define wxUSE_PROTOCOL 1
974 #endif /* wxUSE_PROTOCOL_XXX */
978 # ifdef wxABORT_ON_CONFIG_ERROR
979 # error "wxUSE_URL requires wxUSE_PROTOCOL"
981 # undef wxUSE_PROTOCOL
982 # define wxUSE_PROTOCOL 1
985 #endif /* wxUSE_URL */
989 # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
990 # ifdef wxABORT_ON_CONFIG_ERROR
991 # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
993 # undef wxUSE_SOCKETS
994 # define wxUSE_SOCKETS 1
1000 # ifdef wxABORT_ON_CONFIG_ERROR
1001 # error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
1003 # undef wxUSE_STREAMS
1004 # define wxUSE_STREAMS 1
1007 #endif /* wxUSE_PROTOCOL */
1009 /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
1011 # if !wxUSE_FILESYSTEM
1012 # ifdef wxABORT_ON_CONFIG_ERROR
1013 # error "wxHTML requires wxFileSystem"
1015 # undef wxUSE_FILESYSTEM
1016 # define wxUSE_FILESYSTEM 1
1019 #endif /* wxUSE_HTML */
1021 #if wxUSE_FILESYSTEM
1023 # ifdef wxABORT_ON_CONFIG_ERROR
1024 # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
1026 # undef wxUSE_STREAMS
1027 # define wxUSE_STREAMS 1
1030 #endif /* wxUSE_FILESYSTEM */
1033 # if !wxUSE_PROTOCOL
1034 # ifdef wxABORT_ON_CONFIG_ERROR
1035 # error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
1037 # undef wxUSE_PROTOCOL
1038 # define wxUSE_PROTOCOL 1
1041 #endif /* wxUSE_FS_INET */
1043 #if wxUSE_STOPWATCH || wxUSE_DATETIME
1044 # if !wxUSE_LONGLONG
1045 # ifdef wxABORT_ON_CONFIG_ERROR
1046 # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
1048 # undef wxUSE_LONGLONG
1049 # define wxUSE_LONGLONG 1
1052 #endif /* wxUSE_STOPWATCH */
1054 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
1055 # ifdef wxABORT_ON_CONFIG_ERROR
1056 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
1058 # undef wxUSE_TEXTFILE
1059 # define wxUSE_TEXTFILE 1
1061 #endif /* wxUSE_MIMETYPE */
1064 # if !wxUSE_DATETIME
1065 # ifdef wxABORT_ON_CONFIG_ERROR
1066 # error "wxODBC requires wxUSE_DATETIME"
1069 # define wxUSE_ODBC 0
1072 #endif /* wxUSE_ODBC */
1074 #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
1075 # ifdef wxABORT_ON_CONFIG_ERROR
1076 # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
1078 # undef wxUSE_TEXTBUFFER
1079 # define wxUSE_TEXTBUFFER 1
1081 #endif /* wxUSE_TEXTFILE */
1083 #if wxUSE_TEXTFILE && !wxUSE_FILE
1084 # ifdef wxABORT_ON_CONFIG_ERROR
1085 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
1088 # define wxUSE_FILE 1
1090 #endif /* wxUSE_TEXTFILE */
1092 #if wxUSE_XML && !wxUSE_WCHAR_T
1093 # ifdef wxABORT_ON_CONFIG_ERROR
1094 # error "wxUSE_XML requires wxUSE_WCHAR_T"
1097 # define wxUSE_XML 0
1099 #endif /* wxUSE_XML */
1101 #if !wxUSE_DYNLIB_CLASS
1102 # if wxUSE_DYNAMIC_LOADER
1103 # ifdef wxABORT_ON_CONFIG_ERROR
1104 # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
1106 # define wxUSE_DYNLIB_CLASS 1
1109 #endif /* wxUSE_DYNLIB_CLASS */
1113 # ifdef wxABORT_ON_CONFIG_ERROR
1114 # error "wxZip requires wxZlib"
1117 # define wxUSE_ZLIB 1
1120 # if !wxUSE_ARCHIVE_STREAMS
1121 # ifdef wxABORT_ON_CONFIG_ERROR
1122 # error "wxZip requires wxArchive"
1124 # undef wxUSE_ARCHIVE_STREAMS
1125 # define wxUSE_ARCHIVE_STREAMS 1
1128 #endif /* wxUSE_ZIPSTREAM */
1130 /* the rest of the tests is for the GUI settings only */
1133 #if wxUSE_BUTTON || \
1134 wxUSE_CALENDARCTRL || \
1137 wxUSE_BMPBUTTON || \
1139 wxUSE_CHECKLISTBOX || \
1148 wxUSE_SCROLLBAR || \
1156 wxUSE_STATUSBAR || \
1160 # if !wxUSE_CONTROLS
1161 # ifdef wxABORT_ON_CONFIG_ERROR
1162 # error "wxUSE_CONTROLS unset but some controls used"
1164 # undef wxUSE_CONTROLS
1165 # define wxUSE_CONTROLS 1
1168 #endif /* controls */
1172 # ifdef wxABORT_ON_CONFIG_ERROR
1173 # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1175 # undef wxUSE_BUTTON
1176 # define wxUSE_BUTTON 1
1179 #endif /* wxUSE_BMPBUTTON */
1182 wxUSE_BOOKCTRL should be only used if any of the controls deriving from it
1185 #ifdef wxUSE_BOOKCTRL
1186 # ifdef wxABORT_ON_CONFIG_ERROR
1187 # error "wxUSE_BOOKCTRL is defined automatically, don't define it"
1189 # undef wxUSE_BOOKCTRL
1193 #define wxUSE_BOOKCTRL (wxUSE_NOTEBOOK || \
1195 wxUSE_CHOICEBOOK || \
1199 # if !wxUSE_LISTCTRL
1200 # ifdef wxABORT_ON_CONFIG_ERROR
1201 # error "wxListbook requires wxListCtrl"
1203 # undef wxUSE_LISTCTRL
1204 # define wxUSE_LISTCTRL 1
1207 #endif /* wxUSE_LISTBOOK */
1209 #if wxUSE_CHOICEBOOK
1211 # ifdef wxABORT_ON_CONFIG_ERROR
1212 # error "wxChoicebook requires wxChoice"
1214 # undef wxUSE_CHOICE
1215 # define wxUSE_CHOICE 1
1218 #endif /* wxUSE_CHOICEBOOK */
1220 #if !wxUSE_ODCOMBOBOX
1221 # if wxUSE_BITMAPCOMBOBOX
1222 # error "wxBitmapComboBox requires wxOwnerDrawnComboBox"
1224 # undef wxUSE_BITMAPCOMBOBOX
1225 # define wxUSE_BITMAPCOMBOBOX 0
1227 #endif /* !wxUSE_ODCOMBOBOX */
1229 /* don't attempt to use native status bar on the platforms not having it */
1230 #ifndef wxUSE_NATIVE_STATUSBAR
1231 # define wxUSE_NATIVE_STATUSBAR 0
1232 #elif wxUSE_NATIVE_STATUSBAR
1233 # if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1234 defined(__WXMAC__) || \
1235 defined(__WXPALMOS__) )
1236 # undef wxUSE_NATIVE_STATUSBAR
1237 # define wxUSE_NATIVE_STATUSBAR 0
1241 /* wxGTK-specific dependencies */
1243 # ifndef __WXUNIVERSAL__
1244 # if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS
1245 # ifdef wxABORT_ON_CONFIG_ERROR
1246 # error "MDI requires wxUSE_MENUS in wxGTK"
1249 # define wxUSE_MENUS 1
1252 # endif /* !__WXUNIVERSAL__ */
1256 # ifdef wxABORT_ON_CONFIG_ERROR
1257 # error "wxJoystick requires threads in wxGTK"
1259 # undef wxUSE_JOYSTICK
1260 # define wxUSE_JOYSTICK 0
1264 #endif /* wxGTK && !wxUniv */
1266 /* Hopefully we can emulate these dialogs in due course */
1267 #if defined(__SMARTPHONE__) && defined(__WXWINCE__)
1268 # ifdef wxUSE_COLOURDLG
1269 # undef wxUSE_COLOURDLG
1270 # define wxUSE_COLOURDLG 0
1272 #endif /* __SMARTPHONE__ && __WXWINCE__ */
1275 /* generic controls dependencies */
1276 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1277 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1278 /* all common controls are needed by these dialogs */
1279 # if !defined(wxUSE_CHOICE) || \
1280 !defined(wxUSE_TEXTCTRL) || \
1281 !defined(wxUSE_BUTTON) || \
1282 !defined(wxUSE_CHECKBOX) || \
1283 !defined(wxUSE_STATTEXT)
1284 # ifdef wxABORT_ON_CONFIG_ERROR
1285 # error "These common controls are needed by common dialogs"
1287 # undef wxUSE_CHOICE
1288 # define wxUSE_CHOICE 1
1289 # undef wxUSE_TEXTCTRL
1290 # define wxUSE_TEXTCTRL 1
1291 # undef wxUSE_BUTTON
1292 # define wxUSE_BUTTON 1
1293 # undef wxUSE_CHECKBOX
1294 # define wxUSE_CHECKBOX 1
1295 # undef wxUSE_STATTEXT
1296 # define wxUSE_STATTEXT 1
1300 #endif /* !wxMSW || wxUniv */
1302 /* common dependencies */
1303 #if wxUSE_CALENDARCTRL
1304 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1305 # ifdef wxABORT_ON_CONFIG_ERROR
1306 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1308 # undef wxUSE_SPINBTN
1309 # undef wxUSE_COMBOBOX
1310 # define wxUSE_SPINBTN 1
1311 # define wxUSE_COMBOBOX 1
1315 # if !wxUSE_DATETIME
1316 # ifdef wxABORT_ON_CONFIG_ERROR
1317 # error "wxCalendarCtrl requires wxUSE_DATETIME"
1319 # undef wxUSE_DATETIME
1320 # define wxUSE_DATETIME 1
1323 #endif /* wxUSE_CALENDARCTRL */
1325 #if wxUSE_DATEPICKCTRL
1326 # if !wxUSE_DATETIME
1327 # ifdef wxABORT_ON_CONFIG_ERROR
1328 # error "wxDatePickerCtrl requires wxUSE_DATETIME"
1330 # undef wxUSE_DATETIME
1331 # define wxUSE_DATETIME 1
1334 #endif /* wxUSE_DATEPICKCTRL */
1336 #if wxUSE_CHECKLISTBOX
1338 # ifdef wxABORT_ON_CONFIG_ERROR
1339 # error "wxCheckListBox requires wxListBox"
1341 # undef wxUSE_LISTBOX
1342 # define wxUSE_LISTBOX 1
1345 #endif /* wxUSE_CHECKLISTBOX */
1349 # ifdef wxABORT_ON_CONFIG_ERROR
1350 # error "Choice dialogs requires wxListBox"
1352 # undef wxUSE_LISTBOX
1353 # define wxUSE_LISTBOX 1
1356 #endif /* wxUSE_CHOICEDLG */
1359 # if !wxUSE_BMPBUTTON
1360 # ifdef wxABORT_ON_CONFIG_ERROR
1361 # error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1363 # undef wxUSE_BMPBUTTON
1364 # define wxUSE_BMPBUTTON 1
1368 # if !wxUSE_CHOICEDLG
1369 # ifdef wxABORT_ON_CONFIG_ERROR
1370 # error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1372 # undef wxUSE_CHOICEDLG
1373 # define wxUSE_CHOICEDLG 1
1376 #endif /* wxUSE_HELP */
1378 #if wxUSE_WXHTML_HELP
1379 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
1380 # ifdef wxABORT_ON_CONFIG_ERROR
1381 # error "Built in help controller can't be compiled"
1384 # define wxUSE_HELP 1
1386 # define wxUSE_HTML 1
1387 # undef wxUSE_COMBOBOX
1388 # define wxUSE_COMBOBOX 1
1389 # undef wxUSE_NOTEBOOK
1390 # define wxUSE_NOTEBOOK 1
1391 # undef wxUSE_SPINCTRL
1392 # define wxUSE_SPINCTRL 1
1395 #endif /* wxUSE_WXHTML_HELP */
1399 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1400 user explicitly wants this and disable all other features that require
1403 # if wxUSE_DRAGIMAGE
1404 # ifdef wxABORT_ON_CONFIG_ERROR
1405 # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1407 # undef wxUSE_DRAGIMAGE
1408 # define wxUSE_DRAGIMAGE 0
1413 # ifdef wxABORT_ON_CONFIG_ERROR
1414 # error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1416 # undef wxUSE_LIBPNG
1417 # define wxUSE_LIBPNG 0
1422 # ifdef wxABORT_ON_CONFIG_ERROR
1423 # error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1425 # undef wxUSE_LIBJPEG
1426 # define wxUSE_LIBJPEG 0
1431 # ifdef wxABORT_ON_CONFIG_ERROR
1432 # error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1434 # undef wxUSE_LIBTIFF
1435 # define wxUSE_LIBTIFF 0
1440 # ifdef wxABORT_ON_CONFIG_ERROR
1441 # error "wxUSE_GIF requires wxUSE_IMAGE"
1444 # define wxUSE_GIF 0
1449 # ifdef wxABORT_ON_CONFIG_ERROR
1450 # error "wxUSE_PNM requires wxUSE_IMAGE"
1453 # define wxUSE_PNM 0
1458 # ifdef wxABORT_ON_CONFIG_ERROR
1459 # error "wxUSE_PCX requires wxUSE_IMAGE"
1462 # define wxUSE_PCX 0
1467 # ifdef wxABORT_ON_CONFIG_ERROR
1468 # error "wxUSE_IFF requires wxUSE_IMAGE"
1471 # define wxUSE_IFF 0
1476 # ifdef wxABORT_ON_CONFIG_ERROR
1477 # error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1479 # undef wxUSE_TOOLBAR
1480 # define wxUSE_TOOLBAR 0
1485 # ifdef wxABORT_ON_CONFIG_ERROR
1486 # error "wxUSE_XPM requires wxUSE_IMAGE"
1489 # define wxUSE_XPM 0
1493 #endif /* !wxUSE_IMAGE */
1495 #if wxUSE_DOC_VIEW_ARCHITECTURE
1497 # ifdef wxABORT_ON_CONFIG_ERROR
1498 # error "DocView requires wxUSE_MENUS"
1501 # define wxUSE_MENUS 1
1505 # if !wxUSE_CHOICEDLG
1506 # ifdef wxABORT_ON_CONFIG_ERROR
1507 # error "DocView requires wxUSE_CHOICEDLG"
1509 # undef wxUSE_CHOICEDLG
1510 # define wxUSE_CHOICEDLG 1
1514 # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1515 # ifdef wxABORT_ON_CONFIG_ERROR
1516 # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1518 # undef wxUSE_STREAMS
1519 # define wxUSE_STREAMS 1
1522 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1524 #if wxUSE_PRINTING_ARCHITECTURE
1525 # if !wxUSE_COMBOBOX
1526 # ifdef wxABORT_ON_CONFIG_ERROR
1527 # error "Print dialog requires wxUSE_COMBOBOX"
1529 # undef wxUSE_COMBOBOX
1530 # define wxUSE_COMBOBOX 1
1533 #endif /* wxUSE_PRINTING_ARCHITECTURE */
1535 #if wxUSE_MDI_ARCHITECTURE
1537 # ifdef wxABORT_ON_CONFIG_ERROR
1538 # error "MDI requires wxUSE_MDI"
1541 # define wxUSE_MDI 1
1545 # if !wxUSE_DOC_VIEW_ARCHITECTURE
1546 # ifdef wxABORT_ON_CONFIG_ERROR
1547 # error "wxUSE_MDI_ARCHITECTURE requires wxUSE_DOC_VIEW_ARCHITECTURE"
1549 # undef wxUSE_DOC_VIEW_ARCHITECTURE
1550 # define wxUSE_DOC_VIEW_ARCHITECTURE 1
1553 #endif /* wxUSE_MDI_ARCHITECTURE */
1556 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1557 # ifdef wxABORT_ON_CONFIG_ERROR
1558 # error "wxUSE_FILEDLG is required by wxUSE_DOC_VIEW_ARCHITECTURE and wxUSE_WXHTML_HELP!"
1560 # undef wxUSE_FILEDLG
1561 # define wxUSE_FILEDLG 1
1564 #endif /* wxUSE_FILEDLG */
1566 #if !wxUSE_GAUGE || !wxUSE_BUTTON
1567 # if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
1568 # ifdef wxABORT_ON_CONFIG_ERROR
1569 # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
1572 # undef wxUSE_BUTTON
1573 # define wxUSE_GAUGE 1
1574 # define wxUSE_BUTTON 1
1577 #endif /* !wxUSE_GAUGE */
1580 # if wxUSE_FONTDLG || \
1582 wxUSE_CHOICEDLG || \
1583 wxUSE_NUMBERDLG || \
1586 wxUSE_STARTUP_TIPS || \
1588 # ifdef wxABORT_ON_CONFIG_ERROR
1589 # error "Common and generic dialogs require wxUSE_BUTTON"
1591 # undef wxUSE_BUTTON
1592 # define wxUSE_BUTTON 1
1595 #endif /* !wxUSE_BUTTON */
1598 # if wxUSE_TOOLBAR_NATIVE
1599 # ifdef wxABORT_ON_CONFIG_ERROR
1600 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1602 # undef wxUSE_TOOLBAR_NATIVE
1603 # define wxUSE_TOOLBAR_NATIVE 0
1609 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1610 # ifdef wxABORT_ON_CONFIG_ERROR
1611 # error "wxImageList must be compiled as well"
1613 # undef wxUSE_IMAGLIST
1614 # define wxUSE_IMAGLIST 1
1617 #endif /* !wxUSE_IMAGLIST */
1620 # ifdef wxABORT_ON_CONFIG_ERROR
1621 /* FIXME: should compile without it, of course, but doesn't */
1622 # error "wxMessageBox is always needed"
1624 # undef wxUSE_MSGDLG
1625 # define wxUSE_MSGDLG 1
1630 # if !wxUSE_RADIOBTN
1631 # ifdef wxABORT_ON_CONFIG_ERROR
1632 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
1634 # undef wxUSE_RADIOBTN
1635 # define wxUSE_RADIOBTN 1
1638 # if !wxUSE_STATBOX && !defined(__WXPALMOS__)
1639 # ifdef wxABORT_ON_CONFIG_ERROR
1640 # error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
1642 # undef wxUSE_STATBOX
1643 # define wxUSE_STATBOX 1
1646 #endif /* wxUSE_RADIOBOX */
1649 # if !wxUSE_TEXTCTRL
1650 # ifdef wxABORT_ON_CONFIG_ERROR
1651 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1653 # undef wxUSE_TEXTCTRL
1654 # define wxUSE_TEXTCTRL 1
1657 #endif /* wxUSE_LOGWINDOW */
1659 #if wxUSE_LOG_DIALOG
1660 # if !wxUSE_LISTCTRL || !wxUSE_BUTTON
1661 # ifdef wxABORT_ON_CONFIG_ERROR
1662 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
1664 # undef wxUSE_LISTCTRL
1665 # define wxUSE_LISTCTRL 1
1666 # undef wxUSE_BUTTON
1667 # define wxUSE_BUTTON 1
1670 #endif /* wxUSE_LOG_DIALOG */
1672 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
1673 # ifdef wxABORT_ON_CONFIG_ERROR
1674 # error "wxClipboard requires wxDataObject"
1676 # undef wxUSE_DATAOBJ
1677 # define wxUSE_DATAOBJ 1
1679 #endif /* wxUSE_CLIPBOARD */
1681 #if wxUSE_WX_RESOURCES && !wxUSE_PROLOGIO
1682 # ifdef wxABORT_ON_CONFIG_ERROR
1683 # error "wxr resources require PrologIO"
1685 # undef wxUSE_PROLOGIO
1686 # define wxUSE_PROLOGIO 1
1688 #endif /* wxUSE_WX_RESOURCES */
1690 #if wxUSE_XRC && !wxUSE_XML
1691 # ifdef wxABORT_ON_CONFIG_ERROR
1692 # error "wxUSE_XRC requires wxUSE_XML"
1695 # define wxUSE_XRC 0
1697 #endif /* wxUSE_XRC */
1699 #if wxUSE_SOCKETS && !wxUSE_STOPWATCH
1700 # ifdef wxABORT_ON_CONFIG_ERROR
1701 # error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
1703 # undef wxUSE_SOCKETS
1704 # define wxUSE_SOCKETS 0
1706 #endif /* wxUSE_SOCKETS */
1709 # if wxUSE_DATAVIEWCTRL
1710 # ifdef wxABORT_ON_CONFIG_ERROR
1711 # error "wxDataViewCtrl requires wxVariant"
1713 # undef wxUSE_DATAVIEWCTRL
1714 # define wxUSE_DATAVIEWCTRL 0
1719 # ifdef wxABORT_ON_CONFIG_ERROR
1720 # error "wxUSE_ODBC requires wxVariant"
1723 # define wxUSE_ODBC 0
1726 #endif /* wxUSE_VARIANT */
1728 #endif /* wxUSE_GUI */