]> git.saurik.com Git - wxWidgets.git/blob - include/wx/chkconf.h
78e125919b3261f53a7e9c852e6e974fd6a3b46f
[wxWidgets.git] / include / wx / chkconf.h
1 /*
2 * Name: wx/chkconf.h
3 * Purpose: check the config settings for consistency
4 * Author: Vadim Zeitlin
5 * Modified by:
6 * Created: 09.08.00
7 * RCS-ID: $Id$
8 * Copyright: (c) 2000 Vadim Zeitlin <vadim@wxwidgets.org>
9 * Licence: wxWindows licence
10 */
11
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_
15
16 /*
17 **************************************************
18 PLEASE READ THIS IF YOU GET AN ERROR IN THIS FILE!
19 **************************************************
20
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.
29
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
34 might work).
35 */
36
37 /*
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
46 */
47
48 /*
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)
53 */
54 #define wxABORT_ON_CONFIG_ERROR
55
56 /*
57 global features
58 */
59
60 /* GUI build by default */
61 #if !defined(wxUSE_GUI)
62 # define wxUSE_GUI 1
63 #endif /* !defined(wxUSE_GUI) */
64
65 /*
66 If we're compiling without support for threads/exceptions we have to
67 disable the corresponding features.
68 */
69 #ifdef wxNO_THREADS
70 # undef wxUSE_THREADS
71 # define wxUSE_THREADS 0
72 #endif /* wxNO_THREADS */
73
74 #ifdef wxNO_EXCEPTIONS
75 # undef wxUSE_EXCEPTIONS
76 # define wxUSE_EXCEPTIONS 0
77 #endif /* wxNO_EXCEPTIONS */
78
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 */
84
85
86 /*
87 Section 1a: tests for non GUI features.
88
89 please keep the options in alphabetical order!
90 */
91
92 #ifndef wxUSE_ANY
93 # ifdef wxABORT_ON_CONFIG_ERROR
94 # error "wxUSE_ANY must be defined, please read comment near the top of this file."
95 # else
96 # define wxUSE_ANY 0
97 # endif
98 #endif /* wxUSE_ANY */
99
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."
103 # else
104 # define wxUSE_CONSOLE_EVENTLOOP 0
105 # endif
106 #endif /* !defined(wxUSE_CONSOLE_EVENTLOOP) */
107
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."
111 # else
112 # define wxUSE_DYNLIB_CLASS 0
113 # endif
114 #endif /* !defined(wxUSE_DYNLIB_CLASS) */
115
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."
119 # else
120 # define wxUSE_EXCEPTIONS 0
121 # endif
122 #endif /* !defined(wxUSE_EXCEPTIONS) */
123
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."
127 # else
128 # define wxUSE_FILE_HISTORY 0
129 # endif
130 #endif /* !defined(wxUSE_FILE_HISTORY) */
131
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."
135 # else
136 # define wxUSE_FILESYSTEM 0
137 # endif
138 #endif /* !defined(wxUSE_FILESYSTEM) */
139
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."
143 # else
144 # define wxUSE_FS_ARCHIVE 0
145 # endif
146 #endif /* !defined(wxUSE_FS_ARCHIVE) */
147
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."
151 # else
152 # define wxUSE_FSVOLUME 0
153 # endif
154 #endif /* !defined(wxUSE_FSVOLUME) */
155
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."
159 # else
160 # define wxUSE_FSWATCHER 0
161 # endif
162 #endif /* !defined(wxUSE_FSWATCHER) */
163
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."
167 # else
168 # define wxUSE_DYNAMIC_LOADER 0
169 # endif
170 #endif /* !defined(wxUSE_DYNAMIC_LOADER) */
171
172 #ifndef wxUSE_INTL
173 # ifdef wxABORT_ON_CONFIG_ERROR
174 # error "wxUSE_INTL must be defined, please read comment near the top of this file."
175 # else
176 # define wxUSE_INTL 0
177 # endif
178 #endif /* !defined(wxUSE_INTL) */
179
180 #ifndef wxUSE_IPV6
181 # ifdef wxABORT_ON_CONFIG_ERROR
182 # error "wxUSE_IPV6 must be defined, please read comment near the top of this file."
183 # else
184 # define wxUSE_IPV6 0
185 # endif
186 #endif /* !defined(wxUSE_IPV6) */
187
188 #ifndef wxUSE_LOG
189 # ifdef wxABORT_ON_CONFIG_ERROR
190 # error "wxUSE_LOG must be defined, please read comment near the top of this file."
191 # else
192 # define wxUSE_LOG 0
193 # endif
194 #endif /* !defined(wxUSE_LOG) */
195
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."
199 # else
200 # define wxUSE_LONGLONG 0
201 # endif
202 #endif /* !defined(wxUSE_LONGLONG) */
203
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."
207 # else
208 # define wxUSE_MIMETYPE 0
209 # endif
210 #endif /* !defined(wxUSE_MIMETYPE) */
211
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."
215 # else
216 # define wxUSE_ON_FATAL_EXCEPTION 0
217 # endif
218 #endif /* !defined(wxUSE_ON_FATAL_EXCEPTION) */
219
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."
223 # else
224 # define wxUSE_PRINTF_POS_PARAMS 0
225 # endif
226 #endif /* !defined(wxUSE_PRINTF_POS_PARAMS) */
227
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."
231 # else
232 # define wxUSE_PROTOCOL 0
233 # endif
234 #endif /* !defined(wxUSE_PROTOCOL) */
235
236 /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
237 #if !wxUSE_PROTOCOL
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 */
245
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."
249 # else
250 # define wxUSE_PROTOCOL_HTTP 0
251 # endif
252 #endif /* !defined(wxUSE_PROTOCOL_HTTP) */
253
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."
257 # else
258 # define wxUSE_PROTOCOL_FTP 0
259 # endif
260 #endif /* !defined(wxUSE_PROTOCOL_FTP) */
261
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."
265 # else
266 # define wxUSE_PROTOCOL_FILE 0
267 # endif
268 #endif /* !defined(wxUSE_PROTOCOL_FILE) */
269
270 #ifndef wxUSE_REGEX
271 # ifdef wxABORT_ON_CONFIG_ERROR
272 # error "wxUSE_REGEX must be defined, please read comment near the top of this file."
273 # else
274 # define wxUSE_REGEX 0
275 # endif
276 #endif /* !defined(wxUSE_REGEX) */
277
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."
281 # else
282 # define wxUSE_STDPATHS 1
283 # endif
284 #endif /* !defined(wxUSE_STDPATHS) */
285
286 #ifndef wxUSE_XML
287 # ifdef wxABORT_ON_CONFIG_ERROR
288 # error "wxUSE_XML must be defined, please read comment near the top of this file."
289 # else
290 # define wxUSE_XML 0
291 # endif
292 #endif /* !defined(wxUSE_XML) */
293
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."
297 # else
298 # define wxUSE_SOCKETS 0
299 # endif
300 #endif /* !defined(wxUSE_SOCKETS) */
301
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."
305 # else
306 # define wxUSE_STREAMS 0
307 # endif
308 #endif /* !defined(wxUSE_STREAMS) */
309
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."
313 # else
314 # define wxUSE_STOPWATCH 0
315 # endif
316 #endif /* !defined(wxUSE_STOPWATCH) */
317
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."
321 # else
322 # define wxUSE_TEXTBUFFER 0
323 # endif
324 #endif /* !defined(wxUSE_TEXTBUFFER) */
325
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."
329 # else
330 # define wxUSE_TEXTFILE 0
331 # endif
332 #endif /* !defined(wxUSE_TEXTFILE) */
333
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."
337 # else
338 # define wxUSE_UNICODE 0
339 # endif
340 #endif /* !defined(wxUSE_UNICODE) */
341
342 #ifndef wxUSE_URL
343 # ifdef wxABORT_ON_CONFIG_ERROR
344 # error "wxUSE_URL must be defined, please read comment near the top of this file."
345 # else
346 # define wxUSE_URL 0
347 # endif
348 #endif /* !defined(wxUSE_URL) */
349
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."
353 # else
354 # define wxUSE_VARIANT 0
355 # endif
356 #endif /* wxUSE_VARIANT */
357
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."
361 # else
362 # define wxUSE_XLOCALE 0
363 # endif
364 #endif /* !defined(wxUSE_XLOCALE) */
365
366 /*
367 Section 1b: all these tests are for GUI only.
368
369 please keep the options in alphabetical order!
370 */
371 #if wxUSE_GUI
372
373 /*
374 all of the settings tested below must be defined or we'd get an error from
375 preprocessor about invalid integer expression
376 */
377
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."
381 # else
382 # define wxUSE_ABOUTDLG 0
383 # endif
384 #endif /* !defined(wxUSE_ABOUTDLG) */
385
386 #ifndef wxUSE_ACCEL
387 # ifdef wxABORT_ON_CONFIG_ERROR
388 # error "wxUSE_ACCEL must be defined, please read comment near the top of this file."
389 # else
390 # define wxUSE_ACCEL 0
391 # endif
392 #endif /* !defined(wxUSE_ACCEL) */
393
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."
397 # else
398 # define wxUSE_ACCESSIBILITY 0
399 # endif
400 #endif /* !defined(wxUSE_ACCESSIBILITY) */
401
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."
405 # else
406 # define wxUSE_ANIMATIONCTRL 0
407 # endif
408 #endif /* !defined(wxUSE_ANIMATIONCTRL) */
409
410 #ifndef wxUSE_ARTPROVIDER_TANGO
411 # ifdef wxABORT_ON_CONFIG_ERROR
412 # error "wxUSE_ARTPROVIDER_TANGO must be defined, please read comment near the top of this file."
413 # else
414 # define wxUSE_ARTPROVIDER_TANGO 0
415 # endif
416 #endif /* !defined(wxUSE_ARTPROVIDER_TANGO) */
417
418 #ifndef wxUSE_AUTOID_MANAGEMENT
419 # ifdef wxABORT_ON_CONFIG_ERROR
420 # error "wxUSE_AUTOID_MANAGEMENT must be defined, please read comment near the top of this file."
421 # else
422 # define wxUSE_AUTOID_MANAGEMENT 0
423 # endif
424 #endif /* !defined(wxUSE_AUTOID_MANAGEMENT) */
425
426 #ifndef wxUSE_BITMAPCOMBOBOX
427 # ifdef wxABORT_ON_CONFIG_ERROR
428 # error "wxUSE_BITMAPCOMBOBOX must be defined, please read comment near the top of this file."
429 # else
430 # define wxUSE_BITMAPCOMBOBOX 0
431 # endif
432 #endif /* !defined(wxUSE_BITMAPCOMBOBOX) */
433
434 #ifndef wxUSE_BMPBUTTON
435 # ifdef wxABORT_ON_CONFIG_ERROR
436 # error "wxUSE_BMPBUTTON must be defined, please read comment near the top of this file."
437 # else
438 # define wxUSE_BMPBUTTON 0
439 # endif
440 #endif /* !defined(wxUSE_BMPBUTTON) */
441
442 #ifndef wxUSE_BUTTON
443 # ifdef wxABORT_ON_CONFIG_ERROR
444 # error "wxUSE_BUTTON must be defined, please read comment near the top of this file."
445 # else
446 # define wxUSE_BUTTON 0
447 # endif
448 #endif /* !defined(wxUSE_BUTTON) */
449
450 #ifndef wxUSE_CAIRO
451 # ifdef wxABORT_ON_CONFIG_ERROR
452 # error "wxUSE_CAIRO must be defined, please read comment near the top of this file."
453 # else
454 # define wxUSE_CAIRO 0
455 # endif
456 #endif /* !defined(wxUSE_CAIRO) */
457
458 #ifndef wxUSE_CALENDARCTRL
459 # ifdef wxABORT_ON_CONFIG_ERROR
460 # error "wxUSE_CALENDARCTRL must be defined, please read comment near the top of this file."
461 # else
462 # define wxUSE_CALENDARCTRL 0
463 # endif
464 #endif /* !defined(wxUSE_CALENDARCTRL) */
465
466 #ifndef wxUSE_CARET
467 # ifdef wxABORT_ON_CONFIG_ERROR
468 # error "wxUSE_CARET must be defined, please read comment near the top of this file."
469 # else
470 # define wxUSE_CARET 0
471 # endif
472 #endif /* !defined(wxUSE_CARET) */
473
474 #ifndef wxUSE_CHECKBOX
475 # ifdef wxABORT_ON_CONFIG_ERROR
476 # error "wxUSE_CHECKBOX must be defined, please read comment near the top of this file."
477 # else
478 # define wxUSE_CHECKBOX 0
479 # endif
480 #endif /* !defined(wxUSE_CHECKBOX) */
481
482 #ifndef wxUSE_CHECKLISTBOX
483 # ifdef wxABORT_ON_CONFIG_ERROR
484 # error "wxUSE_CHECKLISTBOX must be defined, please read comment near the top of this file."
485 # else
486 # define wxUSE_CHECKLISTBOX 0
487 # endif
488 #endif /* !defined(wxUSE_CHECKLISTBOX) */
489
490 #ifndef wxUSE_CHOICE
491 # ifdef wxABORT_ON_CONFIG_ERROR
492 # error "wxUSE_CHOICE must be defined, please read comment near the top of this file."
493 # else
494 # define wxUSE_CHOICE 0
495 # endif
496 #endif /* !defined(wxUSE_CHOICE) */
497
498 #ifndef wxUSE_CHOICEBOOK
499 # ifdef wxABORT_ON_CONFIG_ERROR
500 # error "wxUSE_CHOICEBOOK must be defined, please read comment near the top of this file."
501 # else
502 # define wxUSE_CHOICEBOOK 0
503 # endif
504 #endif /* !defined(wxUSE_CHOICEBOOK) */
505
506 #ifndef wxUSE_CHOICEDLG
507 # ifdef wxABORT_ON_CONFIG_ERROR
508 # error "wxUSE_CHOICEDLG must be defined, please read comment near the top of this file."
509 # else
510 # define wxUSE_CHOICEDLG 0
511 # endif
512 #endif /* !defined(wxUSE_CHOICEDLG) */
513
514 #ifndef wxUSE_CLIPBOARD
515 # ifdef wxABORT_ON_CONFIG_ERROR
516 # error "wxUSE_CLIPBOARD must be defined, please read comment near the top of this file."
517 # else
518 # define wxUSE_CLIPBOARD 0
519 # endif
520 #endif /* !defined(wxUSE_CLIPBOARD) */
521
522 #ifndef wxUSE_COLLPANE
523 # ifdef wxABORT_ON_CONFIG_ERROR
524 # error "wxUSE_COLLPANE must be defined, please read comment near the top of this file."
525 # else
526 # define wxUSE_COLLPANE 0
527 # endif
528 #endif /* !defined(wxUSE_COLLPANE) */
529
530 #ifndef wxUSE_COLOURDLG
531 # ifdef wxABORT_ON_CONFIG_ERROR
532 # error "wxUSE_COLOURDLG must be defined, please read comment near the top of this file."
533 # else
534 # define wxUSE_COLOURDLG 0
535 # endif
536 #endif /* !defined(wxUSE_COLOURDLG) */
537
538 #ifndef wxUSE_COLOURPICKERCTRL
539 # ifdef wxABORT_ON_CONFIG_ERROR
540 # error "wxUSE_COLOURPICKERCTRL must be defined, please read comment near the top of this file."
541 # else
542 # define wxUSE_COLOURPICKERCTRL 0
543 # endif
544 #endif /* !defined(wxUSE_COLOURPICKERCTRL) */
545
546 #ifndef wxUSE_COMBOBOX
547 # ifdef wxABORT_ON_CONFIG_ERROR
548 # error "wxUSE_COMBOBOX must be defined, please read comment near the top of this file."
549 # else
550 # define wxUSE_COMBOBOX 0
551 # endif
552 #endif /* !defined(wxUSE_COMBOBOX) */
553
554 #ifndef wxUSE_COMMANDLINKBUTTON
555 # ifdef wxABORT_ON_CONFIG_ERROR
556 # error "wxUSE_COMMANDLINKBUTTON must be defined, please read comment near the top of this file."
557 # else
558 # define wxUSE_COMMANDLINKBUTTON 0
559 # endif
560 #endif /* !defined(wxUSE_COMMANDLINKBUTTON) */
561
562 #ifndef wxUSE_COMBOCTRL
563 # ifdef wxABORT_ON_CONFIG_ERROR
564 # error "wxUSE_COMBOCTRL must be defined, please read comment near the top of this file."
565 # else
566 # define wxUSE_COMBOCTRL 0
567 # endif
568 #endif /* !defined(wxUSE_COMBOCTRL) */
569
570 #ifndef wxUSE_DATAOBJ
571 # ifdef wxABORT_ON_CONFIG_ERROR
572 # error "wxUSE_DATAOBJ must be defined, please read comment near the top of this file."
573 # else
574 # define wxUSE_DATAOBJ 0
575 # endif
576 #endif /* !defined(wxUSE_DATAOBJ) */
577
578 #ifndef wxUSE_DATAVIEWCTRL
579 # ifdef wxABORT_ON_CONFIG_ERROR
580 # error "wxUSE_DATAVIEWCTRL must be defined, please read comment near the top of this file."
581 # else
582 # define wxUSE_DATAVIEWCTRL 0
583 # endif
584 #endif /* !defined(wxUSE_DATAVIEWCTRL) */
585
586 #ifndef wxUSE_DATEPICKCTRL
587 # ifdef wxABORT_ON_CONFIG_ERROR
588 # error "wxUSE_DATEPICKCTRL must be defined, please read comment near the top of this file."
589 # else
590 # define wxUSE_DATEPICKCTRL 0
591 # endif
592 #endif /* !defined(wxUSE_DATEPICKCTRL) */
593
594 #ifndef wxUSE_DIRPICKERCTRL
595 # ifdef wxABORT_ON_CONFIG_ERROR
596 # error "wxUSE_DIRPICKERCTRL must be defined, please read comment near the top of this file."
597 # else
598 # define wxUSE_DIRPICKERCTRL 0
599 # endif
600 #endif /* !defined(wxUSE_DIRPICKERCTRL) */
601
602 #ifndef wxUSE_DISPLAY
603 # ifdef wxABORT_ON_CONFIG_ERROR
604 # error "wxUSE_DISPLAY must be defined, please read comment near the top of this file."
605 # else
606 # define wxUSE_DISPLAY 0
607 # endif
608 #endif /* !defined(wxUSE_DISPLAY) */
609
610 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
611 # ifdef wxABORT_ON_CONFIG_ERROR
612 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined, please read comment near the top of this file."
613 # else
614 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
615 # endif
616 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
617
618 #ifndef wxUSE_FILECTRL
619 # ifdef wxABORT_ON_CONFIG_ERROR
620 # error "wxUSE_FILECTRL must be defined, please read comment near the top of this file."
621 # else
622 # define wxUSE_FILECTRL 0
623 # endif
624 #endif /* !defined(wxUSE_FILECTRL) */
625
626 #ifndef wxUSE_FILEDLG
627 # ifdef wxABORT_ON_CONFIG_ERROR
628 # error "wxUSE_FILEDLG must be defined, please read comment near the top of this file."
629 # else
630 # define wxUSE_FILEDLG 0
631 # endif
632 #endif /* !defined(wxUSE_FILEDLG) */
633
634 #ifndef wxUSE_FILEPICKERCTRL
635 # ifdef wxABORT_ON_CONFIG_ERROR
636 # error "wxUSE_FILEPICKERCTRL must be defined, please read comment near the top of this file."
637 # else
638 # define wxUSE_FILEPICKERCTRL 0
639 # endif
640 #endif /* !defined(wxUSE_FILEPICKERCTRL) */
641
642 #ifndef wxUSE_FONTDLG
643 # ifdef wxABORT_ON_CONFIG_ERROR
644 # error "wxUSE_FONTDLG must be defined, please read comment near the top of this file."
645 # else
646 # define wxUSE_FONTDLG 0
647 # endif
648 #endif /* !defined(wxUSE_FONTDLG) */
649
650 #ifndef wxUSE_FONTMAP
651 # ifdef wxABORT_ON_CONFIG_ERROR
652 # error "wxUSE_FONTMAP must be defined, please read comment near the top of this file."
653 # else
654 # define wxUSE_FONTMAP 0
655 # endif
656 #endif /* !defined(wxUSE_FONTMAP) */
657
658 #ifndef wxUSE_FONTPICKERCTRL
659 # ifdef wxABORT_ON_CONFIG_ERROR
660 # error "wxUSE_FONTPICKERCTRL must be defined, please read comment near the top of this file."
661 # else
662 # define wxUSE_FONTPICKERCTRL 0
663 # endif
664 #endif /* !defined(wxUSE_FONTPICKERCTRL) */
665
666 #ifndef wxUSE_GAUGE
667 # ifdef wxABORT_ON_CONFIG_ERROR
668 # error "wxUSE_GAUGE must be defined, please read comment near the top of this file."
669 # else
670 # define wxUSE_GAUGE 0
671 # endif
672 #endif /* !defined(wxUSE_GAUGE) */
673
674 #ifndef wxUSE_GRAPHICS_CONTEXT
675 # ifdef wxABORT_ON_CONFIG_ERROR
676 # error "wxUSE_GRAPHICS_CONTEXT must be defined, please read comment near the top of this file."
677 # else
678 # define wxUSE_GRAPHICS_CONTEXT 0
679 # endif
680 #endif /* !defined(wxUSE_GRAPHICS_CONTEXT) */
681
682
683 #ifndef wxUSE_GRID
684 # ifdef wxABORT_ON_CONFIG_ERROR
685 # error "wxUSE_GRID must be defined, please read comment near the top of this file."
686 # else
687 # define wxUSE_GRID 0
688 # endif
689 #endif /* !defined(wxUSE_GRID) */
690
691 #ifndef wxUSE_HEADERCTRL
692 # ifdef wxABORT_ON_CONFIG_ERROR
693 # error "wxUSE_HEADERCTRL must be defined, please read comment near the top of this file."
694 # else
695 # define wxUSE_HEADERCTRL 0
696 # endif
697 #endif /* !defined(wxUSE_HEADERCTRL) */
698
699 #ifndef wxUSE_HELP
700 # ifdef wxABORT_ON_CONFIG_ERROR
701 # error "wxUSE_HELP must be defined, please read comment near the top of this file."
702 # else
703 # define wxUSE_HELP 0
704 # endif
705 #endif /* !defined(wxUSE_HELP) */
706
707 #ifndef wxUSE_HYPERLINKCTRL
708 # ifdef wxABORT_ON_CONFIG_ERROR
709 # error "wxUSE_HYPERLINKCTRL must be defined, please read comment near the top of this file."
710 # else
711 # define wxUSE_HYPERLINKCTRL 0
712 # endif
713 #endif /* !defined(wxUSE_HYPERLINKCTRL) */
714
715 #ifndef wxUSE_HTML
716 # ifdef wxABORT_ON_CONFIG_ERROR
717 # error "wxUSE_HTML must be defined, please read comment near the top of this file."
718 # else
719 # define wxUSE_HTML 0
720 # endif
721 #endif /* !defined(wxUSE_HTML) */
722
723 #ifndef wxUSE_LIBMSPACK
724 # if !defined(__UNIX__) || defined(__WXPALMOS__)
725 /* set to 0 on platforms that don't have libmspack */
726 # define wxUSE_LIBMSPACK 0
727 # else
728 # ifdef wxABORT_ON_CONFIG_ERROR
729 # error "wxUSE_LIBMSPACK must be defined, please read comment near the top of this file."
730 # else
731 # define wxUSE_LIBMSPACK 0
732 # endif
733 # endif
734 #endif /* !defined(wxUSE_LIBMSPACK) */
735
736 #ifndef wxUSE_ICO_CUR
737 # ifdef wxABORT_ON_CONFIG_ERROR
738 # error "wxUSE_ICO_CUR must be defined, please read comment near the top of this file."
739 # else
740 # define wxUSE_ICO_CUR 0
741 # endif
742 #endif /* !defined(wxUSE_ICO_CUR) */
743
744 #ifndef wxUSE_IFF
745 # ifdef wxABORT_ON_CONFIG_ERROR
746 # error "wxUSE_IFF must be defined, please read comment near the top of this file."
747 # else
748 # define wxUSE_IFF 0
749 # endif
750 #endif /* !defined(wxUSE_IFF) */
751
752 #ifndef wxUSE_IMAGLIST
753 # ifdef wxABORT_ON_CONFIG_ERROR
754 # error "wxUSE_IMAGLIST must be defined, please read comment near the top of this file."
755 # else
756 # define wxUSE_IMAGLIST 0
757 # endif
758 #endif /* !defined(wxUSE_IMAGLIST) */
759
760 #ifndef wxUSE_INFOBAR
761 # ifdef wxABORT_ON_CONFIG_ERROR
762 # error "wxUSE_INFOBAR must be defined, please read comment near the top of this file."
763 # else
764 # define wxUSE_INFOBAR 0
765 # endif
766 #endif /* !defined(wxUSE_INFOBAR) */
767
768 #ifndef wxUSE_JOYSTICK
769 # ifdef wxABORT_ON_CONFIG_ERROR
770 # error "wxUSE_JOYSTICK must be defined, please read comment near the top of this file."
771 # else
772 # define wxUSE_JOYSTICK 0
773 # endif
774 #endif /* !defined(wxUSE_JOYSTICK) */
775
776 #ifndef wxUSE_LISTBOOK
777 # ifdef wxABORT_ON_CONFIG_ERROR
778 # error "wxUSE_LISTBOOK must be defined, please read comment near the top of this file."
779 # else
780 # define wxUSE_LISTBOOK 0
781 # endif
782 #endif /* !defined(wxUSE_LISTBOOK) */
783
784 #ifndef wxUSE_LISTBOX
785 # ifdef wxABORT_ON_CONFIG_ERROR
786 # error "wxUSE_LISTBOX must be defined, please read comment near the top of this file."
787 # else
788 # define wxUSE_LISTBOX 0
789 # endif
790 #endif /* !defined(wxUSE_LISTBOX) */
791
792 #ifndef wxUSE_LISTCTRL
793 # ifdef wxABORT_ON_CONFIG_ERROR
794 # error "wxUSE_LISTCTRL must be defined, please read comment near the top of this file."
795 # else
796 # define wxUSE_LISTCTRL 0
797 # endif
798 #endif /* !defined(wxUSE_LISTCTRL) */
799
800 #ifndef wxUSE_LOGGUI
801 # ifdef wxABORT_ON_CONFIG_ERROR
802 # error "wxUSE_LOGGUI must be defined, please read comment near the top of this file."
803 # else
804 # define wxUSE_LOGGUI 0
805 # endif
806 #endif /* !defined(wxUSE_LOGGUI) */
807
808 #ifndef wxUSE_LOGWINDOW
809 # ifdef wxABORT_ON_CONFIG_ERROR
810 # error "wxUSE_LOGWINDOW must be defined, please read comment near the top of this file."
811 # else
812 # define wxUSE_LOGWINDOW 0
813 # endif
814 #endif /* !defined(wxUSE_LOGWINDOW) */
815
816 #ifndef wxUSE_LOG_DIALOG
817 # ifdef wxABORT_ON_CONFIG_ERROR
818 # error "wxUSE_LOG_DIALOG must be defined, please read comment near the top of this file."
819 # else
820 # define wxUSE_LOG_DIALOG 0
821 # endif
822 #endif /* !defined(wxUSE_LOG_DIALOG) */
823
824 #ifndef wxUSE_MDI
825 # ifdef wxABORT_ON_CONFIG_ERROR
826 # error "wxUSE_MDI must be defined, please read comment near the top of this file."
827 # else
828 # define wxUSE_MDI 0
829 # endif
830 #endif /* !defined(wxUSE_MDI) */
831
832 #ifndef wxUSE_MDI_ARCHITECTURE
833 # ifdef wxABORT_ON_CONFIG_ERROR
834 # error "wxUSE_MDI_ARCHITECTURE must be defined, please read comment near the top of this file."
835 # else
836 # define wxUSE_MDI_ARCHITECTURE 0
837 # endif
838 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
839
840 #ifndef wxUSE_MENUS
841 # ifdef wxABORT_ON_CONFIG_ERROR
842 # error "wxUSE_MENUS must be defined, please read comment near the top of this file."
843 # else
844 # define wxUSE_MENUS 0
845 # endif
846 #endif /* !defined(wxUSE_MENUS) */
847
848 #ifndef wxUSE_MSGDLG
849 # ifdef wxABORT_ON_CONFIG_ERROR
850 # error "wxUSE_MSGDLG must be defined, please read comment near the top of this file."
851 # else
852 # define wxUSE_MSGDLG 0
853 # endif
854 #endif /* !defined(wxUSE_MSGDLG) */
855
856 #ifndef wxUSE_NOTEBOOK
857 # ifdef wxABORT_ON_CONFIG_ERROR
858 # error "wxUSE_NOTEBOOK must be defined, please read comment near the top of this file."
859 # else
860 # define wxUSE_NOTEBOOK 0
861 # endif
862 #endif /* !defined(wxUSE_NOTEBOOK) */
863
864 #ifndef wxUSE_NOTIFICATION_MESSAGE
865 # ifdef wxABORT_ON_CONFIG_ERROR
866 # error "wxUSE_NOTIFICATION_MESSAGE must be defined, please read comment near the top of this file."
867 # else
868 # define wxUSE_NOTIFICATION_MESSAGE 0
869 # endif
870 #endif /* !defined(wxUSE_NOTIFICATION_MESSAGE) */
871
872 #ifndef wxUSE_ODCOMBOBOX
873 # ifdef wxABORT_ON_CONFIG_ERROR
874 # error "wxUSE_ODCOMBOBOX must be defined, please read comment near the top of this file."
875 # else
876 # define wxUSE_ODCOMBOBOX 0
877 # endif
878 #endif /* !defined(wxUSE_ODCOMBOBOX) */
879
880 #ifndef wxUSE_PALETTE
881 # ifdef wxABORT_ON_CONFIG_ERROR
882 # error "wxUSE_PALETTE must be defined, please read comment near the top of this file."
883 # else
884 # define wxUSE_PALETTE 0
885 # endif
886 #endif /* !defined(wxUSE_PALETTE) */
887
888 #ifndef wxUSE_POPUPWIN
889 # ifdef wxABORT_ON_CONFIG_ERROR
890 # error "wxUSE_POPUPWIN must be defined, please read comment near the top of this file."
891 # else
892 # define wxUSE_POPUPWIN 0
893 # endif
894 #endif /* !defined(wxUSE_POPUPWIN) */
895
896 #ifndef wxUSE_PRINTING_ARCHITECTURE
897 # ifdef wxABORT_ON_CONFIG_ERROR
898 # error "wxUSE_PRINTING_ARCHITECTURE must be defined, please read comment near the top of this file."
899 # else
900 # define wxUSE_PRINTING_ARCHITECTURE 0
901 # endif
902 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
903
904 #ifndef wxUSE_RADIOBOX
905 # ifdef wxABORT_ON_CONFIG_ERROR
906 # error "wxUSE_RADIOBOX must be defined, please read comment near the top of this file."
907 # else
908 # define wxUSE_RADIOBOX 0
909 # endif
910 #endif /* !defined(wxUSE_RADIOBOX) */
911
912 #ifndef wxUSE_RADIOBTN
913 # ifdef wxABORT_ON_CONFIG_ERROR
914 # error "wxUSE_RADIOBTN must be defined, please read comment near the top of this file."
915 # else
916 # define wxUSE_RADIOBTN 0
917 # endif
918 #endif /* !defined(wxUSE_RADIOBTN) */
919
920 #ifndef wxUSE_REARRANGECTRL
921 # ifdef wxABORT_ON_CONFIG_ERROR
922 # error "wxUSE_REARRANGECTRL must be defined, please read comment near the top of this file."
923 # else
924 # define wxUSE_REARRANGECTRL 0
925 # endif
926 #endif /* !defined(wxUSE_REARRANGECTRL) */
927
928 #ifndef wxUSE_RIBBON
929 # ifdef wxABORT_ON_CONFIG_ERROR
930 # error "wxUSE_RIBBON must be defined, please read comment near the top of this file."
931 # else
932 # define wxUSE_RIBBON 0
933 # endif
934 #endif /* !defined(wxUSE_RIBBON) */
935
936 #ifndef wxUSE_RICHMSGDLG
937 # ifdef wxABORT_ON_CONFIG_ERROR
938 # error "wxUSE_RICHMSGDLG must be defined, please read comment near the top of this file."
939 # else
940 # define wxUSE_RICHMSGDLG 0
941 # endif
942 #endif /* !defined(wxUSE_RIBBON) */
943
944 #ifndef wxUSE_SASH
945 # ifdef wxABORT_ON_CONFIG_ERROR
946 # error "wxUSE_SASH must be defined, please read comment near the top of this file."
947 # else
948 # define wxUSE_SASH 0
949 # endif
950 #endif /* !defined(wxUSE_SASH) */
951
952 #ifndef wxUSE_SCROLLBAR
953 # ifdef wxABORT_ON_CONFIG_ERROR
954 # error "wxUSE_SCROLLBAR must be defined, please read comment near the top of this file."
955 # else
956 # define wxUSE_SCROLLBAR 0
957 # endif
958 #endif /* !defined(wxUSE_SCROLLBAR) */
959
960 #ifndef wxUSE_SLIDER
961 # ifdef wxABORT_ON_CONFIG_ERROR
962 # error "wxUSE_SLIDER must be defined, please read comment near the top of this file."
963 # else
964 # define wxUSE_SLIDER 0
965 # endif
966 #endif /* !defined(wxUSE_SLIDER) */
967
968 #ifndef wxUSE_SOUND
969 # ifdef wxABORT_ON_CONFIG_ERROR
970 # error "wxUSE_SOUND must be defined, please read comment near the top of this file."
971 # else
972 # define wxUSE_SOUND 0
973 # endif
974 #endif /* !defined(wxUSE_SOUND) */
975
976 #ifndef wxUSE_SPINBTN
977 # ifdef wxABORT_ON_CONFIG_ERROR
978 # error "wxUSE_SPINBTN must be defined, please read comment near the top of this file."
979 # else
980 # define wxUSE_SPINBTN 0
981 # endif
982 #endif /* !defined(wxUSE_SPINBTN) */
983
984 #ifndef wxUSE_SPINCTRL
985 # ifdef wxABORT_ON_CONFIG_ERROR
986 # error "wxUSE_SPINCTRL must be defined, please read comment near the top of this file."
987 # else
988 # define wxUSE_SPINCTRL 0
989 # endif
990 #endif /* !defined(wxUSE_SPINCTRL) */
991
992 #ifndef wxUSE_SPLASH
993 # ifdef wxABORT_ON_CONFIG_ERROR
994 # error "wxUSE_SPLASH must be defined, please read comment near the top of this file."
995 # else
996 # define wxUSE_SPLASH 0
997 # endif
998 #endif /* !defined(wxUSE_SPLASH) */
999
1000 #ifndef wxUSE_SPLITTER
1001 # ifdef wxABORT_ON_CONFIG_ERROR
1002 # error "wxUSE_SPLITTER must be defined, please read comment near the top of this file."
1003 # else
1004 # define wxUSE_SPLITTER 0
1005 # endif
1006 #endif /* !defined(wxUSE_SPLITTER) */
1007
1008 #ifndef wxUSE_STATBMP
1009 # ifdef wxABORT_ON_CONFIG_ERROR
1010 # error "wxUSE_STATBMP must be defined, please read comment near the top of this file."
1011 # else
1012 # define wxUSE_STATBMP 0
1013 # endif
1014 #endif /* !defined(wxUSE_STATBMP) */
1015
1016 #ifndef wxUSE_STATBOX
1017 # ifdef wxABORT_ON_CONFIG_ERROR
1018 # error "wxUSE_STATBOX must be defined, please read comment near the top of this file."
1019 # else
1020 # define wxUSE_STATBOX 0
1021 # endif
1022 #endif /* !defined(wxUSE_STATBOX) */
1023
1024 #ifndef wxUSE_STATLINE
1025 # ifdef wxABORT_ON_CONFIG_ERROR
1026 # error "wxUSE_STATLINE must be defined, please read comment near the top of this file."
1027 # else
1028 # define wxUSE_STATLINE 0
1029 # endif
1030 #endif /* !defined(wxUSE_STATLINE) */
1031
1032 #ifndef wxUSE_STATTEXT
1033 # ifdef wxABORT_ON_CONFIG_ERROR
1034 # error "wxUSE_STATTEXT must be defined, please read comment near the top of this file."
1035 # else
1036 # define wxUSE_STATTEXT 0
1037 # endif
1038 #endif /* !defined(wxUSE_STATTEXT) */
1039
1040 #ifndef wxUSE_STATUSBAR
1041 # ifdef wxABORT_ON_CONFIG_ERROR
1042 # error "wxUSE_STATUSBAR must be defined, please read comment near the top of this file."
1043 # else
1044 # define wxUSE_STATUSBAR 0
1045 # endif
1046 #endif /* !defined(wxUSE_STATUSBAR) */
1047
1048 #ifndef wxUSE_TASKBARICON
1049 # ifdef wxABORT_ON_CONFIG_ERROR
1050 # error "wxUSE_TASKBARICON must be defined, please read comment near the top of this file."
1051 # else
1052 # define wxUSE_TASKBARICON 0
1053 # endif
1054 #endif /* !defined(wxUSE_TASKBARICON) */
1055
1056 #ifndef wxUSE_TEXTCTRL
1057 # ifdef wxABORT_ON_CONFIG_ERROR
1058 # error "wxUSE_TEXTCTRL must be defined, please read comment near the top of this file."
1059 # else
1060 # define wxUSE_TEXTCTRL 0
1061 # endif
1062 #endif /* !defined(wxUSE_TEXTCTRL) */
1063
1064 #ifndef wxUSE_TIPWINDOW
1065 # ifdef wxABORT_ON_CONFIG_ERROR
1066 # error "wxUSE_TIPWINDOW must be defined, please read comment near the top of this file."
1067 # else
1068 # define wxUSE_TIPWINDOW 0
1069 # endif
1070 #endif /* !defined(wxUSE_TIPWINDOW) */
1071
1072 #ifndef wxUSE_TOOLBAR
1073 # ifdef wxABORT_ON_CONFIG_ERROR
1074 # error "wxUSE_TOOLBAR must be defined, please read comment near the top of this file."
1075 # else
1076 # define wxUSE_TOOLBAR 0
1077 # endif
1078 #endif /* !defined(wxUSE_TOOLBAR) */
1079
1080 #ifndef wxUSE_TOOLTIPS
1081 # ifdef wxABORT_ON_CONFIG_ERROR
1082 # error "wxUSE_TOOLTIPS must be defined, please read comment near the top of this file."
1083 # else
1084 # define wxUSE_TOOLTIPS 0
1085 # endif
1086 #endif /* !defined(wxUSE_TOOLTIPS) */
1087
1088 #ifndef wxUSE_TREECTRL
1089 # ifdef wxABORT_ON_CONFIG_ERROR
1090 # error "wxUSE_TREECTRL must be defined, please read comment near the top of this file."
1091 # else
1092 # define wxUSE_TREECTRL 0
1093 # endif
1094 #endif /* !defined(wxUSE_TREECTRL) */
1095
1096 #ifndef wxUSE_UIACTIONSIMULATOR
1097 # ifdef wxABORT_ON_CONFIG_ERROR
1098 # error "wxUSE_UIACTIONSIMULATOR must be defined, please read comment near the top of this file."
1099 # else
1100 # define wxUSE_UIACTIONSIMULATOR 0
1101 # endif
1102 #endif /* !defined(wxUSE_UIACTIONSIMULATOR) */
1103
1104 #ifndef wxUSE_VALIDATORS
1105 # ifdef wxABORT_ON_CONFIG_ERROR
1106 # error "wxUSE_VALIDATORS must be defined, please read comment near the top of this file."
1107 # else
1108 # define wxUSE_VALIDATORS 0
1109 # endif
1110 #endif /* !defined(wxUSE_VALIDATORS) */
1111
1112 #ifndef wxUSE_WXHTML_HELP
1113 # ifdef wxABORT_ON_CONFIG_ERROR
1114 # error "wxUSE_WXHTML_HELP must be defined, please read comment near the top of this file."
1115 # else
1116 # define wxUSE_WXHTML_HELP 0
1117 # endif
1118 #endif /* !defined(wxUSE_WXHTML_HELP) */
1119
1120 #ifndef wxUSE_XRC
1121 # ifdef wxABORT_ON_CONFIG_ERROR
1122 # error "wxUSE_XRC must be defined, please read comment near the top of this file."
1123 # else
1124 # define wxUSE_XRC 0
1125 # endif
1126 #endif /* !defined(wxUSE_XRC) */
1127
1128 #endif /* wxUSE_GUI */
1129
1130 /*
1131 Section 2: platform-specific checks.
1132
1133 This must be done after checking that everything is defined as the platform
1134 checks use wxUSE_XXX symbols in #if tests.
1135 */
1136
1137 #if defined(__WXPALMOS__)
1138 # include "wx/palmos/chkconf.h"
1139 #elif defined(__WXWINCE__)
1140 # include "wx/msw/wince/chkconf.h"
1141 #elif defined(__WXMSW__)
1142 # include "wx/msw/chkconf.h"
1143 #elif defined(__WXGTK__)
1144 # include "wx/gtk/chkconf.h"
1145 #elif defined(__WXCOCOA__)
1146 # include "wx/cocoa/chkconf.h"
1147 #elif defined(__WXMAC__)
1148 # include "wx/osx/chkconf.h"
1149 #elif defined(__OS2__)
1150 # include "wx/os2/chkconf.h"
1151 #elif defined(__WXMGL__)
1152 # include "wx/mgl/chkconf.h"
1153 #elif defined(__WXDFB__)
1154 # include "wx/dfb/chkconf.h"
1155 #elif defined(__WXMOTIF__)
1156 # include "wx/motif/chkconf.h"
1157 #elif defined(__WXX11__)
1158 # include "wx/x11/chkconf.h"
1159 #endif
1160
1161 /*
1162 __UNIX__ is also defined under Cygwin but we shouldn't perform these checks
1163 there if we're building wxMSW.
1164 */
1165 #if defined(__UNIX__) && !defined(__WXMSW__)
1166 # include "wx/unix/chkconf.h"
1167 #endif
1168
1169 #ifdef __WXUNIVERSAL__
1170 # include "wx/univ/chkconf.h"
1171 #endif
1172
1173 /*
1174 Section 3a: check consistency of the non-GUI settings.
1175 */
1176
1177 #if WXWIN_COMPATIBILITY_2_6
1178 # if !WXWIN_COMPATIBILITY_2_8
1179 # ifdef wxABORT_ON_CONFIG_ERROR
1180 # error "2.6.X compatibility requires 2.8.X compatibility"
1181 # else
1182 # undef WXWIN_COMPATIBILITY_2_8
1183 # define WXWIN_COMPATIBILITY_2_8 1
1184 # endif
1185 # endif
1186 #endif /* WXWIN_COMPATIBILITY_2_6 */
1187
1188 #if wxUSE_ARCHIVE_STREAMS
1189 # if !wxUSE_DATETIME
1190 # ifdef wxABORT_ON_CONFIG_ERROR
1191 # error "wxArchive requires wxUSE_DATETIME"
1192 # else
1193 # undef wxUSE_ARCHIVE_STREAMS
1194 # define wxUSE_ARCHIVE_STREAMS 0
1195 # endif
1196 # endif
1197 #endif /* wxUSE_ARCHIVE_STREAMS */
1198
1199 #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
1200 # if !wxUSE_PROTOCOL
1201 # ifdef wxABORT_ON_CONFIG_ERROR
1202 # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
1203 # else
1204 # undef wxUSE_PROTOCOL
1205 # define wxUSE_PROTOCOL 1
1206 # endif
1207 # endif
1208 #endif /* wxUSE_PROTOCOL_XXX */
1209
1210 #if wxUSE_URL
1211 # if !wxUSE_PROTOCOL
1212 # ifdef wxABORT_ON_CONFIG_ERROR
1213 # error "wxUSE_URL requires wxUSE_PROTOCOL"
1214 # else
1215 # undef wxUSE_PROTOCOL
1216 # define wxUSE_PROTOCOL 1
1217 # endif
1218 # endif
1219 #endif /* wxUSE_URL */
1220
1221 #if wxUSE_PROTOCOL
1222 # if !wxUSE_SOCKETS
1223 # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
1224 # ifdef wxABORT_ON_CONFIG_ERROR
1225 # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
1226 # else
1227 # undef wxUSE_SOCKETS
1228 # define wxUSE_SOCKETS 1
1229 # endif
1230 # endif
1231 # endif
1232
1233 # if !wxUSE_STREAMS
1234 # ifdef wxABORT_ON_CONFIG_ERROR
1235 # error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
1236 # else
1237 # undef wxUSE_STREAMS
1238 # define wxUSE_STREAMS 1
1239 # endif
1240 # endif
1241 #endif /* wxUSE_PROTOCOL */
1242
1243 /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
1244 #if wxUSE_HTML
1245 # if !wxUSE_FILESYSTEM
1246 # ifdef wxABORT_ON_CONFIG_ERROR
1247 # error "wxHTML requires wxFileSystem"
1248 # else
1249 # undef wxUSE_FILESYSTEM
1250 # define wxUSE_FILESYSTEM 1
1251 # endif
1252 # endif
1253 #endif /* wxUSE_HTML */
1254
1255 #if wxUSE_FS_ARCHIVE
1256 # if !wxUSE_FILESYSTEM
1257 # ifdef wxABORT_ON_CONFIG_ERROR
1258 # error "wxArchiveFSHandler requires wxFileSystem"
1259 # else
1260 # undef wxUSE_FILESYSTEM
1261 # define wxUSE_FILESYSTEM 1
1262 # endif
1263 # endif
1264 # if !wxUSE_ARCHIVE_STREAMS
1265 # ifdef wxABORT_ON_CONFIG_ERROR
1266 # error "wxArchiveFSHandler requires wxArchive"
1267 # else
1268 # undef wxUSE_ARCHIVE_STREAMS
1269 # define wxUSE_ARCHIVE_STREAMS 1
1270 # endif
1271 # endif
1272 #endif /* wxUSE_FS_ARCHIVE */
1273
1274 #if wxUSE_FILESYSTEM
1275 # if !wxUSE_STREAMS
1276 # ifdef wxABORT_ON_CONFIG_ERROR
1277 # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
1278 # else
1279 # undef wxUSE_STREAMS
1280 # define wxUSE_STREAMS 1
1281 # endif
1282 # endif
1283 # if !wxUSE_FILE && !wxUSE_FFILE
1284 # ifdef wxABORT_ON_CONFIG_ERROR
1285 # error "wxUSE_FILESYSTEM requires either wxUSE_FILE or wxUSE_FFILE"
1286 # else
1287 # undef wxUSE_FILE
1288 # define wxUSE_FILE 1
1289 # undef wxUSE_FFILE
1290 # define wxUSE_FFILE 1
1291 # endif
1292 # endif
1293 #endif /* wxUSE_FILESYSTEM */
1294
1295 #if wxUSE_FS_INET
1296 # if !wxUSE_PROTOCOL
1297 # ifdef wxABORT_ON_CONFIG_ERROR
1298 # error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
1299 # else
1300 # undef wxUSE_PROTOCOL
1301 # define wxUSE_PROTOCOL 1
1302 # endif
1303 # endif
1304 #endif /* wxUSE_FS_INET */
1305
1306 #if wxUSE_STOPWATCH || wxUSE_DATETIME
1307 # if !wxUSE_LONGLONG
1308 # ifdef wxABORT_ON_CONFIG_ERROR
1309 # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
1310 # else
1311 # undef wxUSE_LONGLONG
1312 # define wxUSE_LONGLONG 1
1313 # endif
1314 # endif
1315 #endif /* wxUSE_STOPWATCH */
1316
1317 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
1318 # ifdef wxABORT_ON_CONFIG_ERROR
1319 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
1320 # else
1321 # undef wxUSE_TEXTFILE
1322 # define wxUSE_TEXTFILE 1
1323 # endif
1324 #endif /* wxUSE_MIMETYPE */
1325
1326 #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
1327 # ifdef wxABORT_ON_CONFIG_ERROR
1328 # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
1329 # else
1330 # undef wxUSE_TEXTBUFFER
1331 # define wxUSE_TEXTBUFFER 1
1332 # endif
1333 #endif /* wxUSE_TEXTFILE */
1334
1335 #if wxUSE_TEXTFILE && !wxUSE_FILE
1336 # ifdef wxABORT_ON_CONFIG_ERROR
1337 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
1338 # else
1339 # undef wxUSE_FILE
1340 # define wxUSE_FILE 1
1341 # endif
1342 #endif /* wxUSE_TEXTFILE */
1343
1344 #if !wxUSE_DYNLIB_CLASS
1345 # if wxUSE_DYNAMIC_LOADER
1346 # ifdef wxABORT_ON_CONFIG_ERROR
1347 # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
1348 # else
1349 # define wxUSE_DYNLIB_CLASS 1
1350 # endif
1351 # endif
1352 #endif /* wxUSE_DYNLIB_CLASS */
1353
1354 #if wxUSE_ZIPSTREAM
1355 # if !wxUSE_ZLIB
1356 # ifdef wxABORT_ON_CONFIG_ERROR
1357 # error "wxZip requires wxZlib"
1358 # else
1359 # undef wxUSE_ZLIB
1360 # define wxUSE_ZLIB 1
1361 # endif
1362 # endif
1363 # if !wxUSE_ARCHIVE_STREAMS
1364 # ifdef wxABORT_ON_CONFIG_ERROR
1365 # error "wxZip requires wxArchive"
1366 # else
1367 # undef wxUSE_ARCHIVE_STREAMS
1368 # define wxUSE_ARCHIVE_STREAMS 1
1369 # endif
1370 # endif
1371 #endif /* wxUSE_ZIPSTREAM */
1372
1373 #if wxUSE_TARSTREAM
1374 # if !wxUSE_ARCHIVE_STREAMS
1375 # ifdef wxABORT_ON_CONFIG_ERROR
1376 # error "wxTar requires wxArchive"
1377 # else
1378 # undef wxUSE_ARCHIVE_STREAMS
1379 # define wxUSE_ARCHIVE_STREAMS 1
1380 # endif
1381 # endif
1382 #endif /* wxUSE_TARSTREAM */
1383
1384 /*
1385 Section 3b: the tests for the GUI settings only.
1386 */
1387 #if wxUSE_GUI
1388
1389 #if wxUSE_ACCESSIBILITY && !defined(__WXMSW__) && !defined(__GCCXML__)
1390 # ifdef wxABORT_ON_CONFIG_ERROR
1391 # error "wxUSE_ACCESSIBILITY is currently only supported under wxMSW"
1392 # else
1393 # undef wxUSE_ACCESSIBILITY
1394 # define wxUSE_ACCESSIBILITY 0
1395 # endif
1396 #endif /* wxUSE_ACCESSIBILITY */
1397
1398 #if wxUSE_BUTTON || \
1399 wxUSE_CALENDARCTRL || \
1400 wxUSE_CARET || \
1401 wxUSE_COMBOBOX || \
1402 wxUSE_BMPBUTTON || \
1403 wxUSE_CHECKBOX || \
1404 wxUSE_CHECKLISTBOX || \
1405 wxUSE_CHOICE || \
1406 wxUSE_GAUGE || \
1407 wxUSE_GRID || \
1408 wxUSE_HEADERCTRL || \
1409 wxUSE_LISTBOX || \
1410 wxUSE_LISTCTRL || \
1411 wxUSE_NOTEBOOK || \
1412 wxUSE_RADIOBOX || \
1413 wxUSE_RADIOBTN || \
1414 wxUSE_REARRANGECTRL || \
1415 wxUSE_SCROLLBAR || \
1416 wxUSE_SLIDER || \
1417 wxUSE_SPINBTN || \
1418 wxUSE_SPINCTRL || \
1419 wxUSE_STATBMP || \
1420 wxUSE_STATBOX || \
1421 wxUSE_STATLINE || \
1422 wxUSE_STATTEXT || \
1423 wxUSE_STATUSBAR || \
1424 wxUSE_TEXTCTRL || \
1425 wxUSE_TOOLBAR || \
1426 wxUSE_TREECTRL
1427 # if !wxUSE_CONTROLS
1428 # ifdef wxABORT_ON_CONFIG_ERROR
1429 # error "wxUSE_CONTROLS unset but some controls used"
1430 # else
1431 # undef wxUSE_CONTROLS
1432 # define wxUSE_CONTROLS 1
1433 # endif
1434 # endif
1435 #endif /* controls */
1436
1437 #if wxUSE_BMPBUTTON
1438 # if !wxUSE_BUTTON
1439 # ifdef wxABORT_ON_CONFIG_ERROR
1440 # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1441 # else
1442 # undef wxUSE_BUTTON
1443 # define wxUSE_BUTTON 1
1444 # endif
1445 # endif
1446 #endif /* wxUSE_BMPBUTTON */
1447
1448 #if wxUSE_COMMANDLINKBUTTON
1449 # if !wxUSE_BUTTON
1450 # ifdef wxABORT_ON_CONFIG_ERROR
1451 # error "wxUSE_COMMANDLINKBUTTON requires wxUSE_BUTTON"
1452 # else
1453 # undef wxUSE_BUTTON
1454 # define wxUSE_BUTTON 1
1455 # endif
1456 # endif
1457 #endif /* wxUSE_COMMANDLINKBUTTON */
1458
1459 /*
1460 wxUSE_BOOKCTRL should be only used if any of the controls deriving from it
1461 are used
1462 */
1463 #ifdef wxUSE_BOOKCTRL
1464 # ifdef wxABORT_ON_CONFIG_ERROR
1465 # error "wxUSE_BOOKCTRL is defined automatically, don't define it"
1466 # else
1467 # undef wxUSE_BOOKCTRL
1468 # endif
1469 #endif
1470
1471 #define wxUSE_BOOKCTRL (wxUSE_NOTEBOOK || \
1472 wxUSE_LISTBOOK || \
1473 wxUSE_CHOICEBOOK || \
1474 wxUSE_TOOLBOOK || \
1475 wxUSE_TREEBOOK)
1476
1477 #if wxUSE_COLLPANE
1478 # if !wxUSE_BUTTON || !wxUSE_STATLINE
1479 # ifdef wxABORT_ON_CONFIG_ERROR
1480 # error "wxUSE_COLLPANE requires wxUSE_BUTTON and wxUSE_STATLINE"
1481 # else
1482 # undef wxUSE_COLLPANE
1483 # define wxUSE_COLLPANE 0
1484 # endif
1485 # endif
1486 #endif /* wxUSE_COLLPANE */
1487
1488 #if wxUSE_LISTBOOK
1489 # if !wxUSE_LISTCTRL
1490 # ifdef wxABORT_ON_CONFIG_ERROR
1491 # error "wxListbook requires wxListCtrl"
1492 # else
1493 # undef wxUSE_LISTCTRL
1494 # define wxUSE_LISTCTRL 1
1495 # endif
1496 # endif
1497 #endif /* wxUSE_LISTBOOK */
1498
1499 #if wxUSE_CHOICEBOOK
1500 # if !wxUSE_CHOICE
1501 # ifdef wxABORT_ON_CONFIG_ERROR
1502 # error "wxChoicebook requires wxChoice"
1503 # else
1504 # undef wxUSE_CHOICE
1505 # define wxUSE_CHOICE 1
1506 # endif
1507 # endif
1508 #endif /* wxUSE_CHOICEBOOK */
1509
1510 #if wxUSE_TOOLBOOK
1511 # if !wxUSE_TOOLBAR
1512 # ifdef wxABORT_ON_CONFIG_ERROR
1513 # error "wxToolbook requires wxToolBar"
1514 # else
1515 # undef wxUSE_TOOLBAR
1516 # define wxUSE_TOOLBAR 1
1517 # endif
1518 # endif
1519 #endif /* wxUSE_TOOLBOOK */
1520
1521 #if !wxUSE_ODCOMBOBOX
1522 # if wxUSE_BITMAPCOMBOBOX
1523 # ifdef wxABORT_ON_CONFIG_ERROR
1524 # error "wxBitmapComboBox requires wxOwnerDrawnComboBox"
1525 # else
1526 # undef wxUSE_BITMAPCOMBOBOX
1527 # define wxUSE_BITMAPCOMBOBOX 0
1528 # endif
1529 # endif
1530 #endif /* !wxUSE_ODCOMBOBOX */
1531
1532 #if !wxUSE_HEADERCTRL
1533 # if wxUSE_DATAVIEWCTRL || wxUSE_GRID
1534 # ifdef wxABORT_ON_CONFIG_ERROR
1535 # error "wxDataViewCtrl and wxGrid require wxHeaderCtrl"
1536 # else
1537 # undef wxUSE_HEADERCTRL
1538 # define wxUSE_HEADERCTRL 1
1539 # endif
1540 # endif
1541 #endif /* !wxUSE_HEADERCTRL */
1542
1543 #if wxUSE_REARRANGECTRL
1544 # if !wxUSE_CHECKLISTBOX
1545 # ifdef wxABORT_ON_CONFIG_ERROR
1546 # error "wxRearrangeCtrl requires wxCheckListBox"
1547 # else
1548 # undef wxUSE_REARRANGECTRL
1549 # define wxUSE_REARRANGECTRL 0
1550 # endif
1551 # endif
1552 #endif /* wxUSE_REARRANGECTRL */
1553
1554 #if wxUSE_RICHMSGDLG
1555 # if !wxUSE_MSGDLG
1556 # ifdef wxABORT_ON_CONFIG_ERROR
1557 # error "wxUSE_RICHMSGDLG requires wxUSE_MSGDLG"
1558 # else
1559 # undef wxUSE_MSGDLG
1560 # define wxUSE_MSGDLG 1
1561 # endif
1562 # endif
1563 #endif /* wxUSE_RICHMSGDLG */
1564
1565 /* don't attempt to use native status bar on the platforms not having it */
1566 #ifndef wxUSE_NATIVE_STATUSBAR
1567 # define wxUSE_NATIVE_STATUSBAR 0
1568 #elif wxUSE_NATIVE_STATUSBAR
1569 # if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1570 defined(__WXMAC__) || \
1571 defined(__WXPALMOS__) )
1572 # undef wxUSE_NATIVE_STATUSBAR
1573 # define wxUSE_NATIVE_STATUSBAR 0
1574 # endif
1575 #endif
1576
1577 #if wxUSE_GRAPHICS_CONTEXT && !wxUSE_GEOMETRY
1578 # ifdef wxABORT_ON_CONFIG_ERROR
1579 # error "wxUSE_GRAPHICS_CONTEXT requires wxUSE_GEOMETRY"
1580 # else
1581 # undef wxUSE_GRAPHICS_CONTEXT
1582 # define wxUSE_GRAPHICS_CONTEXT 0
1583 # endif
1584 #endif /* wxUSE_GRAPHICS_CONTEXT */
1585
1586
1587 /* generic controls dependencies */
1588 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1589 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1590 /* all common controls are needed by these dialogs */
1591 # if !defined(wxUSE_CHOICE) || \
1592 !defined(wxUSE_TEXTCTRL) || \
1593 !defined(wxUSE_BUTTON) || \
1594 !defined(wxUSE_CHECKBOX) || \
1595 !defined(wxUSE_STATTEXT)
1596 # ifdef wxABORT_ON_CONFIG_ERROR
1597 # error "These common controls are needed by common dialogs"
1598 # else
1599 # undef wxUSE_CHOICE
1600 # define wxUSE_CHOICE 1
1601 # undef wxUSE_TEXTCTRL
1602 # define wxUSE_TEXTCTRL 1
1603 # undef wxUSE_BUTTON
1604 # define wxUSE_BUTTON 1
1605 # undef wxUSE_CHECKBOX
1606 # define wxUSE_CHECKBOX 1
1607 # undef wxUSE_STATTEXT
1608 # define wxUSE_STATTEXT 1
1609 # endif
1610 # endif
1611 # endif
1612 #endif /* !wxMSW || wxUniv */
1613
1614 /* generic file dialog depends on (generic) file control */
1615 #if wxUSE_FILEDLG && !wxUSE_FILECTRL && \
1616 (defined(__WXUNIVERSAL__) || defined(__WXGTK__))
1617 # ifdef wxABORT_ON_CONFIG_ERROR
1618 # error "Generic wxFileDialog requires wxFileCtrl"
1619 # else
1620 # undef wxUSE_FILECTRL
1621 # define wxUSE_FILECTRL 1
1622 # endif
1623 #endif /* wxUSE_FILEDLG */
1624
1625 /* common dependencies */
1626 #if wxUSE_ARTPROVIDER_TANGO
1627 # if !(wxUSE_STREAMS && wxUSE_IMAGE && wxUSE_LIBPNG)
1628 # ifdef wxABORT_ON_CONFIG_ERROR
1629 # error "Tango art provider requires wxImage with streams and PNG support"
1630 # else
1631 # undef wxUSE_ARTPROVIDER_TANGO
1632 # define wxUSE_ARTPROVIDER_TANGO 0
1633 # endif
1634 # endif
1635 #endif /* wxUSE_ARTPROVIDER_TANGO */
1636
1637 #if wxUSE_CALENDARCTRL
1638 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1639 # ifdef wxABORT_ON_CONFIG_ERROR
1640 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1641 # else
1642 # undef wxUSE_SPINBTN
1643 # undef wxUSE_COMBOBOX
1644 # define wxUSE_SPINBTN 1
1645 # define wxUSE_COMBOBOX 1
1646 # endif
1647 # endif
1648
1649 # if !wxUSE_DATETIME
1650 # ifdef wxABORT_ON_CONFIG_ERROR
1651 # error "wxCalendarCtrl requires wxUSE_DATETIME"
1652 # else
1653 # undef wxUSE_DATETIME
1654 # define wxUSE_DATETIME 1
1655 # endif
1656 # endif
1657 #endif /* wxUSE_CALENDARCTRL */
1658
1659 #if wxUSE_DATEPICKCTRL
1660 # if !wxUSE_DATETIME
1661 # ifdef wxABORT_ON_CONFIG_ERROR
1662 # error "wxDatePickerCtrl requires wxUSE_DATETIME"
1663 # else
1664 # undef wxUSE_DATETIME
1665 # define wxUSE_DATETIME 1
1666 # endif
1667 # endif
1668 #endif /* wxUSE_DATEPICKCTRL */
1669
1670 #if wxUSE_CHECKLISTBOX
1671 # if !wxUSE_LISTBOX
1672 # ifdef wxABORT_ON_CONFIG_ERROR
1673 # error "wxCheckListBox requires wxListBox"
1674 # else
1675 # undef wxUSE_LISTBOX
1676 # define wxUSE_LISTBOX 1
1677 # endif
1678 # endif
1679 #endif /* wxUSE_CHECKLISTBOX */
1680
1681 #if wxUSE_CHOICEDLG
1682 # if !wxUSE_LISTBOX
1683 # ifdef wxABORT_ON_CONFIG_ERROR
1684 # error "Choice dialogs requires wxListBox"
1685 # else
1686 # undef wxUSE_LISTBOX
1687 # define wxUSE_LISTBOX 1
1688 # endif
1689 # endif
1690 #endif /* wxUSE_CHOICEDLG */
1691
1692 #if wxUSE_HELP
1693 # if !wxUSE_BMPBUTTON
1694 # ifdef wxABORT_ON_CONFIG_ERROR
1695 # error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1696 # else
1697 # undef wxUSE_BMPBUTTON
1698 # define wxUSE_BMPBUTTON 1
1699 # endif
1700 # endif
1701
1702 # if !wxUSE_CHOICEDLG
1703 # ifdef wxABORT_ON_CONFIG_ERROR
1704 # error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1705 # else
1706 # undef wxUSE_CHOICEDLG
1707 # define wxUSE_CHOICEDLG 1
1708 # endif
1709 # endif
1710 #endif /* wxUSE_HELP */
1711
1712 #if wxUSE_MS_HTML_HELP
1713 /*
1714 this doesn't make sense for platforms other than MSW but we still
1715 define it in wx/setup_inc.h so don't complain if it happens to be
1716 defined under another platform but just silently fix it.
1717 */
1718 # ifndef __WXMSW__
1719 # undef wxUSE_MS_HTML_HELP
1720 # define wxUSE_MS_HTML_HELP 0
1721 # endif
1722 #endif /* wxUSE_MS_HTML_HELP */
1723
1724 #if wxUSE_WXHTML_HELP
1725 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
1726 # ifdef wxABORT_ON_CONFIG_ERROR
1727 # error "Built in help controller can't be compiled"
1728 # else
1729 # undef wxUSE_HELP
1730 # define wxUSE_HELP 1
1731 # undef wxUSE_HTML
1732 # define wxUSE_HTML 1
1733 # undef wxUSE_COMBOBOX
1734 # define wxUSE_COMBOBOX 1
1735 # undef wxUSE_NOTEBOOK
1736 # define wxUSE_NOTEBOOK 1
1737 # undef wxUSE_SPINCTRL
1738 # define wxUSE_SPINCTRL 1
1739 # endif
1740 # endif
1741 #endif /* wxUSE_WXHTML_HELP */
1742
1743 #if !wxUSE_IMAGE
1744 /*
1745 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1746 user explicitly wants this and disable all other features that require
1747 wxUSE_IMAGE.
1748 */
1749 # if wxUSE_DRAGIMAGE
1750 # ifdef wxABORT_ON_CONFIG_ERROR
1751 # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1752 # else
1753 # undef wxUSE_DRAGIMAGE
1754 # define wxUSE_DRAGIMAGE 0
1755 # endif
1756 # endif
1757
1758 # if wxUSE_LIBPNG
1759 # ifdef wxABORT_ON_CONFIG_ERROR
1760 # error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1761 # else
1762 # undef wxUSE_LIBPNG
1763 # define wxUSE_LIBPNG 0
1764 # endif
1765 # endif
1766
1767 # if wxUSE_LIBJPEG
1768 # ifdef wxABORT_ON_CONFIG_ERROR
1769 # error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1770 # else
1771 # undef wxUSE_LIBJPEG
1772 # define wxUSE_LIBJPEG 0
1773 # endif
1774 # endif
1775
1776 # if wxUSE_LIBTIFF
1777 # ifdef wxABORT_ON_CONFIG_ERROR
1778 # error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1779 # else
1780 # undef wxUSE_LIBTIFF
1781 # define wxUSE_LIBTIFF 0
1782 # endif
1783 # endif
1784
1785 # if wxUSE_GIF
1786 # ifdef wxABORT_ON_CONFIG_ERROR
1787 # error "wxUSE_GIF requires wxUSE_IMAGE"
1788 # else
1789 # undef wxUSE_GIF
1790 # define wxUSE_GIF 0
1791 # endif
1792 # endif
1793
1794 # if wxUSE_PNM
1795 # ifdef wxABORT_ON_CONFIG_ERROR
1796 # error "wxUSE_PNM requires wxUSE_IMAGE"
1797 # else
1798 # undef wxUSE_PNM
1799 # define wxUSE_PNM 0
1800 # endif
1801 # endif
1802
1803 # if wxUSE_PCX
1804 # ifdef wxABORT_ON_CONFIG_ERROR
1805 # error "wxUSE_PCX requires wxUSE_IMAGE"
1806 # else
1807 # undef wxUSE_PCX
1808 # define wxUSE_PCX 0
1809 # endif
1810 # endif
1811
1812 # if wxUSE_IFF
1813 # ifdef wxABORT_ON_CONFIG_ERROR
1814 # error "wxUSE_IFF requires wxUSE_IMAGE"
1815 # else
1816 # undef wxUSE_IFF
1817 # define wxUSE_IFF 0
1818 # endif
1819 # endif
1820
1821 # if wxUSE_TOOLBAR
1822 # ifdef wxABORT_ON_CONFIG_ERROR
1823 # error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1824 # else
1825 # undef wxUSE_TOOLBAR
1826 # define wxUSE_TOOLBAR 0
1827 # endif
1828 # endif
1829
1830 # if wxUSE_XPM
1831 # ifdef wxABORT_ON_CONFIG_ERROR
1832 # error "wxUSE_XPM requires wxUSE_IMAGE"
1833 # else
1834 # undef wxUSE_XPM
1835 # define wxUSE_XPM 0
1836 # endif
1837 # endif
1838
1839 #endif /* !wxUSE_IMAGE */
1840
1841 #if wxUSE_DOC_VIEW_ARCHITECTURE
1842 # if !wxUSE_MENUS
1843 # ifdef wxABORT_ON_CONFIG_ERROR
1844 # error "DocView requires wxUSE_MENUS"
1845 # else
1846 # undef wxUSE_MENUS
1847 # define wxUSE_MENUS 1
1848 # endif
1849 # endif
1850
1851 # if !wxUSE_CHOICEDLG
1852 # ifdef wxABORT_ON_CONFIG_ERROR
1853 # error "DocView requires wxUSE_CHOICEDLG"
1854 # else
1855 # undef wxUSE_CHOICEDLG
1856 # define wxUSE_CHOICEDLG 1
1857 # endif
1858 # endif
1859
1860 # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1861 # ifdef wxABORT_ON_CONFIG_ERROR
1862 # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1863 # else
1864 # undef wxUSE_STREAMS
1865 # define wxUSE_STREAMS 1
1866 # endif
1867 # endif
1868
1869 # if !wxUSE_FILE_HISTORY
1870 # ifdef wxABORT_ON_CONFIG_ERROR
1871 # error "DocView requires wxUSE_FILE_HISTORY"
1872 # else
1873 # undef wxUSE_FILE_HISTORY
1874 # define wxUSE_FILE_HISTORY 1
1875 # endif
1876 # endif
1877 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1878
1879 #if wxUSE_PRINTING_ARCHITECTURE
1880 # if !wxUSE_COMBOBOX
1881 # ifdef wxABORT_ON_CONFIG_ERROR
1882 # error "Print dialog requires wxUSE_COMBOBOX"
1883 # else
1884 # undef wxUSE_COMBOBOX
1885 # define wxUSE_COMBOBOX 1
1886 # endif
1887 # endif
1888 #endif /* wxUSE_PRINTING_ARCHITECTURE */
1889
1890 #if wxUSE_MDI_ARCHITECTURE
1891 # if !wxUSE_MDI
1892 # ifdef wxABORT_ON_CONFIG_ERROR
1893 # error "MDI requires wxUSE_MDI"
1894 # else
1895 # undef wxUSE_MDI
1896 # define wxUSE_MDI 1
1897 # endif
1898 # endif
1899
1900 # if !wxUSE_DOC_VIEW_ARCHITECTURE
1901 # ifdef wxABORT_ON_CONFIG_ERROR
1902 # error "wxUSE_MDI_ARCHITECTURE requires wxUSE_DOC_VIEW_ARCHITECTURE"
1903 # else
1904 # undef wxUSE_DOC_VIEW_ARCHITECTURE
1905 # define wxUSE_DOC_VIEW_ARCHITECTURE 1
1906 # endif
1907 # endif
1908 #endif /* wxUSE_MDI_ARCHITECTURE */
1909
1910 #if !wxUSE_FILEDLG
1911 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1912 # ifdef wxABORT_ON_CONFIG_ERROR
1913 # error "wxUSE_FILEDLG is required by wxUSE_DOC_VIEW_ARCHITECTURE and wxUSE_WXHTML_HELP!"
1914 # else
1915 # undef wxUSE_FILEDLG
1916 # define wxUSE_FILEDLG 1
1917 # endif
1918 # endif
1919 #endif /* wxUSE_FILEDLG */
1920
1921 #if !wxUSE_GAUGE || !wxUSE_BUTTON
1922 # if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
1923 # ifdef wxABORT_ON_CONFIG_ERROR
1924 # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
1925 # else
1926 # undef wxUSE_GAUGE
1927 # undef wxUSE_BUTTON
1928 # define wxUSE_GAUGE 1
1929 # define wxUSE_BUTTON 1
1930 # endif
1931 # endif
1932 #endif /* !wxUSE_GAUGE */
1933
1934 #if !wxUSE_BUTTON
1935 # if wxUSE_FONTDLG || \
1936 wxUSE_FILEDLG || \
1937 wxUSE_CHOICEDLG || \
1938 wxUSE_NUMBERDLG || \
1939 wxUSE_TEXTDLG || \
1940 wxUSE_DIRDLG || \
1941 wxUSE_STARTUP_TIPS || \
1942 wxUSE_WIZARDDLG
1943 # ifdef wxABORT_ON_CONFIG_ERROR
1944 # error "Common and generic dialogs require wxUSE_BUTTON"
1945 # else
1946 # undef wxUSE_BUTTON
1947 # define wxUSE_BUTTON 1
1948 # endif
1949 # endif
1950 #endif /* !wxUSE_BUTTON */
1951
1952 #if !wxUSE_TOOLBAR
1953 # if wxUSE_TOOLBAR_NATIVE
1954 # ifdef wxABORT_ON_CONFIG_ERROR
1955 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1956 # else
1957 # undef wxUSE_TOOLBAR_NATIVE
1958 # define wxUSE_TOOLBAR_NATIVE 0
1959 # endif
1960 # endif
1961 #endif
1962
1963 #if !wxUSE_IMAGLIST
1964 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1965 # ifdef wxABORT_ON_CONFIG_ERROR
1966 # error "wxImageList must be compiled as well"
1967 # else
1968 # undef wxUSE_IMAGLIST
1969 # define wxUSE_IMAGLIST 1
1970 # endif
1971 # endif
1972 #endif /* !wxUSE_IMAGLIST */
1973
1974 #if wxUSE_RADIOBOX
1975 # if !wxUSE_RADIOBTN
1976 # ifdef wxABORT_ON_CONFIG_ERROR
1977 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
1978 # else
1979 # undef wxUSE_RADIOBTN
1980 # define wxUSE_RADIOBTN 1
1981 # endif
1982 # endif
1983 # if !wxUSE_STATBOX && !defined(__WXPALMOS__)
1984 # ifdef wxABORT_ON_CONFIG_ERROR
1985 # error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
1986 # else
1987 # undef wxUSE_STATBOX
1988 # define wxUSE_STATBOX 1
1989 # endif
1990 # endif
1991 #endif /* wxUSE_RADIOBOX */
1992
1993 #if wxUSE_LOGWINDOW
1994 # if !wxUSE_TEXTCTRL
1995 # ifdef wxABORT_ON_CONFIG_ERROR
1996 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1997 # else
1998 # undef wxUSE_TEXTCTRL
1999 # define wxUSE_TEXTCTRL 1
2000 # endif
2001 # endif
2002 #endif /* wxUSE_LOGWINDOW */
2003
2004 #if wxUSE_LOG_DIALOG
2005 # if !wxUSE_LISTCTRL || !wxUSE_BUTTON
2006 # ifdef wxABORT_ON_CONFIG_ERROR
2007 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
2008 # else
2009 # undef wxUSE_LISTCTRL
2010 # define wxUSE_LISTCTRL 1
2011 # undef wxUSE_BUTTON
2012 # define wxUSE_BUTTON 1
2013 # endif
2014 # endif
2015 #endif /* wxUSE_LOG_DIALOG */
2016
2017 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
2018 # ifdef wxABORT_ON_CONFIG_ERROR
2019 # error "wxClipboard requires wxDataObject"
2020 # else
2021 # undef wxUSE_DATAOBJ
2022 # define wxUSE_DATAOBJ 1
2023 # endif
2024 #endif /* wxUSE_CLIPBOARD */
2025
2026 #if wxUSE_XRC && !wxUSE_XML
2027 # ifdef wxABORT_ON_CONFIG_ERROR
2028 # error "wxUSE_XRC requires wxUSE_XML"
2029 # else
2030 # undef wxUSE_XRC
2031 # define wxUSE_XRC 0
2032 # endif
2033 #endif /* wxUSE_XRC */
2034
2035 #if wxUSE_SOCKETS && !wxUSE_STOPWATCH
2036 # ifdef wxABORT_ON_CONFIG_ERROR
2037 # error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
2038 # else
2039 # undef wxUSE_SOCKETS
2040 # define wxUSE_SOCKETS 0
2041 # endif
2042 #endif /* wxUSE_SOCKETS */
2043
2044 #if wxUSE_SVG && !wxUSE_STREAMS
2045 # ifdef wxABORT_ON_CONFIG_ERROR
2046 # error "wxUSE_SVG requires wxUSE_STREAMS"
2047 # else
2048 # undef wxUSE_SVG
2049 # define wxUSE_SVG 0
2050 # endif
2051 #endif /* wxUSE_SVG */
2052
2053 #if wxUSE_SVG && !wxUSE_IMAGE
2054 # ifdef wxABORT_ON_CONFIG_ERROR
2055 # error "wxUSE_SVG requires wxUSE_IMAGE"
2056 # else
2057 # undef wxUSE_SVG
2058 # define wxUSE_SVG 0
2059 # endif
2060 #endif /* wxUSE_SVG */
2061
2062 #if wxUSE_SVG && !wxUSE_LIBPNG
2063 # ifdef wxABORT_ON_CONFIG_ERROR
2064 # error "wxUSE_SVG requires wxUSE_LIBPNG"
2065 # else
2066 # undef wxUSE_SVG
2067 # define wxUSE_SVG 0
2068 # endif
2069 #endif /* wxUSE_SVG */
2070
2071 #if !wxUSE_VARIANT
2072 # if wxUSE_DATAVIEWCTRL
2073 # ifdef wxABORT_ON_CONFIG_ERROR
2074 # error "wxDataViewCtrl requires wxVariant"
2075 # else
2076 # undef wxUSE_DATAVIEWCTRL
2077 # define wxUSE_DATAVIEWCTRL 0
2078 # endif
2079 # endif
2080 #endif /* wxUSE_VARIANT */
2081
2082 #endif /* wxUSE_GUI */
2083
2084 #endif /* _WX_CHKCONF_H_ */