]> git.saurik.com Git - wxWidgets.git/blob - configure
added missing -univ package control files.
[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
2256 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2257 echo "configure:2258: checking for --enable-shared" >&5
2258 no_cache=0
2259 # Check whether --enable-shared or --disable-shared was given.
2260 if test "${enable_shared+set}" = set; then
2261 enableval="$enable_shared"
2262
2263 if test "$enableval" = yes; then
2264 ac_cv_use_shared='wxUSE_SHARED=yes'
2265 else
2266 ac_cv_use_shared='wxUSE_SHARED=no'
2267 fi
2268
2269 else
2270
2271 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2272 if test "x$LINE" != x ; then
2273 eval "DEFAULT_$LINE"
2274 else
2275 no_cache=1
2276 fi
2277
2278 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2279
2280 fi
2281
2282
2283 eval "$ac_cv_use_shared"
2284 if test "$no_cache" != 1; then
2285 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2286 fi
2287
2288 if test "$wxUSE_SHARED" = yes; then
2289 echo "$ac_t""yes" 1>&6
2290 else
2291 echo "$ac_t""no" 1>&6
2292 fi
2293
2294
2295 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2296 echo "configure:2297: checking for --enable-soname" >&5
2297 no_cache=0
2298 # Check whether --enable-soname or --disable-soname was given.
2299 if test "${enable_soname+set}" = set; then
2300 enableval="$enable_soname"
2301
2302 if test "$enableval" = yes; then
2303 ac_cv_use_soname='wxUSE_SONAME=yes'
2304 else
2305 ac_cv_use_soname='wxUSE_SONAME=no'
2306 fi
2307
2308 else
2309
2310 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2311 if test "x$LINE" != x ; then
2312 eval "DEFAULT_$LINE"
2313 else
2314 no_cache=1
2315 fi
2316
2317 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2318
2319 fi
2320
2321
2322 eval "$ac_cv_use_soname"
2323 if test "$no_cache" != 1; then
2324 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2325 fi
2326
2327 if test "$wxUSE_SONAME" = yes; then
2328 echo "$ac_t""yes" 1>&6
2329 else
2330 echo "$ac_t""no" 1>&6
2331 fi
2332
2333
2334 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2335 echo "configure:2336: checking for --enable-optimise" >&5
2336 no_cache=0
2337 # Check whether --enable-optimise or --disable-optimise was given.
2338 if test "${enable_optimise+set}" = set; then
2339 enableval="$enable_optimise"
2340
2341 if test "$enableval" = yes; then
2342 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2343 else
2344 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2345 fi
2346
2347 else
2348
2349 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2350 if test "x$LINE" != x ; then
2351 eval "DEFAULT_$LINE"
2352 else
2353 no_cache=1
2354 fi
2355
2356 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2357
2358 fi
2359
2360
2361 eval "$ac_cv_use_optimise"
2362 if test "$no_cache" != 1; then
2363 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2364 fi
2365
2366 if test "$wxUSE_OPTIMISE" = yes; then
2367 echo "$ac_t""yes" 1>&6
2368 else
2369 echo "$ac_t""no" 1>&6
2370 fi
2371
2372
2373 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2374 echo "configure:2375: checking for --enable-debug" >&5
2375 no_cache=0
2376 # Check whether --enable-debug or --disable-debug was given.
2377 if test "${enable_debug+set}" = set; then
2378 enableval="$enable_debug"
2379
2380 if test "$enableval" = yes; then
2381 ac_cv_use_debug='wxUSE_DEBUG=yes'
2382 else
2383 ac_cv_use_debug='wxUSE_DEBUG=no'
2384 fi
2385
2386 else
2387
2388 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2389 if test "x$LINE" != x ; then
2390 eval "DEFAULT_$LINE"
2391 else
2392 no_cache=1
2393 fi
2394
2395 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2396
2397 fi
2398
2399
2400 eval "$ac_cv_use_debug"
2401 if test "$no_cache" != 1; then
2402 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2403 fi
2404
2405 if test "$wxUSE_DEBUG" = yes; then
2406 echo "$ac_t""yes" 1>&6
2407 else
2408 echo "$ac_t""no" 1>&6
2409 fi
2410
2411
2412 if test "$wxUSE_DEBUG" = "yes"; then
2413 DEFAULT_wxUSE_DEBUG_FLAG=yes
2414 DEFAULT_wxUSE_DEBUG_INFO=yes
2415 elif test "$wxUSE_DEBUG" = "no"; then
2416 DEFAULT_wxUSE_DEBUG_FLAG=no
2417 DEFAULT_wxUSE_DEBUG_INFO=no
2418 fi
2419
2420
2421 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2422 echo "configure:2423: checking for --enable-debug_flag" >&5
2423 no_cache=0
2424 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2425 if test "${enable_debug_flag+set}" = set; then
2426 enableval="$enable_debug_flag"
2427
2428 if test "$enableval" = yes; then
2429 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2430 else
2431 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2432 fi
2433
2434 else
2435
2436 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2437 if test "x$LINE" != x ; then
2438 eval "DEFAULT_$LINE"
2439 else
2440 no_cache=1
2441 fi
2442
2443 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2444
2445 fi
2446
2447
2448 eval "$ac_cv_use_debug_flag"
2449 if test "$no_cache" != 1; then
2450 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2451 fi
2452
2453 if test "$wxUSE_DEBUG_FLAG" = yes; then
2454 echo "$ac_t""yes" 1>&6
2455 else
2456 echo "$ac_t""no" 1>&6
2457 fi
2458
2459
2460 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2461 echo "configure:2462: checking for --enable-debug_info" >&5
2462 no_cache=0
2463 # Check whether --enable-debug_info or --disable-debug_info was given.
2464 if test "${enable_debug_info+set}" = set; then
2465 enableval="$enable_debug_info"
2466
2467 if test "$enableval" = yes; then
2468 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2469 else
2470 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2471 fi
2472
2473 else
2474
2475 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2476 if test "x$LINE" != x ; then
2477 eval "DEFAULT_$LINE"
2478 else
2479 no_cache=1
2480 fi
2481
2482 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2483
2484 fi
2485
2486
2487 eval "$ac_cv_use_debug_info"
2488 if test "$no_cache" != 1; then
2489 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2490 fi
2491
2492 if test "$wxUSE_DEBUG_INFO" = yes; then
2493 echo "$ac_t""yes" 1>&6
2494 else
2495 echo "$ac_t""no" 1>&6
2496 fi
2497
2498
2499 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2500 echo "configure:2501: checking for --enable-debug_gdb" >&5
2501 no_cache=0
2502 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2503 if test "${enable_debug_gdb+set}" = set; then
2504 enableval="$enable_debug_gdb"
2505
2506 if test "$enableval" = yes; then
2507 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2508 else
2509 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2510 fi
2511
2512 else
2513
2514 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2515 if test "x$LINE" != x ; then
2516 eval "DEFAULT_$LINE"
2517 else
2518 no_cache=1
2519 fi
2520
2521 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2522
2523 fi
2524
2525
2526 eval "$ac_cv_use_debug_gdb"
2527 if test "$no_cache" != 1; then
2528 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2529 fi
2530
2531 if test "$wxUSE_DEBUG_GDB" = yes; then
2532 echo "$ac_t""yes" 1>&6
2533 else
2534 echo "$ac_t""no" 1>&6
2535 fi
2536
2537
2538 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2539 echo "configure:2540: checking for --enable-debug_cntxt" >&5
2540 no_cache=0
2541 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2542 if test "${enable_debug_cntxt+set}" = set; then
2543 enableval="$enable_debug_cntxt"
2544
2545 if test "$enableval" = yes; then
2546 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2547 else
2548 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2549 fi
2550
2551 else
2552
2553 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2554 if test "x$LINE" != x ; then
2555 eval "DEFAULT_$LINE"
2556 else
2557 no_cache=1
2558 fi
2559
2560 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2561
2562 fi
2563
2564
2565 eval "$ac_cv_use_debug_cntxt"
2566 if test "$no_cache" != 1; then
2567 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2568 fi
2569
2570 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2571 echo "$ac_t""yes" 1>&6
2572 else
2573 echo "$ac_t""no" 1>&6
2574 fi
2575
2576
2577 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2578 echo "configure:2579: checking for --enable-mem_tracing" >&5
2579 no_cache=0
2580 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2581 if test "${enable_mem_tracing+set}" = set; then
2582 enableval="$enable_mem_tracing"
2583
2584 if test "$enableval" = yes; then
2585 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2586 else
2587 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2588 fi
2589
2590 else
2591
2592 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2593 if test "x$LINE" != x ; then
2594 eval "DEFAULT_$LINE"
2595 else
2596 no_cache=1
2597 fi
2598
2599 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2600
2601 fi
2602
2603
2604 eval "$ac_cv_use_mem_tracing"
2605 if test "$no_cache" != 1; then
2606 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2607 fi
2608
2609 if test "$wxUSE_MEM_TRACING" = yes; then
2610 echo "$ac_t""yes" 1>&6
2611 else
2612 echo "$ac_t""no" 1>&6
2613 fi
2614
2615
2616 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2617 echo "configure:2618: checking for --enable-profile" >&5
2618 no_cache=0
2619 # Check whether --enable-profile or --disable-profile was given.
2620 if test "${enable_profile+set}" = set; then
2621 enableval="$enable_profile"
2622
2623 if test "$enableval" = yes; then
2624 ac_cv_use_profile='wxUSE_PROFILE=yes'
2625 else
2626 ac_cv_use_profile='wxUSE_PROFILE=no'
2627 fi
2628
2629 else
2630
2631 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2632 if test "x$LINE" != x ; then
2633 eval "DEFAULT_$LINE"
2634 else
2635 no_cache=1
2636 fi
2637
2638 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2639
2640 fi
2641
2642
2643 eval "$ac_cv_use_profile"
2644 if test "$no_cache" != 1; then
2645 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2646 fi
2647
2648 if test "$wxUSE_PROFILE" = yes; then
2649 echo "$ac_t""yes" 1>&6
2650 else
2651 echo "$ac_t""no" 1>&6
2652 fi
2653
2654
2655 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2656 echo "configure:2657: checking for --enable-no_rtti" >&5
2657 no_cache=0
2658 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2659 if test "${enable_no_rtti+set}" = set; then
2660 enableval="$enable_no_rtti"
2661
2662 if test "$enableval" = yes; then
2663 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2664 else
2665 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2666 fi
2667
2668 else
2669
2670 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2671 if test "x$LINE" != x ; then
2672 eval "DEFAULT_$LINE"
2673 else
2674 no_cache=1
2675 fi
2676
2677 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2678
2679 fi
2680
2681
2682 eval "$ac_cv_use_no_rtti"
2683 if test "$no_cache" != 1; then
2684 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2685 fi
2686
2687 if test "$wxUSE_NO_RTTI" = yes; then
2688 echo "$ac_t""yes" 1>&6
2689 else
2690 echo "$ac_t""no" 1>&6
2691 fi
2692
2693
2694 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2695 echo "configure:2696: checking for --enable-no_exceptions" >&5
2696 no_cache=0
2697 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2698 if test "${enable_no_exceptions+set}" = set; then
2699 enableval="$enable_no_exceptions"
2700
2701 if test "$enableval" = yes; then
2702 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2703 else
2704 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2705 fi
2706
2707 else
2708
2709 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2710 if test "x$LINE" != x ; then
2711 eval "DEFAULT_$LINE"
2712 else
2713 no_cache=1
2714 fi
2715
2716 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2717
2718 fi
2719
2720
2721 eval "$ac_cv_use_no_exceptions"
2722 if test "$no_cache" != 1; then
2723 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2724 fi
2725
2726 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2727 echo "$ac_t""yes" 1>&6
2728 else
2729 echo "$ac_t""no" 1>&6
2730 fi
2731
2732
2733 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2734 echo "configure:2735: checking for --enable-permissive" >&5
2735 no_cache=0
2736 # Check whether --enable-permissive or --disable-permissive was given.
2737 if test "${enable_permissive+set}" = set; then
2738 enableval="$enable_permissive"
2739
2740 if test "$enableval" = yes; then
2741 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2742 else
2743 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2744 fi
2745
2746 else
2747
2748 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2749 if test "x$LINE" != x ; then
2750 eval "DEFAULT_$LINE"
2751 else
2752 no_cache=1
2753 fi
2754
2755 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2756
2757 fi
2758
2759
2760 eval "$ac_cv_use_permissive"
2761 if test "$no_cache" != 1; then
2762 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2763 fi
2764
2765 if test "$wxUSE_PERMISSIVE" = yes; then
2766 echo "$ac_t""yes" 1>&6
2767 else
2768 echo "$ac_t""no" 1>&6
2769 fi
2770
2771
2772 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2773 echo "configure:2774: checking for --enable-no_deps" >&5
2774 no_cache=0
2775 # Check whether --enable-no_deps or --disable-no_deps was given.
2776 if test "${enable_no_deps+set}" = set; then
2777 enableval="$enable_no_deps"
2778
2779 if test "$enableval" = yes; then
2780 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2781 else
2782 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2783 fi
2784
2785 else
2786
2787 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2788 if test "x$LINE" != x ; then
2789 eval "DEFAULT_$LINE"
2790 else
2791 no_cache=1
2792 fi
2793
2794 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2795
2796 fi
2797
2798
2799 eval "$ac_cv_use_no_deps"
2800 if test "$no_cache" != 1; then
2801 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2802 fi
2803
2804 if test "$wxUSE_NO_DEPS" = yes; then
2805 echo "$ac_t""yes" 1>&6
2806 else
2807 echo "$ac_t""no" 1>&6
2808 fi
2809
2810
2811
2812 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2813 echo "configure:2814: checking for --enable-compat20" >&5
2814 no_cache=0
2815 # Check whether --enable-compat20 or --disable-compat20 was given.
2816 if test "${enable_compat20+set}" = set; then
2817 enableval="$enable_compat20"
2818
2819 if test "$enableval" = yes; then
2820 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2821 else
2822 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2823 fi
2824
2825 else
2826
2827 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2828 if test "x$LINE" != x ; then
2829 eval "DEFAULT_$LINE"
2830 else
2831 no_cache=1
2832 fi
2833
2834 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2835
2836 fi
2837
2838
2839 eval "$ac_cv_use_compat20"
2840 if test "$no_cache" != 1; then
2841 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2842 fi
2843
2844 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2845 echo "$ac_t""yes" 1>&6
2846 else
2847 echo "$ac_t""no" 1>&6
2848 fi
2849
2850
2851 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2852 echo "configure:2853: checking for --enable-compat22" >&5
2853 no_cache=0
2854 # Check whether --enable-compat22 or --disable-compat22 was given.
2855 if test "${enable_compat22+set}" = set; then
2856 enableval="$enable_compat22"
2857
2858 if test "$enableval" = yes; then
2859 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2860 else
2861 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2862 fi
2863
2864 else
2865
2866 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2867 if test "x$LINE" != x ; then
2868 eval "DEFAULT_$LINE"
2869 else
2870 no_cache=1
2871 fi
2872
2873 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2874
2875 fi
2876
2877
2878 eval "$ac_cv_use_compat22"
2879 if test "$no_cache" != 1; then
2880 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2881 fi
2882
2883 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2884 echo "$ac_t""yes" 1>&6
2885 else
2886 echo "$ac_t""no" 1>&6
2887 fi
2888
2889
2890
2891
2892 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2893 echo "configure:2894: checking for --enable-intl" >&5
2894 no_cache=0
2895 # Check whether --enable-intl or --disable-intl was given.
2896 if test "${enable_intl+set}" = set; then
2897 enableval="$enable_intl"
2898
2899 if test "$enableval" = yes; then
2900 ac_cv_use_intl='wxUSE_INTL=yes'
2901 else
2902 ac_cv_use_intl='wxUSE_INTL=no'
2903 fi
2904
2905 else
2906
2907 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2908 if test "x$LINE" != x ; then
2909 eval "DEFAULT_$LINE"
2910 else
2911 no_cache=1
2912 fi
2913
2914 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2915
2916 fi
2917
2918
2919 eval "$ac_cv_use_intl"
2920 if test "$no_cache" != 1; then
2921 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2922 fi
2923
2924 if test "$wxUSE_INTL" = yes; then
2925 echo "$ac_t""yes" 1>&6
2926 else
2927 echo "$ac_t""no" 1>&6
2928 fi
2929
2930
2931 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
2932 echo "configure:2933: checking for --enable-config" >&5
2933 no_cache=0
2934 # Check whether --enable-config or --disable-config was given.
2935 if test "${enable_config+set}" = set; then
2936 enableval="$enable_config"
2937
2938 if test "$enableval" = yes; then
2939 ac_cv_use_config='wxUSE_CONFIG=yes'
2940 else
2941 ac_cv_use_config='wxUSE_CONFIG=no'
2942 fi
2943
2944 else
2945
2946 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2947 if test "x$LINE" != x ; then
2948 eval "DEFAULT_$LINE"
2949 else
2950 no_cache=1
2951 fi
2952
2953 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2954
2955 fi
2956
2957
2958 eval "$ac_cv_use_config"
2959 if test "$no_cache" != 1; then
2960 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2961 fi
2962
2963 if test "$wxUSE_CONFIG" = yes; then
2964 echo "$ac_t""yes" 1>&6
2965 else
2966 echo "$ac_t""no" 1>&6
2967 fi
2968
2969
2970
2971 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
2972 echo "configure:2973: checking for --enable-sockets" >&5
2973 no_cache=0
2974 # Check whether --enable-sockets or --disable-sockets was given.
2975 if test "${enable_sockets+set}" = set; then
2976 enableval="$enable_sockets"
2977
2978 if test "$enableval" = yes; then
2979 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2980 else
2981 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2982 fi
2983
2984 else
2985
2986 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2987 if test "x$LINE" != x ; then
2988 eval "DEFAULT_$LINE"
2989 else
2990 no_cache=1
2991 fi
2992
2993 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2994
2995 fi
2996
2997
2998 eval "$ac_cv_use_sockets"
2999 if test "$no_cache" != 1; then
3000 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3001 fi
3002
3003 if test "$wxUSE_SOCKETS" = yes; then
3004 echo "$ac_t""yes" 1>&6
3005 else
3006 echo "$ac_t""no" 1>&6
3007 fi
3008
3009
3010
3011 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3012 echo "configure:3013: checking for --enable-ipc" >&5
3013 no_cache=0
3014 # Check whether --enable-ipc or --disable-ipc was given.
3015 if test "${enable_ipc+set}" = set; then
3016 enableval="$enable_ipc"
3017
3018 if test "$enableval" = yes; then
3019 ac_cv_use_ipc='wxUSE_IPC=yes'
3020 else
3021 ac_cv_use_ipc='wxUSE_IPC=no'
3022 fi
3023
3024 else
3025
3026 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3027 if test "x$LINE" != x ; then
3028 eval "DEFAULT_$LINE"
3029 else
3030 no_cache=1
3031 fi
3032
3033 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3034
3035 fi
3036
3037
3038 eval "$ac_cv_use_ipc"
3039 if test "$no_cache" != 1; then
3040 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3041 fi
3042
3043 if test "$wxUSE_IPC" = yes; then
3044 echo "$ac_t""yes" 1>&6
3045 else
3046 echo "$ac_t""no" 1>&6
3047 fi
3048
3049
3050
3051 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3052 echo "configure:3053: checking for --enable-cmdline" >&5
3053 no_cache=0
3054 # Check whether --enable-cmdline or --disable-cmdline was given.
3055 if test "${enable_cmdline+set}" = set; then
3056 enableval="$enable_cmdline"
3057
3058 if test "$enableval" = yes; then
3059 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3060 else
3061 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3062 fi
3063
3064 else
3065
3066 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3067 if test "x$LINE" != x ; then
3068 eval "DEFAULT_$LINE"
3069 else
3070 no_cache=1
3071 fi
3072
3073 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3074
3075 fi
3076
3077
3078 eval "$ac_cv_use_cmdline"
3079 if test "$no_cache" != 1; then
3080 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3081 fi
3082
3083 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3084 echo "$ac_t""yes" 1>&6
3085 else
3086 echo "$ac_t""no" 1>&6
3087 fi
3088
3089
3090 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3091 echo "configure:3092: checking for --enable-datetime" >&5
3092 no_cache=0
3093 # Check whether --enable-datetime or --disable-datetime was given.
3094 if test "${enable_datetime+set}" = set; then
3095 enableval="$enable_datetime"
3096
3097 if test "$enableval" = yes; then
3098 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3099 else
3100 ac_cv_use_datetime='wxUSE_DATETIME=no'
3101 fi
3102
3103 else
3104
3105 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3106 if test "x$LINE" != x ; then
3107 eval "DEFAULT_$LINE"
3108 else
3109 no_cache=1
3110 fi
3111
3112 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3113
3114 fi
3115
3116
3117 eval "$ac_cv_use_datetime"
3118 if test "$no_cache" != 1; then
3119 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3120 fi
3121
3122 if test "$wxUSE_DATETIME" = yes; then
3123 echo "$ac_t""yes" 1>&6
3124 else
3125 echo "$ac_t""no" 1>&6
3126 fi
3127
3128
3129 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3130 echo "configure:3131: checking for --enable-timedate" >&5
3131 no_cache=0
3132 # Check whether --enable-timedate or --disable-timedate was given.
3133 if test "${enable_timedate+set}" = set; then
3134 enableval="$enable_timedate"
3135
3136 if test "$enableval" = yes; then
3137 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3138 else
3139 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3140 fi
3141
3142 else
3143
3144 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3145 if test "x$LINE" != x ; then
3146 eval "DEFAULT_$LINE"
3147 else
3148 no_cache=1
3149 fi
3150
3151 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3152
3153 fi
3154
3155
3156 eval "$ac_cv_use_timedate"
3157 if test "$no_cache" != 1; then
3158 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3159 fi
3160
3161 if test "$wxUSE_TIMEDATE" = yes; then
3162 echo "$ac_t""yes" 1>&6
3163 else
3164 echo "$ac_t""no" 1>&6
3165 fi
3166
3167
3168 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3169 echo "configure:3170: checking for --enable-stopwatch" >&5
3170 no_cache=0
3171 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3172 if test "${enable_stopwatch+set}" = set; then
3173 enableval="$enable_stopwatch"
3174
3175 if test "$enableval" = yes; then
3176 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3177 else
3178 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3179 fi
3180
3181 else
3182
3183 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3184 if test "x$LINE" != x ; then
3185 eval "DEFAULT_$LINE"
3186 else
3187 no_cache=1
3188 fi
3189
3190 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3191
3192 fi
3193
3194
3195 eval "$ac_cv_use_stopwatch"
3196 if test "$no_cache" != 1; then
3197 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3198 fi
3199
3200 if test "$wxUSE_STOPWATCH" = yes; then
3201 echo "$ac_t""yes" 1>&6
3202 else
3203 echo "$ac_t""no" 1>&6
3204 fi
3205
3206
3207 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3208 echo "configure:3209: checking for --enable-dialupman" >&5
3209 no_cache=0
3210 # Check whether --enable-dialupman or --disable-dialupman was given.
3211 if test "${enable_dialupman+set}" = set; then
3212 enableval="$enable_dialupman"
3213
3214 if test "$enableval" = yes; then
3215 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3216 else
3217 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3218 fi
3219
3220 else
3221
3222 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3223 if test "x$LINE" != x ; then
3224 eval "DEFAULT_$LINE"
3225 else
3226 no_cache=1
3227 fi
3228
3229 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3230
3231 fi
3232
3233
3234 eval "$ac_cv_use_dialupman"
3235 if test "$no_cache" != 1; then
3236 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3237 fi
3238
3239 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3240 echo "$ac_t""yes" 1>&6
3241 else
3242 echo "$ac_t""no" 1>&6
3243 fi
3244
3245
3246 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3247 echo "configure:3248: checking for --enable-apple_ieee" >&5
3248 no_cache=0
3249 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3250 if test "${enable_apple_ieee+set}" = set; then
3251 enableval="$enable_apple_ieee"
3252
3253 if test "$enableval" = yes; then
3254 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3255 else
3256 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3257 fi
3258
3259 else
3260
3261 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3262 if test "x$LINE" != x ; then
3263 eval "DEFAULT_$LINE"
3264 else
3265 no_cache=1
3266 fi
3267
3268 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3269
3270 fi
3271
3272
3273 eval "$ac_cv_use_apple_ieee"
3274 if test "$no_cache" != 1; then
3275 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3276 fi
3277
3278 if test "$wxUSE_APPLE_IEEE" = yes; then
3279 echo "$ac_t""yes" 1>&6
3280 else
3281 echo "$ac_t""no" 1>&6
3282 fi
3283
3284
3285 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3286 echo "configure:3287: checking for --enable-timer" >&5
3287 no_cache=0
3288 # Check whether --enable-timer or --disable-timer was given.
3289 if test "${enable_timer+set}" = set; then
3290 enableval="$enable_timer"
3291
3292 if test "$enableval" = yes; then
3293 ac_cv_use_timer='wxUSE_TIMER=yes'
3294 else
3295 ac_cv_use_timer='wxUSE_TIMER=no'
3296 fi
3297
3298 else
3299
3300 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3301 if test "x$LINE" != x ; then
3302 eval "DEFAULT_$LINE"
3303 else
3304 no_cache=1
3305 fi
3306
3307 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3308
3309 fi
3310
3311
3312 eval "$ac_cv_use_timer"
3313 if test "$no_cache" != 1; then
3314 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3315 fi
3316
3317 if test "$wxUSE_TIMER" = yes; then
3318 echo "$ac_t""yes" 1>&6
3319 else
3320 echo "$ac_t""no" 1>&6
3321 fi
3322
3323
3324 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3325 echo "configure:3326: checking for --enable-wave" >&5
3326 no_cache=0
3327 # Check whether --enable-wave or --disable-wave was given.
3328 if test "${enable_wave+set}" = set; then
3329 enableval="$enable_wave"
3330
3331 if test "$enableval" = yes; then
3332 ac_cv_use_wave='wxUSE_WAVE=yes'
3333 else
3334 ac_cv_use_wave='wxUSE_WAVE=no'
3335 fi
3336
3337 else
3338
3339 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3340 if test "x$LINE" != x ; then
3341 eval "DEFAULT_$LINE"
3342 else
3343 no_cache=1
3344 fi
3345
3346 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3347
3348 fi
3349
3350
3351 eval "$ac_cv_use_wave"
3352 if test "$no_cache" != 1; then
3353 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3354 fi
3355
3356 if test "$wxUSE_WAVE" = yes; then
3357 echo "$ac_t""yes" 1>&6
3358 else
3359 echo "$ac_t""no" 1>&6
3360 fi
3361
3362
3363 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3364 echo "configure:3365: checking for --enable-fraction" >&5
3365 no_cache=0
3366 # Check whether --enable-fraction or --disable-fraction was given.
3367 if test "${enable_fraction+set}" = set; then
3368 enableval="$enable_fraction"
3369
3370 if test "$enableval" = yes; then
3371 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3372 else
3373 ac_cv_use_fraction='wxUSE_FRACTION=no'
3374 fi
3375
3376 else
3377
3378 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3379 if test "x$LINE" != x ; then
3380 eval "DEFAULT_$LINE"
3381 else
3382 no_cache=1
3383 fi
3384
3385 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3386
3387 fi
3388
3389
3390 eval "$ac_cv_use_fraction"
3391 if test "$no_cache" != 1; then
3392 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3393 fi
3394
3395 if test "$wxUSE_FRACTION" = yes; then
3396 echo "$ac_t""yes" 1>&6
3397 else
3398 echo "$ac_t""no" 1>&6
3399 fi
3400
3401
3402 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3403 echo "configure:3404: checking for --enable-dynlib" >&5
3404 no_cache=0
3405 # Check whether --enable-dynlib or --disable-dynlib was given.
3406 if test "${enable_dynlib+set}" = set; then
3407 enableval="$enable_dynlib"
3408
3409 if test "$enableval" = yes; then
3410 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3411 else
3412 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3413 fi
3414
3415 else
3416
3417 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3418 if test "x$LINE" != x ; then
3419 eval "DEFAULT_$LINE"
3420 else
3421 no_cache=1
3422 fi
3423
3424 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3425
3426 fi
3427
3428
3429 eval "$ac_cv_use_dynlib"
3430 if test "$no_cache" != 1; then
3431 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3432 fi
3433
3434 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3435 echo "$ac_t""yes" 1>&6
3436 else
3437 echo "$ac_t""no" 1>&6
3438 fi
3439
3440
3441 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3442 echo "configure:3443: checking for --enable-longlong" >&5
3443 no_cache=0
3444 # Check whether --enable-longlong or --disable-longlong was given.
3445 if test "${enable_longlong+set}" = set; then
3446 enableval="$enable_longlong"
3447
3448 if test "$enableval" = yes; then
3449 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3450 else
3451 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3452 fi
3453
3454 else
3455
3456 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3457 if test "x$LINE" != x ; then
3458 eval "DEFAULT_$LINE"
3459 else
3460 no_cache=1
3461 fi
3462
3463 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3464
3465 fi
3466
3467
3468 eval "$ac_cv_use_longlong"
3469 if test "$no_cache" != 1; then
3470 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3471 fi
3472
3473 if test "$wxUSE_LONGLONG" = yes; then
3474 echo "$ac_t""yes" 1>&6
3475 else
3476 echo "$ac_t""no" 1>&6
3477 fi
3478
3479
3480 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3481 echo "configure:3482: checking for --enable-geometry" >&5
3482 no_cache=0
3483 # Check whether --enable-geometry or --disable-geometry was given.
3484 if test "${enable_geometry+set}" = set; then
3485 enableval="$enable_geometry"
3486
3487 if test "$enableval" = yes; then
3488 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3489 else
3490 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3491 fi
3492
3493 else
3494
3495 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3496 if test "x$LINE" != x ; then
3497 eval "DEFAULT_$LINE"
3498 else
3499 no_cache=1
3500 fi
3501
3502 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3503
3504 fi
3505
3506
3507 eval "$ac_cv_use_geometry"
3508 if test "$no_cache" != 1; then
3509 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3510 fi
3511
3512 if test "$wxUSE_GEOMETRY" = yes; then
3513 echo "$ac_t""yes" 1>&6
3514 else
3515 echo "$ac_t""no" 1>&6
3516 fi
3517
3518
3519 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3520 echo "configure:3521: checking for --enable-log" >&5
3521 no_cache=0
3522 # Check whether --enable-log or --disable-log was given.
3523 if test "${enable_log+set}" = set; then
3524 enableval="$enable_log"
3525
3526 if test "$enableval" = yes; then
3527 ac_cv_use_log='wxUSE_LOG=yes'
3528 else
3529 ac_cv_use_log='wxUSE_LOG=no'
3530 fi
3531
3532 else
3533
3534 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3535 if test "x$LINE" != x ; then
3536 eval "DEFAULT_$LINE"
3537 else
3538 no_cache=1
3539 fi
3540
3541 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3542
3543 fi
3544
3545
3546 eval "$ac_cv_use_log"
3547 if test "$no_cache" != 1; then
3548 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3549 fi
3550
3551 if test "$wxUSE_LOG" = yes; then
3552 echo "$ac_t""yes" 1>&6
3553 else
3554 echo "$ac_t""no" 1>&6
3555 fi
3556
3557
3558 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3559 echo "configure:3560: checking for --enable-streams" >&5
3560 no_cache=0
3561 # Check whether --enable-streams or --disable-streams was given.
3562 if test "${enable_streams+set}" = set; then
3563 enableval="$enable_streams"
3564
3565 if test "$enableval" = yes; then
3566 ac_cv_use_streams='wxUSE_STREAMS=yes'
3567 else
3568 ac_cv_use_streams='wxUSE_STREAMS=no'
3569 fi
3570
3571 else
3572
3573 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3574 if test "x$LINE" != x ; then
3575 eval "DEFAULT_$LINE"
3576 else
3577 no_cache=1
3578 fi
3579
3580 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3581
3582 fi
3583
3584
3585 eval "$ac_cv_use_streams"
3586 if test "$no_cache" != 1; then
3587 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3588 fi
3589
3590 if test "$wxUSE_STREAMS" = yes; then
3591 echo "$ac_t""yes" 1>&6
3592 else
3593 echo "$ac_t""no" 1>&6
3594 fi
3595
3596
3597 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3598 echo "configure:3599: checking for --enable-file" >&5
3599 no_cache=0
3600 # Check whether --enable-file or --disable-file was given.
3601 if test "${enable_file+set}" = set; then
3602 enableval="$enable_file"
3603
3604 if test "$enableval" = yes; then
3605 ac_cv_use_file='wxUSE_FILE=yes'
3606 else
3607 ac_cv_use_file='wxUSE_FILE=no'
3608 fi
3609
3610 else
3611
3612 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3613 if test "x$LINE" != x ; then
3614 eval "DEFAULT_$LINE"
3615 else
3616 no_cache=1
3617 fi
3618
3619 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3620
3621 fi
3622
3623
3624 eval "$ac_cv_use_file"
3625 if test "$no_cache" != 1; then
3626 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3627 fi
3628
3629 if test "$wxUSE_FILE" = yes; then
3630 echo "$ac_t""yes" 1>&6
3631 else
3632 echo "$ac_t""no" 1>&6
3633 fi
3634
3635
3636 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3637 echo "configure:3638: checking for --enable-ffile" >&5
3638 no_cache=0
3639 # Check whether --enable-ffile or --disable-ffile was given.
3640 if test "${enable_ffile+set}" = set; then
3641 enableval="$enable_ffile"
3642
3643 if test "$enableval" = yes; then
3644 ac_cv_use_ffile='wxUSE_FFILE=yes'
3645 else
3646 ac_cv_use_ffile='wxUSE_FFILE=no'
3647 fi
3648
3649 else
3650
3651 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3652 if test "x$LINE" != x ; then
3653 eval "DEFAULT_$LINE"
3654 else
3655 no_cache=1
3656 fi
3657
3658 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3659
3660 fi
3661
3662
3663 eval "$ac_cv_use_ffile"
3664 if test "$no_cache" != 1; then
3665 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3666 fi
3667
3668 if test "$wxUSE_FFILE" = yes; then
3669 echo "$ac_t""yes" 1>&6
3670 else
3671 echo "$ac_t""no" 1>&6
3672 fi
3673
3674
3675 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3676 echo "configure:3677: checking for --enable-textfile" >&5
3677 no_cache=0
3678 # Check whether --enable-textfile or --disable-textfile was given.
3679 if test "${enable_textfile+set}" = set; then
3680 enableval="$enable_textfile"
3681
3682 if test "$enableval" = yes; then
3683 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3684 else
3685 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3686 fi
3687
3688 else
3689
3690 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3691 if test "x$LINE" != x ; then
3692 eval "DEFAULT_$LINE"
3693 else
3694 no_cache=1
3695 fi
3696
3697 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3698
3699 fi
3700
3701
3702 eval "$ac_cv_use_textfile"
3703 if test "$no_cache" != 1; then
3704 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3705 fi
3706
3707 if test "$wxUSE_TEXTFILE" = yes; then
3708 echo "$ac_t""yes" 1>&6
3709 else
3710 echo "$ac_t""no" 1>&6
3711 fi
3712
3713
3714 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3715 echo "configure:3716: checking for --enable-fontmap" >&5
3716 no_cache=0
3717 # Check whether --enable-fontmap or --disable-fontmap was given.
3718 if test "${enable_fontmap+set}" = set; then
3719 enableval="$enable_fontmap"
3720
3721 if test "$enableval" = yes; then
3722 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
3723 else
3724 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
3725 fi
3726
3727 else
3728
3729 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
3730 if test "x$LINE" != x ; then
3731 eval "DEFAULT_$LINE"
3732 else
3733 no_cache=1
3734 fi
3735
3736 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
3737
3738 fi
3739
3740
3741 eval "$ac_cv_use_fontmap"
3742 if test "$no_cache" != 1; then
3743 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
3744 fi
3745
3746 if test "$wxUSE_FONTMAP" = yes; then
3747 echo "$ac_t""yes" 1>&6
3748 else
3749 echo "$ac_t""no" 1>&6
3750 fi
3751
3752
3753 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3754 echo "configure:3755: checking for --enable-unicode" >&5
3755 no_cache=0
3756 # Check whether --enable-unicode or --disable-unicode was given.
3757 if test "${enable_unicode+set}" = set; then
3758 enableval="$enable_unicode"
3759
3760 if test "$enableval" = yes; then
3761 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3762 else
3763 ac_cv_use_unicode='wxUSE_UNICODE=no'
3764 fi
3765
3766 else
3767
3768 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3769 if test "x$LINE" != x ; then
3770 eval "DEFAULT_$LINE"
3771 else
3772 no_cache=1
3773 fi
3774
3775 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3776
3777 fi
3778
3779
3780 eval "$ac_cv_use_unicode"
3781 if test "$no_cache" != 1; then
3782 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3783 fi
3784
3785 if test "$wxUSE_UNICODE" = yes; then
3786 echo "$ac_t""yes" 1>&6
3787 else
3788 echo "$ac_t""no" 1>&6
3789 fi
3790
3791
3792 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3793 echo "configure:3794: checking for --enable-wxprintfv" >&5
3794 no_cache=0
3795 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3796 if test "${enable_wxprintfv+set}" = set; then
3797 enableval="$enable_wxprintfv"
3798
3799 if test "$enableval" = yes; then
3800 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3801 else
3802 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3803 fi
3804
3805 else
3806
3807 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3808 if test "x$LINE" != x ; then
3809 eval "DEFAULT_$LINE"
3810 else
3811 no_cache=1
3812 fi
3813
3814 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3815
3816 fi
3817
3818
3819 eval "$ac_cv_use_wxprintfv"
3820 if test "$no_cache" != 1; then
3821 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3822 fi
3823
3824 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3825 echo "$ac_t""yes" 1>&6
3826 else
3827 echo "$ac_t""no" 1>&6
3828 fi
3829
3830
3831 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3832 echo "configure:3833: checking for --enable-std_iostreams" >&5
3833 no_cache=0
3834 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3835 if test "${enable_std_iostreams+set}" = set; then
3836 enableval="$enable_std_iostreams"
3837
3838 if test "$enableval" = yes; then
3839 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3840 else
3841 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3842 fi
3843
3844 else
3845
3846 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3847 if test "x$LINE" != x ; then
3848 eval "DEFAULT_$LINE"
3849 else
3850 no_cache=1
3851 fi
3852
3853 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3854
3855 fi
3856
3857
3858 eval "$ac_cv_use_std_iostreams"
3859 if test "$no_cache" != 1; then
3860 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3861 fi
3862
3863 if test "$wxUSE_STD_IOSTREAM" = yes; then
3864 echo "$ac_t""yes" 1>&6
3865 else
3866 echo "$ac_t""no" 1>&6
3867 fi
3868
3869
3870 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3871 echo "configure:3872: checking for --enable-filesystem" >&5
3872 no_cache=0
3873 # Check whether --enable-filesystem or --disable-filesystem was given.
3874 if test "${enable_filesystem+set}" = set; then
3875 enableval="$enable_filesystem"
3876
3877 if test "$enableval" = yes; then
3878 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3879 else
3880 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3881 fi
3882
3883 else
3884
3885 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3886 if test "x$LINE" != x ; then
3887 eval "DEFAULT_$LINE"
3888 else
3889 no_cache=1
3890 fi
3891
3892 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3893
3894 fi
3895
3896
3897 eval "$ac_cv_use_filesystem"
3898 if test "$no_cache" != 1; then
3899 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3900 fi
3901
3902 if test "$wxUSE_FILESYSTEM" = yes; then
3903 echo "$ac_t""yes" 1>&6
3904 else
3905 echo "$ac_t""no" 1>&6
3906 fi
3907
3908
3909 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
3910 echo "configure:3911: checking for --enable-fs_inet" >&5
3911 no_cache=0
3912 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3913 if test "${enable_fs_inet+set}" = set; then
3914 enableval="$enable_fs_inet"
3915
3916 if test "$enableval" = yes; then
3917 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3918 else
3919 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3920 fi
3921
3922 else
3923
3924 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3925 if test "x$LINE" != x ; then
3926 eval "DEFAULT_$LINE"
3927 else
3928 no_cache=1
3929 fi
3930
3931 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3932
3933 fi
3934
3935
3936 eval "$ac_cv_use_fs_inet"
3937 if test "$no_cache" != 1; then
3938 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3939 fi
3940
3941 if test "$wxUSE_FS_INET" = yes; then
3942 echo "$ac_t""yes" 1>&6
3943 else
3944 echo "$ac_t""no" 1>&6
3945 fi
3946
3947
3948 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
3949 echo "configure:3950: checking for --enable-fs_zip" >&5
3950 no_cache=0
3951 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3952 if test "${enable_fs_zip+set}" = set; then
3953 enableval="$enable_fs_zip"
3954
3955 if test "$enableval" = yes; then
3956 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3957 else
3958 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3959 fi
3960
3961 else
3962
3963 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3964 if test "x$LINE" != x ; then
3965 eval "DEFAULT_$LINE"
3966 else
3967 no_cache=1
3968 fi
3969
3970 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3971
3972 fi
3973
3974
3975 eval "$ac_cv_use_fs_zip"
3976 if test "$no_cache" != 1; then
3977 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3978 fi
3979
3980 if test "$wxUSE_FS_ZIP" = yes; then
3981 echo "$ac_t""yes" 1>&6
3982 else
3983 echo "$ac_t""no" 1>&6
3984 fi
3985
3986
3987 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
3988 echo "configure:3989: checking for --enable-zipstream" >&5
3989 no_cache=0
3990 # Check whether --enable-zipstream or --disable-zipstream was given.
3991 if test "${enable_zipstream+set}" = set; then
3992 enableval="$enable_zipstream"
3993
3994 if test "$enableval" = yes; then
3995 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3996 else
3997 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3998 fi
3999
4000 else
4001
4002 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4003 if test "x$LINE" != x ; then
4004 eval "DEFAULT_$LINE"
4005 else
4006 no_cache=1
4007 fi
4008
4009 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4010
4011 fi
4012
4013
4014 eval "$ac_cv_use_zipstream"
4015 if test "$no_cache" != 1; then
4016 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4017 fi
4018
4019 if test "$wxUSE_ZIPSTREAM" = yes; then
4020 echo "$ac_t""yes" 1>&6
4021 else
4022 echo "$ac_t""no" 1>&6
4023 fi
4024
4025
4026
4027 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4028 echo "configure:4029: checking for --enable-catch_segvs" >&5
4029 no_cache=0
4030 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4031 if test "${enable_catch_segvs+set}" = set; then
4032 enableval="$enable_catch_segvs"
4033
4034 if test "$enableval" = yes; then
4035 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4036 else
4037 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4038 fi
4039
4040 else
4041
4042 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4043 if test "x$LINE" != x ; then
4044 eval "DEFAULT_$LINE"
4045 else
4046 no_cache=1
4047 fi
4048
4049 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4050
4051 fi
4052
4053
4054 eval "$ac_cv_use_catch_segvs"
4055 if test "$no_cache" != 1; then
4056 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4057 fi
4058
4059 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4060 echo "$ac_t""yes" 1>&6
4061 else
4062 echo "$ac_t""no" 1>&6
4063 fi
4064
4065
4066 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4067 echo "configure:4068: checking for --enable-snglinst" >&5
4068 no_cache=0
4069 # Check whether --enable-snglinst or --disable-snglinst was given.
4070 if test "${enable_snglinst+set}" = set; then
4071 enableval="$enable_snglinst"
4072
4073 if test "$enableval" = yes; then
4074 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4075 else
4076 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4077 fi
4078
4079 else
4080
4081 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4082 if test "x$LINE" != x ; then
4083 eval "DEFAULT_$LINE"
4084 else
4085 no_cache=1
4086 fi
4087
4088 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4089
4090 fi
4091
4092
4093 eval "$ac_cv_use_snglinst"
4094 if test "$no_cache" != 1; then
4095 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4096 fi
4097
4098 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4099 echo "$ac_t""yes" 1>&6
4100 else
4101 echo "$ac_t""no" 1>&6
4102 fi
4103
4104
4105
4106 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4107 echo "configure:4108: checking for --enable-mimetype" >&5
4108 no_cache=0
4109 # Check whether --enable-mimetype or --disable-mimetype was given.
4110 if test "${enable_mimetype+set}" = set; then
4111 enableval="$enable_mimetype"
4112
4113 if test "$enableval" = yes; then
4114 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4115 else
4116 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4117 fi
4118
4119 else
4120
4121 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4122 if test "x$LINE" != x ; then
4123 eval "DEFAULT_$LINE"
4124 else
4125 no_cache=1
4126 fi
4127
4128 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4129
4130 fi
4131
4132
4133 eval "$ac_cv_use_mimetype"
4134 if test "$no_cache" != 1; then
4135 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4136 fi
4137
4138 if test "$wxUSE_MIMETYPE" = yes; then
4139 echo "$ac_t""yes" 1>&6
4140 else
4141 echo "$ac_t""no" 1>&6
4142 fi
4143
4144
4145 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4146 echo "configure:4147: checking for --enable-system_options" >&5
4147 no_cache=0
4148 # Check whether --enable-system_options or --disable-system_options was given.
4149 if test "${enable_system_options+set}" = set; then
4150 enableval="$enable_system_options"
4151
4152 if test "$enableval" = yes; then
4153 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4154 else
4155 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4156 fi
4157
4158 else
4159
4160 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4161 if test "x$LINE" != x ; then
4162 eval "DEFAULT_$LINE"
4163 else
4164 no_cache=1
4165 fi
4166
4167 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4168
4169 fi
4170
4171
4172 eval "$ac_cv_use_system_options"
4173 if test "$no_cache" != 1; then
4174 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4175 fi
4176
4177 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4178 echo "$ac_t""yes" 1>&6
4179 else
4180 echo "$ac_t""no" 1>&6
4181 fi
4182
4183
4184
4185
4186 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4187 echo "configure:4188: checking for --enable-threads" >&5
4188 no_cache=0
4189 # Check whether --enable-threads or --disable-threads was given.
4190 if test "${enable_threads+set}" = set; then
4191 enableval="$enable_threads"
4192
4193 if test "$enableval" = yes; then
4194 ac_cv_use_threads='wxUSE_THREADS=yes'
4195 else
4196 ac_cv_use_threads='wxUSE_THREADS=no'
4197 fi
4198
4199 else
4200
4201 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4202 if test "x$LINE" != x ; then
4203 eval "DEFAULT_$LINE"
4204 else
4205 no_cache=1
4206 fi
4207
4208 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4209
4210 fi
4211
4212
4213 eval "$ac_cv_use_threads"
4214 if test "$no_cache" != 1; then
4215 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4216 fi
4217
4218 if test "$wxUSE_THREADS" = yes; then
4219 echo "$ac_t""yes" 1>&6
4220 else
4221 echo "$ac_t""no" 1>&6
4222 fi
4223
4224
4225 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
4226 echo "configure:4227: checking for --enable-serial" >&5
4227 no_cache=0
4228 # Check whether --enable-serial or --disable-serial was given.
4229 if test "${enable_serial+set}" = set; then
4230 enableval="$enable_serial"
4231
4232 if test "$enableval" = yes; then
4233 ac_cv_use_serial='wxUSE_SERIAL=yes'
4234 else
4235 ac_cv_use_serial='wxUSE_SERIAL=no'
4236 fi
4237
4238 else
4239
4240 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4241 if test "x$LINE" != x ; then
4242 eval "DEFAULT_$LINE"
4243 else
4244 no_cache=1
4245 fi
4246
4247 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
4248
4249 fi
4250
4251
4252 eval "$ac_cv_use_serial"
4253 if test "$no_cache" != 1; then
4254 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4255 fi
4256
4257 if test "$wxUSE_SERIAL" = yes; then
4258 echo "$ac_t""yes" 1>&6
4259 else
4260 echo "$ac_t""no" 1>&6
4261 fi
4262
4263
4264 if test "$wxUSE_GUI" = "yes"; then
4265
4266
4267
4268 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4269 echo "configure:4270: checking for --enable-docview" >&5
4270 no_cache=0
4271 # Check whether --enable-docview or --disable-docview was given.
4272 if test "${enable_docview+set}" = set; then
4273 enableval="$enable_docview"
4274
4275 if test "$enableval" = yes; then
4276 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4277 else
4278 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4279 fi
4280
4281 else
4282
4283 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4284 if test "x$LINE" != x ; then
4285 eval "DEFAULT_$LINE"
4286 else
4287 no_cache=1
4288 fi
4289
4290 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4291
4292 fi
4293
4294
4295 eval "$ac_cv_use_docview"
4296 if test "$no_cache" != 1; then
4297 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4298 fi
4299
4300 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4301 echo "$ac_t""yes" 1>&6
4302 else
4303 echo "$ac_t""no" 1>&6
4304 fi
4305
4306
4307 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4308 echo "configure:4309: checking for --enable-help" >&5
4309 no_cache=0
4310 # Check whether --enable-help or --disable-help was given.
4311 if test "${enable_help+set}" = set; then
4312 enableval="$enable_help"
4313
4314 if test "$enableval" = yes; then
4315 ac_cv_use_help='wxUSE_HELP=yes'
4316 else
4317 ac_cv_use_help='wxUSE_HELP=no'
4318 fi
4319
4320 else
4321
4322 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4323 if test "x$LINE" != x ; then
4324 eval "DEFAULT_$LINE"
4325 else
4326 no_cache=1
4327 fi
4328
4329 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4330
4331 fi
4332
4333
4334 eval "$ac_cv_use_help"
4335 if test "$no_cache" != 1; then
4336 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4337 fi
4338
4339 if test "$wxUSE_HELP" = yes; then
4340 echo "$ac_t""yes" 1>&6
4341 else
4342 echo "$ac_t""no" 1>&6
4343 fi
4344
4345
4346 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4347 echo "configure:4348: checking for --enable-mshtmlhelp" >&5
4348 no_cache=0
4349 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4350 if test "${enable_mshtmlhelp+set}" = set; then
4351 enableval="$enable_mshtmlhelp"
4352
4353 if test "$enableval" = yes; then
4354 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4355 else
4356 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4357 fi
4358
4359 else
4360
4361 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4362 if test "x$LINE" != x ; then
4363 eval "DEFAULT_$LINE"
4364 else
4365 no_cache=1
4366 fi
4367
4368 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4369
4370 fi
4371
4372
4373 eval "$ac_cv_use_mshtmlhelp"
4374 if test "$no_cache" != 1; then
4375 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4376 fi
4377
4378 if test "$wxUSE_MS_HTML_HELP" = yes; then
4379 echo "$ac_t""yes" 1>&6
4380 else
4381 echo "$ac_t""no" 1>&6
4382 fi
4383
4384
4385 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4386 echo "configure:4387: checking for --enable-html" >&5
4387 no_cache=0
4388 # Check whether --enable-html or --disable-html was given.
4389 if test "${enable_html+set}" = set; then
4390 enableval="$enable_html"
4391
4392 if test "$enableval" = yes; then
4393 ac_cv_use_html='wxUSE_HTML=yes'
4394 else
4395 ac_cv_use_html='wxUSE_HTML=no'
4396 fi
4397
4398 else
4399
4400 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4401 if test "x$LINE" != x ; then
4402 eval "DEFAULT_$LINE"
4403 else
4404 no_cache=1
4405 fi
4406
4407 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4408
4409 fi
4410
4411
4412 eval "$ac_cv_use_html"
4413 if test "$no_cache" != 1; then
4414 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4415 fi
4416
4417 if test "$wxUSE_HTML" = yes; then
4418 echo "$ac_t""yes" 1>&6
4419 else
4420 echo "$ac_t""no" 1>&6
4421 fi
4422
4423
4424 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4425 echo "configure:4426: checking for --enable-htmlhelp" >&5
4426 no_cache=0
4427 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4428 if test "${enable_htmlhelp+set}" = set; then
4429 enableval="$enable_htmlhelp"
4430
4431 if test "$enableval" = yes; then
4432 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4433 else
4434 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4435 fi
4436
4437 else
4438
4439 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4440 if test "x$LINE" != x ; then
4441 eval "DEFAULT_$LINE"
4442 else
4443 no_cache=1
4444 fi
4445
4446 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4447
4448 fi
4449
4450
4451 eval "$ac_cv_use_htmlhelp"
4452 if test "$no_cache" != 1; then
4453 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4454 fi
4455
4456 if test "$wxUSE_WXHTML_HELP" = yes; then
4457 echo "$ac_t""yes" 1>&6
4458 else
4459 echo "$ac_t""no" 1>&6
4460 fi
4461
4462
4463 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4464 echo "configure:4465: checking for --enable-constraints" >&5
4465 no_cache=0
4466 # Check whether --enable-constraints or --disable-constraints was given.
4467 if test "${enable_constraints+set}" = set; then
4468 enableval="$enable_constraints"
4469
4470 if test "$enableval" = yes; then
4471 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4472 else
4473 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4474 fi
4475
4476 else
4477
4478 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4479 if test "x$LINE" != x ; then
4480 eval "DEFAULT_$LINE"
4481 else
4482 no_cache=1
4483 fi
4484
4485 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
4486
4487 fi
4488
4489
4490 eval "$ac_cv_use_constraints"
4491 if test "$no_cache" != 1; then
4492 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4493 fi
4494
4495 if test "$wxUSE_CONSTRAINTS" = yes; then
4496 echo "$ac_t""yes" 1>&6
4497 else
4498 echo "$ac_t""no" 1>&6
4499 fi
4500
4501
4502 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4503 echo "configure:4504: checking for --enable-printarch" >&5
4504 no_cache=0
4505 # Check whether --enable-printarch or --disable-printarch was given.
4506 if test "${enable_printarch+set}" = set; then
4507 enableval="$enable_printarch"
4508
4509 if test "$enableval" = yes; then
4510 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4511 else
4512 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4513 fi
4514
4515 else
4516
4517 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4518 if test "x$LINE" != x ; then
4519 eval "DEFAULT_$LINE"
4520 else
4521 no_cache=1
4522 fi
4523
4524 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
4525
4526 fi
4527
4528
4529 eval "$ac_cv_use_printarch"
4530 if test "$no_cache" != 1; then
4531 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4532 fi
4533
4534 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
4535 echo "$ac_t""yes" 1>&6
4536 else
4537 echo "$ac_t""no" 1>&6
4538 fi
4539
4540
4541 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4542 echo "configure:4543: checking for --enable-mdi" >&5
4543 no_cache=0
4544 # Check whether --enable-mdi or --disable-mdi was given.
4545 if test "${enable_mdi+set}" = set; then
4546 enableval="$enable_mdi"
4547
4548 if test "$enableval" = yes; then
4549 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4550 else
4551 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4552 fi
4553
4554 else
4555
4556 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4557 if test "x$LINE" != x ; then
4558 eval "DEFAULT_$LINE"
4559 else
4560 no_cache=1
4561 fi
4562
4563 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
4564
4565 fi
4566
4567
4568 eval "$ac_cv_use_mdi"
4569 if test "$no_cache" != 1; then
4570 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4571 fi
4572
4573 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
4574 echo "$ac_t""yes" 1>&6
4575 else
4576 echo "$ac_t""no" 1>&6
4577 fi
4578
4579
4580 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4581 echo "configure:4582: checking for --enable-loggui" >&5
4582 no_cache=0
4583 # Check whether --enable-loggui or --disable-loggui was given.
4584 if test "${enable_loggui+set}" = set; then
4585 enableval="$enable_loggui"
4586
4587 if test "$enableval" = yes; then
4588 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4589 else
4590 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4591 fi
4592
4593 else
4594
4595 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4596 if test "x$LINE" != x ; then
4597 eval "DEFAULT_$LINE"
4598 else
4599 no_cache=1
4600 fi
4601
4602 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4603
4604 fi
4605
4606
4607 eval "$ac_cv_use_loggui"
4608 if test "$no_cache" != 1; then
4609 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4610 fi
4611
4612 if test "$wxUSE_LOGGUI" = yes; then
4613 echo "$ac_t""yes" 1>&6
4614 else
4615 echo "$ac_t""no" 1>&6
4616 fi
4617
4618
4619 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4620 echo "configure:4621: checking for --enable-logwin" >&5
4621 no_cache=0
4622 # Check whether --enable-logwin or --disable-logwin was given.
4623 if test "${enable_logwin+set}" = set; then
4624 enableval="$enable_logwin"
4625
4626 if test "$enableval" = yes; then
4627 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4628 else
4629 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4630 fi
4631
4632 else
4633
4634 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4635 if test "x$LINE" != x ; then
4636 eval "DEFAULT_$LINE"
4637 else
4638 no_cache=1
4639 fi
4640
4641 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4642
4643 fi
4644
4645
4646 eval "$ac_cv_use_logwin"
4647 if test "$no_cache" != 1; then
4648 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4649 fi
4650
4651 if test "$wxUSE_LOGWINDOW" = yes; then
4652 echo "$ac_t""yes" 1>&6
4653 else
4654 echo "$ac_t""no" 1>&6
4655 fi
4656
4657
4658
4659 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4660 echo "configure:4661: checking for --enable-postscript" >&5
4661 no_cache=0
4662 # Check whether --enable-postscript or --disable-postscript was given.
4663 if test "${enable_postscript+set}" = set; then
4664 enableval="$enable_postscript"
4665
4666 if test "$enableval" = yes; then
4667 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4668 else
4669 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4670 fi
4671
4672 else
4673
4674 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4675 if test "x$LINE" != x ; then
4676 eval "DEFAULT_$LINE"
4677 else
4678 no_cache=1
4679 fi
4680
4681 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
4682
4683 fi
4684
4685
4686 eval "$ac_cv_use_postscript"
4687 if test "$no_cache" != 1; then
4688 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4689 fi
4690
4691 if test "$wxUSE_POSTSCRIPT" = yes; then
4692 echo "$ac_t""yes" 1>&6
4693 else
4694 echo "$ac_t""no" 1>&6
4695 fi
4696
4697
4698
4699
4700
4701 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4702 echo "configure:4703: checking for --enable-prologio" >&5
4703 no_cache=0
4704 # Check whether --enable-prologio or --disable-prologio was given.
4705 if test "${enable_prologio+set}" = set; then
4706 enableval="$enable_prologio"
4707
4708 if test "$enableval" = yes; then
4709 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4710 else
4711 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4712 fi
4713
4714 else
4715
4716 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4717 if test "x$LINE" != x ; then
4718 eval "DEFAULT_$LINE"
4719 else
4720 no_cache=1
4721 fi
4722
4723 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
4724
4725 fi
4726
4727
4728 eval "$ac_cv_use_prologio"
4729 if test "$no_cache" != 1; then
4730 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4731 fi
4732
4733 if test "$wxUSE_PROLOGIO" = yes; then
4734 echo "$ac_t""yes" 1>&6
4735 else
4736 echo "$ac_t""no" 1>&6
4737 fi
4738
4739
4740 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4741 echo "configure:4742: checking for --enable-resources" >&5
4742 no_cache=0
4743 # Check whether --enable-resources or --disable-resources was given.
4744 if test "${enable_resources+set}" = set; then
4745 enableval="$enable_resources"
4746
4747 if test "$enableval" = yes; then
4748 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4749 else
4750 ac_cv_use_resources='wxUSE_RESOURCES=no'
4751 fi
4752
4753 else
4754
4755 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4756 if test "x$LINE" != x ; then
4757 eval "DEFAULT_$LINE"
4758 else
4759 no_cache=1
4760 fi
4761
4762 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
4763
4764 fi
4765
4766
4767 eval "$ac_cv_use_resources"
4768 if test "$no_cache" != 1; then
4769 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4770 fi
4771
4772 if test "$wxUSE_RESOURCES" = yes; then
4773 echo "$ac_t""yes" 1>&6
4774 else
4775 echo "$ac_t""no" 1>&6
4776 fi
4777
4778
4779
4780 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
4781 echo "configure:4782: checking for --enable-xresources" >&5
4782 no_cache=0
4783 # Check whether --enable-xresources or --disable-xresources was given.
4784 if test "${enable_xresources+set}" = set; then
4785 enableval="$enable_xresources"
4786
4787 if test "$enableval" = yes; then
4788 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4789 else
4790 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4791 fi
4792
4793 else
4794
4795 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4796 if test "x$LINE" != x ; then
4797 eval "DEFAULT_$LINE"
4798 else
4799 no_cache=1
4800 fi
4801
4802 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
4803
4804 fi
4805
4806
4807 eval "$ac_cv_use_xresources"
4808 if test "$no_cache" != 1; then
4809 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4810 fi
4811
4812 if test "$wxUSE_X_RESOURCES" = yes; then
4813 echo "$ac_t""yes" 1>&6
4814 else
4815 echo "$ac_t""no" 1>&6
4816 fi
4817
4818
4819
4820
4821 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
4822 echo "configure:4823: checking for --enable-clipboard" >&5
4823 no_cache=0
4824 # Check whether --enable-clipboard or --disable-clipboard was given.
4825 if test "${enable_clipboard+set}" = set; then
4826 enableval="$enable_clipboard"
4827
4828 if test "$enableval" = yes; then
4829 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4830 else
4831 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4832 fi
4833
4834 else
4835
4836 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4837 if test "x$LINE" != x ; then
4838 eval "DEFAULT_$LINE"
4839 else
4840 no_cache=1
4841 fi
4842
4843 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4844
4845 fi
4846
4847
4848 eval "$ac_cv_use_clipboard"
4849 if test "$no_cache" != 1; then
4850 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4851 fi
4852
4853 if test "$wxUSE_CLIPBOARD" = yes; then
4854 echo "$ac_t""yes" 1>&6
4855 else
4856 echo "$ac_t""no" 1>&6
4857 fi
4858
4859
4860 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
4861 echo "configure:4862: checking for --enable-dnd" >&5
4862 no_cache=0
4863 # Check whether --enable-dnd or --disable-dnd was given.
4864 if test "${enable_dnd+set}" = set; then
4865 enableval="$enable_dnd"
4866
4867 if test "$enableval" = yes; then
4868 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4869 else
4870 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4871 fi
4872
4873 else
4874
4875 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4876 if test "x$LINE" != x ; then
4877 eval "DEFAULT_$LINE"
4878 else
4879 no_cache=1
4880 fi
4881
4882 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4883
4884 fi
4885
4886
4887 eval "$ac_cv_use_dnd"
4888 if test "$no_cache" != 1; then
4889 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4890 fi
4891
4892 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4893 echo "$ac_t""yes" 1>&6
4894 else
4895 echo "$ac_t""no" 1>&6
4896 fi
4897
4898
4899 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
4900 echo "configure:4901: checking for --enable-metafile" >&5
4901 no_cache=0
4902 # Check whether --enable-metafile or --disable-metafile was given.
4903 if test "${enable_metafile+set}" = set; then
4904 enableval="$enable_metafile"
4905
4906 if test "$enableval" = yes; then
4907 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4908 else
4909 ac_cv_use_metafile='wxUSE_METAFILE=no'
4910 fi
4911
4912 else
4913
4914 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4915 if test "x$LINE" != x ; then
4916 eval "DEFAULT_$LINE"
4917 else
4918 no_cache=1
4919 fi
4920
4921 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4922
4923 fi
4924
4925
4926 eval "$ac_cv_use_metafile"
4927 if test "$no_cache" != 1; then
4928 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4929 fi
4930
4931 if test "$wxUSE_METAFILE" = yes; then
4932 echo "$ac_t""yes" 1>&6
4933 else
4934 echo "$ac_t""no" 1>&6
4935 fi
4936
4937
4938
4939 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
4940 echo "configure:4941: checking for --enable-treelayout" >&5
4941 no_cache=0
4942 # Check whether --enable-treelayout or --disable-treelayout was given.
4943 if test "${enable_treelayout+set}" = set; then
4944 enableval="$enable_treelayout"
4945
4946 if test "$enableval" = yes; then
4947 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
4948 else
4949 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
4950 fi
4951
4952 else
4953
4954 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
4955 if test "x$LINE" != x ; then
4956 eval "DEFAULT_$LINE"
4957 else
4958 no_cache=1
4959 fi
4960
4961 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
4962
4963 fi
4964
4965
4966 eval "$ac_cv_use_treelayout"
4967 if test "$no_cache" != 1; then
4968 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
4969 fi
4970
4971 if test "$wxUSE_TREELAYOUT" = yes; then
4972 echo "$ac_t""yes" 1>&6
4973 else
4974 echo "$ac_t""no" 1>&6
4975 fi
4976
4977
4978
4979
4980 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
4981 echo "configure:4982: checking for --enable-controls" >&5
4982 no_cache=0
4983 # Check whether --enable-controls or --disable-controls was given.
4984 if test "${enable_controls+set}" = set; then
4985 enableval="$enable_controls"
4986
4987 if test "$enableval" = yes; then
4988 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4989 else
4990 ac_cv_use_controls='wxUSE_CONTROLS=no'
4991 fi
4992
4993 else
4994
4995 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4996 if test "x$LINE" != x ; then
4997 eval "DEFAULT_$LINE"
4998 else
4999 no_cache=1
5000 fi
5001
5002 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5003
5004 fi
5005
5006
5007 eval "$ac_cv_use_controls"
5008 if test "$no_cache" != 1; then
5009 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5010 fi
5011
5012 if test "$wxUSE_CONTROLS" = yes; then
5013 echo "$ac_t""yes" 1>&6
5014 else
5015 echo "$ac_t""no" 1>&6
5016 fi
5017
5018
5019 if test "$wxUSE_CONTROLS" = "yes"; then
5020 DEFAULT_wxUSE_ACCEL=yes
5021 DEFAULT_wxUSE_BMPBUTTON=yes
5022 DEFAULT_wxUSE_BUTTON=yes
5023 DEFAULT_wxUSE_CALCTRL=no
5024 DEFAULT_wxUSE_CARET=yes
5025 DEFAULT_wxUSE_COMBOBOX=yes
5026 DEFAULT_wxUSE_CHECKBOX=yes
5027 DEFAULT_wxUSE_CHECKLISTBOX=yes
5028 DEFAULT_wxUSE_CHOICE=yes
5029 DEFAULT_wxUSE_GAUGE=yes
5030 DEFAULT_wxUSE_GRID=yes
5031 DEFAULT_wxUSE_NEW_GRID=yes
5032 DEFAULT_wxUSE_IMAGLIST=yes
5033 DEFAULT_wxUSE_LISTBOX=yes
5034 DEFAULT_wxUSE_LISTCTRL=yes
5035 DEFAULT_wxUSE_NOTEBOOK=yes
5036 DEFAULT_wxUSE_PROPSHEET=yes
5037 DEFAULT_wxUSE_RADIOBOX=yes
5038 DEFAULT_wxUSE_RADIOBTN=yes
5039 DEFAULT_wxUSE_SASH=yes
5040 DEFAULT_wxUSE_SCROLLBAR=yes
5041 DEFAULT_wxUSE_SLIDER=yes
5042 DEFAULT_wxUSE_SPINBTN=yes
5043 DEFAULT_wxUSE_SPINCTRL=yes
5044 DEFAULT_wxUSE_SPLITTER=yes
5045 DEFAULT_wxUSE_STATBMP=yes
5046 DEFAULT_wxUSE_STATBOX=yes
5047 DEFAULT_wxUSE_STATLINE=yes
5048 DEFAULT_wxUSE_STATUSBAR=yes
5049 DEFAULT_wxUSE_TAB_DIALOG=yes
5050 DEFAULT_wxUSE_TOGGLEBTN=yes
5051 DEFAULT_wxUSE_TOOLBAR=yes
5052 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5053 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5054 DEFAULT_wxUSE_TOOLTIPS=yes
5055 DEFAULT_wxUSE_TREECTRL=yes
5056 DEFAULT_wxUSE_POPUPWIN=yes
5057 elif test "$wxUSE_CONTROLS" = "no"; then
5058 DEFAULT_wxUSE_ACCEL=no
5059 DEFAULT_wxUSE_BMPBUTTON=no
5060 DEFAULT_wxUSE_BUTTON=no
5061 DEFAULT_wxUSE_CALCTRL=no
5062 DEFAULT_wxUSE_CARET=no
5063 DEFAULT_wxUSE_COMBOBOX=no
5064 DEFAULT_wxUSE_CHECKBOX=no
5065 DEFAULT_wxUSE_CHECKLISTBOX=no
5066 DEFAULT_wxUSE_CHOICE=no
5067 DEFAULT_wxUSE_GAUGE=no
5068 DEFAULT_wxUSE_GRID=no
5069 DEFAULT_wxUSE_NEW_GRID=no
5070 DEFAULT_wxUSE_IMAGLIST=no
5071 DEFAULT_wxUSE_LISTBOX=no
5072 DEFAULT_wxUSE_LISTCTRL=no
5073 DEFAULT_wxUSE_NOTEBOOK=no
5074 DEFAULT_wxUSE_PROPSHEET=no
5075 DEFAULT_wxUSE_RADIOBOX=no
5076 DEFAULT_wxUSE_RADIOBTN=no
5077 DEFAULT_wxUSE_SASH=no
5078 DEFAULT_wxUSE_SCROLLBAR=no
5079 DEFAULT_wxUSE_SLIDER=no
5080 DEFAULT_wxUSE_SPINBTN=no
5081 DEFAULT_wxUSE_SPINCTRL=no
5082 DEFAULT_wxUSE_SPLITTER=no
5083 DEFAULT_wxUSE_STATBMP=no
5084 DEFAULT_wxUSE_STATBOX=no
5085 DEFAULT_wxUSE_STATLINE=no
5086 DEFAULT_wxUSE_STATUSBAR=no
5087 DEFAULT_wxUSE_TAB_DIALOG=no
5088 DEFAULT_wxUSE_TOGGLEBTN=no
5089 DEFAULT_wxUSE_TOOLBAR=no
5090 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5091 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5092 DEFAULT_wxUSE_TOOLTIPS=no
5093 DEFAULT_wxUSE_TREECTRL=no
5094 DEFAULT_wxUSE_POPUPWIN=no
5095 fi
5096
5097
5098 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5099 echo "configure:5100: checking for --enable-accel" >&5
5100 no_cache=0
5101 # Check whether --enable-accel or --disable-accel was given.
5102 if test "${enable_accel+set}" = set; then
5103 enableval="$enable_accel"
5104
5105 if test "$enableval" = yes; then
5106 ac_cv_use_accel='wxUSE_ACCEL=yes'
5107 else
5108 ac_cv_use_accel='wxUSE_ACCEL=no'
5109 fi
5110
5111 else
5112
5113 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5114 if test "x$LINE" != x ; then
5115 eval "DEFAULT_$LINE"
5116 else
5117 no_cache=1
5118 fi
5119
5120 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5121
5122 fi
5123
5124
5125 eval "$ac_cv_use_accel"
5126 if test "$no_cache" != 1; then
5127 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5128 fi
5129
5130 if test "$wxUSE_ACCEL" = yes; then
5131 echo "$ac_t""yes" 1>&6
5132 else
5133 echo "$ac_t""no" 1>&6
5134 fi
5135
5136
5137 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5138 echo "configure:5139: checking for --enable-button" >&5
5139 no_cache=0
5140 # Check whether --enable-button or --disable-button was given.
5141 if test "${enable_button+set}" = set; then
5142 enableval="$enable_button"
5143
5144 if test "$enableval" = yes; then
5145 ac_cv_use_button='wxUSE_BUTTON=yes'
5146 else
5147 ac_cv_use_button='wxUSE_BUTTON=no'
5148 fi
5149
5150 else
5151
5152 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5153 if test "x$LINE" != x ; then
5154 eval "DEFAULT_$LINE"
5155 else
5156 no_cache=1
5157 fi
5158
5159 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5160
5161 fi
5162
5163
5164 eval "$ac_cv_use_button"
5165 if test "$no_cache" != 1; then
5166 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5167 fi
5168
5169 if test "$wxUSE_BUTTON" = yes; then
5170 echo "$ac_t""yes" 1>&6
5171 else
5172 echo "$ac_t""no" 1>&6
5173 fi
5174
5175
5176 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5177 echo "configure:5178: checking for --enable-bmpbutton" >&5
5178 no_cache=0
5179 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5180 if test "${enable_bmpbutton+set}" = set; then
5181 enableval="$enable_bmpbutton"
5182
5183 if test "$enableval" = yes; then
5184 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5185 else
5186 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5187 fi
5188
5189 else
5190
5191 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5192 if test "x$LINE" != x ; then
5193 eval "DEFAULT_$LINE"
5194 else
5195 no_cache=1
5196 fi
5197
5198 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5199
5200 fi
5201
5202
5203 eval "$ac_cv_use_bmpbutton"
5204 if test "$no_cache" != 1; then
5205 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5206 fi
5207
5208 if test "$wxUSE_BMPBUTTON" = yes; then
5209 echo "$ac_t""yes" 1>&6
5210 else
5211 echo "$ac_t""no" 1>&6
5212 fi
5213
5214
5215 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5216 echo "configure:5217: checking for --enable-calendar" >&5
5217 no_cache=0
5218 # Check whether --enable-calendar or --disable-calendar was given.
5219 if test "${enable_calendar+set}" = set; then
5220 enableval="$enable_calendar"
5221
5222 if test "$enableval" = yes; then
5223 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5224 else
5225 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5226 fi
5227
5228 else
5229
5230 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5231 if test "x$LINE" != x ; then
5232 eval "DEFAULT_$LINE"
5233 else
5234 no_cache=1
5235 fi
5236
5237 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5238
5239 fi
5240
5241
5242 eval "$ac_cv_use_calendar"
5243 if test "$no_cache" != 1; then
5244 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5245 fi
5246
5247 if test "$wxUSE_CALCTRL" = yes; then
5248 echo "$ac_t""yes" 1>&6
5249 else
5250 echo "$ac_t""no" 1>&6
5251 fi
5252
5253
5254 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5255 echo "configure:5256: checking for --enable-caret" >&5
5256 no_cache=0
5257 # Check whether --enable-caret or --disable-caret was given.
5258 if test "${enable_caret+set}" = set; then
5259 enableval="$enable_caret"
5260
5261 if test "$enableval" = yes; then
5262 ac_cv_use_caret='wxUSE_CARET=yes'
5263 else
5264 ac_cv_use_caret='wxUSE_CARET=no'
5265 fi
5266
5267 else
5268
5269 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5270 if test "x$LINE" != x ; then
5271 eval "DEFAULT_$LINE"
5272 else
5273 no_cache=1
5274 fi
5275
5276 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5277
5278 fi
5279
5280
5281 eval "$ac_cv_use_caret"
5282 if test "$no_cache" != 1; then
5283 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5284 fi
5285
5286 if test "$wxUSE_CARET" = yes; then
5287 echo "$ac_t""yes" 1>&6
5288 else
5289 echo "$ac_t""no" 1>&6
5290 fi
5291
5292
5293 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5294 echo "configure:5295: checking for --enable-checkbox" >&5
5295 no_cache=0
5296 # Check whether --enable-checkbox or --disable-checkbox was given.
5297 if test "${enable_checkbox+set}" = set; then
5298 enableval="$enable_checkbox"
5299
5300 if test "$enableval" = yes; then
5301 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5302 else
5303 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5304 fi
5305
5306 else
5307
5308 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5309 if test "x$LINE" != x ; then
5310 eval "DEFAULT_$LINE"
5311 else
5312 no_cache=1
5313 fi
5314
5315 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5316
5317 fi
5318
5319
5320 eval "$ac_cv_use_checkbox"
5321 if test "$no_cache" != 1; then
5322 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5323 fi
5324
5325 if test "$wxUSE_CHECKBOX" = yes; then
5326 echo "$ac_t""yes" 1>&6
5327 else
5328 echo "$ac_t""no" 1>&6
5329 fi
5330
5331
5332 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5333 echo "configure:5334: checking for --enable-checklst" >&5
5334 no_cache=0
5335 # Check whether --enable-checklst or --disable-checklst was given.
5336 if test "${enable_checklst+set}" = set; then
5337 enableval="$enable_checklst"
5338
5339 if test "$enableval" = yes; then
5340 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5341 else
5342 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5343 fi
5344
5345 else
5346
5347 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5348 if test "x$LINE" != x ; then
5349 eval "DEFAULT_$LINE"
5350 else
5351 no_cache=1
5352 fi
5353
5354 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5355
5356 fi
5357
5358
5359 eval "$ac_cv_use_checklst"
5360 if test "$no_cache" != 1; then
5361 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5362 fi
5363
5364 if test "$wxUSE_CHECKLST" = yes; then
5365 echo "$ac_t""yes" 1>&6
5366 else
5367 echo "$ac_t""no" 1>&6
5368 fi
5369
5370
5371 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5372 echo "configure:5373: checking for --enable-choice" >&5
5373 no_cache=0
5374 # Check whether --enable-choice or --disable-choice was given.
5375 if test "${enable_choice+set}" = set; then
5376 enableval="$enable_choice"
5377
5378 if test "$enableval" = yes; then
5379 ac_cv_use_choice='wxUSE_CHOICE=yes'
5380 else
5381 ac_cv_use_choice='wxUSE_CHOICE=no'
5382 fi
5383
5384 else
5385
5386 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5387 if test "x$LINE" != x ; then
5388 eval "DEFAULT_$LINE"
5389 else
5390 no_cache=1
5391 fi
5392
5393 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5394
5395 fi
5396
5397
5398 eval "$ac_cv_use_choice"
5399 if test "$no_cache" != 1; then
5400 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5401 fi
5402
5403 if test "$wxUSE_CHOICE" = yes; then
5404 echo "$ac_t""yes" 1>&6
5405 else
5406 echo "$ac_t""no" 1>&6
5407 fi
5408
5409
5410 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5411 echo "configure:5412: checking for --enable-combobox" >&5
5412 no_cache=0
5413 # Check whether --enable-combobox or --disable-combobox was given.
5414 if test "${enable_combobox+set}" = set; then
5415 enableval="$enable_combobox"
5416
5417 if test "$enableval" = yes; then
5418 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5419 else
5420 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5421 fi
5422
5423 else
5424
5425 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5426 if test "x$LINE" != x ; then
5427 eval "DEFAULT_$LINE"
5428 else
5429 no_cache=1
5430 fi
5431
5432 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5433
5434 fi
5435
5436
5437 eval "$ac_cv_use_combobox"
5438 if test "$no_cache" != 1; then
5439 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5440 fi
5441
5442 if test "$wxUSE_COMBOBOX" = yes; then
5443 echo "$ac_t""yes" 1>&6
5444 else
5445 echo "$ac_t""no" 1>&6
5446 fi
5447
5448
5449 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
5450 echo "configure:5451: checking for --enable-gauge" >&5
5451 no_cache=0
5452 # Check whether --enable-gauge or --disable-gauge was given.
5453 if test "${enable_gauge+set}" = set; then
5454 enableval="$enable_gauge"
5455
5456 if test "$enableval" = yes; then
5457 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5458 else
5459 ac_cv_use_gauge='wxUSE_GAUGE=no'
5460 fi
5461
5462 else
5463
5464 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5465 if test "x$LINE" != x ; then
5466 eval "DEFAULT_$LINE"
5467 else
5468 no_cache=1
5469 fi
5470
5471 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
5472
5473 fi
5474
5475
5476 eval "$ac_cv_use_gauge"
5477 if test "$no_cache" != 1; then
5478 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5479 fi
5480
5481 if test "$wxUSE_GAUGE" = yes; then
5482 echo "$ac_t""yes" 1>&6
5483 else
5484 echo "$ac_t""no" 1>&6
5485 fi
5486
5487
5488 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
5489 echo "configure:5490: checking for --enable-grid" >&5
5490 no_cache=0
5491 # Check whether --enable-grid or --disable-grid was given.
5492 if test "${enable_grid+set}" = set; then
5493 enableval="$enable_grid"
5494
5495 if test "$enableval" = yes; then
5496 ac_cv_use_grid='wxUSE_GRID=yes'
5497 else
5498 ac_cv_use_grid='wxUSE_GRID=no'
5499 fi
5500
5501 else
5502
5503 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5504 if test "x$LINE" != x ; then
5505 eval "DEFAULT_$LINE"
5506 else
5507 no_cache=1
5508 fi
5509
5510 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5511
5512 fi
5513
5514
5515 eval "$ac_cv_use_grid"
5516 if test "$no_cache" != 1; then
5517 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5518 fi
5519
5520 if test "$wxUSE_GRID" = yes; then
5521 echo "$ac_t""yes" 1>&6
5522 else
5523 echo "$ac_t""no" 1>&6
5524 fi
5525
5526
5527 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
5528 echo "configure:5529: checking for --enable-newgrid" >&5
5529 no_cache=0
5530 # Check whether --enable-newgrid or --disable-newgrid was given.
5531 if test "${enable_newgrid+set}" = set; then
5532 enableval="$enable_newgrid"
5533
5534 if test "$enableval" = yes; then
5535 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5536 else
5537 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5538 fi
5539
5540 else
5541
5542 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5543 if test "x$LINE" != x ; then
5544 eval "DEFAULT_$LINE"
5545 else
5546 no_cache=1
5547 fi
5548
5549 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
5550
5551 fi
5552
5553
5554 eval "$ac_cv_use_newgrid"
5555 if test "$no_cache" != 1; then
5556 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5557 fi
5558
5559 if test "$wxUSE_NEW_GRID" = yes; then
5560 echo "$ac_t""yes" 1>&6
5561 else
5562 echo "$ac_t""no" 1>&6
5563 fi
5564
5565
5566 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
5567 echo "configure:5568: checking for --enable-imaglist" >&5
5568 no_cache=0
5569 # Check whether --enable-imaglist or --disable-imaglist was given.
5570 if test "${enable_imaglist+set}" = set; then
5571 enableval="$enable_imaglist"
5572
5573 if test "$enableval" = yes; then
5574 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5575 else
5576 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5577 fi
5578
5579 else
5580
5581 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5582 if test "x$LINE" != x ; then
5583 eval "DEFAULT_$LINE"
5584 else
5585 no_cache=1
5586 fi
5587
5588 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
5589
5590 fi
5591
5592
5593 eval "$ac_cv_use_imaglist"
5594 if test "$no_cache" != 1; then
5595 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5596 fi
5597
5598 if test "$wxUSE_IMAGLIST" = yes; then
5599 echo "$ac_t""yes" 1>&6
5600 else
5601 echo "$ac_t""no" 1>&6
5602 fi
5603
5604
5605 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
5606 echo "configure:5607: checking for --enable-listbox" >&5
5607 no_cache=0
5608 # Check whether --enable-listbox or --disable-listbox was given.
5609 if test "${enable_listbox+set}" = set; then
5610 enableval="$enable_listbox"
5611
5612 if test "$enableval" = yes; then
5613 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5614 else
5615 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5616 fi
5617
5618 else
5619
5620 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5621 if test "x$LINE" != x ; then
5622 eval "DEFAULT_$LINE"
5623 else
5624 no_cache=1
5625 fi
5626
5627 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
5628
5629 fi
5630
5631
5632 eval "$ac_cv_use_listbox"
5633 if test "$no_cache" != 1; then
5634 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5635 fi
5636
5637 if test "$wxUSE_LISTBOX" = yes; then
5638 echo "$ac_t""yes" 1>&6
5639 else
5640 echo "$ac_t""no" 1>&6
5641 fi
5642
5643
5644 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
5645 echo "configure:5646: checking for --enable-listctrl" >&5
5646 no_cache=0
5647 # Check whether --enable-listctrl or --disable-listctrl was given.
5648 if test "${enable_listctrl+set}" = set; then
5649 enableval="$enable_listctrl"
5650
5651 if test "$enableval" = yes; then
5652 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5653 else
5654 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5655 fi
5656
5657 else
5658
5659 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5660 if test "x$LINE" != x ; then
5661 eval "DEFAULT_$LINE"
5662 else
5663 no_cache=1
5664 fi
5665
5666 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
5667
5668 fi
5669
5670
5671 eval "$ac_cv_use_listctrl"
5672 if test "$no_cache" != 1; then
5673 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5674 fi
5675
5676 if test "$wxUSE_LISTCTRL" = yes; then
5677 echo "$ac_t""yes" 1>&6
5678 else
5679 echo "$ac_t""no" 1>&6
5680 fi
5681
5682
5683 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
5684 echo "configure:5685: checking for --enable-notebook" >&5
5685 no_cache=0
5686 # Check whether --enable-notebook or --disable-notebook was given.
5687 if test "${enable_notebook+set}" = set; then
5688 enableval="$enable_notebook"
5689
5690 if test "$enableval" = yes; then
5691 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5692 else
5693 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5694 fi
5695
5696 else
5697
5698 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5699 if test "x$LINE" != x ; then
5700 eval "DEFAULT_$LINE"
5701 else
5702 no_cache=1
5703 fi
5704
5705 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
5706
5707 fi
5708
5709
5710 eval "$ac_cv_use_notebook"
5711 if test "$no_cache" != 1; then
5712 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5713 fi
5714
5715 if test "$wxUSE_NOTEBOOK" = yes; then
5716 echo "$ac_t""yes" 1>&6
5717 else
5718 echo "$ac_t""no" 1>&6
5719 fi
5720
5721
5722 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
5723 echo "configure:5724: checking for --enable-propsheet" >&5
5724 no_cache=0
5725 # Check whether --enable-propsheet or --disable-propsheet was given.
5726 if test "${enable_propsheet+set}" = set; then
5727 enableval="$enable_propsheet"
5728
5729 if test "$enableval" = yes; then
5730 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5731 else
5732 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5733 fi
5734
5735 else
5736
5737 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5738 if test "x$LINE" != x ; then
5739 eval "DEFAULT_$LINE"
5740 else
5741 no_cache=1
5742 fi
5743
5744 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5745
5746 fi
5747
5748
5749 eval "$ac_cv_use_propsheet"
5750 if test "$no_cache" != 1; then
5751 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5752 fi
5753
5754 if test "$wxUSE_PROPSHEET" = yes; then
5755 echo "$ac_t""yes" 1>&6
5756 else
5757 echo "$ac_t""no" 1>&6
5758 fi
5759
5760
5761 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
5762 echo "configure:5763: checking for --enable-radiobox" >&5
5763 no_cache=0
5764 # Check whether --enable-radiobox or --disable-radiobox was given.
5765 if test "${enable_radiobox+set}" = set; then
5766 enableval="$enable_radiobox"
5767
5768 if test "$enableval" = yes; then
5769 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5770 else
5771 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5772 fi
5773
5774 else
5775
5776 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5777 if test "x$LINE" != x ; then
5778 eval "DEFAULT_$LINE"
5779 else
5780 no_cache=1
5781 fi
5782
5783 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
5784
5785 fi
5786
5787
5788 eval "$ac_cv_use_radiobox"
5789 if test "$no_cache" != 1; then
5790 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5791 fi
5792
5793 if test "$wxUSE_RADIOBOX" = yes; then
5794 echo "$ac_t""yes" 1>&6
5795 else
5796 echo "$ac_t""no" 1>&6
5797 fi
5798
5799
5800 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
5801 echo "configure:5802: checking for --enable-radiobtn" >&5
5802 no_cache=0
5803 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5804 if test "${enable_radiobtn+set}" = set; then
5805 enableval="$enable_radiobtn"
5806
5807 if test "$enableval" = yes; then
5808 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5809 else
5810 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5811 fi
5812
5813 else
5814
5815 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5816 if test "x$LINE" != x ; then
5817 eval "DEFAULT_$LINE"
5818 else
5819 no_cache=1
5820 fi
5821
5822 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
5823
5824 fi
5825
5826
5827 eval "$ac_cv_use_radiobtn"
5828 if test "$no_cache" != 1; then
5829 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5830 fi
5831
5832 if test "$wxUSE_RADIOBTN" = yes; then
5833 echo "$ac_t""yes" 1>&6
5834 else
5835 echo "$ac_t""no" 1>&6
5836 fi
5837
5838
5839 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
5840 echo "configure:5841: checking for --enable-sash" >&5
5841 no_cache=0
5842 # Check whether --enable-sash or --disable-sash was given.
5843 if test "${enable_sash+set}" = set; then
5844 enableval="$enable_sash"
5845
5846 if test "$enableval" = yes; then
5847 ac_cv_use_sash='wxUSE_SASH=yes'
5848 else
5849 ac_cv_use_sash='wxUSE_SASH=no'
5850 fi
5851
5852 else
5853
5854 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5855 if test "x$LINE" != x ; then
5856 eval "DEFAULT_$LINE"
5857 else
5858 no_cache=1
5859 fi
5860
5861 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
5862
5863 fi
5864
5865
5866 eval "$ac_cv_use_sash"
5867 if test "$no_cache" != 1; then
5868 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5869 fi
5870
5871 if test "$wxUSE_SASH" = yes; then
5872 echo "$ac_t""yes" 1>&6
5873 else
5874 echo "$ac_t""no" 1>&6
5875 fi
5876
5877
5878 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
5879 echo "configure:5880: checking for --enable-scrollbar" >&5
5880 no_cache=0
5881 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5882 if test "${enable_scrollbar+set}" = set; then
5883 enableval="$enable_scrollbar"
5884
5885 if test "$enableval" = yes; then
5886 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5887 else
5888 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5889 fi
5890
5891 else
5892
5893 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5894 if test "x$LINE" != x ; then
5895 eval "DEFAULT_$LINE"
5896 else
5897 no_cache=1
5898 fi
5899
5900 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
5901
5902 fi
5903
5904
5905 eval "$ac_cv_use_scrollbar"
5906 if test "$no_cache" != 1; then
5907 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5908 fi
5909
5910 if test "$wxUSE_SCROLLBAR" = yes; then
5911 echo "$ac_t""yes" 1>&6
5912 else
5913 echo "$ac_t""no" 1>&6
5914 fi
5915
5916
5917 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
5918 echo "configure:5919: checking for --enable-slider" >&5
5919 no_cache=0
5920 # Check whether --enable-slider or --disable-slider was given.
5921 if test "${enable_slider+set}" = set; then
5922 enableval="$enable_slider"
5923
5924 if test "$enableval" = yes; then
5925 ac_cv_use_slider='wxUSE_SLIDER=yes'
5926 else
5927 ac_cv_use_slider='wxUSE_SLIDER=no'
5928 fi
5929
5930 else
5931
5932 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5933 if test "x$LINE" != x ; then
5934 eval "DEFAULT_$LINE"
5935 else
5936 no_cache=1
5937 fi
5938
5939 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
5940
5941 fi
5942
5943
5944 eval "$ac_cv_use_slider"
5945 if test "$no_cache" != 1; then
5946 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5947 fi
5948
5949 if test "$wxUSE_SLIDER" = yes; then
5950 echo "$ac_t""yes" 1>&6
5951 else
5952 echo "$ac_t""no" 1>&6
5953 fi
5954
5955
5956 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
5957 echo "configure:5958: checking for --enable-spinbtn" >&5
5958 no_cache=0
5959 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5960 if test "${enable_spinbtn+set}" = set; then
5961 enableval="$enable_spinbtn"
5962
5963 if test "$enableval" = yes; then
5964 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5965 else
5966 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5967 fi
5968
5969 else
5970
5971 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5972 if test "x$LINE" != x ; then
5973 eval "DEFAULT_$LINE"
5974 else
5975 no_cache=1
5976 fi
5977
5978 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
5979
5980 fi
5981
5982
5983 eval "$ac_cv_use_spinbtn"
5984 if test "$no_cache" != 1; then
5985 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5986 fi
5987
5988 if test "$wxUSE_SPINBTN" = yes; then
5989 echo "$ac_t""yes" 1>&6
5990 else
5991 echo "$ac_t""no" 1>&6
5992 fi
5993
5994
5995 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
5996 echo "configure:5997: checking for --enable-spinctrl" >&5
5997 no_cache=0
5998 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5999 if test "${enable_spinctrl+set}" = set; then
6000 enableval="$enable_spinctrl"
6001
6002 if test "$enableval" = yes; then
6003 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6004 else
6005 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6006 fi
6007
6008 else
6009
6010 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6011 if test "x$LINE" != x ; then
6012 eval "DEFAULT_$LINE"
6013 else
6014 no_cache=1
6015 fi
6016
6017 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6018
6019 fi
6020
6021
6022 eval "$ac_cv_use_spinctrl"
6023 if test "$no_cache" != 1; then
6024 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6025 fi
6026
6027 if test "$wxUSE_SPINCTRL" = yes; then
6028 echo "$ac_t""yes" 1>&6
6029 else
6030 echo "$ac_t""no" 1>&6
6031 fi
6032
6033
6034 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6035 echo "configure:6036: checking for --enable-splitter" >&5
6036 no_cache=0
6037 # Check whether --enable-splitter or --disable-splitter was given.
6038 if test "${enable_splitter+set}" = set; then
6039 enableval="$enable_splitter"
6040
6041 if test "$enableval" = yes; then
6042 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6043 else
6044 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6045 fi
6046
6047 else
6048
6049 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6050 if test "x$LINE" != x ; then
6051 eval "DEFAULT_$LINE"
6052 else
6053 no_cache=1
6054 fi
6055
6056 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6057
6058 fi
6059
6060
6061 eval "$ac_cv_use_splitter"
6062 if test "$no_cache" != 1; then
6063 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6064 fi
6065
6066 if test "$wxUSE_SPLITTER" = yes; then
6067 echo "$ac_t""yes" 1>&6
6068 else
6069 echo "$ac_t""no" 1>&6
6070 fi
6071
6072
6073 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6074 echo "configure:6075: checking for --enable-statbmp" >&5
6075 no_cache=0
6076 # Check whether --enable-statbmp or --disable-statbmp was given.
6077 if test "${enable_statbmp+set}" = set; then
6078 enableval="$enable_statbmp"
6079
6080 if test "$enableval" = yes; then
6081 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6082 else
6083 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6084 fi
6085
6086 else
6087
6088 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6089 if test "x$LINE" != x ; then
6090 eval "DEFAULT_$LINE"
6091 else
6092 no_cache=1
6093 fi
6094
6095 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6096
6097 fi
6098
6099
6100 eval "$ac_cv_use_statbmp"
6101 if test "$no_cache" != 1; then
6102 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6103 fi
6104
6105 if test "$wxUSE_STATBMP" = yes; then
6106 echo "$ac_t""yes" 1>&6
6107 else
6108 echo "$ac_t""no" 1>&6
6109 fi
6110
6111
6112 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6113 echo "configure:6114: checking for --enable-statbox" >&5
6114 no_cache=0
6115 # Check whether --enable-statbox or --disable-statbox was given.
6116 if test "${enable_statbox+set}" = set; then
6117 enableval="$enable_statbox"
6118
6119 if test "$enableval" = yes; then
6120 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6121 else
6122 ac_cv_use_statbox='wxUSE_STATBOX=no'
6123 fi
6124
6125 else
6126
6127 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6128 if test "x$LINE" != x ; then
6129 eval "DEFAULT_$LINE"
6130 else
6131 no_cache=1
6132 fi
6133
6134 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6135
6136 fi
6137
6138
6139 eval "$ac_cv_use_statbox"
6140 if test "$no_cache" != 1; then
6141 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6142 fi
6143
6144 if test "$wxUSE_STATBOX" = yes; then
6145 echo "$ac_t""yes" 1>&6
6146 else
6147 echo "$ac_t""no" 1>&6
6148 fi
6149
6150
6151 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6152 echo "configure:6153: checking for --enable-statline" >&5
6153 no_cache=0
6154 # Check whether --enable-statline or --disable-statline was given.
6155 if test "${enable_statline+set}" = set; then
6156 enableval="$enable_statline"
6157
6158 if test "$enableval" = yes; then
6159 ac_cv_use_statline='wxUSE_STATLINE=yes'
6160 else
6161 ac_cv_use_statline='wxUSE_STATLINE=no'
6162 fi
6163
6164 else
6165
6166 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6167 if test "x$LINE" != x ; then
6168 eval "DEFAULT_$LINE"
6169 else
6170 no_cache=1
6171 fi
6172
6173 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6174
6175 fi
6176
6177
6178 eval "$ac_cv_use_statline"
6179 if test "$no_cache" != 1; then
6180 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6181 fi
6182
6183 if test "$wxUSE_STATLINE" = yes; then
6184 echo "$ac_t""yes" 1>&6
6185 else
6186 echo "$ac_t""no" 1>&6
6187 fi
6188
6189
6190 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6191 echo "configure:6192: checking for --enable-stattext" >&5
6192 no_cache=0
6193 # Check whether --enable-stattext or --disable-stattext was given.
6194 if test "${enable_stattext+set}" = set; then
6195 enableval="$enable_stattext"
6196
6197 if test "$enableval" = yes; then
6198 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6199 else
6200 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6201 fi
6202
6203 else
6204
6205 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6206 if test "x$LINE" != x ; then
6207 eval "DEFAULT_$LINE"
6208 else
6209 no_cache=1
6210 fi
6211
6212 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6213
6214 fi
6215
6216
6217 eval "$ac_cv_use_stattext"
6218 if test "$no_cache" != 1; then
6219 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6220 fi
6221
6222 if test "$wxUSE_STATTEXT" = yes; then
6223 echo "$ac_t""yes" 1>&6
6224 else
6225 echo "$ac_t""no" 1>&6
6226 fi
6227
6228
6229 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6230 echo "configure:6231: checking for --enable-statusbar" >&5
6231 no_cache=0
6232 # Check whether --enable-statusbar or --disable-statusbar was given.
6233 if test "${enable_statusbar+set}" = set; then
6234 enableval="$enable_statusbar"
6235
6236 if test "$enableval" = yes; then
6237 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6238 else
6239 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6240 fi
6241
6242 else
6243
6244 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6245 if test "x$LINE" != x ; then
6246 eval "DEFAULT_$LINE"
6247 else
6248 no_cache=1
6249 fi
6250
6251 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6252
6253 fi
6254
6255
6256 eval "$ac_cv_use_statusbar"
6257 if test "$no_cache" != 1; then
6258 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6259 fi
6260
6261 if test "$wxUSE_STATUSBAR" = yes; then
6262 echo "$ac_t""yes" 1>&6
6263 else
6264 echo "$ac_t""no" 1>&6
6265 fi
6266
6267
6268 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6269 echo "configure:6270: checking for --enable-tabdialog" >&5
6270 no_cache=0
6271 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6272 if test "${enable_tabdialog+set}" = set; then
6273 enableval="$enable_tabdialog"
6274
6275 if test "$enableval" = yes; then
6276 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6277 else
6278 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6279 fi
6280
6281 else
6282
6283 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6284 if test "x$LINE" != x ; then
6285 eval "DEFAULT_$LINE"
6286 else
6287 no_cache=1
6288 fi
6289
6290 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6291
6292 fi
6293
6294
6295 eval "$ac_cv_use_tabdialog"
6296 if test "$no_cache" != 1; then
6297 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6298 fi
6299
6300 if test "$wxUSE_TABDIALOG" = yes; then
6301 echo "$ac_t""yes" 1>&6
6302 else
6303 echo "$ac_t""no" 1>&6
6304 fi
6305
6306
6307 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6308 echo "configure:6309: checking for --enable-textctrl" >&5
6309 no_cache=0
6310 # Check whether --enable-textctrl or --disable-textctrl was given.
6311 if test "${enable_textctrl+set}" = set; then
6312 enableval="$enable_textctrl"
6313
6314 if test "$enableval" = yes; then
6315 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6316 else
6317 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6318 fi
6319
6320 else
6321
6322 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6323 if test "x$LINE" != x ; then
6324 eval "DEFAULT_$LINE"
6325 else
6326 no_cache=1
6327 fi
6328
6329 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6330
6331 fi
6332
6333
6334 eval "$ac_cv_use_textctrl"
6335 if test "$no_cache" != 1; then
6336 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6337 fi
6338
6339 if test "$wxUSE_TEXTCTRL" = yes; then
6340 echo "$ac_t""yes" 1>&6
6341 else
6342 echo "$ac_t""no" 1>&6
6343 fi
6344
6345
6346 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6347 echo "configure:6348: checking for --enable-togglebtn" >&5
6348 no_cache=0
6349 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6350 if test "${enable_togglebtn+set}" = set; then
6351 enableval="$enable_togglebtn"
6352
6353 if test "$enableval" = yes; then
6354 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6355 else
6356 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6357 fi
6358
6359 else
6360
6361 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6362 if test "x$LINE" != x ; then
6363 eval "DEFAULT_$LINE"
6364 else
6365 no_cache=1
6366 fi
6367
6368 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6369
6370 fi
6371
6372
6373 eval "$ac_cv_use_togglebtn"
6374 if test "$no_cache" != 1; then
6375 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6376 fi
6377
6378 if test "$wxUSE_TOGGLEBTN" = yes; then
6379 echo "$ac_t""yes" 1>&6
6380 else
6381 echo "$ac_t""no" 1>&6
6382 fi
6383
6384
6385 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6386 echo "configure:6387: checking for --enable-toolbar" >&5
6387 no_cache=0
6388 # Check whether --enable-toolbar or --disable-toolbar was given.
6389 if test "${enable_toolbar+set}" = set; then
6390 enableval="$enable_toolbar"
6391
6392 if test "$enableval" = yes; then
6393 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6394 else
6395 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6396 fi
6397
6398 else
6399
6400 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6401 if test "x$LINE" != x ; then
6402 eval "DEFAULT_$LINE"
6403 else
6404 no_cache=1
6405 fi
6406
6407 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6408
6409 fi
6410
6411
6412 eval "$ac_cv_use_toolbar"
6413 if test "$no_cache" != 1; then
6414 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6415 fi
6416
6417 if test "$wxUSE_TOOLBAR" = yes; then
6418 echo "$ac_t""yes" 1>&6
6419 else
6420 echo "$ac_t""no" 1>&6
6421 fi
6422
6423
6424 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6425 echo "configure:6426: checking for --enable-tbarnative" >&5
6426 no_cache=0
6427 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6428 if test "${enable_tbarnative+set}" = set; then
6429 enableval="$enable_tbarnative"
6430
6431 if test "$enableval" = yes; then
6432 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6433 else
6434 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6435 fi
6436
6437 else
6438
6439 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6440 if test "x$LINE" != x ; then
6441 eval "DEFAULT_$LINE"
6442 else
6443 no_cache=1
6444 fi
6445
6446 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
6447
6448 fi
6449
6450
6451 eval "$ac_cv_use_tbarnative"
6452 if test "$no_cache" != 1; then
6453 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6454 fi
6455
6456 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6457 echo "$ac_t""yes" 1>&6
6458 else
6459 echo "$ac_t""no" 1>&6
6460 fi
6461
6462
6463 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
6464 echo "configure:6465: checking for --enable-tbarsmpl" >&5
6465 no_cache=0
6466 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6467 if test "${enable_tbarsmpl+set}" = set; then
6468 enableval="$enable_tbarsmpl"
6469
6470 if test "$enableval" = yes; then
6471 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6472 else
6473 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6474 fi
6475
6476 else
6477
6478 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6479 if test "x$LINE" != x ; then
6480 eval "DEFAULT_$LINE"
6481 else
6482 no_cache=1
6483 fi
6484
6485 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
6486
6487 fi
6488
6489
6490 eval "$ac_cv_use_tbarsmpl"
6491 if test "$no_cache" != 1; then
6492 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6493 fi
6494
6495 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
6496 echo "$ac_t""yes" 1>&6
6497 else
6498 echo "$ac_t""no" 1>&6
6499 fi
6500
6501
6502 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
6503 echo "configure:6504: checking for --enable-treectrl" >&5
6504 no_cache=0
6505 # Check whether --enable-treectrl or --disable-treectrl was given.
6506 if test "${enable_treectrl+set}" = set; then
6507 enableval="$enable_treectrl"
6508
6509 if test "$enableval" = yes; then
6510 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6511 else
6512 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6513 fi
6514
6515 else
6516
6517 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6518 if test "x$LINE" != x ; then
6519 eval "DEFAULT_$LINE"
6520 else
6521 no_cache=1
6522 fi
6523
6524 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
6525
6526 fi
6527
6528
6529 eval "$ac_cv_use_treectrl"
6530 if test "$no_cache" != 1; then
6531 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6532 fi
6533
6534 if test "$wxUSE_TREECTRL" = yes; then
6535 echo "$ac_t""yes" 1>&6
6536 else
6537 echo "$ac_t""no" 1>&6
6538 fi
6539
6540
6541 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
6542 echo "configure:6543: checking for --enable-popupwin" >&5
6543 no_cache=0
6544 # Check whether --enable-popupwin or --disable-popupwin was given.
6545 if test "${enable_popupwin+set}" = set; then
6546 enableval="$enable_popupwin"
6547
6548 if test "$enableval" = yes; then
6549 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6550 else
6551 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6552 fi
6553
6554 else
6555
6556 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6557 if test "x$LINE" != x ; then
6558 eval "DEFAULT_$LINE"
6559 else
6560 no_cache=1
6561 fi
6562
6563 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6564
6565 fi
6566
6567
6568 eval "$ac_cv_use_popupwin"
6569 if test "$no_cache" != 1; then
6570 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6571 fi
6572
6573 if test "$wxUSE_POPUPWIN" = yes; then
6574 echo "$ac_t""yes" 1>&6
6575 else
6576 echo "$ac_t""no" 1>&6
6577 fi
6578
6579
6580
6581
6582 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
6583 echo "configure:6584: checking for --enable-commondlg" >&5
6584 no_cache=0
6585 # Check whether --enable-commondlg or --disable-commondlg was given.
6586 if test "${enable_commondlg+set}" = set; then
6587 enableval="$enable_commondlg"
6588
6589 if test "$enableval" = yes; then
6590 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6591 else
6592 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6593 fi
6594
6595 else
6596
6597 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6598 if test "x$LINE" != x ; then
6599 eval "DEFAULT_$LINE"
6600 else
6601 no_cache=1
6602 fi
6603
6604 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6605
6606 fi
6607
6608
6609 eval "$ac_cv_use_commondlg"
6610 if test "$no_cache" != 1; then
6611 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6612 fi
6613
6614 if test "$wxUSE_COMMONDLGS" = yes; then
6615 echo "$ac_t""yes" 1>&6
6616 else
6617 echo "$ac_t""no" 1>&6
6618 fi
6619
6620
6621 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
6622 echo "configure:6623: checking for --enable-choicedlg" >&5
6623 no_cache=0
6624 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6625 if test "${enable_choicedlg+set}" = set; then
6626 enableval="$enable_choicedlg"
6627
6628 if test "$enableval" = yes; then
6629 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6630 else
6631 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6632 fi
6633
6634 else
6635
6636 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6637 if test "x$LINE" != x ; then
6638 eval "DEFAULT_$LINE"
6639 else
6640 no_cache=1
6641 fi
6642
6643 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6644
6645 fi
6646
6647
6648 eval "$ac_cv_use_choicedlg"
6649 if test "$no_cache" != 1; then
6650 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6651 fi
6652
6653 if test "$wxUSE_CHOICEDLG" = yes; then
6654 echo "$ac_t""yes" 1>&6
6655 else
6656 echo "$ac_t""no" 1>&6
6657 fi
6658
6659
6660 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
6661 echo "configure:6662: checking for --enable-coldlg" >&5
6662 no_cache=0
6663 # Check whether --enable-coldlg or --disable-coldlg was given.
6664 if test "${enable_coldlg+set}" = set; then
6665 enableval="$enable_coldlg"
6666
6667 if test "$enableval" = yes; then
6668 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6669 else
6670 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6671 fi
6672
6673 else
6674
6675 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6676 if test "x$LINE" != x ; then
6677 eval "DEFAULT_$LINE"
6678 else
6679 no_cache=1
6680 fi
6681
6682 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6683
6684 fi
6685
6686
6687 eval "$ac_cv_use_coldlg"
6688 if test "$no_cache" != 1; then
6689 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6690 fi
6691
6692 if test "$wxUSE_COLOURDLG" = yes; then
6693 echo "$ac_t""yes" 1>&6
6694 else
6695 echo "$ac_t""no" 1>&6
6696 fi
6697
6698
6699 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6700 echo "configure:6701: checking for --enable-filedlg" >&5
6701 no_cache=0
6702 # Check whether --enable-filedlg or --disable-filedlg was given.
6703 if test "${enable_filedlg+set}" = set; then
6704 enableval="$enable_filedlg"
6705
6706 if test "$enableval" = yes; then
6707 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6708 else
6709 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6710 fi
6711
6712 else
6713
6714 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6715 if test "x$LINE" != x ; then
6716 eval "DEFAULT_$LINE"
6717 else
6718 no_cache=1
6719 fi
6720
6721 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6722
6723 fi
6724
6725
6726 eval "$ac_cv_use_filedlg"
6727 if test "$no_cache" != 1; then
6728 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6729 fi
6730
6731 if test "$wxUSE_FILEDLG" = yes; then
6732 echo "$ac_t""yes" 1>&6
6733 else
6734 echo "$ac_t""no" 1>&6
6735 fi
6736
6737
6738 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6739 echo "configure:6740: checking for --enable-filedlg" >&5
6740 no_cache=0
6741 # Check whether --enable-filedlg or --disable-filedlg was given.
6742 if test "${enable_filedlg+set}" = set; then
6743 enableval="$enable_filedlg"
6744
6745 if test "$enableval" = yes; then
6746 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes'
6747 else
6748 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no'
6749 fi
6750
6751 else
6752
6753 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6754 if test "x$LINE" != x ; then
6755 eval "DEFAULT_$LINE"
6756 else
6757 no_cache=1
6758 fi
6759
6760 ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
6761
6762 fi
6763
6764
6765 eval "$ac_cv_use_filedlg"
6766 if test "$no_cache" != 1; then
6767 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6768 fi
6769
6770 if test "$wxUSE_FINDREPLDLG" = yes; then
6771 echo "$ac_t""yes" 1>&6
6772 else
6773 echo "$ac_t""no" 1>&6
6774 fi
6775
6776
6777 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
6778 echo "configure:6779: checking for --enable-fontdlg" >&5
6779 no_cache=0
6780 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6781 if test "${enable_fontdlg+set}" = set; then
6782 enableval="$enable_fontdlg"
6783
6784 if test "$enableval" = yes; then
6785 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6786 else
6787 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6788 fi
6789
6790 else
6791
6792 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6793 if test "x$LINE" != x ; then
6794 eval "DEFAULT_$LINE"
6795 else
6796 no_cache=1
6797 fi
6798
6799 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6800
6801 fi
6802
6803
6804 eval "$ac_cv_use_fontdlg"
6805 if test "$no_cache" != 1; then
6806 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6807 fi
6808
6809 if test "$wxUSE_FONTDLG" = yes; then
6810 echo "$ac_t""yes" 1>&6
6811 else
6812 echo "$ac_t""no" 1>&6
6813 fi
6814
6815
6816 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
6817 echo "configure:6818: checking for --enable-dirdlg" >&5
6818 no_cache=0
6819 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6820 if test "${enable_dirdlg+set}" = set; then
6821 enableval="$enable_dirdlg"
6822
6823 if test "$enableval" = yes; then
6824 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6825 else
6826 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6827 fi
6828
6829 else
6830
6831 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6832 if test "x$LINE" != x ; then
6833 eval "DEFAULT_$LINE"
6834 else
6835 no_cache=1
6836 fi
6837
6838 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6839
6840 fi
6841
6842
6843 eval "$ac_cv_use_dirdlg"
6844 if test "$no_cache" != 1; then
6845 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
6846 fi
6847
6848 if test "$wxUSE_DIRDLG" = yes; then
6849 echo "$ac_t""yes" 1>&6
6850 else
6851 echo "$ac_t""no" 1>&6
6852 fi
6853
6854
6855 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
6856 echo "configure:6857: checking for --enable-msgdlg" >&5
6857 no_cache=0
6858 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6859 if test "${enable_msgdlg+set}" = set; then
6860 enableval="$enable_msgdlg"
6861
6862 if test "$enableval" = yes; then
6863 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
6864 else
6865 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
6866 fi
6867
6868 else
6869
6870 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
6871 if test "x$LINE" != x ; then
6872 eval "DEFAULT_$LINE"
6873 else
6874 no_cache=1
6875 fi
6876
6877 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
6878
6879 fi
6880
6881
6882 eval "$ac_cv_use_msgdlg"
6883 if test "$no_cache" != 1; then
6884 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
6885 fi
6886
6887 if test "$wxUSE_MSGDLG" = yes; then
6888 echo "$ac_t""yes" 1>&6
6889 else
6890 echo "$ac_t""no" 1>&6
6891 fi
6892
6893
6894 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
6895 echo "configure:6896: checking for --enable-numberdlg" >&5
6896 no_cache=0
6897 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6898 if test "${enable_numberdlg+set}" = set; then
6899 enableval="$enable_numberdlg"
6900
6901 if test "$enableval" = yes; then
6902 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
6903 else
6904 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
6905 fi
6906
6907 else
6908
6909 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
6910 if test "x$LINE" != x ; then
6911 eval "DEFAULT_$LINE"
6912 else
6913 no_cache=1
6914 fi
6915
6916 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
6917
6918 fi
6919
6920
6921 eval "$ac_cv_use_numberdlg"
6922 if test "$no_cache" != 1; then
6923 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
6924 fi
6925
6926 if test "$wxUSE_NUMBERDLG" = yes; then
6927 echo "$ac_t""yes" 1>&6
6928 else
6929 echo "$ac_t""no" 1>&6
6930 fi
6931
6932
6933 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
6934 echo "configure:6935: checking for --enable-splash" >&5
6935 no_cache=0
6936 # Check whether --enable-splash or --disable-splash was given.
6937 if test "${enable_splash+set}" = set; then
6938 enableval="$enable_splash"
6939
6940 if test "$enableval" = yes; then
6941 ac_cv_use_splash='wxUSE_SPLASH=yes'
6942 else
6943 ac_cv_use_splash='wxUSE_SPLASH=no'
6944 fi
6945
6946 else
6947
6948 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
6949 if test "x$LINE" != x ; then
6950 eval "DEFAULT_$LINE"
6951 else
6952 no_cache=1
6953 fi
6954
6955 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
6956
6957 fi
6958
6959
6960 eval "$ac_cv_use_splash"
6961 if test "$no_cache" != 1; then
6962 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
6963 fi
6964
6965 if test "$wxUSE_SPLASH" = yes; then
6966 echo "$ac_t""yes" 1>&6
6967 else
6968 echo "$ac_t""no" 1>&6
6969 fi
6970
6971
6972 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
6973 echo "configure:6974: checking for --enable-textdlg" >&5
6974 no_cache=0
6975 # Check whether --enable-textdlg or --disable-textdlg was given.
6976 if test "${enable_textdlg+set}" = set; then
6977 enableval="$enable_textdlg"
6978
6979 if test "$enableval" = yes; then
6980 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6981 else
6982 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6983 fi
6984
6985 else
6986
6987 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6988 if test "x$LINE" != x ; then
6989 eval "DEFAULT_$LINE"
6990 else
6991 no_cache=1
6992 fi
6993
6994 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
6995
6996 fi
6997
6998
6999 eval "$ac_cv_use_textdlg"
7000 if test "$no_cache" != 1; then
7001 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7002 fi
7003
7004 if test "$wxUSE_TEXTDLG" = yes; then
7005 echo "$ac_t""yes" 1>&6
7006 else
7007 echo "$ac_t""no" 1>&6
7008 fi
7009
7010
7011 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7012 echo "configure:7013: checking for --enable-tipdlg" >&5
7013 no_cache=0
7014 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7015 if test "${enable_tipdlg+set}" = set; then
7016 enableval="$enable_tipdlg"
7017
7018 if test "$enableval" = yes; then
7019 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7020 else
7021 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7022 fi
7023
7024 else
7025
7026 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7027 if test "x$LINE" != x ; then
7028 eval "DEFAULT_$LINE"
7029 else
7030 no_cache=1
7031 fi
7032
7033 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7034
7035 fi
7036
7037
7038 eval "$ac_cv_use_tipdlg"
7039 if test "$no_cache" != 1; then
7040 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7041 fi
7042
7043 if test "$wxUSE_STARTUP_TIPS" = yes; then
7044 echo "$ac_t""yes" 1>&6
7045 else
7046 echo "$ac_t""no" 1>&6
7047 fi
7048
7049
7050 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7051 echo "configure:7052: checking for --enable-progressdlg" >&5
7052 no_cache=0
7053 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7054 if test "${enable_progressdlg+set}" = set; then
7055 enableval="$enable_progressdlg"
7056
7057 if test "$enableval" = yes; then
7058 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7059 else
7060 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7061 fi
7062
7063 else
7064
7065 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7066 if test "x$LINE" != x ; then
7067 eval "DEFAULT_$LINE"
7068 else
7069 no_cache=1
7070 fi
7071
7072 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7073
7074 fi
7075
7076
7077 eval "$ac_cv_use_progressdlg"
7078 if test "$no_cache" != 1; then
7079 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7080 fi
7081
7082 if test "$wxUSE_PROGRESSDLG" = yes; then
7083 echo "$ac_t""yes" 1>&6
7084 else
7085 echo "$ac_t""no" 1>&6
7086 fi
7087
7088
7089 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7090 echo "configure:7091: checking for --enable-wizarddlg" >&5
7091 no_cache=0
7092 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7093 if test "${enable_wizarddlg+set}" = set; then
7094 enableval="$enable_wizarddlg"
7095
7096 if test "$enableval" = yes; then
7097 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7098 else
7099 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7100 fi
7101
7102 else
7103
7104 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7105 if test "x$LINE" != x ; then
7106 eval "DEFAULT_$LINE"
7107 else
7108 no_cache=1
7109 fi
7110
7111 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7112
7113 fi
7114
7115
7116 eval "$ac_cv_use_wizarddlg"
7117 if test "$no_cache" != 1; then
7118 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7119 fi
7120
7121 if test "$wxUSE_WIZARDDLG" = yes; then
7122 echo "$ac_t""yes" 1>&6
7123 else
7124 echo "$ac_t""no" 1>&6
7125 fi
7126
7127
7128
7129
7130 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7131 echo "configure:7132: checking for --enable-menus" >&5
7132 no_cache=0
7133 # Check whether --enable-menus or --disable-menus was given.
7134 if test "${enable_menus+set}" = set; then
7135 enableval="$enable_menus"
7136
7137 if test "$enableval" = yes; then
7138 ac_cv_use_menus='wxUSE_MENUS=yes'
7139 else
7140 ac_cv_use_menus='wxUSE_MENUS=no'
7141 fi
7142
7143 else
7144
7145 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7146 if test "x$LINE" != x ; then
7147 eval "DEFAULT_$LINE"
7148 else
7149 no_cache=1
7150 fi
7151
7152 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7153
7154 fi
7155
7156
7157 eval "$ac_cv_use_menus"
7158 if test "$no_cache" != 1; then
7159 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7160 fi
7161
7162 if test "$wxUSE_MENUS" = yes; then
7163 echo "$ac_t""yes" 1>&6
7164 else
7165 echo "$ac_t""no" 1>&6
7166 fi
7167
7168
7169 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7170 echo "configure:7171: checking for --enable-miniframe" >&5
7171 no_cache=0
7172 # Check whether --enable-miniframe or --disable-miniframe was given.
7173 if test "${enable_miniframe+set}" = set; then
7174 enableval="$enable_miniframe"
7175
7176 if test "$enableval" = yes; then
7177 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7178 else
7179 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7180 fi
7181
7182 else
7183
7184 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7185 if test "x$LINE" != x ; then
7186 eval "DEFAULT_$LINE"
7187 else
7188 no_cache=1
7189 fi
7190
7191 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7192
7193 fi
7194
7195
7196 eval "$ac_cv_use_miniframe"
7197 if test "$no_cache" != 1; then
7198 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7199 fi
7200
7201 if test "$wxUSE_MINIFRAME" = yes; then
7202 echo "$ac_t""yes" 1>&6
7203 else
7204 echo "$ac_t""no" 1>&6
7205 fi
7206
7207
7208 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7209 echo "configure:7210: checking for --enable-tooltips" >&5
7210 no_cache=0
7211 # Check whether --enable-tooltips or --disable-tooltips was given.
7212 if test "${enable_tooltips+set}" = set; then
7213 enableval="$enable_tooltips"
7214
7215 if test "$enableval" = yes; then
7216 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7217 else
7218 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7219 fi
7220
7221 else
7222
7223 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7224 if test "x$LINE" != x ; then
7225 eval "DEFAULT_$LINE"
7226 else
7227 no_cache=1
7228 fi
7229
7230 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7231
7232 fi
7233
7234
7235 eval "$ac_cv_use_tooltips"
7236 if test "$no_cache" != 1; then
7237 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7238 fi
7239
7240 if test "$wxUSE_TOOLTIPS" = yes; then
7241 echo "$ac_t""yes" 1>&6
7242 else
7243 echo "$ac_t""no" 1>&6
7244 fi
7245
7246
7247 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7248 echo "configure:7249: checking for --enable-splines" >&5
7249 no_cache=0
7250 # Check whether --enable-splines or --disable-splines was given.
7251 if test "${enable_splines+set}" = set; then
7252 enableval="$enable_splines"
7253
7254 if test "$enableval" = yes; then
7255 ac_cv_use_splines='wxUSE_SPLINES=yes'
7256 else
7257 ac_cv_use_splines='wxUSE_SPLINES=no'
7258 fi
7259
7260 else
7261
7262 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7263 if test "x$LINE" != x ; then
7264 eval "DEFAULT_$LINE"
7265 else
7266 no_cache=1
7267 fi
7268
7269 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7270
7271 fi
7272
7273
7274 eval "$ac_cv_use_splines"
7275 if test "$no_cache" != 1; then
7276 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7277 fi
7278
7279 if test "$wxUSE_SPLINES" = yes; then
7280 echo "$ac_t""yes" 1>&6
7281 else
7282 echo "$ac_t""no" 1>&6
7283 fi
7284
7285
7286 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7287 echo "configure:7288: checking for --enable-validators" >&5
7288 no_cache=0
7289 # Check whether --enable-validators or --disable-validators was given.
7290 if test "${enable_validators+set}" = set; then
7291 enableval="$enable_validators"
7292
7293 if test "$enableval" = yes; then
7294 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7295 else
7296 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7297 fi
7298
7299 else
7300
7301 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7302 if test "x$LINE" != x ; then
7303 eval "DEFAULT_$LINE"
7304 else
7305 no_cache=1
7306 fi
7307
7308 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7309
7310 fi
7311
7312
7313 eval "$ac_cv_use_validators"
7314 if test "$no_cache" != 1; then
7315 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7316 fi
7317
7318 if test "$wxUSE_VALIDATORS" = yes; then
7319 echo "$ac_t""yes" 1>&6
7320 else
7321 echo "$ac_t""no" 1>&6
7322 fi
7323
7324
7325 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7326 echo "configure:7327: checking for --enable-busyinfo" >&5
7327 no_cache=0
7328 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7329 if test "${enable_busyinfo+set}" = set; then
7330 enableval="$enable_busyinfo"
7331
7332 if test "$enableval" = yes; then
7333 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7334 else
7335 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7336 fi
7337
7338 else
7339
7340 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7341 if test "x$LINE" != x ; then
7342 eval "DEFAULT_$LINE"
7343 else
7344 no_cache=1
7345 fi
7346
7347 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7348
7349 fi
7350
7351
7352 eval "$ac_cv_use_busyinfo"
7353 if test "$no_cache" != 1; then
7354 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7355 fi
7356
7357 if test "$wxUSE_BUSYINFO" = yes; then
7358 echo "$ac_t""yes" 1>&6
7359 else
7360 echo "$ac_t""no" 1>&6
7361 fi
7362
7363
7364 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7365 echo "configure:7366: checking for --enable-joystick" >&5
7366 no_cache=0
7367 # Check whether --enable-joystick or --disable-joystick was given.
7368 if test "${enable_joystick+set}" = set; then
7369 enableval="$enable_joystick"
7370
7371 if test "$enableval" = yes; then
7372 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7373 else
7374 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7375 fi
7376
7377 else
7378
7379 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7380 if test "x$LINE" != x ; then
7381 eval "DEFAULT_$LINE"
7382 else
7383 no_cache=1
7384 fi
7385
7386 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
7387
7388 fi
7389
7390
7391 eval "$ac_cv_use_joystick"
7392 if test "$no_cache" != 1; then
7393 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7394 fi
7395
7396 if test "$wxUSE_JOYSTICK" = yes; then
7397 echo "$ac_t""yes" 1>&6
7398 else
7399 echo "$ac_t""no" 1>&6
7400 fi
7401
7402
7403 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
7404 echo "configure:7405: checking for --enable-metafile" >&5
7405 no_cache=0
7406 # Check whether --enable-metafile or --disable-metafile was given.
7407 if test "${enable_metafile+set}" = set; then
7408 enableval="$enable_metafile"
7409
7410 if test "$enableval" = yes; then
7411 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7412 else
7413 ac_cv_use_metafile='wxUSE_METAFILE=no'
7414 fi
7415
7416 else
7417
7418 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7419 if test "x$LINE" != x ; then
7420 eval "DEFAULT_$LINE"
7421 else
7422 no_cache=1
7423 fi
7424
7425 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7426
7427 fi
7428
7429
7430 eval "$ac_cv_use_metafile"
7431 if test "$no_cache" != 1; then
7432 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7433 fi
7434
7435 if test "$wxUSE_METAFILE" = yes; then
7436 echo "$ac_t""yes" 1>&6
7437 else
7438 echo "$ac_t""no" 1>&6
7439 fi
7440
7441
7442 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
7443 echo "configure:7444: checking for --enable-dragimage" >&5
7444 no_cache=0
7445 # Check whether --enable-dragimage or --disable-dragimage was given.
7446 if test "${enable_dragimage+set}" = set; then
7447 enableval="$enable_dragimage"
7448
7449 if test "$enableval" = yes; then
7450 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7451 else
7452 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7453 fi
7454
7455 else
7456
7457 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7458 if test "x$LINE" != x ; then
7459 eval "DEFAULT_$LINE"
7460 else
7461 no_cache=1
7462 fi
7463
7464 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7465
7466 fi
7467
7468
7469 eval "$ac_cv_use_dragimage"
7470 if test "$no_cache" != 1; then
7471 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7472 fi
7473
7474 if test "$wxUSE_DRAGIMAGE" = yes; then
7475 echo "$ac_t""yes" 1>&6
7476 else
7477 echo "$ac_t""no" 1>&6
7478 fi
7479
7480
7481
7482
7483 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
7484 echo "configure:7485: checking for --enable-palette" >&5
7485 no_cache=0
7486 # Check whether --enable-palette or --disable-palette was given.
7487 if test "${enable_palette+set}" = set; then
7488 enableval="$enable_palette"
7489
7490 if test "$enableval" = yes; then
7491 ac_cv_use_palette='wxUSE_PALETTE=yes'
7492 else
7493 ac_cv_use_palette='wxUSE_PALETTE=no'
7494 fi
7495
7496 else
7497
7498 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
7499 if test "x$LINE" != x ; then
7500 eval "DEFAULT_$LINE"
7501 else
7502 no_cache=1
7503 fi
7504
7505 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
7506
7507 fi
7508
7509
7510 eval "$ac_cv_use_palette"
7511 if test "$no_cache" != 1; then
7512 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
7513 fi
7514
7515 if test "$wxUSE_PALETTE" = yes; then
7516 echo "$ac_t""yes" 1>&6
7517 else
7518 echo "$ac_t""no" 1>&6
7519 fi
7520
7521
7522 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
7523 echo "configure:7524: checking for --enable-image" >&5
7524 no_cache=0
7525 # Check whether --enable-image or --disable-image was given.
7526 if test "${enable_image+set}" = set; then
7527 enableval="$enable_image"
7528
7529 if test "$enableval" = yes; then
7530 ac_cv_use_image='wxUSE_IMAGE=yes'
7531 else
7532 ac_cv_use_image='wxUSE_IMAGE=no'
7533 fi
7534
7535 else
7536
7537 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7538 if test "x$LINE" != x ; then
7539 eval "DEFAULT_$LINE"
7540 else
7541 no_cache=1
7542 fi
7543
7544 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
7545
7546 fi
7547
7548
7549 eval "$ac_cv_use_image"
7550 if test "$no_cache" != 1; then
7551 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7552 fi
7553
7554 if test "$wxUSE_IMAGE" = yes; then
7555 echo "$ac_t""yes" 1>&6
7556 else
7557 echo "$ac_t""no" 1>&6
7558 fi
7559
7560
7561 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7562 echo "configure:7563: checking for --enable-gif" >&5
7563 no_cache=0
7564 # Check whether --enable-gif or --disable-gif was given.
7565 if test "${enable_gif+set}" = set; then
7566 enableval="$enable_gif"
7567
7568 if test "$enableval" = yes; then
7569 ac_cv_use_gif='wxUSE_GIF=yes'
7570 else
7571 ac_cv_use_gif='wxUSE_GIF=no'
7572 fi
7573
7574 else
7575
7576 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7577 if test "x$LINE" != x ; then
7578 eval "DEFAULT_$LINE"
7579 else
7580 no_cache=1
7581 fi
7582
7583 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
7584
7585 fi
7586
7587
7588 eval "$ac_cv_use_gif"
7589 if test "$no_cache" != 1; then
7590 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7591 fi
7592
7593 if test "$wxUSE_GIF" = yes; then
7594 echo "$ac_t""yes" 1>&6
7595 else
7596 echo "$ac_t""no" 1>&6
7597 fi
7598
7599
7600 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7601 echo "configure:7602: checking for --enable-pcx" >&5
7602 no_cache=0
7603 # Check whether --enable-pcx or --disable-pcx was given.
7604 if test "${enable_pcx+set}" = set; then
7605 enableval="$enable_pcx"
7606
7607 if test "$enableval" = yes; then
7608 ac_cv_use_pcx='wxUSE_PCX=yes'
7609 else
7610 ac_cv_use_pcx='wxUSE_PCX=no'
7611 fi
7612
7613 else
7614
7615 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7616 if test "x$LINE" != x ; then
7617 eval "DEFAULT_$LINE"
7618 else
7619 no_cache=1
7620 fi
7621
7622 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
7623
7624 fi
7625
7626
7627 eval "$ac_cv_use_pcx"
7628 if test "$no_cache" != 1; then
7629 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7630 fi
7631
7632 if test "$wxUSE_PCX" = yes; then
7633 echo "$ac_t""yes" 1>&6
7634 else
7635 echo "$ac_t""no" 1>&6
7636 fi
7637
7638
7639 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7640 echo "configure:7641: checking for --enable-pnm" >&5
7641 no_cache=0
7642 # Check whether --enable-pnm or --disable-pnm was given.
7643 if test "${enable_pnm+set}" = set; then
7644 enableval="$enable_pnm"
7645
7646 if test "$enableval" = yes; then
7647 ac_cv_use_pnm='wxUSE_PNM=yes'
7648 else
7649 ac_cv_use_pnm='wxUSE_PNM=no'
7650 fi
7651
7652 else
7653
7654 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7655 if test "x$LINE" != x ; then
7656 eval "DEFAULT_$LINE"
7657 else
7658 no_cache=1
7659 fi
7660
7661 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
7662
7663 fi
7664
7665
7666 eval "$ac_cv_use_pnm"
7667 if test "$no_cache" != 1; then
7668 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7669 fi
7670
7671 if test "$wxUSE_PNM" = yes; then
7672 echo "$ac_t""yes" 1>&6
7673 else
7674 echo "$ac_t""no" 1>&6
7675 fi
7676
7677
7678 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7679 echo "configure:7680: checking for --enable-pnm" >&5
7680 no_cache=0
7681 # Check whether --enable-pnm or --disable-pnm was given.
7682 if test "${enable_pnm+set}" = set; then
7683 enableval="$enable_pnm"
7684
7685 if test "$enableval" = yes; then
7686 ac_cv_use_pnm='wxUSE_XPM=yes'
7687 else
7688 ac_cv_use_pnm='wxUSE_XPM=no'
7689 fi
7690
7691 else
7692
7693 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7694 if test "x$LINE" != x ; then
7695 eval "DEFAULT_$LINE"
7696 else
7697 no_cache=1
7698 fi
7699
7700 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
7701
7702 fi
7703
7704
7705 eval "$ac_cv_use_pnm"
7706 if test "$no_cache" != 1; then
7707 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7708 fi
7709
7710 if test "$wxUSE_XPM" = yes; then
7711 echo "$ac_t""yes" 1>&6
7712 else
7713 echo "$ac_t""no" 1>&6
7714 fi
7715
7716
7717 fi
7718
7719
7720 echo "saving argument cache $wx_arg_cache_file"
7721 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
7722
7723
7724
7725 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7726 echo "configure:7727: checking for toolkit" >&5
7727
7728 if test "$wxUSE_GUI" = "yes"; then
7729
7730 if test "$USE_BEOS" = 1; then
7731 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7732 fi
7733
7734 if test "$TOOLKIT_GIVEN" = 1; then
7735 for toolkit in `echo $ALL_TOOLKITS`; do
7736 var=wxUSE_$toolkit
7737 eval "value=\$${var}"
7738 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7739 done
7740 else
7741 for toolkit in `echo $ALL_TOOLKITS`; do
7742 if test "$has_toolkit_in_cache" != 1; then
7743 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7744 else
7745 var=DEFAULT_wxUSE_$toolkit
7746 fi
7747 eval "wxUSE_$toolkit=\$${var}"
7748 done
7749 fi
7750
7751 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
7752 + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} \
7753 + ${wxUSE_MGL:-0}`
7754
7755 case "${host}" in
7756 *-pc-os2_emx )
7757 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7758 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7759 LEX_STEM="lexyy"
7760 ;;
7761 *)
7762 PATH_IFS=':'
7763 LEX_STEM="lex.yy"
7764 ;;
7765 esac
7766
7767 case "$NUM_TOOLKITS" in
7768 1)
7769 ;;
7770 0)
7771 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7772 ;;
7773 *)
7774 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7775 esac
7776
7777 for toolkit in `echo $ALL_TOOLKITS`; do
7778 var=wxUSE_$toolkit
7779 eval "value=\$${var}"
7780 if test "x$value" != x; then
7781 cache_var=CACHE_$toolkit
7782 eval "cache=\$${cache_var}"
7783 if test "$cache" = 1; then
7784 echo "$var=$value" >> ${wx_arg_cache_file}
7785 fi
7786 if test "$value" = 1; then
7787 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7788 echo "$ac_t""$toolkit_echo" 1>&6
7789 fi
7790 fi
7791 done
7792 else
7793 PATH_IFS=':'
7794 echo "$ac_t""base ($host_alias hosted) only" 1>&6
7795 fi
7796
7797
7798 cat > confcache <<\EOF
7799 # This file is a shell script that caches the results of configure
7800 # tests run on this system so they can be shared between configure
7801 # scripts and configure runs. It is not useful on other systems.
7802 # If it contains results you don't want to keep, you may remove or edit it.
7803 #
7804 # By default, configure uses ./config.cache as the cache file,
7805 # creating it if it does not exist already. You can give configure
7806 # the --cache-file=FILE option to use a different cache file; that is
7807 # what configure does when it calls configure scripts in
7808 # subdirectories, so they share the cache.
7809 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7810 # config.status only pays attention to the cache file if you give it the
7811 # --recheck option to rerun configure.
7812 #
7813 EOF
7814 # The following way of writing the cache mishandles newlines in values,
7815 # but we know of no workaround that is simple, portable, and efficient.
7816 # So, don't put newlines in cache variables' values.
7817 # Ultrix sh set writes to stderr and can't be redirected directly,
7818 # and sets the high bit in the cache file unless we assign to the vars.
7819 (set) 2>&1 |
7820 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7821 *ac_space=\ *)
7822 # `set' does not quote correctly, so add quotes (double-quote substitution
7823 # turns \\\\ into \\, and sed turns \\ into \).
7824 sed -n \
7825 -e "s/'/'\\\\''/g" \
7826 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7827 ;;
7828 *)
7829 # `set' quotes correctly as required by POSIX, so do not add quotes.
7830 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7831 ;;
7832 esac >> confcache
7833 if cmp -s $cache_file confcache; then
7834 :
7835 else
7836 if test -w $cache_file; then
7837 echo "updating cache $cache_file"
7838 cat confcache > $cache_file
7839 else
7840 echo "not updating unwritable cache $cache_file"
7841 fi
7842 fi
7843 rm -f confcache
7844
7845
7846 if test "$build" != "$host" ; then
7847 if test "$USE_WIN32" = 1 ; then
7848 CC=$host_alias-gcc
7849 CXX=$host_alias-c++
7850 AR=$host_alias-ar
7851 RANLIB=$host_alias-ranlib
7852 DLLTOOL=$host_alias-dlltool
7853 RESCOMP=$host_alias-windres
7854 LD=$host_alias-ld
7855 NM=$host_alias-nm
7856 STRIP=$host_alias-strip
7857 else
7858 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
7859 fi
7860 fi
7861
7862 # Extract the first word of "gcc", so it can be a program name with args.
7863 set dummy gcc; ac_word=$2
7864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7865 echo "configure:7866: checking for $ac_word" >&5
7866 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7867 echo $ac_n "(cached) $ac_c" 1>&6
7868 else
7869 if test -n "$CC"; then
7870 ac_cv_prog_CC="$CC" # Let the user override the test.
7871 else
7872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7873 ac_dummy="$PATH"
7874 for ac_dir in $ac_dummy; do
7875 test -z "$ac_dir" && ac_dir=.
7876 if test -f $ac_dir/$ac_word; then
7877 ac_cv_prog_CC="gcc"
7878 break
7879 fi
7880 done
7881 IFS="$ac_save_ifs"
7882 fi
7883 fi
7884 CC="$ac_cv_prog_CC"
7885 if test -n "$CC"; then
7886 echo "$ac_t""$CC" 1>&6
7887 else
7888 echo "$ac_t""no" 1>&6
7889 fi
7890
7891 if test -z "$CC"; then
7892 # Extract the first word of "cc", so it can be a program name with args.
7893 set dummy cc; ac_word=$2
7894 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7895 echo "configure:7896: checking for $ac_word" >&5
7896 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7897 echo $ac_n "(cached) $ac_c" 1>&6
7898 else
7899 if test -n "$CC"; then
7900 ac_cv_prog_CC="$CC" # Let the user override the test.
7901 else
7902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7903 ac_prog_rejected=no
7904 ac_dummy="$PATH"
7905 for ac_dir in $ac_dummy; do
7906 test -z "$ac_dir" && ac_dir=.
7907 if test -f $ac_dir/$ac_word; then
7908 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7909 ac_prog_rejected=yes
7910 continue
7911 fi
7912 ac_cv_prog_CC="cc"
7913 break
7914 fi
7915 done
7916 IFS="$ac_save_ifs"
7917 if test $ac_prog_rejected = yes; then
7918 # We found a bogon in the path, so make sure we never use it.
7919 set dummy $ac_cv_prog_CC
7920 shift
7921 if test $# -gt 0; then
7922 # We chose a different compiler from the bogus one.
7923 # However, it has the same basename, so the bogon will be chosen
7924 # first if we set CC to just the basename; use the full file name.
7925 shift
7926 set dummy "$ac_dir/$ac_word" "$@"
7927 shift
7928 ac_cv_prog_CC="$@"
7929 fi
7930 fi
7931 fi
7932 fi
7933 CC="$ac_cv_prog_CC"
7934 if test -n "$CC"; then
7935 echo "$ac_t""$CC" 1>&6
7936 else
7937 echo "$ac_t""no" 1>&6
7938 fi
7939
7940 if test -z "$CC"; then
7941 case "`uname -s`" in
7942 *win32* | *WIN32*)
7943 # Extract the first word of "cl", so it can be a program name with args.
7944 set dummy cl; ac_word=$2
7945 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7946 echo "configure:7947: checking for $ac_word" >&5
7947 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7948 echo $ac_n "(cached) $ac_c" 1>&6
7949 else
7950 if test -n "$CC"; then
7951 ac_cv_prog_CC="$CC" # Let the user override the test.
7952 else
7953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7954 ac_dummy="$PATH"
7955 for ac_dir in $ac_dummy; do
7956 test -z "$ac_dir" && ac_dir=.
7957 if test -f $ac_dir/$ac_word; then
7958 ac_cv_prog_CC="cl"
7959 break
7960 fi
7961 done
7962 IFS="$ac_save_ifs"
7963 fi
7964 fi
7965 CC="$ac_cv_prog_CC"
7966 if test -n "$CC"; then
7967 echo "$ac_t""$CC" 1>&6
7968 else
7969 echo "$ac_t""no" 1>&6
7970 fi
7971 ;;
7972 esac
7973 fi
7974 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
7975 fi
7976
7977 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7978 echo "configure:7979: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
7979
7980 ac_ext=c
7981 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7982 ac_cpp='$CPP $CPPFLAGS'
7983 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7984 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7985 cross_compiling=$ac_cv_prog_cc_cross
7986
7987 cat > conftest.$ac_ext << EOF
7988
7989 #line 7990 "configure"
7990 #include "confdefs.h"
7991
7992 main(){return(0);}
7993 EOF
7994 if { (eval echo configure:7995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7995 ac_cv_prog_cc_works=yes
7996 # If we can't run a trivial program, we are probably using a cross compiler.
7997 if (./conftest; exit) 2>/dev/null; then
7998 ac_cv_prog_cc_cross=no
7999 else
8000 ac_cv_prog_cc_cross=yes
8001 fi
8002 else
8003 echo "configure: failed program was:" >&5
8004 cat conftest.$ac_ext >&5
8005 ac_cv_prog_cc_works=no
8006 fi
8007 rm -fr conftest*
8008 ac_ext=c
8009 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8010 ac_cpp='$CPP $CPPFLAGS'
8011 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8012 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8013 cross_compiling=$ac_cv_prog_cc_cross
8014
8015 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8016 if test $ac_cv_prog_cc_works = no; then
8017 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8018 fi
8019 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8020 echo "configure:8021: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8021 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8022 cross_compiling=$ac_cv_prog_cc_cross
8023
8024 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8025 echo "configure:8026: checking whether we are using GNU C" >&5
8026 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8027 echo $ac_n "(cached) $ac_c" 1>&6
8028 else
8029 cat > conftest.c <<EOF
8030 #ifdef __GNUC__
8031 yes;
8032 #endif
8033 EOF
8034 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8035 ac_cv_prog_gcc=yes
8036 else
8037 ac_cv_prog_gcc=no
8038 fi
8039 fi
8040
8041 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8042
8043 if test $ac_cv_prog_gcc = yes; then
8044 GCC=yes
8045 else
8046 GCC=
8047 fi
8048
8049 ac_test_CFLAGS="${CFLAGS+set}"
8050 ac_save_CFLAGS="$CFLAGS"
8051 CFLAGS=
8052 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8053 echo "configure:8054: checking whether ${CC-cc} accepts -g" >&5
8054 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8055 echo $ac_n "(cached) $ac_c" 1>&6
8056 else
8057 echo 'void f(){}' > conftest.c
8058 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8059 ac_cv_prog_cc_g=yes
8060 else
8061 ac_cv_prog_cc_g=no
8062 fi
8063 rm -f conftest*
8064
8065 fi
8066
8067 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8068 if test "$ac_test_CFLAGS" = set; then
8069 CFLAGS="$ac_save_CFLAGS"
8070 elif test $ac_cv_prog_cc_g = yes; then
8071 if test "$GCC" = yes; then
8072 CFLAGS="-g -O2"
8073 else
8074 CFLAGS="-g"
8075 fi
8076 else
8077 if test "$GCC" = yes; then
8078 CFLAGS="-O2"
8079 else
8080 CFLAGS=
8081 fi
8082 fi
8083
8084
8085 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8086
8087 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8088 echo "configure:8089: checking how to run the C preprocessor" >&5
8089 # On Suns, sometimes $CPP names a directory.
8090 if test -n "$CPP" && test -d "$CPP"; then
8091 CPP=
8092 fi
8093 if test -z "$CPP"; then
8094 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8095 echo $ac_n "(cached) $ac_c" 1>&6
8096 else
8097 # This must be in double quotes, not single quotes, because CPP may get
8098 # substituted into the Makefile and "${CC-cc}" will confuse make.
8099 CPP="${CC-cc} -E"
8100 # On the NeXT, cc -E runs the code through the compiler's parser,
8101 # not just through cpp.
8102 cat > conftest.$ac_ext <<EOF
8103 #line 8104 "configure"
8104 #include "confdefs.h"
8105 #include <assert.h>
8106 Syntax Error
8107 EOF
8108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8109 { (eval echo configure:8110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8110 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8111 if test -z "$ac_err"; then
8112 :
8113 else
8114 echo "$ac_err" >&5
8115 echo "configure: failed program was:" >&5
8116 cat conftest.$ac_ext >&5
8117 rm -rf conftest*
8118 CPP="${CC-cc} -E -traditional-cpp"
8119 cat > conftest.$ac_ext <<EOF
8120 #line 8121 "configure"
8121 #include "confdefs.h"
8122 #include <assert.h>
8123 Syntax Error
8124 EOF
8125 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8126 { (eval echo configure:8127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8127 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8128 if test -z "$ac_err"; then
8129 :
8130 else
8131 echo "$ac_err" >&5
8132 echo "configure: failed program was:" >&5
8133 cat conftest.$ac_ext >&5
8134 rm -rf conftest*
8135 CPP="${CC-cc} -nologo -E"
8136 cat > conftest.$ac_ext <<EOF
8137 #line 8138 "configure"
8138 #include "confdefs.h"
8139 #include <assert.h>
8140 Syntax Error
8141 EOF
8142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8143 { (eval echo configure:8144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8144 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8145 if test -z "$ac_err"; then
8146 :
8147 else
8148 echo "$ac_err" >&5
8149 echo "configure: failed program was:" >&5
8150 cat conftest.$ac_ext >&5
8151 rm -rf conftest*
8152 CPP=/lib/cpp
8153 fi
8154 rm -f conftest*
8155 fi
8156 rm -f conftest*
8157 fi
8158 rm -f conftest*
8159 ac_cv_prog_CPP="$CPP"
8160 fi
8161 CPP="$ac_cv_prog_CPP"
8162 else
8163 ac_cv_prog_CPP="$CPP"
8164 fi
8165 echo "$ac_t""$CPP" 1>&6
8166
8167 if test $ac_cv_prog_gcc = yes; then
8168 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8169 echo "configure:8170: checking whether ${CC-cc} needs -traditional" >&5
8170 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8171 echo $ac_n "(cached) $ac_c" 1>&6
8172 else
8173 ac_pattern="Autoconf.*'x'"
8174 cat > conftest.$ac_ext <<EOF
8175 #line 8176 "configure"
8176 #include "confdefs.h"
8177 #include <sgtty.h>
8178 Autoconf TIOCGETP
8179 EOF
8180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8181 egrep "$ac_pattern" >/dev/null 2>&1; then
8182 rm -rf conftest*
8183 ac_cv_prog_gcc_traditional=yes
8184 else
8185 rm -rf conftest*
8186 ac_cv_prog_gcc_traditional=no
8187 fi
8188 rm -f conftest*
8189
8190
8191 if test $ac_cv_prog_gcc_traditional = no; then
8192 cat > conftest.$ac_ext <<EOF
8193 #line 8194 "configure"
8194 #include "confdefs.h"
8195 #include <termio.h>
8196 Autoconf TCGETA
8197 EOF
8198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8199 egrep "$ac_pattern" >/dev/null 2>&1; then
8200 rm -rf conftest*
8201 ac_cv_prog_gcc_traditional=yes
8202 fi
8203 rm -f conftest*
8204
8205 fi
8206 fi
8207
8208 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8209 if test $ac_cv_prog_gcc_traditional = yes; then
8210 CC="$CC -traditional"
8211 fi
8212 fi
8213
8214
8215
8216 ac_ext=C
8217 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8218 ac_cpp='$CXXCPP $CPPFLAGS'
8219 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8220 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8221 cross_compiling=$ac_cv_prog_cxx_cross
8222
8223
8224 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8225 do
8226 # Extract the first word of "$ac_prog", so it can be a program name with args.
8227 set dummy $ac_prog; ac_word=$2
8228 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8229 echo "configure:8230: checking for $ac_word" >&5
8230 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8231 echo $ac_n "(cached) $ac_c" 1>&6
8232 else
8233 if test -n "$CXX"; then
8234 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8235 else
8236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8237 ac_dummy="$PATH"
8238 for ac_dir in $ac_dummy; do
8239 test -z "$ac_dir" && ac_dir=.
8240 if test -f $ac_dir/$ac_word; then
8241 ac_cv_prog_CXX="$ac_prog"
8242 break
8243 fi
8244 done
8245 IFS="$ac_save_ifs"
8246 fi
8247 fi
8248 CXX="$ac_cv_prog_CXX"
8249 if test -n "$CXX"; then
8250 echo "$ac_t""$CXX" 1>&6
8251 else
8252 echo "$ac_t""no" 1>&6
8253 fi
8254
8255 test -n "$CXX" && break
8256 done
8257 test -n "$CXX" || CXX="gcc"
8258
8259
8260 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8261 echo "configure:8262: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8262
8263 ac_ext=C
8264 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8265 ac_cpp='$CXXCPP $CPPFLAGS'
8266 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8267 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8268 cross_compiling=$ac_cv_prog_cxx_cross
8269
8270 cat > conftest.$ac_ext << EOF
8271
8272 #line 8273 "configure"
8273 #include "confdefs.h"
8274
8275 int main(){return(0);}
8276 EOF
8277 if { (eval echo configure:8278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8278 ac_cv_prog_cxx_works=yes
8279 # If we can't run a trivial program, we are probably using a cross compiler.
8280 if (./conftest; exit) 2>/dev/null; then
8281 ac_cv_prog_cxx_cross=no
8282 else
8283 ac_cv_prog_cxx_cross=yes
8284 fi
8285 else
8286 echo "configure: failed program was:" >&5
8287 cat conftest.$ac_ext >&5
8288 ac_cv_prog_cxx_works=no
8289 fi
8290 rm -fr conftest*
8291 ac_ext=C
8292 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8293 ac_cpp='$CXXCPP $CPPFLAGS'
8294 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8295 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8296 cross_compiling=$ac_cv_prog_cxx_cross
8297
8298 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8299 if test $ac_cv_prog_cxx_works = no; then
8300 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8301 fi
8302 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8303 echo "configure:8304: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
8304 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8305 cross_compiling=$ac_cv_prog_cxx_cross
8306
8307 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
8308 echo "configure:8309: checking whether we are using GNU C++" >&5
8309 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8310 echo $ac_n "(cached) $ac_c" 1>&6
8311 else
8312 cat > conftest.C <<EOF
8313 #ifdef __GNUC__
8314 yes;
8315 #endif
8316 EOF
8317 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8318 ac_cv_prog_gxx=yes
8319 else
8320 ac_cv_prog_gxx=no
8321 fi
8322 fi
8323
8324 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
8325
8326 if test $ac_cv_prog_gxx = yes; then
8327 GXX=yes
8328 else
8329 GXX=
8330 fi
8331
8332 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8333 ac_save_CXXFLAGS="$CXXFLAGS"
8334 CXXFLAGS=
8335 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
8336 echo "configure:8337: checking whether ${CXX-g++} accepts -g" >&5
8337 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8338 echo $ac_n "(cached) $ac_c" 1>&6
8339 else
8340 echo 'void f(){}' > conftest.cc
8341 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
8342 ac_cv_prog_cxx_g=yes
8343 else
8344 ac_cv_prog_cxx_g=no
8345 fi
8346 rm -f conftest*
8347
8348 fi
8349
8350 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
8351 if test "$ac_test_CXXFLAGS" = set; then
8352 CXXFLAGS="$ac_save_CXXFLAGS"
8353 elif test $ac_cv_prog_cxx_g = yes; then
8354 if test "$GXX" = yes; then
8355 CXXFLAGS="-g -O2"
8356 else
8357 CXXFLAGS="-g"
8358 fi
8359 else
8360 if test "$GXX" = yes; then
8361 CXXFLAGS="-O2"
8362 else
8363 CXXFLAGS=
8364 fi
8365 fi
8366
8367
8368 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8369
8370 ac_ext=c
8371 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8372 ac_cpp='$CPP $CPPFLAGS'
8373 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8374 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8375 cross_compiling=$ac_cv_prog_cc_cross
8376
8377
8378 # Extract the first word of "ranlib", so it can be a program name with args.
8379 set dummy ranlib; ac_word=$2
8380 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8381 echo "configure:8382: checking for $ac_word" >&5
8382 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8383 echo $ac_n "(cached) $ac_c" 1>&6
8384 else
8385 if test -n "$RANLIB"; then
8386 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8387 else
8388 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8389 ac_dummy="$PATH"
8390 for ac_dir in $ac_dummy; do
8391 test -z "$ac_dir" && ac_dir=.
8392 if test -f $ac_dir/$ac_word; then
8393 ac_cv_prog_RANLIB="ranlib"
8394 break
8395 fi
8396 done
8397 IFS="$ac_save_ifs"
8398 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8399 fi
8400 fi
8401 RANLIB="$ac_cv_prog_RANLIB"
8402 if test -n "$RANLIB"; then
8403 echo "$ac_t""$RANLIB" 1>&6
8404 else
8405 echo "$ac_t""no" 1>&6
8406 fi
8407
8408
8409 # Extract the first word of "ar", so it can be a program name with args.
8410 set dummy ar; ac_word=$2
8411 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8412 echo "configure:8413: checking for $ac_word" >&5
8413 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8414 echo $ac_n "(cached) $ac_c" 1>&6
8415 else
8416 if test -n "$AR"; then
8417 ac_cv_prog_AR="$AR" # Let the user override the test.
8418 else
8419 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8420 ac_dummy="$PATH"
8421 for ac_dir in $ac_dummy; do
8422 test -z "$ac_dir" && ac_dir=.
8423 if test -f $ac_dir/$ac_word; then
8424 ac_cv_prog_AR="ar"
8425 break
8426 fi
8427 done
8428 IFS="$ac_save_ifs"
8429 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8430 fi
8431 fi
8432 AR="$ac_cv_prog_AR"
8433 if test -n "$AR"; then
8434 echo "$ac_t""$AR" 1>&6
8435 else
8436 echo "$ac_t""no" 1>&6
8437 fi
8438
8439
8440 # Find a good install program. We prefer a C program (faster),
8441 # so one script is as good as another. But avoid the broken or
8442 # incompatible versions:
8443 # SysV /etc/install, /usr/sbin/install
8444 # SunOS /usr/etc/install
8445 # IRIX /sbin/install
8446 # AIX /bin/install
8447 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8448 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8449 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8450 # ./install, which can be erroneously created by make from ./install.sh.
8451 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8452 echo "configure:8453: checking for a BSD compatible install" >&5
8453 if test -z "$INSTALL"; then
8454 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8455 echo $ac_n "(cached) $ac_c" 1>&6
8456 else
8457 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8458 for ac_dir in $PATH; do
8459 # Account for people who put trailing slashes in PATH elements.
8460 case "$ac_dir/" in
8461 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8462 *)
8463 # OSF1 and SCO ODT 3.0 have their own names for install.
8464 # Don't use installbsd from OSF since it installs stuff as root
8465 # by default.
8466 for ac_prog in ginstall scoinst install; do
8467 if test -f $ac_dir/$ac_prog; then
8468 if test $ac_prog = install &&
8469 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8470 # AIX install. It has an incompatible calling convention.
8471 :
8472 else
8473 ac_cv_path_install="$ac_dir/$ac_prog -c"
8474 break 2
8475 fi
8476 fi
8477 done
8478 ;;
8479 esac
8480 done
8481 IFS="$ac_save_IFS"
8482
8483 fi
8484 if test "${ac_cv_path_install+set}" = set; then
8485 INSTALL="$ac_cv_path_install"
8486 else
8487 # As a last resort, use the slow shell script. We don't cache a
8488 # path for INSTALL within a source directory, because that will
8489 # break other packages using the cache if that directory is
8490 # removed, or if the path is relative.
8491 INSTALL="$ac_install_sh"
8492 fi
8493 fi
8494 echo "$ac_t""$INSTALL" 1>&6
8495
8496 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8497 # It thinks the first close brace ends the variable substitution.
8498 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8499
8500 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8501
8502 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8503
8504
8505 # Extract the first word of "strip", so it can be a program name with args.
8506 set dummy strip; ac_word=$2
8507 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8508 echo "configure:8509: checking for $ac_word" >&5
8509 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8510 echo $ac_n "(cached) $ac_c" 1>&6
8511 else
8512 if test -n "$STRIP"; then
8513 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8514 else
8515 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8516 ac_dummy="$PATH"
8517 for ac_dir in $ac_dummy; do
8518 test -z "$ac_dir" && ac_dir=.
8519 if test -f $ac_dir/$ac_word; then
8520 ac_cv_prog_STRIP="strip"
8521 break
8522 fi
8523 done
8524 IFS="$ac_save_ifs"
8525 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8526 fi
8527 fi
8528 STRIP="$ac_cv_prog_STRIP"
8529 if test -n "$STRIP"; then
8530 echo "$ac_t""$STRIP" 1>&6
8531 else
8532 echo "$ac_t""no" 1>&6
8533 fi
8534
8535
8536 echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8537 echo "configure:8538: checking make for VPATH support" >&5
8538 cat - << EOF > confMake
8539 check : file
8540 cp \$? \$@
8541 cp \$? final_file
8542 EOF
8543
8544 if test ! -d sub ; then
8545 mkdir sub
8546 fi
8547 echo dummy > sub/file
8548 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
8549 RESULT=$?
8550 rm -f sub/file check final_file confMake
8551 rmdir sub
8552 if test "$RESULT" = 0; then
8553 echo "$ac_t""yes" 1>&6
8554 else
8555 echo "$ac_t""no" 1>&6
8556 { echo "configure: error:
8557 You need a make-utility that is able to use the variable
8558 VPATH correctly.
8559 If your version of make does not support VPATH correctly,
8560 please install GNU-make (possibly as gmake), and start
8561 configure with the following command:
8562 export MAKE=gmake; ./configure for sh-type shells
8563 setenv MAKE gmake; ./configure for csh-type shells
8564 Also please do remember to use gmake in this case every time
8565 you are trying to compile.
8566 " 1>&2; exit 1; }
8567 fi
8568
8569 for ac_prog in 'bison -y' byacc
8570 do
8571 # Extract the first word of "$ac_prog", so it can be a program name with args.
8572 set dummy $ac_prog; ac_word=$2
8573 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8574 echo "configure:8575: checking for $ac_word" >&5
8575 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8576 echo $ac_n "(cached) $ac_c" 1>&6
8577 else
8578 if test -n "$YACC"; then
8579 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8580 else
8581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8582 ac_dummy="$PATH"
8583 for ac_dir in $ac_dummy; do
8584 test -z "$ac_dir" && ac_dir=.
8585 if test -f $ac_dir/$ac_word; then
8586 ac_cv_prog_YACC="$ac_prog"
8587 break
8588 fi
8589 done
8590 IFS="$ac_save_ifs"
8591 fi
8592 fi
8593 YACC="$ac_cv_prog_YACC"
8594 if test -n "$YACC"; then
8595 echo "$ac_t""$YACC" 1>&6
8596 else
8597 echo "$ac_t""no" 1>&6
8598 fi
8599
8600 test -n "$YACC" && break
8601 done
8602 test -n "$YACC" || YACC="yacc"
8603
8604
8605 # Extract the first word of "flex", so it can be a program name with args.
8606 set dummy flex; ac_word=$2
8607 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8608 echo "configure:8609: checking for $ac_word" >&5
8609 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8610 echo $ac_n "(cached) $ac_c" 1>&6
8611 else
8612 if test -n "$LEX"; then
8613 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8614 else
8615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8616 ac_dummy="$PATH"
8617 for ac_dir in $ac_dummy; do
8618 test -z "$ac_dir" && ac_dir=.
8619 if test -f $ac_dir/$ac_word; then
8620 ac_cv_prog_LEX="flex"
8621 break
8622 fi
8623 done
8624 IFS="$ac_save_ifs"
8625 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
8626 fi
8627 fi
8628 LEX="$ac_cv_prog_LEX"
8629 if test -n "$LEX"; then
8630 echo "$ac_t""$LEX" 1>&6
8631 else
8632 echo "$ac_t""no" 1>&6
8633 fi
8634
8635 if test -z "$LEXLIB"
8636 then
8637 case "$LEX" in
8638 flex*) ac_lib=fl ;;
8639 *) ac_lib=l ;;
8640 esac
8641 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8642 echo "configure:8643: checking for yywrap in -l$ac_lib" >&5
8643 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8644 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8645 echo $ac_n "(cached) $ac_c" 1>&6
8646 else
8647 ac_save_LIBS="$LIBS"
8648 LIBS="-l$ac_lib $LIBS"
8649 cat > conftest.$ac_ext <<EOF
8650 #line 8651 "configure"
8651 #include "confdefs.h"
8652 /* Override any gcc2 internal prototype to avoid an error. */
8653 /* We use char because int might match the return type of a gcc2
8654 builtin and then its argument prototype would still apply. */
8655 char yywrap();
8656
8657 int main() {
8658 yywrap()
8659 ; return 0; }
8660 EOF
8661 if { (eval echo configure:8662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8662 rm -rf conftest*
8663 eval "ac_cv_lib_$ac_lib_var=yes"
8664 else
8665 echo "configure: failed program was:" >&5
8666 cat conftest.$ac_ext >&5
8667 rm -rf conftest*
8668 eval "ac_cv_lib_$ac_lib_var=no"
8669 fi
8670 rm -f conftest*
8671 LIBS="$ac_save_LIBS"
8672
8673 fi
8674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8675 echo "$ac_t""yes" 1>&6
8676 LEXLIB="-l$ac_lib"
8677 else
8678 echo "$ac_t""no" 1>&6
8679 fi
8680
8681 fi
8682
8683
8684 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8685 echo "configure:8686: checking whether ln -s works" >&5
8686 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8687 echo $ac_n "(cached) $ac_c" 1>&6
8688 else
8689 rm -f conftestdata
8690 if ln -s X conftestdata 2>/dev/null
8691 then
8692 rm -f conftestdata
8693 ac_cv_prog_LN_S="ln -s"
8694 else
8695 ac_cv_prog_LN_S=ln
8696 fi
8697 fi
8698 LN_S="$ac_cv_prog_LN_S"
8699 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8700 echo "$ac_t""yes" 1>&6
8701 else
8702 echo "$ac_t""no" 1>&6
8703 fi
8704
8705
8706
8707 SEARCH_INCLUDE="\
8708 /usr/local/include \
8709 \
8710 /usr/Motif-1.2/include \
8711 /usr/Motif-2.1/include \
8712 \
8713 /usr/include/Motif1.2 \
8714 /opt/xpm/include/X11 \
8715 /opt/GBxpm/include/ \
8716 /opt/GBxpm/X11/include/ \
8717 \
8718 /usr/Motif1.2/include \
8719 /usr/dt/include \
8720 /usr/openwin/include \
8721 \
8722 /usr/include/Xm \
8723 \
8724 /usr/X11R6/include \
8725 /usr/X11R6.4/include \
8726 /usr/X11R5/include \
8727 /usr/X11R4/include \
8728 \
8729 /usr/include/X11R6 \
8730 /usr/include/X11R5 \
8731 /usr/include/X11R4 \
8732 \
8733 /usr/local/X11R6/include \
8734 /usr/local/X11R5/include \
8735 /usr/local/X11R4/include \
8736 \
8737 /usr/local/include/X11R6 \
8738 /usr/local/include/X11R5 \
8739 /usr/local/include/X11R4 \
8740 \
8741 /usr/X11/include \
8742 /usr/include/X11 \
8743 /usr/local/X11/include \
8744 /usr/local/include/X11 \
8745 \
8746 /usr/X386/include \
8747 /usr/x386/include \
8748 /usr/XFree86/include/X11 \
8749 \
8750 X:/XFree86/include \
8751 X:/XFree86/include/X11 \
8752 \
8753 /usr/include/gtk \
8754 /usr/local/include/gtk \
8755 /usr/include/glib \
8756 /usr/local/include/glib \
8757 \
8758 /usr/include/qt \
8759 /usr/local/include/qt \
8760 \
8761 /usr/include/windows \
8762 /usr/include/wine \
8763 /usr/local/include/wine \
8764 \
8765 /usr/unsupported/include \
8766 /usr/athena/include \
8767 /usr/local/x11r5/include \
8768 /usr/lpp/Xamples/include \
8769 \
8770 /usr/openwin/share/include \
8771 \
8772 /usr/include"
8773
8774 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8775
8776
8777 cat > confcache <<\EOF
8778 # This file is a shell script that caches the results of configure
8779 # tests run on this system so they can be shared between configure
8780 # scripts and configure runs. It is not useful on other systems.
8781 # If it contains results you don't want to keep, you may remove or edit it.
8782 #
8783 # By default, configure uses ./config.cache as the cache file,
8784 # creating it if it does not exist already. You can give configure
8785 # the --cache-file=FILE option to use a different cache file; that is
8786 # what configure does when it calls configure scripts in
8787 # subdirectories, so they share the cache.
8788 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8789 # config.status only pays attention to the cache file if you give it the
8790 # --recheck option to rerun configure.
8791 #
8792 EOF
8793 # The following way of writing the cache mishandles newlines in values,
8794 # but we know of no workaround that is simple, portable, and efficient.
8795 # So, don't put newlines in cache variables' values.
8796 # Ultrix sh set writes to stderr and can't be redirected directly,
8797 # and sets the high bit in the cache file unless we assign to the vars.
8798 (set) 2>&1 |
8799 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8800 *ac_space=\ *)
8801 # `set' does not quote correctly, so add quotes (double-quote substitution
8802 # turns \\\\ into \\, and sed turns \\ into \).
8803 sed -n \
8804 -e "s/'/'\\\\''/g" \
8805 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8806 ;;
8807 *)
8808 # `set' quotes correctly as required by POSIX, so do not add quotes.
8809 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8810 ;;
8811 esac >> confcache
8812 if cmp -s $cache_file confcache; then
8813 :
8814 else
8815 if test -w $cache_file; then
8816 echo "updating cache $cache_file"
8817 cat confcache > $cache_file
8818 else
8819 echo "not updating unwritable cache $cache_file"
8820 fi
8821 fi
8822 rm -f confcache
8823
8824
8825
8826 REGEX_INCLUDE=
8827 if test "$wxUSE_REGEX" != "no"; then
8828 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
8829 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
8830 echo "configure:8831: checking for regex.h" >&5
8831 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8832 echo $ac_n "(cached) $ac_c" 1>&6
8833 else
8834 cat > conftest.$ac_ext <<EOF
8835 #line 8836 "configure"
8836 #include "confdefs.h"
8837 #include <regex.h>
8838 EOF
8839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8840 { (eval echo configure:8841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8841 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8842 if test -z "$ac_err"; then
8843 rm -rf conftest*
8844 eval "ac_cv_header_$ac_safe=yes"
8845 else
8846 echo "$ac_err" >&5
8847 echo "configure: failed program was:" >&5
8848 cat conftest.$ac_ext >&5
8849 rm -rf conftest*
8850 eval "ac_cv_header_$ac_safe=no"
8851 fi
8852 rm -f conftest*
8853 fi
8854 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8855 echo "$ac_t""yes" 1>&6
8856 for ac_func in regcomp
8857 do
8858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8859 echo "configure:8860: checking for $ac_func" >&5
8860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8861 echo $ac_n "(cached) $ac_c" 1>&6
8862 else
8863 cat > conftest.$ac_ext <<EOF
8864 #line 8865 "configure"
8865 #include "confdefs.h"
8866 /* System header to define __stub macros and hopefully few prototypes,
8867 which can conflict with char $ac_func(); below. */
8868 #include <assert.h>
8869 /* Override any gcc2 internal prototype to avoid an error. */
8870 /* We use char because int might match the return type of a gcc2
8871 builtin and then its argument prototype would still apply. */
8872 char $ac_func();
8873
8874 int main() {
8875
8876 /* The GNU C library defines this for functions which it implements
8877 to always fail with ENOSYS. Some functions are actually named
8878 something starting with __ and the normal name is an alias. */
8879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8880 choke me
8881 #else
8882 $ac_func();
8883 #endif
8884
8885 ; return 0; }
8886 EOF
8887 if { (eval echo configure:8888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8888 rm -rf conftest*
8889 eval "ac_cv_func_$ac_func=yes"
8890 else
8891 echo "configure: failed program was:" >&5
8892 cat conftest.$ac_ext >&5
8893 rm -rf conftest*
8894 eval "ac_cv_func_$ac_func=no"
8895 fi
8896 rm -f conftest*
8897 fi
8898
8899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8900 echo "$ac_t""yes" 1>&6
8901 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8902 cat >> confdefs.h <<EOF
8903 #define $ac_tr_func 1
8904 EOF
8905
8906 else
8907 echo "$ac_t""no" 1>&6
8908 fi
8909 done
8910
8911 else
8912 echo "$ac_t""no" 1>&6
8913 fi
8914
8915
8916 if test "x$ac_cv_func_regcomp" != "xyes"; then
8917 if test "$wxUSE_REGEX" = "sys"; then
8918 { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; }
8919 fi
8920
8921 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
8922 fi
8923
8924 cat >> confdefs.h <<\EOF
8925 #define wxUSE_REGEX 1
8926 EOF
8927
8928 fi
8929
8930
8931 AFMINSTALL=
8932
8933 TOOLKIT=
8934 TOOLKIT_INCLUDE=
8935 WIDGET_SET=
8936
8937 if test "$USE_WIN32" = 1 ; then
8938 for ac_hdr in w32api.h
8939 do
8940 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8941 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8942 echo "configure:8943: checking for $ac_hdr" >&5
8943 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8944 echo $ac_n "(cached) $ac_c" 1>&6
8945 else
8946 cat > conftest.$ac_ext <<EOF
8947 #line 8948 "configure"
8948 #include "confdefs.h"
8949 #include <$ac_hdr>
8950 EOF
8951 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8952 { (eval echo configure:8953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8953 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8954 if test -z "$ac_err"; then
8955 rm -rf conftest*
8956 eval "ac_cv_header_$ac_safe=yes"
8957 else
8958 echo "$ac_err" >&5
8959 echo "configure: failed program was:" >&5
8960 cat conftest.$ac_ext >&5
8961 rm -rf conftest*
8962 eval "ac_cv_header_$ac_safe=no"
8963 fi
8964 rm -f conftest*
8965 fi
8966 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8967 echo "$ac_t""yes" 1>&6
8968 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8969 cat >> confdefs.h <<EOF
8970 #define $ac_tr_hdr 1
8971 EOF
8972
8973 else
8974 echo "$ac_t""no" 1>&6
8975 fi
8976 done
8977
8978 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
8979 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
8980 echo "configure:8981: checking for windows.h" >&5
8981 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8982 echo $ac_n "(cached) $ac_c" 1>&6
8983 else
8984 cat > conftest.$ac_ext <<EOF
8985 #line 8986 "configure"
8986 #include "confdefs.h"
8987 #include <windows.h>
8988 EOF
8989 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8990 { (eval echo configure:8991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8991 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8992 if test -z "$ac_err"; then
8993 rm -rf conftest*
8994 eval "ac_cv_header_$ac_safe=yes"
8995 else
8996 echo "$ac_err" >&5
8997 echo "configure: failed program was:" >&5
8998 cat conftest.$ac_ext >&5
8999 rm -rf conftest*
9000 eval "ac_cv_header_$ac_safe=no"
9001 fi
9002 rm -f conftest*
9003 fi
9004 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9005 echo "$ac_t""yes" 1>&6
9006 :
9007 else
9008 echo "$ac_t""no" 1>&6
9009
9010 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9011
9012 fi
9013
9014
9015 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
9016 echo "configure:9017: checking if w32api has good enough MSIE support" >&5
9017 if eval "test \"`echo '$''{'wx_cv_w32api_win_ie'+set}'`\" = set"; then
9018 echo $ac_n "(cached) $ac_c" 1>&6
9019 else
9020
9021 cat > conftest.$ac_ext <<EOF
9022 #line 9023 "configure"
9023 #include "confdefs.h"
9024 #include <w32api.h>
9025 int main() {
9026
9027 #define wxCHECK_W32API_VERSION( major, minor ) \
9028 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
9029 && ( ( __W32API_MAJOR_VERSION > (major) ) \
9030 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
9031
9032 #if !wxCHECK_W32API_VERSION(1,1)
9033 #error You need w32api 1.1 or newer
9034 #endif
9035
9036 ; return 0; }
9037 EOF
9038 if { (eval echo configure:9039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9039 rm -rf conftest*
9040
9041 wx_cv_w32api_win_ie=yes
9042 CPPFLAGS="$CPPFLAGS -D_WIN_IE=0x400"
9043
9044 else
9045 echo "configure: failed program was:" >&5
9046 cat conftest.$ac_ext >&5
9047 rm -rf conftest*
9048
9049 wx_cv_w32api_win_ie=no
9050
9051 fi
9052 rm -f conftest*
9053
9054 fi
9055
9056 echo "$ac_t""$wx_cv_w32api_win_ie" 1>&6
9057
9058 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
9059
9060 if test "$wxUSE_CYGWIN" = 1; then
9061 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
9062 fi
9063
9064 if test "$wxUSE_ODBC" = "yes" ; then
9065 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
9066 fi
9067
9068 if test "$wxUSE_MINGW" = 1; then
9069 LDFLAGS="$LDFLAGS -mwindows"
9070 fi
9071
9072 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
9073 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
9074 fi
9075
9076 if test "$wxUSE_GUI" = "yes"; then
9077 USE_GUI=1
9078
9079 GUI_TK_LIBRARY=
9080
9081 WXGTK12=
9082 WXGTK127=
9083 WXGTK20=
9084
9085 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
9086 TOOLKIT=MSW
9087 GUIDIST=MSW_DIST
9088 fi
9089
9090 if test "$wxUSE_GTK" = 1; then
9091 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
9092 echo "configure:9093: checking for GTK+ version" >&5
9093
9094 gtk_version_cached=1
9095 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9096 echo $ac_n "(cached) $ac_c" 1>&6
9097 else
9098
9099 gtk_version_cached=0
9100 echo "$ac_t""""" 1>&6
9101
9102 wx_cv_lib_gtk=
9103 if test "x$wxUSE_GTK2" = "xyes"; then
9104 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
9105 if test "${with_gtk_prefix+set}" = set; then
9106 withval="$with_gtk_prefix"
9107 gtk_config_prefix="$withval"
9108 else
9109 gtk_config_prefix=""
9110 fi
9111
9112 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9113 if test "${with_gtk_exec_prefix+set}" = set; then
9114 withval="$with_gtk_exec_prefix"
9115 gtk_config_exec_prefix="$withval"
9116 else
9117 gtk_config_exec_prefix=""
9118 fi
9119
9120 # Check whether --enable-gtktest or --disable-gtktest was given.
9121 if test "${enable_gtktest+set}" = set; then
9122 enableval="$enable_gtktest"
9123 :
9124 else
9125 enable_gtktest=yes
9126 fi
9127
9128
9129 for module in .
9130 do
9131 case "$module" in
9132 gthread)
9133 gtk_config_args="$gtk_config_args gthread"
9134 ;;
9135 esac
9136 done
9137
9138 if test x$gtk_config_exec_prefix != x ; then
9139 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9140 if test x${GTK_CONFIG_2_0+set} != xset ; then
9141 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9142 fi
9143 fi
9144 if test x$gtk_config_prefix != x ; then
9145 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9146 if test x${GTK_CONFIG_2_0+set} != xset ; then
9147 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9148 fi
9149 fi
9150
9151 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9152 set dummy gtk-config-2.0; ac_word=$2
9153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9154 echo "configure:9155: checking for $ac_word" >&5
9155 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9156 echo $ac_n "(cached) $ac_c" 1>&6
9157 else
9158 case "$GTK_CONFIG_2_0" in
9159 /*)
9160 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9161 ;;
9162 ?:/*)
9163 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9164 ;;
9165 *)
9166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9167 ac_dummy="$PATH"
9168 for ac_dir in $ac_dummy; do
9169 test -z "$ac_dir" && ac_dir=.
9170 if test -f $ac_dir/$ac_word; then
9171 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9172 break
9173 fi
9174 done
9175 IFS="$ac_save_ifs"
9176 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9177 ;;
9178 esac
9179 fi
9180 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
9181 if test -n "$GTK_CONFIG_2_0"; then
9182 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
9183 else
9184 echo "$ac_t""no" 1>&6
9185 fi
9186
9187 min_gtk_version=1.3.1
9188 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9189 echo "configure:9190: checking for GTK - version >= $min_gtk_version" >&5
9190 no_gtk=""
9191 if test "$GTK_CONFIG_2_0" = "no" ; then
9192 no_gtk=yes
9193 else
9194 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9195 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9196 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9197 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9198 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9199 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9200 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9201 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9202 if test "x$enable_gtktest" = "xyes" ; then
9203 ac_save_CFLAGS="$CFLAGS"
9204 ac_save_LIBS="$LIBS"
9205 CFLAGS="$CFLAGS $GTK_CFLAGS"
9206 LIBS="$GTK_LIBS $LIBS"
9207 rm -f conf.gtktest
9208 if test "$cross_compiling" = yes; then
9209 echo $ac_n "cross compiling; assumed OK... $ac_c"
9210 else
9211 cat > conftest.$ac_ext <<EOF
9212 #line 9213 "configure"
9213 #include "confdefs.h"
9214
9215 #include <gtk/gtk.h>
9216 #include <stdio.h>
9217 #include <stdlib.h>
9218
9219 int
9220 main ()
9221 {
9222 int major, minor, micro;
9223 char *tmp_version;
9224
9225 system ("touch conf.gtktest");
9226
9227 /* HP/UX 9 (%@#!) writes to sscanf strings */
9228 tmp_version = g_strdup("$min_gtk_version");
9229 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9230 printf("%s, bad version string\n", "$min_gtk_version");
9231 exit(1);
9232 }
9233
9234 if ((gtk_major_version != $gtk_config_major_version) ||
9235 (gtk_minor_version != $gtk_config_minor_version) ||
9236 (gtk_micro_version != $gtk_config_micro_version))
9237 {
9238 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
9239 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9240 gtk_major_version, gtk_minor_version, gtk_micro_version);
9241 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9242 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9243 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9244 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9245 printf("*** required on your system.\n");
9246 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9247 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9248 printf("*** before re-running configure\n");
9249 }
9250 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9251 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
9252 (gtk_minor_version != GTK_MINOR_VERSION) ||
9253 (gtk_micro_version != GTK_MICRO_VERSION))
9254 {
9255 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
9256 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
9257 printf("*** library (version %d.%d.%d)\n",
9258 gtk_major_version, gtk_minor_version, gtk_micro_version);
9259 }
9260 #endif /* defined (GTK_MAJOR_VERSION) ... */
9261 else
9262 {
9263 if ((gtk_major_version > major) ||
9264 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9265 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9266 {
9267 return 0;
9268 }
9269 else
9270 {
9271 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9272 gtk_major_version, gtk_minor_version, gtk_micro_version);
9273 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
9274 major, minor, micro);
9275 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9276 printf("***\n");
9277 printf("*** If you have already installed a sufficiently new version, this error\n");
9278 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9279 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9280 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9281 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9282 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9283 printf("*** so that the correct libraries are found at run-time))\n");
9284 }
9285 }
9286 return 1;
9287 }
9288
9289 EOF
9290 if { (eval echo configure:9291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9291 then
9292 :
9293 else
9294 echo "configure: failed program was:" >&5
9295 cat conftest.$ac_ext >&5
9296 rm -fr conftest*
9297 no_gtk=yes
9298 fi
9299 rm -fr conftest*
9300 fi
9301
9302 CFLAGS="$ac_save_CFLAGS"
9303 LIBS="$ac_save_LIBS"
9304 fi
9305 fi
9306 if test "x$no_gtk" = x ; then
9307 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
9308 wx_cv_lib_gtk=2.0
9309 else
9310 echo "$ac_t""no" 1>&6
9311 if test "$GTK_CONFIG_2_0" = "no" ; then
9312 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9313 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9314 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9315 echo "*** full path to gtk-config-2.0."
9316 else
9317 if test -f conf.gtktest ; then
9318 :
9319 else
9320 echo "*** Could not run GTK test program, checking why..."
9321 CFLAGS="$CFLAGS $GTK_CFLAGS"
9322 LIBS="$LIBS $GTK_LIBS"
9323 cat > conftest.$ac_ext <<EOF
9324 #line 9325 "configure"
9325 #include "confdefs.h"
9326
9327 #include <gtk/gtk.h>
9328 #include <stdio.h>
9329
9330 int main() {
9331 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9332 ; return 0; }
9333 EOF
9334 if { (eval echo configure:9335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9335 rm -rf conftest*
9336 echo "*** The test program compiled, but did not run. This usually means"
9337 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9338 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9339 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9340 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9341 echo "*** is required on your system"
9342 echo "***"
9343 echo "*** If you have an old version installed, it is best to remove it, although"
9344 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9345 echo "***"
9346 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9347 echo "*** came with the system with the command"
9348 echo "***"
9349 echo "*** rpm --erase --nodeps gtk gtk-devel"
9350 else
9351 echo "configure: failed program was:" >&5
9352 cat conftest.$ac_ext >&5
9353 rm -rf conftest*
9354 echo "*** The test program failed to compile or link. See the file config.log for the"
9355 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9356 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
9357 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
9358 fi
9359 rm -f conftest*
9360 CFLAGS="$ac_save_CFLAGS"
9361 LIBS="$ac_save_LIBS"
9362 fi
9363 fi
9364 GTK_CFLAGS=""
9365 GTK_LIBS=""
9366 gthread
9367 fi
9368
9369
9370 rm -f conf.gtktest
9371
9372 fi
9373
9374 if test -z "$wx_cv_lib_gtk"; then
9375
9376 if test x$gtk_config_exec_prefix != x ; then
9377 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9378 if test x${GTK_CONFIG+set} != xset ; then
9379 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9380 fi
9381 fi
9382 if test x$gtk_config_prefix != x ; then
9383 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9384 if test x${GTK_CONFIG+set} != xset ; then
9385 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9386 fi
9387 fi
9388
9389 # Extract the first word of "gtk-config", so it can be a program name with args.
9390 set dummy gtk-config; ac_word=$2
9391 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9392 echo "configure:9393: checking for $ac_word" >&5
9393 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9394 echo $ac_n "(cached) $ac_c" 1>&6
9395 else
9396 case "$GTK_CONFIG" in
9397 /*)
9398 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9399 ;;
9400 ?:/*)
9401 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9402 ;;
9403 *)
9404 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9405 ac_dummy="$PATH"
9406 for ac_dir in $ac_dummy; do
9407 test -z "$ac_dir" && ac_dir=.
9408 if test -f $ac_dir/$ac_word; then
9409 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9410 break
9411 fi
9412 done
9413 IFS="$ac_save_ifs"
9414 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9415 ;;
9416 esac
9417 fi
9418 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
9419 if test -n "$GTK_CONFIG"; then
9420 echo "$ac_t""$GTK_CONFIG" 1>&6
9421 else
9422 echo "$ac_t""no" 1>&6
9423 fi
9424
9425 min_gtk_version=1.2.7
9426 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9427 echo "configure:9428: checking for GTK - version >= $min_gtk_version" >&5
9428 no_gtk=""
9429 if test "$GTK_CONFIG" != "no" ; then
9430 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9431 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9432 ac_save_CFLAGS="$CFLAGS"
9433 ac_save_LIBS="$LIBS"
9434 CFLAGS="$CFLAGS $GTK_CFLAGS"
9435 LIBS="$LIBS $GTK_LIBS"
9436 if test "$cross_compiling" = yes; then
9437 echo $ac_n "cross compiling; assumed OK... $ac_c"
9438 else
9439 cat > conftest.$ac_ext <<EOF
9440 #line 9441 "configure"
9441 #include "confdefs.h"
9442
9443 #include <gtk/gtk.h>
9444 #include <gtk/gtkfeatures.h>
9445 #include <stdio.h>
9446 #include <stdlib.h>
9447
9448 int
9449 main ()
9450 {
9451 int major, minor, micro;
9452
9453 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9454 printf("%s, bad version string\n", "$min_gtk_version");
9455 exit(1);
9456 }
9457
9458 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9459 (GTK_MINOR_VERSION != gtk_minor_version) ||
9460 (GTK_MICRO_VERSION != gtk_micro_version)) {
9461 printf("Headers vs. library version mismatch!\n");
9462 exit(1);
9463 }
9464
9465 if (gtk_minor_version == 1) return FALSE;
9466
9467 return !((gtk_major_version > major) ||
9468 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9469 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9470 }
9471
9472 EOF
9473 if { (eval echo configure:9474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9474 then
9475 :
9476 else
9477 echo "configure: failed program was:" >&5
9478 cat conftest.$ac_ext >&5
9479 rm -fr conftest*
9480 no_gtk=yes
9481 fi
9482 rm -fr conftest*
9483 fi
9484
9485 CFLAGS="$ac_save_CFLAGS"
9486 LIBS="$ac_save_LIBS"
9487 else
9488 no_gtk=yes
9489 fi
9490 if test "x$no_gtk" = x ; then
9491 echo "$ac_t""yes" 1>&6
9492 wx_cv_lib_gtk=1.2.7
9493 else
9494 echo "$ac_t""no" 1>&6
9495 GTK_CFLAGS=""
9496 GTK_LIBS=""
9497 :
9498 fi
9499
9500
9501
9502 fi
9503
9504 if test -z "$wx_cv_lib_gtk"; then
9505
9506 if test x$gtk_config_exec_prefix != x ; then
9507 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9508 if test x${GTK_CONFIG+set} != xset ; then
9509 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9510 fi
9511 fi
9512 if test x$gtk_config_prefix != x ; then
9513 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9514 if test x${GTK_CONFIG+set} != xset ; then
9515 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9516 fi
9517 fi
9518
9519 # Extract the first word of "gtk-config", so it can be a program name with args.
9520 set dummy gtk-config; ac_word=$2
9521 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9522 echo "configure:9523: checking for $ac_word" >&5
9523 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9524 echo $ac_n "(cached) $ac_c" 1>&6
9525 else
9526 case "$GTK_CONFIG" in
9527 /*)
9528 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9529 ;;
9530 ?:/*)
9531 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9532 ;;
9533 *)
9534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9535 ac_dummy="$PATH"
9536 for ac_dir in $ac_dummy; do
9537 test -z "$ac_dir" && ac_dir=.
9538 if test -f $ac_dir/$ac_word; then
9539 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9540 break
9541 fi
9542 done
9543 IFS="$ac_save_ifs"
9544 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9545 ;;
9546 esac
9547 fi
9548 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
9549 if test -n "$GTK_CONFIG"; then
9550 echo "$ac_t""$GTK_CONFIG" 1>&6
9551 else
9552 echo "$ac_t""no" 1>&6
9553 fi
9554
9555 min_gtk_version=1.2.3
9556 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9557 echo "configure:9558: checking for GTK - version >= $min_gtk_version" >&5
9558 no_gtk=""
9559 if test "$GTK_CONFIG" != "no" ; then
9560 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9561 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9562 ac_save_CFLAGS="$CFLAGS"
9563 ac_save_LIBS="$LIBS"
9564 CFLAGS="$CFLAGS $GTK_CFLAGS"
9565 LIBS="$LIBS $GTK_LIBS"
9566 if test "$cross_compiling" = yes; then
9567 echo $ac_n "cross compiling; assumed OK... $ac_c"
9568 else
9569 cat > conftest.$ac_ext <<EOF
9570 #line 9571 "configure"
9571 #include "confdefs.h"
9572
9573 #include <gtk/gtk.h>
9574 #include <gtk/gtkfeatures.h>
9575 #include <stdio.h>
9576 #include <stdlib.h>
9577
9578 int
9579 main ()
9580 {
9581 int major, minor, micro;
9582
9583 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9584 printf("%s, bad version string\n", "$min_gtk_version");
9585 exit(1);
9586 }
9587
9588 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9589 (GTK_MINOR_VERSION != gtk_minor_version) ||
9590 (GTK_MICRO_VERSION != gtk_micro_version)) {
9591 printf("Headers vs. library version mismatch!\n");
9592 exit(1);
9593 }
9594
9595 if (gtk_minor_version == 1) return FALSE;
9596
9597 return !((gtk_major_version > major) ||
9598 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9599 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9600 }
9601
9602 EOF
9603 if { (eval echo configure:9604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9604 then
9605 :
9606 else
9607 echo "configure: failed program was:" >&5
9608 cat conftest.$ac_ext >&5
9609 rm -fr conftest*
9610 no_gtk=yes
9611 fi
9612 rm -fr conftest*
9613 fi
9614
9615 CFLAGS="$ac_save_CFLAGS"
9616 LIBS="$ac_save_LIBS"
9617 else
9618 no_gtk=yes
9619 fi
9620 if test "x$no_gtk" = x ; then
9621 echo "$ac_t""yes" 1>&6
9622 wx_cv_lib_gtk=1.2.3
9623 else
9624 echo "$ac_t""no" 1>&6
9625 GTK_CFLAGS=""
9626 GTK_LIBS=""
9627 :
9628 fi
9629
9630
9631
9632 fi
9633
9634 if test -z "$wx_cv_lib_gtk"; then
9635 wx_cv_lib_gtk=none
9636 else
9637 wx_cv_cflags_gtk=$GTK_CFLAGS
9638 wx_cv_libs_gtk=$GTK_LIBS
9639 fi
9640
9641
9642 fi
9643
9644
9645 if test "$gtk_version_cached" = 1; then
9646 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
9647 fi
9648
9649 case "$wx_cv_lib_gtk" in
9650 2.0) WXGTK20=1
9651 ;;
9652 1.2.7) WXGTK127=1
9653 WXGTK12=1
9654 ;;
9655 1.2.3) WXGTK12=1
9656 ;;
9657 *) { echo "configure: error:
9658 Please check that gtk-config is in path, the directory
9659 where GTK+ libraries are installed (returned by
9660 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9661 equivalent variable and GTK+ is version 1.2.3 or above.
9662 " 1>&2; exit 1; }
9663 ;;
9664 esac
9665
9666 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
9667 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
9668
9669 AFMINSTALL=afminstall
9670 TOOLKIT=GTK
9671 GUIDIST=GTK_DIST
9672
9673 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
9674 echo "configure:9675: checking for gdk_im_open in -lgdk" >&5
9675 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9677 echo $ac_n "(cached) $ac_c" 1>&6
9678 else
9679 ac_save_LIBS="$LIBS"
9680 LIBS="-lgdk $LIBS"
9681 cat > conftest.$ac_ext <<EOF
9682 #line 9683 "configure"
9683 #include "confdefs.h"
9684 /* Override any gcc2 internal prototype to avoid an error. */
9685 /* We use char because int might match the return type of a gcc2
9686 builtin and then its argument prototype would still apply. */
9687 char gdk_im_open();
9688
9689 int main() {
9690 gdk_im_open()
9691 ; return 0; }
9692 EOF
9693 if { (eval echo configure:9694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9694 rm -rf conftest*
9695 eval "ac_cv_lib_$ac_lib_var=yes"
9696 else
9697 echo "configure: failed program was:" >&5
9698 cat conftest.$ac_ext >&5
9699 rm -rf conftest*
9700 eval "ac_cv_lib_$ac_lib_var=no"
9701 fi
9702 rm -f conftest*
9703 LIBS="$ac_save_LIBS"
9704
9705 fi
9706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9707 echo "$ac_t""yes" 1>&6
9708 cat >> confdefs.h <<\EOF
9709 #define HAVE_XIM 1
9710 EOF
9711
9712 else
9713 echo "$ac_t""no" 1>&6
9714 fi
9715
9716 fi
9717
9718 if test "$wxUSE_MGL" = 1; then
9719
9720 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
9721 echo "configure:9722: checking for SciTech MGL library" >&5
9722 if test "x$MGL_ROOT" = x ; then
9723 echo "$ac_t""not found" 1>&6
9724 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9725 else
9726 echo "$ac_t""$MGL_ROOT" 1>&6
9727 fi
9728
9729 mgl_os=linux/gcc/glibc
9730 mgl_lib_type=""
9731
9732 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9733 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a ; then
9734 mgl_lib_type=debug
9735 fi
9736 fi
9737 if test "x$mgl_lib_type" = x ; then
9738 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a ; then
9739 mgl_lib_type=release
9740 else
9741 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9742 fi
9743 fi
9744
9745 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9746 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
9747
9748 AFMINSTALL=afminstall
9749 TOOLKIT=MGL
9750 GUIDIST=MGL_DIST
9751 fi
9752
9753 if test "$wxUSE_WINE" = 1; then
9754 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
9755 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
9756 echo "configure:9757: checking for windows.h" >&5
9757 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9758 echo $ac_n "(cached) $ac_c" 1>&6
9759 else
9760 cat > conftest.$ac_ext <<EOF
9761 #line 9762 "configure"
9762 #include "confdefs.h"
9763 #include <windows.h>
9764 EOF
9765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9766 { (eval echo configure:9767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9767 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9768 if test -z "$ac_err"; then
9769 rm -rf conftest*
9770 eval "ac_cv_header_$ac_safe=yes"
9771 else
9772 echo "$ac_err" >&5
9773 echo "configure: failed program was:" >&5
9774 cat conftest.$ac_ext >&5
9775 rm -rf conftest*
9776 eval "ac_cv_header_$ac_safe=no"
9777 fi
9778 rm -f conftest*
9779 fi
9780 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9781 echo "$ac_t""yes" 1>&6
9782 :
9783 else
9784 echo "$ac_t""no" 1>&6
9785
9786 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9787
9788 fi
9789
9790
9791 xpm_link=""
9792 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9793 echo "configure:9794: checking for Xpm library" >&5
9794
9795 ac_find_libraries=
9796 for ac_dir in $SEARCH_LIB;
9797 do
9798 for ac_extension in a so sl dylib; do
9799 if test -f "$ac_dir/libXpm.$ac_extension"; then
9800 ac_find_libraries=$ac_dir
9801 break 2
9802 fi
9803 done
9804 done
9805
9806 if test "$ac_find_libraries" != "" ; then
9807 GUI_TK_LIBRARY="-L$ac_find_libraries"
9808 xpm_link="-lXpm"
9809 cat >> confdefs.h <<\EOF
9810 #define wxHAVE_LIB_XPM 1
9811 EOF
9812
9813 echo "$ac_t""found at $ac_find_libraries" 1>&6
9814 else
9815 echo "$ac_t""no" 1>&6
9816 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9817 fi
9818
9819 mesa_link=""
9820 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
9821 echo "configure:9822: checking for Mesa library" >&5
9822
9823 ac_find_libraries=
9824 for ac_dir in $SEARCH_LIB;
9825 do
9826 for ac_extension in a so sl dylib; do
9827 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9828 ac_find_libraries=$ac_dir
9829 break 2
9830 fi
9831 done
9832 done
9833
9834 if test "$ac_find_libraries" != "" ; then
9835 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9836 mesa_link="-lMesaGL"
9837 echo "$ac_t""found at $ac_find_libraries" 1>&6
9838 else
9839 { echo "configure: error: no" 1>&2; exit 1; }
9840 fi
9841
9842 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine $mesa_link $xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9843 TOOLKIT=MSW
9844 GUIDIST=MSW_DIST
9845 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
9846 fi
9847
9848
9849 # If we find X, set shell vars x_includes and x_libraries to the
9850 # paths, otherwise set no_x=yes.
9851 # Uses ac_ vars as temps to allow command line to override cache and checks.
9852 # --without-x overrides everything else, but does not touch the cache.
9853 echo $ac_n "checking for X""... $ac_c" 1>&6
9854 echo "configure:9855: checking for X" >&5
9855
9856 # Check whether --with-x or --without-x was given.
9857 if test "${with_x+set}" = set; then
9858 withval="$with_x"
9859 :
9860 fi
9861
9862 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9863 if test "x$with_x" = xno; then
9864 # The user explicitly disabled X.
9865 have_x=disabled
9866 else
9867 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9868 # Both variables are already set.
9869 have_x=yes
9870 else
9871 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9872 echo $ac_n "(cached) $ac_c" 1>&6
9873 else
9874 # One or both of the vars are not set, and there is no cached value.
9875 ac_x_includes=NO ac_x_libraries=NO
9876 rm -fr conftestdir
9877 if mkdir conftestdir; then
9878 cd conftestdir
9879 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9880 cat > Imakefile <<'EOF'
9881 acfindx:
9882 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9883 EOF
9884 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9885 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9886 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9887 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9888 for ac_extension in a so sl; do
9889 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9890 test -f $ac_im_libdir/libX11.$ac_extension; then
9891 ac_im_usrlibdir=$ac_im_libdir; break
9892 fi
9893 done
9894 # Screen out bogus values from the imake configuration. They are
9895 # bogus both because they are the default anyway, and because
9896 # using them would break gcc on systems where it needs fixed includes.
9897 case "$ac_im_incroot" in
9898 /usr/include) ;;
9899 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
9900 esac
9901 case "$ac_im_usrlibdir" in
9902 /usr/lib | /lib) ;;
9903 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
9904 esac
9905 fi
9906 cd ..
9907 rm -fr conftestdir
9908 fi
9909
9910 if test "$ac_x_includes" = NO; then
9911 # Guess where to find include files, by looking for this one X11 .h file.
9912 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9913
9914 # First, try using that file with no special directory specified.
9915 cat > conftest.$ac_ext <<EOF
9916 #line 9917 "configure"
9917 #include "confdefs.h"
9918 #include <$x_direct_test_include>
9919 EOF
9920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9921 { (eval echo configure:9922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9923 if test -z "$ac_err"; then
9924 rm -rf conftest*
9925 # We can compile using X headers with no special include directory.
9926 ac_x_includes=
9927 else
9928 echo "$ac_err" >&5
9929 echo "configure: failed program was:" >&5
9930 cat conftest.$ac_ext >&5
9931 rm -rf conftest*
9932 # Look for the header file in a standard set of common directories.
9933 # Check X11 before X11Rn because it is often a symlink to the current release.
9934 for ac_dir in \
9935 /usr/X11/include \
9936 /usr/X11R6/include \
9937 /usr/X11R5/include \
9938 /usr/X11R4/include \
9939 \
9940 /usr/include/X11 \
9941 /usr/include/X11R6 \
9942 /usr/include/X11R5 \
9943 /usr/include/X11R4 \
9944 \
9945 /usr/local/X11/include \
9946 /usr/local/X11R6/include \
9947 /usr/local/X11R5/include \
9948 /usr/local/X11R4/include \
9949 \
9950 /usr/local/include/X11 \
9951 /usr/local/include/X11R6 \
9952 /usr/local/include/X11R5 \
9953 /usr/local/include/X11R4 \
9954 \
9955 /usr/X386/include \
9956 /usr/x386/include \
9957 /usr/XFree86/include/X11 \
9958 \
9959 /usr/include \
9960 /usr/local/include \
9961 /usr/unsupported/include \
9962 /usr/athena/include \
9963 /usr/local/x11r5/include \
9964 /usr/lpp/Xamples/include \
9965 \
9966 /usr/openwin/include \
9967 /usr/openwin/share/include \
9968 ; \
9969 do
9970 if test -r "$ac_dir/$x_direct_test_include"; then
9971 ac_x_includes=$ac_dir
9972 break
9973 fi
9974 done
9975 fi
9976 rm -f conftest*
9977 fi # $ac_x_includes = NO
9978
9979 if test "$ac_x_libraries" = NO; then
9980 # Check for the libraries.
9981
9982 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9983 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9984
9985 # See if we find them without any special options.
9986 # Don't add to $LIBS permanently.
9987 ac_save_LIBS="$LIBS"
9988 LIBS="-l$x_direct_test_library $LIBS"
9989 cat > conftest.$ac_ext <<EOF
9990 #line 9991 "configure"
9991 #include "confdefs.h"
9992
9993 int main() {
9994 ${x_direct_test_function}()
9995 ; return 0; }
9996 EOF
9997 if { (eval echo configure:9998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9998 rm -rf conftest*
9999 LIBS="$ac_save_LIBS"
10000 # We can link X programs with no special library path.
10001 ac_x_libraries=
10002 else
10003 echo "configure: failed program was:" >&5
10004 cat conftest.$ac_ext >&5
10005 rm -rf conftest*
10006 LIBS="$ac_save_LIBS"
10007 # First see if replacing the include by lib works.
10008 # Check X11 before X11Rn because it is often a symlink to the current release.
10009 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
10010 /usr/X11/lib \
10011 /usr/X11R6/lib \
10012 /usr/X11R5/lib \
10013 /usr/X11R4/lib \
10014 \
10015 /usr/lib/X11 \
10016 /usr/lib/X11R6 \
10017 /usr/lib/X11R5 \
10018 /usr/lib/X11R4 \
10019 \
10020 /usr/local/X11/lib \
10021 /usr/local/X11R6/lib \
10022 /usr/local/X11R5/lib \
10023 /usr/local/X11R4/lib \
10024 \
10025 /usr/local/lib/X11 \
10026 /usr/local/lib/X11R6 \
10027 /usr/local/lib/X11R5 \
10028 /usr/local/lib/X11R4 \
10029 \
10030 /usr/X386/lib \
10031 /usr/x386/lib \
10032 /usr/XFree86/lib/X11 \
10033 \
10034 /usr/lib \
10035 /usr/local/lib \
10036 /usr/unsupported/lib \
10037 /usr/athena/lib \
10038 /usr/local/x11r5/lib \
10039 /usr/lpp/Xamples/lib \
10040 /lib/usr/lib/X11 \
10041 \
10042 /usr/openwin/lib \
10043 /usr/openwin/share/lib \
10044 ; \
10045 do
10046 for ac_extension in a so sl; do
10047 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
10048 ac_x_libraries=$ac_dir
10049 break 2
10050 fi
10051 done
10052 done
10053 fi
10054 rm -f conftest*
10055 fi # $ac_x_libraries = NO
10056
10057 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
10058 # Didn't find X anywhere. Cache the known absence of X.
10059 ac_cv_have_x="have_x=no"
10060 else
10061 # Record where we found X for the cache.
10062 ac_cv_have_x="have_x=yes \
10063 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10064 fi
10065 fi
10066 fi
10067 eval "$ac_cv_have_x"
10068 fi # $with_x != no
10069
10070 if test "$have_x" != yes; then
10071 echo "$ac_t""$have_x" 1>&6
10072 no_x=yes
10073 else
10074 # If each of the values was on the command line, it overrides each guess.
10075 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10076 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10077 # Update the cache value to reflect the command line values.
10078 ac_cv_have_x="have_x=yes \
10079 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10080 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
10081 fi
10082
10083 if test "$no_x" = yes; then
10084 # Not all programs may use this symbol, but it does not hurt to define it.
10085 cat >> confdefs.h <<\EOF
10086 #define X_DISPLAY_MISSING 1
10087 EOF
10088
10089 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10090 else
10091 if test -n "$x_includes"; then
10092 X_CFLAGS="$X_CFLAGS -I$x_includes"
10093 fi
10094
10095 # It would also be nice to do this for all -L options, not just this one.
10096 if test -n "$x_libraries"; then
10097 X_LIBS="$X_LIBS -L$x_libraries"
10098 # For Solaris; some versions of Sun CC require a space after -R and
10099 # others require no space. Words are not sufficient . . . .
10100 case "`(uname -sr) 2>/dev/null`" in
10101 "SunOS 5"*)
10102 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
10103 echo "configure:10104: checking whether -R must be followed by a space" >&5
10104 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
10105 cat > conftest.$ac_ext <<EOF
10106 #line 10107 "configure"
10107 #include "confdefs.h"
10108
10109 int main() {
10110
10111 ; return 0; }
10112 EOF
10113 if { (eval echo configure:10114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10114 rm -rf conftest*
10115 ac_R_nospace=yes
10116 else
10117 echo "configure: failed program was:" >&5
10118 cat conftest.$ac_ext >&5
10119 rm -rf conftest*
10120 ac_R_nospace=no
10121 fi
10122 rm -f conftest*
10123 if test $ac_R_nospace = yes; then
10124 echo "$ac_t""no" 1>&6
10125 X_LIBS="$X_LIBS -R$x_libraries"
10126 else
10127 LIBS="$ac_xsave_LIBS -R $x_libraries"
10128 cat > conftest.$ac_ext <<EOF
10129 #line 10130 "configure"
10130 #include "confdefs.h"
10131
10132 int main() {
10133
10134 ; return 0; }
10135 EOF
10136 if { (eval echo configure:10137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10137 rm -rf conftest*
10138 ac_R_space=yes
10139 else
10140 echo "configure: failed program was:" >&5
10141 cat conftest.$ac_ext >&5
10142 rm -rf conftest*
10143 ac_R_space=no
10144 fi
10145 rm -f conftest*
10146 if test $ac_R_space = yes; then
10147 echo "$ac_t""yes" 1>&6
10148 X_LIBS="$X_LIBS -R $x_libraries"
10149 else
10150 echo "$ac_t""neither works" 1>&6
10151 fi
10152 fi
10153 LIBS="$ac_xsave_LIBS"
10154 esac
10155 fi
10156
10157 # Check for system-dependent libraries X programs must link with.
10158 # Do this before checking for the system-independent R6 libraries
10159 # (-lICE), since we may need -lsocket or whatever for X linking.
10160
10161 if test "$ISC" = yes; then
10162 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10163 else
10164 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10165 # libraries were built with DECnet support. And karl@cs.umb.edu says
10166 # the Alpha needs dnet_stub (dnet does not exist).
10167 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
10168 echo "configure:10169: checking for dnet_ntoa in -ldnet" >&5
10169 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10170 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10171 echo $ac_n "(cached) $ac_c" 1>&6
10172 else
10173 ac_save_LIBS="$LIBS"
10174 LIBS="-ldnet $LIBS"
10175 cat > conftest.$ac_ext <<EOF
10176 #line 10177 "configure"
10177 #include "confdefs.h"
10178 /* Override any gcc2 internal prototype to avoid an error. */
10179 /* We use char because int might match the return type of a gcc2
10180 builtin and then its argument prototype would still apply. */
10181 char dnet_ntoa();
10182
10183 int main() {
10184 dnet_ntoa()
10185 ; return 0; }
10186 EOF
10187 if { (eval echo configure:10188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10188 rm -rf conftest*
10189 eval "ac_cv_lib_$ac_lib_var=yes"
10190 else
10191 echo "configure: failed program was:" >&5
10192 cat conftest.$ac_ext >&5
10193 rm -rf conftest*
10194 eval "ac_cv_lib_$ac_lib_var=no"
10195 fi
10196 rm -f conftest*
10197 LIBS="$ac_save_LIBS"
10198
10199 fi
10200 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10201 echo "$ac_t""yes" 1>&6
10202 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10203 else
10204 echo "$ac_t""no" 1>&6
10205 fi
10206
10207 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10208 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
10209 echo "configure:10210: checking for dnet_ntoa in -ldnet_stub" >&5
10210 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10211 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10212 echo $ac_n "(cached) $ac_c" 1>&6
10213 else
10214 ac_save_LIBS="$LIBS"
10215 LIBS="-ldnet_stub $LIBS"
10216 cat > conftest.$ac_ext <<EOF
10217 #line 10218 "configure"
10218 #include "confdefs.h"
10219 /* Override any gcc2 internal prototype to avoid an error. */
10220 /* We use char because int might match the return type of a gcc2
10221 builtin and then its argument prototype would still apply. */
10222 char dnet_ntoa();
10223
10224 int main() {
10225 dnet_ntoa()
10226 ; return 0; }
10227 EOF
10228 if { (eval echo configure:10229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10229 rm -rf conftest*
10230 eval "ac_cv_lib_$ac_lib_var=yes"
10231 else
10232 echo "configure: failed program was:" >&5
10233 cat conftest.$ac_ext >&5
10234 rm -rf conftest*
10235 eval "ac_cv_lib_$ac_lib_var=no"
10236 fi
10237 rm -f conftest*
10238 LIBS="$ac_save_LIBS"
10239
10240 fi
10241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10242 echo "$ac_t""yes" 1>&6
10243 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10244 else
10245 echo "$ac_t""no" 1>&6
10246 fi
10247
10248 fi
10249
10250 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10251 # to get the SysV transport functions.
10252 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
10253 # needs -lnsl.
10254 # The nsl library prevents programs from opening the X display
10255 # on Irix 5.2, according to dickey@clark.net.
10256 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
10257 echo "configure:10258: checking for gethostbyname" >&5
10258 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10259 echo $ac_n "(cached) $ac_c" 1>&6
10260 else
10261 cat > conftest.$ac_ext <<EOF
10262 #line 10263 "configure"
10263 #include "confdefs.h"
10264 /* System header to define __stub macros and hopefully few prototypes,
10265 which can conflict with char gethostbyname(); below. */
10266 #include <assert.h>
10267 /* Override any gcc2 internal prototype to avoid an error. */
10268 /* We use char because int might match the return type of a gcc2
10269 builtin and then its argument prototype would still apply. */
10270 char gethostbyname();
10271
10272 int main() {
10273
10274 /* The GNU C library defines this for functions which it implements
10275 to always fail with ENOSYS. Some functions are actually named
10276 something starting with __ and the normal name is an alias. */
10277 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10278 choke me
10279 #else
10280 gethostbyname();
10281 #endif
10282
10283 ; return 0; }
10284 EOF
10285 if { (eval echo configure:10286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10286 rm -rf conftest*
10287 eval "ac_cv_func_gethostbyname=yes"
10288 else
10289 echo "configure: failed program was:" >&5
10290 cat conftest.$ac_ext >&5
10291 rm -rf conftest*
10292 eval "ac_cv_func_gethostbyname=no"
10293 fi
10294 rm -f conftest*
10295 fi
10296
10297 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10298 echo "$ac_t""yes" 1>&6
10299 :
10300 else
10301 echo "$ac_t""no" 1>&6
10302 fi
10303
10304 if test $ac_cv_func_gethostbyname = no; then
10305 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
10306 echo "configure:10307: checking for gethostbyname in -lnsl" >&5
10307 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10308 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10309 echo $ac_n "(cached) $ac_c" 1>&6
10310 else
10311 ac_save_LIBS="$LIBS"
10312 LIBS="-lnsl $LIBS"
10313 cat > conftest.$ac_ext <<EOF
10314 #line 10315 "configure"
10315 #include "confdefs.h"
10316 /* Override any gcc2 internal prototype to avoid an error. */
10317 /* We use char because int might match the return type of a gcc2
10318 builtin and then its argument prototype would still apply. */
10319 char gethostbyname();
10320
10321 int main() {
10322 gethostbyname()
10323 ; return 0; }
10324 EOF
10325 if { (eval echo configure:10326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10326 rm -rf conftest*
10327 eval "ac_cv_lib_$ac_lib_var=yes"
10328 else
10329 echo "configure: failed program was:" >&5
10330 cat conftest.$ac_ext >&5
10331 rm -rf conftest*
10332 eval "ac_cv_lib_$ac_lib_var=no"
10333 fi
10334 rm -f conftest*
10335 LIBS="$ac_save_LIBS"
10336
10337 fi
10338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10339 echo "$ac_t""yes" 1>&6
10340 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10341 else
10342 echo "$ac_t""no" 1>&6
10343 fi
10344
10345 fi
10346
10347 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10348 # socket/setsockopt and other routines are undefined under SCO ODT
10349 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10350 # on later versions), says simon@lia.di.epfl.ch: it contains
10351 # gethostby* variants that don't use the nameserver (or something).
10352 # -lsocket must be given before -lnsl if both are needed.
10353 # We assume that if connect needs -lnsl, so does gethostbyname.
10354 echo $ac_n "checking for connect""... $ac_c" 1>&6
10355 echo "configure:10356: checking for connect" >&5
10356 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
10357 echo $ac_n "(cached) $ac_c" 1>&6
10358 else
10359 cat > conftest.$ac_ext <<EOF
10360 #line 10361 "configure"
10361 #include "confdefs.h"
10362 /* System header to define __stub macros and hopefully few prototypes,
10363 which can conflict with char connect(); below. */
10364 #include <assert.h>
10365 /* Override any gcc2 internal prototype to avoid an error. */
10366 /* We use char because int might match the return type of a gcc2
10367 builtin and then its argument prototype would still apply. */
10368 char connect();
10369
10370 int main() {
10371
10372 /* The GNU C library defines this for functions which it implements
10373 to always fail with ENOSYS. Some functions are actually named
10374 something starting with __ and the normal name is an alias. */
10375 #if defined (__stub_connect) || defined (__stub___connect)
10376 choke me
10377 #else
10378 connect();
10379 #endif
10380
10381 ; return 0; }
10382 EOF
10383 if { (eval echo configure:10384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10384 rm -rf conftest*
10385 eval "ac_cv_func_connect=yes"
10386 else
10387 echo "configure: failed program was:" >&5
10388 cat conftest.$ac_ext >&5
10389 rm -rf conftest*
10390 eval "ac_cv_func_connect=no"
10391 fi
10392 rm -f conftest*
10393 fi
10394
10395 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
10396 echo "$ac_t""yes" 1>&6
10397 :
10398 else
10399 echo "$ac_t""no" 1>&6
10400 fi
10401
10402 if test $ac_cv_func_connect = no; then
10403 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
10404 echo "configure:10405: checking for connect in -lsocket" >&5
10405 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
10406 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10407 echo $ac_n "(cached) $ac_c" 1>&6
10408 else
10409 ac_save_LIBS="$LIBS"
10410 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10411 cat > conftest.$ac_ext <<EOF
10412 #line 10413 "configure"
10413 #include "confdefs.h"
10414 /* Override any gcc2 internal prototype to avoid an error. */
10415 /* We use char because int might match the return type of a gcc2
10416 builtin and then its argument prototype would still apply. */
10417 char connect();
10418
10419 int main() {
10420 connect()
10421 ; return 0; }
10422 EOF
10423 if { (eval echo configure:10424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10424 rm -rf conftest*
10425 eval "ac_cv_lib_$ac_lib_var=yes"
10426 else
10427 echo "configure: failed program was:" >&5
10428 cat conftest.$ac_ext >&5
10429 rm -rf conftest*
10430 eval "ac_cv_lib_$ac_lib_var=no"
10431 fi
10432 rm -f conftest*
10433 LIBS="$ac_save_LIBS"
10434
10435 fi
10436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10437 echo "$ac_t""yes" 1>&6
10438 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10439 else
10440 echo "$ac_t""no" 1>&6
10441 fi
10442
10443 fi
10444
10445 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
10446 echo $ac_n "checking for remove""... $ac_c" 1>&6
10447 echo "configure:10448: checking for remove" >&5
10448 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
10449 echo $ac_n "(cached) $ac_c" 1>&6
10450 else
10451 cat > conftest.$ac_ext <<EOF
10452 #line 10453 "configure"
10453 #include "confdefs.h"
10454 /* System header to define __stub macros and hopefully few prototypes,
10455 which can conflict with char remove(); below. */
10456 #include <assert.h>
10457 /* Override any gcc2 internal prototype to avoid an error. */
10458 /* We use char because int might match the return type of a gcc2
10459 builtin and then its argument prototype would still apply. */
10460 char remove();
10461
10462 int main() {
10463
10464 /* The GNU C library defines this for functions which it implements
10465 to always fail with ENOSYS. Some functions are actually named
10466 something starting with __ and the normal name is an alias. */
10467 #if defined (__stub_remove) || defined (__stub___remove)
10468 choke me
10469 #else
10470 remove();
10471 #endif
10472
10473 ; return 0; }
10474 EOF
10475 if { (eval echo configure:10476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10476 rm -rf conftest*
10477 eval "ac_cv_func_remove=yes"
10478 else
10479 echo "configure: failed program was:" >&5
10480 cat conftest.$ac_ext >&5
10481 rm -rf conftest*
10482 eval "ac_cv_func_remove=no"
10483 fi
10484 rm -f conftest*
10485 fi
10486
10487 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
10488 echo "$ac_t""yes" 1>&6
10489 :
10490 else
10491 echo "$ac_t""no" 1>&6
10492 fi
10493
10494 if test $ac_cv_func_remove = no; then
10495 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
10496 echo "configure:10497: checking for remove in -lposix" >&5
10497 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
10498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10499 echo $ac_n "(cached) $ac_c" 1>&6
10500 else
10501 ac_save_LIBS="$LIBS"
10502 LIBS="-lposix $LIBS"
10503 cat > conftest.$ac_ext <<EOF
10504 #line 10505 "configure"
10505 #include "confdefs.h"
10506 /* Override any gcc2 internal prototype to avoid an error. */
10507 /* We use char because int might match the return type of a gcc2
10508 builtin and then its argument prototype would still apply. */
10509 char remove();
10510
10511 int main() {
10512 remove()
10513 ; return 0; }
10514 EOF
10515 if { (eval echo configure:10516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10516 rm -rf conftest*
10517 eval "ac_cv_lib_$ac_lib_var=yes"
10518 else
10519 echo "configure: failed program was:" >&5
10520 cat conftest.$ac_ext >&5
10521 rm -rf conftest*
10522 eval "ac_cv_lib_$ac_lib_var=no"
10523 fi
10524 rm -f conftest*
10525 LIBS="$ac_save_LIBS"
10526
10527 fi
10528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10529 echo "$ac_t""yes" 1>&6
10530 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10531 else
10532 echo "$ac_t""no" 1>&6
10533 fi
10534
10535 fi
10536
10537 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10538 echo $ac_n "checking for shmat""... $ac_c" 1>&6
10539 echo "configure:10540: checking for shmat" >&5
10540 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
10541 echo $ac_n "(cached) $ac_c" 1>&6
10542 else
10543 cat > conftest.$ac_ext <<EOF
10544 #line 10545 "configure"
10545 #include "confdefs.h"
10546 /* System header to define __stub macros and hopefully few prototypes,
10547 which can conflict with char shmat(); below. */
10548 #include <assert.h>
10549 /* Override any gcc2 internal prototype to avoid an error. */
10550 /* We use char because int might match the return type of a gcc2
10551 builtin and then its argument prototype would still apply. */
10552 char shmat();
10553
10554 int main() {
10555
10556 /* The GNU C library defines this for functions which it implements
10557 to always fail with ENOSYS. Some functions are actually named
10558 something starting with __ and the normal name is an alias. */
10559 #if defined (__stub_shmat) || defined (__stub___shmat)
10560 choke me
10561 #else
10562 shmat();
10563 #endif
10564
10565 ; return 0; }
10566 EOF
10567 if { (eval echo configure:10568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10568 rm -rf conftest*
10569 eval "ac_cv_func_shmat=yes"
10570 else
10571 echo "configure: failed program was:" >&5
10572 cat conftest.$ac_ext >&5
10573 rm -rf conftest*
10574 eval "ac_cv_func_shmat=no"
10575 fi
10576 rm -f conftest*
10577 fi
10578
10579 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
10580 echo "$ac_t""yes" 1>&6
10581 :
10582 else
10583 echo "$ac_t""no" 1>&6
10584 fi
10585
10586 if test $ac_cv_func_shmat = no; then
10587 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
10588 echo "configure:10589: checking for shmat in -lipc" >&5
10589 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
10590 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10591 echo $ac_n "(cached) $ac_c" 1>&6
10592 else
10593 ac_save_LIBS="$LIBS"
10594 LIBS="-lipc $LIBS"
10595 cat > conftest.$ac_ext <<EOF
10596 #line 10597 "configure"
10597 #include "confdefs.h"
10598 /* Override any gcc2 internal prototype to avoid an error. */
10599 /* We use char because int might match the return type of a gcc2
10600 builtin and then its argument prototype would still apply. */
10601 char shmat();
10602
10603 int main() {
10604 shmat()
10605 ; return 0; }
10606 EOF
10607 if { (eval echo configure:10608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10608 rm -rf conftest*
10609 eval "ac_cv_lib_$ac_lib_var=yes"
10610 else
10611 echo "configure: failed program was:" >&5
10612 cat conftest.$ac_ext >&5
10613 rm -rf conftest*
10614 eval "ac_cv_lib_$ac_lib_var=no"
10615 fi
10616 rm -f conftest*
10617 LIBS="$ac_save_LIBS"
10618
10619 fi
10620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10621 echo "$ac_t""yes" 1>&6
10622 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10623 else
10624 echo "$ac_t""no" 1>&6
10625 fi
10626
10627 fi
10628 fi
10629
10630 # Check for libraries that X11R6 Xt/Xaw programs need.
10631 ac_save_LDFLAGS="$LDFLAGS"
10632 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10633 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10634 # check for ICE first), but we must link in the order -lSM -lICE or
10635 # we get undefined symbols. So assume we have SM if we have ICE.
10636 # These have to be linked with before -lX11, unlike the other
10637 # libraries we check for below, so use a different variable.
10638 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10639 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
10640 echo "configure:10641: checking for IceConnectionNumber in -lICE" >&5
10641 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10642 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10643 echo $ac_n "(cached) $ac_c" 1>&6
10644 else
10645 ac_save_LIBS="$LIBS"
10646 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10647 cat > conftest.$ac_ext <<EOF
10648 #line 10649 "configure"
10649 #include "confdefs.h"
10650 /* Override any gcc2 internal prototype to avoid an error. */
10651 /* We use char because int might match the return type of a gcc2
10652 builtin and then its argument prototype would still apply. */
10653 char IceConnectionNumber();
10654
10655 int main() {
10656 IceConnectionNumber()
10657 ; return 0; }
10658 EOF
10659 if { (eval echo configure:10660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10660 rm -rf conftest*
10661 eval "ac_cv_lib_$ac_lib_var=yes"
10662 else
10663 echo "configure: failed program was:" >&5
10664 cat conftest.$ac_ext >&5
10665 rm -rf conftest*
10666 eval "ac_cv_lib_$ac_lib_var=no"
10667 fi
10668 rm -f conftest*
10669 LIBS="$ac_save_LIBS"
10670
10671 fi
10672 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10673 echo "$ac_t""yes" 1>&6
10674 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10675 else
10676 echo "$ac_t""no" 1>&6
10677 fi
10678
10679 LDFLAGS="$ac_save_LDFLAGS"
10680
10681 fi
10682
10683 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10684 LDFLAGS="$LDFLAGS $X_LIBS"
10685
10686 if test "$wxUSE_MOTIF" = 1; then
10687 if test "$no_x" = "yes"; then
10688 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10689 fi
10690
10691 GUI_TK_LIBRARY="$X_LIBS"
10692 TOOLKIT_INCLUDE="$X_CFLAGS"
10693 AFMINSTALL=afminstall
10694 COMPILED_X_PROGRAM=0
10695
10696 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
10697 echo "configure:10698: checking for Motif/Lesstif headers" >&5
10698
10699 ac_find_includes=
10700 for ac_dir in $SEARCH_INCLUDE;
10701 do
10702 if test -f "$ac_dir/Xm/Xm.h"; then
10703 ac_find_includes=$ac_dir
10704 break
10705 fi
10706 done
10707
10708 if test "$ac_find_includes" != "" ; then
10709 echo "$ac_t""found $ac_find_includes" 1>&6
10710 else
10711 cat > conftest.$ac_ext <<EOF
10712 #line 10713 "configure"
10713 #include "confdefs.h"
10714
10715 #include <Xm/Xm.h>
10716
10717 int main() {
10718
10719 int version;
10720 version = xmUseVersion;
10721
10722 ; return 0; }
10723 EOF
10724 if { (eval echo configure:10725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10725 rm -rf conftest*
10726
10727 echo "$ac_t""found in default search path" 1>&6
10728 COMPILED_X_PROGRAM=1
10729
10730 else
10731 echo "configure: failed program was:" >&5
10732 cat conftest.$ac_ext >&5
10733 rm -rf conftest*
10734
10735 echo "$ac_t""no" 1>&6
10736 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10737
10738
10739 fi
10740 rm -f conftest*
10741 fi
10742
10743 if test "$COMPILED_X_PROGRAM" = 0; then
10744 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
10745 echo "configure:10746: checking for Motif/Lesstif library" >&5
10746
10747 ac_find_libraries=
10748 for ac_dir in $SEARCH_LIB;
10749 do
10750 for ac_extension in a so sl dylib; do
10751 if test -f "$ac_dir/libXm.$ac_extension"; then
10752 ac_find_libraries=$ac_dir
10753 break 2
10754 fi
10755 done
10756 done
10757
10758 if test "$ac_find_libraries" != "" ; then
10759
10760 ac_path_to_include=$ac_find_includes
10761 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10762 result=$?
10763 if test $result = 0; then
10764 ac_path_to_include=""
10765 else
10766 ac_path_to_include="-I$ac_find_includes"
10767 fi
10768
10769
10770 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10771 result=$?
10772 if test $result = 0; then
10773 ac_path_to_link=""
10774 else
10775 ac_path_to_link="-L$ac_find_libraries"
10776 fi
10777
10778
10779 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10780 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10781 echo "$ac_t""found at $ac_find_libraries" 1>&6
10782 else
10783 cat > conftest.$ac_ext <<EOF
10784 #line 10785 "configure"
10785 #include "confdefs.h"
10786
10787 #include <Xm/Xm.h>
10788
10789 int main() {
10790
10791 int version;
10792 version = xmUseVersion;
10793
10794 ; return 0; }
10795 EOF
10796 if { (eval echo configure:10797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10797 rm -rf conftest*
10798
10799 echo "$ac_t""found in default search path" 1>&6
10800 COMPILED_X_PROGRAM=1
10801
10802 else
10803 echo "configure: failed program was:" >&5
10804 cat conftest.$ac_ext >&5
10805 rm -rf conftest*
10806
10807 echo "$ac_t""no" 1>&6
10808 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10809
10810
10811 fi
10812 rm -f conftest*
10813 fi
10814 fi
10815
10816 xpm_link=""
10817 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
10818 echo "configure:10819: checking for Xpm library" >&5
10819
10820 ac_find_libraries=
10821 for ac_dir in $SEARCH_LIB;
10822 do
10823 for ac_extension in a so sl dylib; do
10824 if test -f "$ac_dir/libXpm.$ac_extension"; then
10825 ac_find_libraries=$ac_dir
10826 break 2
10827 fi
10828 done
10829 done
10830
10831 if test "$ac_find_libraries" != "" ; then
10832
10833 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10834 result=$?
10835 if test $result = 0; then
10836 ac_path_to_link=""
10837 else
10838 ac_path_to_link="-L$ac_find_libraries"
10839 fi
10840
10841 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10842 xpm_link="-lXpm "
10843 cat >> confdefs.h <<\EOF
10844 #define wxHAVE_LIB_XPM 1
10845 EOF
10846
10847 echo "$ac_t""found at $ac_find_libraries" 1>&6
10848 else
10849 cat > conftest.$ac_ext <<EOF
10850 #line 10851 "configure"
10851 #include "confdefs.h"
10852
10853 #include <X11/xpm.h>
10854
10855 int main() {
10856
10857 int version;
10858 version = XpmLibraryVersion();
10859
10860 ; return 0; }
10861 EOF
10862 if { (eval echo configure:10863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10863 rm -rf conftest*
10864
10865 xpm_link="-lXpm "
10866 cat >> confdefs.h <<\EOF
10867 #define wxHAVE_LIB_XPM 1
10868 EOF
10869
10870 echo "$ac_t""found in default search path" 1>&6
10871 COMPILED_X_PROGRAM=0
10872
10873 else
10874 echo "configure: failed program was:" >&5
10875 cat conftest.$ac_ext >&5
10876 rm -rf conftest*
10877
10878 echo "$ac_t""no" 1>&6
10879 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10880
10881
10882 fi
10883 rm -f conftest*
10884 fi
10885
10886 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm $xpm_link -lXmu -lXext -lXt -lX11"
10887 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10888 TOOLKIT=MOTIF
10889 GUIDIST=MOTIF_DIST
10890 fi
10891
10892 if test "$wxUSE_MAC" = 1; then
10893 CPPFLAGS="${CPPFLAGS} -cpp-precomp"
10894 CFLAGS="${CFLAGS} -fpascal-strings"
10895 CXXFLAGS="${CXXFLAGS} -fpascal-strings"
10896 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DTARGET_CARBON"
10897
10898 TOOLKIT=MAC
10899 GUIDIST=MACX_DIST
10900 fi
10901
10902 if test "$wxUSE_PM" = 1; then
10903 TOOLKIT=PM
10904 GUIDIST=GTK_DIST
10905 fi
10906
10907 if test "$TOOLKIT" = "PM" ; then
10908 TOOLKIT_DIR="os2"
10909 else
10910 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10911 fi
10912
10913 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
10914
10915 if test "$wxUSE_UNIVERSAL" = "yes"; then
10916 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10917 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
10918 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
10919 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
10920 WIDGET_SET=univ
10921 else
10922 ALL_OBJECTS="\$(GUIOBJS)"
10923 fi
10924
10925 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10926
10927 if test "$TOOLKIT" != "MSW"; then
10928 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10929 fi
10930
10931 if test "$wxUSE_HTML" = "yes"; then
10932 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10933 fi
10934
10935 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
10936 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10937 fi
10938 if test "$wxUSE_LIBJPEG" = "yes" ; then
10939 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
10940 fi
10941 if test "$wxUSE_LIBTIFF" = "yes" ; then
10942 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10943 fi
10944 if test "$wxUSE_LIBPNG" = "yes" ; then
10945 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10946 fi
10947 if test "$wxUSE_FREETYPE" = "yes" ; then
10948 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10949 fi
10950
10951 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10952 RPM_SPEC="wx\$(TOOLKIT).spec"
10953
10954 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10955 DISTDIR="wx\$(TOOLKIT)"
10956 else
10957 USE_GUI=0
10958
10959 TOOLKIT_DIR="base"
10960
10961 if test "$USE_WIN32" = 1 ; then
10962 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
10963 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
10964
10965 TOOLKIT="MSW"
10966 else
10967 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
10968 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
10969 fi
10970
10971 PORT_FILES="\${top_srcdir}/src/files.lst"
10972 RPM_FILES="src/rpmfiles.lst"
10973 RPM_SPEC="wxBase.spec"
10974
10975 GUIDIST="BASE_DIST"
10976 DISTDIR="wxBase"
10977 fi
10978
10979 if test "x$REGEX_INCLUDE" != "x" ; then
10980 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10981 fi
10982 if test "$wxUSE_ZLIB" = "yes" ; then
10983 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10984 fi
10985
10986 if test "$wxUSE_OPENGL" = "yes"; then
10987 if test "$wxUSE_MAC" = 1; then
10988 cat >> confdefs.h <<\EOF
10989 #define wxUSE_OPENGL 1
10990 EOF
10991
10992 cat >> confdefs.h <<\EOF
10993 #define wxUSE_GLCANVAS 1
10994 EOF
10995
10996 OPENGL_LIBS="-framework OpenGL -framework AGL"
10997 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
10998 else
10999 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11000 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
11001 echo "configure:11002: checking for GL/gl.h" >&5
11002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11003 echo $ac_n "(cached) $ac_c" 1>&6
11004 else
11005 cat > conftest.$ac_ext <<EOF
11006 #line 11007 "configure"
11007 #include "confdefs.h"
11008 #include <GL/gl.h>
11009 EOF
11010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11011 { (eval echo configure:11012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11013 if test -z "$ac_err"; then
11014 rm -rf conftest*
11015 eval "ac_cv_header_$ac_safe=yes"
11016 else
11017 echo "$ac_err" >&5
11018 echo "configure: failed program was:" >&5
11019 cat conftest.$ac_ext >&5
11020 rm -rf conftest*
11021 eval "ac_cv_header_$ac_safe=no"
11022 fi
11023 rm -f conftest*
11024 fi
11025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11026 echo "$ac_t""yes" 1>&6
11027
11028 cat >> confdefs.h <<\EOF
11029 #define wxUSE_OPENGL 1
11030 EOF
11031
11032 cat >> confdefs.h <<\EOF
11033 #define wxUSE_GLCANVAS 1
11034 EOF
11035
11036 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
11037 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
11038 echo "configure:11039: checking for glFlush in -lGL" >&5
11039 ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
11040 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11041 echo $ac_n "(cached) $ac_c" 1>&6
11042 else
11043 ac_save_LIBS="$LIBS"
11044 LIBS="-lGL $LIBS"
11045 cat > conftest.$ac_ext <<EOF
11046 #line 11047 "configure"
11047 #include "confdefs.h"
11048 /* Override any gcc2 internal prototype to avoid an error. */
11049 /* We use char because int might match the return type of a gcc2
11050 builtin and then its argument prototype would still apply. */
11051 char glFlush();
11052
11053 int main() {
11054 glFlush()
11055 ; return 0; }
11056 EOF
11057 if { (eval echo configure:11058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11058 rm -rf conftest*
11059 eval "ac_cv_lib_$ac_lib_var=yes"
11060 else
11061 echo "configure: failed program was:" >&5
11062 cat conftest.$ac_ext >&5
11063 rm -rf conftest*
11064 eval "ac_cv_lib_$ac_lib_var=no"
11065 fi
11066 rm -f conftest*
11067 LIBS="$ac_save_LIBS"
11068
11069 fi
11070 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11071 echo "$ac_t""yes" 1>&6
11072
11073 OPENGL_LIBS="-lGL -lGLU"
11074
11075 else
11076 echo "$ac_t""no" 1>&6
11077
11078 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
11079 echo "configure:11080: checking for glFlush in -lMesaGL" >&5
11080 ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
11081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11082 echo $ac_n "(cached) $ac_c" 1>&6
11083 else
11084 ac_save_LIBS="$LIBS"
11085 LIBS="-lMesaGL $LIBS"
11086 cat > conftest.$ac_ext <<EOF
11087 #line 11088 "configure"
11088 #include "confdefs.h"
11089 /* Override any gcc2 internal prototype to avoid an error. */
11090 /* We use char because int might match the return type of a gcc2
11091 builtin and then its argument prototype would still apply. */
11092 char glFlush();
11093
11094 int main() {
11095 glFlush()
11096 ; return 0; }
11097 EOF
11098 if { (eval echo configure:11099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11099 rm -rf conftest*
11100 eval "ac_cv_lib_$ac_lib_var=yes"
11101 else
11102 echo "configure: failed program was:" >&5
11103 cat conftest.$ac_ext >&5
11104 rm -rf conftest*
11105 eval "ac_cv_lib_$ac_lib_var=no"
11106 fi
11107 rm -f conftest*
11108 LIBS="$ac_save_LIBS"
11109
11110 fi
11111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11112 echo "$ac_t""yes" 1>&6
11113
11114 OPENGL_LIBS="-lMesaGL -lMesaGLU"
11115
11116 else
11117 echo "$ac_t""no" 1>&6
11118 fi
11119
11120
11121 fi
11122
11123
11124 else
11125 echo "$ac_t""no" 1>&6
11126 wxUSE_OPENGL=0
11127 fi
11128
11129 fi
11130 fi
11131
11132 if test -z "$TOOLKIT_VPATH" ; then
11133 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
11134 fi
11135
11136 if test -n "$TOOLKIT" ; then
11137 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
11138 fi
11139
11140 if test "$wxUSE_CYGWIN" = 1 ; then
11141 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
11142 fi
11143
11144 lib_debug_suffix=
11145 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
11146 lib_debug_suffix=d
11147 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}d"
11148 fi
11149
11150 TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}-${WX_RELEASE}"
11151 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}_gl-${WX_RELEASE}"
11152
11153 if test "$cross_compiling" = "yes"; then
11154 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
11155 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
11156 fi
11157
11158 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
11159 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
11160
11161 WXCONFIG_LIBS="-l${WX_LIBRARY}"
11162
11163 if test "$wxUSE_OPENGL" = "yes"; then
11164 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} $OPENGL_LIBS"
11165 fi
11166
11167 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
11168 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
11169
11170 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11171 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11172
11173 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
11174 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
11175 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
11176 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
11177
11178 WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
11179
11180
11181
11182 if test "$wxUSE_SHARED" = "yes"; then
11183
11184 if test "$wxUSE_OPENGL" = "yes"; then
11185 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11186 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
11187 else
11188 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11189 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
11190 fi
11191
11192 if test "$GCC" = "yes"; then
11193 PIC_FLAG="-fPIC"
11194 fi
11195
11196 SHARED_LD="${CXX} -shared -o"
11197
11198 case "${host}" in
11199 *-hp-hpux* )
11200 if test "$GCC" != "yes"; then
11201 LDFLAGS="-L/usr/lib"
11202
11203 SHARED_LD="${CXX} -b -o"
11204 PIC_FLAG="+Z"
11205 fi
11206
11207 if test "$wxUSE_OPENGL" = "yes"; then
11208 WX_ALL_INSTALLED="preinstall_gl"
11209 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
11210 else
11211 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
11212 fi
11213 ;;
11214
11215 *-*-linux* )
11216 if test "$GCC" != "yes"; then
11217 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
11218 echo "configure:11219: checking for Intel compiler" >&5
11219 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
11220 echo $ac_n "(cached) $ac_c" 1>&6
11221 else
11222
11223 cat > conftest.$ac_ext <<EOF
11224 #line 11225 "configure"
11225 #include "confdefs.h"
11226
11227 int main() {
11228
11229 #ifndef __INTEL_COMPILER
11230 #error Not icc
11231 #endif
11232
11233 ; return 0; }
11234 EOF
11235 if { (eval echo configure:11236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11236 rm -rf conftest*
11237 wx_cv_prog_icc=yes
11238 else
11239 echo "configure: failed program was:" >&5
11240 cat conftest.$ac_ext >&5
11241 rm -rf conftest*
11242 wx_cv_prog_icc=no
11243
11244 fi
11245 rm -f conftest*
11246
11247 fi
11248
11249 echo "$ac_t""$wx_cv_prog_icc" 1>&6
11250 if test "$wx_cv_prog_icc" = "yes"; then
11251 PIC_FLAG="-KPIC"
11252 fi
11253 fi
11254
11255 if test "$wxUSE_SONAME" = "yes" ; then
11256 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
11257 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
11258 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
11259 fi
11260 ;;
11261
11262 *-*-solaris2* )
11263 if test "$GCC" = yes ; then
11264 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
11265 else
11266 SHARED_LD="${CXX} -G -o"
11267 PIC_FLAG="-KPIC"
11268 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
11269 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}"
11270 fi
11271 ;;
11272
11273 *-*-darwin* )
11274 CFLAGS="${CFLAGS} -fno-common"
11275 CXXFLAGS="${CXXFLAGS} -fno-common"
11276 SHARED_LD="${CXX} -dynamiclib -o"
11277 PIC_FLAG="-dynamic -fPIC"
11278 ;;
11279
11280 *-*-aix* )
11281 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
11282 ;;
11283
11284 *-*-cygwin* | *-*-mingw32* )
11285 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_NAME_STATIC} -o"
11286 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXUSINGDLL=1"
11287 WXMSW_DLL_DEFINES="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
11288
11289 if test "$wxUSE_OPENGL" = "yes"; then
11290 WX_ALL_INSTALLED="preinstall_gl"
11291 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
11292 else
11293 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
11294 fi
11295 PIC_FLAG=
11296 ;;
11297
11298 *-pc-os2_emx )
11299 wxUSE_SHARED=no
11300 ;;
11301
11302 *-*-beos* )
11303 SHARED_LD="${LD} -shared -o"
11304 ;;
11305
11306 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
11307 *-*-sunos4* | \
11308 *-*-irix5* | *-*-irix6* | \
11309 *-*-osf* | \
11310 *-*-dgux5* | \
11311 *-*-sysv5* )
11312 ;;
11313
11314 *)
11315 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
11316 esac
11317
11318 if test "x$WX_TARGET_LIBRARY" = "x"; then
11319 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
11320 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
11321 fi
11322
11323 WX_TARGET_LIBRARY_TYPE="so"
11324 fi
11325
11326 if test "$wxUSE_SHARED" = "no"; then
11327
11328 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
11329 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11330 fi
11331
11332 if test "$wxUSE_OPENGL" = "yes"; then
11333 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
11334 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
11335 else
11336 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
11337 fi
11338
11339 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11340 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
11341
11342 WX_TARGET_LIBRARY_TYPE="a"
11343 fi
11344
11345 if test "$wxUSE_MAC" = 1; then
11346 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
11347 # Extract the first word of "Rez", so it can be a program name with args.
11348 set dummy Rez; ac_word=$2
11349 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11350 echo "configure:11351: checking for $ac_word" >&5
11351 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
11352 echo $ac_n "(cached) $ac_c" 1>&6
11353 else
11354 if test -n "$RESCOMP"; then
11355 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
11356 else
11357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11358 ac_dummy="$PATH"
11359 for ac_dir in $ac_dummy; do
11360 test -z "$ac_dir" && ac_dir=.
11361 if test -f $ac_dir/$ac_word; then
11362 ac_cv_prog_RESCOMP="Rez"
11363 break
11364 fi
11365 done
11366 IFS="$ac_save_ifs"
11367 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
11368 fi
11369 fi
11370 RESCOMP="$ac_cv_prog_RESCOMP"
11371 if test -n "$RESCOMP"; then
11372 echo "$ac_t""$RESCOMP" 1>&6
11373 else
11374 echo "$ac_t""no" 1>&6
11375 fi
11376
11377 # Extract the first word of "Derez", so it can be a program name with args.
11378 set dummy Derez; ac_word=$2
11379 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11380 echo "configure:11381: checking for $ac_word" >&5
11381 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
11382 echo $ac_n "(cached) $ac_c" 1>&6
11383 else
11384 if test -n "$DEREZ"; then
11385 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
11386 else
11387 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11388 ac_dummy="$PATH"
11389 for ac_dir in $ac_dummy; do
11390 test -z "$ac_dir" && ac_dir=.
11391 if test -f $ac_dir/$ac_word; then
11392 ac_cv_prog_DEREZ="Derez"
11393 break
11394 fi
11395 done
11396 IFS="$ac_save_ifs"
11397 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
11398 fi
11399 fi
11400 DEREZ="$ac_cv_prog_DEREZ"
11401 if test -n "$DEREZ"; then
11402 echo "$ac_t""$DEREZ" 1>&6
11403 else
11404 echo "$ac_t""no" 1>&6
11405 fi
11406
11407 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
11408 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
11409 fi
11410
11411
11412 for ac_hdr in strings.h
11413 do
11414 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11415 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11416 echo "configure:11417: checking for $ac_hdr" >&5
11417 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11418 echo $ac_n "(cached) $ac_c" 1>&6
11419 else
11420 cat > conftest.$ac_ext <<EOF
11421 #line 11422 "configure"
11422 #include "confdefs.h"
11423 #include <$ac_hdr>
11424 EOF
11425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11426 { (eval echo configure:11427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11428 if test -z "$ac_err"; then
11429 rm -rf conftest*
11430 eval "ac_cv_header_$ac_safe=yes"
11431 else
11432 echo "$ac_err" >&5
11433 echo "configure: failed program was:" >&5
11434 cat conftest.$ac_ext >&5
11435 rm -rf conftest*
11436 eval "ac_cv_header_$ac_safe=no"
11437 fi
11438 rm -f conftest*
11439 fi
11440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11441 echo "$ac_t""yes" 1>&6
11442 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11443 cat >> confdefs.h <<EOF
11444 #define $ac_tr_hdr 1
11445 EOF
11446
11447 else
11448 echo "$ac_t""no" 1>&6
11449 fi
11450 done
11451
11452 for ac_hdr in stdlib.h
11453 do
11454 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11455 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11456 echo "configure:11457: checking for $ac_hdr" >&5
11457 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11458 echo $ac_n "(cached) $ac_c" 1>&6
11459 else
11460 cat > conftest.$ac_ext <<EOF
11461 #line 11462 "configure"
11462 #include "confdefs.h"
11463 #include <$ac_hdr>
11464 EOF
11465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11466 { (eval echo configure:11467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11468 if test -z "$ac_err"; then
11469 rm -rf conftest*
11470 eval "ac_cv_header_$ac_safe=yes"
11471 else
11472 echo "$ac_err" >&5
11473 echo "configure: failed program was:" >&5
11474 cat conftest.$ac_ext >&5
11475 rm -rf conftest*
11476 eval "ac_cv_header_$ac_safe=no"
11477 fi
11478 rm -f conftest*
11479 fi
11480 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11481 echo "$ac_t""yes" 1>&6
11482 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11483 cat >> confdefs.h <<EOF
11484 #define $ac_tr_hdr 1
11485 EOF
11486
11487 else
11488 echo "$ac_t""no" 1>&6
11489 fi
11490 done
11491
11492 for ac_hdr in unistd.h
11493 do
11494 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11495 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11496 echo "configure:11497: checking for $ac_hdr" >&5
11497 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11498 echo $ac_n "(cached) $ac_c" 1>&6
11499 else
11500 cat > conftest.$ac_ext <<EOF
11501 #line 11502 "configure"
11502 #include "confdefs.h"
11503 #include <$ac_hdr>
11504 EOF
11505 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11506 { (eval echo configure:11507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11507 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11508 if test -z "$ac_err"; then
11509 rm -rf conftest*
11510 eval "ac_cv_header_$ac_safe=yes"
11511 else
11512 echo "$ac_err" >&5
11513 echo "configure: failed program was:" >&5
11514 cat conftest.$ac_ext >&5
11515 rm -rf conftest*
11516 eval "ac_cv_header_$ac_safe=no"
11517 fi
11518 rm -f conftest*
11519 fi
11520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11521 echo "$ac_t""yes" 1>&6
11522 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11523 cat >> confdefs.h <<EOF
11524 #define $ac_tr_hdr 1
11525 EOF
11526
11527 else
11528 echo "$ac_t""no" 1>&6
11529 fi
11530 done
11531
11532 for ac_hdr in wchar.h
11533 do
11534 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11535 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11536 echo "configure:11537: checking for $ac_hdr" >&5
11537 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11538 echo $ac_n "(cached) $ac_c" 1>&6
11539 else
11540 cat > conftest.$ac_ext <<EOF
11541 #line 11542 "configure"
11542 #include "confdefs.h"
11543 #include <$ac_hdr>
11544 EOF
11545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11546 { (eval echo configure:11547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11548 if test -z "$ac_err"; then
11549 rm -rf conftest*
11550 eval "ac_cv_header_$ac_safe=yes"
11551 else
11552 echo "$ac_err" >&5
11553 echo "configure: failed program was:" >&5
11554 cat conftest.$ac_ext >&5
11555 rm -rf conftest*
11556 eval "ac_cv_header_$ac_safe=no"
11557 fi
11558 rm -f conftest*
11559 fi
11560 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11561 echo "$ac_t""yes" 1>&6
11562 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11563 cat >> confdefs.h <<EOF
11564 #define $ac_tr_hdr 1
11565 EOF
11566
11567 else
11568 echo "$ac_t""no" 1>&6
11569 fi
11570 done
11571
11572 for ac_hdr in wcstr.h
11573 do
11574 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11575 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11576 echo "configure:11577: checking for $ac_hdr" >&5
11577 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11578 echo $ac_n "(cached) $ac_c" 1>&6
11579 else
11580 cat > conftest.$ac_ext <<EOF
11581 #line 11582 "configure"
11582 #include "confdefs.h"
11583 #include <$ac_hdr>
11584 EOF
11585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11586 { (eval echo configure:11587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11587 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11588 if test -z "$ac_err"; then
11589 rm -rf conftest*
11590 eval "ac_cv_header_$ac_safe=yes"
11591 else
11592 echo "$ac_err" >&5
11593 echo "configure: failed program was:" >&5
11594 cat conftest.$ac_ext >&5
11595 rm -rf conftest*
11596 eval "ac_cv_header_$ac_safe=no"
11597 fi
11598 rm -f conftest*
11599 fi
11600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11601 echo "$ac_t""yes" 1>&6
11602 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11603 cat >> confdefs.h <<EOF
11604 #define $ac_tr_hdr 1
11605 EOF
11606
11607 else
11608 echo "$ac_t""no" 1>&6
11609 fi
11610 done
11611
11612 for ac_hdr in fnmatch.h
11613 do
11614 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11615 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11616 echo "configure:11617: checking for $ac_hdr" >&5
11617 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11618 echo $ac_n "(cached) $ac_c" 1>&6
11619 else
11620 cat > conftest.$ac_ext <<EOF
11621 #line 11622 "configure"
11622 #include "confdefs.h"
11623 #include <$ac_hdr>
11624 EOF
11625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11626 { (eval echo configure:11627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11628 if test -z "$ac_err"; then
11629 rm -rf conftest*
11630 eval "ac_cv_header_$ac_safe=yes"
11631 else
11632 echo "$ac_err" >&5
11633 echo "configure: failed program was:" >&5
11634 cat conftest.$ac_ext >&5
11635 rm -rf conftest*
11636 eval "ac_cv_header_$ac_safe=no"
11637 fi
11638 rm -f conftest*
11639 fi
11640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11641 echo "$ac_t""yes" 1>&6
11642 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11643 cat >> confdefs.h <<EOF
11644 #define $ac_tr_hdr 1
11645 EOF
11646
11647 else
11648 echo "$ac_t""no" 1>&6
11649 fi
11650 done
11651
11652 for ac_hdr in iconv.h
11653 do
11654 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11655 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11656 echo "configure:11657: checking for $ac_hdr" >&5
11657 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11658 echo $ac_n "(cached) $ac_c" 1>&6
11659 else
11660 cat > conftest.$ac_ext <<EOF
11661 #line 11662 "configure"
11662 #include "confdefs.h"
11663 #include <$ac_hdr>
11664 EOF
11665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11666 { (eval echo configure:11667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11668 if test -z "$ac_err"; then
11669 rm -rf conftest*
11670 eval "ac_cv_header_$ac_safe=yes"
11671 else
11672 echo "$ac_err" >&5
11673 echo "configure: failed program was:" >&5
11674 cat conftest.$ac_ext >&5
11675 rm -rf conftest*
11676 eval "ac_cv_header_$ac_safe=no"
11677 fi
11678 rm -f conftest*
11679 fi
11680 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11681 echo "$ac_t""yes" 1>&6
11682 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11683 cat >> confdefs.h <<EOF
11684 #define $ac_tr_hdr 1
11685 EOF
11686
11687 else
11688 echo "$ac_t""no" 1>&6
11689 fi
11690 done
11691
11692 for ac_hdr in langinfo.h
11693 do
11694 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11695 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11696 echo "configure:11697: checking for $ac_hdr" >&5
11697 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11698 echo $ac_n "(cached) $ac_c" 1>&6
11699 else
11700 cat > conftest.$ac_ext <<EOF
11701 #line 11702 "configure"
11702 #include "confdefs.h"
11703 #include <$ac_hdr>
11704 EOF
11705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11706 { (eval echo configure:11707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11708 if test -z "$ac_err"; then
11709 rm -rf conftest*
11710 eval "ac_cv_header_$ac_safe=yes"
11711 else
11712 echo "$ac_err" >&5
11713 echo "configure: failed program was:" >&5
11714 cat conftest.$ac_ext >&5
11715 rm -rf conftest*
11716 eval "ac_cv_header_$ac_safe=no"
11717 fi
11718 rm -f conftest*
11719 fi
11720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11721 echo "$ac_t""yes" 1>&6
11722 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11723 cat >> confdefs.h <<EOF
11724 #define $ac_tr_hdr 1
11725 EOF
11726
11727 else
11728 echo "$ac_t""no" 1>&6
11729 fi
11730 done
11731
11732
11733 if test "$wxUSE_GUI" = "yes"; then
11734 if test "$wxUSE_UNIX" = "yes"; then
11735 for ac_hdr in X11/XKBlib.h
11736 do
11737 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11738 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11739 echo "configure:11740: checking for $ac_hdr" >&5
11740 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11741 echo $ac_n "(cached) $ac_c" 1>&6
11742 else
11743 cat > conftest.$ac_ext <<EOF
11744 #line 11745 "configure"
11745 #include "confdefs.h"
11746 #include <$ac_hdr>
11747 EOF
11748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11749 { (eval echo configure:11750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11751 if test -z "$ac_err"; then
11752 rm -rf conftest*
11753 eval "ac_cv_header_$ac_safe=yes"
11754 else
11755 echo "$ac_err" >&5
11756 echo "configure: failed program was:" >&5
11757 cat conftest.$ac_ext >&5
11758 rm -rf conftest*
11759 eval "ac_cv_header_$ac_safe=no"
11760 fi
11761 rm -f conftest*
11762 fi
11763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11764 echo "$ac_t""yes" 1>&6
11765 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11766 cat >> confdefs.h <<EOF
11767 #define $ac_tr_hdr 1
11768 EOF
11769
11770 else
11771 echo "$ac_t""no" 1>&6
11772 fi
11773 done
11774
11775 fi
11776 fi
11777
11778
11779 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
11780 echo "configure:11781: checking for ANSI C header files" >&5
11781 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11782 echo $ac_n "(cached) $ac_c" 1>&6
11783 else
11784 cat > conftest.$ac_ext <<EOF
11785 #line 11786 "configure"
11786 #include "confdefs.h"
11787 #include <stdlib.h>
11788 #include <stdarg.h>
11789 #include <string.h>
11790 #include <float.h>
11791 EOF
11792 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11793 { (eval echo configure:11794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11794 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11795 if test -z "$ac_err"; then
11796 rm -rf conftest*
11797 ac_cv_header_stdc=yes
11798 else
11799 echo "$ac_err" >&5
11800 echo "configure: failed program was:" >&5
11801 cat conftest.$ac_ext >&5
11802 rm -rf conftest*
11803 ac_cv_header_stdc=no
11804 fi
11805 rm -f conftest*
11806
11807 if test $ac_cv_header_stdc = yes; then
11808 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11809 cat > conftest.$ac_ext <<EOF
11810 #line 11811 "configure"
11811 #include "confdefs.h"
11812 #include <string.h>
11813 EOF
11814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11815 egrep "memchr" >/dev/null 2>&1; then
11816 :
11817 else
11818 rm -rf conftest*
11819 ac_cv_header_stdc=no
11820 fi
11821 rm -f conftest*
11822
11823 fi
11824
11825 if test $ac_cv_header_stdc = yes; then
11826 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11827 cat > conftest.$ac_ext <<EOF
11828 #line 11829 "configure"
11829 #include "confdefs.h"
11830 #include <stdlib.h>
11831 EOF
11832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11833 egrep "free" >/dev/null 2>&1; then
11834 :
11835 else
11836 rm -rf conftest*
11837 ac_cv_header_stdc=no
11838 fi
11839 rm -f conftest*
11840
11841 fi
11842
11843 if test $ac_cv_header_stdc = yes; then
11844 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11845 if test "$cross_compiling" = yes; then
11846 :
11847 else
11848 cat > conftest.$ac_ext <<EOF
11849 #line 11850 "configure"
11850 #include "confdefs.h"
11851 #include <ctype.h>
11852 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11853 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11854 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11855 int main () { int i; for (i = 0; i < 256; i++)
11856 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11857 exit (0); }
11858
11859 EOF
11860 if { (eval echo configure:11861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11861 then
11862 :
11863 else
11864 echo "configure: failed program was:" >&5
11865 cat conftest.$ac_ext >&5
11866 rm -fr conftest*
11867 ac_cv_header_stdc=no
11868 fi
11869 rm -fr conftest*
11870 fi
11871
11872 fi
11873 fi
11874
11875 echo "$ac_t""$ac_cv_header_stdc" 1>&6
11876 if test $ac_cv_header_stdc = yes; then
11877 cat >> confdefs.h <<\EOF
11878 #define STDC_HEADERS 1
11879 EOF
11880
11881 fi
11882
11883 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
11884 echo "configure:11885: checking for mode_t" >&5
11885 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11886 echo $ac_n "(cached) $ac_c" 1>&6
11887 else
11888 cat > conftest.$ac_ext <<EOF
11889 #line 11890 "configure"
11890 #include "confdefs.h"
11891 #include <sys/types.h>
11892 #if STDC_HEADERS
11893 #include <stdlib.h>
11894 #include <stddef.h>
11895 #endif
11896 EOF
11897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11898 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11899 rm -rf conftest*
11900 ac_cv_type_mode_t=yes
11901 else
11902 rm -rf conftest*
11903 ac_cv_type_mode_t=no
11904 fi
11905 rm -f conftest*
11906
11907 fi
11908 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11909 if test $ac_cv_type_mode_t = no; then
11910 cat >> confdefs.h <<\EOF
11911 #define mode_t int
11912 EOF
11913
11914 fi
11915
11916 echo $ac_n "checking for off_t""... $ac_c" 1>&6
11917 echo "configure:11918: checking for off_t" >&5
11918 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11919 echo $ac_n "(cached) $ac_c" 1>&6
11920 else
11921 cat > conftest.$ac_ext <<EOF
11922 #line 11923 "configure"
11923 #include "confdefs.h"
11924 #include <sys/types.h>
11925 #if STDC_HEADERS
11926 #include <stdlib.h>
11927 #include <stddef.h>
11928 #endif
11929 EOF
11930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11931 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11932 rm -rf conftest*
11933 ac_cv_type_off_t=yes
11934 else
11935 rm -rf conftest*
11936 ac_cv_type_off_t=no
11937 fi
11938 rm -f conftest*
11939
11940 fi
11941 echo "$ac_t""$ac_cv_type_off_t" 1>&6
11942 if test $ac_cv_type_off_t = no; then
11943 cat >> confdefs.h <<\EOF
11944 #define off_t long
11945 EOF
11946
11947 fi
11948
11949 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
11950 echo "configure:11951: checking for pid_t" >&5
11951 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11952 echo $ac_n "(cached) $ac_c" 1>&6
11953 else
11954 cat > conftest.$ac_ext <<EOF
11955 #line 11956 "configure"
11956 #include "confdefs.h"
11957 #include <sys/types.h>
11958 #if STDC_HEADERS
11959 #include <stdlib.h>
11960 #include <stddef.h>
11961 #endif
11962 EOF
11963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11964 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11965 rm -rf conftest*
11966 ac_cv_type_pid_t=yes
11967 else
11968 rm -rf conftest*
11969 ac_cv_type_pid_t=no
11970 fi
11971 rm -f conftest*
11972
11973 fi
11974 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11975 if test $ac_cv_type_pid_t = no; then
11976 cat >> confdefs.h <<\EOF
11977 #define pid_t int
11978 EOF
11979
11980 fi
11981
11982 echo $ac_n "checking for size_t""... $ac_c" 1>&6
11983 echo "configure:11984: checking for size_t" >&5
11984 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11985 echo $ac_n "(cached) $ac_c" 1>&6
11986 else
11987 cat > conftest.$ac_ext <<EOF
11988 #line 11989 "configure"
11989 #include "confdefs.h"
11990 #include <sys/types.h>
11991 #if STDC_HEADERS
11992 #include <stdlib.h>
11993 #include <stddef.h>
11994 #endif
11995 EOF
11996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11997 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11998 rm -rf conftest*
11999 ac_cv_type_size_t=yes
12000 else
12001 rm -rf conftest*
12002 ac_cv_type_size_t=no
12003 fi
12004 rm -f conftest*
12005
12006 fi
12007 echo "$ac_t""$ac_cv_type_size_t" 1>&6
12008 if test $ac_cv_type_size_t = no; then
12009 cat >> confdefs.h <<\EOF
12010 #define size_t unsigned
12011 EOF
12012
12013 fi
12014
12015 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
12016 echo "configure:12017: checking for uid_t in sys/types.h" >&5
12017 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
12018 echo $ac_n "(cached) $ac_c" 1>&6
12019 else
12020 cat > conftest.$ac_ext <<EOF
12021 #line 12022 "configure"
12022 #include "confdefs.h"
12023 #include <sys/types.h>
12024 EOF
12025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12026 egrep "uid_t" >/dev/null 2>&1; then
12027 rm -rf conftest*
12028 ac_cv_type_uid_t=yes
12029 else
12030 rm -rf conftest*
12031 ac_cv_type_uid_t=no
12032 fi
12033 rm -f conftest*
12034
12035 fi
12036
12037 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
12038 if test $ac_cv_type_uid_t = no; then
12039 cat >> confdefs.h <<\EOF
12040 #define uid_t int
12041 EOF
12042
12043 cat >> confdefs.h <<\EOF
12044 #define gid_t int
12045 EOF
12046
12047 fi
12048
12049
12050 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
12051 echo "configure:12052: checking for wchar_t" >&5
12052 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
12053 echo $ac_n "(cached) $ac_c" 1>&6
12054 else
12055
12056 cat > conftest.$ac_ext <<EOF
12057 #line 12058 "configure"
12058 #include "confdefs.h"
12059 #include <wchar.h>
12060 int main() {
12061
12062 wchar_t wc, *ws;
12063 wc = L'a';
12064 ws = L"Hello, world!";
12065
12066 ; return 0; }
12067 EOF
12068 if { (eval echo configure:12069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12069 rm -rf conftest*
12070 wx_cv_type_wchar_t=yes
12071 else
12072 echo "configure: failed program was:" >&5
12073 cat conftest.$ac_ext >&5
12074 rm -rf conftest*
12075 cat > conftest.$ac_ext <<EOF
12076 #line 12077 "configure"
12077 #include "confdefs.h"
12078 #include <stdlib.h>
12079 int main() {
12080
12081 wchar_t wc, *ws;
12082 wc = L'a';
12083 ws = L"Hello, world!";
12084
12085 ; return 0; }
12086 EOF
12087 if { (eval echo configure:12088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12088 rm -rf conftest*
12089 wx_cv_type_wchar_t=yes
12090 else
12091 echo "configure: failed program was:" >&5
12092 cat conftest.$ac_ext >&5
12093 rm -rf conftest*
12094 wx_cv_type_wchar_t=no
12095 fi
12096 rm -f conftest*
12097
12098 fi
12099 rm -f conftest*
12100
12101 fi
12102
12103 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
12104
12105 if test "$wx_cv_type_wchar_t" = "yes"; then
12106 cat >> confdefs.h <<\EOF
12107 #define wxUSE_WCHAR_T 1
12108 EOF
12109
12110 fi
12111
12112
12113 ac_ext=C
12114 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12115 ac_cpp='$CXXCPP $CPPFLAGS'
12116 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12117 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12118 cross_compiling=$ac_cv_prog_cxx_cross
12119
12120 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
12121 echo "configure:12122: checking if size_t is unsigned int" >&5
12122 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
12123 echo $ac_n "(cached) $ac_c" 1>&6
12124 else
12125 cat > conftest.$ac_ext <<EOF
12126 #line 12127 "configure"
12127 #include "confdefs.h"
12128 #include <stddef.h>
12129 int main() {
12130
12131 return 0; }
12132
12133 struct Foo { void foo(size_t); void foo(unsigned int); };
12134
12135 int bar() {
12136
12137 ; return 0; }
12138 EOF
12139 if { (eval echo configure:12140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12140 rm -rf conftest*
12141 wx_cv_size_t_is_uint=no
12142 else
12143 echo "configure: failed program was:" >&5
12144 cat conftest.$ac_ext >&5
12145 rm -rf conftest*
12146 wx_cv_size_t_is_uint=yes
12147
12148 fi
12149 rm -f conftest*
12150
12151 fi
12152
12153 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
12154
12155 if test "$wx_cv_size_t_is_uint" = "yes"; then
12156 cat >> confdefs.h <<\EOF
12157 #define wxSIZE_T_IS_UINT 1
12158 EOF
12159
12160 else
12161 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
12162 echo "configure:12163: checking if size_t is unsigned long" >&5
12163 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
12164 echo $ac_n "(cached) $ac_c" 1>&6
12165 else
12166 cat > conftest.$ac_ext <<EOF
12167 #line 12168 "configure"
12168 #include "confdefs.h"
12169 #include <stddef.h>
12170 int main() {
12171
12172 return 0; }
12173
12174 struct Foo { void foo(size_t); void foo(unsigned long); };
12175
12176 int bar() {
12177
12178 ; return 0; }
12179 EOF
12180 if { (eval echo configure:12181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12181 rm -rf conftest*
12182 wx_cv_size_t_is_ulong=no
12183 else
12184 echo "configure: failed program was:" >&5
12185 cat conftest.$ac_ext >&5
12186 rm -rf conftest*
12187 wx_cv_size_t_is_ulong=yes
12188
12189 fi
12190 rm -f conftest*
12191
12192 fi
12193
12194 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
12195
12196 if test "$wx_cv_size_t_is_ulong" = "yes"; then
12197 cat >> confdefs.h <<\EOF
12198 #define wxSIZE_T_IS_ULONG 1
12199 EOF
12200
12201 fi
12202 fi
12203
12204 ac_ext=c
12205 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12206 ac_cpp='$CPP $CPPFLAGS'
12207 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12208 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12209 cross_compiling=$ac_cv_prog_cc_cross
12210
12211
12212
12213 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
12214 echo "configure:12215: checking for pw_gecos in struct passwd" >&5
12215 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
12216 echo $ac_n "(cached) $ac_c" 1>&6
12217 else
12218
12219 cat > conftest.$ac_ext <<EOF
12220 #line 12221 "configure"
12221 #include "confdefs.h"
12222 #include <pwd.h>
12223 int main() {
12224
12225 char *p;
12226 struct passwd *pw;
12227 p = pw->pw_gecos;
12228
12229 ; return 0; }
12230 EOF
12231 if { (eval echo configure:12232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12232 rm -rf conftest*
12233
12234 wx_cv_struct_pw_gecos=yes
12235
12236 else
12237 echo "configure: failed program was:" >&5
12238 cat conftest.$ac_ext >&5
12239 rm -rf conftest*
12240
12241 wx_cv_struct_pw_gecos=no
12242
12243
12244 fi
12245 rm -f conftest*
12246
12247
12248 fi
12249
12250 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
12251
12252 if test "$wx_cv_struct_pw_gecos" = "yes"; then
12253 cat >> confdefs.h <<\EOF
12254 #define HAVE_PW_GECOS 1
12255 EOF
12256
12257 fi
12258
12259
12260 echo $ac_n "checking for working const""... $ac_c" 1>&6
12261 echo "configure:12262: checking for working const" >&5
12262 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
12263 echo $ac_n "(cached) $ac_c" 1>&6
12264 else
12265 cat > conftest.$ac_ext <<EOF
12266 #line 12267 "configure"
12267 #include "confdefs.h"
12268
12269 int main() {
12270
12271 /* Ultrix mips cc rejects this. */
12272 typedef int charset[2]; const charset x;
12273 /* SunOS 4.1.1 cc rejects this. */
12274 char const *const *ccp;
12275 char **p;
12276 /* NEC SVR4.0.2 mips cc rejects this. */
12277 struct point {int x, y;};
12278 static struct point const zero = {0,0};
12279 /* AIX XL C 1.02.0.0 rejects this.
12280 It does not let you subtract one const X* pointer from another in an arm
12281 of an if-expression whose if-part is not a constant expression */
12282 const char *g = "string";
12283 ccp = &g + (g ? g-g : 0);
12284 /* HPUX 7.0 cc rejects these. */
12285 ++ccp;
12286 p = (char**) ccp;
12287 ccp = (char const *const *) p;
12288 { /* SCO 3.2v4 cc rejects this. */
12289 char *t;
12290 char const *s = 0 ? (char *) 0 : (char const *) 0;
12291
12292 *t++ = 0;
12293 }
12294 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12295 int x[] = {25, 17};
12296 const int *foo = &x[0];
12297 ++foo;
12298 }
12299 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12300 typedef const int *iptr;
12301 iptr p = 0;
12302 ++p;
12303 }
12304 { /* AIX XL C 1.02.0.0 rejects this saying
12305 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12306 struct s { int j; const int *ap[3]; };
12307 struct s *b; b->j = 5;
12308 }
12309 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12310 const int foo = 10;
12311 }
12312
12313 ; return 0; }
12314 EOF
12315 if { (eval echo configure:12316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12316 rm -rf conftest*
12317 ac_cv_c_const=yes
12318 else
12319 echo "configure: failed program was:" >&5
12320 cat conftest.$ac_ext >&5
12321 rm -rf conftest*
12322 ac_cv_c_const=no
12323 fi
12324 rm -f conftest*
12325 fi
12326
12327 echo "$ac_t""$ac_cv_c_const" 1>&6
12328 if test $ac_cv_c_const = no; then
12329 cat >> confdefs.h <<\EOF
12330 #define const
12331 EOF
12332
12333 fi
12334
12335 echo $ac_n "checking for inline""... $ac_c" 1>&6
12336 echo "configure:12337: checking for inline" >&5
12337 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
12338 echo $ac_n "(cached) $ac_c" 1>&6
12339 else
12340 ac_cv_c_inline=no
12341 for ac_kw in inline __inline__ __inline; do
12342 cat > conftest.$ac_ext <<EOF
12343 #line 12344 "configure"
12344 #include "confdefs.h"
12345
12346 int main() {
12347 } $ac_kw foo() {
12348 ; return 0; }
12349 EOF
12350 if { (eval echo configure:12351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12351 rm -rf conftest*
12352 ac_cv_c_inline=$ac_kw; break
12353 else
12354 echo "configure: failed program was:" >&5
12355 cat conftest.$ac_ext >&5
12356 fi
12357 rm -f conftest*
12358 done
12359
12360 fi
12361
12362 echo "$ac_t""$ac_cv_c_inline" 1>&6
12363 case "$ac_cv_c_inline" in
12364 inline | yes) ;;
12365 no) cat >> confdefs.h <<\EOF
12366 #define inline
12367 EOF
12368 ;;
12369 *) cat >> confdefs.h <<EOF
12370 #define inline $ac_cv_c_inline
12371 EOF
12372 ;;
12373 esac
12374
12375
12376 echo $ac_n "checking size of char""... $ac_c" 1>&6
12377 echo "configure:12378: checking size of char" >&5
12378 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
12379 echo $ac_n "(cached) $ac_c" 1>&6
12380 else
12381 if test "$cross_compiling" = yes; then
12382 ac_cv_sizeof_char=1
12383 else
12384 cat > conftest.$ac_ext <<EOF
12385 #line 12386 "configure"
12386 #include "confdefs.h"
12387 #include <stdio.h>
12388 #include <sys/types.h>
12389 main()
12390 {
12391 FILE *f=fopen("conftestval", "w");
12392 if (!f) exit(1);
12393 fprintf(f, "%d\n", sizeof(char));
12394 exit(0);
12395 }
12396 EOF
12397 if { (eval echo configure:12398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12398 then
12399 ac_cv_sizeof_char=`cat conftestval`
12400 else
12401 echo "configure: failed program was:" >&5
12402 cat conftest.$ac_ext >&5
12403 rm -fr conftest*
12404 ac_cv_sizeof_char=0
12405 fi
12406 rm -fr conftest*
12407 fi
12408
12409 fi
12410 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
12411 cat >> confdefs.h <<EOF
12412 #define SIZEOF_CHAR $ac_cv_sizeof_char
12413 EOF
12414
12415
12416 echo $ac_n "checking size of short""... $ac_c" 1>&6
12417 echo "configure:12418: checking size of short" >&5
12418 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
12419 echo $ac_n "(cached) $ac_c" 1>&6
12420 else
12421 if test "$cross_compiling" = yes; then
12422 ac_cv_sizeof_short=2
12423 else
12424 cat > conftest.$ac_ext <<EOF
12425 #line 12426 "configure"
12426 #include "confdefs.h"
12427 #include <stdio.h>
12428 #include <sys/types.h>
12429 main()
12430 {
12431 FILE *f=fopen("conftestval", "w");
12432 if (!f) exit(1);
12433 fprintf(f, "%d\n", sizeof(short));
12434 exit(0);
12435 }
12436 EOF
12437 if { (eval echo configure:12438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12438 then
12439 ac_cv_sizeof_short=`cat conftestval`
12440 else
12441 echo "configure: failed program was:" >&5
12442 cat conftest.$ac_ext >&5
12443 rm -fr conftest*
12444 ac_cv_sizeof_short=0
12445 fi
12446 rm -fr conftest*
12447 fi
12448
12449 fi
12450 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
12451 cat >> confdefs.h <<EOF
12452 #define SIZEOF_SHORT $ac_cv_sizeof_short
12453 EOF
12454
12455
12456 echo $ac_n "checking size of int *""... $ac_c" 1>&6
12457 echo "configure:12458: checking size of int *" >&5
12458 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
12459 echo $ac_n "(cached) $ac_c" 1>&6
12460 else
12461 if test "$cross_compiling" = yes; then
12462 ac_cv_sizeof_int_p=4
12463 else
12464 cat > conftest.$ac_ext <<EOF
12465 #line 12466 "configure"
12466 #include "confdefs.h"
12467 #include <stdio.h>
12468 #include <sys/types.h>
12469 main()
12470 {
12471 FILE *f=fopen("conftestval", "w");
12472 if (!f) exit(1);
12473 fprintf(f, "%d\n", sizeof(int *));
12474 exit(0);
12475 }
12476 EOF
12477 if { (eval echo configure:12478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12478 then
12479 ac_cv_sizeof_int_p=`cat conftestval`
12480 else
12481 echo "configure: failed program was:" >&5
12482 cat conftest.$ac_ext >&5
12483 rm -fr conftest*
12484 ac_cv_sizeof_int_p=0
12485 fi
12486 rm -fr conftest*
12487 fi
12488
12489 fi
12490 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
12491 cat >> confdefs.h <<EOF
12492 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
12493 EOF
12494
12495
12496 echo $ac_n "checking size of int""... $ac_c" 1>&6
12497 echo "configure:12498: checking size of int" >&5
12498 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
12499 echo $ac_n "(cached) $ac_c" 1>&6
12500 else
12501 if test "$cross_compiling" = yes; then
12502 ac_cv_sizeof_int=4
12503 else
12504 cat > conftest.$ac_ext <<EOF
12505 #line 12506 "configure"
12506 #include "confdefs.h"
12507 #include <stdio.h>
12508 #include <sys/types.h>
12509 main()
12510 {
12511 FILE *f=fopen("conftestval", "w");
12512 if (!f) exit(1);
12513 fprintf(f, "%d\n", sizeof(int));
12514 exit(0);
12515 }
12516 EOF
12517 if { (eval echo configure:12518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12518 then
12519 ac_cv_sizeof_int=`cat conftestval`
12520 else
12521 echo "configure: failed program was:" >&5
12522 cat conftest.$ac_ext >&5
12523 rm -fr conftest*
12524 ac_cv_sizeof_int=0
12525 fi
12526 rm -fr conftest*
12527 fi
12528
12529 fi
12530 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
12531 cat >> confdefs.h <<EOF
12532 #define SIZEOF_INT $ac_cv_sizeof_int
12533 EOF
12534
12535
12536 echo $ac_n "checking size of long""... $ac_c" 1>&6
12537 echo "configure:12538: checking size of long" >&5
12538 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
12539 echo $ac_n "(cached) $ac_c" 1>&6
12540 else
12541 if test "$cross_compiling" = yes; then
12542 ac_cv_sizeof_long=4
12543 else
12544 cat > conftest.$ac_ext <<EOF
12545 #line 12546 "configure"
12546 #include "confdefs.h"
12547 #include <stdio.h>
12548 #include <sys/types.h>
12549 main()
12550 {
12551 FILE *f=fopen("conftestval", "w");
12552 if (!f) exit(1);
12553 fprintf(f, "%d\n", sizeof(long));
12554 exit(0);
12555 }
12556 EOF
12557 if { (eval echo configure:12558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12558 then
12559 ac_cv_sizeof_long=`cat conftestval`
12560 else
12561 echo "configure: failed program was:" >&5
12562 cat conftest.$ac_ext >&5
12563 rm -fr conftest*
12564 ac_cv_sizeof_long=0
12565 fi
12566 rm -fr conftest*
12567 fi
12568
12569 fi
12570 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
12571 cat >> confdefs.h <<EOF
12572 #define SIZEOF_LONG $ac_cv_sizeof_long
12573 EOF
12574
12575
12576 echo $ac_n "checking size of long long""... $ac_c" 1>&6
12577 echo "configure:12578: checking size of long long" >&5
12578 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
12579 echo $ac_n "(cached) $ac_c" 1>&6
12580 else
12581 if test "$cross_compiling" = yes; then
12582 ac_cv_sizeof_long_long=0
12583 else
12584 cat > conftest.$ac_ext <<EOF
12585 #line 12586 "configure"
12586 #include "confdefs.h"
12587 #include <stdio.h>
12588 #include <sys/types.h>
12589 main()
12590 {
12591 FILE *f=fopen("conftestval", "w");
12592 if (!f) exit(1);
12593 fprintf(f, "%d\n", sizeof(long long));
12594 exit(0);
12595 }
12596 EOF
12597 if { (eval echo configure:12598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12598 then
12599 ac_cv_sizeof_long_long=`cat conftestval`
12600 else
12601 echo "configure: failed program was:" >&5
12602 cat conftest.$ac_ext >&5
12603 rm -fr conftest*
12604 ac_cv_sizeof_long_long=0
12605 fi
12606 rm -fr conftest*
12607 fi
12608
12609 fi
12610 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
12611 cat >> confdefs.h <<EOF
12612 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12613 EOF
12614
12615
12616
12617 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
12618 echo "configure:12619: checking size of wchar_t" >&5
12619 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
12620 echo $ac_n "(cached) $ac_c" 1>&6
12621 else
12622
12623 if test "$cross_compiling" = yes; then
12624 wx_cv_sizeof_wchar_t=4
12625
12626 else
12627 cat > conftest.$ac_ext <<EOF
12628 #line 12629 "configure"
12629 #include "confdefs.h"
12630
12631 #ifdef HAVE_WCHAR_H
12632 # include <wchar.h>
12633 #endif
12634 #ifdef HAVE_STDLIB_H
12635 # include <stdlib.h>
12636 #endif
12637 #include <stdio.h>
12638 int main()
12639 {
12640 FILE *f=fopen("conftestval", "w");
12641 if (!f) exit(1);
12642 fprintf(f, "%i", sizeof(wchar_t));
12643 exit(0);
12644 }
12645
12646 EOF
12647 if { (eval echo configure:12648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12648 then
12649 wx_cv_sizeof_wchar_t=`cat conftestval`
12650 else
12651 echo "configure: failed program was:" >&5
12652 cat conftest.$ac_ext >&5
12653 rm -fr conftest*
12654 wx_cv_sizeof_wchar_t=0
12655 fi
12656 rm -fr conftest*
12657 fi
12658
12659
12660 fi
12661
12662 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
12663
12664 cat >> confdefs.h <<EOF
12665 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
12666 EOF
12667
12668
12669 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
12670 echo "configure:12671: checking whether byte ordering is bigendian" >&5
12671 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
12672 echo $ac_n "(cached) $ac_c" 1>&6
12673 else
12674 ac_cv_c_bigendian=unknown
12675 # See if sys/param.h defines the BYTE_ORDER macro.
12676 cat > conftest.$ac_ext <<EOF
12677 #line 12678 "configure"
12678 #include "confdefs.h"
12679 #include <sys/types.h>
12680 #include <sys/param.h>
12681 int main() {
12682
12683 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12684 bogus endian macros
12685 #endif
12686 ; return 0; }
12687 EOF
12688 if { (eval echo configure:12689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12689 rm -rf conftest*
12690 # It does; now see whether it defined to BIG_ENDIAN or not.
12691 cat > conftest.$ac_ext <<EOF
12692 #line 12693 "configure"
12693 #include "confdefs.h"
12694 #include <sys/types.h>
12695 #include <sys/param.h>
12696 int main() {
12697
12698 #if BYTE_ORDER != BIG_ENDIAN
12699 not big endian
12700 #endif
12701 ; return 0; }
12702 EOF
12703 if { (eval echo configure:12704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12704 rm -rf conftest*
12705 ac_cv_c_bigendian=yes
12706 else
12707 echo "configure: failed program was:" >&5
12708 cat conftest.$ac_ext >&5
12709 rm -rf conftest*
12710 ac_cv_c_bigendian=no
12711 fi
12712 rm -f conftest*
12713 else
12714 echo "configure: failed program was:" >&5
12715 cat conftest.$ac_ext >&5
12716 fi
12717 rm -f conftest*
12718 if test $ac_cv_c_bigendian = unknown; then
12719 if test "$cross_compiling" = yes; then
12720 ac_cv_c_bigendian=unknown
12721 else
12722 cat > conftest.$ac_ext <<EOF
12723 #line 12724 "configure"
12724 #include "confdefs.h"
12725 main () {
12726 /* Are we little or big endian? From Harbison&Steele. */
12727 union
12728 {
12729 long l;
12730 char c[sizeof (long)];
12731 } u;
12732 u.l = 1;
12733 exit (u.c[sizeof (long) - 1] == 1);
12734 }
12735 EOF
12736 if { (eval echo configure:12737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12737 then
12738 ac_cv_c_bigendian=no
12739 else
12740 echo "configure: failed program was:" >&5
12741 cat conftest.$ac_ext >&5
12742 rm -fr conftest*
12743 ac_cv_c_bigendian=yes
12744 fi
12745 rm -fr conftest*
12746 fi
12747
12748 fi
12749 fi
12750
12751 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
12752 if test $ac_cv_c_bigendian = unknown; then
12753 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
12754 fi
12755 if test $ac_cv_c_bigendian = yes; then
12756 cat >> confdefs.h <<\EOF
12757 #define WORDS_BIGENDIAN 1
12758 EOF
12759
12760 fi
12761
12762
12763 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
12764 echo "configure:12765: checking how to run the C++ preprocessor" >&5
12765 if test -z "$CXXCPP"; then
12766 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
12767 echo $ac_n "(cached) $ac_c" 1>&6
12768 else
12769 ac_ext=C
12770 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12771 ac_cpp='$CXXCPP $CPPFLAGS'
12772 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12773 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12774 cross_compiling=$ac_cv_prog_cxx_cross
12775 CXXCPP="${CXX-g++} -E"
12776 cat > conftest.$ac_ext <<EOF
12777 #line 12778 "configure"
12778 #include "confdefs.h"
12779 #include <stdlib.h>
12780 EOF
12781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12782 { (eval echo configure:12783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12784 if test -z "$ac_err"; then
12785 :
12786 else
12787 echo "$ac_err" >&5
12788 echo "configure: failed program was:" >&5
12789 cat conftest.$ac_ext >&5
12790 rm -rf conftest*
12791 CXXCPP=/lib/cpp
12792 fi
12793 rm -f conftest*
12794 ac_cv_prog_CXXCPP="$CXXCPP"
12795 ac_ext=C
12796 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12797 ac_cpp='$CXXCPP $CPPFLAGS'
12798 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12799 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12800 cross_compiling=$ac_cv_prog_cxx_cross
12801 fi
12802 fi
12803 CXXCPP="$ac_cv_prog_CXXCPP"
12804 echo "$ac_t""$CXXCPP" 1>&6
12805
12806
12807 if test "$cross_compiling" = "yes"; then
12808 cat >> confdefs.h <<\EOF
12809 #define wxUSE_IOSTREAMH 1
12810 EOF
12811
12812 else
12813
12814 ac_ext=C
12815 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12816 ac_cpp='$CXXCPP $CPPFLAGS'
12817 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12818 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12819 cross_compiling=$ac_cv_prog_cxx_cross
12820
12821
12822 for ac_hdr in iostream
12823 do
12824 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12825 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12826 echo "configure:12827: checking for $ac_hdr" >&5
12827 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12828 echo $ac_n "(cached) $ac_c" 1>&6
12829 else
12830 cat > conftest.$ac_ext <<EOF
12831 #line 12832 "configure"
12832 #include "confdefs.h"
12833 #include <$ac_hdr>
12834 EOF
12835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12836 { (eval echo configure:12837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12838 if test -z "$ac_err"; then
12839 rm -rf conftest*
12840 eval "ac_cv_header_$ac_safe=yes"
12841 else
12842 echo "$ac_err" >&5
12843 echo "configure: failed program was:" >&5
12844 cat conftest.$ac_ext >&5
12845 rm -rf conftest*
12846 eval "ac_cv_header_$ac_safe=no"
12847 fi
12848 rm -f conftest*
12849 fi
12850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12851 echo "$ac_t""yes" 1>&6
12852 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12853 cat >> confdefs.h <<EOF
12854 #define $ac_tr_hdr 1
12855 EOF
12856
12857 else
12858 echo "$ac_t""no" 1>&6
12859 fi
12860 done
12861
12862
12863 if test "$ac_cv_header_iostream" = "yes" ; then
12864 :
12865 else
12866 cat >> confdefs.h <<\EOF
12867 #define wxUSE_IOSTREAMH 1
12868 EOF
12869
12870 fi
12871
12872 ac_ext=c
12873 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12874 ac_cpp='$CPP $CPPFLAGS'
12875 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12876 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12877 cross_compiling=$ac_cv_prog_cc_cross
12878
12879 fi
12880
12881
12882
12883 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
12884 echo "configure:12885: checking if C++ compiler supports bool" >&5
12885 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12886 echo $ac_n "(cached) $ac_c" 1>&6
12887 else
12888
12889
12890 ac_ext=C
12891 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12892 ac_cpp='$CXXCPP $CPPFLAGS'
12893 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12894 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12895 cross_compiling=$ac_cv_prog_cxx_cross
12896
12897
12898 cat > conftest.$ac_ext <<EOF
12899 #line 12900 "configure"
12900 #include "confdefs.h"
12901
12902
12903 int main() {
12904
12905 bool b = true;
12906
12907 return 0;
12908
12909 ; return 0; }
12910 EOF
12911 if { (eval echo configure:12912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12912 rm -rf conftest*
12913
12914 wx_cv_cpp_bool=yes
12915
12916 else
12917 echo "configure: failed program was:" >&5
12918 cat conftest.$ac_ext >&5
12919 rm -rf conftest*
12920
12921 wx_cv_cpp_bool=no
12922
12923
12924 fi
12925 rm -f conftest*
12926
12927 ac_ext=c
12928 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12929 ac_cpp='$CPP $CPPFLAGS'
12930 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12931 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12932 cross_compiling=$ac_cv_prog_cc_cross
12933
12934
12935 fi
12936
12937 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
12938
12939 if test "$wx_cv_cpp_bool" = "yes"; then
12940 cat >> confdefs.h <<\EOF
12941 #define HAVE_BOOL 1
12942 EOF
12943
12944 fi
12945
12946
12947
12948 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
12949 echo "configure:12950: checking for wcslen in -lc" >&5
12950 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12951 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12952 echo $ac_n "(cached) $ac_c" 1>&6
12953 else
12954 ac_save_LIBS="$LIBS"
12955 LIBS="-lc $LIBS"
12956 cat > conftest.$ac_ext <<EOF
12957 #line 12958 "configure"
12958 #include "confdefs.h"
12959 /* Override any gcc2 internal prototype to avoid an error. */
12960 /* We use char because int might match the return type of a gcc2
12961 builtin and then its argument prototype would still apply. */
12962 char wcslen();
12963
12964 int main() {
12965 wcslen()
12966 ; return 0; }
12967 EOF
12968 if { (eval echo configure:12969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12969 rm -rf conftest*
12970 eval "ac_cv_lib_$ac_lib_var=yes"
12971 else
12972 echo "configure: failed program was:" >&5
12973 cat conftest.$ac_ext >&5
12974 rm -rf conftest*
12975 eval "ac_cv_lib_$ac_lib_var=no"
12976 fi
12977 rm -f conftest*
12978 LIBS="$ac_save_LIBS"
12979
12980 fi
12981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12982 echo "$ac_t""yes" 1>&6
12983
12984 cat >> confdefs.h <<\EOF
12985 #define HAVE_WCSLEN 1
12986 EOF
12987
12988 WCHAR_LINK=""
12989
12990 else
12991 echo "$ac_t""no" 1>&6
12992
12993 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
12994 echo "configure:12995: checking for wcslen in -lw" >&5
12995 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12997 echo $ac_n "(cached) $ac_c" 1>&6
12998 else
12999 ac_save_LIBS="$LIBS"
13000 LIBS="-lw $LIBS"
13001 cat > conftest.$ac_ext <<EOF
13002 #line 13003 "configure"
13003 #include "confdefs.h"
13004 /* Override any gcc2 internal prototype to avoid an error. */
13005 /* We use char because int might match the return type of a gcc2
13006 builtin and then its argument prototype would still apply. */
13007 char wcslen();
13008
13009 int main() {
13010 wcslen()
13011 ; return 0; }
13012 EOF
13013 if { (eval echo configure:13014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13014 rm -rf conftest*
13015 eval "ac_cv_lib_$ac_lib_var=yes"
13016 else
13017 echo "configure: failed program was:" >&5
13018 cat conftest.$ac_ext >&5
13019 rm -rf conftest*
13020 eval "ac_cv_lib_$ac_lib_var=no"
13021 fi
13022 rm -f conftest*
13023 LIBS="$ac_save_LIBS"
13024
13025 fi
13026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13027 echo "$ac_t""yes" 1>&6
13028
13029 cat >> confdefs.h <<\EOF
13030 #define HAVE_WCSLEN 1
13031 EOF
13032
13033 WCHAR_LINK="-lw"
13034
13035 else
13036 echo "$ac_t""no" 1>&6
13037
13038 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
13039 echo "configure:13040: checking for wcslen in -lmsvcrt" >&5
13040 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
13041 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13042 echo $ac_n "(cached) $ac_c" 1>&6
13043 else
13044 ac_save_LIBS="$LIBS"
13045 LIBS="-lmsvcrt $LIBS"
13046 cat > conftest.$ac_ext <<EOF
13047 #line 13048 "configure"
13048 #include "confdefs.h"
13049 /* Override any gcc2 internal prototype to avoid an error. */
13050 /* We use char because int might match the return type of a gcc2
13051 builtin and then its argument prototype would still apply. */
13052 char wcslen();
13053
13054 int main() {
13055 wcslen()
13056 ; return 0; }
13057 EOF
13058 if { (eval echo configure:13059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13059 rm -rf conftest*
13060 eval "ac_cv_lib_$ac_lib_var=yes"
13061 else
13062 echo "configure: failed program was:" >&5
13063 cat conftest.$ac_ext >&5
13064 rm -rf conftest*
13065 eval "ac_cv_lib_$ac_lib_var=no"
13066 fi
13067 rm -f conftest*
13068 LIBS="$ac_save_LIBS"
13069
13070 fi
13071 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13072 echo "$ac_t""yes" 1>&6
13073
13074 cat >> confdefs.h <<\EOF
13075 #define HAVE_WCSLEN 1
13076 EOF
13077
13078 WCHAR_LINK=""
13079
13080 else
13081 echo "$ac_t""no" 1>&6
13082 fi
13083
13084
13085 fi
13086
13087
13088 fi
13089
13090
13091 for ac_func in wcsrtombs
13092 do
13093 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13094 echo "configure:13095: checking for $ac_func" >&5
13095 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13096 echo $ac_n "(cached) $ac_c" 1>&6
13097 else
13098 cat > conftest.$ac_ext <<EOF
13099 #line 13100 "configure"
13100 #include "confdefs.h"
13101 /* System header to define __stub macros and hopefully few prototypes,
13102 which can conflict with char $ac_func(); below. */
13103 #include <assert.h>
13104 /* Override any gcc2 internal prototype to avoid an error. */
13105 /* We use char because int might match the return type of a gcc2
13106 builtin and then its argument prototype would still apply. */
13107 char $ac_func();
13108
13109 int main() {
13110
13111 /* The GNU C library defines this for functions which it implements
13112 to always fail with ENOSYS. Some functions are actually named
13113 something starting with __ and the normal name is an alias. */
13114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13115 choke me
13116 #else
13117 $ac_func();
13118 #endif
13119
13120 ; return 0; }
13121 EOF
13122 if { (eval echo configure:13123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13123 rm -rf conftest*
13124 eval "ac_cv_func_$ac_func=yes"
13125 else
13126 echo "configure: failed program was:" >&5
13127 cat conftest.$ac_ext >&5
13128 rm -rf conftest*
13129 eval "ac_cv_func_$ac_func=no"
13130 fi
13131 rm -f conftest*
13132 fi
13133
13134 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13135 echo "$ac_t""yes" 1>&6
13136 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13137 cat >> confdefs.h <<EOF
13138 #define $ac_tr_func 1
13139 EOF
13140
13141 else
13142 echo "$ac_t""no" 1>&6
13143 fi
13144 done
13145
13146
13147 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
13148 echo "configure:13149: checking for vprintf" >&5
13149 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
13150 echo $ac_n "(cached) $ac_c" 1>&6
13151 else
13152 cat > conftest.$ac_ext <<EOF
13153 #line 13154 "configure"
13154 #include "confdefs.h"
13155 /* System header to define __stub macros and hopefully few prototypes,
13156 which can conflict with char vprintf(); below. */
13157 #include <assert.h>
13158 /* Override any gcc2 internal prototype to avoid an error. */
13159 /* We use char because int might match the return type of a gcc2
13160 builtin and then its argument prototype would still apply. */
13161 char vprintf();
13162
13163 int main() {
13164
13165 /* The GNU C library defines this for functions which it implements
13166 to always fail with ENOSYS. Some functions are actually named
13167 something starting with __ and the normal name is an alias. */
13168 #if defined (__stub_vprintf) || defined (__stub___vprintf)
13169 choke me
13170 #else
13171 vprintf();
13172 #endif
13173
13174 ; return 0; }
13175 EOF
13176 if { (eval echo configure:13177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13177 rm -rf conftest*
13178 eval "ac_cv_func_vprintf=yes"
13179 else
13180 echo "configure: failed program was:" >&5
13181 cat conftest.$ac_ext >&5
13182 rm -rf conftest*
13183 eval "ac_cv_func_vprintf=no"
13184 fi
13185 rm -f conftest*
13186 fi
13187
13188 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
13189 echo "$ac_t""yes" 1>&6
13190 cat >> confdefs.h <<\EOF
13191 #define HAVE_VPRINTF 1
13192 EOF
13193
13194 else
13195 echo "$ac_t""no" 1>&6
13196 fi
13197
13198 if test "$ac_cv_func_vprintf" != yes; then
13199 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
13200 echo "configure:13201: checking for _doprnt" >&5
13201 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
13202 echo $ac_n "(cached) $ac_c" 1>&6
13203 else
13204 cat > conftest.$ac_ext <<EOF
13205 #line 13206 "configure"
13206 #include "confdefs.h"
13207 /* System header to define __stub macros and hopefully few prototypes,
13208 which can conflict with char _doprnt(); below. */
13209 #include <assert.h>
13210 /* Override any gcc2 internal prototype to avoid an error. */
13211 /* We use char because int might match the return type of a gcc2
13212 builtin and then its argument prototype would still apply. */
13213 char _doprnt();
13214
13215 int main() {
13216
13217 /* The GNU C library defines this for functions which it implements
13218 to always fail with ENOSYS. Some functions are actually named
13219 something starting with __ and the normal name is an alias. */
13220 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13221 choke me
13222 #else
13223 _doprnt();
13224 #endif
13225
13226 ; return 0; }
13227 EOF
13228 if { (eval echo configure:13229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13229 rm -rf conftest*
13230 eval "ac_cv_func__doprnt=yes"
13231 else
13232 echo "configure: failed program was:" >&5
13233 cat conftest.$ac_ext >&5
13234 rm -rf conftest*
13235 eval "ac_cv_func__doprnt=no"
13236 fi
13237 rm -f conftest*
13238 fi
13239
13240 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
13241 echo "$ac_t""yes" 1>&6
13242 cat >> confdefs.h <<\EOF
13243 #define HAVE_DOPRNT 1
13244 EOF
13245
13246 else
13247 echo "$ac_t""no" 1>&6
13248 fi
13249
13250 fi
13251
13252
13253
13254
13255
13256
13257 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
13258 echo "configure:13259: checking for vsnprintf" >&5
13259 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
13260 echo $ac_n "(cached) $ac_c" 1>&6
13261 else
13262
13263 cat > conftest.$ac_ext <<EOF
13264 #line 13265 "configure"
13265 #include "confdefs.h"
13266
13267 #include <stdio.h>
13268 #include <stdarg.h>
13269
13270 int main() {
13271
13272 int wx_test_vsnprintf(const char *, ...);
13273
13274 wx_test_vsnprintf("%s");
13275 return 0;
13276 }
13277
13278 int wx_test_vsnprintf(const char *fmt, ...)
13279 {
13280 char *s;
13281
13282 va_list argp;
13283 va_start(argp, fmt);
13284 vsnprintf(s, 42, fmt, argp);
13285 va_end(argp);
13286
13287 ; return 0; }
13288 EOF
13289 if { (eval echo configure:13290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13290 rm -rf conftest*
13291
13292 wx_cv_func_vsnprintf=yes
13293
13294 else
13295 echo "configure: failed program was:" >&5
13296 cat conftest.$ac_ext >&5
13297 rm -rf conftest*
13298
13299 cat > conftest.$ac_ext <<EOF
13300 #line 13301 "configure"
13301 #include "confdefs.h"
13302
13303 #include <stdio.h>
13304 #include <stdarg.h>
13305
13306 int main() {
13307
13308 int wx_test_vsnprintf(const char *, ...);
13309
13310 wx_test_vsnprintf("%s");
13311 return 0;
13312 }
13313
13314 int wx_test_vsnprintf(const char *fmt, ...)
13315 {
13316 char *s;
13317
13318 va_list argp;
13319 va_start(argp, fmt);
13320 _vsnprintf(s, 42, fmt, argp);
13321 va_end(argp);
13322
13323 ; return 0; }
13324 EOF
13325 if { (eval echo configure:13326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13326 rm -rf conftest*
13327
13328 wx_cv_func_vsnprintf=yes
13329
13330 else
13331 echo "configure: failed program was:" >&5
13332 cat conftest.$ac_ext >&5
13333 rm -rf conftest*
13334
13335 wx_cv_func_vsnprintf=no
13336
13337 fi
13338 rm -f conftest*
13339
13340 fi
13341 rm -f conftest*
13342
13343 fi
13344
13345 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
13346
13347 if test "$wx_cv_func_vsnprintf" = yes; then
13348 cat >> confdefs.h <<\EOF
13349 #define HAVE_VSNPRINTF 1
13350 EOF
13351
13352 else
13353 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
13354 fi
13355
13356 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
13357 echo "configure:13358: checking for vsscanf" >&5
13358 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
13359 echo $ac_n "(cached) $ac_c" 1>&6
13360 else
13361
13362 cat > conftest.$ac_ext <<EOF
13363 #line 13364 "configure"
13364 #include "confdefs.h"
13365
13366 #include <stdio.h>
13367 #include <stdarg.h>
13368
13369 int main() {
13370
13371 int wx_test_vsscanf(const char *, ...);
13372
13373 wx_test_vsscanf("%d");
13374 return 0;
13375 }
13376
13377 int wx_test_vsscanf(const char *fmt, ...)
13378 {
13379 va_list argp;
13380 va_start(argp, fmt);
13381 vsscanf("42", fmt, argp);
13382 va_end(argp);
13383
13384 ; return 0; }
13385 EOF
13386 if { (eval echo configure:13387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13387 rm -rf conftest*
13388
13389 wx_cv_func_vsscanf=yes
13390
13391 else
13392 echo "configure: failed program was:" >&5
13393 cat conftest.$ac_ext >&5
13394 rm -rf conftest*
13395
13396 wx_cv_func_vsscanf=no
13397
13398 fi
13399 rm -f conftest*
13400
13401 fi
13402
13403 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
13404
13405 if test "$wx_cv_func_vsscanf" = yes; then
13406 cat >> confdefs.h <<\EOF
13407 #define HAVE_VSSCANF 1
13408 EOF
13409
13410 fi
13411
13412 if test "$TOOLKIT" != "MSW"; then
13413
13414
13415
13416 ac_ext=C
13417 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13418 ac_cpp='$CXXCPP $CPPFLAGS'
13419 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13420 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13421 cross_compiling=$ac_cv_prog_cxx_cross
13422
13423 echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
13424 echo "configure:13425: checking if iconv() takes char**" >&5
13425 if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
13426 echo $ac_n "(cached) $ac_c" 1>&6
13427 else
13428
13429 cat > conftest.$ac_ext <<EOF
13430 #line 13431 "configure"
13431 #include "confdefs.h"
13432 #include <iconv.h>
13433 int main() {
13434
13435 char **inbuf, **outbuf;
13436 iconv_t cd;
13437 size_t insz, outsz;
13438 iconv(cd, inbuf, &insz, outbuf, &outsz);
13439
13440 ; return 0; }
13441 EOF
13442 if { (eval echo configure:13443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13443 rm -rf conftest*
13444 wx_cv_iconv_takes_char=yes
13445 else
13446 echo "configure: failed program was:" >&5
13447 cat conftest.$ac_ext >&5
13448 rm -rf conftest*
13449 wx_cv_iconv_takes_char=no
13450 fi
13451 rm -f conftest*
13452
13453 fi
13454
13455 echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
13456 ac_ext=c
13457 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13458 ac_cpp='$CPP $CPPFLAGS'
13459 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13460 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13461 cross_compiling=$ac_cv_prog_cc_cross
13462
13463 if test "$wx_cv_iconv_takes_char" = yes ; then
13464 cat >> confdefs.h <<\EOF
13465 #define WX_ICONV_TAKES_CHAR 1
13466 EOF
13467
13468 fi
13469
13470
13471 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
13472 for ac_func in sigaction
13473 do
13474 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13475 echo "configure:13476: checking for $ac_func" >&5
13476 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13477 echo $ac_n "(cached) $ac_c" 1>&6
13478 else
13479 cat > conftest.$ac_ext <<EOF
13480 #line 13481 "configure"
13481 #include "confdefs.h"
13482 /* System header to define __stub macros and hopefully few prototypes,
13483 which can conflict with char $ac_func(); below. */
13484 #include <assert.h>
13485 /* Override any gcc2 internal prototype to avoid an error. */
13486 /* We use char because int might match the return type of a gcc2
13487 builtin and then its argument prototype would still apply. */
13488 char $ac_func();
13489
13490 int main() {
13491
13492 /* The GNU C library defines this for functions which it implements
13493 to always fail with ENOSYS. Some functions are actually named
13494 something starting with __ and the normal name is an alias. */
13495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13496 choke me
13497 #else
13498 $ac_func();
13499 #endif
13500
13501 ; return 0; }
13502 EOF
13503 if { (eval echo configure:13504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13504 rm -rf conftest*
13505 eval "ac_cv_func_$ac_func=yes"
13506 else
13507 echo "configure: failed program was:" >&5
13508 cat conftest.$ac_ext >&5
13509 rm -rf conftest*
13510 eval "ac_cv_func_$ac_func=no"
13511 fi
13512 rm -f conftest*
13513 fi
13514
13515 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13516 echo "$ac_t""yes" 1>&6
13517 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13518 cat >> confdefs.h <<EOF
13519 #define $ac_tr_func 1
13520 EOF
13521
13522 else
13523 echo "$ac_t""no" 1>&6
13524 fi
13525 done
13526
13527
13528 if test "$ac_cv_func_sigaction" = "no"; then
13529 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
13530 wxUSE_ON_FATAL_EXCEPTION=no
13531 fi
13532
13533 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
13534
13535 ac_ext=C
13536 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13537 ac_cpp='$CXXCPP $CPPFLAGS'
13538 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13539 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13540 cross_compiling=$ac_cv_prog_cxx_cross
13541
13542
13543 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
13544 echo "configure:13545: checking for sa_handler type" >&5
13545 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
13546 echo $ac_n "(cached) $ac_c" 1>&6
13547 else
13548
13549 cat > conftest.$ac_ext <<EOF
13550 #line 13551 "configure"
13551 #include "confdefs.h"
13552 #include <signal.h>
13553 int main() {
13554
13555 extern void testSigHandler(int);
13556
13557 struct sigaction sa;
13558 sa.sa_handler = testSigHandler;
13559
13560 ; return 0; }
13561 EOF
13562 if { (eval echo configure:13563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13563 rm -rf conftest*
13564
13565 wx_cv_type_sa_handler=int
13566
13567 else
13568 echo "configure: failed program was:" >&5
13569 cat conftest.$ac_ext >&5
13570 rm -rf conftest*
13571
13572 wx_cv_type_sa_handler=void
13573
13574 fi
13575 rm -f conftest*
13576
13577 fi
13578
13579 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
13580
13581 ac_ext=c
13582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13583 ac_cpp='$CPP $CPPFLAGS'
13584 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13585 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13586 cross_compiling=$ac_cv_prog_cc_cross
13587
13588
13589 cat >> confdefs.h <<EOF
13590 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
13591 EOF
13592
13593 fi
13594 fi
13595
13596 for ac_func in vfork
13597 do
13598 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13599 echo "configure:13600: checking for $ac_func" >&5
13600 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13601 echo $ac_n "(cached) $ac_c" 1>&6
13602 else
13603 cat > conftest.$ac_ext <<EOF
13604 #line 13605 "configure"
13605 #include "confdefs.h"
13606 /* System header to define __stub macros and hopefully few prototypes,
13607 which can conflict with char $ac_func(); below. */
13608 #include <assert.h>
13609 /* Override any gcc2 internal prototype to avoid an error. */
13610 /* We use char because int might match the return type of a gcc2
13611 builtin and then its argument prototype would still apply. */
13612 char $ac_func();
13613
13614 int main() {
13615
13616 /* The GNU C library defines this for functions which it implements
13617 to always fail with ENOSYS. Some functions are actually named
13618 something starting with __ and the normal name is an alias. */
13619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13620 choke me
13621 #else
13622 $ac_func();
13623 #endif
13624
13625 ; return 0; }
13626 EOF
13627 if { (eval echo configure:13628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13628 rm -rf conftest*
13629 eval "ac_cv_func_$ac_func=yes"
13630 else
13631 echo "configure: failed program was:" >&5
13632 cat conftest.$ac_ext >&5
13633 rm -rf conftest*
13634 eval "ac_cv_func_$ac_func=no"
13635 fi
13636 rm -f conftest*
13637 fi
13638
13639 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13640 echo "$ac_t""yes" 1>&6
13641 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13642 cat >> confdefs.h <<EOF
13643 #define $ac_tr_func 1
13644 EOF
13645
13646 else
13647 echo "$ac_t""no" 1>&6
13648 fi
13649 done
13650
13651
13652 echo $ac_n "checking for statfs""... $ac_c" 1>&6
13653 echo "configure:13654: checking for statfs" >&5
13654 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
13655 echo $ac_n "(cached) $ac_c" 1>&6
13656 else
13657 cat > conftest.$ac_ext <<EOF
13658 #line 13659 "configure"
13659 #include "confdefs.h"
13660
13661 #ifdef __DARWIN__
13662 #include <sys/param.h>
13663 #include <sys/mount.h>
13664 #else
13665 #include <sys/vfs.h>
13666 #endif
13667
13668 int main() {
13669
13670 long l;
13671 struct statfs fs;
13672 statfs("/", &fs);
13673 l = fs.f_bsize;
13674 l += fs.f_blocks;
13675 l += fs.f_bavail;
13676
13677 ; return 0; }
13678 EOF
13679 if { (eval echo configure:13680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13680 rm -rf conftest*
13681
13682 wx_cv_func_statfs=yes
13683
13684 else
13685 echo "configure: failed program was:" >&5
13686 cat conftest.$ac_ext >&5
13687 rm -rf conftest*
13688
13689 wx_cv_func_statfs=no
13690
13691
13692 fi
13693 rm -f conftest*
13694
13695 fi
13696
13697 echo "$ac_t""$wx_cv_func_statfs" 1>&6
13698
13699 if test "$wx_cv_func_statfs" = "yes"; then
13700 cat >> confdefs.h <<\EOF
13701 #define HAVE_STATFS 1
13702 EOF
13703
13704 else
13705 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
13706 fi
13707
13708 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
13709 for ac_func in fcntl flock
13710 do
13711 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13712 echo "configure:13713: checking for $ac_func" >&5
13713 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13714 echo $ac_n "(cached) $ac_c" 1>&6
13715 else
13716 cat > conftest.$ac_ext <<EOF
13717 #line 13718 "configure"
13718 #include "confdefs.h"
13719 /* System header to define __stub macros and hopefully few prototypes,
13720 which can conflict with char $ac_func(); below. */
13721 #include <assert.h>
13722 /* Override any gcc2 internal prototype to avoid an error. */
13723 /* We use char because int might match the return type of a gcc2
13724 builtin and then its argument prototype would still apply. */
13725 char $ac_func();
13726
13727 int main() {
13728
13729 /* The GNU C library defines this for functions which it implements
13730 to always fail with ENOSYS. Some functions are actually named
13731 something starting with __ and the normal name is an alias. */
13732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13733 choke me
13734 #else
13735 $ac_func();
13736 #endif
13737
13738 ; return 0; }
13739 EOF
13740 if { (eval echo configure:13741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13741 rm -rf conftest*
13742 eval "ac_cv_func_$ac_func=yes"
13743 else
13744 echo "configure: failed program was:" >&5
13745 cat conftest.$ac_ext >&5
13746 rm -rf conftest*
13747 eval "ac_cv_func_$ac_func=no"
13748 fi
13749 rm -f conftest*
13750 fi
13751
13752 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13753 echo "$ac_t""yes" 1>&6
13754 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13755 cat >> confdefs.h <<EOF
13756 #define $ac_tr_func 1
13757 EOF
13758 break
13759 else
13760 echo "$ac_t""no" 1>&6
13761 fi
13762 done
13763
13764
13765 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
13766 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
13767 wxUSE_SNGLINST_CHECKER=no
13768 fi
13769 fi
13770
13771 for ac_func in timegm
13772 do
13773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13774 echo "configure:13775: checking for $ac_func" >&5
13775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13776 echo $ac_n "(cached) $ac_c" 1>&6
13777 else
13778 cat > conftest.$ac_ext <<EOF
13779 #line 13780 "configure"
13780 #include "confdefs.h"
13781 /* System header to define __stub macros and hopefully few prototypes,
13782 which can conflict with char $ac_func(); below. */
13783 #include <assert.h>
13784 /* Override any gcc2 internal prototype to avoid an error. */
13785 /* We use char because int might match the return type of a gcc2
13786 builtin and then its argument prototype would still apply. */
13787 char $ac_func();
13788
13789 int main() {
13790
13791 /* The GNU C library defines this for functions which it implements
13792 to always fail with ENOSYS. Some functions are actually named
13793 something starting with __ and the normal name is an alias. */
13794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13795 choke me
13796 #else
13797 $ac_func();
13798 #endif
13799
13800 ; return 0; }
13801 EOF
13802 if { (eval echo configure:13803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13803 rm -rf conftest*
13804 eval "ac_cv_func_$ac_func=yes"
13805 else
13806 echo "configure: failed program was:" >&5
13807 cat conftest.$ac_ext >&5
13808 rm -rf conftest*
13809 eval "ac_cv_func_$ac_func=no"
13810 fi
13811 rm -f conftest*
13812 fi
13813
13814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13815 echo "$ac_t""yes" 1>&6
13816 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13817 cat >> confdefs.h <<EOF
13818 #define $ac_tr_func 1
13819 EOF
13820
13821 else
13822 echo "$ac_t""no" 1>&6
13823 fi
13824 done
13825
13826
13827 for ac_func in putenv setenv
13828 do
13829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13830 echo "configure:13831: checking for $ac_func" >&5
13831 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13832 echo $ac_n "(cached) $ac_c" 1>&6
13833 else
13834 cat > conftest.$ac_ext <<EOF
13835 #line 13836 "configure"
13836 #include "confdefs.h"
13837 /* System header to define __stub macros and hopefully few prototypes,
13838 which can conflict with char $ac_func(); below. */
13839 #include <assert.h>
13840 /* Override any gcc2 internal prototype to avoid an error. */
13841 /* We use char because int might match the return type of a gcc2
13842 builtin and then its argument prototype would still apply. */
13843 char $ac_func();
13844
13845 int main() {
13846
13847 /* The GNU C library defines this for functions which it implements
13848 to always fail with ENOSYS. Some functions are actually named
13849 something starting with __ and the normal name is an alias. */
13850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13851 choke me
13852 #else
13853 $ac_func();
13854 #endif
13855
13856 ; return 0; }
13857 EOF
13858 if { (eval echo configure:13859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13859 rm -rf conftest*
13860 eval "ac_cv_func_$ac_func=yes"
13861 else
13862 echo "configure: failed program was:" >&5
13863 cat conftest.$ac_ext >&5
13864 rm -rf conftest*
13865 eval "ac_cv_func_$ac_func=no"
13866 fi
13867 rm -f conftest*
13868 fi
13869
13870 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13871 echo "$ac_t""yes" 1>&6
13872 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13873 cat >> confdefs.h <<EOF
13874 #define $ac_tr_func 1
13875 EOF
13876 break
13877 else
13878 echo "$ac_t""no" 1>&6
13879 fi
13880 done
13881
13882
13883 HAVE_SOME_SLEEP_FUNC=0
13884 if test "$USE_BEOS" = 1; then
13885 cat >> confdefs.h <<\EOF
13886 #define HAVE_SLEEP 1
13887 EOF
13888
13889 HAVE_SOME_SLEEP_FUNC=1
13890 fi
13891
13892 if test "$USE_DARWIN" = 1; then
13893 cat >> confdefs.h <<\EOF
13894 #define HAVE_USLEEP 1
13895 EOF
13896
13897 HAVE_SOME_SLEEP_FUNC=1
13898 fi
13899
13900 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
13901 POSIX4_LINK=
13902 for ac_func in nanosleep
13903 do
13904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13905 echo "configure:13906: checking for $ac_func" >&5
13906 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13907 echo $ac_n "(cached) $ac_c" 1>&6
13908 else
13909 cat > conftest.$ac_ext <<EOF
13910 #line 13911 "configure"
13911 #include "confdefs.h"
13912 /* System header to define __stub macros and hopefully few prototypes,
13913 which can conflict with char $ac_func(); below. */
13914 #include <assert.h>
13915 /* Override any gcc2 internal prototype to avoid an error. */
13916 /* We use char because int might match the return type of a gcc2
13917 builtin and then its argument prototype would still apply. */
13918 char $ac_func();
13919
13920 int main() {
13921
13922 /* The GNU C library defines this for functions which it implements
13923 to always fail with ENOSYS. Some functions are actually named
13924 something starting with __ and the normal name is an alias. */
13925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13926 choke me
13927 #else
13928 $ac_func();
13929 #endif
13930
13931 ; return 0; }
13932 EOF
13933 if { (eval echo configure:13934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13934 rm -rf conftest*
13935 eval "ac_cv_func_$ac_func=yes"
13936 else
13937 echo "configure: failed program was:" >&5
13938 cat conftest.$ac_ext >&5
13939 rm -rf conftest*
13940 eval "ac_cv_func_$ac_func=no"
13941 fi
13942 rm -f conftest*
13943 fi
13944
13945 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13946 echo "$ac_t""yes" 1>&6
13947 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13948 cat >> confdefs.h <<EOF
13949 #define $ac_tr_func 1
13950 EOF
13951 cat >> confdefs.h <<\EOF
13952 #define HAVE_NANOSLEEP 1
13953 EOF
13954
13955 else
13956 echo "$ac_t""no" 1>&6
13957 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
13958 echo "configure:13959: checking for nanosleep in -lposix4" >&5
13959 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
13960 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13961 echo $ac_n "(cached) $ac_c" 1>&6
13962 else
13963 ac_save_LIBS="$LIBS"
13964 LIBS="-lposix4 $LIBS"
13965 cat > conftest.$ac_ext <<EOF
13966 #line 13967 "configure"
13967 #include "confdefs.h"
13968 /* Override any gcc2 internal prototype to avoid an error. */
13969 /* We use char because int might match the return type of a gcc2
13970 builtin and then its argument prototype would still apply. */
13971 char nanosleep();
13972
13973 int main() {
13974 nanosleep()
13975 ; return 0; }
13976 EOF
13977 if { (eval echo configure:13978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13978 rm -rf conftest*
13979 eval "ac_cv_lib_$ac_lib_var=yes"
13980 else
13981 echo "configure: failed program was:" >&5
13982 cat conftest.$ac_ext >&5
13983 rm -rf conftest*
13984 eval "ac_cv_lib_$ac_lib_var=no"
13985 fi
13986 rm -f conftest*
13987 LIBS="$ac_save_LIBS"
13988
13989 fi
13990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13991 echo "$ac_t""yes" 1>&6
13992
13993 cat >> confdefs.h <<\EOF
13994 #define HAVE_NANOSLEEP 1
13995 EOF
13996
13997 POSIX4_LINK="-lposix4"
13998
13999 else
14000 echo "$ac_t""no" 1>&6
14001
14002 for ac_func in usleep
14003 do
14004 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14005 echo "configure:14006: checking for $ac_func" >&5
14006 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14007 echo $ac_n "(cached) $ac_c" 1>&6
14008 else
14009 cat > conftest.$ac_ext <<EOF
14010 #line 14011 "configure"
14011 #include "confdefs.h"
14012 /* System header to define __stub macros and hopefully few prototypes,
14013 which can conflict with char $ac_func(); below. */
14014 #include <assert.h>
14015 /* Override any gcc2 internal prototype to avoid an error. */
14016 /* We use char because int might match the return type of a gcc2
14017 builtin and then its argument prototype would still apply. */
14018 char $ac_func();
14019
14020 int main() {
14021
14022 /* The GNU C library defines this for functions which it implements
14023 to always fail with ENOSYS. Some functions are actually named
14024 something starting with __ and the normal name is an alias. */
14025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14026 choke me
14027 #else
14028 $ac_func();
14029 #endif
14030
14031 ; return 0; }
14032 EOF
14033 if { (eval echo configure:14034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14034 rm -rf conftest*
14035 eval "ac_cv_func_$ac_func=yes"
14036 else
14037 echo "configure: failed program was:" >&5
14038 cat conftest.$ac_ext >&5
14039 rm -rf conftest*
14040 eval "ac_cv_func_$ac_func=no"
14041 fi
14042 rm -f conftest*
14043 fi
14044
14045 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14046 echo "$ac_t""yes" 1>&6
14047 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14048 cat >> confdefs.h <<EOF
14049 #define $ac_tr_func 1
14050 EOF
14051 cat >> confdefs.h <<\EOF
14052 #define HAVE_USLEEP 1
14053 EOF
14054
14055 else
14056 echo "$ac_t""no" 1>&6
14057 echo "configure: warning: wxSleep() function will not work" 1>&2
14058
14059 fi
14060 done
14061
14062
14063
14064 fi
14065
14066
14067
14068 fi
14069 done
14070
14071 fi
14072
14073 for ac_func in uname gethostname
14074 do
14075 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14076 echo "configure:14077: checking for $ac_func" >&5
14077 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14078 echo $ac_n "(cached) $ac_c" 1>&6
14079 else
14080 cat > conftest.$ac_ext <<EOF
14081 #line 14082 "configure"
14082 #include "confdefs.h"
14083 /* System header to define __stub macros and hopefully few prototypes,
14084 which can conflict with char $ac_func(); below. */
14085 #include <assert.h>
14086 /* Override any gcc2 internal prototype to avoid an error. */
14087 /* We use char because int might match the return type of a gcc2
14088 builtin and then its argument prototype would still apply. */
14089 char $ac_func();
14090
14091 int main() {
14092
14093 /* The GNU C library defines this for functions which it implements
14094 to always fail with ENOSYS. Some functions are actually named
14095 something starting with __ and the normal name is an alias. */
14096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14097 choke me
14098 #else
14099 $ac_func();
14100 #endif
14101
14102 ; return 0; }
14103 EOF
14104 if { (eval echo configure:14105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14105 rm -rf conftest*
14106 eval "ac_cv_func_$ac_func=yes"
14107 else
14108 echo "configure: failed program was:" >&5
14109 cat conftest.$ac_ext >&5
14110 rm -rf conftest*
14111 eval "ac_cv_func_$ac_func=no"
14112 fi
14113 rm -f conftest*
14114 fi
14115
14116 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14117 echo "$ac_t""yes" 1>&6
14118 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14119 cat >> confdefs.h <<EOF
14120 #define $ac_tr_func 1
14121 EOF
14122 break
14123 else
14124 echo "$ac_t""no" 1>&6
14125 fi
14126 done
14127
14128
14129
14130 ac_ext=C
14131 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14132 ac_cpp='$CXXCPP $CPPFLAGS'
14133 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14134 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14135 cross_compiling=$ac_cv_prog_cxx_cross
14136
14137
14138 for ac_func in strtok_r
14139 do
14140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14141 echo "configure:14142: checking for $ac_func" >&5
14142 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14143 echo $ac_n "(cached) $ac_c" 1>&6
14144 else
14145 cat > conftest.$ac_ext <<EOF
14146 #line 14147 "configure"
14147 #include "confdefs.h"
14148 /* System header to define __stub macros and hopefully few prototypes,
14149 which can conflict with char $ac_func(); below. */
14150 #include <assert.h>
14151 /* Override any gcc2 internal prototype to avoid an error. */
14152 #ifdef __cplusplus
14153 extern "C"
14154 #endif
14155 /* We use char because int might match the return type of a gcc2
14156 builtin and then its argument prototype would still apply. */
14157 char $ac_func();
14158
14159 int main() {
14160
14161 /* The GNU C library defines this for functions which it implements
14162 to always fail with ENOSYS. Some functions are actually named
14163 something starting with __ and the normal name is an alias. */
14164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14165 choke me
14166 #else
14167 $ac_func();
14168 #endif
14169
14170 ; return 0; }
14171 EOF
14172 if { (eval echo configure:14173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14173 rm -rf conftest*
14174 eval "ac_cv_func_$ac_func=yes"
14175 else
14176 echo "configure: failed program was:" >&5
14177 cat conftest.$ac_ext >&5
14178 rm -rf conftest*
14179 eval "ac_cv_func_$ac_func=no"
14180 fi
14181 rm -f conftest*
14182 fi
14183
14184 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14185 echo "$ac_t""yes" 1>&6
14186 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14187 cat >> confdefs.h <<EOF
14188 #define $ac_tr_func 1
14189 EOF
14190
14191 else
14192 echo "$ac_t""no" 1>&6
14193 fi
14194 done
14195
14196
14197 ac_ext=c
14198 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14199 ac_cpp='$CPP $CPPFLAGS'
14200 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14201 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14202 cross_compiling=$ac_cv_prog_cc_cross
14203
14204
14205 INET_LINK=
14206 for ac_func in inet_addr
14207 do
14208 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14209 echo "configure:14210: checking for $ac_func" >&5
14210 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14211 echo $ac_n "(cached) $ac_c" 1>&6
14212 else
14213 cat > conftest.$ac_ext <<EOF
14214 #line 14215 "configure"
14215 #include "confdefs.h"
14216 /* System header to define __stub macros and hopefully few prototypes,
14217 which can conflict with char $ac_func(); below. */
14218 #include <assert.h>
14219 /* Override any gcc2 internal prototype to avoid an error. */
14220 /* We use char because int might match the return type of a gcc2
14221 builtin and then its argument prototype would still apply. */
14222 char $ac_func();
14223
14224 int main() {
14225
14226 /* The GNU C library defines this for functions which it implements
14227 to always fail with ENOSYS. Some functions are actually named
14228 something starting with __ and the normal name is an alias. */
14229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14230 choke me
14231 #else
14232 $ac_func();
14233 #endif
14234
14235 ; return 0; }
14236 EOF
14237 if { (eval echo configure:14238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14238 rm -rf conftest*
14239 eval "ac_cv_func_$ac_func=yes"
14240 else
14241 echo "configure: failed program was:" >&5
14242 cat conftest.$ac_ext >&5
14243 rm -rf conftest*
14244 eval "ac_cv_func_$ac_func=no"
14245 fi
14246 rm -f conftest*
14247 fi
14248
14249 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14250 echo "$ac_t""yes" 1>&6
14251 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14252 cat >> confdefs.h <<EOF
14253 #define $ac_tr_func 1
14254 EOF
14255 cat >> confdefs.h <<\EOF
14256 #define HAVE_INET_ADDR 1
14257 EOF
14258
14259 else
14260 echo "$ac_t""no" 1>&6
14261 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
14262 echo "configure:14263: checking for inet_addr in -lnsl" >&5
14263 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
14264 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14265 echo $ac_n "(cached) $ac_c" 1>&6
14266 else
14267 ac_save_LIBS="$LIBS"
14268 LIBS="-lnsl $LIBS"
14269 cat > conftest.$ac_ext <<EOF
14270 #line 14271 "configure"
14271 #include "confdefs.h"
14272 /* Override any gcc2 internal prototype to avoid an error. */
14273 /* We use char because int might match the return type of a gcc2
14274 builtin and then its argument prototype would still apply. */
14275 char inet_addr();
14276
14277 int main() {
14278 inet_addr()
14279 ; return 0; }
14280 EOF
14281 if { (eval echo configure:14282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14282 rm -rf conftest*
14283 eval "ac_cv_lib_$ac_lib_var=yes"
14284 else
14285 echo "configure: failed program was:" >&5
14286 cat conftest.$ac_ext >&5
14287 rm -rf conftest*
14288 eval "ac_cv_lib_$ac_lib_var=no"
14289 fi
14290 rm -f conftest*
14291 LIBS="$ac_save_LIBS"
14292
14293 fi
14294 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14295 echo "$ac_t""yes" 1>&6
14296 INET_LINK="nsl"
14297 else
14298 echo "$ac_t""no" 1>&6
14299 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
14300 echo "configure:14301: checking for inet_addr in -lresolv" >&5
14301 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
14302 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14303 echo $ac_n "(cached) $ac_c" 1>&6
14304 else
14305 ac_save_LIBS="$LIBS"
14306 LIBS="-lresolv $LIBS"
14307 cat > conftest.$ac_ext <<EOF
14308 #line 14309 "configure"
14309 #include "confdefs.h"
14310 /* Override any gcc2 internal prototype to avoid an error. */
14311 /* We use char because int might match the return type of a gcc2
14312 builtin and then its argument prototype would still apply. */
14313 char inet_addr();
14314
14315 int main() {
14316 inet_addr()
14317 ; return 0; }
14318 EOF
14319 if { (eval echo configure:14320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14320 rm -rf conftest*
14321 eval "ac_cv_lib_$ac_lib_var=yes"
14322 else
14323 echo "configure: failed program was:" >&5
14324 cat conftest.$ac_ext >&5
14325 rm -rf conftest*
14326 eval "ac_cv_lib_$ac_lib_var=no"
14327 fi
14328 rm -f conftest*
14329 LIBS="$ac_save_LIBS"
14330
14331 fi
14332 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14333 echo "$ac_t""yes" 1>&6
14334 INET_LINK="resolv"
14335
14336 else
14337 echo "$ac_t""no" 1>&6
14338 fi
14339
14340
14341 fi
14342
14343
14344
14345 fi
14346 done
14347
14348
14349 for ac_func in inet_aton
14350 do
14351 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14352 echo "configure:14353: checking for $ac_func" >&5
14353 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14354 echo $ac_n "(cached) $ac_c" 1>&6
14355 else
14356 cat > conftest.$ac_ext <<EOF
14357 #line 14358 "configure"
14358 #include "confdefs.h"
14359 /* System header to define __stub macros and hopefully few prototypes,
14360 which can conflict with char $ac_func(); below. */
14361 #include <assert.h>
14362 /* Override any gcc2 internal prototype to avoid an error. */
14363 /* We use char because int might match the return type of a gcc2
14364 builtin and then its argument prototype would still apply. */
14365 char $ac_func();
14366
14367 int main() {
14368
14369 /* The GNU C library defines this for functions which it implements
14370 to always fail with ENOSYS. Some functions are actually named
14371 something starting with __ and the normal name is an alias. */
14372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14373 choke me
14374 #else
14375 $ac_func();
14376 #endif
14377
14378 ; return 0; }
14379 EOF
14380 if { (eval echo configure:14381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14381 rm -rf conftest*
14382 eval "ac_cv_func_$ac_func=yes"
14383 else
14384 echo "configure: failed program was:" >&5
14385 cat conftest.$ac_ext >&5
14386 rm -rf conftest*
14387 eval "ac_cv_func_$ac_func=no"
14388 fi
14389 rm -f conftest*
14390 fi
14391
14392 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14393 echo "$ac_t""yes" 1>&6
14394 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14395 cat >> confdefs.h <<EOF
14396 #define $ac_tr_func 1
14397 EOF
14398 cat >> confdefs.h <<\EOF
14399 #define HAVE_INET_ATON 1
14400 EOF
14401
14402 else
14403 echo "$ac_t""no" 1>&6
14404 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
14405 echo "configure:14406: checking for inet_aton in -l$INET_LINK" >&5
14406 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
14407 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14408 echo $ac_n "(cached) $ac_c" 1>&6
14409 else
14410 ac_save_LIBS="$LIBS"
14411 LIBS="-l$INET_LINK $LIBS"
14412 cat > conftest.$ac_ext <<EOF
14413 #line 14414 "configure"
14414 #include "confdefs.h"
14415 /* Override any gcc2 internal prototype to avoid an error. */
14416 /* We use char because int might match the return type of a gcc2
14417 builtin and then its argument prototype would still apply. */
14418 char inet_aton();
14419
14420 int main() {
14421 inet_aton()
14422 ; return 0; }
14423 EOF
14424 if { (eval echo configure:14425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14425 rm -rf conftest*
14426 eval "ac_cv_lib_$ac_lib_var=yes"
14427 else
14428 echo "configure: failed program was:" >&5
14429 cat conftest.$ac_ext >&5
14430 rm -rf conftest*
14431 eval "ac_cv_lib_$ac_lib_var=no"
14432 fi
14433 rm -f conftest*
14434 LIBS="$ac_save_LIBS"
14435
14436 fi
14437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14438 echo "$ac_t""yes" 1>&6
14439 cat >> confdefs.h <<\EOF
14440 #define HAVE_INET_ATON 1
14441 EOF
14442
14443 else
14444 echo "$ac_t""no" 1>&6
14445 fi
14446
14447
14448 fi
14449 done
14450
14451
14452 if test "x$INET_LINK" != "x"; then
14453 cat >> confdefs.h <<\EOF
14454 #define HAVE_INET_ADDR 1
14455 EOF
14456
14457 INET_LINK="-l$INET_LINK"
14458 fi
14459
14460 fi
14461
14462
14463 cat > confcache <<\EOF
14464 # This file is a shell script that caches the results of configure
14465 # tests run on this system so they can be shared between configure
14466 # scripts and configure runs. It is not useful on other systems.
14467 # If it contains results you don't want to keep, you may remove or edit it.
14468 #
14469 # By default, configure uses ./config.cache as the cache file,
14470 # creating it if it does not exist already. You can give configure
14471 # the --cache-file=FILE option to use a different cache file; that is
14472 # what configure does when it calls configure scripts in
14473 # subdirectories, so they share the cache.
14474 # Giving --cache-file=/dev/null disables caching, for debugging configure.
14475 # config.status only pays attention to the cache file if you give it the
14476 # --recheck option to rerun configure.
14477 #
14478 EOF
14479 # The following way of writing the cache mishandles newlines in values,
14480 # but we know of no workaround that is simple, portable, and efficient.
14481 # So, don't put newlines in cache variables' values.
14482 # Ultrix sh set writes to stderr and can't be redirected directly,
14483 # and sets the high bit in the cache file unless we assign to the vars.
14484 (set) 2>&1 |
14485 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14486 *ac_space=\ *)
14487 # `set' does not quote correctly, so add quotes (double-quote substitution
14488 # turns \\\\ into \\, and sed turns \\ into \).
14489 sed -n \
14490 -e "s/'/'\\\\''/g" \
14491 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14492 ;;
14493 *)
14494 # `set' quotes correctly as required by POSIX, so do not add quotes.
14495 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14496 ;;
14497 esac >> confcache
14498 if cmp -s $cache_file confcache; then
14499 :
14500 else
14501 if test -w $cache_file; then
14502 echo "updating cache $cache_file"
14503 cat confcache > $cache_file
14504 else
14505 echo "not updating unwritable cache $cache_file"
14506 fi
14507 fi
14508 rm -f confcache
14509
14510
14511
14512 if test "$TOOLKIT" != "MSW"; then
14513
14514
14515 THREADS_LINK=
14516 THREADS_OBJ=
14517 CODE_GEN_FLAGS=
14518 CODE_GEN_FLAGS_CXX=
14519
14520 if test "$wxUSE_THREADS" = "yes" ; then
14521 if test "$wxUSE_WINE" = 1 ; then
14522 echo "configure: warning: Threads are not supported under WINE" 1>&2
14523 wxUSE_THREADS="no"
14524 elif test "$USE_BEOS" = 1; then
14525 echo "configure: warning: BeOS threads are not yet supported" 1>&2
14526 wxUSE_THREADS="no"
14527 fi
14528 fi
14529
14530 if test "$wxUSE_THREADS" = "yes" ; then
14531
14532 if test "$USE_AIX" = 1; then
14533 THREADS_LIB=pthreads
14534 else
14535 THREADS_LIB=pthread
14536 fi
14537
14538 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
14539 echo "configure:14540: checking for pthread_create in -l$THREADS_LIB" >&5
14540 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
14541 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14542 echo $ac_n "(cached) $ac_c" 1>&6
14543 else
14544 ac_save_LIBS="$LIBS"
14545 LIBS="-l$THREADS_LIB $LIBS"
14546 cat > conftest.$ac_ext <<EOF
14547 #line 14548 "configure"
14548 #include "confdefs.h"
14549 /* Override any gcc2 internal prototype to avoid an error. */
14550 /* We use char because int might match the return type of a gcc2
14551 builtin and then its argument prototype would still apply. */
14552 char pthread_create();
14553
14554 int main() {
14555 pthread_create()
14556 ; return 0; }
14557 EOF
14558 if { (eval echo configure:14559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14559 rm -rf conftest*
14560 eval "ac_cv_lib_$ac_lib_var=yes"
14561 else
14562 echo "configure: failed program was:" >&5
14563 cat conftest.$ac_ext >&5
14564 rm -rf conftest*
14565 eval "ac_cv_lib_$ac_lib_var=no"
14566 fi
14567 rm -f conftest*
14568 LIBS="$ac_save_LIBS"
14569
14570 fi
14571 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14572 echo "$ac_t""yes" 1>&6
14573
14574 THREADS_OBJ="threadpsx.lo"
14575 THREADS_LINK=$THREADS_LIB
14576
14577 else
14578 echo "$ac_t""no" 1>&6
14579
14580 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
14581 echo "configure:14582: checking for pthread_create in -lc_r" >&5
14582 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
14583 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14584 echo $ac_n "(cached) $ac_c" 1>&6
14585 else
14586 ac_save_LIBS="$LIBS"
14587 LIBS="-lc_r $LIBS"
14588 cat > conftest.$ac_ext <<EOF
14589 #line 14590 "configure"
14590 #include "confdefs.h"
14591 /* Override any gcc2 internal prototype to avoid an error. */
14592 /* We use char because int might match the return type of a gcc2
14593 builtin and then its argument prototype would still apply. */
14594 char pthread_create();
14595
14596 int main() {
14597 pthread_create()
14598 ; return 0; }
14599 EOF
14600 if { (eval echo configure:14601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14601 rm -rf conftest*
14602 eval "ac_cv_lib_$ac_lib_var=yes"
14603 else
14604 echo "configure: failed program was:" >&5
14605 cat conftest.$ac_ext >&5
14606 rm -rf conftest*
14607 eval "ac_cv_lib_$ac_lib_var=no"
14608 fi
14609 rm -f conftest*
14610 LIBS="$ac_save_LIBS"
14611
14612 fi
14613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14614 echo "$ac_t""yes" 1>&6
14615
14616 THREADS_OBJ="threadpsx.lo"
14617 THREADS_LINK="c_r"
14618
14619 else
14620 echo "$ac_t""no" 1>&6
14621
14622 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
14623 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
14624 echo "configure:14625: checking for sys/prctl.h" >&5
14625 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14626 echo $ac_n "(cached) $ac_c" 1>&6
14627 else
14628 cat > conftest.$ac_ext <<EOF
14629 #line 14630 "configure"
14630 #include "confdefs.h"
14631 #include <sys/prctl.h>
14632 EOF
14633 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14634 { (eval echo configure:14635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14635 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14636 if test -z "$ac_err"; then
14637 rm -rf conftest*
14638 eval "ac_cv_header_$ac_safe=yes"
14639 else
14640 echo "$ac_err" >&5
14641 echo "configure: failed program was:" >&5
14642 cat conftest.$ac_ext >&5
14643 rm -rf conftest*
14644 eval "ac_cv_header_$ac_safe=no"
14645 fi
14646 rm -f conftest*
14647 fi
14648 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14649 echo "$ac_t""yes" 1>&6
14650
14651 THREADS_OBJ="threadsgi.lo"
14652
14653 else
14654 echo "$ac_t""no" 1>&6
14655 fi
14656
14657
14658 fi
14659
14660
14661 fi
14662
14663
14664 if test -z "$THREADS_OBJ" ; then
14665 wxUSE_THREADS=no
14666 echo "configure: warning: No thread support on this system" 1>&2
14667 fi
14668 fi
14669
14670 if test "$wxUSE_THREADS" = "yes" ; then
14671 for ac_func in thr_setconcurrency
14672 do
14673 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14674 echo "configure:14675: checking for $ac_func" >&5
14675 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14676 echo $ac_n "(cached) $ac_c" 1>&6
14677 else
14678 cat > conftest.$ac_ext <<EOF
14679 #line 14680 "configure"
14680 #include "confdefs.h"
14681 /* System header to define __stub macros and hopefully few prototypes,
14682 which can conflict with char $ac_func(); below. */
14683 #include <assert.h>
14684 /* Override any gcc2 internal prototype to avoid an error. */
14685 /* We use char because int might match the return type of a gcc2
14686 builtin and then its argument prototype would still apply. */
14687 char $ac_func();
14688
14689 int main() {
14690
14691 /* The GNU C library defines this for functions which it implements
14692 to always fail with ENOSYS. Some functions are actually named
14693 something starting with __ and the normal name is an alias. */
14694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14695 choke me
14696 #else
14697 $ac_func();
14698 #endif
14699
14700 ; return 0; }
14701 EOF
14702 if { (eval echo configure:14703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14703 rm -rf conftest*
14704 eval "ac_cv_func_$ac_func=yes"
14705 else
14706 echo "configure: failed program was:" >&5
14707 cat conftest.$ac_ext >&5
14708 rm -rf conftest*
14709 eval "ac_cv_func_$ac_func=no"
14710 fi
14711 rm -f conftest*
14712 fi
14713
14714 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14715 echo "$ac_t""yes" 1>&6
14716 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14717 cat >> confdefs.h <<EOF
14718 #define $ac_tr_func 1
14719 EOF
14720
14721 else
14722 echo "$ac_t""no" 1>&6
14723 fi
14724 done
14725
14726
14727
14728 for ac_hdr in sched.h
14729 do
14730 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14731 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14732 echo "configure:14733: checking for $ac_hdr" >&5
14733 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14734 echo $ac_n "(cached) $ac_c" 1>&6
14735 else
14736 cat > conftest.$ac_ext <<EOF
14737 #line 14738 "configure"
14738 #include "confdefs.h"
14739 #include <$ac_hdr>
14740 EOF
14741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14742 { (eval echo configure:14743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14743 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14744 if test -z "$ac_err"; then
14745 rm -rf conftest*
14746 eval "ac_cv_header_$ac_safe=yes"
14747 else
14748 echo "$ac_err" >&5
14749 echo "configure: failed program was:" >&5
14750 cat conftest.$ac_ext >&5
14751 rm -rf conftest*
14752 eval "ac_cv_header_$ac_safe=no"
14753 fi
14754 rm -f conftest*
14755 fi
14756 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14757 echo "$ac_t""yes" 1>&6
14758 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14759 cat >> confdefs.h <<EOF
14760 #define $ac_tr_hdr 1
14761 EOF
14762
14763 else
14764 echo "$ac_t""no" 1>&6
14765 fi
14766 done
14767
14768
14769 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
14770 echo "configure:14771: checking for sched_yield in -l$THREADS_LINK" >&5
14771 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
14772 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14773 echo $ac_n "(cached) $ac_c" 1>&6
14774 else
14775 ac_save_LIBS="$LIBS"
14776 LIBS="-l$THREADS_LINK $LIBS"
14777 cat > conftest.$ac_ext <<EOF
14778 #line 14779 "configure"
14779 #include "confdefs.h"
14780 /* Override any gcc2 internal prototype to avoid an error. */
14781 /* We use char because int might match the return type of a gcc2
14782 builtin and then its argument prototype would still apply. */
14783 char sched_yield();
14784
14785 int main() {
14786 sched_yield()
14787 ; return 0; }
14788 EOF
14789 if { (eval echo configure:14790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14790 rm -rf conftest*
14791 eval "ac_cv_lib_$ac_lib_var=yes"
14792 else
14793 echo "configure: failed program was:" >&5
14794 cat conftest.$ac_ext >&5
14795 rm -rf conftest*
14796 eval "ac_cv_lib_$ac_lib_var=no"
14797 fi
14798 rm -f conftest*
14799 LIBS="$ac_save_LIBS"
14800
14801 fi
14802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14803 echo "$ac_t""yes" 1>&6
14804 cat >> confdefs.h <<\EOF
14805 #define HAVE_SCHED_YIELD 1
14806 EOF
14807
14808 else
14809 echo "$ac_t""no" 1>&6
14810 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
14811 echo "configure:14812: checking for sched_yield in -lposix4" >&5
14812 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
14813 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14814 echo $ac_n "(cached) $ac_c" 1>&6
14815 else
14816 ac_save_LIBS="$LIBS"
14817 LIBS="-lposix4 $LIBS"
14818 cat > conftest.$ac_ext <<EOF
14819 #line 14820 "configure"
14820 #include "confdefs.h"
14821 /* Override any gcc2 internal prototype to avoid an error. */
14822 /* We use char because int might match the return type of a gcc2
14823 builtin and then its argument prototype would still apply. */
14824 char sched_yield();
14825
14826 int main() {
14827 sched_yield()
14828 ; return 0; }
14829 EOF
14830 if { (eval echo configure:14831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14831 rm -rf conftest*
14832 eval "ac_cv_lib_$ac_lib_var=yes"
14833 else
14834 echo "configure: failed program was:" >&5
14835 cat conftest.$ac_ext >&5
14836 rm -rf conftest*
14837 eval "ac_cv_lib_$ac_lib_var=no"
14838 fi
14839 rm -f conftest*
14840 LIBS="$ac_save_LIBS"
14841
14842 fi
14843 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14844 echo "$ac_t""yes" 1>&6
14845 cat >> confdefs.h <<\EOF
14846 #define HAVE_SCHED_YIELD 1
14847 EOF
14848 POSIX4_LINK="-lposix4"
14849 else
14850 echo "$ac_t""no" 1>&6
14851 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
14852
14853 fi
14854
14855
14856 fi
14857
14858
14859 HAVE_PRIOR_FUNCS=0
14860 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
14861 echo "configure:14862: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
14862 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
14863 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14864 echo $ac_n "(cached) $ac_c" 1>&6
14865 else
14866 ac_save_LIBS="$LIBS"
14867 LIBS="-l$THREADS_LINK $LIBS"
14868 cat > conftest.$ac_ext <<EOF
14869 #line 14870 "configure"
14870 #include "confdefs.h"
14871 /* Override any gcc2 internal prototype to avoid an error. */
14872 /* We use char because int might match the return type of a gcc2
14873 builtin and then its argument prototype would still apply. */
14874 char pthread_attr_getschedpolicy();
14875
14876 int main() {
14877 pthread_attr_getschedpolicy()
14878 ; return 0; }
14879 EOF
14880 if { (eval echo configure:14881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14881 rm -rf conftest*
14882 eval "ac_cv_lib_$ac_lib_var=yes"
14883 else
14884 echo "configure: failed program was:" >&5
14885 cat conftest.$ac_ext >&5
14886 rm -rf conftest*
14887 eval "ac_cv_lib_$ac_lib_var=no"
14888 fi
14889 rm -f conftest*
14890 LIBS="$ac_save_LIBS"
14891
14892 fi
14893 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14894 echo "$ac_t""yes" 1>&6
14895 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
14896 echo "configure:14897: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
14897 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
14898 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14899 echo $ac_n "(cached) $ac_c" 1>&6
14900 else
14901 ac_save_LIBS="$LIBS"
14902 LIBS="-l$THREADS_LINK $LIBS"
14903 cat > conftest.$ac_ext <<EOF
14904 #line 14905 "configure"
14905 #include "confdefs.h"
14906 /* Override any gcc2 internal prototype to avoid an error. */
14907 /* We use char because int might match the return type of a gcc2
14908 builtin and then its argument prototype would still apply. */
14909 char pthread_attr_setschedparam();
14910
14911 int main() {
14912 pthread_attr_setschedparam()
14913 ; return 0; }
14914 EOF
14915 if { (eval echo configure:14916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14916 rm -rf conftest*
14917 eval "ac_cv_lib_$ac_lib_var=yes"
14918 else
14919 echo "configure: failed program was:" >&5
14920 cat conftest.$ac_ext >&5
14921 rm -rf conftest*
14922 eval "ac_cv_lib_$ac_lib_var=no"
14923 fi
14924 rm -f conftest*
14925 LIBS="$ac_save_LIBS"
14926
14927 fi
14928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14929 echo "$ac_t""yes" 1>&6
14930 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
14931 echo "configure:14932: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
14932 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14933 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14934 echo $ac_n "(cached) $ac_c" 1>&6
14935 else
14936 ac_save_LIBS="$LIBS"
14937 LIBS="-l$THREADS_LINK $LIBS"
14938 cat > conftest.$ac_ext <<EOF
14939 #line 14940 "configure"
14940 #include "confdefs.h"
14941 /* Override any gcc2 internal prototype to avoid an error. */
14942 /* We use char because int might match the return type of a gcc2
14943 builtin and then its argument prototype would still apply. */
14944 char sched_get_priority_max();
14945
14946 int main() {
14947 sched_get_priority_max()
14948 ; return 0; }
14949 EOF
14950 if { (eval echo configure:14951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14951 rm -rf conftest*
14952 eval "ac_cv_lib_$ac_lib_var=yes"
14953 else
14954 echo "configure: failed program was:" >&5
14955 cat conftest.$ac_ext >&5
14956 rm -rf conftest*
14957 eval "ac_cv_lib_$ac_lib_var=no"
14958 fi
14959 rm -f conftest*
14960 LIBS="$ac_save_LIBS"
14961
14962 fi
14963 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14964 echo "$ac_t""yes" 1>&6
14965 HAVE_PRIOR_FUNCS=1
14966 else
14967 echo "$ac_t""no" 1>&6
14968 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
14969 echo "configure:14970: checking for sched_get_priority_max in -lposix4" >&5
14970 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14971 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14972 echo $ac_n "(cached) $ac_c" 1>&6
14973 else
14974 ac_save_LIBS="$LIBS"
14975 LIBS="-lposix4 $LIBS"
14976 cat > conftest.$ac_ext <<EOF
14977 #line 14978 "configure"
14978 #include "confdefs.h"
14979 /* Override any gcc2 internal prototype to avoid an error. */
14980 /* We use char because int might match the return type of a gcc2
14981 builtin and then its argument prototype would still apply. */
14982 char sched_get_priority_max();
14983
14984 int main() {
14985 sched_get_priority_max()
14986 ; return 0; }
14987 EOF
14988 if { (eval echo configure:14989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14989 rm -rf conftest*
14990 eval "ac_cv_lib_$ac_lib_var=yes"
14991 else
14992 echo "configure: failed program was:" >&5
14993 cat conftest.$ac_ext >&5
14994 rm -rf conftest*
14995 eval "ac_cv_lib_$ac_lib_var=no"
14996 fi
14997 rm -f conftest*
14998 LIBS="$ac_save_LIBS"
14999
15000 fi
15001 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15002 echo "$ac_t""yes" 1>&6
15003
15004 HAVE_PRIOR_FUNCS=1
15005 POSIX4_LINK="-lposix4"
15006
15007 else
15008 echo "$ac_t""no" 1>&6
15009 fi
15010
15011
15012 fi
15013
15014
15015 else
15016 echo "$ac_t""no" 1>&6
15017 fi
15018
15019
15020 else
15021 echo "$ac_t""no" 1>&6
15022 fi
15023
15024
15025 if test "$HAVE_PRIOR_FUNCS" = 1; then
15026 cat >> confdefs.h <<\EOF
15027 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
15028 EOF
15029
15030 else
15031 echo "configure: warning: Setting thread priority will not work" 1>&2
15032 fi
15033
15034 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
15035 echo "configure:15036: checking for pthread_cancel in -l$THREADS_LINK" >&5
15036 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
15037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15038 echo $ac_n "(cached) $ac_c" 1>&6
15039 else
15040 ac_save_LIBS="$LIBS"
15041 LIBS="-l$THREADS_LINK $LIBS"
15042 cat > conftest.$ac_ext <<EOF
15043 #line 15044 "configure"
15044 #include "confdefs.h"
15045 /* Override any gcc2 internal prototype to avoid an error. */
15046 /* We use char because int might match the return type of a gcc2
15047 builtin and then its argument prototype would still apply. */
15048 char pthread_cancel();
15049
15050 int main() {
15051 pthread_cancel()
15052 ; return 0; }
15053 EOF
15054 if { (eval echo configure:15055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15055 rm -rf conftest*
15056 eval "ac_cv_lib_$ac_lib_var=yes"
15057 else
15058 echo "configure: failed program was:" >&5
15059 cat conftest.$ac_ext >&5
15060 rm -rf conftest*
15061 eval "ac_cv_lib_$ac_lib_var=no"
15062 fi
15063 rm -f conftest*
15064 LIBS="$ac_save_LIBS"
15065
15066 fi
15067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15068 echo "$ac_t""yes" 1>&6
15069 cat >> confdefs.h <<\EOF
15070 #define HAVE_PTHREAD_CANCEL 1
15071 EOF
15072
15073 else
15074 echo "$ac_t""no" 1>&6
15075 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
15076 fi
15077
15078
15079 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
15080 echo "configure:15081: checking for pthread_cleanup_push/pop" >&5
15081 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
15082 echo $ac_n "(cached) $ac_c" 1>&6
15083 else
15084
15085 cat > conftest.$ac_ext <<EOF
15086 #line 15087 "configure"
15087 #include "confdefs.h"
15088 #include <pthread.h>
15089 int main() {
15090
15091 pthread_cleanup_push(NULL, NULL);
15092 pthread_cleanup_pop(0);
15093
15094 ; return 0; }
15095 EOF
15096 if { (eval echo configure:15097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15097 rm -rf conftest*
15098
15099 wx_cv_func_pthread_cleanup_push=yes
15100
15101 else
15102 echo "configure: failed program was:" >&5
15103 cat conftest.$ac_ext >&5
15104 rm -rf conftest*
15105
15106 wx_cv_func_pthread_cleanup_push=no
15107
15108 fi
15109 rm -f conftest*
15110
15111 fi
15112
15113 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
15114
15115 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
15116 cat >> confdefs.h <<\EOF
15117 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
15118 EOF
15119
15120 fi
15121
15122
15123 if test "x$wx_lib_glibc21" = "xyes"; then
15124 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
15125 fi
15126
15127 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
15128 echo "configure:15129: checking for pthread_mutexattr_t" >&5
15129 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
15130 echo $ac_n "(cached) $ac_c" 1>&6
15131 else
15132
15133 cat > conftest.$ac_ext <<EOF
15134 #line 15135 "configure"
15135 #include "confdefs.h"
15136 #include <pthread.h>
15137 int main() {
15138
15139 pthread_mutexattr_t attr;
15140 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
15141
15142 ; return 0; }
15143 EOF
15144 if { (eval echo configure:15145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15145 rm -rf conftest*
15146
15147 wx_cv_type_pthread_mutexattr_t=yes
15148
15149 else
15150 echo "configure: failed program was:" >&5
15151 cat conftest.$ac_ext >&5
15152 rm -rf conftest*
15153
15154 wx_cv_type_pthread_mutexattr_t=no
15155
15156
15157 fi
15158 rm -f conftest*
15159
15160 fi
15161
15162 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
15163
15164 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
15165 cat >> confdefs.h <<\EOF
15166 #define HAVE_PTHREAD_MUTEXATTR_T 1
15167 EOF
15168
15169 else
15170 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
15171 echo "configure:15172: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
15172 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
15173 echo $ac_n "(cached) $ac_c" 1>&6
15174 else
15175
15176 cat > conftest.$ac_ext <<EOF
15177 #line 15178 "configure"
15178 #include "confdefs.h"
15179 #include <pthread.h>
15180 int main() {
15181
15182 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
15183
15184 ; return 0; }
15185 EOF
15186 if { (eval echo configure:15187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15187 rm -rf conftest*
15188
15189 wx_cv_type_pthread_rec_mutex_init=yes
15190
15191 else
15192 echo "configure: failed program was:" >&5
15193 cat conftest.$ac_ext >&5
15194 rm -rf conftest*
15195
15196 wx_cv_type_pthread_rec_mutex_init=no
15197
15198
15199 fi
15200 rm -f conftest*
15201
15202 fi
15203
15204 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
15205 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
15206 cat >> confdefs.h <<\EOF
15207 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
15208 EOF
15209
15210 else
15211 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
15212 fi
15213 fi
15214
15215 THREADS_LINK="-l$THREADS_LINK"
15216
15217 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
15218 CPPFLAGS="${CFLAGS} -mt"
15219 CXXFLAGS="${CXXFLAGS} -mt"
15220 LDFLAGS="${LDFLAGS} -mt"
15221 fi
15222 fi
15223
15224 fi
15225
15226 if test "$wxUSE_THREADS" = "yes"; then
15227 cat >> confdefs.h <<\EOF
15228 #define wxUSE_THREADS 1
15229 EOF
15230
15231
15232 if test "$USE_DARWIN" != 1; then
15233 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
15234 fi
15235
15236 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
15237 else
15238 if test "$ac_cv_func_strtok_r" = "yes"; then
15239 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
15240 echo "configure:15241: checking if -D_REENTRANT is needed" >&5
15241 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
15242 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
15243 echo "$ac_t""yes" 1>&6
15244 else
15245 echo "$ac_t""no" 1>&6
15246 fi
15247 fi
15248 fi
15249
15250 if test "$WXGTK20" = 1 ; then
15251 cat >> confdefs.h <<EOF
15252 #define __WXGTK20__ $WXGTK20
15253 EOF
15254
15255 WXGTK12=1
15256 fi
15257
15258 if test "$WXGTK12" = 1 ; then
15259 cat >> confdefs.h <<EOF
15260 #define __WXGTK12__ $WXGTK12
15261 EOF
15262
15263 fi
15264
15265 if test "$WXGTK127" = 1 ; then
15266 cat >> confdefs.h <<EOF
15267 #define __WXGTK127__ $WXGTK127
15268 EOF
15269
15270 fi
15271
15272 WXDEBUG=
15273
15274 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
15275 WXDEBUG="-g"
15276 wxUSE_OPTIMISE=no
15277 fi
15278
15279 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
15280 wxUSE_DEBUG_INFO=yes
15281 WXDEBUG="-ggdb"
15282 fi
15283
15284 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
15285 cat >> confdefs.h <<\EOF
15286 #define WXDEBUG 1
15287 EOF
15288
15289 WXDEBUG_DEFINE="-D__WXDEBUG__"
15290 else
15291 if test "$wxUSE_GTK" = 1 ; then
15292 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
15293 fi
15294 fi
15295
15296 if test "$wxUSE_MEM_TRACING" = "yes" ; then
15297 cat >> confdefs.h <<\EOF
15298 #define wxUSE_MEMORY_TRACING 1
15299 EOF
15300
15301 cat >> confdefs.h <<\EOF
15302 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
15303 EOF
15304
15305 cat >> confdefs.h <<\EOF
15306 #define wxUSE_DEBUG_NEW_ALWAYS 1
15307 EOF
15308
15309 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
15310 fi
15311
15312 if test "$wxUSE_DMALLOC" = "yes" ; then
15313 DMALLOC_LINK="-ldmalloc"
15314 fi
15315
15316 PROFILE=
15317 if test "$wxUSE_PROFILE" = "yes" ; then
15318 PROFILE="-pg"
15319 fi
15320
15321 if test "$GCC" = yes ; then
15322 if test "$wxUSE_NO_RTTI" = "yes" ; then
15323 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
15324 fi
15325 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
15326 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
15327 fi
15328 if test "$wxUSE_PERMISSIVE" = "yes" ; then
15329 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
15330 fi
15331 if test "$wxUSE_NO_DEPS" = "no" ; then
15332 CFLAGS="-MMD ${CFLAGS}"
15333 CXXFLAGS="-MMD ${CXXFLAGS}"
15334 fi
15335 if test "$USE_WIN32" = 1 ; then
15336 # I'm not even really sure what this was ever added to solve,
15337 # but someone added it for mingw native builds, so I guess
15338 # they had a reason, right??
15339 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
15340 fi
15341 fi
15342
15343
15344 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
15345 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
15346 if test "$wxUSE_OPTIMISE" = "no" ; then
15347 OPTIMISE=
15348 else
15349 if test "$GCC" = yes ; then
15350 OPTIMISE="-O2"
15351 case "${host}" in
15352 i586-*-*|i686-*-* )
15353 OPTIMISE="${OPTIMISE} "
15354 ;;
15355 esac
15356 else
15357 OPTIMISE="-O"
15358 fi
15359 fi
15360
15361 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
15362 cat >> confdefs.h <<\EOF
15363 #define WXWIN_COMPATIBILITY_2 1
15364 EOF
15365
15366
15367 WXWIN_COMPATIBILITY_2_2="yes"
15368 fi
15369
15370 if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
15371 cat >> confdefs.h <<\EOF
15372 #define WXWIN_COMPATIBILITY_2_2 1
15373 EOF
15374
15375 fi
15376
15377
15378 ZLIB_INCLUDE=
15379 if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
15380 cat >> confdefs.h <<\EOF
15381 #define wxUSE_ZLIB 1
15382 EOF
15383
15384 if test "$wxUSE_ZLIB" = "yes" ; then
15385 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
15386 else
15387 ZLIB_LINK=
15388 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
15389 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
15390 echo "configure:15391: checking for zlib.h" >&5
15391 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15392 echo $ac_n "(cached) $ac_c" 1>&6
15393 else
15394 cat > conftest.$ac_ext <<EOF
15395 #line 15396 "configure"
15396 #include "confdefs.h"
15397 #include <zlib.h>
15398 EOF
15399 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15400 { (eval echo configure:15401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15401 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15402 if test -z "$ac_err"; then
15403 rm -rf conftest*
15404 eval "ac_cv_header_$ac_safe=yes"
15405 else
15406 echo "$ac_err" >&5
15407 echo "configure: failed program was:" >&5
15408 cat conftest.$ac_ext >&5
15409 rm -rf conftest*
15410 eval "ac_cv_header_$ac_safe=no"
15411 fi
15412 rm -f conftest*
15413 fi
15414 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15415 echo "$ac_t""yes" 1>&6
15416 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
15417 echo "configure:15418: checking for deflate in -lz" >&5
15418 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
15419 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15420 echo $ac_n "(cached) $ac_c" 1>&6
15421 else
15422 ac_save_LIBS="$LIBS"
15423 LIBS="-lz $LIBS"
15424 cat > conftest.$ac_ext <<EOF
15425 #line 15426 "configure"
15426 #include "confdefs.h"
15427 /* Override any gcc2 internal prototype to avoid an error. */
15428 /* We use char because int might match the return type of a gcc2
15429 builtin and then its argument prototype would still apply. */
15430 char deflate();
15431
15432 int main() {
15433 deflate()
15434 ; return 0; }
15435 EOF
15436 if { (eval echo configure:15437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15437 rm -rf conftest*
15438 eval "ac_cv_lib_$ac_lib_var=yes"
15439 else
15440 echo "configure: failed program was:" >&5
15441 cat conftest.$ac_ext >&5
15442 rm -rf conftest*
15443 eval "ac_cv_lib_$ac_lib_var=no"
15444 fi
15445 rm -f conftest*
15446 LIBS="$ac_save_LIBS"
15447
15448 fi
15449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15450 echo "$ac_t""yes" 1>&6
15451 ZLIB_LINK="-lz"
15452 else
15453 echo "$ac_t""no" 1>&6
15454 fi
15455
15456 else
15457 echo "$ac_t""no" 1>&6
15458 fi
15459
15460 if test "x$ZLIB_LINK" = "x" ; then
15461 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
15462 fi
15463 fi
15464 fi
15465
15466 PNG_INCLUDE=
15467 if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
15468 cat >> confdefs.h <<\EOF
15469 #define wxUSE_LIBPNG 1
15470 EOF
15471
15472 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
15473 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
15474 wxUSE_LIBPNG=yes
15475 fi
15476
15477 if test "$wxUSE_LIBPNG" = "yes" ; then
15478 PNG_INCLUDE="-I\${top_srcdir}/src/png"
15479 else
15480 PNG_LINK=
15481 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
15482 echo $ac_n "checking for png.h""... $ac_c" 1>&6
15483 echo "configure:15484: checking for png.h" >&5
15484 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15485 echo $ac_n "(cached) $ac_c" 1>&6
15486 else
15487 cat > conftest.$ac_ext <<EOF
15488 #line 15489 "configure"
15489 #include "confdefs.h"
15490 #include <png.h>
15491 EOF
15492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15493 { (eval echo configure:15494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15495 if test -z "$ac_err"; then
15496 rm -rf conftest*
15497 eval "ac_cv_header_$ac_safe=yes"
15498 else
15499 echo "$ac_err" >&5
15500 echo "configure: failed program was:" >&5
15501 cat conftest.$ac_ext >&5
15502 rm -rf conftest*
15503 eval "ac_cv_header_$ac_safe=no"
15504 fi
15505 rm -f conftest*
15506 fi
15507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15508 echo "$ac_t""yes" 1>&6
15509 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
15510 echo "configure:15511: checking for png_check_sig in -lpng" >&5
15511 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
15512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15513 echo $ac_n "(cached) $ac_c" 1>&6
15514 else
15515 ac_save_LIBS="$LIBS"
15516 LIBS="-lpng -lz -lm $LIBS"
15517 cat > conftest.$ac_ext <<EOF
15518 #line 15519 "configure"
15519 #include "confdefs.h"
15520 /* Override any gcc2 internal prototype to avoid an error. */
15521 /* We use char because int might match the return type of a gcc2
15522 builtin and then its argument prototype would still apply. */
15523 char png_check_sig();
15524
15525 int main() {
15526 png_check_sig()
15527 ; return 0; }
15528 EOF
15529 if { (eval echo configure:15530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15530 rm -rf conftest*
15531 eval "ac_cv_lib_$ac_lib_var=yes"
15532 else
15533 echo "configure: failed program was:" >&5
15534 cat conftest.$ac_ext >&5
15535 rm -rf conftest*
15536 eval "ac_cv_lib_$ac_lib_var=no"
15537 fi
15538 rm -f conftest*
15539 LIBS="$ac_save_LIBS"
15540
15541 fi
15542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15543 echo "$ac_t""yes" 1>&6
15544 PNG_LINK="-lpng"
15545 else
15546 echo "$ac_t""no" 1>&6
15547 fi
15548
15549
15550 else
15551 echo "$ac_t""no" 1>&6
15552 fi
15553
15554 if test "x$PNG_LINK" = "x" ; then
15555 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
15556 fi
15557 fi
15558
15559 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
15560 fi
15561
15562 JPEG_INCLUDE=
15563 if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
15564 cat >> confdefs.h <<\EOF
15565 #define wxUSE_LIBJPEG 1
15566 EOF
15567
15568 if test "$wxUSE_LIBJPEG" = "yes" ; then
15569 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
15570 else
15571 JPEG_LINK=
15572 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
15573 echo "configure:15574: checking for jpeglib.h" >&5
15574 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
15575 echo $ac_n "(cached) $ac_c" 1>&6
15576 else
15577 cat > conftest.$ac_ext <<EOF
15578 #line 15579 "configure"
15579 #include "confdefs.h"
15580
15581 #undef HAVE_STDLIB_H
15582 #include <stdio.h>
15583 #include <jpeglib.h>
15584
15585 int main() {
15586
15587
15588 ; return 0; }
15589 EOF
15590 if { (eval echo configure:15591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15591 rm -rf conftest*
15592 ac_cv_header_jpeglib_h=yes
15593 else
15594 echo "configure: failed program was:" >&5
15595 cat conftest.$ac_ext >&5
15596 rm -rf conftest*
15597 ac_cv_header_jpeglib_h=no
15598
15599 fi
15600 rm -f conftest*
15601
15602 fi
15603
15604 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
15605
15606 if test "$ac_cv_header_jpeglib_h" = "yes"; then
15607 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
15608 echo "configure:15609: checking for jpeg_read_header in -ljpeg" >&5
15609 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
15610 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15611 echo $ac_n "(cached) $ac_c" 1>&6
15612 else
15613 ac_save_LIBS="$LIBS"
15614 LIBS="-ljpeg $LIBS"
15615 cat > conftest.$ac_ext <<EOF
15616 #line 15617 "configure"
15617 #include "confdefs.h"
15618 /* Override any gcc2 internal prototype to avoid an error. */
15619 /* We use char because int might match the return type of a gcc2
15620 builtin and then its argument prototype would still apply. */
15621 char jpeg_read_header();
15622
15623 int main() {
15624 jpeg_read_header()
15625 ; return 0; }
15626 EOF
15627 if { (eval echo configure:15628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15628 rm -rf conftest*
15629 eval "ac_cv_lib_$ac_lib_var=yes"
15630 else
15631 echo "configure: failed program was:" >&5
15632 cat conftest.$ac_ext >&5
15633 rm -rf conftest*
15634 eval "ac_cv_lib_$ac_lib_var=no"
15635 fi
15636 rm -f conftest*
15637 LIBS="$ac_save_LIBS"
15638
15639 fi
15640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15641 echo "$ac_t""yes" 1>&6
15642 JPEG_LINK="-ljpeg"
15643 else
15644 echo "$ac_t""no" 1>&6
15645 fi
15646
15647 fi
15648
15649 if test "x$JPEG_LINK" = "x" ; then
15650 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
15651 fi
15652 fi
15653 fi
15654
15655 TIFF_INCLUDE=
15656 if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
15657 cat >> confdefs.h <<\EOF
15658 #define wxUSE_LIBTIFF 1
15659 EOF
15660
15661 if test "$wxUSE_LIBTIFF" = "yes" ; then
15662 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
15663 else
15664 TIFF_LINK=
15665 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
15666 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
15667 echo "configure:15668: checking for tiffio.h" >&5
15668 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15669 echo $ac_n "(cached) $ac_c" 1>&6
15670 else
15671 cat > conftest.$ac_ext <<EOF
15672 #line 15673 "configure"
15673 #include "confdefs.h"
15674 #include <tiffio.h>
15675 EOF
15676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15677 { (eval echo configure:15678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15678 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15679 if test -z "$ac_err"; then
15680 rm -rf conftest*
15681 eval "ac_cv_header_$ac_safe=yes"
15682 else
15683 echo "$ac_err" >&5
15684 echo "configure: failed program was:" >&5
15685 cat conftest.$ac_ext >&5
15686 rm -rf conftest*
15687 eval "ac_cv_header_$ac_safe=no"
15688 fi
15689 rm -f conftest*
15690 fi
15691 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15692 echo "$ac_t""yes" 1>&6
15693 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
15694 echo "configure:15695: checking for TIFFError in -ltiff" >&5
15695 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
15696 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15697 echo $ac_n "(cached) $ac_c" 1>&6
15698 else
15699 ac_save_LIBS="$LIBS"
15700 LIBS="-ltiff -lm $LIBS"
15701 cat > conftest.$ac_ext <<EOF
15702 #line 15703 "configure"
15703 #include "confdefs.h"
15704 /* Override any gcc2 internal prototype to avoid an error. */
15705 /* We use char because int might match the return type of a gcc2
15706 builtin and then its argument prototype would still apply. */
15707 char TIFFError();
15708
15709 int main() {
15710 TIFFError()
15711 ; return 0; }
15712 EOF
15713 if { (eval echo configure:15714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15714 rm -rf conftest*
15715 eval "ac_cv_lib_$ac_lib_var=yes"
15716 else
15717 echo "configure: failed program was:" >&5
15718 cat conftest.$ac_ext >&5
15719 rm -rf conftest*
15720 eval "ac_cv_lib_$ac_lib_var=no"
15721 fi
15722 rm -f conftest*
15723 LIBS="$ac_save_LIBS"
15724
15725 fi
15726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15727 echo "$ac_t""yes" 1>&6
15728 TIFF_LINK="-ltiff"
15729 else
15730 echo "$ac_t""no" 1>&6
15731 fi
15732
15733 else
15734 echo "$ac_t""no" 1>&6
15735 fi
15736
15737 if test "x$TIFF_LINK" = "x" ; then
15738 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
15739 fi
15740 fi
15741 fi
15742
15743 FREETYPE_INCLUDE=
15744 if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
15745 cat >> confdefs.h <<\EOF
15746 #define wxUSE_FREETYPE 1
15747 EOF
15748
15749 if test "$wxUSE_FREETYPE" = "yes" ; then
15750 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
15751 else
15752 FREETYPE_LINK=
15753 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
15754 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
15755 echo "configure:15756: checking for freetype.h" >&5
15756 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15757 echo $ac_n "(cached) $ac_c" 1>&6
15758 else
15759 cat > conftest.$ac_ext <<EOF
15760 #line 15761 "configure"
15761 #include "confdefs.h"
15762 #include <freetype.h>
15763 EOF
15764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15765 { (eval echo configure:15766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15766 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15767 if test -z "$ac_err"; then
15768 rm -rf conftest*
15769 eval "ac_cv_header_$ac_safe=yes"
15770 else
15771 echo "$ac_err" >&5
15772 echo "configure: failed program was:" >&5
15773 cat conftest.$ac_ext >&5
15774 rm -rf conftest*
15775 eval "ac_cv_header_$ac_safe=no"
15776 fi
15777 rm -f conftest*
15778 fi
15779 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15780 echo "$ac_t""yes" 1>&6
15781 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
15782 echo "configure:15783: checking for FT_Render_Glyph in -lfreetype" >&5
15783 ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
15784 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15785 echo $ac_n "(cached) $ac_c" 1>&6
15786 else
15787 ac_save_LIBS="$LIBS"
15788 LIBS="-lfreetype -lm $LIBS"
15789 cat > conftest.$ac_ext <<EOF
15790 #line 15791 "configure"
15791 #include "confdefs.h"
15792 /* Override any gcc2 internal prototype to avoid an error. */
15793 /* We use char because int might match the return type of a gcc2
15794 builtin and then its argument prototype would still apply. */
15795 char FT_Render_Glyph();
15796
15797 int main() {
15798 FT_Render_Glyph()
15799 ; return 0; }
15800 EOF
15801 if { (eval echo configure:15802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15802 rm -rf conftest*
15803 eval "ac_cv_lib_$ac_lib_var=yes"
15804 else
15805 echo "configure: failed program was:" >&5
15806 cat conftest.$ac_ext >&5
15807 rm -rf conftest*
15808 eval "ac_cv_lib_$ac_lib_var=no"
15809 fi
15810 rm -f conftest*
15811 LIBS="$ac_save_LIBS"
15812
15813 fi
15814 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15815 echo "$ac_t""yes" 1>&6
15816 FREETYPE_LINK="-lfreetype"
15817 else
15818 echo "$ac_t""no" 1>&6
15819 fi
15820
15821
15822 else
15823 echo "$ac_t""no" 1>&6
15824 fi
15825
15826 if test "x$FREETYPE_LINK" = "x" ; then
15827 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
15828 fi
15829 fi
15830 fi
15831
15832
15833 if test "$wxUSE_GUI" = "yes"; then
15834 cat >> confdefs.h <<\EOF
15835 #define wxUSE_GUI 1
15836 EOF
15837
15838
15839 else
15840 cat >> confdefs.h <<\EOF
15841 #define wxUSE_NOGUI 1
15842 EOF
15843
15844 fi
15845
15846
15847 if test "$wxUSE_UNIX" = "yes"; then
15848 cat >> confdefs.h <<\EOF
15849 #define wxUSE_UNIX 1
15850 EOF
15851
15852 fi
15853
15854
15855 if test "$wxUSE_APPLE_IEEE" = "yes"; then
15856 cat >> confdefs.h <<\EOF
15857 #define wxUSE_APPLE_IEEE 1
15858 EOF
15859
15860 fi
15861
15862 if test "$wxUSE_TIMER" = "yes"; then
15863 cat >> confdefs.h <<\EOF
15864 #define wxUSE_TIMER 1
15865 EOF
15866
15867 fi
15868
15869 if test "$wxUSE_WAVE" = "yes"; then
15870 cat >> confdefs.h <<\EOF
15871 #define wxUSE_WAVE 1
15872 EOF
15873
15874 fi
15875
15876 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15877 cat >> confdefs.h <<\EOF
15878 #define wxUSE_CMDLINE_PARSER 1
15879 EOF
15880
15881 fi
15882
15883 if test "$wxUSE_STOPWATCH" = "yes"; then
15884 cat >> confdefs.h <<\EOF
15885 #define wxUSE_STOPWATCH 1
15886 EOF
15887
15888 fi
15889
15890 if test "$wxUSE_DATETIME" = "yes"; then
15891 cat >> confdefs.h <<\EOF
15892 #define wxUSE_DATETIME 1
15893 EOF
15894
15895 fi
15896
15897 if test "$wxUSE_TIMEDATE" = "yes"; then
15898 cat >> confdefs.h <<\EOF
15899 #define wxUSE_TIMEDATE 1
15900 EOF
15901
15902 fi
15903
15904 if test "$wxUSE_FILE" = "yes"; then
15905 cat >> confdefs.h <<\EOF
15906 #define wxUSE_FILE 1
15907 EOF
15908
15909 fi
15910
15911 if test "$wxUSE_FFILE" = "yes"; then
15912 cat >> confdefs.h <<\EOF
15913 #define wxUSE_FFILE 1
15914 EOF
15915
15916 fi
15917
15918 if test "$wxUSE_FILESYSTEM" = "yes"; then
15919 cat >> confdefs.h <<\EOF
15920 #define wxUSE_FILESYSTEM 1
15921 EOF
15922
15923 fi
15924
15925 if test "$wxUSE_FS_INET" = "yes"; then
15926 cat >> confdefs.h <<\EOF
15927 #define wxUSE_FS_INET 1
15928 EOF
15929
15930 fi
15931
15932 if test "$wxUSE_FS_ZIP" = "yes"; then
15933 cat >> confdefs.h <<\EOF
15934 #define wxUSE_FS_ZIP 1
15935 EOF
15936
15937 fi
15938
15939 if test "$wxUSE_ZIPSTREAM" = "yes"; then
15940 cat >> confdefs.h <<\EOF
15941 #define wxUSE_ZIPSTREAM 1
15942 EOF
15943
15944 fi
15945
15946 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15947 cat >> confdefs.h <<\EOF
15948 #define wxUSE_ON_FATAL_EXCEPTION 1
15949 EOF
15950
15951 fi
15952
15953 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15954 cat >> confdefs.h <<\EOF
15955 #define wxUSE_SNGLINST_CHECKER 1
15956 EOF
15957
15958 fi
15959
15960 if test "$wxUSE_BUSYINFO" = "yes"; then
15961 cat >> confdefs.h <<\EOF
15962 #define wxUSE_BUSYINFO 1
15963 EOF
15964
15965 fi
15966
15967 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
15968 cat >> confdefs.h <<\EOF
15969 #define wxUSE_STD_IOSTREAM 1
15970 EOF
15971
15972 fi
15973
15974 if test "$wxUSE_TEXTFILE" = "yes"; then
15975 if test "$wxUSE_FILE" != "yes"; then
15976 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
15977 else
15978 cat >> confdefs.h <<\EOF
15979 #define wxUSE_TEXTFILE 1
15980 EOF
15981
15982 fi
15983 fi
15984
15985 if test "$wxUSE_CONFIG" = "yes" ; then
15986 if test "$wxUSE_TEXTFILE" != "yes"; then
15987 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
15988 else
15989 cat >> confdefs.h <<\EOF
15990 #define wxUSE_CONFIG 1
15991 EOF
15992
15993 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15994 fi
15995 fi
15996
15997 if test "$wxUSE_INTL" = "yes" ; then
15998 if test "$wxUSE_FILE" != "yes"; then
15999 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
16000 else
16001 cat >> confdefs.h <<\EOF
16002 #define wxUSE_INTL 1
16003 EOF
16004
16005 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
16006 GUIDIST="$GUIDIST INTL_DIST"
16007 fi
16008 fi
16009
16010 if test "$wxUSE_LOG" = "yes"; then
16011 cat >> confdefs.h <<\EOF
16012 #define wxUSE_LOG 1
16013 EOF
16014
16015
16016 if test "$wxUSE_LOGGUI" = "yes"; then
16017 cat >> confdefs.h <<\EOF
16018 #define wxUSE_LOGGUI 1
16019 EOF
16020
16021 fi
16022
16023 if test "$wxUSE_LOGWINDOW" = "yes"; then
16024 cat >> confdefs.h <<\EOF
16025 #define wxUSE_LOGWINDOW 1
16026 EOF
16027
16028 fi
16029 fi
16030
16031 if test "$wxUSE_LONGLONG" = "yes"; then
16032 cat >> confdefs.h <<\EOF
16033 #define wxUSE_LONGLONG 1
16034 EOF
16035
16036 fi
16037
16038 if test "$wxUSE_GEOMETRY" = "yes"; then
16039 cat >> confdefs.h <<\EOF
16040 #define wxUSE_GEOMETRY 1
16041 EOF
16042
16043 fi
16044
16045 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
16046 cat >> confdefs.h <<\EOF
16047 #define wxUSE_DIALUP_MANAGER 1
16048 EOF
16049
16050 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
16051 fi
16052
16053 if test "$wxUSE_STREAMS" = "yes" ; then
16054 cat >> confdefs.h <<\EOF
16055 #define wxUSE_STREAMS 1
16056 EOF
16057
16058 fi
16059
16060
16061 if test "$wxUSE_DATETIME" = "yes"; then
16062 for ac_func in strptime
16063 do
16064 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16065 echo "configure:16066: checking for $ac_func" >&5
16066 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16067 echo $ac_n "(cached) $ac_c" 1>&6
16068 else
16069 cat > conftest.$ac_ext <<EOF
16070 #line 16071 "configure"
16071 #include "confdefs.h"
16072 /* System header to define __stub macros and hopefully few prototypes,
16073 which can conflict with char $ac_func(); below. */
16074 #include <assert.h>
16075 /* Override any gcc2 internal prototype to avoid an error. */
16076 /* We use char because int might match the return type of a gcc2
16077 builtin and then its argument prototype would still apply. */
16078 char $ac_func();
16079
16080 int main() {
16081
16082 /* The GNU C library defines this for functions which it implements
16083 to always fail with ENOSYS. Some functions are actually named
16084 something starting with __ and the normal name is an alias. */
16085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16086 choke me
16087 #else
16088 $ac_func();
16089 #endif
16090
16091 ; return 0; }
16092 EOF
16093 if { (eval echo configure:16094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16094 rm -rf conftest*
16095 eval "ac_cv_func_$ac_func=yes"
16096 else
16097 echo "configure: failed program was:" >&5
16098 cat conftest.$ac_ext >&5
16099 rm -rf conftest*
16100 eval "ac_cv_func_$ac_func=no"
16101 fi
16102 rm -f conftest*
16103 fi
16104
16105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16106 echo "$ac_t""yes" 1>&6
16107 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16108 cat >> confdefs.h <<EOF
16109 #define $ac_tr_func 1
16110 EOF
16111
16112 else
16113 echo "$ac_t""no" 1>&6
16114 fi
16115 done
16116
16117
16118 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
16119 echo "configure:16120: checking for timezone variable in <time.h>" >&5
16120 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
16121 echo $ac_n "(cached) $ac_c" 1>&6
16122 else
16123
16124 cat > conftest.$ac_ext <<EOF
16125 #line 16126 "configure"
16126 #include "confdefs.h"
16127
16128 #include <time.h>
16129
16130 int main() {
16131
16132 int tz;
16133 tz = timezone;
16134
16135 ; return 0; }
16136 EOF
16137 if { (eval echo configure:16138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16138 rm -rf conftest*
16139
16140 wx_cv_var_timezone=timezone
16141
16142 else
16143 echo "configure: failed program was:" >&5
16144 cat conftest.$ac_ext >&5
16145 rm -rf conftest*
16146
16147 cat > conftest.$ac_ext <<EOF
16148 #line 16149 "configure"
16149 #include "confdefs.h"
16150
16151 #include <time.h>
16152
16153 int main() {
16154
16155 int tz;
16156 tz = _timezone;
16157
16158 ; return 0; }
16159 EOF
16160 if { (eval echo configure:16161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16161 rm -rf conftest*
16162
16163 wx_cv_var_timezone=_timezone
16164
16165 else
16166 echo "configure: failed program was:" >&5
16167 cat conftest.$ac_ext >&5
16168 rm -rf conftest*
16169
16170 cat > conftest.$ac_ext <<EOF
16171 #line 16172 "configure"
16172 #include "confdefs.h"
16173
16174 #include <time.h>
16175
16176 int main() {
16177
16178 int tz;
16179 tz = __timezone;
16180
16181 ; return 0; }
16182 EOF
16183 if { (eval echo configure:16184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16184 rm -rf conftest*
16185
16186 wx_cv_var_timezone=__timezone
16187
16188 else
16189 echo "configure: failed program was:" >&5
16190 cat conftest.$ac_ext >&5
16191 rm -rf conftest*
16192 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16193
16194 fi
16195 rm -f conftest*
16196
16197
16198 fi
16199 rm -f conftest*
16200
16201
16202 fi
16203 rm -f conftest*
16204
16205
16206 fi
16207
16208 echo "$ac_t""$wx_cv_var_timezone" 1>&6
16209
16210 cat >> confdefs.h <<EOF
16211 #define WX_TIMEZONE $wx_cv_var_timezone
16212 EOF
16213
16214
16215 for ac_func in localtime
16216 do
16217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16218 echo "configure:16219: checking for $ac_func" >&5
16219 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16220 echo $ac_n "(cached) $ac_c" 1>&6
16221 else
16222 cat > conftest.$ac_ext <<EOF
16223 #line 16224 "configure"
16224 #include "confdefs.h"
16225 /* System header to define __stub macros and hopefully few prototypes,
16226 which can conflict with char $ac_func(); below. */
16227 #include <assert.h>
16228 /* Override any gcc2 internal prototype to avoid an error. */
16229 /* We use char because int might match the return type of a gcc2
16230 builtin and then its argument prototype would still apply. */
16231 char $ac_func();
16232
16233 int main() {
16234
16235 /* The GNU C library defines this for functions which it implements
16236 to always fail with ENOSYS. Some functions are actually named
16237 something starting with __ and the normal name is an alias. */
16238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16239 choke me
16240 #else
16241 $ac_func();
16242 #endif
16243
16244 ; return 0; }
16245 EOF
16246 if { (eval echo configure:16247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16247 rm -rf conftest*
16248 eval "ac_cv_func_$ac_func=yes"
16249 else
16250 echo "configure: failed program was:" >&5
16251 cat conftest.$ac_ext >&5
16252 rm -rf conftest*
16253 eval "ac_cv_func_$ac_func=no"
16254 fi
16255 rm -f conftest*
16256 fi
16257
16258 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16259 echo "$ac_t""yes" 1>&6
16260 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16261 cat >> confdefs.h <<EOF
16262 #define $ac_tr_func 1
16263 EOF
16264
16265 else
16266 echo "$ac_t""no" 1>&6
16267 fi
16268 done
16269
16270
16271 if test "$ac_cv_func_localtime" = "yes"; then
16272 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
16273 echo "configure:16274: checking for tm_gmtoff in struct tm" >&5
16274 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16275 echo $ac_n "(cached) $ac_c" 1>&6
16276 else
16277
16278 cat > conftest.$ac_ext <<EOF
16279 #line 16280 "configure"
16280 #include "confdefs.h"
16281
16282 #include <time.h>
16283
16284 int main() {
16285
16286 struct tm tm;
16287 tm.tm_gmtoff++;
16288
16289 ; return 0; }
16290 EOF
16291 if { (eval echo configure:16292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16292 rm -rf conftest*
16293
16294 wx_cv_struct_tm_has_gmtoff=yes
16295
16296 else
16297 echo "configure: failed program was:" >&5
16298 cat conftest.$ac_ext >&5
16299 rm -rf conftest*
16300 wx_cv_struct_tm_has_gmtoff=no
16301
16302 fi
16303 rm -f conftest*
16304
16305 fi
16306
16307 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
16308 fi
16309
16310 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
16311 cat >> confdefs.h <<\EOF
16312 #define WX_GMTOFF_IN_TM 1
16313 EOF
16314
16315 fi
16316
16317 for ac_func in gettimeofday ftime
16318 do
16319 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16320 echo "configure:16321: checking for $ac_func" >&5
16321 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16322 echo $ac_n "(cached) $ac_c" 1>&6
16323 else
16324 cat > conftest.$ac_ext <<EOF
16325 #line 16326 "configure"
16326 #include "confdefs.h"
16327 /* System header to define __stub macros and hopefully few prototypes,
16328 which can conflict with char $ac_func(); below. */
16329 #include <assert.h>
16330 /* Override any gcc2 internal prototype to avoid an error. */
16331 /* We use char because int might match the return type of a gcc2
16332 builtin and then its argument prototype would still apply. */
16333 char $ac_func();
16334
16335 int main() {
16336
16337 /* The GNU C library defines this for functions which it implements
16338 to always fail with ENOSYS. Some functions are actually named
16339 something starting with __ and the normal name is an alias. */
16340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16341 choke me
16342 #else
16343 $ac_func();
16344 #endif
16345
16346 ; return 0; }
16347 EOF
16348 if { (eval echo configure:16349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16349 rm -rf conftest*
16350 eval "ac_cv_func_$ac_func=yes"
16351 else
16352 echo "configure: failed program was:" >&5
16353 cat conftest.$ac_ext >&5
16354 rm -rf conftest*
16355 eval "ac_cv_func_$ac_func=no"
16356 fi
16357 rm -f conftest*
16358 fi
16359
16360 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16361 echo "$ac_t""yes" 1>&6
16362 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16363 cat >> confdefs.h <<EOF
16364 #define $ac_tr_func 1
16365 EOF
16366 break
16367 else
16368 echo "$ac_t""no" 1>&6
16369 fi
16370 done
16371
16372
16373 if test "$ac_cv_func_gettimeofday" = "yes"; then
16374 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
16375 echo "configure:16376: checking whether gettimeofday takes two arguments" >&5
16376 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16377 echo $ac_n "(cached) $ac_c" 1>&6
16378 else
16379
16380
16381 ac_ext=C
16382 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16383 ac_cpp='$CXXCPP $CPPFLAGS'
16384 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16385 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16386 cross_compiling=$ac_cv_prog_cxx_cross
16387
16388
16389 cat > conftest.$ac_ext <<EOF
16390 #line 16391 "configure"
16391 #include "confdefs.h"
16392
16393 #include <sys/time.h>
16394 #include <unistd.h>
16395
16396 int main() {
16397
16398 struct timeval tv;
16399 gettimeofday(&tv, NULL);
16400
16401 ; return 0; }
16402 EOF
16403 if { (eval echo configure:16404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16404 rm -rf conftest*
16405 wx_cv_func_gettimeofday_has_2_args=yes
16406 else
16407 echo "configure: failed program was:" >&5
16408 cat conftest.$ac_ext >&5
16409 rm -rf conftest*
16410 cat > conftest.$ac_ext <<EOF
16411 #line 16412 "configure"
16412 #include "confdefs.h"
16413
16414 #include <sys/time.h>
16415 #include <unistd.h>
16416
16417 int main() {
16418
16419 struct timeval tv;
16420 gettimeofday(&tv);
16421
16422 ; return 0; }
16423 EOF
16424 if { (eval echo configure:16425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16425 rm -rf conftest*
16426 wx_cv_func_gettimeofday_has_2_args=no
16427 else
16428 echo "configure: failed program was:" >&5
16429 cat conftest.$ac_ext >&5
16430 rm -rf conftest*
16431
16432 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
16433 wx_cv_func_gettimeofday_has_2_args=unknown
16434
16435
16436 fi
16437 rm -f conftest*
16438
16439 fi
16440 rm -f conftest*
16441 ac_ext=c
16442 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16443 ac_cpp='$CPP $CPPFLAGS'
16444 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16445 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16446 cross_compiling=$ac_cv_prog_cc_cross
16447
16448
16449 fi
16450
16451 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
16452
16453 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
16454 cat >> confdefs.h <<\EOF
16455 #define WX_GETTIMEOFDAY_NO_TZ 1
16456 EOF
16457
16458 fi
16459 fi
16460
16461 cat >> confdefs.h <<\EOF
16462 #define wxUSE_TIMEDATE 1
16463 EOF
16464
16465 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16466 fi
16467
16468
16469 if test "$TOOLKIT" != "MSW"; then
16470
16471 if test "$wxUSE_SOCKETS" = "yes"; then
16472 echo $ac_n "checking for socket""... $ac_c" 1>&6
16473 echo "configure:16474: checking for socket" >&5
16474 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16475 echo $ac_n "(cached) $ac_c" 1>&6
16476 else
16477 cat > conftest.$ac_ext <<EOF
16478 #line 16479 "configure"
16479 #include "confdefs.h"
16480 /* System header to define __stub macros and hopefully few prototypes,
16481 which can conflict with char socket(); below. */
16482 #include <assert.h>
16483 /* Override any gcc2 internal prototype to avoid an error. */
16484 /* We use char because int might match the return type of a gcc2
16485 builtin and then its argument prototype would still apply. */
16486 char socket();
16487
16488 int main() {
16489
16490 /* The GNU C library defines this for functions which it implements
16491 to always fail with ENOSYS. Some functions are actually named
16492 something starting with __ and the normal name is an alias. */
16493 #if defined (__stub_socket) || defined (__stub___socket)
16494 choke me
16495 #else
16496 socket();
16497 #endif
16498
16499 ; return 0; }
16500 EOF
16501 if { (eval echo configure:16502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16502 rm -rf conftest*
16503 eval "ac_cv_func_socket=yes"
16504 else
16505 echo "configure: failed program was:" >&5
16506 cat conftest.$ac_ext >&5
16507 rm -rf conftest*
16508 eval "ac_cv_func_socket=no"
16509 fi
16510 rm -f conftest*
16511 fi
16512
16513 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16514 echo "$ac_t""yes" 1>&6
16515 :
16516 else
16517 echo "$ac_t""no" 1>&6
16518 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
16519 echo "configure:16520: checking for socket in -lsocket" >&5
16520 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16521 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16522 echo $ac_n "(cached) $ac_c" 1>&6
16523 else
16524 ac_save_LIBS="$LIBS"
16525 LIBS="-lsocket $LIBS"
16526 cat > conftest.$ac_ext <<EOF
16527 #line 16528 "configure"
16528 #include "confdefs.h"
16529 /* Override any gcc2 internal prototype to avoid an error. */
16530 /* We use char because int might match the return type of a gcc2
16531 builtin and then its argument prototype would still apply. */
16532 char socket();
16533
16534 int main() {
16535 socket()
16536 ; return 0; }
16537 EOF
16538 if { (eval echo configure:16539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16539 rm -rf conftest*
16540 eval "ac_cv_lib_$ac_lib_var=yes"
16541 else
16542 echo "configure: failed program was:" >&5
16543 cat conftest.$ac_ext >&5
16544 rm -rf conftest*
16545 eval "ac_cv_lib_$ac_lib_var=no"
16546 fi
16547 rm -f conftest*
16548 LIBS="$ac_save_LIBS"
16549
16550 fi
16551 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16552 echo "$ac_t""yes" 1>&6
16553 INET_LINK="$INET_LINK -lsocket"
16554 else
16555 echo "$ac_t""no" 1>&6
16556
16557 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
16558 wxUSE_SOCKETS=no
16559
16560
16561 fi
16562
16563
16564 fi
16565
16566 fi
16567
16568
16569 if test "$wxUSE_SOCKETS" = "yes" ; then
16570 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
16571 echo "configure:16572: checking what is the type of the third argument of getsockname" >&5
16572 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16573 echo $ac_n "(cached) $ac_c" 1>&6
16574 else
16575
16576
16577 ac_ext=C
16578 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16579 ac_cpp='$CXXCPP $CPPFLAGS'
16580 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16581 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16582 cross_compiling=$ac_cv_prog_cxx_cross
16583
16584
16585 cat > conftest.$ac_ext <<EOF
16586 #line 16587 "configure"
16587 #include "confdefs.h"
16588
16589 #include <sys/types.h>
16590 #include <sys/socket.h>
16591
16592 int main() {
16593
16594 socklen_t len;
16595 getsockname(0, 0, &len);
16596
16597 ; return 0; }
16598 EOF
16599 if { (eval echo configure:16600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16600 rm -rf conftest*
16601 wx_cv_type_getsockname3=socklen_t
16602 else
16603 echo "configure: failed program was:" >&5
16604 cat conftest.$ac_ext >&5
16605 rm -rf conftest*
16606 cat > conftest.$ac_ext <<EOF
16607 #line 16608 "configure"
16608 #include "confdefs.h"
16609
16610 #include <sys/types.h>
16611 #include <sys/socket.h>
16612
16613 int main() {
16614
16615 size_t len;
16616 getsockname(0, 0, &len);
16617
16618 ; return 0; }
16619 EOF
16620 if { (eval echo configure:16621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16621 rm -rf conftest*
16622 wx_cv_type_getsockname3=size_t
16623 else
16624 echo "configure: failed program was:" >&5
16625 cat conftest.$ac_ext >&5
16626 rm -rf conftest*
16627 cat > conftest.$ac_ext <<EOF
16628 #line 16629 "configure"
16629 #include "confdefs.h"
16630
16631 #include <sys/types.h>
16632 #include <sys/socket.h>
16633
16634 int main() {
16635
16636 int len;
16637 getsockname(0, 0, &len);
16638
16639 ; return 0; }
16640 EOF
16641 if { (eval echo configure:16642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16642 rm -rf conftest*
16643 wx_cv_type_getsockname3=int
16644 else
16645 echo "configure: failed program was:" >&5
16646 cat conftest.$ac_ext >&5
16647 rm -rf conftest*
16648 wx_cv_type_getsockname3=unknown
16649
16650 fi
16651 rm -f conftest*
16652
16653 fi
16654 rm -f conftest*
16655
16656 fi
16657 rm -f conftest*
16658
16659 ac_ext=c
16660 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16661 ac_cpp='$CPP $CPPFLAGS'
16662 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16663 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16664 cross_compiling=$ac_cv_prog_cc_cross
16665
16666
16667 fi
16668
16669 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
16670
16671 if test "$wx_cv_type_getsockname3" = "unknown"; then
16672 wxUSE_SOCKETS=no
16673 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
16674 else
16675 cat >> confdefs.h <<EOF
16676 #define SOCKLEN_T $wx_cv_type_getsockname3
16677 EOF
16678
16679 fi
16680 fi
16681 fi
16682
16683 if test "$wxUSE_SOCKETS" = "yes" ; then
16684 cat >> confdefs.h <<\EOF
16685 #define wxUSE_SOCKETS 1
16686 EOF
16687
16688 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
16689 fi
16690
16691
16692 if test "$wxUSE_GUI" = "yes"; then
16693
16694 if test "$TOOLKIT" != "MSW"; then
16695 if test "$wxUSE_JOYSTICK" = "yes"; then
16696 for ac_hdr in linux/joystick.h
16697 do
16698 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16699 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16700 echo "configure:16701: checking for $ac_hdr" >&5
16701 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16702 echo $ac_n "(cached) $ac_c" 1>&6
16703 else
16704 cat > conftest.$ac_ext <<EOF
16705 #line 16706 "configure"
16706 #include "confdefs.h"
16707 #include <$ac_hdr>
16708 EOF
16709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16710 { (eval echo configure:16711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16712 if test -z "$ac_err"; then
16713 rm -rf conftest*
16714 eval "ac_cv_header_$ac_safe=yes"
16715 else
16716 echo "$ac_err" >&5
16717 echo "configure: failed program was:" >&5
16718 cat conftest.$ac_ext >&5
16719 rm -rf conftest*
16720 eval "ac_cv_header_$ac_safe=no"
16721 fi
16722 rm -f conftest*
16723 fi
16724 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16725 echo "$ac_t""yes" 1>&6
16726 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16727 cat >> confdefs.h <<EOF
16728 #define $ac_tr_hdr 1
16729 EOF
16730
16731 else
16732 echo "$ac_t""no" 1>&6
16733 fi
16734 done
16735
16736 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
16737 wxUSE_JOYSTICK=no
16738 echo "configure: warning: Joystick not supported by this system" 1>&2
16739 fi
16740 fi
16741 fi
16742
16743 if test "$wxUSE_JOYSTICK" = "yes"; then
16744 cat >> confdefs.h <<\EOF
16745 #define wxUSE_JOYSTICK 1
16746 EOF
16747
16748 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
16749 fi
16750 fi
16751
16752
16753 if test "$TOOLKIT" != "MSW"; then
16754
16755 HAVE_DL_FUNCS=0
16756 HAVE_SHL_FUNCS=0
16757 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
16758 if test "$USE_DARWIN" = 1; then
16759 HAVE_DL_FUNCS=1
16760 else
16761 for ac_func in dlopen
16762 do
16763 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16764 echo "configure:16765: checking for $ac_func" >&5
16765 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16766 echo $ac_n "(cached) $ac_c" 1>&6
16767 else
16768 cat > conftest.$ac_ext <<EOF
16769 #line 16770 "configure"
16770 #include "confdefs.h"
16771 /* System header to define __stub macros and hopefully few prototypes,
16772 which can conflict with char $ac_func(); below. */
16773 #include <assert.h>
16774 /* Override any gcc2 internal prototype to avoid an error. */
16775 /* We use char because int might match the return type of a gcc2
16776 builtin and then its argument prototype would still apply. */
16777 char $ac_func();
16778
16779 int main() {
16780
16781 /* The GNU C library defines this for functions which it implements
16782 to always fail with ENOSYS. Some functions are actually named
16783 something starting with __ and the normal name is an alias. */
16784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16785 choke me
16786 #else
16787 $ac_func();
16788 #endif
16789
16790 ; return 0; }
16791 EOF
16792 if { (eval echo configure:16793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16793 rm -rf conftest*
16794 eval "ac_cv_func_$ac_func=yes"
16795 else
16796 echo "configure: failed program was:" >&5
16797 cat conftest.$ac_ext >&5
16798 rm -rf conftest*
16799 eval "ac_cv_func_$ac_func=no"
16800 fi
16801 rm -f conftest*
16802 fi
16803
16804 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16805 echo "$ac_t""yes" 1>&6
16806 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16807 cat >> confdefs.h <<EOF
16808 #define $ac_tr_func 1
16809 EOF
16810
16811 cat >> confdefs.h <<\EOF
16812 #define HAVE_DLOPEN 1
16813 EOF
16814
16815 HAVE_DL_FUNCS=1
16816
16817 else
16818 echo "$ac_t""no" 1>&6
16819 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
16820 echo "configure:16821: checking for dlopen in -ldl" >&5
16821 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16822 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16823 echo $ac_n "(cached) $ac_c" 1>&6
16824 else
16825 ac_save_LIBS="$LIBS"
16826 LIBS="-ldl $LIBS"
16827 cat > conftest.$ac_ext <<EOF
16828 #line 16829 "configure"
16829 #include "confdefs.h"
16830 /* Override any gcc2 internal prototype to avoid an error. */
16831 /* We use char because int might match the return type of a gcc2
16832 builtin and then its argument prototype would still apply. */
16833 char dlopen();
16834
16835 int main() {
16836 dlopen()
16837 ; return 0; }
16838 EOF
16839 if { (eval echo configure:16840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16840 rm -rf conftest*
16841 eval "ac_cv_lib_$ac_lib_var=yes"
16842 else
16843 echo "configure: failed program was:" >&5
16844 cat conftest.$ac_ext >&5
16845 rm -rf conftest*
16846 eval "ac_cv_lib_$ac_lib_var=no"
16847 fi
16848 rm -f conftest*
16849 LIBS="$ac_save_LIBS"
16850
16851 fi
16852 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16853 echo "$ac_t""yes" 1>&6
16854
16855 cat >> confdefs.h <<\EOF
16856 #define HAVE_DLOPEN 1
16857 EOF
16858
16859 HAVE_DL_FUNCS=1
16860 LIBS="$LIBS -ldl"
16861
16862 else
16863 echo "$ac_t""no" 1>&6
16864
16865 for ac_func in shl_load
16866 do
16867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16868 echo "configure:16869: checking for $ac_func" >&5
16869 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16870 echo $ac_n "(cached) $ac_c" 1>&6
16871 else
16872 cat > conftest.$ac_ext <<EOF
16873 #line 16874 "configure"
16874 #include "confdefs.h"
16875 /* System header to define __stub macros and hopefully few prototypes,
16876 which can conflict with char $ac_func(); below. */
16877 #include <assert.h>
16878 /* Override any gcc2 internal prototype to avoid an error. */
16879 /* We use char because int might match the return type of a gcc2
16880 builtin and then its argument prototype would still apply. */
16881 char $ac_func();
16882
16883 int main() {
16884
16885 /* The GNU C library defines this for functions which it implements
16886 to always fail with ENOSYS. Some functions are actually named
16887 something starting with __ and the normal name is an alias. */
16888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16889 choke me
16890 #else
16891 $ac_func();
16892 #endif
16893
16894 ; return 0; }
16895 EOF
16896 if { (eval echo configure:16897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16897 rm -rf conftest*
16898 eval "ac_cv_func_$ac_func=yes"
16899 else
16900 echo "configure: failed program was:" >&5
16901 cat conftest.$ac_ext >&5
16902 rm -rf conftest*
16903 eval "ac_cv_func_$ac_func=no"
16904 fi
16905 rm -f conftest*
16906 fi
16907
16908 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16909 echo "$ac_t""yes" 1>&6
16910 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16911 cat >> confdefs.h <<EOF
16912 #define $ac_tr_func 1
16913 EOF
16914
16915 cat >> confdefs.h <<\EOF
16916 #define HAVE_SHL_LOAD 1
16917 EOF
16918
16919 HAVE_SHL_FUNCS=1
16920
16921 else
16922 echo "$ac_t""no" 1>&6
16923 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
16924 echo "configure:16925: checking for dld in -lshl_load" >&5
16925 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16926 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16927 echo $ac_n "(cached) $ac_c" 1>&6
16928 else
16929 ac_save_LIBS="$LIBS"
16930 LIBS="-lshl_load $LIBS"
16931 cat > conftest.$ac_ext <<EOF
16932 #line 16933 "configure"
16933 #include "confdefs.h"
16934 /* Override any gcc2 internal prototype to avoid an error. */
16935 /* We use char because int might match the return type of a gcc2
16936 builtin and then its argument prototype would still apply. */
16937 char dld();
16938
16939 int main() {
16940 dld()
16941 ; return 0; }
16942 EOF
16943 if { (eval echo configure:16944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16944 rm -rf conftest*
16945 eval "ac_cv_lib_$ac_lib_var=yes"
16946 else
16947 echo "configure: failed program was:" >&5
16948 cat conftest.$ac_ext >&5
16949 rm -rf conftest*
16950 eval "ac_cv_lib_$ac_lib_var=no"
16951 fi
16952 rm -f conftest*
16953 LIBS="$ac_save_LIBS"
16954
16955 fi
16956 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16957 echo "$ac_t""yes" 1>&6
16958
16959 HAVE_SHL_FUNCS=1
16960 LIBS="$LIBS -ldld"
16961
16962 else
16963 echo "$ac_t""no" 1>&6
16964 fi
16965
16966
16967 fi
16968 done
16969
16970
16971 fi
16972
16973
16974 fi
16975 done
16976
16977
16978 if test "$HAVE_DL_FUNCS" = 1; then
16979 for ac_func in dlerror
16980 do
16981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16982 echo "configure:16983: checking for $ac_func" >&5
16983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16984 echo $ac_n "(cached) $ac_c" 1>&6
16985 else
16986 cat > conftest.$ac_ext <<EOF
16987 #line 16988 "configure"
16988 #include "confdefs.h"
16989 /* System header to define __stub macros and hopefully few prototypes,
16990 which can conflict with char $ac_func(); below. */
16991 #include <assert.h>
16992 /* Override any gcc2 internal prototype to avoid an error. */
16993 /* We use char because int might match the return type of a gcc2
16994 builtin and then its argument prototype would still apply. */
16995 char $ac_func();
16996
16997 int main() {
16998
16999 /* The GNU C library defines this for functions which it implements
17000 to always fail with ENOSYS. Some functions are actually named
17001 something starting with __ and the normal name is an alias. */
17002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17003 choke me
17004 #else
17005 $ac_func();
17006 #endif
17007
17008 ; return 0; }
17009 EOF
17010 if { (eval echo configure:17011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17011 rm -rf conftest*
17012 eval "ac_cv_func_$ac_func=yes"
17013 else
17014 echo "configure: failed program was:" >&5
17015 cat conftest.$ac_ext >&5
17016 rm -rf conftest*
17017 eval "ac_cv_func_$ac_func=no"
17018 fi
17019 rm -f conftest*
17020 fi
17021
17022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17023 echo "$ac_t""yes" 1>&6
17024 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17025 cat >> confdefs.h <<EOF
17026 #define $ac_tr_func 1
17027 EOF
17028 cat >> confdefs.h <<\EOF
17029 #define HAVE_DLERROR 1
17030 EOF
17031
17032 else
17033 echo "$ac_t""no" 1>&6
17034 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
17035 echo "configure:17036: checking for dlerror in -ldl" >&5
17036 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
17037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17038 echo $ac_n "(cached) $ac_c" 1>&6
17039 else
17040 ac_save_LIBS="$LIBS"
17041 LIBS="-ldl $LIBS"
17042 cat > conftest.$ac_ext <<EOF
17043 #line 17044 "configure"
17044 #include "confdefs.h"
17045 /* Override any gcc2 internal prototype to avoid an error. */
17046 /* We use char because int might match the return type of a gcc2
17047 builtin and then its argument prototype would still apply. */
17048 char dlerror();
17049
17050 int main() {
17051 dlerror()
17052 ; return 0; }
17053 EOF
17054 if { (eval echo configure:17055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17055 rm -rf conftest*
17056 eval "ac_cv_lib_$ac_lib_var=yes"
17057 else
17058 echo "configure: failed program was:" >&5
17059 cat conftest.$ac_ext >&5
17060 rm -rf conftest*
17061 eval "ac_cv_lib_$ac_lib_var=no"
17062 fi
17063 rm -f conftest*
17064 LIBS="$ac_save_LIBS"
17065
17066 fi
17067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17068 echo "$ac_t""yes" 1>&6
17069 cat >> confdefs.h <<\EOF
17070 #define HAVE_DLERROR 1
17071 EOF
17072
17073 else
17074 echo "$ac_t""no" 1>&6
17075 fi
17076
17077 fi
17078 done
17079
17080 fi
17081 fi
17082
17083 if test "$HAVE_DL_FUNCS" = 0; then
17084 if test "$HAVE_SHL_FUNCS" = 0; then
17085 if test "$USE_UNIX" = 1; then
17086 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
17087 wxUSE_DYNLIB_CLASS=no
17088 else
17089 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
17090 fi
17091 fi
17092 fi
17093 fi
17094 fi
17095
17096 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
17097 cat >> confdefs.h <<\EOF
17098 #define wxUSE_DYNLIB_CLASS 1
17099 EOF
17100
17101 else
17102 wxUSE_ODBC=no
17103 wxUSE_SERIAL=no
17104 fi
17105
17106
17107 if test "$wxUSE_FONTMAP" = "yes" ; then
17108 cat >> confdefs.h <<\EOF
17109 #define wxUSE_FONTMAP 1
17110 EOF
17111
17112 fi
17113
17114 if test "$wxUSE_UNICODE" = "yes" ; then
17115 cat >> confdefs.h <<\EOF
17116 #define wxUSE_UNICODE 1
17117 EOF
17118
17119 fi
17120
17121 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
17122 cat >> confdefs.h <<\EOF
17123 #define wxUSE_EXPERIMENTAL_PRINTF 1
17124 EOF
17125
17126 fi
17127
17128
17129 if test "$wxUSE_SERIAL" = "yes" ; then
17130 cat >> confdefs.h <<\EOF
17131 #define wxUSE_SERIAL 1
17132 EOF
17133
17134 fi
17135
17136
17137 IODBC_C_SRC=""
17138 if test "$wxUSE_ODBC" = "yes" ; then
17139 cat >> confdefs.h <<\EOF
17140 #define wxUSE_ODBC 1
17141 EOF
17142
17143 WXODBCFLAG="-D_IODBC_"
17144 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
17145 fi
17146
17147
17148 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
17149 cat >> confdefs.h <<\EOF
17150 #define wxUSE_POSTSCRIPT 1
17151 EOF
17152
17153 fi
17154
17155 cat >> confdefs.h <<\EOF
17156 #define wxUSE_AFM_FOR_POSTSCRIPT 1
17157 EOF
17158
17159
17160 cat >> confdefs.h <<\EOF
17161 #define wxUSE_NORMALIZED_PS_FONTS 1
17162 EOF
17163
17164
17165
17166 if test "$wxUSE_CONSTRAINTS" = "yes"; then
17167 cat >> confdefs.h <<\EOF
17168 #define wxUSE_CONSTRAINTS 1
17169 EOF
17170
17171 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
17172 fi
17173
17174 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17175 cat >> confdefs.h <<\EOF
17176 #define wxUSE_MDI_ARCHITECTURE 1
17177 EOF
17178
17179 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
17180 fi
17181
17182 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
17183 cat >> confdefs.h <<\EOF
17184 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
17185 EOF
17186
17187 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
17188 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17189 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
17190 fi
17191 fi
17192
17193 if test "$wxUSE_HELP" = "yes"; then
17194 cat >> confdefs.h <<\EOF
17195 #define wxUSE_HELP 1
17196 EOF
17197
17198 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
17199
17200 if test "$USE_WIN32" = 1; then
17201 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
17202 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
17203 echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
17204 echo "configure:17205: checking for htmlhelp.h" >&5
17205 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17206 echo $ac_n "(cached) $ac_c" 1>&6
17207 else
17208 cat > conftest.$ac_ext <<EOF
17209 #line 17210 "configure"
17210 #include "confdefs.h"
17211 #include <htmlhelp.h>
17212 EOF
17213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17214 { (eval echo configure:17215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17216 if test -z "$ac_err"; then
17217 rm -rf conftest*
17218 eval "ac_cv_header_$ac_safe=yes"
17219 else
17220 echo "$ac_err" >&5
17221 echo "configure: failed program was:" >&5
17222 cat conftest.$ac_ext >&5
17223 rm -rf conftest*
17224 eval "ac_cv_header_$ac_safe=no"
17225 fi
17226 rm -f conftest*
17227 fi
17228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17229 echo "$ac_t""yes" 1>&6
17230
17231 cat >> confdefs.h <<\EOF
17232 #define wxUSE_MS_HTML_HELP 1
17233 EOF
17234
17235
17236 else
17237 echo "$ac_t""no" 1>&6
17238
17239 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h, disabled" 1>&2
17240 wxUSE_MS_HTML_HELP=no
17241
17242 fi
17243
17244 fi
17245 fi
17246
17247 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17248 if test "$wxUSE_HTML" = "yes"; then
17249 cat >> confdefs.h <<\EOF
17250 #define wxUSE_WXHTML_HELP 1
17251 EOF
17252
17253 else
17254 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17255 wxUSE_WXHTML_HELP=no
17256 fi
17257 fi
17258 fi
17259
17260 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17261 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17262 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
17263 else
17264 cat >> confdefs.h <<\EOF
17265 #define wxUSE_PRINTING_ARCHITECTURE 1
17266 EOF
17267
17268 fi
17269 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17270 fi
17271
17272 if test "$wxUSE_PROLOGIO" = "yes" ; then
17273 cat >> confdefs.h <<\EOF
17274 #define wxUSE_PROLOGIO 1
17275 EOF
17276
17277 fi
17278
17279 if test "$wxUSE_RESOURCES" = "yes" ; then
17280 cat >> confdefs.h <<\EOF
17281 #define wxUSE_RESOURCES 1
17282 EOF
17283
17284 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
17285 fi
17286
17287 if test "$wxUSE_X_RESOURCES" = "yes"; then
17288 cat >> confdefs.h <<\EOF
17289 #define wxUSE_X_RESOURCES 1
17290 EOF
17291
17292 fi
17293
17294
17295 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
17296 -o "$wxUSE_CLIPBOARD" = "yes" \
17297 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
17298 for ac_hdr in ole2.h
17299 do
17300 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17301 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17302 echo "configure:17303: checking for $ac_hdr" >&5
17303 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17304 echo $ac_n "(cached) $ac_c" 1>&6
17305 else
17306 cat > conftest.$ac_ext <<EOF
17307 #line 17308 "configure"
17308 #include "confdefs.h"
17309 #include <$ac_hdr>
17310 EOF
17311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17312 { (eval echo configure:17313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17314 if test -z "$ac_err"; then
17315 rm -rf conftest*
17316 eval "ac_cv_header_$ac_safe=yes"
17317 else
17318 echo "$ac_err" >&5
17319 echo "configure: failed program was:" >&5
17320 cat conftest.$ac_ext >&5
17321 rm -rf conftest*
17322 eval "ac_cv_header_$ac_safe=no"
17323 fi
17324 rm -f conftest*
17325 fi
17326 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17327 echo "$ac_t""yes" 1>&6
17328 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17329 cat >> confdefs.h <<EOF
17330 #define $ac_tr_hdr 1
17331 EOF
17332
17333 else
17334 echo "$ac_t""no" 1>&6
17335 fi
17336 done
17337
17338
17339 if test "$ac_cv_header_ole2_h" = "yes" ; then
17340 if test "$GCC" = yes ; then
17341 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
17342 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
17343 LIBS="$LIBS -lrpcrt4 -loleaut32 -lole32 -luuid"
17344 cat >> confdefs.h <<\EOF
17345 #define wxUSE_OLE 1
17346 EOF
17347
17348
17349 fi
17350
17351 cat >> confdefs.h <<\EOF
17352 #define wxUSE_DATAOBJ 1
17353 EOF
17354
17355 else
17356 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
17357
17358 wxUSE_CLIPBOARD=no
17359 wxUSE_DRAG_AND_DROP=no
17360 wxUSE_DATAOBJ=no
17361 fi
17362
17363 if test "$wxUSE_METAFILE" = "yes"; then
17364 cat >> confdefs.h <<\EOF
17365 #define wxUSE_METAFILE 1
17366 EOF
17367
17368
17369 cat >> confdefs.h <<\EOF
17370 #define wxUSE_ENH_METAFILE 1
17371 EOF
17372
17373 fi
17374 fi
17375
17376 if test "$wxUSE_IPC" = "yes"; then
17377 if test "$wxUSE_SOCKETS" != "yes"; then
17378 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
17379 fi
17380
17381 cat >> confdefs.h <<\EOF
17382 #define wxUSE_IPC 1
17383 EOF
17384
17385 fi
17386
17387 if test "$wxUSE_CLIPBOARD" = "yes"; then
17388 cat >> confdefs.h <<\EOF
17389 #define wxUSE_CLIPBOARD 1
17390 EOF
17391
17392
17393 cat >> confdefs.h <<\EOF
17394 #define wxUSE_DATAOBJ 1
17395 EOF
17396
17397 fi
17398
17399 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17400 if test "$wxUSE_GTK" = 1; then
17401 if test "$WXGTK12" != 1; then
17402 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
17403 wxUSE_DRAG_AND_DROP=no
17404 fi
17405 fi
17406
17407 if test "$wxUSE_MOTIF" = 1; then
17408 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
17409 wxUSE_DRAG_AND_DROP=no
17410 fi
17411
17412 if test "$wxUSE_MAC" = 1; then
17413 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
17414 wxUSE_DRAG_AND_DROP=no
17415 fi
17416
17417 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
17418 cat >> confdefs.h <<\EOF
17419 #define wxUSE_DRAG_AND_DROP 1
17420 EOF
17421
17422 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17423 fi
17424
17425 fi
17426
17427 if test "$wxUSE_SPLINES" = "yes" ; then
17428 cat >> confdefs.h <<\EOF
17429 #define wxUSE_SPLINES 1
17430 EOF
17431
17432 fi
17433
17434
17435 USES_CONTROLS=0
17436 if test "$wxUSE_CONTROLS" = "yes"; then
17437 USES_CONTROLS=1
17438 fi
17439
17440 if test "$wxUSE_ACCEL" = "yes"; then
17441 cat >> confdefs.h <<\EOF
17442 #define wxUSE_ACCEL 1
17443 EOF
17444
17445 USES_CONTROLS=1
17446 fi
17447
17448 if test "$wxUSE_BUTTON" = "yes"; then
17449 cat >> confdefs.h <<\EOF
17450 #define wxUSE_BUTTON 1
17451 EOF
17452
17453 USES_CONTROLS=1
17454 fi
17455
17456 if test "$wxUSE_BMPBUTTON" = "yes"; then
17457 cat >> confdefs.h <<\EOF
17458 #define wxUSE_BMPBUTTON 1
17459 EOF
17460
17461 USES_CONTROLS=1
17462 fi
17463
17464 if test "$wxUSE_CALCTRL" = "yes"; then
17465 cat >> confdefs.h <<\EOF
17466 #define wxUSE_CALENDARCTRL 1
17467 EOF
17468
17469 USES_CONTROLS=1
17470 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
17471 fi
17472
17473 if test "$wxUSE_CARET" = "yes"; then
17474 cat >> confdefs.h <<\EOF
17475 #define wxUSE_CARET 1
17476 EOF
17477
17478 USES_CONTROLS=1
17479 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17480 fi
17481
17482 if test "$wxUSE_COMBOBOX" = "yes"; then
17483 cat >> confdefs.h <<\EOF
17484 #define wxUSE_COMBOBOX 1
17485 EOF
17486
17487 USES_CONTROLS=1
17488 fi
17489
17490 if test "$wxUSE_CHOICE" = "yes"; then
17491 cat >> confdefs.h <<\EOF
17492 #define wxUSE_CHOICE 1
17493 EOF
17494
17495 USES_CONTROLS=1
17496 fi
17497
17498 if test "$wxUSE_CHECKBOX" = "yes"; then
17499 cat >> confdefs.h <<\EOF
17500 #define wxUSE_CHECKBOX 1
17501 EOF
17502
17503 USES_CONTROLS=1
17504 fi
17505
17506 if test "$wxUSE_CHECKLST" = "yes"; then
17507 cat >> confdefs.h <<\EOF
17508 #define wxUSE_CHECKLISTBOX 1
17509 EOF
17510
17511 USES_CONTROLS=1
17512 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17513 fi
17514
17515 if test "$wxUSE_GAUGE" = "yes"; then
17516 cat >> confdefs.h <<\EOF
17517 #define wxUSE_GAUGE 1
17518 EOF
17519
17520 USES_CONTROLS=1
17521 fi
17522
17523 if test "$wxUSE_NEW_GRID" = "yes"; then
17524 wxUSE_GRID="yes"
17525 cat >> confdefs.h <<\EOF
17526 #define wxUSE_NEW_GRID 1
17527 EOF
17528
17529 USES_CONTROLS=1
17530 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
17531 fi
17532
17533 if test "$wxUSE_GRID" = "yes"; then
17534 cat >> confdefs.h <<\EOF
17535 #define wxUSE_GRID 1
17536 EOF
17537
17538 USES_CONTROLS=1
17539 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
17540 fi
17541
17542 if test "$wxUSE_IMAGLIST" = "yes"; then
17543 cat >> confdefs.h <<\EOF
17544 #define wxUSE_IMAGLIST 1
17545 EOF
17546
17547 fi
17548
17549 if test "$wxUSE_LISTBOX" = "yes"; then
17550 cat >> confdefs.h <<\EOF
17551 #define wxUSE_LISTBOX 1
17552 EOF
17553
17554 USES_CONTROLS=1
17555 fi
17556
17557 if test "$wxUSE_LISTCTRL" = "yes"; then
17558 if test "$wxUSE_IMAGLIST" = "yes"; then
17559 cat >> confdefs.h <<\EOF
17560 #define wxUSE_LISTCTRL 1
17561 EOF
17562
17563 USES_CONTROLS=1
17564 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17565 else
17566 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
17567 fi
17568 fi
17569
17570 if test "$wxUSE_NOTEBOOK" = "yes"; then
17571 cat >> confdefs.h <<\EOF
17572 #define wxUSE_NOTEBOOK 1
17573 EOF
17574
17575 USES_CONTROLS=1
17576 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17577 fi
17578
17579 if test "$wxUSE_PROPSHEET" = "yes"; then
17580 cat >> confdefs.h <<\EOF
17581 #define wxUSE_PROPSHEET 1
17582 EOF
17583
17584 USES_CONTROLS=1
17585 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
17586 fi
17587
17588 if test "$wxUSE_RADIOBOX" = "yes"; then
17589 cat >> confdefs.h <<\EOF
17590 #define wxUSE_RADIOBOX 1
17591 EOF
17592
17593 USES_CONTROLS=1
17594 fi
17595
17596 if test "$wxUSE_RADIOBTN" = "yes"; then
17597 cat >> confdefs.h <<\EOF
17598 #define wxUSE_RADIOBTN 1
17599 EOF
17600
17601 USES_CONTROLS=1
17602 fi
17603
17604 if test "$wxUSE_SASH" = "yes"; then
17605 cat >> confdefs.h <<\EOF
17606 #define wxUSE_SASH 1
17607 EOF
17608
17609 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17610 fi
17611
17612 if test "$wxUSE_SCROLLBAR" = "yes"; then
17613 cat >> confdefs.h <<\EOF
17614 #define wxUSE_SCROLLBAR 1
17615 EOF
17616
17617 USES_CONTROLS=1
17618 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
17619 fi
17620
17621 if test "$wxUSE_SLIDER" = "yes"; then
17622 cat >> confdefs.h <<\EOF
17623 #define wxUSE_SLIDER 1
17624 EOF
17625
17626 USES_CONTROLS=1
17627 fi
17628
17629 if test "$wxUSE_SPINBTN" = "yes"; then
17630 cat >> confdefs.h <<\EOF
17631 #define wxUSE_SPINBTN 1
17632 EOF
17633
17634 USES_CONTROLS=1
17635 fi
17636
17637 if test "$wxUSE_SPINCTRL" = "yes"; then
17638 cat >> confdefs.h <<\EOF
17639 #define wxUSE_SPINCTRL 1
17640 EOF
17641
17642 USES_CONTROLS=1
17643 fi
17644
17645 if test "$wxUSE_SPLITTER" = "yes"; then
17646 cat >> confdefs.h <<\EOF
17647 #define wxUSE_SPLITTER 1
17648 EOF
17649
17650 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17651 fi
17652
17653 if test "$wxUSE_STATBMP" = "yes"; then
17654 cat >> confdefs.h <<\EOF
17655 #define wxUSE_STATBMP 1
17656 EOF
17657
17658 USES_CONTROLS=1
17659 fi
17660
17661 if test "$wxUSE_STATBOX" = "yes"; then
17662 cat >> confdefs.h <<\EOF
17663 #define wxUSE_STATBOX 1
17664 EOF
17665
17666 USES_CONTROLS=1
17667 fi
17668
17669 if test "$wxUSE_STATTEXT" = "yes"; then
17670 cat >> confdefs.h <<\EOF
17671 #define wxUSE_STATTEXT 1
17672 EOF
17673
17674 USES_CONTROLS=1
17675 fi
17676
17677 if test "$wxUSE_STATLINE" = "yes"; then
17678 if test "$wxUSE_WINE" = 1 ; then
17679 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
17680 else
17681 cat >> confdefs.h <<\EOF
17682 #define wxUSE_STATLINE 1
17683 EOF
17684
17685 USES_CONTROLS=1
17686 fi
17687 fi
17688
17689 if test "$wxUSE_STATUSBAR" = "yes"; then
17690 cat >> confdefs.h <<\EOF
17691 #define wxUSE_STATUSBAR 1
17692 EOF
17693
17694 USES_CONTROLS=1
17695
17696 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
17697 fi
17698
17699 if test "$wxUSE_TABDIALOG" = "yes"; then
17700 cat >> confdefs.h <<\EOF
17701 #define wxUSE_TAB_DIALOG 1
17702 EOF
17703
17704 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17705 fi
17706
17707 if test "$wxUSE_TEXTCTRL" = "yes"; then
17708 cat >> confdefs.h <<\EOF
17709 #define wxUSE_TEXTCTRL 1
17710 EOF
17711
17712 USES_CONTROLS=1
17713 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17714 fi
17715
17716 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17717 if test "$wxUSE_MAC" = 1; then
17718 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
17719 wxUSE_TOGGLEBTN=no
17720 fi
17721
17722 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17723 cat >> confdefs.h <<\EOF
17724 #define wxUSE_TOGGLEBTN 1
17725 EOF
17726
17727 USES_CONTROLS=1
17728 fi
17729 fi
17730
17731 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
17732 cat >> confdefs.h <<\EOF
17733 #define wxUSE_TOOLBAR_SIMPLE 1
17734 EOF
17735
17736 wxUSE_TOOLBAR="yes"
17737 USES_CONTROLS=1
17738 fi
17739
17740 if test "$wxUSE_TOOLBAR" = "yes"; then
17741 cat >> confdefs.h <<\EOF
17742 #define wxUSE_TOOLBAR 1
17743 EOF
17744
17745 USES_CONTROLS=1
17746
17747 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17748 wxUSE_TOOLBAR_NATIVE="yes"
17749 fi
17750
17751 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17752 cat >> confdefs.h <<\EOF
17753 #define wxUSE_TOOLBAR_NATIVE 1
17754 EOF
17755
17756 USES_CONTROLS=1
17757 fi
17758
17759 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
17760 fi
17761
17762 if test "$wxUSE_TOOLTIPS" = "yes"; then
17763 if test "$wxUSE_MOTIF" = 1; then
17764 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
17765 else
17766 if test "$wxUSE_WINE" = 1; then
17767 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
17768 else
17769 cat >> confdefs.h <<\EOF
17770 #define wxUSE_TOOLTIPS 1
17771 EOF
17772
17773 fi
17774 fi
17775 fi
17776
17777 if test "$wxUSE_TREECTRL" = "yes"; then
17778 if test "$wxUSE_IMAGLIST" = "yes"; then
17779 cat >> confdefs.h <<\EOF
17780 #define wxUSE_TREECTRL 1
17781 EOF
17782
17783 USES_CONTROLS=1
17784 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17785 else
17786 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
17787 fi
17788 fi
17789
17790 if test "$wxUSE_POPUPWIN" = "yes"; then
17791 if test "$wxUSE_MAC" = 1; then
17792 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17793 else
17794 cat >> confdefs.h <<\EOF
17795 #define wxUSE_POPUPWIN 1
17796 EOF
17797
17798 USES_CONTROLS=1
17799 fi
17800 fi
17801
17802 if test "$USES_CONTROLS" = 1; then
17803 cat >> confdefs.h <<\EOF
17804 #define wxUSE_CONTROLS 1
17805 EOF
17806
17807 fi
17808
17809
17810 if test "$wxUSE_TREELAYOUT" = "yes"; then
17811 cat >> confdefs.h <<\EOF
17812 #define wxUSE_TREELAYOUT 1
17813 EOF
17814
17815 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
17816 fi
17817
17818 if test "$wxUSE_DRAGIMAGE" = "yes"; then
17819 cat >> confdefs.h <<\EOF
17820 #define wxUSE_DRAGIMAGE 1
17821 EOF
17822
17823 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
17824 fi
17825
17826 if test "$wxUSE_MENUS" = "yes"; then
17827 cat >> confdefs.h <<\EOF
17828 #define wxUSE_MENUS 1
17829 EOF
17830
17831 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
17832 fi
17833
17834 if test "$wxUSE_METAFILE" = "yes"; then
17835 cat >> confdefs.h <<\EOF
17836 #define wxUSE_METAFILE 1
17837 EOF
17838
17839 fi
17840
17841 if test "$wxUSE_MIMETYPE" = "yes"; then
17842 cat >> confdefs.h <<\EOF
17843 #define wxUSE_MIMETYPE 1
17844 EOF
17845
17846 fi
17847
17848 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
17849 cat >> confdefs.h <<\EOF
17850 #define wxUSE_SYSTEM_OPTIONS 1
17851 EOF
17852
17853 fi
17854
17855 if test "$wxUSE_MINIFRAME" = "yes"; then
17856 cat >> confdefs.h <<\EOF
17857 #define wxUSE_MINIFRAME 1
17858 EOF
17859
17860 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
17861 fi
17862
17863 if test "$wxUSE_HTML" = "yes"; then
17864 cat >> confdefs.h <<\EOF
17865 #define wxUSE_HTML 1
17866 EOF
17867
17868 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
17869 fi
17870
17871 if test "$wxUSE_VALIDATORS" = "yes"; then
17872 cat >> confdefs.h <<\EOF
17873 #define wxUSE_VALIDATORS 1
17874 EOF
17875
17876 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
17877 fi
17878
17879 if test "$wxUSE_PALETTE" = "yes" ; then
17880 cat >> confdefs.h <<\EOF
17881 #define wxUSE_PALETTE 1
17882 EOF
17883
17884 fi
17885
17886 if test "$wxUSE_IMAGE" = "yes" ; then
17887 cat >> confdefs.h <<\EOF
17888 #define wxUSE_IMAGE 1
17889 EOF
17890
17891 fi
17892
17893 if test "$wxUSE_GIF" = "yes" ; then
17894 cat >> confdefs.h <<\EOF
17895 #define wxUSE_GIF 1
17896 EOF
17897
17898 fi
17899
17900 if test "$wxUSE_PCX" = "yes" ; then
17901 cat >> confdefs.h <<\EOF
17902 #define wxUSE_PCX 1
17903 EOF
17904
17905 fi
17906
17907 if test "$wxUSE_PNM" = "yes" ; then
17908 cat >> confdefs.h <<\EOF
17909 #define wxUSE_PNM 1
17910 EOF
17911
17912 fi
17913
17914 if test "$wxUSE_XPM" = "yes" ; then
17915 cat >> confdefs.h <<\EOF
17916 #define wxUSE_XPM 1
17917 EOF
17918
17919 fi
17920
17921
17922 if test "$wxUSE_CHOICEDLG" = "yes"; then
17923 cat >> confdefs.h <<\EOF
17924 #define wxUSE_CHOICEDLG 1
17925 EOF
17926
17927 fi
17928
17929 if test "$wxUSE_COLOURDLG" = "yes"; then
17930 cat >> confdefs.h <<\EOF
17931 #define wxUSE_COLOURDLG 1
17932 EOF
17933
17934 fi
17935
17936 if test "$wxUSE_FILEDLG" = "yes"; then
17937 cat >> confdefs.h <<\EOF
17938 #define wxUSE_FILEDLG 1
17939 EOF
17940
17941 fi
17942
17943 if test "$wxUSE_FINDREPLDLG" = "yes"; then
17944 cat >> confdefs.h <<\EOF
17945 #define wxUSE_FINDREPLDLG 1
17946 EOF
17947
17948 fi
17949
17950 if test "$wxUSE_FONTDLG" = "yes"; then
17951 cat >> confdefs.h <<\EOF
17952 #define wxUSE_FONTDLG 1
17953 EOF
17954
17955 fi
17956
17957 if test "$wxUSE_DIRDLG" = "yes"; then
17958 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17959 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
17960 else
17961 if test "$wxUSE_TREECTRL" != "yes"; then
17962 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
17963 else
17964 cat >> confdefs.h <<\EOF
17965 #define wxUSE_DIRDLG 1
17966 EOF
17967
17968 fi
17969 fi
17970 fi
17971
17972 if test "$wxUSE_MSGDLG" = "yes"; then
17973 cat >> confdefs.h <<\EOF
17974 #define wxUSE_MSGDLG 1
17975 EOF
17976
17977 fi
17978
17979 if test "$wxUSE_NUMBERDLG" = "yes"; then
17980 cat >> confdefs.h <<\EOF
17981 #define wxUSE_NUMBERDLG 1
17982 EOF
17983
17984 fi
17985
17986 if test "$wxUSE_PROGRESSDLG" = "yes"; then
17987 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17988 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
17989 else
17990 cat >> confdefs.h <<\EOF
17991 #define wxUSE_PROGRESSDLG 1
17992 EOF
17993
17994 fi
17995 fi
17996
17997 if test "$wxUSE_SPLASH" = "yes"; then
17998 cat >> confdefs.h <<\EOF
17999 #define wxUSE_SPLASH 1
18000 EOF
18001
18002 fi
18003
18004 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
18005 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18006 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
18007 else
18008 cat >> confdefs.h <<\EOF
18009 #define wxUSE_STARTUP_TIPS 1
18010 EOF
18011
18012 fi
18013 fi
18014
18015 if test "$wxUSE_TEXTDLG" = "yes"; then
18016 cat >> confdefs.h <<\EOF
18017 #define wxUSE_TEXTDLG 1
18018 EOF
18019
18020 fi
18021
18022 if test "$wxUSE_WIZARDDLG" = "yes"; then
18023 cat >> confdefs.h <<\EOF
18024 #define wxUSE_WIZARDDLG 1
18025 EOF
18026
18027 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
18028 fi
18029
18030
18031 if test "$cross_compiling" = "yes"; then
18032 OSINFO="\"$host\""
18033 else
18034 OSINFO=`uname -s -r -m`
18035 OSINFO="\"$OSINFO\""
18036 fi
18037
18038 cat >> confdefs.h <<EOF
18039 #define WXWIN_OS_DESCRIPTION $OSINFO
18040 EOF
18041
18042
18043
18044 if test "x$prefix" != "xNONE"; then
18045 wxPREFIX=$prefix
18046 else
18047 wxPREFIX=$ac_default_prefix
18048 fi
18049
18050 cat >> confdefs.h <<EOF
18051 #define wxINSTALL_PREFIX "$wxPREFIX"
18052 EOF
18053
18054
18055
18056 GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
18057
18058 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
18059
18060 if test "$wxUSE_MAC" = 1 ; then
18061 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
18062 fi
18063
18064 if test "$wxUSE_GUI" = "yes"; then
18065 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
18066
18067
18068 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
18069 drawing dynamic erase event exec font image \
18070 minimal richedit rotate widgets"
18071
18072 if test "$wxUSE_UNIVERSAL" = "yes" ; then
18073 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
18074 fi
18075
18076 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
18077 else
18078 SAMPLES_SUBDIRS="console"
18079 fi
18080
18081 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
18082
18083 INCLUDES="-I. -I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
18084 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
18085 $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
18086
18087 if test "$wxUSE_GTK" = 1; then
18088 WXCONFIG_INCLUDE=""
18089 else
18090 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
18091 fi
18092
18093 if test "$GXX" = yes ; then
18094 CXXWARNINGS="-Wall"
18095 fi
18096 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
18097
18098 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
18099 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
18100
18101 LDFLAGS="$LDFLAGS $PROFILE"
18102
18103 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
18104
18105
18106
18107
18108
18109
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 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
18187 echo "configure:18188: checking whether ${MAKE-make} sets \${MAKE}" >&5
18188 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
18189 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
18190 echo $ac_n "(cached) $ac_c" 1>&6
18191 else
18192 cat > conftestmake <<\EOF
18193 all:
18194 @echo 'ac_maketemp="${MAKE}"'
18195 EOF
18196 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18197 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
18198 if test -n "$ac_maketemp"; then
18199 eval ac_cv_prog_make_${ac_make}_set=yes
18200 else
18201 eval ac_cv_prog_make_${ac_make}_set=no
18202 fi
18203 rm -f conftestmake
18204 fi
18205 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
18206 echo "$ac_t""yes" 1>&6
18207 SET_MAKE=
18208 else
18209 echo "$ac_t""no" 1>&6
18210 SET_MAKE="MAKE=${MAKE-make}"
18211 fi
18212
18213
18214 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
18215 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
18216 fi
18217
18218
18219
18220 if test "$wxUSE_GUI" = "yes"; then
18221 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
18222 wx_cv_path_ifs=$PATH_IFS
18223 wx_cv_program_ext=$PROGRAM_EXT
18224 wx_cv_target_library=$WX_TARGET_LIBRARY
18225 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
18226 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
18227 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
18228 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
18229 subdirs="demos samples utils contrib"
18230
18231 fi
18232
18233 trap '' 1 2 15
18234 cat > confcache <<\EOF
18235 # This file is a shell script that caches the results of configure
18236 # tests run on this system so they can be shared between configure
18237 # scripts and configure runs. It is not useful on other systems.
18238 # If it contains results you don't want to keep, you may remove or edit it.
18239 #
18240 # By default, configure uses ./config.cache as the cache file,
18241 # creating it if it does not exist already. You can give configure
18242 # the --cache-file=FILE option to use a different cache file; that is
18243 # what configure does when it calls configure scripts in
18244 # subdirectories, so they share the cache.
18245 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18246 # config.status only pays attention to the cache file if you give it the
18247 # --recheck option to rerun configure.
18248 #
18249 EOF
18250 # The following way of writing the cache mishandles newlines in values,
18251 # but we know of no workaround that is simple, portable, and efficient.
18252 # So, don't put newlines in cache variables' values.
18253 # Ultrix sh set writes to stderr and can't be redirected directly,
18254 # and sets the high bit in the cache file unless we assign to the vars.
18255 (set) 2>&1 |
18256 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18257 *ac_space=\ *)
18258 # `set' does not quote correctly, so add quotes (double-quote substitution
18259 # turns \\\\ into \\, and sed turns \\ into \).
18260 sed -n \
18261 -e "s/'/'\\\\''/g" \
18262 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18263 ;;
18264 *)
18265 # `set' quotes correctly as required by POSIX, so do not add quotes.
18266 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18267 ;;
18268 esac >> confcache
18269 if cmp -s $cache_file confcache; then
18270 :
18271 else
18272 if test -w $cache_file; then
18273 echo "updating cache $cache_file"
18274 cat confcache > $cache_file
18275 else
18276 echo "not updating unwritable cache $cache_file"
18277 fi
18278 fi
18279 rm -f confcache
18280
18281 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18282
18283 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18284 # Let make expand exec_prefix.
18285 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18286
18287 # Any assignment to VPATH causes Sun make to only execute
18288 # the first set of double-colon rules, so remove it if not needed.
18289 # If there is a colon in the path, we need to keep it.
18290 if test "x$srcdir" = x.; then
18291 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
18292 fi
18293
18294 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18295
18296 DEFS=-DHAVE_CONFIG_H
18297
18298 # Without the "./", some shells look in PATH for config.status.
18299 : ${CONFIG_STATUS=./config.status}
18300
18301 echo creating $CONFIG_STATUS
18302 rm -f $CONFIG_STATUS
18303 cat > $CONFIG_STATUS <<EOF
18304 #! /bin/sh
18305 # Generated automatically by configure.
18306 # Run this file to recreate the current configuration.
18307 # This directory was configured as follows,
18308 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18309 #
18310 # $0 $ac_configure_args
18311 #
18312 # Compiler output produced by configure, useful for debugging
18313 # configure, is in ./config.log if it exists.
18314
18315 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18316 for ac_option
18317 do
18318 case "\$ac_option" in
18319 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18320 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18321 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18322 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18323 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18324 exit 0 ;;
18325 -help | --help | --hel | --he | --h)
18326 echo "\$ac_cs_usage"; exit 0 ;;
18327 *) echo "\$ac_cs_usage"; exit 1 ;;
18328 esac
18329 done
18330
18331 ac_given_srcdir=$srcdir
18332 ac_given_INSTALL="$INSTALL"
18333
18334 trap 'rm -fr `echo "
18335 wx-config
18336 src/make.env
18337 src/makeprog.env
18338 src/makelib.env
18339 Makefile
18340 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
18341 EOF
18342 cat >> $CONFIG_STATUS <<EOF
18343
18344 # Protect against being on the right side of a sed subst in config.status.
18345 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18346 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18347 $ac_vpsub
18348 $extrasub
18349 s%@SHELL@%$SHELL%g
18350 s%@CFLAGS@%$CFLAGS%g
18351 s%@CPPFLAGS@%$CPPFLAGS%g
18352 s%@CXXFLAGS@%$CXXFLAGS%g
18353 s%@FFLAGS@%$FFLAGS%g
18354 s%@DEFS@%$DEFS%g
18355 s%@LDFLAGS@%$LDFLAGS%g
18356 s%@LIBS@%$LIBS%g
18357 s%@exec_prefix@%$exec_prefix%g
18358 s%@prefix@%$prefix%g
18359 s%@program_transform_name@%$program_transform_name%g
18360 s%@bindir@%$bindir%g
18361 s%@sbindir@%$sbindir%g
18362 s%@libexecdir@%$libexecdir%g
18363 s%@datadir@%$datadir%g
18364 s%@sysconfdir@%$sysconfdir%g
18365 s%@sharedstatedir@%$sharedstatedir%g
18366 s%@localstatedir@%$localstatedir%g
18367 s%@libdir@%$libdir%g
18368 s%@includedir@%$includedir%g
18369 s%@oldincludedir@%$oldincludedir%g
18370 s%@infodir@%$infodir%g
18371 s%@mandir@%$mandir%g
18372 s%@host@%$host%g
18373 s%@host_alias@%$host_alias%g
18374 s%@host_cpu@%$host_cpu%g
18375 s%@host_vendor@%$host_vendor%g
18376 s%@host_os@%$host_os%g
18377 s%@target@%$target%g
18378 s%@target_alias@%$target_alias%g
18379 s%@target_cpu@%$target_cpu%g
18380 s%@target_vendor@%$target_vendor%g
18381 s%@target_os@%$target_os%g
18382 s%@build@%$build%g
18383 s%@build_alias@%$build_alias%g
18384 s%@build_cpu@%$build_cpu%g
18385 s%@build_vendor@%$build_vendor%g
18386 s%@build_os@%$build_os%g
18387 s%@CC@%$CC%g
18388 s%@CPP@%$CPP%g
18389 s%@CXX@%$CXX%g
18390 s%@RANLIB@%$RANLIB%g
18391 s%@AR@%$AR%g
18392 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18393 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18394 s%@INSTALL_DATA@%$INSTALL_DATA%g
18395 s%@STRIP@%$STRIP%g
18396 s%@YACC@%$YACC%g
18397 s%@LEX@%$LEX%g
18398 s%@LEXLIB@%$LEXLIB%g
18399 s%@LN_S@%$LN_S%g
18400 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
18401 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18402 s%@GTK_LIBS@%$GTK_LIBS%g
18403 s%@GTK_CONFIG@%$GTK_CONFIG%g
18404 s%@X_CFLAGS@%$X_CFLAGS%g
18405 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18406 s%@X_LIBS@%$X_LIBS%g
18407 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
18408 s%@RESCOMP@%$RESCOMP%g
18409 s%@DEREZ@%$DEREZ%g
18410 s%@CXXCPP@%$CXXCPP%g
18411 s%@LEX_STEM@%$LEX_STEM%g
18412 s%@PATH_IFS@%$PATH_IFS%g
18413 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18414 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18415 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
18416 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18417 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
18418 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18419 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18420 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
18421 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
18422 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18423 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
18424 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18425 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18426 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
18427 s%@WX_ALL@%$WX_ALL%g
18428 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18429 s%@SHARED_LD@%$SHARED_LD%g
18430 s%@PIC_FLAG@%$PIC_FLAG%g
18431 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18432 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
18433 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
18434 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
18435 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18436 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18437 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18438 s%@USE_GUI@%$USE_GUI%g
18439 s%@AFMINSTALL@%$AFMINSTALL%g
18440 s%@TOOLKIT@%$TOOLKIT%g
18441 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
18442 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
18443 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
18444 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
18445 s%@cross_compiling@%$cross_compiling%g
18446 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
18447 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
18448 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18449 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
18450 s%@GUIDIST@%$GUIDIST%g
18451 s%@PORT_FILES@%$PORT_FILES%g
18452 s%@DISTDIR@%$DISTDIR%g
18453 s%@RPM_SPEC@%$RPM_SPEC%g
18454 s%@RPM_FILES@%$RPM_FILES%g
18455 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
18456 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
18457 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18458 s%@EXTRADEFS@%$EXTRADEFS%g
18459 s%@LD_LIBS@%$LD_LIBS%g
18460 s%@WXMSW_DLL_DEFINES@%$WXMSW_DLL_DEFINES%g
18461 s%@RESFLAGS@%$RESFLAGS%g
18462 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
18463 s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
18464 s%@LIBWXMACRES@%$LIBWXMACRES%g
18465 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18466 s%@DLLTOOL@%$DLLTOOL%g
18467 s%@AS@%$AS%g
18468 s%@NM@%$NM%g
18469 s%@LD@%$LD%g
18470 s%@MAKEINFO@%$MAKEINFO%g
18471 s%@SET_MAKE@%$SET_MAKE%g
18472 s%@subdirs@%$subdirs%g
18473
18474 CEOF
18475 EOF
18476
18477 cat >> $CONFIG_STATUS <<\EOF
18478
18479 # Split the substitutions into bite-sized pieces for seds with
18480 # small command number limits, like on Digital OSF/1 and HP-UX.
18481 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18482 ac_file=1 # Number of current file.
18483 ac_beg=1 # First line for current file.
18484 ac_end=$ac_max_sed_cmds # Line after last line for current file.
18485 ac_more_lines=:
18486 ac_sed_cmds=""
18487 while $ac_more_lines; do
18488 if test $ac_beg -gt 1; then
18489 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18490 else
18491 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18492 fi
18493 if test ! -s conftest.s$ac_file; then
18494 ac_more_lines=false
18495 rm -f conftest.s$ac_file
18496 else
18497 if test -z "$ac_sed_cmds"; then
18498 ac_sed_cmds="sed -f conftest.s$ac_file"
18499 else
18500 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18501 fi
18502 ac_file=`expr $ac_file + 1`
18503 ac_beg=$ac_end
18504 ac_end=`expr $ac_end + $ac_max_sed_cmds`
18505 fi
18506 done
18507 if test -z "$ac_sed_cmds"; then
18508 ac_sed_cmds=cat
18509 fi
18510 EOF
18511
18512 cat >> $CONFIG_STATUS <<EOF
18513
18514 CONFIG_FILES=\${CONFIG_FILES-"wx-config
18515 src/make.env
18516 src/makeprog.env
18517 src/makelib.env
18518 Makefile
18519 "}
18520 EOF
18521 cat >> $CONFIG_STATUS <<\EOF
18522 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18523 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18524 case "$ac_file" in
18525 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18526 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18527 *) ac_file_in="${ac_file}.in" ;;
18528 esac
18529
18530 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18531
18532 # Remove last slash and all that follows it. Not all systems have dirname.
18533 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18534 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18535 # The file is in a subdirectory.
18536 test ! -d "$ac_dir" && mkdir "$ac_dir"
18537 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18538 # A "../" for each directory in $ac_dir_suffix.
18539 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18540 else
18541 ac_dir_suffix= ac_dots=
18542 fi
18543
18544 case "$ac_given_srcdir" in
18545 .) srcdir=.
18546 if test -z "$ac_dots"; then top_srcdir=.
18547 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18548 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18549 *) # Relative path.
18550 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18551 top_srcdir="$ac_dots$ac_given_srcdir" ;;
18552 esac
18553
18554 case "$ac_given_INSTALL" in
18555 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18556 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18557 esac
18558
18559 echo creating "$ac_file"
18560 rm -f "$ac_file"
18561 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18562 case "$ac_file" in
18563 *Makefile*) ac_comsub="1i\\
18564 # $configure_input" ;;
18565 *) ac_comsub= ;;
18566 esac
18567
18568 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18569 sed -e "$ac_comsub
18570 s%@configure_input@%$configure_input%g
18571 s%@srcdir@%$srcdir%g
18572 s%@top_srcdir@%$top_srcdir%g
18573 s%@INSTALL@%$INSTALL%g
18574 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18575 fi; done
18576 rm -f conftest.s*
18577
18578 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18579 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18580 #
18581 # ac_d sets the value in "#define NAME VALUE" lines.
18582 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18583 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18584 ac_dC='\3'
18585 ac_dD='%g'
18586 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18587 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18588 ac_uB='\([ ]\)%\1#\2define\3'
18589 ac_uC=' '
18590 ac_uD='\4%g'
18591 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18592 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18593 ac_eB='$%\1#\2define\3'
18594 ac_eC=' '
18595 ac_eD='%g'
18596
18597 if test "${CONFIG_HEADERS+set}" != set; then
18598 EOF
18599 cat >> $CONFIG_STATUS <<EOF
18600 CONFIG_HEADERS="setup.h:setup.h.in"
18601 EOF
18602 cat >> $CONFIG_STATUS <<\EOF
18603 fi
18604 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18605 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18606 case "$ac_file" in
18607 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18608 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18609 *) ac_file_in="${ac_file}.in" ;;
18610 esac
18611
18612 echo creating $ac_file
18613
18614 rm -f conftest.frag conftest.in conftest.out
18615 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18616 cat $ac_file_inputs > conftest.in
18617
18618 EOF
18619
18620 # Transform confdefs.h into a sed script conftest.vals that substitutes
18621 # the proper values into config.h.in to produce config.h. And first:
18622 # Protect against being on the right side of a sed subst in config.status.
18623 # Protect against being in an unquoted here document in config.status.
18624 rm -f conftest.vals
18625 cat > conftest.hdr <<\EOF
18626 s/[\\&%]/\\&/g
18627 s%[\\$`]%\\&%g
18628 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18629 s%ac_d%ac_u%gp
18630 s%ac_u%ac_e%gp
18631 EOF
18632 sed -n -f conftest.hdr confdefs.h > conftest.vals
18633 rm -f conftest.hdr
18634
18635 # This sed command replaces #undef with comments. This is necessary, for
18636 # example, in the case of _POSIX_SOURCE, which is predefined and required
18637 # on some systems where configure will not decide to define it.
18638 cat >> conftest.vals <<\EOF
18639 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18640 EOF
18641
18642 # Break up conftest.vals because some shells have a limit on
18643 # the size of here documents, and old seds have small limits too.
18644
18645 rm -f conftest.tail
18646 while :
18647 do
18648 ac_lines=`grep -c . conftest.vals`
18649 # grep -c gives empty output for an empty file on some AIX systems.
18650 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18651 # Write a limited-size here document to conftest.frag.
18652 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18653 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18654 echo 'CEOF
18655 sed -f conftest.frag conftest.in > conftest.out
18656 rm -f conftest.in
18657 mv conftest.out conftest.in
18658 ' >> $CONFIG_STATUS
18659 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18660 rm -f conftest.vals
18661 mv conftest.tail conftest.vals
18662 done
18663 rm -f conftest.vals
18664
18665 cat >> $CONFIG_STATUS <<\EOF
18666 rm -f conftest.frag conftest.h
18667 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18668 cat conftest.in >> conftest.h
18669 rm -f conftest.in
18670 if cmp -s $ac_file conftest.h 2>/dev/null; then
18671 echo "$ac_file is unchanged"
18672 rm -f conftest.h
18673 else
18674 # Remove last slash and all that follows it. Not all systems have dirname.
18675 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18676 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18677 # The file is in a subdirectory.
18678 test ! -d "$ac_dir" && mkdir "$ac_dir"
18679 fi
18680 rm -f $ac_file
18681 mv conftest.h $ac_file
18682 fi
18683 fi; done
18684
18685 EOF
18686 cat >> $CONFIG_STATUS <<EOF
18687
18688 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
18689 LN_S="${LN_S}"
18690
18691
18692 EOF
18693 cat >> $CONFIG_STATUS <<\EOF
18694
18695 if test ! -L wx-config; then
18696 chmod +x wx-config
18697 mv wx-config wx${TOOLCHAIN_NAME}-config
18698 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
18699 fi
18700
18701 if test ! -d lib; then
18702 mkdir lib
18703 fi
18704 if test ! -d lib/wx; then
18705 mkdir lib/wx
18706 fi
18707 if test ! -d lib/wx/include; then
18708 mkdir lib/wx/include
18709 fi
18710 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
18711 mkdir lib/wx/include/${TOOLCHAIN_NAME}
18712 fi
18713 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
18714 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
18715 fi
18716 if test -f setup.h; then
18717 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
18718 fi
18719
18720 exit 0
18721 EOF
18722 chmod +x $CONFIG_STATUS
18723 rm -fr confdefs* $ac_clean_files
18724 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
18725
18726 if test "$no_recursion" != yes; then
18727
18728 # Remove --cache-file and --srcdir arguments so they do not pile up.
18729 ac_sub_configure_args=
18730 ac_prev=
18731 for ac_arg in $ac_configure_args; do
18732 if test -n "$ac_prev"; then
18733 ac_prev=
18734 continue
18735 fi
18736 case "$ac_arg" in
18737 -cache-file | --cache-file | --cache-fil | --cache-fi \
18738 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18739 ac_prev=cache_file ;;
18740 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18741 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
18742 ;;
18743 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18744 ac_prev=srcdir ;;
18745 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18746 ;;
18747 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18748 esac
18749 done
18750
18751 for ac_config_dir in demos samples utils contrib; do
18752
18753 # Do not complain, so a configure script can configure whichever
18754 # parts of a large source tree are present.
18755 if test ! -d $srcdir/$ac_config_dir; then
18756 continue
18757 fi
18758
18759 echo configuring in $ac_config_dir
18760
18761 case "$srcdir" in
18762 .) ;;
18763 *)
18764 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18765 else
18766 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18767 fi
18768 ;;
18769 esac
18770
18771 ac_popdir=`pwd`
18772 cd $ac_config_dir
18773
18774 # A "../" for each directory in /$ac_config_dir.
18775 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
18776
18777 case "$srcdir" in
18778 .) # No --srcdir option. We are building in place.
18779 ac_sub_srcdir=$srcdir ;;
18780 /*) # Absolute path.
18781 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
18782 *) # Relative path.
18783 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
18784 esac
18785
18786 # Check for guested configure; otherwise get Cygnus style configure.
18787 if test -f $ac_sub_srcdir/configure; then
18788 ac_sub_configure=$ac_sub_srcdir/configure
18789 elif test -f $ac_sub_srcdir/configure.in; then
18790 ac_sub_configure=$ac_configure
18791 else
18792 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
18793 ac_sub_configure=
18794 fi
18795
18796 # The recursion is here.
18797 if test -n "$ac_sub_configure"; then
18798
18799 # Make the cache file name correct relative to the subdirectory.
18800 case "$cache_file" in
18801 /*) ac_sub_cache_file=$cache_file ;;
18802 *) # Relative path.
18803 ac_sub_cache_file="$ac_dots$cache_file" ;;
18804 esac
18805 case "$ac_given_INSTALL" in
18806 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18807 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18808 esac
18809
18810 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
18811 # The eval makes quoting arguments work.
18812 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
18813 then :
18814 else
18815 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
18816 fi
18817 fi
18818
18819 cd $ac_popdir
18820 done
18821 fi
18822
18823