]>
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"
35 this global setting determines what should we do if the setting FOO
36 requires BAR and BAR is not set: we can either silently unset FOO as well
37 (do this if you're trying to build the smallest possible library) or give an
38 error and abort (default as leads to least surprizing behaviour)
40 #define wxABORT_ON_CONFIG_ERROR
46 /* GUI build by default */
47 #if !defined(wxUSE_GUI)
49 #endif /* !defined(wxUSE_GUI) */
52 If we're compiling without support for threads/exceptions we have to
53 disable the corresponding features.
57 # define wxUSE_THREADS 0
58 #endif /* wxNO_THREADS */
60 #ifdef wxNO_EXCEPTIONS
61 # undef wxUSE_EXCEPTIONS
62 # define wxUSE_EXCEPTIONS 0
63 #endif /* wxNO_EXCEPTIONS */
65 /* we also must disable exceptions if compiler doesn't support them */
66 #if defined(_MSC_VER) && !defined(_CPPUNWIND)
67 # undef wxUSE_EXCEPTIONS
68 # define wxUSE_EXCEPTIONS 0
69 #endif /* VC++ without exceptions support */
73 tests for non GUI features
75 please keep the options in alphabetical order!
78 #ifndef wxUSE_CRASHREPORT
79 /* this one is special: as currently it is Windows-only, don't force it
80 to be defined on other platforms */
81 # if defined(wxABORT_ON_CONFIG_ERROR) && defined(__WXMSW__)
82 # error "wxUSE_CRASHREPORT must be defined."
84 # define wxUSE_CRASHREPORT 0
86 #endif /* !defined(wxUSE_CRASHREPORT) */
88 #ifndef wxUSE_DYNLIB_CLASS
89 # ifdef wxABORT_ON_CONFIG_ERROR
90 # error "wxUSE_DYNLIB_CLASS must be defined."
92 # define wxUSE_DYNLIB_CLASS 0
94 #endif /* !defined(wxUSE_DYNLIB_CLASS) */
96 #ifndef wxUSE_EXCEPTIONS
97 # ifdef wxABORT_ON_CONFIG_ERROR
98 # error "wxUSE_EXCEPTIONS must be defined."
100 # define wxUSE_EXCEPTIONS 0
102 #endif /* !defined(wxUSE_EXCEPTIONS) */
104 #ifndef wxUSE_FILESYSTEM
105 # ifdef wxABORT_ON_CONFIG_ERROR
106 # error "wxUSE_FILESYSTEM must be defined."
108 # define wxUSE_FILESYSTEM 0
110 #endif /* !defined(wxUSE_FILESYSTEM) */
112 /* don't give an error about this one yet, it's not fully implemented */
113 #ifndef wxUSE_FSVOLUME
114 # define wxUSE_FSVOLUME 0
115 #endif /* !defined(wxUSE_FSVOLUME) */
117 #ifndef wxUSE_DYNAMIC_LOADER
118 # ifdef wxABORT_ON_CONFIG_ERROR
119 # error "wxUSE_DYNAMIC_LOADER must be defined."
121 # define wxUSE_DYNAMIC_LOADER 0
123 #endif /* !defined(wxUSE_DYNAMIC_LOADER) */
126 # ifdef wxABORT_ON_CONFIG_ERROR
127 # error "wxUSE_LOG must be defined."
131 #endif /* !defined(wxUSE_LOG) */
133 #ifndef wxUSE_LONGLONG
134 # ifdef wxABORT_ON_CONFIG_ERROR
135 # error "wxUSE_LONGLONG must be defined."
137 # define wxUSE_LONGLONG 0
139 #endif /* !defined(wxUSE_LONGLONG) */
141 #ifndef wxUSE_MIMETYPE
142 # ifdef wxABORT_ON_CONFIG_ERROR
143 # error "wxUSE_MIMETYPE must be defined."
145 # define wxUSE_MIMETYPE 0
147 #endif /* !defined(wxUSE_MIMETYPE) */
149 #ifndef wxUSE_ON_FATAL_EXCEPTION
150 # ifdef wxABORT_ON_CONFIG_ERROR
151 # error "wxUSE_ON_FATAL_EXCEPTION must be defined."
153 # define wxUSE_ON_FATAL_EXCEPTION 0
155 #endif /* !defined(wxUSE_ON_FATAL_EXCEPTION) */
157 #ifndef wxUSE_PRINTF_POS_PARAMS
158 # ifdef wxABORT_ON_CONFIG_ERROR
159 # error "wxUSE_PRINTF_POS_PARAMS must be defined."
161 # define wxUSE_PRINTF_POS_PARAMS 0
163 #endif /* !defined(wxUSE_PRINTF_POS_PARAMS) */
165 #ifndef wxUSE_PROTOCOL
166 # ifdef wxABORT_ON_CONFIG_ERROR
167 # error "wxUSE_PROTOCOL must be defined."
169 # define wxUSE_PROTOCOL 0
171 #endif /* !defined(wxUSE_PROTOCOL) */
173 /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
175 # undef wxUSE_PROTOCOL_HTTP
176 # undef wxUSE_PROTOCOL_FTP
177 # undef wxUSE_PROTOCOL_FILE
178 # define wxUSE_PROTOCOL_HTTP 0
179 # define wxUSE_PROTOCOL_FTP 0
180 # define wxUSE_PROTOCOL_FILE 0
181 #endif /* wxUSE_PROTOCOL */
183 #ifndef wxUSE_PROTOCOL_HTTP
184 # ifdef wxABORT_ON_CONFIG_ERROR
185 # error "wxUSE_PROTOCOL_HTTP must be defined."
187 # define wxUSE_PROTOCOL_HTTP 0
189 #endif /* !defined(wxUSE_PROTOCOL_HTTP) */
191 #ifndef wxUSE_PROTOCOL_FTP
192 # ifdef wxABORT_ON_CONFIG_ERROR
193 # error "wxUSE_PROTOCOL_FTP must be defined."
195 # define wxUSE_PROTOCOL_FTP 0
197 #endif /* !defined(wxUSE_PROTOCOL_FTP) */
199 #ifndef wxUSE_PROTOCOL_FILE
200 # ifdef wxABORT_ON_CONFIG_ERROR
201 # error "wxUSE_PROTOCOL_FILE must be defined."
203 # define wxUSE_PROTOCOL_FILE 0
205 #endif /* !defined(wxUSE_PROTOCOL_FILE) */
208 # ifdef wxABORT_ON_CONFIG_ERROR
209 # error "wxUSE_REGEX must be defined."
211 # define wxUSE_REGEX 0
213 #endif /* !defined(wxUSE_REGEX) */
215 #ifndef wxUSE_STDPATHS
216 # ifdef wxABORT_ON_CONFIG_ERROR
217 # error "wxUSE_STDPATHS must be defined."
219 # define wxUSE_STDPATHS 1
221 #endif /* !defined(wxUSE_STDPATHS) */
224 # ifdef wxABORT_ON_CONFIG_ERROR
225 # error "wxUSE_XML must be defined."
229 #endif /* !defined(wxUSE_XML) */
231 #ifndef wxUSE_SOCKETS
232 # ifdef wxABORT_ON_CONFIG_ERROR
233 # error "wxUSE_SOCKETS must be defined."
235 # define wxUSE_SOCKETS 0
237 #endif /* !defined(wxUSE_SOCKETS) */
239 #ifndef wxUSE_STREAMS
240 # ifdef wxABORT_ON_CONFIG_ERROR
241 # error "wxUSE_STREAMS must be defined."
243 # define wxUSE_STREAMS 0
245 #endif /* !defined(wxUSE_STREAMS) */
247 #ifndef wxUSE_STOPWATCH
248 # ifdef wxABORT_ON_CONFIG_ERROR
249 # error "wxUSE_STOPWATCH must be defined."
251 # define wxUSE_STOPWATCH 0
253 #endif /* !defined(wxUSE_STOPWATCH) */
255 #ifndef wxUSE_TEXTBUFFER
256 # ifdef wxABORT_ON_CONFIG_ERROR
257 # error "wxUSE_TEXTBUFFER must be defined."
259 # define wxUSE_TEXTBUFFER 0
261 #endif /* !defined(wxUSE_TEXTBUFFER) */
263 #ifndef wxUSE_TEXTFILE
264 # ifdef wxABORT_ON_CONFIG_ERROR
265 # error "wxUSE_TEXTFILE must be defined."
267 # define wxUSE_TEXTFILE 0
269 #endif /* !defined(wxUSE_TEXTFILE) */
271 #ifndef wxUSE_UNICODE
272 # ifdef wxABORT_ON_CONFIG_ERROR
273 # error "wxUSE_UNICODE must be defined."
275 # define wxUSE_UNICODE 0
277 #endif /* !defined(wxUSE_UNICODE) */
280 # ifdef wxABORT_ON_CONFIG_ERROR
281 # error "wxUSE_URL must be defined."
285 #endif /* !defined(wxUSE_URL) */
288 all these tests are for GUI only
290 please keep the options in alphabetical order!
295 all of the settings tested below must be defined or we'd get an error from
296 preprocessor about invalid integer expression
300 # ifdef wxABORT_ON_CONFIG_ERROR
301 # error "wxUSE_ACCEL must be defined."
303 # define wxUSE_ACCEL 0
305 #endif /* !defined(wxUSE_ACCEL) */
307 #ifndef wxUSE_BMPBUTTON
308 # ifdef wxABORT_ON_CONFIG_ERROR
309 # error "wxUSE_BMPBUTTON must be defined."
311 # define wxUSE_BMPBUTTON 0
313 #endif /* !defined(wxUSE_BMPBUTTON) */
316 # ifdef wxABORT_ON_CONFIG_ERROR
317 # error "wxUSE_BUTTON must be defined."
319 # define wxUSE_BUTTON 0
321 #endif /* !defined(wxUSE_BUTTON) */
323 #ifndef wxUSE_CALENDARCTRL
324 # ifdef wxABORT_ON_CONFIG_ERROR
325 # error "wxUSE_CALENDARCTRL must be defined."
327 # define wxUSE_CALENDARCTRL 0
329 #endif /* !defined(wxUSE_CALENDARCTRL) */
332 # ifdef wxABORT_ON_CONFIG_ERROR
333 # error "wxUSE_CARET must be defined."
335 # define wxUSE_CARET 0
337 #endif /* !defined(wxUSE_CARET) */
339 #ifndef wxUSE_CHECKBOX
340 # ifdef wxABORT_ON_CONFIG_ERROR
341 # error "wxUSE_CHECKBOX must be defined."
343 # define wxUSE_CHECKBOX 0
345 #endif /* !defined(wxUSE_CHECKBOX) */
347 #ifndef wxUSE_CHECKLISTBOX
348 # ifdef wxABORT_ON_CONFIG_ERROR
349 # error "wxUSE_CHECKLISTBOX must be defined."
351 # define wxUSE_CHECKLISTBOX 0
353 #endif /* !defined(wxUSE_CHECKLISTBOX) */
356 # ifdef wxABORT_ON_CONFIG_ERROR
357 # error "wxUSE_CHOICE must be defined."
359 # define wxUSE_CHOICE 0
361 #endif /* !defined(wxUSE_CHOICE) */
363 #ifndef wxUSE_CHOICEBOOK
364 # ifdef wxABORT_ON_CONFIG_ERROR
365 # error "wxUSE_CHOICEBOOK must be defined."
367 # define wxUSE_CHOICEBOOK 0
369 #endif /* !defined(wxUSE_CHOICEBOOK) */
371 #ifndef wxUSE_CHOICEDLG
372 # ifdef wxABORT_ON_CONFIG_ERROR
373 # error "wxUSE_CHOICEDLG must be defined."
375 # define wxUSE_CHOICEDLG 0
377 #endif /* !defined(wxUSE_CHOICEDLG) */
379 #ifndef wxUSE_CLIPBOARD
380 # ifdef wxABORT_ON_CONFIG_ERROR
381 # error "wxUSE_CLIPBOARD must be defined."
383 # define wxUSE_CLIPBOARD 0
385 #endif /* !defined(wxUSE_CLIPBOARD) */
387 #ifndef wxUSE_COLOURDLG
388 # ifdef wxABORT_ON_CONFIG_ERROR
389 # error "wxUSE_COLOURDLG must be defined."
391 # define wxUSE_COLOURDLG 0
393 #endif /* !defined(wxUSE_COLOURDLG) */
395 #ifndef wxUSE_COMBOBOX
396 # ifdef wxABORT_ON_CONFIG_ERROR
397 # error "wxUSE_COMBOBOX must be defined."
399 # define wxUSE_COMBOBOX 0
401 #endif /* !defined(wxUSE_COMBOBOX) */
403 #ifndef wxUSE_COMBOCTRL
404 # ifdef wxABORT_ON_CONFIG_ERROR
405 # error "wxUSE_COMBOCTRL must be defined."
407 # define wxUSE_COMBOCTRL 0
409 #endif /* !defined(wxUSE_COMBOCTRL) */
411 #ifndef wxUSE_DATAOBJ
412 # ifdef wxABORT_ON_CONFIG_ERROR
413 # error "wxUSE_DATAOBJ must be defined."
415 # define wxUSE_DATAOBJ 0
417 #endif /* !defined(wxUSE_DATAOBJ) */
419 #ifndef wxUSE_DATAVIEWCTRL
420 # ifdef wxABORT_ON_CONFIG_ERROR
421 # error "wxUSE_DATAVIEWCTRL must be defined."
423 # define wxUSE_DATAVIEWCTRL 0
425 #endif /* !defined(wxUSE_DATAVIEWCTRL) */
427 #ifndef wxUSE_DATEPICKCTRL
428 # ifdef wxABORT_ON_CONFIG_ERROR
429 # error "wxUSE_DATEPICKCTRL must be defined."
431 # define wxUSE_DATEPICKCTRL 0
433 #endif /* !defined(wxUSE_DATEPICKCTRL) */
435 #ifndef wxUSE_DISPLAY
436 # ifdef wxABORT_ON_CONFIG_ERROR
437 # error "wxUSE_DISPLAY must be defined."
439 # define wxUSE_DISPLAY 0
441 #endif /* !defined(wxUSE_DISPLAY) */
443 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
444 # ifdef wxABORT_ON_CONFIG_ERROR
445 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
447 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
449 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
451 #ifndef wxUSE_FILEDLG
452 # ifdef wxABORT_ON_CONFIG_ERROR
453 # error "wxUSE_FILEDLG must be defined."
455 # define wxUSE_FILEDLG 0
457 #endif /* !defined(wxUSE_FILEDLG) */
459 #ifndef wxUSE_FONTDLG
460 # ifdef wxABORT_ON_CONFIG_ERROR
461 # error "wxUSE_FONTDLG must be defined."
463 # define wxUSE_FONTDLG 0
465 #endif /* !defined(wxUSE_FONTDLG) */
467 #ifndef wxUSE_FONTMAP
468 # ifdef wxABORT_ON_CONFIG_ERROR
469 # error "wxUSE_FONTMAP must be defined."
471 # define wxUSE_FONTMAP 0
473 #endif /* !defined(wxUSE_FONTMAP) */
476 # ifdef wxABORT_ON_CONFIG_ERROR
477 # error "wxUSE_GAUGE must be defined."
479 # define wxUSE_GAUGE 0
481 #endif /* !defined(wxUSE_GAUGE) */
484 # ifdef wxABORT_ON_CONFIG_ERROR
485 # error "wxUSE_GRID must be defined."
487 # define wxUSE_GRID 0
489 #endif /* !defined(wxUSE_GRID) */
492 # ifdef wxABORT_ON_CONFIG_ERROR
493 # error "wxUSE_HELP must be defined."
495 # define wxUSE_HELP 0
497 #endif /* !defined(wxUSE_HELP) */
499 #ifndef wxUSE_HYPERLINKCTRL
500 # ifdef wxABORT_ON_CONFIG_ERROR
501 # error "wxUSE_HYPERLINKCTRL must be defined."
503 # define wxUSE_HYPERLINKCTRL 0
505 #endif /* !defined(wxUSE_HYPERLINKCTRL) */
508 # ifdef wxABORT_ON_CONFIG_ERROR
509 # error "wxUSE_HTML must be defined."
511 # define wxUSE_HTML 0
513 #endif /* !defined(wxUSE_HTML) */
515 #ifndef wxUSE_LIBMSPACK
517 /* set to 0 on platforms that don't have libmspack */
518 # define wxUSE_LIBMSPACK 0
520 # ifdef wxABORT_ON_CONFIG_ERROR
521 # error "wxUSE_LIBMSPACK must be defined."
523 # define wxUSE_LIBMSPACK 0
526 #endif /* !defined(wxUSE_LIBMSPACK) */
528 #ifndef wxUSE_ICO_CUR
529 # ifdef wxABORT_ON_CONFIG_ERROR
530 # error "wxUSE_ICO_CUR must be defined."
532 # define wxUSE_ICO_CUR 0
534 #endif /* !defined(wxUSE_ICO_CUR) */
537 # ifdef wxABORT_ON_CONFIG_ERROR
538 # error "wxUSE_IFF must be defined."
542 #endif /* !defined(wxUSE_IFF) */
544 #ifndef wxUSE_IMAGLIST
545 # ifdef wxABORT_ON_CONFIG_ERROR
546 # error "wxUSE_IMAGLIST must be defined."
548 # define wxUSE_IMAGLIST 0
550 #endif /* !defined(wxUSE_IMAGLIST) */
552 #ifndef wxUSE_JOYSTICK
553 # ifdef wxABORT_ON_CONFIG_ERROR
554 # error "wxUSE_JOYSTICK must be defined."
556 # define wxUSE_JOYSTICK 0
558 #endif /* !defined(wxUSE_JOYSTICK) */
560 #ifndef wxUSE_LISTBOOK
561 # ifdef wxABORT_ON_CONFIG_ERROR
562 # error "wxUSE_LISTBOOK must be defined."
564 # define wxUSE_LISTBOOK 0
566 #endif /* !defined(wxUSE_LISTBOOK) */
568 #ifndef wxUSE_LISTBOX
569 # ifdef wxABORT_ON_CONFIG_ERROR
570 # error "wxUSE_LISTBOX must be defined."
572 # define wxUSE_LISTBOX 0
574 #endif /* !defined(wxUSE_LISTBOX) */
576 #ifndef wxUSE_LISTCTRL
577 # ifdef wxABORT_ON_CONFIG_ERROR
578 # error "wxUSE_LISTCTRL must be defined."
580 # define wxUSE_LISTCTRL 0
582 #endif /* !defined(wxUSE_LISTCTRL) */
585 # ifdef wxABORT_ON_CONFIG_ERROR
586 # error "wxUSE_LOGGUI must be defined."
588 # define wxUSE_LOGGUI 0
590 #endif /* !defined(wxUSE_LOGGUI) */
592 #ifndef wxUSE_LOGWINDOW
593 # ifdef wxABORT_ON_CONFIG_ERROR
594 # error "wxUSE_LOGWINDOW must be defined."
596 # define wxUSE_LOGWINDOW 0
598 #endif /* !defined(wxUSE_LOGWINDOW) */
600 #ifndef wxUSE_LOG_DIALOG
601 # ifdef wxABORT_ON_CONFIG_ERROR
602 # error "wxUSE_LOG_DIALOG must be defined."
604 # define wxUSE_LOG_DIALOG 0
606 #endif /* !defined(wxUSE_LOG_DIALOG) */
609 # ifdef wxABORT_ON_CONFIG_ERROR
610 # error "wxUSE_MDI must be defined."
614 #endif /* !defined(wxUSE_MDI) */
616 #ifndef wxUSE_MDI_ARCHITECTURE
617 # ifdef wxABORT_ON_CONFIG_ERROR
618 # error "wxUSE_MDI_ARCHITECTURE must be defined."
620 # define wxUSE_MDI_ARCHITECTURE 0
622 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
625 # ifdef wxABORT_ON_CONFIG_ERROR
626 # error "wxUSE_MENUS must be defined."
628 # define wxUSE_MENUS 0
630 #endif /* !defined(wxUSE_MENUS) */
633 # ifdef wxABORT_ON_CONFIG_ERROR
634 # error "wxUSE_MSGDLG must be defined."
636 # define wxUSE_MSGDLG 0
638 #endif /* !defined(wxUSE_MSGDLG) */
640 #ifndef wxUSE_NOTEBOOK
641 # ifdef wxABORT_ON_CONFIG_ERROR
642 # error "wxUSE_NOTEBOOK must be defined."
644 # define wxUSE_NOTEBOOK 0
646 #endif /* !defined(wxUSE_NOTEBOOK) */
648 #ifndef wxUSE_ODCOMBOBOX
649 # ifdef wxABORT_ON_CONFIG_ERROR
650 # error "wxUSE_ODCOMBOBOX must be defined."
652 # define wxUSE_ODCOMBOBOX 0
654 #endif /* !defined(wxUSE_ODCOMBOBOX) */
656 #ifndef wxUSE_PALETTE
657 # ifdef wxABORT_ON_CONFIG_ERROR
658 # error "wxUSE_PALETTE must be defined."
660 # define wxUSE_PALETTE 0
662 #endif /* !defined(wxUSE_PALETTE) */
664 #ifndef wxUSE_POPUPWIN
665 # ifdef wxABORT_ON_CONFIG_ERROR
666 # error "wxUSE_POPUPWIN must be defined."
668 # define wxUSE_POPUPWIN 0
670 #endif /* !defined(wxUSE_POPUPWIN) */
672 #ifndef wxUSE_PRINTING_ARCHITECTURE
673 # ifdef wxABORT_ON_CONFIG_ERROR
674 # error "wxUSE_PRINTING_ARCHITECTURE must be defined."
676 # define wxUSE_PRINTING_ARCHITECTURE 0
678 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
680 #ifndef wxUSE_RADIOBOX
681 # ifdef wxABORT_ON_CONFIG_ERROR
682 # error "wxUSE_RADIOBOX must be defined."
684 # define wxUSE_RADIOBOX 0
686 #endif /* !defined(wxUSE_RADIOBOX) */
688 #ifndef wxUSE_RADIOBTN
689 # ifdef wxABORT_ON_CONFIG_ERROR
690 # error "wxUSE_RADIOBTN must be defined."
692 # define wxUSE_RADIOBTN 0
694 #endif /* !defined(wxUSE_RADIOBTN) */
697 # ifdef wxABORT_ON_CONFIG_ERROR
698 # error "wxUSE_SASH must be defined."
700 # define wxUSE_SASH 0
702 #endif /* !defined(wxUSE_SASH) */
704 #ifndef wxUSE_SCROLLBAR
705 # ifdef wxABORT_ON_CONFIG_ERROR
706 # error "wxUSE_SCROLLBAR must be defined."
708 # define wxUSE_SCROLLBAR 0
710 #endif /* !defined(wxUSE_SCROLLBAR) */
713 # ifdef wxABORT_ON_CONFIG_ERROR
714 # error "wxUSE_SLIDER must be defined."
716 # define wxUSE_SLIDER 0
718 #endif /* !defined(wxUSE_SLIDER) */
721 # ifdef wxABORT_ON_CONFIG_ERROR
722 # error "wxUSE_SOUND must be defined."
724 # define wxUSE_SOUND 0
726 #endif /* !defined(wxUSE_SOUND) */
728 #ifndef wxUSE_SPINBTN
729 # ifdef wxABORT_ON_CONFIG_ERROR
730 # error "wxUSE_SPINBTN must be defined."
732 # define wxUSE_SPINBTN 0
734 #endif /* !defined(wxUSE_SPINBTN) */
736 #ifndef wxUSE_SPINCTRL
737 # ifdef wxABORT_ON_CONFIG_ERROR
738 # error "wxUSE_SPINCTRL must be defined."
740 # define wxUSE_SPINCTRL 0
742 #endif /* !defined(wxUSE_SPINCTRL) */
745 # ifdef wxABORT_ON_CONFIG_ERROR
746 # error "wxUSE_SPLASH must be defined."
748 # define wxUSE_SPLASH 0
750 #endif /* !defined(wxUSE_SPLASH) */
752 #ifndef wxUSE_SPLITTER
753 # ifdef wxABORT_ON_CONFIG_ERROR
754 # error "wxUSE_SPLITTER must be defined."
756 # define wxUSE_SPLITTER 0
758 #endif /* !defined(wxUSE_SPLITTER) */
760 #ifndef wxUSE_STATBMP
761 # ifdef wxABORT_ON_CONFIG_ERROR
762 # error "wxUSE_STATBMP must be defined."
764 # define wxUSE_STATBMP 0
766 #endif /* !defined(wxUSE_STATBMP) */
768 #ifndef wxUSE_STATBOX
769 # ifdef wxABORT_ON_CONFIG_ERROR
770 # error "wxUSE_STATBOX must be defined."
772 # define wxUSE_STATBOX 0
774 #endif /* !defined(wxUSE_STATBOX) */
776 #ifndef wxUSE_STATLINE
777 # ifdef wxABORT_ON_CONFIG_ERROR
778 # error "wxUSE_STATLINE must be defined."
780 # define wxUSE_STATLINE 0
782 #endif /* !defined(wxUSE_STATLINE) */
784 #ifndef wxUSE_STATTEXT
785 # ifdef wxABORT_ON_CONFIG_ERROR
786 # error "wxUSE_STATTEXT must be defined."
788 # define wxUSE_STATTEXT 0
790 #endif /* !defined(wxUSE_STATTEXT) */
792 #ifndef wxUSE_STATUSBAR
793 # ifdef wxABORT_ON_CONFIG_ERROR
794 # error "wxUSE_STATUSBAR must be defined."
796 # define wxUSE_STATUSBAR 0
798 #endif /* !defined(wxUSE_STATUSBAR) */
800 #ifndef wxUSE_TAB_DIALOG
801 # ifdef wxABORT_ON_CONFIG_ERROR
802 # error "wxUSE_TAB_DIALOG must be defined."
804 # define wxUSE_TAB_DIALOG 0
806 #endif /* !defined(wxUSE_TAB_DIALOG) */
808 #ifndef wxUSE_TEXTCTRL
809 # ifdef wxABORT_ON_CONFIG_ERROR
810 # error "wxUSE_TEXTCTRL must be defined."
812 # define wxUSE_TEXTCTRL 0
814 #endif /* !defined(wxUSE_TEXTCTRL) */
816 #ifndef wxUSE_TIPWINDOW
817 # ifdef wxABORT_ON_CONFIG_ERROR
818 # error "wxUSE_TIPWINDOW must be defined."
820 # define wxUSE_TIPWINDOW 0
822 #endif /* !defined(wxUSE_TIPWINDOW) */
824 #ifndef wxUSE_TOOLBAR
825 # ifdef wxABORT_ON_CONFIG_ERROR
826 # error "wxUSE_TOOLBAR must be defined."
828 # define wxUSE_TOOLBAR 0
830 #endif /* !defined(wxUSE_TOOLBAR) */
832 #ifndef wxUSE_TOOLTIPS
833 # ifdef wxABORT_ON_CONFIG_ERROR
834 # error "wxUSE_TOOLTIPS must be defined."
836 # define wxUSE_TOOLTIPS 0
838 #endif /* !defined(wxUSE_TOOLTIPS) */
840 #ifndef wxUSE_TREECTRL
841 # ifdef wxABORT_ON_CONFIG_ERROR
842 # error "wxUSE_TREECTRL must be defined."
844 # define wxUSE_TREECTRL 0
846 #endif /* !defined(wxUSE_TREECTRL) */
848 #ifndef wxUSE_VALIDATORS
849 # ifdef wxABORT_ON_CONFIG_ERROR
850 # error "wxUSE_VALIDATORS must be defined."
852 # define wxUSE_VALIDATORS 0
854 #endif /* !defined(wxUSE_VALIDATORS) */
856 #ifndef wxUSE_WXHTML_HELP
857 # ifdef wxABORT_ON_CONFIG_ERROR
858 # error "wxUSE_WXHTML_HELP must be defined."
860 # define wxUSE_WXHTML_HELP 0
862 #endif /* !defined(wxUSE_WXHTML_HELP) */
865 # ifdef wxABORT_ON_CONFIG_ERROR
866 # error "wxUSE_XRC must be defined."
870 #endif /* !defined(wxUSE_XRC) */
872 #endif /* wxUSE_GUI */
875 check consistency of the settings
878 #if WXWIN_COMPATIBILITY_2_4
879 # if !WXWIN_COMPATIBILITY_2_6
880 # ifdef wxABORT_ON_CONFIG_ERROR
881 # error "2.4.X compatibility requires 2.6.X compatibility"
883 # undef WXWIN_COMPATIBILITY_2_6
884 # define WXWIN_COMPATIBILITY_2_6 1
887 #endif /* WXWIN_COMPATIBILITY_2_4 */
889 #if wxUSE_ARCHIVE_STREAMS
891 # ifdef wxABORT_ON_CONFIG_ERROR
892 # error "wxArchive requires wxUSE_DATETIME"
894 # undef wxUSE_ARCHIVE_STREAMS
895 # define wxUSE_ARCHIVE_STREAMS 0
898 #endif /* wxUSE_ARCHIVE_STREAMS */
900 #if wxUSE_CRASHREPORT && !wxUSE_ON_FATAL_EXCEPTION
901 # ifdef wxABORT_ON_CONFIG_ERROR
902 # error "wxUSE_CRASHREPORT requires wxUSE_ON_FATAL_EXCEPTION"
904 # undef wxUSE_CRASHREPORT
905 # define wxUSE_CRASHREPORT 0
907 #endif /* wxUSE_CRASHREPORT */
909 #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
911 # ifdef wxABORT_ON_CONFIG_ERROR
912 # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
914 # undef wxUSE_PROTOCOL
915 # define wxUSE_PROTOCOL 1
918 #endif /* wxUSE_PROTOCOL_XXX */
922 # ifdef wxABORT_ON_CONFIG_ERROR
923 # error "wxUSE_URL requires wxUSE_PROTOCOL"
925 # undef wxUSE_PROTOCOL
926 # define wxUSE_PROTOCOL 1
929 #endif /* wxUSE_URL */
933 # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
934 # ifdef wxABORT_ON_CONFIG_ERROR
935 # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
937 # undef wxUSE_SOCKETS
938 # define wxUSE_SOCKETS 1
944 # ifdef wxABORT_ON_CONFIG_ERROR
945 # error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
947 # undef wxUSE_STREAMS
948 # define wxUSE_STREAMS 1
951 #endif /* wxUSE_PROTOCOL */
953 /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
955 # if !wxUSE_FILESYSTEM
956 # ifdef wxABORT_ON_CONFIG_ERROR
957 # error "wxHTML requires wxFileSystem"
959 # undef wxUSE_FILESYSTEM
960 # define wxUSE_FILESYSTEM 1
963 #endif /* wxUSE_HTML */
967 # ifdef wxABORT_ON_CONFIG_ERROR
968 # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
970 # undef wxUSE_STREAMS
971 # define wxUSE_STREAMS 1
974 #endif /* wxUSE_FILESYSTEM */
978 # ifdef wxABORT_ON_CONFIG_ERROR
979 # error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
981 # undef wxUSE_PROTOCOL
982 # define wxUSE_PROTOCOL 1
985 #endif /* wxUSE_FS_INET */
987 #if wxUSE_STOPWATCH || wxUSE_DATETIME
989 # ifdef wxABORT_ON_CONFIG_ERROR
990 # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
992 # undef wxUSE_LONGLONG
993 # define wxUSE_LONGLONG 1
996 #endif /* wxUSE_STOPWATCH */
998 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
999 # ifdef wxABORT_ON_CONFIG_ERROR
1000 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
1002 # undef wxUSE_TEXTFILE
1003 # define wxUSE_TEXTFILE 1
1005 #endif /* wxUSE_MIMETYPE */
1008 # if !wxUSE_DATETIME
1009 # ifdef wxABORT_ON_CONFIG_ERROR
1010 # error "wxODBC requires wxUSE_DATETIME"
1013 # define wxUSE_ODBC 0
1016 #endif /* wxUSE_ODBC */
1018 #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
1019 # ifdef wxABORT_ON_CONFIG_ERROR
1020 # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
1022 # undef wxUSE_TEXTBUFFER
1023 # define wxUSE_TEXTBUFFER 1
1025 #endif /* wxUSE_TEXTFILE */
1027 #if wxUSE_TEXTFILE && !wxUSE_FILE
1028 # ifdef wxABORT_ON_CONFIG_ERROR
1029 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
1032 # define wxUSE_FILE 1
1034 #endif /* wxUSE_TEXTFILE */
1036 #if wxUSE_XML && !wxUSE_WCHAR_T
1037 # ifdef wxABORT_ON_CONFIG_ERROR
1038 # error "wxUSE_XML requires wxUSE_WCHAR_T"
1041 # define wxUSE_XML 0
1043 #endif /* wxUSE_XML */
1045 #if !wxUSE_DYNLIB_CLASS
1046 # if wxUSE_DYNAMIC_LOADER
1047 # ifdef wxABORT_ON_CONFIG_ERROR
1048 # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
1050 # define wxUSE_DYNLIB_CLASS 1
1053 #endif /* wxUSE_DYNLIB_CLASS */
1057 # ifdef wxABORT_ON_CONFIG_ERROR
1058 # error "wxZip requires wxZlib"
1061 # define wxUSE_ZLIB 1
1064 # if !wxUSE_ARCHIVE_STREAMS
1065 # ifdef wxABORT_ON_CONFIG_ERROR
1066 # error "wxZip requires wxArchive"
1068 # undef wxUSE_ARCHIVE_STREAMS
1069 # define wxUSE_ARCHIVE_STREAMS 1
1072 #endif /* wxUSE_ZIPSTREAM */
1074 /* the rest of the tests is for the GUI settings only */
1077 #if wxUSE_BUTTON || \
1078 wxUSE_CALENDARCTRL || \
1081 wxUSE_BMPBUTTON || \
1083 wxUSE_CHECKLISTBOX || \
1092 wxUSE_SCROLLBAR || \
1100 wxUSE_STATUSBAR || \
1104 # if !wxUSE_CONTROLS
1105 # ifdef wxABORT_ON_CONFIG_ERROR
1106 # error "wxUSE_CONTROLS unset but some controls used"
1108 # undef wxUSE_CONTROLS
1109 # define wxUSE_CONTROLS 1
1112 #endif /* controls */
1116 # ifdef wxABORT_ON_CONFIG_ERROR
1117 # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1119 # undef wxUSE_BUTTON
1120 # define wxUSE_BUTTON 1
1123 #endif /* wxUSE_BMPBUTTON */
1125 #if wxUSE_NOTEBOOK || wxUSE_LISTBOOK || wxUSE_CHOICEBOOK
1126 # if defined(wxUSE_BOOKCTRL) && !wxUSE_BOOKCTRL
1127 # ifdef wxABORT_ON_CONFIG_ERROR
1128 # error "wxUSE_BOOKCTRL must be set."
1130 # undef wxUSE_BOOKCTRL
1134 # ifndef wxUSE_BOOKCTRL
1135 # define wxUSE_BOOKCTRL 1
1137 #endif /* wxUSE_NOTEBOOK */
1140 # if !wxUSE_LISTCTRL
1141 # ifdef wxABORT_ON_CONFIG_ERROR
1142 # error "wxListbook requires wxListCtrl"
1144 # undef wxUSE_LISTCTRL
1145 # define wxUSE_LISTCTRL 1
1148 #endif /* wxUSE_LISTBOOK */
1150 #if wxUSE_CHOICEBOOK
1152 # ifdef wxABORT_ON_CONFIG_ERROR
1153 # error "wxChoicebook requires wxChoice"
1155 # undef wxUSE_CHOICE
1156 # define wxUSE_CHOICE 1
1159 #endif /* wxUSE_CHOICEBOOK */
1161 /* don't attempt to use native status bar on the platforms not having it */
1162 #ifndef wxUSE_NATIVE_STATUSBAR
1163 # define wxUSE_NATIVE_STATUSBAR 0
1164 #elif wxUSE_NATIVE_STATUSBAR
1165 # if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1166 defined(__WXMAC__) || \
1167 defined(__WXPALMOS__) )
1168 # undef wxUSE_NATIVE_STATUSBAR
1169 # define wxUSE_NATIVE_STATUSBAR 0
1173 /* wxUniv-specific dependencies */
1174 #if defined(__WXUNIVERSAL__)
1175 # if (wxUSE_COMBOBOX || wxUSE_MENUS) && !wxUSE_POPUPWIN
1176 # ifdef wxABORT_ON_CONFIG_ERROR
1177 # error "wxUSE_POPUPWIN must be defined to use comboboxes/menus"
1179 # undef wxUSE_POPUPWIN
1180 # define wxUSE_POPUPWIN 1
1186 # ifdef wxABORT_ON_CONFIG_ERROR
1187 # error "wxComboBox requires wxListBox in wxUniversal"
1189 # undef wxUSE_LISTBOX
1190 # define wxUSE_LISTBOX 1
1193 # endif /* wxUSE_COMBOBOX */
1196 # if !wxUSE_CHECKBOX
1197 # ifdef wxABORT_ON_CONFIG_ERROR
1198 # error "wxUSE_RADIOBTN requires wxUSE_CHECKBOX in wxUniversal"
1200 # undef wxUSE_CHECKBOX
1201 # define wxUSE_CHECKBOX 1
1204 # endif /* wxUSE_RADIOBTN */
1208 # ifdef wxABORT_ON_CONFIG_ERROR
1209 # error "wxTextCtrl requires wxCaret in wxUniversal"
1212 # define wxUSE_CARET 1
1214 # endif /* wxUSE_CARET */
1216 # if !wxUSE_SCROLLBAR
1217 # ifdef wxABORT_ON_CONFIG_ERROR
1218 # error "wxTextCtrl requires wxScrollBar in wxUniversal"
1220 # undef wxUSE_SCROLLBAR
1221 # define wxUSE_SCROLLBAR 1
1223 # endif /* wxUSE_SCROLLBAR */
1224 # endif /* wxUSE_TEXTCTRL */
1225 #endif /* __WXUNIVERSAL__ */
1227 /* wxGTK-specific dependencies */
1229 # ifndef __WXUNIVERSAL__
1230 # if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS
1231 # ifdef wxABORT_ON_CONFIG_ERROR
1232 # error "MDI requires wxUSE_MENUS in wxGTK"
1235 # define wxUSE_MENUS 1
1238 # endif /* !__WXUNIVERSAL__ */
1242 # ifdef wxABORT_ON_CONFIG_ERROR
1243 # error "wxJoystick requires threads in wxGTK"
1245 # undef wxUSE_JOYSTICK
1246 # define wxUSE_JOYSTICK 0
1250 #endif /* wxGTK && !wxUniv */
1252 /* wxMGL-specific dependencies */
1255 # error "wxMGL requires wxUSE_PALETTE=1"
1259 /* Hopefully we can emulate these dialogs in due course */
1260 #if defined(__SMARTPHONE__) && defined(__WXWINCE__)
1261 # ifdef wxUSE_COLOURDLG
1262 # undef wxUSE_COLOURDLG
1263 # define wxUSE_COLOURDLG 0
1265 #endif /* __SMARTPHONE__ && __WXWINCE__ */
1268 /* generic controls dependencies */
1269 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1270 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1271 /* all common controls are needed by these dialogs */
1272 # if !defined(wxUSE_CHOICE) || \
1273 !defined(wxUSE_TEXTCTRL) || \
1274 !defined(wxUSE_BUTTON) || \
1275 !defined(wxUSE_CHECKBOX) || \
1276 !defined(wxUSE_STATTEXT)
1277 # ifdef wxABORT_ON_CONFIG_ERROR
1278 # error "These common controls are needed by common dialogs"
1280 # undef wxUSE_CHOICE
1281 # define wxUSE_CHOICE 1
1282 # undef wxUSE_TEXTCTRL
1283 # define wxUSE_TEXTCTRL 1
1284 # undef wxUSE_BUTTON
1285 # define wxUSE_BUTTON 1
1286 # undef wxUSE_CHECKBOX
1287 # define wxUSE_CHECKBOX 1
1288 # undef wxUSE_STATTEXT
1289 # define wxUSE_STATTEXT 1
1293 #endif /* !wxMSW || wxUniv */
1295 /* common dependencies */
1296 #if wxUSE_CALENDARCTRL
1297 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1298 # ifdef wxABORT_ON_CONFIG_ERROR
1299 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1301 # undef wxUSE_SPINBTN
1302 # undef wxUSE_COMBOBOX
1303 # define wxUSE_SPINBTN 1
1304 # define wxUSE_COMBOBOX 1
1308 # if !wxUSE_DATETIME
1309 # ifdef wxABORT_ON_CONFIG_ERROR
1310 # error "wxCalendarCtrl requires wxUSE_DATETIME"
1312 # undef wxUSE_DATETIME
1313 # define wxUSE_DATETIME 1
1316 #endif /* wxUSE_CALENDARCTRL */
1318 #if wxUSE_DATEPICKCTRL
1319 # if !wxUSE_DATETIME
1320 # ifdef wxABORT_ON_CONFIG_ERROR
1321 # error "wxDatePickerCtrl requires wxUSE_DATETIME"
1323 # undef wxUSE_DATETIME
1324 # define wxUSE_DATETIME 1
1327 #endif /* wxUSE_DATEPICKCTRL */
1329 #if wxUSE_CHECKLISTBOX
1331 # ifdef wxABORT_ON_CONFIG_ERROR
1332 # error "wxCheckListBox requires wxListBox"
1334 # undef wxUSE_LISTBOX
1335 # define wxUSE_LISTBOX 1
1338 #endif /* wxUSE_CHECKLISTBOX */
1342 # ifdef wxABORT_ON_CONFIG_ERROR
1343 # error "Choice dialogs requires wxListBox"
1345 # undef wxUSE_LISTBOX
1346 # define wxUSE_LISTBOX 1
1349 #endif /* wxUSE_CHOICEDLG */
1352 # if !wxUSE_BMPBUTTON
1353 # ifdef wxABORT_ON_CONFIG_ERROR
1354 # error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1356 # undef wxUSE_BMPBUTTON
1357 # define wxUSE_BMPBUTTON 1
1361 # if !wxUSE_CHOICEDLG
1362 # ifdef wxABORT_ON_CONFIG_ERROR
1363 # error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1365 # undef wxUSE_CHOICEDLG
1366 # define wxUSE_CHOICEDLG 1
1369 #endif /* wxUSE_HELP */
1371 #if wxUSE_WXHTML_HELP
1372 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
1373 # ifdef wxABORT_ON_CONFIG_ERROR
1374 # error "Built in help controller can't be compiled"
1377 # define wxUSE_HELP 1
1379 # define wxUSE_HTML 1
1380 # undef wxUSE_COMBOBOX
1381 # define wxUSE_COMBOBOX 1
1382 # undef wxUSE_NOTEBOOK
1383 # define wxUSE_NOTEBOOK 1
1384 # undef wxUSE_SPINCTRL
1385 # define wxUSE_SPINCTRL 1
1388 #endif /* wxUSE_WXHTML_HELP */
1392 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1393 user explicitly wants this and disable all other features that require
1396 # if wxUSE_DRAGIMAGE
1397 # ifdef wxABORT_ON_CONFIG_ERROR
1398 # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1400 # undef wxUSE_DRAGIMAGE
1401 # define wxUSE_DRAGIMAGE 0
1406 # ifdef wxABORT_ON_CONFIG_ERROR
1407 # error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1409 # undef wxUSE_LIBPNG
1410 # define wxUSE_LIBPNG 0
1415 # ifdef wxABORT_ON_CONFIG_ERROR
1416 # error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1418 # undef wxUSE_LIBJPEG
1419 # define wxUSE_LIBJPEG 0
1424 # ifdef wxABORT_ON_CONFIG_ERROR
1425 # error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1427 # undef wxUSE_LIBTIFF
1428 # define wxUSE_LIBTIFF 0
1433 # ifdef wxABORT_ON_CONFIG_ERROR
1434 # error "wxUSE_GIF requires wxUSE_IMAGE"
1437 # define wxUSE_GIF 0
1442 # ifdef wxABORT_ON_CONFIG_ERROR
1443 # error "wxUSE_PNM requires wxUSE_IMAGE"
1446 # define wxUSE_PNM 0
1451 # ifdef wxABORT_ON_CONFIG_ERROR
1452 # error "wxUSE_PCX requires wxUSE_IMAGE"
1455 # define wxUSE_PCX 0
1460 # ifdef wxABORT_ON_CONFIG_ERROR
1461 # error "wxUSE_IFF requires wxUSE_IMAGE"
1464 # define wxUSE_IFF 0
1469 # ifdef wxABORT_ON_CONFIG_ERROR
1470 # error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1472 # undef wxUSE_TOOLBAR
1473 # define wxUSE_TOOLBAR 0
1478 # ifdef wxABORT_ON_CONFIG_ERROR
1479 # error "wxUSE_XPM requires wxUSE_IMAGE"
1482 # define wxUSE_XPM 0
1486 #endif /* !wxUSE_IMAGE */
1488 #if wxUSE_DOC_VIEW_ARCHITECTURE
1490 # ifdef wxABORT_ON_CONFIG_ERROR
1491 # error "DocView requires wxUSE_MENUS"
1494 # define wxUSE_MENUS 1
1498 # if !wxUSE_CHOICEDLG
1499 # ifdef wxABORT_ON_CONFIG_ERROR
1500 # error "DocView requires wxUSE_CHOICEDLG"
1502 # undef wxUSE_CHOICEDLG
1503 # define wxUSE_CHOICEDLG 1
1507 # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1508 # ifdef wxABORT_ON_CONFIG_ERROR
1509 # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1511 # undef wxUSE_STREAMS
1512 # define wxUSE_STREAMS 1
1515 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1517 #if wxUSE_PRINTING_ARCHITECTURE
1518 # if !wxUSE_COMBOBOX
1519 # ifdef wxABORT_ON_CONFIG_ERROR
1520 # error "Print dialog requires wxUSE_COMBOBOX"
1522 # undef wxUSE_COMBOBOX
1523 # define wxUSE_COMBOBOX 1
1526 #endif /* wxUSE_PRINTING_ARCHITECTURE */
1528 #if wxUSE_MDI_ARCHITECTURE
1530 # ifdef wxABORT_ON_CONFIG_ERROR
1531 # error "MDI requires wxUSE_MDI"
1534 # define wxUSE_MDI 1
1538 # if !wxUSE_DOC_VIEW_ARCHITECTURE
1539 # ifdef wxABORT_ON_CONFIG_ERROR
1540 # error "wxUSE_MDI_ARCHITECTURE requires wxUSE_DOC_VIEW_ARCHITECTURE"
1542 # undef wxUSE_DOC_VIEW_ARCHITECTURE
1543 # define wxUSE_DOC_VIEW_ARCHITECTURE 1
1546 #endif /* wxUSE_MDI_ARCHITECTURE */
1549 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1550 # ifdef wxABORT_ON_CONFIG_ERROR
1551 # error "wxUSE_FILEDLG is required by wxUSE_DOC_VIEW_ARCHITECTURE and wxUSE_WXHTML_HELP!"
1553 # undef wxUSE_FILEDLG
1554 # define wxUSE_FILEDLG 1
1557 #endif /* wxUSE_FILEDLG */
1559 #if !wxUSE_GAUGE || !wxUSE_BUTTON
1560 # if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
1561 # ifdef wxABORT_ON_CONFIG_ERROR
1562 # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
1565 # undef wxUSE_BUTTON
1566 # define wxUSE_GAUGE 1
1567 # define wxUSE_BUTTON 1
1570 #endif /* !wxUSE_GAUGE */
1573 # if wxUSE_FONTDLG || \
1575 wxUSE_CHOICEDLG || \
1576 wxUSE_NUMBERDLG || \
1579 wxUSE_STARTUP_TIPS || \
1581 # ifdef wxABORT_ON_CONFIG_ERROR
1582 # error "Common and generic dialogs require wxUSE_BUTTON"
1584 # undef wxUSE_BUTTON
1585 # define wxUSE_BUTTON 1
1588 #endif /* !wxUSE_BUTTON */
1591 # if wxUSE_TOOLBAR_NATIVE
1592 # ifdef wxABORT_ON_CONFIG_ERROR
1593 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1595 # undef wxUSE_TOOLBAR_NATIVE
1596 # define wxUSE_TOOLBAR_NATIVE 0
1600 # if wxUSE_TOOLBAR_SIMPLE
1601 # ifdef wxABORT_ON_CONFIG_ERROR
1602 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_SIMPLE is set to 1"
1604 # undef wxUSE_TOOLBAR_SIMPLE
1605 # define wxUSE_TOOLBAR_SIMPLE 0
1611 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1612 # ifdef wxABORT_ON_CONFIG_ERROR
1613 # error "wxImageList must be compiled as well"
1615 # undef wxUSE_IMAGLIST
1616 # define wxUSE_IMAGLIST 1
1619 #endif /* !wxUSE_IMAGLIST */
1622 # ifdef wxABORT_ON_CONFIG_ERROR
1623 /* FIXME: should compile without it, of course, but doesn't */
1624 # error "wxMessageBox is always needed"
1626 # undef wxUSE_MSGDLG
1627 # define wxUSE_MSGDLG 1
1632 # if !wxUSE_RADIOBTN
1633 # ifdef wxABORT_ON_CONFIG_ERROR
1634 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
1636 # undef wxUSE_RADIOBTN
1637 # define wxUSE_RADIOBTN 1
1640 # if !wxUSE_STATBOX && !defined(__WXPALMOS__)
1641 # ifdef wxABORT_ON_CONFIG_ERROR
1642 # error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
1644 # undef wxUSE_STATBOX
1645 # define wxUSE_STATBOX 1
1648 #endif /* wxUSE_RADIOBOX */
1651 # if !wxUSE_TEXTCTRL
1652 # ifdef wxABORT_ON_CONFIG_ERROR
1653 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1655 # undef wxUSE_TEXTCTRL
1656 # define wxUSE_TEXTCTRL 1
1659 #endif /* wxUSE_LOGWINDOW */
1661 #if wxUSE_LOG_DIALOG
1662 # if !wxUSE_LISTCTRL || !wxUSE_BUTTON
1663 # ifdef wxABORT_ON_CONFIG_ERROR
1664 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
1666 # undef wxUSE_LISTCTRL
1667 # define wxUSE_LISTCTRL 1
1668 # undef wxUSE_BUTTON
1669 # define wxUSE_BUTTON 1
1672 #endif /* wxUSE_LOG_DIALOG */
1674 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
1675 # ifdef wxABORT_ON_CONFIG_ERROR
1676 # error "wxClipboard requires wxDataObject"
1678 # undef wxUSE_DATAOBJ
1679 # define wxUSE_DATAOBJ 1
1681 #endif /* wxUSE_CLIPBOARD */
1683 #if wxUSE_WX_RESOURCES && !wxUSE_PROLOGIO
1684 # ifdef wxABORT_ON_CONFIG_ERROR
1685 # error "wxr resources require PrologIO"
1687 # undef wxUSE_PROLOGIO
1688 # define wxUSE_PROLOGIO 1
1690 #endif /* wxUSE_WX_RESOURCES */
1692 #if wxUSE_XRC && !wxUSE_XML
1693 # ifdef wxABORT_ON_CONFIG_ERROR
1694 # error "wxUSE_XRC requires wxUSE_XML"
1697 # define wxUSE_XRC 0
1699 #endif /* wxUSE_XRC */
1701 #if wxUSE_SOCKETS && !wxUSE_STOPWATCH
1702 # ifdef wxABORT_ON_CONFIG_ERROR
1703 # error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
1705 # undef wxUSE_SOCKETS
1706 # define wxUSE_SOCKETS 0
1708 #endif /* wxUSE_SOCKETS */
1710 #endif /* wxUSE_GUI */