]>
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 */
13 #ifndef _WX_CHKCONF_H_
14 #define _WX_CHKCONF_H_
17 **************************************************
18 PLEASE READ THIS IF YOU GET AN ERROR IN THIS FILE!
19 **************************************************
21 If you get an error saying "wxUSE_FOO must be defined", it means that you
22 are not using the correct up-to-date version of setup.h. This happens most
23 often when using svn or daily snapshots and a new symbol was added to
24 setup0.h and you haven't updated your local setup.h to reflect it. If
25 this is the case, you need to propagate the changes from setup0.h to your
26 setup.h and, if using makefiles under MSW, also remove setup.h under the
27 build directory (lib/$(COMPILER)_{lib,dll}/msw[u][d][dll]/wx) so that
28 the new setup.h is copied there.
30 If you get an error of the form "wxFoo requires wxBar", then the settings
31 in your setup.h are inconsistent. You have the choice between correcting
32 them manually or commenting out #define wxABORT_ON_CONFIG_ERROR below to
33 try to correct the problems automatically (not really recommended but
38 This file has the following sections:
39 1. checks that all wxUSE_XXX symbols we use are defined
40 a) first the non-GUI ones
41 b) then the GUI-only ones
42 2. platform-specific checks done in the platform headers
43 3. generic consistency checks
44 a) first the non-GUI ones
45 b) then the GUI-only ones
49 this global setting determines what should we do if the setting FOO
50 requires BAR and BAR is not set: we can either silently unset FOO as well
51 (do this if you're trying to build the smallest possible library) or give an
52 error and abort (default as leads to least surprising behaviour)
54 #define wxABORT_ON_CONFIG_ERROR
60 /* GUI build by default */
61 #if !defined(wxUSE_GUI)
63 #endif /* !defined(wxUSE_GUI) */
66 If we're compiling without support for threads/exceptions we have to
67 disable the corresponding features.
71 # define wxUSE_THREADS 0
72 #endif /* wxNO_THREADS */
74 #ifdef wxNO_EXCEPTIONS
75 # undef wxUSE_EXCEPTIONS
76 # define wxUSE_EXCEPTIONS 0
77 #endif /* wxNO_EXCEPTIONS */
79 /* we also must disable exceptions if compiler doesn't support them */
80 #if defined(_MSC_VER) && !defined(_CPPUNWIND)
81 # undef wxUSE_EXCEPTIONS
82 # define wxUSE_EXCEPTIONS 0
83 #endif /* VC++ without exceptions support */
87 Section 1a: tests for non GUI features.
89 please keep the options in alphabetical order!
93 # ifdef wxABORT_ON_CONFIG_ERROR
94 # error "wxUSE_ANY must be defined, please read comment near the top of this file."
98 #endif /* wxUSE_ANY */
100 #ifndef wxUSE_CONSOLE_EVENTLOOP
101 # ifdef wxABORT_ON_CONFIG_ERROR
102 # error "wxUSE_CONSOLE_EVENTLOOP must be defined, please read comment near the top of this file."
104 # define wxUSE_CONSOLE_EVENTLOOP 0
106 #endif /* !defined(wxUSE_CONSOLE_EVENTLOOP) */
108 #ifndef wxUSE_DYNLIB_CLASS
109 # ifdef wxABORT_ON_CONFIG_ERROR
110 # error "wxUSE_DYNLIB_CLASS must be defined, please read comment near the top of this file."
112 # define wxUSE_DYNLIB_CLASS 0
114 #endif /* !defined(wxUSE_DYNLIB_CLASS) */
116 #ifndef wxUSE_EXCEPTIONS
117 # ifdef wxABORT_ON_CONFIG_ERROR
118 # error "wxUSE_EXCEPTIONS must be defined, please read comment near the top of this file."
120 # define wxUSE_EXCEPTIONS 0
122 #endif /* !defined(wxUSE_EXCEPTIONS) */
124 #ifndef wxUSE_FILE_HISTORY
125 # ifdef wxABORT_ON_CONFIG_ERROR
126 # error "wxUSE_FILE_HISTORY must be defined, please read comment near the top of this file."
128 # define wxUSE_FILE_HISTORY 0
130 #endif /* !defined(wxUSE_FILE_HISTORY) */
132 #ifndef wxUSE_FILESYSTEM
133 # ifdef wxABORT_ON_CONFIG_ERROR
134 # error "wxUSE_FILESYSTEM must be defined, please read comment near the top of this file."
136 # define wxUSE_FILESYSTEM 0
138 #endif /* !defined(wxUSE_FILESYSTEM) */
140 #ifndef wxUSE_FS_ARCHIVE
141 # ifdef wxABORT_ON_CONFIG_ERROR
142 # error "wxUSE_FS_ARCHIVE must be defined, please read comment near the top of this file."
144 # define wxUSE_FS_ARCHIVE 0
146 #endif /* !defined(wxUSE_FS_ARCHIVE) */
148 #ifndef wxUSE_FSVOLUME
149 # ifdef wxABORT_ON_CONFIG_ERROR
150 # error "wxUSE_FSVOLUME must be defined, please read comment near the top of this file."
152 # define wxUSE_FSVOLUME 0
154 #endif /* !defined(wxUSE_FSVOLUME) */
156 #ifndef wxUSE_FSWATCHER
157 # ifdef wxABORT_ON_CONFIG_ERROR
158 # error "wxUSE_FSWATCHER must be defined, please read comment near the top of this file."
160 # define wxUSE_FSWATCHER 0
162 #endif /* !defined(wxUSE_FSWATCHER) */
164 #ifndef wxUSE_DYNAMIC_LOADER
165 # ifdef wxABORT_ON_CONFIG_ERROR
166 # error "wxUSE_DYNAMIC_LOADER must be defined, please read comment near the top of this file."
168 # define wxUSE_DYNAMIC_LOADER 0
170 #endif /* !defined(wxUSE_DYNAMIC_LOADER) */
173 # ifdef wxABORT_ON_CONFIG_ERROR
174 # error "wxUSE_INTL must be defined, please read comment near the top of this file."
176 # define wxUSE_INTL 0
178 #endif /* !defined(wxUSE_INTL) */
181 # ifdef wxABORT_ON_CONFIG_ERROR
182 # error "wxUSE_IPV6 must be defined, please read comment near the top of this file."
184 # define wxUSE_IPV6 0
186 #endif /* !defined(wxUSE_IPV6) */
189 # ifdef wxABORT_ON_CONFIG_ERROR
190 # error "wxUSE_LOG must be defined, please read comment near the top of this file."
194 #endif /* !defined(wxUSE_LOG) */
196 #ifndef wxUSE_LONGLONG
197 # ifdef wxABORT_ON_CONFIG_ERROR
198 # error "wxUSE_LONGLONG must be defined, please read comment near the top of this file."
200 # define wxUSE_LONGLONG 0
202 #endif /* !defined(wxUSE_LONGLONG) */
204 #ifndef wxUSE_MIMETYPE
205 # ifdef wxABORT_ON_CONFIG_ERROR
206 # error "wxUSE_MIMETYPE must be defined, please read comment near the top of this file."
208 # define wxUSE_MIMETYPE 0
210 #endif /* !defined(wxUSE_MIMETYPE) */
212 #ifndef wxUSE_ON_FATAL_EXCEPTION
213 # ifdef wxABORT_ON_CONFIG_ERROR
214 # error "wxUSE_ON_FATAL_EXCEPTION must be defined, please read comment near the top of this file."
216 # define wxUSE_ON_FATAL_EXCEPTION 0
218 #endif /* !defined(wxUSE_ON_FATAL_EXCEPTION) */
220 #ifndef wxUSE_PRINTF_POS_PARAMS
221 # ifdef wxABORT_ON_CONFIG_ERROR
222 # error "wxUSE_PRINTF_POS_PARAMS must be defined, please read comment near the top of this file."
224 # define wxUSE_PRINTF_POS_PARAMS 0
226 #endif /* !defined(wxUSE_PRINTF_POS_PARAMS) */
228 #ifndef wxUSE_PROTOCOL
229 # ifdef wxABORT_ON_CONFIG_ERROR
230 # error "wxUSE_PROTOCOL must be defined, please read comment near the top of this file."
232 # define wxUSE_PROTOCOL 0
234 #endif /* !defined(wxUSE_PROTOCOL) */
236 /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
238 # undef wxUSE_PROTOCOL_HTTP
239 # undef wxUSE_PROTOCOL_FTP
240 # undef wxUSE_PROTOCOL_FILE
241 # define wxUSE_PROTOCOL_HTTP 0
242 # define wxUSE_PROTOCOL_FTP 0
243 # define wxUSE_PROTOCOL_FILE 0
244 #endif /* wxUSE_PROTOCOL */
246 #ifndef wxUSE_PROTOCOL_HTTP
247 # ifdef wxABORT_ON_CONFIG_ERROR
248 # error "wxUSE_PROTOCOL_HTTP must be defined, please read comment near the top of this file."
250 # define wxUSE_PROTOCOL_HTTP 0
252 #endif /* !defined(wxUSE_PROTOCOL_HTTP) */
254 #ifndef wxUSE_PROTOCOL_FTP
255 # ifdef wxABORT_ON_CONFIG_ERROR
256 # error "wxUSE_PROTOCOL_FTP must be defined, please read comment near the top of this file."
258 # define wxUSE_PROTOCOL_FTP 0
260 #endif /* !defined(wxUSE_PROTOCOL_FTP) */
262 #ifndef wxUSE_PROTOCOL_FILE
263 # ifdef wxABORT_ON_CONFIG_ERROR
264 # error "wxUSE_PROTOCOL_FILE must be defined, please read comment near the top of this file."
266 # define wxUSE_PROTOCOL_FILE 0
268 #endif /* !defined(wxUSE_PROTOCOL_FILE) */
271 # ifdef wxABORT_ON_CONFIG_ERROR
272 # error "wxUSE_REGEX must be defined, please read comment near the top of this file."
274 # define wxUSE_REGEX 0
276 #endif /* !defined(wxUSE_REGEX) */
278 #ifndef wxUSE_STDPATHS
279 # ifdef wxABORT_ON_CONFIG_ERROR
280 # error "wxUSE_STDPATHS must be defined, please read comment near the top of this file."
282 # define wxUSE_STDPATHS 1
284 #endif /* !defined(wxUSE_STDPATHS) */
287 # ifdef wxABORT_ON_CONFIG_ERROR
288 # error "wxUSE_XML must be defined, please read comment near the top of this file."
292 #endif /* !defined(wxUSE_XML) */
294 #ifndef wxUSE_SOCKETS
295 # ifdef wxABORT_ON_CONFIG_ERROR
296 # error "wxUSE_SOCKETS must be defined, please read comment near the top of this file."
298 # define wxUSE_SOCKETS 0
300 #endif /* !defined(wxUSE_SOCKETS) */
302 #ifndef wxUSE_STD_CONTAINERS
303 # ifdef wxABORT_ON_CONFIG_ERROR
304 # error "wxUSE_STD_CONTAINERS must be defined, please read comment near the top of this file."
306 # define wxUSE_STD_CONTAINERS 0
308 #endif /* !defined(wxUSE_STD_CONTAINERS) */
310 #ifndef wxUSE_STD_STRING_CONV_IN_WXSTRING
311 # ifdef wxABORT_ON_CONFIG_ERROR
312 # error "wxUSE_STD_STRING_CONV_IN_WXSTRING must be defined, please read comment near the top of this file."
314 # define wxUSE_STD_STRING_CONV_IN_WXSTRING 0
316 #endif /* !defined(wxUSE_STD_STRING_CONV_IN_WXSTRING) */
318 #ifndef wxUSE_STREAMS
319 # ifdef wxABORT_ON_CONFIG_ERROR
320 # error "wxUSE_STREAMS must be defined, please read comment near the top of this file."
322 # define wxUSE_STREAMS 0
324 #endif /* !defined(wxUSE_STREAMS) */
326 #ifndef wxUSE_STOPWATCH
327 # ifdef wxABORT_ON_CONFIG_ERROR
328 # error "wxUSE_STOPWATCH must be defined, please read comment near the top of this file."
330 # define wxUSE_STOPWATCH 0
332 #endif /* !defined(wxUSE_STOPWATCH) */
334 #ifndef wxUSE_TEXTBUFFER
335 # ifdef wxABORT_ON_CONFIG_ERROR
336 # error "wxUSE_TEXTBUFFER must be defined, please read comment near the top of this file."
338 # define wxUSE_TEXTBUFFER 0
340 #endif /* !defined(wxUSE_TEXTBUFFER) */
342 #ifndef wxUSE_TEXTFILE
343 # ifdef wxABORT_ON_CONFIG_ERROR
344 # error "wxUSE_TEXTFILE must be defined, please read comment near the top of this file."
346 # define wxUSE_TEXTFILE 0
348 #endif /* !defined(wxUSE_TEXTFILE) */
350 #ifndef wxUSE_UNICODE
351 # ifdef wxABORT_ON_CONFIG_ERROR
352 # error "wxUSE_UNICODE must be defined, please read comment near the top of this file."
354 # define wxUSE_UNICODE 0
356 #endif /* !defined(wxUSE_UNICODE) */
359 # ifdef wxABORT_ON_CONFIG_ERROR
360 # error "wxUSE_URL must be defined, please read comment near the top of this file."
364 #endif /* !defined(wxUSE_URL) */
366 #ifndef wxUSE_VARIANT
367 # ifdef wxABORT_ON_CONFIG_ERROR
368 # error "wxUSE_VARIANT must be defined, please read comment near the top of this file."
370 # define wxUSE_VARIANT 0
372 #endif /* wxUSE_VARIANT */
374 #ifndef wxUSE_XLOCALE
375 # ifdef wxABORT_ON_CONFIG_ERROR
376 # error "wxUSE_XLOCALE must be defined, please read comment near the top of this file."
378 # define wxUSE_XLOCALE 0
380 #endif /* !defined(wxUSE_XLOCALE) */
383 Section 1b: all these tests are for GUI only.
385 please keep the options in alphabetical order!
390 all of the settings tested below must be defined or we'd get an error from
391 preprocessor about invalid integer expression
394 #ifndef wxUSE_ABOUTDLG
395 # ifdef wxABORT_ON_CONFIG_ERROR
396 # error "wxUSE_ABOUTDLG must be defined, please read comment near the top of this file."
398 # define wxUSE_ABOUTDLG 0
400 #endif /* !defined(wxUSE_ABOUTDLG) */
403 # ifdef wxABORT_ON_CONFIG_ERROR
404 # error "wxUSE_ACCEL must be defined, please read comment near the top of this file."
406 # define wxUSE_ACCEL 0
408 #endif /* !defined(wxUSE_ACCEL) */
410 #ifndef wxUSE_ACCESSIBILITY
411 # ifdef wxABORT_ON_CONFIG_ERROR
412 # error "wxUSE_ACCESSIBILITY must be defined, please read comment near the top of this file."
414 # define wxUSE_ACCESSIBILITY 0
416 #endif /* !defined(wxUSE_ACCESSIBILITY) */
418 #ifndef wxUSE_ANIMATIONCTRL
419 # ifdef wxABORT_ON_CONFIG_ERROR
420 # error "wxUSE_ANIMATIONCTRL must be defined, please read comment near the top of this file."
422 # define wxUSE_ANIMATIONCTRL 0
424 #endif /* !defined(wxUSE_ANIMATIONCTRL) */
426 #ifndef wxUSE_ARTPROVIDER_STD
427 # ifdef wxABORT_ON_CONFIG_ERROR
428 # error "wxUSE_ARTPROVIDER_STD must be defined, please read comment near the top of this file."
430 # define wxUSE_ARTPROVIDER_STD 0
432 #endif /* !defined(wxUSE_ARTPROVIDER_STD) */
434 #ifndef wxUSE_ARTPROVIDER_TANGO
435 # ifdef wxABORT_ON_CONFIG_ERROR
436 # error "wxUSE_ARTPROVIDER_TANGO must be defined, please read comment near the top of this file."
438 # define wxUSE_ARTPROVIDER_TANGO 0
440 #endif /* !defined(wxUSE_ARTPROVIDER_TANGO) */
442 #ifndef wxUSE_AUTOID_MANAGEMENT
443 # ifdef wxABORT_ON_CONFIG_ERROR
444 # error "wxUSE_AUTOID_MANAGEMENT must be defined, please read comment near the top of this file."
446 # define wxUSE_AUTOID_MANAGEMENT 0
448 #endif /* !defined(wxUSE_AUTOID_MANAGEMENT) */
450 #ifndef wxUSE_BITMAPCOMBOBOX
451 # ifdef wxABORT_ON_CONFIG_ERROR
452 # error "wxUSE_BITMAPCOMBOBOX must be defined, please read comment near the top of this file."
454 # define wxUSE_BITMAPCOMBOBOX 0
456 #endif /* !defined(wxUSE_BITMAPCOMBOBOX) */
458 #ifndef wxUSE_BMPBUTTON
459 # ifdef wxABORT_ON_CONFIG_ERROR
460 # error "wxUSE_BMPBUTTON must be defined, please read comment near the top of this file."
462 # define wxUSE_BMPBUTTON 0
464 #endif /* !defined(wxUSE_BMPBUTTON) */
467 # ifdef wxABORT_ON_CONFIG_ERROR
468 # error "wxUSE_BUTTON must be defined, please read comment near the top of this file."
470 # define wxUSE_BUTTON 0
472 #endif /* !defined(wxUSE_BUTTON) */
475 # ifdef wxABORT_ON_CONFIG_ERROR
476 # error "wxUSE_CAIRO must be defined, please read comment near the top of this file."
478 # define wxUSE_CAIRO 0
480 #endif /* !defined(wxUSE_CAIRO) */
482 #ifndef wxUSE_CALENDARCTRL
483 # ifdef wxABORT_ON_CONFIG_ERROR
484 # error "wxUSE_CALENDARCTRL must be defined, please read comment near the top of this file."
486 # define wxUSE_CALENDARCTRL 0
488 #endif /* !defined(wxUSE_CALENDARCTRL) */
491 # ifdef wxABORT_ON_CONFIG_ERROR
492 # error "wxUSE_CARET must be defined, please read comment near the top of this file."
494 # define wxUSE_CARET 0
496 #endif /* !defined(wxUSE_CARET) */
498 #ifndef wxUSE_CHECKBOX
499 # ifdef wxABORT_ON_CONFIG_ERROR
500 # error "wxUSE_CHECKBOX must be defined, please read comment near the top of this file."
502 # define wxUSE_CHECKBOX 0
504 #endif /* !defined(wxUSE_CHECKBOX) */
506 #ifndef wxUSE_CHECKLISTBOX
507 # ifdef wxABORT_ON_CONFIG_ERROR
508 # error "wxUSE_CHECKLISTBOX must be defined, please read comment near the top of this file."
510 # define wxUSE_CHECKLISTBOX 0
512 #endif /* !defined(wxUSE_CHECKLISTBOX) */
515 # ifdef wxABORT_ON_CONFIG_ERROR
516 # error "wxUSE_CHOICE must be defined, please read comment near the top of this file."
518 # define wxUSE_CHOICE 0
520 #endif /* !defined(wxUSE_CHOICE) */
522 #ifndef wxUSE_CHOICEBOOK
523 # ifdef wxABORT_ON_CONFIG_ERROR
524 # error "wxUSE_CHOICEBOOK must be defined, please read comment near the top of this file."
526 # define wxUSE_CHOICEBOOK 0
528 #endif /* !defined(wxUSE_CHOICEBOOK) */
530 #ifndef wxUSE_CHOICEDLG
531 # ifdef wxABORT_ON_CONFIG_ERROR
532 # error "wxUSE_CHOICEDLG must be defined, please read comment near the top of this file."
534 # define wxUSE_CHOICEDLG 0
536 #endif /* !defined(wxUSE_CHOICEDLG) */
538 #ifndef wxUSE_CLIPBOARD
539 # ifdef wxABORT_ON_CONFIG_ERROR
540 # error "wxUSE_CLIPBOARD must be defined, please read comment near the top of this file."
542 # define wxUSE_CLIPBOARD 0
544 #endif /* !defined(wxUSE_CLIPBOARD) */
546 #ifndef wxUSE_COLLPANE
547 # ifdef wxABORT_ON_CONFIG_ERROR
548 # error "wxUSE_COLLPANE must be defined, please read comment near the top of this file."
550 # define wxUSE_COLLPANE 0
552 #endif /* !defined(wxUSE_COLLPANE) */
554 #ifndef wxUSE_COLOURDLG
555 # ifdef wxABORT_ON_CONFIG_ERROR
556 # error "wxUSE_COLOURDLG must be defined, please read comment near the top of this file."
558 # define wxUSE_COLOURDLG 0
560 #endif /* !defined(wxUSE_COLOURDLG) */
562 #ifndef wxUSE_COLOURPICKERCTRL
563 # ifdef wxABORT_ON_CONFIG_ERROR
564 # error "wxUSE_COLOURPICKERCTRL must be defined, please read comment near the top of this file."
566 # define wxUSE_COLOURPICKERCTRL 0
568 #endif /* !defined(wxUSE_COLOURPICKERCTRL) */
570 #ifndef wxUSE_COMBOBOX
571 # ifdef wxABORT_ON_CONFIG_ERROR
572 # error "wxUSE_COMBOBOX must be defined, please read comment near the top of this file."
574 # define wxUSE_COMBOBOX 0
576 #endif /* !defined(wxUSE_COMBOBOX) */
578 #ifndef wxUSE_COMMANDLINKBUTTON
579 # ifdef wxABORT_ON_CONFIG_ERROR
580 # error "wxUSE_COMMANDLINKBUTTON must be defined, please read comment near the top of this file."
582 # define wxUSE_COMMANDLINKBUTTON 0
584 #endif /* !defined(wxUSE_COMMANDLINKBUTTON) */
586 #ifndef wxUSE_COMBOCTRL
587 # ifdef wxABORT_ON_CONFIG_ERROR
588 # error "wxUSE_COMBOCTRL must be defined, please read comment near the top of this file."
590 # define wxUSE_COMBOCTRL 0
592 #endif /* !defined(wxUSE_COMBOCTRL) */
594 #ifndef wxUSE_DATAOBJ
595 # ifdef wxABORT_ON_CONFIG_ERROR
596 # error "wxUSE_DATAOBJ must be defined, please read comment near the top of this file."
598 # define wxUSE_DATAOBJ 0
600 #endif /* !defined(wxUSE_DATAOBJ) */
602 #ifndef wxUSE_DATAVIEWCTRL
603 # ifdef wxABORT_ON_CONFIG_ERROR
604 # error "wxUSE_DATAVIEWCTRL must be defined, please read comment near the top of this file."
606 # define wxUSE_DATAVIEWCTRL 0
608 #endif /* !defined(wxUSE_DATAVIEWCTRL) */
610 #ifndef wxUSE_DATEPICKCTRL
611 # ifdef wxABORT_ON_CONFIG_ERROR
612 # error "wxUSE_DATEPICKCTRL must be defined, please read comment near the top of this file."
614 # define wxUSE_DATEPICKCTRL 0
616 #endif /* !defined(wxUSE_DATEPICKCTRL) */
618 #ifndef wxUSE_DC_TRANSFORM_MATRIX
619 # ifdef wxABORT_ON_CONFIG_ERROR
620 # error "wxUSE_DC_TRANSFORM_MATRIX must be defined, please read comment near the top of this file."
622 # define wxUSE_DC_TRANSFORM_MATRIX 1
624 #endif /* wxUSE_DC_TRANSFORM_MATRIX */
626 #ifndef wxUSE_DIRPICKERCTRL
627 # ifdef wxABORT_ON_CONFIG_ERROR
628 # error "wxUSE_DIRPICKERCTRL must be defined, please read comment near the top of this file."
630 # define wxUSE_DIRPICKERCTRL 0
632 #endif /* !defined(wxUSE_DIRPICKERCTRL) */
634 #ifndef wxUSE_DISPLAY
635 # ifdef wxABORT_ON_CONFIG_ERROR
636 # error "wxUSE_DISPLAY must be defined, please read comment near the top of this file."
638 # define wxUSE_DISPLAY 0
640 #endif /* !defined(wxUSE_DISPLAY) */
642 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
643 # ifdef wxABORT_ON_CONFIG_ERROR
644 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined, please read comment near the top of this file."
646 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
648 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
650 #ifndef wxUSE_FILECTRL
651 # ifdef wxABORT_ON_CONFIG_ERROR
652 # error "wxUSE_FILECTRL must be defined, please read comment near the top of this file."
654 # define wxUSE_FILECTRL 0
656 #endif /* !defined(wxUSE_FILECTRL) */
658 #ifndef wxUSE_FILEDLG
659 # ifdef wxABORT_ON_CONFIG_ERROR
660 # error "wxUSE_FILEDLG must be defined, please read comment near the top of this file."
662 # define wxUSE_FILEDLG 0
664 #endif /* !defined(wxUSE_FILEDLG) */
666 #ifndef wxUSE_FILEPICKERCTRL
667 # ifdef wxABORT_ON_CONFIG_ERROR
668 # error "wxUSE_FILEPICKERCTRL must be defined, please read comment near the top of this file."
670 # define wxUSE_FILEPICKERCTRL 0
672 #endif /* !defined(wxUSE_FILEPICKERCTRL) */
674 #ifndef wxUSE_FONTDLG
675 # ifdef wxABORT_ON_CONFIG_ERROR
676 # error "wxUSE_FONTDLG must be defined, please read comment near the top of this file."
678 # define wxUSE_FONTDLG 0
680 #endif /* !defined(wxUSE_FONTDLG) */
682 #ifndef wxUSE_FONTMAP
683 # ifdef wxABORT_ON_CONFIG_ERROR
684 # error "wxUSE_FONTMAP must be defined, please read comment near the top of this file."
686 # define wxUSE_FONTMAP 0
688 #endif /* !defined(wxUSE_FONTMAP) */
690 #ifndef wxUSE_FONTPICKERCTRL
691 # ifdef wxABORT_ON_CONFIG_ERROR
692 # error "wxUSE_FONTPICKERCTRL must be defined, please read comment near the top of this file."
694 # define wxUSE_FONTPICKERCTRL 0
696 #endif /* !defined(wxUSE_FONTPICKERCTRL) */
699 # ifdef wxABORT_ON_CONFIG_ERROR
700 # error "wxUSE_GAUGE must be defined, please read comment near the top of this file."
702 # define wxUSE_GAUGE 0
704 #endif /* !defined(wxUSE_GAUGE) */
706 #ifndef wxUSE_GRAPHICS_CONTEXT
707 # ifdef wxABORT_ON_CONFIG_ERROR
708 # error "wxUSE_GRAPHICS_CONTEXT must be defined, please read comment near the top of this file."
710 # define wxUSE_GRAPHICS_CONTEXT 0
712 #endif /* !defined(wxUSE_GRAPHICS_CONTEXT) */
716 # ifdef wxABORT_ON_CONFIG_ERROR
717 # error "wxUSE_GRID must be defined, please read comment near the top of this file."
719 # define wxUSE_GRID 0
721 #endif /* !defined(wxUSE_GRID) */
723 #ifndef wxUSE_HEADERCTRL
724 # ifdef wxABORT_ON_CONFIG_ERROR
725 # error "wxUSE_HEADERCTRL must be defined, please read comment near the top of this file."
727 # define wxUSE_HEADERCTRL 0
729 #endif /* !defined(wxUSE_HEADERCTRL) */
732 # ifdef wxABORT_ON_CONFIG_ERROR
733 # error "wxUSE_HELP must be defined, please read comment near the top of this file."
735 # define wxUSE_HELP 0
737 #endif /* !defined(wxUSE_HELP) */
739 #ifndef wxUSE_HYPERLINKCTRL
740 # ifdef wxABORT_ON_CONFIG_ERROR
741 # error "wxUSE_HYPERLINKCTRL must be defined, please read comment near the top of this file."
743 # define wxUSE_HYPERLINKCTRL 0
745 #endif /* !defined(wxUSE_HYPERLINKCTRL) */
748 # ifdef wxABORT_ON_CONFIG_ERROR
749 # error "wxUSE_HTML must be defined, please read comment near the top of this file."
751 # define wxUSE_HTML 0
753 #endif /* !defined(wxUSE_HTML) */
755 #ifndef wxUSE_LIBMSPACK
756 # if !defined(__UNIX__) || defined(__WXPALMOS__)
757 /* set to 0 on platforms that don't have libmspack */
758 # define wxUSE_LIBMSPACK 0
760 # ifdef wxABORT_ON_CONFIG_ERROR
761 # error "wxUSE_LIBMSPACK must be defined, please read comment near the top of this file."
763 # define wxUSE_LIBMSPACK 0
766 #endif /* !defined(wxUSE_LIBMSPACK) */
768 #ifndef wxUSE_ICO_CUR
769 # ifdef wxABORT_ON_CONFIG_ERROR
770 # error "wxUSE_ICO_CUR must be defined, please read comment near the top of this file."
772 # define wxUSE_ICO_CUR 0
774 #endif /* !defined(wxUSE_ICO_CUR) */
777 # ifdef wxABORT_ON_CONFIG_ERROR
778 # error "wxUSE_IFF must be defined, please read comment near the top of this file."
782 #endif /* !defined(wxUSE_IFF) */
784 #ifndef wxUSE_IMAGLIST
785 # ifdef wxABORT_ON_CONFIG_ERROR
786 # error "wxUSE_IMAGLIST must be defined, please read comment near the top of this file."
788 # define wxUSE_IMAGLIST 0
790 #endif /* !defined(wxUSE_IMAGLIST) */
792 #ifndef wxUSE_INFOBAR
793 # ifdef wxABORT_ON_CONFIG_ERROR
794 # error "wxUSE_INFOBAR must be defined, please read comment near the top of this file."
796 # define wxUSE_INFOBAR 0
798 #endif /* !defined(wxUSE_INFOBAR) */
800 #ifndef wxUSE_JOYSTICK
801 # ifdef wxABORT_ON_CONFIG_ERROR
802 # error "wxUSE_JOYSTICK must be defined, please read comment near the top of this file."
804 # define wxUSE_JOYSTICK 0
806 #endif /* !defined(wxUSE_JOYSTICK) */
808 #ifndef wxUSE_LISTBOOK
809 # ifdef wxABORT_ON_CONFIG_ERROR
810 # error "wxUSE_LISTBOOK must be defined, please read comment near the top of this file."
812 # define wxUSE_LISTBOOK 0
814 #endif /* !defined(wxUSE_LISTBOOK) */
816 #ifndef wxUSE_LISTBOX
817 # ifdef wxABORT_ON_CONFIG_ERROR
818 # error "wxUSE_LISTBOX must be defined, please read comment near the top of this file."
820 # define wxUSE_LISTBOX 0
822 #endif /* !defined(wxUSE_LISTBOX) */
824 #ifndef wxUSE_LISTCTRL
825 # ifdef wxABORT_ON_CONFIG_ERROR
826 # error "wxUSE_LISTCTRL must be defined, please read comment near the top of this file."
828 # define wxUSE_LISTCTRL 0
830 #endif /* !defined(wxUSE_LISTCTRL) */
833 # ifdef wxABORT_ON_CONFIG_ERROR
834 # error "wxUSE_LOGGUI must be defined, please read comment near the top of this file."
836 # define wxUSE_LOGGUI 0
838 #endif /* !defined(wxUSE_LOGGUI) */
840 #ifndef wxUSE_LOGWINDOW
841 # ifdef wxABORT_ON_CONFIG_ERROR
842 # error "wxUSE_LOGWINDOW must be defined, please read comment near the top of this file."
844 # define wxUSE_LOGWINDOW 0
846 #endif /* !defined(wxUSE_LOGWINDOW) */
848 #ifndef wxUSE_LOG_DIALOG
849 # ifdef wxABORT_ON_CONFIG_ERROR
850 # error "wxUSE_LOG_DIALOG must be defined, please read comment near the top of this file."
852 # define wxUSE_LOG_DIALOG 0
854 #endif /* !defined(wxUSE_LOG_DIALOG) */
857 # ifdef wxABORT_ON_CONFIG_ERROR
858 # error "wxUSE_MARKUP must be defined, please read comment near the top of this file."
860 # define wxUSE_MARKUP 0
862 #endif /* !defined(wxUSE_MARKUP) */
865 # ifdef wxABORT_ON_CONFIG_ERROR
866 # error "wxUSE_MDI must be defined, please read comment near the top of this file."
870 #endif /* !defined(wxUSE_MDI) */
872 #ifndef wxUSE_MDI_ARCHITECTURE
873 # ifdef wxABORT_ON_CONFIG_ERROR
874 # error "wxUSE_MDI_ARCHITECTURE must be defined, please read comment near the top of this file."
876 # define wxUSE_MDI_ARCHITECTURE 0
878 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
881 # ifdef wxABORT_ON_CONFIG_ERROR
882 # error "wxUSE_MENUS must be defined, please read comment near the top of this file."
884 # define wxUSE_MENUS 0
886 #endif /* !defined(wxUSE_MENUS) */
889 # ifdef wxABORT_ON_CONFIG_ERROR
890 # error "wxUSE_MSGDLG must be defined, please read comment near the top of this file."
892 # define wxUSE_MSGDLG 0
894 #endif /* !defined(wxUSE_MSGDLG) */
896 #ifndef wxUSE_NOTEBOOK
897 # ifdef wxABORT_ON_CONFIG_ERROR
898 # error "wxUSE_NOTEBOOK must be defined, please read comment near the top of this file."
900 # define wxUSE_NOTEBOOK 0
902 #endif /* !defined(wxUSE_NOTEBOOK) */
904 #ifndef wxUSE_NOTIFICATION_MESSAGE
905 # ifdef wxABORT_ON_CONFIG_ERROR
906 # error "wxUSE_NOTIFICATION_MESSAGE must be defined, please read comment near the top of this file."
908 # define wxUSE_NOTIFICATION_MESSAGE 0
910 #endif /* !defined(wxUSE_NOTIFICATION_MESSAGE) */
912 #ifndef wxUSE_ODCOMBOBOX
913 # ifdef wxABORT_ON_CONFIG_ERROR
914 # error "wxUSE_ODCOMBOBOX must be defined, please read comment near the top of this file."
916 # define wxUSE_ODCOMBOBOX 0
918 #endif /* !defined(wxUSE_ODCOMBOBOX) */
920 #ifndef wxUSE_PALETTE
921 # ifdef wxABORT_ON_CONFIG_ERROR
922 # error "wxUSE_PALETTE must be defined, please read comment near the top of this file."
924 # define wxUSE_PALETTE 0
926 #endif /* !defined(wxUSE_PALETTE) */
928 #ifndef wxUSE_POPUPWIN
929 # ifdef wxABORT_ON_CONFIG_ERROR
930 # error "wxUSE_POPUPWIN must be defined, please read comment near the top of this file."
932 # define wxUSE_POPUPWIN 0
934 #endif /* !defined(wxUSE_POPUPWIN) */
936 #ifndef wxUSE_PRINTING_ARCHITECTURE
937 # ifdef wxABORT_ON_CONFIG_ERROR
938 # error "wxUSE_PRINTING_ARCHITECTURE must be defined, please read comment near the top of this file."
940 # define wxUSE_PRINTING_ARCHITECTURE 0
942 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
944 #ifndef wxUSE_RADIOBOX
945 # ifdef wxABORT_ON_CONFIG_ERROR
946 # error "wxUSE_RADIOBOX must be defined, please read comment near the top of this file."
948 # define wxUSE_RADIOBOX 0
950 #endif /* !defined(wxUSE_RADIOBOX) */
952 #ifndef wxUSE_RADIOBTN
953 # ifdef wxABORT_ON_CONFIG_ERROR
954 # error "wxUSE_RADIOBTN must be defined, please read comment near the top of this file."
956 # define wxUSE_RADIOBTN 0
958 #endif /* !defined(wxUSE_RADIOBTN) */
960 #ifndef wxUSE_REARRANGECTRL
961 # ifdef wxABORT_ON_CONFIG_ERROR
962 # error "wxUSE_REARRANGECTRL must be defined, please read comment near the top of this file."
964 # define wxUSE_REARRANGECTRL 0
966 #endif /* !defined(wxUSE_REARRANGECTRL) */
969 # ifdef wxABORT_ON_CONFIG_ERROR
970 # error "wxUSE_RIBBON must be defined, please read comment near the top of this file."
972 # define wxUSE_RIBBON 0
974 #endif /* !defined(wxUSE_RIBBON) */
976 #ifndef wxUSE_RICHMSGDLG
977 # ifdef wxABORT_ON_CONFIG_ERROR
978 # error "wxUSE_RICHMSGDLG must be defined, please read comment near the top of this file."
980 # define wxUSE_RICHMSGDLG 0
982 #endif /* !defined(wxUSE_RIBBON) */
985 # ifdef wxABORT_ON_CONFIG_ERROR
986 # error "wxUSE_SASH must be defined, please read comment near the top of this file."
988 # define wxUSE_SASH 0
990 #endif /* !defined(wxUSE_SASH) */
992 #ifndef wxUSE_SCROLLBAR
993 # ifdef wxABORT_ON_CONFIG_ERROR
994 # error "wxUSE_SCROLLBAR must be defined, please read comment near the top of this file."
996 # define wxUSE_SCROLLBAR 0
998 #endif /* !defined(wxUSE_SCROLLBAR) */
1000 #ifndef wxUSE_SLIDER
1001 # ifdef wxABORT_ON_CONFIG_ERROR
1002 # error "wxUSE_SLIDER must be defined, please read comment near the top of this file."
1004 # define wxUSE_SLIDER 0
1006 #endif /* !defined(wxUSE_SLIDER) */
1009 # ifdef wxABORT_ON_CONFIG_ERROR
1010 # error "wxUSE_SOUND must be defined, please read comment near the top of this file."
1012 # define wxUSE_SOUND 0
1014 #endif /* !defined(wxUSE_SOUND) */
1016 #ifndef wxUSE_SPINBTN
1017 # ifdef wxABORT_ON_CONFIG_ERROR
1018 # error "wxUSE_SPINBTN must be defined, please read comment near the top of this file."
1020 # define wxUSE_SPINBTN 0
1022 #endif /* !defined(wxUSE_SPINBTN) */
1024 #ifndef wxUSE_SPINCTRL
1025 # ifdef wxABORT_ON_CONFIG_ERROR
1026 # error "wxUSE_SPINCTRL must be defined, please read comment near the top of this file."
1028 # define wxUSE_SPINCTRL 0
1030 #endif /* !defined(wxUSE_SPINCTRL) */
1032 #ifndef wxUSE_SPLASH
1033 # ifdef wxABORT_ON_CONFIG_ERROR
1034 # error "wxUSE_SPLASH must be defined, please read comment near the top of this file."
1036 # define wxUSE_SPLASH 0
1038 #endif /* !defined(wxUSE_SPLASH) */
1040 #ifndef wxUSE_SPLITTER
1041 # ifdef wxABORT_ON_CONFIG_ERROR
1042 # error "wxUSE_SPLITTER must be defined, please read comment near the top of this file."
1044 # define wxUSE_SPLITTER 0
1046 #endif /* !defined(wxUSE_SPLITTER) */
1048 #ifndef wxUSE_STATBMP
1049 # ifdef wxABORT_ON_CONFIG_ERROR
1050 # error "wxUSE_STATBMP must be defined, please read comment near the top of this file."
1052 # define wxUSE_STATBMP 0
1054 #endif /* !defined(wxUSE_STATBMP) */
1056 #ifndef wxUSE_STATBOX
1057 # ifdef wxABORT_ON_CONFIG_ERROR
1058 # error "wxUSE_STATBOX must be defined, please read comment near the top of this file."
1060 # define wxUSE_STATBOX 0
1062 #endif /* !defined(wxUSE_STATBOX) */
1064 #ifndef wxUSE_STATLINE
1065 # ifdef wxABORT_ON_CONFIG_ERROR
1066 # error "wxUSE_STATLINE must be defined, please read comment near the top of this file."
1068 # define wxUSE_STATLINE 0
1070 #endif /* !defined(wxUSE_STATLINE) */
1072 #ifndef wxUSE_STATTEXT
1073 # ifdef wxABORT_ON_CONFIG_ERROR
1074 # error "wxUSE_STATTEXT must be defined, please read comment near the top of this file."
1076 # define wxUSE_STATTEXT 0
1078 #endif /* !defined(wxUSE_STATTEXT) */
1080 #ifndef wxUSE_STATUSBAR
1081 # ifdef wxABORT_ON_CONFIG_ERROR
1082 # error "wxUSE_STATUSBAR must be defined, please read comment near the top of this file."
1084 # define wxUSE_STATUSBAR 0
1086 #endif /* !defined(wxUSE_STATUSBAR) */
1088 #ifndef wxUSE_TASKBARICON
1089 # ifdef wxABORT_ON_CONFIG_ERROR
1090 # error "wxUSE_TASKBARICON must be defined, please read comment near the top of this file."
1092 # define wxUSE_TASKBARICON 0
1094 #endif /* !defined(wxUSE_TASKBARICON) */
1096 #ifndef wxUSE_TEXTCTRL
1097 # ifdef wxABORT_ON_CONFIG_ERROR
1098 # error "wxUSE_TEXTCTRL must be defined, please read comment near the top of this file."
1100 # define wxUSE_TEXTCTRL 0
1102 #endif /* !defined(wxUSE_TEXTCTRL) */
1104 #ifndef wxUSE_TIPWINDOW
1105 # ifdef wxABORT_ON_CONFIG_ERROR
1106 # error "wxUSE_TIPWINDOW must be defined, please read comment near the top of this file."
1108 # define wxUSE_TIPWINDOW 0
1110 #endif /* !defined(wxUSE_TIPWINDOW) */
1112 #ifndef wxUSE_TOOLBAR
1113 # ifdef wxABORT_ON_CONFIG_ERROR
1114 # error "wxUSE_TOOLBAR must be defined, please read comment near the top of this file."
1116 # define wxUSE_TOOLBAR 0
1118 #endif /* !defined(wxUSE_TOOLBAR) */
1120 #ifndef wxUSE_TOOLTIPS
1121 # ifdef wxABORT_ON_CONFIG_ERROR
1122 # error "wxUSE_TOOLTIPS must be defined, please read comment near the top of this file."
1124 # define wxUSE_TOOLTIPS 0
1126 #endif /* !defined(wxUSE_TOOLTIPS) */
1128 #ifndef wxUSE_TREECTRL
1129 # ifdef wxABORT_ON_CONFIG_ERROR
1130 # error "wxUSE_TREECTRL must be defined, please read comment near the top of this file."
1132 # define wxUSE_TREECTRL 0
1134 #endif /* !defined(wxUSE_TREECTRL) */
1136 #ifndef wxUSE_TREELISTCTRL
1137 # ifdef wxABORT_ON_CONFIG_ERROR
1138 # error "wxUSE_TREELISTCTRL must be defined, please read comment near the top of this file."
1140 # define wxUSE_TREELISTCTRL 0
1142 #endif /* !defined(wxUSE_TREELISTCTRL) */
1144 #ifndef wxUSE_UIACTIONSIMULATOR
1145 # ifdef wxABORT_ON_CONFIG_ERROR
1146 # error "wxUSE_UIACTIONSIMULATOR must be defined, please read comment near the top of this file."
1148 # define wxUSE_UIACTIONSIMULATOR 0
1150 #endif /* !defined(wxUSE_UIACTIONSIMULATOR) */
1152 #ifndef wxUSE_VALIDATORS
1153 # ifdef wxABORT_ON_CONFIG_ERROR
1154 # error "wxUSE_VALIDATORS must be defined, please read comment near the top of this file."
1156 # define wxUSE_VALIDATORS 0
1158 #endif /* !defined(wxUSE_VALIDATORS) */
1160 #ifndef wxUSE_WXHTML_HELP
1161 # ifdef wxABORT_ON_CONFIG_ERROR
1162 # error "wxUSE_WXHTML_HELP must be defined, please read comment near the top of this file."
1164 # define wxUSE_WXHTML_HELP 0
1166 #endif /* !defined(wxUSE_WXHTML_HELP) */
1169 # ifdef wxABORT_ON_CONFIG_ERROR
1170 # error "wxUSE_XRC must be defined, please read comment near the top of this file."
1172 # define wxUSE_XRC 0
1174 #endif /* !defined(wxUSE_XRC) */
1176 #endif /* wxUSE_GUI */
1179 Section 2: platform-specific checks.
1181 This must be done after checking that everything is defined as the platform
1182 checks use wxUSE_XXX symbols in #if tests.
1185 #if defined(__WXPALMOS__)
1186 # include "wx/palmos/chkconf.h"
1187 #elif defined(__WXWINCE__)
1188 # include "wx/msw/wince/chkconf.h"
1189 #elif defined(__WXMSW__)
1190 # include "wx/msw/chkconf.h"
1191 #elif defined(__WXGTK__)
1192 # include "wx/gtk/chkconf.h"
1193 #elif defined(__WXCOCOA__)
1194 # include "wx/cocoa/chkconf.h"
1195 #elif defined(__WXMAC__)
1196 # include "wx/osx/chkconf.h"
1197 #elif defined(__OS2__)
1198 # include "wx/os2/chkconf.h"
1199 #elif defined(__WXMGL__)
1200 # include "wx/mgl/chkconf.h"
1201 #elif defined(__WXDFB__)
1202 # include "wx/dfb/chkconf.h"
1203 #elif defined(__WXMOTIF__)
1204 # include "wx/motif/chkconf.h"
1205 #elif defined(__WXX11__)
1206 # include "wx/x11/chkconf.h"
1210 __UNIX__ is also defined under Cygwin but we shouldn't perform these checks
1211 there if we're building wxMSW.
1213 #if defined(__UNIX__) && !defined(__WXMSW__)
1214 # include "wx/unix/chkconf.h"
1217 #ifdef __WXUNIVERSAL__
1218 # include "wx/univ/chkconf.h"
1222 Section 3a: check consistency of the non-GUI settings.
1225 #if WXWIN_COMPATIBILITY_2_6
1226 # if !WXWIN_COMPATIBILITY_2_8
1227 # ifdef wxABORT_ON_CONFIG_ERROR
1228 # error "2.6.X compatibility requires 2.8.X compatibility"
1230 # undef WXWIN_COMPATIBILITY_2_8
1231 # define WXWIN_COMPATIBILITY_2_8 1
1234 #endif /* WXWIN_COMPATIBILITY_2_6 */
1236 #if wxUSE_ARCHIVE_STREAMS
1237 # if !wxUSE_DATETIME
1238 # ifdef wxABORT_ON_CONFIG_ERROR
1239 # error "wxArchive requires wxUSE_DATETIME"
1241 # undef wxUSE_ARCHIVE_STREAMS
1242 # define wxUSE_ARCHIVE_STREAMS 0
1245 #endif /* wxUSE_ARCHIVE_STREAMS */
1247 #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
1248 # if !wxUSE_PROTOCOL
1249 # ifdef wxABORT_ON_CONFIG_ERROR
1250 # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
1252 # undef wxUSE_PROTOCOL
1253 # define wxUSE_PROTOCOL 1
1256 #endif /* wxUSE_PROTOCOL_XXX */
1259 # if !wxUSE_PROTOCOL
1260 # ifdef wxABORT_ON_CONFIG_ERROR
1261 # error "wxUSE_URL requires wxUSE_PROTOCOL"
1263 # undef wxUSE_PROTOCOL
1264 # define wxUSE_PROTOCOL 1
1267 #endif /* wxUSE_URL */
1271 # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
1272 # ifdef wxABORT_ON_CONFIG_ERROR
1273 # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
1275 # undef wxUSE_SOCKETS
1276 # define wxUSE_SOCKETS 1
1282 # ifdef wxABORT_ON_CONFIG_ERROR
1283 # error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
1285 # undef wxUSE_STREAMS
1286 # define wxUSE_STREAMS 1
1289 #endif /* wxUSE_PROTOCOL */
1291 /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
1293 # if !wxUSE_FILESYSTEM
1294 # ifdef wxABORT_ON_CONFIG_ERROR
1295 # error "wxHTML requires wxFileSystem"
1297 # undef wxUSE_FILESYSTEM
1298 # define wxUSE_FILESYSTEM 1
1301 #endif /* wxUSE_HTML */
1303 #if wxUSE_FS_ARCHIVE
1304 # if !wxUSE_FILESYSTEM
1305 # ifdef wxABORT_ON_CONFIG_ERROR
1306 # error "wxArchiveFSHandler requires wxFileSystem"
1308 # undef wxUSE_FILESYSTEM
1309 # define wxUSE_FILESYSTEM 1
1312 # if !wxUSE_ARCHIVE_STREAMS
1313 # ifdef wxABORT_ON_CONFIG_ERROR
1314 # error "wxArchiveFSHandler requires wxArchive"
1316 # undef wxUSE_ARCHIVE_STREAMS
1317 # define wxUSE_ARCHIVE_STREAMS 1
1320 #endif /* wxUSE_FS_ARCHIVE */
1322 #if wxUSE_FILESYSTEM
1324 # ifdef wxABORT_ON_CONFIG_ERROR
1325 # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
1327 # undef wxUSE_STREAMS
1328 # define wxUSE_STREAMS 1
1331 # if !wxUSE_FILE && !wxUSE_FFILE
1332 # ifdef wxABORT_ON_CONFIG_ERROR
1333 # error "wxUSE_FILESYSTEM requires either wxUSE_FILE or wxUSE_FFILE"
1336 # define wxUSE_FILE 1
1338 # define wxUSE_FFILE 1
1341 #endif /* wxUSE_FILESYSTEM */
1344 # if !wxUSE_PROTOCOL
1345 # ifdef wxABORT_ON_CONFIG_ERROR
1346 # error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
1348 # undef wxUSE_PROTOCOL
1349 # define wxUSE_PROTOCOL 1
1352 #endif /* wxUSE_FS_INET */
1354 #if wxUSE_STOPWATCH || wxUSE_DATETIME
1355 # if !wxUSE_LONGLONG
1356 # ifdef wxABORT_ON_CONFIG_ERROR
1357 # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
1359 # undef wxUSE_LONGLONG
1360 # define wxUSE_LONGLONG 1
1363 #endif /* wxUSE_STOPWATCH */
1365 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
1366 # ifdef wxABORT_ON_CONFIG_ERROR
1367 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
1369 # undef wxUSE_TEXTFILE
1370 # define wxUSE_TEXTFILE 1
1372 #endif /* wxUSE_MIMETYPE */
1374 #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
1375 # ifdef wxABORT_ON_CONFIG_ERROR
1376 # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
1378 # undef wxUSE_TEXTBUFFER
1379 # define wxUSE_TEXTBUFFER 1
1381 #endif /* wxUSE_TEXTFILE */
1383 #if wxUSE_TEXTFILE && !wxUSE_FILE
1384 # ifdef wxABORT_ON_CONFIG_ERROR
1385 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
1388 # define wxUSE_FILE 1
1390 #endif /* wxUSE_TEXTFILE */
1392 #if !wxUSE_DYNLIB_CLASS
1393 # if wxUSE_DYNAMIC_LOADER
1394 # ifdef wxABORT_ON_CONFIG_ERROR
1395 # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
1397 # define wxUSE_DYNLIB_CLASS 1
1400 #endif /* wxUSE_DYNLIB_CLASS */
1404 # ifdef wxABORT_ON_CONFIG_ERROR
1405 # error "wxZip requires wxZlib"
1408 # define wxUSE_ZLIB 1
1411 # if !wxUSE_ARCHIVE_STREAMS
1412 # ifdef wxABORT_ON_CONFIG_ERROR
1413 # error "wxZip requires wxArchive"
1415 # undef wxUSE_ARCHIVE_STREAMS
1416 # define wxUSE_ARCHIVE_STREAMS 1
1419 #endif /* wxUSE_ZIPSTREAM */
1422 # if !wxUSE_ARCHIVE_STREAMS
1423 # ifdef wxABORT_ON_CONFIG_ERROR
1424 # error "wxTar requires wxArchive"
1426 # undef wxUSE_ARCHIVE_STREAMS
1427 # define wxUSE_ARCHIVE_STREAMS 1
1430 #endif /* wxUSE_TARSTREAM */
1433 Section 3b: the tests for the GUI settings only.
1437 #if wxUSE_ACCESSIBILITY && !defined(__WXMSW__) && !defined(__GCCXML__)
1438 # ifdef wxABORT_ON_CONFIG_ERROR
1439 # error "wxUSE_ACCESSIBILITY is currently only supported under wxMSW"
1441 # undef wxUSE_ACCESSIBILITY
1442 # define wxUSE_ACCESSIBILITY 0
1444 #endif /* wxUSE_ACCESSIBILITY */
1446 #if wxUSE_BUTTON || \
1447 wxUSE_CALENDARCTRL || \
1450 wxUSE_BMPBUTTON || \
1452 wxUSE_CHECKLISTBOX || \
1456 wxUSE_HEADERCTRL || \
1462 wxUSE_REARRANGECTRL || \
1463 wxUSE_SCROLLBAR || \
1471 wxUSE_STATUSBAR || \
1476 # if !wxUSE_CONTROLS
1477 # ifdef wxABORT_ON_CONFIG_ERROR
1478 # error "wxUSE_CONTROLS unset but some controls used"
1480 # undef wxUSE_CONTROLS
1481 # define wxUSE_CONTROLS 1
1484 #endif /* controls */
1488 # ifdef wxABORT_ON_CONFIG_ERROR
1489 # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1491 # undef wxUSE_BUTTON
1492 # define wxUSE_BUTTON 1
1495 #endif /* wxUSE_BMPBUTTON */
1497 #if wxUSE_COMMANDLINKBUTTON
1499 # ifdef wxABORT_ON_CONFIG_ERROR
1500 # error "wxUSE_COMMANDLINKBUTTON requires wxUSE_BUTTON"
1502 # undef wxUSE_BUTTON
1503 # define wxUSE_BUTTON 1
1506 #endif /* wxUSE_COMMANDLINKBUTTON */
1509 wxUSE_BOOKCTRL should be only used if any of the controls deriving from it
1512 #ifdef wxUSE_BOOKCTRL
1513 # ifdef wxABORT_ON_CONFIG_ERROR
1514 # error "wxUSE_BOOKCTRL is defined automatically, don't define it"
1516 # undef wxUSE_BOOKCTRL
1520 #define wxUSE_BOOKCTRL (wxUSE_NOTEBOOK || \
1522 wxUSE_CHOICEBOOK || \
1527 # if !wxUSE_BUTTON || !wxUSE_STATLINE
1528 # ifdef wxABORT_ON_CONFIG_ERROR
1529 # error "wxUSE_COLLPANE requires wxUSE_BUTTON and wxUSE_STATLINE"
1531 # undef wxUSE_COLLPANE
1532 # define wxUSE_COLLPANE 0
1535 #endif /* wxUSE_COLLPANE */
1538 # if !wxUSE_LISTCTRL
1539 # ifdef wxABORT_ON_CONFIG_ERROR
1540 # error "wxListbook requires wxListCtrl"
1542 # undef wxUSE_LISTCTRL
1543 # define wxUSE_LISTCTRL 1
1546 #endif /* wxUSE_LISTBOOK */
1548 #if wxUSE_CHOICEBOOK
1550 # ifdef wxABORT_ON_CONFIG_ERROR
1551 # error "wxChoicebook requires wxChoice"
1553 # undef wxUSE_CHOICE
1554 # define wxUSE_CHOICE 1
1557 #endif /* wxUSE_CHOICEBOOK */
1561 # ifdef wxABORT_ON_CONFIG_ERROR
1562 # error "wxToolbook requires wxToolBar"
1564 # undef wxUSE_TOOLBAR
1565 # define wxUSE_TOOLBAR 1
1568 #endif /* wxUSE_TOOLBOOK */
1570 #if !wxUSE_ODCOMBOBOX
1571 # if wxUSE_BITMAPCOMBOBOX
1572 # ifdef wxABORT_ON_CONFIG_ERROR
1573 # error "wxBitmapComboBox requires wxOwnerDrawnComboBox"
1575 # undef wxUSE_BITMAPCOMBOBOX
1576 # define wxUSE_BITMAPCOMBOBOX 0
1579 #endif /* !wxUSE_ODCOMBOBOX */
1581 #if !wxUSE_HEADERCTRL
1582 # if wxUSE_DATAVIEWCTRL || wxUSE_GRID
1583 # ifdef wxABORT_ON_CONFIG_ERROR
1584 # error "wxDataViewCtrl and wxGrid require wxHeaderCtrl"
1586 # undef wxUSE_HEADERCTRL
1587 # define wxUSE_HEADERCTRL 1
1590 #endif /* !wxUSE_HEADERCTRL */
1592 #if wxUSE_REARRANGECTRL
1593 # if !wxUSE_CHECKLISTBOX
1594 # ifdef wxABORT_ON_CONFIG_ERROR
1595 # error "wxRearrangeCtrl requires wxCheckListBox"
1597 # undef wxUSE_REARRANGECTRL
1598 # define wxUSE_REARRANGECTRL 0
1601 #endif /* wxUSE_REARRANGECTRL */
1603 #if wxUSE_RICHMSGDLG
1605 # ifdef wxABORT_ON_CONFIG_ERROR
1606 # error "wxUSE_RICHMSGDLG requires wxUSE_MSGDLG"
1608 # undef wxUSE_MSGDLG
1609 # define wxUSE_MSGDLG 1
1612 #endif /* wxUSE_RICHMSGDLG */
1614 /* don't attempt to use native status bar on the platforms not having it */
1615 #ifndef wxUSE_NATIVE_STATUSBAR
1616 # define wxUSE_NATIVE_STATUSBAR 0
1617 #elif wxUSE_NATIVE_STATUSBAR
1618 # if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1619 defined(__WXMAC__) || \
1620 defined(__WXPALMOS__) )
1621 # undef wxUSE_NATIVE_STATUSBAR
1622 # define wxUSE_NATIVE_STATUSBAR 0
1626 #if wxUSE_GRAPHICS_CONTEXT && !wxUSE_GEOMETRY
1627 # ifdef wxABORT_ON_CONFIG_ERROR
1628 # error "wxUSE_GRAPHICS_CONTEXT requires wxUSE_GEOMETRY"
1630 # undef wxUSE_GRAPHICS_CONTEXT
1631 # define wxUSE_GRAPHICS_CONTEXT 0
1633 #endif /* wxUSE_GRAPHICS_CONTEXT */
1636 /* generic controls dependencies */
1637 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1638 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1639 /* all common controls are needed by these dialogs */
1640 # if !defined(wxUSE_CHOICE) || \
1641 !defined(wxUSE_TEXTCTRL) || \
1642 !defined(wxUSE_BUTTON) || \
1643 !defined(wxUSE_CHECKBOX) || \
1644 !defined(wxUSE_STATTEXT)
1645 # ifdef wxABORT_ON_CONFIG_ERROR
1646 # error "These common controls are needed by common dialogs"
1648 # undef wxUSE_CHOICE
1649 # define wxUSE_CHOICE 1
1650 # undef wxUSE_TEXTCTRL
1651 # define wxUSE_TEXTCTRL 1
1652 # undef wxUSE_BUTTON
1653 # define wxUSE_BUTTON 1
1654 # undef wxUSE_CHECKBOX
1655 # define wxUSE_CHECKBOX 1
1656 # undef wxUSE_STATTEXT
1657 # define wxUSE_STATTEXT 1
1661 #endif /* !wxMSW || wxUniv */
1663 /* generic file dialog depends on (generic) file control */
1664 #if wxUSE_FILEDLG && !wxUSE_FILECTRL && \
1665 (defined(__WXUNIVERSAL__) || defined(__WXGTK__))
1666 # ifdef wxABORT_ON_CONFIG_ERROR
1667 # error "Generic wxFileDialog requires wxFileCtrl"
1669 # undef wxUSE_FILECTRL
1670 # define wxUSE_FILECTRL 1
1672 #endif /* wxUSE_FILEDLG */
1674 /* common dependencies */
1675 #if wxUSE_ARTPROVIDER_TANGO
1676 # if !(wxUSE_STREAMS && wxUSE_IMAGE && wxUSE_LIBPNG)
1677 # ifdef wxABORT_ON_CONFIG_ERROR
1678 # error "Tango art provider requires wxImage with streams and PNG support"
1680 # undef wxUSE_ARTPROVIDER_TANGO
1681 # define wxUSE_ARTPROVIDER_TANGO 0
1684 #endif /* wxUSE_ARTPROVIDER_TANGO */
1686 #if wxUSE_CALENDARCTRL
1687 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1688 # ifdef wxABORT_ON_CONFIG_ERROR
1689 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1691 # undef wxUSE_SPINBTN
1692 # undef wxUSE_COMBOBOX
1693 # define wxUSE_SPINBTN 1
1694 # define wxUSE_COMBOBOX 1
1698 # if !wxUSE_DATETIME
1699 # ifdef wxABORT_ON_CONFIG_ERROR
1700 # error "wxCalendarCtrl requires wxUSE_DATETIME"
1702 # undef wxUSE_DATETIME
1703 # define wxUSE_DATETIME 1
1706 #endif /* wxUSE_CALENDARCTRL */
1708 #if wxUSE_DATEPICKCTRL
1709 # if !wxUSE_DATETIME
1710 # ifdef wxABORT_ON_CONFIG_ERROR
1711 # error "wxDatePickerCtrl requires wxUSE_DATETIME"
1713 # undef wxUSE_DATETIME
1714 # define wxUSE_DATETIME 1
1717 #endif /* wxUSE_DATEPICKCTRL */
1719 #if wxUSE_CHECKLISTBOX
1721 # ifdef wxABORT_ON_CONFIG_ERROR
1722 # error "wxCheckListBox requires wxListBox"
1724 # undef wxUSE_LISTBOX
1725 # define wxUSE_LISTBOX 1
1728 #endif /* wxUSE_CHECKLISTBOX */
1732 # ifdef wxABORT_ON_CONFIG_ERROR
1733 # error "Choice dialogs requires wxListBox"
1735 # undef wxUSE_LISTBOX
1736 # define wxUSE_LISTBOX 1
1739 #endif /* wxUSE_CHOICEDLG */
1742 # if !wxUSE_BMPBUTTON
1743 # ifdef wxABORT_ON_CONFIG_ERROR
1744 # error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1746 # undef wxUSE_BMPBUTTON
1747 # define wxUSE_BMPBUTTON 1
1751 # if !wxUSE_CHOICEDLG
1752 # ifdef wxABORT_ON_CONFIG_ERROR
1753 # error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1755 # undef wxUSE_CHOICEDLG
1756 # define wxUSE_CHOICEDLG 1
1759 #endif /* wxUSE_HELP */
1761 #if wxUSE_MS_HTML_HELP
1763 this doesn't make sense for platforms other than MSW but we still
1764 define it in wx/setup_inc.h so don't complain if it happens to be
1765 defined under another platform but just silently fix it.
1768 # undef wxUSE_MS_HTML_HELP
1769 # define wxUSE_MS_HTML_HELP 0
1771 #endif /* wxUSE_MS_HTML_HELP */
1773 #if wxUSE_WXHTML_HELP
1774 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
1775 # ifdef wxABORT_ON_CONFIG_ERROR
1776 # error "Built in help controller can't be compiled"
1779 # define wxUSE_HELP 1
1781 # define wxUSE_HTML 1
1782 # undef wxUSE_COMBOBOX
1783 # define wxUSE_COMBOBOX 1
1784 # undef wxUSE_NOTEBOOK
1785 # define wxUSE_NOTEBOOK 1
1786 # undef wxUSE_SPINCTRL
1787 # define wxUSE_SPINCTRL 1
1790 #endif /* wxUSE_WXHTML_HELP */
1794 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1795 user explicitly wants this and disable all other features that require
1798 # if wxUSE_DRAGIMAGE
1799 # ifdef wxABORT_ON_CONFIG_ERROR
1800 # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1802 # undef wxUSE_DRAGIMAGE
1803 # define wxUSE_DRAGIMAGE 0
1808 # ifdef wxABORT_ON_CONFIG_ERROR
1809 # error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1811 # undef wxUSE_LIBPNG
1812 # define wxUSE_LIBPNG 0
1817 # ifdef wxABORT_ON_CONFIG_ERROR
1818 # error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1820 # undef wxUSE_LIBJPEG
1821 # define wxUSE_LIBJPEG 0
1826 # ifdef wxABORT_ON_CONFIG_ERROR
1827 # error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1829 # undef wxUSE_LIBTIFF
1830 # define wxUSE_LIBTIFF 0
1835 # ifdef wxABORT_ON_CONFIG_ERROR
1836 # error "wxUSE_GIF requires wxUSE_IMAGE"
1839 # define wxUSE_GIF 0
1844 # ifdef wxABORT_ON_CONFIG_ERROR
1845 # error "wxUSE_PNM requires wxUSE_IMAGE"
1848 # define wxUSE_PNM 0
1853 # ifdef wxABORT_ON_CONFIG_ERROR
1854 # error "wxUSE_PCX requires wxUSE_IMAGE"
1857 # define wxUSE_PCX 0
1862 # ifdef wxABORT_ON_CONFIG_ERROR
1863 # error "wxUSE_IFF requires wxUSE_IMAGE"
1866 # define wxUSE_IFF 0
1871 # ifdef wxABORT_ON_CONFIG_ERROR
1872 # error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1874 # undef wxUSE_TOOLBAR
1875 # define wxUSE_TOOLBAR 0
1880 # ifdef wxABORT_ON_CONFIG_ERROR
1881 # error "wxUSE_XPM requires wxUSE_IMAGE"
1884 # define wxUSE_XPM 0
1888 #endif /* !wxUSE_IMAGE */
1890 #if wxUSE_DOC_VIEW_ARCHITECTURE
1892 # ifdef wxABORT_ON_CONFIG_ERROR
1893 # error "DocView requires wxUSE_MENUS"
1896 # define wxUSE_MENUS 1
1900 # if !wxUSE_CHOICEDLG
1901 # ifdef wxABORT_ON_CONFIG_ERROR
1902 # error "DocView requires wxUSE_CHOICEDLG"
1904 # undef wxUSE_CHOICEDLG
1905 # define wxUSE_CHOICEDLG 1
1909 # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1910 # ifdef wxABORT_ON_CONFIG_ERROR
1911 # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1913 # undef wxUSE_STREAMS
1914 # define wxUSE_STREAMS 1
1918 # if !wxUSE_FILE_HISTORY
1919 # ifdef wxABORT_ON_CONFIG_ERROR
1920 # error "DocView requires wxUSE_FILE_HISTORY"
1922 # undef wxUSE_FILE_HISTORY
1923 # define wxUSE_FILE_HISTORY 1
1926 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1928 #if wxUSE_PRINTING_ARCHITECTURE
1929 # if !wxUSE_COMBOBOX
1930 # ifdef wxABORT_ON_CONFIG_ERROR
1931 # error "Print dialog requires wxUSE_COMBOBOX"
1933 # undef wxUSE_COMBOBOX
1934 # define wxUSE_COMBOBOX 1
1937 #endif /* wxUSE_PRINTING_ARCHITECTURE */
1939 #if wxUSE_MDI_ARCHITECTURE
1941 # ifdef wxABORT_ON_CONFIG_ERROR
1942 # error "MDI requires wxUSE_MDI"
1945 # define wxUSE_MDI 1
1949 # if !wxUSE_DOC_VIEW_ARCHITECTURE
1950 # ifdef wxABORT_ON_CONFIG_ERROR
1951 # error "wxUSE_MDI_ARCHITECTURE requires wxUSE_DOC_VIEW_ARCHITECTURE"
1953 # undef wxUSE_DOC_VIEW_ARCHITECTURE
1954 # define wxUSE_DOC_VIEW_ARCHITECTURE 1
1957 #endif /* wxUSE_MDI_ARCHITECTURE */
1960 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1961 # ifdef wxABORT_ON_CONFIG_ERROR
1962 # error "wxUSE_FILEDLG is required by wxUSE_DOC_VIEW_ARCHITECTURE and wxUSE_WXHTML_HELP!"
1964 # undef wxUSE_FILEDLG
1965 # define wxUSE_FILEDLG 1
1968 #endif /* wxUSE_FILEDLG */
1970 #if !wxUSE_GAUGE || !wxUSE_BUTTON
1971 # if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
1972 # ifdef wxABORT_ON_CONFIG_ERROR
1973 # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
1976 # undef wxUSE_BUTTON
1977 # define wxUSE_GAUGE 1
1978 # define wxUSE_BUTTON 1
1981 #endif /* !wxUSE_GAUGE */
1984 # if wxUSE_FONTDLG || \
1986 wxUSE_CHOICEDLG || \
1987 wxUSE_NUMBERDLG || \
1990 wxUSE_STARTUP_TIPS || \
1992 # ifdef wxABORT_ON_CONFIG_ERROR
1993 # error "Common and generic dialogs require wxUSE_BUTTON"
1995 # undef wxUSE_BUTTON
1996 # define wxUSE_BUTTON 1
1999 #endif /* !wxUSE_BUTTON */
2002 # if wxUSE_TOOLBAR_NATIVE
2003 # ifdef wxABORT_ON_CONFIG_ERROR
2004 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
2006 # undef wxUSE_TOOLBAR_NATIVE
2007 # define wxUSE_TOOLBAR_NATIVE 0
2013 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL || wxUSE_TREELISTCTRL
2014 # ifdef wxABORT_ON_CONFIG_ERROR
2015 # error "wxImageList must be compiled as well"
2017 # undef wxUSE_IMAGLIST
2018 # define wxUSE_IMAGLIST 1
2021 #endif /* !wxUSE_IMAGLIST */
2024 # if !wxUSE_RADIOBTN
2025 # ifdef wxABORT_ON_CONFIG_ERROR
2026 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
2028 # undef wxUSE_RADIOBTN
2029 # define wxUSE_RADIOBTN 1
2032 # if !wxUSE_STATBOX && !defined(__WXPALMOS__)
2033 # ifdef wxABORT_ON_CONFIG_ERROR
2034 # error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
2036 # undef wxUSE_STATBOX
2037 # define wxUSE_STATBOX 1
2040 #endif /* wxUSE_RADIOBOX */
2043 # if !wxUSE_TEXTCTRL
2044 # ifdef wxABORT_ON_CONFIG_ERROR
2045 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
2047 # undef wxUSE_TEXTCTRL
2048 # define wxUSE_TEXTCTRL 1
2051 #endif /* wxUSE_LOGWINDOW */
2053 #if wxUSE_LOG_DIALOG
2054 # if !wxUSE_LISTCTRL || !wxUSE_BUTTON
2055 # ifdef wxABORT_ON_CONFIG_ERROR
2056 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
2058 # undef wxUSE_LISTCTRL
2059 # define wxUSE_LISTCTRL 1
2060 # undef wxUSE_BUTTON
2061 # define wxUSE_BUTTON 1
2064 #endif /* wxUSE_LOG_DIALOG */
2066 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
2067 # ifdef wxABORT_ON_CONFIG_ERROR
2068 # error "wxClipboard requires wxDataObject"
2070 # undef wxUSE_DATAOBJ
2071 # define wxUSE_DATAOBJ 1
2073 #endif /* wxUSE_CLIPBOARD */
2075 #if wxUSE_XRC && !wxUSE_XML
2076 # ifdef wxABORT_ON_CONFIG_ERROR
2077 # error "wxUSE_XRC requires wxUSE_XML"
2080 # define wxUSE_XRC 0
2082 #endif /* wxUSE_XRC */
2084 #if wxUSE_SOCKETS && !wxUSE_STOPWATCH
2085 # ifdef wxABORT_ON_CONFIG_ERROR
2086 # error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
2088 # undef wxUSE_SOCKETS
2089 # define wxUSE_SOCKETS 0
2091 #endif /* wxUSE_SOCKETS */
2093 #if wxUSE_SVG && !wxUSE_STREAMS
2094 # ifdef wxABORT_ON_CONFIG_ERROR
2095 # error "wxUSE_SVG requires wxUSE_STREAMS"
2098 # define wxUSE_SVG 0
2100 #endif /* wxUSE_SVG */
2102 #if wxUSE_SVG && !wxUSE_IMAGE
2103 # ifdef wxABORT_ON_CONFIG_ERROR
2104 # error "wxUSE_SVG requires wxUSE_IMAGE"
2107 # define wxUSE_SVG 0
2109 #endif /* wxUSE_SVG */
2111 #if wxUSE_SVG && !wxUSE_LIBPNG
2112 # ifdef wxABORT_ON_CONFIG_ERROR
2113 # error "wxUSE_SVG requires wxUSE_LIBPNG"
2116 # define wxUSE_SVG 0
2118 #endif /* wxUSE_SVG */
2120 #if wxUSE_TASKBARICON && !wxUSE_MENUS
2121 # ifdef wxABORT_ON_CONFIG_ERROR
2122 # error "wxUSE_TASKBARICON requires wxUSE_MENUS"
2124 # undef wxUSE_TASKBARICON
2125 # define wxUSE_TASKBARICON 0
2127 #endif /* wxUSE_TASKBARICON */
2130 # if wxUSE_DATAVIEWCTRL
2131 # ifdef wxABORT_ON_CONFIG_ERROR
2132 # error "wxDataViewCtrl requires wxVariant"
2134 # undef wxUSE_DATAVIEWCTRL
2135 # define wxUSE_DATAVIEWCTRL 0
2138 #endif /* wxUSE_VARIANT */
2140 #if wxUSE_TREELISTCTRL && !wxUSE_DATAVIEWCTRL
2141 # ifdef wxABORT_ON_CONFIG_ERROR
2142 # error "wxUSE_TREELISTCTRL requires wxDataViewCtrl"
2144 # undef wxUSE_TREELISTCTRL
2145 # define wxUSE_TREELISTCTRL 0
2147 #endif /* wxUSE_TREELISTCTRL */
2149 #endif /* wxUSE_GUI */
2151 #endif /* _WX_CHKCONF_H_ */