]>
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"
39 this global setting determines what should we do if the setting FOO
40 requires BAR and BAR is not set: we can either silently unset FOO as well
41 (do this if you're trying to build the smallest possible library) or give an
42 error and abort (default as leads to least surprizing behaviour)
44 #define wxABORT_ON_CONFIG_ERROR
50 /* GUI build by default */
51 #if !defined(wxUSE_GUI)
53 #endif /* !defined(wxUSE_GUI) */
56 If we're compiling without support for threads/exceptions we have to
57 disable the corresponding features.
61 # define wxUSE_THREADS 0
62 #endif /* wxNO_THREADS */
64 #ifdef wxNO_EXCEPTIONS
65 # undef wxUSE_EXCEPTIONS
66 # define wxUSE_EXCEPTIONS 0
67 #endif /* wxNO_EXCEPTIONS */
69 /* we also must disable exceptions if compiler doesn't support them */
70 #if defined(_MSC_VER) && !defined(_CPPUNWIND)
71 # undef wxUSE_EXCEPTIONS
72 # define wxUSE_EXCEPTIONS 0
73 #endif /* VC++ without exceptions support */
77 tests for non GUI features
79 please keep the options in alphabetical order!
82 #ifndef wxUSE_CRASHREPORT
83 /* this one is special: as currently it is Windows-only, don't force it
84 to be defined on other platforms */
85 # if defined(wxABORT_ON_CONFIG_ERROR) && defined(__WXMSW__)
86 # error "wxUSE_CRASHREPORT must be defined."
88 # define wxUSE_CRASHREPORT 0
90 #endif /* !defined(wxUSE_CRASHREPORT) */
92 #ifndef wxUSE_DYNLIB_CLASS
93 # ifdef wxABORT_ON_CONFIG_ERROR
94 # error "wxUSE_DYNLIB_CLASS must be defined."
96 # define wxUSE_DYNLIB_CLASS 0
98 #endif /* !defined(wxUSE_DYNLIB_CLASS) */
100 #ifndef wxUSE_EXCEPTIONS
101 # ifdef wxABORT_ON_CONFIG_ERROR
102 # error "wxUSE_EXCEPTIONS must be defined."
104 # define wxUSE_EXCEPTIONS 0
106 #endif /* !defined(wxUSE_EXCEPTIONS) */
108 #ifndef wxUSE_FILESYSTEM
109 # ifdef wxABORT_ON_CONFIG_ERROR
110 # error "wxUSE_FILESYSTEM must be defined."
112 # define wxUSE_FILESYSTEM 0
114 #endif /* !defined(wxUSE_FILESYSTEM) */
116 /* don't give an error about this one yet, it's not fully implemented */
117 #ifndef wxUSE_FSVOLUME
118 # define wxUSE_FSVOLUME 0
119 #endif /* !defined(wxUSE_FSVOLUME) */
121 #ifndef wxUSE_DYNAMIC_LOADER
122 # ifdef wxABORT_ON_CONFIG_ERROR
123 # error "wxUSE_DYNAMIC_LOADER must be defined."
125 # define wxUSE_DYNAMIC_LOADER 0
127 #endif /* !defined(wxUSE_DYNAMIC_LOADER) */
130 # ifdef wxABORT_ON_CONFIG_ERROR
131 # error "wxUSE_LOG must be defined."
135 #endif /* !defined(wxUSE_LOG) */
137 #ifndef wxUSE_LONGLONG
138 # ifdef wxABORT_ON_CONFIG_ERROR
139 # error "wxUSE_LONGLONG must be defined."
141 # define wxUSE_LONGLONG 0
143 #endif /* !defined(wxUSE_LONGLONG) */
145 #ifndef wxUSE_MIMETYPE
146 # ifdef wxABORT_ON_CONFIG_ERROR
147 # error "wxUSE_MIMETYPE must be defined."
149 # define wxUSE_MIMETYPE 0
151 #endif /* !defined(wxUSE_MIMETYPE) */
153 #ifndef wxUSE_ON_FATAL_EXCEPTION
154 # ifdef wxABORT_ON_CONFIG_ERROR
155 # error "wxUSE_ON_FATAL_EXCEPTION must be defined."
157 # define wxUSE_ON_FATAL_EXCEPTION 0
159 #endif /* !defined(wxUSE_ON_FATAL_EXCEPTION) */
161 #ifndef wxUSE_PRINTF_POS_PARAMS
162 # ifdef wxABORT_ON_CONFIG_ERROR
163 # error "wxUSE_PRINTF_POS_PARAMS must be defined."
165 # define wxUSE_PRINTF_POS_PARAMS 0
167 #endif /* !defined(wxUSE_PRINTF_POS_PARAMS) */
169 #ifndef wxUSE_PROTOCOL
170 # ifdef wxABORT_ON_CONFIG_ERROR
171 # error "wxUSE_PROTOCOL must be defined."
173 # define wxUSE_PROTOCOL 0
175 #endif /* !defined(wxUSE_PROTOCOL) */
177 /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
179 # undef wxUSE_PROTOCOL_HTTP
180 # undef wxUSE_PROTOCOL_FTP
181 # undef wxUSE_PROTOCOL_FILE
182 # define wxUSE_PROTOCOL_HTTP 0
183 # define wxUSE_PROTOCOL_FTP 0
184 # define wxUSE_PROTOCOL_FILE 0
185 #endif /* wxUSE_PROTOCOL */
187 #ifndef wxUSE_PROTOCOL_HTTP
188 # ifdef wxABORT_ON_CONFIG_ERROR
189 # error "wxUSE_PROTOCOL_HTTP must be defined."
191 # define wxUSE_PROTOCOL_HTTP 0
193 #endif /* !defined(wxUSE_PROTOCOL_HTTP) */
195 #ifndef wxUSE_PROTOCOL_FTP
196 # ifdef wxABORT_ON_CONFIG_ERROR
197 # error "wxUSE_PROTOCOL_FTP must be defined."
199 # define wxUSE_PROTOCOL_FTP 0
201 #endif /* !defined(wxUSE_PROTOCOL_FTP) */
203 #ifndef wxUSE_PROTOCOL_FILE
204 # ifdef wxABORT_ON_CONFIG_ERROR
205 # error "wxUSE_PROTOCOL_FILE must be defined."
207 # define wxUSE_PROTOCOL_FILE 0
209 #endif /* !defined(wxUSE_PROTOCOL_FILE) */
212 # ifdef wxABORT_ON_CONFIG_ERROR
213 # error "wxUSE_REGEX must be defined."
215 # define wxUSE_REGEX 0
217 #endif /* !defined(wxUSE_REGEX) */
219 #ifndef wxUSE_STDPATHS
220 # ifdef wxABORT_ON_CONFIG_ERROR
221 # error "wxUSE_STDPATHS must be defined."
223 # define wxUSE_STDPATHS 1
225 #endif /* !defined(wxUSE_STDPATHS) */
228 # ifdef wxABORT_ON_CONFIG_ERROR
229 # error "wxUSE_XML must be defined."
233 #endif /* !defined(wxUSE_XML) */
235 #ifndef wxUSE_SOCKETS
236 # ifdef wxABORT_ON_CONFIG_ERROR
237 # error "wxUSE_SOCKETS must be defined."
239 # define wxUSE_SOCKETS 0
241 #endif /* !defined(wxUSE_SOCKETS) */
243 #ifndef wxUSE_STREAMS
244 # ifdef wxABORT_ON_CONFIG_ERROR
245 # error "wxUSE_STREAMS must be defined."
247 # define wxUSE_STREAMS 0
249 #endif /* !defined(wxUSE_STREAMS) */
251 #ifndef wxUSE_STOPWATCH
252 # ifdef wxABORT_ON_CONFIG_ERROR
253 # error "wxUSE_STOPWATCH must be defined."
255 # define wxUSE_STOPWATCH 0
257 #endif /* !defined(wxUSE_STOPWATCH) */
259 #ifndef wxUSE_TEXTBUFFER
260 # ifdef wxABORT_ON_CONFIG_ERROR
261 # error "wxUSE_TEXTBUFFER must be defined."
263 # define wxUSE_TEXTBUFFER 0
265 #endif /* !defined(wxUSE_TEXTBUFFER) */
267 #ifndef wxUSE_TEXTFILE
268 # ifdef wxABORT_ON_CONFIG_ERROR
269 # error "wxUSE_TEXTFILE must be defined."
271 # define wxUSE_TEXTFILE 0
273 #endif /* !defined(wxUSE_TEXTFILE) */
275 #ifndef wxUSE_UNICODE
276 # ifdef wxABORT_ON_CONFIG_ERROR
277 # error "wxUSE_UNICODE must be defined."
279 # define wxUSE_UNICODE 0
281 #endif /* !defined(wxUSE_UNICODE) */
284 # ifdef wxABORT_ON_CONFIG_ERROR
285 # error "wxUSE_URL must be defined."
289 #endif /* !defined(wxUSE_URL) */
291 #ifndef wxUSE_VARIANT
292 # ifdef wxABORT_ON_CONFIG_ERROR
293 # error "wxUSE_VARIANT must be defined."
295 # define wxUSE_VARIANT 0
297 #endif /* wxUSE_VARIANT */
300 all these tests are for GUI only
302 please keep the options in alphabetical order!
307 all of the settings tested below must be defined or we'd get an error from
308 preprocessor about invalid integer expression
312 # ifdef wxABORT_ON_CONFIG_ERROR
313 # error "wxUSE_ACCEL must be defined."
315 # define wxUSE_ACCEL 0
317 #endif /* !defined(wxUSE_ACCEL) */
319 #ifndef wxUSE_BITMAPCOMBOBOX
320 # ifdef wxABORT_ON_CONFIG_ERROR
321 # error "wxUSE_BITMAPCOMBOBOX must be defined."
323 # define wxUSE_BITMAPCOMBOBOX 0
325 #endif /* !defined(wxUSE_BITMAPCOMBOBOX) */
327 #ifndef wxUSE_BMPBUTTON
328 # ifdef wxABORT_ON_CONFIG_ERROR
329 # error "wxUSE_BMPBUTTON must be defined."
331 # define wxUSE_BMPBUTTON 0
333 #endif /* !defined(wxUSE_BMPBUTTON) */
336 # ifdef wxABORT_ON_CONFIG_ERROR
337 # error "wxUSE_BUTTON must be defined."
339 # define wxUSE_BUTTON 0
341 #endif /* !defined(wxUSE_BUTTON) */
343 #ifndef wxUSE_CALENDARCTRL
344 # ifdef wxABORT_ON_CONFIG_ERROR
345 # error "wxUSE_CALENDARCTRL must be defined."
347 # define wxUSE_CALENDARCTRL 0
349 #endif /* !defined(wxUSE_CALENDARCTRL) */
352 # ifdef wxABORT_ON_CONFIG_ERROR
353 # error "wxUSE_CARET must be defined."
355 # define wxUSE_CARET 0
357 #endif /* !defined(wxUSE_CARET) */
359 #ifndef wxUSE_CHECKBOX
360 # ifdef wxABORT_ON_CONFIG_ERROR
361 # error "wxUSE_CHECKBOX must be defined."
363 # define wxUSE_CHECKBOX 0
365 #endif /* !defined(wxUSE_CHECKBOX) */
367 #ifndef wxUSE_CHECKLISTBOX
368 # ifdef wxABORT_ON_CONFIG_ERROR
369 # error "wxUSE_CHECKLISTBOX must be defined."
371 # define wxUSE_CHECKLISTBOX 0
373 #endif /* !defined(wxUSE_CHECKLISTBOX) */
376 # ifdef wxABORT_ON_CONFIG_ERROR
377 # error "wxUSE_CHOICE must be defined."
379 # define wxUSE_CHOICE 0
381 #endif /* !defined(wxUSE_CHOICE) */
383 #ifndef wxUSE_CHOICEBOOK
384 # ifdef wxABORT_ON_CONFIG_ERROR
385 # error "wxUSE_CHOICEBOOK must be defined."
387 # define wxUSE_CHOICEBOOK 0
389 #endif /* !defined(wxUSE_CHOICEBOOK) */
391 #ifndef wxUSE_CHOICEDLG
392 # ifdef wxABORT_ON_CONFIG_ERROR
393 # error "wxUSE_CHOICEDLG must be defined."
395 # define wxUSE_CHOICEDLG 0
397 #endif /* !defined(wxUSE_CHOICEDLG) */
399 #ifndef wxUSE_CLIPBOARD
400 # ifdef wxABORT_ON_CONFIG_ERROR
401 # error "wxUSE_CLIPBOARD must be defined."
403 # define wxUSE_CLIPBOARD 0
405 #endif /* !defined(wxUSE_CLIPBOARD) */
407 #ifndef wxUSE_COLOURDLG
408 # ifdef wxABORT_ON_CONFIG_ERROR
409 # error "wxUSE_COLOURDLG must be defined."
411 # define wxUSE_COLOURDLG 0
413 #endif /* !defined(wxUSE_COLOURDLG) */
415 #ifndef wxUSE_COLOURPICKERCTRL
416 # ifdef wxABORT_ON_CONFIG_ERROR
417 # error "wxUSE_COLOURPICKERCTRL must be defined."
419 # define wxUSE_COLOURPICKERCTRL 0
421 #endif /* !defined(wxUSE_COLOURPICKERCTRL) */
423 #ifndef wxUSE_COMBOBOX
424 # ifdef wxABORT_ON_CONFIG_ERROR
425 # error "wxUSE_COMBOBOX must be defined."
427 # define wxUSE_COMBOBOX 0
429 #endif /* !defined(wxUSE_COMBOBOX) */
431 #ifndef wxUSE_COMBOCTRL
432 # ifdef wxABORT_ON_CONFIG_ERROR
433 # error "wxUSE_COMBOCTRL must be defined."
435 # define wxUSE_COMBOCTRL 0
437 #endif /* !defined(wxUSE_COMBOCTRL) */
439 #ifndef wxUSE_DATAOBJ
440 # ifdef wxABORT_ON_CONFIG_ERROR
441 # error "wxUSE_DATAOBJ must be defined."
443 # define wxUSE_DATAOBJ 0
445 #endif /* !defined(wxUSE_DATAOBJ) */
447 #ifndef wxUSE_DATAVIEWCTRL
448 # ifdef wxABORT_ON_CONFIG_ERROR
449 # error "wxUSE_DATAVIEWCTRL must be defined."
451 # define wxUSE_DATAVIEWCTRL 0
453 #endif /* !defined(wxUSE_DATAVIEWCTRL) */
455 #ifndef wxUSE_DATEPICKCTRL
456 # ifdef wxABORT_ON_CONFIG_ERROR
457 # error "wxUSE_DATEPICKCTRL must be defined."
459 # define wxUSE_DATEPICKCTRL 0
461 #endif /* !defined(wxUSE_DATEPICKCTRL) */
463 #ifndef wxUSE_DIRPICKERCTRL
464 # ifdef wxABORT_ON_CONFIG_ERROR
465 # error "wxUSE_DIRPICKERCTRL must be defined."
467 # define wxUSE_DIRPICKERCTRL 0
469 #endif /* !defined(wxUSE_DIRPICKERCTRL) */
471 #ifndef wxUSE_DISPLAY
472 # ifdef wxABORT_ON_CONFIG_ERROR
473 # error "wxUSE_DISPLAY must be defined."
475 # define wxUSE_DISPLAY 0
477 #endif /* !defined(wxUSE_DISPLAY) */
479 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
480 # ifdef wxABORT_ON_CONFIG_ERROR
481 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
483 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
485 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
487 #ifndef wxUSE_FILEDLG
488 # ifdef wxABORT_ON_CONFIG_ERROR
489 # error "wxUSE_FILEDLG must be defined."
491 # define wxUSE_FILEDLG 0
493 #endif /* !defined(wxUSE_FILEDLG) */
495 #ifndef wxUSE_FILEPICKERCTRL
496 # ifdef wxABORT_ON_CONFIG_ERROR
497 # error "wxUSE_FILEPICKERCTRL must be defined."
499 # define wxUSE_FILEPICKERCTRL 0
501 #endif /* !defined(wxUSE_FILEPICKERCTRL) */
503 #ifndef wxUSE_FONTDLG
504 # ifdef wxABORT_ON_CONFIG_ERROR
505 # error "wxUSE_FONTDLG must be defined."
507 # define wxUSE_FONTDLG 0
509 #endif /* !defined(wxUSE_FONTDLG) */
511 #ifndef wxUSE_FONTMAP
512 # ifdef wxABORT_ON_CONFIG_ERROR
513 # error "wxUSE_FONTMAP must be defined."
515 # define wxUSE_FONTMAP 0
517 #endif /* !defined(wxUSE_FONTMAP) */
519 #ifndef wxUSE_FONTPICKERCTRL
520 # ifdef wxABORT_ON_CONFIG_ERROR
521 # error "wxUSE_FONTPICKERCTRL must be defined."
523 # define wxUSE_FONTPICKERCTRL 0
525 #endif /* !defined(wxUSE_FONTPICKERCTRL) */
528 # ifdef wxABORT_ON_CONFIG_ERROR
529 # error "wxUSE_GAUGE must be defined."
531 # define wxUSE_GAUGE 0
533 #endif /* !defined(wxUSE_GAUGE) */
536 # ifdef wxABORT_ON_CONFIG_ERROR
537 # error "wxUSE_GRID must be defined."
539 # define wxUSE_GRID 0
541 #endif /* !defined(wxUSE_GRID) */
544 # ifdef wxABORT_ON_CONFIG_ERROR
545 # error "wxUSE_HELP must be defined."
547 # define wxUSE_HELP 0
549 #endif /* !defined(wxUSE_HELP) */
551 #ifndef wxUSE_HYPERLINKCTRL
552 # ifdef wxABORT_ON_CONFIG_ERROR
553 # error "wxUSE_HYPERLINKCTRL must be defined."
555 # define wxUSE_HYPERLINKCTRL 0
557 #endif /* !defined(wxUSE_HYPERLINKCTRL) */
560 # ifdef wxABORT_ON_CONFIG_ERROR
561 # error "wxUSE_HTML must be defined."
563 # define wxUSE_HTML 0
565 #endif /* !defined(wxUSE_HTML) */
567 #ifndef wxUSE_LIBMSPACK
569 /* set to 0 on platforms that don't have libmspack */
570 # define wxUSE_LIBMSPACK 0
572 # ifdef wxABORT_ON_CONFIG_ERROR
573 # error "wxUSE_LIBMSPACK must be defined."
575 # define wxUSE_LIBMSPACK 0
578 #endif /* !defined(wxUSE_LIBMSPACK) */
580 #ifndef wxUSE_ICO_CUR
581 # ifdef wxABORT_ON_CONFIG_ERROR
582 # error "wxUSE_ICO_CUR must be defined."
584 # define wxUSE_ICO_CUR 0
586 #endif /* !defined(wxUSE_ICO_CUR) */
589 # ifdef wxABORT_ON_CONFIG_ERROR
590 # error "wxUSE_IFF must be defined."
594 #endif /* !defined(wxUSE_IFF) */
596 #ifndef wxUSE_IMAGLIST
597 # ifdef wxABORT_ON_CONFIG_ERROR
598 # error "wxUSE_IMAGLIST must be defined."
600 # define wxUSE_IMAGLIST 0
602 #endif /* !defined(wxUSE_IMAGLIST) */
604 #ifndef wxUSE_JOYSTICK
605 # ifdef wxABORT_ON_CONFIG_ERROR
606 # error "wxUSE_JOYSTICK must be defined."
608 # define wxUSE_JOYSTICK 0
610 #endif /* !defined(wxUSE_JOYSTICK) */
612 #ifndef wxUSE_LISTBOOK
613 # ifdef wxABORT_ON_CONFIG_ERROR
614 # error "wxUSE_LISTBOOK must be defined."
616 # define wxUSE_LISTBOOK 0
618 #endif /* !defined(wxUSE_LISTBOOK) */
620 #ifndef wxUSE_LISTBOX
621 # ifdef wxABORT_ON_CONFIG_ERROR
622 # error "wxUSE_LISTBOX must be defined."
624 # define wxUSE_LISTBOX 0
626 #endif /* !defined(wxUSE_LISTBOX) */
628 #ifndef wxUSE_LISTCTRL
629 # ifdef wxABORT_ON_CONFIG_ERROR
630 # error "wxUSE_LISTCTRL must be defined."
632 # define wxUSE_LISTCTRL 0
634 #endif /* !defined(wxUSE_LISTCTRL) */
637 # ifdef wxABORT_ON_CONFIG_ERROR
638 # error "wxUSE_LOGGUI must be defined."
640 # define wxUSE_LOGGUI 0
642 #endif /* !defined(wxUSE_LOGGUI) */
644 #ifndef wxUSE_LOGWINDOW
645 # ifdef wxABORT_ON_CONFIG_ERROR
646 # error "wxUSE_LOGWINDOW must be defined."
648 # define wxUSE_LOGWINDOW 0
650 #endif /* !defined(wxUSE_LOGWINDOW) */
652 #ifndef wxUSE_LOG_DIALOG
653 # ifdef wxABORT_ON_CONFIG_ERROR
654 # error "wxUSE_LOG_DIALOG must be defined."
656 # define wxUSE_LOG_DIALOG 0
658 #endif /* !defined(wxUSE_LOG_DIALOG) */
661 # ifdef wxABORT_ON_CONFIG_ERROR
662 # error "wxUSE_MDI must be defined."
666 #endif /* !defined(wxUSE_MDI) */
668 #ifndef wxUSE_MDI_ARCHITECTURE
669 # ifdef wxABORT_ON_CONFIG_ERROR
670 # error "wxUSE_MDI_ARCHITECTURE must be defined."
672 # define wxUSE_MDI_ARCHITECTURE 0
674 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
677 # ifdef wxABORT_ON_CONFIG_ERROR
678 # error "wxUSE_MENUS must be defined."
680 # define wxUSE_MENUS 0
682 #endif /* !defined(wxUSE_MENUS) */
685 # ifdef wxABORT_ON_CONFIG_ERROR
686 # error "wxUSE_MSGDLG must be defined."
688 # define wxUSE_MSGDLG 0
690 #endif /* !defined(wxUSE_MSGDLG) */
692 #ifndef wxUSE_NOTEBOOK
693 # ifdef wxABORT_ON_CONFIG_ERROR
694 # error "wxUSE_NOTEBOOK must be defined."
696 # define wxUSE_NOTEBOOK 0
698 #endif /* !defined(wxUSE_NOTEBOOK) */
700 #ifndef wxUSE_ODCOMBOBOX
701 # ifdef wxABORT_ON_CONFIG_ERROR
702 # error "wxUSE_ODCOMBOBOX must be defined."
704 # define wxUSE_ODCOMBOBOX 0
706 #endif /* !defined(wxUSE_ODCOMBOBOX) */
708 #ifndef wxUSE_PALETTE
709 # ifdef wxABORT_ON_CONFIG_ERROR
710 # error "wxUSE_PALETTE must be defined."
712 # define wxUSE_PALETTE 0
714 #endif /* !defined(wxUSE_PALETTE) */
716 #ifndef wxUSE_POPUPWIN
717 # ifdef wxABORT_ON_CONFIG_ERROR
718 # error "wxUSE_POPUPWIN must be defined."
720 # define wxUSE_POPUPWIN 0
722 #endif /* !defined(wxUSE_POPUPWIN) */
724 #ifndef wxUSE_PRINTING_ARCHITECTURE
725 # ifdef wxABORT_ON_CONFIG_ERROR
726 # error "wxUSE_PRINTING_ARCHITECTURE must be defined."
728 # define wxUSE_PRINTING_ARCHITECTURE 0
730 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
732 #ifndef wxUSE_RADIOBOX
733 # ifdef wxABORT_ON_CONFIG_ERROR
734 # error "wxUSE_RADIOBOX must be defined."
736 # define wxUSE_RADIOBOX 0
738 #endif /* !defined(wxUSE_RADIOBOX) */
740 #ifndef wxUSE_RADIOBTN
741 # ifdef wxABORT_ON_CONFIG_ERROR
742 # error "wxUSE_RADIOBTN must be defined."
744 # define wxUSE_RADIOBTN 0
746 #endif /* !defined(wxUSE_RADIOBTN) */
749 # ifdef wxABORT_ON_CONFIG_ERROR
750 # error "wxUSE_SASH must be defined."
752 # define wxUSE_SASH 0
754 #endif /* !defined(wxUSE_SASH) */
756 #ifndef wxUSE_SCROLLBAR
757 # ifdef wxABORT_ON_CONFIG_ERROR
758 # error "wxUSE_SCROLLBAR must be defined."
760 # define wxUSE_SCROLLBAR 0
762 #endif /* !defined(wxUSE_SCROLLBAR) */
765 # ifdef wxABORT_ON_CONFIG_ERROR
766 # error "wxUSE_SLIDER must be defined."
768 # define wxUSE_SLIDER 0
770 #endif /* !defined(wxUSE_SLIDER) */
773 # ifdef wxABORT_ON_CONFIG_ERROR
774 # error "wxUSE_SOUND must be defined."
776 # define wxUSE_SOUND 0
778 #endif /* !defined(wxUSE_SOUND) */
780 #ifndef wxUSE_SPINBTN
781 # ifdef wxABORT_ON_CONFIG_ERROR
782 # error "wxUSE_SPINBTN must be defined."
784 # define wxUSE_SPINBTN 0
786 #endif /* !defined(wxUSE_SPINBTN) */
788 #ifndef wxUSE_SPINCTRL
789 # ifdef wxABORT_ON_CONFIG_ERROR
790 # error "wxUSE_SPINCTRL must be defined."
792 # define wxUSE_SPINCTRL 0
794 #endif /* !defined(wxUSE_SPINCTRL) */
797 # ifdef wxABORT_ON_CONFIG_ERROR
798 # error "wxUSE_SPLASH must be defined."
800 # define wxUSE_SPLASH 0
802 #endif /* !defined(wxUSE_SPLASH) */
804 #ifndef wxUSE_SPLITTER
805 # ifdef wxABORT_ON_CONFIG_ERROR
806 # error "wxUSE_SPLITTER must be defined."
808 # define wxUSE_SPLITTER 0
810 #endif /* !defined(wxUSE_SPLITTER) */
812 #ifndef wxUSE_STATBMP
813 # ifdef wxABORT_ON_CONFIG_ERROR
814 # error "wxUSE_STATBMP must be defined."
816 # define wxUSE_STATBMP 0
818 #endif /* !defined(wxUSE_STATBMP) */
820 #ifndef wxUSE_STATBOX
821 # ifdef wxABORT_ON_CONFIG_ERROR
822 # error "wxUSE_STATBOX must be defined."
824 # define wxUSE_STATBOX 0
826 #endif /* !defined(wxUSE_STATBOX) */
828 #ifndef wxUSE_STATLINE
829 # ifdef wxABORT_ON_CONFIG_ERROR
830 # error "wxUSE_STATLINE must be defined."
832 # define wxUSE_STATLINE 0
834 #endif /* !defined(wxUSE_STATLINE) */
836 #ifndef wxUSE_STATTEXT
837 # ifdef wxABORT_ON_CONFIG_ERROR
838 # error "wxUSE_STATTEXT must be defined."
840 # define wxUSE_STATTEXT 0
842 #endif /* !defined(wxUSE_STATTEXT) */
844 #ifndef wxUSE_STATUSBAR
845 # ifdef wxABORT_ON_CONFIG_ERROR
846 # error "wxUSE_STATUSBAR must be defined."
848 # define wxUSE_STATUSBAR 0
850 #endif /* !defined(wxUSE_STATUSBAR) */
852 #ifndef wxUSE_TAB_DIALOG
853 # ifdef wxABORT_ON_CONFIG_ERROR
854 # error "wxUSE_TAB_DIALOG must be defined."
856 # define wxUSE_TAB_DIALOG 0
858 #endif /* !defined(wxUSE_TAB_DIALOG) */
860 #ifndef wxUSE_TEXTCTRL
861 # ifdef wxABORT_ON_CONFIG_ERROR
862 # error "wxUSE_TEXTCTRL must be defined."
864 # define wxUSE_TEXTCTRL 0
866 #endif /* !defined(wxUSE_TEXTCTRL) */
868 #ifndef wxUSE_TIPWINDOW
869 # ifdef wxABORT_ON_CONFIG_ERROR
870 # error "wxUSE_TIPWINDOW must be defined."
872 # define wxUSE_TIPWINDOW 0
874 #endif /* !defined(wxUSE_TIPWINDOW) */
876 #ifndef wxUSE_TOOLBAR
877 # ifdef wxABORT_ON_CONFIG_ERROR
878 # error "wxUSE_TOOLBAR must be defined."
880 # define wxUSE_TOOLBAR 0
882 #endif /* !defined(wxUSE_TOOLBAR) */
884 #ifndef wxUSE_TOOLTIPS
885 # ifdef wxABORT_ON_CONFIG_ERROR
886 # error "wxUSE_TOOLTIPS must be defined."
888 # define wxUSE_TOOLTIPS 0
890 #endif /* !defined(wxUSE_TOOLTIPS) */
892 #ifndef wxUSE_TREECTRL
893 # ifdef wxABORT_ON_CONFIG_ERROR
894 # error "wxUSE_TREECTRL must be defined."
896 # define wxUSE_TREECTRL 0
898 #endif /* !defined(wxUSE_TREECTRL) */
900 #ifndef wxUSE_VALIDATORS
901 # ifdef wxABORT_ON_CONFIG_ERROR
902 # error "wxUSE_VALIDATORS must be defined."
904 # define wxUSE_VALIDATORS 0
906 #endif /* !defined(wxUSE_VALIDATORS) */
908 #ifndef wxUSE_WXHTML_HELP
909 # ifdef wxABORT_ON_CONFIG_ERROR
910 # error "wxUSE_WXHTML_HELP must be defined."
912 # define wxUSE_WXHTML_HELP 0
914 #endif /* !defined(wxUSE_WXHTML_HELP) */
917 # ifdef wxABORT_ON_CONFIG_ERROR
918 # error "wxUSE_XRC must be defined."
922 #endif /* !defined(wxUSE_XRC) */
924 #endif /* wxUSE_GUI */
927 check consistency of the settings
930 #if WXWIN_COMPATIBILITY_2_4
931 # if !WXWIN_COMPATIBILITY_2_6
932 # ifdef wxABORT_ON_CONFIG_ERROR
933 # error "2.4.X compatibility requires 2.6.X compatibility"
935 # undef WXWIN_COMPATIBILITY_2_6
936 # define WXWIN_COMPATIBILITY_2_6 1
939 #endif /* WXWIN_COMPATIBILITY_2_4 */
941 #if wxUSE_ARCHIVE_STREAMS
943 # ifdef wxABORT_ON_CONFIG_ERROR
944 # error "wxArchive requires wxUSE_DATETIME"
946 # undef wxUSE_ARCHIVE_STREAMS
947 # define wxUSE_ARCHIVE_STREAMS 0
950 #endif /* wxUSE_ARCHIVE_STREAMS */
952 #if wxUSE_CRASHREPORT && !wxUSE_ON_FATAL_EXCEPTION
953 # ifdef wxABORT_ON_CONFIG_ERROR
954 # error "wxUSE_CRASHREPORT requires wxUSE_ON_FATAL_EXCEPTION"
956 # undef wxUSE_CRASHREPORT
957 # define wxUSE_CRASHREPORT 0
959 #endif /* wxUSE_CRASHREPORT */
961 #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
963 # ifdef wxABORT_ON_CONFIG_ERROR
964 # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
966 # undef wxUSE_PROTOCOL
967 # define wxUSE_PROTOCOL 1
970 #endif /* wxUSE_PROTOCOL_XXX */
974 # ifdef wxABORT_ON_CONFIG_ERROR
975 # error "wxUSE_URL requires wxUSE_PROTOCOL"
977 # undef wxUSE_PROTOCOL
978 # define wxUSE_PROTOCOL 1
981 #endif /* wxUSE_URL */
985 # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
986 # ifdef wxABORT_ON_CONFIG_ERROR
987 # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
989 # undef wxUSE_SOCKETS
990 # define wxUSE_SOCKETS 1
996 # ifdef wxABORT_ON_CONFIG_ERROR
997 # error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
999 # undef wxUSE_STREAMS
1000 # define wxUSE_STREAMS 1
1003 #endif /* wxUSE_PROTOCOL */
1005 /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
1007 # if !wxUSE_FILESYSTEM
1008 # ifdef wxABORT_ON_CONFIG_ERROR
1009 # error "wxHTML requires wxFileSystem"
1011 # undef wxUSE_FILESYSTEM
1012 # define wxUSE_FILESYSTEM 1
1015 #endif /* wxUSE_HTML */
1017 #if wxUSE_FILESYSTEM
1019 # ifdef wxABORT_ON_CONFIG_ERROR
1020 # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
1022 # undef wxUSE_STREAMS
1023 # define wxUSE_STREAMS 1
1026 #endif /* wxUSE_FILESYSTEM */
1029 # if !wxUSE_PROTOCOL
1030 # ifdef wxABORT_ON_CONFIG_ERROR
1031 # error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
1033 # undef wxUSE_PROTOCOL
1034 # define wxUSE_PROTOCOL 1
1037 #endif /* wxUSE_FS_INET */
1039 #if wxUSE_STOPWATCH || wxUSE_DATETIME
1040 # if !wxUSE_LONGLONG
1041 # ifdef wxABORT_ON_CONFIG_ERROR
1042 # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
1044 # undef wxUSE_LONGLONG
1045 # define wxUSE_LONGLONG 1
1048 #endif /* wxUSE_STOPWATCH */
1050 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
1051 # ifdef wxABORT_ON_CONFIG_ERROR
1052 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
1054 # undef wxUSE_TEXTFILE
1055 # define wxUSE_TEXTFILE 1
1057 #endif /* wxUSE_MIMETYPE */
1060 # if !wxUSE_DATETIME
1061 # ifdef wxABORT_ON_CONFIG_ERROR
1062 # error "wxODBC requires wxUSE_DATETIME"
1065 # define wxUSE_ODBC 0
1068 #endif /* wxUSE_ODBC */
1070 #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
1071 # ifdef wxABORT_ON_CONFIG_ERROR
1072 # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
1074 # undef wxUSE_TEXTBUFFER
1075 # define wxUSE_TEXTBUFFER 1
1077 #endif /* wxUSE_TEXTFILE */
1079 #if wxUSE_TEXTFILE && !wxUSE_FILE
1080 # ifdef wxABORT_ON_CONFIG_ERROR
1081 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
1084 # define wxUSE_FILE 1
1086 #endif /* wxUSE_TEXTFILE */
1088 #if wxUSE_XML && !wxUSE_WCHAR_T
1089 # ifdef wxABORT_ON_CONFIG_ERROR
1090 # error "wxUSE_XML requires wxUSE_WCHAR_T"
1093 # define wxUSE_XML 0
1095 #endif /* wxUSE_XML */
1097 #if !wxUSE_DYNLIB_CLASS
1098 # if wxUSE_DYNAMIC_LOADER
1099 # ifdef wxABORT_ON_CONFIG_ERROR
1100 # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
1102 # define wxUSE_DYNLIB_CLASS 1
1105 #endif /* wxUSE_DYNLIB_CLASS */
1109 # ifdef wxABORT_ON_CONFIG_ERROR
1110 # error "wxZip requires wxZlib"
1113 # define wxUSE_ZLIB 1
1116 # if !wxUSE_ARCHIVE_STREAMS
1117 # ifdef wxABORT_ON_CONFIG_ERROR
1118 # error "wxZip requires wxArchive"
1120 # undef wxUSE_ARCHIVE_STREAMS
1121 # define wxUSE_ARCHIVE_STREAMS 1
1124 #endif /* wxUSE_ZIPSTREAM */
1126 /* the rest of the tests is for the GUI settings only */
1129 #if wxUSE_BUTTON || \
1130 wxUSE_CALENDARCTRL || \
1133 wxUSE_BMPBUTTON || \
1135 wxUSE_CHECKLISTBOX || \
1144 wxUSE_SCROLLBAR || \
1152 wxUSE_STATUSBAR || \
1156 # if !wxUSE_CONTROLS
1157 # ifdef wxABORT_ON_CONFIG_ERROR
1158 # error "wxUSE_CONTROLS unset but some controls used"
1160 # undef wxUSE_CONTROLS
1161 # define wxUSE_CONTROLS 1
1164 #endif /* controls */
1168 # ifdef wxABORT_ON_CONFIG_ERROR
1169 # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1171 # undef wxUSE_BUTTON
1172 # define wxUSE_BUTTON 1
1175 #endif /* wxUSE_BMPBUTTON */
1177 #if wxUSE_NOTEBOOK || wxUSE_LISTBOOK || wxUSE_CHOICEBOOK
1178 # if defined(wxUSE_BOOKCTRL) && !wxUSE_BOOKCTRL
1179 # ifdef wxABORT_ON_CONFIG_ERROR
1180 # error "wxUSE_BOOKCTRL must be set."
1182 # undef wxUSE_BOOKCTRL
1186 # ifndef wxUSE_BOOKCTRL
1187 # define wxUSE_BOOKCTRL 1
1189 #endif /* wxUSE_NOTEBOOK */
1192 # if !wxUSE_LISTCTRL
1193 # ifdef wxABORT_ON_CONFIG_ERROR
1194 # error "wxListbook requires wxListCtrl"
1196 # undef wxUSE_LISTCTRL
1197 # define wxUSE_LISTCTRL 1
1200 #endif /* wxUSE_LISTBOOK */
1202 #if wxUSE_CHOICEBOOK
1204 # ifdef wxABORT_ON_CONFIG_ERROR
1205 # error "wxChoicebook requires wxChoice"
1207 # undef wxUSE_CHOICE
1208 # define wxUSE_CHOICE 1
1211 #endif /* wxUSE_CHOICEBOOK */
1213 #if !wxUSE_ODCOMBOBOX
1214 # if wxUSE_BITMAPCOMBOBOX
1215 # error "wxBitmapComboBox requires wxOwnerDrawnComboBox"
1217 # undef wxUSE_BITMAPCOMBOBOX
1218 # define wxUSE_BITMAPCOMBOBOX 0
1220 #endif /* !wxUSE_ODCOMBOBOX */
1222 /* don't attempt to use native status bar on the platforms not having it */
1223 #ifndef wxUSE_NATIVE_STATUSBAR
1224 # define wxUSE_NATIVE_STATUSBAR 0
1225 #elif wxUSE_NATIVE_STATUSBAR
1226 # if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1227 defined(__WXMAC__) || \
1228 defined(__WXPALMOS__) )
1229 # undef wxUSE_NATIVE_STATUSBAR
1230 # define wxUSE_NATIVE_STATUSBAR 0
1234 /* wxUniv-specific dependencies */
1235 #if defined(__WXUNIVERSAL__)
1236 # if (wxUSE_COMBOBOX || wxUSE_MENUS) && !wxUSE_POPUPWIN
1237 # ifdef wxABORT_ON_CONFIG_ERROR
1238 # error "wxUSE_POPUPWIN must be defined to use comboboxes/menus"
1240 # undef wxUSE_POPUPWIN
1241 # define wxUSE_POPUPWIN 1
1247 # ifdef wxABORT_ON_CONFIG_ERROR
1248 # error "wxComboBox requires wxListBox in wxUniversal"
1250 # undef wxUSE_LISTBOX
1251 # define wxUSE_LISTBOX 1
1254 # endif /* wxUSE_COMBOBOX */
1257 # if !wxUSE_CHECKBOX
1258 # ifdef wxABORT_ON_CONFIG_ERROR
1259 # error "wxUSE_RADIOBTN requires wxUSE_CHECKBOX in wxUniversal"
1261 # undef wxUSE_CHECKBOX
1262 # define wxUSE_CHECKBOX 1
1265 # endif /* wxUSE_RADIOBTN */
1269 # ifdef wxABORT_ON_CONFIG_ERROR
1270 # error "wxTextCtrl requires wxCaret in wxUniversal"
1273 # define wxUSE_CARET 1
1275 # endif /* wxUSE_CARET */
1277 # if !wxUSE_SCROLLBAR
1278 # ifdef wxABORT_ON_CONFIG_ERROR
1279 # error "wxTextCtrl requires wxScrollBar in wxUniversal"
1281 # undef wxUSE_SCROLLBAR
1282 # define wxUSE_SCROLLBAR 1
1284 # endif /* wxUSE_SCROLLBAR */
1285 # endif /* wxUSE_TEXTCTRL */
1286 #endif /* __WXUNIVERSAL__ */
1288 /* wxGTK-specific dependencies */
1290 # ifndef __WXUNIVERSAL__
1291 # if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS
1292 # ifdef wxABORT_ON_CONFIG_ERROR
1293 # error "MDI requires wxUSE_MENUS in wxGTK"
1296 # define wxUSE_MENUS 1
1299 # endif /* !__WXUNIVERSAL__ */
1303 # ifdef wxABORT_ON_CONFIG_ERROR
1304 # error "wxJoystick requires threads in wxGTK"
1306 # undef wxUSE_JOYSTICK
1307 # define wxUSE_JOYSTICK 0
1311 #endif /* wxGTK && !wxUniv */
1313 /* Hopefully we can emulate these dialogs in due course */
1314 #if defined(__SMARTPHONE__) && defined(__WXWINCE__)
1315 # ifdef wxUSE_COLOURDLG
1316 # undef wxUSE_COLOURDLG
1317 # define wxUSE_COLOURDLG 0
1319 #endif /* __SMARTPHONE__ && __WXWINCE__ */
1322 /* generic controls dependencies */
1323 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1324 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1325 /* all common controls are needed by these dialogs */
1326 # if !defined(wxUSE_CHOICE) || \
1327 !defined(wxUSE_TEXTCTRL) || \
1328 !defined(wxUSE_BUTTON) || \
1329 !defined(wxUSE_CHECKBOX) || \
1330 !defined(wxUSE_STATTEXT)
1331 # ifdef wxABORT_ON_CONFIG_ERROR
1332 # error "These common controls are needed by common dialogs"
1334 # undef wxUSE_CHOICE
1335 # define wxUSE_CHOICE 1
1336 # undef wxUSE_TEXTCTRL
1337 # define wxUSE_TEXTCTRL 1
1338 # undef wxUSE_BUTTON
1339 # define wxUSE_BUTTON 1
1340 # undef wxUSE_CHECKBOX
1341 # define wxUSE_CHECKBOX 1
1342 # undef wxUSE_STATTEXT
1343 # define wxUSE_STATTEXT 1
1347 #endif /* !wxMSW || wxUniv */
1349 /* common dependencies */
1350 #if wxUSE_CALENDARCTRL
1351 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1352 # ifdef wxABORT_ON_CONFIG_ERROR
1353 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1355 # undef wxUSE_SPINBTN
1356 # undef wxUSE_COMBOBOX
1357 # define wxUSE_SPINBTN 1
1358 # define wxUSE_COMBOBOX 1
1362 # if !wxUSE_DATETIME
1363 # ifdef wxABORT_ON_CONFIG_ERROR
1364 # error "wxCalendarCtrl requires wxUSE_DATETIME"
1366 # undef wxUSE_DATETIME
1367 # define wxUSE_DATETIME 1
1370 #endif /* wxUSE_CALENDARCTRL */
1372 #if wxUSE_DATEPICKCTRL
1373 # if !wxUSE_DATETIME
1374 # ifdef wxABORT_ON_CONFIG_ERROR
1375 # error "wxDatePickerCtrl requires wxUSE_DATETIME"
1377 # undef wxUSE_DATETIME
1378 # define wxUSE_DATETIME 1
1381 #endif /* wxUSE_DATEPICKCTRL */
1383 #if wxUSE_CHECKLISTBOX
1385 # ifdef wxABORT_ON_CONFIG_ERROR
1386 # error "wxCheckListBox requires wxListBox"
1388 # undef wxUSE_LISTBOX
1389 # define wxUSE_LISTBOX 1
1392 #endif /* wxUSE_CHECKLISTBOX */
1396 # ifdef wxABORT_ON_CONFIG_ERROR
1397 # error "Choice dialogs requires wxListBox"
1399 # undef wxUSE_LISTBOX
1400 # define wxUSE_LISTBOX 1
1403 #endif /* wxUSE_CHOICEDLG */
1406 # if !wxUSE_BMPBUTTON
1407 # ifdef wxABORT_ON_CONFIG_ERROR
1408 # error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1410 # undef wxUSE_BMPBUTTON
1411 # define wxUSE_BMPBUTTON 1
1415 # if !wxUSE_CHOICEDLG
1416 # ifdef wxABORT_ON_CONFIG_ERROR
1417 # error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1419 # undef wxUSE_CHOICEDLG
1420 # define wxUSE_CHOICEDLG 1
1423 #endif /* wxUSE_HELP */
1425 #if wxUSE_WXHTML_HELP
1426 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
1427 # ifdef wxABORT_ON_CONFIG_ERROR
1428 # error "Built in help controller can't be compiled"
1431 # define wxUSE_HELP 1
1433 # define wxUSE_HTML 1
1434 # undef wxUSE_COMBOBOX
1435 # define wxUSE_COMBOBOX 1
1436 # undef wxUSE_NOTEBOOK
1437 # define wxUSE_NOTEBOOK 1
1438 # undef wxUSE_SPINCTRL
1439 # define wxUSE_SPINCTRL 1
1442 #endif /* wxUSE_WXHTML_HELP */
1446 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1447 user explicitly wants this and disable all other features that require
1450 # if wxUSE_DRAGIMAGE
1451 # ifdef wxABORT_ON_CONFIG_ERROR
1452 # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1454 # undef wxUSE_DRAGIMAGE
1455 # define wxUSE_DRAGIMAGE 0
1460 # ifdef wxABORT_ON_CONFIG_ERROR
1461 # error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1463 # undef wxUSE_LIBPNG
1464 # define wxUSE_LIBPNG 0
1469 # ifdef wxABORT_ON_CONFIG_ERROR
1470 # error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1472 # undef wxUSE_LIBJPEG
1473 # define wxUSE_LIBJPEG 0
1478 # ifdef wxABORT_ON_CONFIG_ERROR
1479 # error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1481 # undef wxUSE_LIBTIFF
1482 # define wxUSE_LIBTIFF 0
1487 # ifdef wxABORT_ON_CONFIG_ERROR
1488 # error "wxUSE_GIF requires wxUSE_IMAGE"
1491 # define wxUSE_GIF 0
1496 # ifdef wxABORT_ON_CONFIG_ERROR
1497 # error "wxUSE_PNM requires wxUSE_IMAGE"
1500 # define wxUSE_PNM 0
1505 # ifdef wxABORT_ON_CONFIG_ERROR
1506 # error "wxUSE_PCX requires wxUSE_IMAGE"
1509 # define wxUSE_PCX 0
1514 # ifdef wxABORT_ON_CONFIG_ERROR
1515 # error "wxUSE_IFF requires wxUSE_IMAGE"
1518 # define wxUSE_IFF 0
1523 # ifdef wxABORT_ON_CONFIG_ERROR
1524 # error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1526 # undef wxUSE_TOOLBAR
1527 # define wxUSE_TOOLBAR 0
1532 # ifdef wxABORT_ON_CONFIG_ERROR
1533 # error "wxUSE_XPM requires wxUSE_IMAGE"
1536 # define wxUSE_XPM 0
1540 #endif /* !wxUSE_IMAGE */
1542 #if wxUSE_DOC_VIEW_ARCHITECTURE
1544 # ifdef wxABORT_ON_CONFIG_ERROR
1545 # error "DocView requires wxUSE_MENUS"
1548 # define wxUSE_MENUS 1
1552 # if !wxUSE_CHOICEDLG
1553 # ifdef wxABORT_ON_CONFIG_ERROR
1554 # error "DocView requires wxUSE_CHOICEDLG"
1556 # undef wxUSE_CHOICEDLG
1557 # define wxUSE_CHOICEDLG 1
1561 # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1562 # ifdef wxABORT_ON_CONFIG_ERROR
1563 # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1565 # undef wxUSE_STREAMS
1566 # define wxUSE_STREAMS 1
1569 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1571 #if wxUSE_PRINTING_ARCHITECTURE
1572 # if !wxUSE_COMBOBOX
1573 # ifdef wxABORT_ON_CONFIG_ERROR
1574 # error "Print dialog requires wxUSE_COMBOBOX"
1576 # undef wxUSE_COMBOBOX
1577 # define wxUSE_COMBOBOX 1
1580 #endif /* wxUSE_PRINTING_ARCHITECTURE */
1582 #if wxUSE_MDI_ARCHITECTURE
1584 # ifdef wxABORT_ON_CONFIG_ERROR
1585 # error "MDI requires wxUSE_MDI"
1588 # define wxUSE_MDI 1
1592 # if !wxUSE_DOC_VIEW_ARCHITECTURE
1593 # ifdef wxABORT_ON_CONFIG_ERROR
1594 # error "wxUSE_MDI_ARCHITECTURE requires wxUSE_DOC_VIEW_ARCHITECTURE"
1596 # undef wxUSE_DOC_VIEW_ARCHITECTURE
1597 # define wxUSE_DOC_VIEW_ARCHITECTURE 1
1600 #endif /* wxUSE_MDI_ARCHITECTURE */
1603 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1604 # ifdef wxABORT_ON_CONFIG_ERROR
1605 # error "wxUSE_FILEDLG is required by wxUSE_DOC_VIEW_ARCHITECTURE and wxUSE_WXHTML_HELP!"
1607 # undef wxUSE_FILEDLG
1608 # define wxUSE_FILEDLG 1
1611 #endif /* wxUSE_FILEDLG */
1613 #if !wxUSE_GAUGE || !wxUSE_BUTTON
1614 # if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
1615 # ifdef wxABORT_ON_CONFIG_ERROR
1616 # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
1619 # undef wxUSE_BUTTON
1620 # define wxUSE_GAUGE 1
1621 # define wxUSE_BUTTON 1
1624 #endif /* !wxUSE_GAUGE */
1627 # if wxUSE_FONTDLG || \
1629 wxUSE_CHOICEDLG || \
1630 wxUSE_NUMBERDLG || \
1633 wxUSE_STARTUP_TIPS || \
1635 # ifdef wxABORT_ON_CONFIG_ERROR
1636 # error "Common and generic dialogs require wxUSE_BUTTON"
1638 # undef wxUSE_BUTTON
1639 # define wxUSE_BUTTON 1
1642 #endif /* !wxUSE_BUTTON */
1645 # if wxUSE_TOOLBAR_NATIVE
1646 # ifdef wxABORT_ON_CONFIG_ERROR
1647 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1649 # undef wxUSE_TOOLBAR_NATIVE
1650 # define wxUSE_TOOLBAR_NATIVE 0
1656 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1657 # ifdef wxABORT_ON_CONFIG_ERROR
1658 # error "wxImageList must be compiled as well"
1660 # undef wxUSE_IMAGLIST
1661 # define wxUSE_IMAGLIST 1
1664 #endif /* !wxUSE_IMAGLIST */
1667 # ifdef wxABORT_ON_CONFIG_ERROR
1668 /* FIXME: should compile without it, of course, but doesn't */
1669 # error "wxMessageBox is always needed"
1671 # undef wxUSE_MSGDLG
1672 # define wxUSE_MSGDLG 1
1677 # if !wxUSE_RADIOBTN
1678 # ifdef wxABORT_ON_CONFIG_ERROR
1679 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
1681 # undef wxUSE_RADIOBTN
1682 # define wxUSE_RADIOBTN 1
1685 # if !wxUSE_STATBOX && !defined(__WXPALMOS__)
1686 # ifdef wxABORT_ON_CONFIG_ERROR
1687 # error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
1689 # undef wxUSE_STATBOX
1690 # define wxUSE_STATBOX 1
1693 #endif /* wxUSE_RADIOBOX */
1696 # if !wxUSE_TEXTCTRL
1697 # ifdef wxABORT_ON_CONFIG_ERROR
1698 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1700 # undef wxUSE_TEXTCTRL
1701 # define wxUSE_TEXTCTRL 1
1704 #endif /* wxUSE_LOGWINDOW */
1706 #if wxUSE_LOG_DIALOG
1707 # if !wxUSE_LISTCTRL || !wxUSE_BUTTON
1708 # ifdef wxABORT_ON_CONFIG_ERROR
1709 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
1711 # undef wxUSE_LISTCTRL
1712 # define wxUSE_LISTCTRL 1
1713 # undef wxUSE_BUTTON
1714 # define wxUSE_BUTTON 1
1717 #endif /* wxUSE_LOG_DIALOG */
1719 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
1720 # ifdef wxABORT_ON_CONFIG_ERROR
1721 # error "wxClipboard requires wxDataObject"
1723 # undef wxUSE_DATAOBJ
1724 # define wxUSE_DATAOBJ 1
1726 #endif /* wxUSE_CLIPBOARD */
1728 #if wxUSE_WX_RESOURCES && !wxUSE_PROLOGIO
1729 # ifdef wxABORT_ON_CONFIG_ERROR
1730 # error "wxr resources require PrologIO"
1732 # undef wxUSE_PROLOGIO
1733 # define wxUSE_PROLOGIO 1
1735 #endif /* wxUSE_WX_RESOURCES */
1737 #if wxUSE_XRC && !wxUSE_XML
1738 # ifdef wxABORT_ON_CONFIG_ERROR
1739 # error "wxUSE_XRC requires wxUSE_XML"
1742 # define wxUSE_XRC 0
1744 #endif /* wxUSE_XRC */
1746 #if wxUSE_SOCKETS && !wxUSE_STOPWATCH
1747 # ifdef wxABORT_ON_CONFIG_ERROR
1748 # error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
1750 # undef wxUSE_SOCKETS
1751 # define wxUSE_SOCKETS 0
1753 #endif /* wxUSE_SOCKETS */
1756 # if wxUSE_DATAVIEWCTRL
1757 # ifdef wxABORT_ON_CONFIG_ERROR
1758 # error "wxDataViewCtrl requires wxVariant"
1760 # undef wxUSE_DATAVIEWCTRL
1761 # define wxUSE_DATAVIEWCTRL 0
1766 # ifdef wxABORT_ON_CONFIG_ERROR
1767 # error "wxUSE_ODBC requires wxVariant"
1770 # define wxUSE_ODBC 0
1773 #endif /* wxUSE_VARIANT */
1775 #endif /* wxUSE_GUI */