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