]> git.saurik.com Git - wxWidgets.git/blob - configure
new VC++ templates and project files generated from them: now use only one
[wxWidgets.git] / configure
1 #! /bin/sh
2
3 # From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 # Configure paths for GTK+
40 # Owen Taylor 97-11-3
41
42
43
44
45
46
47 # Guess values for system-dependent variables and create Makefiles.
48 # Generated automatically using autoconf version 2.13
49 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
50 #
51 # This configure script is free software; the Free Software Foundation
52 # gives unlimited permission to copy, distribute and modify it.
53
54 # Defaults:
55 ac_help=
56 ac_default_prefix=/usr/local
57 # Any additions from configure.in:
58 ac_help="$ac_help
59 --enable-gui use GUI classes"
60 ac_help="$ac_help
61 --enable-universal use wxWindows GUI controls instead of native ones"
62 ac_help="$ac_help
63 --with-gtk use GTK+"
64 ac_help="$ac_help
65 --with-motif use Motif/Lesstif"
66 ac_help="$ac_help
67 --with-mac use Mac OS X"
68 ac_help="$ac_help
69 --with-wine use WINE"
70 ac_help="$ac_help
71 --with-cygwin use Cygwin for MS-Windows"
72 ac_help="$ac_help
73 --with-mingw use GCC Minimal MS-Windows"
74 ac_help="$ac_help
75 --with-pm use OS/2 Presentation Manager"
76 ac_help="$ac_help
77 --with-mgl use SciTech MGL"
78 ac_help="$ac_help
79 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
80 ac_help="$ac_help
81 --with-libpng use libpng (PNG image format)"
82 ac_help="$ac_help
83 --with-libjpeg use libjpeg (JPEG file format)"
84 ac_help="$ac_help
85 --with-libtiff use libtiff (TIFF file format)"
86 ac_help="$ac_help
87 --with-freetype use freetype (font rasterizer)"
88 ac_help="$ac_help
89 --with-opengl use OpenGL (or Mesa)"
90 ac_help="$ac_help
91 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
92 ac_help="$ac_help
93 --with-regex enable support for wxRegEx class"
94 ac_help="$ac_help
95 --with-zlib use zlib for LZW compression"
96 ac_help="$ac_help
97 --with-odbc use the IODBC and wxODBC classes"
98 ac_help="$ac_help
99 --enable-shared create shared library code"
100 ac_help="$ac_help
101 --enable-soname set the DT_SONAME field in ELF shared libraries"
102 ac_help="$ac_help
103 --enable-optimise create optimised code"
104 ac_help="$ac_help
105 --enable-debug same as debug_flag and debug_info"
106 ac_help="$ac_help
107 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
108 ac_help="$ac_help
109 --enable-debug_info create code with debugging information"
110 ac_help="$ac_help
111 --enable-debug_gdb create code with extra GDB debugging information"
112 ac_help="$ac_help
113 --enable-debug_cntxt use wxDebugContext"
114 ac_help="$ac_help
115 --enable-mem_tracing create code with memory tracing"
116 ac_help="$ac_help
117 --enable-profile create code with profiling information"
118 ac_help="$ac_help
119 --enable-no_rtti create code without RTTI information"
120 ac_help="$ac_help
121 --enable-no_exceptions create code without C++ exceptions handling"
122 ac_help="$ac_help
123 --enable-permissive compile code disregarding strict ANSI"
124 ac_help="$ac_help
125 --enable-no_deps create code without dependency information"
126 ac_help="$ac_help
127 --enable-compat20 enable wxWindows 2.0 compatibility"
128 ac_help="$ac_help
129 --enable-compat22 enable wxWindows 2.2 compatibility"
130 ac_help="$ac_help
131 --enable-intl use internationalization system"
132 ac_help="$ac_help
133 --enable-config use wxConfig (and derived) classes"
134 ac_help="$ac_help
135 --enable-sockets use socket/network classes"
136 ac_help="$ac_help
137 --enable-ipc use interprocess communication (wxSocket etc.)"
138 ac_help="$ac_help
139 --enable-cmdline use wxCmdLineParser class"
140 ac_help="$ac_help
141 --enable-datetime use wxDateTime class"
142 ac_help="$ac_help
143 --enable-timedate use obsolete wxDate/wxTime classes"
144 ac_help="$ac_help
145 --enable-stopwatch use wxStopWatch class"
146 ac_help="$ac_help
147 --enable-dialupman use dialup network classes"
148 ac_help="$ac_help
149 --enable-apple_ieee use the Apple IEEE codec"
150 ac_help="$ac_help
151 --enable-timer use wxTimer class"
152 ac_help="$ac_help
153 --enable-wave use wxWave class"
154 ac_help="$ac_help
155 --enable-fraction use wxFraction class"
156 ac_help="$ac_help
157 --enable-dynlib use wxLibrary class for DLL loading"
158 ac_help="$ac_help
159 --enable-longlong use wxLongLong class"
160 ac_help="$ac_help
161 --enable-geometry use geometry class"
162 ac_help="$ac_help
163 --enable-log use logging system"
164 ac_help="$ac_help
165 --enable-streams use wxStream etc classes"
166 ac_help="$ac_help
167 --enable-file use wxFile classes"
168 ac_help="$ac_help
169 --enable-ffile use wxFFile classes"
170 ac_help="$ac_help
171 --enable-textfile use wxTextFile classes"
172 ac_help="$ac_help
173 --enable-fontmap use font encodings conversion classes"
174 ac_help="$ac_help
175 --enable-unicode compile wxString with Unicode support"
176 ac_help="$ac_help
177 --enable-wxprintfv use wxWindows implementation of vprintf()"
178 ac_help="$ac_help
179 --enable-std_iostreams use standard C++ stream classes"
180 ac_help="$ac_help
181 --enable-filesystem use virtual file systems classes"
182 ac_help="$ac_help
183 --enable-fs_inet use virtual HTTP/FTP filesystems"
184 ac_help="$ac_help
185 --enable-fs_zip use virtual ZIP filesystems"
186 ac_help="$ac_help
187 --enable-zipstream use wxZipInputStream"
188 ac_help="$ac_help
189 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
190 ac_help="$ac_help
191 --enable-snglinst use wxSingleInstanceChecker class"
192 ac_help="$ac_help
193 --enable-mimetypes use wxMimeTypesManager"
194 ac_help="$ac_help
195 --enable-sysoptions use wxSystemOptions"
196 ac_help="$ac_help
197 --enable-threads use threads"
198 ac_help="$ac_help
199 --enable-serial use class serialization"
200 ac_help="$ac_help
201 --enable-docview use document view architecture"
202 ac_help="$ac_help
203 --enable-help use help subsystem"
204 ac_help="$ac_help
205 --enable-mshtmlhelp use MS HTML Help (win32)"
206 ac_help="$ac_help
207 --enable-html use wxHTML sub-library"
208 ac_help="$ac_help
209 --enable-htmlhelp use wxHTML-based help"
210 ac_help="$ac_help
211 --enable-constraints use layout-constraints system"
212 ac_help="$ac_help
213 --enable-printarch use printing architecture"
214 ac_help="$ac_help
215 --enable-mdi use multiple document interface architecture"
216 ac_help="$ac_help
217 --enable-loggui use standard GUI logger"
218 ac_help="$ac_help
219 --enable-logwin use wxLogWindow"
220 ac_help="$ac_help
221 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
222 ac_help="$ac_help
223 --enable-prologio use Prolog IO library"
224 ac_help="$ac_help
225 --enable-resources use wxWindows resources"
226 ac_help="$ac_help
227 --enable-xresources use X resources for save (default for gtk+)"
228 ac_help="$ac_help
229 --enable-clipboard use wxClipboard classes"
230 ac_help="$ac_help
231 --enable-dnd use Drag'n'Drop classes"
232 ac_help="$ac_help
233 --enable-metafile use win32 metafiles"
234 ac_help="$ac_help
235 --enable-treelayout use wxTreeLayout classes"
236 ac_help="$ac_help
237 --enable-controls use all usual controls"
238 ac_help="$ac_help
239 --enable-accel use accelerators"
240 ac_help="$ac_help
241 --enable-button use wxButton class"
242 ac_help="$ac_help
243 --enable-bmpbutton use wxBitmapButton class"
244 ac_help="$ac_help
245 --enable-calendar use wxCalendarCtrl class"
246 ac_help="$ac_help
247 --enable-caret use wxCaret class"
248 ac_help="$ac_help
249 --enable-checkbox use wxCheckBox class"
250 ac_help="$ac_help
251 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
252 ac_help="$ac_help
253 --enable-choice use wxChoice class"
254 ac_help="$ac_help
255 --enable-combobox use wxComboBox classes"
256 ac_help="$ac_help
257 --enable-gauge use wxGauge class"
258 ac_help="$ac_help
259 --enable-grid use wxGrid class"
260 ac_help="$ac_help
261 --enable-newgrid use new wxGrid class"
262 ac_help="$ac_help
263 --enable-imaglist use wxImageList class"
264 ac_help="$ac_help
265 --enable-listbox use wxListBox class"
266 ac_help="$ac_help
267 --enable-listctrl use wxListCtrl class"
268 ac_help="$ac_help
269 --enable-notebook use wxNotebook class"
270 ac_help="$ac_help
271 --enable-propsheet use wxPropertySheet class"
272 ac_help="$ac_help
273 --enable-radiobox use wxRadioBox class"
274 ac_help="$ac_help
275 --enable-radiobtn use wxRadioButton class"
276 ac_help="$ac_help
277 --enable-sash use wxSashWindow class"
278 ac_help="$ac_help
279 --enable-scrollbar use wxScrollBar class and scrollable windows"
280 ac_help="$ac_help
281 --enable-slider use wxSlider class"
282 ac_help="$ac_help
283 --enable-spinbtn use wxSpinButton class"
284 ac_help="$ac_help
285 --enable-spinctrl use wxSpinCtrl class"
286 ac_help="$ac_help
287 --enable-splitter use wxSplitterWindow class"
288 ac_help="$ac_help
289 --enable-statbmp use wxStaticBitmap class"
290 ac_help="$ac_help
291 --enable-statbox use wxStaticBox class"
292 ac_help="$ac_help
293 --enable-statline use wxStaticLine class"
294 ac_help="$ac_help
295 --enable-stattext use wxStaticText class"
296 ac_help="$ac_help
297 --enable-statusbar use wxStatusBar class"
298 ac_help="$ac_help
299 --enable-tabdialog use wxTabControl class"
300 ac_help="$ac_help
301 --enable-textctrl use wxTextCtrl class"
302 ac_help="$ac_help
303 --enable-togglebtn use wxToggleButton class"
304 ac_help="$ac_help
305 --enable-toolbar use wxToolBar class"
306 ac_help="$ac_help
307 --enable-tbarnative use native wxToolBar class"
308 ac_help="$ac_help
309 --enable-tbarsmpl use wxToolBarSimple class"
310 ac_help="$ac_help
311 --enable-treectrl use wxTreeCtrl class"
312 ac_help="$ac_help
313 --enable-popupwin use wxPopUpWindow class"
314 ac_help="$ac_help
315 --enable-commondlg use all common dialogs"
316 ac_help="$ac_help
317 --enable-choicedlg use wxChoiceDialog"
318 ac_help="$ac_help
319 --enable-coldlg use wxColourDialog"
320 ac_help="$ac_help
321 --enable-filedlg use wxFileDialog"
322 ac_help="$ac_help
323 --enable-finddlg use wxFindReplaceDialog"
324 ac_help="$ac_help
325 --enable-fontdlg use wxFontDialog"
326 ac_help="$ac_help
327 --enable-dirdlg use wxDirDialog"
328 ac_help="$ac_help
329 --enable-msgdlg use wxMessageDialog"
330 ac_help="$ac_help
331 --enable-numberdlg use wxNumberEntryDialog"
332 ac_help="$ac_help
333 --enable-splash use wxSplashScreen"
334 ac_help="$ac_help
335 --enable-textdlg use wxTextDialog"
336 ac_help="$ac_help
337 --enable-tipdlg use startup tips"
338 ac_help="$ac_help
339 --enable-progressdlg use wxProgressDialog"
340 ac_help="$ac_help
341 --enable-wizarddlg use wxWizard"
342 ac_help="$ac_help
343 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
344 ac_help="$ac_help
345 --enable-miniframe use wxMiniFrame class"
346 ac_help="$ac_help
347 --enable-tooltips use wxToolTip class"
348 ac_help="$ac_help
349 --enable-splines use spline drawing code"
350 ac_help="$ac_help
351 --enable-validators use wxValidator and derived classes"
352 ac_help="$ac_help
353 --enable-busyinfo use wxBusyInfo"
354 ac_help="$ac_help
355 --enable-joystick use wxJoystick (Linux only)"
356 ac_help="$ac_help
357 --enable-metafiles use wxMetaFile (Windows only)"
358 ac_help="$ac_help
359 --enable-dragimage use wxDragImage"
360 ac_help="$ac_help
361 --enable-palette use wxPalette class"
362 ac_help="$ac_help
363 --enable-image use wxImage class"
364 ac_help="$ac_help
365 --enable-gif use gif images (GIF file format)"
366 ac_help="$ac_help
367 --enable-pcx use pcx images (PCX file format)"
368 ac_help="$ac_help
369 --enable-pnm use pnm images (PNM file format)"
370 ac_help="$ac_help
371 --enable-xpm use xpm images (XPM file format)"
372 ac_help="$ac_help
373 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
374 ac_help="$ac_help
375 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
376 ac_help="$ac_help
377 --disable-gtktest Do not try to compile and run a test GTK program"
378 ac_help="$ac_help
379 --with-x use the X Window System"
380
381 # Initialize some variables set by options.
382 # The variables have the same names as the options, with
383 # dashes changed to underlines.
384 build=NONE
385 cache_file=./config.cache
386 exec_prefix=NONE
387 host=NONE
388 no_create=
389 nonopt=NONE
390 no_recursion=
391 prefix=NONE
392 program_prefix=NONE
393 program_suffix=NONE
394 program_transform_name=s,x,x,
395 silent=
396 site=
397 srcdir=
398 target=NONE
399 verbose=
400 x_includes=NONE
401 x_libraries=NONE
402 bindir='${exec_prefix}/bin'
403 sbindir='${exec_prefix}/sbin'
404 libexecdir='${exec_prefix}/libexec'
405 datadir='${prefix}/share'
406 sysconfdir='${prefix}/etc'
407 sharedstatedir='${prefix}/com'
408 localstatedir='${prefix}/var'
409 libdir='${exec_prefix}/lib'
410 includedir='${prefix}/include'
411 oldincludedir='/usr/include'
412 infodir='${prefix}/info'
413 mandir='${prefix}/man'
414
415 # Initialize some other variables.
416 subdirs=
417 MFLAGS= MAKEFLAGS=
418 SHELL=${CONFIG_SHELL-/bin/sh}
419 # Maximum number of lines to put in a shell here document.
420 ac_max_here_lines=12
421
422 ac_prev=
423 for ac_option
424 do
425
426 # If the previous option needs an argument, assign it.
427 if test -n "$ac_prev"; then
428 eval "$ac_prev=\$ac_option"
429 ac_prev=
430 continue
431 fi
432
433 case "$ac_option" in
434 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
435 *) ac_optarg= ;;
436 esac
437
438 # Accept the important Cygnus configure options, so we can diagnose typos.
439
440 case "$ac_option" in
441
442 -bindir | --bindir | --bindi | --bind | --bin | --bi)
443 ac_prev=bindir ;;
444 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
445 bindir="$ac_optarg" ;;
446
447 -build | --build | --buil | --bui | --bu)
448 ac_prev=build ;;
449 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
450 build="$ac_optarg" ;;
451
452 -cache-file | --cache-file | --cache-fil | --cache-fi \
453 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
454 ac_prev=cache_file ;;
455 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
456 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
457 cache_file="$ac_optarg" ;;
458
459 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
460 ac_prev=datadir ;;
461 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
462 | --da=*)
463 datadir="$ac_optarg" ;;
464
465 -disable-* | --disable-*)
466 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
467 # Reject names that are not valid shell variable names.
468 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
469 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
470 fi
471 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
472 eval "enable_${ac_feature}=no" ;;
473
474 -enable-* | --enable-*)
475 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
476 # Reject names that are not valid shell variable names.
477 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
478 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
479 fi
480 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
481 case "$ac_option" in
482 *=*) ;;
483 *) ac_optarg=yes ;;
484 esac
485 eval "enable_${ac_feature}='$ac_optarg'" ;;
486
487 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
488 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
489 | --exec | --exe | --ex)
490 ac_prev=exec_prefix ;;
491 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
492 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
493 | --exec=* | --exe=* | --ex=*)
494 exec_prefix="$ac_optarg" ;;
495
496 -gas | --gas | --ga | --g)
497 # Obsolete; use --with-gas.
498 with_gas=yes ;;
499
500 -help | --help | --hel | --he)
501 # Omit some internal or obsolete options to make the list less imposing.
502 # This message is too long to be a string in the A/UX 3.1 sh.
503 cat << EOF
504 Usage: configure [options] [host]
505 Options: [defaults in brackets after descriptions]
506 Configuration:
507 --cache-file=FILE cache test results in FILE
508 --help print this message
509 --no-create do not create output files
510 --quiet, --silent do not print \`checking...' messages
511 --version print the version of autoconf that created configure
512 Directory and file names:
513 --prefix=PREFIX install architecture-independent files in PREFIX
514 [$ac_default_prefix]
515 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
516 [same as prefix]
517 --bindir=DIR user executables in DIR [EPREFIX/bin]
518 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
519 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
520 --datadir=DIR read-only architecture-independent data in DIR
521 [PREFIX/share]
522 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
523 --sharedstatedir=DIR modifiable architecture-independent data in DIR
524 [PREFIX/com]
525 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
526 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
527 --includedir=DIR C header files in DIR [PREFIX/include]
528 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
529 --infodir=DIR info documentation in DIR [PREFIX/info]
530 --mandir=DIR man documentation in DIR [PREFIX/man]
531 --srcdir=DIR find the sources in DIR [configure dir or ..]
532 --program-prefix=PREFIX prepend PREFIX to installed program names
533 --program-suffix=SUFFIX append SUFFIX to installed program names
534 --program-transform-name=PROGRAM
535 run sed PROGRAM on installed program names
536 EOF
537 cat << EOF
538 Host type:
539 --build=BUILD configure for building on BUILD [BUILD=HOST]
540 --host=HOST configure for HOST [guessed]
541 --target=TARGET configure for TARGET [TARGET=HOST]
542 Features and packages:
543 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
544 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
545 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
546 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
547 --x-includes=DIR X include files are in DIR
548 --x-libraries=DIR X library files are in DIR
549 EOF
550 if test -n "$ac_help"; then
551 echo "--enable and --with options recognized:$ac_help"
552 fi
553 exit 0 ;;
554
555 -host | --host | --hos | --ho)
556 ac_prev=host ;;
557 -host=* | --host=* | --hos=* | --ho=*)
558 host="$ac_optarg" ;;
559
560 -includedir | --includedir | --includedi | --included | --include \
561 | --includ | --inclu | --incl | --inc)
562 ac_prev=includedir ;;
563 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
564 | --includ=* | --inclu=* | --incl=* | --inc=*)
565 includedir="$ac_optarg" ;;
566
567 -infodir | --infodir | --infodi | --infod | --info | --inf)
568 ac_prev=infodir ;;
569 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
570 infodir="$ac_optarg" ;;
571
572 -libdir | --libdir | --libdi | --libd)
573 ac_prev=libdir ;;
574 -libdir=* | --libdir=* | --libdi=* | --libd=*)
575 libdir="$ac_optarg" ;;
576
577 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
578 | --libexe | --libex | --libe)
579 ac_prev=libexecdir ;;
580 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
581 | --libexe=* | --libex=* | --libe=*)
582 libexecdir="$ac_optarg" ;;
583
584 -localstatedir | --localstatedir | --localstatedi | --localstated \
585 | --localstate | --localstat | --localsta | --localst \
586 | --locals | --local | --loca | --loc | --lo)
587 ac_prev=localstatedir ;;
588 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
589 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
590 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
591 localstatedir="$ac_optarg" ;;
592
593 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
594 ac_prev=mandir ;;
595 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
596 mandir="$ac_optarg" ;;
597
598 -nfp | --nfp | --nf)
599 # Obsolete; use --without-fp.
600 with_fp=no ;;
601
602 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
603 | --no-cr | --no-c)
604 no_create=yes ;;
605
606 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
607 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
608 no_recursion=yes ;;
609
610 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
611 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
612 | --oldin | --oldi | --old | --ol | --o)
613 ac_prev=oldincludedir ;;
614 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
615 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
616 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
617 oldincludedir="$ac_optarg" ;;
618
619 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
620 ac_prev=prefix ;;
621 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
622 prefix="$ac_optarg" ;;
623
624 -program-prefix | --program-prefix | --program-prefi | --program-pref \
625 | --program-pre | --program-pr | --program-p)
626 ac_prev=program_prefix ;;
627 -program-prefix=* | --program-prefix=* | --program-prefi=* \
628 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
629 program_prefix="$ac_optarg" ;;
630
631 -program-suffix | --program-suffix | --program-suffi | --program-suff \
632 | --program-suf | --program-su | --program-s)
633 ac_prev=program_suffix ;;
634 -program-suffix=* | --program-suffix=* | --program-suffi=* \
635 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
636 program_suffix="$ac_optarg" ;;
637
638 -program-transform-name | --program-transform-name \
639 | --program-transform-nam | --program-transform-na \
640 | --program-transform-n | --program-transform- \
641 | --program-transform | --program-transfor \
642 | --program-transfo | --program-transf \
643 | --program-trans | --program-tran \
644 | --progr-tra | --program-tr | --program-t)
645 ac_prev=program_transform_name ;;
646 -program-transform-name=* | --program-transform-name=* \
647 | --program-transform-nam=* | --program-transform-na=* \
648 | --program-transform-n=* | --program-transform-=* \
649 | --program-transform=* | --program-transfor=* \
650 | --program-transfo=* | --program-transf=* \
651 | --program-trans=* | --program-tran=* \
652 | --progr-tra=* | --program-tr=* | --program-t=*)
653 program_transform_name="$ac_optarg" ;;
654
655 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
656 | -silent | --silent | --silen | --sile | --sil)
657 silent=yes ;;
658
659 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
660 ac_prev=sbindir ;;
661 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
662 | --sbi=* | --sb=*)
663 sbindir="$ac_optarg" ;;
664
665 -sharedstatedir | --sharedstatedir | --sharedstatedi \
666 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
667 | --sharedst | --shareds | --shared | --share | --shar \
668 | --sha | --sh)
669 ac_prev=sharedstatedir ;;
670 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
671 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
672 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
673 | --sha=* | --sh=*)
674 sharedstatedir="$ac_optarg" ;;
675
676 -site | --site | --sit)
677 ac_prev=site ;;
678 -site=* | --site=* | --sit=*)
679 site="$ac_optarg" ;;
680
681 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
682 ac_prev=srcdir ;;
683 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
684 srcdir="$ac_optarg" ;;
685
686 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
687 | --syscon | --sysco | --sysc | --sys | --sy)
688 ac_prev=sysconfdir ;;
689 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
690 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
691 sysconfdir="$ac_optarg" ;;
692
693 -target | --target | --targe | --targ | --tar | --ta | --t)
694 ac_prev=target ;;
695 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
696 target="$ac_optarg" ;;
697
698 -v | -verbose | --verbose | --verbos | --verbo | --verb)
699 verbose=yes ;;
700
701 -version | --version | --versio | --versi | --vers)
702 echo "configure generated by autoconf version 2.13"
703 exit 0 ;;
704
705 -with-* | --with-*)
706 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
707 # Reject names that are not valid shell variable names.
708 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
709 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
710 fi
711 ac_package=`echo $ac_package| sed 's/-/_/g'`
712 case "$ac_option" in
713 *=*) ;;
714 *) ac_optarg=yes ;;
715 esac
716 eval "with_${ac_package}='$ac_optarg'" ;;
717
718 -without-* | --without-*)
719 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
720 # Reject names that are not valid shell variable names.
721 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
722 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
723 fi
724 ac_package=`echo $ac_package| sed 's/-/_/g'`
725 eval "with_${ac_package}=no" ;;
726
727 --x)
728 # Obsolete; use --with-x.
729 with_x=yes ;;
730
731 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
732 | --x-incl | --x-inc | --x-in | --x-i)
733 ac_prev=x_includes ;;
734 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
735 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
736 x_includes="$ac_optarg" ;;
737
738 -x-libraries | --x-libraries | --x-librarie | --x-librari \
739 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
740 ac_prev=x_libraries ;;
741 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
742 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
743 x_libraries="$ac_optarg" ;;
744
745 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
746 ;;
747
748 *)
749 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
750 echo "configure: warning: $ac_option: invalid host type" 1>&2
751 fi
752 if test "x$nonopt" != xNONE; then
753 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
754 fi
755 nonopt="$ac_option"
756 ;;
757
758 esac
759 done
760
761 if test -n "$ac_prev"; then
762 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
763 fi
764
765 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
766
767 # File descriptor usage:
768 # 0 standard input
769 # 1 file creation
770 # 2 errors and warnings
771 # 3 some systems may open it to /dev/tty
772 # 4 used on the Kubota Titan
773 # 6 checking for... messages and results
774 # 5 compiler messages saved in config.log
775 if test "$silent" = yes; then
776 exec 6>/dev/null
777 else
778 exec 6>&1
779 fi
780 exec 5>./config.log
781
782 echo "\
783 This file contains any messages produced by compilers while
784 running configure, to aid debugging if configure makes a mistake.
785 " 1>&5
786
787 # Strip out --no-create and --no-recursion so they do not pile up.
788 # Also quote any args containing shell metacharacters.
789 ac_configure_args=
790 for ac_arg
791 do
792 case "$ac_arg" in
793 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
794 | --no-cr | --no-c) ;;
795 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
796 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
797 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
798 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
799 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
800 esac
801 done
802
803 # NLS nuisances.
804 # Only set these to C if already set. These must not be set unconditionally
805 # because not all systems understand e.g. LANG=C (notably SCO).
806 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
807 # Non-C LC_CTYPE values break the ctype check.
808 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
809 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
810 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
811 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
812
813 # confdefs.h avoids OS command line length limits that DEFS can exceed.
814 rm -rf conftest* confdefs.h
815 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
816 echo > confdefs.h
817
818 # A filename unique to this package, relative to the directory that
819 # configure is in, which we can look for to find out if srcdir is correct.
820 ac_unique_file=wx-config.in
821
822 # Find the source files, if location was not specified.
823 if test -z "$srcdir"; then
824 ac_srcdir_defaulted=yes
825 # Try the directory containing this script, then its parent.
826 ac_prog=$0
827 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
828 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
829 srcdir=$ac_confdir
830 if test ! -r $srcdir/$ac_unique_file; then
831 srcdir=..
832 fi
833 else
834 ac_srcdir_defaulted=no
835 fi
836 if test ! -r $srcdir/$ac_unique_file; then
837 if test "$ac_srcdir_defaulted" = yes; then
838 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
839 else
840 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
841 fi
842 fi
843 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
844
845 # Prefer explicitly selected file to automatically selected ones.
846 if test -z "$CONFIG_SITE"; then
847 if test "x$prefix" != xNONE; then
848 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
849 else
850 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
851 fi
852 fi
853 for ac_site_file in $CONFIG_SITE; do
854 if test -r "$ac_site_file"; then
855 echo "loading site script $ac_site_file"
856 . "$ac_site_file"
857 fi
858 done
859
860 if test -r "$cache_file"; then
861 echo "loading cache $cache_file"
862 . $cache_file
863 else
864 echo "creating cache $cache_file"
865 > $cache_file
866 fi
867
868 ac_ext=c
869 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
870 ac_cpp='$CPP $CPPFLAGS'
871 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
872 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
873 cross_compiling=$ac_cv_prog_cc_cross
874
875 ac_exeext=
876 ac_objext=o
877 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
878 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
879 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
880 ac_n= ac_c='
881 ' ac_t=' '
882 else
883 ac_n=-n ac_c= ac_t=
884 fi
885 else
886 ac_n= ac_c='\c' ac_t=
887 fi
888
889
890
891 ac_aux_dir=
892 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
893 if test -f $ac_dir/install-sh; then
894 ac_aux_dir=$ac_dir
895 ac_install_sh="$ac_aux_dir/install-sh -c"
896 break
897 elif test -f $ac_dir/install.sh; then
898 ac_aux_dir=$ac_dir
899 ac_install_sh="$ac_aux_dir/install.sh -c"
900 break
901 fi
902 done
903 if test -z "$ac_aux_dir"; then
904 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
905 fi
906 ac_config_guess=$ac_aux_dir/config.guess
907 ac_config_sub=$ac_aux_dir/config.sub
908 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
909
910
911 # Do some error checking and defaulting for the host and target type.
912 # The inputs are:
913 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
914 #
915 # The rules are:
916 # 1. You are not allowed to specify --host, --target, and nonopt at the
917 # same time.
918 # 2. Host defaults to nonopt.
919 # 3. If nonopt is not specified, then host defaults to the current host,
920 # as determined by config.guess.
921 # 4. Target and build default to nonopt.
922 # 5. If nonopt is not specified, then target and build default to host.
923
924 # The aliases save the names the user supplied, while $host etc.
925 # will get canonicalized.
926 case $host---$target---$nonopt in
927 NONE---*---* | *---NONE---* | *---*---NONE) ;;
928 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
929 esac
930
931
932 # Make sure we can run config.sub.
933 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
934 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
935 fi
936
937 echo $ac_n "checking host system type""... $ac_c" 1>&6
938 echo "configure:939: checking host system type" >&5
939
940 host_alias=$host
941 case "$host_alias" in
942 NONE)
943 case $nonopt in
944 NONE)
945 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
946 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
947 fi ;;
948 *) host_alias=$nonopt ;;
949 esac ;;
950 esac
951
952 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
953 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
954 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
955 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
956 echo "$ac_t""$host" 1>&6
957
958 echo $ac_n "checking target system type""... $ac_c" 1>&6
959 echo "configure:960: checking target system type" >&5
960
961 target_alias=$target
962 case "$target_alias" in
963 NONE)
964 case $nonopt in
965 NONE) target_alias=$host_alias ;;
966 *) target_alias=$nonopt ;;
967 esac ;;
968 esac
969
970 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
971 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
972 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
973 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
974 echo "$ac_t""$target" 1>&6
975
976 echo $ac_n "checking build system type""... $ac_c" 1>&6
977 echo "configure:978: checking build system type" >&5
978
979 build_alias=$build
980 case "$build_alias" in
981 NONE)
982 case $nonopt in
983 NONE) build_alias=$host_alias ;;
984 *) build_alias=$nonopt ;;
985 esac ;;
986 esac
987
988 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
989 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
990 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
991 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
992 echo "$ac_t""$build" 1>&6
993
994 test "$host_alias" != "$target_alias" &&
995 test "$program_prefix$program_suffix$program_transform_name" = \
996 NONENONEs,x,x, &&
997 program_prefix=${target_alias}-
998
999
1000
1001 WX_MAJOR_VERSION_NUMBER=2
1002 WX_MINOR_VERSION_NUMBER=3
1003 WX_RELEASE_NUMBER=2
1004
1005 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1006 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1007
1008 WX_CURRENT=1
1009 WX_REVISION=0
1010 WX_AGE=0
1011
1012
1013
1014 USE_UNIX=1
1015 USE_WIN32=0
1016 USE_BEOS=0
1017 USE_MAC=0
1018
1019 USE_LINUX=
1020 USE_SGI=
1021 USE_HPUX=
1022 USE_SYSV=
1023 USE_SVR4=
1024 USE_AIX=
1025 USE_SUN=
1026 USE_SOLARIS=
1027 USE_SUNOS=
1028 USE_ALPHA=
1029 USE_OSF=
1030 USE_BSD=
1031 USE_DARWIN=
1032 USE_FREEBSD=
1033 USE_OPENBSD=
1034 USE_NETBSD=
1035 USE_VMS=
1036 USE_ULTRIX=
1037 USE_CYGWIN=
1038 USE_MINGW=
1039 USE_DATA_GENERAL=
1040
1041 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1042
1043 ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
1044
1045 DEFAULT_wxUSE_GTK=0
1046 DEFAULT_wxUSE_MAC=0
1047 DEFAULT_wxUSE_MGL=0
1048 DEFAULT_wxUSE_MOTIF=0
1049 DEFAULT_wxUSE_MSW=0
1050 DEFAULT_wxUSE_PM=0
1051 DEFAULT_wxUSE_WINE=0
1052
1053 DEFAULT_DEFAULT_wxUSE_GTK=0
1054 DEFAULT_DEFAULT_wxUSE_MAC=0
1055 DEFAULT_DEFAULT_wxUSE_MGL=0
1056 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1057 DEFAULT_DEFAULT_wxUSE_MSW=0
1058 DEFAULT_DEFAULT_wxUSE_PM=0
1059 DEFAULT_DEFAULT_wxUSE_WINE=0
1060
1061 PROGRAM_EXT=
1062 SO_SUFFIX=so
1063
1064 case "${host}" in
1065 *-hp-hpux* )
1066 USE_HPUX=1
1067 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1068 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1069 SO_SUFFIX=sl
1070 cat >> confdefs.h <<\EOF
1071 #define __HPUX__ 1
1072 EOF
1073
1074 ;;
1075 *-*-linux* )
1076 USE_LINUX=1
1077 cat >> confdefs.h <<\EOF
1078 #define __LINUX__ 1
1079 EOF
1080
1081 TMP=`uname -m`
1082 if test "x$TMP" = "xalpha"; then
1083 USE_ALPHA=1
1084 cat >> confdefs.h <<\EOF
1085 #define __ALPHA__ 1
1086 EOF
1087
1088 fi
1089 DEFAULT_DEFAULT_wxUSE_GTK=1
1090 ;;
1091 *-*-irix5* | *-*-irix6* )
1092 USE_SGI=1
1093 USE_SVR4=1
1094 cat >> confdefs.h <<\EOF
1095 #define __SGI__ 1
1096 EOF
1097
1098 cat >> confdefs.h <<\EOF
1099 #define __SVR4__ 1
1100 EOF
1101
1102 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1103 ;;
1104 *-*-solaris2* )
1105 USE_SUN=1
1106 USE_SOLARIS=1
1107 USE_SVR4=1
1108 cat >> confdefs.h <<\EOF
1109 #define __SUN__ 1
1110 EOF
1111
1112 cat >> confdefs.h <<\EOF
1113 #define __SOLARIS__ 1
1114 EOF
1115
1116 cat >> confdefs.h <<\EOF
1117 #define __SVR4__ 1
1118 EOF
1119
1120 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1121 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1122 ;;
1123 *-*-sunos4* )
1124 USE_SUN=1
1125 USE_SUNOS=1
1126 USE_BSD=1
1127 cat >> confdefs.h <<\EOF
1128 #define __SUN__ 1
1129 EOF
1130
1131 cat >> confdefs.h <<\EOF
1132 #define __SUNOS__ 1
1133 EOF
1134
1135 cat >> confdefs.h <<\EOF
1136 #define __BSD__ 1
1137 EOF
1138
1139 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1140 ;;
1141 *-*-freebsd*)
1142 USE_BSD=1
1143 USE_FREEBSD=1
1144 cat >> confdefs.h <<\EOF
1145 #define __FREEBSD__ 1
1146 EOF
1147
1148 cat >> confdefs.h <<\EOF
1149 #define __BSD__ 1
1150 EOF
1151
1152 DEFAULT_DEFAULT_wxUSE_GTK=1
1153 ;;
1154 *-*-openbsd*)
1155 USE_BSD=1
1156 USE_OPENBSD=1
1157 cat >> confdefs.h <<\EOF
1158 #define __FREEBSD__ 1
1159 EOF
1160
1161 cat >> confdefs.h <<\EOF
1162 #define __OPENBSD__ 1
1163 EOF
1164
1165 DEFAULT_DEFAULT_wxUSE_GTK=1
1166 ;;
1167 *-*-netbsd*)
1168 USE_BSD=1
1169 USE_NETBSD=1
1170 cat >> confdefs.h <<\EOF
1171 #define __FREEBSD__ 1
1172 EOF
1173
1174 cat >> confdefs.h <<\EOF
1175 #define __NETBSD__ 1
1176 EOF
1177
1178 DEFAULT_DEFAULT_wxUSE_GTK=1
1179 ;;
1180 *-*-osf* )
1181 USE_ALPHA=1
1182 USE_OSF=1
1183 cat >> confdefs.h <<\EOF
1184 #define __ALPHA__ 1
1185 EOF
1186
1187 cat >> confdefs.h <<\EOF
1188 #define __OSF__ 1
1189 EOF
1190
1191 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1192 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1193 ;;
1194 *-*-dgux5* )
1195 USE_ALPHA=1
1196 USE_SVR4=1
1197 cat >> confdefs.h <<\EOF
1198 #define __ALPHA__ 1
1199 EOF
1200
1201 cat >> confdefs.h <<\EOF
1202 #define __SVR4__ 1
1203 EOF
1204
1205 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1206 ;;
1207 *-*-sysv5* )
1208 USE_SYSV=1
1209 USE_SVR4=1
1210 cat >> confdefs.h <<\EOF
1211 #define __SYSV__ 1
1212 EOF
1213
1214 cat >> confdefs.h <<\EOF
1215 #define __SVR4__ 1
1216 EOF
1217
1218 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1219 ;;
1220 *-*-aix* )
1221 USE_AIX=1
1222 USE_SYSV=1
1223 USE_SVR4=1
1224 cat >> confdefs.h <<\EOF
1225 #define __AIX__ 1
1226 EOF
1227
1228 cat >> confdefs.h <<\EOF
1229 #define __SYSV__ 1
1230 EOF
1231
1232 cat >> confdefs.h <<\EOF
1233 #define __SVR4__ 1
1234 EOF
1235
1236 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1237 ;;
1238
1239 *-*-cygwin* | *-*-mingw32* )
1240 USE_UNIX=0
1241 USE_WIN32=1
1242 SO_SUFFIX=dll
1243 cat >> confdefs.h <<\EOF
1244 #define __WIN32__ 1
1245 EOF
1246
1247 cat >> confdefs.h <<\EOF
1248 #define __WIN95__ 1
1249 EOF
1250
1251 cat >> confdefs.h <<\EOF
1252 #define __WINDOWS__ 1
1253 EOF
1254
1255 cat >> confdefs.h <<\EOF
1256 #define __GNUWIN32__ 1
1257 EOF
1258
1259 cat >> confdefs.h <<\EOF
1260 #define STRICT 1
1261 EOF
1262
1263 cat >> confdefs.h <<\EOF
1264 #define WINVER 0x0400
1265 EOF
1266
1267 PROGRAM_EXT=".exe"
1268 RESCOMP=windres
1269 DEFAULT_DEFAULT_wxUSE_MSW=1
1270 ;;
1271
1272 *-pc-os2_emx )
1273 cat >> confdefs.h <<\EOF
1274 #define __EMX__ 1
1275 EOF
1276
1277 PROGRAM_EXT=".exe"
1278 DEFAULT_DEFAULT_wxUSE_PM=1
1279 ;;
1280
1281 powerpc-*-darwin* )
1282 USE_BSD=1
1283 USE_DARWIN=1
1284 SO_SUFFIX=dylib
1285 cat >> confdefs.h <<\EOF
1286 #define __BSD__ 1
1287 EOF
1288
1289 cat >> confdefs.h <<\EOF
1290 #define __DARWIN__ 1
1291 EOF
1292
1293 cat >> confdefs.h <<\EOF
1294 #define __POWERPC__ 1
1295 EOF
1296
1297 DEFAULT_DEFAULT_wxUSE_MAC=1
1298 ;;
1299
1300 *-*-beos* )
1301 USE_BEOS=1
1302 cat >> confdefs.h <<\EOF
1303 #define __BEOS__ 1
1304 EOF
1305
1306 ;;
1307
1308 *)
1309 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1310 esac
1311
1312 if test "$USE_UNIX" = 1 ; then
1313 wxUSE_UNIX=yes
1314 cat >> confdefs.h <<\EOF
1315 #define __UNIX__ 1
1316 EOF
1317
1318 fi
1319
1320 if test "$USE_LINUX" = 1; then
1321 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
1322 echo "configure:1323: checking for glibc 2.1 or later" >&5
1323 if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1325 else
1326 cat > conftest.$ac_ext <<EOF
1327 #line 1328 "configure"
1328 #include "confdefs.h"
1329 #include <features.h>
1330 int main() {
1331
1332 #if !__GLIBC_PREREQ(2, 1)
1333 #error not glibc2.1
1334 #endif
1335
1336 ; return 0; }
1337 EOF
1338 if { (eval echo configure:1339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1339 rm -rf conftest*
1340
1341 wx_lib_glibc21=yes
1342
1343 else
1344 echo "configure: failed program was:" >&5
1345 cat conftest.$ac_ext >&5
1346 rm -rf conftest*
1347
1348 wx_lib_glibc21=no
1349
1350
1351 fi
1352 rm -f conftest*
1353
1354 fi
1355
1356 echo "$ac_t""$wx_lib_glibc21" 1>&6
1357 if test "$wx_lib_glibc21" = "yes"; then
1358 cat >> confdefs.h <<\EOF
1359 #define wxHAVE_GLIBC2 1
1360 EOF
1361
1362 fi
1363 fi
1364
1365
1366
1367
1368 wx_arg_cache_file="configarg.cache"
1369 echo "loading argument cache $wx_arg_cache_file"
1370 rm -f ${wx_arg_cache_file}.tmp
1371 touch ${wx_arg_cache_file}.tmp
1372 touch ${wx_arg_cache_file}
1373
1374
1375 DEBUG_CONFIGURE=0
1376 if test $DEBUG_CONFIGURE = 1; then
1377 DEFAULT_wxUSE_UNIVERSAL=no
1378
1379 DEFAULT_wxUSE_THREADS=yes
1380
1381 DEFAULT_wxUSE_SHARED=yes
1382 DEFAULT_wxUSE_SONAME=no
1383 DEFAULT_wxUSE_OPTIMISE=no
1384 DEFAULT_wxUSE_PROFILE=no
1385 DEFAULT_wxUSE_NO_DEPS=no
1386 DEFAULT_wxUSE_NO_RTTI=no
1387 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1388 DEFAULT_wxUSE_PERMISSIVE=no
1389 DEFAULT_wxUSE_DEBUG_FLAG=yes
1390 DEFAULT_wxUSE_DEBUG_INFO=yes
1391 DEFAULT_wxUSE_DEBUG_GDB=yes
1392 DEFAULT_wxUSE_MEM_TRACING=no
1393 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1394 DEFAULT_wxUSE_DMALLOC=no
1395 DEFAULT_wxUSE_APPLE_IEEE=no
1396
1397 DEFAULT_wxUSE_LOG=yes
1398 DEFAULT_wxUSE_LOGWINDOW=no
1399 DEFAULT_wxUSE_LOGGUI=no
1400
1401 DEFAULT_wxUSE_GUI=yes
1402 DEFAULT_wxUSE_CONTROLS=no
1403
1404 DEFAULT_wxUSE_REGEX=no
1405 DEFAULT_wxUSE_ZLIB=no
1406 DEFAULT_wxUSE_LIBPNG=no
1407 DEFAULT_wxUSE_LIBJPEG=no
1408 DEFAULT_wxUSE_LIBTIFF=no
1409 DEFAULT_wxUSE_ODBC=no
1410 DEFAULT_wxUSE_FREETYPE=no
1411 DEFAULT_wxUSE_OPENGL=no
1412
1413 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1414 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1415 DEFAULT_wxUSE_STD_IOSTREAM=no
1416 DEFAULT_wxUSE_CMDLINE_PARSER=no
1417 DEFAULT_wxUSE_DATETIME=no
1418 DEFAULT_wxUSE_TIMEDATE=no
1419 DEFAULT_wxUSE_TIMER=no
1420 DEFAULT_wxUSE_STOPWATCH=no
1421 DEFAULT_wxUSE_FILE=no
1422 DEFAULT_wxUSE_FFILE=no
1423 DEFAULT_wxUSE_TEXTFILE=no
1424 DEFAULT_wxUSE_WAVE=no
1425 DEFAULT_wxUSE_INTL=no
1426 DEFAULT_wxUSE_CONFIG=no
1427 DEFAULT_wxUSE_FONTMAP=no
1428 DEFAULT_wxUSE_STREAMS=no
1429 DEFAULT_wxUSE_SOCKETS=no
1430 DEFAULT_wxUSE_DIALUP_MANAGER=no
1431 DEFAULT_wxUSE_SERIAL=no
1432 DEFAULT_wxUSE_JOYSTICK=no
1433 DEFAULT_wxUSE_DYNLIB_CLASS=no
1434 DEFAULT_wxUSE_LONGLONG=no
1435 DEFAULT_wxUSE_GEOMETRY=no
1436
1437 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1438 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1439 DEFAULT_wxUSE_POSTSCRIPT=no
1440
1441 DEFAULT_wxUSE_X_RESOURCES=no
1442 DEFAULT_wxUSE_CLIPBOARD=no
1443 DEFAULT_wxUSE_TOOLTIPS=no
1444 DEFAULT_wxUSE_DRAG_AND_DROP=no
1445 DEFAULT_wxUSE_DRAGIMAGE=no
1446 DEFAULT_wxUSE_SPLINES=no
1447
1448 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1449 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1450 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1451
1452 DEFAULT_wxUSE_PROLOGIO=no
1453 DEFAULT_wxUSE_RESOURCES=no
1454 DEFAULT_wxUSE_CONSTRAINTS=no
1455 DEFAULT_wxUSE_IPC=no
1456 DEFAULT_wxUSE_HELP=no
1457 DEFAULT_wxUSE_MS_HTML_HELP=no
1458 DEFAULT_wxUSE_WXHTML_HELP=no
1459 DEFAULT_wxUSE_TREELAYOUT=no
1460 DEFAULT_wxUSE_METAFILE=no
1461 DEFAULT_wxUSE_MIMETYPE=no
1462 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1463
1464 DEFAULT_wxUSE_COMMONDLGS=no
1465 DEFAULT_wxUSE_CHOICEDLG=no
1466 DEFAULT_wxUSE_COLOURDLG=no
1467 DEFAULT_wxUSE_DIRDLG=no
1468 DEFAULT_wxUSE_FILEDLG=no
1469 DEFAULT_wxUSE_FINDREPLDLG=no
1470 DEFAULT_wxUSE_FONTDLG=no
1471 DEFAULT_wxUSE_MSGDLG=no
1472 DEFAULT_wxUSE_NUMBERDLG=no
1473 DEFAULT_wxUSE_TEXTDLG=no
1474 DEFAULT_wxUSE_SPLASH=no
1475 DEFAULT_wxUSE_STARTUP_TIPS=no
1476 DEFAULT_wxUSE_PROGRESSDLG=no
1477 DEFAULT_wxUSE_WIZARDDLG=no
1478
1479 DEFAULT_wxUSE_MENUS=no
1480 DEFAULT_wxUSE_MINIFRAME=no
1481 DEFAULT_wxUSE_HTML=no
1482 DEFAULT_wxUSE_FILESYSTEM=no
1483 DEFAULT_wxUSE_FS_INET=no
1484 DEFAULT_wxUSE_FS_ZIP=no
1485 DEFAULT_wxUSE_BUSYINFO=no
1486 DEFAULT_wxUSE_ZIPSTREAM=no
1487 DEFAULT_wxUSE_VALIDATORS=no
1488
1489 DEFAULT_wxUSE_ACCEL=no
1490 DEFAULT_wxUSE_BUTTON=no
1491 DEFAULT_wxUSE_BMPBUTTON=no
1492 DEFAULT_wxUSE_CALCTRL=no
1493 DEFAULT_wxUSE_CARET=no
1494 DEFAULT_wxUSE_CHECKBOX=no
1495 DEFAULT_wxUSE_CHECKLST=no
1496 DEFAULT_wxUSE_CHOICE=no
1497 DEFAULT_wxUSE_COMBOBOX=no
1498 DEFAULT_wxUSE_GAUGE=no
1499 DEFAULT_wxUSE_GRID=no
1500 DEFAULT_wxUSE_NEW_GRID=no
1501 DEFAULT_wxUSE_IMAGLIST=no
1502 DEFAULT_wxUSE_LISTBOX=no
1503 DEFAULT_wxUSE_LISTCTRL=no
1504 DEFAULT_wxUSE_NOTEBOOK=no
1505 DEFAULT_wxUSE_PROPSHEET=no
1506 DEFAULT_wxUSE_RADIOBOX=no
1507 DEFAULT_wxUSE_RADIOBTN=no
1508 DEFAULT_wxUSE_SASH=no
1509 DEFAULT_wxUSE_SCROLLBAR=no
1510 DEFAULT_wxUSE_SLIDER=no
1511 DEFAULT_wxUSE_SPINBTN=no
1512 DEFAULT_wxUSE_SPINCTRL=no
1513 DEFAULT_wxUSE_SPLITTER=no
1514 DEFAULT_wxUSE_STATBMP=no
1515 DEFAULT_wxUSE_STATBOX=no
1516 DEFAULT_wxUSE_STATLINE=no
1517 DEFAULT_wxUSE_STATTEXT=no
1518 DEFAULT_wxUSE_STATUSBAR=yes
1519 DEFAULT_wxUSE_TABDIALOG=no
1520 DEFAULT_wxUSE_TEXTCTRL=no
1521 DEFAULT_wxUSE_TOGGLEBTN=no
1522 DEFAULT_wxUSE_TOOLBAR=no
1523 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1524 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1525 DEFAULT_wxUSE_TREECTRL=no
1526 DEFAULT_wxUSE_POPUPWIN=no
1527
1528 DEFAULT_wxUSE_UNICODE=no
1529 DEFAULT_wxUSE_WCSRTOMBS=no
1530
1531 DEFAULT_wxUSE_PALETTE=no
1532 DEFAULT_wxUSE_IMAGE=no
1533 DEFAULT_wxUSE_GIF=no
1534 DEFAULT_wxUSE_PCX=no
1535 DEFAULT_wxUSE_PNM=no
1536 DEFAULT_wxUSE_XPM=no
1537 else
1538 DEFAULT_wxUSE_UNIVERSAL=no
1539
1540 DEFAULT_wxUSE_THREADS=yes
1541
1542 DEFAULT_wxUSE_SHARED=yes
1543 DEFAULT_wxUSE_SONAME=no
1544 DEFAULT_wxUSE_OPTIMISE=yes
1545 DEFAULT_wxUSE_PROFILE=no
1546 DEFAULT_wxUSE_NO_DEPS=no
1547 DEFAULT_wxUSE_NO_RTTI=no
1548 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1549 DEFAULT_wxUSE_PERMISSIVE=no
1550 DEFAULT_wxUSE_DEBUG_FLAG=no
1551 DEFAULT_wxUSE_DEBUG_INFO=no
1552 DEFAULT_wxUSE_DEBUG_GDB=no
1553 DEFAULT_wxUSE_MEM_TRACING=no
1554 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1555 DEFAULT_wxUSE_DMALLOC=no
1556 DEFAULT_wxUSE_APPLE_IEEE=yes
1557
1558 DEFAULT_wxUSE_LOG=yes
1559 DEFAULT_wxUSE_LOGWINDOW=yes
1560 DEFAULT_wxUSE_LOGGUI=yes
1561
1562 DEFAULT_wxUSE_GUI=yes
1563
1564 DEFAULT_wxUSE_REGEX=yes
1565 DEFAULT_wxUSE_ZLIB=yes
1566 DEFAULT_wxUSE_LIBPNG=yes
1567 DEFAULT_wxUSE_LIBJPEG=yes
1568 DEFAULT_wxUSE_LIBTIFF=yes
1569 DEFAULT_wxUSE_ODBC=no
1570 DEFAULT_wxUSE_FREETYPE=no
1571 DEFAULT_wxUSE_OPENGL=no
1572
1573 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1574 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1575 DEFAULT_wxUSE_STD_IOSTREAM=no
1576 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1577 DEFAULT_wxUSE_DATETIME=yes
1578 DEFAULT_wxUSE_TIMEDATE=no
1579 DEFAULT_wxUSE_TIMER=yes
1580 DEFAULT_wxUSE_STOPWATCH=yes
1581 DEFAULT_wxUSE_FILE=yes
1582 DEFAULT_wxUSE_FFILE=yes
1583 DEFAULT_wxUSE_TEXTFILE=yes
1584 DEFAULT_wxUSE_WAVE=no
1585 DEFAULT_wxUSE_INTL=yes
1586 DEFAULT_wxUSE_CONFIG=yes
1587 DEFAULT_wxUSE_FONTMAP=yes
1588 DEFAULT_wxUSE_STREAMS=yes
1589 DEFAULT_wxUSE_SOCKETS=yes
1590 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1591 DEFAULT_wxUSE_SERIAL=yes
1592 DEFAULT_wxUSE_JOYSTICK=yes
1593 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1594 DEFAULT_wxUSE_LONGLONG=yes
1595 DEFAULT_wxUSE_GEOMETRY=yes
1596
1597 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1598 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1599 DEFAULT_wxUSE_POSTSCRIPT=yes
1600
1601 DEFAULT_wxUSE_X_RESOURCES=no
1602 DEFAULT_wxUSE_CLIPBOARD=yes
1603 DEFAULT_wxUSE_TOOLTIPS=yes
1604 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1605 DEFAULT_wxUSE_DRAGIMAGE=yes
1606 DEFAULT_wxUSE_SPLINES=yes
1607
1608 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1609 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1610 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1611
1612 DEFAULT_wxUSE_PROLOGIO=yes
1613 DEFAULT_wxUSE_RESOURCES=yes
1614 DEFAULT_wxUSE_CONSTRAINTS=yes
1615 DEFAULT_wxUSE_IPC=yes
1616 DEFAULT_wxUSE_HELP=yes
1617 DEFAULT_wxUSE_MS_HTML_HELP=yes
1618 DEFAULT_wxUSE_WXHTML_HELP=yes
1619 DEFAULT_wxUSE_TREELAYOUT=yes
1620 DEFAULT_wxUSE_METAFILE=yes
1621 DEFAULT_wxUSE_MIMETYPE=yes
1622 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1623
1624 DEFAULT_wxUSE_COMMONDLGS=yes
1625 DEFAULT_wxUSE_CHOICEDLG=yes
1626 DEFAULT_wxUSE_COLOURDLG=yes
1627 DEFAULT_wxUSE_DIRDLG=yes
1628 DEFAULT_wxUSE_FILEDLG=yes
1629 DEFAULT_wxUSE_FINDREPLDLG=yes
1630 DEFAULT_wxUSE_FONTDLG=yes
1631 DEFAULT_wxUSE_MSGDLG=yes
1632 DEFAULT_wxUSE_NUMBERDLG=yes
1633 DEFAULT_wxUSE_TEXTDLG=yes
1634 DEFAULT_wxUSE_SPLASH=yes
1635 DEFAULT_wxUSE_STARTUP_TIPS=yes
1636 DEFAULT_wxUSE_PROGRESSDLG=yes
1637 DEFAULT_wxUSE_WIZARDDLG=yes
1638
1639 DEFAULT_wxUSE_MENUS=yes
1640 DEFAULT_wxUSE_MINIFRAME=yes
1641 DEFAULT_wxUSE_HTML=yes
1642 DEFAULT_wxUSE_FILESYSTEM=yes
1643 DEFAULT_wxUSE_FS_INET=yes
1644 DEFAULT_wxUSE_FS_ZIP=yes
1645 DEFAULT_wxUSE_BUSYINFO=yes
1646 DEFAULT_wxUSE_ZIPSTREAM=yes
1647 DEFAULT_wxUSE_VALIDATORS=yes
1648
1649 DEFAULT_wxUSE_ACCEL=yes
1650 DEFAULT_wxUSE_BUTTON=yes
1651 DEFAULT_wxUSE_BMPBUTTON=yes
1652 DEFAULT_wxUSE_CALCTRL=yes
1653 DEFAULT_wxUSE_CARET=yes
1654 DEFAULT_wxUSE_CHECKBOX=yes
1655 DEFAULT_wxUSE_CHECKLST=yes
1656 DEFAULT_wxUSE_CHOICE=yes
1657 DEFAULT_wxUSE_COMBOBOX=yes
1658 DEFAULT_wxUSE_GAUGE=yes
1659 DEFAULT_wxUSE_GRID=yes
1660 DEFAULT_wxUSE_NEW_GRID=yes
1661 DEFAULT_wxUSE_IMAGLIST=yes
1662 DEFAULT_wxUSE_LISTBOX=yes
1663 DEFAULT_wxUSE_LISTCTRL=yes
1664 DEFAULT_wxUSE_NOTEBOOK=yes
1665 DEFAULT_wxUSE_PROPSHEET=yes
1666 DEFAULT_wxUSE_RADIOBOX=yes
1667 DEFAULT_wxUSE_RADIOBTN=yes
1668 DEFAULT_wxUSE_SASH=yes
1669 DEFAULT_wxUSE_SCROLLBAR=yes
1670 DEFAULT_wxUSE_SLIDER=yes
1671 DEFAULT_wxUSE_SPINBTN=yes
1672 DEFAULT_wxUSE_SPINCTRL=yes
1673 DEFAULT_wxUSE_SPLITTER=yes
1674 DEFAULT_wxUSE_STATBMP=yes
1675 DEFAULT_wxUSE_STATBOX=yes
1676 DEFAULT_wxUSE_STATLINE=yes
1677 DEFAULT_wxUSE_STATTEXT=yes
1678 DEFAULT_wxUSE_STATUSBAR=yes
1679 DEFAULT_wxUSE_TABDIALOG=no
1680 DEFAULT_wxUSE_TEXTCTRL=yes
1681 DEFAULT_wxUSE_TOGGLEBTN=yes
1682 DEFAULT_wxUSE_TOOLBAR=yes
1683 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1684 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1685 DEFAULT_wxUSE_TREECTRL=yes
1686 DEFAULT_wxUSE_POPUPWIN=yes
1687
1688 DEFAULT_wxUSE_UNICODE=no
1689 DEFAULT_wxUSE_WCSRTOMBS=no
1690
1691 DEFAULT_wxUSE_PALETTE=yes
1692 DEFAULT_wxUSE_IMAGE=yes
1693 DEFAULT_wxUSE_GIF=yes
1694 DEFAULT_wxUSE_PCX=yes
1695 DEFAULT_wxUSE_PNM=yes
1696 DEFAULT_wxUSE_XPM=yes
1697 fi
1698
1699
1700
1701 for toolkit in `echo $ALL_TOOLKITS`; do
1702 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1703 if test "x$LINE" != x ; then
1704 has_toolkit_in_cache=1
1705 eval "DEFAULT_$LINE"
1706 eval "CACHE_$toolkit=1"
1707 fi
1708 done
1709
1710
1711
1712 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1713 echo "configure:1714: checking for --enable-gui" >&5
1714 no_cache=0
1715 # Check whether --enable-gui or --disable-gui was given.
1716 if test "${enable_gui+set}" = set; then
1717 enableval="$enable_gui"
1718
1719 if test "$enableval" = yes; then
1720 ac_cv_use_gui='wxUSE_GUI=yes'
1721 else
1722 ac_cv_use_gui='wxUSE_GUI=no'
1723 fi
1724
1725 else
1726
1727 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1728 if test "x$LINE" != x ; then
1729 eval "DEFAULT_$LINE"
1730 else
1731 no_cache=1
1732 fi
1733
1734 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1735
1736 fi
1737
1738
1739 eval "$ac_cv_use_gui"
1740 if test "$no_cache" != 1; then
1741 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1742 fi
1743
1744 if test "$wxUSE_GUI" = yes; then
1745 echo "$ac_t""yes" 1>&6
1746 else
1747 echo "$ac_t""no" 1>&6
1748 fi
1749
1750
1751 if test "$wxUSE_GUI" = "yes"; then
1752
1753
1754 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1755 echo "configure:1756: checking for --enable-universal" >&5
1756 no_cache=0
1757 # Check whether --enable-universal or --disable-universal was given.
1758 if test "${enable_universal+set}" = set; then
1759 enableval="$enable_universal"
1760
1761 if test "$enableval" = yes; then
1762 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1763 else
1764 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1765 fi
1766
1767 else
1768
1769 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1770 if test "x$LINE" != x ; then
1771 eval "DEFAULT_$LINE"
1772 else
1773 no_cache=1
1774 fi
1775
1776 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1777
1778 fi
1779
1780
1781 eval "$ac_cv_use_universal"
1782 if test "$no_cache" != 1; then
1783 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1784 fi
1785
1786 if test "$wxUSE_UNIVERSAL" = yes; then
1787 echo "$ac_t""yes" 1>&6
1788 else
1789 echo "$ac_t""no" 1>&6
1790 fi
1791
1792 # Check whether --with-gtk or --without-gtk was given.
1793 if test "${with_gtk+set}" = set; then
1794 withval="$with_gtk"
1795 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1796 fi
1797
1798 # Check whether --with-motif or --without-motif was given.
1799 if test "${with_motif+set}" = set; then
1800 withval="$with_motif"
1801 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1802 fi
1803
1804 # Check whether --with-mac or --without-mac was given.
1805 if test "${with_mac+set}" = set; then
1806 withval="$with_mac"
1807 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1808 fi
1809
1810 # Check whether --with-wine or --without-wine was given.
1811 if test "${with_wine+set}" = set; then
1812 withval="$with_wine"
1813 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1814 fi
1815
1816 # Check whether --with-cygwin or --without-cygwin was given.
1817 if test "${with_cygwin+set}" = set; then
1818 withval="$with_cygwin"
1819 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1820 fi
1821
1822 # Check whether --with-mingw or --without-mingw was given.
1823 if test "${with_mingw+set}" = set; then
1824 withval="$with_mingw"
1825 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1826 fi
1827
1828 # Check whether --with-pm or --without-pm was given.
1829 if test "${with_pm+set}" = set; then
1830 withval="$with_pm"
1831 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1832 fi
1833
1834 # Check whether --with-mgl or --without-mgl was given.
1835 if test "${with_mgl+set}" = set; then
1836 withval="$with_mgl"
1837 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1838 fi
1839
1840
1841 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1842 if test "${enable_gtk2+set}" = set; then
1843 enableval="$enable_gtk2"
1844 wxUSE_GTK2=1
1845 else
1846 wxUSE_GTK2=0
1847 fi
1848
1849
1850
1851 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1852 echo "configure:1853: checking for --with-libpng" >&5
1853 no_cache=0
1854 # Check whether --with-libpng or --without-libpng was given.
1855 if test "${with_libpng+set}" = set; then
1856 withval="$with_libpng"
1857
1858 if test "$withval" = yes; then
1859 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1860 elif test "$withval" = no; then
1861 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1862 elif test "$withval" = sys; then
1863 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1864 else
1865 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1866 fi
1867
1868 else
1869
1870 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1871 if test "x$LINE" != x ; then
1872 eval "DEFAULT_$LINE"
1873 else
1874 no_cache=1
1875 fi
1876
1877 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1878
1879 fi
1880
1881
1882 eval "$ac_cv_use_libpng"
1883 if test "$no_cache" != 1; then
1884 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1885 fi
1886
1887 if test "$wxUSE_LIBPNG" = yes; then
1888 echo "$ac_t""yes" 1>&6
1889 elif test "$wxUSE_LIBPNG" = no; then
1890 echo "$ac_t""no" 1>&6
1891 elif test "$wxUSE_LIBPNG" = sys; then
1892 echo "$ac_t""system version" 1>&6
1893 else
1894 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1895 fi
1896
1897
1898 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1899 echo "configure:1900: checking for --with-libjpeg" >&5
1900 no_cache=0
1901 # Check whether --with-libjpeg or --without-libjpeg was given.
1902 if test "${with_libjpeg+set}" = set; then
1903 withval="$with_libjpeg"
1904
1905 if test "$withval" = yes; then
1906 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1907 elif test "$withval" = no; then
1908 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1909 elif test "$withval" = sys; then
1910 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1911 else
1912 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1913 fi
1914
1915 else
1916
1917 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1918 if test "x$LINE" != x ; then
1919 eval "DEFAULT_$LINE"
1920 else
1921 no_cache=1
1922 fi
1923
1924 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1925
1926 fi
1927
1928
1929 eval "$ac_cv_use_libjpeg"
1930 if test "$no_cache" != 1; then
1931 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1932 fi
1933
1934 if test "$wxUSE_LIBJPEG" = yes; then
1935 echo "$ac_t""yes" 1>&6
1936 elif test "$wxUSE_LIBJPEG" = no; then
1937 echo "$ac_t""no" 1>&6
1938 elif test "$wxUSE_LIBJPEG" = sys; then
1939 echo "$ac_t""system version" 1>&6
1940 else
1941 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1942 fi
1943
1944
1945 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
1946 echo "configure:1947: checking for --with-libtiff" >&5
1947 no_cache=0
1948 # Check whether --with-libtiff or --without-libtiff was given.
1949 if test "${with_libtiff+set}" = set; then
1950 withval="$with_libtiff"
1951
1952 if test "$withval" = yes; then
1953 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1954 elif test "$withval" = no; then
1955 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1956 elif test "$withval" = sys; then
1957 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1958 else
1959 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1960 fi
1961
1962 else
1963
1964 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1965 if test "x$LINE" != x ; then
1966 eval "DEFAULT_$LINE"
1967 else
1968 no_cache=1
1969 fi
1970
1971 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1972
1973 fi
1974
1975
1976 eval "$ac_cv_use_libtiff"
1977 if test "$no_cache" != 1; then
1978 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1979 fi
1980
1981 if test "$wxUSE_LIBTIFF" = yes; then
1982 echo "$ac_t""yes" 1>&6
1983 elif test "$wxUSE_LIBTIFF" = no; then
1984 echo "$ac_t""no" 1>&6
1985 elif test "$wxUSE_LIBTIFF" = sys; then
1986 echo "$ac_t""system version" 1>&6
1987 else
1988 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1989 fi
1990
1991
1992 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
1993 echo "configure:1994: checking for --with-freetype" >&5
1994 no_cache=0
1995 # Check whether --with-freetype or --without-freetype was given.
1996 if test "${with_freetype+set}" = set; then
1997 withval="$with_freetype"
1998
1999 if test "$withval" = yes; then
2000 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2001 elif test "$withval" = no; then
2002 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2003 elif test "$withval" = sys; then
2004 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
2005 else
2006 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
2007 fi
2008
2009 else
2010
2011 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2012 if test "x$LINE" != x ; then
2013 eval "DEFAULT_$LINE"
2014 else
2015 no_cache=1
2016 fi
2017
2018 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
2019
2020 fi
2021
2022
2023 eval "$ac_cv_use_freetype"
2024 if test "$no_cache" != 1; then
2025 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2026 fi
2027
2028 if test "$wxUSE_FREETYPE" = yes; then
2029 echo "$ac_t""yes" 1>&6
2030 elif test "$wxUSE_FREETYPE" = no; then
2031 echo "$ac_t""no" 1>&6
2032 elif test "$wxUSE_FREETYPE" = sys; then
2033 echo "$ac_t""system version" 1>&6
2034 else
2035 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
2036 fi
2037
2038
2039 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2040 echo "configure:2041: checking for --with-opengl" >&5
2041 no_cache=0
2042 # Check whether --with-opengl or --without-opengl was given.
2043 if test "${with_opengl+set}" = set; then
2044 withval="$with_opengl"
2045
2046 if test "$withval" = yes; then
2047 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2048 else
2049 ac_cv_use_opengl='wxUSE_OPENGL=no'
2050 fi
2051
2052 else
2053
2054 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2055 if test "x$LINE" != x ; then
2056 eval "DEFAULT_$LINE"
2057 else
2058 no_cache=1
2059 fi
2060
2061 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2062
2063 fi
2064
2065
2066 eval "$ac_cv_use_opengl"
2067 if test "$no_cache" != 1; then
2068 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2069 fi
2070
2071 if test "$wxUSE_OPENGL" = yes; then
2072 echo "$ac_t""yes" 1>&6
2073 else
2074 echo "$ac_t""no" 1>&6
2075 fi
2076
2077
2078 fi
2079
2080
2081 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2082 echo "configure:2083: checking for --with-dmalloc" >&5
2083 no_cache=0
2084 # Check whether --with-dmalloc or --without-dmalloc was given.
2085 if test "${with_dmalloc+set}" = set; then
2086 withval="$with_dmalloc"
2087
2088 if test "$withval" = yes; then
2089 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2090 else
2091 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2092 fi
2093
2094 else
2095
2096 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2097 if test "x$LINE" != x ; then
2098 eval "DEFAULT_$LINE"
2099 else
2100 no_cache=1
2101 fi
2102
2103 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2104
2105 fi
2106
2107
2108 eval "$ac_cv_use_dmalloc"
2109 if test "$no_cache" != 1; then
2110 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2111 fi
2112
2113 if test "$wxUSE_DMALLOC" = yes; then
2114 echo "$ac_t""yes" 1>&6
2115 else
2116 echo "$ac_t""no" 1>&6
2117 fi
2118
2119
2120 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2121 echo "configure:2122: checking for --with-regex" >&5
2122 no_cache=0
2123 # Check whether --with-regex or --without-regex was given.
2124 if test "${with_regex+set}" = set; then
2125 withval="$with_regex"
2126
2127 if test "$withval" = yes; then
2128 ac_cv_use_regex='wxUSE_REGEX=yes'
2129 elif test "$withval" = no; then
2130 ac_cv_use_regex='wxUSE_REGEX=no'
2131 elif test "$withval" = sys; then
2132 ac_cv_use_regex='wxUSE_REGEX=sys'
2133 else
2134 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2135 fi
2136
2137 else
2138
2139 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2140 if test "x$LINE" != x ; then
2141 eval "DEFAULT_$LINE"
2142 else
2143 no_cache=1
2144 fi
2145
2146 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2147
2148 fi
2149
2150
2151 eval "$ac_cv_use_regex"
2152 if test "$no_cache" != 1; then
2153 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2154 fi
2155
2156 if test "$wxUSE_REGEX" = yes; then
2157 echo "$ac_t""yes" 1>&6
2158 elif test "$wxUSE_REGEX" = no; then
2159 echo "$ac_t""no" 1>&6
2160 elif test "$wxUSE_REGEX" = sys; then
2161 echo "$ac_t""system version" 1>&6
2162 else
2163 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2164 fi
2165
2166
2167 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2168 echo "configure:2169: checking for --with-zlib" >&5
2169 no_cache=0
2170 # Check whether --with-zlib or --without-zlib was given.
2171 if test "${with_zlib+set}" = set; then
2172 withval="$with_zlib"
2173
2174 if test "$withval" = yes; then
2175 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2176 elif test "$withval" = no; then
2177 ac_cv_use_zlib='wxUSE_ZLIB=no'
2178 elif test "$withval" = sys; then
2179 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2180 else
2181 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2182 fi
2183
2184 else
2185
2186 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2187 if test "x$LINE" != x ; then
2188 eval "DEFAULT_$LINE"
2189 else
2190 no_cache=1
2191 fi
2192
2193 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2194
2195 fi
2196
2197
2198 eval "$ac_cv_use_zlib"
2199 if test "$no_cache" != 1; then
2200 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2201 fi
2202
2203 if test "$wxUSE_ZLIB" = yes; then
2204 echo "$ac_t""yes" 1>&6
2205 elif test "$wxUSE_ZLIB" = no; then
2206 echo "$ac_t""no" 1>&6
2207 elif test "$wxUSE_ZLIB" = sys; then
2208 echo "$ac_t""system version" 1>&6
2209 else
2210 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2211 fi
2212
2213
2214 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2215 echo "configure:2216: checking for --with-odbc" >&5
2216 no_cache=0
2217 # Check whether --with-odbc or --without-odbc was given.
2218 if test "${with_odbc+set}" = set; then
2219 withval="$with_odbc"
2220
2221 if test "$withval" = yes; then
2222 ac_cv_use_odbc='wxUSE_ODBC=yes'
2223 else
2224 ac_cv_use_odbc='wxUSE_ODBC=no'
2225 fi
2226
2227 else
2228
2229 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2230 if test "x$LINE" != x ; then
2231 eval "DEFAULT_$LINE"
2232 else
2233 no_cache=1
2234 fi
2235
2236 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2237
2238 fi
2239
2240
2241 eval "$ac_cv_use_odbc"
2242 if test "$no_cache" != 1; then
2243 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2244 fi
2245
2246 if test "$wxUSE_ODBC" = yes; then
2247 echo "$ac_t""yes" 1>&6
2248 else
2249 echo "$ac_t""no" 1>&6
2250 fi
2251
2252
2253
2254
2255 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2256 echo "configure:2257: checking for --enable-shared" >&5
2257 no_cache=0
2258 # Check whether --enable-shared or --disable-shared was given.
2259 if test "${enable_shared+set}" = set; then
2260 enableval="$enable_shared"
2261
2262 if test "$enableval" = yes; then
2263 ac_cv_use_shared='wxUSE_SHARED=yes'
2264 else
2265 ac_cv_use_shared='wxUSE_SHARED=no'
2266 fi
2267
2268 else
2269
2270 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2271 if test "x$LINE" != x ; then
2272 eval "DEFAULT_$LINE"
2273 else
2274 no_cache=1
2275 fi
2276
2277 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2278
2279 fi
2280
2281
2282 eval "$ac_cv_use_shared"
2283 if test "$no_cache" != 1; then
2284 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2285 fi
2286
2287 if test "$wxUSE_SHARED" = yes; then
2288 echo "$ac_t""yes" 1>&6
2289 else
2290 echo "$ac_t""no" 1>&6
2291 fi
2292
2293
2294 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2295 echo "configure:2296: checking for --enable-soname" >&5
2296 no_cache=0
2297 # Check whether --enable-soname or --disable-soname was given.
2298 if test "${enable_soname+set}" = set; then
2299 enableval="$enable_soname"
2300
2301 if test "$enableval" = yes; then
2302 ac_cv_use_soname='wxUSE_SONAME=yes'
2303 else
2304 ac_cv_use_soname='wxUSE_SONAME=no'
2305 fi
2306
2307 else
2308
2309 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2310 if test "x$LINE" != x ; then
2311 eval "DEFAULT_$LINE"
2312 else
2313 no_cache=1
2314 fi
2315
2316 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2317
2318 fi
2319
2320
2321 eval "$ac_cv_use_soname"
2322 if test "$no_cache" != 1; then
2323 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2324 fi
2325
2326 if test "$wxUSE_SONAME" = yes; then
2327 echo "$ac_t""yes" 1>&6
2328 else
2329 echo "$ac_t""no" 1>&6
2330 fi
2331
2332
2333 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2334 echo "configure:2335: checking for --enable-optimise" >&5
2335 no_cache=0
2336 # Check whether --enable-optimise or --disable-optimise was given.
2337 if test "${enable_optimise+set}" = set; then
2338 enableval="$enable_optimise"
2339
2340 if test "$enableval" = yes; then
2341 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2342 else
2343 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2344 fi
2345
2346 else
2347
2348 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2349 if test "x$LINE" != x ; then
2350 eval "DEFAULT_$LINE"
2351 else
2352 no_cache=1
2353 fi
2354
2355 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2356
2357 fi
2358
2359
2360 eval "$ac_cv_use_optimise"
2361 if test "$no_cache" != 1; then
2362 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2363 fi
2364
2365 if test "$wxUSE_OPTIMISE" = yes; then
2366 echo "$ac_t""yes" 1>&6
2367 else
2368 echo "$ac_t""no" 1>&6
2369 fi
2370
2371
2372 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2373 echo "configure:2374: checking for --enable-debug" >&5
2374 no_cache=0
2375 # Check whether --enable-debug or --disable-debug was given.
2376 if test "${enable_debug+set}" = set; then
2377 enableval="$enable_debug"
2378
2379 if test "$enableval" = yes; then
2380 ac_cv_use_debug='wxUSE_DEBUG=yes'
2381 else
2382 ac_cv_use_debug='wxUSE_DEBUG=no'
2383 fi
2384
2385 else
2386
2387 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2388 if test "x$LINE" != x ; then
2389 eval "DEFAULT_$LINE"
2390 else
2391 no_cache=1
2392 fi
2393
2394 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2395
2396 fi
2397
2398
2399 eval "$ac_cv_use_debug"
2400 if test "$no_cache" != 1; then
2401 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2402 fi
2403
2404 if test "$wxUSE_DEBUG" = yes; then
2405 echo "$ac_t""yes" 1>&6
2406 else
2407 echo "$ac_t""no" 1>&6
2408 fi
2409
2410
2411 if test "$wxUSE_DEBUG" = "yes"; then
2412 DEFAULT_wxUSE_DEBUG_FLAG=yes
2413 DEFAULT_wxUSE_DEBUG_INFO=yes
2414 elif test "$wxUSE_DEBUG" = "no"; then
2415 DEFAULT_wxUSE_DEBUG_FLAG=no
2416 DEFAULT_wxUSE_DEBUG_INFO=no
2417 fi
2418
2419
2420 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2421 echo "configure:2422: checking for --enable-debug_flag" >&5
2422 no_cache=0
2423 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2424 if test "${enable_debug_flag+set}" = set; then
2425 enableval="$enable_debug_flag"
2426
2427 if test "$enableval" = yes; then
2428 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2429 else
2430 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2431 fi
2432
2433 else
2434
2435 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2436 if test "x$LINE" != x ; then
2437 eval "DEFAULT_$LINE"
2438 else
2439 no_cache=1
2440 fi
2441
2442 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2443
2444 fi
2445
2446
2447 eval "$ac_cv_use_debug_flag"
2448 if test "$no_cache" != 1; then
2449 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2450 fi
2451
2452 if test "$wxUSE_DEBUG_FLAG" = yes; then
2453 echo "$ac_t""yes" 1>&6
2454 else
2455 echo "$ac_t""no" 1>&6
2456 fi
2457
2458
2459 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2460 echo "configure:2461: checking for --enable-debug_info" >&5
2461 no_cache=0
2462 # Check whether --enable-debug_info or --disable-debug_info was given.
2463 if test "${enable_debug_info+set}" = set; then
2464 enableval="$enable_debug_info"
2465
2466 if test "$enableval" = yes; then
2467 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2468 else
2469 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2470 fi
2471
2472 else
2473
2474 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2475 if test "x$LINE" != x ; then
2476 eval "DEFAULT_$LINE"
2477 else
2478 no_cache=1
2479 fi
2480
2481 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2482
2483 fi
2484
2485
2486 eval "$ac_cv_use_debug_info"
2487 if test "$no_cache" != 1; then
2488 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2489 fi
2490
2491 if test "$wxUSE_DEBUG_INFO" = yes; then
2492 echo "$ac_t""yes" 1>&6
2493 else
2494 echo "$ac_t""no" 1>&6
2495 fi
2496
2497
2498 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2499 echo "configure:2500: checking for --enable-debug_gdb" >&5
2500 no_cache=0
2501 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2502 if test "${enable_debug_gdb+set}" = set; then
2503 enableval="$enable_debug_gdb"
2504
2505 if test "$enableval" = yes; then
2506 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2507 else
2508 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2509 fi
2510
2511 else
2512
2513 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2514 if test "x$LINE" != x ; then
2515 eval "DEFAULT_$LINE"
2516 else
2517 no_cache=1
2518 fi
2519
2520 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2521
2522 fi
2523
2524
2525 eval "$ac_cv_use_debug_gdb"
2526 if test "$no_cache" != 1; then
2527 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2528 fi
2529
2530 if test "$wxUSE_DEBUG_GDB" = yes; then
2531 echo "$ac_t""yes" 1>&6
2532 else
2533 echo "$ac_t""no" 1>&6
2534 fi
2535
2536
2537 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2538 echo "configure:2539: checking for --enable-debug_cntxt" >&5
2539 no_cache=0
2540 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2541 if test "${enable_debug_cntxt+set}" = set; then
2542 enableval="$enable_debug_cntxt"
2543
2544 if test "$enableval" = yes; then
2545 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2546 else
2547 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2548 fi
2549
2550 else
2551
2552 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2553 if test "x$LINE" != x ; then
2554 eval "DEFAULT_$LINE"
2555 else
2556 no_cache=1
2557 fi
2558
2559 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2560
2561 fi
2562
2563
2564 eval "$ac_cv_use_debug_cntxt"
2565 if test "$no_cache" != 1; then
2566 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2567 fi
2568
2569 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2570 echo "$ac_t""yes" 1>&6
2571 else
2572 echo "$ac_t""no" 1>&6
2573 fi
2574
2575
2576 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2577 echo "configure:2578: checking for --enable-mem_tracing" >&5
2578 no_cache=0
2579 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2580 if test "${enable_mem_tracing+set}" = set; then
2581 enableval="$enable_mem_tracing"
2582
2583 if test "$enableval" = yes; then
2584 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2585 else
2586 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2587 fi
2588
2589 else
2590
2591 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2592 if test "x$LINE" != x ; then
2593 eval "DEFAULT_$LINE"
2594 else
2595 no_cache=1
2596 fi
2597
2598 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2599
2600 fi
2601
2602
2603 eval "$ac_cv_use_mem_tracing"
2604 if test "$no_cache" != 1; then
2605 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2606 fi
2607
2608 if test "$wxUSE_MEM_TRACING" = yes; then
2609 echo "$ac_t""yes" 1>&6
2610 else
2611 echo "$ac_t""no" 1>&6
2612 fi
2613
2614
2615 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2616 echo "configure:2617: checking for --enable-profile" >&5
2617 no_cache=0
2618 # Check whether --enable-profile or --disable-profile was given.
2619 if test "${enable_profile+set}" = set; then
2620 enableval="$enable_profile"
2621
2622 if test "$enableval" = yes; then
2623 ac_cv_use_profile='wxUSE_PROFILE=yes'
2624 else
2625 ac_cv_use_profile='wxUSE_PROFILE=no'
2626 fi
2627
2628 else
2629
2630 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2631 if test "x$LINE" != x ; then
2632 eval "DEFAULT_$LINE"
2633 else
2634 no_cache=1
2635 fi
2636
2637 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2638
2639 fi
2640
2641
2642 eval "$ac_cv_use_profile"
2643 if test "$no_cache" != 1; then
2644 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2645 fi
2646
2647 if test "$wxUSE_PROFILE" = yes; then
2648 echo "$ac_t""yes" 1>&6
2649 else
2650 echo "$ac_t""no" 1>&6
2651 fi
2652
2653
2654 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2655 echo "configure:2656: checking for --enable-no_rtti" >&5
2656 no_cache=0
2657 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2658 if test "${enable_no_rtti+set}" = set; then
2659 enableval="$enable_no_rtti"
2660
2661 if test "$enableval" = yes; then
2662 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2663 else
2664 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2665 fi
2666
2667 else
2668
2669 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2670 if test "x$LINE" != x ; then
2671 eval "DEFAULT_$LINE"
2672 else
2673 no_cache=1
2674 fi
2675
2676 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2677
2678 fi
2679
2680
2681 eval "$ac_cv_use_no_rtti"
2682 if test "$no_cache" != 1; then
2683 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2684 fi
2685
2686 if test "$wxUSE_NO_RTTI" = yes; then
2687 echo "$ac_t""yes" 1>&6
2688 else
2689 echo "$ac_t""no" 1>&6
2690 fi
2691
2692
2693 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2694 echo "configure:2695: checking for --enable-no_exceptions" >&5
2695 no_cache=0
2696 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2697 if test "${enable_no_exceptions+set}" = set; then
2698 enableval="$enable_no_exceptions"
2699
2700 if test "$enableval" = yes; then
2701 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2702 else
2703 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2704 fi
2705
2706 else
2707
2708 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2709 if test "x$LINE" != x ; then
2710 eval "DEFAULT_$LINE"
2711 else
2712 no_cache=1
2713 fi
2714
2715 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2716
2717 fi
2718
2719
2720 eval "$ac_cv_use_no_exceptions"
2721 if test "$no_cache" != 1; then
2722 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2723 fi
2724
2725 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2726 echo "$ac_t""yes" 1>&6
2727 else
2728 echo "$ac_t""no" 1>&6
2729 fi
2730
2731
2732 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2733 echo "configure:2734: checking for --enable-permissive" >&5
2734 no_cache=0
2735 # Check whether --enable-permissive or --disable-permissive was given.
2736 if test "${enable_permissive+set}" = set; then
2737 enableval="$enable_permissive"
2738
2739 if test "$enableval" = yes; then
2740 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2741 else
2742 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2743 fi
2744
2745 else
2746
2747 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2748 if test "x$LINE" != x ; then
2749 eval "DEFAULT_$LINE"
2750 else
2751 no_cache=1
2752 fi
2753
2754 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2755
2756 fi
2757
2758
2759 eval "$ac_cv_use_permissive"
2760 if test "$no_cache" != 1; then
2761 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2762 fi
2763
2764 if test "$wxUSE_PERMISSIVE" = yes; then
2765 echo "$ac_t""yes" 1>&6
2766 else
2767 echo "$ac_t""no" 1>&6
2768 fi
2769
2770
2771 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2772 echo "configure:2773: checking for --enable-no_deps" >&5
2773 no_cache=0
2774 # Check whether --enable-no_deps or --disable-no_deps was given.
2775 if test "${enable_no_deps+set}" = set; then
2776 enableval="$enable_no_deps"
2777
2778 if test "$enableval" = yes; then
2779 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2780 else
2781 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2782 fi
2783
2784 else
2785
2786 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2787 if test "x$LINE" != x ; then
2788 eval "DEFAULT_$LINE"
2789 else
2790 no_cache=1
2791 fi
2792
2793 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2794
2795 fi
2796
2797
2798 eval "$ac_cv_use_no_deps"
2799 if test "$no_cache" != 1; then
2800 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2801 fi
2802
2803 if test "$wxUSE_NO_DEPS" = yes; then
2804 echo "$ac_t""yes" 1>&6
2805 else
2806 echo "$ac_t""no" 1>&6
2807 fi
2808
2809
2810
2811 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2812 echo "configure:2813: checking for --enable-compat20" >&5
2813 no_cache=0
2814 # Check whether --enable-compat20 or --disable-compat20 was given.
2815 if test "${enable_compat20+set}" = set; then
2816 enableval="$enable_compat20"
2817
2818 if test "$enableval" = yes; then
2819 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2820 else
2821 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2822 fi
2823
2824 else
2825
2826 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2827 if test "x$LINE" != x ; then
2828 eval "DEFAULT_$LINE"
2829 else
2830 no_cache=1
2831 fi
2832
2833 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2834
2835 fi
2836
2837
2838 eval "$ac_cv_use_compat20"
2839 if test "$no_cache" != 1; then
2840 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2841 fi
2842
2843 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2844 echo "$ac_t""yes" 1>&6
2845 else
2846 echo "$ac_t""no" 1>&6
2847 fi
2848
2849
2850 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2851 echo "configure:2852: checking for --enable-compat22" >&5
2852 no_cache=0
2853 # Check whether --enable-compat22 or --disable-compat22 was given.
2854 if test "${enable_compat22+set}" = set; then
2855 enableval="$enable_compat22"
2856
2857 if test "$enableval" = yes; then
2858 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2859 else
2860 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2861 fi
2862
2863 else
2864
2865 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2866 if test "x$LINE" != x ; then
2867 eval "DEFAULT_$LINE"
2868 else
2869 no_cache=1
2870 fi
2871
2872 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2873
2874 fi
2875
2876
2877 eval "$ac_cv_use_compat22"
2878 if test "$no_cache" != 1; then
2879 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2880 fi
2881
2882 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2883 echo "$ac_t""yes" 1>&6
2884 else
2885 echo "$ac_t""no" 1>&6
2886 fi
2887
2888
2889
2890
2891 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2892 echo "configure:2893: checking for --enable-intl" >&5
2893 no_cache=0
2894 # Check whether --enable-intl or --disable-intl was given.
2895 if test "${enable_intl+set}" = set; then
2896 enableval="$enable_intl"
2897
2898 if test "$enableval" = yes; then
2899 ac_cv_use_intl='wxUSE_INTL=yes'
2900 else
2901 ac_cv_use_intl='wxUSE_INTL=no'
2902 fi
2903
2904 else
2905
2906 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2907 if test "x$LINE" != x ; then
2908 eval "DEFAULT_$LINE"
2909 else
2910 no_cache=1
2911 fi
2912
2913 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2914
2915 fi
2916
2917
2918 eval "$ac_cv_use_intl"
2919 if test "$no_cache" != 1; then
2920 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2921 fi
2922
2923 if test "$wxUSE_INTL" = yes; then
2924 echo "$ac_t""yes" 1>&6
2925 else
2926 echo "$ac_t""no" 1>&6
2927 fi
2928
2929
2930 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
2931 echo "configure:2932: checking for --enable-config" >&5
2932 no_cache=0
2933 # Check whether --enable-config or --disable-config was given.
2934 if test "${enable_config+set}" = set; then
2935 enableval="$enable_config"
2936
2937 if test "$enableval" = yes; then
2938 ac_cv_use_config='wxUSE_CONFIG=yes'
2939 else
2940 ac_cv_use_config='wxUSE_CONFIG=no'
2941 fi
2942
2943 else
2944
2945 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2946 if test "x$LINE" != x ; then
2947 eval "DEFAULT_$LINE"
2948 else
2949 no_cache=1
2950 fi
2951
2952 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2953
2954 fi
2955
2956
2957 eval "$ac_cv_use_config"
2958 if test "$no_cache" != 1; then
2959 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2960 fi
2961
2962 if test "$wxUSE_CONFIG" = yes; then
2963 echo "$ac_t""yes" 1>&6
2964 else
2965 echo "$ac_t""no" 1>&6
2966 fi
2967
2968
2969
2970 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
2971 echo "configure:2972: checking for --enable-sockets" >&5
2972 no_cache=0
2973 # Check whether --enable-sockets or --disable-sockets was given.
2974 if test "${enable_sockets+set}" = set; then
2975 enableval="$enable_sockets"
2976
2977 if test "$enableval" = yes; then
2978 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2979 else
2980 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2981 fi
2982
2983 else
2984
2985 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2986 if test "x$LINE" != x ; then
2987 eval "DEFAULT_$LINE"
2988 else
2989 no_cache=1
2990 fi
2991
2992 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2993
2994 fi
2995
2996
2997 eval "$ac_cv_use_sockets"
2998 if test "$no_cache" != 1; then
2999 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3000 fi
3001
3002 if test "$wxUSE_SOCKETS" = yes; then
3003 echo "$ac_t""yes" 1>&6
3004 else
3005 echo "$ac_t""no" 1>&6
3006 fi
3007
3008
3009
3010 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3011 echo "configure:3012: checking for --enable-ipc" >&5
3012 no_cache=0
3013 # Check whether --enable-ipc or --disable-ipc was given.
3014 if test "${enable_ipc+set}" = set; then
3015 enableval="$enable_ipc"
3016
3017 if test "$enableval" = yes; then
3018 ac_cv_use_ipc='wxUSE_IPC=yes'
3019 else
3020 ac_cv_use_ipc='wxUSE_IPC=no'
3021 fi
3022
3023 else
3024
3025 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3026 if test "x$LINE" != x ; then
3027 eval "DEFAULT_$LINE"
3028 else
3029 no_cache=1
3030 fi
3031
3032 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3033
3034 fi
3035
3036
3037 eval "$ac_cv_use_ipc"
3038 if test "$no_cache" != 1; then
3039 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3040 fi
3041
3042 if test "$wxUSE_IPC" = yes; then
3043 echo "$ac_t""yes" 1>&6
3044 else
3045 echo "$ac_t""no" 1>&6
3046 fi
3047
3048
3049
3050 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3051 echo "configure:3052: checking for --enable-cmdline" >&5
3052 no_cache=0
3053 # Check whether --enable-cmdline or --disable-cmdline was given.
3054 if test "${enable_cmdline+set}" = set; then
3055 enableval="$enable_cmdline"
3056
3057 if test "$enableval" = yes; then
3058 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3059 else
3060 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3061 fi
3062
3063 else
3064
3065 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3066 if test "x$LINE" != x ; then
3067 eval "DEFAULT_$LINE"
3068 else
3069 no_cache=1
3070 fi
3071
3072 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3073
3074 fi
3075
3076
3077 eval "$ac_cv_use_cmdline"
3078 if test "$no_cache" != 1; then
3079 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3080 fi
3081
3082 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3083 echo "$ac_t""yes" 1>&6
3084 else
3085 echo "$ac_t""no" 1>&6
3086 fi
3087
3088
3089 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3090 echo "configure:3091: checking for --enable-datetime" >&5
3091 no_cache=0
3092 # Check whether --enable-datetime or --disable-datetime was given.
3093 if test "${enable_datetime+set}" = set; then
3094 enableval="$enable_datetime"
3095
3096 if test "$enableval" = yes; then
3097 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3098 else
3099 ac_cv_use_datetime='wxUSE_DATETIME=no'
3100 fi
3101
3102 else
3103
3104 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3105 if test "x$LINE" != x ; then
3106 eval "DEFAULT_$LINE"
3107 else
3108 no_cache=1
3109 fi
3110
3111 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3112
3113 fi
3114
3115
3116 eval "$ac_cv_use_datetime"
3117 if test "$no_cache" != 1; then
3118 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3119 fi
3120
3121 if test "$wxUSE_DATETIME" = yes; then
3122 echo "$ac_t""yes" 1>&6
3123 else
3124 echo "$ac_t""no" 1>&6
3125 fi
3126
3127
3128 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3129 echo "configure:3130: checking for --enable-timedate" >&5
3130 no_cache=0
3131 # Check whether --enable-timedate or --disable-timedate was given.
3132 if test "${enable_timedate+set}" = set; then
3133 enableval="$enable_timedate"
3134
3135 if test "$enableval" = yes; then
3136 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3137 else
3138 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3139 fi
3140
3141 else
3142
3143 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3144 if test "x$LINE" != x ; then
3145 eval "DEFAULT_$LINE"
3146 else
3147 no_cache=1
3148 fi
3149
3150 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3151
3152 fi
3153
3154
3155 eval "$ac_cv_use_timedate"
3156 if test "$no_cache" != 1; then
3157 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3158 fi
3159
3160 if test "$wxUSE_TIMEDATE" = yes; then
3161 echo "$ac_t""yes" 1>&6
3162 else
3163 echo "$ac_t""no" 1>&6
3164 fi
3165
3166
3167 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3168 echo "configure:3169: checking for --enable-stopwatch" >&5
3169 no_cache=0
3170 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3171 if test "${enable_stopwatch+set}" = set; then
3172 enableval="$enable_stopwatch"
3173
3174 if test "$enableval" = yes; then
3175 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3176 else
3177 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3178 fi
3179
3180 else
3181
3182 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3183 if test "x$LINE" != x ; then
3184 eval "DEFAULT_$LINE"
3185 else
3186 no_cache=1
3187 fi
3188
3189 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3190
3191 fi
3192
3193
3194 eval "$ac_cv_use_stopwatch"
3195 if test "$no_cache" != 1; then
3196 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3197 fi
3198
3199 if test "$wxUSE_STOPWATCH" = yes; then
3200 echo "$ac_t""yes" 1>&6
3201 else
3202 echo "$ac_t""no" 1>&6
3203 fi
3204
3205
3206 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3207 echo "configure:3208: checking for --enable-dialupman" >&5
3208 no_cache=0
3209 # Check whether --enable-dialupman or --disable-dialupman was given.
3210 if test "${enable_dialupman+set}" = set; then
3211 enableval="$enable_dialupman"
3212
3213 if test "$enableval" = yes; then
3214 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3215 else
3216 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3217 fi
3218
3219 else
3220
3221 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3222 if test "x$LINE" != x ; then
3223 eval "DEFAULT_$LINE"
3224 else
3225 no_cache=1
3226 fi
3227
3228 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3229
3230 fi
3231
3232
3233 eval "$ac_cv_use_dialupman"
3234 if test "$no_cache" != 1; then
3235 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3236 fi
3237
3238 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3239 echo "$ac_t""yes" 1>&6
3240 else
3241 echo "$ac_t""no" 1>&6
3242 fi
3243
3244
3245 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3246 echo "configure:3247: checking for --enable-apple_ieee" >&5
3247 no_cache=0
3248 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3249 if test "${enable_apple_ieee+set}" = set; then
3250 enableval="$enable_apple_ieee"
3251
3252 if test "$enableval" = yes; then
3253 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3254 else
3255 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3256 fi
3257
3258 else
3259
3260 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3261 if test "x$LINE" != x ; then
3262 eval "DEFAULT_$LINE"
3263 else
3264 no_cache=1
3265 fi
3266
3267 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3268
3269 fi
3270
3271
3272 eval "$ac_cv_use_apple_ieee"
3273 if test "$no_cache" != 1; then
3274 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3275 fi
3276
3277 if test "$wxUSE_APPLE_IEEE" = yes; then
3278 echo "$ac_t""yes" 1>&6
3279 else
3280 echo "$ac_t""no" 1>&6
3281 fi
3282
3283
3284 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3285 echo "configure:3286: checking for --enable-timer" >&5
3286 no_cache=0
3287 # Check whether --enable-timer or --disable-timer was given.
3288 if test "${enable_timer+set}" = set; then
3289 enableval="$enable_timer"
3290
3291 if test "$enableval" = yes; then
3292 ac_cv_use_timer='wxUSE_TIMER=yes'
3293 else
3294 ac_cv_use_timer='wxUSE_TIMER=no'
3295 fi
3296
3297 else
3298
3299 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3300 if test "x$LINE" != x ; then
3301 eval "DEFAULT_$LINE"
3302 else
3303 no_cache=1
3304 fi
3305
3306 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3307
3308 fi
3309
3310
3311 eval "$ac_cv_use_timer"
3312 if test "$no_cache" != 1; then
3313 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3314 fi
3315
3316 if test "$wxUSE_TIMER" = yes; then
3317 echo "$ac_t""yes" 1>&6
3318 else
3319 echo "$ac_t""no" 1>&6
3320 fi
3321
3322
3323 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3324 echo "configure:3325: checking for --enable-wave" >&5
3325 no_cache=0
3326 # Check whether --enable-wave or --disable-wave was given.
3327 if test "${enable_wave+set}" = set; then
3328 enableval="$enable_wave"
3329
3330 if test "$enableval" = yes; then
3331 ac_cv_use_wave='wxUSE_WAVE=yes'
3332 else
3333 ac_cv_use_wave='wxUSE_WAVE=no'
3334 fi
3335
3336 else
3337
3338 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3339 if test "x$LINE" != x ; then
3340 eval "DEFAULT_$LINE"
3341 else
3342 no_cache=1
3343 fi
3344
3345 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3346
3347 fi
3348
3349
3350 eval "$ac_cv_use_wave"
3351 if test "$no_cache" != 1; then
3352 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3353 fi
3354
3355 if test "$wxUSE_WAVE" = yes; then
3356 echo "$ac_t""yes" 1>&6
3357 else
3358 echo "$ac_t""no" 1>&6
3359 fi
3360
3361
3362 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3363 echo "configure:3364: checking for --enable-fraction" >&5
3364 no_cache=0
3365 # Check whether --enable-fraction or --disable-fraction was given.
3366 if test "${enable_fraction+set}" = set; then
3367 enableval="$enable_fraction"
3368
3369 if test "$enableval" = yes; then
3370 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3371 else
3372 ac_cv_use_fraction='wxUSE_FRACTION=no'
3373 fi
3374
3375 else
3376
3377 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3378 if test "x$LINE" != x ; then
3379 eval "DEFAULT_$LINE"
3380 else
3381 no_cache=1
3382 fi
3383
3384 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3385
3386 fi
3387
3388
3389 eval "$ac_cv_use_fraction"
3390 if test "$no_cache" != 1; then
3391 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3392 fi
3393
3394 if test "$wxUSE_FRACTION" = yes; then
3395 echo "$ac_t""yes" 1>&6
3396 else
3397 echo "$ac_t""no" 1>&6
3398 fi
3399
3400
3401 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3402 echo "configure:3403: checking for --enable-dynlib" >&5
3403 no_cache=0
3404 # Check whether --enable-dynlib or --disable-dynlib was given.
3405 if test "${enable_dynlib+set}" = set; then
3406 enableval="$enable_dynlib"
3407
3408 if test "$enableval" = yes; then
3409 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3410 else
3411 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3412 fi
3413
3414 else
3415
3416 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3417 if test "x$LINE" != x ; then
3418 eval "DEFAULT_$LINE"
3419 else
3420 no_cache=1
3421 fi
3422
3423 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3424
3425 fi
3426
3427
3428 eval "$ac_cv_use_dynlib"
3429 if test "$no_cache" != 1; then
3430 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3431 fi
3432
3433 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3434 echo "$ac_t""yes" 1>&6
3435 else
3436 echo "$ac_t""no" 1>&6
3437 fi
3438
3439
3440 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3441 echo "configure:3442: checking for --enable-longlong" >&5
3442 no_cache=0
3443 # Check whether --enable-longlong or --disable-longlong was given.
3444 if test "${enable_longlong+set}" = set; then
3445 enableval="$enable_longlong"
3446
3447 if test "$enableval" = yes; then
3448 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3449 else
3450 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3451 fi
3452
3453 else
3454
3455 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3456 if test "x$LINE" != x ; then
3457 eval "DEFAULT_$LINE"
3458 else
3459 no_cache=1
3460 fi
3461
3462 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3463
3464 fi
3465
3466
3467 eval "$ac_cv_use_longlong"
3468 if test "$no_cache" != 1; then
3469 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3470 fi
3471
3472 if test "$wxUSE_LONGLONG" = yes; then
3473 echo "$ac_t""yes" 1>&6
3474 else
3475 echo "$ac_t""no" 1>&6
3476 fi
3477
3478
3479 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3480 echo "configure:3481: checking for --enable-geometry" >&5
3481 no_cache=0
3482 # Check whether --enable-geometry or --disable-geometry was given.
3483 if test "${enable_geometry+set}" = set; then
3484 enableval="$enable_geometry"
3485
3486 if test "$enableval" = yes; then
3487 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3488 else
3489 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3490 fi
3491
3492 else
3493
3494 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3495 if test "x$LINE" != x ; then
3496 eval "DEFAULT_$LINE"
3497 else
3498 no_cache=1
3499 fi
3500
3501 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3502
3503 fi
3504
3505
3506 eval "$ac_cv_use_geometry"
3507 if test "$no_cache" != 1; then
3508 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3509 fi
3510
3511 if test "$wxUSE_GEOMETRY" = yes; then
3512 echo "$ac_t""yes" 1>&6
3513 else
3514 echo "$ac_t""no" 1>&6
3515 fi
3516
3517
3518 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3519 echo "configure:3520: checking for --enable-log" >&5
3520 no_cache=0
3521 # Check whether --enable-log or --disable-log was given.
3522 if test "${enable_log+set}" = set; then
3523 enableval="$enable_log"
3524
3525 if test "$enableval" = yes; then
3526 ac_cv_use_log='wxUSE_LOG=yes'
3527 else
3528 ac_cv_use_log='wxUSE_LOG=no'
3529 fi
3530
3531 else
3532
3533 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3534 if test "x$LINE" != x ; then
3535 eval "DEFAULT_$LINE"
3536 else
3537 no_cache=1
3538 fi
3539
3540 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3541
3542 fi
3543
3544
3545 eval "$ac_cv_use_log"
3546 if test "$no_cache" != 1; then
3547 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3548 fi
3549
3550 if test "$wxUSE_LOG" = yes; then
3551 echo "$ac_t""yes" 1>&6
3552 else
3553 echo "$ac_t""no" 1>&6
3554 fi
3555
3556
3557 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3558 echo "configure:3559: checking for --enable-streams" >&5
3559 no_cache=0
3560 # Check whether --enable-streams or --disable-streams was given.
3561 if test "${enable_streams+set}" = set; then
3562 enableval="$enable_streams"
3563
3564 if test "$enableval" = yes; then
3565 ac_cv_use_streams='wxUSE_STREAMS=yes'
3566 else
3567 ac_cv_use_streams='wxUSE_STREAMS=no'
3568 fi
3569
3570 else
3571
3572 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3573 if test "x$LINE" != x ; then
3574 eval "DEFAULT_$LINE"
3575 else
3576 no_cache=1
3577 fi
3578
3579 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3580
3581 fi
3582
3583
3584 eval "$ac_cv_use_streams"
3585 if test "$no_cache" != 1; then
3586 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3587 fi
3588
3589 if test "$wxUSE_STREAMS" = yes; then
3590 echo "$ac_t""yes" 1>&6
3591 else
3592 echo "$ac_t""no" 1>&6
3593 fi
3594
3595
3596 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3597 echo "configure:3598: checking for --enable-file" >&5
3598 no_cache=0
3599 # Check whether --enable-file or --disable-file was given.
3600 if test "${enable_file+set}" = set; then
3601 enableval="$enable_file"
3602
3603 if test "$enableval" = yes; then
3604 ac_cv_use_file='wxUSE_FILE=yes'
3605 else
3606 ac_cv_use_file='wxUSE_FILE=no'
3607 fi
3608
3609 else
3610
3611 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3612 if test "x$LINE" != x ; then
3613 eval "DEFAULT_$LINE"
3614 else
3615 no_cache=1
3616 fi
3617
3618 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3619
3620 fi
3621
3622
3623 eval "$ac_cv_use_file"
3624 if test "$no_cache" != 1; then
3625 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3626 fi
3627
3628 if test "$wxUSE_FILE" = yes; then
3629 echo "$ac_t""yes" 1>&6
3630 else
3631 echo "$ac_t""no" 1>&6
3632 fi
3633
3634
3635 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3636 echo "configure:3637: checking for --enable-ffile" >&5
3637 no_cache=0
3638 # Check whether --enable-ffile or --disable-ffile was given.
3639 if test "${enable_ffile+set}" = set; then
3640 enableval="$enable_ffile"
3641
3642 if test "$enableval" = yes; then
3643 ac_cv_use_ffile='wxUSE_FFILE=yes'
3644 else
3645 ac_cv_use_ffile='wxUSE_FFILE=no'
3646 fi
3647
3648 else
3649
3650 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3651 if test "x$LINE" != x ; then
3652 eval "DEFAULT_$LINE"
3653 else
3654 no_cache=1
3655 fi
3656
3657 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3658
3659 fi
3660
3661
3662 eval "$ac_cv_use_ffile"
3663 if test "$no_cache" != 1; then
3664 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3665 fi
3666
3667 if test "$wxUSE_FFILE" = yes; then
3668 echo "$ac_t""yes" 1>&6
3669 else
3670 echo "$ac_t""no" 1>&6
3671 fi
3672
3673
3674 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3675 echo "configure:3676: checking for --enable-textfile" >&5
3676 no_cache=0
3677 # Check whether --enable-textfile or --disable-textfile was given.
3678 if test "${enable_textfile+set}" = set; then
3679 enableval="$enable_textfile"
3680
3681 if test "$enableval" = yes; then
3682 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3683 else
3684 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3685 fi
3686
3687 else
3688
3689 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3690 if test "x$LINE" != x ; then
3691 eval "DEFAULT_$LINE"
3692 else
3693 no_cache=1
3694 fi
3695
3696 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3697
3698 fi
3699
3700
3701 eval "$ac_cv_use_textfile"
3702 if test "$no_cache" != 1; then
3703 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3704 fi
3705
3706 if test "$wxUSE_TEXTFILE" = yes; then
3707 echo "$ac_t""yes" 1>&6
3708 else
3709 echo "$ac_t""no" 1>&6
3710 fi
3711
3712
3713 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3714 echo "configure:3715: checking for --enable-fontmap" >&5
3715 no_cache=0
3716 # Check whether --enable-fontmap or --disable-fontmap was given.
3717 if test "${enable_fontmap+set}" = set; then
3718 enableval="$enable_fontmap"
3719
3720 if test "$enableval" = yes; then
3721 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
3722 else
3723 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
3724 fi
3725
3726 else
3727
3728 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
3729 if test "x$LINE" != x ; then
3730 eval "DEFAULT_$LINE"
3731 else
3732 no_cache=1
3733 fi
3734
3735 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
3736
3737 fi
3738
3739
3740 eval "$ac_cv_use_fontmap"
3741 if test "$no_cache" != 1; then
3742 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
3743 fi
3744
3745 if test "$wxUSE_FONTMAP" = yes; then
3746 echo "$ac_t""yes" 1>&6
3747 else
3748 echo "$ac_t""no" 1>&6
3749 fi
3750
3751
3752 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3753 echo "configure:3754: checking for --enable-unicode" >&5
3754 no_cache=0
3755 # Check whether --enable-unicode or --disable-unicode was given.
3756 if test "${enable_unicode+set}" = set; then
3757 enableval="$enable_unicode"
3758
3759 if test "$enableval" = yes; then
3760 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3761 else
3762 ac_cv_use_unicode='wxUSE_UNICODE=no'
3763 fi
3764
3765 else
3766
3767 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3768 if test "x$LINE" != x ; then
3769 eval "DEFAULT_$LINE"
3770 else
3771 no_cache=1
3772 fi
3773
3774 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3775
3776 fi
3777
3778
3779 eval "$ac_cv_use_unicode"
3780 if test "$no_cache" != 1; then
3781 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3782 fi
3783
3784 if test "$wxUSE_UNICODE" = yes; then
3785 echo "$ac_t""yes" 1>&6
3786 else
3787 echo "$ac_t""no" 1>&6
3788 fi
3789
3790
3791 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3792 echo "configure:3793: checking for --enable-wxprintfv" >&5
3793 no_cache=0
3794 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3795 if test "${enable_wxprintfv+set}" = set; then
3796 enableval="$enable_wxprintfv"
3797
3798 if test "$enableval" = yes; then
3799 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3800 else
3801 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3802 fi
3803
3804 else
3805
3806 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3807 if test "x$LINE" != x ; then
3808 eval "DEFAULT_$LINE"
3809 else
3810 no_cache=1
3811 fi
3812
3813 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3814
3815 fi
3816
3817
3818 eval "$ac_cv_use_wxprintfv"
3819 if test "$no_cache" != 1; then
3820 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3821 fi
3822
3823 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3824 echo "$ac_t""yes" 1>&6
3825 else
3826 echo "$ac_t""no" 1>&6
3827 fi
3828
3829
3830 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3831 echo "configure:3832: checking for --enable-std_iostreams" >&5
3832 no_cache=0
3833 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3834 if test "${enable_std_iostreams+set}" = set; then
3835 enableval="$enable_std_iostreams"
3836
3837 if test "$enableval" = yes; then
3838 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3839 else
3840 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3841 fi
3842
3843 else
3844
3845 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3846 if test "x$LINE" != x ; then
3847 eval "DEFAULT_$LINE"
3848 else
3849 no_cache=1
3850 fi
3851
3852 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3853
3854 fi
3855
3856
3857 eval "$ac_cv_use_std_iostreams"
3858 if test "$no_cache" != 1; then
3859 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3860 fi
3861
3862 if test "$wxUSE_STD_IOSTREAM" = yes; then
3863 echo "$ac_t""yes" 1>&6
3864 else
3865 echo "$ac_t""no" 1>&6
3866 fi
3867
3868
3869 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3870 echo "configure:3871: checking for --enable-filesystem" >&5
3871 no_cache=0
3872 # Check whether --enable-filesystem or --disable-filesystem was given.
3873 if test "${enable_filesystem+set}" = set; then
3874 enableval="$enable_filesystem"
3875
3876 if test "$enableval" = yes; then
3877 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3878 else
3879 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3880 fi
3881
3882 else
3883
3884 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3885 if test "x$LINE" != x ; then
3886 eval "DEFAULT_$LINE"
3887 else
3888 no_cache=1
3889 fi
3890
3891 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3892
3893 fi
3894
3895
3896 eval "$ac_cv_use_filesystem"
3897 if test "$no_cache" != 1; then
3898 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3899 fi
3900
3901 if test "$wxUSE_FILESYSTEM" = yes; then
3902 echo "$ac_t""yes" 1>&6
3903 else
3904 echo "$ac_t""no" 1>&6
3905 fi
3906
3907
3908 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
3909 echo "configure:3910: checking for --enable-fs_inet" >&5
3910 no_cache=0
3911 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3912 if test "${enable_fs_inet+set}" = set; then
3913 enableval="$enable_fs_inet"
3914
3915 if test "$enableval" = yes; then
3916 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3917 else
3918 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3919 fi
3920
3921 else
3922
3923 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3924 if test "x$LINE" != x ; then
3925 eval "DEFAULT_$LINE"
3926 else
3927 no_cache=1
3928 fi
3929
3930 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3931
3932 fi
3933
3934
3935 eval "$ac_cv_use_fs_inet"
3936 if test "$no_cache" != 1; then
3937 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3938 fi
3939
3940 if test "$wxUSE_FS_INET" = yes; then
3941 echo "$ac_t""yes" 1>&6
3942 else
3943 echo "$ac_t""no" 1>&6
3944 fi
3945
3946
3947 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
3948 echo "configure:3949: checking for --enable-fs_zip" >&5
3949 no_cache=0
3950 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3951 if test "${enable_fs_zip+set}" = set; then
3952 enableval="$enable_fs_zip"
3953
3954 if test "$enableval" = yes; then
3955 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3956 else
3957 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3958 fi
3959
3960 else
3961
3962 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3963 if test "x$LINE" != x ; then
3964 eval "DEFAULT_$LINE"
3965 else
3966 no_cache=1
3967 fi
3968
3969 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3970
3971 fi
3972
3973
3974 eval "$ac_cv_use_fs_zip"
3975 if test "$no_cache" != 1; then
3976 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3977 fi
3978
3979 if test "$wxUSE_FS_ZIP" = yes; then
3980 echo "$ac_t""yes" 1>&6
3981 else
3982 echo "$ac_t""no" 1>&6
3983 fi
3984
3985
3986 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
3987 echo "configure:3988: checking for --enable-zipstream" >&5
3988 no_cache=0
3989 # Check whether --enable-zipstream or --disable-zipstream was given.
3990 if test "${enable_zipstream+set}" = set; then
3991 enableval="$enable_zipstream"
3992
3993 if test "$enableval" = yes; then
3994 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3995 else
3996 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3997 fi
3998
3999 else
4000
4001 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4002 if test "x$LINE" != x ; then
4003 eval "DEFAULT_$LINE"
4004 else
4005 no_cache=1
4006 fi
4007
4008 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4009
4010 fi
4011
4012
4013 eval "$ac_cv_use_zipstream"
4014 if test "$no_cache" != 1; then
4015 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4016 fi
4017
4018 if test "$wxUSE_ZIPSTREAM" = yes; then
4019 echo "$ac_t""yes" 1>&6
4020 else
4021 echo "$ac_t""no" 1>&6
4022 fi
4023
4024
4025
4026 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4027 echo "configure:4028: checking for --enable-catch_segvs" >&5
4028 no_cache=0
4029 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4030 if test "${enable_catch_segvs+set}" = set; then
4031 enableval="$enable_catch_segvs"
4032
4033 if test "$enableval" = yes; then
4034 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4035 else
4036 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4037 fi
4038
4039 else
4040
4041 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4042 if test "x$LINE" != x ; then
4043 eval "DEFAULT_$LINE"
4044 else
4045 no_cache=1
4046 fi
4047
4048 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4049
4050 fi
4051
4052
4053 eval "$ac_cv_use_catch_segvs"
4054 if test "$no_cache" != 1; then
4055 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4056 fi
4057
4058 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4059 echo "$ac_t""yes" 1>&6
4060 else
4061 echo "$ac_t""no" 1>&6
4062 fi
4063
4064
4065 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4066 echo "configure:4067: checking for --enable-snglinst" >&5
4067 no_cache=0
4068 # Check whether --enable-snglinst or --disable-snglinst was given.
4069 if test "${enable_snglinst+set}" = set; then
4070 enableval="$enable_snglinst"
4071
4072 if test "$enableval" = yes; then
4073 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4074 else
4075 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4076 fi
4077
4078 else
4079
4080 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4081 if test "x$LINE" != x ; then
4082 eval "DEFAULT_$LINE"
4083 else
4084 no_cache=1
4085 fi
4086
4087 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4088
4089 fi
4090
4091
4092 eval "$ac_cv_use_snglinst"
4093 if test "$no_cache" != 1; then
4094 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4095 fi
4096
4097 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4098 echo "$ac_t""yes" 1>&6
4099 else
4100 echo "$ac_t""no" 1>&6
4101 fi
4102
4103
4104
4105 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4106 echo "configure:4107: checking for --enable-mimetype" >&5
4107 no_cache=0
4108 # Check whether --enable-mimetype or --disable-mimetype was given.
4109 if test "${enable_mimetype+set}" = set; then
4110 enableval="$enable_mimetype"
4111
4112 if test "$enableval" = yes; then
4113 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4114 else
4115 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4116 fi
4117
4118 else
4119
4120 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4121 if test "x$LINE" != x ; then
4122 eval "DEFAULT_$LINE"
4123 else
4124 no_cache=1
4125 fi
4126
4127 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4128
4129 fi
4130
4131
4132 eval "$ac_cv_use_mimetype"
4133 if test "$no_cache" != 1; then
4134 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4135 fi
4136
4137 if test "$wxUSE_MIMETYPE" = yes; then
4138 echo "$ac_t""yes" 1>&6
4139 else
4140 echo "$ac_t""no" 1>&6
4141 fi
4142
4143
4144 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4145 echo "configure:4146: checking for --enable-system_options" >&5
4146 no_cache=0
4147 # Check whether --enable-system_options or --disable-system_options was given.
4148 if test "${enable_system_options+set}" = set; then
4149 enableval="$enable_system_options"
4150
4151 if test "$enableval" = yes; then
4152 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4153 else
4154 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4155 fi
4156
4157 else
4158
4159 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4160 if test "x$LINE" != x ; then
4161 eval "DEFAULT_$LINE"
4162 else
4163 no_cache=1
4164 fi
4165
4166 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4167
4168 fi
4169
4170
4171 eval "$ac_cv_use_system_options"
4172 if test "$no_cache" != 1; then
4173 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4174 fi
4175
4176 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4177 echo "$ac_t""yes" 1>&6
4178 else
4179 echo "$ac_t""no" 1>&6
4180 fi
4181
4182
4183
4184
4185 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4186 echo "configure:4187: checking for --enable-threads" >&5
4187 no_cache=0
4188 # Check whether --enable-threads or --disable-threads was given.
4189 if test "${enable_threads+set}" = set; then
4190 enableval="$enable_threads"
4191
4192 if test "$enableval" = yes; then
4193 ac_cv_use_threads='wxUSE_THREADS=yes'
4194 else
4195 ac_cv_use_threads='wxUSE_THREADS=no'
4196 fi
4197
4198 else
4199
4200 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4201 if test "x$LINE" != x ; then
4202 eval "DEFAULT_$LINE"
4203 else
4204 no_cache=1
4205 fi
4206
4207 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4208
4209 fi
4210
4211
4212 eval "$ac_cv_use_threads"
4213 if test "$no_cache" != 1; then
4214 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4215 fi
4216
4217 if test "$wxUSE_THREADS" = yes; then
4218 echo "$ac_t""yes" 1>&6
4219 else
4220 echo "$ac_t""no" 1>&6
4221 fi
4222
4223
4224 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
4225 echo "configure:4226: checking for --enable-serial" >&5
4226 no_cache=0
4227 # Check whether --enable-serial or --disable-serial was given.
4228 if test "${enable_serial+set}" = set; then
4229 enableval="$enable_serial"
4230
4231 if test "$enableval" = yes; then
4232 ac_cv_use_serial='wxUSE_SERIAL=yes'
4233 else
4234 ac_cv_use_serial='wxUSE_SERIAL=no'
4235 fi
4236
4237 else
4238
4239 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4240 if test "x$LINE" != x ; then
4241 eval "DEFAULT_$LINE"
4242 else
4243 no_cache=1
4244 fi
4245
4246 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
4247
4248 fi
4249
4250
4251 eval "$ac_cv_use_serial"
4252 if test "$no_cache" != 1; then
4253 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4254 fi
4255
4256 if test "$wxUSE_SERIAL" = yes; then
4257 echo "$ac_t""yes" 1>&6
4258 else
4259 echo "$ac_t""no" 1>&6
4260 fi
4261
4262
4263 if test "$wxUSE_GUI" = "yes"; then
4264
4265
4266
4267 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4268 echo "configure:4269: checking for --enable-docview" >&5
4269 no_cache=0
4270 # Check whether --enable-docview or --disable-docview was given.
4271 if test "${enable_docview+set}" = set; then
4272 enableval="$enable_docview"
4273
4274 if test "$enableval" = yes; then
4275 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4276 else
4277 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4278 fi
4279
4280 else
4281
4282 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4283 if test "x$LINE" != x ; then
4284 eval "DEFAULT_$LINE"
4285 else
4286 no_cache=1
4287 fi
4288
4289 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4290
4291 fi
4292
4293
4294 eval "$ac_cv_use_docview"
4295 if test "$no_cache" != 1; then
4296 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4297 fi
4298
4299 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4300 echo "$ac_t""yes" 1>&6
4301 else
4302 echo "$ac_t""no" 1>&6
4303 fi
4304
4305
4306 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4307 echo "configure:4308: checking for --enable-help" >&5
4308 no_cache=0
4309 # Check whether --enable-help or --disable-help was given.
4310 if test "${enable_help+set}" = set; then
4311 enableval="$enable_help"
4312
4313 if test "$enableval" = yes; then
4314 ac_cv_use_help='wxUSE_HELP=yes'
4315 else
4316 ac_cv_use_help='wxUSE_HELP=no'
4317 fi
4318
4319 else
4320
4321 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4322 if test "x$LINE" != x ; then
4323 eval "DEFAULT_$LINE"
4324 else
4325 no_cache=1
4326 fi
4327
4328 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4329
4330 fi
4331
4332
4333 eval "$ac_cv_use_help"
4334 if test "$no_cache" != 1; then
4335 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4336 fi
4337
4338 if test "$wxUSE_HELP" = yes; then
4339 echo "$ac_t""yes" 1>&6
4340 else
4341 echo "$ac_t""no" 1>&6
4342 fi
4343
4344
4345 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4346 echo "configure:4347: checking for --enable-mshtmlhelp" >&5
4347 no_cache=0
4348 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4349 if test "${enable_mshtmlhelp+set}" = set; then
4350 enableval="$enable_mshtmlhelp"
4351
4352 if test "$enableval" = yes; then
4353 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4354 else
4355 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4356 fi
4357
4358 else
4359
4360 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4361 if test "x$LINE" != x ; then
4362 eval "DEFAULT_$LINE"
4363 else
4364 no_cache=1
4365 fi
4366
4367 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4368
4369 fi
4370
4371
4372 eval "$ac_cv_use_mshtmlhelp"
4373 if test "$no_cache" != 1; then
4374 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4375 fi
4376
4377 if test "$wxUSE_MS_HTML_HELP" = yes; then
4378 echo "$ac_t""yes" 1>&6
4379 else
4380 echo "$ac_t""no" 1>&6
4381 fi
4382
4383
4384 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4385 echo "configure:4386: checking for --enable-html" >&5
4386 no_cache=0
4387 # Check whether --enable-html or --disable-html was given.
4388 if test "${enable_html+set}" = set; then
4389 enableval="$enable_html"
4390
4391 if test "$enableval" = yes; then
4392 ac_cv_use_html='wxUSE_HTML=yes'
4393 else
4394 ac_cv_use_html='wxUSE_HTML=no'
4395 fi
4396
4397 else
4398
4399 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4400 if test "x$LINE" != x ; then
4401 eval "DEFAULT_$LINE"
4402 else
4403 no_cache=1
4404 fi
4405
4406 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4407
4408 fi
4409
4410
4411 eval "$ac_cv_use_html"
4412 if test "$no_cache" != 1; then
4413 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4414 fi
4415
4416 if test "$wxUSE_HTML" = yes; then
4417 echo "$ac_t""yes" 1>&6
4418 else
4419 echo "$ac_t""no" 1>&6
4420 fi
4421
4422
4423 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4424 echo "configure:4425: checking for --enable-htmlhelp" >&5
4425 no_cache=0
4426 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4427 if test "${enable_htmlhelp+set}" = set; then
4428 enableval="$enable_htmlhelp"
4429
4430 if test "$enableval" = yes; then
4431 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4432 else
4433 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4434 fi
4435
4436 else
4437
4438 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4439 if test "x$LINE" != x ; then
4440 eval "DEFAULT_$LINE"
4441 else
4442 no_cache=1
4443 fi
4444
4445 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4446
4447 fi
4448
4449
4450 eval "$ac_cv_use_htmlhelp"
4451 if test "$no_cache" != 1; then
4452 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4453 fi
4454
4455 if test "$wxUSE_WXHTML_HELP" = yes; then
4456 echo "$ac_t""yes" 1>&6
4457 else
4458 echo "$ac_t""no" 1>&6
4459 fi
4460
4461
4462 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4463 echo "configure:4464: checking for --enable-constraints" >&5
4464 no_cache=0
4465 # Check whether --enable-constraints or --disable-constraints was given.
4466 if test "${enable_constraints+set}" = set; then
4467 enableval="$enable_constraints"
4468
4469 if test "$enableval" = yes; then
4470 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4471 else
4472 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4473 fi
4474
4475 else
4476
4477 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4478 if test "x$LINE" != x ; then
4479 eval "DEFAULT_$LINE"
4480 else
4481 no_cache=1
4482 fi
4483
4484 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
4485
4486 fi
4487
4488
4489 eval "$ac_cv_use_constraints"
4490 if test "$no_cache" != 1; then
4491 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4492 fi
4493
4494 if test "$wxUSE_CONSTRAINTS" = yes; then
4495 echo "$ac_t""yes" 1>&6
4496 else
4497 echo "$ac_t""no" 1>&6
4498 fi
4499
4500
4501 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4502 echo "configure:4503: checking for --enable-printarch" >&5
4503 no_cache=0
4504 # Check whether --enable-printarch or --disable-printarch was given.
4505 if test "${enable_printarch+set}" = set; then
4506 enableval="$enable_printarch"
4507
4508 if test "$enableval" = yes; then
4509 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4510 else
4511 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4512 fi
4513
4514 else
4515
4516 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4517 if test "x$LINE" != x ; then
4518 eval "DEFAULT_$LINE"
4519 else
4520 no_cache=1
4521 fi
4522
4523 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
4524
4525 fi
4526
4527
4528 eval "$ac_cv_use_printarch"
4529 if test "$no_cache" != 1; then
4530 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4531 fi
4532
4533 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
4534 echo "$ac_t""yes" 1>&6
4535 else
4536 echo "$ac_t""no" 1>&6
4537 fi
4538
4539
4540 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4541 echo "configure:4542: checking for --enable-mdi" >&5
4542 no_cache=0
4543 # Check whether --enable-mdi or --disable-mdi was given.
4544 if test "${enable_mdi+set}" = set; then
4545 enableval="$enable_mdi"
4546
4547 if test "$enableval" = yes; then
4548 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4549 else
4550 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4551 fi
4552
4553 else
4554
4555 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4556 if test "x$LINE" != x ; then
4557 eval "DEFAULT_$LINE"
4558 else
4559 no_cache=1
4560 fi
4561
4562 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
4563
4564 fi
4565
4566
4567 eval "$ac_cv_use_mdi"
4568 if test "$no_cache" != 1; then
4569 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4570 fi
4571
4572 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
4573 echo "$ac_t""yes" 1>&6
4574 else
4575 echo "$ac_t""no" 1>&6
4576 fi
4577
4578
4579 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4580 echo "configure:4581: checking for --enable-loggui" >&5
4581 no_cache=0
4582 # Check whether --enable-loggui or --disable-loggui was given.
4583 if test "${enable_loggui+set}" = set; then
4584 enableval="$enable_loggui"
4585
4586 if test "$enableval" = yes; then
4587 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4588 else
4589 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4590 fi
4591
4592 else
4593
4594 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4595 if test "x$LINE" != x ; then
4596 eval "DEFAULT_$LINE"
4597 else
4598 no_cache=1
4599 fi
4600
4601 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4602
4603 fi
4604
4605
4606 eval "$ac_cv_use_loggui"
4607 if test "$no_cache" != 1; then
4608 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4609 fi
4610
4611 if test "$wxUSE_LOGGUI" = yes; then
4612 echo "$ac_t""yes" 1>&6
4613 else
4614 echo "$ac_t""no" 1>&6
4615 fi
4616
4617
4618 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4619 echo "configure:4620: checking for --enable-logwin" >&5
4620 no_cache=0
4621 # Check whether --enable-logwin or --disable-logwin was given.
4622 if test "${enable_logwin+set}" = set; then
4623 enableval="$enable_logwin"
4624
4625 if test "$enableval" = yes; then
4626 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4627 else
4628 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4629 fi
4630
4631 else
4632
4633 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4634 if test "x$LINE" != x ; then
4635 eval "DEFAULT_$LINE"
4636 else
4637 no_cache=1
4638 fi
4639
4640 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4641
4642 fi
4643
4644
4645 eval "$ac_cv_use_logwin"
4646 if test "$no_cache" != 1; then
4647 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4648 fi
4649
4650 if test "$wxUSE_LOGWINDOW" = yes; then
4651 echo "$ac_t""yes" 1>&6
4652 else
4653 echo "$ac_t""no" 1>&6
4654 fi
4655
4656
4657
4658 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4659 echo "configure:4660: checking for --enable-postscript" >&5
4660 no_cache=0
4661 # Check whether --enable-postscript or --disable-postscript was given.
4662 if test "${enable_postscript+set}" = set; then
4663 enableval="$enable_postscript"
4664
4665 if test "$enableval" = yes; then
4666 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4667 else
4668 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4669 fi
4670
4671 else
4672
4673 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4674 if test "x$LINE" != x ; then
4675 eval "DEFAULT_$LINE"
4676 else
4677 no_cache=1
4678 fi
4679
4680 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
4681
4682 fi
4683
4684
4685 eval "$ac_cv_use_postscript"
4686 if test "$no_cache" != 1; then
4687 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4688 fi
4689
4690 if test "$wxUSE_POSTSCRIPT" = yes; then
4691 echo "$ac_t""yes" 1>&6
4692 else
4693 echo "$ac_t""no" 1>&6
4694 fi
4695
4696
4697
4698
4699
4700 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4701 echo "configure:4702: checking for --enable-prologio" >&5
4702 no_cache=0
4703 # Check whether --enable-prologio or --disable-prologio was given.
4704 if test "${enable_prologio+set}" = set; then
4705 enableval="$enable_prologio"
4706
4707 if test "$enableval" = yes; then
4708 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4709 else
4710 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4711 fi
4712
4713 else
4714
4715 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4716 if test "x$LINE" != x ; then
4717 eval "DEFAULT_$LINE"
4718 else
4719 no_cache=1
4720 fi
4721
4722 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
4723
4724 fi
4725
4726
4727 eval "$ac_cv_use_prologio"
4728 if test "$no_cache" != 1; then
4729 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4730 fi
4731
4732 if test "$wxUSE_PROLOGIO" = yes; then
4733 echo "$ac_t""yes" 1>&6
4734 else
4735 echo "$ac_t""no" 1>&6
4736 fi
4737
4738
4739 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4740 echo "configure:4741: checking for --enable-resources" >&5
4741 no_cache=0
4742 # Check whether --enable-resources or --disable-resources was given.
4743 if test "${enable_resources+set}" = set; then
4744 enableval="$enable_resources"
4745
4746 if test "$enableval" = yes; then
4747 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4748 else
4749 ac_cv_use_resources='wxUSE_RESOURCES=no'
4750 fi
4751
4752 else
4753
4754 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4755 if test "x$LINE" != x ; then
4756 eval "DEFAULT_$LINE"
4757 else
4758 no_cache=1
4759 fi
4760
4761 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
4762
4763 fi
4764
4765
4766 eval "$ac_cv_use_resources"
4767 if test "$no_cache" != 1; then
4768 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4769 fi
4770
4771 if test "$wxUSE_RESOURCES" = yes; then
4772 echo "$ac_t""yes" 1>&6
4773 else
4774 echo "$ac_t""no" 1>&6
4775 fi
4776
4777
4778
4779 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
4780 echo "configure:4781: checking for --enable-xresources" >&5
4781 no_cache=0
4782 # Check whether --enable-xresources or --disable-xresources was given.
4783 if test "${enable_xresources+set}" = set; then
4784 enableval="$enable_xresources"
4785
4786 if test "$enableval" = yes; then
4787 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4788 else
4789 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4790 fi
4791
4792 else
4793
4794 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4795 if test "x$LINE" != x ; then
4796 eval "DEFAULT_$LINE"
4797 else
4798 no_cache=1
4799 fi
4800
4801 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
4802
4803 fi
4804
4805
4806 eval "$ac_cv_use_xresources"
4807 if test "$no_cache" != 1; then
4808 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4809 fi
4810
4811 if test "$wxUSE_X_RESOURCES" = yes; then
4812 echo "$ac_t""yes" 1>&6
4813 else
4814 echo "$ac_t""no" 1>&6
4815 fi
4816
4817
4818
4819
4820 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
4821 echo "configure:4822: checking for --enable-clipboard" >&5
4822 no_cache=0
4823 # Check whether --enable-clipboard or --disable-clipboard was given.
4824 if test "${enable_clipboard+set}" = set; then
4825 enableval="$enable_clipboard"
4826
4827 if test "$enableval" = yes; then
4828 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4829 else
4830 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4831 fi
4832
4833 else
4834
4835 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4836 if test "x$LINE" != x ; then
4837 eval "DEFAULT_$LINE"
4838 else
4839 no_cache=1
4840 fi
4841
4842 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4843
4844 fi
4845
4846
4847 eval "$ac_cv_use_clipboard"
4848 if test "$no_cache" != 1; then
4849 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4850 fi
4851
4852 if test "$wxUSE_CLIPBOARD" = yes; then
4853 echo "$ac_t""yes" 1>&6
4854 else
4855 echo "$ac_t""no" 1>&6
4856 fi
4857
4858
4859 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
4860 echo "configure:4861: checking for --enable-dnd" >&5
4861 no_cache=0
4862 # Check whether --enable-dnd or --disable-dnd was given.
4863 if test "${enable_dnd+set}" = set; then
4864 enableval="$enable_dnd"
4865
4866 if test "$enableval" = yes; then
4867 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4868 else
4869 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4870 fi
4871
4872 else
4873
4874 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4875 if test "x$LINE" != x ; then
4876 eval "DEFAULT_$LINE"
4877 else
4878 no_cache=1
4879 fi
4880
4881 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4882
4883 fi
4884
4885
4886 eval "$ac_cv_use_dnd"
4887 if test "$no_cache" != 1; then
4888 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4889 fi
4890
4891 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4892 echo "$ac_t""yes" 1>&6
4893 else
4894 echo "$ac_t""no" 1>&6
4895 fi
4896
4897
4898 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
4899 echo "configure:4900: checking for --enable-metafile" >&5
4900 no_cache=0
4901 # Check whether --enable-metafile or --disable-metafile was given.
4902 if test "${enable_metafile+set}" = set; then
4903 enableval="$enable_metafile"
4904
4905 if test "$enableval" = yes; then
4906 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4907 else
4908 ac_cv_use_metafile='wxUSE_METAFILE=no'
4909 fi
4910
4911 else
4912
4913 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4914 if test "x$LINE" != x ; then
4915 eval "DEFAULT_$LINE"
4916 else
4917 no_cache=1
4918 fi
4919
4920 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4921
4922 fi
4923
4924
4925 eval "$ac_cv_use_metafile"
4926 if test "$no_cache" != 1; then
4927 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4928 fi
4929
4930 if test "$wxUSE_METAFILE" = yes; then
4931 echo "$ac_t""yes" 1>&6
4932 else
4933 echo "$ac_t""no" 1>&6
4934 fi
4935
4936
4937
4938 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
4939 echo "configure:4940: checking for --enable-treelayout" >&5
4940 no_cache=0
4941 # Check whether --enable-treelayout or --disable-treelayout was given.
4942 if test "${enable_treelayout+set}" = set; then
4943 enableval="$enable_treelayout"
4944
4945 if test "$enableval" = yes; then
4946 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
4947 else
4948 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
4949 fi
4950
4951 else
4952
4953 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
4954 if test "x$LINE" != x ; then
4955 eval "DEFAULT_$LINE"
4956 else
4957 no_cache=1
4958 fi
4959
4960 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
4961
4962 fi
4963
4964
4965 eval "$ac_cv_use_treelayout"
4966 if test "$no_cache" != 1; then
4967 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
4968 fi
4969
4970 if test "$wxUSE_TREELAYOUT" = yes; then
4971 echo "$ac_t""yes" 1>&6
4972 else
4973 echo "$ac_t""no" 1>&6
4974 fi
4975
4976
4977
4978
4979 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
4980 echo "configure:4981: checking for --enable-controls" >&5
4981 no_cache=0
4982 # Check whether --enable-controls or --disable-controls was given.
4983 if test "${enable_controls+set}" = set; then
4984 enableval="$enable_controls"
4985
4986 if test "$enableval" = yes; then
4987 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4988 else
4989 ac_cv_use_controls='wxUSE_CONTROLS=no'
4990 fi
4991
4992 else
4993
4994 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4995 if test "x$LINE" != x ; then
4996 eval "DEFAULT_$LINE"
4997 else
4998 no_cache=1
4999 fi
5000
5001 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5002
5003 fi
5004
5005
5006 eval "$ac_cv_use_controls"
5007 if test "$no_cache" != 1; then
5008 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5009 fi
5010
5011 if test "$wxUSE_CONTROLS" = yes; then
5012 echo "$ac_t""yes" 1>&6
5013 else
5014 echo "$ac_t""no" 1>&6
5015 fi
5016
5017
5018 if test "$wxUSE_CONTROLS" = "yes"; then
5019 DEFAULT_wxUSE_ACCEL=yes
5020 DEFAULT_wxUSE_BMPBUTTON=yes
5021 DEFAULT_wxUSE_BUTTON=yes
5022 DEFAULT_wxUSE_CALCTRL=no
5023 DEFAULT_wxUSE_CARET=yes
5024 DEFAULT_wxUSE_COMBOBOX=yes
5025 DEFAULT_wxUSE_CHECKBOX=yes
5026 DEFAULT_wxUSE_CHECKLISTBOX=yes
5027 DEFAULT_wxUSE_CHOICE=yes
5028 DEFAULT_wxUSE_GAUGE=yes
5029 DEFAULT_wxUSE_GRID=yes
5030 DEFAULT_wxUSE_NEW_GRID=yes
5031 DEFAULT_wxUSE_IMAGLIST=yes
5032 DEFAULT_wxUSE_LISTBOX=yes
5033 DEFAULT_wxUSE_LISTCTRL=yes
5034 DEFAULT_wxUSE_NOTEBOOK=yes
5035 DEFAULT_wxUSE_PROPSHEET=yes
5036 DEFAULT_wxUSE_RADIOBOX=yes
5037 DEFAULT_wxUSE_RADIOBTN=yes
5038 DEFAULT_wxUSE_SASH=yes
5039 DEFAULT_wxUSE_SCROLLBAR=yes
5040 DEFAULT_wxUSE_SLIDER=yes
5041 DEFAULT_wxUSE_SPINBTN=yes
5042 DEFAULT_wxUSE_SPINCTRL=yes
5043 DEFAULT_wxUSE_SPLITTER=yes
5044 DEFAULT_wxUSE_STATBMP=yes
5045 DEFAULT_wxUSE_STATBOX=yes
5046 DEFAULT_wxUSE_STATLINE=yes
5047 DEFAULT_wxUSE_STATUSBAR=yes
5048 DEFAULT_wxUSE_TAB_DIALOG=yes
5049 DEFAULT_wxUSE_TOGGLEBTN=yes
5050 DEFAULT_wxUSE_TOOLBAR=yes
5051 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5052 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5053 DEFAULT_wxUSE_TOOLTIPS=yes
5054 DEFAULT_wxUSE_TREECTRL=yes
5055 DEFAULT_wxUSE_POPUPWIN=yes
5056 elif test "$wxUSE_CONTROLS" = "no"; then
5057 DEFAULT_wxUSE_ACCEL=no
5058 DEFAULT_wxUSE_BMPBUTTON=no
5059 DEFAULT_wxUSE_BUTTON=no
5060 DEFAULT_wxUSE_CALCTRL=no
5061 DEFAULT_wxUSE_CARET=no
5062 DEFAULT_wxUSE_COMBOBOX=no
5063 DEFAULT_wxUSE_CHECKBOX=no
5064 DEFAULT_wxUSE_CHECKLISTBOX=no
5065 DEFAULT_wxUSE_CHOICE=no
5066 DEFAULT_wxUSE_GAUGE=no
5067 DEFAULT_wxUSE_GRID=no
5068 DEFAULT_wxUSE_NEW_GRID=no
5069 DEFAULT_wxUSE_IMAGLIST=no
5070 DEFAULT_wxUSE_LISTBOX=no
5071 DEFAULT_wxUSE_LISTCTRL=no
5072 DEFAULT_wxUSE_NOTEBOOK=no
5073 DEFAULT_wxUSE_PROPSHEET=no
5074 DEFAULT_wxUSE_RADIOBOX=no
5075 DEFAULT_wxUSE_RADIOBTN=no
5076 DEFAULT_wxUSE_SASH=no
5077 DEFAULT_wxUSE_SCROLLBAR=no
5078 DEFAULT_wxUSE_SLIDER=no
5079 DEFAULT_wxUSE_SPINBTN=no
5080 DEFAULT_wxUSE_SPINCTRL=no
5081 DEFAULT_wxUSE_SPLITTER=no
5082 DEFAULT_wxUSE_STATBMP=no
5083 DEFAULT_wxUSE_STATBOX=no
5084 DEFAULT_wxUSE_STATLINE=no
5085 DEFAULT_wxUSE_STATUSBAR=no
5086 DEFAULT_wxUSE_TAB_DIALOG=no
5087 DEFAULT_wxUSE_TOGGLEBTN=no
5088 DEFAULT_wxUSE_TOOLBAR=no
5089 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5090 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5091 DEFAULT_wxUSE_TOOLTIPS=no
5092 DEFAULT_wxUSE_TREECTRL=no
5093 DEFAULT_wxUSE_POPUPWIN=no
5094 fi
5095
5096
5097 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5098 echo "configure:5099: checking for --enable-accel" >&5
5099 no_cache=0
5100 # Check whether --enable-accel or --disable-accel was given.
5101 if test "${enable_accel+set}" = set; then
5102 enableval="$enable_accel"
5103
5104 if test "$enableval" = yes; then
5105 ac_cv_use_accel='wxUSE_ACCEL=yes'
5106 else
5107 ac_cv_use_accel='wxUSE_ACCEL=no'
5108 fi
5109
5110 else
5111
5112 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5113 if test "x$LINE" != x ; then
5114 eval "DEFAULT_$LINE"
5115 else
5116 no_cache=1
5117 fi
5118
5119 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5120
5121 fi
5122
5123
5124 eval "$ac_cv_use_accel"
5125 if test "$no_cache" != 1; then
5126 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5127 fi
5128
5129 if test "$wxUSE_ACCEL" = yes; then
5130 echo "$ac_t""yes" 1>&6
5131 else
5132 echo "$ac_t""no" 1>&6
5133 fi
5134
5135
5136 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5137 echo "configure:5138: checking for --enable-button" >&5
5138 no_cache=0
5139 # Check whether --enable-button or --disable-button was given.
5140 if test "${enable_button+set}" = set; then
5141 enableval="$enable_button"
5142
5143 if test "$enableval" = yes; then
5144 ac_cv_use_button='wxUSE_BUTTON=yes'
5145 else
5146 ac_cv_use_button='wxUSE_BUTTON=no'
5147 fi
5148
5149 else
5150
5151 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5152 if test "x$LINE" != x ; then
5153 eval "DEFAULT_$LINE"
5154 else
5155 no_cache=1
5156 fi
5157
5158 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5159
5160 fi
5161
5162
5163 eval "$ac_cv_use_button"
5164 if test "$no_cache" != 1; then
5165 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5166 fi
5167
5168 if test "$wxUSE_BUTTON" = yes; then
5169 echo "$ac_t""yes" 1>&6
5170 else
5171 echo "$ac_t""no" 1>&6
5172 fi
5173
5174
5175 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5176 echo "configure:5177: checking for --enable-bmpbutton" >&5
5177 no_cache=0
5178 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5179 if test "${enable_bmpbutton+set}" = set; then
5180 enableval="$enable_bmpbutton"
5181
5182 if test "$enableval" = yes; then
5183 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5184 else
5185 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5186 fi
5187
5188 else
5189
5190 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5191 if test "x$LINE" != x ; then
5192 eval "DEFAULT_$LINE"
5193 else
5194 no_cache=1
5195 fi
5196
5197 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5198
5199 fi
5200
5201
5202 eval "$ac_cv_use_bmpbutton"
5203 if test "$no_cache" != 1; then
5204 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5205 fi
5206
5207 if test "$wxUSE_BMPBUTTON" = yes; then
5208 echo "$ac_t""yes" 1>&6
5209 else
5210 echo "$ac_t""no" 1>&6
5211 fi
5212
5213
5214 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5215 echo "configure:5216: checking for --enable-calendar" >&5
5216 no_cache=0
5217 # Check whether --enable-calendar or --disable-calendar was given.
5218 if test "${enable_calendar+set}" = set; then
5219 enableval="$enable_calendar"
5220
5221 if test "$enableval" = yes; then
5222 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5223 else
5224 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5225 fi
5226
5227 else
5228
5229 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5230 if test "x$LINE" != x ; then
5231 eval "DEFAULT_$LINE"
5232 else
5233 no_cache=1
5234 fi
5235
5236 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5237
5238 fi
5239
5240
5241 eval "$ac_cv_use_calendar"
5242 if test "$no_cache" != 1; then
5243 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5244 fi
5245
5246 if test "$wxUSE_CALCTRL" = yes; then
5247 echo "$ac_t""yes" 1>&6
5248 else
5249 echo "$ac_t""no" 1>&6
5250 fi
5251
5252
5253 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5254 echo "configure:5255: checking for --enable-caret" >&5
5255 no_cache=0
5256 # Check whether --enable-caret or --disable-caret was given.
5257 if test "${enable_caret+set}" = set; then
5258 enableval="$enable_caret"
5259
5260 if test "$enableval" = yes; then
5261 ac_cv_use_caret='wxUSE_CARET=yes'
5262 else
5263 ac_cv_use_caret='wxUSE_CARET=no'
5264 fi
5265
5266 else
5267
5268 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5269 if test "x$LINE" != x ; then
5270 eval "DEFAULT_$LINE"
5271 else
5272 no_cache=1
5273 fi
5274
5275 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5276
5277 fi
5278
5279
5280 eval "$ac_cv_use_caret"
5281 if test "$no_cache" != 1; then
5282 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5283 fi
5284
5285 if test "$wxUSE_CARET" = yes; then
5286 echo "$ac_t""yes" 1>&6
5287 else
5288 echo "$ac_t""no" 1>&6
5289 fi
5290
5291
5292 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5293 echo "configure:5294: checking for --enable-checkbox" >&5
5294 no_cache=0
5295 # Check whether --enable-checkbox or --disable-checkbox was given.
5296 if test "${enable_checkbox+set}" = set; then
5297 enableval="$enable_checkbox"
5298
5299 if test "$enableval" = yes; then
5300 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5301 else
5302 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5303 fi
5304
5305 else
5306
5307 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5308 if test "x$LINE" != x ; then
5309 eval "DEFAULT_$LINE"
5310 else
5311 no_cache=1
5312 fi
5313
5314 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5315
5316 fi
5317
5318
5319 eval "$ac_cv_use_checkbox"
5320 if test "$no_cache" != 1; then
5321 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5322 fi
5323
5324 if test "$wxUSE_CHECKBOX" = yes; then
5325 echo "$ac_t""yes" 1>&6
5326 else
5327 echo "$ac_t""no" 1>&6
5328 fi
5329
5330
5331 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5332 echo "configure:5333: checking for --enable-checklst" >&5
5333 no_cache=0
5334 # Check whether --enable-checklst or --disable-checklst was given.
5335 if test "${enable_checklst+set}" = set; then
5336 enableval="$enable_checklst"
5337
5338 if test "$enableval" = yes; then
5339 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5340 else
5341 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5342 fi
5343
5344 else
5345
5346 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5347 if test "x$LINE" != x ; then
5348 eval "DEFAULT_$LINE"
5349 else
5350 no_cache=1
5351 fi
5352
5353 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5354
5355 fi
5356
5357
5358 eval "$ac_cv_use_checklst"
5359 if test "$no_cache" != 1; then
5360 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5361 fi
5362
5363 if test "$wxUSE_CHECKLST" = yes; then
5364 echo "$ac_t""yes" 1>&6
5365 else
5366 echo "$ac_t""no" 1>&6
5367 fi
5368
5369
5370 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5371 echo "configure:5372: checking for --enable-choice" >&5
5372 no_cache=0
5373 # Check whether --enable-choice or --disable-choice was given.
5374 if test "${enable_choice+set}" = set; then
5375 enableval="$enable_choice"
5376
5377 if test "$enableval" = yes; then
5378 ac_cv_use_choice='wxUSE_CHOICE=yes'
5379 else
5380 ac_cv_use_choice='wxUSE_CHOICE=no'
5381 fi
5382
5383 else
5384
5385 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5386 if test "x$LINE" != x ; then
5387 eval "DEFAULT_$LINE"
5388 else
5389 no_cache=1
5390 fi
5391
5392 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5393
5394 fi
5395
5396
5397 eval "$ac_cv_use_choice"
5398 if test "$no_cache" != 1; then
5399 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5400 fi
5401
5402 if test "$wxUSE_CHOICE" = yes; then
5403 echo "$ac_t""yes" 1>&6
5404 else
5405 echo "$ac_t""no" 1>&6
5406 fi
5407
5408
5409 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5410 echo "configure:5411: checking for --enable-combobox" >&5
5411 no_cache=0
5412 # Check whether --enable-combobox or --disable-combobox was given.
5413 if test "${enable_combobox+set}" = set; then
5414 enableval="$enable_combobox"
5415
5416 if test "$enableval" = yes; then
5417 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5418 else
5419 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5420 fi
5421
5422 else
5423
5424 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5425 if test "x$LINE" != x ; then
5426 eval "DEFAULT_$LINE"
5427 else
5428 no_cache=1
5429 fi
5430
5431 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5432
5433 fi
5434
5435
5436 eval "$ac_cv_use_combobox"
5437 if test "$no_cache" != 1; then
5438 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5439 fi
5440
5441 if test "$wxUSE_COMBOBOX" = yes; then
5442 echo "$ac_t""yes" 1>&6
5443 else
5444 echo "$ac_t""no" 1>&6
5445 fi
5446
5447
5448 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
5449 echo "configure:5450: checking for --enable-gauge" >&5
5450 no_cache=0
5451 # Check whether --enable-gauge or --disable-gauge was given.
5452 if test "${enable_gauge+set}" = set; then
5453 enableval="$enable_gauge"
5454
5455 if test "$enableval" = yes; then
5456 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5457 else
5458 ac_cv_use_gauge='wxUSE_GAUGE=no'
5459 fi
5460
5461 else
5462
5463 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5464 if test "x$LINE" != x ; then
5465 eval "DEFAULT_$LINE"
5466 else
5467 no_cache=1
5468 fi
5469
5470 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
5471
5472 fi
5473
5474
5475 eval "$ac_cv_use_gauge"
5476 if test "$no_cache" != 1; then
5477 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5478 fi
5479
5480 if test "$wxUSE_GAUGE" = yes; then
5481 echo "$ac_t""yes" 1>&6
5482 else
5483 echo "$ac_t""no" 1>&6
5484 fi
5485
5486
5487 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
5488 echo "configure:5489: checking for --enable-grid" >&5
5489 no_cache=0
5490 # Check whether --enable-grid or --disable-grid was given.
5491 if test "${enable_grid+set}" = set; then
5492 enableval="$enable_grid"
5493
5494 if test "$enableval" = yes; then
5495 ac_cv_use_grid='wxUSE_GRID=yes'
5496 else
5497 ac_cv_use_grid='wxUSE_GRID=no'
5498 fi
5499
5500 else
5501
5502 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5503 if test "x$LINE" != x ; then
5504 eval "DEFAULT_$LINE"
5505 else
5506 no_cache=1
5507 fi
5508
5509 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5510
5511 fi
5512
5513
5514 eval "$ac_cv_use_grid"
5515 if test "$no_cache" != 1; then
5516 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5517 fi
5518
5519 if test "$wxUSE_GRID" = yes; then
5520 echo "$ac_t""yes" 1>&6
5521 else
5522 echo "$ac_t""no" 1>&6
5523 fi
5524
5525
5526 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
5527 echo "configure:5528: checking for --enable-newgrid" >&5
5528 no_cache=0
5529 # Check whether --enable-newgrid or --disable-newgrid was given.
5530 if test "${enable_newgrid+set}" = set; then
5531 enableval="$enable_newgrid"
5532
5533 if test "$enableval" = yes; then
5534 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5535 else
5536 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5537 fi
5538
5539 else
5540
5541 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5542 if test "x$LINE" != x ; then
5543 eval "DEFAULT_$LINE"
5544 else
5545 no_cache=1
5546 fi
5547
5548 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
5549
5550 fi
5551
5552
5553 eval "$ac_cv_use_newgrid"
5554 if test "$no_cache" != 1; then
5555 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5556 fi
5557
5558 if test "$wxUSE_NEW_GRID" = yes; then
5559 echo "$ac_t""yes" 1>&6
5560 else
5561 echo "$ac_t""no" 1>&6
5562 fi
5563
5564
5565 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
5566 echo "configure:5567: checking for --enable-imaglist" >&5
5567 no_cache=0
5568 # Check whether --enable-imaglist or --disable-imaglist was given.
5569 if test "${enable_imaglist+set}" = set; then
5570 enableval="$enable_imaglist"
5571
5572 if test "$enableval" = yes; then
5573 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5574 else
5575 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5576 fi
5577
5578 else
5579
5580 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5581 if test "x$LINE" != x ; then
5582 eval "DEFAULT_$LINE"
5583 else
5584 no_cache=1
5585 fi
5586
5587 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
5588
5589 fi
5590
5591
5592 eval "$ac_cv_use_imaglist"
5593 if test "$no_cache" != 1; then
5594 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5595 fi
5596
5597 if test "$wxUSE_IMAGLIST" = yes; then
5598 echo "$ac_t""yes" 1>&6
5599 else
5600 echo "$ac_t""no" 1>&6
5601 fi
5602
5603
5604 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
5605 echo "configure:5606: checking for --enable-listbox" >&5
5606 no_cache=0
5607 # Check whether --enable-listbox or --disable-listbox was given.
5608 if test "${enable_listbox+set}" = set; then
5609 enableval="$enable_listbox"
5610
5611 if test "$enableval" = yes; then
5612 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5613 else
5614 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5615 fi
5616
5617 else
5618
5619 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5620 if test "x$LINE" != x ; then
5621 eval "DEFAULT_$LINE"
5622 else
5623 no_cache=1
5624 fi
5625
5626 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
5627
5628 fi
5629
5630
5631 eval "$ac_cv_use_listbox"
5632 if test "$no_cache" != 1; then
5633 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5634 fi
5635
5636 if test "$wxUSE_LISTBOX" = yes; then
5637 echo "$ac_t""yes" 1>&6
5638 else
5639 echo "$ac_t""no" 1>&6
5640 fi
5641
5642
5643 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
5644 echo "configure:5645: checking for --enable-listctrl" >&5
5645 no_cache=0
5646 # Check whether --enable-listctrl or --disable-listctrl was given.
5647 if test "${enable_listctrl+set}" = set; then
5648 enableval="$enable_listctrl"
5649
5650 if test "$enableval" = yes; then
5651 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5652 else
5653 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5654 fi
5655
5656 else
5657
5658 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5659 if test "x$LINE" != x ; then
5660 eval "DEFAULT_$LINE"
5661 else
5662 no_cache=1
5663 fi
5664
5665 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
5666
5667 fi
5668
5669
5670 eval "$ac_cv_use_listctrl"
5671 if test "$no_cache" != 1; then
5672 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5673 fi
5674
5675 if test "$wxUSE_LISTCTRL" = yes; then
5676 echo "$ac_t""yes" 1>&6
5677 else
5678 echo "$ac_t""no" 1>&6
5679 fi
5680
5681
5682 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
5683 echo "configure:5684: checking for --enable-notebook" >&5
5684 no_cache=0
5685 # Check whether --enable-notebook or --disable-notebook was given.
5686 if test "${enable_notebook+set}" = set; then
5687 enableval="$enable_notebook"
5688
5689 if test "$enableval" = yes; then
5690 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5691 else
5692 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5693 fi
5694
5695 else
5696
5697 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5698 if test "x$LINE" != x ; then
5699 eval "DEFAULT_$LINE"
5700 else
5701 no_cache=1
5702 fi
5703
5704 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
5705
5706 fi
5707
5708
5709 eval "$ac_cv_use_notebook"
5710 if test "$no_cache" != 1; then
5711 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5712 fi
5713
5714 if test "$wxUSE_NOTEBOOK" = yes; then
5715 echo "$ac_t""yes" 1>&6
5716 else
5717 echo "$ac_t""no" 1>&6
5718 fi
5719
5720
5721 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
5722 echo "configure:5723: checking for --enable-propsheet" >&5
5723 no_cache=0
5724 # Check whether --enable-propsheet or --disable-propsheet was given.
5725 if test "${enable_propsheet+set}" = set; then
5726 enableval="$enable_propsheet"
5727
5728 if test "$enableval" = yes; then
5729 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5730 else
5731 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5732 fi
5733
5734 else
5735
5736 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5737 if test "x$LINE" != x ; then
5738 eval "DEFAULT_$LINE"
5739 else
5740 no_cache=1
5741 fi
5742
5743 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5744
5745 fi
5746
5747
5748 eval "$ac_cv_use_propsheet"
5749 if test "$no_cache" != 1; then
5750 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5751 fi
5752
5753 if test "$wxUSE_PROPSHEET" = yes; then
5754 echo "$ac_t""yes" 1>&6
5755 else
5756 echo "$ac_t""no" 1>&6
5757 fi
5758
5759
5760 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
5761 echo "configure:5762: checking for --enable-radiobox" >&5
5762 no_cache=0
5763 # Check whether --enable-radiobox or --disable-radiobox was given.
5764 if test "${enable_radiobox+set}" = set; then
5765 enableval="$enable_radiobox"
5766
5767 if test "$enableval" = yes; then
5768 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5769 else
5770 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5771 fi
5772
5773 else
5774
5775 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5776 if test "x$LINE" != x ; then
5777 eval "DEFAULT_$LINE"
5778 else
5779 no_cache=1
5780 fi
5781
5782 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
5783
5784 fi
5785
5786
5787 eval "$ac_cv_use_radiobox"
5788 if test "$no_cache" != 1; then
5789 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5790 fi
5791
5792 if test "$wxUSE_RADIOBOX" = yes; then
5793 echo "$ac_t""yes" 1>&6
5794 else
5795 echo "$ac_t""no" 1>&6
5796 fi
5797
5798
5799 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
5800 echo "configure:5801: checking for --enable-radiobtn" >&5
5801 no_cache=0
5802 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5803 if test "${enable_radiobtn+set}" = set; then
5804 enableval="$enable_radiobtn"
5805
5806 if test "$enableval" = yes; then
5807 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5808 else
5809 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5810 fi
5811
5812 else
5813
5814 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5815 if test "x$LINE" != x ; then
5816 eval "DEFAULT_$LINE"
5817 else
5818 no_cache=1
5819 fi
5820
5821 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
5822
5823 fi
5824
5825
5826 eval "$ac_cv_use_radiobtn"
5827 if test "$no_cache" != 1; then
5828 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5829 fi
5830
5831 if test "$wxUSE_RADIOBTN" = yes; then
5832 echo "$ac_t""yes" 1>&6
5833 else
5834 echo "$ac_t""no" 1>&6
5835 fi
5836
5837
5838 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
5839 echo "configure:5840: checking for --enable-sash" >&5
5840 no_cache=0
5841 # Check whether --enable-sash or --disable-sash was given.
5842 if test "${enable_sash+set}" = set; then
5843 enableval="$enable_sash"
5844
5845 if test "$enableval" = yes; then
5846 ac_cv_use_sash='wxUSE_SASH=yes'
5847 else
5848 ac_cv_use_sash='wxUSE_SASH=no'
5849 fi
5850
5851 else
5852
5853 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5854 if test "x$LINE" != x ; then
5855 eval "DEFAULT_$LINE"
5856 else
5857 no_cache=1
5858 fi
5859
5860 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
5861
5862 fi
5863
5864
5865 eval "$ac_cv_use_sash"
5866 if test "$no_cache" != 1; then
5867 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5868 fi
5869
5870 if test "$wxUSE_SASH" = yes; then
5871 echo "$ac_t""yes" 1>&6
5872 else
5873 echo "$ac_t""no" 1>&6
5874 fi
5875
5876
5877 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
5878 echo "configure:5879: checking for --enable-scrollbar" >&5
5879 no_cache=0
5880 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5881 if test "${enable_scrollbar+set}" = set; then
5882 enableval="$enable_scrollbar"
5883
5884 if test "$enableval" = yes; then
5885 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5886 else
5887 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5888 fi
5889
5890 else
5891
5892 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5893 if test "x$LINE" != x ; then
5894 eval "DEFAULT_$LINE"
5895 else
5896 no_cache=1
5897 fi
5898
5899 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
5900
5901 fi
5902
5903
5904 eval "$ac_cv_use_scrollbar"
5905 if test "$no_cache" != 1; then
5906 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5907 fi
5908
5909 if test "$wxUSE_SCROLLBAR" = yes; then
5910 echo "$ac_t""yes" 1>&6
5911 else
5912 echo "$ac_t""no" 1>&6
5913 fi
5914
5915
5916 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
5917 echo "configure:5918: checking for --enable-slider" >&5
5918 no_cache=0
5919 # Check whether --enable-slider or --disable-slider was given.
5920 if test "${enable_slider+set}" = set; then
5921 enableval="$enable_slider"
5922
5923 if test "$enableval" = yes; then
5924 ac_cv_use_slider='wxUSE_SLIDER=yes'
5925 else
5926 ac_cv_use_slider='wxUSE_SLIDER=no'
5927 fi
5928
5929 else
5930
5931 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5932 if test "x$LINE" != x ; then
5933 eval "DEFAULT_$LINE"
5934 else
5935 no_cache=1
5936 fi
5937
5938 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
5939
5940 fi
5941
5942
5943 eval "$ac_cv_use_slider"
5944 if test "$no_cache" != 1; then
5945 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5946 fi
5947
5948 if test "$wxUSE_SLIDER" = yes; then
5949 echo "$ac_t""yes" 1>&6
5950 else
5951 echo "$ac_t""no" 1>&6
5952 fi
5953
5954
5955 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
5956 echo "configure:5957: checking for --enable-spinbtn" >&5
5957 no_cache=0
5958 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5959 if test "${enable_spinbtn+set}" = set; then
5960 enableval="$enable_spinbtn"
5961
5962 if test "$enableval" = yes; then
5963 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5964 else
5965 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5966 fi
5967
5968 else
5969
5970 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5971 if test "x$LINE" != x ; then
5972 eval "DEFAULT_$LINE"
5973 else
5974 no_cache=1
5975 fi
5976
5977 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
5978
5979 fi
5980
5981
5982 eval "$ac_cv_use_spinbtn"
5983 if test "$no_cache" != 1; then
5984 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5985 fi
5986
5987 if test "$wxUSE_SPINBTN" = yes; then
5988 echo "$ac_t""yes" 1>&6
5989 else
5990 echo "$ac_t""no" 1>&6
5991 fi
5992
5993
5994 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
5995 echo "configure:5996: checking for --enable-spinctrl" >&5
5996 no_cache=0
5997 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5998 if test "${enable_spinctrl+set}" = set; then
5999 enableval="$enable_spinctrl"
6000
6001 if test "$enableval" = yes; then
6002 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6003 else
6004 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6005 fi
6006
6007 else
6008
6009 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6010 if test "x$LINE" != x ; then
6011 eval "DEFAULT_$LINE"
6012 else
6013 no_cache=1
6014 fi
6015
6016 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6017
6018 fi
6019
6020
6021 eval "$ac_cv_use_spinctrl"
6022 if test "$no_cache" != 1; then
6023 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6024 fi
6025
6026 if test "$wxUSE_SPINCTRL" = yes; then
6027 echo "$ac_t""yes" 1>&6
6028 else
6029 echo "$ac_t""no" 1>&6
6030 fi
6031
6032
6033 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6034 echo "configure:6035: checking for --enable-splitter" >&5
6035 no_cache=0
6036 # Check whether --enable-splitter or --disable-splitter was given.
6037 if test "${enable_splitter+set}" = set; then
6038 enableval="$enable_splitter"
6039
6040 if test "$enableval" = yes; then
6041 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6042 else
6043 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6044 fi
6045
6046 else
6047
6048 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6049 if test "x$LINE" != x ; then
6050 eval "DEFAULT_$LINE"
6051 else
6052 no_cache=1
6053 fi
6054
6055 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6056
6057 fi
6058
6059
6060 eval "$ac_cv_use_splitter"
6061 if test "$no_cache" != 1; then
6062 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6063 fi
6064
6065 if test "$wxUSE_SPLITTER" = yes; then
6066 echo "$ac_t""yes" 1>&6
6067 else
6068 echo "$ac_t""no" 1>&6
6069 fi
6070
6071
6072 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6073 echo "configure:6074: checking for --enable-statbmp" >&5
6074 no_cache=0
6075 # Check whether --enable-statbmp or --disable-statbmp was given.
6076 if test "${enable_statbmp+set}" = set; then
6077 enableval="$enable_statbmp"
6078
6079 if test "$enableval" = yes; then
6080 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6081 else
6082 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6083 fi
6084
6085 else
6086
6087 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6088 if test "x$LINE" != x ; then
6089 eval "DEFAULT_$LINE"
6090 else
6091 no_cache=1
6092 fi
6093
6094 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6095
6096 fi
6097
6098
6099 eval "$ac_cv_use_statbmp"
6100 if test "$no_cache" != 1; then
6101 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6102 fi
6103
6104 if test "$wxUSE_STATBMP" = yes; then
6105 echo "$ac_t""yes" 1>&6
6106 else
6107 echo "$ac_t""no" 1>&6
6108 fi
6109
6110
6111 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6112 echo "configure:6113: checking for --enable-statbox" >&5
6113 no_cache=0
6114 # Check whether --enable-statbox or --disable-statbox was given.
6115 if test "${enable_statbox+set}" = set; then
6116 enableval="$enable_statbox"
6117
6118 if test "$enableval" = yes; then
6119 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6120 else
6121 ac_cv_use_statbox='wxUSE_STATBOX=no'
6122 fi
6123
6124 else
6125
6126 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6127 if test "x$LINE" != x ; then
6128 eval "DEFAULT_$LINE"
6129 else
6130 no_cache=1
6131 fi
6132
6133 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6134
6135 fi
6136
6137
6138 eval "$ac_cv_use_statbox"
6139 if test "$no_cache" != 1; then
6140 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6141 fi
6142
6143 if test "$wxUSE_STATBOX" = yes; then
6144 echo "$ac_t""yes" 1>&6
6145 else
6146 echo "$ac_t""no" 1>&6
6147 fi
6148
6149
6150 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6151 echo "configure:6152: checking for --enable-statline" >&5
6152 no_cache=0
6153 # Check whether --enable-statline or --disable-statline was given.
6154 if test "${enable_statline+set}" = set; then
6155 enableval="$enable_statline"
6156
6157 if test "$enableval" = yes; then
6158 ac_cv_use_statline='wxUSE_STATLINE=yes'
6159 else
6160 ac_cv_use_statline='wxUSE_STATLINE=no'
6161 fi
6162
6163 else
6164
6165 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6166 if test "x$LINE" != x ; then
6167 eval "DEFAULT_$LINE"
6168 else
6169 no_cache=1
6170 fi
6171
6172 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6173
6174 fi
6175
6176
6177 eval "$ac_cv_use_statline"
6178 if test "$no_cache" != 1; then
6179 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6180 fi
6181
6182 if test "$wxUSE_STATLINE" = yes; then
6183 echo "$ac_t""yes" 1>&6
6184 else
6185 echo "$ac_t""no" 1>&6
6186 fi
6187
6188
6189 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6190 echo "configure:6191: checking for --enable-stattext" >&5
6191 no_cache=0
6192 # Check whether --enable-stattext or --disable-stattext was given.
6193 if test "${enable_stattext+set}" = set; then
6194 enableval="$enable_stattext"
6195
6196 if test "$enableval" = yes; then
6197 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6198 else
6199 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6200 fi
6201
6202 else
6203
6204 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6205 if test "x$LINE" != x ; then
6206 eval "DEFAULT_$LINE"
6207 else
6208 no_cache=1
6209 fi
6210
6211 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6212
6213 fi
6214
6215
6216 eval "$ac_cv_use_stattext"
6217 if test "$no_cache" != 1; then
6218 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6219 fi
6220
6221 if test "$wxUSE_STATTEXT" = yes; then
6222 echo "$ac_t""yes" 1>&6
6223 else
6224 echo "$ac_t""no" 1>&6
6225 fi
6226
6227
6228 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6229 echo "configure:6230: checking for --enable-statusbar" >&5
6230 no_cache=0
6231 # Check whether --enable-statusbar or --disable-statusbar was given.
6232 if test "${enable_statusbar+set}" = set; then
6233 enableval="$enable_statusbar"
6234
6235 if test "$enableval" = yes; then
6236 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6237 else
6238 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6239 fi
6240
6241 else
6242
6243 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6244 if test "x$LINE" != x ; then
6245 eval "DEFAULT_$LINE"
6246 else
6247 no_cache=1
6248 fi
6249
6250 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6251
6252 fi
6253
6254
6255 eval "$ac_cv_use_statusbar"
6256 if test "$no_cache" != 1; then
6257 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6258 fi
6259
6260 if test "$wxUSE_STATUSBAR" = yes; then
6261 echo "$ac_t""yes" 1>&6
6262 else
6263 echo "$ac_t""no" 1>&6
6264 fi
6265
6266
6267 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6268 echo "configure:6269: checking for --enable-tabdialog" >&5
6269 no_cache=0
6270 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6271 if test "${enable_tabdialog+set}" = set; then
6272 enableval="$enable_tabdialog"
6273
6274 if test "$enableval" = yes; then
6275 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6276 else
6277 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6278 fi
6279
6280 else
6281
6282 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6283 if test "x$LINE" != x ; then
6284 eval "DEFAULT_$LINE"
6285 else
6286 no_cache=1
6287 fi
6288
6289 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6290
6291 fi
6292
6293
6294 eval "$ac_cv_use_tabdialog"
6295 if test "$no_cache" != 1; then
6296 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6297 fi
6298
6299 if test "$wxUSE_TABDIALOG" = yes; then
6300 echo "$ac_t""yes" 1>&6
6301 else
6302 echo "$ac_t""no" 1>&6
6303 fi
6304
6305
6306 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6307 echo "configure:6308: checking for --enable-textctrl" >&5
6308 no_cache=0
6309 # Check whether --enable-textctrl or --disable-textctrl was given.
6310 if test "${enable_textctrl+set}" = set; then
6311 enableval="$enable_textctrl"
6312
6313 if test "$enableval" = yes; then
6314 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6315 else
6316 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6317 fi
6318
6319 else
6320
6321 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6322 if test "x$LINE" != x ; then
6323 eval "DEFAULT_$LINE"
6324 else
6325 no_cache=1
6326 fi
6327
6328 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6329
6330 fi
6331
6332
6333 eval "$ac_cv_use_textctrl"
6334 if test "$no_cache" != 1; then
6335 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6336 fi
6337
6338 if test "$wxUSE_TEXTCTRL" = yes; then
6339 echo "$ac_t""yes" 1>&6
6340 else
6341 echo "$ac_t""no" 1>&6
6342 fi
6343
6344
6345 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6346 echo "configure:6347: checking for --enable-togglebtn" >&5
6347 no_cache=0
6348 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6349 if test "${enable_togglebtn+set}" = set; then
6350 enableval="$enable_togglebtn"
6351
6352 if test "$enableval" = yes; then
6353 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6354 else
6355 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6356 fi
6357
6358 else
6359
6360 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6361 if test "x$LINE" != x ; then
6362 eval "DEFAULT_$LINE"
6363 else
6364 no_cache=1
6365 fi
6366
6367 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6368
6369 fi
6370
6371
6372 eval "$ac_cv_use_togglebtn"
6373 if test "$no_cache" != 1; then
6374 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6375 fi
6376
6377 if test "$wxUSE_TOGGLEBTN" = yes; then
6378 echo "$ac_t""yes" 1>&6
6379 else
6380 echo "$ac_t""no" 1>&6
6381 fi
6382
6383
6384 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6385 echo "configure:6386: checking for --enable-toolbar" >&5
6386 no_cache=0
6387 # Check whether --enable-toolbar or --disable-toolbar was given.
6388 if test "${enable_toolbar+set}" = set; then
6389 enableval="$enable_toolbar"
6390
6391 if test "$enableval" = yes; then
6392 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6393 else
6394 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6395 fi
6396
6397 else
6398
6399 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6400 if test "x$LINE" != x ; then
6401 eval "DEFAULT_$LINE"
6402 else
6403 no_cache=1
6404 fi
6405
6406 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6407
6408 fi
6409
6410
6411 eval "$ac_cv_use_toolbar"
6412 if test "$no_cache" != 1; then
6413 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6414 fi
6415
6416 if test "$wxUSE_TOOLBAR" = yes; then
6417 echo "$ac_t""yes" 1>&6
6418 else
6419 echo "$ac_t""no" 1>&6
6420 fi
6421
6422
6423 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6424 echo "configure:6425: checking for --enable-tbarnative" >&5
6425 no_cache=0
6426 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6427 if test "${enable_tbarnative+set}" = set; then
6428 enableval="$enable_tbarnative"
6429
6430 if test "$enableval" = yes; then
6431 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6432 else
6433 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6434 fi
6435
6436 else
6437
6438 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6439 if test "x$LINE" != x ; then
6440 eval "DEFAULT_$LINE"
6441 else
6442 no_cache=1
6443 fi
6444
6445 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
6446
6447 fi
6448
6449
6450 eval "$ac_cv_use_tbarnative"
6451 if test "$no_cache" != 1; then
6452 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6453 fi
6454
6455 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6456 echo "$ac_t""yes" 1>&6
6457 else
6458 echo "$ac_t""no" 1>&6
6459 fi
6460
6461
6462 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
6463 echo "configure:6464: checking for --enable-tbarsmpl" >&5
6464 no_cache=0
6465 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6466 if test "${enable_tbarsmpl+set}" = set; then
6467 enableval="$enable_tbarsmpl"
6468
6469 if test "$enableval" = yes; then
6470 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6471 else
6472 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6473 fi
6474
6475 else
6476
6477 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6478 if test "x$LINE" != x ; then
6479 eval "DEFAULT_$LINE"
6480 else
6481 no_cache=1
6482 fi
6483
6484 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
6485
6486 fi
6487
6488
6489 eval "$ac_cv_use_tbarsmpl"
6490 if test "$no_cache" != 1; then
6491 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6492 fi
6493
6494 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
6495 echo "$ac_t""yes" 1>&6
6496 else
6497 echo "$ac_t""no" 1>&6
6498 fi
6499
6500
6501 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
6502 echo "configure:6503: checking for --enable-treectrl" >&5
6503 no_cache=0
6504 # Check whether --enable-treectrl or --disable-treectrl was given.
6505 if test "${enable_treectrl+set}" = set; then
6506 enableval="$enable_treectrl"
6507
6508 if test "$enableval" = yes; then
6509 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6510 else
6511 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6512 fi
6513
6514 else
6515
6516 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6517 if test "x$LINE" != x ; then
6518 eval "DEFAULT_$LINE"
6519 else
6520 no_cache=1
6521 fi
6522
6523 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
6524
6525 fi
6526
6527
6528 eval "$ac_cv_use_treectrl"
6529 if test "$no_cache" != 1; then
6530 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6531 fi
6532
6533 if test "$wxUSE_TREECTRL" = yes; then
6534 echo "$ac_t""yes" 1>&6
6535 else
6536 echo "$ac_t""no" 1>&6
6537 fi
6538
6539
6540 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
6541 echo "configure:6542: checking for --enable-popupwin" >&5
6542 no_cache=0
6543 # Check whether --enable-popupwin or --disable-popupwin was given.
6544 if test "${enable_popupwin+set}" = set; then
6545 enableval="$enable_popupwin"
6546
6547 if test "$enableval" = yes; then
6548 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6549 else
6550 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6551 fi
6552
6553 else
6554
6555 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6556 if test "x$LINE" != x ; then
6557 eval "DEFAULT_$LINE"
6558 else
6559 no_cache=1
6560 fi
6561
6562 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6563
6564 fi
6565
6566
6567 eval "$ac_cv_use_popupwin"
6568 if test "$no_cache" != 1; then
6569 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6570 fi
6571
6572 if test "$wxUSE_POPUPWIN" = yes; then
6573 echo "$ac_t""yes" 1>&6
6574 else
6575 echo "$ac_t""no" 1>&6
6576 fi
6577
6578
6579
6580
6581 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
6582 echo "configure:6583: checking for --enable-commondlg" >&5
6583 no_cache=0
6584 # Check whether --enable-commondlg or --disable-commondlg was given.
6585 if test "${enable_commondlg+set}" = set; then
6586 enableval="$enable_commondlg"
6587
6588 if test "$enableval" = yes; then
6589 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6590 else
6591 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6592 fi
6593
6594 else
6595
6596 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6597 if test "x$LINE" != x ; then
6598 eval "DEFAULT_$LINE"
6599 else
6600 no_cache=1
6601 fi
6602
6603 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6604
6605 fi
6606
6607
6608 eval "$ac_cv_use_commondlg"
6609 if test "$no_cache" != 1; then
6610 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6611 fi
6612
6613 if test "$wxUSE_COMMONDLGS" = yes; then
6614 echo "$ac_t""yes" 1>&6
6615 else
6616 echo "$ac_t""no" 1>&6
6617 fi
6618
6619
6620 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
6621 echo "configure:6622: checking for --enable-choicedlg" >&5
6622 no_cache=0
6623 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6624 if test "${enable_choicedlg+set}" = set; then
6625 enableval="$enable_choicedlg"
6626
6627 if test "$enableval" = yes; then
6628 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6629 else
6630 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6631 fi
6632
6633 else
6634
6635 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6636 if test "x$LINE" != x ; then
6637 eval "DEFAULT_$LINE"
6638 else
6639 no_cache=1
6640 fi
6641
6642 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6643
6644 fi
6645
6646
6647 eval "$ac_cv_use_choicedlg"
6648 if test "$no_cache" != 1; then
6649 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6650 fi
6651
6652 if test "$wxUSE_CHOICEDLG" = yes; then
6653 echo "$ac_t""yes" 1>&6
6654 else
6655 echo "$ac_t""no" 1>&6
6656 fi
6657
6658
6659 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
6660 echo "configure:6661: checking for --enable-coldlg" >&5
6661 no_cache=0
6662 # Check whether --enable-coldlg or --disable-coldlg was given.
6663 if test "${enable_coldlg+set}" = set; then
6664 enableval="$enable_coldlg"
6665
6666 if test "$enableval" = yes; then
6667 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6668 else
6669 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6670 fi
6671
6672 else
6673
6674 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6675 if test "x$LINE" != x ; then
6676 eval "DEFAULT_$LINE"
6677 else
6678 no_cache=1
6679 fi
6680
6681 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6682
6683 fi
6684
6685
6686 eval "$ac_cv_use_coldlg"
6687 if test "$no_cache" != 1; then
6688 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6689 fi
6690
6691 if test "$wxUSE_COLOURDLG" = yes; then
6692 echo "$ac_t""yes" 1>&6
6693 else
6694 echo "$ac_t""no" 1>&6
6695 fi
6696
6697
6698 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6699 echo "configure:6700: checking for --enable-filedlg" >&5
6700 no_cache=0
6701 # Check whether --enable-filedlg or --disable-filedlg was given.
6702 if test "${enable_filedlg+set}" = set; then
6703 enableval="$enable_filedlg"
6704
6705 if test "$enableval" = yes; then
6706 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6707 else
6708 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6709 fi
6710
6711 else
6712
6713 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6714 if test "x$LINE" != x ; then
6715 eval "DEFAULT_$LINE"
6716 else
6717 no_cache=1
6718 fi
6719
6720 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6721
6722 fi
6723
6724
6725 eval "$ac_cv_use_filedlg"
6726 if test "$no_cache" != 1; then
6727 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6728 fi
6729
6730 if test "$wxUSE_FILEDLG" = yes; then
6731 echo "$ac_t""yes" 1>&6
6732 else
6733 echo "$ac_t""no" 1>&6
6734 fi
6735
6736
6737 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6738 echo "configure:6739: checking for --enable-filedlg" >&5
6739 no_cache=0
6740 # Check whether --enable-filedlg or --disable-filedlg was given.
6741 if test "${enable_filedlg+set}" = set; then
6742 enableval="$enable_filedlg"
6743
6744 if test "$enableval" = yes; then
6745 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes'
6746 else
6747 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no'
6748 fi
6749
6750 else
6751
6752 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6753 if test "x$LINE" != x ; then
6754 eval "DEFAULT_$LINE"
6755 else
6756 no_cache=1
6757 fi
6758
6759 ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
6760
6761 fi
6762
6763
6764 eval "$ac_cv_use_filedlg"
6765 if test "$no_cache" != 1; then
6766 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6767 fi
6768
6769 if test "$wxUSE_FINDREPLDLG" = yes; then
6770 echo "$ac_t""yes" 1>&6
6771 else
6772 echo "$ac_t""no" 1>&6
6773 fi
6774
6775
6776 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
6777 echo "configure:6778: checking for --enable-fontdlg" >&5
6778 no_cache=0
6779 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6780 if test "${enable_fontdlg+set}" = set; then
6781 enableval="$enable_fontdlg"
6782
6783 if test "$enableval" = yes; then
6784 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6785 else
6786 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6787 fi
6788
6789 else
6790
6791 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6792 if test "x$LINE" != x ; then
6793 eval "DEFAULT_$LINE"
6794 else
6795 no_cache=1
6796 fi
6797
6798 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6799
6800 fi
6801
6802
6803 eval "$ac_cv_use_fontdlg"
6804 if test "$no_cache" != 1; then
6805 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6806 fi
6807
6808 if test "$wxUSE_FONTDLG" = yes; then
6809 echo "$ac_t""yes" 1>&6
6810 else
6811 echo "$ac_t""no" 1>&6
6812 fi
6813
6814
6815 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
6816 echo "configure:6817: checking for --enable-dirdlg" >&5
6817 no_cache=0
6818 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6819 if test "${enable_dirdlg+set}" = set; then
6820 enableval="$enable_dirdlg"
6821
6822 if test "$enableval" = yes; then
6823 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6824 else
6825 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6826 fi
6827
6828 else
6829
6830 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6831 if test "x$LINE" != x ; then
6832 eval "DEFAULT_$LINE"
6833 else
6834 no_cache=1
6835 fi
6836
6837 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6838
6839 fi
6840
6841
6842 eval "$ac_cv_use_dirdlg"
6843 if test "$no_cache" != 1; then
6844 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
6845 fi
6846
6847 if test "$wxUSE_DIRDLG" = yes; then
6848 echo "$ac_t""yes" 1>&6
6849 else
6850 echo "$ac_t""no" 1>&6
6851 fi
6852
6853
6854 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
6855 echo "configure:6856: checking for --enable-msgdlg" >&5
6856 no_cache=0
6857 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6858 if test "${enable_msgdlg+set}" = set; then
6859 enableval="$enable_msgdlg"
6860
6861 if test "$enableval" = yes; then
6862 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
6863 else
6864 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
6865 fi
6866
6867 else
6868
6869 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
6870 if test "x$LINE" != x ; then
6871 eval "DEFAULT_$LINE"
6872 else
6873 no_cache=1
6874 fi
6875
6876 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
6877
6878 fi
6879
6880
6881 eval "$ac_cv_use_msgdlg"
6882 if test "$no_cache" != 1; then
6883 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
6884 fi
6885
6886 if test "$wxUSE_MSGDLG" = yes; then
6887 echo "$ac_t""yes" 1>&6
6888 else
6889 echo "$ac_t""no" 1>&6
6890 fi
6891
6892
6893 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
6894 echo "configure:6895: checking for --enable-numberdlg" >&5
6895 no_cache=0
6896 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6897 if test "${enable_numberdlg+set}" = set; then
6898 enableval="$enable_numberdlg"
6899
6900 if test "$enableval" = yes; then
6901 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
6902 else
6903 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
6904 fi
6905
6906 else
6907
6908 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
6909 if test "x$LINE" != x ; then
6910 eval "DEFAULT_$LINE"
6911 else
6912 no_cache=1
6913 fi
6914
6915 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
6916
6917 fi
6918
6919
6920 eval "$ac_cv_use_numberdlg"
6921 if test "$no_cache" != 1; then
6922 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
6923 fi
6924
6925 if test "$wxUSE_NUMBERDLG" = yes; then
6926 echo "$ac_t""yes" 1>&6
6927 else
6928 echo "$ac_t""no" 1>&6
6929 fi
6930
6931
6932 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
6933 echo "configure:6934: checking for --enable-splash" >&5
6934 no_cache=0
6935 # Check whether --enable-splash or --disable-splash was given.
6936 if test "${enable_splash+set}" = set; then
6937 enableval="$enable_splash"
6938
6939 if test "$enableval" = yes; then
6940 ac_cv_use_splash='wxUSE_SPLASH=yes'
6941 else
6942 ac_cv_use_splash='wxUSE_SPLASH=no'
6943 fi
6944
6945 else
6946
6947 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
6948 if test "x$LINE" != x ; then
6949 eval "DEFAULT_$LINE"
6950 else
6951 no_cache=1
6952 fi
6953
6954 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
6955
6956 fi
6957
6958
6959 eval "$ac_cv_use_splash"
6960 if test "$no_cache" != 1; then
6961 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
6962 fi
6963
6964 if test "$wxUSE_SPLASH" = yes; then
6965 echo "$ac_t""yes" 1>&6
6966 else
6967 echo "$ac_t""no" 1>&6
6968 fi
6969
6970
6971 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
6972 echo "configure:6973: checking for --enable-textdlg" >&5
6973 no_cache=0
6974 # Check whether --enable-textdlg or --disable-textdlg was given.
6975 if test "${enable_textdlg+set}" = set; then
6976 enableval="$enable_textdlg"
6977
6978 if test "$enableval" = yes; then
6979 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6980 else
6981 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6982 fi
6983
6984 else
6985
6986 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6987 if test "x$LINE" != x ; then
6988 eval "DEFAULT_$LINE"
6989 else
6990 no_cache=1
6991 fi
6992
6993 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
6994
6995 fi
6996
6997
6998 eval "$ac_cv_use_textdlg"
6999 if test "$no_cache" != 1; then
7000 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7001 fi
7002
7003 if test "$wxUSE_TEXTDLG" = yes; then
7004 echo "$ac_t""yes" 1>&6
7005 else
7006 echo "$ac_t""no" 1>&6
7007 fi
7008
7009
7010 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7011 echo "configure:7012: checking for --enable-tipdlg" >&5
7012 no_cache=0
7013 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7014 if test "${enable_tipdlg+set}" = set; then
7015 enableval="$enable_tipdlg"
7016
7017 if test "$enableval" = yes; then
7018 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7019 else
7020 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7021 fi
7022
7023 else
7024
7025 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7026 if test "x$LINE" != x ; then
7027 eval "DEFAULT_$LINE"
7028 else
7029 no_cache=1
7030 fi
7031
7032 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7033
7034 fi
7035
7036
7037 eval "$ac_cv_use_tipdlg"
7038 if test "$no_cache" != 1; then
7039 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7040 fi
7041
7042 if test "$wxUSE_STARTUP_TIPS" = yes; then
7043 echo "$ac_t""yes" 1>&6
7044 else
7045 echo "$ac_t""no" 1>&6
7046 fi
7047
7048
7049 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7050 echo "configure:7051: checking for --enable-progressdlg" >&5
7051 no_cache=0
7052 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7053 if test "${enable_progressdlg+set}" = set; then
7054 enableval="$enable_progressdlg"
7055
7056 if test "$enableval" = yes; then
7057 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7058 else
7059 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7060 fi
7061
7062 else
7063
7064 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7065 if test "x$LINE" != x ; then
7066 eval "DEFAULT_$LINE"
7067 else
7068 no_cache=1
7069 fi
7070
7071 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7072
7073 fi
7074
7075
7076 eval "$ac_cv_use_progressdlg"
7077 if test "$no_cache" != 1; then
7078 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7079 fi
7080
7081 if test "$wxUSE_PROGRESSDLG" = yes; then
7082 echo "$ac_t""yes" 1>&6
7083 else
7084 echo "$ac_t""no" 1>&6
7085 fi
7086
7087
7088 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7089 echo "configure:7090: checking for --enable-wizarddlg" >&5
7090 no_cache=0
7091 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7092 if test "${enable_wizarddlg+set}" = set; then
7093 enableval="$enable_wizarddlg"
7094
7095 if test "$enableval" = yes; then
7096 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7097 else
7098 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7099 fi
7100
7101 else
7102
7103 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7104 if test "x$LINE" != x ; then
7105 eval "DEFAULT_$LINE"
7106 else
7107 no_cache=1
7108 fi
7109
7110 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7111
7112 fi
7113
7114
7115 eval "$ac_cv_use_wizarddlg"
7116 if test "$no_cache" != 1; then
7117 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7118 fi
7119
7120 if test "$wxUSE_WIZARDDLG" = yes; then
7121 echo "$ac_t""yes" 1>&6
7122 else
7123 echo "$ac_t""no" 1>&6
7124 fi
7125
7126
7127
7128
7129 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7130 echo "configure:7131: checking for --enable-menus" >&5
7131 no_cache=0
7132 # Check whether --enable-menus or --disable-menus was given.
7133 if test "${enable_menus+set}" = set; then
7134 enableval="$enable_menus"
7135
7136 if test "$enableval" = yes; then
7137 ac_cv_use_menus='wxUSE_MENUS=yes'
7138 else
7139 ac_cv_use_menus='wxUSE_MENUS=no'
7140 fi
7141
7142 else
7143
7144 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7145 if test "x$LINE" != x ; then
7146 eval "DEFAULT_$LINE"
7147 else
7148 no_cache=1
7149 fi
7150
7151 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7152
7153 fi
7154
7155
7156 eval "$ac_cv_use_menus"
7157 if test "$no_cache" != 1; then
7158 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7159 fi
7160
7161 if test "$wxUSE_MENUS" = yes; then
7162 echo "$ac_t""yes" 1>&6
7163 else
7164 echo "$ac_t""no" 1>&6
7165 fi
7166
7167
7168 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7169 echo "configure:7170: checking for --enable-miniframe" >&5
7170 no_cache=0
7171 # Check whether --enable-miniframe or --disable-miniframe was given.
7172 if test "${enable_miniframe+set}" = set; then
7173 enableval="$enable_miniframe"
7174
7175 if test "$enableval" = yes; then
7176 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7177 else
7178 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7179 fi
7180
7181 else
7182
7183 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7184 if test "x$LINE" != x ; then
7185 eval "DEFAULT_$LINE"
7186 else
7187 no_cache=1
7188 fi
7189
7190 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7191
7192 fi
7193
7194
7195 eval "$ac_cv_use_miniframe"
7196 if test "$no_cache" != 1; then
7197 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7198 fi
7199
7200 if test "$wxUSE_MINIFRAME" = yes; then
7201 echo "$ac_t""yes" 1>&6
7202 else
7203 echo "$ac_t""no" 1>&6
7204 fi
7205
7206
7207 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7208 echo "configure:7209: checking for --enable-tooltips" >&5
7209 no_cache=0
7210 # Check whether --enable-tooltips or --disable-tooltips was given.
7211 if test "${enable_tooltips+set}" = set; then
7212 enableval="$enable_tooltips"
7213
7214 if test "$enableval" = yes; then
7215 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7216 else
7217 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7218 fi
7219
7220 else
7221
7222 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7223 if test "x$LINE" != x ; then
7224 eval "DEFAULT_$LINE"
7225 else
7226 no_cache=1
7227 fi
7228
7229 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7230
7231 fi
7232
7233
7234 eval "$ac_cv_use_tooltips"
7235 if test "$no_cache" != 1; then
7236 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7237 fi
7238
7239 if test "$wxUSE_TOOLTIPS" = yes; then
7240 echo "$ac_t""yes" 1>&6
7241 else
7242 echo "$ac_t""no" 1>&6
7243 fi
7244
7245
7246 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7247 echo "configure:7248: checking for --enable-splines" >&5
7248 no_cache=0
7249 # Check whether --enable-splines or --disable-splines was given.
7250 if test "${enable_splines+set}" = set; then
7251 enableval="$enable_splines"
7252
7253 if test "$enableval" = yes; then
7254 ac_cv_use_splines='wxUSE_SPLINES=yes'
7255 else
7256 ac_cv_use_splines='wxUSE_SPLINES=no'
7257 fi
7258
7259 else
7260
7261 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7262 if test "x$LINE" != x ; then
7263 eval "DEFAULT_$LINE"
7264 else
7265 no_cache=1
7266 fi
7267
7268 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7269
7270 fi
7271
7272
7273 eval "$ac_cv_use_splines"
7274 if test "$no_cache" != 1; then
7275 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7276 fi
7277
7278 if test "$wxUSE_SPLINES" = yes; then
7279 echo "$ac_t""yes" 1>&6
7280 else
7281 echo "$ac_t""no" 1>&6
7282 fi
7283
7284
7285 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7286 echo "configure:7287: checking for --enable-validators" >&5
7287 no_cache=0
7288 # Check whether --enable-validators or --disable-validators was given.
7289 if test "${enable_validators+set}" = set; then
7290 enableval="$enable_validators"
7291
7292 if test "$enableval" = yes; then
7293 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7294 else
7295 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7296 fi
7297
7298 else
7299
7300 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7301 if test "x$LINE" != x ; then
7302 eval "DEFAULT_$LINE"
7303 else
7304 no_cache=1
7305 fi
7306
7307 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7308
7309 fi
7310
7311
7312 eval "$ac_cv_use_validators"
7313 if test "$no_cache" != 1; then
7314 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7315 fi
7316
7317 if test "$wxUSE_VALIDATORS" = yes; then
7318 echo "$ac_t""yes" 1>&6
7319 else
7320 echo "$ac_t""no" 1>&6
7321 fi
7322
7323
7324 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7325 echo "configure:7326: checking for --enable-busyinfo" >&5
7326 no_cache=0
7327 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7328 if test "${enable_busyinfo+set}" = set; then
7329 enableval="$enable_busyinfo"
7330
7331 if test "$enableval" = yes; then
7332 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7333 else
7334 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7335 fi
7336
7337 else
7338
7339 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7340 if test "x$LINE" != x ; then
7341 eval "DEFAULT_$LINE"
7342 else
7343 no_cache=1
7344 fi
7345
7346 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7347
7348 fi
7349
7350
7351 eval "$ac_cv_use_busyinfo"
7352 if test "$no_cache" != 1; then
7353 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7354 fi
7355
7356 if test "$wxUSE_BUSYINFO" = yes; then
7357 echo "$ac_t""yes" 1>&6
7358 else
7359 echo "$ac_t""no" 1>&6
7360 fi
7361
7362
7363 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7364 echo "configure:7365: checking for --enable-joystick" >&5
7365 no_cache=0
7366 # Check whether --enable-joystick or --disable-joystick was given.
7367 if test "${enable_joystick+set}" = set; then
7368 enableval="$enable_joystick"
7369
7370 if test "$enableval" = yes; then
7371 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7372 else
7373 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7374 fi
7375
7376 else
7377
7378 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7379 if test "x$LINE" != x ; then
7380 eval "DEFAULT_$LINE"
7381 else
7382 no_cache=1
7383 fi
7384
7385 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
7386
7387 fi
7388
7389
7390 eval "$ac_cv_use_joystick"
7391 if test "$no_cache" != 1; then
7392 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7393 fi
7394
7395 if test "$wxUSE_JOYSTICK" = yes; then
7396 echo "$ac_t""yes" 1>&6
7397 else
7398 echo "$ac_t""no" 1>&6
7399 fi
7400
7401
7402 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
7403 echo "configure:7404: checking for --enable-metafile" >&5
7404 no_cache=0
7405 # Check whether --enable-metafile or --disable-metafile was given.
7406 if test "${enable_metafile+set}" = set; then
7407 enableval="$enable_metafile"
7408
7409 if test "$enableval" = yes; then
7410 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7411 else
7412 ac_cv_use_metafile='wxUSE_METAFILE=no'
7413 fi
7414
7415 else
7416
7417 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7418 if test "x$LINE" != x ; then
7419 eval "DEFAULT_$LINE"
7420 else
7421 no_cache=1
7422 fi
7423
7424 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7425
7426 fi
7427
7428
7429 eval "$ac_cv_use_metafile"
7430 if test "$no_cache" != 1; then
7431 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7432 fi
7433
7434 if test "$wxUSE_METAFILE" = yes; then
7435 echo "$ac_t""yes" 1>&6
7436 else
7437 echo "$ac_t""no" 1>&6
7438 fi
7439
7440
7441 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
7442 echo "configure:7443: checking for --enable-dragimage" >&5
7443 no_cache=0
7444 # Check whether --enable-dragimage or --disable-dragimage was given.
7445 if test "${enable_dragimage+set}" = set; then
7446 enableval="$enable_dragimage"
7447
7448 if test "$enableval" = yes; then
7449 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7450 else
7451 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7452 fi
7453
7454 else
7455
7456 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7457 if test "x$LINE" != x ; then
7458 eval "DEFAULT_$LINE"
7459 else
7460 no_cache=1
7461 fi
7462
7463 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7464
7465 fi
7466
7467
7468 eval "$ac_cv_use_dragimage"
7469 if test "$no_cache" != 1; then
7470 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7471 fi
7472
7473 if test "$wxUSE_DRAGIMAGE" = yes; then
7474 echo "$ac_t""yes" 1>&6
7475 else
7476 echo "$ac_t""no" 1>&6
7477 fi
7478
7479
7480
7481
7482 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
7483 echo "configure:7484: checking for --enable-palette" >&5
7484 no_cache=0
7485 # Check whether --enable-palette or --disable-palette was given.
7486 if test "${enable_palette+set}" = set; then
7487 enableval="$enable_palette"
7488
7489 if test "$enableval" = yes; then
7490 ac_cv_use_palette='wxUSE_PALETTE=yes'
7491 else
7492 ac_cv_use_palette='wxUSE_PALETTE=no'
7493 fi
7494
7495 else
7496
7497 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
7498 if test "x$LINE" != x ; then
7499 eval "DEFAULT_$LINE"
7500 else
7501 no_cache=1
7502 fi
7503
7504 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
7505
7506 fi
7507
7508
7509 eval "$ac_cv_use_palette"
7510 if test "$no_cache" != 1; then
7511 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
7512 fi
7513
7514 if test "$wxUSE_PALETTE" = yes; then
7515 echo "$ac_t""yes" 1>&6
7516 else
7517 echo "$ac_t""no" 1>&6
7518 fi
7519
7520
7521 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
7522 echo "configure:7523: checking for --enable-image" >&5
7523 no_cache=0
7524 # Check whether --enable-image or --disable-image was given.
7525 if test "${enable_image+set}" = set; then
7526 enableval="$enable_image"
7527
7528 if test "$enableval" = yes; then
7529 ac_cv_use_image='wxUSE_IMAGE=yes'
7530 else
7531 ac_cv_use_image='wxUSE_IMAGE=no'
7532 fi
7533
7534 else
7535
7536 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7537 if test "x$LINE" != x ; then
7538 eval "DEFAULT_$LINE"
7539 else
7540 no_cache=1
7541 fi
7542
7543 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
7544
7545 fi
7546
7547
7548 eval "$ac_cv_use_image"
7549 if test "$no_cache" != 1; then
7550 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7551 fi
7552
7553 if test "$wxUSE_IMAGE" = yes; then
7554 echo "$ac_t""yes" 1>&6
7555 else
7556 echo "$ac_t""no" 1>&6
7557 fi
7558
7559
7560 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7561 echo "configure:7562: checking for --enable-gif" >&5
7562 no_cache=0
7563 # Check whether --enable-gif or --disable-gif was given.
7564 if test "${enable_gif+set}" = set; then
7565 enableval="$enable_gif"
7566
7567 if test "$enableval" = yes; then
7568 ac_cv_use_gif='wxUSE_GIF=yes'
7569 else
7570 ac_cv_use_gif='wxUSE_GIF=no'
7571 fi
7572
7573 else
7574
7575 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7576 if test "x$LINE" != x ; then
7577 eval "DEFAULT_$LINE"
7578 else
7579 no_cache=1
7580 fi
7581
7582 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
7583
7584 fi
7585
7586
7587 eval "$ac_cv_use_gif"
7588 if test "$no_cache" != 1; then
7589 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7590 fi
7591
7592 if test "$wxUSE_GIF" = yes; then
7593 echo "$ac_t""yes" 1>&6
7594 else
7595 echo "$ac_t""no" 1>&6
7596 fi
7597
7598
7599 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7600 echo "configure:7601: checking for --enable-pcx" >&5
7601 no_cache=0
7602 # Check whether --enable-pcx or --disable-pcx was given.
7603 if test "${enable_pcx+set}" = set; then
7604 enableval="$enable_pcx"
7605
7606 if test "$enableval" = yes; then
7607 ac_cv_use_pcx='wxUSE_PCX=yes'
7608 else
7609 ac_cv_use_pcx='wxUSE_PCX=no'
7610 fi
7611
7612 else
7613
7614 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7615 if test "x$LINE" != x ; then
7616 eval "DEFAULT_$LINE"
7617 else
7618 no_cache=1
7619 fi
7620
7621 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
7622
7623 fi
7624
7625
7626 eval "$ac_cv_use_pcx"
7627 if test "$no_cache" != 1; then
7628 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7629 fi
7630
7631 if test "$wxUSE_PCX" = yes; then
7632 echo "$ac_t""yes" 1>&6
7633 else
7634 echo "$ac_t""no" 1>&6
7635 fi
7636
7637
7638 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7639 echo "configure:7640: checking for --enable-pnm" >&5
7640 no_cache=0
7641 # Check whether --enable-pnm or --disable-pnm was given.
7642 if test "${enable_pnm+set}" = set; then
7643 enableval="$enable_pnm"
7644
7645 if test "$enableval" = yes; then
7646 ac_cv_use_pnm='wxUSE_PNM=yes'
7647 else
7648 ac_cv_use_pnm='wxUSE_PNM=no'
7649 fi
7650
7651 else
7652
7653 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7654 if test "x$LINE" != x ; then
7655 eval "DEFAULT_$LINE"
7656 else
7657 no_cache=1
7658 fi
7659
7660 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
7661
7662 fi
7663
7664
7665 eval "$ac_cv_use_pnm"
7666 if test "$no_cache" != 1; then
7667 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7668 fi
7669
7670 if test "$wxUSE_PNM" = yes; then
7671 echo "$ac_t""yes" 1>&6
7672 else
7673 echo "$ac_t""no" 1>&6
7674 fi
7675
7676
7677 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7678 echo "configure:7679: checking for --enable-pnm" >&5
7679 no_cache=0
7680 # Check whether --enable-pnm or --disable-pnm was given.
7681 if test "${enable_pnm+set}" = set; then
7682 enableval="$enable_pnm"
7683
7684 if test "$enableval" = yes; then
7685 ac_cv_use_pnm='wxUSE_XPM=yes'
7686 else
7687 ac_cv_use_pnm='wxUSE_XPM=no'
7688 fi
7689
7690 else
7691
7692 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7693 if test "x$LINE" != x ; then
7694 eval "DEFAULT_$LINE"
7695 else
7696 no_cache=1
7697 fi
7698
7699 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
7700
7701 fi
7702
7703
7704 eval "$ac_cv_use_pnm"
7705 if test "$no_cache" != 1; then
7706 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7707 fi
7708
7709 if test "$wxUSE_XPM" = yes; then
7710 echo "$ac_t""yes" 1>&6
7711 else
7712 echo "$ac_t""no" 1>&6
7713 fi
7714
7715
7716 fi
7717
7718
7719 echo "saving argument cache $wx_arg_cache_file"
7720 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
7721
7722
7723
7724 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7725 echo "configure:7726: checking for toolkit" >&5
7726
7727 if test "$wxUSE_GUI" = "yes"; then
7728
7729 if test "$USE_BEOS" = 1; then
7730 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7731 fi
7732
7733 if test "$TOOLKIT_GIVEN" = 1; then
7734 for toolkit in `echo $ALL_TOOLKITS`; do
7735 var=wxUSE_$toolkit
7736 eval "value=\$${var}"
7737 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7738 done
7739 else
7740 for toolkit in `echo $ALL_TOOLKITS`; do
7741 if test "$has_toolkit_in_cache" != 1; then
7742 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7743 else
7744 var=DEFAULT_wxUSE_$toolkit
7745 fi
7746 eval "wxUSE_$toolkit=\$${var}"
7747 done
7748 fi
7749
7750 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
7751 + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} \
7752 + ${wxUSE_MGL:-0}`
7753
7754 case "${host}" in
7755 *-pc-os2_emx )
7756 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7757 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7758 LEX_STEM="lexyy"
7759 ;;
7760 *)
7761 PATH_IFS=':'
7762 LEX_STEM="lex.yy"
7763 ;;
7764 esac
7765
7766 case "$NUM_TOOLKITS" in
7767 1)
7768 ;;
7769 0)
7770 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7771 ;;
7772 *)
7773 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7774 esac
7775
7776 for toolkit in `echo $ALL_TOOLKITS`; do
7777 var=wxUSE_$toolkit
7778 eval "value=\$${var}"
7779 if test "x$value" != x; then
7780 cache_var=CACHE_$toolkit
7781 eval "cache=\$${cache_var}"
7782 if test "$cache" = 1; then
7783 echo "$var=$value" >> ${wx_arg_cache_file}
7784 fi
7785 if test "$value" = 1; then
7786 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7787 echo "$ac_t""$toolkit_echo" 1>&6
7788 fi
7789 fi
7790 done
7791 else
7792 PATH_IFS=':'
7793 echo "$ac_t""base ($host_alias hosted) only" 1>&6
7794 fi
7795
7796
7797 cat > confcache <<\EOF
7798 # This file is a shell script that caches the results of configure
7799 # tests run on this system so they can be shared between configure
7800 # scripts and configure runs. It is not useful on other systems.
7801 # If it contains results you don't want to keep, you may remove or edit it.
7802 #
7803 # By default, configure uses ./config.cache as the cache file,
7804 # creating it if it does not exist already. You can give configure
7805 # the --cache-file=FILE option to use a different cache file; that is
7806 # what configure does when it calls configure scripts in
7807 # subdirectories, so they share the cache.
7808 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7809 # config.status only pays attention to the cache file if you give it the
7810 # --recheck option to rerun configure.
7811 #
7812 EOF
7813 # The following way of writing the cache mishandles newlines in values,
7814 # but we know of no workaround that is simple, portable, and efficient.
7815 # So, don't put newlines in cache variables' values.
7816 # Ultrix sh set writes to stderr and can't be redirected directly,
7817 # and sets the high bit in the cache file unless we assign to the vars.
7818 (set) 2>&1 |
7819 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7820 *ac_space=\ *)
7821 # `set' does not quote correctly, so add quotes (double-quote substitution
7822 # turns \\\\ into \\, and sed turns \\ into \).
7823 sed -n \
7824 -e "s/'/'\\\\''/g" \
7825 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7826 ;;
7827 *)
7828 # `set' quotes correctly as required by POSIX, so do not add quotes.
7829 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7830 ;;
7831 esac >> confcache
7832 if cmp -s $cache_file confcache; then
7833 :
7834 else
7835 if test -w $cache_file; then
7836 echo "updating cache $cache_file"
7837 cat confcache > $cache_file
7838 else
7839 echo "not updating unwritable cache $cache_file"
7840 fi
7841 fi
7842 rm -f confcache
7843
7844
7845 if test "$build" != "$host" ; then
7846 if test "$USE_WIN32" = 1 ; then
7847 CC=$host_alias-gcc
7848 CXX=$host_alias-c++
7849 AR=$host_alias-ar
7850 RANLIB=$host_alias-ranlib
7851 DLLTOOL=$host_alias-dlltool
7852 RESCOMP=$host_alias-windres
7853 LD=$host_alias-ld
7854 NM=$host_alias-nm
7855 STRIP=$host_alias-strip
7856 else
7857 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
7858 fi
7859 fi
7860
7861 # Extract the first word of "gcc", so it can be a program name with args.
7862 set dummy gcc; ac_word=$2
7863 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7864 echo "configure:7865: checking for $ac_word" >&5
7865 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7866 echo $ac_n "(cached) $ac_c" 1>&6
7867 else
7868 if test -n "$CC"; then
7869 ac_cv_prog_CC="$CC" # Let the user override the test.
7870 else
7871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7872 ac_dummy="$PATH"
7873 for ac_dir in $ac_dummy; do
7874 test -z "$ac_dir" && ac_dir=.
7875 if test -f $ac_dir/$ac_word; then
7876 ac_cv_prog_CC="gcc"
7877 break
7878 fi
7879 done
7880 IFS="$ac_save_ifs"
7881 fi
7882 fi
7883 CC="$ac_cv_prog_CC"
7884 if test -n "$CC"; then
7885 echo "$ac_t""$CC" 1>&6
7886 else
7887 echo "$ac_t""no" 1>&6
7888 fi
7889
7890 if test -z "$CC"; then
7891 # Extract the first word of "cc", so it can be a program name with args.
7892 set dummy cc; ac_word=$2
7893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7894 echo "configure:7895: checking for $ac_word" >&5
7895 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7896 echo $ac_n "(cached) $ac_c" 1>&6
7897 else
7898 if test -n "$CC"; then
7899 ac_cv_prog_CC="$CC" # Let the user override the test.
7900 else
7901 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7902 ac_prog_rejected=no
7903 ac_dummy="$PATH"
7904 for ac_dir in $ac_dummy; do
7905 test -z "$ac_dir" && ac_dir=.
7906 if test -f $ac_dir/$ac_word; then
7907 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7908 ac_prog_rejected=yes
7909 continue
7910 fi
7911 ac_cv_prog_CC="cc"
7912 break
7913 fi
7914 done
7915 IFS="$ac_save_ifs"
7916 if test $ac_prog_rejected = yes; then
7917 # We found a bogon in the path, so make sure we never use it.
7918 set dummy $ac_cv_prog_CC
7919 shift
7920 if test $# -gt 0; then
7921 # We chose a different compiler from the bogus one.
7922 # However, it has the same basename, so the bogon will be chosen
7923 # first if we set CC to just the basename; use the full file name.
7924 shift
7925 set dummy "$ac_dir/$ac_word" "$@"
7926 shift
7927 ac_cv_prog_CC="$@"
7928 fi
7929 fi
7930 fi
7931 fi
7932 CC="$ac_cv_prog_CC"
7933 if test -n "$CC"; then
7934 echo "$ac_t""$CC" 1>&6
7935 else
7936 echo "$ac_t""no" 1>&6
7937 fi
7938
7939 if test -z "$CC"; then
7940 case "`uname -s`" in
7941 *win32* | *WIN32*)
7942 # Extract the first word of "cl", so it can be a program name with args.
7943 set dummy cl; ac_word=$2
7944 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7945 echo "configure:7946: checking for $ac_word" >&5
7946 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7947 echo $ac_n "(cached) $ac_c" 1>&6
7948 else
7949 if test -n "$CC"; then
7950 ac_cv_prog_CC="$CC" # Let the user override the test.
7951 else
7952 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7953 ac_dummy="$PATH"
7954 for ac_dir in $ac_dummy; do
7955 test -z "$ac_dir" && ac_dir=.
7956 if test -f $ac_dir/$ac_word; then
7957 ac_cv_prog_CC="cl"
7958 break
7959 fi
7960 done
7961 IFS="$ac_save_ifs"
7962 fi
7963 fi
7964 CC="$ac_cv_prog_CC"
7965 if test -n "$CC"; then
7966 echo "$ac_t""$CC" 1>&6
7967 else
7968 echo "$ac_t""no" 1>&6
7969 fi
7970 ;;
7971 esac
7972 fi
7973 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
7974 fi
7975
7976 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7977 echo "configure:7978: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
7978
7979 ac_ext=c
7980 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7981 ac_cpp='$CPP $CPPFLAGS'
7982 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7983 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7984 cross_compiling=$ac_cv_prog_cc_cross
7985
7986 cat > conftest.$ac_ext << EOF
7987
7988 #line 7989 "configure"
7989 #include "confdefs.h"
7990
7991 main(){return(0);}
7992 EOF
7993 if { (eval echo configure:7994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7994 ac_cv_prog_cc_works=yes
7995 # If we can't run a trivial program, we are probably using a cross compiler.
7996 if (./conftest; exit) 2>/dev/null; then
7997 ac_cv_prog_cc_cross=no
7998 else
7999 ac_cv_prog_cc_cross=yes
8000 fi
8001 else
8002 echo "configure: failed program was:" >&5
8003 cat conftest.$ac_ext >&5
8004 ac_cv_prog_cc_works=no
8005 fi
8006 rm -fr conftest*
8007 ac_ext=c
8008 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8009 ac_cpp='$CPP $CPPFLAGS'
8010 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8011 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8012 cross_compiling=$ac_cv_prog_cc_cross
8013
8014 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8015 if test $ac_cv_prog_cc_works = no; then
8016 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8017 fi
8018 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8019 echo "configure:8020: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8020 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8021 cross_compiling=$ac_cv_prog_cc_cross
8022
8023 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8024 echo "configure:8025: checking whether we are using GNU C" >&5
8025 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8026 echo $ac_n "(cached) $ac_c" 1>&6
8027 else
8028 cat > conftest.c <<EOF
8029 #ifdef __GNUC__
8030 yes;
8031 #endif
8032 EOF
8033 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8034 ac_cv_prog_gcc=yes
8035 else
8036 ac_cv_prog_gcc=no
8037 fi
8038 fi
8039
8040 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8041
8042 if test $ac_cv_prog_gcc = yes; then
8043 GCC=yes
8044 else
8045 GCC=
8046 fi
8047
8048 ac_test_CFLAGS="${CFLAGS+set}"
8049 ac_save_CFLAGS="$CFLAGS"
8050 CFLAGS=
8051 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8052 echo "configure:8053: checking whether ${CC-cc} accepts -g" >&5
8053 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8054 echo $ac_n "(cached) $ac_c" 1>&6
8055 else
8056 echo 'void f(){}' > conftest.c
8057 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8058 ac_cv_prog_cc_g=yes
8059 else
8060 ac_cv_prog_cc_g=no
8061 fi
8062 rm -f conftest*
8063
8064 fi
8065
8066 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8067 if test "$ac_test_CFLAGS" = set; then
8068 CFLAGS="$ac_save_CFLAGS"
8069 elif test $ac_cv_prog_cc_g = yes; then
8070 if test "$GCC" = yes; then
8071 CFLAGS="-g -O2"
8072 else
8073 CFLAGS="-g"
8074 fi
8075 else
8076 if test "$GCC" = yes; then
8077 CFLAGS="-O2"
8078 else
8079 CFLAGS=
8080 fi
8081 fi
8082
8083
8084 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8085
8086 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8087 echo "configure:8088: checking how to run the C preprocessor" >&5
8088 # On Suns, sometimes $CPP names a directory.
8089 if test -n "$CPP" && test -d "$CPP"; then
8090 CPP=
8091 fi
8092 if test -z "$CPP"; then
8093 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8094 echo $ac_n "(cached) $ac_c" 1>&6
8095 else
8096 # This must be in double quotes, not single quotes, because CPP may get
8097 # substituted into the Makefile and "${CC-cc}" will confuse make.
8098 CPP="${CC-cc} -E"
8099 # On the NeXT, cc -E runs the code through the compiler's parser,
8100 # not just through cpp.
8101 cat > conftest.$ac_ext <<EOF
8102 #line 8103 "configure"
8103 #include "confdefs.h"
8104 #include <assert.h>
8105 Syntax Error
8106 EOF
8107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8108 { (eval echo configure:8109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8110 if test -z "$ac_err"; then
8111 :
8112 else
8113 echo "$ac_err" >&5
8114 echo "configure: failed program was:" >&5
8115 cat conftest.$ac_ext >&5
8116 rm -rf conftest*
8117 CPP="${CC-cc} -E -traditional-cpp"
8118 cat > conftest.$ac_ext <<EOF
8119 #line 8120 "configure"
8120 #include "confdefs.h"
8121 #include <assert.h>
8122 Syntax Error
8123 EOF
8124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8125 { (eval echo configure:8126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8127 if test -z "$ac_err"; then
8128 :
8129 else
8130 echo "$ac_err" >&5
8131 echo "configure: failed program was:" >&5
8132 cat conftest.$ac_ext >&5
8133 rm -rf conftest*
8134 CPP="${CC-cc} -nologo -E"
8135 cat > conftest.$ac_ext <<EOF
8136 #line 8137 "configure"
8137 #include "confdefs.h"
8138 #include <assert.h>
8139 Syntax Error
8140 EOF
8141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8142 { (eval echo configure:8143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8143 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8144 if test -z "$ac_err"; then
8145 :
8146 else
8147 echo "$ac_err" >&5
8148 echo "configure: failed program was:" >&5
8149 cat conftest.$ac_ext >&5
8150 rm -rf conftest*
8151 CPP=/lib/cpp
8152 fi
8153 rm -f conftest*
8154 fi
8155 rm -f conftest*
8156 fi
8157 rm -f conftest*
8158 ac_cv_prog_CPP="$CPP"
8159 fi
8160 CPP="$ac_cv_prog_CPP"
8161 else
8162 ac_cv_prog_CPP="$CPP"
8163 fi
8164 echo "$ac_t""$CPP" 1>&6
8165
8166 if test $ac_cv_prog_gcc = yes; then
8167 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8168 echo "configure:8169: checking whether ${CC-cc} needs -traditional" >&5
8169 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8170 echo $ac_n "(cached) $ac_c" 1>&6
8171 else
8172 ac_pattern="Autoconf.*'x'"
8173 cat > conftest.$ac_ext <<EOF
8174 #line 8175 "configure"
8175 #include "confdefs.h"
8176 #include <sgtty.h>
8177 Autoconf TIOCGETP
8178 EOF
8179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8180 egrep "$ac_pattern" >/dev/null 2>&1; then
8181 rm -rf conftest*
8182 ac_cv_prog_gcc_traditional=yes
8183 else
8184 rm -rf conftest*
8185 ac_cv_prog_gcc_traditional=no
8186 fi
8187 rm -f conftest*
8188
8189
8190 if test $ac_cv_prog_gcc_traditional = no; then
8191 cat > conftest.$ac_ext <<EOF
8192 #line 8193 "configure"
8193 #include "confdefs.h"
8194 #include <termio.h>
8195 Autoconf TCGETA
8196 EOF
8197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8198 egrep "$ac_pattern" >/dev/null 2>&1; then
8199 rm -rf conftest*
8200 ac_cv_prog_gcc_traditional=yes
8201 fi
8202 rm -f conftest*
8203
8204 fi
8205 fi
8206
8207 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8208 if test $ac_cv_prog_gcc_traditional = yes; then
8209 CC="$CC -traditional"
8210 fi
8211 fi
8212
8213
8214
8215 ac_ext=C
8216 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8217 ac_cpp='$CXXCPP $CPPFLAGS'
8218 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8219 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8220 cross_compiling=$ac_cv_prog_cxx_cross
8221
8222
8223 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8224 do
8225 # Extract the first word of "$ac_prog", so it can be a program name with args.
8226 set dummy $ac_prog; ac_word=$2
8227 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8228 echo "configure:8229: checking for $ac_word" >&5
8229 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8230 echo $ac_n "(cached) $ac_c" 1>&6
8231 else
8232 if test -n "$CXX"; then
8233 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8234 else
8235 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8236 ac_dummy="$PATH"
8237 for ac_dir in $ac_dummy; do
8238 test -z "$ac_dir" && ac_dir=.
8239 if test -f $ac_dir/$ac_word; then
8240 ac_cv_prog_CXX="$ac_prog"
8241 break
8242 fi
8243 done
8244 IFS="$ac_save_ifs"
8245 fi
8246 fi
8247 CXX="$ac_cv_prog_CXX"
8248 if test -n "$CXX"; then
8249 echo "$ac_t""$CXX" 1>&6
8250 else
8251 echo "$ac_t""no" 1>&6
8252 fi
8253
8254 test -n "$CXX" && break
8255 done
8256 test -n "$CXX" || CXX="gcc"
8257
8258
8259 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8260 echo "configure:8261: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8261
8262 ac_ext=C
8263 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8264 ac_cpp='$CXXCPP $CPPFLAGS'
8265 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8266 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8267 cross_compiling=$ac_cv_prog_cxx_cross
8268
8269 cat > conftest.$ac_ext << EOF
8270
8271 #line 8272 "configure"
8272 #include "confdefs.h"
8273
8274 int main(){return(0);}
8275 EOF
8276 if { (eval echo configure:8277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8277 ac_cv_prog_cxx_works=yes
8278 # If we can't run a trivial program, we are probably using a cross compiler.
8279 if (./conftest; exit) 2>/dev/null; then
8280 ac_cv_prog_cxx_cross=no
8281 else
8282 ac_cv_prog_cxx_cross=yes
8283 fi
8284 else
8285 echo "configure: failed program was:" >&5
8286 cat conftest.$ac_ext >&5
8287 ac_cv_prog_cxx_works=no
8288 fi
8289 rm -fr conftest*
8290 ac_ext=C
8291 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8292 ac_cpp='$CXXCPP $CPPFLAGS'
8293 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8294 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8295 cross_compiling=$ac_cv_prog_cxx_cross
8296
8297 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8298 if test $ac_cv_prog_cxx_works = no; then
8299 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8300 fi
8301 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8302 echo "configure:8303: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
8303 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8304 cross_compiling=$ac_cv_prog_cxx_cross
8305
8306 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
8307 echo "configure:8308: checking whether we are using GNU C++" >&5
8308 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8309 echo $ac_n "(cached) $ac_c" 1>&6
8310 else
8311 cat > conftest.C <<EOF
8312 #ifdef __GNUC__
8313 yes;
8314 #endif
8315 EOF
8316 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8317 ac_cv_prog_gxx=yes
8318 else
8319 ac_cv_prog_gxx=no
8320 fi
8321 fi
8322
8323 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
8324
8325 if test $ac_cv_prog_gxx = yes; then
8326 GXX=yes
8327 else
8328 GXX=
8329 fi
8330
8331 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8332 ac_save_CXXFLAGS="$CXXFLAGS"
8333 CXXFLAGS=
8334 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
8335 echo "configure:8336: checking whether ${CXX-g++} accepts -g" >&5
8336 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8337 echo $ac_n "(cached) $ac_c" 1>&6
8338 else
8339 echo 'void f(){}' > conftest.cc
8340 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
8341 ac_cv_prog_cxx_g=yes
8342 else
8343 ac_cv_prog_cxx_g=no
8344 fi
8345 rm -f conftest*
8346
8347 fi
8348
8349 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
8350 if test "$ac_test_CXXFLAGS" = set; then
8351 CXXFLAGS="$ac_save_CXXFLAGS"
8352 elif test $ac_cv_prog_cxx_g = yes; then
8353 if test "$GXX" = yes; then
8354 CXXFLAGS="-g -O2"
8355 else
8356 CXXFLAGS="-g"
8357 fi
8358 else
8359 if test "$GXX" = yes; then
8360 CXXFLAGS="-O2"
8361 else
8362 CXXFLAGS=
8363 fi
8364 fi
8365
8366
8367 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8368
8369 ac_ext=c
8370 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8371 ac_cpp='$CPP $CPPFLAGS'
8372 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8373 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8374 cross_compiling=$ac_cv_prog_cc_cross
8375
8376
8377 # Extract the first word of "ranlib", so it can be a program name with args.
8378 set dummy ranlib; ac_word=$2
8379 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8380 echo "configure:8381: checking for $ac_word" >&5
8381 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8382 echo $ac_n "(cached) $ac_c" 1>&6
8383 else
8384 if test -n "$RANLIB"; then
8385 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8386 else
8387 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8388 ac_dummy="$PATH"
8389 for ac_dir in $ac_dummy; do
8390 test -z "$ac_dir" && ac_dir=.
8391 if test -f $ac_dir/$ac_word; then
8392 ac_cv_prog_RANLIB="ranlib"
8393 break
8394 fi
8395 done
8396 IFS="$ac_save_ifs"
8397 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8398 fi
8399 fi
8400 RANLIB="$ac_cv_prog_RANLIB"
8401 if test -n "$RANLIB"; then
8402 echo "$ac_t""$RANLIB" 1>&6
8403 else
8404 echo "$ac_t""no" 1>&6
8405 fi
8406
8407
8408 # Extract the first word of "ar", so it can be a program name with args.
8409 set dummy ar; ac_word=$2
8410 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8411 echo "configure:8412: checking for $ac_word" >&5
8412 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8413 echo $ac_n "(cached) $ac_c" 1>&6
8414 else
8415 if test -n "$AR"; then
8416 ac_cv_prog_AR="$AR" # Let the user override the test.
8417 else
8418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8419 ac_dummy="$PATH"
8420 for ac_dir in $ac_dummy; do
8421 test -z "$ac_dir" && ac_dir=.
8422 if test -f $ac_dir/$ac_word; then
8423 ac_cv_prog_AR="ar"
8424 break
8425 fi
8426 done
8427 IFS="$ac_save_ifs"
8428 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8429 fi
8430 fi
8431 AR="$ac_cv_prog_AR"
8432 if test -n "$AR"; then
8433 echo "$ac_t""$AR" 1>&6
8434 else
8435 echo "$ac_t""no" 1>&6
8436 fi
8437
8438
8439 # Find a good install program. We prefer a C program (faster),
8440 # so one script is as good as another. But avoid the broken or
8441 # incompatible versions:
8442 # SysV /etc/install, /usr/sbin/install
8443 # SunOS /usr/etc/install
8444 # IRIX /sbin/install
8445 # AIX /bin/install
8446 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8447 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8448 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8449 # ./install, which can be erroneously created by make from ./install.sh.
8450 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8451 echo "configure:8452: checking for a BSD compatible install" >&5
8452 if test -z "$INSTALL"; then
8453 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8454 echo $ac_n "(cached) $ac_c" 1>&6
8455 else
8456 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8457 for ac_dir in $PATH; do
8458 # Account for people who put trailing slashes in PATH elements.
8459 case "$ac_dir/" in
8460 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8461 *)
8462 # OSF1 and SCO ODT 3.0 have their own names for install.
8463 # Don't use installbsd from OSF since it installs stuff as root
8464 # by default.
8465 for ac_prog in ginstall scoinst install; do
8466 if test -f $ac_dir/$ac_prog; then
8467 if test $ac_prog = install &&
8468 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8469 # AIX install. It has an incompatible calling convention.
8470 :
8471 else
8472 ac_cv_path_install="$ac_dir/$ac_prog -c"
8473 break 2
8474 fi
8475 fi
8476 done
8477 ;;
8478 esac
8479 done
8480 IFS="$ac_save_IFS"
8481
8482 fi
8483 if test "${ac_cv_path_install+set}" = set; then
8484 INSTALL="$ac_cv_path_install"
8485 else
8486 # As a last resort, use the slow shell script. We don't cache a
8487 # path for INSTALL within a source directory, because that will
8488 # break other packages using the cache if that directory is
8489 # removed, or if the path is relative.
8490 INSTALL="$ac_install_sh"
8491 fi
8492 fi
8493 echo "$ac_t""$INSTALL" 1>&6
8494
8495 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8496 # It thinks the first close brace ends the variable substitution.
8497 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8498
8499 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8500
8501 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8502
8503
8504 # Extract the first word of "strip", so it can be a program name with args.
8505 set dummy strip; ac_word=$2
8506 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8507 echo "configure:8508: checking for $ac_word" >&5
8508 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8509 echo $ac_n "(cached) $ac_c" 1>&6
8510 else
8511 if test -n "$STRIP"; then
8512 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8513 else
8514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8515 ac_dummy="$PATH"
8516 for ac_dir in $ac_dummy; do
8517 test -z "$ac_dir" && ac_dir=.
8518 if test -f $ac_dir/$ac_word; then
8519 ac_cv_prog_STRIP="strip"
8520 break
8521 fi
8522 done
8523 IFS="$ac_save_ifs"
8524 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8525 fi
8526 fi
8527 STRIP="$ac_cv_prog_STRIP"
8528 if test -n "$STRIP"; then
8529 echo "$ac_t""$STRIP" 1>&6
8530 else
8531 echo "$ac_t""no" 1>&6
8532 fi
8533
8534
8535 echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8536 echo "configure:8537: checking make for VPATH support" >&5
8537 cat - << EOF > confMake
8538 check : file
8539 cp \$? \$@
8540 cp \$? final_file
8541 EOF
8542
8543 if test ! -d sub ; then
8544 mkdir sub
8545 fi
8546 echo dummy > sub/file
8547 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
8548 RESULT=$?
8549 rm -f sub/file check final_file confMake
8550 rmdir sub
8551 if test "$RESULT" = 0; then
8552 echo "$ac_t""yes" 1>&6
8553 else
8554 echo "$ac_t""no" 1>&6
8555 { echo "configure: error:
8556 You need a make-utility that is able to use the variable
8557 VPATH correctly.
8558 If your version of make does not support VPATH correctly,
8559 please install GNU-make (possibly as gmake), and start
8560 configure with the following command:
8561 export MAKE=gmake; ./configure for sh-type shells
8562 setenv MAKE gmake; ./configure for csh-type shells
8563 Also please do remember to use gmake in this case every time
8564 you are trying to compile.
8565 " 1>&2; exit 1; }
8566 fi
8567
8568 for ac_prog in 'bison -y' byacc
8569 do
8570 # Extract the first word of "$ac_prog", so it can be a program name with args.
8571 set dummy $ac_prog; ac_word=$2
8572 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8573 echo "configure:8574: checking for $ac_word" >&5
8574 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8575 echo $ac_n "(cached) $ac_c" 1>&6
8576 else
8577 if test -n "$YACC"; then
8578 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8579 else
8580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8581 ac_dummy="$PATH"
8582 for ac_dir in $ac_dummy; do
8583 test -z "$ac_dir" && ac_dir=.
8584 if test -f $ac_dir/$ac_word; then
8585 ac_cv_prog_YACC="$ac_prog"
8586 break
8587 fi
8588 done
8589 IFS="$ac_save_ifs"
8590 fi
8591 fi
8592 YACC="$ac_cv_prog_YACC"
8593 if test -n "$YACC"; then
8594 echo "$ac_t""$YACC" 1>&6
8595 else
8596 echo "$ac_t""no" 1>&6
8597 fi
8598
8599 test -n "$YACC" && break
8600 done
8601 test -n "$YACC" || YACC="yacc"
8602
8603
8604 # Extract the first word of "flex", so it can be a program name with args.
8605 set dummy flex; ac_word=$2
8606 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8607 echo "configure:8608: checking for $ac_word" >&5
8608 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8609 echo $ac_n "(cached) $ac_c" 1>&6
8610 else
8611 if test -n "$LEX"; then
8612 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8613 else
8614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8615 ac_dummy="$PATH"
8616 for ac_dir in $ac_dummy; do
8617 test -z "$ac_dir" && ac_dir=.
8618 if test -f $ac_dir/$ac_word; then
8619 ac_cv_prog_LEX="flex"
8620 break
8621 fi
8622 done
8623 IFS="$ac_save_ifs"
8624 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
8625 fi
8626 fi
8627 LEX="$ac_cv_prog_LEX"
8628 if test -n "$LEX"; then
8629 echo "$ac_t""$LEX" 1>&6
8630 else
8631 echo "$ac_t""no" 1>&6
8632 fi
8633
8634 if test -z "$LEXLIB"
8635 then
8636 case "$LEX" in
8637 flex*) ac_lib=fl ;;
8638 *) ac_lib=l ;;
8639 esac
8640 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8641 echo "configure:8642: checking for yywrap in -l$ac_lib" >&5
8642 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8643 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8644 echo $ac_n "(cached) $ac_c" 1>&6
8645 else
8646 ac_save_LIBS="$LIBS"
8647 LIBS="-l$ac_lib $LIBS"
8648 cat > conftest.$ac_ext <<EOF
8649 #line 8650 "configure"
8650 #include "confdefs.h"
8651 /* Override any gcc2 internal prototype to avoid an error. */
8652 /* We use char because int might match the return type of a gcc2
8653 builtin and then its argument prototype would still apply. */
8654 char yywrap();
8655
8656 int main() {
8657 yywrap()
8658 ; return 0; }
8659 EOF
8660 if { (eval echo configure:8661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8661 rm -rf conftest*
8662 eval "ac_cv_lib_$ac_lib_var=yes"
8663 else
8664 echo "configure: failed program was:" >&5
8665 cat conftest.$ac_ext >&5
8666 rm -rf conftest*
8667 eval "ac_cv_lib_$ac_lib_var=no"
8668 fi
8669 rm -f conftest*
8670 LIBS="$ac_save_LIBS"
8671
8672 fi
8673 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8674 echo "$ac_t""yes" 1>&6
8675 LEXLIB="-l$ac_lib"
8676 else
8677 echo "$ac_t""no" 1>&6
8678 fi
8679
8680 fi
8681
8682
8683 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8684 echo "configure:8685: checking whether ln -s works" >&5
8685 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8686 echo $ac_n "(cached) $ac_c" 1>&6
8687 else
8688 rm -f conftestdata
8689 if ln -s X conftestdata 2>/dev/null
8690 then
8691 rm -f conftestdata
8692 ac_cv_prog_LN_S="ln -s"
8693 else
8694 ac_cv_prog_LN_S=ln
8695 fi
8696 fi
8697 LN_S="$ac_cv_prog_LN_S"
8698 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8699 echo "$ac_t""yes" 1>&6
8700 else
8701 echo "$ac_t""no" 1>&6
8702 fi
8703
8704
8705
8706 SEARCH_INCLUDE="\
8707 /usr/local/include \
8708 \
8709 /usr/Motif-1.2/include \
8710 /usr/Motif-2.1/include \
8711 \
8712 /usr/include/Motif1.2 \
8713 /opt/xpm/include/X11 \
8714 /opt/GBxpm/include/ \
8715 /opt/GBxpm/X11/include/ \
8716 \
8717 /usr/Motif1.2/include \
8718 /usr/dt/include \
8719 /usr/openwin/include \
8720 \
8721 /usr/include/Xm \
8722 \
8723 /usr/X11R6/include \
8724 /usr/X11R6.4/include \
8725 /usr/X11R5/include \
8726 /usr/X11R4/include \
8727 \
8728 /usr/include/X11R6 \
8729 /usr/include/X11R5 \
8730 /usr/include/X11R4 \
8731 \
8732 /usr/local/X11R6/include \
8733 /usr/local/X11R5/include \
8734 /usr/local/X11R4/include \
8735 \
8736 /usr/local/include/X11R6 \
8737 /usr/local/include/X11R5 \
8738 /usr/local/include/X11R4 \
8739 \
8740 /usr/X11/include \
8741 /usr/include/X11 \
8742 /usr/local/X11/include \
8743 /usr/local/include/X11 \
8744 \
8745 /usr/X386/include \
8746 /usr/x386/include \
8747 /usr/XFree86/include/X11 \
8748 \
8749 X:/XFree86/include \
8750 X:/XFree86/include/X11 \
8751 \
8752 /usr/include/gtk \
8753 /usr/local/include/gtk \
8754 /usr/include/glib \
8755 /usr/local/include/glib \
8756 \
8757 /usr/include/qt \
8758 /usr/local/include/qt \
8759 \
8760 /usr/include/windows \
8761 /usr/include/wine \
8762 /usr/local/include/wine \
8763 \
8764 /usr/unsupported/include \
8765 /usr/athena/include \
8766 /usr/local/x11r5/include \
8767 /usr/lpp/Xamples/include \
8768 \
8769 /usr/openwin/share/include \
8770 \
8771 /usr/include"
8772
8773 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8774
8775
8776 cat > confcache <<\EOF
8777 # This file is a shell script that caches the results of configure
8778 # tests run on this system so they can be shared between configure
8779 # scripts and configure runs. It is not useful on other systems.
8780 # If it contains results you don't want to keep, you may remove or edit it.
8781 #
8782 # By default, configure uses ./config.cache as the cache file,
8783 # creating it if it does not exist already. You can give configure
8784 # the --cache-file=FILE option to use a different cache file; that is
8785 # what configure does when it calls configure scripts in
8786 # subdirectories, so they share the cache.
8787 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8788 # config.status only pays attention to the cache file if you give it the
8789 # --recheck option to rerun configure.
8790 #
8791 EOF
8792 # The following way of writing the cache mishandles newlines in values,
8793 # but we know of no workaround that is simple, portable, and efficient.
8794 # So, don't put newlines in cache variables' values.
8795 # Ultrix sh set writes to stderr and can't be redirected directly,
8796 # and sets the high bit in the cache file unless we assign to the vars.
8797 (set) 2>&1 |
8798 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8799 *ac_space=\ *)
8800 # `set' does not quote correctly, so add quotes (double-quote substitution
8801 # turns \\\\ into \\, and sed turns \\ into \).
8802 sed -n \
8803 -e "s/'/'\\\\''/g" \
8804 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8805 ;;
8806 *)
8807 # `set' quotes correctly as required by POSIX, so do not add quotes.
8808 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8809 ;;
8810 esac >> confcache
8811 if cmp -s $cache_file confcache; then
8812 :
8813 else
8814 if test -w $cache_file; then
8815 echo "updating cache $cache_file"
8816 cat confcache > $cache_file
8817 else
8818 echo "not updating unwritable cache $cache_file"
8819 fi
8820 fi
8821 rm -f confcache
8822
8823
8824
8825 REGEX_INCLUDE=
8826 if test "$wxUSE_REGEX" != "no"; then
8827 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
8828 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
8829 echo "configure:8830: checking for regex.h" >&5
8830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8831 echo $ac_n "(cached) $ac_c" 1>&6
8832 else
8833 cat > conftest.$ac_ext <<EOF
8834 #line 8835 "configure"
8835 #include "confdefs.h"
8836 #include <regex.h>
8837 EOF
8838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8839 { (eval echo configure:8840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8841 if test -z "$ac_err"; then
8842 rm -rf conftest*
8843 eval "ac_cv_header_$ac_safe=yes"
8844 else
8845 echo "$ac_err" >&5
8846 echo "configure: failed program was:" >&5
8847 cat conftest.$ac_ext >&5
8848 rm -rf conftest*
8849 eval "ac_cv_header_$ac_safe=no"
8850 fi
8851 rm -f conftest*
8852 fi
8853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8854 echo "$ac_t""yes" 1>&6
8855 for ac_func in regcomp
8856 do
8857 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8858 echo "configure:8859: checking for $ac_func" >&5
8859 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8860 echo $ac_n "(cached) $ac_c" 1>&6
8861 else
8862 cat > conftest.$ac_ext <<EOF
8863 #line 8864 "configure"
8864 #include "confdefs.h"
8865 /* System header to define __stub macros and hopefully few prototypes,
8866 which can conflict with char $ac_func(); below. */
8867 #include <assert.h>
8868 /* Override any gcc2 internal prototype to avoid an error. */
8869 /* We use char because int might match the return type of a gcc2
8870 builtin and then its argument prototype would still apply. */
8871 char $ac_func();
8872
8873 int main() {
8874
8875 /* The GNU C library defines this for functions which it implements
8876 to always fail with ENOSYS. Some functions are actually named
8877 something starting with __ and the normal name is an alias. */
8878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8879 choke me
8880 #else
8881 $ac_func();
8882 #endif
8883
8884 ; return 0; }
8885 EOF
8886 if { (eval echo configure:8887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8887 rm -rf conftest*
8888 eval "ac_cv_func_$ac_func=yes"
8889 else
8890 echo "configure: failed program was:" >&5
8891 cat conftest.$ac_ext >&5
8892 rm -rf conftest*
8893 eval "ac_cv_func_$ac_func=no"
8894 fi
8895 rm -f conftest*
8896 fi
8897
8898 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8899 echo "$ac_t""yes" 1>&6
8900 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8901 cat >> confdefs.h <<EOF
8902 #define $ac_tr_func 1
8903 EOF
8904
8905 else
8906 echo "$ac_t""no" 1>&6
8907 fi
8908 done
8909
8910 else
8911 echo "$ac_t""no" 1>&6
8912 fi
8913
8914
8915 if test "x$ac_cv_func_regcomp" != "xyes"; then
8916 if test "$wxUSE_REGEX" = "sys"; then
8917 { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; }
8918 fi
8919
8920 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
8921 fi
8922
8923 cat >> confdefs.h <<\EOF
8924 #define wxUSE_REGEX 1
8925 EOF
8926
8927 fi
8928
8929
8930 AFMINSTALL=
8931
8932 TOOLKIT=
8933 TOOLKIT_INCLUDE=
8934 WIDGET_SET=
8935
8936 if test "$USE_WIN32" = 1 ; then
8937 for ac_hdr in w32api.h
8938 do
8939 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8940 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8941 echo "configure:8942: checking for $ac_hdr" >&5
8942 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8943 echo $ac_n "(cached) $ac_c" 1>&6
8944 else
8945 cat > conftest.$ac_ext <<EOF
8946 #line 8947 "configure"
8947 #include "confdefs.h"
8948 #include <$ac_hdr>
8949 EOF
8950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8951 { (eval echo configure:8952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8952 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8953 if test -z "$ac_err"; then
8954 rm -rf conftest*
8955 eval "ac_cv_header_$ac_safe=yes"
8956 else
8957 echo "$ac_err" >&5
8958 echo "configure: failed program was:" >&5
8959 cat conftest.$ac_ext >&5
8960 rm -rf conftest*
8961 eval "ac_cv_header_$ac_safe=no"
8962 fi
8963 rm -f conftest*
8964 fi
8965 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8966 echo "$ac_t""yes" 1>&6
8967 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8968 cat >> confdefs.h <<EOF
8969 #define $ac_tr_hdr 1
8970 EOF
8971
8972 else
8973 echo "$ac_t""no" 1>&6
8974 fi
8975 done
8976
8977 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
8978 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
8979 echo "configure:8980: checking for windows.h" >&5
8980 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8981 echo $ac_n "(cached) $ac_c" 1>&6
8982 else
8983 cat > conftest.$ac_ext <<EOF
8984 #line 8985 "configure"
8985 #include "confdefs.h"
8986 #include <windows.h>
8987 EOF
8988 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8989 { (eval echo configure:8990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8990 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8991 if test -z "$ac_err"; then
8992 rm -rf conftest*
8993 eval "ac_cv_header_$ac_safe=yes"
8994 else
8995 echo "$ac_err" >&5
8996 echo "configure: failed program was:" >&5
8997 cat conftest.$ac_ext >&5
8998 rm -rf conftest*
8999 eval "ac_cv_header_$ac_safe=no"
9000 fi
9001 rm -f conftest*
9002 fi
9003 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9004 echo "$ac_t""yes" 1>&6
9005 :
9006 else
9007 echo "$ac_t""no" 1>&6
9008
9009 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9010
9011 fi
9012
9013
9014 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
9015 echo "configure:9016: checking if w32api has good enough MSIE support" >&5
9016 if eval "test \"`echo '$''{'wx_cv_w32api_win_ie'+set}'`\" = set"; then
9017 echo $ac_n "(cached) $ac_c" 1>&6
9018 else
9019
9020 cat > conftest.$ac_ext <<EOF
9021 #line 9022 "configure"
9022 #include "confdefs.h"
9023 #include <w32api.h>
9024 int main() {
9025
9026 #define wxCHECK_W32API_VERSION( major, minor ) \
9027 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
9028 && ( ( __W32API_MAJOR_VERSION > (major) ) \
9029 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
9030
9031 #if !wxCHECK_W32API_VERSION(1,1)
9032 #error You need w32api 1.1 or newer
9033 #endif
9034
9035 ; return 0; }
9036 EOF
9037 if { (eval echo configure:9038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9038 rm -rf conftest*
9039
9040 wx_cv_w32api_win_ie=yes
9041 CPPFLAGS="$CPPFLAGS -D_WIN_IE=0x400"
9042
9043 else
9044 echo "configure: failed program was:" >&5
9045 cat conftest.$ac_ext >&5
9046 rm -rf conftest*
9047
9048 wx_cv_w32api_win_ie=no
9049
9050 fi
9051 rm -f conftest*
9052
9053 fi
9054
9055 echo "$ac_t""$wx_cv_w32api_win_ie" 1>&6
9056
9057 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
9058
9059 if test "$wxUSE_CYGWIN" = 1; then
9060 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
9061 fi
9062
9063 if test "$wxUSE_ODBC" = "yes" ; then
9064 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
9065 fi
9066
9067 if test "$wxUSE_MINGW" = 1; then
9068 LDFLAGS="$LDFLAGS -mwindows"
9069 fi
9070
9071 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
9072 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
9073 fi
9074
9075 if test "$wxUSE_GUI" = "yes"; then
9076 USE_GUI=1
9077
9078 GUI_TK_LIBRARY=
9079
9080 WXGTK12=
9081 WXGTK127=
9082 WXGTK20=
9083
9084 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
9085 TOOLKIT=MSW
9086 GUIDIST=MSW_DIST
9087 fi
9088
9089 if test "$wxUSE_GTK" = 1; then
9090 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
9091 echo "configure:9092: checking for GTK+ version" >&5
9092
9093 gtk_version_cached=1
9094 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9095 echo $ac_n "(cached) $ac_c" 1>&6
9096 else
9097
9098 gtk_version_cached=0
9099 echo "$ac_t""""" 1>&6
9100
9101 wx_cv_lib_gtk=
9102 if test "x$wxUSE_GTK2" = "xyes"; then
9103 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
9104 if test "${with_gtk_prefix+set}" = set; then
9105 withval="$with_gtk_prefix"
9106 gtk_config_prefix="$withval"
9107 else
9108 gtk_config_prefix=""
9109 fi
9110
9111 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9112 if test "${with_gtk_exec_prefix+set}" = set; then
9113 withval="$with_gtk_exec_prefix"
9114 gtk_config_exec_prefix="$withval"
9115 else
9116 gtk_config_exec_prefix=""
9117 fi
9118
9119 # Check whether --enable-gtktest or --disable-gtktest was given.
9120 if test "${enable_gtktest+set}" = set; then
9121 enableval="$enable_gtktest"
9122 :
9123 else
9124 enable_gtktest=yes
9125 fi
9126
9127
9128 for module in .
9129 do
9130 case "$module" in
9131 gthread)
9132 gtk_config_args="$gtk_config_args gthread"
9133 ;;
9134 esac
9135 done
9136
9137 if test x$gtk_config_exec_prefix != x ; then
9138 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9139 if test x${GTK_CONFIG_2_0+set} != xset ; then
9140 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9141 fi
9142 fi
9143 if test x$gtk_config_prefix != x ; then
9144 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9145 if test x${GTK_CONFIG_2_0+set} != xset ; then
9146 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9147 fi
9148 fi
9149
9150 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9151 set dummy gtk-config-2.0; ac_word=$2
9152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9153 echo "configure:9154: checking for $ac_word" >&5
9154 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9155 echo $ac_n "(cached) $ac_c" 1>&6
9156 else
9157 case "$GTK_CONFIG_2_0" in
9158 /*)
9159 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9160 ;;
9161 ?:/*)
9162 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9163 ;;
9164 *)
9165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9166 ac_dummy="$PATH"
9167 for ac_dir in $ac_dummy; do
9168 test -z "$ac_dir" && ac_dir=.
9169 if test -f $ac_dir/$ac_word; then
9170 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9171 break
9172 fi
9173 done
9174 IFS="$ac_save_ifs"
9175 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9176 ;;
9177 esac
9178 fi
9179 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
9180 if test -n "$GTK_CONFIG_2_0"; then
9181 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
9182 else
9183 echo "$ac_t""no" 1>&6
9184 fi
9185
9186 min_gtk_version=1.3.1
9187 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9188 echo "configure:9189: checking for GTK - version >= $min_gtk_version" >&5
9189 no_gtk=""
9190 if test "$GTK_CONFIG_2_0" = "no" ; then
9191 no_gtk=yes
9192 else
9193 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9194 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9195 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9196 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9197 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9198 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9199 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9200 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9201 if test "x$enable_gtktest" = "xyes" ; then
9202 ac_save_CFLAGS="$CFLAGS"
9203 ac_save_LIBS="$LIBS"
9204 CFLAGS="$CFLAGS $GTK_CFLAGS"
9205 LIBS="$GTK_LIBS $LIBS"
9206 rm -f conf.gtktest
9207 if test "$cross_compiling" = yes; then
9208 echo $ac_n "cross compiling; assumed OK... $ac_c"
9209 else
9210 cat > conftest.$ac_ext <<EOF
9211 #line 9212 "configure"
9212 #include "confdefs.h"
9213
9214 #include <gtk/gtk.h>
9215 #include <stdio.h>
9216 #include <stdlib.h>
9217
9218 int
9219 main ()
9220 {
9221 int major, minor, micro;
9222 char *tmp_version;
9223
9224 system ("touch conf.gtktest");
9225
9226 /* HP/UX 9 (%@#!) writes to sscanf strings */
9227 tmp_version = g_strdup("$min_gtk_version");
9228 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9229 printf("%s, bad version string\n", "$min_gtk_version");
9230 exit(1);
9231 }
9232
9233 if ((gtk_major_version != $gtk_config_major_version) ||
9234 (gtk_minor_version != $gtk_config_minor_version) ||
9235 (gtk_micro_version != $gtk_config_micro_version))
9236 {
9237 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
9238 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9239 gtk_major_version, gtk_minor_version, gtk_micro_version);
9240 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9241 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9242 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9243 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9244 printf("*** required on your system.\n");
9245 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9246 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9247 printf("*** before re-running configure\n");
9248 }
9249 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9250 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
9251 (gtk_minor_version != GTK_MINOR_VERSION) ||
9252 (gtk_micro_version != GTK_MICRO_VERSION))
9253 {
9254 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
9255 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
9256 printf("*** library (version %d.%d.%d)\n",
9257 gtk_major_version, gtk_minor_version, gtk_micro_version);
9258 }
9259 #endif /* defined (GTK_MAJOR_VERSION) ... */
9260 else
9261 {
9262 if ((gtk_major_version > major) ||
9263 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9264 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9265 {
9266 return 0;
9267 }
9268 else
9269 {
9270 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9271 gtk_major_version, gtk_minor_version, gtk_micro_version);
9272 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
9273 major, minor, micro);
9274 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9275 printf("***\n");
9276 printf("*** If you have already installed a sufficiently new version, this error\n");
9277 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9278 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9279 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9280 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9281 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9282 printf("*** so that the correct libraries are found at run-time))\n");
9283 }
9284 }
9285 return 1;
9286 }
9287
9288 EOF
9289 if { (eval echo configure:9290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9290 then
9291 :
9292 else
9293 echo "configure: failed program was:" >&5
9294 cat conftest.$ac_ext >&5
9295 rm -fr conftest*
9296 no_gtk=yes
9297 fi
9298 rm -fr conftest*
9299 fi
9300
9301 CFLAGS="$ac_save_CFLAGS"
9302 LIBS="$ac_save_LIBS"
9303 fi
9304 fi
9305 if test "x$no_gtk" = x ; then
9306 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
9307 wx_cv_lib_gtk=2.0
9308 else
9309 echo "$ac_t""no" 1>&6
9310 if test "$GTK_CONFIG_2_0" = "no" ; then
9311 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9312 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9313 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9314 echo "*** full path to gtk-config-2.0."
9315 else
9316 if test -f conf.gtktest ; then
9317 :
9318 else
9319 echo "*** Could not run GTK test program, checking why..."
9320 CFLAGS="$CFLAGS $GTK_CFLAGS"
9321 LIBS="$LIBS $GTK_LIBS"
9322 cat > conftest.$ac_ext <<EOF
9323 #line 9324 "configure"
9324 #include "confdefs.h"
9325
9326 #include <gtk/gtk.h>
9327 #include <stdio.h>
9328
9329 int main() {
9330 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9331 ; return 0; }
9332 EOF
9333 if { (eval echo configure:9334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9334 rm -rf conftest*
9335 echo "*** The test program compiled, but did not run. This usually means"
9336 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9337 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9338 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9339 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9340 echo "*** is required on your system"
9341 echo "***"
9342 echo "*** If you have an old version installed, it is best to remove it, although"
9343 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9344 echo "***"
9345 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9346 echo "*** came with the system with the command"
9347 echo "***"
9348 echo "*** rpm --erase --nodeps gtk gtk-devel"
9349 else
9350 echo "configure: failed program was:" >&5
9351 cat conftest.$ac_ext >&5
9352 rm -rf conftest*
9353 echo "*** The test program failed to compile or link. See the file config.log for the"
9354 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9355 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
9356 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
9357 fi
9358 rm -f conftest*
9359 CFLAGS="$ac_save_CFLAGS"
9360 LIBS="$ac_save_LIBS"
9361 fi
9362 fi
9363 GTK_CFLAGS=""
9364 GTK_LIBS=""
9365 gthread
9366 fi
9367
9368
9369 rm -f conf.gtktest
9370
9371 fi
9372
9373 if test -z "$wx_cv_lib_gtk"; then
9374
9375 if test x$gtk_config_exec_prefix != x ; then
9376 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9377 if test x${GTK_CONFIG+set} != xset ; then
9378 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9379 fi
9380 fi
9381 if test x$gtk_config_prefix != x ; then
9382 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9383 if test x${GTK_CONFIG+set} != xset ; then
9384 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9385 fi
9386 fi
9387
9388 # Extract the first word of "gtk-config", so it can be a program name with args.
9389 set dummy gtk-config; ac_word=$2
9390 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9391 echo "configure:9392: checking for $ac_word" >&5
9392 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9393 echo $ac_n "(cached) $ac_c" 1>&6
9394 else
9395 case "$GTK_CONFIG" in
9396 /*)
9397 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9398 ;;
9399 ?:/*)
9400 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9401 ;;
9402 *)
9403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9404 ac_dummy="$PATH"
9405 for ac_dir in $ac_dummy; do
9406 test -z "$ac_dir" && ac_dir=.
9407 if test -f $ac_dir/$ac_word; then
9408 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9409 break
9410 fi
9411 done
9412 IFS="$ac_save_ifs"
9413 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9414 ;;
9415 esac
9416 fi
9417 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
9418 if test -n "$GTK_CONFIG"; then
9419 echo "$ac_t""$GTK_CONFIG" 1>&6
9420 else
9421 echo "$ac_t""no" 1>&6
9422 fi
9423
9424 min_gtk_version=1.2.7
9425 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9426 echo "configure:9427: checking for GTK - version >= $min_gtk_version" >&5
9427 no_gtk=""
9428 if test "$GTK_CONFIG" != "no" ; then
9429 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9430 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9431 ac_save_CFLAGS="$CFLAGS"
9432 ac_save_LIBS="$LIBS"
9433 CFLAGS="$CFLAGS $GTK_CFLAGS"
9434 LIBS="$LIBS $GTK_LIBS"
9435 if test "$cross_compiling" = yes; then
9436 echo $ac_n "cross compiling; assumed OK... $ac_c"
9437 else
9438 cat > conftest.$ac_ext <<EOF
9439 #line 9440 "configure"
9440 #include "confdefs.h"
9441
9442 #include <gtk/gtk.h>
9443 #include <gtk/gtkfeatures.h>
9444 #include <stdio.h>
9445 #include <stdlib.h>
9446
9447 int
9448 main ()
9449 {
9450 int major, minor, micro;
9451
9452 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9453 printf("%s, bad version string\n", "$min_gtk_version");
9454 exit(1);
9455 }
9456
9457 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9458 (GTK_MINOR_VERSION != gtk_minor_version) ||
9459 (GTK_MICRO_VERSION != gtk_micro_version)) {
9460 printf("Headers vs. library version mismatch!\n");
9461 exit(1);
9462 }
9463
9464 if (gtk_minor_version == 1) return FALSE;
9465
9466 return !((gtk_major_version > major) ||
9467 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9468 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9469 }
9470
9471 EOF
9472 if { (eval echo configure:9473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9473 then
9474 :
9475 else
9476 echo "configure: failed program was:" >&5
9477 cat conftest.$ac_ext >&5
9478 rm -fr conftest*
9479 no_gtk=yes
9480 fi
9481 rm -fr conftest*
9482 fi
9483
9484 CFLAGS="$ac_save_CFLAGS"
9485 LIBS="$ac_save_LIBS"
9486 else
9487 no_gtk=yes
9488 fi
9489 if test "x$no_gtk" = x ; then
9490 echo "$ac_t""yes" 1>&6
9491 wx_cv_lib_gtk=1.2.7
9492 else
9493 echo "$ac_t""no" 1>&6
9494 GTK_CFLAGS=""
9495 GTK_LIBS=""
9496 :
9497 fi
9498
9499
9500
9501 fi
9502
9503 if test -z "$wx_cv_lib_gtk"; then
9504
9505 if test x$gtk_config_exec_prefix != x ; then
9506 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9507 if test x${GTK_CONFIG+set} != xset ; then
9508 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9509 fi
9510 fi
9511 if test x$gtk_config_prefix != x ; then
9512 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9513 if test x${GTK_CONFIG+set} != xset ; then
9514 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9515 fi
9516 fi
9517
9518 # Extract the first word of "gtk-config", so it can be a program name with args.
9519 set dummy gtk-config; ac_word=$2
9520 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9521 echo "configure:9522: checking for $ac_word" >&5
9522 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9523 echo $ac_n "(cached) $ac_c" 1>&6
9524 else
9525 case "$GTK_CONFIG" in
9526 /*)
9527 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9528 ;;
9529 ?:/*)
9530 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9531 ;;
9532 *)
9533 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9534 ac_dummy="$PATH"
9535 for ac_dir in $ac_dummy; do
9536 test -z "$ac_dir" && ac_dir=.
9537 if test -f $ac_dir/$ac_word; then
9538 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9539 break
9540 fi
9541 done
9542 IFS="$ac_save_ifs"
9543 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9544 ;;
9545 esac
9546 fi
9547 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
9548 if test -n "$GTK_CONFIG"; then
9549 echo "$ac_t""$GTK_CONFIG" 1>&6
9550 else
9551 echo "$ac_t""no" 1>&6
9552 fi
9553
9554 min_gtk_version=1.2.3
9555 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9556 echo "configure:9557: checking for GTK - version >= $min_gtk_version" >&5
9557 no_gtk=""
9558 if test "$GTK_CONFIG" != "no" ; then
9559 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9560 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9561 ac_save_CFLAGS="$CFLAGS"
9562 ac_save_LIBS="$LIBS"
9563 CFLAGS="$CFLAGS $GTK_CFLAGS"
9564 LIBS="$LIBS $GTK_LIBS"
9565 if test "$cross_compiling" = yes; then
9566 echo $ac_n "cross compiling; assumed OK... $ac_c"
9567 else
9568 cat > conftest.$ac_ext <<EOF
9569 #line 9570 "configure"
9570 #include "confdefs.h"
9571
9572 #include <gtk/gtk.h>
9573 #include <gtk/gtkfeatures.h>
9574 #include <stdio.h>
9575 #include <stdlib.h>
9576
9577 int
9578 main ()
9579 {
9580 int major, minor, micro;
9581
9582 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9583 printf("%s, bad version string\n", "$min_gtk_version");
9584 exit(1);
9585 }
9586
9587 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9588 (GTK_MINOR_VERSION != gtk_minor_version) ||
9589 (GTK_MICRO_VERSION != gtk_micro_version)) {
9590 printf("Headers vs. library version mismatch!\n");
9591 exit(1);
9592 }
9593
9594 if (gtk_minor_version == 1) return FALSE;
9595
9596 return !((gtk_major_version > major) ||
9597 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9598 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9599 }
9600
9601 EOF
9602 if { (eval echo configure:9603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9603 then
9604 :
9605 else
9606 echo "configure: failed program was:" >&5
9607 cat conftest.$ac_ext >&5
9608 rm -fr conftest*
9609 no_gtk=yes
9610 fi
9611 rm -fr conftest*
9612 fi
9613
9614 CFLAGS="$ac_save_CFLAGS"
9615 LIBS="$ac_save_LIBS"
9616 else
9617 no_gtk=yes
9618 fi
9619 if test "x$no_gtk" = x ; then
9620 echo "$ac_t""yes" 1>&6
9621 wx_cv_lib_gtk=1.2.3
9622 else
9623 echo "$ac_t""no" 1>&6
9624 GTK_CFLAGS=""
9625 GTK_LIBS=""
9626 :
9627 fi
9628
9629
9630
9631 fi
9632
9633 if test -z "$wx_cv_lib_gtk"; then
9634 wx_cv_lib_gtk=none
9635 else
9636 wx_cv_cflags_gtk=$GTK_CFLAGS
9637 wx_cv_libs_gtk=$GTK_LIBS
9638 fi
9639
9640
9641 fi
9642
9643
9644 if test "$gtk_version_cached" = 1; then
9645 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
9646 fi
9647
9648 case "$wx_cv_lib_gtk" in
9649 2.0) WXGTK20=1
9650 ;;
9651 1.2.7) WXGTK127=1
9652 WXGTK12=1
9653 ;;
9654 1.2.3) WXGTK12=1
9655 ;;
9656 *) { echo "configure: error:
9657 Please check that gtk-config is in path, the directory
9658 where GTK+ libraries are installed (returned by
9659 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9660 equivalent variable and GTK+ is version 1.2.3 or above.
9661 " 1>&2; exit 1; }
9662 ;;
9663 esac
9664
9665 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
9666 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
9667
9668 AFMINSTALL=afminstall
9669 TOOLKIT=GTK
9670 GUIDIST=GTK_DIST
9671
9672 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
9673 echo "configure:9674: checking for gdk_im_open in -lgdk" >&5
9674 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9675 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9676 echo $ac_n "(cached) $ac_c" 1>&6
9677 else
9678 ac_save_LIBS="$LIBS"
9679 LIBS="-lgdk $LIBS"
9680 cat > conftest.$ac_ext <<EOF
9681 #line 9682 "configure"
9682 #include "confdefs.h"
9683 /* Override any gcc2 internal prototype to avoid an error. */
9684 /* We use char because int might match the return type of a gcc2
9685 builtin and then its argument prototype would still apply. */
9686 char gdk_im_open();
9687
9688 int main() {
9689 gdk_im_open()
9690 ; return 0; }
9691 EOF
9692 if { (eval echo configure:9693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9693 rm -rf conftest*
9694 eval "ac_cv_lib_$ac_lib_var=yes"
9695 else
9696 echo "configure: failed program was:" >&5
9697 cat conftest.$ac_ext >&5
9698 rm -rf conftest*
9699 eval "ac_cv_lib_$ac_lib_var=no"
9700 fi
9701 rm -f conftest*
9702 LIBS="$ac_save_LIBS"
9703
9704 fi
9705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9706 echo "$ac_t""yes" 1>&6
9707 cat >> confdefs.h <<\EOF
9708 #define HAVE_XIM 1
9709 EOF
9710
9711 else
9712 echo "$ac_t""no" 1>&6
9713 fi
9714
9715 fi
9716
9717 if test "$wxUSE_MGL" = 1; then
9718
9719 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
9720 echo "configure:9721: checking for SciTech MGL library" >&5
9721 if test "x$MGL_ROOT" = x ; then
9722 echo "$ac_t""not found" 1>&6
9723 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9724 else
9725 echo "$ac_t""$MGL_ROOT" 1>&6
9726 fi
9727
9728 mgl_os=linux/gcc/glibc
9729 mgl_lib_type=""
9730
9731 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9732 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a ; then
9733 mgl_lib_type=debug
9734 fi
9735 fi
9736 if test "x$mgl_lib_type" = x ; then
9737 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a ; then
9738 mgl_lib_type=release
9739 else
9740 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9741 fi
9742 fi
9743
9744 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9745 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
9746
9747 AFMINSTALL=afminstall
9748 TOOLKIT=MGL
9749 GUIDIST=MGL_DIST
9750 fi
9751
9752 if test "$wxUSE_WINE" = 1; then
9753 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
9754 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
9755 echo "configure:9756: checking for windows.h" >&5
9756 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9757 echo $ac_n "(cached) $ac_c" 1>&6
9758 else
9759 cat > conftest.$ac_ext <<EOF
9760 #line 9761 "configure"
9761 #include "confdefs.h"
9762 #include <windows.h>
9763 EOF
9764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9765 { (eval echo configure:9766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9766 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9767 if test -z "$ac_err"; then
9768 rm -rf conftest*
9769 eval "ac_cv_header_$ac_safe=yes"
9770 else
9771 echo "$ac_err" >&5
9772 echo "configure: failed program was:" >&5
9773 cat conftest.$ac_ext >&5
9774 rm -rf conftest*
9775 eval "ac_cv_header_$ac_safe=no"
9776 fi
9777 rm -f conftest*
9778 fi
9779 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9780 echo "$ac_t""yes" 1>&6
9781 :
9782 else
9783 echo "$ac_t""no" 1>&6
9784
9785 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9786
9787 fi
9788
9789
9790 xpm_link=""
9791 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9792 echo "configure:9793: checking for Xpm library" >&5
9793
9794 ac_find_libraries=
9795 for ac_dir in $SEARCH_LIB;
9796 do
9797 for ac_extension in a so sl dylib; do
9798 if test -f "$ac_dir/libXpm.$ac_extension"; then
9799 ac_find_libraries=$ac_dir
9800 break 2
9801 fi
9802 done
9803 done
9804
9805 if test "$ac_find_libraries" != "" ; then
9806 GUI_TK_LIBRARY="-L$ac_find_libraries"
9807 xpm_link="-lXpm"
9808 cat >> confdefs.h <<\EOF
9809 #define wxHAVE_LIB_XPM 1
9810 EOF
9811
9812 echo "$ac_t""found at $ac_find_libraries" 1>&6
9813 else
9814 echo "$ac_t""no" 1>&6
9815 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9816 fi
9817
9818 mesa_link=""
9819 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
9820 echo "configure:9821: checking for Mesa library" >&5
9821
9822 ac_find_libraries=
9823 for ac_dir in $SEARCH_LIB;
9824 do
9825 for ac_extension in a so sl dylib; do
9826 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9827 ac_find_libraries=$ac_dir
9828 break 2
9829 fi
9830 done
9831 done
9832
9833 if test "$ac_find_libraries" != "" ; then
9834 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9835 mesa_link="-lMesaGL"
9836 echo "$ac_t""found at $ac_find_libraries" 1>&6
9837 else
9838 { echo "configure: error: no" 1>&2; exit 1; }
9839 fi
9840
9841 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine $mesa_link $xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9842 TOOLKIT=MSW
9843 GUIDIST=MSW_DIST
9844 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
9845 fi
9846
9847
9848 # If we find X, set shell vars x_includes and x_libraries to the
9849 # paths, otherwise set no_x=yes.
9850 # Uses ac_ vars as temps to allow command line to override cache and checks.
9851 # --without-x overrides everything else, but does not touch the cache.
9852 echo $ac_n "checking for X""... $ac_c" 1>&6
9853 echo "configure:9854: checking for X" >&5
9854
9855 # Check whether --with-x or --without-x was given.
9856 if test "${with_x+set}" = set; then
9857 withval="$with_x"
9858 :
9859 fi
9860
9861 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9862 if test "x$with_x" = xno; then
9863 # The user explicitly disabled X.
9864 have_x=disabled
9865 else
9866 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9867 # Both variables are already set.
9868 have_x=yes
9869 else
9870 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9871 echo $ac_n "(cached) $ac_c" 1>&6
9872 else
9873 # One or both of the vars are not set, and there is no cached value.
9874 ac_x_includes=NO ac_x_libraries=NO
9875 rm -fr conftestdir
9876 if mkdir conftestdir; then
9877 cd conftestdir
9878 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9879 cat > Imakefile <<'EOF'
9880 acfindx:
9881 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9882 EOF
9883 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9884 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9885 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9886 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9887 for ac_extension in a so sl; do
9888 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9889 test -f $ac_im_libdir/libX11.$ac_extension; then
9890 ac_im_usrlibdir=$ac_im_libdir; break
9891 fi
9892 done
9893 # Screen out bogus values from the imake configuration. They are
9894 # bogus both because they are the default anyway, and because
9895 # using them would break gcc on systems where it needs fixed includes.
9896 case "$ac_im_incroot" in
9897 /usr/include) ;;
9898 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
9899 esac
9900 case "$ac_im_usrlibdir" in
9901 /usr/lib | /lib) ;;
9902 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
9903 esac
9904 fi
9905 cd ..
9906 rm -fr conftestdir
9907 fi
9908
9909 if test "$ac_x_includes" = NO; then
9910 # Guess where to find include files, by looking for this one X11 .h file.
9911 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9912
9913 # First, try using that file with no special directory specified.
9914 cat > conftest.$ac_ext <<EOF
9915 #line 9916 "configure"
9916 #include "confdefs.h"
9917 #include <$x_direct_test_include>
9918 EOF
9919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9920 { (eval echo configure:9921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9922 if test -z "$ac_err"; then
9923 rm -rf conftest*
9924 # We can compile using X headers with no special include directory.
9925 ac_x_includes=
9926 else
9927 echo "$ac_err" >&5
9928 echo "configure: failed program was:" >&5
9929 cat conftest.$ac_ext >&5
9930 rm -rf conftest*
9931 # Look for the header file in a standard set of common directories.
9932 # Check X11 before X11Rn because it is often a symlink to the current release.
9933 for ac_dir in \
9934 /usr/X11/include \
9935 /usr/X11R6/include \
9936 /usr/X11R5/include \
9937 /usr/X11R4/include \
9938 \
9939 /usr/include/X11 \
9940 /usr/include/X11R6 \
9941 /usr/include/X11R5 \
9942 /usr/include/X11R4 \
9943 \
9944 /usr/local/X11/include \
9945 /usr/local/X11R6/include \
9946 /usr/local/X11R5/include \
9947 /usr/local/X11R4/include \
9948 \
9949 /usr/local/include/X11 \
9950 /usr/local/include/X11R6 \
9951 /usr/local/include/X11R5 \
9952 /usr/local/include/X11R4 \
9953 \
9954 /usr/X386/include \
9955 /usr/x386/include \
9956 /usr/XFree86/include/X11 \
9957 \
9958 /usr/include \
9959 /usr/local/include \
9960 /usr/unsupported/include \
9961 /usr/athena/include \
9962 /usr/local/x11r5/include \
9963 /usr/lpp/Xamples/include \
9964 \
9965 /usr/openwin/include \
9966 /usr/openwin/share/include \
9967 ; \
9968 do
9969 if test -r "$ac_dir/$x_direct_test_include"; then
9970 ac_x_includes=$ac_dir
9971 break
9972 fi
9973 done
9974 fi
9975 rm -f conftest*
9976 fi # $ac_x_includes = NO
9977
9978 if test "$ac_x_libraries" = NO; then
9979 # Check for the libraries.
9980
9981 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9982 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9983
9984 # See if we find them without any special options.
9985 # Don't add to $LIBS permanently.
9986 ac_save_LIBS="$LIBS"
9987 LIBS="-l$x_direct_test_library $LIBS"
9988 cat > conftest.$ac_ext <<EOF
9989 #line 9990 "configure"
9990 #include "confdefs.h"
9991
9992 int main() {
9993 ${x_direct_test_function}()
9994 ; return 0; }
9995 EOF
9996 if { (eval echo configure:9997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9997 rm -rf conftest*
9998 LIBS="$ac_save_LIBS"
9999 # We can link X programs with no special library path.
10000 ac_x_libraries=
10001 else
10002 echo "configure: failed program was:" >&5
10003 cat conftest.$ac_ext >&5
10004 rm -rf conftest*
10005 LIBS="$ac_save_LIBS"
10006 # First see if replacing the include by lib works.
10007 # Check X11 before X11Rn because it is often a symlink to the current release.
10008 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
10009 /usr/X11/lib \
10010 /usr/X11R6/lib \
10011 /usr/X11R5/lib \
10012 /usr/X11R4/lib \
10013 \
10014 /usr/lib/X11 \
10015 /usr/lib/X11R6 \
10016 /usr/lib/X11R5 \
10017 /usr/lib/X11R4 \
10018 \
10019 /usr/local/X11/lib \
10020 /usr/local/X11R6/lib \
10021 /usr/local/X11R5/lib \
10022 /usr/local/X11R4/lib \
10023 \
10024 /usr/local/lib/X11 \
10025 /usr/local/lib/X11R6 \
10026 /usr/local/lib/X11R5 \
10027 /usr/local/lib/X11R4 \
10028 \
10029 /usr/X386/lib \
10030 /usr/x386/lib \
10031 /usr/XFree86/lib/X11 \
10032 \
10033 /usr/lib \
10034 /usr/local/lib \
10035 /usr/unsupported/lib \
10036 /usr/athena/lib \
10037 /usr/local/x11r5/lib \
10038 /usr/lpp/Xamples/lib \
10039 /lib/usr/lib/X11 \
10040 \
10041 /usr/openwin/lib \
10042 /usr/openwin/share/lib \
10043 ; \
10044 do
10045 for ac_extension in a so sl; do
10046 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
10047 ac_x_libraries=$ac_dir
10048 break 2
10049 fi
10050 done
10051 done
10052 fi
10053 rm -f conftest*
10054 fi # $ac_x_libraries = NO
10055
10056 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
10057 # Didn't find X anywhere. Cache the known absence of X.
10058 ac_cv_have_x="have_x=no"
10059 else
10060 # Record where we found X for the cache.
10061 ac_cv_have_x="have_x=yes \
10062 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10063 fi
10064 fi
10065 fi
10066 eval "$ac_cv_have_x"
10067 fi # $with_x != no
10068
10069 if test "$have_x" != yes; then
10070 echo "$ac_t""$have_x" 1>&6
10071 no_x=yes
10072 else
10073 # If each of the values was on the command line, it overrides each guess.
10074 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10075 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10076 # Update the cache value to reflect the command line values.
10077 ac_cv_have_x="have_x=yes \
10078 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10079 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
10080 fi
10081
10082 if test "$no_x" = yes; then
10083 # Not all programs may use this symbol, but it does not hurt to define it.
10084 cat >> confdefs.h <<\EOF
10085 #define X_DISPLAY_MISSING 1
10086 EOF
10087
10088 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10089 else
10090 if test -n "$x_includes"; then
10091 X_CFLAGS="$X_CFLAGS -I$x_includes"
10092 fi
10093
10094 # It would also be nice to do this for all -L options, not just this one.
10095 if test -n "$x_libraries"; then
10096 X_LIBS="$X_LIBS -L$x_libraries"
10097 # For Solaris; some versions of Sun CC require a space after -R and
10098 # others require no space. Words are not sufficient . . . .
10099 case "`(uname -sr) 2>/dev/null`" in
10100 "SunOS 5"*)
10101 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
10102 echo "configure:10103: checking whether -R must be followed by a space" >&5
10103 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
10104 cat > conftest.$ac_ext <<EOF
10105 #line 10106 "configure"
10106 #include "confdefs.h"
10107
10108 int main() {
10109
10110 ; return 0; }
10111 EOF
10112 if { (eval echo configure:10113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10113 rm -rf conftest*
10114 ac_R_nospace=yes
10115 else
10116 echo "configure: failed program was:" >&5
10117 cat conftest.$ac_ext >&5
10118 rm -rf conftest*
10119 ac_R_nospace=no
10120 fi
10121 rm -f conftest*
10122 if test $ac_R_nospace = yes; then
10123 echo "$ac_t""no" 1>&6
10124 X_LIBS="$X_LIBS -R$x_libraries"
10125 else
10126 LIBS="$ac_xsave_LIBS -R $x_libraries"
10127 cat > conftest.$ac_ext <<EOF
10128 #line 10129 "configure"
10129 #include "confdefs.h"
10130
10131 int main() {
10132
10133 ; return 0; }
10134 EOF
10135 if { (eval echo configure:10136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10136 rm -rf conftest*
10137 ac_R_space=yes
10138 else
10139 echo "configure: failed program was:" >&5
10140 cat conftest.$ac_ext >&5
10141 rm -rf conftest*
10142 ac_R_space=no
10143 fi
10144 rm -f conftest*
10145 if test $ac_R_space = yes; then
10146 echo "$ac_t""yes" 1>&6
10147 X_LIBS="$X_LIBS -R $x_libraries"
10148 else
10149 echo "$ac_t""neither works" 1>&6
10150 fi
10151 fi
10152 LIBS="$ac_xsave_LIBS"
10153 esac
10154 fi
10155
10156 # Check for system-dependent libraries X programs must link with.
10157 # Do this before checking for the system-independent R6 libraries
10158 # (-lICE), since we may need -lsocket or whatever for X linking.
10159
10160 if test "$ISC" = yes; then
10161 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10162 else
10163 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10164 # libraries were built with DECnet support. And karl@cs.umb.edu says
10165 # the Alpha needs dnet_stub (dnet does not exist).
10166 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
10167 echo "configure:10168: checking for dnet_ntoa in -ldnet" >&5
10168 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10169 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10170 echo $ac_n "(cached) $ac_c" 1>&6
10171 else
10172 ac_save_LIBS="$LIBS"
10173 LIBS="-ldnet $LIBS"
10174 cat > conftest.$ac_ext <<EOF
10175 #line 10176 "configure"
10176 #include "confdefs.h"
10177 /* Override any gcc2 internal prototype to avoid an error. */
10178 /* We use char because int might match the return type of a gcc2
10179 builtin and then its argument prototype would still apply. */
10180 char dnet_ntoa();
10181
10182 int main() {
10183 dnet_ntoa()
10184 ; return 0; }
10185 EOF
10186 if { (eval echo configure:10187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10187 rm -rf conftest*
10188 eval "ac_cv_lib_$ac_lib_var=yes"
10189 else
10190 echo "configure: failed program was:" >&5
10191 cat conftest.$ac_ext >&5
10192 rm -rf conftest*
10193 eval "ac_cv_lib_$ac_lib_var=no"
10194 fi
10195 rm -f conftest*
10196 LIBS="$ac_save_LIBS"
10197
10198 fi
10199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10200 echo "$ac_t""yes" 1>&6
10201 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10202 else
10203 echo "$ac_t""no" 1>&6
10204 fi
10205
10206 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10207 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
10208 echo "configure:10209: checking for dnet_ntoa in -ldnet_stub" >&5
10209 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10210 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10211 echo $ac_n "(cached) $ac_c" 1>&6
10212 else
10213 ac_save_LIBS="$LIBS"
10214 LIBS="-ldnet_stub $LIBS"
10215 cat > conftest.$ac_ext <<EOF
10216 #line 10217 "configure"
10217 #include "confdefs.h"
10218 /* Override any gcc2 internal prototype to avoid an error. */
10219 /* We use char because int might match the return type of a gcc2
10220 builtin and then its argument prototype would still apply. */
10221 char dnet_ntoa();
10222
10223 int main() {
10224 dnet_ntoa()
10225 ; return 0; }
10226 EOF
10227 if { (eval echo configure:10228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10228 rm -rf conftest*
10229 eval "ac_cv_lib_$ac_lib_var=yes"
10230 else
10231 echo "configure: failed program was:" >&5
10232 cat conftest.$ac_ext >&5
10233 rm -rf conftest*
10234 eval "ac_cv_lib_$ac_lib_var=no"
10235 fi
10236 rm -f conftest*
10237 LIBS="$ac_save_LIBS"
10238
10239 fi
10240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10241 echo "$ac_t""yes" 1>&6
10242 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10243 else
10244 echo "$ac_t""no" 1>&6
10245 fi
10246
10247 fi
10248
10249 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10250 # to get the SysV transport functions.
10251 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
10252 # needs -lnsl.
10253 # The nsl library prevents programs from opening the X display
10254 # on Irix 5.2, according to dickey@clark.net.
10255 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
10256 echo "configure:10257: checking for gethostbyname" >&5
10257 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10258 echo $ac_n "(cached) $ac_c" 1>&6
10259 else
10260 cat > conftest.$ac_ext <<EOF
10261 #line 10262 "configure"
10262 #include "confdefs.h"
10263 /* System header to define __stub macros and hopefully few prototypes,
10264 which can conflict with char gethostbyname(); below. */
10265 #include <assert.h>
10266 /* Override any gcc2 internal prototype to avoid an error. */
10267 /* We use char because int might match the return type of a gcc2
10268 builtin and then its argument prototype would still apply. */
10269 char gethostbyname();
10270
10271 int main() {
10272
10273 /* The GNU C library defines this for functions which it implements
10274 to always fail with ENOSYS. Some functions are actually named
10275 something starting with __ and the normal name is an alias. */
10276 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10277 choke me
10278 #else
10279 gethostbyname();
10280 #endif
10281
10282 ; return 0; }
10283 EOF
10284 if { (eval echo configure:10285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10285 rm -rf conftest*
10286 eval "ac_cv_func_gethostbyname=yes"
10287 else
10288 echo "configure: failed program was:" >&5
10289 cat conftest.$ac_ext >&5
10290 rm -rf conftest*
10291 eval "ac_cv_func_gethostbyname=no"
10292 fi
10293 rm -f conftest*
10294 fi
10295
10296 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10297 echo "$ac_t""yes" 1>&6
10298 :
10299 else
10300 echo "$ac_t""no" 1>&6
10301 fi
10302
10303 if test $ac_cv_func_gethostbyname = no; then
10304 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
10305 echo "configure:10306: checking for gethostbyname in -lnsl" >&5
10306 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10307 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10308 echo $ac_n "(cached) $ac_c" 1>&6
10309 else
10310 ac_save_LIBS="$LIBS"
10311 LIBS="-lnsl $LIBS"
10312 cat > conftest.$ac_ext <<EOF
10313 #line 10314 "configure"
10314 #include "confdefs.h"
10315 /* Override any gcc2 internal prototype to avoid an error. */
10316 /* We use char because int might match the return type of a gcc2
10317 builtin and then its argument prototype would still apply. */
10318 char gethostbyname();
10319
10320 int main() {
10321 gethostbyname()
10322 ; return 0; }
10323 EOF
10324 if { (eval echo configure:10325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10325 rm -rf conftest*
10326 eval "ac_cv_lib_$ac_lib_var=yes"
10327 else
10328 echo "configure: failed program was:" >&5
10329 cat conftest.$ac_ext >&5
10330 rm -rf conftest*
10331 eval "ac_cv_lib_$ac_lib_var=no"
10332 fi
10333 rm -f conftest*
10334 LIBS="$ac_save_LIBS"
10335
10336 fi
10337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10338 echo "$ac_t""yes" 1>&6
10339 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10340 else
10341 echo "$ac_t""no" 1>&6
10342 fi
10343
10344 fi
10345
10346 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10347 # socket/setsockopt and other routines are undefined under SCO ODT
10348 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10349 # on later versions), says simon@lia.di.epfl.ch: it contains
10350 # gethostby* variants that don't use the nameserver (or something).
10351 # -lsocket must be given before -lnsl if both are needed.
10352 # We assume that if connect needs -lnsl, so does gethostbyname.
10353 echo $ac_n "checking for connect""... $ac_c" 1>&6
10354 echo "configure:10355: checking for connect" >&5
10355 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
10356 echo $ac_n "(cached) $ac_c" 1>&6
10357 else
10358 cat > conftest.$ac_ext <<EOF
10359 #line 10360 "configure"
10360 #include "confdefs.h"
10361 /* System header to define __stub macros and hopefully few prototypes,
10362 which can conflict with char connect(); below. */
10363 #include <assert.h>
10364 /* Override any gcc2 internal prototype to avoid an error. */
10365 /* We use char because int might match the return type of a gcc2
10366 builtin and then its argument prototype would still apply. */
10367 char connect();
10368
10369 int main() {
10370
10371 /* The GNU C library defines this for functions which it implements
10372 to always fail with ENOSYS. Some functions are actually named
10373 something starting with __ and the normal name is an alias. */
10374 #if defined (__stub_connect) || defined (__stub___connect)
10375 choke me
10376 #else
10377 connect();
10378 #endif
10379
10380 ; return 0; }
10381 EOF
10382 if { (eval echo configure:10383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10383 rm -rf conftest*
10384 eval "ac_cv_func_connect=yes"
10385 else
10386 echo "configure: failed program was:" >&5
10387 cat conftest.$ac_ext >&5
10388 rm -rf conftest*
10389 eval "ac_cv_func_connect=no"
10390 fi
10391 rm -f conftest*
10392 fi
10393
10394 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
10395 echo "$ac_t""yes" 1>&6
10396 :
10397 else
10398 echo "$ac_t""no" 1>&6
10399 fi
10400
10401 if test $ac_cv_func_connect = no; then
10402 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
10403 echo "configure:10404: checking for connect in -lsocket" >&5
10404 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
10405 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10406 echo $ac_n "(cached) $ac_c" 1>&6
10407 else
10408 ac_save_LIBS="$LIBS"
10409 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10410 cat > conftest.$ac_ext <<EOF
10411 #line 10412 "configure"
10412 #include "confdefs.h"
10413 /* Override any gcc2 internal prototype to avoid an error. */
10414 /* We use char because int might match the return type of a gcc2
10415 builtin and then its argument prototype would still apply. */
10416 char connect();
10417
10418 int main() {
10419 connect()
10420 ; return 0; }
10421 EOF
10422 if { (eval echo configure:10423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10423 rm -rf conftest*
10424 eval "ac_cv_lib_$ac_lib_var=yes"
10425 else
10426 echo "configure: failed program was:" >&5
10427 cat conftest.$ac_ext >&5
10428 rm -rf conftest*
10429 eval "ac_cv_lib_$ac_lib_var=no"
10430 fi
10431 rm -f conftest*
10432 LIBS="$ac_save_LIBS"
10433
10434 fi
10435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10436 echo "$ac_t""yes" 1>&6
10437 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10438 else
10439 echo "$ac_t""no" 1>&6
10440 fi
10441
10442 fi
10443
10444 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
10445 echo $ac_n "checking for remove""... $ac_c" 1>&6
10446 echo "configure:10447: checking for remove" >&5
10447 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
10448 echo $ac_n "(cached) $ac_c" 1>&6
10449 else
10450 cat > conftest.$ac_ext <<EOF
10451 #line 10452 "configure"
10452 #include "confdefs.h"
10453 /* System header to define __stub macros and hopefully few prototypes,
10454 which can conflict with char remove(); below. */
10455 #include <assert.h>
10456 /* Override any gcc2 internal prototype to avoid an error. */
10457 /* We use char because int might match the return type of a gcc2
10458 builtin and then its argument prototype would still apply. */
10459 char remove();
10460
10461 int main() {
10462
10463 /* The GNU C library defines this for functions which it implements
10464 to always fail with ENOSYS. Some functions are actually named
10465 something starting with __ and the normal name is an alias. */
10466 #if defined (__stub_remove) || defined (__stub___remove)
10467 choke me
10468 #else
10469 remove();
10470 #endif
10471
10472 ; return 0; }
10473 EOF
10474 if { (eval echo configure:10475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10475 rm -rf conftest*
10476 eval "ac_cv_func_remove=yes"
10477 else
10478 echo "configure: failed program was:" >&5
10479 cat conftest.$ac_ext >&5
10480 rm -rf conftest*
10481 eval "ac_cv_func_remove=no"
10482 fi
10483 rm -f conftest*
10484 fi
10485
10486 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
10487 echo "$ac_t""yes" 1>&6
10488 :
10489 else
10490 echo "$ac_t""no" 1>&6
10491 fi
10492
10493 if test $ac_cv_func_remove = no; then
10494 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
10495 echo "configure:10496: checking for remove in -lposix" >&5
10496 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
10497 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10498 echo $ac_n "(cached) $ac_c" 1>&6
10499 else
10500 ac_save_LIBS="$LIBS"
10501 LIBS="-lposix $LIBS"
10502 cat > conftest.$ac_ext <<EOF
10503 #line 10504 "configure"
10504 #include "confdefs.h"
10505 /* Override any gcc2 internal prototype to avoid an error. */
10506 /* We use char because int might match the return type of a gcc2
10507 builtin and then its argument prototype would still apply. */
10508 char remove();
10509
10510 int main() {
10511 remove()
10512 ; return 0; }
10513 EOF
10514 if { (eval echo configure:10515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10515 rm -rf conftest*
10516 eval "ac_cv_lib_$ac_lib_var=yes"
10517 else
10518 echo "configure: failed program was:" >&5
10519 cat conftest.$ac_ext >&5
10520 rm -rf conftest*
10521 eval "ac_cv_lib_$ac_lib_var=no"
10522 fi
10523 rm -f conftest*
10524 LIBS="$ac_save_LIBS"
10525
10526 fi
10527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10528 echo "$ac_t""yes" 1>&6
10529 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10530 else
10531 echo "$ac_t""no" 1>&6
10532 fi
10533
10534 fi
10535
10536 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10537 echo $ac_n "checking for shmat""... $ac_c" 1>&6
10538 echo "configure:10539: checking for shmat" >&5
10539 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
10540 echo $ac_n "(cached) $ac_c" 1>&6
10541 else
10542 cat > conftest.$ac_ext <<EOF
10543 #line 10544 "configure"
10544 #include "confdefs.h"
10545 /* System header to define __stub macros and hopefully few prototypes,
10546 which can conflict with char shmat(); below. */
10547 #include <assert.h>
10548 /* Override any gcc2 internal prototype to avoid an error. */
10549 /* We use char because int might match the return type of a gcc2
10550 builtin and then its argument prototype would still apply. */
10551 char shmat();
10552
10553 int main() {
10554
10555 /* The GNU C library defines this for functions which it implements
10556 to always fail with ENOSYS. Some functions are actually named
10557 something starting with __ and the normal name is an alias. */
10558 #if defined (__stub_shmat) || defined (__stub___shmat)
10559 choke me
10560 #else
10561 shmat();
10562 #endif
10563
10564 ; return 0; }
10565 EOF
10566 if { (eval echo configure:10567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10567 rm -rf conftest*
10568 eval "ac_cv_func_shmat=yes"
10569 else
10570 echo "configure: failed program was:" >&5
10571 cat conftest.$ac_ext >&5
10572 rm -rf conftest*
10573 eval "ac_cv_func_shmat=no"
10574 fi
10575 rm -f conftest*
10576 fi
10577
10578 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
10579 echo "$ac_t""yes" 1>&6
10580 :
10581 else
10582 echo "$ac_t""no" 1>&6
10583 fi
10584
10585 if test $ac_cv_func_shmat = no; then
10586 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
10587 echo "configure:10588: checking for shmat in -lipc" >&5
10588 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
10589 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10590 echo $ac_n "(cached) $ac_c" 1>&6
10591 else
10592 ac_save_LIBS="$LIBS"
10593 LIBS="-lipc $LIBS"
10594 cat > conftest.$ac_ext <<EOF
10595 #line 10596 "configure"
10596 #include "confdefs.h"
10597 /* Override any gcc2 internal prototype to avoid an error. */
10598 /* We use char because int might match the return type of a gcc2
10599 builtin and then its argument prototype would still apply. */
10600 char shmat();
10601
10602 int main() {
10603 shmat()
10604 ; return 0; }
10605 EOF
10606 if { (eval echo configure:10607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10607 rm -rf conftest*
10608 eval "ac_cv_lib_$ac_lib_var=yes"
10609 else
10610 echo "configure: failed program was:" >&5
10611 cat conftest.$ac_ext >&5
10612 rm -rf conftest*
10613 eval "ac_cv_lib_$ac_lib_var=no"
10614 fi
10615 rm -f conftest*
10616 LIBS="$ac_save_LIBS"
10617
10618 fi
10619 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10620 echo "$ac_t""yes" 1>&6
10621 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10622 else
10623 echo "$ac_t""no" 1>&6
10624 fi
10625
10626 fi
10627 fi
10628
10629 # Check for libraries that X11R6 Xt/Xaw programs need.
10630 ac_save_LDFLAGS="$LDFLAGS"
10631 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10632 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10633 # check for ICE first), but we must link in the order -lSM -lICE or
10634 # we get undefined symbols. So assume we have SM if we have ICE.
10635 # These have to be linked with before -lX11, unlike the other
10636 # libraries we check for below, so use a different variable.
10637 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10638 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
10639 echo "configure:10640: checking for IceConnectionNumber in -lICE" >&5
10640 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10641 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10642 echo $ac_n "(cached) $ac_c" 1>&6
10643 else
10644 ac_save_LIBS="$LIBS"
10645 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10646 cat > conftest.$ac_ext <<EOF
10647 #line 10648 "configure"
10648 #include "confdefs.h"
10649 /* Override any gcc2 internal prototype to avoid an error. */
10650 /* We use char because int might match the return type of a gcc2
10651 builtin and then its argument prototype would still apply. */
10652 char IceConnectionNumber();
10653
10654 int main() {
10655 IceConnectionNumber()
10656 ; return 0; }
10657 EOF
10658 if { (eval echo configure:10659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10659 rm -rf conftest*
10660 eval "ac_cv_lib_$ac_lib_var=yes"
10661 else
10662 echo "configure: failed program was:" >&5
10663 cat conftest.$ac_ext >&5
10664 rm -rf conftest*
10665 eval "ac_cv_lib_$ac_lib_var=no"
10666 fi
10667 rm -f conftest*
10668 LIBS="$ac_save_LIBS"
10669
10670 fi
10671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10672 echo "$ac_t""yes" 1>&6
10673 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10674 else
10675 echo "$ac_t""no" 1>&6
10676 fi
10677
10678 LDFLAGS="$ac_save_LDFLAGS"
10679
10680 fi
10681
10682 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10683 LDFLAGS="$LDFLAGS $X_LIBS"
10684
10685 if test "$wxUSE_MOTIF" = 1; then
10686 if test "$no_x" = "yes"; then
10687 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10688 fi
10689
10690 GUI_TK_LIBRARY="$X_LIBS"
10691 TOOLKIT_INCLUDE="$X_CFLAGS"
10692 AFMINSTALL=afminstall
10693 COMPILED_X_PROGRAM=0
10694
10695 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
10696 echo "configure:10697: checking for Motif/Lesstif headers" >&5
10697
10698 ac_find_includes=
10699 for ac_dir in $SEARCH_INCLUDE;
10700 do
10701 if test -f "$ac_dir/Xm/Xm.h"; then
10702 ac_find_includes=$ac_dir
10703 break
10704 fi
10705 done
10706
10707 if test "$ac_find_includes" != "" ; then
10708 echo "$ac_t""found $ac_find_includes" 1>&6
10709 else
10710 cat > conftest.$ac_ext <<EOF
10711 #line 10712 "configure"
10712 #include "confdefs.h"
10713
10714 #include <Xm/Xm.h>
10715
10716 int main() {
10717
10718 int version;
10719 version = xmUseVersion;
10720
10721 ; return 0; }
10722 EOF
10723 if { (eval echo configure:10724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10724 rm -rf conftest*
10725
10726 echo "$ac_t""found in default search path" 1>&6
10727 COMPILED_X_PROGRAM=1
10728
10729 else
10730 echo "configure: failed program was:" >&5
10731 cat conftest.$ac_ext >&5
10732 rm -rf conftest*
10733
10734 echo "$ac_t""no" 1>&6
10735 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10736
10737
10738 fi
10739 rm -f conftest*
10740 fi
10741
10742 if test "$COMPILED_X_PROGRAM" = 0; then
10743 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
10744 echo "configure:10745: checking for Motif/Lesstif library" >&5
10745
10746 ac_find_libraries=
10747 for ac_dir in $SEARCH_LIB;
10748 do
10749 for ac_extension in a so sl dylib; do
10750 if test -f "$ac_dir/libXm.$ac_extension"; then
10751 ac_find_libraries=$ac_dir
10752 break 2
10753 fi
10754 done
10755 done
10756
10757 if test "$ac_find_libraries" != "" ; then
10758
10759 ac_path_to_include=$ac_find_includes
10760 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10761 result=$?
10762 if test $result = 0; then
10763 ac_path_to_include=""
10764 else
10765 ac_path_to_include="-I$ac_find_includes"
10766 fi
10767
10768
10769 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10770 result=$?
10771 if test $result = 0; then
10772 ac_path_to_link=""
10773 else
10774 ac_path_to_link="-L$ac_find_libraries"
10775 fi
10776
10777
10778 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10779 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10780 echo "$ac_t""found at $ac_find_libraries" 1>&6
10781 else
10782 cat > conftest.$ac_ext <<EOF
10783 #line 10784 "configure"
10784 #include "confdefs.h"
10785
10786 #include <Xm/Xm.h>
10787
10788 int main() {
10789
10790 int version;
10791 version = xmUseVersion;
10792
10793 ; return 0; }
10794 EOF
10795 if { (eval echo configure:10796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10796 rm -rf conftest*
10797
10798 echo "$ac_t""found in default search path" 1>&6
10799 COMPILED_X_PROGRAM=1
10800
10801 else
10802 echo "configure: failed program was:" >&5
10803 cat conftest.$ac_ext >&5
10804 rm -rf conftest*
10805
10806 echo "$ac_t""no" 1>&6
10807 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10808
10809
10810 fi
10811 rm -f conftest*
10812 fi
10813 fi
10814
10815 xpm_link=""
10816 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
10817 echo "configure:10818: checking for Xpm library" >&5
10818
10819 ac_find_libraries=
10820 for ac_dir in $SEARCH_LIB;
10821 do
10822 for ac_extension in a so sl dylib; do
10823 if test -f "$ac_dir/libXpm.$ac_extension"; then
10824 ac_find_libraries=$ac_dir
10825 break 2
10826 fi
10827 done
10828 done
10829
10830 if test "$ac_find_libraries" != "" ; then
10831
10832 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10833 result=$?
10834 if test $result = 0; then
10835 ac_path_to_link=""
10836 else
10837 ac_path_to_link="-L$ac_find_libraries"
10838 fi
10839
10840 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10841 xpm_link="-lXpm "
10842 cat >> confdefs.h <<\EOF
10843 #define wxHAVE_LIB_XPM 1
10844 EOF
10845
10846 echo "$ac_t""found at $ac_find_libraries" 1>&6
10847 else
10848 cat > conftest.$ac_ext <<EOF
10849 #line 10850 "configure"
10850 #include "confdefs.h"
10851
10852 #include <X11/xpm.h>
10853
10854 int main() {
10855
10856 int version;
10857 version = XpmLibraryVersion();
10858
10859 ; return 0; }
10860 EOF
10861 if { (eval echo configure:10862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10862 rm -rf conftest*
10863
10864 xpm_link="-lXpm "
10865 cat >> confdefs.h <<\EOF
10866 #define wxHAVE_LIB_XPM 1
10867 EOF
10868
10869 echo "$ac_t""found in default search path" 1>&6
10870 COMPILED_X_PROGRAM=0
10871
10872 else
10873 echo "configure: failed program was:" >&5
10874 cat conftest.$ac_ext >&5
10875 rm -rf conftest*
10876
10877 echo "$ac_t""no" 1>&6
10878 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10879
10880
10881 fi
10882 rm -f conftest*
10883 fi
10884
10885 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm $xpm_link -lXmu -lXext -lXt -lX11"
10886 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10887 TOOLKIT=MOTIF
10888 GUIDIST=MOTIF_DIST
10889 fi
10890
10891 if test "$wxUSE_MAC" = 1; then
10892 CPPFLAGS="${CPPFLAGS} -cpp-precomp"
10893 CFLAGS="${CFLAGS} -fpascal-strings"
10894 CXXFLAGS="${CXXFLAGS} -fpascal-strings"
10895 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DTARGET_CARBON"
10896
10897 TOOLKIT=MAC
10898 GUIDIST=MACX_DIST
10899 fi
10900
10901 if test "$wxUSE_PM" = 1; then
10902 TOOLKIT=PM
10903 GUIDIST=GTK_DIST
10904 fi
10905
10906 if test "$TOOLKIT" = "PM" ; then
10907 TOOLKIT_DIR="os2"
10908 else
10909 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10910 fi
10911
10912 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
10913
10914 if test "$wxUSE_UNIVERSAL" = "yes"; then
10915 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10916 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
10917 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
10918 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
10919 WIDGET_SET=univ
10920 else
10921 ALL_OBJECTS="\$(GUIOBJS)"
10922 fi
10923
10924 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10925
10926 if test "$TOOLKIT" != "MSW"; then
10927 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10928 fi
10929
10930 if test "$wxUSE_HTML" = "yes"; then
10931 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10932 fi
10933
10934 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
10935 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10936 fi
10937 if test "$wxUSE_LIBJPEG" = "yes" ; then
10938 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
10939 fi
10940 if test "$wxUSE_LIBTIFF" = "yes" ; then
10941 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10942 fi
10943 if test "$wxUSE_LIBPNG" = "yes" ; then
10944 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10945 fi
10946 if test "$wxUSE_FREETYPE" = "yes" ; then
10947 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10948 fi
10949
10950 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10951 RPM_SPEC="wx\$(TOOLKIT).spec"
10952
10953 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10954 DISTDIR="wx\$(TOOLKIT)"
10955 else
10956 USE_GUI=0
10957
10958 TOOLKIT_DIR="base"
10959
10960 if test "$USE_WIN32" = 1 ; then
10961 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
10962 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
10963
10964 TOOLKIT="MSW"
10965 else
10966 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
10967 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
10968 fi
10969
10970 PORT_FILES="\${top_srcdir}/src/files.lst"
10971 RPM_FILES="src/rpmfiles.lst"
10972 RPM_SPEC="wxBase.spec"
10973
10974 GUIDIST="BASE_DIST"
10975 DISTDIR="wxBase"
10976 fi
10977
10978 if test "x$REGEX_INCLUDE" != "x" ; then
10979 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10980 fi
10981 if test "$wxUSE_ZLIB" = "yes" ; then
10982 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10983 fi
10984
10985 if test "$wxUSE_OPENGL" = "yes"; then
10986 if test "$wxUSE_MAC" = 1; then
10987 cat >> confdefs.h <<\EOF
10988 #define wxUSE_OPENGL 1
10989 EOF
10990
10991 cat >> confdefs.h <<\EOF
10992 #define wxUSE_GLCANVAS 1
10993 EOF
10994
10995 OPENGL_LIBS="-framework OpenGL -framework AGL"
10996 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
10997 else
10998 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
10999 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
11000 echo "configure:11001: checking for GL/gl.h" >&5
11001 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11002 echo $ac_n "(cached) $ac_c" 1>&6
11003 else
11004 cat > conftest.$ac_ext <<EOF
11005 #line 11006 "configure"
11006 #include "confdefs.h"
11007 #include <GL/gl.h>
11008 EOF
11009 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11010 { (eval echo configure:11011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11011 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11012 if test -z "$ac_err"; then
11013 rm -rf conftest*
11014 eval "ac_cv_header_$ac_safe=yes"
11015 else
11016 echo "$ac_err" >&5
11017 echo "configure: failed program was:" >&5
11018 cat conftest.$ac_ext >&5
11019 rm -rf conftest*
11020 eval "ac_cv_header_$ac_safe=no"
11021 fi
11022 rm -f conftest*
11023 fi
11024 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11025 echo "$ac_t""yes" 1>&6
11026
11027 cat >> confdefs.h <<\EOF
11028 #define wxUSE_OPENGL 1
11029 EOF
11030
11031 cat >> confdefs.h <<\EOF
11032 #define wxUSE_GLCANVAS 1
11033 EOF
11034
11035 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
11036 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
11037 echo "configure:11038: checking for glFlush in -lGL" >&5
11038 ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
11039 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11040 echo $ac_n "(cached) $ac_c" 1>&6
11041 else
11042 ac_save_LIBS="$LIBS"
11043 LIBS="-lGL $LIBS"
11044 cat > conftest.$ac_ext <<EOF
11045 #line 11046 "configure"
11046 #include "confdefs.h"
11047 /* Override any gcc2 internal prototype to avoid an error. */
11048 /* We use char because int might match the return type of a gcc2
11049 builtin and then its argument prototype would still apply. */
11050 char glFlush();
11051
11052 int main() {
11053 glFlush()
11054 ; return 0; }
11055 EOF
11056 if { (eval echo configure:11057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11057 rm -rf conftest*
11058 eval "ac_cv_lib_$ac_lib_var=yes"
11059 else
11060 echo "configure: failed program was:" >&5
11061 cat conftest.$ac_ext >&5
11062 rm -rf conftest*
11063 eval "ac_cv_lib_$ac_lib_var=no"
11064 fi
11065 rm -f conftest*
11066 LIBS="$ac_save_LIBS"
11067
11068 fi
11069 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11070 echo "$ac_t""yes" 1>&6
11071
11072 OPENGL_LIBS="-lGL -lGLU"
11073
11074 else
11075 echo "$ac_t""no" 1>&6
11076
11077 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
11078 echo "configure:11079: checking for glFlush in -lMesaGL" >&5
11079 ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
11080 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11081 echo $ac_n "(cached) $ac_c" 1>&6
11082 else
11083 ac_save_LIBS="$LIBS"
11084 LIBS="-lMesaGL $LIBS"
11085 cat > conftest.$ac_ext <<EOF
11086 #line 11087 "configure"
11087 #include "confdefs.h"
11088 /* Override any gcc2 internal prototype to avoid an error. */
11089 /* We use char because int might match the return type of a gcc2
11090 builtin and then its argument prototype would still apply. */
11091 char glFlush();
11092
11093 int main() {
11094 glFlush()
11095 ; return 0; }
11096 EOF
11097 if { (eval echo configure:11098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11098 rm -rf conftest*
11099 eval "ac_cv_lib_$ac_lib_var=yes"
11100 else
11101 echo "configure: failed program was:" >&5
11102 cat conftest.$ac_ext >&5
11103 rm -rf conftest*
11104 eval "ac_cv_lib_$ac_lib_var=no"
11105 fi
11106 rm -f conftest*
11107 LIBS="$ac_save_LIBS"
11108
11109 fi
11110 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11111 echo "$ac_t""yes" 1>&6
11112
11113 OPENGL_LIBS="-lMesaGL -lMesaGLU"
11114
11115 else
11116 echo "$ac_t""no" 1>&6
11117 fi
11118
11119
11120 fi
11121
11122
11123 else
11124 echo "$ac_t""no" 1>&6
11125 wxUSE_OPENGL=0
11126 fi
11127
11128 fi
11129 fi
11130
11131 if test -z "$TOOLKIT_VPATH" ; then
11132 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
11133 fi
11134
11135 if test -n "$TOOLKIT" ; then
11136 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
11137 fi
11138
11139 if test "$wxUSE_CYGWIN" = 1 ; then
11140 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
11141 fi
11142
11143 lib_debug_suffix=
11144 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
11145 lib_debug_suffix=d
11146 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}d"
11147 fi
11148
11149 TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}-${WX_RELEASE}"
11150 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}_gl-${WX_RELEASE}"
11151
11152 if test "$cross_compiling" = "yes"; then
11153 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
11154 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
11155 fi
11156
11157 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
11158 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
11159
11160 WXCONFIG_LIBS="-l${WX_LIBRARY}"
11161
11162 if test "$wxUSE_OPENGL" = "yes"; then
11163 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} $OPENGL_LIBS"
11164 fi
11165
11166 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
11167 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
11168
11169 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11170 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11171
11172 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
11173 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
11174 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
11175 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
11176
11177 WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
11178
11179
11180
11181 if test "$wxUSE_SHARED" = "yes"; then
11182
11183 if test "$wxUSE_OPENGL" = "yes"; then
11184 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11185 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
11186 else
11187 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11188 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
11189 fi
11190
11191 if test "$GCC" = "yes"; then
11192 PIC_FLAG="-fPIC"
11193 fi
11194
11195 SHARED_LD="${CXX} -shared -o"
11196
11197 case "${host}" in
11198 *-hp-hpux* )
11199 if test "$GCC" != "yes"; then
11200 LDFLAGS="-L/usr/lib"
11201
11202 SHARED_LD="${CXX} -b -o"
11203 PIC_FLAG="+Z"
11204 fi
11205
11206 if test "$wxUSE_OPENGL" = "yes"; then
11207 WX_ALL_INSTALLED="preinstall_gl"
11208 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
11209 else
11210 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
11211 fi
11212 ;;
11213
11214 *-*-linux* )
11215 if test "$GCC" != "yes"; then
11216 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
11217 echo "configure:11218: checking for Intel compiler" >&5
11218 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
11219 echo $ac_n "(cached) $ac_c" 1>&6
11220 else
11221
11222 cat > conftest.$ac_ext <<EOF
11223 #line 11224 "configure"
11224 #include "confdefs.h"
11225
11226 int main() {
11227
11228 #ifndef __INTEL_COMPILER
11229 #error Not icc
11230 #endif
11231
11232 ; return 0; }
11233 EOF
11234 if { (eval echo configure:11235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11235 rm -rf conftest*
11236 wx_cv_prog_icc=yes
11237 else
11238 echo "configure: failed program was:" >&5
11239 cat conftest.$ac_ext >&5
11240 rm -rf conftest*
11241 wx_cv_prog_icc=no
11242
11243 fi
11244 rm -f conftest*
11245
11246 fi
11247
11248 echo "$ac_t""$wx_cv_prog_icc" 1>&6
11249 if test "$wx_cv_prog_icc" = "yes"; then
11250 PIC_FLAG="-KPIC"
11251 fi
11252 fi
11253
11254 if test "$wxUSE_SONAME" = "yes" ; then
11255 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
11256 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
11257 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
11258 fi
11259 ;;
11260
11261 *-*-solaris2* )
11262 if test "$GCC" = yes ; then
11263 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
11264 else
11265 SHARED_LD="${CXX} -G -o"
11266 PIC_FLAG="-KPIC"
11267 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
11268 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}"
11269 fi
11270 ;;
11271
11272 *-*-darwin* )
11273 CFLAGS="${CFLAGS} -fno-common"
11274 CXXFLAGS="${CXXFLAGS} -fno-common"
11275 SHARED_LD="${CXX} -dynamiclib -o"
11276 PIC_FLAG="-dynamic -fPIC"
11277 ;;
11278
11279 *-*-aix* )
11280 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
11281 ;;
11282
11283 *-*-cygwin* | *-*-mingw32* )
11284 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_NAME_STATIC} -o"
11285 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXUSINGDLL=1"
11286 WXMSW_DLL_DEFINES="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
11287
11288 if test "$wxUSE_OPENGL" = "yes"; then
11289 WX_ALL_INSTALLED="preinstall_gl"
11290 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
11291 else
11292 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
11293 fi
11294 PIC_FLAG=
11295 ;;
11296
11297 *-pc-os2_emx )
11298 wxUSE_SHARED=no
11299 ;;
11300
11301 *-*-beos* )
11302 SHARED_LD="${LD} -shared -o"
11303 ;;
11304
11305 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
11306 *-*-sunos4* | \
11307 *-*-irix5* | *-*-irix6* | \
11308 *-*-osf* | \
11309 *-*-dgux5* | \
11310 *-*-sysv5* )
11311 ;;
11312
11313 *)
11314 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
11315 esac
11316
11317 if test "x$WX_TARGET_LIBRARY" = "x"; then
11318 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
11319 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
11320 fi
11321
11322 WX_TARGET_LIBRARY_TYPE="so"
11323 fi
11324
11325 if test "$wxUSE_SHARED" = "no"; then
11326
11327 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
11328 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11329 fi
11330
11331 if test "$wxUSE_OPENGL" = "yes"; then
11332 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
11333 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
11334 else
11335 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
11336 fi
11337
11338 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11339 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
11340
11341 WX_TARGET_LIBRARY_TYPE="a"
11342 fi
11343
11344 if test "$wxUSE_MAC" = 1; then
11345 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
11346 # Extract the first word of "Rez", so it can be a program name with args.
11347 set dummy Rez; ac_word=$2
11348 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11349 echo "configure:11350: checking for $ac_word" >&5
11350 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
11351 echo $ac_n "(cached) $ac_c" 1>&6
11352 else
11353 if test -n "$RESCOMP"; then
11354 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
11355 else
11356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11357 ac_dummy="$PATH"
11358 for ac_dir in $ac_dummy; do
11359 test -z "$ac_dir" && ac_dir=.
11360 if test -f $ac_dir/$ac_word; then
11361 ac_cv_prog_RESCOMP="Rez"
11362 break
11363 fi
11364 done
11365 IFS="$ac_save_ifs"
11366 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
11367 fi
11368 fi
11369 RESCOMP="$ac_cv_prog_RESCOMP"
11370 if test -n "$RESCOMP"; then
11371 echo "$ac_t""$RESCOMP" 1>&6
11372 else
11373 echo "$ac_t""no" 1>&6
11374 fi
11375
11376 # Extract the first word of "Derez", so it can be a program name with args.
11377 set dummy Derez; ac_word=$2
11378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11379 echo "configure:11380: checking for $ac_word" >&5
11380 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
11381 echo $ac_n "(cached) $ac_c" 1>&6
11382 else
11383 if test -n "$DEREZ"; then
11384 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
11385 else
11386 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11387 ac_dummy="$PATH"
11388 for ac_dir in $ac_dummy; do
11389 test -z "$ac_dir" && ac_dir=.
11390 if test -f $ac_dir/$ac_word; then
11391 ac_cv_prog_DEREZ="Derez"
11392 break
11393 fi
11394 done
11395 IFS="$ac_save_ifs"
11396 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
11397 fi
11398 fi
11399 DEREZ="$ac_cv_prog_DEREZ"
11400 if test -n "$DEREZ"; then
11401 echo "$ac_t""$DEREZ" 1>&6
11402 else
11403 echo "$ac_t""no" 1>&6
11404 fi
11405
11406 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
11407 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
11408 fi
11409
11410
11411 for ac_hdr in strings.h
11412 do
11413 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11414 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11415 echo "configure:11416: checking for $ac_hdr" >&5
11416 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11417 echo $ac_n "(cached) $ac_c" 1>&6
11418 else
11419 cat > conftest.$ac_ext <<EOF
11420 #line 11421 "configure"
11421 #include "confdefs.h"
11422 #include <$ac_hdr>
11423 EOF
11424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11425 { (eval echo configure:11426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11427 if test -z "$ac_err"; then
11428 rm -rf conftest*
11429 eval "ac_cv_header_$ac_safe=yes"
11430 else
11431 echo "$ac_err" >&5
11432 echo "configure: failed program was:" >&5
11433 cat conftest.$ac_ext >&5
11434 rm -rf conftest*
11435 eval "ac_cv_header_$ac_safe=no"
11436 fi
11437 rm -f conftest*
11438 fi
11439 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11440 echo "$ac_t""yes" 1>&6
11441 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11442 cat >> confdefs.h <<EOF
11443 #define $ac_tr_hdr 1
11444 EOF
11445
11446 else
11447 echo "$ac_t""no" 1>&6
11448 fi
11449 done
11450
11451 for ac_hdr in stdlib.h
11452 do
11453 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11454 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11455 echo "configure:11456: checking for $ac_hdr" >&5
11456 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11457 echo $ac_n "(cached) $ac_c" 1>&6
11458 else
11459 cat > conftest.$ac_ext <<EOF
11460 #line 11461 "configure"
11461 #include "confdefs.h"
11462 #include <$ac_hdr>
11463 EOF
11464 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11465 { (eval echo configure:11466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11466 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11467 if test -z "$ac_err"; then
11468 rm -rf conftest*
11469 eval "ac_cv_header_$ac_safe=yes"
11470 else
11471 echo "$ac_err" >&5
11472 echo "configure: failed program was:" >&5
11473 cat conftest.$ac_ext >&5
11474 rm -rf conftest*
11475 eval "ac_cv_header_$ac_safe=no"
11476 fi
11477 rm -f conftest*
11478 fi
11479 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11480 echo "$ac_t""yes" 1>&6
11481 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11482 cat >> confdefs.h <<EOF
11483 #define $ac_tr_hdr 1
11484 EOF
11485
11486 else
11487 echo "$ac_t""no" 1>&6
11488 fi
11489 done
11490
11491 for ac_hdr in unistd.h
11492 do
11493 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11494 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11495 echo "configure:11496: checking for $ac_hdr" >&5
11496 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11497 echo $ac_n "(cached) $ac_c" 1>&6
11498 else
11499 cat > conftest.$ac_ext <<EOF
11500 #line 11501 "configure"
11501 #include "confdefs.h"
11502 #include <$ac_hdr>
11503 EOF
11504 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11505 { (eval echo configure:11506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11506 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11507 if test -z "$ac_err"; then
11508 rm -rf conftest*
11509 eval "ac_cv_header_$ac_safe=yes"
11510 else
11511 echo "$ac_err" >&5
11512 echo "configure: failed program was:" >&5
11513 cat conftest.$ac_ext >&5
11514 rm -rf conftest*
11515 eval "ac_cv_header_$ac_safe=no"
11516 fi
11517 rm -f conftest*
11518 fi
11519 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11520 echo "$ac_t""yes" 1>&6
11521 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11522 cat >> confdefs.h <<EOF
11523 #define $ac_tr_hdr 1
11524 EOF
11525
11526 else
11527 echo "$ac_t""no" 1>&6
11528 fi
11529 done
11530
11531 for ac_hdr in wchar.h
11532 do
11533 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11534 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11535 echo "configure:11536: checking for $ac_hdr" >&5
11536 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11537 echo $ac_n "(cached) $ac_c" 1>&6
11538 else
11539 cat > conftest.$ac_ext <<EOF
11540 #line 11541 "configure"
11541 #include "confdefs.h"
11542 #include <$ac_hdr>
11543 EOF
11544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11545 { (eval echo configure:11546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11546 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11547 if test -z "$ac_err"; then
11548 rm -rf conftest*
11549 eval "ac_cv_header_$ac_safe=yes"
11550 else
11551 echo "$ac_err" >&5
11552 echo "configure: failed program was:" >&5
11553 cat conftest.$ac_ext >&5
11554 rm -rf conftest*
11555 eval "ac_cv_header_$ac_safe=no"
11556 fi
11557 rm -f conftest*
11558 fi
11559 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11560 echo "$ac_t""yes" 1>&6
11561 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11562 cat >> confdefs.h <<EOF
11563 #define $ac_tr_hdr 1
11564 EOF
11565
11566 else
11567 echo "$ac_t""no" 1>&6
11568 fi
11569 done
11570
11571 for ac_hdr in wcstr.h
11572 do
11573 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11574 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11575 echo "configure:11576: checking for $ac_hdr" >&5
11576 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11577 echo $ac_n "(cached) $ac_c" 1>&6
11578 else
11579 cat > conftest.$ac_ext <<EOF
11580 #line 11581 "configure"
11581 #include "confdefs.h"
11582 #include <$ac_hdr>
11583 EOF
11584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11585 { (eval echo configure:11586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11587 if test -z "$ac_err"; then
11588 rm -rf conftest*
11589 eval "ac_cv_header_$ac_safe=yes"
11590 else
11591 echo "$ac_err" >&5
11592 echo "configure: failed program was:" >&5
11593 cat conftest.$ac_ext >&5
11594 rm -rf conftest*
11595 eval "ac_cv_header_$ac_safe=no"
11596 fi
11597 rm -f conftest*
11598 fi
11599 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11600 echo "$ac_t""yes" 1>&6
11601 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11602 cat >> confdefs.h <<EOF
11603 #define $ac_tr_hdr 1
11604 EOF
11605
11606 else
11607 echo "$ac_t""no" 1>&6
11608 fi
11609 done
11610
11611 for ac_hdr in fnmatch.h
11612 do
11613 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11614 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11615 echo "configure:11616: checking for $ac_hdr" >&5
11616 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11617 echo $ac_n "(cached) $ac_c" 1>&6
11618 else
11619 cat > conftest.$ac_ext <<EOF
11620 #line 11621 "configure"
11621 #include "confdefs.h"
11622 #include <$ac_hdr>
11623 EOF
11624 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11625 { (eval echo configure:11626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11626 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11627 if test -z "$ac_err"; then
11628 rm -rf conftest*
11629 eval "ac_cv_header_$ac_safe=yes"
11630 else
11631 echo "$ac_err" >&5
11632 echo "configure: failed program was:" >&5
11633 cat conftest.$ac_ext >&5
11634 rm -rf conftest*
11635 eval "ac_cv_header_$ac_safe=no"
11636 fi
11637 rm -f conftest*
11638 fi
11639 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11640 echo "$ac_t""yes" 1>&6
11641 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11642 cat >> confdefs.h <<EOF
11643 #define $ac_tr_hdr 1
11644 EOF
11645
11646 else
11647 echo "$ac_t""no" 1>&6
11648 fi
11649 done
11650
11651 for ac_hdr in iconv.h
11652 do
11653 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11654 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11655 echo "configure:11656: checking for $ac_hdr" >&5
11656 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11657 echo $ac_n "(cached) $ac_c" 1>&6
11658 else
11659 cat > conftest.$ac_ext <<EOF
11660 #line 11661 "configure"
11661 #include "confdefs.h"
11662 #include <$ac_hdr>
11663 EOF
11664 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11665 { (eval echo configure:11666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11666 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11667 if test -z "$ac_err"; then
11668 rm -rf conftest*
11669 eval "ac_cv_header_$ac_safe=yes"
11670 else
11671 echo "$ac_err" >&5
11672 echo "configure: failed program was:" >&5
11673 cat conftest.$ac_ext >&5
11674 rm -rf conftest*
11675 eval "ac_cv_header_$ac_safe=no"
11676 fi
11677 rm -f conftest*
11678 fi
11679 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11680 echo "$ac_t""yes" 1>&6
11681 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11682 cat >> confdefs.h <<EOF
11683 #define $ac_tr_hdr 1
11684 EOF
11685
11686 else
11687 echo "$ac_t""no" 1>&6
11688 fi
11689 done
11690
11691 for ac_hdr in langinfo.h
11692 do
11693 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11694 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11695 echo "configure:11696: checking for $ac_hdr" >&5
11696 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11697 echo $ac_n "(cached) $ac_c" 1>&6
11698 else
11699 cat > conftest.$ac_ext <<EOF
11700 #line 11701 "configure"
11701 #include "confdefs.h"
11702 #include <$ac_hdr>
11703 EOF
11704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11705 { (eval echo configure:11706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11706 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11707 if test -z "$ac_err"; then
11708 rm -rf conftest*
11709 eval "ac_cv_header_$ac_safe=yes"
11710 else
11711 echo "$ac_err" >&5
11712 echo "configure: failed program was:" >&5
11713 cat conftest.$ac_ext >&5
11714 rm -rf conftest*
11715 eval "ac_cv_header_$ac_safe=no"
11716 fi
11717 rm -f conftest*
11718 fi
11719 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11720 echo "$ac_t""yes" 1>&6
11721 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11722 cat >> confdefs.h <<EOF
11723 #define $ac_tr_hdr 1
11724 EOF
11725
11726 else
11727 echo "$ac_t""no" 1>&6
11728 fi
11729 done
11730
11731
11732 if test "$wxUSE_GUI" = "yes"; then
11733 if test "$wxUSE_UNIX" = "yes"; then
11734 for ac_hdr in X11/XKBlib.h
11735 do
11736 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11737 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11738 echo "configure:11739: checking for $ac_hdr" >&5
11739 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11740 echo $ac_n "(cached) $ac_c" 1>&6
11741 else
11742 cat > conftest.$ac_ext <<EOF
11743 #line 11744 "configure"
11744 #include "confdefs.h"
11745 #include <$ac_hdr>
11746 EOF
11747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11748 { (eval echo configure:11749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11750 if test -z "$ac_err"; then
11751 rm -rf conftest*
11752 eval "ac_cv_header_$ac_safe=yes"
11753 else
11754 echo "$ac_err" >&5
11755 echo "configure: failed program was:" >&5
11756 cat conftest.$ac_ext >&5
11757 rm -rf conftest*
11758 eval "ac_cv_header_$ac_safe=no"
11759 fi
11760 rm -f conftest*
11761 fi
11762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11763 echo "$ac_t""yes" 1>&6
11764 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11765 cat >> confdefs.h <<EOF
11766 #define $ac_tr_hdr 1
11767 EOF
11768
11769 else
11770 echo "$ac_t""no" 1>&6
11771 fi
11772 done
11773
11774 fi
11775 fi
11776
11777
11778 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
11779 echo "configure:11780: checking for ANSI C header files" >&5
11780 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11781 echo $ac_n "(cached) $ac_c" 1>&6
11782 else
11783 cat > conftest.$ac_ext <<EOF
11784 #line 11785 "configure"
11785 #include "confdefs.h"
11786 #include <stdlib.h>
11787 #include <stdarg.h>
11788 #include <string.h>
11789 #include <float.h>
11790 EOF
11791 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11792 { (eval echo configure:11793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11793 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11794 if test -z "$ac_err"; then
11795 rm -rf conftest*
11796 ac_cv_header_stdc=yes
11797 else
11798 echo "$ac_err" >&5
11799 echo "configure: failed program was:" >&5
11800 cat conftest.$ac_ext >&5
11801 rm -rf conftest*
11802 ac_cv_header_stdc=no
11803 fi
11804 rm -f conftest*
11805
11806 if test $ac_cv_header_stdc = yes; then
11807 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11808 cat > conftest.$ac_ext <<EOF
11809 #line 11810 "configure"
11810 #include "confdefs.h"
11811 #include <string.h>
11812 EOF
11813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11814 egrep "memchr" >/dev/null 2>&1; then
11815 :
11816 else
11817 rm -rf conftest*
11818 ac_cv_header_stdc=no
11819 fi
11820 rm -f conftest*
11821
11822 fi
11823
11824 if test $ac_cv_header_stdc = yes; then
11825 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11826 cat > conftest.$ac_ext <<EOF
11827 #line 11828 "configure"
11828 #include "confdefs.h"
11829 #include <stdlib.h>
11830 EOF
11831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11832 egrep "free" >/dev/null 2>&1; then
11833 :
11834 else
11835 rm -rf conftest*
11836 ac_cv_header_stdc=no
11837 fi
11838 rm -f conftest*
11839
11840 fi
11841
11842 if test $ac_cv_header_stdc = yes; then
11843 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11844 if test "$cross_compiling" = yes; then
11845 :
11846 else
11847 cat > conftest.$ac_ext <<EOF
11848 #line 11849 "configure"
11849 #include "confdefs.h"
11850 #include <ctype.h>
11851 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11852 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11853 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11854 int main () { int i; for (i = 0; i < 256; i++)
11855 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11856 exit (0); }
11857
11858 EOF
11859 if { (eval echo configure:11860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11860 then
11861 :
11862 else
11863 echo "configure: failed program was:" >&5
11864 cat conftest.$ac_ext >&5
11865 rm -fr conftest*
11866 ac_cv_header_stdc=no
11867 fi
11868 rm -fr conftest*
11869 fi
11870
11871 fi
11872 fi
11873
11874 echo "$ac_t""$ac_cv_header_stdc" 1>&6
11875 if test $ac_cv_header_stdc = yes; then
11876 cat >> confdefs.h <<\EOF
11877 #define STDC_HEADERS 1
11878 EOF
11879
11880 fi
11881
11882 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
11883 echo "configure:11884: checking for mode_t" >&5
11884 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11885 echo $ac_n "(cached) $ac_c" 1>&6
11886 else
11887 cat > conftest.$ac_ext <<EOF
11888 #line 11889 "configure"
11889 #include "confdefs.h"
11890 #include <sys/types.h>
11891 #if STDC_HEADERS
11892 #include <stdlib.h>
11893 #include <stddef.h>
11894 #endif
11895 EOF
11896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11897 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11898 rm -rf conftest*
11899 ac_cv_type_mode_t=yes
11900 else
11901 rm -rf conftest*
11902 ac_cv_type_mode_t=no
11903 fi
11904 rm -f conftest*
11905
11906 fi
11907 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11908 if test $ac_cv_type_mode_t = no; then
11909 cat >> confdefs.h <<\EOF
11910 #define mode_t int
11911 EOF
11912
11913 fi
11914
11915 echo $ac_n "checking for off_t""... $ac_c" 1>&6
11916 echo "configure:11917: checking for off_t" >&5
11917 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11918 echo $ac_n "(cached) $ac_c" 1>&6
11919 else
11920 cat > conftest.$ac_ext <<EOF
11921 #line 11922 "configure"
11922 #include "confdefs.h"
11923 #include <sys/types.h>
11924 #if STDC_HEADERS
11925 #include <stdlib.h>
11926 #include <stddef.h>
11927 #endif
11928 EOF
11929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11930 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11931 rm -rf conftest*
11932 ac_cv_type_off_t=yes
11933 else
11934 rm -rf conftest*
11935 ac_cv_type_off_t=no
11936 fi
11937 rm -f conftest*
11938
11939 fi
11940 echo "$ac_t""$ac_cv_type_off_t" 1>&6
11941 if test $ac_cv_type_off_t = no; then
11942 cat >> confdefs.h <<\EOF
11943 #define off_t long
11944 EOF
11945
11946 fi
11947
11948 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
11949 echo "configure:11950: checking for pid_t" >&5
11950 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11951 echo $ac_n "(cached) $ac_c" 1>&6
11952 else
11953 cat > conftest.$ac_ext <<EOF
11954 #line 11955 "configure"
11955 #include "confdefs.h"
11956 #include <sys/types.h>
11957 #if STDC_HEADERS
11958 #include <stdlib.h>
11959 #include <stddef.h>
11960 #endif
11961 EOF
11962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11963 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11964 rm -rf conftest*
11965 ac_cv_type_pid_t=yes
11966 else
11967 rm -rf conftest*
11968 ac_cv_type_pid_t=no
11969 fi
11970 rm -f conftest*
11971
11972 fi
11973 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11974 if test $ac_cv_type_pid_t = no; then
11975 cat >> confdefs.h <<\EOF
11976 #define pid_t int
11977 EOF
11978
11979 fi
11980
11981 echo $ac_n "checking for size_t""... $ac_c" 1>&6
11982 echo "configure:11983: checking for size_t" >&5
11983 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11984 echo $ac_n "(cached) $ac_c" 1>&6
11985 else
11986 cat > conftest.$ac_ext <<EOF
11987 #line 11988 "configure"
11988 #include "confdefs.h"
11989 #include <sys/types.h>
11990 #if STDC_HEADERS
11991 #include <stdlib.h>
11992 #include <stddef.h>
11993 #endif
11994 EOF
11995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11996 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11997 rm -rf conftest*
11998 ac_cv_type_size_t=yes
11999 else
12000 rm -rf conftest*
12001 ac_cv_type_size_t=no
12002 fi
12003 rm -f conftest*
12004
12005 fi
12006 echo "$ac_t""$ac_cv_type_size_t" 1>&6
12007 if test $ac_cv_type_size_t = no; then
12008 cat >> confdefs.h <<\EOF
12009 #define size_t unsigned
12010 EOF
12011
12012 fi
12013
12014 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
12015 echo "configure:12016: checking for uid_t in sys/types.h" >&5
12016 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
12017 echo $ac_n "(cached) $ac_c" 1>&6
12018 else
12019 cat > conftest.$ac_ext <<EOF
12020 #line 12021 "configure"
12021 #include "confdefs.h"
12022 #include <sys/types.h>
12023 EOF
12024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12025 egrep "uid_t" >/dev/null 2>&1; then
12026 rm -rf conftest*
12027 ac_cv_type_uid_t=yes
12028 else
12029 rm -rf conftest*
12030 ac_cv_type_uid_t=no
12031 fi
12032 rm -f conftest*
12033
12034 fi
12035
12036 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
12037 if test $ac_cv_type_uid_t = no; then
12038 cat >> confdefs.h <<\EOF
12039 #define uid_t int
12040 EOF
12041
12042 cat >> confdefs.h <<\EOF
12043 #define gid_t int
12044 EOF
12045
12046 fi
12047
12048
12049 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
12050 echo "configure:12051: checking for wchar_t" >&5
12051 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
12052 echo $ac_n "(cached) $ac_c" 1>&6
12053 else
12054
12055 cat > conftest.$ac_ext <<EOF
12056 #line 12057 "configure"
12057 #include "confdefs.h"
12058 #include <wchar.h>
12059 int main() {
12060
12061 wchar_t wc, *ws;
12062 wc = L'a';
12063 ws = L"Hello, world!";
12064
12065 ; return 0; }
12066 EOF
12067 if { (eval echo configure:12068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12068 rm -rf conftest*
12069 wx_cv_type_wchar_t=yes
12070 else
12071 echo "configure: failed program was:" >&5
12072 cat conftest.$ac_ext >&5
12073 rm -rf conftest*
12074 cat > conftest.$ac_ext <<EOF
12075 #line 12076 "configure"
12076 #include "confdefs.h"
12077 #include <stdlib.h>
12078 int main() {
12079
12080 wchar_t wc, *ws;
12081 wc = L'a';
12082 ws = L"Hello, world!";
12083
12084 ; return 0; }
12085 EOF
12086 if { (eval echo configure:12087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12087 rm -rf conftest*
12088 wx_cv_type_wchar_t=yes
12089 else
12090 echo "configure: failed program was:" >&5
12091 cat conftest.$ac_ext >&5
12092 rm -rf conftest*
12093 wx_cv_type_wchar_t=no
12094 fi
12095 rm -f conftest*
12096
12097 fi
12098 rm -f conftest*
12099
12100 fi
12101
12102 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
12103
12104 if test "$wx_cv_type_wchar_t" = "yes"; then
12105 cat >> confdefs.h <<\EOF
12106 #define wxUSE_WCHAR_T 1
12107 EOF
12108
12109 fi
12110
12111
12112 ac_ext=C
12113 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12114 ac_cpp='$CXXCPP $CPPFLAGS'
12115 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12116 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12117 cross_compiling=$ac_cv_prog_cxx_cross
12118
12119 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
12120 echo "configure:12121: checking if size_t is unsigned int" >&5
12121 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
12122 echo $ac_n "(cached) $ac_c" 1>&6
12123 else
12124 cat > conftest.$ac_ext <<EOF
12125 #line 12126 "configure"
12126 #include "confdefs.h"
12127 #include <stddef.h>
12128 int main() {
12129
12130 return 0; }
12131
12132 struct Foo { void foo(size_t); void foo(unsigned int); };
12133
12134 int bar() {
12135
12136 ; return 0; }
12137 EOF
12138 if { (eval echo configure:12139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12139 rm -rf conftest*
12140 wx_cv_size_t_is_uint=no
12141 else
12142 echo "configure: failed program was:" >&5
12143 cat conftest.$ac_ext >&5
12144 rm -rf conftest*
12145 wx_cv_size_t_is_uint=yes
12146
12147 fi
12148 rm -f conftest*
12149
12150 fi
12151
12152 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
12153
12154 if test "$wx_cv_size_t_is_uint" = "yes"; then
12155 cat >> confdefs.h <<\EOF
12156 #define wxSIZE_T_IS_UINT 1
12157 EOF
12158
12159 else
12160 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
12161 echo "configure:12162: checking if size_t is unsigned long" >&5
12162 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
12163 echo $ac_n "(cached) $ac_c" 1>&6
12164 else
12165 cat > conftest.$ac_ext <<EOF
12166 #line 12167 "configure"
12167 #include "confdefs.h"
12168 #include <stddef.h>
12169 int main() {
12170
12171 return 0; }
12172
12173 struct Foo { void foo(size_t); void foo(unsigned long); };
12174
12175 int bar() {
12176
12177 ; return 0; }
12178 EOF
12179 if { (eval echo configure:12180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12180 rm -rf conftest*
12181 wx_cv_size_t_is_ulong=no
12182 else
12183 echo "configure: failed program was:" >&5
12184 cat conftest.$ac_ext >&5
12185 rm -rf conftest*
12186 wx_cv_size_t_is_ulong=yes
12187
12188 fi
12189 rm -f conftest*
12190
12191 fi
12192
12193 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
12194
12195 if test "$wx_cv_size_t_is_ulong" = "yes"; then
12196 cat >> confdefs.h <<\EOF
12197 #define wxSIZE_T_IS_ULONG 1
12198 EOF
12199
12200 fi
12201 fi
12202
12203 ac_ext=c
12204 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12205 ac_cpp='$CPP $CPPFLAGS'
12206 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12207 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12208 cross_compiling=$ac_cv_prog_cc_cross
12209
12210
12211
12212 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
12213 echo "configure:12214: checking for pw_gecos in struct passwd" >&5
12214 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
12215 echo $ac_n "(cached) $ac_c" 1>&6
12216 else
12217
12218 cat > conftest.$ac_ext <<EOF
12219 #line 12220 "configure"
12220 #include "confdefs.h"
12221 #include <pwd.h>
12222 int main() {
12223
12224 char *p;
12225 struct passwd *pw;
12226 p = pw->pw_gecos;
12227
12228 ; return 0; }
12229 EOF
12230 if { (eval echo configure:12231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12231 rm -rf conftest*
12232
12233 wx_cv_struct_pw_gecos=yes
12234
12235 else
12236 echo "configure: failed program was:" >&5
12237 cat conftest.$ac_ext >&5
12238 rm -rf conftest*
12239
12240 wx_cv_struct_pw_gecos=no
12241
12242
12243 fi
12244 rm -f conftest*
12245
12246
12247 fi
12248
12249 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
12250
12251 if test "$wx_cv_struct_pw_gecos" = "yes"; then
12252 cat >> confdefs.h <<\EOF
12253 #define HAVE_PW_GECOS 1
12254 EOF
12255
12256 fi
12257
12258
12259 echo $ac_n "checking for working const""... $ac_c" 1>&6
12260 echo "configure:12261: checking for working const" >&5
12261 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
12262 echo $ac_n "(cached) $ac_c" 1>&6
12263 else
12264 cat > conftest.$ac_ext <<EOF
12265 #line 12266 "configure"
12266 #include "confdefs.h"
12267
12268 int main() {
12269
12270 /* Ultrix mips cc rejects this. */
12271 typedef int charset[2]; const charset x;
12272 /* SunOS 4.1.1 cc rejects this. */
12273 char const *const *ccp;
12274 char **p;
12275 /* NEC SVR4.0.2 mips cc rejects this. */
12276 struct point {int x, y;};
12277 static struct point const zero = {0,0};
12278 /* AIX XL C 1.02.0.0 rejects this.
12279 It does not let you subtract one const X* pointer from another in an arm
12280 of an if-expression whose if-part is not a constant expression */
12281 const char *g = "string";
12282 ccp = &g + (g ? g-g : 0);
12283 /* HPUX 7.0 cc rejects these. */
12284 ++ccp;
12285 p = (char**) ccp;
12286 ccp = (char const *const *) p;
12287 { /* SCO 3.2v4 cc rejects this. */
12288 char *t;
12289 char const *s = 0 ? (char *) 0 : (char const *) 0;
12290
12291 *t++ = 0;
12292 }
12293 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12294 int x[] = {25, 17};
12295 const int *foo = &x[0];
12296 ++foo;
12297 }
12298 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12299 typedef const int *iptr;
12300 iptr p = 0;
12301 ++p;
12302 }
12303 { /* AIX XL C 1.02.0.0 rejects this saying
12304 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12305 struct s { int j; const int *ap[3]; };
12306 struct s *b; b->j = 5;
12307 }
12308 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12309 const int foo = 10;
12310 }
12311
12312 ; return 0; }
12313 EOF
12314 if { (eval echo configure:12315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12315 rm -rf conftest*
12316 ac_cv_c_const=yes
12317 else
12318 echo "configure: failed program was:" >&5
12319 cat conftest.$ac_ext >&5
12320 rm -rf conftest*
12321 ac_cv_c_const=no
12322 fi
12323 rm -f conftest*
12324 fi
12325
12326 echo "$ac_t""$ac_cv_c_const" 1>&6
12327 if test $ac_cv_c_const = no; then
12328 cat >> confdefs.h <<\EOF
12329 #define const
12330 EOF
12331
12332 fi
12333
12334 echo $ac_n "checking for inline""... $ac_c" 1>&6
12335 echo "configure:12336: checking for inline" >&5
12336 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
12337 echo $ac_n "(cached) $ac_c" 1>&6
12338 else
12339 ac_cv_c_inline=no
12340 for ac_kw in inline __inline__ __inline; do
12341 cat > conftest.$ac_ext <<EOF
12342 #line 12343 "configure"
12343 #include "confdefs.h"
12344
12345 int main() {
12346 } $ac_kw foo() {
12347 ; return 0; }
12348 EOF
12349 if { (eval echo configure:12350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12350 rm -rf conftest*
12351 ac_cv_c_inline=$ac_kw; break
12352 else
12353 echo "configure: failed program was:" >&5
12354 cat conftest.$ac_ext >&5
12355 fi
12356 rm -f conftest*
12357 done
12358
12359 fi
12360
12361 echo "$ac_t""$ac_cv_c_inline" 1>&6
12362 case "$ac_cv_c_inline" in
12363 inline | yes) ;;
12364 no) cat >> confdefs.h <<\EOF
12365 #define inline
12366 EOF
12367 ;;
12368 *) cat >> confdefs.h <<EOF
12369 #define inline $ac_cv_c_inline
12370 EOF
12371 ;;
12372 esac
12373
12374
12375 echo $ac_n "checking size of char""... $ac_c" 1>&6
12376 echo "configure:12377: checking size of char" >&5
12377 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
12378 echo $ac_n "(cached) $ac_c" 1>&6
12379 else
12380 if test "$cross_compiling" = yes; then
12381 ac_cv_sizeof_char=1
12382 else
12383 cat > conftest.$ac_ext <<EOF
12384 #line 12385 "configure"
12385 #include "confdefs.h"
12386 #include <stdio.h>
12387 #include <sys/types.h>
12388 main()
12389 {
12390 FILE *f=fopen("conftestval", "w");
12391 if (!f) exit(1);
12392 fprintf(f, "%d\n", sizeof(char));
12393 exit(0);
12394 }
12395 EOF
12396 if { (eval echo configure:12397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12397 then
12398 ac_cv_sizeof_char=`cat conftestval`
12399 else
12400 echo "configure: failed program was:" >&5
12401 cat conftest.$ac_ext >&5
12402 rm -fr conftest*
12403 ac_cv_sizeof_char=0
12404 fi
12405 rm -fr conftest*
12406 fi
12407
12408 fi
12409 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
12410 cat >> confdefs.h <<EOF
12411 #define SIZEOF_CHAR $ac_cv_sizeof_char
12412 EOF
12413
12414
12415 echo $ac_n "checking size of short""... $ac_c" 1>&6
12416 echo "configure:12417: checking size of short" >&5
12417 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
12418 echo $ac_n "(cached) $ac_c" 1>&6
12419 else
12420 if test "$cross_compiling" = yes; then
12421 ac_cv_sizeof_short=2
12422 else
12423 cat > conftest.$ac_ext <<EOF
12424 #line 12425 "configure"
12425 #include "confdefs.h"
12426 #include <stdio.h>
12427 #include <sys/types.h>
12428 main()
12429 {
12430 FILE *f=fopen("conftestval", "w");
12431 if (!f) exit(1);
12432 fprintf(f, "%d\n", sizeof(short));
12433 exit(0);
12434 }
12435 EOF
12436 if { (eval echo configure:12437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12437 then
12438 ac_cv_sizeof_short=`cat conftestval`
12439 else
12440 echo "configure: failed program was:" >&5
12441 cat conftest.$ac_ext >&5
12442 rm -fr conftest*
12443 ac_cv_sizeof_short=0
12444 fi
12445 rm -fr conftest*
12446 fi
12447
12448 fi
12449 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
12450 cat >> confdefs.h <<EOF
12451 #define SIZEOF_SHORT $ac_cv_sizeof_short
12452 EOF
12453
12454
12455 echo $ac_n "checking size of int *""... $ac_c" 1>&6
12456 echo "configure:12457: checking size of int *" >&5
12457 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
12458 echo $ac_n "(cached) $ac_c" 1>&6
12459 else
12460 if test "$cross_compiling" = yes; then
12461 ac_cv_sizeof_int_p=4
12462 else
12463 cat > conftest.$ac_ext <<EOF
12464 #line 12465 "configure"
12465 #include "confdefs.h"
12466 #include <stdio.h>
12467 #include <sys/types.h>
12468 main()
12469 {
12470 FILE *f=fopen("conftestval", "w");
12471 if (!f) exit(1);
12472 fprintf(f, "%d\n", sizeof(int *));
12473 exit(0);
12474 }
12475 EOF
12476 if { (eval echo configure:12477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12477 then
12478 ac_cv_sizeof_int_p=`cat conftestval`
12479 else
12480 echo "configure: failed program was:" >&5
12481 cat conftest.$ac_ext >&5
12482 rm -fr conftest*
12483 ac_cv_sizeof_int_p=0
12484 fi
12485 rm -fr conftest*
12486 fi
12487
12488 fi
12489 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
12490 cat >> confdefs.h <<EOF
12491 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
12492 EOF
12493
12494
12495 echo $ac_n "checking size of int""... $ac_c" 1>&6
12496 echo "configure:12497: checking size of int" >&5
12497 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
12498 echo $ac_n "(cached) $ac_c" 1>&6
12499 else
12500 if test "$cross_compiling" = yes; then
12501 ac_cv_sizeof_int=4
12502 else
12503 cat > conftest.$ac_ext <<EOF
12504 #line 12505 "configure"
12505 #include "confdefs.h"
12506 #include <stdio.h>
12507 #include <sys/types.h>
12508 main()
12509 {
12510 FILE *f=fopen("conftestval", "w");
12511 if (!f) exit(1);
12512 fprintf(f, "%d\n", sizeof(int));
12513 exit(0);
12514 }
12515 EOF
12516 if { (eval echo configure:12517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12517 then
12518 ac_cv_sizeof_int=`cat conftestval`
12519 else
12520 echo "configure: failed program was:" >&5
12521 cat conftest.$ac_ext >&5
12522 rm -fr conftest*
12523 ac_cv_sizeof_int=0
12524 fi
12525 rm -fr conftest*
12526 fi
12527
12528 fi
12529 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
12530 cat >> confdefs.h <<EOF
12531 #define SIZEOF_INT $ac_cv_sizeof_int
12532 EOF
12533
12534
12535 echo $ac_n "checking size of long""... $ac_c" 1>&6
12536 echo "configure:12537: checking size of long" >&5
12537 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
12538 echo $ac_n "(cached) $ac_c" 1>&6
12539 else
12540 if test "$cross_compiling" = yes; then
12541 ac_cv_sizeof_long=4
12542 else
12543 cat > conftest.$ac_ext <<EOF
12544 #line 12545 "configure"
12545 #include "confdefs.h"
12546 #include <stdio.h>
12547 #include <sys/types.h>
12548 main()
12549 {
12550 FILE *f=fopen("conftestval", "w");
12551 if (!f) exit(1);
12552 fprintf(f, "%d\n", sizeof(long));
12553 exit(0);
12554 }
12555 EOF
12556 if { (eval echo configure:12557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12557 then
12558 ac_cv_sizeof_long=`cat conftestval`
12559 else
12560 echo "configure: failed program was:" >&5
12561 cat conftest.$ac_ext >&5
12562 rm -fr conftest*
12563 ac_cv_sizeof_long=0
12564 fi
12565 rm -fr conftest*
12566 fi
12567
12568 fi
12569 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
12570 cat >> confdefs.h <<EOF
12571 #define SIZEOF_LONG $ac_cv_sizeof_long
12572 EOF
12573
12574
12575 echo $ac_n "checking size of long long""... $ac_c" 1>&6
12576 echo "configure:12577: checking size of long long" >&5
12577 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
12578 echo $ac_n "(cached) $ac_c" 1>&6
12579 else
12580 if test "$cross_compiling" = yes; then
12581 ac_cv_sizeof_long_long=0
12582 else
12583 cat > conftest.$ac_ext <<EOF
12584 #line 12585 "configure"
12585 #include "confdefs.h"
12586 #include <stdio.h>
12587 #include <sys/types.h>
12588 main()
12589 {
12590 FILE *f=fopen("conftestval", "w");
12591 if (!f) exit(1);
12592 fprintf(f, "%d\n", sizeof(long long));
12593 exit(0);
12594 }
12595 EOF
12596 if { (eval echo configure:12597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12597 then
12598 ac_cv_sizeof_long_long=`cat conftestval`
12599 else
12600 echo "configure: failed program was:" >&5
12601 cat conftest.$ac_ext >&5
12602 rm -fr conftest*
12603 ac_cv_sizeof_long_long=0
12604 fi
12605 rm -fr conftest*
12606 fi
12607
12608 fi
12609 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
12610 cat >> confdefs.h <<EOF
12611 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12612 EOF
12613
12614
12615
12616 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
12617 echo "configure:12618: checking size of wchar_t" >&5
12618 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
12619 echo $ac_n "(cached) $ac_c" 1>&6
12620 else
12621
12622 if test "$cross_compiling" = yes; then
12623 wx_cv_sizeof_wchar_t=4
12624
12625 else
12626 cat > conftest.$ac_ext <<EOF
12627 #line 12628 "configure"
12628 #include "confdefs.h"
12629
12630 #ifdef HAVE_WCHAR_H
12631 # include <wchar.h>
12632 #endif
12633 #ifdef HAVE_STDLIB_H
12634 # include <stdlib.h>
12635 #endif
12636 #include <stdio.h>
12637 int main()
12638 {
12639 FILE *f=fopen("conftestval", "w");
12640 if (!f) exit(1);
12641 fprintf(f, "%i", sizeof(wchar_t));
12642 exit(0);
12643 }
12644
12645 EOF
12646 if { (eval echo configure:12647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12647 then
12648 wx_cv_sizeof_wchar_t=`cat conftestval`
12649 else
12650 echo "configure: failed program was:" >&5
12651 cat conftest.$ac_ext >&5
12652 rm -fr conftest*
12653 wx_cv_sizeof_wchar_t=0
12654 fi
12655 rm -fr conftest*
12656 fi
12657
12658
12659 fi
12660
12661 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
12662
12663 cat >> confdefs.h <<EOF
12664 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
12665 EOF
12666
12667
12668 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
12669 echo "configure:12670: checking whether byte ordering is bigendian" >&5
12670 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
12671 echo $ac_n "(cached) $ac_c" 1>&6
12672 else
12673 ac_cv_c_bigendian=unknown
12674 # See if sys/param.h defines the BYTE_ORDER macro.
12675 cat > conftest.$ac_ext <<EOF
12676 #line 12677 "configure"
12677 #include "confdefs.h"
12678 #include <sys/types.h>
12679 #include <sys/param.h>
12680 int main() {
12681
12682 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12683 bogus endian macros
12684 #endif
12685 ; return 0; }
12686 EOF
12687 if { (eval echo configure:12688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12688 rm -rf conftest*
12689 # It does; now see whether it defined to BIG_ENDIAN or not.
12690 cat > conftest.$ac_ext <<EOF
12691 #line 12692 "configure"
12692 #include "confdefs.h"
12693 #include <sys/types.h>
12694 #include <sys/param.h>
12695 int main() {
12696
12697 #if BYTE_ORDER != BIG_ENDIAN
12698 not big endian
12699 #endif
12700 ; return 0; }
12701 EOF
12702 if { (eval echo configure:12703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12703 rm -rf conftest*
12704 ac_cv_c_bigendian=yes
12705 else
12706 echo "configure: failed program was:" >&5
12707 cat conftest.$ac_ext >&5
12708 rm -rf conftest*
12709 ac_cv_c_bigendian=no
12710 fi
12711 rm -f conftest*
12712 else
12713 echo "configure: failed program was:" >&5
12714 cat conftest.$ac_ext >&5
12715 fi
12716 rm -f conftest*
12717 if test $ac_cv_c_bigendian = unknown; then
12718 if test "$cross_compiling" = yes; then
12719 ac_cv_c_bigendian=unknown
12720 else
12721 cat > conftest.$ac_ext <<EOF
12722 #line 12723 "configure"
12723 #include "confdefs.h"
12724 main () {
12725 /* Are we little or big endian? From Harbison&Steele. */
12726 union
12727 {
12728 long l;
12729 char c[sizeof (long)];
12730 } u;
12731 u.l = 1;
12732 exit (u.c[sizeof (long) - 1] == 1);
12733 }
12734 EOF
12735 if { (eval echo configure:12736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12736 then
12737 ac_cv_c_bigendian=no
12738 else
12739 echo "configure: failed program was:" >&5
12740 cat conftest.$ac_ext >&5
12741 rm -fr conftest*
12742 ac_cv_c_bigendian=yes
12743 fi
12744 rm -fr conftest*
12745 fi
12746
12747 fi
12748 fi
12749
12750 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
12751 if test $ac_cv_c_bigendian = unknown; then
12752 echo "configure: warning: Assuming little-endian target machine - this may be overriden by adding the line "ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}" to config.cache file" 1>&2
12753 fi
12754 if test $ac_cv_c_bigendian = yes; then
12755 cat >> confdefs.h <<\EOF
12756 #define WORDS_BIGENDIAN 1
12757 EOF
12758
12759 fi
12760
12761
12762 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
12763 echo "configure:12764: checking how to run the C++ preprocessor" >&5
12764 if test -z "$CXXCPP"; then
12765 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
12766 echo $ac_n "(cached) $ac_c" 1>&6
12767 else
12768 ac_ext=C
12769 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12770 ac_cpp='$CXXCPP $CPPFLAGS'
12771 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12772 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12773 cross_compiling=$ac_cv_prog_cxx_cross
12774 CXXCPP="${CXX-g++} -E"
12775 cat > conftest.$ac_ext <<EOF
12776 #line 12777 "configure"
12777 #include "confdefs.h"
12778 #include <stdlib.h>
12779 EOF
12780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12781 { (eval echo configure:12782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12783 if test -z "$ac_err"; then
12784 :
12785 else
12786 echo "$ac_err" >&5
12787 echo "configure: failed program was:" >&5
12788 cat conftest.$ac_ext >&5
12789 rm -rf conftest*
12790 CXXCPP=/lib/cpp
12791 fi
12792 rm -f conftest*
12793 ac_cv_prog_CXXCPP="$CXXCPP"
12794 ac_ext=C
12795 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12796 ac_cpp='$CXXCPP $CPPFLAGS'
12797 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12798 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12799 cross_compiling=$ac_cv_prog_cxx_cross
12800 fi
12801 fi
12802 CXXCPP="$ac_cv_prog_CXXCPP"
12803 echo "$ac_t""$CXXCPP" 1>&6
12804
12805
12806 if test "$cross_compiling" = "yes"; then
12807 cat >> confdefs.h <<\EOF
12808 #define wxUSE_IOSTREAMH 1
12809 EOF
12810
12811 else
12812
12813 ac_ext=C
12814 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12815 ac_cpp='$CXXCPP $CPPFLAGS'
12816 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12817 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12818 cross_compiling=$ac_cv_prog_cxx_cross
12819
12820
12821 for ac_hdr in iostream
12822 do
12823 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12824 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12825 echo "configure:12826: checking for $ac_hdr" >&5
12826 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12827 echo $ac_n "(cached) $ac_c" 1>&6
12828 else
12829 cat > conftest.$ac_ext <<EOF
12830 #line 12831 "configure"
12831 #include "confdefs.h"
12832 #include <$ac_hdr>
12833 EOF
12834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12835 { (eval echo configure:12836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12837 if test -z "$ac_err"; then
12838 rm -rf conftest*
12839 eval "ac_cv_header_$ac_safe=yes"
12840 else
12841 echo "$ac_err" >&5
12842 echo "configure: failed program was:" >&5
12843 cat conftest.$ac_ext >&5
12844 rm -rf conftest*
12845 eval "ac_cv_header_$ac_safe=no"
12846 fi
12847 rm -f conftest*
12848 fi
12849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12850 echo "$ac_t""yes" 1>&6
12851 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12852 cat >> confdefs.h <<EOF
12853 #define $ac_tr_hdr 1
12854 EOF
12855
12856 else
12857 echo "$ac_t""no" 1>&6
12858 fi
12859 done
12860
12861
12862 if test "$ac_cv_header_iostream" = "yes" ; then
12863 :
12864 else
12865 cat >> confdefs.h <<\EOF
12866 #define wxUSE_IOSTREAMH 1
12867 EOF
12868
12869 fi
12870
12871 ac_ext=c
12872 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12873 ac_cpp='$CPP $CPPFLAGS'
12874 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12875 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12876 cross_compiling=$ac_cv_prog_cc_cross
12877
12878 fi
12879
12880
12881
12882 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
12883 echo "configure:12884: checking if C++ compiler supports bool" >&5
12884 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12885 echo $ac_n "(cached) $ac_c" 1>&6
12886 else
12887
12888
12889 ac_ext=C
12890 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12891 ac_cpp='$CXXCPP $CPPFLAGS'
12892 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12893 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12894 cross_compiling=$ac_cv_prog_cxx_cross
12895
12896
12897 cat > conftest.$ac_ext <<EOF
12898 #line 12899 "configure"
12899 #include "confdefs.h"
12900
12901
12902 int main() {
12903
12904 bool b = true;
12905
12906 return 0;
12907
12908 ; return 0; }
12909 EOF
12910 if { (eval echo configure:12911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12911 rm -rf conftest*
12912
12913 wx_cv_cpp_bool=yes
12914
12915 else
12916 echo "configure: failed program was:" >&5
12917 cat conftest.$ac_ext >&5
12918 rm -rf conftest*
12919
12920 wx_cv_cpp_bool=no
12921
12922
12923 fi
12924 rm -f conftest*
12925
12926 ac_ext=c
12927 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12928 ac_cpp='$CPP $CPPFLAGS'
12929 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12930 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12931 cross_compiling=$ac_cv_prog_cc_cross
12932
12933
12934 fi
12935
12936 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
12937
12938 if test "$wx_cv_cpp_bool" = "yes"; then
12939 cat >> confdefs.h <<\EOF
12940 #define HAVE_BOOL 1
12941 EOF
12942
12943 fi
12944
12945
12946
12947 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
12948 echo "configure:12949: checking for wcslen in -lc" >&5
12949 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12950 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12951 echo $ac_n "(cached) $ac_c" 1>&6
12952 else
12953 ac_save_LIBS="$LIBS"
12954 LIBS="-lc $LIBS"
12955 cat > conftest.$ac_ext <<EOF
12956 #line 12957 "configure"
12957 #include "confdefs.h"
12958 /* Override any gcc2 internal prototype to avoid an error. */
12959 /* We use char because int might match the return type of a gcc2
12960 builtin and then its argument prototype would still apply. */
12961 char wcslen();
12962
12963 int main() {
12964 wcslen()
12965 ; return 0; }
12966 EOF
12967 if { (eval echo configure:12968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12968 rm -rf conftest*
12969 eval "ac_cv_lib_$ac_lib_var=yes"
12970 else
12971 echo "configure: failed program was:" >&5
12972 cat conftest.$ac_ext >&5
12973 rm -rf conftest*
12974 eval "ac_cv_lib_$ac_lib_var=no"
12975 fi
12976 rm -f conftest*
12977 LIBS="$ac_save_LIBS"
12978
12979 fi
12980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12981 echo "$ac_t""yes" 1>&6
12982
12983 cat >> confdefs.h <<\EOF
12984 #define HAVE_WCSLEN 1
12985 EOF
12986
12987 WCHAR_LINK=""
12988
12989 else
12990 echo "$ac_t""no" 1>&6
12991
12992 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
12993 echo "configure:12994: checking for wcslen in -lw" >&5
12994 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12995 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12996 echo $ac_n "(cached) $ac_c" 1>&6
12997 else
12998 ac_save_LIBS="$LIBS"
12999 LIBS="-lw $LIBS"
13000 cat > conftest.$ac_ext <<EOF
13001 #line 13002 "configure"
13002 #include "confdefs.h"
13003 /* Override any gcc2 internal prototype to avoid an error. */
13004 /* We use char because int might match the return type of a gcc2
13005 builtin and then its argument prototype would still apply. */
13006 char wcslen();
13007
13008 int main() {
13009 wcslen()
13010 ; return 0; }
13011 EOF
13012 if { (eval echo configure:13013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13013 rm -rf conftest*
13014 eval "ac_cv_lib_$ac_lib_var=yes"
13015 else
13016 echo "configure: failed program was:" >&5
13017 cat conftest.$ac_ext >&5
13018 rm -rf conftest*
13019 eval "ac_cv_lib_$ac_lib_var=no"
13020 fi
13021 rm -f conftest*
13022 LIBS="$ac_save_LIBS"
13023
13024 fi
13025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13026 echo "$ac_t""yes" 1>&6
13027
13028 cat >> confdefs.h <<\EOF
13029 #define HAVE_WCSLEN 1
13030 EOF
13031
13032 WCHAR_LINK="-lw"
13033
13034 else
13035 echo "$ac_t""no" 1>&6
13036
13037 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
13038 echo "configure:13039: checking for wcslen in -lmsvcrt" >&5
13039 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
13040 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13041 echo $ac_n "(cached) $ac_c" 1>&6
13042 else
13043 ac_save_LIBS="$LIBS"
13044 LIBS="-lmsvcrt $LIBS"
13045 cat > conftest.$ac_ext <<EOF
13046 #line 13047 "configure"
13047 #include "confdefs.h"
13048 /* Override any gcc2 internal prototype to avoid an error. */
13049 /* We use char because int might match the return type of a gcc2
13050 builtin and then its argument prototype would still apply. */
13051 char wcslen();
13052
13053 int main() {
13054 wcslen()
13055 ; return 0; }
13056 EOF
13057 if { (eval echo configure:13058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13058 rm -rf conftest*
13059 eval "ac_cv_lib_$ac_lib_var=yes"
13060 else
13061 echo "configure: failed program was:" >&5
13062 cat conftest.$ac_ext >&5
13063 rm -rf conftest*
13064 eval "ac_cv_lib_$ac_lib_var=no"
13065 fi
13066 rm -f conftest*
13067 LIBS="$ac_save_LIBS"
13068
13069 fi
13070 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13071 echo "$ac_t""yes" 1>&6
13072
13073 cat >> confdefs.h <<\EOF
13074 #define HAVE_WCSLEN 1
13075 EOF
13076
13077 WCHAR_LINK=""
13078
13079 else
13080 echo "$ac_t""no" 1>&6
13081 fi
13082
13083
13084 fi
13085
13086
13087 fi
13088
13089
13090 for ac_func in wcsrtombs
13091 do
13092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13093 echo "configure:13094: checking for $ac_func" >&5
13094 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13095 echo $ac_n "(cached) $ac_c" 1>&6
13096 else
13097 cat > conftest.$ac_ext <<EOF
13098 #line 13099 "configure"
13099 #include "confdefs.h"
13100 /* System header to define __stub macros and hopefully few prototypes,
13101 which can conflict with char $ac_func(); below. */
13102 #include <assert.h>
13103 /* Override any gcc2 internal prototype to avoid an error. */
13104 /* We use char because int might match the return type of a gcc2
13105 builtin and then its argument prototype would still apply. */
13106 char $ac_func();
13107
13108 int main() {
13109
13110 /* The GNU C library defines this for functions which it implements
13111 to always fail with ENOSYS. Some functions are actually named
13112 something starting with __ and the normal name is an alias. */
13113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13114 choke me
13115 #else
13116 $ac_func();
13117 #endif
13118
13119 ; return 0; }
13120 EOF
13121 if { (eval echo configure:13122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13122 rm -rf conftest*
13123 eval "ac_cv_func_$ac_func=yes"
13124 else
13125 echo "configure: failed program was:" >&5
13126 cat conftest.$ac_ext >&5
13127 rm -rf conftest*
13128 eval "ac_cv_func_$ac_func=no"
13129 fi
13130 rm -f conftest*
13131 fi
13132
13133 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13134 echo "$ac_t""yes" 1>&6
13135 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13136 cat >> confdefs.h <<EOF
13137 #define $ac_tr_func 1
13138 EOF
13139
13140 else
13141 echo "$ac_t""no" 1>&6
13142 fi
13143 done
13144
13145
13146 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
13147 echo "configure:13148: checking for vprintf" >&5
13148 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
13149 echo $ac_n "(cached) $ac_c" 1>&6
13150 else
13151 cat > conftest.$ac_ext <<EOF
13152 #line 13153 "configure"
13153 #include "confdefs.h"
13154 /* System header to define __stub macros and hopefully few prototypes,
13155 which can conflict with char vprintf(); below. */
13156 #include <assert.h>
13157 /* Override any gcc2 internal prototype to avoid an error. */
13158 /* We use char because int might match the return type of a gcc2
13159 builtin and then its argument prototype would still apply. */
13160 char vprintf();
13161
13162 int main() {
13163
13164 /* The GNU C library defines this for functions which it implements
13165 to always fail with ENOSYS. Some functions are actually named
13166 something starting with __ and the normal name is an alias. */
13167 #if defined (__stub_vprintf) || defined (__stub___vprintf)
13168 choke me
13169 #else
13170 vprintf();
13171 #endif
13172
13173 ; return 0; }
13174 EOF
13175 if { (eval echo configure:13176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13176 rm -rf conftest*
13177 eval "ac_cv_func_vprintf=yes"
13178 else
13179 echo "configure: failed program was:" >&5
13180 cat conftest.$ac_ext >&5
13181 rm -rf conftest*
13182 eval "ac_cv_func_vprintf=no"
13183 fi
13184 rm -f conftest*
13185 fi
13186
13187 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
13188 echo "$ac_t""yes" 1>&6
13189 cat >> confdefs.h <<\EOF
13190 #define HAVE_VPRINTF 1
13191 EOF
13192
13193 else
13194 echo "$ac_t""no" 1>&6
13195 fi
13196
13197 if test "$ac_cv_func_vprintf" != yes; then
13198 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
13199 echo "configure:13200: checking for _doprnt" >&5
13200 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
13201 echo $ac_n "(cached) $ac_c" 1>&6
13202 else
13203 cat > conftest.$ac_ext <<EOF
13204 #line 13205 "configure"
13205 #include "confdefs.h"
13206 /* System header to define __stub macros and hopefully few prototypes,
13207 which can conflict with char _doprnt(); below. */
13208 #include <assert.h>
13209 /* Override any gcc2 internal prototype to avoid an error. */
13210 /* We use char because int might match the return type of a gcc2
13211 builtin and then its argument prototype would still apply. */
13212 char _doprnt();
13213
13214 int main() {
13215
13216 /* The GNU C library defines this for functions which it implements
13217 to always fail with ENOSYS. Some functions are actually named
13218 something starting with __ and the normal name is an alias. */
13219 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13220 choke me
13221 #else
13222 _doprnt();
13223 #endif
13224
13225 ; return 0; }
13226 EOF
13227 if { (eval echo configure:13228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13228 rm -rf conftest*
13229 eval "ac_cv_func__doprnt=yes"
13230 else
13231 echo "configure: failed program was:" >&5
13232 cat conftest.$ac_ext >&5
13233 rm -rf conftest*
13234 eval "ac_cv_func__doprnt=no"
13235 fi
13236 rm -f conftest*
13237 fi
13238
13239 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
13240 echo "$ac_t""yes" 1>&6
13241 cat >> confdefs.h <<\EOF
13242 #define HAVE_DOPRNT 1
13243 EOF
13244
13245 else
13246 echo "$ac_t""no" 1>&6
13247 fi
13248
13249 fi
13250
13251
13252
13253
13254
13255
13256 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
13257 echo "configure:13258: checking for vsnprintf" >&5
13258 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
13259 echo $ac_n "(cached) $ac_c" 1>&6
13260 else
13261
13262 cat > conftest.$ac_ext <<EOF
13263 #line 13264 "configure"
13264 #include "confdefs.h"
13265
13266 #include <stdio.h>
13267 #include <stdarg.h>
13268
13269 int main() {
13270
13271 int wx_test_vsnprintf(const char *, ...);
13272
13273 wx_test_vsnprintf("%s");
13274 return 0;
13275 }
13276
13277 int wx_test_vsnprintf(const char *fmt, ...)
13278 {
13279 char *s;
13280
13281 va_list argp;
13282 va_start(argp, fmt);
13283 vsnprintf(s, 42, fmt, argp);
13284 va_end(argp);
13285
13286 ; return 0; }
13287 EOF
13288 if { (eval echo configure:13289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13289 rm -rf conftest*
13290
13291 wx_cv_func_vsnprintf=yes
13292
13293 else
13294 echo "configure: failed program was:" >&5
13295 cat conftest.$ac_ext >&5
13296 rm -rf conftest*
13297
13298 cat > conftest.$ac_ext <<EOF
13299 #line 13300 "configure"
13300 #include "confdefs.h"
13301
13302 #include <stdio.h>
13303 #include <stdarg.h>
13304
13305 int main() {
13306
13307 int wx_test_vsnprintf(const char *, ...);
13308
13309 wx_test_vsnprintf("%s");
13310 return 0;
13311 }
13312
13313 int wx_test_vsnprintf(const char *fmt, ...)
13314 {
13315 char *s;
13316
13317 va_list argp;
13318 va_start(argp, fmt);
13319 _vsnprintf(s, 42, fmt, argp);
13320 va_end(argp);
13321
13322 ; return 0; }
13323 EOF
13324 if { (eval echo configure:13325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13325 rm -rf conftest*
13326
13327 wx_cv_func_vsnprintf=yes
13328
13329 else
13330 echo "configure: failed program was:" >&5
13331 cat conftest.$ac_ext >&5
13332 rm -rf conftest*
13333
13334 wx_cv_func_vsnprintf=no
13335
13336 fi
13337 rm -f conftest*
13338
13339 fi
13340 rm -f conftest*
13341
13342 fi
13343
13344 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
13345
13346 if test "$wx_cv_func_vsnprintf" = yes; then
13347 cat >> confdefs.h <<\EOF
13348 #define HAVE_VSNPRINTF 1
13349 EOF
13350
13351 else
13352 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
13353 fi
13354
13355 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
13356 echo "configure:13357: checking for vsscanf" >&5
13357 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
13358 echo $ac_n "(cached) $ac_c" 1>&6
13359 else
13360
13361 cat > conftest.$ac_ext <<EOF
13362 #line 13363 "configure"
13363 #include "confdefs.h"
13364
13365 #include <stdio.h>
13366 #include <stdarg.h>
13367
13368 int main() {
13369
13370 int wx_test_vsscanf(const char *, ...);
13371
13372 wx_test_vsscanf("%d");
13373 return 0;
13374 }
13375
13376 int wx_test_vsscanf(const char *fmt, ...)
13377 {
13378 va_list argp;
13379 va_start(argp, fmt);
13380 vsscanf("42", fmt, argp);
13381 va_end(argp);
13382
13383 ; return 0; }
13384 EOF
13385 if { (eval echo configure:13386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13386 rm -rf conftest*
13387
13388 wx_cv_func_vsscanf=yes
13389
13390 else
13391 echo "configure: failed program was:" >&5
13392 cat conftest.$ac_ext >&5
13393 rm -rf conftest*
13394
13395 wx_cv_func_vsscanf=no
13396
13397 fi
13398 rm -f conftest*
13399
13400 fi
13401
13402 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
13403
13404 if test "$wx_cv_func_vsscanf" = yes; then
13405 cat >> confdefs.h <<\EOF
13406 #define HAVE_VSSCANF 1
13407 EOF
13408
13409 fi
13410
13411 if test "$TOOLKIT" != "MSW"; then
13412
13413
13414
13415 ac_ext=C
13416 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13417 ac_cpp='$CXXCPP $CPPFLAGS'
13418 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13419 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13420 cross_compiling=$ac_cv_prog_cxx_cross
13421
13422 echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
13423 echo "configure:13424: checking if iconv() takes char**" >&5
13424 if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
13425 echo $ac_n "(cached) $ac_c" 1>&6
13426 else
13427
13428 cat > conftest.$ac_ext <<EOF
13429 #line 13430 "configure"
13430 #include "confdefs.h"
13431 #include <iconv.h>
13432 int main() {
13433
13434 char **inbuf, **outbuf;
13435 iconv_t cd;
13436 size_t insz, outsz;
13437 iconv(cd, inbuf, &insz, outbuf, &outsz);
13438
13439 ; return 0; }
13440 EOF
13441 if { (eval echo configure:13442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13442 rm -rf conftest*
13443 wx_cv_iconv_takes_char=yes
13444 else
13445 echo "configure: failed program was:" >&5
13446 cat conftest.$ac_ext >&5
13447 rm -rf conftest*
13448 wx_cv_iconv_takes_char=no
13449 fi
13450 rm -f conftest*
13451
13452 fi
13453
13454 echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
13455 ac_ext=c
13456 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13457 ac_cpp='$CPP $CPPFLAGS'
13458 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13459 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13460 cross_compiling=$ac_cv_prog_cc_cross
13461
13462 if test "$wx_cv_iconv_takes_char" = yes ; then
13463 cat >> confdefs.h <<\EOF
13464 #define WX_ICONV_TAKES_CHAR 1
13465 EOF
13466
13467 fi
13468
13469
13470 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
13471 for ac_func in sigaction
13472 do
13473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13474 echo "configure:13475: checking for $ac_func" >&5
13475 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13476 echo $ac_n "(cached) $ac_c" 1>&6
13477 else
13478 cat > conftest.$ac_ext <<EOF
13479 #line 13480 "configure"
13480 #include "confdefs.h"
13481 /* System header to define __stub macros and hopefully few prototypes,
13482 which can conflict with char $ac_func(); below. */
13483 #include <assert.h>
13484 /* Override any gcc2 internal prototype to avoid an error. */
13485 /* We use char because int might match the return type of a gcc2
13486 builtin and then its argument prototype would still apply. */
13487 char $ac_func();
13488
13489 int main() {
13490
13491 /* The GNU C library defines this for functions which it implements
13492 to always fail with ENOSYS. Some functions are actually named
13493 something starting with __ and the normal name is an alias. */
13494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13495 choke me
13496 #else
13497 $ac_func();
13498 #endif
13499
13500 ; return 0; }
13501 EOF
13502 if { (eval echo configure:13503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13503 rm -rf conftest*
13504 eval "ac_cv_func_$ac_func=yes"
13505 else
13506 echo "configure: failed program was:" >&5
13507 cat conftest.$ac_ext >&5
13508 rm -rf conftest*
13509 eval "ac_cv_func_$ac_func=no"
13510 fi
13511 rm -f conftest*
13512 fi
13513
13514 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13515 echo "$ac_t""yes" 1>&6
13516 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13517 cat >> confdefs.h <<EOF
13518 #define $ac_tr_func 1
13519 EOF
13520
13521 else
13522 echo "$ac_t""no" 1>&6
13523 fi
13524 done
13525
13526
13527 if test "$ac_cv_func_sigaction" = "no"; then
13528 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
13529 wxUSE_ON_FATAL_EXCEPTION=no
13530 fi
13531
13532 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
13533
13534 ac_ext=C
13535 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13536 ac_cpp='$CXXCPP $CPPFLAGS'
13537 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13538 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13539 cross_compiling=$ac_cv_prog_cxx_cross
13540
13541
13542 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
13543 echo "configure:13544: checking for sa_handler type" >&5
13544 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
13545 echo $ac_n "(cached) $ac_c" 1>&6
13546 else
13547
13548 cat > conftest.$ac_ext <<EOF
13549 #line 13550 "configure"
13550 #include "confdefs.h"
13551 #include <signal.h>
13552 int main() {
13553
13554 extern void testSigHandler(int);
13555
13556 struct sigaction sa;
13557 sa.sa_handler = testSigHandler;
13558
13559 ; return 0; }
13560 EOF
13561 if { (eval echo configure:13562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13562 rm -rf conftest*
13563
13564 wx_cv_type_sa_handler=int
13565
13566 else
13567 echo "configure: failed program was:" >&5
13568 cat conftest.$ac_ext >&5
13569 rm -rf conftest*
13570
13571 wx_cv_type_sa_handler=void
13572
13573 fi
13574 rm -f conftest*
13575
13576 fi
13577
13578 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
13579
13580 ac_ext=c
13581 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13582 ac_cpp='$CPP $CPPFLAGS'
13583 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13584 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13585 cross_compiling=$ac_cv_prog_cc_cross
13586
13587
13588 cat >> confdefs.h <<EOF
13589 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
13590 EOF
13591
13592 fi
13593 fi
13594
13595 for ac_func in vfork
13596 do
13597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13598 echo "configure:13599: checking for $ac_func" >&5
13599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13600 echo $ac_n "(cached) $ac_c" 1>&6
13601 else
13602 cat > conftest.$ac_ext <<EOF
13603 #line 13604 "configure"
13604 #include "confdefs.h"
13605 /* System header to define __stub macros and hopefully few prototypes,
13606 which can conflict with char $ac_func(); below. */
13607 #include <assert.h>
13608 /* Override any gcc2 internal prototype to avoid an error. */
13609 /* We use char because int might match the return type of a gcc2
13610 builtin and then its argument prototype would still apply. */
13611 char $ac_func();
13612
13613 int main() {
13614
13615 /* The GNU C library defines this for functions which it implements
13616 to always fail with ENOSYS. Some functions are actually named
13617 something starting with __ and the normal name is an alias. */
13618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13619 choke me
13620 #else
13621 $ac_func();
13622 #endif
13623
13624 ; return 0; }
13625 EOF
13626 if { (eval echo configure:13627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13627 rm -rf conftest*
13628 eval "ac_cv_func_$ac_func=yes"
13629 else
13630 echo "configure: failed program was:" >&5
13631 cat conftest.$ac_ext >&5
13632 rm -rf conftest*
13633 eval "ac_cv_func_$ac_func=no"
13634 fi
13635 rm -f conftest*
13636 fi
13637
13638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13639 echo "$ac_t""yes" 1>&6
13640 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13641 cat >> confdefs.h <<EOF
13642 #define $ac_tr_func 1
13643 EOF
13644
13645 else
13646 echo "$ac_t""no" 1>&6
13647 fi
13648 done
13649
13650
13651 echo $ac_n "checking for statfs""... $ac_c" 1>&6
13652 echo "configure:13653: checking for statfs" >&5
13653 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
13654 echo $ac_n "(cached) $ac_c" 1>&6
13655 else
13656 cat > conftest.$ac_ext <<EOF
13657 #line 13658 "configure"
13658 #include "confdefs.h"
13659
13660 #ifdef __DARWIN__
13661 #include <sys/param.h>
13662 #include <sys/mount.h>
13663 #else
13664 #include <sys/vfs.h>
13665 #endif
13666
13667 int main() {
13668
13669 long l;
13670 struct statfs fs;
13671 statfs("/", &fs);
13672 l = fs.f_bsize;
13673 l += fs.f_blocks;
13674 l += fs.f_bavail;
13675
13676 ; return 0; }
13677 EOF
13678 if { (eval echo configure:13679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13679 rm -rf conftest*
13680
13681 wx_cv_func_statfs=yes
13682
13683 else
13684 echo "configure: failed program was:" >&5
13685 cat conftest.$ac_ext >&5
13686 rm -rf conftest*
13687
13688 wx_cv_func_statfs=no
13689
13690
13691 fi
13692 rm -f conftest*
13693
13694 fi
13695
13696 echo "$ac_t""$wx_cv_func_statfs" 1>&6
13697
13698 if test "$wx_cv_func_statfs" = "yes"; then
13699 cat >> confdefs.h <<\EOF
13700 #define HAVE_STATFS 1
13701 EOF
13702
13703 else
13704 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
13705 fi
13706
13707 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
13708 for ac_func in fcntl flock
13709 do
13710 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13711 echo "configure:13712: checking for $ac_func" >&5
13712 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13713 echo $ac_n "(cached) $ac_c" 1>&6
13714 else
13715 cat > conftest.$ac_ext <<EOF
13716 #line 13717 "configure"
13717 #include "confdefs.h"
13718 /* System header to define __stub macros and hopefully few prototypes,
13719 which can conflict with char $ac_func(); below. */
13720 #include <assert.h>
13721 /* Override any gcc2 internal prototype to avoid an error. */
13722 /* We use char because int might match the return type of a gcc2
13723 builtin and then its argument prototype would still apply. */
13724 char $ac_func();
13725
13726 int main() {
13727
13728 /* The GNU C library defines this for functions which it implements
13729 to always fail with ENOSYS. Some functions are actually named
13730 something starting with __ and the normal name is an alias. */
13731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13732 choke me
13733 #else
13734 $ac_func();
13735 #endif
13736
13737 ; return 0; }
13738 EOF
13739 if { (eval echo configure:13740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13740 rm -rf conftest*
13741 eval "ac_cv_func_$ac_func=yes"
13742 else
13743 echo "configure: failed program was:" >&5
13744 cat conftest.$ac_ext >&5
13745 rm -rf conftest*
13746 eval "ac_cv_func_$ac_func=no"
13747 fi
13748 rm -f conftest*
13749 fi
13750
13751 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13752 echo "$ac_t""yes" 1>&6
13753 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13754 cat >> confdefs.h <<EOF
13755 #define $ac_tr_func 1
13756 EOF
13757 break
13758 else
13759 echo "$ac_t""no" 1>&6
13760 fi
13761 done
13762
13763
13764 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
13765 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
13766 wxUSE_SNGLINST_CHECKER=no
13767 fi
13768 fi
13769
13770 for ac_func in timegm
13771 do
13772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13773 echo "configure:13774: checking for $ac_func" >&5
13774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13775 echo $ac_n "(cached) $ac_c" 1>&6
13776 else
13777 cat > conftest.$ac_ext <<EOF
13778 #line 13779 "configure"
13779 #include "confdefs.h"
13780 /* System header to define __stub macros and hopefully few prototypes,
13781 which can conflict with char $ac_func(); below. */
13782 #include <assert.h>
13783 /* Override any gcc2 internal prototype to avoid an error. */
13784 /* We use char because int might match the return type of a gcc2
13785 builtin and then its argument prototype would still apply. */
13786 char $ac_func();
13787
13788 int main() {
13789
13790 /* The GNU C library defines this for functions which it implements
13791 to always fail with ENOSYS. Some functions are actually named
13792 something starting with __ and the normal name is an alias. */
13793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13794 choke me
13795 #else
13796 $ac_func();
13797 #endif
13798
13799 ; return 0; }
13800 EOF
13801 if { (eval echo configure:13802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13802 rm -rf conftest*
13803 eval "ac_cv_func_$ac_func=yes"
13804 else
13805 echo "configure: failed program was:" >&5
13806 cat conftest.$ac_ext >&5
13807 rm -rf conftest*
13808 eval "ac_cv_func_$ac_func=no"
13809 fi
13810 rm -f conftest*
13811 fi
13812
13813 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13814 echo "$ac_t""yes" 1>&6
13815 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13816 cat >> confdefs.h <<EOF
13817 #define $ac_tr_func 1
13818 EOF
13819
13820 else
13821 echo "$ac_t""no" 1>&6
13822 fi
13823 done
13824
13825
13826 for ac_func in putenv setenv
13827 do
13828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13829 echo "configure:13830: checking for $ac_func" >&5
13830 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13831 echo $ac_n "(cached) $ac_c" 1>&6
13832 else
13833 cat > conftest.$ac_ext <<EOF
13834 #line 13835 "configure"
13835 #include "confdefs.h"
13836 /* System header to define __stub macros and hopefully few prototypes,
13837 which can conflict with char $ac_func(); below. */
13838 #include <assert.h>
13839 /* Override any gcc2 internal prototype to avoid an error. */
13840 /* We use char because int might match the return type of a gcc2
13841 builtin and then its argument prototype would still apply. */
13842 char $ac_func();
13843
13844 int main() {
13845
13846 /* The GNU C library defines this for functions which it implements
13847 to always fail with ENOSYS. Some functions are actually named
13848 something starting with __ and the normal name is an alias. */
13849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13850 choke me
13851 #else
13852 $ac_func();
13853 #endif
13854
13855 ; return 0; }
13856 EOF
13857 if { (eval echo configure:13858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13858 rm -rf conftest*
13859 eval "ac_cv_func_$ac_func=yes"
13860 else
13861 echo "configure: failed program was:" >&5
13862 cat conftest.$ac_ext >&5
13863 rm -rf conftest*
13864 eval "ac_cv_func_$ac_func=no"
13865 fi
13866 rm -f conftest*
13867 fi
13868
13869 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13870 echo "$ac_t""yes" 1>&6
13871 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13872 cat >> confdefs.h <<EOF
13873 #define $ac_tr_func 1
13874 EOF
13875 break
13876 else
13877 echo "$ac_t""no" 1>&6
13878 fi
13879 done
13880
13881
13882 HAVE_SOME_SLEEP_FUNC=0
13883 if test "$USE_BEOS" = 1; then
13884 cat >> confdefs.h <<\EOF
13885 #define HAVE_SLEEP 1
13886 EOF
13887
13888 HAVE_SOME_SLEEP_FUNC=1
13889 fi
13890
13891 if test "$USE_DARWIN" = 1; then
13892 cat >> confdefs.h <<\EOF
13893 #define HAVE_USLEEP 1
13894 EOF
13895
13896 HAVE_SOME_SLEEP_FUNC=1
13897 fi
13898
13899 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
13900 POSIX4_LINK=
13901 for ac_func in nanosleep
13902 do
13903 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13904 echo "configure:13905: checking for $ac_func" >&5
13905 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13906 echo $ac_n "(cached) $ac_c" 1>&6
13907 else
13908 cat > conftest.$ac_ext <<EOF
13909 #line 13910 "configure"
13910 #include "confdefs.h"
13911 /* System header to define __stub macros and hopefully few prototypes,
13912 which can conflict with char $ac_func(); below. */
13913 #include <assert.h>
13914 /* Override any gcc2 internal prototype to avoid an error. */
13915 /* We use char because int might match the return type of a gcc2
13916 builtin and then its argument prototype would still apply. */
13917 char $ac_func();
13918
13919 int main() {
13920
13921 /* The GNU C library defines this for functions which it implements
13922 to always fail with ENOSYS. Some functions are actually named
13923 something starting with __ and the normal name is an alias. */
13924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13925 choke me
13926 #else
13927 $ac_func();
13928 #endif
13929
13930 ; return 0; }
13931 EOF
13932 if { (eval echo configure:13933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13933 rm -rf conftest*
13934 eval "ac_cv_func_$ac_func=yes"
13935 else
13936 echo "configure: failed program was:" >&5
13937 cat conftest.$ac_ext >&5
13938 rm -rf conftest*
13939 eval "ac_cv_func_$ac_func=no"
13940 fi
13941 rm -f conftest*
13942 fi
13943
13944 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13945 echo "$ac_t""yes" 1>&6
13946 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13947 cat >> confdefs.h <<EOF
13948 #define $ac_tr_func 1
13949 EOF
13950 cat >> confdefs.h <<\EOF
13951 #define HAVE_NANOSLEEP 1
13952 EOF
13953
13954 else
13955 echo "$ac_t""no" 1>&6
13956 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
13957 echo "configure:13958: checking for nanosleep in -lposix4" >&5
13958 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
13959 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13960 echo $ac_n "(cached) $ac_c" 1>&6
13961 else
13962 ac_save_LIBS="$LIBS"
13963 LIBS="-lposix4 $LIBS"
13964 cat > conftest.$ac_ext <<EOF
13965 #line 13966 "configure"
13966 #include "confdefs.h"
13967 /* Override any gcc2 internal prototype to avoid an error. */
13968 /* We use char because int might match the return type of a gcc2
13969 builtin and then its argument prototype would still apply. */
13970 char nanosleep();
13971
13972 int main() {
13973 nanosleep()
13974 ; return 0; }
13975 EOF
13976 if { (eval echo configure:13977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13977 rm -rf conftest*
13978 eval "ac_cv_lib_$ac_lib_var=yes"
13979 else
13980 echo "configure: failed program was:" >&5
13981 cat conftest.$ac_ext >&5
13982 rm -rf conftest*
13983 eval "ac_cv_lib_$ac_lib_var=no"
13984 fi
13985 rm -f conftest*
13986 LIBS="$ac_save_LIBS"
13987
13988 fi
13989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13990 echo "$ac_t""yes" 1>&6
13991
13992 cat >> confdefs.h <<\EOF
13993 #define HAVE_NANOSLEEP 1
13994 EOF
13995
13996 POSIX4_LINK="-lposix4"
13997
13998 else
13999 echo "$ac_t""no" 1>&6
14000
14001 for ac_func in usleep
14002 do
14003 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14004 echo "configure:14005: checking for $ac_func" >&5
14005 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14006 echo $ac_n "(cached) $ac_c" 1>&6
14007 else
14008 cat > conftest.$ac_ext <<EOF
14009 #line 14010 "configure"
14010 #include "confdefs.h"
14011 /* System header to define __stub macros and hopefully few prototypes,
14012 which can conflict with char $ac_func(); below. */
14013 #include <assert.h>
14014 /* Override any gcc2 internal prototype to avoid an error. */
14015 /* We use char because int might match the return type of a gcc2
14016 builtin and then its argument prototype would still apply. */
14017 char $ac_func();
14018
14019 int main() {
14020
14021 /* The GNU C library defines this for functions which it implements
14022 to always fail with ENOSYS. Some functions are actually named
14023 something starting with __ and the normal name is an alias. */
14024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14025 choke me
14026 #else
14027 $ac_func();
14028 #endif
14029
14030 ; return 0; }
14031 EOF
14032 if { (eval echo configure:14033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14033 rm -rf conftest*
14034 eval "ac_cv_func_$ac_func=yes"
14035 else
14036 echo "configure: failed program was:" >&5
14037 cat conftest.$ac_ext >&5
14038 rm -rf conftest*
14039 eval "ac_cv_func_$ac_func=no"
14040 fi
14041 rm -f conftest*
14042 fi
14043
14044 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14045 echo "$ac_t""yes" 1>&6
14046 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14047 cat >> confdefs.h <<EOF
14048 #define $ac_tr_func 1
14049 EOF
14050 cat >> confdefs.h <<\EOF
14051 #define HAVE_USLEEP 1
14052 EOF
14053
14054 else
14055 echo "$ac_t""no" 1>&6
14056 echo "configure: warning: wxSleep() function will not work" 1>&2
14057
14058 fi
14059 done
14060
14061
14062
14063 fi
14064
14065
14066
14067 fi
14068 done
14069
14070 fi
14071
14072 for ac_func in uname gethostname
14073 do
14074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14075 echo "configure:14076: checking for $ac_func" >&5
14076 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14077 echo $ac_n "(cached) $ac_c" 1>&6
14078 else
14079 cat > conftest.$ac_ext <<EOF
14080 #line 14081 "configure"
14081 #include "confdefs.h"
14082 /* System header to define __stub macros and hopefully few prototypes,
14083 which can conflict with char $ac_func(); below. */
14084 #include <assert.h>
14085 /* Override any gcc2 internal prototype to avoid an error. */
14086 /* We use char because int might match the return type of a gcc2
14087 builtin and then its argument prototype would still apply. */
14088 char $ac_func();
14089
14090 int main() {
14091
14092 /* The GNU C library defines this for functions which it implements
14093 to always fail with ENOSYS. Some functions are actually named
14094 something starting with __ and the normal name is an alias. */
14095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14096 choke me
14097 #else
14098 $ac_func();
14099 #endif
14100
14101 ; return 0; }
14102 EOF
14103 if { (eval echo configure:14104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14104 rm -rf conftest*
14105 eval "ac_cv_func_$ac_func=yes"
14106 else
14107 echo "configure: failed program was:" >&5
14108 cat conftest.$ac_ext >&5
14109 rm -rf conftest*
14110 eval "ac_cv_func_$ac_func=no"
14111 fi
14112 rm -f conftest*
14113 fi
14114
14115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14116 echo "$ac_t""yes" 1>&6
14117 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14118 cat >> confdefs.h <<EOF
14119 #define $ac_tr_func 1
14120 EOF
14121 break
14122 else
14123 echo "$ac_t""no" 1>&6
14124 fi
14125 done
14126
14127
14128
14129 ac_ext=C
14130 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14131 ac_cpp='$CXXCPP $CPPFLAGS'
14132 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14133 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14134 cross_compiling=$ac_cv_prog_cxx_cross
14135
14136
14137 for ac_func in strtok_r
14138 do
14139 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14140 echo "configure:14141: checking for $ac_func" >&5
14141 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14142 echo $ac_n "(cached) $ac_c" 1>&6
14143 else
14144 cat > conftest.$ac_ext <<EOF
14145 #line 14146 "configure"
14146 #include "confdefs.h"
14147 /* System header to define __stub macros and hopefully few prototypes,
14148 which can conflict with char $ac_func(); below. */
14149 #include <assert.h>
14150 /* Override any gcc2 internal prototype to avoid an error. */
14151 #ifdef __cplusplus
14152 extern "C"
14153 #endif
14154 /* We use char because int might match the return type of a gcc2
14155 builtin and then its argument prototype would still apply. */
14156 char $ac_func();
14157
14158 int main() {
14159
14160 /* The GNU C library defines this for functions which it implements
14161 to always fail with ENOSYS. Some functions are actually named
14162 something starting with __ and the normal name is an alias. */
14163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14164 choke me
14165 #else
14166 $ac_func();
14167 #endif
14168
14169 ; return 0; }
14170 EOF
14171 if { (eval echo configure:14172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14172 rm -rf conftest*
14173 eval "ac_cv_func_$ac_func=yes"
14174 else
14175 echo "configure: failed program was:" >&5
14176 cat conftest.$ac_ext >&5
14177 rm -rf conftest*
14178 eval "ac_cv_func_$ac_func=no"
14179 fi
14180 rm -f conftest*
14181 fi
14182
14183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14184 echo "$ac_t""yes" 1>&6
14185 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14186 cat >> confdefs.h <<EOF
14187 #define $ac_tr_func 1
14188 EOF
14189
14190 else
14191 echo "$ac_t""no" 1>&6
14192 fi
14193 done
14194
14195
14196 ac_ext=c
14197 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14198 ac_cpp='$CPP $CPPFLAGS'
14199 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14200 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14201 cross_compiling=$ac_cv_prog_cc_cross
14202
14203
14204 INET_LINK=
14205 for ac_func in inet_addr
14206 do
14207 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14208 echo "configure:14209: checking for $ac_func" >&5
14209 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14210 echo $ac_n "(cached) $ac_c" 1>&6
14211 else
14212 cat > conftest.$ac_ext <<EOF
14213 #line 14214 "configure"
14214 #include "confdefs.h"
14215 /* System header to define __stub macros and hopefully few prototypes,
14216 which can conflict with char $ac_func(); below. */
14217 #include <assert.h>
14218 /* Override any gcc2 internal prototype to avoid an error. */
14219 /* We use char because int might match the return type of a gcc2
14220 builtin and then its argument prototype would still apply. */
14221 char $ac_func();
14222
14223 int main() {
14224
14225 /* The GNU C library defines this for functions which it implements
14226 to always fail with ENOSYS. Some functions are actually named
14227 something starting with __ and the normal name is an alias. */
14228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14229 choke me
14230 #else
14231 $ac_func();
14232 #endif
14233
14234 ; return 0; }
14235 EOF
14236 if { (eval echo configure:14237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14237 rm -rf conftest*
14238 eval "ac_cv_func_$ac_func=yes"
14239 else
14240 echo "configure: failed program was:" >&5
14241 cat conftest.$ac_ext >&5
14242 rm -rf conftest*
14243 eval "ac_cv_func_$ac_func=no"
14244 fi
14245 rm -f conftest*
14246 fi
14247
14248 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14249 echo "$ac_t""yes" 1>&6
14250 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14251 cat >> confdefs.h <<EOF
14252 #define $ac_tr_func 1
14253 EOF
14254 cat >> confdefs.h <<\EOF
14255 #define HAVE_INET_ADDR 1
14256 EOF
14257
14258 else
14259 echo "$ac_t""no" 1>&6
14260 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
14261 echo "configure:14262: checking for inet_addr in -lnsl" >&5
14262 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
14263 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14264 echo $ac_n "(cached) $ac_c" 1>&6
14265 else
14266 ac_save_LIBS="$LIBS"
14267 LIBS="-lnsl $LIBS"
14268 cat > conftest.$ac_ext <<EOF
14269 #line 14270 "configure"
14270 #include "confdefs.h"
14271 /* Override any gcc2 internal prototype to avoid an error. */
14272 /* We use char because int might match the return type of a gcc2
14273 builtin and then its argument prototype would still apply. */
14274 char inet_addr();
14275
14276 int main() {
14277 inet_addr()
14278 ; return 0; }
14279 EOF
14280 if { (eval echo configure:14281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14281 rm -rf conftest*
14282 eval "ac_cv_lib_$ac_lib_var=yes"
14283 else
14284 echo "configure: failed program was:" >&5
14285 cat conftest.$ac_ext >&5
14286 rm -rf conftest*
14287 eval "ac_cv_lib_$ac_lib_var=no"
14288 fi
14289 rm -f conftest*
14290 LIBS="$ac_save_LIBS"
14291
14292 fi
14293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14294 echo "$ac_t""yes" 1>&6
14295 INET_LINK="nsl"
14296 else
14297 echo "$ac_t""no" 1>&6
14298 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
14299 echo "configure:14300: checking for inet_addr in -lresolv" >&5
14300 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
14301 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14302 echo $ac_n "(cached) $ac_c" 1>&6
14303 else
14304 ac_save_LIBS="$LIBS"
14305 LIBS="-lresolv $LIBS"
14306 cat > conftest.$ac_ext <<EOF
14307 #line 14308 "configure"
14308 #include "confdefs.h"
14309 /* Override any gcc2 internal prototype to avoid an error. */
14310 /* We use char because int might match the return type of a gcc2
14311 builtin and then its argument prototype would still apply. */
14312 char inet_addr();
14313
14314 int main() {
14315 inet_addr()
14316 ; return 0; }
14317 EOF
14318 if { (eval echo configure:14319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14319 rm -rf conftest*
14320 eval "ac_cv_lib_$ac_lib_var=yes"
14321 else
14322 echo "configure: failed program was:" >&5
14323 cat conftest.$ac_ext >&5
14324 rm -rf conftest*
14325 eval "ac_cv_lib_$ac_lib_var=no"
14326 fi
14327 rm -f conftest*
14328 LIBS="$ac_save_LIBS"
14329
14330 fi
14331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14332 echo "$ac_t""yes" 1>&6
14333 INET_LINK="resolv"
14334
14335 else
14336 echo "$ac_t""no" 1>&6
14337 fi
14338
14339
14340 fi
14341
14342
14343
14344 fi
14345 done
14346
14347
14348 for ac_func in inet_aton
14349 do
14350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14351 echo "configure:14352: checking for $ac_func" >&5
14352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14353 echo $ac_n "(cached) $ac_c" 1>&6
14354 else
14355 cat > conftest.$ac_ext <<EOF
14356 #line 14357 "configure"
14357 #include "confdefs.h"
14358 /* System header to define __stub macros and hopefully few prototypes,
14359 which can conflict with char $ac_func(); below. */
14360 #include <assert.h>
14361 /* Override any gcc2 internal prototype to avoid an error. */
14362 /* We use char because int might match the return type of a gcc2
14363 builtin and then its argument prototype would still apply. */
14364 char $ac_func();
14365
14366 int main() {
14367
14368 /* The GNU C library defines this for functions which it implements
14369 to always fail with ENOSYS. Some functions are actually named
14370 something starting with __ and the normal name is an alias. */
14371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14372 choke me
14373 #else
14374 $ac_func();
14375 #endif
14376
14377 ; return 0; }
14378 EOF
14379 if { (eval echo configure:14380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14380 rm -rf conftest*
14381 eval "ac_cv_func_$ac_func=yes"
14382 else
14383 echo "configure: failed program was:" >&5
14384 cat conftest.$ac_ext >&5
14385 rm -rf conftest*
14386 eval "ac_cv_func_$ac_func=no"
14387 fi
14388 rm -f conftest*
14389 fi
14390
14391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14392 echo "$ac_t""yes" 1>&6
14393 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14394 cat >> confdefs.h <<EOF
14395 #define $ac_tr_func 1
14396 EOF
14397 cat >> confdefs.h <<\EOF
14398 #define HAVE_INET_ATON 1
14399 EOF
14400
14401 else
14402 echo "$ac_t""no" 1>&6
14403 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
14404 echo "configure:14405: checking for inet_aton in -l$INET_LINK" >&5
14405 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
14406 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14407 echo $ac_n "(cached) $ac_c" 1>&6
14408 else
14409 ac_save_LIBS="$LIBS"
14410 LIBS="-l$INET_LINK $LIBS"
14411 cat > conftest.$ac_ext <<EOF
14412 #line 14413 "configure"
14413 #include "confdefs.h"
14414 /* Override any gcc2 internal prototype to avoid an error. */
14415 /* We use char because int might match the return type of a gcc2
14416 builtin and then its argument prototype would still apply. */
14417 char inet_aton();
14418
14419 int main() {
14420 inet_aton()
14421 ; return 0; }
14422 EOF
14423 if { (eval echo configure:14424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14424 rm -rf conftest*
14425 eval "ac_cv_lib_$ac_lib_var=yes"
14426 else
14427 echo "configure: failed program was:" >&5
14428 cat conftest.$ac_ext >&5
14429 rm -rf conftest*
14430 eval "ac_cv_lib_$ac_lib_var=no"
14431 fi
14432 rm -f conftest*
14433 LIBS="$ac_save_LIBS"
14434
14435 fi
14436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14437 echo "$ac_t""yes" 1>&6
14438 cat >> confdefs.h <<\EOF
14439 #define HAVE_INET_ATON 1
14440 EOF
14441
14442 else
14443 echo "$ac_t""no" 1>&6
14444 fi
14445
14446
14447 fi
14448 done
14449
14450
14451 if test "x$INET_LINK" != "x"; then
14452 cat >> confdefs.h <<\EOF
14453 #define HAVE_INET_ADDR 1
14454 EOF
14455
14456 INET_LINK="-l$INET_LINK"
14457 fi
14458
14459 fi
14460
14461
14462 cat > confcache <<\EOF
14463 # This file is a shell script that caches the results of configure
14464 # tests run on this system so they can be shared between configure
14465 # scripts and configure runs. It is not useful on other systems.
14466 # If it contains results you don't want to keep, you may remove or edit it.
14467 #
14468 # By default, configure uses ./config.cache as the cache file,
14469 # creating it if it does not exist already. You can give configure
14470 # the --cache-file=FILE option to use a different cache file; that is
14471 # what configure does when it calls configure scripts in
14472 # subdirectories, so they share the cache.
14473 # Giving --cache-file=/dev/null disables caching, for debugging configure.
14474 # config.status only pays attention to the cache file if you give it the
14475 # --recheck option to rerun configure.
14476 #
14477 EOF
14478 # The following way of writing the cache mishandles newlines in values,
14479 # but we know of no workaround that is simple, portable, and efficient.
14480 # So, don't put newlines in cache variables' values.
14481 # Ultrix sh set writes to stderr and can't be redirected directly,
14482 # and sets the high bit in the cache file unless we assign to the vars.
14483 (set) 2>&1 |
14484 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14485 *ac_space=\ *)
14486 # `set' does not quote correctly, so add quotes (double-quote substitution
14487 # turns \\\\ into \\, and sed turns \\ into \).
14488 sed -n \
14489 -e "s/'/'\\\\''/g" \
14490 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14491 ;;
14492 *)
14493 # `set' quotes correctly as required by POSIX, so do not add quotes.
14494 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14495 ;;
14496 esac >> confcache
14497 if cmp -s $cache_file confcache; then
14498 :
14499 else
14500 if test -w $cache_file; then
14501 echo "updating cache $cache_file"
14502 cat confcache > $cache_file
14503 else
14504 echo "not updating unwritable cache $cache_file"
14505 fi
14506 fi
14507 rm -f confcache
14508
14509
14510
14511 if test "$TOOLKIT" != "MSW"; then
14512
14513
14514 THREADS_LINK=
14515 THREADS_OBJ=
14516 CODE_GEN_FLAGS=
14517 CODE_GEN_FLAGS_CXX=
14518
14519 if test "$wxUSE_THREADS" = "yes" ; then
14520 if test "$wxUSE_WINE" = 1 ; then
14521 echo "configure: warning: Threads are not supported under WINE" 1>&2
14522 wxUSE_THREADS="no"
14523 elif test "$USE_BEOS" = 1; then
14524 echo "configure: warning: BeOS threads are not yet supported" 1>&2
14525 wxUSE_THREADS="no"
14526 fi
14527 fi
14528
14529 if test "$wxUSE_THREADS" = "yes" ; then
14530
14531 if test "$USE_AIX" = 1; then
14532 THREADS_LIB=pthreads
14533 else
14534 THREADS_LIB=pthread
14535 fi
14536
14537 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
14538 echo "configure:14539: checking for pthread_create in -l$THREADS_LIB" >&5
14539 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
14540 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14541 echo $ac_n "(cached) $ac_c" 1>&6
14542 else
14543 ac_save_LIBS="$LIBS"
14544 LIBS="-l$THREADS_LIB $LIBS"
14545 cat > conftest.$ac_ext <<EOF
14546 #line 14547 "configure"
14547 #include "confdefs.h"
14548 /* Override any gcc2 internal prototype to avoid an error. */
14549 /* We use char because int might match the return type of a gcc2
14550 builtin and then its argument prototype would still apply. */
14551 char pthread_create();
14552
14553 int main() {
14554 pthread_create()
14555 ; return 0; }
14556 EOF
14557 if { (eval echo configure:14558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14558 rm -rf conftest*
14559 eval "ac_cv_lib_$ac_lib_var=yes"
14560 else
14561 echo "configure: failed program was:" >&5
14562 cat conftest.$ac_ext >&5
14563 rm -rf conftest*
14564 eval "ac_cv_lib_$ac_lib_var=no"
14565 fi
14566 rm -f conftest*
14567 LIBS="$ac_save_LIBS"
14568
14569 fi
14570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14571 echo "$ac_t""yes" 1>&6
14572
14573 THREADS_OBJ="threadpsx.lo"
14574 THREADS_LINK=$THREADS_LIB
14575
14576 else
14577 echo "$ac_t""no" 1>&6
14578
14579 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
14580 echo "configure:14581: checking for pthread_create in -lc_r" >&5
14581 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
14582 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14583 echo $ac_n "(cached) $ac_c" 1>&6
14584 else
14585 ac_save_LIBS="$LIBS"
14586 LIBS="-lc_r $LIBS"
14587 cat > conftest.$ac_ext <<EOF
14588 #line 14589 "configure"
14589 #include "confdefs.h"
14590 /* Override any gcc2 internal prototype to avoid an error. */
14591 /* We use char because int might match the return type of a gcc2
14592 builtin and then its argument prototype would still apply. */
14593 char pthread_create();
14594
14595 int main() {
14596 pthread_create()
14597 ; return 0; }
14598 EOF
14599 if { (eval echo configure:14600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14600 rm -rf conftest*
14601 eval "ac_cv_lib_$ac_lib_var=yes"
14602 else
14603 echo "configure: failed program was:" >&5
14604 cat conftest.$ac_ext >&5
14605 rm -rf conftest*
14606 eval "ac_cv_lib_$ac_lib_var=no"
14607 fi
14608 rm -f conftest*
14609 LIBS="$ac_save_LIBS"
14610
14611 fi
14612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14613 echo "$ac_t""yes" 1>&6
14614
14615 THREADS_OBJ="threadpsx.lo"
14616 THREADS_LINK="c_r"
14617
14618 else
14619 echo "$ac_t""no" 1>&6
14620
14621 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
14622 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
14623 echo "configure:14624: checking for sys/prctl.h" >&5
14624 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14625 echo $ac_n "(cached) $ac_c" 1>&6
14626 else
14627 cat > conftest.$ac_ext <<EOF
14628 #line 14629 "configure"
14629 #include "confdefs.h"
14630 #include <sys/prctl.h>
14631 EOF
14632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14633 { (eval echo configure:14634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14634 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14635 if test -z "$ac_err"; then
14636 rm -rf conftest*
14637 eval "ac_cv_header_$ac_safe=yes"
14638 else
14639 echo "$ac_err" >&5
14640 echo "configure: failed program was:" >&5
14641 cat conftest.$ac_ext >&5
14642 rm -rf conftest*
14643 eval "ac_cv_header_$ac_safe=no"
14644 fi
14645 rm -f conftest*
14646 fi
14647 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14648 echo "$ac_t""yes" 1>&6
14649
14650 THREADS_OBJ="threadsgi.lo"
14651
14652 else
14653 echo "$ac_t""no" 1>&6
14654 fi
14655
14656
14657 fi
14658
14659
14660 fi
14661
14662
14663 if test -z "$THREADS_OBJ" ; then
14664 wxUSE_THREADS=no
14665 echo "configure: warning: No thread support on this system" 1>&2
14666 fi
14667 fi
14668
14669 if test "$wxUSE_THREADS" = "yes" ; then
14670 for ac_func in thr_setconcurrency
14671 do
14672 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14673 echo "configure:14674: checking for $ac_func" >&5
14674 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14675 echo $ac_n "(cached) $ac_c" 1>&6
14676 else
14677 cat > conftest.$ac_ext <<EOF
14678 #line 14679 "configure"
14679 #include "confdefs.h"
14680 /* System header to define __stub macros and hopefully few prototypes,
14681 which can conflict with char $ac_func(); below. */
14682 #include <assert.h>
14683 /* Override any gcc2 internal prototype to avoid an error. */
14684 /* We use char because int might match the return type of a gcc2
14685 builtin and then its argument prototype would still apply. */
14686 char $ac_func();
14687
14688 int main() {
14689
14690 /* The GNU C library defines this for functions which it implements
14691 to always fail with ENOSYS. Some functions are actually named
14692 something starting with __ and the normal name is an alias. */
14693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14694 choke me
14695 #else
14696 $ac_func();
14697 #endif
14698
14699 ; return 0; }
14700 EOF
14701 if { (eval echo configure:14702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14702 rm -rf conftest*
14703 eval "ac_cv_func_$ac_func=yes"
14704 else
14705 echo "configure: failed program was:" >&5
14706 cat conftest.$ac_ext >&5
14707 rm -rf conftest*
14708 eval "ac_cv_func_$ac_func=no"
14709 fi
14710 rm -f conftest*
14711 fi
14712
14713 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14714 echo "$ac_t""yes" 1>&6
14715 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14716 cat >> confdefs.h <<EOF
14717 #define $ac_tr_func 1
14718 EOF
14719
14720 else
14721 echo "$ac_t""no" 1>&6
14722 fi
14723 done
14724
14725
14726
14727 for ac_hdr in sched.h
14728 do
14729 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14730 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14731 echo "configure:14732: checking for $ac_hdr" >&5
14732 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14733 echo $ac_n "(cached) $ac_c" 1>&6
14734 else
14735 cat > conftest.$ac_ext <<EOF
14736 #line 14737 "configure"
14737 #include "confdefs.h"
14738 #include <$ac_hdr>
14739 EOF
14740 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14741 { (eval echo configure:14742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14742 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14743 if test -z "$ac_err"; then
14744 rm -rf conftest*
14745 eval "ac_cv_header_$ac_safe=yes"
14746 else
14747 echo "$ac_err" >&5
14748 echo "configure: failed program was:" >&5
14749 cat conftest.$ac_ext >&5
14750 rm -rf conftest*
14751 eval "ac_cv_header_$ac_safe=no"
14752 fi
14753 rm -f conftest*
14754 fi
14755 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14756 echo "$ac_t""yes" 1>&6
14757 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14758 cat >> confdefs.h <<EOF
14759 #define $ac_tr_hdr 1
14760 EOF
14761
14762 else
14763 echo "$ac_t""no" 1>&6
14764 fi
14765 done
14766
14767
14768 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
14769 echo "configure:14770: checking for sched_yield in -l$THREADS_LINK" >&5
14770 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
14771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14772 echo $ac_n "(cached) $ac_c" 1>&6
14773 else
14774 ac_save_LIBS="$LIBS"
14775 LIBS="-l$THREADS_LINK $LIBS"
14776 cat > conftest.$ac_ext <<EOF
14777 #line 14778 "configure"
14778 #include "confdefs.h"
14779 /* Override any gcc2 internal prototype to avoid an error. */
14780 /* We use char because int might match the return type of a gcc2
14781 builtin and then its argument prototype would still apply. */
14782 char sched_yield();
14783
14784 int main() {
14785 sched_yield()
14786 ; return 0; }
14787 EOF
14788 if { (eval echo configure:14789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14789 rm -rf conftest*
14790 eval "ac_cv_lib_$ac_lib_var=yes"
14791 else
14792 echo "configure: failed program was:" >&5
14793 cat conftest.$ac_ext >&5
14794 rm -rf conftest*
14795 eval "ac_cv_lib_$ac_lib_var=no"
14796 fi
14797 rm -f conftest*
14798 LIBS="$ac_save_LIBS"
14799
14800 fi
14801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14802 echo "$ac_t""yes" 1>&6
14803 cat >> confdefs.h <<\EOF
14804 #define HAVE_SCHED_YIELD 1
14805 EOF
14806
14807 else
14808 echo "$ac_t""no" 1>&6
14809 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
14810 echo "configure:14811: checking for sched_yield in -lposix4" >&5
14811 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
14812 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14813 echo $ac_n "(cached) $ac_c" 1>&6
14814 else
14815 ac_save_LIBS="$LIBS"
14816 LIBS="-lposix4 $LIBS"
14817 cat > conftest.$ac_ext <<EOF
14818 #line 14819 "configure"
14819 #include "confdefs.h"
14820 /* Override any gcc2 internal prototype to avoid an error. */
14821 /* We use char because int might match the return type of a gcc2
14822 builtin and then its argument prototype would still apply. */
14823 char sched_yield();
14824
14825 int main() {
14826 sched_yield()
14827 ; return 0; }
14828 EOF
14829 if { (eval echo configure:14830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14830 rm -rf conftest*
14831 eval "ac_cv_lib_$ac_lib_var=yes"
14832 else
14833 echo "configure: failed program was:" >&5
14834 cat conftest.$ac_ext >&5
14835 rm -rf conftest*
14836 eval "ac_cv_lib_$ac_lib_var=no"
14837 fi
14838 rm -f conftest*
14839 LIBS="$ac_save_LIBS"
14840
14841 fi
14842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14843 echo "$ac_t""yes" 1>&6
14844 cat >> confdefs.h <<\EOF
14845 #define HAVE_SCHED_YIELD 1
14846 EOF
14847 POSIX4_LINK="-lposix4"
14848 else
14849 echo "$ac_t""no" 1>&6
14850 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
14851
14852 fi
14853
14854
14855 fi
14856
14857
14858 HAVE_PRIOR_FUNCS=0
14859 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
14860 echo "configure:14861: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
14861 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
14862 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14863 echo $ac_n "(cached) $ac_c" 1>&6
14864 else
14865 ac_save_LIBS="$LIBS"
14866 LIBS="-l$THREADS_LINK $LIBS"
14867 cat > conftest.$ac_ext <<EOF
14868 #line 14869 "configure"
14869 #include "confdefs.h"
14870 /* Override any gcc2 internal prototype to avoid an error. */
14871 /* We use char because int might match the return type of a gcc2
14872 builtin and then its argument prototype would still apply. */
14873 char pthread_attr_getschedpolicy();
14874
14875 int main() {
14876 pthread_attr_getschedpolicy()
14877 ; return 0; }
14878 EOF
14879 if { (eval echo configure:14880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14880 rm -rf conftest*
14881 eval "ac_cv_lib_$ac_lib_var=yes"
14882 else
14883 echo "configure: failed program was:" >&5
14884 cat conftest.$ac_ext >&5
14885 rm -rf conftest*
14886 eval "ac_cv_lib_$ac_lib_var=no"
14887 fi
14888 rm -f conftest*
14889 LIBS="$ac_save_LIBS"
14890
14891 fi
14892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14893 echo "$ac_t""yes" 1>&6
14894 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
14895 echo "configure:14896: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
14896 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
14897 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14898 echo $ac_n "(cached) $ac_c" 1>&6
14899 else
14900 ac_save_LIBS="$LIBS"
14901 LIBS="-l$THREADS_LINK $LIBS"
14902 cat > conftest.$ac_ext <<EOF
14903 #line 14904 "configure"
14904 #include "confdefs.h"
14905 /* Override any gcc2 internal prototype to avoid an error. */
14906 /* We use char because int might match the return type of a gcc2
14907 builtin and then its argument prototype would still apply. */
14908 char pthread_attr_setschedparam();
14909
14910 int main() {
14911 pthread_attr_setschedparam()
14912 ; return 0; }
14913 EOF
14914 if { (eval echo configure:14915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14915 rm -rf conftest*
14916 eval "ac_cv_lib_$ac_lib_var=yes"
14917 else
14918 echo "configure: failed program was:" >&5
14919 cat conftest.$ac_ext >&5
14920 rm -rf conftest*
14921 eval "ac_cv_lib_$ac_lib_var=no"
14922 fi
14923 rm -f conftest*
14924 LIBS="$ac_save_LIBS"
14925
14926 fi
14927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14928 echo "$ac_t""yes" 1>&6
14929 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
14930 echo "configure:14931: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
14931 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14932 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14933 echo $ac_n "(cached) $ac_c" 1>&6
14934 else
14935 ac_save_LIBS="$LIBS"
14936 LIBS="-l$THREADS_LINK $LIBS"
14937 cat > conftest.$ac_ext <<EOF
14938 #line 14939 "configure"
14939 #include "confdefs.h"
14940 /* Override any gcc2 internal prototype to avoid an error. */
14941 /* We use char because int might match the return type of a gcc2
14942 builtin and then its argument prototype would still apply. */
14943 char sched_get_priority_max();
14944
14945 int main() {
14946 sched_get_priority_max()
14947 ; return 0; }
14948 EOF
14949 if { (eval echo configure:14950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14950 rm -rf conftest*
14951 eval "ac_cv_lib_$ac_lib_var=yes"
14952 else
14953 echo "configure: failed program was:" >&5
14954 cat conftest.$ac_ext >&5
14955 rm -rf conftest*
14956 eval "ac_cv_lib_$ac_lib_var=no"
14957 fi
14958 rm -f conftest*
14959 LIBS="$ac_save_LIBS"
14960
14961 fi
14962 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14963 echo "$ac_t""yes" 1>&6
14964 HAVE_PRIOR_FUNCS=1
14965 else
14966 echo "$ac_t""no" 1>&6
14967 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
14968 echo "configure:14969: checking for sched_get_priority_max in -lposix4" >&5
14969 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14970 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14971 echo $ac_n "(cached) $ac_c" 1>&6
14972 else
14973 ac_save_LIBS="$LIBS"
14974 LIBS="-lposix4 $LIBS"
14975 cat > conftest.$ac_ext <<EOF
14976 #line 14977 "configure"
14977 #include "confdefs.h"
14978 /* Override any gcc2 internal prototype to avoid an error. */
14979 /* We use char because int might match the return type of a gcc2
14980 builtin and then its argument prototype would still apply. */
14981 char sched_get_priority_max();
14982
14983 int main() {
14984 sched_get_priority_max()
14985 ; return 0; }
14986 EOF
14987 if { (eval echo configure:14988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14988 rm -rf conftest*
14989 eval "ac_cv_lib_$ac_lib_var=yes"
14990 else
14991 echo "configure: failed program was:" >&5
14992 cat conftest.$ac_ext >&5
14993 rm -rf conftest*
14994 eval "ac_cv_lib_$ac_lib_var=no"
14995 fi
14996 rm -f conftest*
14997 LIBS="$ac_save_LIBS"
14998
14999 fi
15000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15001 echo "$ac_t""yes" 1>&6
15002
15003 HAVE_PRIOR_FUNCS=1
15004 POSIX4_LINK="-lposix4"
15005
15006 else
15007 echo "$ac_t""no" 1>&6
15008 fi
15009
15010
15011 fi
15012
15013
15014 else
15015 echo "$ac_t""no" 1>&6
15016 fi
15017
15018
15019 else
15020 echo "$ac_t""no" 1>&6
15021 fi
15022
15023
15024 if test "$HAVE_PRIOR_FUNCS" = 1; then
15025 cat >> confdefs.h <<\EOF
15026 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
15027 EOF
15028
15029 else
15030 echo "configure: warning: Setting thread priority will not work" 1>&2
15031 fi
15032
15033 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
15034 echo "configure:15035: checking for pthread_cancel in -l$THREADS_LINK" >&5
15035 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
15036 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15037 echo $ac_n "(cached) $ac_c" 1>&6
15038 else
15039 ac_save_LIBS="$LIBS"
15040 LIBS="-l$THREADS_LINK $LIBS"
15041 cat > conftest.$ac_ext <<EOF
15042 #line 15043 "configure"
15043 #include "confdefs.h"
15044 /* Override any gcc2 internal prototype to avoid an error. */
15045 /* We use char because int might match the return type of a gcc2
15046 builtin and then its argument prototype would still apply. */
15047 char pthread_cancel();
15048
15049 int main() {
15050 pthread_cancel()
15051 ; return 0; }
15052 EOF
15053 if { (eval echo configure:15054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15054 rm -rf conftest*
15055 eval "ac_cv_lib_$ac_lib_var=yes"
15056 else
15057 echo "configure: failed program was:" >&5
15058 cat conftest.$ac_ext >&5
15059 rm -rf conftest*
15060 eval "ac_cv_lib_$ac_lib_var=no"
15061 fi
15062 rm -f conftest*
15063 LIBS="$ac_save_LIBS"
15064
15065 fi
15066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15067 echo "$ac_t""yes" 1>&6
15068 cat >> confdefs.h <<\EOF
15069 #define HAVE_PTHREAD_CANCEL 1
15070 EOF
15071
15072 else
15073 echo "$ac_t""no" 1>&6
15074 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
15075 fi
15076
15077
15078 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
15079 echo "configure:15080: checking for pthread_cleanup_push/pop" >&5
15080 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
15081 echo $ac_n "(cached) $ac_c" 1>&6
15082 else
15083
15084 cat > conftest.$ac_ext <<EOF
15085 #line 15086 "configure"
15086 #include "confdefs.h"
15087 #include <pthread.h>
15088 int main() {
15089
15090 pthread_cleanup_push(NULL, NULL);
15091 pthread_cleanup_pop(0);
15092
15093 ; return 0; }
15094 EOF
15095 if { (eval echo configure:15096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15096 rm -rf conftest*
15097
15098 wx_cv_func_pthread_cleanup_push=yes
15099
15100 else
15101 echo "configure: failed program was:" >&5
15102 cat conftest.$ac_ext >&5
15103 rm -rf conftest*
15104
15105 wx_cv_func_pthread_cleanup_push=no
15106
15107 fi
15108 rm -f conftest*
15109
15110 fi
15111
15112 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
15113
15114 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
15115 cat >> confdefs.h <<\EOF
15116 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
15117 EOF
15118
15119 fi
15120
15121
15122 if test "x$wx_lib_glibc21" = "xyes"; then
15123 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
15124 fi
15125
15126 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
15127 echo "configure:15128: checking for pthread_mutexattr_t" >&5
15128 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
15129 echo $ac_n "(cached) $ac_c" 1>&6
15130 else
15131
15132 cat > conftest.$ac_ext <<EOF
15133 #line 15134 "configure"
15134 #include "confdefs.h"
15135 #include <pthread.h>
15136 int main() {
15137
15138 pthread_mutexattr_t attr;
15139 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
15140
15141 ; return 0; }
15142 EOF
15143 if { (eval echo configure:15144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15144 rm -rf conftest*
15145
15146 wx_cv_type_pthread_mutexattr_t=yes
15147
15148 else
15149 echo "configure: failed program was:" >&5
15150 cat conftest.$ac_ext >&5
15151 rm -rf conftest*
15152
15153 wx_cv_type_pthread_mutexattr_t=no
15154
15155
15156 fi
15157 rm -f conftest*
15158
15159 fi
15160
15161 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
15162
15163 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
15164 cat >> confdefs.h <<\EOF
15165 #define HAVE_PTHREAD_MUTEXATTR_T 1
15166 EOF
15167
15168 else
15169 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
15170 echo "configure:15171: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
15171 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
15172 echo $ac_n "(cached) $ac_c" 1>&6
15173 else
15174
15175 cat > conftest.$ac_ext <<EOF
15176 #line 15177 "configure"
15177 #include "confdefs.h"
15178 #include <pthread.h>
15179 int main() {
15180
15181 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
15182
15183 ; return 0; }
15184 EOF
15185 if { (eval echo configure:15186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15186 rm -rf conftest*
15187
15188 wx_cv_type_pthread_rec_mutex_init=yes
15189
15190 else
15191 echo "configure: failed program was:" >&5
15192 cat conftest.$ac_ext >&5
15193 rm -rf conftest*
15194
15195 wx_cv_type_pthread_rec_mutex_init=no
15196
15197
15198 fi
15199 rm -f conftest*
15200
15201 fi
15202
15203 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
15204 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
15205 cat >> confdefs.h <<\EOF
15206 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
15207 EOF
15208
15209 else
15210 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
15211 fi
15212 fi
15213
15214 THREADS_LINK="-l$THREADS_LINK"
15215
15216 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
15217 CPPFLAGS="${CFLAGS} -mt"
15218 CXXFLAGS="${CXXFLAGS} -mt"
15219 LDFLAGS="${LDFLAGS} -mt"
15220 fi
15221 fi
15222
15223 fi
15224
15225 if test "$wxUSE_THREADS" = "yes"; then
15226 cat >> confdefs.h <<\EOF
15227 #define wxUSE_THREADS 1
15228 EOF
15229
15230
15231 if test "$USE_DARWIN" != 1; then
15232 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
15233 fi
15234
15235 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
15236 else
15237 if test "$ac_cv_func_strtok_r" = "yes"; then
15238 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
15239 echo "configure:15240: checking if -D_REENTRANT is needed" >&5
15240 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
15241 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
15242 echo "$ac_t""yes" 1>&6
15243 else
15244 echo "$ac_t""no" 1>&6
15245 fi
15246 fi
15247 fi
15248
15249 if test "$WXGTK20" = 1 ; then
15250 cat >> confdefs.h <<EOF
15251 #define __WXGTK20__ $WXGTK20
15252 EOF
15253
15254 WXGTK12=1
15255 fi
15256
15257 if test "$WXGTK12" = 1 ; then
15258 cat >> confdefs.h <<EOF
15259 #define __WXGTK12__ $WXGTK12
15260 EOF
15261
15262 fi
15263
15264 if test "$WXGTK127" = 1 ; then
15265 cat >> confdefs.h <<EOF
15266 #define __WXGTK127__ $WXGTK127
15267 EOF
15268
15269 fi
15270
15271 WXDEBUG=
15272
15273 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
15274 WXDEBUG="-g"
15275 wxUSE_OPTIMISE=no
15276 fi
15277
15278 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
15279 wxUSE_DEBUG_INFO=yes
15280 WXDEBUG="-ggdb"
15281 fi
15282
15283 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
15284 cat >> confdefs.h <<\EOF
15285 #define WXDEBUG 1
15286 EOF
15287
15288 WXDEBUG_DEFINE="-D__WXDEBUG__"
15289 else
15290 if test "$wxUSE_GTK" = 1 ; then
15291 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
15292 fi
15293 fi
15294
15295 if test "$wxUSE_MEM_TRACING" = "yes" ; then
15296 cat >> confdefs.h <<\EOF
15297 #define wxUSE_MEMORY_TRACING 1
15298 EOF
15299
15300 cat >> confdefs.h <<\EOF
15301 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
15302 EOF
15303
15304 cat >> confdefs.h <<\EOF
15305 #define wxUSE_DEBUG_NEW_ALWAYS 1
15306 EOF
15307
15308 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
15309 fi
15310
15311 if test "$wxUSE_DMALLOC" = "yes" ; then
15312 DMALLOC_LINK="-ldmalloc"
15313 fi
15314
15315 PROFILE=
15316 if test "$wxUSE_PROFILE" = "yes" ; then
15317 PROFILE="-pg"
15318 fi
15319
15320 if test "$GCC" = yes ; then
15321 if test "$wxUSE_NO_RTTI" = "yes" ; then
15322 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
15323 fi
15324 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
15325 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
15326 fi
15327 if test "$wxUSE_PERMISSIVE" = "yes" ; then
15328 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
15329 fi
15330 if test "$wxUSE_NO_DEPS" = "no" ; then
15331 CFLAGS="-MMD ${CFLAGS}"
15332 CXXFLAGS="-MMD ${CXXFLAGS}"
15333 fi
15334 if test "$USE_WIN32" = 1 ; then
15335 # I'm not even really sure what this was ever added to solve,
15336 # but someone added it for mingw native builds, so I guess
15337 # they had a reason, right??
15338 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
15339 fi
15340 fi
15341
15342
15343 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
15344 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
15345 if test "$wxUSE_OPTIMISE" = "no" ; then
15346 OPTIMISE=
15347 else
15348 if test "$GCC" = yes ; then
15349 OPTIMISE="-O2"
15350 case "${host}" in
15351 i586-*-*|i686-*-* )
15352 OPTIMISE="${OPTIMISE} "
15353 ;;
15354 esac
15355 else
15356 OPTIMISE="-O"
15357 fi
15358 fi
15359
15360 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
15361 cat >> confdefs.h <<\EOF
15362 #define WXWIN_COMPATIBILITY_2 1
15363 EOF
15364
15365
15366 WXWIN_COMPATIBILITY_2_2="yes"
15367 fi
15368
15369 if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
15370 cat >> confdefs.h <<\EOF
15371 #define WXWIN_COMPATIBILITY_2_2 1
15372 EOF
15373
15374 fi
15375
15376
15377 ZLIB_INCLUDE=
15378 if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
15379 cat >> confdefs.h <<\EOF
15380 #define wxUSE_ZLIB 1
15381 EOF
15382
15383 if test "$wxUSE_ZLIB" = "yes" ; then
15384 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
15385 else
15386 ZLIB_LINK=
15387 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
15388 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
15389 echo "configure:15390: checking for zlib.h" >&5
15390 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15391 echo $ac_n "(cached) $ac_c" 1>&6
15392 else
15393 cat > conftest.$ac_ext <<EOF
15394 #line 15395 "configure"
15395 #include "confdefs.h"
15396 #include <zlib.h>
15397 EOF
15398 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15399 { (eval echo configure:15400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15400 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15401 if test -z "$ac_err"; then
15402 rm -rf conftest*
15403 eval "ac_cv_header_$ac_safe=yes"
15404 else
15405 echo "$ac_err" >&5
15406 echo "configure: failed program was:" >&5
15407 cat conftest.$ac_ext >&5
15408 rm -rf conftest*
15409 eval "ac_cv_header_$ac_safe=no"
15410 fi
15411 rm -f conftest*
15412 fi
15413 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15414 echo "$ac_t""yes" 1>&6
15415 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
15416 echo "configure:15417: checking for deflate in -lz" >&5
15417 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
15418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15419 echo $ac_n "(cached) $ac_c" 1>&6
15420 else
15421 ac_save_LIBS="$LIBS"
15422 LIBS="-lz $LIBS"
15423 cat > conftest.$ac_ext <<EOF
15424 #line 15425 "configure"
15425 #include "confdefs.h"
15426 /* Override any gcc2 internal prototype to avoid an error. */
15427 /* We use char because int might match the return type of a gcc2
15428 builtin and then its argument prototype would still apply. */
15429 char deflate();
15430
15431 int main() {
15432 deflate()
15433 ; return 0; }
15434 EOF
15435 if { (eval echo configure:15436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15436 rm -rf conftest*
15437 eval "ac_cv_lib_$ac_lib_var=yes"
15438 else
15439 echo "configure: failed program was:" >&5
15440 cat conftest.$ac_ext >&5
15441 rm -rf conftest*
15442 eval "ac_cv_lib_$ac_lib_var=no"
15443 fi
15444 rm -f conftest*
15445 LIBS="$ac_save_LIBS"
15446
15447 fi
15448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15449 echo "$ac_t""yes" 1>&6
15450 ZLIB_LINK="-lz"
15451 else
15452 echo "$ac_t""no" 1>&6
15453 fi
15454
15455 else
15456 echo "$ac_t""no" 1>&6
15457 fi
15458
15459 if test "x$ZLIB_LINK" = "x" ; then
15460 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
15461 fi
15462 fi
15463 fi
15464
15465 PNG_INCLUDE=
15466 if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
15467 cat >> confdefs.h <<\EOF
15468 #define wxUSE_LIBPNG 1
15469 EOF
15470
15471 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
15472 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
15473 wxUSE_LIBPNG=yes
15474 fi
15475
15476 if test "$wxUSE_LIBPNG" = "yes" ; then
15477 PNG_INCLUDE="-I\${top_srcdir}/src/png"
15478 else
15479 PNG_LINK=
15480 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
15481 echo $ac_n "checking for png.h""... $ac_c" 1>&6
15482 echo "configure:15483: checking for png.h" >&5
15483 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15484 echo $ac_n "(cached) $ac_c" 1>&6
15485 else
15486 cat > conftest.$ac_ext <<EOF
15487 #line 15488 "configure"
15488 #include "confdefs.h"
15489 #include <png.h>
15490 EOF
15491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15492 { (eval echo configure:15493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15493 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15494 if test -z "$ac_err"; then
15495 rm -rf conftest*
15496 eval "ac_cv_header_$ac_safe=yes"
15497 else
15498 echo "$ac_err" >&5
15499 echo "configure: failed program was:" >&5
15500 cat conftest.$ac_ext >&5
15501 rm -rf conftest*
15502 eval "ac_cv_header_$ac_safe=no"
15503 fi
15504 rm -f conftest*
15505 fi
15506 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15507 echo "$ac_t""yes" 1>&6
15508 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
15509 echo "configure:15510: checking for png_check_sig in -lpng" >&5
15510 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
15511 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15512 echo $ac_n "(cached) $ac_c" 1>&6
15513 else
15514 ac_save_LIBS="$LIBS"
15515 LIBS="-lpng -lz -lm $LIBS"
15516 cat > conftest.$ac_ext <<EOF
15517 #line 15518 "configure"
15518 #include "confdefs.h"
15519 /* Override any gcc2 internal prototype to avoid an error. */
15520 /* We use char because int might match the return type of a gcc2
15521 builtin and then its argument prototype would still apply. */
15522 char png_check_sig();
15523
15524 int main() {
15525 png_check_sig()
15526 ; return 0; }
15527 EOF
15528 if { (eval echo configure:15529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15529 rm -rf conftest*
15530 eval "ac_cv_lib_$ac_lib_var=yes"
15531 else
15532 echo "configure: failed program was:" >&5
15533 cat conftest.$ac_ext >&5
15534 rm -rf conftest*
15535 eval "ac_cv_lib_$ac_lib_var=no"
15536 fi
15537 rm -f conftest*
15538 LIBS="$ac_save_LIBS"
15539
15540 fi
15541 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15542 echo "$ac_t""yes" 1>&6
15543 PNG_LINK="-lpng"
15544 else
15545 echo "$ac_t""no" 1>&6
15546 fi
15547
15548
15549 else
15550 echo "$ac_t""no" 1>&6
15551 fi
15552
15553 if test "x$PNG_LINK" = "x" ; then
15554 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
15555 fi
15556 fi
15557
15558 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
15559 fi
15560
15561 JPEG_INCLUDE=
15562 if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
15563 cat >> confdefs.h <<\EOF
15564 #define wxUSE_LIBJPEG 1
15565 EOF
15566
15567 if test "$wxUSE_LIBJPEG" = "yes" ; then
15568 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
15569 else
15570 JPEG_LINK=
15571 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
15572 echo "configure:15573: checking for jpeglib.h" >&5
15573 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
15574 echo $ac_n "(cached) $ac_c" 1>&6
15575 else
15576 cat > conftest.$ac_ext <<EOF
15577 #line 15578 "configure"
15578 #include "confdefs.h"
15579
15580 #undef HAVE_STDLIB_H
15581 #include <stdio.h>
15582 #include <jpeglib.h>
15583
15584 int main() {
15585
15586
15587 ; return 0; }
15588 EOF
15589 if { (eval echo configure:15590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15590 rm -rf conftest*
15591 ac_cv_header_jpeglib_h=yes
15592 else
15593 echo "configure: failed program was:" >&5
15594 cat conftest.$ac_ext >&5
15595 rm -rf conftest*
15596 ac_cv_header_jpeglib_h=no
15597
15598 fi
15599 rm -f conftest*
15600
15601 fi
15602
15603 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
15604
15605 if test "$ac_cv_header_jpeglib_h" = "yes"; then
15606 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
15607 echo "configure:15608: checking for jpeg_read_header in -ljpeg" >&5
15608 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
15609 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15610 echo $ac_n "(cached) $ac_c" 1>&6
15611 else
15612 ac_save_LIBS="$LIBS"
15613 LIBS="-ljpeg $LIBS"
15614 cat > conftest.$ac_ext <<EOF
15615 #line 15616 "configure"
15616 #include "confdefs.h"
15617 /* Override any gcc2 internal prototype to avoid an error. */
15618 /* We use char because int might match the return type of a gcc2
15619 builtin and then its argument prototype would still apply. */
15620 char jpeg_read_header();
15621
15622 int main() {
15623 jpeg_read_header()
15624 ; return 0; }
15625 EOF
15626 if { (eval echo configure:15627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15627 rm -rf conftest*
15628 eval "ac_cv_lib_$ac_lib_var=yes"
15629 else
15630 echo "configure: failed program was:" >&5
15631 cat conftest.$ac_ext >&5
15632 rm -rf conftest*
15633 eval "ac_cv_lib_$ac_lib_var=no"
15634 fi
15635 rm -f conftest*
15636 LIBS="$ac_save_LIBS"
15637
15638 fi
15639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15640 echo "$ac_t""yes" 1>&6
15641 JPEG_LINK="-ljpeg"
15642 else
15643 echo "$ac_t""no" 1>&6
15644 fi
15645
15646 fi
15647
15648 if test "x$JPEG_LINK" = "x" ; then
15649 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
15650 fi
15651 fi
15652 fi
15653
15654 TIFF_INCLUDE=
15655 if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
15656 cat >> confdefs.h <<\EOF
15657 #define wxUSE_LIBTIFF 1
15658 EOF
15659
15660 if test "$wxUSE_LIBTIFF" = "yes" ; then
15661 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
15662 else
15663 TIFF_LINK=
15664 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
15665 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
15666 echo "configure:15667: checking for tiffio.h" >&5
15667 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15668 echo $ac_n "(cached) $ac_c" 1>&6
15669 else
15670 cat > conftest.$ac_ext <<EOF
15671 #line 15672 "configure"
15672 #include "confdefs.h"
15673 #include <tiffio.h>
15674 EOF
15675 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15676 { (eval echo configure:15677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15677 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15678 if test -z "$ac_err"; then
15679 rm -rf conftest*
15680 eval "ac_cv_header_$ac_safe=yes"
15681 else
15682 echo "$ac_err" >&5
15683 echo "configure: failed program was:" >&5
15684 cat conftest.$ac_ext >&5
15685 rm -rf conftest*
15686 eval "ac_cv_header_$ac_safe=no"
15687 fi
15688 rm -f conftest*
15689 fi
15690 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15691 echo "$ac_t""yes" 1>&6
15692 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
15693 echo "configure:15694: checking for TIFFError in -ltiff" >&5
15694 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
15695 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15696 echo $ac_n "(cached) $ac_c" 1>&6
15697 else
15698 ac_save_LIBS="$LIBS"
15699 LIBS="-ltiff -lm $LIBS"
15700 cat > conftest.$ac_ext <<EOF
15701 #line 15702 "configure"
15702 #include "confdefs.h"
15703 /* Override any gcc2 internal prototype to avoid an error. */
15704 /* We use char because int might match the return type of a gcc2
15705 builtin and then its argument prototype would still apply. */
15706 char TIFFError();
15707
15708 int main() {
15709 TIFFError()
15710 ; return 0; }
15711 EOF
15712 if { (eval echo configure:15713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15713 rm -rf conftest*
15714 eval "ac_cv_lib_$ac_lib_var=yes"
15715 else
15716 echo "configure: failed program was:" >&5
15717 cat conftest.$ac_ext >&5
15718 rm -rf conftest*
15719 eval "ac_cv_lib_$ac_lib_var=no"
15720 fi
15721 rm -f conftest*
15722 LIBS="$ac_save_LIBS"
15723
15724 fi
15725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15726 echo "$ac_t""yes" 1>&6
15727 TIFF_LINK="-ltiff"
15728 else
15729 echo "$ac_t""no" 1>&6
15730 fi
15731
15732 else
15733 echo "$ac_t""no" 1>&6
15734 fi
15735
15736 if test "x$TIFF_LINK" = "x" ; then
15737 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
15738 fi
15739 fi
15740 fi
15741
15742 FREETYPE_INCLUDE=
15743 if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
15744 cat >> confdefs.h <<\EOF
15745 #define wxUSE_FREETYPE 1
15746 EOF
15747
15748 if test "$wxUSE_FREETYPE" = "yes" ; then
15749 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
15750 else
15751 FREETYPE_LINK=
15752 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
15753 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
15754 echo "configure:15755: checking for freetype.h" >&5
15755 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15756 echo $ac_n "(cached) $ac_c" 1>&6
15757 else
15758 cat > conftest.$ac_ext <<EOF
15759 #line 15760 "configure"
15760 #include "confdefs.h"
15761 #include <freetype.h>
15762 EOF
15763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15764 { (eval echo configure:15765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15766 if test -z "$ac_err"; then
15767 rm -rf conftest*
15768 eval "ac_cv_header_$ac_safe=yes"
15769 else
15770 echo "$ac_err" >&5
15771 echo "configure: failed program was:" >&5
15772 cat conftest.$ac_ext >&5
15773 rm -rf conftest*
15774 eval "ac_cv_header_$ac_safe=no"
15775 fi
15776 rm -f conftest*
15777 fi
15778 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15779 echo "$ac_t""yes" 1>&6
15780 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
15781 echo "configure:15782: checking for FT_Render_Glyph in -lfreetype" >&5
15782 ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
15783 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15784 echo $ac_n "(cached) $ac_c" 1>&6
15785 else
15786 ac_save_LIBS="$LIBS"
15787 LIBS="-lfreetype -lm $LIBS"
15788 cat > conftest.$ac_ext <<EOF
15789 #line 15790 "configure"
15790 #include "confdefs.h"
15791 /* Override any gcc2 internal prototype to avoid an error. */
15792 /* We use char because int might match the return type of a gcc2
15793 builtin and then its argument prototype would still apply. */
15794 char FT_Render_Glyph();
15795
15796 int main() {
15797 FT_Render_Glyph()
15798 ; return 0; }
15799 EOF
15800 if { (eval echo configure:15801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15801 rm -rf conftest*
15802 eval "ac_cv_lib_$ac_lib_var=yes"
15803 else
15804 echo "configure: failed program was:" >&5
15805 cat conftest.$ac_ext >&5
15806 rm -rf conftest*
15807 eval "ac_cv_lib_$ac_lib_var=no"
15808 fi
15809 rm -f conftest*
15810 LIBS="$ac_save_LIBS"
15811
15812 fi
15813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15814 echo "$ac_t""yes" 1>&6
15815 FREETYPE_LINK="-lfreetype"
15816 else
15817 echo "$ac_t""no" 1>&6
15818 fi
15819
15820
15821 else
15822 echo "$ac_t""no" 1>&6
15823 fi
15824
15825 if test "x$FREETYPE_LINK" = "x" ; then
15826 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
15827 fi
15828 fi
15829 fi
15830
15831
15832 if test "$wxUSE_GUI" = "yes"; then
15833 cat >> confdefs.h <<\EOF
15834 #define wxUSE_GUI 1
15835 EOF
15836
15837
15838 else
15839 cat >> confdefs.h <<\EOF
15840 #define wxUSE_NOGUI 1
15841 EOF
15842
15843 fi
15844
15845
15846 if test "$wxUSE_UNIX" = "yes"; then
15847 cat >> confdefs.h <<\EOF
15848 #define wxUSE_UNIX 1
15849 EOF
15850
15851 fi
15852
15853
15854 if test "$wxUSE_APPLE_IEEE" = "yes"; then
15855 cat >> confdefs.h <<\EOF
15856 #define wxUSE_APPLE_IEEE 1
15857 EOF
15858
15859 fi
15860
15861 if test "$wxUSE_TIMER" = "yes"; then
15862 cat >> confdefs.h <<\EOF
15863 #define wxUSE_TIMER 1
15864 EOF
15865
15866 fi
15867
15868 if test "$wxUSE_WAVE" = "yes"; then
15869 cat >> confdefs.h <<\EOF
15870 #define wxUSE_WAVE 1
15871 EOF
15872
15873 fi
15874
15875 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15876 cat >> confdefs.h <<\EOF
15877 #define wxUSE_CMDLINE_PARSER 1
15878 EOF
15879
15880 fi
15881
15882 if test "$wxUSE_STOPWATCH" = "yes"; then
15883 cat >> confdefs.h <<\EOF
15884 #define wxUSE_STOPWATCH 1
15885 EOF
15886
15887 fi
15888
15889 if test "$wxUSE_DATETIME" = "yes"; then
15890 cat >> confdefs.h <<\EOF
15891 #define wxUSE_DATETIME 1
15892 EOF
15893
15894 fi
15895
15896 if test "$wxUSE_TIMEDATE" = "yes"; then
15897 cat >> confdefs.h <<\EOF
15898 #define wxUSE_TIMEDATE 1
15899 EOF
15900
15901 fi
15902
15903 if test "$wxUSE_FILE" = "yes"; then
15904 cat >> confdefs.h <<\EOF
15905 #define wxUSE_FILE 1
15906 EOF
15907
15908 fi
15909
15910 if test "$wxUSE_FFILE" = "yes"; then
15911 cat >> confdefs.h <<\EOF
15912 #define wxUSE_FFILE 1
15913 EOF
15914
15915 fi
15916
15917 if test "$wxUSE_FILESYSTEM" = "yes"; then
15918 cat >> confdefs.h <<\EOF
15919 #define wxUSE_FILESYSTEM 1
15920 EOF
15921
15922 fi
15923
15924 if test "$wxUSE_FS_INET" = "yes"; then
15925 cat >> confdefs.h <<\EOF
15926 #define wxUSE_FS_INET 1
15927 EOF
15928
15929 fi
15930
15931 if test "$wxUSE_FS_ZIP" = "yes"; then
15932 cat >> confdefs.h <<\EOF
15933 #define wxUSE_FS_ZIP 1
15934 EOF
15935
15936 fi
15937
15938 if test "$wxUSE_ZIPSTREAM" = "yes"; then
15939 cat >> confdefs.h <<\EOF
15940 #define wxUSE_ZIPSTREAM 1
15941 EOF
15942
15943 fi
15944
15945 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15946 cat >> confdefs.h <<\EOF
15947 #define wxUSE_ON_FATAL_EXCEPTION 1
15948 EOF
15949
15950 fi
15951
15952 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15953 cat >> confdefs.h <<\EOF
15954 #define wxUSE_SNGLINST_CHECKER 1
15955 EOF
15956
15957 fi
15958
15959 if test "$wxUSE_BUSYINFO" = "yes"; then
15960 cat >> confdefs.h <<\EOF
15961 #define wxUSE_BUSYINFO 1
15962 EOF
15963
15964 fi
15965
15966 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
15967 cat >> confdefs.h <<\EOF
15968 #define wxUSE_STD_IOSTREAM 1
15969 EOF
15970
15971 fi
15972
15973 if test "$wxUSE_TEXTFILE" = "yes"; then
15974 if test "$wxUSE_FILE" != "yes"; then
15975 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
15976 else
15977 cat >> confdefs.h <<\EOF
15978 #define wxUSE_TEXTFILE 1
15979 EOF
15980
15981 fi
15982 fi
15983
15984 if test "$wxUSE_CONFIG" = "yes" ; then
15985 if test "$wxUSE_TEXTFILE" != "yes"; then
15986 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
15987 else
15988 cat >> confdefs.h <<\EOF
15989 #define wxUSE_CONFIG 1
15990 EOF
15991
15992 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15993 fi
15994 fi
15995
15996 if test "$wxUSE_INTL" = "yes" ; then
15997 if test "$wxUSE_FILE" != "yes"; then
15998 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
15999 else
16000 cat >> confdefs.h <<\EOF
16001 #define wxUSE_INTL 1
16002 EOF
16003
16004 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
16005 GUIDIST="$GUIDIST INTL_DIST"
16006 fi
16007 fi
16008
16009 if test "$wxUSE_LOG" = "yes"; then
16010 cat >> confdefs.h <<\EOF
16011 #define wxUSE_LOG 1
16012 EOF
16013
16014
16015 if test "$wxUSE_LOGGUI" = "yes"; then
16016 cat >> confdefs.h <<\EOF
16017 #define wxUSE_LOGGUI 1
16018 EOF
16019
16020 fi
16021
16022 if test "$wxUSE_LOGWINDOW" = "yes"; then
16023 cat >> confdefs.h <<\EOF
16024 #define wxUSE_LOGWINDOW 1
16025 EOF
16026
16027 fi
16028 fi
16029
16030 if test "$wxUSE_LONGLONG" = "yes"; then
16031 cat >> confdefs.h <<\EOF
16032 #define wxUSE_LONGLONG 1
16033 EOF
16034
16035 fi
16036
16037 if test "$wxUSE_GEOMETRY" = "yes"; then
16038 cat >> confdefs.h <<\EOF
16039 #define wxUSE_GEOMETRY 1
16040 EOF
16041
16042 fi
16043
16044 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
16045 cat >> confdefs.h <<\EOF
16046 #define wxUSE_DIALUP_MANAGER 1
16047 EOF
16048
16049 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
16050 fi
16051
16052 if test "$wxUSE_STREAMS" = "yes" ; then
16053 cat >> confdefs.h <<\EOF
16054 #define wxUSE_STREAMS 1
16055 EOF
16056
16057 fi
16058
16059
16060 if test "$wxUSE_DATETIME" = "yes"; then
16061 for ac_func in strptime
16062 do
16063 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16064 echo "configure:16065: checking for $ac_func" >&5
16065 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16066 echo $ac_n "(cached) $ac_c" 1>&6
16067 else
16068 cat > conftest.$ac_ext <<EOF
16069 #line 16070 "configure"
16070 #include "confdefs.h"
16071 /* System header to define __stub macros and hopefully few prototypes,
16072 which can conflict with char $ac_func(); below. */
16073 #include <assert.h>
16074 /* Override any gcc2 internal prototype to avoid an error. */
16075 /* We use char because int might match the return type of a gcc2
16076 builtin and then its argument prototype would still apply. */
16077 char $ac_func();
16078
16079 int main() {
16080
16081 /* The GNU C library defines this for functions which it implements
16082 to always fail with ENOSYS. Some functions are actually named
16083 something starting with __ and the normal name is an alias. */
16084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16085 choke me
16086 #else
16087 $ac_func();
16088 #endif
16089
16090 ; return 0; }
16091 EOF
16092 if { (eval echo configure:16093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16093 rm -rf conftest*
16094 eval "ac_cv_func_$ac_func=yes"
16095 else
16096 echo "configure: failed program was:" >&5
16097 cat conftest.$ac_ext >&5
16098 rm -rf conftest*
16099 eval "ac_cv_func_$ac_func=no"
16100 fi
16101 rm -f conftest*
16102 fi
16103
16104 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16105 echo "$ac_t""yes" 1>&6
16106 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16107 cat >> confdefs.h <<EOF
16108 #define $ac_tr_func 1
16109 EOF
16110
16111 else
16112 echo "$ac_t""no" 1>&6
16113 fi
16114 done
16115
16116
16117 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
16118 echo "configure:16119: checking for timezone variable in <time.h>" >&5
16119 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
16120 echo $ac_n "(cached) $ac_c" 1>&6
16121 else
16122
16123 cat > conftest.$ac_ext <<EOF
16124 #line 16125 "configure"
16125 #include "confdefs.h"
16126
16127 #include <time.h>
16128
16129 int main() {
16130
16131 int tz;
16132 tz = timezone;
16133
16134 ; return 0; }
16135 EOF
16136 if { (eval echo configure:16137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16137 rm -rf conftest*
16138
16139 wx_cv_var_timezone=timezone
16140
16141 else
16142 echo "configure: failed program was:" >&5
16143 cat conftest.$ac_ext >&5
16144 rm -rf conftest*
16145
16146 cat > conftest.$ac_ext <<EOF
16147 #line 16148 "configure"
16148 #include "confdefs.h"
16149
16150 #include <time.h>
16151
16152 int main() {
16153
16154 int tz;
16155 tz = _timezone;
16156
16157 ; return 0; }
16158 EOF
16159 if { (eval echo configure:16160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16160 rm -rf conftest*
16161
16162 wx_cv_var_timezone=_timezone
16163
16164 else
16165 echo "configure: failed program was:" >&5
16166 cat conftest.$ac_ext >&5
16167 rm -rf conftest*
16168
16169 cat > conftest.$ac_ext <<EOF
16170 #line 16171 "configure"
16171 #include "confdefs.h"
16172
16173 #include <time.h>
16174
16175 int main() {
16176
16177 int tz;
16178 tz = __timezone;
16179
16180 ; return 0; }
16181 EOF
16182 if { (eval echo configure:16183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16183 rm -rf conftest*
16184
16185 wx_cv_var_timezone=__timezone
16186
16187 else
16188 echo "configure: failed program was:" >&5
16189 cat conftest.$ac_ext >&5
16190 rm -rf conftest*
16191 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16192
16193 fi
16194 rm -f conftest*
16195
16196
16197 fi
16198 rm -f conftest*
16199
16200
16201 fi
16202 rm -f conftest*
16203
16204
16205 fi
16206
16207 echo "$ac_t""$wx_cv_var_timezone" 1>&6
16208
16209 cat >> confdefs.h <<EOF
16210 #define WX_TIMEZONE $wx_cv_var_timezone
16211 EOF
16212
16213
16214 for ac_func in localtime
16215 do
16216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16217 echo "configure:16218: checking for $ac_func" >&5
16218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16219 echo $ac_n "(cached) $ac_c" 1>&6
16220 else
16221 cat > conftest.$ac_ext <<EOF
16222 #line 16223 "configure"
16223 #include "confdefs.h"
16224 /* System header to define __stub macros and hopefully few prototypes,
16225 which can conflict with char $ac_func(); below. */
16226 #include <assert.h>
16227 /* Override any gcc2 internal prototype to avoid an error. */
16228 /* We use char because int might match the return type of a gcc2
16229 builtin and then its argument prototype would still apply. */
16230 char $ac_func();
16231
16232 int main() {
16233
16234 /* The GNU C library defines this for functions which it implements
16235 to always fail with ENOSYS. Some functions are actually named
16236 something starting with __ and the normal name is an alias. */
16237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16238 choke me
16239 #else
16240 $ac_func();
16241 #endif
16242
16243 ; return 0; }
16244 EOF
16245 if { (eval echo configure:16246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16246 rm -rf conftest*
16247 eval "ac_cv_func_$ac_func=yes"
16248 else
16249 echo "configure: failed program was:" >&5
16250 cat conftest.$ac_ext >&5
16251 rm -rf conftest*
16252 eval "ac_cv_func_$ac_func=no"
16253 fi
16254 rm -f conftest*
16255 fi
16256
16257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16258 echo "$ac_t""yes" 1>&6
16259 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16260 cat >> confdefs.h <<EOF
16261 #define $ac_tr_func 1
16262 EOF
16263
16264 else
16265 echo "$ac_t""no" 1>&6
16266 fi
16267 done
16268
16269
16270 if test "$ac_cv_func_localtime" = "yes"; then
16271 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
16272 echo "configure:16273: checking for tm_gmtoff in struct tm" >&5
16273 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16274 echo $ac_n "(cached) $ac_c" 1>&6
16275 else
16276
16277 cat > conftest.$ac_ext <<EOF
16278 #line 16279 "configure"
16279 #include "confdefs.h"
16280
16281 #include <time.h>
16282
16283 int main() {
16284
16285 struct tm tm;
16286 tm.tm_gmtoff++;
16287
16288 ; return 0; }
16289 EOF
16290 if { (eval echo configure:16291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16291 rm -rf conftest*
16292
16293 wx_cv_struct_tm_has_gmtoff=yes
16294
16295 else
16296 echo "configure: failed program was:" >&5
16297 cat conftest.$ac_ext >&5
16298 rm -rf conftest*
16299 wx_cv_struct_tm_has_gmtoff=no
16300
16301 fi
16302 rm -f conftest*
16303
16304 fi
16305
16306 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
16307 fi
16308
16309 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
16310 cat >> confdefs.h <<\EOF
16311 #define WX_GMTOFF_IN_TM 1
16312 EOF
16313
16314 fi
16315
16316 for ac_func in gettimeofday ftime
16317 do
16318 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16319 echo "configure:16320: checking for $ac_func" >&5
16320 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16321 echo $ac_n "(cached) $ac_c" 1>&6
16322 else
16323 cat > conftest.$ac_ext <<EOF
16324 #line 16325 "configure"
16325 #include "confdefs.h"
16326 /* System header to define __stub macros and hopefully few prototypes,
16327 which can conflict with char $ac_func(); below. */
16328 #include <assert.h>
16329 /* Override any gcc2 internal prototype to avoid an error. */
16330 /* We use char because int might match the return type of a gcc2
16331 builtin and then its argument prototype would still apply. */
16332 char $ac_func();
16333
16334 int main() {
16335
16336 /* The GNU C library defines this for functions which it implements
16337 to always fail with ENOSYS. Some functions are actually named
16338 something starting with __ and the normal name is an alias. */
16339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16340 choke me
16341 #else
16342 $ac_func();
16343 #endif
16344
16345 ; return 0; }
16346 EOF
16347 if { (eval echo configure:16348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16348 rm -rf conftest*
16349 eval "ac_cv_func_$ac_func=yes"
16350 else
16351 echo "configure: failed program was:" >&5
16352 cat conftest.$ac_ext >&5
16353 rm -rf conftest*
16354 eval "ac_cv_func_$ac_func=no"
16355 fi
16356 rm -f conftest*
16357 fi
16358
16359 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16360 echo "$ac_t""yes" 1>&6
16361 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16362 cat >> confdefs.h <<EOF
16363 #define $ac_tr_func 1
16364 EOF
16365 break
16366 else
16367 echo "$ac_t""no" 1>&6
16368 fi
16369 done
16370
16371
16372 if test "$ac_cv_func_gettimeofday" = "yes"; then
16373 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
16374 echo "configure:16375: checking whether gettimeofday takes two arguments" >&5
16375 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16376 echo $ac_n "(cached) $ac_c" 1>&6
16377 else
16378
16379
16380 ac_ext=C
16381 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16382 ac_cpp='$CXXCPP $CPPFLAGS'
16383 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16384 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16385 cross_compiling=$ac_cv_prog_cxx_cross
16386
16387
16388 cat > conftest.$ac_ext <<EOF
16389 #line 16390 "configure"
16390 #include "confdefs.h"
16391
16392 #include <sys/time.h>
16393 #include <unistd.h>
16394
16395 int main() {
16396
16397 struct timeval tv;
16398 gettimeofday(&tv, NULL);
16399
16400 ; return 0; }
16401 EOF
16402 if { (eval echo configure:16403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16403 rm -rf conftest*
16404 wx_cv_func_gettimeofday_has_2_args=yes
16405 else
16406 echo "configure: failed program was:" >&5
16407 cat conftest.$ac_ext >&5
16408 rm -rf conftest*
16409 cat > conftest.$ac_ext <<EOF
16410 #line 16411 "configure"
16411 #include "confdefs.h"
16412
16413 #include <sys/time.h>
16414 #include <unistd.h>
16415
16416 int main() {
16417
16418 struct timeval tv;
16419 gettimeofday(&tv);
16420
16421 ; return 0; }
16422 EOF
16423 if { (eval echo configure:16424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16424 rm -rf conftest*
16425 wx_cv_func_gettimeofday_has_2_args=no
16426 else
16427 echo "configure: failed program was:" >&5
16428 cat conftest.$ac_ext >&5
16429 rm -rf conftest*
16430
16431 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
16432 wx_cv_func_gettimeofday_has_2_args=unknown
16433
16434
16435 fi
16436 rm -f conftest*
16437
16438 fi
16439 rm -f conftest*
16440 ac_ext=c
16441 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16442 ac_cpp='$CPP $CPPFLAGS'
16443 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16444 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16445 cross_compiling=$ac_cv_prog_cc_cross
16446
16447
16448 fi
16449
16450 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
16451
16452 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
16453 cat >> confdefs.h <<\EOF
16454 #define WX_GETTIMEOFDAY_NO_TZ 1
16455 EOF
16456
16457 fi
16458 fi
16459
16460 cat >> confdefs.h <<\EOF
16461 #define wxUSE_TIMEDATE 1
16462 EOF
16463
16464 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16465 fi
16466
16467
16468 if test "$TOOLKIT" != "MSW"; then
16469
16470 if test "$wxUSE_SOCKETS" = "yes"; then
16471 echo $ac_n "checking for socket""... $ac_c" 1>&6
16472 echo "configure:16473: checking for socket" >&5
16473 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16474 echo $ac_n "(cached) $ac_c" 1>&6
16475 else
16476 cat > conftest.$ac_ext <<EOF
16477 #line 16478 "configure"
16478 #include "confdefs.h"
16479 /* System header to define __stub macros and hopefully few prototypes,
16480 which can conflict with char socket(); below. */
16481 #include <assert.h>
16482 /* Override any gcc2 internal prototype to avoid an error. */
16483 /* We use char because int might match the return type of a gcc2
16484 builtin and then its argument prototype would still apply. */
16485 char socket();
16486
16487 int main() {
16488
16489 /* The GNU C library defines this for functions which it implements
16490 to always fail with ENOSYS. Some functions are actually named
16491 something starting with __ and the normal name is an alias. */
16492 #if defined (__stub_socket) || defined (__stub___socket)
16493 choke me
16494 #else
16495 socket();
16496 #endif
16497
16498 ; return 0; }
16499 EOF
16500 if { (eval echo configure:16501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16501 rm -rf conftest*
16502 eval "ac_cv_func_socket=yes"
16503 else
16504 echo "configure: failed program was:" >&5
16505 cat conftest.$ac_ext >&5
16506 rm -rf conftest*
16507 eval "ac_cv_func_socket=no"
16508 fi
16509 rm -f conftest*
16510 fi
16511
16512 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16513 echo "$ac_t""yes" 1>&6
16514 :
16515 else
16516 echo "$ac_t""no" 1>&6
16517 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
16518 echo "configure:16519: checking for socket in -lsocket" >&5
16519 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16520 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16521 echo $ac_n "(cached) $ac_c" 1>&6
16522 else
16523 ac_save_LIBS="$LIBS"
16524 LIBS="-lsocket $LIBS"
16525 cat > conftest.$ac_ext <<EOF
16526 #line 16527 "configure"
16527 #include "confdefs.h"
16528 /* Override any gcc2 internal prototype to avoid an error. */
16529 /* We use char because int might match the return type of a gcc2
16530 builtin and then its argument prototype would still apply. */
16531 char socket();
16532
16533 int main() {
16534 socket()
16535 ; return 0; }
16536 EOF
16537 if { (eval echo configure:16538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16538 rm -rf conftest*
16539 eval "ac_cv_lib_$ac_lib_var=yes"
16540 else
16541 echo "configure: failed program was:" >&5
16542 cat conftest.$ac_ext >&5
16543 rm -rf conftest*
16544 eval "ac_cv_lib_$ac_lib_var=no"
16545 fi
16546 rm -f conftest*
16547 LIBS="$ac_save_LIBS"
16548
16549 fi
16550 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16551 echo "$ac_t""yes" 1>&6
16552 INET_LINK="$INET_LINK -lsocket"
16553 else
16554 echo "$ac_t""no" 1>&6
16555
16556 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
16557 wxUSE_SOCKETS=no
16558
16559
16560 fi
16561
16562
16563 fi
16564
16565 fi
16566
16567
16568 if test "$wxUSE_SOCKETS" = "yes" ; then
16569 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
16570 echo "configure:16571: checking what is the type of the third argument of getsockname" >&5
16571 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16572 echo $ac_n "(cached) $ac_c" 1>&6
16573 else
16574
16575
16576 ac_ext=C
16577 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16578 ac_cpp='$CXXCPP $CPPFLAGS'
16579 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16580 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16581 cross_compiling=$ac_cv_prog_cxx_cross
16582
16583
16584 cat > conftest.$ac_ext <<EOF
16585 #line 16586 "configure"
16586 #include "confdefs.h"
16587
16588 #include <sys/types.h>
16589 #include <sys/socket.h>
16590
16591 int main() {
16592
16593 socklen_t len;
16594 getsockname(0, 0, &len);
16595
16596 ; return 0; }
16597 EOF
16598 if { (eval echo configure:16599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16599 rm -rf conftest*
16600 wx_cv_type_getsockname3=socklen_t
16601 else
16602 echo "configure: failed program was:" >&5
16603 cat conftest.$ac_ext >&5
16604 rm -rf conftest*
16605 cat > conftest.$ac_ext <<EOF
16606 #line 16607 "configure"
16607 #include "confdefs.h"
16608
16609 #include <sys/types.h>
16610 #include <sys/socket.h>
16611
16612 int main() {
16613
16614 size_t len;
16615 getsockname(0, 0, &len);
16616
16617 ; return 0; }
16618 EOF
16619 if { (eval echo configure:16620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16620 rm -rf conftest*
16621 wx_cv_type_getsockname3=size_t
16622 else
16623 echo "configure: failed program was:" >&5
16624 cat conftest.$ac_ext >&5
16625 rm -rf conftest*
16626 cat > conftest.$ac_ext <<EOF
16627 #line 16628 "configure"
16628 #include "confdefs.h"
16629
16630 #include <sys/types.h>
16631 #include <sys/socket.h>
16632
16633 int main() {
16634
16635 int len;
16636 getsockname(0, 0, &len);
16637
16638 ; return 0; }
16639 EOF
16640 if { (eval echo configure:16641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16641 rm -rf conftest*
16642 wx_cv_type_getsockname3=int
16643 else
16644 echo "configure: failed program was:" >&5
16645 cat conftest.$ac_ext >&5
16646 rm -rf conftest*
16647 wx_cv_type_getsockname3=unknown
16648
16649 fi
16650 rm -f conftest*
16651
16652 fi
16653 rm -f conftest*
16654
16655 fi
16656 rm -f conftest*
16657
16658 ac_ext=c
16659 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16660 ac_cpp='$CPP $CPPFLAGS'
16661 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16662 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16663 cross_compiling=$ac_cv_prog_cc_cross
16664
16665
16666 fi
16667
16668 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
16669
16670 if test "$wx_cv_type_getsockname3" = "unknown"; then
16671 wxUSE_SOCKETS=no
16672 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
16673 else
16674 cat >> confdefs.h <<EOF
16675 #define SOCKLEN_T $wx_cv_type_getsockname3
16676 EOF
16677
16678 fi
16679 fi
16680 fi
16681
16682 if test "$wxUSE_SOCKETS" = "yes" ; then
16683 cat >> confdefs.h <<\EOF
16684 #define wxUSE_SOCKETS 1
16685 EOF
16686
16687 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
16688 fi
16689
16690
16691 if test "$wxUSE_GUI" = "yes"; then
16692
16693 if test "$TOOLKIT" != "MSW"; then
16694 if test "$wxUSE_JOYSTICK" = "yes"; then
16695 for ac_hdr in linux/joystick.h
16696 do
16697 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16698 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16699 echo "configure:16700: checking for $ac_hdr" >&5
16700 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16701 echo $ac_n "(cached) $ac_c" 1>&6
16702 else
16703 cat > conftest.$ac_ext <<EOF
16704 #line 16705 "configure"
16705 #include "confdefs.h"
16706 #include <$ac_hdr>
16707 EOF
16708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16709 { (eval echo configure:16710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16711 if test -z "$ac_err"; then
16712 rm -rf conftest*
16713 eval "ac_cv_header_$ac_safe=yes"
16714 else
16715 echo "$ac_err" >&5
16716 echo "configure: failed program was:" >&5
16717 cat conftest.$ac_ext >&5
16718 rm -rf conftest*
16719 eval "ac_cv_header_$ac_safe=no"
16720 fi
16721 rm -f conftest*
16722 fi
16723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16724 echo "$ac_t""yes" 1>&6
16725 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16726 cat >> confdefs.h <<EOF
16727 #define $ac_tr_hdr 1
16728 EOF
16729
16730 else
16731 echo "$ac_t""no" 1>&6
16732 fi
16733 done
16734
16735 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
16736 wxUSE_JOYSTICK=no
16737 echo "configure: warning: Joystick not supported by this system" 1>&2
16738 fi
16739 fi
16740 fi
16741
16742 if test "$wxUSE_JOYSTICK" = "yes"; then
16743 cat >> confdefs.h <<\EOF
16744 #define wxUSE_JOYSTICK 1
16745 EOF
16746
16747 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
16748 fi
16749 fi
16750
16751
16752 if test "$TOOLKIT" != "MSW"; then
16753
16754 HAVE_DL_FUNCS=0
16755 HAVE_SHL_FUNCS=0
16756 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
16757 if test "$USE_DARWIN" = 1; then
16758 HAVE_DL_FUNCS=1
16759 else
16760 for ac_func in dlopen
16761 do
16762 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16763 echo "configure:16764: checking for $ac_func" >&5
16764 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16765 echo $ac_n "(cached) $ac_c" 1>&6
16766 else
16767 cat > conftest.$ac_ext <<EOF
16768 #line 16769 "configure"
16769 #include "confdefs.h"
16770 /* System header to define __stub macros and hopefully few prototypes,
16771 which can conflict with char $ac_func(); below. */
16772 #include <assert.h>
16773 /* Override any gcc2 internal prototype to avoid an error. */
16774 /* We use char because int might match the return type of a gcc2
16775 builtin and then its argument prototype would still apply. */
16776 char $ac_func();
16777
16778 int main() {
16779
16780 /* The GNU C library defines this for functions which it implements
16781 to always fail with ENOSYS. Some functions are actually named
16782 something starting with __ and the normal name is an alias. */
16783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16784 choke me
16785 #else
16786 $ac_func();
16787 #endif
16788
16789 ; return 0; }
16790 EOF
16791 if { (eval echo configure:16792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16792 rm -rf conftest*
16793 eval "ac_cv_func_$ac_func=yes"
16794 else
16795 echo "configure: failed program was:" >&5
16796 cat conftest.$ac_ext >&5
16797 rm -rf conftest*
16798 eval "ac_cv_func_$ac_func=no"
16799 fi
16800 rm -f conftest*
16801 fi
16802
16803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16804 echo "$ac_t""yes" 1>&6
16805 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16806 cat >> confdefs.h <<EOF
16807 #define $ac_tr_func 1
16808 EOF
16809
16810 cat >> confdefs.h <<\EOF
16811 #define HAVE_DLOPEN 1
16812 EOF
16813
16814 HAVE_DL_FUNCS=1
16815
16816 else
16817 echo "$ac_t""no" 1>&6
16818 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
16819 echo "configure:16820: checking for dlopen in -ldl" >&5
16820 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16821 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16822 echo $ac_n "(cached) $ac_c" 1>&6
16823 else
16824 ac_save_LIBS="$LIBS"
16825 LIBS="-ldl $LIBS"
16826 cat > conftest.$ac_ext <<EOF
16827 #line 16828 "configure"
16828 #include "confdefs.h"
16829 /* Override any gcc2 internal prototype to avoid an error. */
16830 /* We use char because int might match the return type of a gcc2
16831 builtin and then its argument prototype would still apply. */
16832 char dlopen();
16833
16834 int main() {
16835 dlopen()
16836 ; return 0; }
16837 EOF
16838 if { (eval echo configure:16839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16839 rm -rf conftest*
16840 eval "ac_cv_lib_$ac_lib_var=yes"
16841 else
16842 echo "configure: failed program was:" >&5
16843 cat conftest.$ac_ext >&5
16844 rm -rf conftest*
16845 eval "ac_cv_lib_$ac_lib_var=no"
16846 fi
16847 rm -f conftest*
16848 LIBS="$ac_save_LIBS"
16849
16850 fi
16851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16852 echo "$ac_t""yes" 1>&6
16853
16854 cat >> confdefs.h <<\EOF
16855 #define HAVE_DLOPEN 1
16856 EOF
16857
16858 HAVE_DL_FUNCS=1
16859 LIBS="$LIBS -ldl"
16860
16861 else
16862 echo "$ac_t""no" 1>&6
16863
16864 for ac_func in shl_load
16865 do
16866 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16867 echo "configure:16868: checking for $ac_func" >&5
16868 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16869 echo $ac_n "(cached) $ac_c" 1>&6
16870 else
16871 cat > conftest.$ac_ext <<EOF
16872 #line 16873 "configure"
16873 #include "confdefs.h"
16874 /* System header to define __stub macros and hopefully few prototypes,
16875 which can conflict with char $ac_func(); below. */
16876 #include <assert.h>
16877 /* Override any gcc2 internal prototype to avoid an error. */
16878 /* We use char because int might match the return type of a gcc2
16879 builtin and then its argument prototype would still apply. */
16880 char $ac_func();
16881
16882 int main() {
16883
16884 /* The GNU C library defines this for functions which it implements
16885 to always fail with ENOSYS. Some functions are actually named
16886 something starting with __ and the normal name is an alias. */
16887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16888 choke me
16889 #else
16890 $ac_func();
16891 #endif
16892
16893 ; return 0; }
16894 EOF
16895 if { (eval echo configure:16896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16896 rm -rf conftest*
16897 eval "ac_cv_func_$ac_func=yes"
16898 else
16899 echo "configure: failed program was:" >&5
16900 cat conftest.$ac_ext >&5
16901 rm -rf conftest*
16902 eval "ac_cv_func_$ac_func=no"
16903 fi
16904 rm -f conftest*
16905 fi
16906
16907 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16908 echo "$ac_t""yes" 1>&6
16909 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16910 cat >> confdefs.h <<EOF
16911 #define $ac_tr_func 1
16912 EOF
16913
16914 cat >> confdefs.h <<\EOF
16915 #define HAVE_SHL_LOAD 1
16916 EOF
16917
16918 HAVE_SHL_FUNCS=1
16919
16920 else
16921 echo "$ac_t""no" 1>&6
16922 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
16923 echo "configure:16924: checking for dld in -lshl_load" >&5
16924 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16925 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16926 echo $ac_n "(cached) $ac_c" 1>&6
16927 else
16928 ac_save_LIBS="$LIBS"
16929 LIBS="-lshl_load $LIBS"
16930 cat > conftest.$ac_ext <<EOF
16931 #line 16932 "configure"
16932 #include "confdefs.h"
16933 /* Override any gcc2 internal prototype to avoid an error. */
16934 /* We use char because int might match the return type of a gcc2
16935 builtin and then its argument prototype would still apply. */
16936 char dld();
16937
16938 int main() {
16939 dld()
16940 ; return 0; }
16941 EOF
16942 if { (eval echo configure:16943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16943 rm -rf conftest*
16944 eval "ac_cv_lib_$ac_lib_var=yes"
16945 else
16946 echo "configure: failed program was:" >&5
16947 cat conftest.$ac_ext >&5
16948 rm -rf conftest*
16949 eval "ac_cv_lib_$ac_lib_var=no"
16950 fi
16951 rm -f conftest*
16952 LIBS="$ac_save_LIBS"
16953
16954 fi
16955 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16956 echo "$ac_t""yes" 1>&6
16957
16958 HAVE_SHL_FUNCS=1
16959 LIBS="$LIBS -ldld"
16960
16961 else
16962 echo "$ac_t""no" 1>&6
16963 fi
16964
16965
16966 fi
16967 done
16968
16969
16970 fi
16971
16972
16973 fi
16974 done
16975
16976
16977 if test "$HAVE_DL_FUNCS" = 1; then
16978 for ac_func in dlerror
16979 do
16980 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16981 echo "configure:16982: checking for $ac_func" >&5
16982 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16983 echo $ac_n "(cached) $ac_c" 1>&6
16984 else
16985 cat > conftest.$ac_ext <<EOF
16986 #line 16987 "configure"
16987 #include "confdefs.h"
16988 /* System header to define __stub macros and hopefully few prototypes,
16989 which can conflict with char $ac_func(); below. */
16990 #include <assert.h>
16991 /* Override any gcc2 internal prototype to avoid an error. */
16992 /* We use char because int might match the return type of a gcc2
16993 builtin and then its argument prototype would still apply. */
16994 char $ac_func();
16995
16996 int main() {
16997
16998 /* The GNU C library defines this for functions which it implements
16999 to always fail with ENOSYS. Some functions are actually named
17000 something starting with __ and the normal name is an alias. */
17001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17002 choke me
17003 #else
17004 $ac_func();
17005 #endif
17006
17007 ; return 0; }
17008 EOF
17009 if { (eval echo configure:17010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17010 rm -rf conftest*
17011 eval "ac_cv_func_$ac_func=yes"
17012 else
17013 echo "configure: failed program was:" >&5
17014 cat conftest.$ac_ext >&5
17015 rm -rf conftest*
17016 eval "ac_cv_func_$ac_func=no"
17017 fi
17018 rm -f conftest*
17019 fi
17020
17021 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17022 echo "$ac_t""yes" 1>&6
17023 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17024 cat >> confdefs.h <<EOF
17025 #define $ac_tr_func 1
17026 EOF
17027 cat >> confdefs.h <<\EOF
17028 #define HAVE_DLERROR 1
17029 EOF
17030
17031 else
17032 echo "$ac_t""no" 1>&6
17033 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
17034 echo "configure:17035: checking for dlerror in -ldl" >&5
17035 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
17036 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17037 echo $ac_n "(cached) $ac_c" 1>&6
17038 else
17039 ac_save_LIBS="$LIBS"
17040 LIBS="-ldl $LIBS"
17041 cat > conftest.$ac_ext <<EOF
17042 #line 17043 "configure"
17043 #include "confdefs.h"
17044 /* Override any gcc2 internal prototype to avoid an error. */
17045 /* We use char because int might match the return type of a gcc2
17046 builtin and then its argument prototype would still apply. */
17047 char dlerror();
17048
17049 int main() {
17050 dlerror()
17051 ; return 0; }
17052 EOF
17053 if { (eval echo configure:17054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17054 rm -rf conftest*
17055 eval "ac_cv_lib_$ac_lib_var=yes"
17056 else
17057 echo "configure: failed program was:" >&5
17058 cat conftest.$ac_ext >&5
17059 rm -rf conftest*
17060 eval "ac_cv_lib_$ac_lib_var=no"
17061 fi
17062 rm -f conftest*
17063 LIBS="$ac_save_LIBS"
17064
17065 fi
17066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17067 echo "$ac_t""yes" 1>&6
17068 cat >> confdefs.h <<\EOF
17069 #define HAVE_DLERROR 1
17070 EOF
17071
17072 else
17073 echo "$ac_t""no" 1>&6
17074 fi
17075
17076 fi
17077 done
17078
17079 fi
17080 fi
17081
17082 if test "$HAVE_DL_FUNCS" = 0; then
17083 if test "$HAVE_SHL_FUNCS" = 0; then
17084 if test "$USE_UNIX" = 1; then
17085 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
17086 wxUSE_DYNLIB_CLASS=no
17087 else
17088 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
17089 fi
17090 fi
17091 fi
17092 fi
17093 fi
17094
17095 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
17096 cat >> confdefs.h <<\EOF
17097 #define wxUSE_DYNLIB_CLASS 1
17098 EOF
17099
17100 else
17101 wxUSE_ODBC=no
17102 wxUSE_SERIAL=no
17103 fi
17104
17105
17106 if test "$wxUSE_FONTMAP" = "yes" ; then
17107 cat >> confdefs.h <<\EOF
17108 #define wxUSE_FONTMAP 1
17109 EOF
17110
17111 fi
17112
17113 if test "$wxUSE_UNICODE" = "yes" ; then
17114 cat >> confdefs.h <<\EOF
17115 #define wxUSE_UNICODE 1
17116 EOF
17117
17118 fi
17119
17120 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
17121 cat >> confdefs.h <<\EOF
17122 #define wxUSE_EXPERIMENTAL_PRINTF 1
17123 EOF
17124
17125 fi
17126
17127
17128 if test "$wxUSE_SERIAL" = "yes" ; then
17129 cat >> confdefs.h <<\EOF
17130 #define wxUSE_SERIAL 1
17131 EOF
17132
17133 fi
17134
17135
17136 IODBC_C_SRC=""
17137 if test "$wxUSE_ODBC" = "yes" ; then
17138 cat >> confdefs.h <<\EOF
17139 #define wxUSE_ODBC 1
17140 EOF
17141
17142 WXODBCFLAG="-D_IODBC_"
17143 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
17144 fi
17145
17146
17147 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
17148 cat >> confdefs.h <<\EOF
17149 #define wxUSE_POSTSCRIPT 1
17150 EOF
17151
17152 fi
17153
17154 cat >> confdefs.h <<\EOF
17155 #define wxUSE_AFM_FOR_POSTSCRIPT 1
17156 EOF
17157
17158
17159 cat >> confdefs.h <<\EOF
17160 #define wxUSE_NORMALIZED_PS_FONTS 1
17161 EOF
17162
17163
17164
17165 if test "$wxUSE_CONSTRAINTS" = "yes"; then
17166 cat >> confdefs.h <<\EOF
17167 #define wxUSE_CONSTRAINTS 1
17168 EOF
17169
17170 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
17171 fi
17172
17173 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17174 if test "$wxUSE_UNIVERSAL" = "yes"; then
17175 echo "configure: warning: MDI is not supported for wxUNIVERSAL yet... disabled" 1>&2
17176 wxUSE_MDI_ARCHITECTURE=no
17177 fi
17178
17179 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17180 cat >> confdefs.h <<\EOF
17181 #define wxUSE_MDI_ARCHITECTURE 1
17182 EOF
17183
17184 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
17185 fi
17186 fi
17187
17188 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
17189 cat >> confdefs.h <<\EOF
17190 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
17191 EOF
17192
17193 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
17194 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17195 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
17196 fi
17197 fi
17198
17199 if test "$wxUSE_HELP" = "yes"; then
17200 cat >> confdefs.h <<\EOF
17201 #define wxUSE_HELP 1
17202 EOF
17203
17204 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
17205
17206 if test "$USE_WIN32" = 1; then
17207 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
17208 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
17209 echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
17210 echo "configure:17211: checking for htmlhelp.h" >&5
17211 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17212 echo $ac_n "(cached) $ac_c" 1>&6
17213 else
17214 cat > conftest.$ac_ext <<EOF
17215 #line 17216 "configure"
17216 #include "confdefs.h"
17217 #include <htmlhelp.h>
17218 EOF
17219 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17220 { (eval echo configure:17221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17221 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17222 if test -z "$ac_err"; then
17223 rm -rf conftest*
17224 eval "ac_cv_header_$ac_safe=yes"
17225 else
17226 echo "$ac_err" >&5
17227 echo "configure: failed program was:" >&5
17228 cat conftest.$ac_ext >&5
17229 rm -rf conftest*
17230 eval "ac_cv_header_$ac_safe=no"
17231 fi
17232 rm -f conftest*
17233 fi
17234 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17235 echo "$ac_t""yes" 1>&6
17236
17237 cat >> confdefs.h <<\EOF
17238 #define wxUSE_MS_HTML_HELP 1
17239 EOF
17240
17241
17242 else
17243 echo "$ac_t""no" 1>&6
17244
17245 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
17246 wxUSE_MS_HTML_HELP=no
17247
17248 fi
17249
17250 fi
17251 fi
17252
17253 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17254 if test "$wxUSE_HTML" = "yes"; then
17255 cat >> confdefs.h <<\EOF
17256 #define wxUSE_WXHTML_HELP 1
17257 EOF
17258
17259 else
17260 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17261 wxUSE_WXHTML_HELP=no
17262 fi
17263 fi
17264 fi
17265
17266 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17267 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17268 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
17269 else
17270 cat >> confdefs.h <<\EOF
17271 #define wxUSE_PRINTING_ARCHITECTURE 1
17272 EOF
17273
17274 fi
17275 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17276 fi
17277
17278 if test "$wxUSE_PROLOGIO" = "yes" ; then
17279 cat >> confdefs.h <<\EOF
17280 #define wxUSE_PROLOGIO 1
17281 EOF
17282
17283 fi
17284
17285 if test "$wxUSE_RESOURCES" = "yes" ; then
17286 cat >> confdefs.h <<\EOF
17287 #define wxUSE_RESOURCES 1
17288 EOF
17289
17290 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
17291 fi
17292
17293 if test "$wxUSE_X_RESOURCES" = "yes"; then
17294 cat >> confdefs.h <<\EOF
17295 #define wxUSE_X_RESOURCES 1
17296 EOF
17297
17298 fi
17299
17300
17301 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
17302 -o "$wxUSE_CLIPBOARD" = "yes" \
17303 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
17304 for ac_hdr in ole2.h
17305 do
17306 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17307 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17308 echo "configure:17309: checking for $ac_hdr" >&5
17309 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17310 echo $ac_n "(cached) $ac_c" 1>&6
17311 else
17312 cat > conftest.$ac_ext <<EOF
17313 #line 17314 "configure"
17314 #include "confdefs.h"
17315 #include <$ac_hdr>
17316 EOF
17317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17318 { (eval echo configure:17319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17319 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17320 if test -z "$ac_err"; then
17321 rm -rf conftest*
17322 eval "ac_cv_header_$ac_safe=yes"
17323 else
17324 echo "$ac_err" >&5
17325 echo "configure: failed program was:" >&5
17326 cat conftest.$ac_ext >&5
17327 rm -rf conftest*
17328 eval "ac_cv_header_$ac_safe=no"
17329 fi
17330 rm -f conftest*
17331 fi
17332 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17333 echo "$ac_t""yes" 1>&6
17334 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17335 cat >> confdefs.h <<EOF
17336 #define $ac_tr_hdr 1
17337 EOF
17338
17339 else
17340 echo "$ac_t""no" 1>&6
17341 fi
17342 done
17343
17344
17345 if test "$ac_cv_header_ole2_h" = "yes" ; then
17346 if test "$GCC" = yes ; then
17347 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
17348 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
17349 LIBS="$LIBS -lrpcrt4 -loleaut32 -lole32 -luuid"
17350 cat >> confdefs.h <<\EOF
17351 #define wxUSE_OLE 1
17352 EOF
17353
17354
17355 fi
17356
17357 cat >> confdefs.h <<\EOF
17358 #define wxUSE_DATAOBJ 1
17359 EOF
17360
17361 else
17362 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
17363
17364 wxUSE_CLIPBOARD=no
17365 wxUSE_DRAG_AND_DROP=no
17366 wxUSE_DATAOBJ=no
17367 fi
17368
17369 if test "$wxUSE_METAFILE" = "yes"; then
17370 cat >> confdefs.h <<\EOF
17371 #define wxUSE_METAFILE 1
17372 EOF
17373
17374
17375 cat >> confdefs.h <<\EOF
17376 #define wxUSE_ENH_METAFILE 1
17377 EOF
17378
17379 fi
17380 fi
17381
17382 if test "$wxUSE_IPC" = "yes"; then
17383 if test "$wxUSE_SOCKETS" != "yes"; then
17384 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
17385 fi
17386
17387 cat >> confdefs.h <<\EOF
17388 #define wxUSE_IPC 1
17389 EOF
17390
17391 fi
17392
17393 if test "$wxUSE_CLIPBOARD" = "yes"; then
17394 cat >> confdefs.h <<\EOF
17395 #define wxUSE_CLIPBOARD 1
17396 EOF
17397
17398
17399 cat >> confdefs.h <<\EOF
17400 #define wxUSE_DATAOBJ 1
17401 EOF
17402
17403 fi
17404
17405 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17406 if test "$wxUSE_GTK" = 1; then
17407 if test "$WXGTK12" != 1; then
17408 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
17409 wxUSE_DRAG_AND_DROP=no
17410 fi
17411 fi
17412
17413 if test "$wxUSE_MOTIF" = 1; then
17414 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
17415 wxUSE_DRAG_AND_DROP=no
17416 fi
17417
17418 if test "$wxUSE_MAC" = 1; then
17419 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
17420 wxUSE_DRAG_AND_DROP=no
17421 fi
17422
17423 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
17424 cat >> confdefs.h <<\EOF
17425 #define wxUSE_DRAG_AND_DROP 1
17426 EOF
17427
17428 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17429 fi
17430
17431 fi
17432
17433 if test "$wxUSE_SPLINES" = "yes" ; then
17434 cat >> confdefs.h <<\EOF
17435 #define wxUSE_SPLINES 1
17436 EOF
17437
17438 fi
17439
17440
17441 USES_CONTROLS=0
17442 if test "$wxUSE_CONTROLS" = "yes"; then
17443 USES_CONTROLS=1
17444 fi
17445
17446 if test "$wxUSE_ACCEL" = "yes"; then
17447 cat >> confdefs.h <<\EOF
17448 #define wxUSE_ACCEL 1
17449 EOF
17450
17451 USES_CONTROLS=1
17452 fi
17453
17454 if test "$wxUSE_BUTTON" = "yes"; then
17455 cat >> confdefs.h <<\EOF
17456 #define wxUSE_BUTTON 1
17457 EOF
17458
17459 USES_CONTROLS=1
17460 fi
17461
17462 if test "$wxUSE_BMPBUTTON" = "yes"; then
17463 cat >> confdefs.h <<\EOF
17464 #define wxUSE_BMPBUTTON 1
17465 EOF
17466
17467 USES_CONTROLS=1
17468 fi
17469
17470 if test "$wxUSE_CALCTRL" = "yes"; then
17471 cat >> confdefs.h <<\EOF
17472 #define wxUSE_CALENDARCTRL 1
17473 EOF
17474
17475 USES_CONTROLS=1
17476 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
17477 fi
17478
17479 if test "$wxUSE_CARET" = "yes"; then
17480 cat >> confdefs.h <<\EOF
17481 #define wxUSE_CARET 1
17482 EOF
17483
17484 USES_CONTROLS=1
17485 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17486 fi
17487
17488 if test "$wxUSE_COMBOBOX" = "yes"; then
17489 cat >> confdefs.h <<\EOF
17490 #define wxUSE_COMBOBOX 1
17491 EOF
17492
17493 USES_CONTROLS=1
17494 fi
17495
17496 if test "$wxUSE_CHOICE" = "yes"; then
17497 cat >> confdefs.h <<\EOF
17498 #define wxUSE_CHOICE 1
17499 EOF
17500
17501 USES_CONTROLS=1
17502 fi
17503
17504 if test "$wxUSE_CHECKBOX" = "yes"; then
17505 cat >> confdefs.h <<\EOF
17506 #define wxUSE_CHECKBOX 1
17507 EOF
17508
17509 USES_CONTROLS=1
17510 fi
17511
17512 if test "$wxUSE_CHECKLST" = "yes"; then
17513 cat >> confdefs.h <<\EOF
17514 #define wxUSE_CHECKLISTBOX 1
17515 EOF
17516
17517 USES_CONTROLS=1
17518 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17519 fi
17520
17521 if test "$wxUSE_GAUGE" = "yes"; then
17522 cat >> confdefs.h <<\EOF
17523 #define wxUSE_GAUGE 1
17524 EOF
17525
17526 USES_CONTROLS=1
17527 fi
17528
17529 if test "$wxUSE_NEW_GRID" = "yes"; then
17530 wxUSE_GRID="yes"
17531 cat >> confdefs.h <<\EOF
17532 #define wxUSE_NEW_GRID 1
17533 EOF
17534
17535 USES_CONTROLS=1
17536 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
17537 fi
17538
17539 if test "$wxUSE_GRID" = "yes"; then
17540 cat >> confdefs.h <<\EOF
17541 #define wxUSE_GRID 1
17542 EOF
17543
17544 USES_CONTROLS=1
17545 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
17546 fi
17547
17548 if test "$wxUSE_IMAGLIST" = "yes"; then
17549 cat >> confdefs.h <<\EOF
17550 #define wxUSE_IMAGLIST 1
17551 EOF
17552
17553 fi
17554
17555 if test "$wxUSE_LISTBOX" = "yes"; then
17556 cat >> confdefs.h <<\EOF
17557 #define wxUSE_LISTBOX 1
17558 EOF
17559
17560 USES_CONTROLS=1
17561 fi
17562
17563 if test "$wxUSE_LISTCTRL" = "yes"; then
17564 if test "$wxUSE_IMAGLIST" = "yes"; then
17565 cat >> confdefs.h <<\EOF
17566 #define wxUSE_LISTCTRL 1
17567 EOF
17568
17569 USES_CONTROLS=1
17570 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17571 else
17572 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
17573 fi
17574 fi
17575
17576 if test "$wxUSE_NOTEBOOK" = "yes"; then
17577 cat >> confdefs.h <<\EOF
17578 #define wxUSE_NOTEBOOK 1
17579 EOF
17580
17581 USES_CONTROLS=1
17582 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17583 fi
17584
17585 if test "$wxUSE_PROPSHEET" = "yes"; then
17586 cat >> confdefs.h <<\EOF
17587 #define wxUSE_PROPSHEET 1
17588 EOF
17589
17590 USES_CONTROLS=1
17591 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
17592 fi
17593
17594 if test "$wxUSE_RADIOBOX" = "yes"; then
17595 cat >> confdefs.h <<\EOF
17596 #define wxUSE_RADIOBOX 1
17597 EOF
17598
17599 USES_CONTROLS=1
17600 fi
17601
17602 if test "$wxUSE_RADIOBTN" = "yes"; then
17603 cat >> confdefs.h <<\EOF
17604 #define wxUSE_RADIOBTN 1
17605 EOF
17606
17607 USES_CONTROLS=1
17608 fi
17609
17610 if test "$wxUSE_SASH" = "yes"; then
17611 cat >> confdefs.h <<\EOF
17612 #define wxUSE_SASH 1
17613 EOF
17614
17615 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17616 fi
17617
17618 if test "$wxUSE_SCROLLBAR" = "yes"; then
17619 cat >> confdefs.h <<\EOF
17620 #define wxUSE_SCROLLBAR 1
17621 EOF
17622
17623 USES_CONTROLS=1
17624 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
17625 fi
17626
17627 if test "$wxUSE_SLIDER" = "yes"; then
17628 cat >> confdefs.h <<\EOF
17629 #define wxUSE_SLIDER 1
17630 EOF
17631
17632 USES_CONTROLS=1
17633 fi
17634
17635 if test "$wxUSE_SPINBTN" = "yes"; then
17636 cat >> confdefs.h <<\EOF
17637 #define wxUSE_SPINBTN 1
17638 EOF
17639
17640 USES_CONTROLS=1
17641 fi
17642
17643 if test "$wxUSE_SPINCTRL" = "yes"; then
17644 cat >> confdefs.h <<\EOF
17645 #define wxUSE_SPINCTRL 1
17646 EOF
17647
17648 USES_CONTROLS=1
17649 fi
17650
17651 if test "$wxUSE_SPLITTER" = "yes"; then
17652 cat >> confdefs.h <<\EOF
17653 #define wxUSE_SPLITTER 1
17654 EOF
17655
17656 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17657 fi
17658
17659 if test "$wxUSE_STATBMP" = "yes"; then
17660 cat >> confdefs.h <<\EOF
17661 #define wxUSE_STATBMP 1
17662 EOF
17663
17664 USES_CONTROLS=1
17665 fi
17666
17667 if test "$wxUSE_STATBOX" = "yes"; then
17668 cat >> confdefs.h <<\EOF
17669 #define wxUSE_STATBOX 1
17670 EOF
17671
17672 USES_CONTROLS=1
17673 fi
17674
17675 if test "$wxUSE_STATTEXT" = "yes"; then
17676 cat >> confdefs.h <<\EOF
17677 #define wxUSE_STATTEXT 1
17678 EOF
17679
17680 USES_CONTROLS=1
17681 fi
17682
17683 if test "$wxUSE_STATLINE" = "yes"; then
17684 if test "$wxUSE_WINE" = 1 ; then
17685 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
17686 else
17687 cat >> confdefs.h <<\EOF
17688 #define wxUSE_STATLINE 1
17689 EOF
17690
17691 USES_CONTROLS=1
17692 fi
17693 fi
17694
17695 if test "$wxUSE_STATUSBAR" = "yes"; then
17696 cat >> confdefs.h <<\EOF
17697 #define wxUSE_STATUSBAR 1
17698 EOF
17699
17700 USES_CONTROLS=1
17701
17702 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
17703 fi
17704
17705 if test "$wxUSE_TABDIALOG" = "yes"; then
17706 cat >> confdefs.h <<\EOF
17707 #define wxUSE_TAB_DIALOG 1
17708 EOF
17709
17710 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17711 fi
17712
17713 if test "$wxUSE_TEXTCTRL" = "yes"; then
17714 cat >> confdefs.h <<\EOF
17715 #define wxUSE_TEXTCTRL 1
17716 EOF
17717
17718 USES_CONTROLS=1
17719 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17720 fi
17721
17722 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17723 if test "$wxUSE_MAC" = 1 -o "$wxUSE_UNIVERSAL" = "yes"; then
17724 echo "configure: warning: Toggle button not yet supported under Mac OS X or wxUNIVERSAL... disabled" 1>&2
17725 wxUSE_TOGGLEBTN=no
17726 fi
17727
17728 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17729 cat >> confdefs.h <<\EOF
17730 #define wxUSE_TOGGLEBTN 1
17731 EOF
17732
17733 USES_CONTROLS=1
17734 fi
17735 fi
17736
17737 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
17738 cat >> confdefs.h <<\EOF
17739 #define wxUSE_TOOLBAR_SIMPLE 1
17740 EOF
17741
17742 wxUSE_TOOLBAR="yes"
17743 USES_CONTROLS=1
17744 fi
17745
17746 if test "$wxUSE_TOOLBAR" = "yes"; then
17747 cat >> confdefs.h <<\EOF
17748 #define wxUSE_TOOLBAR 1
17749 EOF
17750
17751 USES_CONTROLS=1
17752
17753 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17754 wxUSE_TOOLBAR_NATIVE="yes"
17755 fi
17756
17757 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17758 cat >> confdefs.h <<\EOF
17759 #define wxUSE_TOOLBAR_NATIVE 1
17760 EOF
17761
17762 USES_CONTROLS=1
17763 fi
17764
17765 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
17766 fi
17767
17768 if test "$wxUSE_TOOLTIPS" = "yes"; then
17769 if test "$wxUSE_MOTIF" = 1; then
17770 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
17771 else
17772 if test "$wxUSE_WINE" = 1; then
17773 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
17774 else
17775 cat >> confdefs.h <<\EOF
17776 #define wxUSE_TOOLTIPS 1
17777 EOF
17778
17779 fi
17780 fi
17781 fi
17782
17783 if test "$wxUSE_TREECTRL" = "yes"; then
17784 if test "$wxUSE_IMAGLIST" = "yes"; then
17785 cat >> confdefs.h <<\EOF
17786 #define wxUSE_TREECTRL 1
17787 EOF
17788
17789 USES_CONTROLS=1
17790 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17791 else
17792 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
17793 fi
17794 fi
17795
17796 if test "$wxUSE_POPUPWIN" = "yes"; then
17797 if test "$wxUSE_MAC" = 1; then
17798 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17799 else
17800 cat >> confdefs.h <<\EOF
17801 #define wxUSE_POPUPWIN 1
17802 EOF
17803
17804 USES_CONTROLS=1
17805 fi
17806 fi
17807
17808 if test "$USES_CONTROLS" = 1; then
17809 cat >> confdefs.h <<\EOF
17810 #define wxUSE_CONTROLS 1
17811 EOF
17812
17813 fi
17814
17815
17816 if test "$wxUSE_TREELAYOUT" = "yes"; then
17817 cat >> confdefs.h <<\EOF
17818 #define wxUSE_TREELAYOUT 1
17819 EOF
17820
17821 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
17822 fi
17823
17824 if test "$wxUSE_DRAGIMAGE" = "yes"; then
17825 cat >> confdefs.h <<\EOF
17826 #define wxUSE_DRAGIMAGE 1
17827 EOF
17828
17829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
17830 fi
17831
17832 if test "$wxUSE_MENUS" = "yes"; then
17833 cat >> confdefs.h <<\EOF
17834 #define wxUSE_MENUS 1
17835 EOF
17836
17837 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
17838 fi
17839
17840 if test "$wxUSE_METAFILE" = "yes"; then
17841 cat >> confdefs.h <<\EOF
17842 #define wxUSE_METAFILE 1
17843 EOF
17844
17845 fi
17846
17847 if test "$wxUSE_MIMETYPE" = "yes"; then
17848 cat >> confdefs.h <<\EOF
17849 #define wxUSE_MIMETYPE 1
17850 EOF
17851
17852 fi
17853
17854 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
17855 cat >> confdefs.h <<\EOF
17856 #define wxUSE_SYSTEM_OPTIONS 1
17857 EOF
17858
17859 fi
17860
17861 if test "$wxUSE_MINIFRAME" = "yes"; then
17862 cat >> confdefs.h <<\EOF
17863 #define wxUSE_MINIFRAME 1
17864 EOF
17865
17866 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
17867 fi
17868
17869 if test "$wxUSE_HTML" = "yes"; then
17870 cat >> confdefs.h <<\EOF
17871 #define wxUSE_HTML 1
17872 EOF
17873
17874 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
17875 fi
17876
17877 if test "$wxUSE_VALIDATORS" = "yes"; then
17878 cat >> confdefs.h <<\EOF
17879 #define wxUSE_VALIDATORS 1
17880 EOF
17881
17882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
17883 fi
17884
17885 if test "$wxUSE_PALETTE" = "yes" ; then
17886 cat >> confdefs.h <<\EOF
17887 #define wxUSE_PALETTE 1
17888 EOF
17889
17890 fi
17891
17892 if test "$wxUSE_IMAGE" = "yes" ; then
17893 cat >> confdefs.h <<\EOF
17894 #define wxUSE_IMAGE 1
17895 EOF
17896
17897 fi
17898
17899 if test "$wxUSE_GIF" = "yes" ; then
17900 cat >> confdefs.h <<\EOF
17901 #define wxUSE_GIF 1
17902 EOF
17903
17904 fi
17905
17906 if test "$wxUSE_PCX" = "yes" ; then
17907 cat >> confdefs.h <<\EOF
17908 #define wxUSE_PCX 1
17909 EOF
17910
17911 fi
17912
17913 if test "$wxUSE_PNM" = "yes" ; then
17914 cat >> confdefs.h <<\EOF
17915 #define wxUSE_PNM 1
17916 EOF
17917
17918 fi
17919
17920 if test "$wxUSE_XPM" = "yes" ; then
17921 cat >> confdefs.h <<\EOF
17922 #define wxUSE_XPM 1
17923 EOF
17924
17925 fi
17926
17927
17928 if test "$wxUSE_CHOICEDLG" = "yes"; then
17929 cat >> confdefs.h <<\EOF
17930 #define wxUSE_CHOICEDLG 1
17931 EOF
17932
17933 fi
17934
17935 if test "$wxUSE_COLOURDLG" = "yes"; then
17936 cat >> confdefs.h <<\EOF
17937 #define wxUSE_COLOURDLG 1
17938 EOF
17939
17940 fi
17941
17942 if test "$wxUSE_FILEDLG" = "yes"; then
17943 cat >> confdefs.h <<\EOF
17944 #define wxUSE_FILEDLG 1
17945 EOF
17946
17947 fi
17948
17949 if test "$wxUSE_FINDREPLDLG" = "yes"; then
17950 cat >> confdefs.h <<\EOF
17951 #define wxUSE_FINDREPLDLG 1
17952 EOF
17953
17954 fi
17955
17956 if test "$wxUSE_FONTDLG" = "yes"; then
17957 cat >> confdefs.h <<\EOF
17958 #define wxUSE_FONTDLG 1
17959 EOF
17960
17961 fi
17962
17963 if test "$wxUSE_DIRDLG" = "yes"; then
17964 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17965 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
17966 else
17967 if test "$wxUSE_TREECTRL" != "yes"; then
17968 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
17969 else
17970 cat >> confdefs.h <<\EOF
17971 #define wxUSE_DIRDLG 1
17972 EOF
17973
17974 fi
17975 fi
17976 fi
17977
17978 if test "$wxUSE_MSGDLG" = "yes"; then
17979 cat >> confdefs.h <<\EOF
17980 #define wxUSE_MSGDLG 1
17981 EOF
17982
17983 fi
17984
17985 if test "$wxUSE_NUMBERDLG" = "yes"; then
17986 cat >> confdefs.h <<\EOF
17987 #define wxUSE_NUMBERDLG 1
17988 EOF
17989
17990 fi
17991
17992 if test "$wxUSE_PROGRESSDLG" = "yes"; then
17993 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17994 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
17995 else
17996 cat >> confdefs.h <<\EOF
17997 #define wxUSE_PROGRESSDLG 1
17998 EOF
17999
18000 fi
18001 fi
18002
18003 if test "$wxUSE_SPLASH" = "yes"; then
18004 cat >> confdefs.h <<\EOF
18005 #define wxUSE_SPLASH 1
18006 EOF
18007
18008 fi
18009
18010 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
18011 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18012 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
18013 else
18014 cat >> confdefs.h <<\EOF
18015 #define wxUSE_STARTUP_TIPS 1
18016 EOF
18017
18018 fi
18019 fi
18020
18021 if test "$wxUSE_TEXTDLG" = "yes"; then
18022 cat >> confdefs.h <<\EOF
18023 #define wxUSE_TEXTDLG 1
18024 EOF
18025
18026 fi
18027
18028 if test "$wxUSE_WIZARDDLG" = "yes"; then
18029 cat >> confdefs.h <<\EOF
18030 #define wxUSE_WIZARDDLG 1
18031 EOF
18032
18033 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
18034 fi
18035
18036
18037 if test "$cross_compiling" = "yes"; then
18038 OSINFO="\"$host\""
18039 else
18040 OSINFO=`uname -s -r -m`
18041 OSINFO="\"$OSINFO\""
18042 fi
18043
18044 cat >> confdefs.h <<EOF
18045 #define WXWIN_OS_DESCRIPTION $OSINFO
18046 EOF
18047
18048
18049
18050 if test "x$prefix" != "xNONE"; then
18051 wxPREFIX=$prefix
18052 else
18053 wxPREFIX=$ac_default_prefix
18054 fi
18055
18056 cat >> confdefs.h <<EOF
18057 #define wxINSTALL_PREFIX "$wxPREFIX"
18058 EOF
18059
18060
18061
18062 GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
18063
18064 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
18065
18066 if test "$wxUSE_MAC" = 1 ; then
18067 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
18068 fi
18069
18070 if test "$wxUSE_GUI" = "yes"; then
18071 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
18072
18073
18074 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
18075 drawing dynamic erase event exec font image \
18076 minimal richedit rotate widgets"
18077
18078 if test "$wxUSE_UNIVERSAL" = "yes" ; then
18079 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
18080 fi
18081
18082 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
18083 else
18084 SAMPLES_SUBDIRS="console"
18085 fi
18086
18087 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
18088
18089 INCLUDES="-I. -I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
18090 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
18091 $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
18092
18093 if test "$wxUSE_GTK" = 1; then
18094 WXCONFIG_INCLUDE=""
18095 else
18096 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
18097 fi
18098
18099 if test "$GXX" = yes ; then
18100 CXXWARNINGS="-Wall"
18101 fi
18102 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
18103
18104 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
18105 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
18106
18107 LDFLAGS="$LDFLAGS $PROFILE"
18108
18109 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
18193 echo "configure:18194: checking whether ${MAKE-make} sets \${MAKE}" >&5
18194 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
18195 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
18196 echo $ac_n "(cached) $ac_c" 1>&6
18197 else
18198 cat > conftestmake <<\EOF
18199 all:
18200 @echo 'ac_maketemp="${MAKE}"'
18201 EOF
18202 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18203 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
18204 if test -n "$ac_maketemp"; then
18205 eval ac_cv_prog_make_${ac_make}_set=yes
18206 else
18207 eval ac_cv_prog_make_${ac_make}_set=no
18208 fi
18209 rm -f conftestmake
18210 fi
18211 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
18212 echo "$ac_t""yes" 1>&6
18213 SET_MAKE=
18214 else
18215 echo "$ac_t""no" 1>&6
18216 SET_MAKE="MAKE=${MAKE-make}"
18217 fi
18218
18219
18220 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
18221 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
18222 fi
18223
18224
18225
18226 if test "$wxUSE_GUI" = "yes"; then
18227 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
18228 wx_cv_path_ifs=$PATH_IFS
18229 wx_cv_program_ext=$PROGRAM_EXT
18230 wx_cv_target_library=$WX_TARGET_LIBRARY
18231 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
18232 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
18233 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
18234 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
18235 subdirs="demos samples utils contrib"
18236
18237 fi
18238
18239 trap '' 1 2 15
18240 cat > confcache <<\EOF
18241 # This file is a shell script that caches the results of configure
18242 # tests run on this system so they can be shared between configure
18243 # scripts and configure runs. It is not useful on other systems.
18244 # If it contains results you don't want to keep, you may remove or edit it.
18245 #
18246 # By default, configure uses ./config.cache as the cache file,
18247 # creating it if it does not exist already. You can give configure
18248 # the --cache-file=FILE option to use a different cache file; that is
18249 # what configure does when it calls configure scripts in
18250 # subdirectories, so they share the cache.
18251 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18252 # config.status only pays attention to the cache file if you give it the
18253 # --recheck option to rerun configure.
18254 #
18255 EOF
18256 # The following way of writing the cache mishandles newlines in values,
18257 # but we know of no workaround that is simple, portable, and efficient.
18258 # So, don't put newlines in cache variables' values.
18259 # Ultrix sh set writes to stderr and can't be redirected directly,
18260 # and sets the high bit in the cache file unless we assign to the vars.
18261 (set) 2>&1 |
18262 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18263 *ac_space=\ *)
18264 # `set' does not quote correctly, so add quotes (double-quote substitution
18265 # turns \\\\ into \\, and sed turns \\ into \).
18266 sed -n \
18267 -e "s/'/'\\\\''/g" \
18268 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18269 ;;
18270 *)
18271 # `set' quotes correctly as required by POSIX, so do not add quotes.
18272 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18273 ;;
18274 esac >> confcache
18275 if cmp -s $cache_file confcache; then
18276 :
18277 else
18278 if test -w $cache_file; then
18279 echo "updating cache $cache_file"
18280 cat confcache > $cache_file
18281 else
18282 echo "not updating unwritable cache $cache_file"
18283 fi
18284 fi
18285 rm -f confcache
18286
18287 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18288
18289 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18290 # Let make expand exec_prefix.
18291 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18292
18293 # Any assignment to VPATH causes Sun make to only execute
18294 # the first set of double-colon rules, so remove it if not needed.
18295 # If there is a colon in the path, we need to keep it.
18296 if test "x$srcdir" = x.; then
18297 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
18298 fi
18299
18300 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18301
18302 DEFS=-DHAVE_CONFIG_H
18303
18304 # Without the "./", some shells look in PATH for config.status.
18305 : ${CONFIG_STATUS=./config.status}
18306
18307 echo creating $CONFIG_STATUS
18308 rm -f $CONFIG_STATUS
18309 cat > $CONFIG_STATUS <<EOF
18310 #! /bin/sh
18311 # Generated automatically by configure.
18312 # Run this file to recreate the current configuration.
18313 # This directory was configured as follows,
18314 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18315 #
18316 # $0 $ac_configure_args
18317 #
18318 # Compiler output produced by configure, useful for debugging
18319 # configure, is in ./config.log if it exists.
18320
18321 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18322 for ac_option
18323 do
18324 case "\$ac_option" in
18325 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18326 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18327 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18328 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18329 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18330 exit 0 ;;
18331 -help | --help | --hel | --he | --h)
18332 echo "\$ac_cs_usage"; exit 0 ;;
18333 *) echo "\$ac_cs_usage"; exit 1 ;;
18334 esac
18335 done
18336
18337 ac_given_srcdir=$srcdir
18338 ac_given_INSTALL="$INSTALL"
18339
18340 trap 'rm -fr `echo "
18341 wx-config
18342 src/make.env
18343 src/makeprog.env
18344 src/makelib.env
18345 Makefile
18346 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
18347 EOF
18348 cat >> $CONFIG_STATUS <<EOF
18349
18350 # Protect against being on the right side of a sed subst in config.status.
18351 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18352 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18353 $ac_vpsub
18354 $extrasub
18355 s%@SHELL@%$SHELL%g
18356 s%@CFLAGS@%$CFLAGS%g
18357 s%@CPPFLAGS@%$CPPFLAGS%g
18358 s%@CXXFLAGS@%$CXXFLAGS%g
18359 s%@FFLAGS@%$FFLAGS%g
18360 s%@DEFS@%$DEFS%g
18361 s%@LDFLAGS@%$LDFLAGS%g
18362 s%@LIBS@%$LIBS%g
18363 s%@exec_prefix@%$exec_prefix%g
18364 s%@prefix@%$prefix%g
18365 s%@program_transform_name@%$program_transform_name%g
18366 s%@bindir@%$bindir%g
18367 s%@sbindir@%$sbindir%g
18368 s%@libexecdir@%$libexecdir%g
18369 s%@datadir@%$datadir%g
18370 s%@sysconfdir@%$sysconfdir%g
18371 s%@sharedstatedir@%$sharedstatedir%g
18372 s%@localstatedir@%$localstatedir%g
18373 s%@libdir@%$libdir%g
18374 s%@includedir@%$includedir%g
18375 s%@oldincludedir@%$oldincludedir%g
18376 s%@infodir@%$infodir%g
18377 s%@mandir@%$mandir%g
18378 s%@host@%$host%g
18379 s%@host_alias@%$host_alias%g
18380 s%@host_cpu@%$host_cpu%g
18381 s%@host_vendor@%$host_vendor%g
18382 s%@host_os@%$host_os%g
18383 s%@target@%$target%g
18384 s%@target_alias@%$target_alias%g
18385 s%@target_cpu@%$target_cpu%g
18386 s%@target_vendor@%$target_vendor%g
18387 s%@target_os@%$target_os%g
18388 s%@build@%$build%g
18389 s%@build_alias@%$build_alias%g
18390 s%@build_cpu@%$build_cpu%g
18391 s%@build_vendor@%$build_vendor%g
18392 s%@build_os@%$build_os%g
18393 s%@CC@%$CC%g
18394 s%@CPP@%$CPP%g
18395 s%@CXX@%$CXX%g
18396 s%@RANLIB@%$RANLIB%g
18397 s%@AR@%$AR%g
18398 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18399 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18400 s%@INSTALL_DATA@%$INSTALL_DATA%g
18401 s%@STRIP@%$STRIP%g
18402 s%@YACC@%$YACC%g
18403 s%@LEX@%$LEX%g
18404 s%@LEXLIB@%$LEXLIB%g
18405 s%@LN_S@%$LN_S%g
18406 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
18407 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18408 s%@GTK_LIBS@%$GTK_LIBS%g
18409 s%@GTK_CONFIG@%$GTK_CONFIG%g
18410 s%@X_CFLAGS@%$X_CFLAGS%g
18411 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18412 s%@X_LIBS@%$X_LIBS%g
18413 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
18414 s%@RESCOMP@%$RESCOMP%g
18415 s%@DEREZ@%$DEREZ%g
18416 s%@CXXCPP@%$CXXCPP%g
18417 s%@LEX_STEM@%$LEX_STEM%g
18418 s%@PATH_IFS@%$PATH_IFS%g
18419 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18420 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18421 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
18422 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18423 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
18424 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18425 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18426 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
18427 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
18428 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18429 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
18430 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18431 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18432 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
18433 s%@WX_ALL@%$WX_ALL%g
18434 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18435 s%@SHARED_LD@%$SHARED_LD%g
18436 s%@PIC_FLAG@%$PIC_FLAG%g
18437 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18438 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
18439 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
18440 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
18441 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18442 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18443 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18444 s%@USE_GUI@%$USE_GUI%g
18445 s%@AFMINSTALL@%$AFMINSTALL%g
18446 s%@TOOLKIT@%$TOOLKIT%g
18447 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
18448 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
18449 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
18450 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
18451 s%@cross_compiling@%$cross_compiling%g
18452 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
18453 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
18454 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18455 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
18456 s%@GUIDIST@%$GUIDIST%g
18457 s%@PORT_FILES@%$PORT_FILES%g
18458 s%@DISTDIR@%$DISTDIR%g
18459 s%@RPM_SPEC@%$RPM_SPEC%g
18460 s%@RPM_FILES@%$RPM_FILES%g
18461 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
18462 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
18463 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18464 s%@EXTRADEFS@%$EXTRADEFS%g
18465 s%@LD_LIBS@%$LD_LIBS%g
18466 s%@WXMSW_DLL_DEFINES@%$WXMSW_DLL_DEFINES%g
18467 s%@RESFLAGS@%$RESFLAGS%g
18468 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
18469 s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
18470 s%@LIBWXMACRES@%$LIBWXMACRES%g
18471 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18472 s%@DLLTOOL@%$DLLTOOL%g
18473 s%@AS@%$AS%g
18474 s%@NM@%$NM%g
18475 s%@LD@%$LD%g
18476 s%@MAKEINFO@%$MAKEINFO%g
18477 s%@SET_MAKE@%$SET_MAKE%g
18478 s%@subdirs@%$subdirs%g
18479
18480 CEOF
18481 EOF
18482
18483 cat >> $CONFIG_STATUS <<\EOF
18484
18485 # Split the substitutions into bite-sized pieces for seds with
18486 # small command number limits, like on Digital OSF/1 and HP-UX.
18487 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18488 ac_file=1 # Number of current file.
18489 ac_beg=1 # First line for current file.
18490 ac_end=$ac_max_sed_cmds # Line after last line for current file.
18491 ac_more_lines=:
18492 ac_sed_cmds=""
18493 while $ac_more_lines; do
18494 if test $ac_beg -gt 1; then
18495 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18496 else
18497 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18498 fi
18499 if test ! -s conftest.s$ac_file; then
18500 ac_more_lines=false
18501 rm -f conftest.s$ac_file
18502 else
18503 if test -z "$ac_sed_cmds"; then
18504 ac_sed_cmds="sed -f conftest.s$ac_file"
18505 else
18506 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18507 fi
18508 ac_file=`expr $ac_file + 1`
18509 ac_beg=$ac_end
18510 ac_end=`expr $ac_end + $ac_max_sed_cmds`
18511 fi
18512 done
18513 if test -z "$ac_sed_cmds"; then
18514 ac_sed_cmds=cat
18515 fi
18516 EOF
18517
18518 cat >> $CONFIG_STATUS <<EOF
18519
18520 CONFIG_FILES=\${CONFIG_FILES-"wx-config
18521 src/make.env
18522 src/makeprog.env
18523 src/makelib.env
18524 Makefile
18525 "}
18526 EOF
18527 cat >> $CONFIG_STATUS <<\EOF
18528 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18529 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18530 case "$ac_file" in
18531 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18532 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18533 *) ac_file_in="${ac_file}.in" ;;
18534 esac
18535
18536 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18537
18538 # Remove last slash and all that follows it. Not all systems have dirname.
18539 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18540 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18541 # The file is in a subdirectory.
18542 test ! -d "$ac_dir" && mkdir "$ac_dir"
18543 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18544 # A "../" for each directory in $ac_dir_suffix.
18545 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18546 else
18547 ac_dir_suffix= ac_dots=
18548 fi
18549
18550 case "$ac_given_srcdir" in
18551 .) srcdir=.
18552 if test -z "$ac_dots"; then top_srcdir=.
18553 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18554 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18555 *) # Relative path.
18556 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18557 top_srcdir="$ac_dots$ac_given_srcdir" ;;
18558 esac
18559
18560 case "$ac_given_INSTALL" in
18561 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18562 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18563 esac
18564
18565 echo creating "$ac_file"
18566 rm -f "$ac_file"
18567 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18568 case "$ac_file" in
18569 *Makefile*) ac_comsub="1i\\
18570 # $configure_input" ;;
18571 *) ac_comsub= ;;
18572 esac
18573
18574 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18575 sed -e "$ac_comsub
18576 s%@configure_input@%$configure_input%g
18577 s%@srcdir@%$srcdir%g
18578 s%@top_srcdir@%$top_srcdir%g
18579 s%@INSTALL@%$INSTALL%g
18580 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18581 fi; done
18582 rm -f conftest.s*
18583
18584 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18585 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18586 #
18587 # ac_d sets the value in "#define NAME VALUE" lines.
18588 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18589 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18590 ac_dC='\3'
18591 ac_dD='%g'
18592 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18593 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18594 ac_uB='\([ ]\)%\1#\2define\3'
18595 ac_uC=' '
18596 ac_uD='\4%g'
18597 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18598 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18599 ac_eB='$%\1#\2define\3'
18600 ac_eC=' '
18601 ac_eD='%g'
18602
18603 if test "${CONFIG_HEADERS+set}" != set; then
18604 EOF
18605 cat >> $CONFIG_STATUS <<EOF
18606 CONFIG_HEADERS="setup.h:setup.h.in"
18607 EOF
18608 cat >> $CONFIG_STATUS <<\EOF
18609 fi
18610 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18611 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18612 case "$ac_file" in
18613 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18614 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18615 *) ac_file_in="${ac_file}.in" ;;
18616 esac
18617
18618 echo creating $ac_file
18619
18620 rm -f conftest.frag conftest.in conftest.out
18621 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18622 cat $ac_file_inputs > conftest.in
18623
18624 EOF
18625
18626 # Transform confdefs.h into a sed script conftest.vals that substitutes
18627 # the proper values into config.h.in to produce config.h. And first:
18628 # Protect against being on the right side of a sed subst in config.status.
18629 # Protect against being in an unquoted here document in config.status.
18630 rm -f conftest.vals
18631 cat > conftest.hdr <<\EOF
18632 s/[\\&%]/\\&/g
18633 s%[\\$`]%\\&%g
18634 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18635 s%ac_d%ac_u%gp
18636 s%ac_u%ac_e%gp
18637 EOF
18638 sed -n -f conftest.hdr confdefs.h > conftest.vals
18639 rm -f conftest.hdr
18640
18641 # This sed command replaces #undef with comments. This is necessary, for
18642 # example, in the case of _POSIX_SOURCE, which is predefined and required
18643 # on some systems where configure will not decide to define it.
18644 cat >> conftest.vals <<\EOF
18645 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18646 EOF
18647
18648 # Break up conftest.vals because some shells have a limit on
18649 # the size of here documents, and old seds have small limits too.
18650
18651 rm -f conftest.tail
18652 while :
18653 do
18654 ac_lines=`grep -c . conftest.vals`
18655 # grep -c gives empty output for an empty file on some AIX systems.
18656 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18657 # Write a limited-size here document to conftest.frag.
18658 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18659 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18660 echo 'CEOF
18661 sed -f conftest.frag conftest.in > conftest.out
18662 rm -f conftest.in
18663 mv conftest.out conftest.in
18664 ' >> $CONFIG_STATUS
18665 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18666 rm -f conftest.vals
18667 mv conftest.tail conftest.vals
18668 done
18669 rm -f conftest.vals
18670
18671 cat >> $CONFIG_STATUS <<\EOF
18672 rm -f conftest.frag conftest.h
18673 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18674 cat conftest.in >> conftest.h
18675 rm -f conftest.in
18676 if cmp -s $ac_file conftest.h 2>/dev/null; then
18677 echo "$ac_file is unchanged"
18678 rm -f conftest.h
18679 else
18680 # Remove last slash and all that follows it. Not all systems have dirname.
18681 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18682 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18683 # The file is in a subdirectory.
18684 test ! -d "$ac_dir" && mkdir "$ac_dir"
18685 fi
18686 rm -f $ac_file
18687 mv conftest.h $ac_file
18688 fi
18689 fi; done
18690
18691 EOF
18692 cat >> $CONFIG_STATUS <<EOF
18693
18694 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
18695 LN_S="${LN_S}"
18696
18697
18698 EOF
18699 cat >> $CONFIG_STATUS <<\EOF
18700
18701 if test ! -L wx-config; then
18702 chmod +x wx-config
18703 mv wx-config wx${TOOLCHAIN_NAME}-config
18704 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
18705 fi
18706
18707 if test ! -d lib; then
18708 mkdir lib
18709 fi
18710 if test ! -d lib/wx; then
18711 mkdir lib/wx
18712 fi
18713 if test ! -d lib/wx/include; then
18714 mkdir lib/wx/include
18715 fi
18716 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
18717 mkdir lib/wx/include/${TOOLCHAIN_NAME}
18718 fi
18719 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
18720 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
18721 fi
18722 if test -f setup.h; then
18723 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
18724 fi
18725
18726 exit 0
18727 EOF
18728 chmod +x $CONFIG_STATUS
18729 rm -fr confdefs* $ac_clean_files
18730 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
18731
18732 if test "$no_recursion" != yes; then
18733
18734 # Remove --cache-file and --srcdir arguments so they do not pile up.
18735 ac_sub_configure_args=
18736 ac_prev=
18737 for ac_arg in $ac_configure_args; do
18738 if test -n "$ac_prev"; then
18739 ac_prev=
18740 continue
18741 fi
18742 case "$ac_arg" in
18743 -cache-file | --cache-file | --cache-fil | --cache-fi \
18744 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18745 ac_prev=cache_file ;;
18746 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18747 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
18748 ;;
18749 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18750 ac_prev=srcdir ;;
18751 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18752 ;;
18753 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18754 esac
18755 done
18756
18757 for ac_config_dir in demos samples utils contrib; do
18758
18759 # Do not complain, so a configure script can configure whichever
18760 # parts of a large source tree are present.
18761 if test ! -d $srcdir/$ac_config_dir; then
18762 continue
18763 fi
18764
18765 echo configuring in $ac_config_dir
18766
18767 case "$srcdir" in
18768 .) ;;
18769 *)
18770 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18771 else
18772 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18773 fi
18774 ;;
18775 esac
18776
18777 ac_popdir=`pwd`
18778 cd $ac_config_dir
18779
18780 # A "../" for each directory in /$ac_config_dir.
18781 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
18782
18783 case "$srcdir" in
18784 .) # No --srcdir option. We are building in place.
18785 ac_sub_srcdir=$srcdir ;;
18786 /*) # Absolute path.
18787 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
18788 *) # Relative path.
18789 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
18790 esac
18791
18792 # Check for guested configure; otherwise get Cygnus style configure.
18793 if test -f $ac_sub_srcdir/configure; then
18794 ac_sub_configure=$ac_sub_srcdir/configure
18795 elif test -f $ac_sub_srcdir/configure.in; then
18796 ac_sub_configure=$ac_configure
18797 else
18798 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
18799 ac_sub_configure=
18800 fi
18801
18802 # The recursion is here.
18803 if test -n "$ac_sub_configure"; then
18804
18805 # Make the cache file name correct relative to the subdirectory.
18806 case "$cache_file" in
18807 /*) ac_sub_cache_file=$cache_file ;;
18808 *) # Relative path.
18809 ac_sub_cache_file="$ac_dots$cache_file" ;;
18810 esac
18811 case "$ac_given_INSTALL" in
18812 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18813 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18814 esac
18815
18816 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
18817 # The eval makes quoting arguments work.
18818 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
18819 then :
18820 else
18821 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
18822 fi
18823 fi
18824
18825 cd $ac_popdir
18826 done
18827 fi
18828
18829