]>
Commit | Line | Data |
---|---|---|
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 | ||
14 | /* | |
15 | Platform-specific checking. | |
16 | */ | |
17 | ||
18 | #if defined(__WXPALMOS__) | |
19 | # include "wx/palmos/chkconf.h" | |
20 | #elif defined(__WXWINCE__) | |
21 | # include "wx/msw/wince/chkconf.h" | |
22 | #elif defined(__WXMSW__) | |
23 | # include "wx/msw/chkconf.h" | |
24 | #elif defined(__WXMAC__) | |
25 | # include "wx/mac/chkconf.h" | |
26 | #elif defined(__OS2__) | |
27 | # include "wx/os2/chkconf.h" | |
28 | #elif defined(__WXMGL__) | |
29 | # include "wx/mgl/chkconf.h" | |
30 | #elif defined(__WXMOTIF__) | |
31 | # include "wx/motif/chkconf.h" | |
32 | #endif | |
33 | ||
34 | /* | |
35 | this global setting determines what should we do if the setting FOO | |
36 | requires BAR and BAR is not set: we can either silently unset FOO as well | |
37 | (do this if you're trying to build the smallest possible library) or give an | |
38 | error and abort (default as leads to least surprizing behaviour) | |
39 | */ | |
40 | #define wxABORT_ON_CONFIG_ERROR | |
41 | ||
42 | /* | |
43 | global features | |
44 | */ | |
45 | ||
46 | /* GUI build by default */ | |
47 | #if !defined(wxUSE_GUI) | |
48 | # define wxUSE_GUI 1 | |
49 | #endif /* !defined(wxUSE_GUI) */ | |
50 | ||
51 | /* | |
52 | If we're compiling without support for threads/exceptions we have to | |
53 | disable the corresponding features. | |
54 | */ | |
55 | #ifdef wxNO_THREADS | |
56 | # undef wxUSE_THREADS | |
57 | # define wxUSE_THREADS 0 | |
58 | #endif /* wxNO_THREADS */ | |
59 | ||
60 | #ifdef wxNO_EXCEPTIONS | |
61 | # undef wxUSE_EXCEPTIONS | |
62 | # define wxUSE_EXCEPTIONS 0 | |
63 | #endif /* wxNO_EXCEPTIONS */ | |
64 | ||
65 | /* we also must disable exceptions if compiler doesn't support them */ | |
66 | #if defined(_MSC_VER) && !defined(_CPPUNWIND) | |
67 | # undef wxUSE_EXCEPTIONS | |
68 | # define wxUSE_EXCEPTIONS 0 | |
69 | #endif /* VC++ without exceptions support */ | |
70 | ||
71 | ||
72 | /* | |
73 | tests for non GUI features | |
74 | ||
75 | please keep the options in alphabetical order! | |
76 | */ | |
77 | ||
78 | #ifndef wxUSE_CRASHREPORT | |
79 | /* this one is special: as currently it is Windows-only, don't force it | |
80 | to be defined on other platforms */ | |
81 | # if defined(wxABORT_ON_CONFIG_ERROR) && defined(__WXMSW__) | |
82 | # error "wxUSE_CRASHREPORT must be defined." | |
83 | # else | |
84 | # define wxUSE_CRASHREPORT 0 | |
85 | # endif | |
86 | #endif /* !defined(wxUSE_CRASHREPORT) */ | |
87 | ||
88 | #ifndef wxUSE_DYNLIB_CLASS | |
89 | # ifdef wxABORT_ON_CONFIG_ERROR | |
90 | # error "wxUSE_DYNLIB_CLASS must be defined." | |
91 | # else | |
92 | # define wxUSE_DYNLIB_CLASS 0 | |
93 | # endif | |
94 | #endif /* !defined(wxUSE_DYNLIB_CLASS) */ | |
95 | ||
96 | #ifndef wxUSE_EXCEPTIONS | |
97 | # ifdef wxABORT_ON_CONFIG_ERROR | |
98 | # error "wxUSE_EXCEPTIONS must be defined." | |
99 | # else | |
100 | # define wxUSE_EXCEPTIONS 0 | |
101 | # endif | |
102 | #endif /* !defined(wxUSE_EXCEPTIONS) */ | |
103 | ||
104 | #ifndef wxUSE_FILESYSTEM | |
105 | # ifdef wxABORT_ON_CONFIG_ERROR | |
106 | # error "wxUSE_FILESYSTEM must be defined." | |
107 | # else | |
108 | # define wxUSE_FILESYSTEM 0 | |
109 | # endif | |
110 | #endif /* !defined(wxUSE_FILESYSTEM) */ | |
111 | ||
112 | /* don't give an error about this one yet, it's not fully implemented */ | |
113 | #ifndef wxUSE_FSVOLUME | |
114 | # define wxUSE_FSVOLUME 0 | |
115 | #endif /* !defined(wxUSE_FSVOLUME) */ | |
116 | ||
117 | #ifndef wxUSE_DYNAMIC_LOADER | |
118 | # ifdef wxABORT_ON_CONFIG_ERROR | |
119 | # error "wxUSE_DYNAMIC_LOADER must be defined." | |
120 | # else | |
121 | # define wxUSE_DYNAMIC_LOADER 0 | |
122 | # endif | |
123 | #endif /* !defined(wxUSE_DYNAMIC_LOADER) */ | |
124 | ||
125 | #ifndef wxUSE_LOG | |
126 | # ifdef wxABORT_ON_CONFIG_ERROR | |
127 | # error "wxUSE_LOG must be defined." | |
128 | # else | |
129 | # define wxUSE_LOG 0 | |
130 | # endif | |
131 | #endif /* !defined(wxUSE_LOG) */ | |
132 | ||
133 | #ifndef wxUSE_LONGLONG | |
134 | # ifdef wxABORT_ON_CONFIG_ERROR | |
135 | # error "wxUSE_LONGLONG must be defined." | |
136 | # else | |
137 | # define wxUSE_LONGLONG 0 | |
138 | # endif | |
139 | #endif /* !defined(wxUSE_LONGLONG) */ | |
140 | ||
141 | #ifndef wxUSE_MIMETYPE | |
142 | # ifdef wxABORT_ON_CONFIG_ERROR | |
143 | # error "wxUSE_MIMETYPE must be defined." | |
144 | # else | |
145 | # define wxUSE_MIMETYPE 0 | |
146 | # endif | |
147 | #endif /* !defined(wxUSE_MIMETYPE) */ | |
148 | ||
149 | #ifndef wxUSE_ON_FATAL_EXCEPTION | |
150 | # ifdef wxABORT_ON_CONFIG_ERROR | |
151 | # error "wxUSE_ON_FATAL_EXCEPTION must be defined." | |
152 | # else | |
153 | # define wxUSE_ON_FATAL_EXCEPTION 0 | |
154 | # endif | |
155 | #endif /* !defined(wxUSE_ON_FATAL_EXCEPTION) */ | |
156 | ||
157 | #ifndef wxUSE_PRINTF_POS_PARAMS | |
158 | # ifdef wxABORT_ON_CONFIG_ERROR | |
159 | # error "wxUSE_PRINTF_POS_PARAMS must be defined." | |
160 | # else | |
161 | # define wxUSE_PRINTF_POS_PARAMS 0 | |
162 | # endif | |
163 | #endif /* !defined(wxUSE_PRINTF_POS_PARAMS) */ | |
164 | ||
165 | #ifndef wxUSE_PROTOCOL | |
166 | # ifdef wxABORT_ON_CONFIG_ERROR | |
167 | # error "wxUSE_PROTOCOL must be defined." | |
168 | # else | |
169 | # define wxUSE_PROTOCOL 0 | |
170 | # endif | |
171 | #endif /* !defined(wxUSE_PROTOCOL) */ | |
172 | ||
173 | /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */ | |
174 | #if !wxUSE_PROTOCOL | |
175 | # undef wxUSE_PROTOCOL_HTTP | |
176 | # undef wxUSE_PROTOCOL_FTP | |
177 | # undef wxUSE_PROTOCOL_FILE | |
178 | # define wxUSE_PROTOCOL_HTTP 0 | |
179 | # define wxUSE_PROTOCOL_FTP 0 | |
180 | # define wxUSE_PROTOCOL_FILE 0 | |
181 | #endif /* wxUSE_PROTOCOL */ | |
182 | ||
183 | #ifndef wxUSE_PROTOCOL_HTTP | |
184 | # ifdef wxABORT_ON_CONFIG_ERROR | |
185 | # error "wxUSE_PROTOCOL_HTTP must be defined." | |
186 | # else | |
187 | # define wxUSE_PROTOCOL_HTTP 0 | |
188 | # endif | |
189 | #endif /* !defined(wxUSE_PROTOCOL_HTTP) */ | |
190 | ||
191 | #ifndef wxUSE_PROTOCOL_FTP | |
192 | # ifdef wxABORT_ON_CONFIG_ERROR | |
193 | # error "wxUSE_PROTOCOL_FTP must be defined." | |
194 | # else | |
195 | # define wxUSE_PROTOCOL_FTP 0 | |
196 | # endif | |
197 | #endif /* !defined(wxUSE_PROTOCOL_FTP) */ | |
198 | ||
199 | #ifndef wxUSE_PROTOCOL_FILE | |
200 | # ifdef wxABORT_ON_CONFIG_ERROR | |
201 | # error "wxUSE_PROTOCOL_FILE must be defined." | |
202 | # else | |
203 | # define wxUSE_PROTOCOL_FILE 0 | |
204 | # endif | |
205 | #endif /* !defined(wxUSE_PROTOCOL_FILE) */ | |
206 | ||
207 | #ifndef wxUSE_REGEX | |
208 | # ifdef wxABORT_ON_CONFIG_ERROR | |
209 | # error "wxUSE_REGEX must be defined." | |
210 | # else | |
211 | # define wxUSE_REGEX 0 | |
212 | # endif | |
213 | #endif /* !defined(wxUSE_REGEX) */ | |
214 | ||
215 | #ifndef wxUSE_STDPATHS | |
216 | # ifdef wxABORT_ON_CONFIG_ERROR | |
217 | # error "wxUSE_STDPATHS must be defined." | |
218 | # else | |
219 | # define wxUSE_STDPATHS 1 | |
220 | # endif | |
221 | #endif /* !defined(wxUSE_STDPATHS) */ | |
222 | ||
223 | #ifndef wxUSE_XML | |
224 | # ifdef wxABORT_ON_CONFIG_ERROR | |
225 | # error "wxUSE_XML must be defined." | |
226 | # else | |
227 | # define wxUSE_XML 0 | |
228 | # endif | |
229 | #endif /* !defined(wxUSE_XML) */ | |
230 | ||
231 | #ifndef wxUSE_SOCKETS | |
232 | # ifdef wxABORT_ON_CONFIG_ERROR | |
233 | # error "wxUSE_SOCKETS must be defined." | |
234 | # else | |
235 | # define wxUSE_SOCKETS 0 | |
236 | # endif | |
237 | #endif /* !defined(wxUSE_SOCKETS) */ | |
238 | ||
239 | #ifndef wxUSE_STREAMS | |
240 | # ifdef wxABORT_ON_CONFIG_ERROR | |
241 | # error "wxUSE_STREAMS must be defined." | |
242 | # else | |
243 | # define wxUSE_STREAMS 0 | |
244 | # endif | |
245 | #endif /* !defined(wxUSE_STREAMS) */ | |
246 | ||
247 | #ifndef wxUSE_STOPWATCH | |
248 | # ifdef wxABORT_ON_CONFIG_ERROR | |
249 | # error "wxUSE_STOPWATCH must be defined." | |
250 | # else | |
251 | # define wxUSE_STOPWATCH 0 | |
252 | # endif | |
253 | #endif /* !defined(wxUSE_STOPWATCH) */ | |
254 | ||
255 | #ifndef wxUSE_TEXTBUFFER | |
256 | # ifdef wxABORT_ON_CONFIG_ERROR | |
257 | # error "wxUSE_TEXTBUFFER must be defined." | |
258 | # else | |
259 | # define wxUSE_TEXTBUFFER 0 | |
260 | # endif | |
261 | #endif /* !defined(wxUSE_TEXTBUFFER) */ | |
262 | ||
263 | #ifndef wxUSE_TEXTFILE | |
264 | # ifdef wxABORT_ON_CONFIG_ERROR | |
265 | # error "wxUSE_TEXTFILE must be defined." | |
266 | # else | |
267 | # define wxUSE_TEXTFILE 0 | |
268 | # endif | |
269 | #endif /* !defined(wxUSE_TEXTFILE) */ | |
270 | ||
271 | #ifndef wxUSE_UNICODE | |
272 | # ifdef wxABORT_ON_CONFIG_ERROR | |
273 | # error "wxUSE_UNICODE must be defined." | |
274 | # else | |
275 | # define wxUSE_UNICODE 0 | |
276 | # endif | |
277 | #endif /* !defined(wxUSE_UNICODE) */ | |
278 | ||
279 | #ifndef wxUSE_URL | |
280 | # ifdef wxABORT_ON_CONFIG_ERROR | |
281 | # error "wxUSE_URL must be defined." | |
282 | # else | |
283 | # define wxUSE_URL 0 | |
284 | # endif | |
285 | #endif /* !defined(wxUSE_URL) */ | |
286 | ||
287 | /* | |
288 | all these tests are for GUI only | |
289 | ||
290 | please keep the options in alphabetical order! | |
291 | */ | |
292 | #if wxUSE_GUI | |
293 | ||
294 | /* | |
295 | all of the settings tested below must be defined or we'd get an error from | |
296 | preprocessor about invalid integer expression | |
297 | */ | |
298 | ||
299 | #ifndef wxUSE_ACCEL | |
300 | # ifdef wxABORT_ON_CONFIG_ERROR | |
301 | # error "wxUSE_ACCEL must be defined." | |
302 | # else | |
303 | # define wxUSE_ACCEL 0 | |
304 | # endif | |
305 | #endif /* !defined(wxUSE_ACCEL) */ | |
306 | ||
307 | #ifndef wxUSE_BMPBUTTON | |
308 | # ifdef wxABORT_ON_CONFIG_ERROR | |
309 | # error "wxUSE_BMPBUTTON must be defined." | |
310 | # else | |
311 | # define wxUSE_BMPBUTTON 0 | |
312 | # endif | |
313 | #endif /* !defined(wxUSE_BMPBUTTON) */ | |
314 | ||
315 | #ifndef wxUSE_BUTTON | |
316 | # ifdef wxABORT_ON_CONFIG_ERROR | |
317 | # error "wxUSE_BUTTON must be defined." | |
318 | # else | |
319 | # define wxUSE_BUTTON 0 | |
320 | # endif | |
321 | #endif /* !defined(wxUSE_BUTTON) */ | |
322 | ||
323 | #ifndef wxUSE_CALENDARCTRL | |
324 | # ifdef wxABORT_ON_CONFIG_ERROR | |
325 | # error "wxUSE_CALENDARCTRL must be defined." | |
326 | # else | |
327 | # define wxUSE_CALENDARCTRL 0 | |
328 | # endif | |
329 | #endif /* !defined(wxUSE_CALENDARCTRL) */ | |
330 | ||
331 | #ifndef wxUSE_CARET | |
332 | # ifdef wxABORT_ON_CONFIG_ERROR | |
333 | # error "wxUSE_CARET must be defined." | |
334 | # else | |
335 | # define wxUSE_CARET 0 | |
336 | # endif | |
337 | #endif /* !defined(wxUSE_CARET) */ | |
338 | ||
339 | #ifndef wxUSE_CHECKBOX | |
340 | # ifdef wxABORT_ON_CONFIG_ERROR | |
341 | # error "wxUSE_CHECKBOX must be defined." | |
342 | # else | |
343 | # define wxUSE_CHECKBOX 0 | |
344 | # endif | |
345 | #endif /* !defined(wxUSE_CHECKBOX) */ | |
346 | ||
347 | #ifndef wxUSE_CHECKLISTBOX | |
348 | # ifdef wxABORT_ON_CONFIG_ERROR | |
349 | # error "wxUSE_CHECKLISTBOX must be defined." | |
350 | # else | |
351 | # define wxUSE_CHECKLISTBOX 0 | |
352 | # endif | |
353 | #endif /* !defined(wxUSE_CHECKLISTBOX) */ | |
354 | ||
355 | #ifndef wxUSE_CHOICE | |
356 | # ifdef wxABORT_ON_CONFIG_ERROR | |
357 | # error "wxUSE_CHOICE must be defined." | |
358 | # else | |
359 | # define wxUSE_CHOICE 0 | |
360 | # endif | |
361 | #endif /* !defined(wxUSE_CHOICE) */ | |
362 | ||
363 | #ifndef wxUSE_CHOICEBOOK | |
364 | # ifdef wxABORT_ON_CONFIG_ERROR | |
365 | # error "wxUSE_CHOICEBOOK must be defined." | |
366 | # else | |
367 | # define wxUSE_CHOICEBOOK 0 | |
368 | # endif | |
369 | #endif /* !defined(wxUSE_CHOICEBOOK) */ | |
370 | ||
371 | #ifndef wxUSE_CHOICEDLG | |
372 | # ifdef wxABORT_ON_CONFIG_ERROR | |
373 | # error "wxUSE_CHOICEDLG must be defined." | |
374 | # else | |
375 | # define wxUSE_CHOICEDLG 0 | |
376 | # endif | |
377 | #endif /* !defined(wxUSE_CHOICEDLG) */ | |
378 | ||
379 | #ifndef wxUSE_CLIPBOARD | |
380 | # ifdef wxABORT_ON_CONFIG_ERROR | |
381 | # error "wxUSE_CLIPBOARD must be defined." | |
382 | # else | |
383 | # define wxUSE_CLIPBOARD 0 | |
384 | # endif | |
385 | #endif /* !defined(wxUSE_CLIPBOARD) */ | |
386 | ||
387 | #ifndef wxUSE_COLOURDLG | |
388 | # ifdef wxABORT_ON_CONFIG_ERROR | |
389 | # error "wxUSE_COLOURDLG must be defined." | |
390 | # else | |
391 | # define wxUSE_COLOURDLG 0 | |
392 | # endif | |
393 | #endif /* !defined(wxUSE_COLOURDLG) */ | |
394 | ||
395 | #ifndef wxUSE_COLOURPICKERCTRL | |
396 | # ifdef wxABORT_ON_CONFIG_ERROR | |
397 | # error "wxUSE_COLOURPICKERCTRL must be defined." | |
398 | # else | |
399 | # define wxUSE_COLOURPICKERCTRL 0 | |
400 | # endif | |
401 | #endif /* !defined(wxUSE_COLOURPICKERCTRL) */ | |
402 | ||
403 | #ifndef wxUSE_COMBOBOX | |
404 | # ifdef wxABORT_ON_CONFIG_ERROR | |
405 | # error "wxUSE_COMBOBOX must be defined." | |
406 | # else | |
407 | # define wxUSE_COMBOBOX 0 | |
408 | # endif | |
409 | #endif /* !defined(wxUSE_COMBOBOX) */ | |
410 | ||
411 | #ifndef wxUSE_COMBOCTRL | |
412 | # ifdef wxABORT_ON_CONFIG_ERROR | |
413 | # error "wxUSE_COMBOCTRL must be defined." | |
414 | # else | |
415 | # define wxUSE_COMBOCTRL 0 | |
416 | # endif | |
417 | #endif /* !defined(wxUSE_COMBOCTRL) */ | |
418 | ||
419 | #ifndef wxUSE_DATAOBJ | |
420 | # ifdef wxABORT_ON_CONFIG_ERROR | |
421 | # error "wxUSE_DATAOBJ must be defined." | |
422 | # else | |
423 | # define wxUSE_DATAOBJ 0 | |
424 | # endif | |
425 | #endif /* !defined(wxUSE_DATAOBJ) */ | |
426 | ||
427 | #ifndef wxUSE_DATAVIEWCTRL | |
428 | # ifdef wxABORT_ON_CONFIG_ERROR | |
429 | # error "wxUSE_DATAVIEWCTRL must be defined." | |
430 | # else | |
431 | # define wxUSE_DATAVIEWCTRL 0 | |
432 | # endif | |
433 | #endif /* !defined(wxUSE_DATAVIEWCTRL) */ | |
434 | ||
435 | #ifndef wxUSE_DATEPICKCTRL | |
436 | # ifdef wxABORT_ON_CONFIG_ERROR | |
437 | # error "wxUSE_DATEPICKCTRL must be defined." | |
438 | # else | |
439 | # define wxUSE_DATEPICKCTRL 0 | |
440 | # endif | |
441 | #endif /* !defined(wxUSE_DATEPICKCTRL) */ | |
442 | ||
443 | #ifndef wxUSE_DIRPICKERCTRL | |
444 | # ifdef wxABORT_ON_CONFIG_ERROR | |
445 | # error "wxUSE_DIRPICKERCTRL must be defined." | |
446 | # else | |
447 | # define wxUSE_DIRPICKERCTRL 0 | |
448 | # endif | |
449 | #endif /* !defined(wxUSE_DIRPICKERCTRL) */ | |
450 | ||
451 | #ifndef wxUSE_DISPLAY | |
452 | # ifdef wxABORT_ON_CONFIG_ERROR | |
453 | # error "wxUSE_DISPLAY must be defined." | |
454 | # else | |
455 | # define wxUSE_DISPLAY 0 | |
456 | # endif | |
457 | #endif /* !defined(wxUSE_DISPLAY) */ | |
458 | ||
459 | #ifndef wxUSE_DOC_VIEW_ARCHITECTURE | |
460 | # ifdef wxABORT_ON_CONFIG_ERROR | |
461 | # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined." | |
462 | # else | |
463 | # define wxUSE_DOC_VIEW_ARCHITECTURE 0 | |
464 | # endif | |
465 | #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */ | |
466 | ||
467 | #ifndef wxUSE_FILEDLG | |
468 | # ifdef wxABORT_ON_CONFIG_ERROR | |
469 | # error "wxUSE_FILEDLG must be defined." | |
470 | # else | |
471 | # define wxUSE_FILEDLG 0 | |
472 | # endif | |
473 | #endif /* !defined(wxUSE_FILEDLG) */ | |
474 | ||
475 | #ifndef wxUSE_FILEPICKERCTRL | |
476 | # ifdef wxABORT_ON_CONFIG_ERROR | |
477 | # error "wxUSE_FILEPICKERCTRL must be defined." | |
478 | # else | |
479 | # define wxUSE_FILEPICKERCTRL 0 | |
480 | # endif | |
481 | #endif /* !defined(wxUSE_FILEPICKERCTRL) */ | |
482 | ||
483 | #ifndef wxUSE_FONTDLG | |
484 | # ifdef wxABORT_ON_CONFIG_ERROR | |
485 | # error "wxUSE_FONTDLG must be defined." | |
486 | # else | |
487 | # define wxUSE_FONTDLG 0 | |
488 | # endif | |
489 | #endif /* !defined(wxUSE_FONTDLG) */ | |
490 | ||
491 | #ifndef wxUSE_FONTMAP | |
492 | # ifdef wxABORT_ON_CONFIG_ERROR | |
493 | # error "wxUSE_FONTMAP must be defined." | |
494 | # else | |
495 | # define wxUSE_FONTMAP 0 | |
496 | # endif | |
497 | #endif /* !defined(wxUSE_FONTMAP) */ | |
498 | ||
499 | #ifndef wxUSE_FONTPICKERCTRL | |
500 | # ifdef wxABORT_ON_CONFIG_ERROR | |
501 | # error "wxUSE_FONTPICKERCTRL must be defined." | |
502 | # else | |
503 | # define wxUSE_FONTPICKERCTRL 0 | |
504 | # endif | |
505 | #endif /* !defined(wxUSE_FONTPICKERCTRL) */ | |
506 | ||
507 | #ifndef wxUSE_GAUGE | |
508 | # ifdef wxABORT_ON_CONFIG_ERROR | |
509 | # error "wxUSE_GAUGE must be defined." | |
510 | # else | |
511 | # define wxUSE_GAUGE 0 | |
512 | # endif | |
513 | #endif /* !defined(wxUSE_GAUGE) */ | |
514 | ||
515 | #ifndef wxUSE_GRID | |
516 | # ifdef wxABORT_ON_CONFIG_ERROR | |
517 | # error "wxUSE_GRID must be defined." | |
518 | # else | |
519 | # define wxUSE_GRID 0 | |
520 | # endif | |
521 | #endif /* !defined(wxUSE_GRID) */ | |
522 | ||
523 | #ifndef wxUSE_HELP | |
524 | # ifdef wxABORT_ON_CONFIG_ERROR | |
525 | # error "wxUSE_HELP must be defined." | |
526 | # else | |
527 | # define wxUSE_HELP 0 | |
528 | # endif | |
529 | #endif /* !defined(wxUSE_HELP) */ | |
530 | ||
531 | #ifndef wxUSE_HYPERLINKCTRL | |
532 | # ifdef wxABORT_ON_CONFIG_ERROR | |
533 | # error "wxUSE_HYPERLINKCTRL must be defined." | |
534 | # else | |
535 | # define wxUSE_HYPERLINKCTRL 0 | |
536 | # endif | |
537 | #endif /* !defined(wxUSE_HYPERLINKCTRL) */ | |
538 | ||
539 | #ifndef wxUSE_HTML | |
540 | # ifdef wxABORT_ON_CONFIG_ERROR | |
541 | # error "wxUSE_HTML must be defined." | |
542 | # else | |
543 | # define wxUSE_HTML 0 | |
544 | # endif | |
545 | #endif /* !defined(wxUSE_HTML) */ | |
546 | ||
547 | #ifndef wxUSE_LIBMSPACK | |
548 | # ifndef __UNIX__ | |
549 | /* set to 0 on platforms that don't have libmspack */ | |
550 | # define wxUSE_LIBMSPACK 0 | |
551 | # else | |
552 | # ifdef wxABORT_ON_CONFIG_ERROR | |
553 | # error "wxUSE_LIBMSPACK must be defined." | |
554 | # else | |
555 | # define wxUSE_LIBMSPACK 0 | |
556 | # endif | |
557 | # endif | |
558 | #endif /* !defined(wxUSE_LIBMSPACK) */ | |
559 | ||
560 | #ifndef wxUSE_ICO_CUR | |
561 | # ifdef wxABORT_ON_CONFIG_ERROR | |
562 | # error "wxUSE_ICO_CUR must be defined." | |
563 | # else | |
564 | # define wxUSE_ICO_CUR 0 | |
565 | # endif | |
566 | #endif /* !defined(wxUSE_ICO_CUR) */ | |
567 | ||
568 | #ifndef wxUSE_IFF | |
569 | # ifdef wxABORT_ON_CONFIG_ERROR | |
570 | # error "wxUSE_IFF must be defined." | |
571 | # else | |
572 | # define wxUSE_IFF 0 | |
573 | # endif | |
574 | #endif /* !defined(wxUSE_IFF) */ | |
575 | ||
576 | #ifndef wxUSE_IMAGLIST | |
577 | # ifdef wxABORT_ON_CONFIG_ERROR | |
578 | # error "wxUSE_IMAGLIST must be defined." | |
579 | # else | |
580 | # define wxUSE_IMAGLIST 0 | |
581 | # endif | |
582 | #endif /* !defined(wxUSE_IMAGLIST) */ | |
583 | ||
584 | #ifndef wxUSE_JOYSTICK | |
585 | # ifdef wxABORT_ON_CONFIG_ERROR | |
586 | # error "wxUSE_JOYSTICK must be defined." | |
587 | # else | |
588 | # define wxUSE_JOYSTICK 0 | |
589 | # endif | |
590 | #endif /* !defined(wxUSE_JOYSTICK) */ | |
591 | ||
592 | #ifndef wxUSE_LISTBOOK | |
593 | # ifdef wxABORT_ON_CONFIG_ERROR | |
594 | # error "wxUSE_LISTBOOK must be defined." | |
595 | # else | |
596 | # define wxUSE_LISTBOOK 0 | |
597 | # endif | |
598 | #endif /* !defined(wxUSE_LISTBOOK) */ | |
599 | ||
600 | #ifndef wxUSE_LISTBOX | |
601 | # ifdef wxABORT_ON_CONFIG_ERROR | |
602 | # error "wxUSE_LISTBOX must be defined." | |
603 | # else | |
604 | # define wxUSE_LISTBOX 0 | |
605 | # endif | |
606 | #endif /* !defined(wxUSE_LISTBOX) */ | |
607 | ||
608 | #ifndef wxUSE_LISTCTRL | |
609 | # ifdef wxABORT_ON_CONFIG_ERROR | |
610 | # error "wxUSE_LISTCTRL must be defined." | |
611 | # else | |
612 | # define wxUSE_LISTCTRL 0 | |
613 | # endif | |
614 | #endif /* !defined(wxUSE_LISTCTRL) */ | |
615 | ||
616 | #ifndef wxUSE_LOGGUI | |
617 | # ifdef wxABORT_ON_CONFIG_ERROR | |
618 | # error "wxUSE_LOGGUI must be defined." | |
619 | # else | |
620 | # define wxUSE_LOGGUI 0 | |
621 | # endif | |
622 | #endif /* !defined(wxUSE_LOGGUI) */ | |
623 | ||
624 | #ifndef wxUSE_LOGWINDOW | |
625 | # ifdef wxABORT_ON_CONFIG_ERROR | |
626 | # error "wxUSE_LOGWINDOW must be defined." | |
627 | # else | |
628 | # define wxUSE_LOGWINDOW 0 | |
629 | # endif | |
630 | #endif /* !defined(wxUSE_LOGWINDOW) */ | |
631 | ||
632 | #ifndef wxUSE_LOG_DIALOG | |
633 | # ifdef wxABORT_ON_CONFIG_ERROR | |
634 | # error "wxUSE_LOG_DIALOG must be defined." | |
635 | # else | |
636 | # define wxUSE_LOG_DIALOG 0 | |
637 | # endif | |
638 | #endif /* !defined(wxUSE_LOG_DIALOG) */ | |
639 | ||
640 | #ifndef wxUSE_MDI | |
641 | # ifdef wxABORT_ON_CONFIG_ERROR | |
642 | # error "wxUSE_MDI must be defined." | |
643 | # else | |
644 | # define wxUSE_MDI 0 | |
645 | # endif | |
646 | #endif /* !defined(wxUSE_MDI) */ | |
647 | ||
648 | #ifndef wxUSE_MDI_ARCHITECTURE | |
649 | # ifdef wxABORT_ON_CONFIG_ERROR | |
650 | # error "wxUSE_MDI_ARCHITECTURE must be defined." | |
651 | # else | |
652 | # define wxUSE_MDI_ARCHITECTURE 0 | |
653 | # endif | |
654 | #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */ | |
655 | ||
656 | #ifndef wxUSE_MENUS | |
657 | # ifdef wxABORT_ON_CONFIG_ERROR | |
658 | # error "wxUSE_MENUS must be defined." | |
659 | # else | |
660 | # define wxUSE_MENUS 0 | |
661 | # endif | |
662 | #endif /* !defined(wxUSE_MENUS) */ | |
663 | ||
664 | #ifndef wxUSE_MSGDLG | |
665 | # ifdef wxABORT_ON_CONFIG_ERROR | |
666 | # error "wxUSE_MSGDLG must be defined." | |
667 | # else | |
668 | # define wxUSE_MSGDLG 0 | |
669 | # endif | |
670 | #endif /* !defined(wxUSE_MSGDLG) */ | |
671 | ||
672 | #ifndef wxUSE_NOTEBOOK | |
673 | # ifdef wxABORT_ON_CONFIG_ERROR | |
674 | # error "wxUSE_NOTEBOOK must be defined." | |
675 | # else | |
676 | # define wxUSE_NOTEBOOK 0 | |
677 | # endif | |
678 | #endif /* !defined(wxUSE_NOTEBOOK) */ | |
679 | ||
680 | #ifndef wxUSE_ODCOMBOBOX | |
681 | # ifdef wxABORT_ON_CONFIG_ERROR | |
682 | # error "wxUSE_ODCOMBOBOX must be defined." | |
683 | # else | |
684 | # define wxUSE_ODCOMBOBOX 0 | |
685 | # endif | |
686 | #endif /* !defined(wxUSE_ODCOMBOBOX) */ | |
687 | ||
688 | #ifndef wxUSE_PALETTE | |
689 | # ifdef wxABORT_ON_CONFIG_ERROR | |
690 | # error "wxUSE_PALETTE must be defined." | |
691 | # else | |
692 | # define wxUSE_PALETTE 0 | |
693 | # endif | |
694 | #endif /* !defined(wxUSE_PALETTE) */ | |
695 | ||
696 | #ifndef wxUSE_POPUPWIN | |
697 | # ifdef wxABORT_ON_CONFIG_ERROR | |
698 | # error "wxUSE_POPUPWIN must be defined." | |
699 | # else | |
700 | # define wxUSE_POPUPWIN 0 | |
701 | # endif | |
702 | #endif /* !defined(wxUSE_POPUPWIN) */ | |
703 | ||
704 | #ifndef wxUSE_PRINTING_ARCHITECTURE | |
705 | # ifdef wxABORT_ON_CONFIG_ERROR | |
706 | # error "wxUSE_PRINTING_ARCHITECTURE must be defined." | |
707 | # else | |
708 | # define wxUSE_PRINTING_ARCHITECTURE 0 | |
709 | # endif | |
710 | #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */ | |
711 | ||
712 | #ifndef wxUSE_RADIOBOX | |
713 | # ifdef wxABORT_ON_CONFIG_ERROR | |
714 | # error "wxUSE_RADIOBOX must be defined." | |
715 | # else | |
716 | # define wxUSE_RADIOBOX 0 | |
717 | # endif | |
718 | #endif /* !defined(wxUSE_RADIOBOX) */ | |
719 | ||
720 | #ifndef wxUSE_RADIOBTN | |
721 | # ifdef wxABORT_ON_CONFIG_ERROR | |
722 | # error "wxUSE_RADIOBTN must be defined." | |
723 | # else | |
724 | # define wxUSE_RADIOBTN 0 | |
725 | # endif | |
726 | #endif /* !defined(wxUSE_RADIOBTN) */ | |
727 | ||
728 | #ifndef wxUSE_SASH | |
729 | # ifdef wxABORT_ON_CONFIG_ERROR | |
730 | # error "wxUSE_SASH must be defined." | |
731 | # else | |
732 | # define wxUSE_SASH 0 | |
733 | # endif | |
734 | #endif /* !defined(wxUSE_SASH) */ | |
735 | ||
736 | #ifndef wxUSE_SCROLLBAR | |
737 | # ifdef wxABORT_ON_CONFIG_ERROR | |
738 | # error "wxUSE_SCROLLBAR must be defined." | |
739 | # else | |
740 | # define wxUSE_SCROLLBAR 0 | |
741 | # endif | |
742 | #endif /* !defined(wxUSE_SCROLLBAR) */ | |
743 | ||
744 | #ifndef wxUSE_SLIDER | |
745 | # ifdef wxABORT_ON_CONFIG_ERROR | |
746 | # error "wxUSE_SLIDER must be defined." | |
747 | # else | |
748 | # define wxUSE_SLIDER 0 | |
749 | # endif | |
750 | #endif /* !defined(wxUSE_SLIDER) */ | |
751 | ||
752 | #ifndef wxUSE_SOUND | |
753 | # ifdef wxABORT_ON_CONFIG_ERROR | |
754 | # error "wxUSE_SOUND must be defined." | |
755 | # else | |
756 | # define wxUSE_SOUND 0 | |
757 | # endif | |
758 | #endif /* !defined(wxUSE_SOUND) */ | |
759 | ||
760 | #ifndef wxUSE_SPINBTN | |
761 | # ifdef wxABORT_ON_CONFIG_ERROR | |
762 | # error "wxUSE_SPINBTN must be defined." | |
763 | # else | |
764 | # define wxUSE_SPINBTN 0 | |
765 | # endif | |
766 | #endif /* !defined(wxUSE_SPINBTN) */ | |
767 | ||
768 | #ifndef wxUSE_SPINCTRL | |
769 | # ifdef wxABORT_ON_CONFIG_ERROR | |
770 | # error "wxUSE_SPINCTRL must be defined." | |
771 | # else | |
772 | # define wxUSE_SPINCTRL 0 | |
773 | # endif | |
774 | #endif /* !defined(wxUSE_SPINCTRL) */ | |
775 | ||
776 | #ifndef wxUSE_SPLASH | |
777 | # ifdef wxABORT_ON_CONFIG_ERROR | |
778 | # error "wxUSE_SPLASH must be defined." | |
779 | # else | |
780 | # define wxUSE_SPLASH 0 | |
781 | # endif | |
782 | #endif /* !defined(wxUSE_SPLASH) */ | |
783 | ||
784 | #ifndef wxUSE_SPLITTER | |
785 | # ifdef wxABORT_ON_CONFIG_ERROR | |
786 | # error "wxUSE_SPLITTER must be defined." | |
787 | # else | |
788 | # define wxUSE_SPLITTER 0 | |
789 | # endif | |
790 | #endif /* !defined(wxUSE_SPLITTER) */ | |
791 | ||
792 | #ifndef wxUSE_STATBMP | |
793 | # ifdef wxABORT_ON_CONFIG_ERROR | |
794 | # error "wxUSE_STATBMP must be defined." | |
795 | # else | |
796 | # define wxUSE_STATBMP 0 | |
797 | # endif | |
798 | #endif /* !defined(wxUSE_STATBMP) */ | |
799 | ||
800 | #ifndef wxUSE_STATBOX | |
801 | # ifdef wxABORT_ON_CONFIG_ERROR | |
802 | # error "wxUSE_STATBOX must be defined." | |
803 | # else | |
804 | # define wxUSE_STATBOX 0 | |
805 | # endif | |
806 | #endif /* !defined(wxUSE_STATBOX) */ | |
807 | ||
808 | #ifndef wxUSE_STATLINE | |
809 | # ifdef wxABORT_ON_CONFIG_ERROR | |
810 | # error "wxUSE_STATLINE must be defined." | |
811 | # else | |
812 | # define wxUSE_STATLINE 0 | |
813 | # endif | |
814 | #endif /* !defined(wxUSE_STATLINE) */ | |
815 | ||
816 | #ifndef wxUSE_STATTEXT | |
817 | # ifdef wxABORT_ON_CONFIG_ERROR | |
818 | # error "wxUSE_STATTEXT must be defined." | |
819 | # else | |
820 | # define wxUSE_STATTEXT 0 | |
821 | # endif | |
822 | #endif /* !defined(wxUSE_STATTEXT) */ | |
823 | ||
824 | #ifndef wxUSE_STATUSBAR | |
825 | # ifdef wxABORT_ON_CONFIG_ERROR | |
826 | # error "wxUSE_STATUSBAR must be defined." | |
827 | # else | |
828 | # define wxUSE_STATUSBAR 0 | |
829 | # endif | |
830 | #endif /* !defined(wxUSE_STATUSBAR) */ | |
831 | ||
832 | #ifndef wxUSE_TAB_DIALOG | |
833 | # ifdef wxABORT_ON_CONFIG_ERROR | |
834 | # error "wxUSE_TAB_DIALOG must be defined." | |
835 | # else | |
836 | # define wxUSE_TAB_DIALOG 0 | |
837 | # endif | |
838 | #endif /* !defined(wxUSE_TAB_DIALOG) */ | |
839 | ||
840 | #ifndef wxUSE_TEXTCTRL | |
841 | # ifdef wxABORT_ON_CONFIG_ERROR | |
842 | # error "wxUSE_TEXTCTRL must be defined." | |
843 | # else | |
844 | # define wxUSE_TEXTCTRL 0 | |
845 | # endif | |
846 | #endif /* !defined(wxUSE_TEXTCTRL) */ | |
847 | ||
848 | #ifndef wxUSE_TIPWINDOW | |
849 | # ifdef wxABORT_ON_CONFIG_ERROR | |
850 | # error "wxUSE_TIPWINDOW must be defined." | |
851 | # else | |
852 | # define wxUSE_TIPWINDOW 0 | |
853 | # endif | |
854 | #endif /* !defined(wxUSE_TIPWINDOW) */ | |
855 | ||
856 | #ifndef wxUSE_TOOLBAR | |
857 | # ifdef wxABORT_ON_CONFIG_ERROR | |
858 | # error "wxUSE_TOOLBAR must be defined." | |
859 | # else | |
860 | # define wxUSE_TOOLBAR 0 | |
861 | # endif | |
862 | #endif /* !defined(wxUSE_TOOLBAR) */ | |
863 | ||
864 | #ifndef wxUSE_TOOLTIPS | |
865 | # ifdef wxABORT_ON_CONFIG_ERROR | |
866 | # error "wxUSE_TOOLTIPS must be defined." | |
867 | # else | |
868 | # define wxUSE_TOOLTIPS 0 | |
869 | # endif | |
870 | #endif /* !defined(wxUSE_TOOLTIPS) */ | |
871 | ||
872 | #ifndef wxUSE_TREECTRL | |
873 | # ifdef wxABORT_ON_CONFIG_ERROR | |
874 | # error "wxUSE_TREECTRL must be defined." | |
875 | # else | |
876 | # define wxUSE_TREECTRL 0 | |
877 | # endif | |
878 | #endif /* !defined(wxUSE_TREECTRL) */ | |
879 | ||
880 | #ifndef wxUSE_VALIDATORS | |
881 | # ifdef wxABORT_ON_CONFIG_ERROR | |
882 | # error "wxUSE_VALIDATORS must be defined." | |
883 | # else | |
884 | # define wxUSE_VALIDATORS 0 | |
885 | # endif | |
886 | #endif /* !defined(wxUSE_VALIDATORS) */ | |
887 | ||
888 | #ifndef wxUSE_WXHTML_HELP | |
889 | # ifdef wxABORT_ON_CONFIG_ERROR | |
890 | # error "wxUSE_WXHTML_HELP must be defined." | |
891 | # else | |
892 | # define wxUSE_WXHTML_HELP 0 | |
893 | # endif | |
894 | #endif /* !defined(wxUSE_WXHTML_HELP) */ | |
895 | ||
896 | #ifndef wxUSE_XRC | |
897 | # ifdef wxABORT_ON_CONFIG_ERROR | |
898 | # error "wxUSE_XRC must be defined." | |
899 | # else | |
900 | # define wxUSE_XRC 0 | |
901 | # endif | |
902 | #endif /* !defined(wxUSE_XRC) */ | |
903 | ||
904 | #endif /* wxUSE_GUI */ | |
905 | ||
906 | /* | |
907 | check consistency of the settings | |
908 | */ | |
909 | ||
910 | #if WXWIN_COMPATIBILITY_2_4 | |
911 | # if !WXWIN_COMPATIBILITY_2_6 | |
912 | # ifdef wxABORT_ON_CONFIG_ERROR | |
913 | # error "2.4.X compatibility requires 2.6.X compatibility" | |
914 | # else | |
915 | # undef WXWIN_COMPATIBILITY_2_6 | |
916 | # define WXWIN_COMPATIBILITY_2_6 1 | |
917 | # endif | |
918 | # endif | |
919 | #endif /* WXWIN_COMPATIBILITY_2_4 */ | |
920 | ||
921 | #if wxUSE_ARCHIVE_STREAMS | |
922 | # if !wxUSE_DATETIME | |
923 | # ifdef wxABORT_ON_CONFIG_ERROR | |
924 | # error "wxArchive requires wxUSE_DATETIME" | |
925 | # else | |
926 | # undef wxUSE_ARCHIVE_STREAMS | |
927 | # define wxUSE_ARCHIVE_STREAMS 0 | |
928 | # endif | |
929 | # endif | |
930 | #endif /* wxUSE_ARCHIVE_STREAMS */ | |
931 | ||
932 | #if wxUSE_CRASHREPORT && !wxUSE_ON_FATAL_EXCEPTION | |
933 | # ifdef wxABORT_ON_CONFIG_ERROR | |
934 | # error "wxUSE_CRASHREPORT requires wxUSE_ON_FATAL_EXCEPTION" | |
935 | # else | |
936 | # undef wxUSE_CRASHREPORT | |
937 | # define wxUSE_CRASHREPORT 0 | |
938 | # endif | |
939 | #endif /* wxUSE_CRASHREPORT */ | |
940 | ||
941 | #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP | |
942 | # if !wxUSE_PROTOCOL | |
943 | # ifdef wxABORT_ON_CONFIG_ERROR | |
944 | # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL" | |
945 | # else | |
946 | # undef wxUSE_PROTOCOL | |
947 | # define wxUSE_PROTOCOL 1 | |
948 | # endif | |
949 | # endif | |
950 | #endif /* wxUSE_PROTOCOL_XXX */ | |
951 | ||
952 | #if wxUSE_URL | |
953 | # if !wxUSE_PROTOCOL | |
954 | # ifdef wxABORT_ON_CONFIG_ERROR | |
955 | # error "wxUSE_URL requires wxUSE_PROTOCOL" | |
956 | # else | |
957 | # undef wxUSE_PROTOCOL | |
958 | # define wxUSE_PROTOCOL 1 | |
959 | # endif | |
960 | # endif | |
961 | #endif /* wxUSE_URL */ | |
962 | ||
963 | #if wxUSE_PROTOCOL | |
964 | # if !wxUSE_SOCKETS | |
965 | # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP | |
966 | # ifdef wxABORT_ON_CONFIG_ERROR | |
967 | # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS" | |
968 | # else | |
969 | # undef wxUSE_SOCKETS | |
970 | # define wxUSE_SOCKETS 1 | |
971 | # endif | |
972 | # endif | |
973 | # endif | |
974 | ||
975 | # if !wxUSE_STREAMS | |
976 | # ifdef wxABORT_ON_CONFIG_ERROR | |
977 | # error "wxUSE_PROTOCOL requires wxUSE_STREAMS" | |
978 | # else | |
979 | # undef wxUSE_STREAMS | |
980 | # define wxUSE_STREAMS 1 | |
981 | # endif | |
982 | # endif | |
983 | #endif /* wxUSE_PROTOCOL */ | |
984 | ||
985 | /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */ | |
986 | #if wxUSE_HTML | |
987 | # if !wxUSE_FILESYSTEM | |
988 | # ifdef wxABORT_ON_CONFIG_ERROR | |
989 | # error "wxHTML requires wxFileSystem" | |
990 | # else | |
991 | # undef wxUSE_FILESYSTEM | |
992 | # define wxUSE_FILESYSTEM 1 | |
993 | # endif | |
994 | # endif | |
995 | #endif /* wxUSE_HTML */ | |
996 | ||
997 | #if wxUSE_FILESYSTEM | |
998 | # if !wxUSE_STREAMS | |
999 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1000 | # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS" | |
1001 | # else | |
1002 | # undef wxUSE_STREAMS | |
1003 | # define wxUSE_STREAMS 1 | |
1004 | # endif | |
1005 | # endif | |
1006 | #endif /* wxUSE_FILESYSTEM */ | |
1007 | ||
1008 | #if wxUSE_FS_INET | |
1009 | # if !wxUSE_PROTOCOL | |
1010 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1011 | # error "wxUSE_FS_INET requires wxUSE_PROTOCOL" | |
1012 | # else | |
1013 | # undef wxUSE_PROTOCOL | |
1014 | # define wxUSE_PROTOCOL 1 | |
1015 | # endif | |
1016 | # endif | |
1017 | #endif /* wxUSE_FS_INET */ | |
1018 | ||
1019 | #if wxUSE_STOPWATCH || wxUSE_DATETIME | |
1020 | # if !wxUSE_LONGLONG | |
1021 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1022 | # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG" | |
1023 | # else | |
1024 | # undef wxUSE_LONGLONG | |
1025 | # define wxUSE_LONGLONG 1 | |
1026 | # endif | |
1027 | # endif | |
1028 | #endif /* wxUSE_STOPWATCH */ | |
1029 | ||
1030 | #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE | |
1031 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1032 | # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE" | |
1033 | # else | |
1034 | # undef wxUSE_TEXTFILE | |
1035 | # define wxUSE_TEXTFILE 1 | |
1036 | # endif | |
1037 | #endif /* wxUSE_MIMETYPE */ | |
1038 | ||
1039 | #if wxUSE_ODBC | |
1040 | # if !wxUSE_DATETIME | |
1041 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1042 | # error "wxODBC requires wxUSE_DATETIME" | |
1043 | # else | |
1044 | # undef wxUSE_ODBC | |
1045 | # define wxUSE_ODBC 0 | |
1046 | # endif | |
1047 | # endif | |
1048 | #endif /* wxUSE_ODBC */ | |
1049 | ||
1050 | #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER | |
1051 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1052 | # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER" | |
1053 | # else | |
1054 | # undef wxUSE_TEXTBUFFER | |
1055 | # define wxUSE_TEXTBUFFER 1 | |
1056 | # endif | |
1057 | #endif /* wxUSE_TEXTFILE */ | |
1058 | ||
1059 | #if wxUSE_TEXTFILE && !wxUSE_FILE | |
1060 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1061 | # error "wxUSE_TEXTFILE requires wxUSE_FILE" | |
1062 | # else | |
1063 | # undef wxUSE_FILE | |
1064 | # define wxUSE_FILE 1 | |
1065 | # endif | |
1066 | #endif /* wxUSE_TEXTFILE */ | |
1067 | ||
1068 | #if wxUSE_XML && !wxUSE_WCHAR_T | |
1069 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1070 | # error "wxUSE_XML requires wxUSE_WCHAR_T" | |
1071 | # else | |
1072 | # undef wxUSE_XML | |
1073 | # define wxUSE_XML 0 | |
1074 | # endif | |
1075 | #endif /* wxUSE_XML */ | |
1076 | ||
1077 | #if !wxUSE_DYNLIB_CLASS | |
1078 | # if wxUSE_DYNAMIC_LOADER | |
1079 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1080 | # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS." | |
1081 | # else | |
1082 | # define wxUSE_DYNLIB_CLASS 1 | |
1083 | # endif | |
1084 | # endif | |
1085 | #endif /* wxUSE_DYNLIB_CLASS */ | |
1086 | ||
1087 | #if wxUSE_ZIPSTREAM | |
1088 | # if !wxUSE_ZLIB | |
1089 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1090 | # error "wxZip requires wxZlib" | |
1091 | # else | |
1092 | # undef wxUSE_ZLIB | |
1093 | # define wxUSE_ZLIB 1 | |
1094 | # endif | |
1095 | # endif | |
1096 | # if !wxUSE_ARCHIVE_STREAMS | |
1097 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1098 | # error "wxZip requires wxArchive" | |
1099 | # else | |
1100 | # undef wxUSE_ARCHIVE_STREAMS | |
1101 | # define wxUSE_ARCHIVE_STREAMS 1 | |
1102 | # endif | |
1103 | # endif | |
1104 | #endif /* wxUSE_ZIPSTREAM */ | |
1105 | ||
1106 | /* the rest of the tests is for the GUI settings only */ | |
1107 | #if wxUSE_GUI | |
1108 | ||
1109 | #if wxUSE_BUTTON || \ | |
1110 | wxUSE_CALENDARCTRL || \ | |
1111 | wxUSE_CARET || \ | |
1112 | wxUSE_COMBOBOX || \ | |
1113 | wxUSE_BMPBUTTON || \ | |
1114 | wxUSE_CHECKBOX || \ | |
1115 | wxUSE_CHECKLISTBOX || \ | |
1116 | wxUSE_CHOICE || \ | |
1117 | wxUSE_GAUGE || \ | |
1118 | wxUSE_GRID || \ | |
1119 | wxUSE_LISTBOX || \ | |
1120 | wxUSE_LISTCTRL || \ | |
1121 | wxUSE_NOTEBOOK || \ | |
1122 | wxUSE_RADIOBOX || \ | |
1123 | wxUSE_RADIOBTN || \ | |
1124 | wxUSE_SCROLLBAR || \ | |
1125 | wxUSE_SLIDER || \ | |
1126 | wxUSE_SPINBTN || \ | |
1127 | wxUSE_SPINCTRL || \ | |
1128 | wxUSE_STATBMP || \ | |
1129 | wxUSE_STATBOX || \ | |
1130 | wxUSE_STATLINE || \ | |
1131 | wxUSE_STATTEXT || \ | |
1132 | wxUSE_STATUSBAR || \ | |
1133 | wxUSE_TEXTCTRL || \ | |
1134 | wxUSE_TOOLBAR || \ | |
1135 | wxUSE_TREECTRL | |
1136 | # if !wxUSE_CONTROLS | |
1137 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1138 | # error "wxUSE_CONTROLS unset but some controls used" | |
1139 | # else | |
1140 | # undef wxUSE_CONTROLS | |
1141 | # define wxUSE_CONTROLS 1 | |
1142 | # endif | |
1143 | # endif | |
1144 | #endif /* controls */ | |
1145 | ||
1146 | #if wxUSE_BMPBUTTON | |
1147 | # if !wxUSE_BUTTON | |
1148 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1149 | # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON" | |
1150 | # else | |
1151 | # undef wxUSE_BUTTON | |
1152 | # define wxUSE_BUTTON 1 | |
1153 | # endif | |
1154 | # endif | |
1155 | #endif /* wxUSE_BMPBUTTON */ | |
1156 | ||
1157 | #if wxUSE_NOTEBOOK || wxUSE_LISTBOOK || wxUSE_CHOICEBOOK | |
1158 | # if defined(wxUSE_BOOKCTRL) && !wxUSE_BOOKCTRL | |
1159 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1160 | # error "wxUSE_BOOKCTRL must be set." | |
1161 | # else | |
1162 | # undef wxUSE_BOOKCTRL | |
1163 | # endif | |
1164 | # endif | |
1165 | ||
1166 | # ifndef wxUSE_BOOKCTRL | |
1167 | # define wxUSE_BOOKCTRL 1 | |
1168 | # endif | |
1169 | #endif /* wxUSE_NOTEBOOK */ | |
1170 | ||
1171 | #if wxUSE_LISTBOOK | |
1172 | # if !wxUSE_LISTCTRL | |
1173 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1174 | # error "wxListbook requires wxListCtrl" | |
1175 | # else | |
1176 | # undef wxUSE_LISTCTRL | |
1177 | # define wxUSE_LISTCTRL 1 | |
1178 | # endif | |
1179 | # endif | |
1180 | #endif /* wxUSE_LISTBOOK */ | |
1181 | ||
1182 | #if wxUSE_CHOICEBOOK | |
1183 | # if !wxUSE_CHOICE | |
1184 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1185 | # error "wxChoicebook requires wxChoice" | |
1186 | # else | |
1187 | # undef wxUSE_CHOICE | |
1188 | # define wxUSE_CHOICE 1 | |
1189 | # endif | |
1190 | # endif | |
1191 | #endif /* wxUSE_CHOICEBOOK */ | |
1192 | ||
1193 | /* don't attempt to use native status bar on the platforms not having it */ | |
1194 | #ifndef wxUSE_NATIVE_STATUSBAR | |
1195 | # define wxUSE_NATIVE_STATUSBAR 0 | |
1196 | #elif wxUSE_NATIVE_STATUSBAR | |
1197 | # if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \ | |
1198 | defined(__WXMAC__) || \ | |
1199 | defined(__WXPALMOS__) ) | |
1200 | # undef wxUSE_NATIVE_STATUSBAR | |
1201 | # define wxUSE_NATIVE_STATUSBAR 0 | |
1202 | # endif | |
1203 | #endif | |
1204 | ||
1205 | /* wxUniv-specific dependencies */ | |
1206 | #if defined(__WXUNIVERSAL__) | |
1207 | # if (wxUSE_COMBOBOX || wxUSE_MENUS) && !wxUSE_POPUPWIN | |
1208 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1209 | # error "wxUSE_POPUPWIN must be defined to use comboboxes/menus" | |
1210 | # else | |
1211 | # undef wxUSE_POPUPWIN | |
1212 | # define wxUSE_POPUPWIN 1 | |
1213 | # endif | |
1214 | # endif | |
1215 | ||
1216 | # if wxUSE_COMBOBOX | |
1217 | # if !wxUSE_LISTBOX | |
1218 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1219 | # error "wxComboBox requires wxListBox in wxUniversal" | |
1220 | # else | |
1221 | # undef wxUSE_LISTBOX | |
1222 | # define wxUSE_LISTBOX 1 | |
1223 | # endif | |
1224 | # endif | |
1225 | # endif /* wxUSE_COMBOBOX */ | |
1226 | ||
1227 | # if wxUSE_RADIOBTN | |
1228 | # if !wxUSE_CHECKBOX | |
1229 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1230 | # error "wxUSE_RADIOBTN requires wxUSE_CHECKBOX in wxUniversal" | |
1231 | # else | |
1232 | # undef wxUSE_CHECKBOX | |
1233 | # define wxUSE_CHECKBOX 1 | |
1234 | # endif | |
1235 | # endif | |
1236 | # endif /* wxUSE_RADIOBTN */ | |
1237 | ||
1238 | # if wxUSE_TEXTCTRL | |
1239 | # if !wxUSE_CARET | |
1240 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1241 | # error "wxTextCtrl requires wxCaret in wxUniversal" | |
1242 | # else | |
1243 | # undef wxUSE_CARET | |
1244 | # define wxUSE_CARET 1 | |
1245 | # endif | |
1246 | # endif /* wxUSE_CARET */ | |
1247 | ||
1248 | # if !wxUSE_SCROLLBAR | |
1249 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1250 | # error "wxTextCtrl requires wxScrollBar in wxUniversal" | |
1251 | # else | |
1252 | # undef wxUSE_SCROLLBAR | |
1253 | # define wxUSE_SCROLLBAR 1 | |
1254 | # endif | |
1255 | # endif /* wxUSE_SCROLLBAR */ | |
1256 | # endif /* wxUSE_TEXTCTRL */ | |
1257 | #endif /* __WXUNIVERSAL__ */ | |
1258 | ||
1259 | /* wxGTK-specific dependencies */ | |
1260 | #ifdef __WXGTK__ | |
1261 | # ifndef __WXUNIVERSAL__ | |
1262 | # if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS | |
1263 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1264 | # error "MDI requires wxUSE_MENUS in wxGTK" | |
1265 | # else | |
1266 | # undef wxUSE_MENUS | |
1267 | # define wxUSE_MENUS 1 | |
1268 | # endif | |
1269 | # endif | |
1270 | # endif /* !__WXUNIVERSAL__ */ | |
1271 | ||
1272 | # if wxUSE_JOYSTICK | |
1273 | # if !wxUSE_THREADS | |
1274 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1275 | # error "wxJoystick requires threads in wxGTK" | |
1276 | # else | |
1277 | # undef wxUSE_JOYSTICK | |
1278 | # define wxUSE_JOYSTICK 0 | |
1279 | # endif | |
1280 | # endif | |
1281 | # endif | |
1282 | #endif /* wxGTK && !wxUniv */ | |
1283 | ||
1284 | /* wxMGL-specific dependencies */ | |
1285 | #ifdef __WXMGL__ | |
1286 | # if !wxUSE_PALETTE | |
1287 | # error "wxMGL requires wxUSE_PALETTE=1" | |
1288 | # endif | |
1289 | #endif /* wxMGL */ | |
1290 | ||
1291 | /* Hopefully we can emulate these dialogs in due course */ | |
1292 | #if defined(__SMARTPHONE__) && defined(__WXWINCE__) | |
1293 | # ifdef wxUSE_COLOURDLG | |
1294 | # undef wxUSE_COLOURDLG | |
1295 | # define wxUSE_COLOURDLG 0 | |
1296 | # endif | |
1297 | #endif /* __SMARTPHONE__ && __WXWINCE__ */ | |
1298 | ||
1299 | ||
1300 | /* generic controls dependencies */ | |
1301 | #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__) | |
1302 | # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG | |
1303 | /* all common controls are needed by these dialogs */ | |
1304 | # if !defined(wxUSE_CHOICE) || \ | |
1305 | !defined(wxUSE_TEXTCTRL) || \ | |
1306 | !defined(wxUSE_BUTTON) || \ | |
1307 | !defined(wxUSE_CHECKBOX) || \ | |
1308 | !defined(wxUSE_STATTEXT) | |
1309 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1310 | # error "These common controls are needed by common dialogs" | |
1311 | # else | |
1312 | # undef wxUSE_CHOICE | |
1313 | # define wxUSE_CHOICE 1 | |
1314 | # undef wxUSE_TEXTCTRL | |
1315 | # define wxUSE_TEXTCTRL 1 | |
1316 | # undef wxUSE_BUTTON | |
1317 | # define wxUSE_BUTTON 1 | |
1318 | # undef wxUSE_CHECKBOX | |
1319 | # define wxUSE_CHECKBOX 1 | |
1320 | # undef wxUSE_STATTEXT | |
1321 | # define wxUSE_STATTEXT 1 | |
1322 | # endif | |
1323 | # endif | |
1324 | # endif | |
1325 | #endif /* !wxMSW || wxUniv */ | |
1326 | ||
1327 | /* common dependencies */ | |
1328 | #if wxUSE_CALENDARCTRL | |
1329 | # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX) | |
1330 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1331 | # error "wxCalendarCtrl requires wxSpinButton and wxComboBox" | |
1332 | # else | |
1333 | # undef wxUSE_SPINBTN | |
1334 | # undef wxUSE_COMBOBOX | |
1335 | # define wxUSE_SPINBTN 1 | |
1336 | # define wxUSE_COMBOBOX 1 | |
1337 | # endif | |
1338 | # endif | |
1339 | ||
1340 | # if !wxUSE_DATETIME | |
1341 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1342 | # error "wxCalendarCtrl requires wxUSE_DATETIME" | |
1343 | # else | |
1344 | # undef wxUSE_DATETIME | |
1345 | # define wxUSE_DATETIME 1 | |
1346 | # endif | |
1347 | # endif | |
1348 | #endif /* wxUSE_CALENDARCTRL */ | |
1349 | ||
1350 | #if wxUSE_DATEPICKCTRL | |
1351 | # if !wxUSE_DATETIME | |
1352 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1353 | # error "wxDatePickerCtrl requires wxUSE_DATETIME" | |
1354 | # else | |
1355 | # undef wxUSE_DATETIME | |
1356 | # define wxUSE_DATETIME 1 | |
1357 | # endif | |
1358 | # endif | |
1359 | #endif /* wxUSE_DATEPICKCTRL */ | |
1360 | ||
1361 | #if wxUSE_CHECKLISTBOX | |
1362 | # if !wxUSE_LISTBOX | |
1363 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1364 | # error "wxCheckListBox requires wxListBox" | |
1365 | # else | |
1366 | # undef wxUSE_LISTBOX | |
1367 | # define wxUSE_LISTBOX 1 | |
1368 | # endif | |
1369 | # endif | |
1370 | #endif /* wxUSE_CHECKLISTBOX */ | |
1371 | ||
1372 | #if wxUSE_CHOICEDLG | |
1373 | # if !wxUSE_LISTBOX | |
1374 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1375 | # error "Choice dialogs requires wxListBox" | |
1376 | # else | |
1377 | # undef wxUSE_LISTBOX | |
1378 | # define wxUSE_LISTBOX 1 | |
1379 | # endif | |
1380 | # endif | |
1381 | #endif /* wxUSE_CHOICEDLG */ | |
1382 | ||
1383 | #if wxUSE_HELP | |
1384 | # if !wxUSE_BMPBUTTON | |
1385 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1386 | # error "wxUSE_HELP requires wxUSE_BMPBUTTON" | |
1387 | # else | |
1388 | # undef wxUSE_BMPBUTTON | |
1389 | # define wxUSE_BMPBUTTON 1 | |
1390 | # endif | |
1391 | # endif | |
1392 | ||
1393 | # if !wxUSE_CHOICEDLG | |
1394 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1395 | # error "wxUSE_HELP requires wxUSE_CHOICEDLG" | |
1396 | # else | |
1397 | # undef wxUSE_CHOICEDLG | |
1398 | # define wxUSE_CHOICEDLG 1 | |
1399 | # endif | |
1400 | # endif | |
1401 | #endif /* wxUSE_HELP */ | |
1402 | ||
1403 | #if wxUSE_WXHTML_HELP | |
1404 | # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL | |
1405 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1406 | # error "Built in help controller can't be compiled" | |
1407 | # else | |
1408 | # undef wxUSE_HELP | |
1409 | # define wxUSE_HELP 1 | |
1410 | # undef wxUSE_HTML | |
1411 | # define wxUSE_HTML 1 | |
1412 | # undef wxUSE_COMBOBOX | |
1413 | # define wxUSE_COMBOBOX 1 | |
1414 | # undef wxUSE_NOTEBOOK | |
1415 | # define wxUSE_NOTEBOOK 1 | |
1416 | # undef wxUSE_SPINCTRL | |
1417 | # define wxUSE_SPINCTRL 1 | |
1418 | # endif | |
1419 | # endif | |
1420 | #endif /* wxUSE_WXHTML_HELP */ | |
1421 | ||
1422 | #if !wxUSE_IMAGE | |
1423 | /* | |
1424 | The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the | |
1425 | user explicitly wants this and disable all other features that require | |
1426 | wxUSE_IMAGE. | |
1427 | */ | |
1428 | # if wxUSE_DRAGIMAGE | |
1429 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1430 | # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE" | |
1431 | # else | |
1432 | # undef wxUSE_DRAGIMAGE | |
1433 | # define wxUSE_DRAGIMAGE 0 | |
1434 | # endif | |
1435 | # endif | |
1436 | ||
1437 | # if wxUSE_LIBPNG | |
1438 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1439 | # error "wxUSE_LIBPNG requires wxUSE_IMAGE" | |
1440 | # else | |
1441 | # undef wxUSE_LIBPNG | |
1442 | # define wxUSE_LIBPNG 0 | |
1443 | # endif | |
1444 | # endif | |
1445 | ||
1446 | # if wxUSE_LIBJPEG | |
1447 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1448 | # error "wxUSE_LIBJPEG requires wxUSE_IMAGE" | |
1449 | # else | |
1450 | # undef wxUSE_LIBJPEG | |
1451 | # define wxUSE_LIBJPEG 0 | |
1452 | # endif | |
1453 | # endif | |
1454 | ||
1455 | # if wxUSE_LIBTIFF | |
1456 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1457 | # error "wxUSE_LIBTIFF requires wxUSE_IMAGE" | |
1458 | # else | |
1459 | # undef wxUSE_LIBTIFF | |
1460 | # define wxUSE_LIBTIFF 0 | |
1461 | # endif | |
1462 | # endif | |
1463 | ||
1464 | # if wxUSE_GIF | |
1465 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1466 | # error "wxUSE_GIF requires wxUSE_IMAGE" | |
1467 | # else | |
1468 | # undef wxUSE_GIF | |
1469 | # define wxUSE_GIF 0 | |
1470 | # endif | |
1471 | # endif | |
1472 | ||
1473 | # if wxUSE_PNM | |
1474 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1475 | # error "wxUSE_PNM requires wxUSE_IMAGE" | |
1476 | # else | |
1477 | # undef wxUSE_PNM | |
1478 | # define wxUSE_PNM 0 | |
1479 | # endif | |
1480 | # endif | |
1481 | ||
1482 | # if wxUSE_PCX | |
1483 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1484 | # error "wxUSE_PCX requires wxUSE_IMAGE" | |
1485 | # else | |
1486 | # undef wxUSE_PCX | |
1487 | # define wxUSE_PCX 0 | |
1488 | # endif | |
1489 | # endif | |
1490 | ||
1491 | # if wxUSE_IFF | |
1492 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1493 | # error "wxUSE_IFF requires wxUSE_IMAGE" | |
1494 | # else | |
1495 | # undef wxUSE_IFF | |
1496 | # define wxUSE_IFF 0 | |
1497 | # endif | |
1498 | # endif | |
1499 | ||
1500 | # if wxUSE_TOOLBAR | |
1501 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1502 | # error "wxUSE_TOOLBAR requires wxUSE_IMAGE" | |
1503 | # else | |
1504 | # undef wxUSE_TOOLBAR | |
1505 | # define wxUSE_TOOLBAR 0 | |
1506 | # endif | |
1507 | # endif | |
1508 | ||
1509 | # if wxUSE_XPM | |
1510 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1511 | # error "wxUSE_XPM requires wxUSE_IMAGE" | |
1512 | # else | |
1513 | # undef wxUSE_XPM | |
1514 | # define wxUSE_XPM 0 | |
1515 | # endif | |
1516 | # endif | |
1517 | ||
1518 | #endif /* !wxUSE_IMAGE */ | |
1519 | ||
1520 | #if wxUSE_DOC_VIEW_ARCHITECTURE | |
1521 | # if !wxUSE_MENUS | |
1522 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1523 | # error "DocView requires wxUSE_MENUS" | |
1524 | # else | |
1525 | # undef wxUSE_MENUS | |
1526 | # define wxUSE_MENUS 1 | |
1527 | # endif | |
1528 | # endif | |
1529 | ||
1530 | # if !wxUSE_CHOICEDLG | |
1531 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1532 | # error "DocView requires wxUSE_CHOICEDLG" | |
1533 | # else | |
1534 | # undef wxUSE_CHOICEDLG | |
1535 | # define wxUSE_CHOICEDLG 1 | |
1536 | # endif | |
1537 | # endif | |
1538 | ||
1539 | # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM | |
1540 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1541 | # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM" | |
1542 | # else | |
1543 | # undef wxUSE_STREAMS | |
1544 | # define wxUSE_STREAMS 1 | |
1545 | # endif | |
1546 | # endif | |
1547 | #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */ | |
1548 | ||
1549 | #if wxUSE_PRINTING_ARCHITECTURE | |
1550 | # if !wxUSE_COMBOBOX | |
1551 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1552 | # error "Print dialog requires wxUSE_COMBOBOX" | |
1553 | # else | |
1554 | # undef wxUSE_COMBOBOX | |
1555 | # define wxUSE_COMBOBOX 1 | |
1556 | # endif | |
1557 | # endif | |
1558 | #endif /* wxUSE_PRINTING_ARCHITECTURE */ | |
1559 | ||
1560 | #if wxUSE_MDI_ARCHITECTURE | |
1561 | # if !wxUSE_MDI | |
1562 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1563 | # error "MDI requires wxUSE_MDI" | |
1564 | # else | |
1565 | # undef wxUSE_MDI | |
1566 | # define wxUSE_MDI 1 | |
1567 | # endif | |
1568 | # endif | |
1569 | ||
1570 | # if !wxUSE_DOC_VIEW_ARCHITECTURE | |
1571 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1572 | # error "wxUSE_MDI_ARCHITECTURE requires wxUSE_DOC_VIEW_ARCHITECTURE" | |
1573 | # else | |
1574 | # undef wxUSE_DOC_VIEW_ARCHITECTURE | |
1575 | # define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
1576 | # endif | |
1577 | # endif | |
1578 | #endif /* wxUSE_MDI_ARCHITECTURE */ | |
1579 | ||
1580 | #if !wxUSE_FILEDLG | |
1581 | # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP | |
1582 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1583 | # error "wxUSE_FILEDLG is required by wxUSE_DOC_VIEW_ARCHITECTURE and wxUSE_WXHTML_HELP!" | |
1584 | # else | |
1585 | # undef wxUSE_FILEDLG | |
1586 | # define wxUSE_FILEDLG 1 | |
1587 | # endif | |
1588 | # endif | |
1589 | #endif /* wxUSE_FILEDLG */ | |
1590 | ||
1591 | #if !wxUSE_GAUGE || !wxUSE_BUTTON | |
1592 | # if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__) | |
1593 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1594 | # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON" | |
1595 | # else | |
1596 | # undef wxUSE_GAUGE | |
1597 | # undef wxUSE_BUTTON | |
1598 | # define wxUSE_GAUGE 1 | |
1599 | # define wxUSE_BUTTON 1 | |
1600 | # endif | |
1601 | # endif | |
1602 | #endif /* !wxUSE_GAUGE */ | |
1603 | ||
1604 | #if !wxUSE_BUTTON | |
1605 | # if wxUSE_FONTDLG || \ | |
1606 | wxUSE_FILEDLG || \ | |
1607 | wxUSE_CHOICEDLG || \ | |
1608 | wxUSE_NUMBERDLG || \ | |
1609 | wxUSE_TEXTDLG || \ | |
1610 | wxUSE_DIRDLG || \ | |
1611 | wxUSE_STARTUP_TIPS || \ | |
1612 | wxUSE_WIZARDDLG | |
1613 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1614 | # error "Common and generic dialogs require wxUSE_BUTTON" | |
1615 | # else | |
1616 | # undef wxUSE_BUTTON | |
1617 | # define wxUSE_BUTTON 1 | |
1618 | # endif | |
1619 | # endif | |
1620 | #endif /* !wxUSE_BUTTON */ | |
1621 | ||
1622 | #if !wxUSE_TOOLBAR | |
1623 | # if wxUSE_TOOLBAR_NATIVE | |
1624 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1625 | # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1" | |
1626 | # else | |
1627 | # undef wxUSE_TOOLBAR_NATIVE | |
1628 | # define wxUSE_TOOLBAR_NATIVE 0 | |
1629 | # endif | |
1630 | # endif | |
1631 | ||
1632 | # if wxUSE_TOOLBAR_SIMPLE | |
1633 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1634 | # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_SIMPLE is set to 1" | |
1635 | # else | |
1636 | # undef wxUSE_TOOLBAR_SIMPLE | |
1637 | # define wxUSE_TOOLBAR_SIMPLE 0 | |
1638 | # endif | |
1639 | # endif | |
1640 | #endif | |
1641 | ||
1642 | #if !wxUSE_IMAGLIST | |
1643 | # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL | |
1644 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1645 | # error "wxImageList must be compiled as well" | |
1646 | # else | |
1647 | # undef wxUSE_IMAGLIST | |
1648 | # define wxUSE_IMAGLIST 1 | |
1649 | # endif | |
1650 | # endif | |
1651 | #endif /* !wxUSE_IMAGLIST */ | |
1652 | ||
1653 | #if !wxUSE_MSGDLG | |
1654 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1655 | /* FIXME: should compile without it, of course, but doesn't */ | |
1656 | # error "wxMessageBox is always needed" | |
1657 | # else | |
1658 | # undef wxUSE_MSGDLG | |
1659 | # define wxUSE_MSGDLG 1 | |
1660 | # endif | |
1661 | #endif | |
1662 | ||
1663 | #if wxUSE_RADIOBOX | |
1664 | # if !wxUSE_RADIOBTN | |
1665 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1666 | # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN" | |
1667 | # else | |
1668 | # undef wxUSE_RADIOBTN | |
1669 | # define wxUSE_RADIOBTN 1 | |
1670 | # endif | |
1671 | # endif | |
1672 | # if !wxUSE_STATBOX && !defined(__WXPALMOS__) | |
1673 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1674 | # error "wxUSE_RADIOBOX requires wxUSE_STATBOX" | |
1675 | # else | |
1676 | # undef wxUSE_STATBOX | |
1677 | # define wxUSE_STATBOX 1 | |
1678 | # endif | |
1679 | # endif | |
1680 | #endif /* wxUSE_RADIOBOX */ | |
1681 | ||
1682 | #if wxUSE_LOGWINDOW | |
1683 | # if !wxUSE_TEXTCTRL | |
1684 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1685 | # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL" | |
1686 | # else | |
1687 | # undef wxUSE_TEXTCTRL | |
1688 | # define wxUSE_TEXTCTRL 1 | |
1689 | # endif | |
1690 | # endif | |
1691 | #endif /* wxUSE_LOGWINDOW */ | |
1692 | ||
1693 | #if wxUSE_LOG_DIALOG | |
1694 | # if !wxUSE_LISTCTRL || !wxUSE_BUTTON | |
1695 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1696 | # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON" | |
1697 | # else | |
1698 | # undef wxUSE_LISTCTRL | |
1699 | # define wxUSE_LISTCTRL 1 | |
1700 | # undef wxUSE_BUTTON | |
1701 | # define wxUSE_BUTTON 1 | |
1702 | # endif | |
1703 | # endif | |
1704 | #endif /* wxUSE_LOG_DIALOG */ | |
1705 | ||
1706 | #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ | |
1707 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1708 | # error "wxClipboard requires wxDataObject" | |
1709 | # else | |
1710 | # undef wxUSE_DATAOBJ | |
1711 | # define wxUSE_DATAOBJ 1 | |
1712 | # endif | |
1713 | #endif /* wxUSE_CLIPBOARD */ | |
1714 | ||
1715 | #if wxUSE_WX_RESOURCES && !wxUSE_PROLOGIO | |
1716 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1717 | # error "wxr resources require PrologIO" | |
1718 | # else | |
1719 | # undef wxUSE_PROLOGIO | |
1720 | # define wxUSE_PROLOGIO 1 | |
1721 | # endif | |
1722 | #endif /* wxUSE_WX_RESOURCES */ | |
1723 | ||
1724 | #if wxUSE_XRC && !wxUSE_XML | |
1725 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1726 | # error "wxUSE_XRC requires wxUSE_XML" | |
1727 | # else | |
1728 | # undef wxUSE_XRC | |
1729 | # define wxUSE_XRC 0 | |
1730 | # endif | |
1731 | #endif /* wxUSE_XRC */ | |
1732 | ||
1733 | #if wxUSE_SOCKETS && !wxUSE_STOPWATCH | |
1734 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1735 | # error "wxUSE_SOCKETS requires wxUSE_STOPWATCH" | |
1736 | # else | |
1737 | # undef wxUSE_SOCKETS | |
1738 | # define wxUSE_SOCKETS 0 | |
1739 | # endif | |
1740 | #endif /* wxUSE_SOCKETS */ | |
1741 | ||
1742 | #endif /* wxUSE_GUI */ |