]>
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 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 it
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_STREAMS
303 # ifdef wxABORT_ON_CONFIG_ERROR
304 # error "wxUSE_STREAMS must be defined, please read comment near the top of this file."
306 # define wxUSE_STREAMS 0
308 #endif /* !defined(wxUSE_STREAMS) */
310 #ifndef wxUSE_STOPWATCH
311 # ifdef wxABORT_ON_CONFIG_ERROR
312 # error "wxUSE_STOPWATCH must be defined, please read comment near the top of this file."
314 # define wxUSE_STOPWATCH 0
316 #endif /* !defined(wxUSE_STOPWATCH) */
318 #ifndef wxUSE_TEXTBUFFER
319 # ifdef wxABORT_ON_CONFIG_ERROR
320 # error "wxUSE_TEXTBUFFER must be defined, please read comment near the top of this file."
322 # define wxUSE_TEXTBUFFER 0
324 #endif /* !defined(wxUSE_TEXTBUFFER) */
326 #ifndef wxUSE_TEXTFILE
327 # ifdef wxABORT_ON_CONFIG_ERROR
328 # error "wxUSE_TEXTFILE must be defined, please read comment near the top of this file."
330 # define wxUSE_TEXTFILE 0
332 #endif /* !defined(wxUSE_TEXTFILE) */
334 #ifndef wxUSE_UNICODE
335 # ifdef wxABORT_ON_CONFIG_ERROR
336 # error "wxUSE_UNICODE must be defined, please read comment near the top of this file."
338 # define wxUSE_UNICODE 0
340 #endif /* !defined(wxUSE_UNICODE) */
343 # ifdef wxABORT_ON_CONFIG_ERROR
344 # error "wxUSE_URL must be defined, please read comment near the top of this file."
348 #endif /* !defined(wxUSE_URL) */
350 #ifndef wxUSE_VARIANT
351 # ifdef wxABORT_ON_CONFIG_ERROR
352 # error "wxUSE_VARIANT must be defined, please read comment near the top of this file."
354 # define wxUSE_VARIANT 0
356 #endif /* wxUSE_VARIANT */
358 #ifndef wxUSE_XLOCALE
359 # ifdef wxABORT_ON_CONFIG_ERROR
360 # error "wxUSE_XLOCALE must be defined, please read comment near the top of this file."
362 # define wxUSE_XLOCALE 0
364 #endif /* !defined(wxUSE_XLOCALE) */
367 Section 1b: all these tests are for GUI only.
369 please keep the options in alphabetical order!
374 all of the settings tested below must be defined or we'd get an error from
375 preprocessor about invalid integer expression
378 #ifndef wxUSE_ABOUTDLG
379 # ifdef wxABORT_ON_CONFIG_ERROR
380 # error "wxUSE_ABOUTDLG must be defined, please read comment near the top of this file."
382 # define wxUSE_ABOUTDLG 0
384 #endif /* !defined(wxUSE_ABOUTDLG) */
387 # ifdef wxABORT_ON_CONFIG_ERROR
388 # error "wxUSE_ACCEL must be defined, please read comment near the top of this file."
390 # define wxUSE_ACCEL 0
392 #endif /* !defined(wxUSE_ACCEL) */
394 #ifndef wxUSE_ACCESSIBILITY
395 # ifdef wxABORT_ON_CONFIG_ERROR
396 # error "wxUSE_ACCESSIBILITY must be defined, please read comment near the top of this file."
398 # define wxUSE_ACCESSIBILITY 0
400 #endif /* !defined(wxUSE_ACCESSIBILITY) */
402 #ifndef wxUSE_ANIMATIONCTRL
403 # ifdef wxABORT_ON_CONFIG_ERROR
404 # error "wxUSE_ANIMATIONCTRL must be defined, please read comment near the top of this file."
406 # define wxUSE_ANIMATIONCTRL 0
408 #endif /* !defined(wxUSE_ANIMATIONCTRL) */
410 #ifndef wxUSE_AUTOID_MANAGEMENT
411 # ifdef wxABORT_ON_CONFIG_ERROR
412 # error "wxUSE_AUTOID_MANAGEMENT must be defined, please read comment near the top of this file."
414 # define wxUSE_AUTOID_MANAGEMENT 0
416 #endif /* !defined(wxUSE_AUTOID_MANAGEMENT) */
418 #ifndef wxUSE_BITMAPCOMBOBOX
419 # ifdef wxABORT_ON_CONFIG_ERROR
420 # error "wxUSE_BITMAPCOMBOBOX must be defined, please read comment near the top of this file."
422 # define wxUSE_BITMAPCOMBOBOX 0
424 #endif /* !defined(wxUSE_BITMAPCOMBOBOX) */
426 #ifndef wxUSE_BMPBUTTON
427 # ifdef wxABORT_ON_CONFIG_ERROR
428 # error "wxUSE_BMPBUTTON must be defined, please read comment near the top of this file."
430 # define wxUSE_BMPBUTTON 0
432 #endif /* !defined(wxUSE_BMPBUTTON) */
435 # ifdef wxABORT_ON_CONFIG_ERROR
436 # error "wxUSE_BUTTON must be defined, please read comment near the top of this file."
438 # define wxUSE_BUTTON 0
440 #endif /* !defined(wxUSE_BUTTON) */
443 This one is special, it's only used under wxGTK currently so don't require
448 # define wxUSE_CAIRO 1
450 # define wxUSE_CAIRO 0
454 #ifndef wxUSE_CALENDARCTRL
455 # ifdef wxABORT_ON_CONFIG_ERROR
456 # error "wxUSE_CALENDARCTRL must be defined, please read comment near the top of this file."
458 # define wxUSE_CALENDARCTRL 0
460 #endif /* !defined(wxUSE_CALENDARCTRL) */
463 # ifdef wxABORT_ON_CONFIG_ERROR
464 # error "wxUSE_CARET must be defined, please read comment near the top of this file."
466 # define wxUSE_CARET 0
468 #endif /* !defined(wxUSE_CARET) */
470 #ifndef wxUSE_CHECKBOX
471 # ifdef wxABORT_ON_CONFIG_ERROR
472 # error "wxUSE_CHECKBOX must be defined, please read comment near the top of this file."
474 # define wxUSE_CHECKBOX 0
476 #endif /* !defined(wxUSE_CHECKBOX) */
478 #ifndef wxUSE_CHECKLISTBOX
479 # ifdef wxABORT_ON_CONFIG_ERROR
480 # error "wxUSE_CHECKLISTBOX must be defined, please read comment near the top of this file."
482 # define wxUSE_CHECKLISTBOX 0
484 #endif /* !defined(wxUSE_CHECKLISTBOX) */
487 # ifdef wxABORT_ON_CONFIG_ERROR
488 # error "wxUSE_CHOICE must be defined, please read comment near the top of this file."
490 # define wxUSE_CHOICE 0
492 #endif /* !defined(wxUSE_CHOICE) */
494 #ifndef wxUSE_CHOICEBOOK
495 # ifdef wxABORT_ON_CONFIG_ERROR
496 # error "wxUSE_CHOICEBOOK must be defined, please read comment near the top of this file."
498 # define wxUSE_CHOICEBOOK 0
500 #endif /* !defined(wxUSE_CHOICEBOOK) */
502 #ifndef wxUSE_CHOICEDLG
503 # ifdef wxABORT_ON_CONFIG_ERROR
504 # error "wxUSE_CHOICEDLG must be defined, please read comment near the top of this file."
506 # define wxUSE_CHOICEDLG 0
508 #endif /* !defined(wxUSE_CHOICEDLG) */
510 #ifndef wxUSE_CLIPBOARD
511 # ifdef wxABORT_ON_CONFIG_ERROR
512 # error "wxUSE_CLIPBOARD must be defined, please read comment near the top of this file."
514 # define wxUSE_CLIPBOARD 0
516 #endif /* !defined(wxUSE_CLIPBOARD) */
518 #ifndef wxUSE_COLLPANE
519 # ifdef wxABORT_ON_CONFIG_ERROR
520 # error "wxUSE_COLLPANE must be defined, please read comment near the top of this file."
522 # define wxUSE_COLLPANE 0
524 #endif /* !defined(wxUSE_COLLPANE) */
526 #ifndef wxUSE_COLOURDLG
527 # ifdef wxABORT_ON_CONFIG_ERROR
528 # error "wxUSE_COLOURDLG must be defined, please read comment near the top of this file."
530 # define wxUSE_COLOURDLG 0
532 #endif /* !defined(wxUSE_COLOURDLG) */
534 #ifndef wxUSE_COLOURPICKERCTRL
535 # ifdef wxABORT_ON_CONFIG_ERROR
536 # error "wxUSE_COLOURPICKERCTRL must be defined, please read comment near the top of this file."
538 # define wxUSE_COLOURPICKERCTRL 0
540 #endif /* !defined(wxUSE_COLOURPICKERCTRL) */
542 #ifndef wxUSE_COMBOBOX
543 # ifdef wxABORT_ON_CONFIG_ERROR
544 # error "wxUSE_COMBOBOX must be defined, please read comment near the top of this file."
546 # define wxUSE_COMBOBOX 0
548 #endif /* !defined(wxUSE_COMBOBOX) */
550 #ifndef wxUSE_COMBOCTRL
551 # ifdef wxABORT_ON_CONFIG_ERROR
552 # error "wxUSE_COMBOCTRL must be defined, please read comment near the top of this file."
554 # define wxUSE_COMBOCTRL 0
556 #endif /* !defined(wxUSE_COMBOCTRL) */
558 #ifndef wxUSE_DATAOBJ
559 # ifdef wxABORT_ON_CONFIG_ERROR
560 # error "wxUSE_DATAOBJ must be defined, please read comment near the top of this file."
562 # define wxUSE_DATAOBJ 0
564 #endif /* !defined(wxUSE_DATAOBJ) */
566 #ifndef wxUSE_DATAVIEWCTRL
567 # ifdef wxABORT_ON_CONFIG_ERROR
568 # error "wxUSE_DATAVIEWCTRL must be defined, please read comment near the top of this file."
570 # define wxUSE_DATAVIEWCTRL 0
572 #endif /* !defined(wxUSE_DATAVIEWCTRL) */
574 #ifndef wxUSE_DATEPICKCTRL
575 # ifdef wxABORT_ON_CONFIG_ERROR
576 # error "wxUSE_DATEPICKCTRL must be defined, please read comment near the top of this file."
578 # define wxUSE_DATEPICKCTRL 0
580 #endif /* !defined(wxUSE_DATEPICKCTRL) */
582 #ifndef wxUSE_DIRPICKERCTRL
583 # ifdef wxABORT_ON_CONFIG_ERROR
584 # error "wxUSE_DIRPICKERCTRL must be defined, please read comment near the top of this file."
586 # define wxUSE_DIRPICKERCTRL 0
588 #endif /* !defined(wxUSE_DIRPICKERCTRL) */
590 #ifndef wxUSE_DISPLAY
591 # ifdef wxABORT_ON_CONFIG_ERROR
592 # error "wxUSE_DISPLAY must be defined, please read comment near the top of this file."
594 # define wxUSE_DISPLAY 0
596 #endif /* !defined(wxUSE_DISPLAY) */
598 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
599 # ifdef wxABORT_ON_CONFIG_ERROR
600 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined, please read comment near the top of this file."
602 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
604 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
606 #ifndef wxUSE_FILECTRL
607 # ifdef wxABORT_ON_CONFIG_ERROR
608 # error "wxUSE_FILECTRL must be defined, please read comment near the top of this file."
610 # define wxUSE_FILECTRL 0
612 #endif /* !defined(wxUSE_FILECTRL) */
614 #ifndef wxUSE_FILEDLG
615 # ifdef wxABORT_ON_CONFIG_ERROR
616 # error "wxUSE_FILEDLG must be defined, please read comment near the top of this file."
618 # define wxUSE_FILEDLG 0
620 #endif /* !defined(wxUSE_FILEDLG) */
622 #ifndef wxUSE_FILEPICKERCTRL
623 # ifdef wxABORT_ON_CONFIG_ERROR
624 # error "wxUSE_FILEPICKERCTRL must be defined, please read comment near the top of this file."
626 # define wxUSE_FILEPICKERCTRL 0
628 #endif /* !defined(wxUSE_FILEPICKERCTRL) */
630 #ifndef wxUSE_FONTDLG
631 # ifdef wxABORT_ON_CONFIG_ERROR
632 # error "wxUSE_FONTDLG must be defined, please read comment near the top of this file."
634 # define wxUSE_FONTDLG 0
636 #endif /* !defined(wxUSE_FONTDLG) */
638 #ifndef wxUSE_FONTMAP
639 # ifdef wxABORT_ON_CONFIG_ERROR
640 # error "wxUSE_FONTMAP must be defined, please read comment near the top of this file."
642 # define wxUSE_FONTMAP 0
644 #endif /* !defined(wxUSE_FONTMAP) */
646 #ifndef wxUSE_FONTPICKERCTRL
647 # ifdef wxABORT_ON_CONFIG_ERROR
648 # error "wxUSE_FONTPICKERCTRL must be defined, please read comment near the top of this file."
650 # define wxUSE_FONTPICKERCTRL 0
652 #endif /* !defined(wxUSE_FONTPICKERCTRL) */
655 # ifdef wxABORT_ON_CONFIG_ERROR
656 # error "wxUSE_GAUGE must be defined, please read comment near the top of this file."
658 # define wxUSE_GAUGE 0
660 #endif /* !defined(wxUSE_GAUGE) */
662 #ifndef wxUSE_GRAPHICS_CONTEXT
663 # ifdef wxABORT_ON_CONFIG_ERROR
664 # error "wxUSE_GRAPHICS_CONTEXT must be defined, please read comment near the top of this file."
666 # define wxUSE_GRAPHICS_CONTEXT 0
668 #endif /* !defined(wxUSE_GRAPHICS_CONTEXT) */
672 # ifdef wxABORT_ON_CONFIG_ERROR
673 # error "wxUSE_GRID must be defined, please read comment near the top of this file."
675 # define wxUSE_GRID 0
677 #endif /* !defined(wxUSE_GRID) */
679 #ifndef wxUSE_HEADERCTRL
680 # ifdef wxABORT_ON_CONFIG_ERROR
681 # error "wxUSE_HEADERCTRL must be defined, please read comment near the top of this file."
683 # define wxUSE_HEADERCTRL 0
685 #endif /* !defined(wxUSE_HEADERCTRL) */
688 # ifdef wxABORT_ON_CONFIG_ERROR
689 # error "wxUSE_HELP must be defined, please read comment near the top of this file."
691 # define wxUSE_HELP 0
693 #endif /* !defined(wxUSE_HELP) */
695 #ifndef wxUSE_HYPERLINKCTRL
696 # ifdef wxABORT_ON_CONFIG_ERROR
697 # error "wxUSE_HYPERLINKCTRL must be defined, please read comment near the top of this file."
699 # define wxUSE_HYPERLINKCTRL 0
701 #endif /* !defined(wxUSE_HYPERLINKCTRL) */
704 # ifdef wxABORT_ON_CONFIG_ERROR
705 # error "wxUSE_HTML must be defined, please read comment near the top of this file."
707 # define wxUSE_HTML 0
709 #endif /* !defined(wxUSE_HTML) */
711 #ifndef wxUSE_LIBMSPACK
712 # if !defined(__UNIX__) || defined(__WXPALMOS__)
713 /* set to 0 on platforms that don't have libmspack */
714 # define wxUSE_LIBMSPACK 0
716 # ifdef wxABORT_ON_CONFIG_ERROR
717 # error "wxUSE_LIBMSPACK must be defined, please read comment near the top of this file."
719 # define wxUSE_LIBMSPACK 0
722 #endif /* !defined(wxUSE_LIBMSPACK) */
724 #ifndef wxUSE_ICO_CUR
725 # ifdef wxABORT_ON_CONFIG_ERROR
726 # error "wxUSE_ICO_CUR must be defined, please read comment near the top of this file."
728 # define wxUSE_ICO_CUR 0
730 #endif /* !defined(wxUSE_ICO_CUR) */
733 # ifdef wxABORT_ON_CONFIG_ERROR
734 # error "wxUSE_IFF must be defined, please read comment near the top of this file."
738 #endif /* !defined(wxUSE_IFF) */
740 #ifndef wxUSE_IMAGLIST
741 # ifdef wxABORT_ON_CONFIG_ERROR
742 # error "wxUSE_IMAGLIST must be defined, please read comment near the top of this file."
744 # define wxUSE_IMAGLIST 0
746 #endif /* !defined(wxUSE_IMAGLIST) */
748 #ifndef wxUSE_INFOBAR
749 # ifdef wxABORT_ON_CONFIG_ERROR
750 # error "wxUSE_INFOBAR must be defined, please read comment near the top of this file."
752 # define wxUSE_INFOBAR 0
754 #endif /* !defined(wxUSE_INFOBAR) */
756 #ifndef wxUSE_JOYSTICK
757 # ifdef wxABORT_ON_CONFIG_ERROR
758 # error "wxUSE_JOYSTICK must be defined, please read comment near the top of this file."
760 # define wxUSE_JOYSTICK 0
762 #endif /* !defined(wxUSE_JOYSTICK) */
764 #ifndef wxUSE_LISTBOOK
765 # ifdef wxABORT_ON_CONFIG_ERROR
766 # error "wxUSE_LISTBOOK must be defined, please read comment near the top of this file."
768 # define wxUSE_LISTBOOK 0
770 #endif /* !defined(wxUSE_LISTBOOK) */
772 #ifndef wxUSE_LISTBOX
773 # ifdef wxABORT_ON_CONFIG_ERROR
774 # error "wxUSE_LISTBOX must be defined, please read comment near the top of this file."
776 # define wxUSE_LISTBOX 0
778 #endif /* !defined(wxUSE_LISTBOX) */
780 #ifndef wxUSE_LISTCTRL
781 # ifdef wxABORT_ON_CONFIG_ERROR
782 # error "wxUSE_LISTCTRL must be defined, please read comment near the top of this file."
784 # define wxUSE_LISTCTRL 0
786 #endif /* !defined(wxUSE_LISTCTRL) */
789 # ifdef wxABORT_ON_CONFIG_ERROR
790 # error "wxUSE_LOGGUI must be defined, please read comment near the top of this file."
792 # define wxUSE_LOGGUI 0
794 #endif /* !defined(wxUSE_LOGGUI) */
796 #ifndef wxUSE_LOGWINDOW
797 # ifdef wxABORT_ON_CONFIG_ERROR
798 # error "wxUSE_LOGWINDOW must be defined, please read comment near the top of this file."
800 # define wxUSE_LOGWINDOW 0
802 #endif /* !defined(wxUSE_LOGWINDOW) */
804 #ifndef wxUSE_LOG_DIALOG
805 # ifdef wxABORT_ON_CONFIG_ERROR
806 # error "wxUSE_LOG_DIALOG must be defined, please read comment near the top of this file."
808 # define wxUSE_LOG_DIALOG 0
810 #endif /* !defined(wxUSE_LOG_DIALOG) */
813 # ifdef wxABORT_ON_CONFIG_ERROR
814 # error "wxUSE_MDI must be defined, please read comment near the top of this file."
818 #endif /* !defined(wxUSE_MDI) */
820 #ifndef wxUSE_MDI_ARCHITECTURE
821 # ifdef wxABORT_ON_CONFIG_ERROR
822 # error "wxUSE_MDI_ARCHITECTURE must be defined, please read comment near the top of this file."
824 # define wxUSE_MDI_ARCHITECTURE 0
826 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
829 # ifdef wxABORT_ON_CONFIG_ERROR
830 # error "wxUSE_MENUS must be defined, please read comment near the top of this file."
832 # define wxUSE_MENUS 0
834 #endif /* !defined(wxUSE_MENUS) */
837 # ifdef wxABORT_ON_CONFIG_ERROR
838 # error "wxUSE_MSGDLG must be defined, please read comment near the top of this file."
840 # define wxUSE_MSGDLG 0
842 #endif /* !defined(wxUSE_MSGDLG) */
844 #ifndef wxUSE_NOTEBOOK
845 # ifdef wxABORT_ON_CONFIG_ERROR
846 # error "wxUSE_NOTEBOOK must be defined, please read comment near the top of this file."
848 # define wxUSE_NOTEBOOK 0
850 #endif /* !defined(wxUSE_NOTEBOOK) */
852 #ifndef wxUSE_NOTIFICATION_MESSAGE
853 # ifdef wxABORT_ON_CONFIG_ERROR
854 # error "wxUSE_NOTIFICATION_MESSAGE must be defined, please read comment near the top of this file."
856 # define wxUSE_NOTIFICATION_MESSAGE 0
858 #endif /* !defined(wxUSE_NOTIFICATION_MESSAGE) */
860 #ifndef wxUSE_ODCOMBOBOX
861 # ifdef wxABORT_ON_CONFIG_ERROR
862 # error "wxUSE_ODCOMBOBOX must be defined, please read comment near the top of this file."
864 # define wxUSE_ODCOMBOBOX 0
866 #endif /* !defined(wxUSE_ODCOMBOBOX) */
868 #ifndef wxUSE_PALETTE
869 # ifdef wxABORT_ON_CONFIG_ERROR
870 # error "wxUSE_PALETTE must be defined, please read comment near the top of this file."
872 # define wxUSE_PALETTE 0
874 #endif /* !defined(wxUSE_PALETTE) */
876 #ifndef wxUSE_POPUPWIN
877 # ifdef wxABORT_ON_CONFIG_ERROR
878 # error "wxUSE_POPUPWIN must be defined, please read comment near the top of this file."
880 # define wxUSE_POPUPWIN 0
882 #endif /* !defined(wxUSE_POPUPWIN) */
884 #ifndef wxUSE_PRINTING_ARCHITECTURE
885 # ifdef wxABORT_ON_CONFIG_ERROR
886 # error "wxUSE_PRINTING_ARCHITECTURE must be defined, please read comment near the top of this file."
888 # define wxUSE_PRINTING_ARCHITECTURE 0
890 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
892 #ifndef wxUSE_RADIOBOX
893 # ifdef wxABORT_ON_CONFIG_ERROR
894 # error "wxUSE_RADIOBOX must be defined, please read comment near the top of this file."
896 # define wxUSE_RADIOBOX 0
898 #endif /* !defined(wxUSE_RADIOBOX) */
900 #ifndef wxUSE_RADIOBTN
901 # ifdef wxABORT_ON_CONFIG_ERROR
902 # error "wxUSE_RADIOBTN must be defined, please read comment near the top of this file."
904 # define wxUSE_RADIOBTN 0
906 #endif /* !defined(wxUSE_RADIOBTN) */
908 #ifndef wxUSE_REARRANGECTRL
909 # ifdef wxABORT_ON_CONFIG_ERROR
910 # error "wxUSE_REARRANGECTRL must be defined, please read comment near the top of this file."
912 # define wxUSE_REARRANGECTRL 0
914 #endif /* !defined(wxUSE_REARRANGECTRL) */
917 # ifdef wxABORT_ON_CONFIG_ERROR
918 # error "wxUSE_RIBBON must be defined, please read comment near the top of this file."
920 # define wxUSE_RIBBON 0
922 #endif /* !defined(wxUSE_RIBBON) */
925 # ifdef wxABORT_ON_CONFIG_ERROR
926 # error "wxUSE_SASH must be defined, please read comment near the top of this file."
928 # define wxUSE_SASH 0
930 #endif /* !defined(wxUSE_SASH) */
932 #ifndef wxUSE_SCROLLBAR
933 # ifdef wxABORT_ON_CONFIG_ERROR
934 # error "wxUSE_SCROLLBAR must be defined, please read comment near the top of this file."
936 # define wxUSE_SCROLLBAR 0
938 #endif /* !defined(wxUSE_SCROLLBAR) */
941 # ifdef wxABORT_ON_CONFIG_ERROR
942 # error "wxUSE_SLIDER must be defined, please read comment near the top of this file."
944 # define wxUSE_SLIDER 0
946 #endif /* !defined(wxUSE_SLIDER) */
949 # ifdef wxABORT_ON_CONFIG_ERROR
950 # error "wxUSE_SOUND must be defined, please read comment near the top of this file."
952 # define wxUSE_SOUND 0
954 #endif /* !defined(wxUSE_SOUND) */
956 #ifndef wxUSE_SPINBTN
957 # ifdef wxABORT_ON_CONFIG_ERROR
958 # error "wxUSE_SPINBTN must be defined, please read comment near the top of this file."
960 # define wxUSE_SPINBTN 0
962 #endif /* !defined(wxUSE_SPINBTN) */
964 #ifndef wxUSE_SPINCTRL
965 # ifdef wxABORT_ON_CONFIG_ERROR
966 # error "wxUSE_SPINCTRL must be defined, please read comment near the top of this file."
968 # define wxUSE_SPINCTRL 0
970 #endif /* !defined(wxUSE_SPINCTRL) */
973 # ifdef wxABORT_ON_CONFIG_ERROR
974 # error "wxUSE_SPLASH must be defined, please read comment near the top of this file."
976 # define wxUSE_SPLASH 0
978 #endif /* !defined(wxUSE_SPLASH) */
980 #ifndef wxUSE_SPLITTER
981 # ifdef wxABORT_ON_CONFIG_ERROR
982 # error "wxUSE_SPLITTER must be defined, please read comment near the top of this file."
984 # define wxUSE_SPLITTER 0
986 #endif /* !defined(wxUSE_SPLITTER) */
988 #ifndef wxUSE_STATBMP
989 # ifdef wxABORT_ON_CONFIG_ERROR
990 # error "wxUSE_STATBMP must be defined, please read comment near the top of this file."
992 # define wxUSE_STATBMP 0
994 #endif /* !defined(wxUSE_STATBMP) */
996 #ifndef wxUSE_STATBOX
997 # ifdef wxABORT_ON_CONFIG_ERROR
998 # error "wxUSE_STATBOX must be defined, please read comment near the top of this file."
1000 # define wxUSE_STATBOX 0
1002 #endif /* !defined(wxUSE_STATBOX) */
1004 #ifndef wxUSE_STATLINE
1005 # ifdef wxABORT_ON_CONFIG_ERROR
1006 # error "wxUSE_STATLINE must be defined, please read comment near the top of this file."
1008 # define wxUSE_STATLINE 0
1010 #endif /* !defined(wxUSE_STATLINE) */
1012 #ifndef wxUSE_STATTEXT
1013 # ifdef wxABORT_ON_CONFIG_ERROR
1014 # error "wxUSE_STATTEXT must be defined, please read comment near the top of this file."
1016 # define wxUSE_STATTEXT 0
1018 #endif /* !defined(wxUSE_STATTEXT) */
1020 #ifndef wxUSE_STATUSBAR
1021 # ifdef wxABORT_ON_CONFIG_ERROR
1022 # error "wxUSE_STATUSBAR must be defined, please read comment near the top of this file."
1024 # define wxUSE_STATUSBAR 0
1026 #endif /* !defined(wxUSE_STATUSBAR) */
1028 #ifndef wxUSE_TASKBARICON
1029 # ifdef wxABORT_ON_CONFIG_ERROR
1030 # error "wxUSE_TASKBARICON must be defined, please read comment near the top of this file."
1032 # define wxUSE_TASKBARICON 0
1034 #endif /* !defined(wxUSE_TASKBARICON) */
1036 #ifndef wxUSE_TEXTCTRL
1037 # ifdef wxABORT_ON_CONFIG_ERROR
1038 # error "wxUSE_TEXTCTRL must be defined, please read comment near the top of this file."
1040 # define wxUSE_TEXTCTRL 0
1042 #endif /* !defined(wxUSE_TEXTCTRL) */
1044 #ifndef wxUSE_TIPWINDOW
1045 # ifdef wxABORT_ON_CONFIG_ERROR
1046 # error "wxUSE_TIPWINDOW must be defined, please read comment near the top of this file."
1048 # define wxUSE_TIPWINDOW 0
1050 #endif /* !defined(wxUSE_TIPWINDOW) */
1052 #ifndef wxUSE_TOOLBAR
1053 # ifdef wxABORT_ON_CONFIG_ERROR
1054 # error "wxUSE_TOOLBAR must be defined, please read comment near the top of this file."
1056 # define wxUSE_TOOLBAR 0
1058 #endif /* !defined(wxUSE_TOOLBAR) */
1060 #ifndef wxUSE_TOOLTIPS
1061 # ifdef wxABORT_ON_CONFIG_ERROR
1062 # error "wxUSE_TOOLTIPS must be defined, please read comment near the top of this file."
1064 # define wxUSE_TOOLTIPS 0
1066 #endif /* !defined(wxUSE_TOOLTIPS) */
1068 #ifndef wxUSE_TREECTRL
1069 # ifdef wxABORT_ON_CONFIG_ERROR
1070 # error "wxUSE_TREECTRL must be defined, please read comment near the top of this file."
1072 # define wxUSE_TREECTRL 0
1074 #endif /* !defined(wxUSE_TREECTRL) */
1076 #ifndef wxUSE_UIACTIONSIMULATOR
1077 # ifdef wxABORT_ON_CONFIG_ERROR
1078 # error "wxUSE_UIACTIONSIMULATOR must be defined, please read comment near the top of this file."
1080 # define wxUSE_UIACTIONSIMULATOR 0
1082 #endif /* !defined(wxUSE_UIACTIONSIMULATOR) */
1084 #ifndef wxUSE_VALIDATORS
1085 # ifdef wxABORT_ON_CONFIG_ERROR
1086 # error "wxUSE_VALIDATORS must be defined, please read comment near the top of this file."
1088 # define wxUSE_VALIDATORS 0
1090 #endif /* !defined(wxUSE_VALIDATORS) */
1092 #ifndef wxUSE_WXHTML_HELP
1093 # ifdef wxABORT_ON_CONFIG_ERROR
1094 # error "wxUSE_WXHTML_HELP must be defined, please read comment near the top of this file."
1096 # define wxUSE_WXHTML_HELP 0
1098 #endif /* !defined(wxUSE_WXHTML_HELP) */
1101 # ifdef wxABORT_ON_CONFIG_ERROR
1102 # error "wxUSE_XRC must be defined, please read comment near the top of this file."
1104 # define wxUSE_XRC 0
1106 #endif /* !defined(wxUSE_XRC) */
1108 #endif /* wxUSE_GUI */
1111 Section 2: platform-specific checks.
1113 This must be done after checking that everything is defined as the platform
1114 checks use wxUSE_XXX symbols in #if tests.
1117 #if defined(__WXPALMOS__)
1118 # include "wx/palmos/chkconf.h"
1119 #elif defined(__WXWINCE__)
1120 # include "wx/msw/wince/chkconf.h"
1121 #elif defined(__WXMSW__)
1122 # include "wx/msw/chkconf.h"
1123 #elif defined(__WXGTK__)
1124 # include "wx/gtk/chkconf.h"
1125 #elif defined(__WXCOCOA__)
1126 # include "wx/cocoa/chkconf.h"
1127 #elif defined(__WXMAC__)
1128 # include "wx/osx/chkconf.h"
1129 #elif defined(__OS2__)
1130 # include "wx/os2/chkconf.h"
1131 #elif defined(__WXMGL__)
1132 # include "wx/mgl/chkconf.h"
1133 #elif defined(__WXDFB__)
1134 # include "wx/dfb/chkconf.h"
1135 #elif defined(__WXMOTIF__)
1136 # include "wx/motif/chkconf.h"
1137 #elif defined(__WXX11__)
1138 # include "wx/x11/chkconf.h"
1142 __UNIX__ is also defined under Cygwin but we shouldn't perform these checks
1143 there if we're building wxMSW.
1145 #if defined(__UNIX__) && !defined(__WXMSW__)
1146 # include "wx/unix/chkconf.h"
1149 #ifdef __WXUNIVERSAL__
1150 # include "wx/univ/chkconf.h"
1154 Section 3a: check consistency of the non-GUI settings.
1157 #if WXWIN_COMPATIBILITY_2_6
1158 # if !WXWIN_COMPATIBILITY_2_8
1159 # ifdef wxABORT_ON_CONFIG_ERROR
1160 # error "2.6.X compatibility requires 2.8.X compatibility"
1162 # undef WXWIN_COMPATIBILITY_2_8
1163 # define WXWIN_COMPATIBILITY_2_8 1
1166 #endif /* WXWIN_COMPATIBILITY_2_6 */
1168 #if wxUSE_ARCHIVE_STREAMS
1169 # if !wxUSE_DATETIME
1170 # ifdef wxABORT_ON_CONFIG_ERROR
1171 # error "wxArchive requires wxUSE_DATETIME"
1173 # undef wxUSE_ARCHIVE_STREAMS
1174 # define wxUSE_ARCHIVE_STREAMS 0
1177 #endif /* wxUSE_ARCHIVE_STREAMS */
1179 #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
1180 # if !wxUSE_PROTOCOL
1181 # ifdef wxABORT_ON_CONFIG_ERROR
1182 # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
1184 # undef wxUSE_PROTOCOL
1185 # define wxUSE_PROTOCOL 1
1188 #endif /* wxUSE_PROTOCOL_XXX */
1191 # if !wxUSE_PROTOCOL
1192 # ifdef wxABORT_ON_CONFIG_ERROR
1193 # error "wxUSE_URL requires wxUSE_PROTOCOL"
1195 # undef wxUSE_PROTOCOL
1196 # define wxUSE_PROTOCOL 1
1199 #endif /* wxUSE_URL */
1203 # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
1204 # ifdef wxABORT_ON_CONFIG_ERROR
1205 # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
1207 # undef wxUSE_SOCKETS
1208 # define wxUSE_SOCKETS 1
1214 # ifdef wxABORT_ON_CONFIG_ERROR
1215 # error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
1217 # undef wxUSE_STREAMS
1218 # define wxUSE_STREAMS 1
1221 #endif /* wxUSE_PROTOCOL */
1223 /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
1225 # if !wxUSE_FILESYSTEM
1226 # ifdef wxABORT_ON_CONFIG_ERROR
1227 # error "wxHTML requires wxFileSystem"
1229 # undef wxUSE_FILESYSTEM
1230 # define wxUSE_FILESYSTEM 1
1233 #endif /* wxUSE_HTML */
1235 #if wxUSE_FS_ARCHIVE
1236 # if !wxUSE_FILESYSTEM
1237 # ifdef wxABORT_ON_CONFIG_ERROR
1238 # error "wxArchiveFSHandler requires wxFileSystem"
1240 # undef wxUSE_FILESYSTEM
1241 # define wxUSE_FILESYSTEM 1
1244 # if !wxUSE_ARCHIVE_STREAMS
1245 # ifdef wxABORT_ON_CONFIG_ERROR
1246 # error "wxArchiveFSHandler requires wxArchive"
1248 # undef wxUSE_ARCHIVE_STREAMS
1249 # define wxUSE_ARCHIVE_STREAMS 1
1252 #endif /* wxUSE_FS_ARCHIVE */
1254 #if wxUSE_FILESYSTEM
1256 # ifdef wxABORT_ON_CONFIG_ERROR
1257 # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
1259 # undef wxUSE_STREAMS
1260 # define wxUSE_STREAMS 1
1263 # if !wxUSE_FILE && !wxUSE_FFILE
1264 # ifdef wxABORT_ON_CONFIG_ERROR
1265 # error "wxUSE_FILESYSTEM requires either wxUSE_FILE or wxUSE_FFILE"
1268 # define wxUSE_FILE 1
1270 # define wxUSE_FFILE 1
1273 #endif /* wxUSE_FILESYSTEM */
1276 # if !wxUSE_PROTOCOL
1277 # ifdef wxABORT_ON_CONFIG_ERROR
1278 # error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
1280 # undef wxUSE_PROTOCOL
1281 # define wxUSE_PROTOCOL 1
1284 #endif /* wxUSE_FS_INET */
1286 #if wxUSE_STOPWATCH || wxUSE_DATETIME
1287 # if !wxUSE_LONGLONG
1288 # ifdef wxABORT_ON_CONFIG_ERROR
1289 # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
1291 # undef wxUSE_LONGLONG
1292 # define wxUSE_LONGLONG 1
1295 #endif /* wxUSE_STOPWATCH */
1297 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
1298 # ifdef wxABORT_ON_CONFIG_ERROR
1299 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
1301 # undef wxUSE_TEXTFILE
1302 # define wxUSE_TEXTFILE 1
1304 #endif /* wxUSE_MIMETYPE */
1306 #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
1307 # ifdef wxABORT_ON_CONFIG_ERROR
1308 # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
1310 # undef wxUSE_TEXTBUFFER
1311 # define wxUSE_TEXTBUFFER 1
1313 #endif /* wxUSE_TEXTFILE */
1315 #if wxUSE_TEXTFILE && !wxUSE_FILE
1316 # ifdef wxABORT_ON_CONFIG_ERROR
1317 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
1320 # define wxUSE_FILE 1
1322 #endif /* wxUSE_TEXTFILE */
1324 #if !wxUSE_DYNLIB_CLASS
1325 # if wxUSE_DYNAMIC_LOADER
1326 # ifdef wxABORT_ON_CONFIG_ERROR
1327 # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
1329 # define wxUSE_DYNLIB_CLASS 1
1332 #endif /* wxUSE_DYNLIB_CLASS */
1336 # ifdef wxABORT_ON_CONFIG_ERROR
1337 # error "wxZip requires wxZlib"
1340 # define wxUSE_ZLIB 1
1343 # if !wxUSE_ARCHIVE_STREAMS
1344 # ifdef wxABORT_ON_CONFIG_ERROR
1345 # error "wxZip requires wxArchive"
1347 # undef wxUSE_ARCHIVE_STREAMS
1348 # define wxUSE_ARCHIVE_STREAMS 1
1351 #endif /* wxUSE_ZIPSTREAM */
1354 # if !wxUSE_ARCHIVE_STREAMS
1355 # ifdef wxABORT_ON_CONFIG_ERROR
1356 # error "wxTar requires wxArchive"
1358 # undef wxUSE_ARCHIVE_STREAMS
1359 # define wxUSE_ARCHIVE_STREAMS 1
1362 #endif /* wxUSE_TARSTREAM */
1365 Section 3b: the tests for the GUI settings only.
1369 #if wxUSE_ACCESSIBILITY && !defined(__WXMSW__) && !defined(__GCCXML__)
1370 # ifdef wxABORT_ON_CONFIG_ERROR
1371 # error "wxUSE_ACCESSIBILITY is currently only supported under wxMSW"
1373 # undef wxUSE_ACCESSIBILITY
1374 # define wxUSE_ACCESSIBILITY 0
1376 #endif /* wxUSE_ACCESSIBILITY */
1378 #if wxUSE_BUTTON || \
1379 wxUSE_CALENDARCTRL || \
1382 wxUSE_BMPBUTTON || \
1384 wxUSE_CHECKLISTBOX || \
1388 wxUSE_HEADERCTRL || \
1394 wxUSE_REARRANGECTRL || \
1395 wxUSE_SCROLLBAR || \
1403 wxUSE_STATUSBAR || \
1407 # if !wxUSE_CONTROLS
1408 # ifdef wxABORT_ON_CONFIG_ERROR
1409 # error "wxUSE_CONTROLS unset but some controls used"
1411 # undef wxUSE_CONTROLS
1412 # define wxUSE_CONTROLS 1
1415 #endif /* controls */
1419 # ifdef wxABORT_ON_CONFIG_ERROR
1420 # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1422 # undef wxUSE_BUTTON
1423 # define wxUSE_BUTTON 1
1426 #endif /* wxUSE_BMPBUTTON */
1429 wxUSE_BOOKCTRL should be only used if any of the controls deriving from it
1432 #ifdef wxUSE_BOOKCTRL
1433 # ifdef wxABORT_ON_CONFIG_ERROR
1434 # error "wxUSE_BOOKCTRL is defined automatically, don't define it"
1436 # undef wxUSE_BOOKCTRL
1440 #define wxUSE_BOOKCTRL (wxUSE_NOTEBOOK || \
1442 wxUSE_CHOICEBOOK || \
1447 # if !wxUSE_BUTTON || !wxUSE_STATLINE
1448 # ifdef wxABORT_ON_CONFIG_ERROR
1449 # error "wxUSE_COLLPANE requires wxUSE_BUTTON and wxUSE_STATLINE"
1451 # undef wxUSE_COLLPANE
1452 # define wxUSE_COLLPANE 0
1455 #endif /* wxUSE_COLLPANE */
1458 # if !wxUSE_LISTCTRL
1459 # ifdef wxABORT_ON_CONFIG_ERROR
1460 # error "wxListbook requires wxListCtrl"
1462 # undef wxUSE_LISTCTRL
1463 # define wxUSE_LISTCTRL 1
1466 #endif /* wxUSE_LISTBOOK */
1468 #if wxUSE_CHOICEBOOK
1470 # ifdef wxABORT_ON_CONFIG_ERROR
1471 # error "wxChoicebook requires wxChoice"
1473 # undef wxUSE_CHOICE
1474 # define wxUSE_CHOICE 1
1477 #endif /* wxUSE_CHOICEBOOK */
1481 # ifdef wxABORT_ON_CONFIG_ERROR
1482 # error "wxToolbook requires wxToolBar"
1484 # undef wxUSE_TOOLBAR
1485 # define wxUSE_TOOLBAR 1
1488 #endif /* wxUSE_TOOLBOOK */
1490 #if !wxUSE_ODCOMBOBOX
1491 # if wxUSE_BITMAPCOMBOBOX
1492 # ifdef wxABORT_ON_CONFIG_ERROR
1493 # error "wxBitmapComboBox requires wxOwnerDrawnComboBox"
1495 # undef wxUSE_BITMAPCOMBOBOX
1496 # define wxUSE_BITMAPCOMBOBOX 0
1499 #endif /* !wxUSE_ODCOMBOBOX */
1501 #if !wxUSE_HEADERCTRL
1502 # if wxUSE_DATAVIEWCTRL || wxUSE_GRID
1503 # ifdef wxABORT_ON_CONFIG_ERROR
1504 # error "wxDataViewCtrl and wxGrid require wxHeaderCtrl"
1506 # undef wxUSE_HEADERCTRL
1507 # define wxUSE_HEADERCTRL 1
1510 #endif /* !wxUSE_HEADERCTRL */
1512 #if wxUSE_REARRANGECTRL
1513 # if !wxUSE_CHECKLISTBOX
1514 # ifdef wxABORT_ON_CONFIG_ERROR
1515 # error "wxRearrangeCtrl requires wxCheckListBox"
1517 # undef wxUSE_REARRANGECTRL
1518 # define wxUSE_REARRANGECTRL 0
1521 #endif /* wxUSE_REARRANGECTRL */
1523 /* don't attempt to use native status bar on the platforms not having it */
1524 #ifndef wxUSE_NATIVE_STATUSBAR
1525 # define wxUSE_NATIVE_STATUSBAR 0
1526 #elif wxUSE_NATIVE_STATUSBAR
1527 # if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1528 defined(__WXMAC__) || \
1529 defined(__WXPALMOS__) )
1530 # undef wxUSE_NATIVE_STATUSBAR
1531 # define wxUSE_NATIVE_STATUSBAR 0
1535 #if wxUSE_GRAPHICS_CONTEXT && !wxUSE_GEOMETRY
1536 # ifdef wxABORT_ON_CONFIG_ERROR
1537 # error "wxUSE_GRAPHICS_CONTEXT requires wxUSE_GEOMETRY"
1539 # undef wxUSE_GRAPHICS_CONTEXT
1540 # define wxUSE_GRAPHICS_CONTEXT 0
1542 #endif /* wxUSE_GRAPHICS_CONTEXT */
1545 /* generic controls dependencies */
1546 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1547 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1548 /* all common controls are needed by these dialogs */
1549 # if !defined(wxUSE_CHOICE) || \
1550 !defined(wxUSE_TEXTCTRL) || \
1551 !defined(wxUSE_BUTTON) || \
1552 !defined(wxUSE_CHECKBOX) || \
1553 !defined(wxUSE_STATTEXT)
1554 # ifdef wxABORT_ON_CONFIG_ERROR
1555 # error "These common controls are needed by common dialogs"
1557 # undef wxUSE_CHOICE
1558 # define wxUSE_CHOICE 1
1559 # undef wxUSE_TEXTCTRL
1560 # define wxUSE_TEXTCTRL 1
1561 # undef wxUSE_BUTTON
1562 # define wxUSE_BUTTON 1
1563 # undef wxUSE_CHECKBOX
1564 # define wxUSE_CHECKBOX 1
1565 # undef wxUSE_STATTEXT
1566 # define wxUSE_STATTEXT 1
1570 #endif /* !wxMSW || wxUniv */
1572 /* generic file dialog depends on (generic) file control */
1573 #if wxUSE_FILEDLG && !wxUSE_FILECTRL && \
1574 (defined(__WXUNIVERSAL__) || defined(__WXGTK__))
1575 # ifdef wxABORT_ON_CONFIG_ERROR
1576 # error "Generic wxFileDialog requires wxFileCtrl"
1578 # undef wxUSE_FILECTRL
1579 # define wxUSE_FILECTRL 1
1581 #endif /* wxUSE_FILEDLG */
1583 /* common dependencies */
1584 #if wxUSE_CALENDARCTRL
1585 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1586 # ifdef wxABORT_ON_CONFIG_ERROR
1587 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1589 # undef wxUSE_SPINBTN
1590 # undef wxUSE_COMBOBOX
1591 # define wxUSE_SPINBTN 1
1592 # define wxUSE_COMBOBOX 1
1596 # if !wxUSE_DATETIME
1597 # ifdef wxABORT_ON_CONFIG_ERROR
1598 # error "wxCalendarCtrl requires wxUSE_DATETIME"
1600 # undef wxUSE_DATETIME
1601 # define wxUSE_DATETIME 1
1604 #endif /* wxUSE_CALENDARCTRL */
1606 #if wxUSE_DATEPICKCTRL
1607 # if !wxUSE_DATETIME
1608 # ifdef wxABORT_ON_CONFIG_ERROR
1609 # error "wxDatePickerCtrl requires wxUSE_DATETIME"
1611 # undef wxUSE_DATETIME
1612 # define wxUSE_DATETIME 1
1615 #endif /* wxUSE_DATEPICKCTRL */
1617 #if wxUSE_CHECKLISTBOX
1619 # ifdef wxABORT_ON_CONFIG_ERROR
1620 # error "wxCheckListBox requires wxListBox"
1622 # undef wxUSE_LISTBOX
1623 # define wxUSE_LISTBOX 1
1626 #endif /* wxUSE_CHECKLISTBOX */
1630 # ifdef wxABORT_ON_CONFIG_ERROR
1631 # error "Choice dialogs requires wxListBox"
1633 # undef wxUSE_LISTBOX
1634 # define wxUSE_LISTBOX 1
1637 #endif /* wxUSE_CHOICEDLG */
1640 # if !wxUSE_BMPBUTTON
1641 # ifdef wxABORT_ON_CONFIG_ERROR
1642 # error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1644 # undef wxUSE_BMPBUTTON
1645 # define wxUSE_BMPBUTTON 1
1649 # if !wxUSE_CHOICEDLG
1650 # ifdef wxABORT_ON_CONFIG_ERROR
1651 # error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1653 # undef wxUSE_CHOICEDLG
1654 # define wxUSE_CHOICEDLG 1
1657 #endif /* wxUSE_HELP */
1659 #if wxUSE_MS_HTML_HELP
1661 this doesn't make sense for platforms other than MSW but we still
1662 define it in wx/setup_inc.h so don't complain if it happens to be
1663 defined under another platform but just silently fix it.
1666 # undef wxUSE_MS_HTML_HELP
1667 # define wxUSE_MS_HTML_HELP 0
1669 #endif /* wxUSE_MS_HTML_HELP */
1671 #if wxUSE_WXHTML_HELP
1672 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
1673 # ifdef wxABORT_ON_CONFIG_ERROR
1674 # error "Built in help controller can't be compiled"
1677 # define wxUSE_HELP 1
1679 # define wxUSE_HTML 1
1680 # undef wxUSE_COMBOBOX
1681 # define wxUSE_COMBOBOX 1
1682 # undef wxUSE_NOTEBOOK
1683 # define wxUSE_NOTEBOOK 1
1684 # undef wxUSE_SPINCTRL
1685 # define wxUSE_SPINCTRL 1
1688 #endif /* wxUSE_WXHTML_HELP */
1692 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1693 user explicitly wants this and disable all other features that require
1696 # if wxUSE_DRAGIMAGE
1697 # ifdef wxABORT_ON_CONFIG_ERROR
1698 # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1700 # undef wxUSE_DRAGIMAGE
1701 # define wxUSE_DRAGIMAGE 0
1706 # ifdef wxABORT_ON_CONFIG_ERROR
1707 # error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1709 # undef wxUSE_LIBPNG
1710 # define wxUSE_LIBPNG 0
1715 # ifdef wxABORT_ON_CONFIG_ERROR
1716 # error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1718 # undef wxUSE_LIBJPEG
1719 # define wxUSE_LIBJPEG 0
1724 # ifdef wxABORT_ON_CONFIG_ERROR
1725 # error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1727 # undef wxUSE_LIBTIFF
1728 # define wxUSE_LIBTIFF 0
1733 # ifdef wxABORT_ON_CONFIG_ERROR
1734 # error "wxUSE_GIF requires wxUSE_IMAGE"
1737 # define wxUSE_GIF 0
1742 # ifdef wxABORT_ON_CONFIG_ERROR
1743 # error "wxUSE_PNM requires wxUSE_IMAGE"
1746 # define wxUSE_PNM 0
1751 # ifdef wxABORT_ON_CONFIG_ERROR
1752 # error "wxUSE_PCX requires wxUSE_IMAGE"
1755 # define wxUSE_PCX 0
1760 # ifdef wxABORT_ON_CONFIG_ERROR
1761 # error "wxUSE_IFF requires wxUSE_IMAGE"
1764 # define wxUSE_IFF 0
1769 # ifdef wxABORT_ON_CONFIG_ERROR
1770 # error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1772 # undef wxUSE_TOOLBAR
1773 # define wxUSE_TOOLBAR 0
1778 # ifdef wxABORT_ON_CONFIG_ERROR
1779 # error "wxUSE_XPM requires wxUSE_IMAGE"
1782 # define wxUSE_XPM 0
1786 #endif /* !wxUSE_IMAGE */
1788 #if wxUSE_DOC_VIEW_ARCHITECTURE
1790 # ifdef wxABORT_ON_CONFIG_ERROR
1791 # error "DocView requires wxUSE_MENUS"
1794 # define wxUSE_MENUS 1
1798 # if !wxUSE_CHOICEDLG
1799 # ifdef wxABORT_ON_CONFIG_ERROR
1800 # error "DocView requires wxUSE_CHOICEDLG"
1802 # undef wxUSE_CHOICEDLG
1803 # define wxUSE_CHOICEDLG 1
1807 # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1808 # ifdef wxABORT_ON_CONFIG_ERROR
1809 # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1811 # undef wxUSE_STREAMS
1812 # define wxUSE_STREAMS 1
1816 # if !wxUSE_FILE_HISTORY
1817 # ifdef wxABORT_ON_CONFIG_ERROR
1818 # error "DocView requires wxUSE_FILE_HISTORY"
1820 # undef wxUSE_FILE_HISTORY
1821 # define wxUSE_FILE_HISTORY 1
1824 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1826 #if wxUSE_PRINTING_ARCHITECTURE
1827 # if !wxUSE_COMBOBOX
1828 # ifdef wxABORT_ON_CONFIG_ERROR
1829 # error "Print dialog requires wxUSE_COMBOBOX"
1831 # undef wxUSE_COMBOBOX
1832 # define wxUSE_COMBOBOX 1
1835 #endif /* wxUSE_PRINTING_ARCHITECTURE */
1837 #if wxUSE_MDI_ARCHITECTURE
1839 # ifdef wxABORT_ON_CONFIG_ERROR
1840 # error "MDI requires wxUSE_MDI"
1843 # define wxUSE_MDI 1
1847 # if !wxUSE_DOC_VIEW_ARCHITECTURE
1848 # ifdef wxABORT_ON_CONFIG_ERROR
1849 # error "wxUSE_MDI_ARCHITECTURE requires wxUSE_DOC_VIEW_ARCHITECTURE"
1851 # undef wxUSE_DOC_VIEW_ARCHITECTURE
1852 # define wxUSE_DOC_VIEW_ARCHITECTURE 1
1855 #endif /* wxUSE_MDI_ARCHITECTURE */
1858 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1859 # ifdef wxABORT_ON_CONFIG_ERROR
1860 # error "wxUSE_FILEDLG is required by wxUSE_DOC_VIEW_ARCHITECTURE and wxUSE_WXHTML_HELP!"
1862 # undef wxUSE_FILEDLG
1863 # define wxUSE_FILEDLG 1
1866 #endif /* wxUSE_FILEDLG */
1868 #if !wxUSE_GAUGE || !wxUSE_BUTTON
1869 # if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
1870 # ifdef wxABORT_ON_CONFIG_ERROR
1871 # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
1874 # undef wxUSE_BUTTON
1875 # define wxUSE_GAUGE 1
1876 # define wxUSE_BUTTON 1
1879 #endif /* !wxUSE_GAUGE */
1882 # if wxUSE_FONTDLG || \
1884 wxUSE_CHOICEDLG || \
1885 wxUSE_NUMBERDLG || \
1888 wxUSE_STARTUP_TIPS || \
1890 # ifdef wxABORT_ON_CONFIG_ERROR
1891 # error "Common and generic dialogs require wxUSE_BUTTON"
1893 # undef wxUSE_BUTTON
1894 # define wxUSE_BUTTON 1
1897 #endif /* !wxUSE_BUTTON */
1900 # if wxUSE_TOOLBAR_NATIVE
1901 # ifdef wxABORT_ON_CONFIG_ERROR
1902 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1904 # undef wxUSE_TOOLBAR_NATIVE
1905 # define wxUSE_TOOLBAR_NATIVE 0
1911 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1912 # ifdef wxABORT_ON_CONFIG_ERROR
1913 # error "wxImageList must be compiled as well"
1915 # undef wxUSE_IMAGLIST
1916 # define wxUSE_IMAGLIST 1
1919 #endif /* !wxUSE_IMAGLIST */
1922 # if !wxUSE_RADIOBTN
1923 # ifdef wxABORT_ON_CONFIG_ERROR
1924 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
1926 # undef wxUSE_RADIOBTN
1927 # define wxUSE_RADIOBTN 1
1930 # if !wxUSE_STATBOX && !defined(__WXPALMOS__)
1931 # ifdef wxABORT_ON_CONFIG_ERROR
1932 # error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
1934 # undef wxUSE_STATBOX
1935 # define wxUSE_STATBOX 1
1938 #endif /* wxUSE_RADIOBOX */
1941 # if !wxUSE_TEXTCTRL
1942 # ifdef wxABORT_ON_CONFIG_ERROR
1943 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1945 # undef wxUSE_TEXTCTRL
1946 # define wxUSE_TEXTCTRL 1
1949 #endif /* wxUSE_LOGWINDOW */
1951 #if wxUSE_LOG_DIALOG
1952 # if !wxUSE_LISTCTRL || !wxUSE_BUTTON
1953 # ifdef wxABORT_ON_CONFIG_ERROR
1954 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
1956 # undef wxUSE_LISTCTRL
1957 # define wxUSE_LISTCTRL 1
1958 # undef wxUSE_BUTTON
1959 # define wxUSE_BUTTON 1
1962 #endif /* wxUSE_LOG_DIALOG */
1964 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
1965 # ifdef wxABORT_ON_CONFIG_ERROR
1966 # error "wxClipboard requires wxDataObject"
1968 # undef wxUSE_DATAOBJ
1969 # define wxUSE_DATAOBJ 1
1971 #endif /* wxUSE_CLIPBOARD */
1973 #if wxUSE_XRC && !wxUSE_XML
1974 # ifdef wxABORT_ON_CONFIG_ERROR
1975 # error "wxUSE_XRC requires wxUSE_XML"
1978 # define wxUSE_XRC 0
1980 #endif /* wxUSE_XRC */
1982 #if wxUSE_SOCKETS && !wxUSE_STOPWATCH
1983 # ifdef wxABORT_ON_CONFIG_ERROR
1984 # error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
1986 # undef wxUSE_SOCKETS
1987 # define wxUSE_SOCKETS 0
1989 #endif /* wxUSE_SOCKETS */
1991 #if wxUSE_SVG && !wxUSE_STREAMS
1992 # ifdef wxABORT_ON_CONFIG_ERROR
1993 # error "wxUSE_SVG requires wxUSE_STREAMS"
1996 # define wxUSE_SVG 0
1998 #endif /* wxUSE_SVG */
2000 #if wxUSE_SVG && !wxUSE_IMAGE
2001 # ifdef wxABORT_ON_CONFIG_ERROR
2002 # error "wxUSE_SVG requires wxUSE_IMAGE"
2005 # define wxUSE_SVG 0
2007 #endif /* wxUSE_SVG */
2009 #if wxUSE_SVG && !wxUSE_LIBPNG
2010 # ifdef wxABORT_ON_CONFIG_ERROR
2011 # error "wxUSE_SVG requires wxUSE_LIBPNG"
2014 # define wxUSE_SVG 0
2016 #endif /* wxUSE_SVG */
2019 # if wxUSE_DATAVIEWCTRL
2020 # ifdef wxABORT_ON_CONFIG_ERROR
2021 # error "wxDataViewCtrl requires wxVariant"
2023 # undef wxUSE_DATAVIEWCTRL
2024 # define wxUSE_DATAVIEWCTRL 0
2027 #endif /* wxUSE_VARIANT */
2029 #endif /* wxUSE_GUI */
2031 #endif /* _WX_CHKCONF_H_ */