]>
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 Compiler-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(__WXMOTIF__)
27 # include "wx/motif/chkconf.h"
31 this global setting determines what should we do if the setting FOO
32 requires BAR and BAR is not set: we can either silently define BAR
33 (default, recommended) or give an error and abort (mainly useful for
36 #define wxABORT_ON_CONFIG_ERROR
42 /* GUI build by default */
43 #if !defined(wxUSE_GUI)
45 #endif /* !defined(wxUSE_GUI) */
48 If we're compiling without support for threads/exceptions we have to
49 disable the corresponding features.
53 # define wxUSE_THREADS 0
54 #endif /* wxNO_THREADS */
56 #ifdef wxNO_EXCEPTIONS
57 # undef wxUSE_EXCEPTIONS
58 # define wxUSE_EXCEPTIONS 0
59 #endif /* wxNO_EXCEPTIONS */
61 /* we also must disable exceptions if compiler doesn't support them */
62 #if defined(_MSC_VER) && !defined(_CPPUNWIND)
63 # undef wxUSE_EXCEPTIONS
64 # define wxUSE_EXCEPTIONS 0
65 #endif /* VC++ without exceptions support */
69 tests for non GUI features
72 #ifndef wxUSE_CRASHREPORT
73 /* this one is special: as currently it is Windows-only, don't force it
74 to be defined on other platforms */
75 # if defined(wxABORT_ON_CONFIG_ERROR) && defined(__WXMSW__)
76 # error "wxUSE_CRASHREPORT must be defined."
78 # define wxUSE_CRASHREPORT 0
80 #endif /* !defined(wxUSE_CRASHREPORT) */
82 #ifndef wxUSE_DYNLIB_CLASS
83 # ifdef wxABORT_ON_CONFIG_ERROR
84 # error "wxUSE_DYNLIB_CLASS must be defined."
86 # define wxUSE_DYNLIB_CLASS 0
88 #endif /* !defined(wxUSE_DYNLIB_CLASS) */
90 #ifndef wxUSE_EXCEPTIONS
91 # ifdef wxABORT_ON_CONFIG_ERROR
92 # error "wxUSE_EXCEPTIONS must be defined."
94 # define wxUSE_EXCEPTIONS 0
96 #endif /* !defined(wxUSE_EXCEPTIONS) */
98 #ifndef wxUSE_FILESYSTEM
99 # ifdef wxABORT_ON_CONFIG_ERROR
100 # error "wxUSE_FILESYSTEM must be defined."
102 # define wxUSE_FILESYSTEM 0
104 #endif /* !defined(wxUSE_FILESYSTEM) */
106 /* don't give an error about this one yet, it's not fully implemented */
107 #ifndef wxUSE_FSVOLUME
108 # define wxUSE_FSVOLUME 0
109 #endif /* !defined(wxUSE_FSVOLUME) */
111 #ifndef wxUSE_DYNAMIC_LOADER
112 # ifdef wxABORT_ON_CONFIG_ERROR
113 # error "wxUSE_DYNAMIC_LOADER must be defined."
115 # define wxUSE_DYNAMIC_LOADER 0
117 #endif /* !defined(wxUSE_DYNAMIC_LOADER) */
120 # ifdef wxABORT_ON_CONFIG_ERROR
121 # error "wxUSE_LOG must be defined."
125 #endif /* !defined(wxUSE_LOG) */
127 #ifndef wxUSE_LONGLONG
128 # ifdef wxABORT_ON_CONFIG_ERROR
129 # error "wxUSE_LONGLONG must be defined."
131 # define wxUSE_LONGLONG 0
133 #endif /* !defined(wxUSE_LONGLONG) */
135 #ifndef wxUSE_MIMETYPE
136 # ifdef wxABORT_ON_CONFIG_ERROR
137 # error "wxUSE_MIMETYPE must be defined."
139 # define wxUSE_MIMETYPE 0
141 #endif /* !defined(wxUSE_MIMETYPE) */
143 #ifndef wxUSE_ON_FATAL_EXCEPTION
144 # ifdef wxABORT_ON_CONFIG_ERROR
145 # error "wxUSE_ON_FATAL_EXCEPTION must be defined."
147 # define wxUSE_ON_FATAL_EXCEPTION 0
149 #endif /* !defined(wxUSE_ON_FATAL_EXCEPTION) */
151 #ifndef wxUSE_PROTOCOL
152 # ifdef wxABORT_ON_CONFIG_ERROR
153 # error "wxUSE_PROTOCOL must be defined."
155 # define wxUSE_PROTOCOL 0
157 #endif /* !defined(wxUSE_PROTOCOL) */
159 /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
161 # undef wxUSE_PROTOCOL_HTTP
162 # undef wxUSE_PROTOCOL_FTP
163 # undef wxUSE_PROTOCOL_FILE
164 # define wxUSE_PROTOCOL_HTTP 0
165 # define wxUSE_PROTOCOL_FTP 0
166 # define wxUSE_PROTOCOL_FILE 0
167 #endif /* wxUSE_PROTOCOL */
169 #ifndef wxUSE_PROTOCOL_HTTP
170 # ifdef wxABORT_ON_CONFIG_ERROR
171 # error "wxUSE_PROTOCOL_HTTP must be defined."
173 # define wxUSE_PROTOCOL_HTTP 0
175 #endif /* !defined(wxUSE_PROTOCOL_HTTP) */
177 #ifndef wxUSE_PROTOCOL_FTP
178 # ifdef wxABORT_ON_CONFIG_ERROR
179 # error "wxUSE_PROTOCOL_FTP must be defined."
181 # define wxUSE_PROTOCOL_FTP 0
183 #endif /* !defined(wxUSE_PROTOCOL_FTP) */
185 #ifndef wxUSE_PROTOCOL_FILE
186 # ifdef wxABORT_ON_CONFIG_ERROR
187 # error "wxUSE_PROTOCOL_FILE must be defined."
189 # define wxUSE_PROTOCOL_FILE 0
191 #endif /* !defined(wxUSE_PROTOCOL_FILE) */
194 # ifdef wxABORT_ON_CONFIG_ERROR
195 # error "wxUSE_REGEX must be defined."
197 # define wxUSE_REGEX 0
199 #endif /* !defined(wxUSE_REGEX) */
201 #ifndef wxUSE_STDPATHS
202 # ifdef wxABORT_ON_CONFIG_ERROR
203 # error "wxUSE_STDPATHS must be defined."
205 # define wxUSE_STDPATHS 1
207 #endif /* !defined(wxUSE_STDPATHS) */
210 # ifdef wxABORT_ON_CONFIG_ERROR
211 # error "wxUSE_XML must be defined."
215 #endif /* !defined(wxUSE_XML) */
217 #ifndef wxUSE_SOCKETS
218 # ifdef wxABORT_ON_CONFIG_ERROR
219 # error "wxUSE_SOCKETS must be defined."
221 # define wxUSE_SOCKETS 0
223 #endif /* !defined(wxUSE_SOCKETS) */
225 #ifndef wxUSE_STREAMS
226 # ifdef wxABORT_ON_CONFIG_ERROR
227 # error "wxUSE_STREAMS must be defined."
229 # define wxUSE_STREAMS 0
231 #endif /* !defined(wxUSE_STREAMS) */
233 #ifndef wxUSE_STOPWATCH
234 # ifdef wxABORT_ON_CONFIG_ERROR
235 # error "wxUSE_STOPWATCH must be defined."
237 # define wxUSE_STOPWATCH 0
239 #endif /* !defined(wxUSE_STOPWATCH) */
241 #ifndef wxUSE_TEXTBUFFER
242 # ifdef wxABORT_ON_CONFIG_ERROR
243 # error "wxUSE_TEXTBUFFER must be defined."
245 # define wxUSE_TEXTBUFFER 0
247 #endif /* !defined(wxUSE_TEXTBUFFER) */
249 #ifndef wxUSE_TEXTFILE
250 # ifdef wxABORT_ON_CONFIG_ERROR
251 # error "wxUSE_TEXTFILE must be defined."
253 # define wxUSE_TEXTFILE 0
255 #endif /* !defined(wxUSE_TEXTFILE) */
257 #ifndef wxUSE_UNICODE
258 # ifdef wxABORT_ON_CONFIG_ERROR
259 # error "wxUSE_UNICODE must be defined."
261 # define wxUSE_UNICODE 0
263 #endif /* !defined(wxUSE_UNICODE) */
266 # ifdef wxABORT_ON_CONFIG_ERROR
267 # error "wxUSE_URL must be defined."
271 #endif /* !defined(wxUSE_URL) */
274 all these tests are for GUI only
279 all of the settings tested below must be defined or we'd get an error from
280 preprocessor about invalid integer expression
284 # ifdef wxABORT_ON_CONFIG_ERROR
285 # error "wxUSE_ACCEL must be defined."
287 # define wxUSE_ACCEL 0
289 #endif /* !defined(wxUSE_ACCEL) */
291 #ifndef wxUSE_BMPBUTTON
292 # ifdef wxABORT_ON_CONFIG_ERROR
293 # error "wxUSE_BMPBUTTON must be defined."
295 # define wxUSE_BMPBUTTON 0
297 #endif /* !defined(wxUSE_BMPBUTTON) */
300 # ifdef wxABORT_ON_CONFIG_ERROR
301 # error "wxUSE_BUTTON must be defined."
303 # define wxUSE_BUTTON 0
305 #endif /* !defined(wxUSE_BUTTON) */
307 #ifndef wxUSE_CALENDARCTRL
308 # ifdef wxABORT_ON_CONFIG_ERROR
309 # error "wxUSE_CALENDARCTRL must be defined."
311 # define wxUSE_CALENDARCTRL 0
313 #endif /* !defined(wxUSE_CALENDARCTRL) */
316 # ifdef wxABORT_ON_CONFIG_ERROR
317 # error "wxUSE_CARET must be defined."
319 # define wxUSE_CARET 0
321 #endif /* !defined(wxUSE_CARET) */
323 #ifndef wxUSE_CHECKBOX
324 # ifdef wxABORT_ON_CONFIG_ERROR
325 # error "wxUSE_CHECKBOX must be defined."
327 # define wxUSE_CHECKBOX 0
329 #endif /* !defined(wxUSE_CHECKBOX) */
331 #ifndef wxUSE_CHECKLISTBOX
332 # ifdef wxABORT_ON_CONFIG_ERROR
333 # error "wxUSE_CHECKLISTBOX must be defined."
335 # define wxUSE_CHECKLISTBOX 0
337 #endif /* !defined(wxUSE_CHECKLISTBOX) */
340 # ifdef wxABORT_ON_CONFIG_ERROR
341 # error "wxUSE_CHOICE must be defined."
343 # define wxUSE_CHOICE 0
345 #endif /* !defined(wxUSE_CHOICE) */
347 #ifndef wxUSE_CHOICEBOOK
348 # ifdef wxABORT_ON_CONFIG_ERROR
349 # error "wxUSE_CHOICEBOOK must be defined."
351 # define wxUSE_CHOICEBOOK 0
353 #endif /* !defined(wxUSE_CHOICEBOOK) */
355 #ifndef wxUSE_CHOICEDLG
356 # ifdef wxABORT_ON_CONFIG_ERROR
357 # error "wxUSE_CHOICEDLG must be defined."
359 # define wxUSE_CHOICEDLG 0
361 #endif /* !defined(wxUSE_CHOICEDLG) */
363 #ifndef wxUSE_CLIPBOARD
364 # ifdef wxABORT_ON_CONFIG_ERROR
365 # error "wxUSE_CLIPBOARD must be defined."
367 # define wxUSE_CLIPBOARD 0
369 #endif /* !defined(wxUSE_CLIPBOARD) */
371 #ifndef wxUSE_COLOURDLG
372 # ifdef wxABORT_ON_CONFIG_ERROR
373 # error "wxUSE_COLOURDLG must be defined."
375 # define wxUSE_COLOURDLG 0
377 #endif /* !defined(wxUSE_COLOURDLG) */
379 #ifndef wxUSE_COMBOBOX
380 # ifdef wxABORT_ON_CONFIG_ERROR
381 # error "wxUSE_COMBOBOX must be defined."
383 # define wxUSE_COMBOBOX 0
385 #endif /* !defined(wxUSE_COMBOBOX) */
387 #ifndef wxUSE_DATAOBJ
388 # ifdef wxABORT_ON_CONFIG_ERROR
389 # error "wxUSE_DATAOBJ must be defined."
391 # define wxUSE_DATAOBJ 0
393 #endif /* !defined(wxUSE_DATAOBJ) */
395 #ifndef wxUSE_DATEPICKCTRL
396 # ifdef wxABORT_ON_CONFIG_ERROR
397 # error "wxUSE_DATEPICKCTRL must be defined."
399 # define wxUSE_DATEPICKCTRL 0
401 #endif /* !defined(wxUSE_DATEPICKCTRL) */
403 #ifndef wxUSE_DISPLAY
404 # ifdef wxABORT_ON_CONFIG_ERROR
405 # error "wxUSE_DISPLAY must be defined."
407 # define wxUSE_DISPLAY 0
409 #endif /* !defined(wxUSE_DISPLAY) */
411 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
412 # ifdef wxABORT_ON_CONFIG_ERROR
413 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
415 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
417 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
419 #ifndef wxUSE_FILEDLG
420 # ifdef wxABORT_ON_CONFIG_ERROR
421 # error "wxUSE_FILEDLG must be defined."
423 # define wxUSE_FILEDLG 0
425 #endif /* !defined(wxUSE_FILEDLG) */
427 #ifndef wxUSE_FONTDLG
428 # ifdef wxABORT_ON_CONFIG_ERROR
429 # error "wxUSE_FONTDLG must be defined."
431 # define wxUSE_FONTDLG 0
433 #endif /* !defined(wxUSE_FONTDLG) */
435 #ifndef wxUSE_FONTMAP
436 # ifdef wxABORT_ON_CONFIG_ERROR
437 # error "wxUSE_FONTMAP must be defined."
439 # define wxUSE_FONTMAP 0
441 #endif /* !defined(wxUSE_FONTMAP) */
444 # ifdef wxABORT_ON_CONFIG_ERROR
445 # error "wxUSE_GAUGE must be defined."
447 # define wxUSE_GAUGE 0
449 #endif /* !defined(wxUSE_GAUGE) */
452 # ifdef wxABORT_ON_CONFIG_ERROR
453 # error "wxUSE_GRID must be defined."
455 # define wxUSE_GRID 0
457 #endif /* !defined(wxUSE_GRID) */
460 # ifdef wxABORT_ON_CONFIG_ERROR
461 # error "wxUSE_HELP must be defined."
463 # define wxUSE_HELP 0
465 #endif /* !defined(wxUSE_HELP) */
468 # ifdef wxABORT_ON_CONFIG_ERROR
469 # error "wxUSE_HTML must be defined."
471 # define wxUSE_HTML 0
473 #endif /* !defined(wxUSE_HTML) */
476 # ifdef wxABORT_ON_CONFIG_ERROR
477 # error "wxUSE_XRC must be defined."
481 #endif /* !defined(wxUSE_XRC) */
483 #ifndef wxUSE_LIBMSPACK
485 /* set to 0 on platforms that don't have libmspack */
486 # define wxUSE_LIBMSPACK 0
488 # ifdef wxABORT_ON_CONFIG_ERROR
489 # error "wxUSE_LIBMSPACK must be defined."
491 # define wxUSE_LIBMSPACK 0
494 #endif /* !defined(wxUSE_LIBMSPACK) */
496 #ifndef wxUSE_ICO_CUR
497 # ifdef wxABORT_ON_CONFIG_ERROR
498 # error "wxUSE_ICO_CUR must be defined."
500 # define wxUSE_ICO_CUR 0
502 #endif /* !defined(wxUSE_ICO_CUR) */
505 # ifdef wxABORT_ON_CONFIG_ERROR
506 # error "wxUSE_IFF must be defined."
510 #endif /* !defined(wxUSE_IFF) */
512 #ifndef wxUSE_IMAGLIST
513 # ifdef wxABORT_ON_CONFIG_ERROR
514 # error "wxUSE_IMAGLIST must be defined."
516 # define wxUSE_IMAGLIST 0
518 #endif /* !defined(wxUSE_IMAGLIST) */
520 #ifndef wxUSE_JOYSTICK
521 # ifdef wxABORT_ON_CONFIG_ERROR
522 # error "wxUSE_JOYSTICK must be defined."
524 # define wxUSE_JOYSTICK 0
526 #endif /* !defined(wxUSE_JOYSTICK) */
528 #ifndef wxUSE_LISTBOOK
529 # ifdef wxABORT_ON_CONFIG_ERROR
530 # error "wxUSE_LISTBOOK must be defined."
532 # define wxUSE_LISTBOOK 0
534 #endif /* !defined(wxUSE_LISTBOOK) */
536 #ifndef wxUSE_LISTBOX
537 # ifdef wxABORT_ON_CONFIG_ERROR
538 # error "wxUSE_LISTBOX must be defined."
540 # define wxUSE_LISTBOX 0
542 #endif /* !defined(wxUSE_LISTBOX) */
544 #ifndef wxUSE_LISTCTRL
545 # ifdef wxABORT_ON_CONFIG_ERROR
546 # error "wxUSE_LISTCTRL must be defined."
548 # define wxUSE_LISTCTRL 0
550 #endif /* !defined(wxUSE_LISTCTRL) */
553 # ifdef wxABORT_ON_CONFIG_ERROR
554 # error "wxUSE_LOGGUI must be defined."
556 # define wxUSE_LOGGUI 0
558 #endif /* !defined(wxUSE_LOGGUI) */
560 #ifndef wxUSE_LOGWINDOW
561 # ifdef wxABORT_ON_CONFIG_ERROR
562 # error "wxUSE_LOGWINDOW must be defined."
564 # define wxUSE_LOGWINDOW 0
566 #endif /* !defined(wxUSE_LOGWINDOW) */
568 #ifndef wxUSE_LOG_DIALOG
569 # ifdef wxABORT_ON_CONFIG_ERROR
570 # error "wxUSE_LOG_DIALOG must be defined."
572 # define wxUSE_LOG_DIALOG 0
574 #endif /* !defined(wxUSE_LOG_DIALOG) */
577 # ifdef wxABORT_ON_CONFIG_ERROR
578 # error "wxUSE_MDI must be defined."
582 #endif /* !defined(wxUSE_MDI) */
584 #ifndef wxUSE_MDI_ARCHITECTURE
585 # ifdef wxABORT_ON_CONFIG_ERROR
586 # error "wxUSE_MDI_ARCHITECTURE must be defined."
588 # define wxUSE_MDI_ARCHITECTURE 0
590 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
593 # ifdef wxABORT_ON_CONFIG_ERROR
594 # error "wxUSE_MENUS must be defined."
596 # define wxUSE_MENUS 0
598 #endif /* !defined(wxUSE_MENUS) */
601 # ifdef wxABORT_ON_CONFIG_ERROR
602 # error "wxUSE_MSGDLG must be defined."
604 # define wxUSE_MSGDLG 0
606 #endif /* !defined(wxUSE_MSGDLG) */
608 #ifndef wxUSE_NOTEBOOK
609 # ifdef wxABORT_ON_CONFIG_ERROR
610 # error "wxUSE_NOTEBOOK must be defined."
612 # define wxUSE_NOTEBOOK 0
614 #endif /* !defined(wxUSE_NOTEBOOK) */
616 #ifndef wxUSE_PALETTE
617 # ifdef wxABORT_ON_CONFIG_ERROR
618 # error "wxUSE_PALETTE must be defined."
620 # define wxUSE_PALETTE 0
622 #endif /* !defined(wxUSE_PALETTE) */
624 #ifndef wxUSE_POPUPWIN
625 # ifdef wxABORT_ON_CONFIG_ERROR
626 # error "wxUSE_POPUPWIN must be defined."
628 # define wxUSE_POPUPWIN 0
630 #endif /* !defined(wxUSE_POPUPWIN) */
632 #ifndef wxUSE_PRINTING_ARCHITECTURE
633 # ifdef wxABORT_ON_CONFIG_ERROR
634 # error "wxUSE_PRINTING_ARCHITECTURE must be defined."
636 # define wxUSE_PRINTING_ARCHITECTURE 0
638 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
640 #ifndef wxUSE_RADIOBOX
641 # ifdef wxABORT_ON_CONFIG_ERROR
642 # error "wxUSE_RADIOBOX must be defined."
644 # define wxUSE_RADIOBOX 0
646 #endif /* !defined(wxUSE_RADIOBOX) */
648 #ifndef wxUSE_RADIOBTN
649 # ifdef wxABORT_ON_CONFIG_ERROR
650 # error "wxUSE_RADIOBTN must be defined."
652 # define wxUSE_RADIOBTN 0
654 #endif /* !defined(wxUSE_RADIOBTN) */
657 # ifdef wxABORT_ON_CONFIG_ERROR
658 # error "wxUSE_SASH must be defined."
660 # define wxUSE_SASH 0
662 #endif /* !defined(wxUSE_SASH) */
664 #ifndef wxUSE_SCROLLBAR
665 # ifdef wxABORT_ON_CONFIG_ERROR
666 # error "wxUSE_SCROLLBAR must be defined."
668 # define wxUSE_SCROLLBAR 0
670 #endif /* !defined(wxUSE_SCROLLBAR) */
673 # ifdef wxABORT_ON_CONFIG_ERROR
674 # error "wxUSE_SLIDER must be defined."
676 # define wxUSE_SLIDER 0
678 #endif /* !defined(wxUSE_SLIDER) */
681 # ifdef wxABORT_ON_CONFIG_ERROR
682 # error "wxUSE_SOUND must be defined."
684 # define wxUSE_SOUND 0
686 #endif /* !defined(wxUSE_SOUND) */
688 #ifndef wxUSE_SPINBTN
689 # ifdef wxABORT_ON_CONFIG_ERROR
690 # error "wxUSE_SPINBTN must be defined."
692 # define wxUSE_SPINBTN 0
694 #endif /* !defined(wxUSE_SPINBTN) */
696 #ifndef wxUSE_SPINCTRL
697 # ifdef wxABORT_ON_CONFIG_ERROR
698 # error "wxUSE_SPINCTRL must be defined."
700 # define wxUSE_SPINCTRL 0
702 #endif /* !defined(wxUSE_SPINCTRL) */
705 # ifdef wxABORT_ON_CONFIG_ERROR
706 # error "wxUSE_SPLASH must be defined."
708 # define wxUSE_SPLASH 0
710 #endif /* !defined(wxUSE_SPLASH) */
712 #ifndef wxUSE_SPLITTER
713 # ifdef wxABORT_ON_CONFIG_ERROR
714 # error "wxUSE_SPLITTER must be defined."
716 # define wxUSE_SPLITTER 0
718 #endif /* !defined(wxUSE_SPLITTER) */
720 #ifndef wxUSE_STATBMP
721 # ifdef wxABORT_ON_CONFIG_ERROR
722 # error "wxUSE_STATBMP must be defined."
724 # define wxUSE_STATBMP 0
726 #endif /* !defined(wxUSE_STATBMP) */
728 #ifndef wxUSE_STATBOX
729 # ifdef wxABORT_ON_CONFIG_ERROR
730 # error "wxUSE_STATBOX must be defined."
732 # define wxUSE_STATBOX 0
734 #endif /* !defined(wxUSE_STATBOX) */
736 #ifndef wxUSE_STATLINE
737 # ifdef wxABORT_ON_CONFIG_ERROR
738 # error "wxUSE_STATLINE must be defined."
740 # define wxUSE_STATLINE 0
742 #endif /* !defined(wxUSE_STATLINE) */
744 #ifndef wxUSE_STATTEXT
745 # ifdef wxABORT_ON_CONFIG_ERROR
746 # error "wxUSE_STATTEXT must be defined."
748 # define wxUSE_STATTEXT 0
750 #endif /* !defined(wxUSE_STATTEXT) */
752 #ifndef wxUSE_STATUSBAR
753 # ifdef wxABORT_ON_CONFIG_ERROR
754 # error "wxUSE_STATUSBAR must be defined."
756 # define wxUSE_STATUSBAR 0
758 #endif /* !defined(wxUSE_STATUSBAR) */
760 #ifndef wxUSE_TAB_DIALOG
761 # ifdef wxABORT_ON_CONFIG_ERROR
762 # error "wxUSE_TAB_DIALOG must be defined."
764 # define wxUSE_TAB_DIALOG 0
766 #endif /* !defined(wxUSE_TAB_DIALOG) */
768 #ifndef wxUSE_TEXTCTRL
769 # ifdef wxABORT_ON_CONFIG_ERROR
770 # error "wxUSE_TEXTCTRL must be defined."
772 # define wxUSE_TEXTCTRL 0
774 #endif /* !defined(wxUSE_TEXTCTRL) */
776 #ifndef wxUSE_TIPWINDOW
777 # ifdef wxABORT_ON_CONFIG_ERROR
778 # error "wxUSE_TIPWINDOW must be defined."
780 # define wxUSE_TIPWINDOW 0
782 #endif /* !defined(wxUSE_TIPWINDOW) */
784 #ifndef wxUSE_TOOLBAR
785 # ifdef wxABORT_ON_CONFIG_ERROR
786 # error "wxUSE_TOOLBAR must be defined."
788 # define wxUSE_TOOLBAR 0
790 #endif /* !defined(wxUSE_TOOLBAR) */
792 #ifndef wxUSE_TOOLTIPS
793 # ifdef wxABORT_ON_CONFIG_ERROR
794 # error "wxUSE_TOOLTIPS must be defined."
796 # define wxUSE_TOOLTIPS 0
798 #endif /* !defined(wxUSE_TOOLTIPS) */
800 #ifndef wxUSE_TREECTRL
801 # ifdef wxABORT_ON_CONFIG_ERROR
802 # error "wxUSE_TREECTRL must be defined."
804 # define wxUSE_TREECTRL 0
806 #endif /* !defined(wxUSE_TREECTRL) */
808 #ifndef wxUSE_VALIDATORS
809 # ifdef wxABORT_ON_CONFIG_ERROR
810 # error "wxUSE_VALIDATORS must be defined."
812 # define wxUSE_VALIDATORS 0
814 #endif /* !defined(wxUSE_VALIDATORS) */
816 #ifndef wxUSE_WXHTML_HELP
817 # ifdef wxABORT_ON_CONFIG_ERROR
818 # error "wxUSE_WXHTML_HELP must be defined."
820 # define wxUSE_WXHTML_HELP 0
822 #endif /* !defined(wxUSE_WXHTML_HELP) */
824 #endif /* wxUSE_GUI */
827 check consistency of the settings
830 #if wxUSE_CRASHREPORT && !wxUSE_ON_FATAL_EXCEPTION
831 # ifdef wxABORT_ON_CONFIG_ERROR
832 # error "wxUSE_CRASHREPORT requires wxUSE_ON_FATAL_EXCEPTION"
834 # undef wxUSE_CRASHREPORT
835 # define wxUSE_CRASHREPORT 0
837 #endif /* wxUSE_CRASHREPORT */
839 #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
841 # ifdef wxABORT_ON_CONFIG_ERROR
842 # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
844 # undef wxUSE_PROTOCOL
845 # define wxUSE_PROTOCOL 1
848 #endif /* wxUSE_PROTOCOL_XXX */
852 # ifdef wxABORT_ON_CONFIG_ERROR
853 # error "wxUSE_URL requires wxUSE_PROTOCOL"
855 # undef wxUSE_PROTOCOL
856 # define wxUSE_PROTOCOL 1
859 #endif /* wxUSE_URL */
863 # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
864 # ifdef wxABORT_ON_CONFIG_ERROR
865 # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
867 # undef wxUSE_SOCKETS
868 # define wxUSE_SOCKETS 1
874 # ifdef wxABORT_ON_CONFIG_ERROR
875 # error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
877 # undef wxUSE_STREAMS
878 # define wxUSE_STREAMS 1
881 #endif /* wxUSE_PROTOCOL */
883 /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
885 # if !wxUSE_FILESYSTEM
886 # ifdef wxABORT_ON_CONFIG_ERROR
887 # error "wxHTML requires wxFileSystem"
889 # undef wxUSE_FILESYSTEM
890 # define wxUSE_FILESYSTEM 1
893 #endif /* wxUSE_HTML */
897 # ifdef wxABORT_ON_CONFIG_ERROR
898 # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
900 # undef wxUSE_STREAMS
901 # define wxUSE_STREAMS 1
904 #endif /* wxUSE_FILESYSTEM */
908 # ifdef wxABORT_ON_CONFIG_ERROR
909 # error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
911 # undef wxUSE_PROTOCOL
912 # define wxUSE_PROTOCOL 1
915 #endif /* wxUSE_FS_INET */
917 #if wxUSE_STOPWATCH || wxUSE_DATETIME
919 # ifdef wxABORT_ON_CONFIG_ERROR
920 # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
922 # undef wxUSE_LONGLONG
923 # define wxUSE_LONGLONG 1
926 #endif /* wxUSE_STOPWATCH */
928 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
929 # ifdef wxABORT_ON_CONFIG_ERROR
930 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
932 # undef wxUSE_TEXTFILE
933 # define wxUSE_TEXTFILE 1
935 #endif /* wxUSE_MIMETYPE */
937 #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
938 # ifdef wxABORT_ON_CONFIG_ERROR
939 # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
941 # undef wxUSE_TEXTBUFFER
942 # define wxUSE_TEXTBUFFER 1
944 #endif /* wxUSE_TEXTFILE */
946 #if wxUSE_TEXTFILE && !wxUSE_FILE
947 # ifdef wxABORT_ON_CONFIG_ERROR
948 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
951 # define wxUSE_FILE 1
953 #endif /* wxUSE_TEXTFILE */
955 #if wxUSE_UNICODE_MSLU && !wxUSE_UNICODE
956 # ifdef wxABORT_ON_CONFIG_ERROR
957 # error "wxUSE_UNICODE_MSLU requires wxUSE_UNICODE"
959 # undef wxUSE_UNICODE
960 # define wxUSE_UNICODE 1
962 #endif /* wxUSE_UNICODE_MSLU */
964 #if wxUSE_XML && !wxUSE_WCHAR_T
965 # ifdef wxABORT_ON_CONFIG_ERROR
966 # error "wxUSE_XML requires wxUSE_WCHAR_T"
971 #endif /* wxUSE_UNICODE_MSLU */
973 #if !wxUSE_DYNLIB_CLASS
974 # if wxUSE_DYNAMIC_LOADER
975 # ifdef wxABORT_ON_CONFIG_ERROR
976 # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
978 # define wxUSE_DYNLIB_CLASS 1
981 #endif /* wxUSE_DYNLIB_CLASS */
985 # ifdef wxABORT_ON_CONFIG_ERROR
986 # error "wxZip requires wxZlib"
989 # define wxUSE_ZLIB 1
992 # if !wxUSE_ARCHIVE_STREAMS
993 # ifdef wxABORT_ON_CONFIG_ERROR
994 # error "wxZip requires wxArchive"
996 # undef wxUSE_ARCHIVE_STREAMS
997 # define wxUSE_ARCHIVE_STREAMS 1
1000 #endif /* wxUSE_ZIPSTREAM */
1002 /* the rest of the tests is for the GUI settings only */
1005 #if wxUSE_BUTTON || \
1006 wxUSE_CALENDARCTRL || \
1009 wxUSE_BMPBUTTON || \
1011 wxUSE_CHECKLISTBOX || \
1020 wxUSE_SCROLLBAR || \
1028 wxUSE_STATUSBAR || \
1032 # if !wxUSE_CONTROLS
1033 # ifdef wxABORT_ON_CONFIG_ERROR
1034 # error "wxUSE_CONTROLS unset but some controls used"
1036 # undef wxUSE_CONTROLS
1037 # define wxUSE_CONTROLS 1
1040 #endif /* controls */
1044 # ifdef wxABORT_ON_CONFIG_ERROR
1045 # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1047 # undef wxUSE_BUTTON
1048 # define wxUSE_BUTTON 1
1051 #endif /* wxUSE_BMPBUTTON */
1053 #if wxUSE_NOTEBOOK || wxUSE_LISTBOOK || wxUSE_CHOICEBOOK
1054 # if defined(wxUSE_BOOKCTRL) && !wxUSE_BOOKCTRL
1055 # ifdef wxABORT_ON_CONFIG_ERROR
1056 # error "wxUSE_BOOKCTRL must be set."
1058 # undef wxUSE_BOOKCTRL
1062 # ifndef wxUSE_BOOKCTRL
1063 # define wxUSE_BOOKCTRL 1
1065 #endif /* wxUSE_NOTEBOOK */
1068 # if !wxUSE_LISTCTRL
1069 # ifdef wxABORT_ON_CONFIG_ERROR
1070 # error "wxListbook requires wxListCtrl"
1072 # undef wxUSE_LISTCTRL
1073 # define wxUSE_LISTCTRL 1
1076 #endif /* wxUSE_LISTBOOK */
1078 #if wxUSE_CHOICEBOOK
1080 # ifdef wxABORT_ON_CONFIG_ERROR
1081 # error "wxChoicebook requires wxChoice"
1083 # undef wxUSE_CHOICE
1084 # define wxUSE_CHOICE 1
1087 #endif /* wxUSE_CHOICEBOOK */
1089 /* don't attempt to use native status bar on the platforms not having it */
1090 #ifndef wxUSE_NATIVE_STATUSBAR
1091 # define wxUSE_NATIVE_STATUSBAR 0
1092 #elif wxUSE_NATIVE_STATUSBAR
1093 # if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1094 defined(__WXMAC__) || \
1095 defined(__WXPALMOS__) )
1096 # undef wxUSE_NATIVE_STATUSBAR
1097 # define wxUSE_NATIVE_STATUSBAR 0
1101 /* wxUniv-specific dependencies */
1102 #if defined(__WXUNIVERSAL__)
1103 # if (wxUSE_COMBOBOX || wxUSE_MENUS) && !wxUSE_POPUPWIN
1104 # ifdef wxABORT_ON_CONFIG_ERROR
1105 # error "wxUSE_POPUPWIN must be defined to use comboboxes/menus"
1107 # undef wxUSE_POPUPWIN
1108 # define wxUSE_POPUPWIN 1
1114 # ifdef wxABORT_ON_CONFIG_ERROR
1115 # error "wxComboBox requires wxListBox in wxUniversal"
1117 # undef wxUSE_LISTBOX
1118 # define wxUSE_LISTBOX 1
1121 # endif /* wxUSE_COMBOBOX */
1124 # if !wxUSE_CHECKBOX
1125 # ifdef wxABORT_ON_CONFIG_ERROR
1126 # error "wxUSE_RADIOBTN requires wxUSE_CHECKBOX in wxUniversal"
1128 # undef wxUSE_CHECKBOX
1129 # define wxUSE_CHECKBOX 1
1132 # endif /* wxUSE_RADIOBTN */
1136 # ifdef wxABORT_ON_CONFIG_ERROR
1137 # error "wxTextCtrl requires wxCaret in wxUniversal"
1140 # define wxUSE_CARET 1
1142 # endif /* wxUSE_CARET */
1144 # if !wxUSE_SCROLLBAR
1145 # ifdef wxABORT_ON_CONFIG_ERROR
1146 # error "wxTextCtrl requires wxScrollBar in wxUniversal"
1148 # undef wxUSE_SCROLLBAR
1149 # define wxUSE_SCROLLBAR 1
1151 # endif /* wxUSE_SCROLLBAR */
1152 # endif /* wxUSE_TEXTCTRL */
1153 #endif /* __WXUNIVERSAL__ */
1155 /* wxGTK-specific dependencies */
1157 # ifndef __WXUNIVERSAL__
1158 # if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS
1159 # ifdef wxABORT_ON_CONFIG_ERROR
1160 # error "MDI requires wxUSE_MENUS in wxGTK"
1163 # define wxUSE_MENUS 1
1166 # endif /* !__WXUNIVERSAL__ */
1170 # ifdef wxABORT_ON_CONFIG_ERROR
1171 # error "wxJoystick requires threads in wxGTK"
1173 # undef wxUSE_JOYSTICK
1174 # define wxUSE_JOYSTICK 0
1178 #endif /* wxGTK && !wxUniv */
1180 /* wxMSW-specific dependencies */
1182 # ifndef wxUSE_UNICODE_MSLU
1183 # ifdef wxABORT_ON_CONFIG_ERROR
1184 # error "wxUSE_UNICODE_MSLU must be defined."
1186 # define wxUSE_UNICODE_MSLU 0
1188 # endif /* wxUSE_UNICODE_MSLU */
1189 # ifndef wxUSE_UXTHEME
1190 # ifdef wxABORT_ON_CONFIG_ERROR
1191 # error "wxUSE_UXTHEME must be defined."
1193 # define wxUSE_UXTHEME 0
1195 # endif /* wxUSE_UXTHEME */
1196 # ifndef wxUSE_UXTHEME_AUTO
1197 # ifdef wxABORT_ON_CONFIG_ERROR
1198 # error "wxUSE_UXTHEME_AUTO must be defined."
1200 # define wxUSE_UXTHEME_AUTO 0
1202 # endif /* wxUSE_UXTHEME_AUTO */
1203 # ifndef wxUSE_MS_HTML_HELP
1204 # ifdef wxABORT_ON_CONFIG_ERROR
1205 # error "wxUSE_MS_HTML_HELP must be defined."
1207 # define wxUSE_MS_HTML_HELP 0
1209 # endif /* !defined(wxUSE_MS_HTML_HELP) */
1210 # ifndef wxUSE_DIALUP_MANAGER
1211 # ifdef wxABORT_ON_CONFIG_ERROR
1212 # error "wxUSE_DIALUP_MANAGER must be defined."
1214 # define wxUSE_DIALUP_MANAGER 0
1216 # endif /* !defined(wxUSE_DIALUP_MANAGER) */
1218 # if !wxUSE_DYNAMIC_LOADER
1219 # if wxUSE_MS_HTML_HELP
1220 # ifdef wxABORT_ON_CONFIG_ERROR
1221 # error "wxUSE_MS_HTML_HELP requires wxUSE_DYNAMIC_LOADER."
1223 # define wxUSE_DYNAMIC_LOADER 1
1226 # if wxUSE_DIALUP_MANAGER
1227 # ifdef wxABORT_ON_CONFIG_ERROR
1228 # error "wxUSE_DIALUP_MANAGER requires wxUSE_DYNAMIC_LOADER."
1230 # define wxUSE_DYNAMIC_LOADER 1
1233 # endif /* wxUSE_DYNAMIC_LOADER */
1237 /* wxMGL-specific dependencies */
1240 # error "wxMGL requires wxUSE_PALETTE=1"
1244 /* Hopefully we can emulate these dialogs in due course */
1245 #if defined(__SMARTPHONE__) && defined(__WXWINCE__)
1246 # ifdef wxUSE_COLOURDLG
1247 # undef wxUSE_COLOURDLG
1248 # define wxUSE_COLOURDLG 0
1250 #endif /* __SMARTPHONE__ && __WXWINCE__ */
1253 /* generic controls dependencies */
1254 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1255 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1256 /* all common controls are needed by these dialogs */
1257 # if !defined(wxUSE_CHOICE) || \
1258 !defined(wxUSE_TEXTCTRL) || \
1259 !defined(wxUSE_BUTTON) || \
1260 !defined(wxUSE_CHECKBOX) || \
1261 !defined(wxUSE_STATTEXT)
1262 # ifdef wxABORT_ON_CONFIG_ERROR
1263 # error "These common controls are needed by common dialogs"
1265 # undef wxUSE_CHOICE
1266 # define wxUSE_CHOICE 1
1267 # undef wxUSE_TEXTCTRL
1268 # define wxUSE_TEXTCTRL 1
1269 # undef wxUSE_BUTTON
1270 # define wxUSE_BUTTON 1
1271 # undef wxUSE_CHECKBOX
1272 # define wxUSE_CHECKBOX 1
1273 # undef wxUSE_STATTEXT
1274 # define wxUSE_STATTEXT 1
1278 #endif /* !wxMSW || wxUniv */
1280 /* common dependencies */
1281 #if wxUSE_CALENDARCTRL
1282 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1283 # ifdef wxABORT_ON_CONFIG_ERROR
1284 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1286 # undef wxUSE_SPINBTN
1287 # undef wxUSE_COMBOBOX
1288 # define wxUSE_SPINBTN 1
1289 # define wxUSE_COMBOBOX 1
1293 # if !wxUSE_DATETIME
1294 # ifdef wxABORT_ON_CONFIG_ERROR
1295 # error "wxCalendarCtrl requires wxUSE_DATETIME"
1297 # undef wxUSE_DATETIME
1298 # define wxUSE_DATETIME 1
1301 #endif /* wxUSE_CALENDARCTRL */
1303 #if wxUSE_DATEPICKCTRL
1304 # if !wxUSE_DATETIME
1305 # ifdef wxABORT_ON_CONFIG_ERROR
1306 # error "wxDatePickerCtrl requires wxUSE_DATETIME"
1308 # undef wxUSE_DATETIME
1309 # define wxUSE_DATETIME 1
1312 #endif /* wxUSE_DATEPICKCTRL */
1314 #if wxUSE_CHECKLISTBOX
1316 # ifdef wxABORT_ON_CONFIG_ERROR
1317 # error "wxCheckListBox requires wxListBox"
1319 # undef wxUSE_LISTBOX
1320 # define wxUSE_LISTBOX 1
1323 #endif /* wxUSE_CHECKLISTBOX */
1327 # ifdef wxABORT_ON_CONFIG_ERROR
1328 # error "Choice dialogs requires wxListBox"
1330 # undef wxUSE_LISTBOX
1331 # define wxUSE_LISTBOX 1
1334 #endif /* wxUSE_CHOICEDLG */
1337 # if !wxUSE_BMPBUTTON
1338 # ifdef wxABORT_ON_CONFIG_ERROR
1339 # error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1341 # undef wxUSE_BMPBUTTON
1342 # define wxUSE_BMPBUTTON 1
1346 # if !wxUSE_CHOICEDLG
1347 # ifdef wxABORT_ON_CONFIG_ERROR
1348 # error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1350 # undef wxUSE_CHOICEDLG
1351 # define wxUSE_CHOICEDLG 1
1354 #endif /* wxUSE_HELP */
1356 #if wxUSE_WXHTML_HELP
1357 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
1358 # ifdef wxABORT_ON_CONFIG_ERROR
1359 # error "Built in help controller can't be compiled"
1362 # define wxUSE_HELP 1
1364 # define wxUSE_HTML 1
1365 # undef wxUSE_COMBOBOX
1366 # define wxUSE_COMBOBOX 1
1367 # undef wxUSE_NOTEBOOK
1368 # define wxUSE_NOTEBOOK 1
1369 # undef wxUSE_SPINCTRL
1370 # define wxUSE_SPINCTRL 1
1373 #endif /* wxUSE_WXHTML_HELP */
1377 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1378 user explicitly wants this and disable all other features that require
1381 # if wxUSE_DRAGIMAGE
1382 # ifdef wxABORT_ON_CONFIG_ERROR
1383 # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1385 # undef wxUSE_DRAGIMAGE
1386 # define wxUSE_DRAGIMAGE 0
1391 # ifdef wxABORT_ON_CONFIG_ERROR
1392 # error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1394 # undef wxUSE_LIBPNG
1395 # define wxUSE_LIBPNG 0
1400 # ifdef wxABORT_ON_CONFIG_ERROR
1401 # error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1403 # undef wxUSE_LIBJPEG
1404 # define wxUSE_LIBJPEG 0
1409 # ifdef wxABORT_ON_CONFIG_ERROR
1410 # error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1412 # undef wxUSE_LIBTIFF
1413 # define wxUSE_LIBTIFF 0
1418 # ifdef wxABORT_ON_CONFIG_ERROR
1419 # error "wxUSE_GIF requires wxUSE_IMAGE"
1422 # define wxUSE_GIF 0
1427 # ifdef wxABORT_ON_CONFIG_ERROR
1428 # error "wxUSE_PNM requires wxUSE_IMAGE"
1431 # define wxUSE_PNM 0
1436 # ifdef wxABORT_ON_CONFIG_ERROR
1437 # error "wxUSE_PCX requires wxUSE_IMAGE"
1440 # define wxUSE_PCX 0
1445 # ifdef wxABORT_ON_CONFIG_ERROR
1446 # error "wxUSE_IFF requires wxUSE_IMAGE"
1449 # define wxUSE_IFF 0
1454 # ifdef wxABORT_ON_CONFIG_ERROR
1455 # error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1457 # undef wxUSE_TOOLBAR
1458 # define wxUSE_TOOLBAR 0
1463 # ifdef wxABORT_ON_CONFIG_ERROR
1464 # error "wxUSE_XPM requires wxUSE_IMAGE"
1467 # define wxUSE_XPM 0
1471 #endif /* !wxUSE_IMAGE */
1473 #if wxUSE_DOC_VIEW_ARCHITECTURE
1475 # ifdef wxABORT_ON_CONFIG_ERROR
1476 # error "DocView requires wxUSE_MENUS"
1479 # define wxUSE_MENUS 1
1483 # if !wxUSE_CHOICEDLG
1484 # ifdef wxABORT_ON_CONFIG_ERROR
1485 # error "DocView requires wxUSE_CHOICEDLG"
1487 # undef wxUSE_CHOICEDLG
1488 # define wxUSE_CHOICEDLG 1
1492 # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1493 # ifdef wxABORT_ON_CONFIG_ERROR
1494 # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1496 # undef wxUSE_STREAMS
1497 # define wxUSE_STREAMS 1
1500 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1502 #if wxUSE_PRINTING_ARCHITECTURE
1503 # if !wxUSE_COMBOBOX
1504 # ifdef wxABORT_ON_CONFIG_ERROR
1505 # error "Print dialog requires wxUSE_COMBOBOX"
1507 # undef wxUSE_COMBOBOX
1508 # define wxUSE_COMBOBOX 1
1511 #endif /* wxUSE_PRINTING_ARCHITECTURE */
1513 #if wxUSE_MDI_ARCHITECTURE
1515 # ifdef wxABORT_ON_CONFIG_ERROR
1516 # error "MDI requires wxUSE_MDI"
1519 # define wxUSE_MDI 1
1523 # if !wxUSE_DOC_VIEW_ARCHITECTURE
1524 # ifdef wxABORT_ON_CONFIG_ERROR
1525 # error "MDI requires wxUSE_DOC_VIEW_ARCHITECTURE"
1527 # undef wxUSE_DOC_VIEW_ARCHITECTURE
1528 # define wxUSE_DOC_VIEW_ARCHITECTURE 1
1531 #endif /* wxUSE_MDI_ARCHITECTURE */
1534 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1535 # ifdef wxABORT_ON_CONFIG_ERROR
1536 # error "wxFileDialog must be compiled as well"
1538 # undef wxUSE_FILEDLG
1539 # define wxUSE_FILEDLG 1
1542 #endif /* wxUSE_FILEDLG */
1544 #if !wxUSE_GAUGE || !wxUSE_BUTTON
1545 # if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
1546 # ifdef wxABORT_ON_CONFIG_ERROR
1547 # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
1550 # undef wxUSE_BUTTON
1551 # define wxUSE_GAUGE 1
1552 # define wxUSE_BUTTON 1
1555 #endif /* !wxUSE_GAUGE */
1558 # if wxUSE_FONTDLG || \
1560 wxUSE_CHOICEDLG || \
1561 wxUSE_NUMBERDLG || \
1564 wxUSE_STARTUP_TIPS || \
1566 # ifdef wxABORT_ON_CONFIG_ERROR
1567 # error "Common and generic dialogs require wxUSE_BUTTON"
1569 # undef wxUSE_BUTTON
1570 # define wxUSE_BUTTON 1
1573 #endif /* !wxUSE_BUTTON */
1576 # if wxUSE_TOOLBAR_NATIVE
1577 # ifdef wxABORT_ON_CONFIG_ERROR
1578 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1580 # undef wxUSE_TOOLBAR_NATIVE
1581 # define wxUSE_TOOLBAR_NATIVE 0
1585 # if wxUSE_TOOLBAR_SIMPLE
1586 # ifdef wxABORT_ON_CONFIG_ERROR
1587 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_SIMPLE is set to 1"
1589 # undef wxUSE_TOOLBAR_SIMPLE
1590 # define wxUSE_TOOLBAR_SIMPLE 0
1596 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1597 # ifdef wxABORT_ON_CONFIG_ERROR
1598 # error "wxImageList must be compiled as well"
1600 # undef wxUSE_IMAGLIST
1601 # define wxUSE_IMAGLIST 1
1604 #endif /* !wxUSE_IMAGLIST */
1607 # ifdef wxABORT_ON_CONFIG_ERROR
1608 /* FIXME: should compile without it, of course, but doesn't */
1609 # error "wxMessageBox is always needed"
1611 # undef wxUSE_MSGDLG
1612 # define wxUSE_MSGDLG 1
1617 # if !wxUSE_RADIOBTN
1618 # ifdef wxABORT_ON_CONFIG_ERROR
1619 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
1621 # undef wxUSE_RADIOBTN
1622 # define wxUSE_RADIOBTN 1
1625 # if !wxUSE_STATBOX && !defined(__WXPALMOS__)
1626 # ifdef wxABORT_ON_CONFIG_ERROR
1627 # error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
1629 # undef wxUSE_STATBOX
1630 # define wxUSE_STATBOX 1
1633 #endif /* wxUSE_RADIOBOX */
1636 # if !wxUSE_TEXTCTRL
1637 # ifdef wxABORT_ON_CONFIG_ERROR
1638 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1640 # undef wxUSE_TEXTCTRL
1641 # define wxUSE_TEXTCTRL 1
1644 #endif /* wxUSE_LOGWINDOW */
1646 #if wxUSE_LOG_DIALOG
1647 # if !wxUSE_LISTCTRL || !wxUSE_BUTTON
1648 # ifdef wxABORT_ON_CONFIG_ERROR
1649 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
1651 # undef wxUSE_LISTCTRL
1652 # define wxUSE_LISTCTRL 1
1653 # undef wxUSE_BUTTON
1654 # define wxUSE_BUTTON 1
1657 #endif /* wxUSE_LOG_DIALOG */
1659 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
1660 # ifdef wxABORT_ON_CONFIG_ERROR
1661 # error "wxClipboard requires wxDataObject"
1663 # undef wxUSE_DATAOBJ
1664 # define wxUSE_DATAOBJ 1
1666 #endif /* wxUSE_CLIPBOARD */
1668 #if wxUSE_WX_RESOURCES && !wxUSE_PROLOGIO
1669 # ifdef wxABORT_ON_CONFIG_ERROR
1670 # error "wxr resources require PrologIO"
1672 # undef wxUSE_PROLOGIO
1673 # define wxUSE_PROLOGIO 1
1675 #endif /* wxUSE_WX_RESOURCES */
1677 #if wxUSE_XRC && !wxUSE_XML
1678 # ifdef wxABORT_ON_CONFIG_ERROR
1679 # error "wxUSE_XRC requires wxUSE_XML"
1682 # define wxUSE_XRC 0
1684 #endif /* wxUSE_XRC */
1686 #if wxUSE_SOCKETS && !wxUSE_STOPWATCH
1687 # ifdef wxABORT_ON_CONFIG_ERROR
1688 # error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
1690 # undef wxUSE_SOCKETS
1691 # define wxUSE_SOCKETS 0
1693 #endif /* wxUSE_SOCKETS */
1695 #endif /* wxUSE_GUI */