]> git.saurik.com Git - wxWidgets.git/blob - configure
Added flat Carbon and MoreFiles headers to compile flags
[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-precomp enable use of precompiled headers (Mac OS X)"
108 ac_help="$ac_help
109 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
110 ac_help="$ac_help
111 --enable-debug_info create code with debugging information"
112 ac_help="$ac_help
113 --enable-debug_gdb create code with extra GDB debugging information"
114 ac_help="$ac_help
115 --enable-debug_cntxt use wxDebugContext"
116 ac_help="$ac_help
117 --enable-mem_tracing create code with memory tracing"
118 ac_help="$ac_help
119 --enable-profile create code with profiling information"
120 ac_help="$ac_help
121 --enable-no_rtti create code without RTTI information"
122 ac_help="$ac_help
123 --enable-no_exceptions create code without C++ exceptions handling"
124 ac_help="$ac_help
125 --enable-permissive compile code disregarding strict ANSI"
126 ac_help="$ac_help
127 --enable-no_deps create code without dependency information"
128 ac_help="$ac_help
129 --enable-compat20 enable wxWindows 2.0 compatibility"
130 ac_help="$ac_help
131 --enable-compat22 enable wxWindows 2.2 compatibility"
132 ac_help="$ac_help
133 --enable-intl use internationalization system"
134 ac_help="$ac_help
135 --enable-config use wxConfig (and derived) classes"
136 ac_help="$ac_help
137 --enable-sockets use socket/network classes"
138 ac_help="$ac_help
139 --enable-ipc use interprocess communication (wxSocket etc.)"
140 ac_help="$ac_help
141 --enable-cmdline use wxCmdLineParser class"
142 ac_help="$ac_help
143 --enable-datetime use wxDateTime class"
144 ac_help="$ac_help
145 --enable-timedate use obsolete wxDate/wxTime classes"
146 ac_help="$ac_help
147 --enable-stopwatch use wxStopWatch class"
148 ac_help="$ac_help
149 --enable-dialupman use dialup network classes"
150 ac_help="$ac_help
151 --enable-apple_ieee use the Apple IEEE codec"
152 ac_help="$ac_help
153 --enable-timer use wxTimer class"
154 ac_help="$ac_help
155 --enable-wave use wxWave class"
156 ac_help="$ac_help
157 --enable-fraction use wxFraction class"
158 ac_help="$ac_help
159 --enable-dynlib use wxLibrary class for DLL loading"
160 ac_help="$ac_help
161 --enable-longlong use wxLongLong class"
162 ac_help="$ac_help
163 --enable-geometry use geometry class"
164 ac_help="$ac_help
165 --enable-log use logging system"
166 ac_help="$ac_help
167 --enable-streams use wxStream etc classes"
168 ac_help="$ac_help
169 --enable-file use wxFile classes"
170 ac_help="$ac_help
171 --enable-ffile use wxFFile classes"
172 ac_help="$ac_help
173 --enable-textfile use wxTextFile classes"
174 ac_help="$ac_help
175 --enable-fontmap use font encodings conversion classes"
176 ac_help="$ac_help
177 --enable-unicode compile wxString with Unicode support"
178 ac_help="$ac_help
179 --enable-wxprintfv use wxWindows implementation of vprintf()"
180 ac_help="$ac_help
181 --enable-std_iostreams use standard C++ stream classes"
182 ac_help="$ac_help
183 --enable-filesystem use virtual file systems classes"
184 ac_help="$ac_help
185 --enable-fs_inet use virtual HTTP/FTP filesystems"
186 ac_help="$ac_help
187 --enable-fs_zip use virtual ZIP filesystems"
188 ac_help="$ac_help
189 --enable-zipstream use wxZipInputStream"
190 ac_help="$ac_help
191 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
192 ac_help="$ac_help
193 --enable-snglinst use wxSingleInstanceChecker class"
194 ac_help="$ac_help
195 --enable-mimetypes use wxMimeTypesManager"
196 ac_help="$ac_help
197 --enable-sysoptions use wxSystemOptions"
198 ac_help="$ac_help
199 --enable-threads use threads"
200 ac_help="$ac_help
201 --enable-serial use class serialization"
202 ac_help="$ac_help
203 --enable-docview use document view architecture"
204 ac_help="$ac_help
205 --enable-help use help subsystem"
206 ac_help="$ac_help
207 --enable-mshtmlhelp use MS HTML Help (win32)"
208 ac_help="$ac_help
209 --enable-html use wxHTML sub-library"
210 ac_help="$ac_help
211 --enable-htmlhelp use wxHTML-based help"
212 ac_help="$ac_help
213 --enable-constraints use layout-constraints system"
214 ac_help="$ac_help
215 --enable-printarch use printing architecture"
216 ac_help="$ac_help
217 --enable-mdi use multiple document interface architecture"
218 ac_help="$ac_help
219 --enable-loggui use standard GUI logger"
220 ac_help="$ac_help
221 --enable-logwin use wxLogWindow"
222 ac_help="$ac_help
223 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
224 ac_help="$ac_help
225 --enable-prologio use Prolog IO library"
226 ac_help="$ac_help
227 --enable-resources use wxWindows resources"
228 ac_help="$ac_help
229 --enable-xresources use X resources for save (default for gtk+)"
230 ac_help="$ac_help
231 --enable-clipboard use wxClipboard classes"
232 ac_help="$ac_help
233 --enable-dnd use Drag'n'Drop classes"
234 ac_help="$ac_help
235 --enable-metafile use win32 metafiles"
236 ac_help="$ac_help
237 --enable-treelayout use wxTreeLayout classes"
238 ac_help="$ac_help
239 --enable-controls use all usual controls"
240 ac_help="$ac_help
241 --enable-accel use accelerators"
242 ac_help="$ac_help
243 --enable-button use wxButton class"
244 ac_help="$ac_help
245 --enable-bmpbutton use wxBitmapButton class"
246 ac_help="$ac_help
247 --enable-calendar use wxCalendarCtrl class"
248 ac_help="$ac_help
249 --enable-caret use wxCaret class"
250 ac_help="$ac_help
251 --enable-checkbox use wxCheckBox class"
252 ac_help="$ac_help
253 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
254 ac_help="$ac_help
255 --enable-choice use wxChoice class"
256 ac_help="$ac_help
257 --enable-combobox use wxComboBox classes"
258 ac_help="$ac_help
259 --enable-gauge use wxGauge class"
260 ac_help="$ac_help
261 --enable-grid use wxGrid class"
262 ac_help="$ac_help
263 --enable-newgrid use new wxGrid class"
264 ac_help="$ac_help
265 --enable-imaglist use wxImageList class"
266 ac_help="$ac_help
267 --enable-listbox use wxListBox class"
268 ac_help="$ac_help
269 --enable-listctrl use wxListCtrl class"
270 ac_help="$ac_help
271 --enable-notebook use wxNotebook class"
272 ac_help="$ac_help
273 --enable-propsheet use wxPropertySheet class"
274 ac_help="$ac_help
275 --enable-radiobox use wxRadioBox class"
276 ac_help="$ac_help
277 --enable-radiobtn use wxRadioButton class"
278 ac_help="$ac_help
279 --enable-sash use wxSashWindow class"
280 ac_help="$ac_help
281 --enable-scrollbar use wxScrollBar class and scrollable windows"
282 ac_help="$ac_help
283 --enable-slider use wxSlider class"
284 ac_help="$ac_help
285 --enable-spinbtn use wxSpinButton class"
286 ac_help="$ac_help
287 --enable-spinctrl use wxSpinCtrl class"
288 ac_help="$ac_help
289 --enable-splitter use wxSplitterWindow class"
290 ac_help="$ac_help
291 --enable-statbmp use wxStaticBitmap class"
292 ac_help="$ac_help
293 --enable-statbox use wxStaticBox class"
294 ac_help="$ac_help
295 --enable-statline use wxStaticLine class"
296 ac_help="$ac_help
297 --enable-stattext use wxStaticText class"
298 ac_help="$ac_help
299 --enable-statusbar use wxStatusBar class"
300 ac_help="$ac_help
301 --enable-tabdialog use wxTabControl class"
302 ac_help="$ac_help
303 --enable-textctrl use wxTextCtrl class"
304 ac_help="$ac_help
305 --enable-togglebtn use wxToggleButton class"
306 ac_help="$ac_help
307 --enable-toolbar use wxToolBar class"
308 ac_help="$ac_help
309 --enable-tbarnative use native wxToolBar class"
310 ac_help="$ac_help
311 --enable-tbarsmpl use wxToolBarSimple class"
312 ac_help="$ac_help
313 --enable-treectrl use wxTreeCtrl class"
314 ac_help="$ac_help
315 --enable-popupwin use wxPopUpWindow class"
316 ac_help="$ac_help
317 --enable-commondlg use all common dialogs"
318 ac_help="$ac_help
319 --enable-choicedlg use wxChoiceDialog"
320 ac_help="$ac_help
321 --enable-coldlg use wxColourDialog"
322 ac_help="$ac_help
323 --enable-filedlg use wxFileDialog"
324 ac_help="$ac_help
325 --enable-finddlg use wxFindReplaceDialog"
326 ac_help="$ac_help
327 --enable-fontdlg use wxFontDialog"
328 ac_help="$ac_help
329 --enable-dirdlg use wxDirDialog"
330 ac_help="$ac_help
331 --enable-msgdlg use wxMessageDialog"
332 ac_help="$ac_help
333 --enable-numberdlg use wxNumberEntryDialog"
334 ac_help="$ac_help
335 --enable-splash use wxSplashScreen"
336 ac_help="$ac_help
337 --enable-textdlg use wxTextDialog"
338 ac_help="$ac_help
339 --enable-tipdlg use startup tips"
340 ac_help="$ac_help
341 --enable-progressdlg use wxProgressDialog"
342 ac_help="$ac_help
343 --enable-wizarddlg use wxWizard"
344 ac_help="$ac_help
345 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
346 ac_help="$ac_help
347 --enable-miniframe use wxMiniFrame class"
348 ac_help="$ac_help
349 --enable-tooltips use wxToolTip class"
350 ac_help="$ac_help
351 --enable-splines use spline drawing code"
352 ac_help="$ac_help
353 --enable-validators use wxValidator and derived classes"
354 ac_help="$ac_help
355 --enable-busyinfo use wxBusyInfo"
356 ac_help="$ac_help
357 --enable-joystick use wxJoystick (Linux only)"
358 ac_help="$ac_help
359 --enable-metafiles use wxMetaFile (Windows only)"
360 ac_help="$ac_help
361 --enable-dragimage use wxDragImage"
362 ac_help="$ac_help
363 --enable-palette use wxPalette class"
364 ac_help="$ac_help
365 --enable-image use wxImage class"
366 ac_help="$ac_help
367 --enable-gif use gif images (GIF file format)"
368 ac_help="$ac_help
369 --enable-pcx use pcx images (PCX file format)"
370 ac_help="$ac_help
371 --enable-pnm use pnm images (PNM file format)"
372 ac_help="$ac_help
373 --enable-xpm use xpm images (XPM file format)"
374 ac_help="$ac_help
375 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
376 ac_help="$ac_help
377 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
378 ac_help="$ac_help
379 --disable-gtktest Do not try to compile and run a test GTK program"
380 ac_help="$ac_help
381 --with-x use the X Window System"
382
383 # Initialize some variables set by options.
384 # The variables have the same names as the options, with
385 # dashes changed to underlines.
386 build=NONE
387 cache_file=./config.cache
388 exec_prefix=NONE
389 host=NONE
390 no_create=
391 nonopt=NONE
392 no_recursion=
393 prefix=NONE
394 program_prefix=NONE
395 program_suffix=NONE
396 program_transform_name=s,x,x,
397 silent=
398 site=
399 srcdir=
400 target=NONE
401 verbose=
402 x_includes=NONE
403 x_libraries=NONE
404 bindir='${exec_prefix}/bin'
405 sbindir='${exec_prefix}/sbin'
406 libexecdir='${exec_prefix}/libexec'
407 datadir='${prefix}/share'
408 sysconfdir='${prefix}/etc'
409 sharedstatedir='${prefix}/com'
410 localstatedir='${prefix}/var'
411 libdir='${exec_prefix}/lib'
412 includedir='${prefix}/include'
413 oldincludedir='/usr/include'
414 infodir='${prefix}/info'
415 mandir='${prefix}/man'
416
417 # Initialize some other variables.
418 subdirs=
419 MFLAGS= MAKEFLAGS=
420 SHELL=${CONFIG_SHELL-/bin/sh}
421 # Maximum number of lines to put in a shell here document.
422 ac_max_here_lines=12
423
424 ac_prev=
425 for ac_option
426 do
427
428 # If the previous option needs an argument, assign it.
429 if test -n "$ac_prev"; then
430 eval "$ac_prev=\$ac_option"
431 ac_prev=
432 continue
433 fi
434
435 case "$ac_option" in
436 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
437 *) ac_optarg= ;;
438 esac
439
440 # Accept the important Cygnus configure options, so we can diagnose typos.
441
442 case "$ac_option" in
443
444 -bindir | --bindir | --bindi | --bind | --bin | --bi)
445 ac_prev=bindir ;;
446 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
447 bindir="$ac_optarg" ;;
448
449 -build | --build | --buil | --bui | --bu)
450 ac_prev=build ;;
451 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
452 build="$ac_optarg" ;;
453
454 -cache-file | --cache-file | --cache-fil | --cache-fi \
455 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
456 ac_prev=cache_file ;;
457 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
458 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
459 cache_file="$ac_optarg" ;;
460
461 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
462 ac_prev=datadir ;;
463 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
464 | --da=*)
465 datadir="$ac_optarg" ;;
466
467 -disable-* | --disable-*)
468 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
469 # Reject names that are not valid shell variable names.
470 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
471 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
472 fi
473 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
474 eval "enable_${ac_feature}=no" ;;
475
476 -enable-* | --enable-*)
477 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
478 # Reject names that are not valid shell variable names.
479 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
480 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
481 fi
482 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
483 case "$ac_option" in
484 *=*) ;;
485 *) ac_optarg=yes ;;
486 esac
487 eval "enable_${ac_feature}='$ac_optarg'" ;;
488
489 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
490 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
491 | --exec | --exe | --ex)
492 ac_prev=exec_prefix ;;
493 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
494 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
495 | --exec=* | --exe=* | --ex=*)
496 exec_prefix="$ac_optarg" ;;
497
498 -gas | --gas | --ga | --g)
499 # Obsolete; use --with-gas.
500 with_gas=yes ;;
501
502 -help | --help | --hel | --he)
503 # Omit some internal or obsolete options to make the list less imposing.
504 # This message is too long to be a string in the A/UX 3.1 sh.
505 cat << EOF
506 Usage: configure [options] [host]
507 Options: [defaults in brackets after descriptions]
508 Configuration:
509 --cache-file=FILE cache test results in FILE
510 --help print this message
511 --no-create do not create output files
512 --quiet, --silent do not print \`checking...' messages
513 --version print the version of autoconf that created configure
514 Directory and file names:
515 --prefix=PREFIX install architecture-independent files in PREFIX
516 [$ac_default_prefix]
517 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
518 [same as prefix]
519 --bindir=DIR user executables in DIR [EPREFIX/bin]
520 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
521 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
522 --datadir=DIR read-only architecture-independent data in DIR
523 [PREFIX/share]
524 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
525 --sharedstatedir=DIR modifiable architecture-independent data in DIR
526 [PREFIX/com]
527 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
528 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
529 --includedir=DIR C header files in DIR [PREFIX/include]
530 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
531 --infodir=DIR info documentation in DIR [PREFIX/info]
532 --mandir=DIR man documentation in DIR [PREFIX/man]
533 --srcdir=DIR find the sources in DIR [configure dir or ..]
534 --program-prefix=PREFIX prepend PREFIX to installed program names
535 --program-suffix=SUFFIX append SUFFIX to installed program names
536 --program-transform-name=PROGRAM
537 run sed PROGRAM on installed program names
538 EOF
539 cat << EOF
540 Host type:
541 --build=BUILD configure for building on BUILD [BUILD=HOST]
542 --host=HOST configure for HOST [guessed]
543 --target=TARGET configure for TARGET [TARGET=HOST]
544 Features and packages:
545 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
546 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
547 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
548 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
549 --x-includes=DIR X include files are in DIR
550 --x-libraries=DIR X library files are in DIR
551 EOF
552 if test -n "$ac_help"; then
553 echo "--enable and --with options recognized:$ac_help"
554 fi
555 exit 0 ;;
556
557 -host | --host | --hos | --ho)
558 ac_prev=host ;;
559 -host=* | --host=* | --hos=* | --ho=*)
560 host="$ac_optarg" ;;
561
562 -includedir | --includedir | --includedi | --included | --include \
563 | --includ | --inclu | --incl | --inc)
564 ac_prev=includedir ;;
565 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
566 | --includ=* | --inclu=* | --incl=* | --inc=*)
567 includedir="$ac_optarg" ;;
568
569 -infodir | --infodir | --infodi | --infod | --info | --inf)
570 ac_prev=infodir ;;
571 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
572 infodir="$ac_optarg" ;;
573
574 -libdir | --libdir | --libdi | --libd)
575 ac_prev=libdir ;;
576 -libdir=* | --libdir=* | --libdi=* | --libd=*)
577 libdir="$ac_optarg" ;;
578
579 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
580 | --libexe | --libex | --libe)
581 ac_prev=libexecdir ;;
582 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
583 | --libexe=* | --libex=* | --libe=*)
584 libexecdir="$ac_optarg" ;;
585
586 -localstatedir | --localstatedir | --localstatedi | --localstated \
587 | --localstate | --localstat | --localsta | --localst \
588 | --locals | --local | --loca | --loc | --lo)
589 ac_prev=localstatedir ;;
590 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
591 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
592 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
593 localstatedir="$ac_optarg" ;;
594
595 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
596 ac_prev=mandir ;;
597 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
598 mandir="$ac_optarg" ;;
599
600 -nfp | --nfp | --nf)
601 # Obsolete; use --without-fp.
602 with_fp=no ;;
603
604 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
605 | --no-cr | --no-c)
606 no_create=yes ;;
607
608 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
609 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
610 no_recursion=yes ;;
611
612 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
613 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
614 | --oldin | --oldi | --old | --ol | --o)
615 ac_prev=oldincludedir ;;
616 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
617 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
618 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
619 oldincludedir="$ac_optarg" ;;
620
621 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
622 ac_prev=prefix ;;
623 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
624 prefix="$ac_optarg" ;;
625
626 -program-prefix | --program-prefix | --program-prefi | --program-pref \
627 | --program-pre | --program-pr | --program-p)
628 ac_prev=program_prefix ;;
629 -program-prefix=* | --program-prefix=* | --program-prefi=* \
630 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
631 program_prefix="$ac_optarg" ;;
632
633 -program-suffix | --program-suffix | --program-suffi | --program-suff \
634 | --program-suf | --program-su | --program-s)
635 ac_prev=program_suffix ;;
636 -program-suffix=* | --program-suffix=* | --program-suffi=* \
637 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
638 program_suffix="$ac_optarg" ;;
639
640 -program-transform-name | --program-transform-name \
641 | --program-transform-nam | --program-transform-na \
642 | --program-transform-n | --program-transform- \
643 | --program-transform | --program-transfor \
644 | --program-transfo | --program-transf \
645 | --program-trans | --program-tran \
646 | --progr-tra | --program-tr | --program-t)
647 ac_prev=program_transform_name ;;
648 -program-transform-name=* | --program-transform-name=* \
649 | --program-transform-nam=* | --program-transform-na=* \
650 | --program-transform-n=* | --program-transform-=* \
651 | --program-transform=* | --program-transfor=* \
652 | --program-transfo=* | --program-transf=* \
653 | --program-trans=* | --program-tran=* \
654 | --progr-tra=* | --program-tr=* | --program-t=*)
655 program_transform_name="$ac_optarg" ;;
656
657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
658 | -silent | --silent | --silen | --sile | --sil)
659 silent=yes ;;
660
661 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
662 ac_prev=sbindir ;;
663 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
664 | --sbi=* | --sb=*)
665 sbindir="$ac_optarg" ;;
666
667 -sharedstatedir | --sharedstatedir | --sharedstatedi \
668 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
669 | --sharedst | --shareds | --shared | --share | --shar \
670 | --sha | --sh)
671 ac_prev=sharedstatedir ;;
672 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
673 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
674 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
675 | --sha=* | --sh=*)
676 sharedstatedir="$ac_optarg" ;;
677
678 -site | --site | --sit)
679 ac_prev=site ;;
680 -site=* | --site=* | --sit=*)
681 site="$ac_optarg" ;;
682
683 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
684 ac_prev=srcdir ;;
685 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
686 srcdir="$ac_optarg" ;;
687
688 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
689 | --syscon | --sysco | --sysc | --sys | --sy)
690 ac_prev=sysconfdir ;;
691 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
692 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
693 sysconfdir="$ac_optarg" ;;
694
695 -target | --target | --targe | --targ | --tar | --ta | --t)
696 ac_prev=target ;;
697 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698 target="$ac_optarg" ;;
699
700 -v | -verbose | --verbose | --verbos | --verbo | --verb)
701 verbose=yes ;;
702
703 -version | --version | --versio | --versi | --vers)
704 echo "configure generated by autoconf version 2.13"
705 exit 0 ;;
706
707 -with-* | --with-*)
708 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
709 # Reject names that are not valid shell variable names.
710 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
711 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
712 fi
713 ac_package=`echo $ac_package| sed 's/-/_/g'`
714 case "$ac_option" in
715 *=*) ;;
716 *) ac_optarg=yes ;;
717 esac
718 eval "with_${ac_package}='$ac_optarg'" ;;
719
720 -without-* | --without-*)
721 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
722 # Reject names that are not valid shell variable names.
723 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
724 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
725 fi
726 ac_package=`echo $ac_package| sed 's/-/_/g'`
727 eval "with_${ac_package}=no" ;;
728
729 --x)
730 # Obsolete; use --with-x.
731 with_x=yes ;;
732
733 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
734 | --x-incl | --x-inc | --x-in | --x-i)
735 ac_prev=x_includes ;;
736 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
737 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
738 x_includes="$ac_optarg" ;;
739
740 -x-libraries | --x-libraries | --x-librarie | --x-librari \
741 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
742 ac_prev=x_libraries ;;
743 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
744 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
745 x_libraries="$ac_optarg" ;;
746
747 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
748 ;;
749
750 *)
751 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
752 echo "configure: warning: $ac_option: invalid host type" 1>&2
753 fi
754 if test "x$nonopt" != xNONE; then
755 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
756 fi
757 nonopt="$ac_option"
758 ;;
759
760 esac
761 done
762
763 if test -n "$ac_prev"; then
764 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
765 fi
766
767 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
768
769 # File descriptor usage:
770 # 0 standard input
771 # 1 file creation
772 # 2 errors and warnings
773 # 3 some systems may open it to /dev/tty
774 # 4 used on the Kubota Titan
775 # 6 checking for... messages and results
776 # 5 compiler messages saved in config.log
777 if test "$silent" = yes; then
778 exec 6>/dev/null
779 else
780 exec 6>&1
781 fi
782 exec 5>./config.log
783
784 echo "\
785 This file contains any messages produced by compilers while
786 running configure, to aid debugging if configure makes a mistake.
787 " 1>&5
788
789 # Strip out --no-create and --no-recursion so they do not pile up.
790 # Also quote any args containing shell metacharacters.
791 ac_configure_args=
792 for ac_arg
793 do
794 case "$ac_arg" in
795 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
796 | --no-cr | --no-c) ;;
797 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
798 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
799 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
800 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
801 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
802 esac
803 done
804
805 # NLS nuisances.
806 # Only set these to C if already set. These must not be set unconditionally
807 # because not all systems understand e.g. LANG=C (notably SCO).
808 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
809 # Non-C LC_CTYPE values break the ctype check.
810 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
811 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
812 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
813 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
814
815 # confdefs.h avoids OS command line length limits that DEFS can exceed.
816 rm -rf conftest* confdefs.h
817 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
818 echo > confdefs.h
819
820 # A filename unique to this package, relative to the directory that
821 # configure is in, which we can look for to find out if srcdir is correct.
822 ac_unique_file=wx-config.in
823
824 # Find the source files, if location was not specified.
825 if test -z "$srcdir"; then
826 ac_srcdir_defaulted=yes
827 # Try the directory containing this script, then its parent.
828 ac_prog=$0
829 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
830 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
831 srcdir=$ac_confdir
832 if test ! -r $srcdir/$ac_unique_file; then
833 srcdir=..
834 fi
835 else
836 ac_srcdir_defaulted=no
837 fi
838 if test ! -r $srcdir/$ac_unique_file; then
839 if test "$ac_srcdir_defaulted" = yes; then
840 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
841 else
842 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
843 fi
844 fi
845 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
846
847 # Prefer explicitly selected file to automatically selected ones.
848 if test -z "$CONFIG_SITE"; then
849 if test "x$prefix" != xNONE; then
850 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
851 else
852 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
853 fi
854 fi
855 for ac_site_file in $CONFIG_SITE; do
856 if test -r "$ac_site_file"; then
857 echo "loading site script $ac_site_file"
858 . "$ac_site_file"
859 fi
860 done
861
862 if test -r "$cache_file"; then
863 echo "loading cache $cache_file"
864 . $cache_file
865 else
866 echo "creating cache $cache_file"
867 > $cache_file
868 fi
869
870 ac_ext=c
871 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
872 ac_cpp='$CPP $CPPFLAGS'
873 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
874 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
875 cross_compiling=$ac_cv_prog_cc_cross
876
877 ac_exeext=
878 ac_objext=o
879 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
880 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
881 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
882 ac_n= ac_c='
883 ' ac_t=' '
884 else
885 ac_n=-n ac_c= ac_t=
886 fi
887 else
888 ac_n= ac_c='\c' ac_t=
889 fi
890
891
892
893 ac_aux_dir=
894 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
895 if test -f $ac_dir/install-sh; then
896 ac_aux_dir=$ac_dir
897 ac_install_sh="$ac_aux_dir/install-sh -c"
898 break
899 elif test -f $ac_dir/install.sh; then
900 ac_aux_dir=$ac_dir
901 ac_install_sh="$ac_aux_dir/install.sh -c"
902 break
903 fi
904 done
905 if test -z "$ac_aux_dir"; then
906 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
907 fi
908 ac_config_guess=$ac_aux_dir/config.guess
909 ac_config_sub=$ac_aux_dir/config.sub
910 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
911
912
913 # Do some error checking and defaulting for the host and target type.
914 # The inputs are:
915 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
916 #
917 # The rules are:
918 # 1. You are not allowed to specify --host, --target, and nonopt at the
919 # same time.
920 # 2. Host defaults to nonopt.
921 # 3. If nonopt is not specified, then host defaults to the current host,
922 # as determined by config.guess.
923 # 4. Target and build default to nonopt.
924 # 5. If nonopt is not specified, then target and build default to host.
925
926 # The aliases save the names the user supplied, while $host etc.
927 # will get canonicalized.
928 case $host---$target---$nonopt in
929 NONE---*---* | *---NONE---* | *---*---NONE) ;;
930 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
931 esac
932
933
934 # Make sure we can run config.sub.
935 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
936 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
937 fi
938
939 echo $ac_n "checking host system type""... $ac_c" 1>&6
940 echo "configure:941: checking host system type" >&5
941
942 host_alias=$host
943 case "$host_alias" in
944 NONE)
945 case $nonopt in
946 NONE)
947 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
948 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
949 fi ;;
950 *) host_alias=$nonopt ;;
951 esac ;;
952 esac
953
954 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
955 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
956 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
957 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
958 echo "$ac_t""$host" 1>&6
959
960 echo $ac_n "checking target system type""... $ac_c" 1>&6
961 echo "configure:962: checking target system type" >&5
962
963 target_alias=$target
964 case "$target_alias" in
965 NONE)
966 case $nonopt in
967 NONE) target_alias=$host_alias ;;
968 *) target_alias=$nonopt ;;
969 esac ;;
970 esac
971
972 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
973 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
974 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
975 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
976 echo "$ac_t""$target" 1>&6
977
978 echo $ac_n "checking build system type""... $ac_c" 1>&6
979 echo "configure:980: checking build system type" >&5
980
981 build_alias=$build
982 case "$build_alias" in
983 NONE)
984 case $nonopt in
985 NONE) build_alias=$host_alias ;;
986 *) build_alias=$nonopt ;;
987 esac ;;
988 esac
989
990 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
991 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
992 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
993 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
994 echo "$ac_t""$build" 1>&6
995
996 test "$host_alias" != "$target_alias" &&
997 test "$program_prefix$program_suffix$program_transform_name" = \
998 NONENONEs,x,x, &&
999 program_prefix=${target_alias}-
1000
1001
1002
1003 WX_MAJOR_VERSION_NUMBER=2
1004 WX_MINOR_VERSION_NUMBER=3
1005 WX_RELEASE_NUMBER=2
1006
1007 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1008 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1009
1010 WX_CURRENT=1
1011 WX_REVISION=0
1012 WX_AGE=0
1013
1014
1015
1016 USE_UNIX=1
1017 USE_WIN32=0
1018 USE_BEOS=0
1019 USE_MAC=0
1020
1021 USE_LINUX=
1022 USE_SGI=
1023 USE_HPUX=
1024 USE_SYSV=
1025 USE_SVR4=
1026 USE_AIX=
1027 USE_SUN=
1028 USE_SOLARIS=
1029 USE_SUNOS=
1030 USE_ALPHA=
1031 USE_OSF=
1032 USE_BSD=
1033 USE_DARWIN=
1034 USE_FREEBSD=
1035 USE_OPENBSD=
1036 USE_NETBSD=
1037 USE_VMS=
1038 USE_ULTRIX=
1039 USE_CYGWIN=
1040 USE_MINGW=
1041 USE_DATA_GENERAL=
1042
1043 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1044
1045 ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
1046
1047 DEFAULT_wxUSE_GTK=0
1048 DEFAULT_wxUSE_MAC=0
1049 DEFAULT_wxUSE_MGL=0
1050 DEFAULT_wxUSE_MOTIF=0
1051 DEFAULT_wxUSE_MSW=0
1052 DEFAULT_wxUSE_PM=0
1053 DEFAULT_wxUSE_WINE=0
1054
1055 DEFAULT_DEFAULT_wxUSE_GTK=0
1056 DEFAULT_DEFAULT_wxUSE_MAC=0
1057 DEFAULT_DEFAULT_wxUSE_MGL=0
1058 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1059 DEFAULT_DEFAULT_wxUSE_MSW=0
1060 DEFAULT_DEFAULT_wxUSE_PM=0
1061 DEFAULT_DEFAULT_wxUSE_WINE=0
1062
1063 PROGRAM_EXT=
1064 SO_SUFFIX=so
1065
1066 case "${host}" in
1067 *-hp-hpux* )
1068 USE_HPUX=1
1069 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1070 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1071 SO_SUFFIX=sl
1072 cat >> confdefs.h <<\EOF
1073 #define __HPUX__ 1
1074 EOF
1075
1076 ;;
1077 *-*-linux* )
1078 USE_LINUX=1
1079 cat >> confdefs.h <<\EOF
1080 #define __LINUX__ 1
1081 EOF
1082
1083 TMP=`uname -m`
1084 if test "x$TMP" = "xalpha"; then
1085 USE_ALPHA=1
1086 cat >> confdefs.h <<\EOF
1087 #define __ALPHA__ 1
1088 EOF
1089
1090 fi
1091 DEFAULT_DEFAULT_wxUSE_GTK=1
1092 ;;
1093 *-*-irix5* | *-*-irix6* )
1094 USE_SGI=1
1095 USE_SVR4=1
1096 cat >> confdefs.h <<\EOF
1097 #define __SGI__ 1
1098 EOF
1099
1100 cat >> confdefs.h <<\EOF
1101 #define __SVR4__ 1
1102 EOF
1103
1104 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1105 ;;
1106 *-*-solaris2* )
1107 USE_SUN=1
1108 USE_SOLARIS=1
1109 USE_SVR4=1
1110 cat >> confdefs.h <<\EOF
1111 #define __SUN__ 1
1112 EOF
1113
1114 cat >> confdefs.h <<\EOF
1115 #define __SOLARIS__ 1
1116 EOF
1117
1118 cat >> confdefs.h <<\EOF
1119 #define __SVR4__ 1
1120 EOF
1121
1122 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1123 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1124 ;;
1125 *-*-sunos4* )
1126 USE_SUN=1
1127 USE_SUNOS=1
1128 USE_BSD=1
1129 cat >> confdefs.h <<\EOF
1130 #define __SUN__ 1
1131 EOF
1132
1133 cat >> confdefs.h <<\EOF
1134 #define __SUNOS__ 1
1135 EOF
1136
1137 cat >> confdefs.h <<\EOF
1138 #define __BSD__ 1
1139 EOF
1140
1141 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1142 ;;
1143 *-*-freebsd*)
1144 USE_BSD=1
1145 USE_FREEBSD=1
1146 cat >> confdefs.h <<\EOF
1147 #define __FREEBSD__ 1
1148 EOF
1149
1150 cat >> confdefs.h <<\EOF
1151 #define __BSD__ 1
1152 EOF
1153
1154 DEFAULT_DEFAULT_wxUSE_GTK=1
1155 ;;
1156 *-*-openbsd*)
1157 USE_BSD=1
1158 USE_OPENBSD=1
1159 cat >> confdefs.h <<\EOF
1160 #define __FREEBSD__ 1
1161 EOF
1162
1163 cat >> confdefs.h <<\EOF
1164 #define __OPENBSD__ 1
1165 EOF
1166
1167 DEFAULT_DEFAULT_wxUSE_GTK=1
1168 ;;
1169 *-*-netbsd*)
1170 USE_BSD=1
1171 USE_NETBSD=1
1172 cat >> confdefs.h <<\EOF
1173 #define __FREEBSD__ 1
1174 EOF
1175
1176 cat >> confdefs.h <<\EOF
1177 #define __NETBSD__ 1
1178 EOF
1179
1180 DEFAULT_DEFAULT_wxUSE_GTK=1
1181 ;;
1182 *-*-osf* )
1183 USE_ALPHA=1
1184 USE_OSF=1
1185 cat >> confdefs.h <<\EOF
1186 #define __ALPHA__ 1
1187 EOF
1188
1189 cat >> confdefs.h <<\EOF
1190 #define __OSF__ 1
1191 EOF
1192
1193 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1194 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1195 ;;
1196 *-*-dgux5* )
1197 USE_ALPHA=1
1198 USE_SVR4=1
1199 cat >> confdefs.h <<\EOF
1200 #define __ALPHA__ 1
1201 EOF
1202
1203 cat >> confdefs.h <<\EOF
1204 #define __SVR4__ 1
1205 EOF
1206
1207 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1208 ;;
1209 *-*-sysv5* )
1210 USE_SYSV=1
1211 USE_SVR4=1
1212 cat >> confdefs.h <<\EOF
1213 #define __SYSV__ 1
1214 EOF
1215
1216 cat >> confdefs.h <<\EOF
1217 #define __SVR4__ 1
1218 EOF
1219
1220 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1221 ;;
1222 *-*-aix* )
1223 USE_AIX=1
1224 USE_SYSV=1
1225 USE_SVR4=1
1226 cat >> confdefs.h <<\EOF
1227 #define __AIX__ 1
1228 EOF
1229
1230 cat >> confdefs.h <<\EOF
1231 #define __SYSV__ 1
1232 EOF
1233
1234 cat >> confdefs.h <<\EOF
1235 #define __SVR4__ 1
1236 EOF
1237
1238 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1239 ;;
1240
1241 *-*-cygwin* | *-*-mingw32* )
1242 USE_UNIX=0
1243 USE_WIN32=1
1244 SO_SUFFIX=dll
1245 cat >> confdefs.h <<\EOF
1246 #define __WIN32__ 1
1247 EOF
1248
1249 cat >> confdefs.h <<\EOF
1250 #define __WIN95__ 1
1251 EOF
1252
1253 cat >> confdefs.h <<\EOF
1254 #define __WINDOWS__ 1
1255 EOF
1256
1257 cat >> confdefs.h <<\EOF
1258 #define __GNUWIN32__ 1
1259 EOF
1260
1261 cat >> confdefs.h <<\EOF
1262 #define STRICT 1
1263 EOF
1264
1265 cat >> confdefs.h <<\EOF
1266 #define WINVER 0x0400
1267 EOF
1268
1269 PROGRAM_EXT=".exe"
1270 RESCOMP=windres
1271 DEFAULT_DEFAULT_wxUSE_MSW=1
1272 ;;
1273
1274 *-pc-os2_emx )
1275 cat >> confdefs.h <<\EOF
1276 #define __EMX__ 1
1277 EOF
1278
1279 PROGRAM_EXT=".exe"
1280 DEFAULT_DEFAULT_wxUSE_PM=1
1281 ;;
1282
1283 powerpc-*-darwin* )
1284 USE_BSD=1
1285 USE_DARWIN=1
1286 SO_SUFFIX=dylib
1287 cat >> confdefs.h <<\EOF
1288 #define __BSD__ 1
1289 EOF
1290
1291 cat >> confdefs.h <<\EOF
1292 #define __DARWIN__ 1
1293 EOF
1294
1295 cat >> confdefs.h <<\EOF
1296 #define __POWERPC__ 1
1297 EOF
1298
1299 DEFAULT_DEFAULT_wxUSE_MAC=1
1300 ;;
1301
1302 *-*-beos* )
1303 USE_BEOS=1
1304 cat >> confdefs.h <<\EOF
1305 #define __BEOS__ 1
1306 EOF
1307
1308 ;;
1309
1310 *)
1311 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1312 esac
1313
1314 if test "$USE_UNIX" = 1 ; then
1315 wxUSE_UNIX=yes
1316 cat >> confdefs.h <<\EOF
1317 #define __UNIX__ 1
1318 EOF
1319
1320 fi
1321
1322 if test "$USE_LINUX" = 1; then
1323 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
1324 echo "configure:1325: checking for glibc 2.1 or later" >&5
1325 if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1327 else
1328 cat > conftest.$ac_ext <<EOF
1329 #line 1330 "configure"
1330 #include "confdefs.h"
1331 #include <features.h>
1332 int main() {
1333
1334 #if !__GLIBC_PREREQ(2, 1)
1335 #error not glibc2.1
1336 #endif
1337
1338 ; return 0; }
1339 EOF
1340 if { (eval echo configure:1341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1341 rm -rf conftest*
1342
1343 wx_lib_glibc21=yes
1344
1345 else
1346 echo "configure: failed program was:" >&5
1347 cat conftest.$ac_ext >&5
1348 rm -rf conftest*
1349
1350 wx_lib_glibc21=no
1351
1352
1353 fi
1354 rm -f conftest*
1355
1356 fi
1357
1358 echo "$ac_t""$wx_lib_glibc21" 1>&6
1359 if test "$wx_lib_glibc21" = "yes"; then
1360 cat >> confdefs.h <<\EOF
1361 #define wxHAVE_GLIBC2 1
1362 EOF
1363
1364 fi
1365 fi
1366
1367
1368
1369
1370 wx_arg_cache_file="configarg.cache"
1371 echo "loading argument cache $wx_arg_cache_file"
1372 rm -f ${wx_arg_cache_file}.tmp
1373 touch ${wx_arg_cache_file}.tmp
1374 touch ${wx_arg_cache_file}
1375
1376
1377 DEBUG_CONFIGURE=0
1378 if test $DEBUG_CONFIGURE = 1; then
1379 DEFAULT_wxUSE_UNIVERSAL=no
1380
1381 DEFAULT_wxUSE_THREADS=yes
1382
1383 DEFAULT_wxUSE_SHARED=yes
1384 DEFAULT_wxUSE_SONAME=no
1385 DEFAULT_wxUSE_OPTIMISE=no
1386 DEFAULT_wxUSE_PROFILE=no
1387 DEFAULT_wxUSE_NO_DEPS=no
1388 DEFAULT_wxUSE_NO_RTTI=no
1389 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1390 DEFAULT_wxUSE_PERMISSIVE=no
1391 DEFAULT_wxUSE_DEBUG_FLAG=yes
1392 DEFAULT_wxUSE_DEBUG_INFO=yes
1393 DEFAULT_wxUSE_DEBUG_GDB=yes
1394 DEFAULT_wxUSE_MEM_TRACING=no
1395 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1396 DEFAULT_wxUSE_DMALLOC=no
1397 DEFAULT_wxUSE_PRECOMP=yes
1398 DEFAULT_wxUSE_APPLE_IEEE=no
1399
1400 DEFAULT_wxUSE_LOG=yes
1401 DEFAULT_wxUSE_LOGWINDOW=no
1402 DEFAULT_wxUSE_LOGGUI=no
1403
1404 DEFAULT_wxUSE_GUI=yes
1405 DEFAULT_wxUSE_CONTROLS=no
1406
1407 DEFAULT_wxUSE_REGEX=no
1408 DEFAULT_wxUSE_ZLIB=no
1409 DEFAULT_wxUSE_LIBPNG=no
1410 DEFAULT_wxUSE_LIBJPEG=no
1411 DEFAULT_wxUSE_LIBTIFF=no
1412 DEFAULT_wxUSE_ODBC=no
1413 DEFAULT_wxUSE_FREETYPE=no
1414 DEFAULT_wxUSE_OPENGL=no
1415
1416 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1417 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1418 DEFAULT_wxUSE_STD_IOSTREAM=no
1419 DEFAULT_wxUSE_CMDLINE_PARSER=no
1420 DEFAULT_wxUSE_DATETIME=no
1421 DEFAULT_wxUSE_TIMEDATE=no
1422 DEFAULT_wxUSE_TIMER=no
1423 DEFAULT_wxUSE_STOPWATCH=no
1424 DEFAULT_wxUSE_FILE=no
1425 DEFAULT_wxUSE_FFILE=no
1426 DEFAULT_wxUSE_TEXTFILE=no
1427 DEFAULT_wxUSE_WAVE=no
1428 DEFAULT_wxUSE_INTL=no
1429 DEFAULT_wxUSE_CONFIG=no
1430 DEFAULT_wxUSE_FONTMAP=no
1431 DEFAULT_wxUSE_STREAMS=no
1432 DEFAULT_wxUSE_SOCKETS=no
1433 DEFAULT_wxUSE_DIALUP_MANAGER=no
1434 DEFAULT_wxUSE_SERIAL=no
1435 DEFAULT_wxUSE_JOYSTICK=no
1436 DEFAULT_wxUSE_DYNLIB_CLASS=no
1437 DEFAULT_wxUSE_LONGLONG=no
1438 DEFAULT_wxUSE_GEOMETRY=no
1439
1440 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1441 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1442 DEFAULT_wxUSE_POSTSCRIPT=no
1443
1444 DEFAULT_wxUSE_X_RESOURCES=no
1445 DEFAULT_wxUSE_CLIPBOARD=no
1446 DEFAULT_wxUSE_TOOLTIPS=no
1447 DEFAULT_wxUSE_DRAG_AND_DROP=no
1448 DEFAULT_wxUSE_DRAGIMAGE=no
1449 DEFAULT_wxUSE_SPLINES=no
1450
1451 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1452 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1453 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1454
1455 DEFAULT_wxUSE_PROLOGIO=no
1456 DEFAULT_wxUSE_RESOURCES=no
1457 DEFAULT_wxUSE_CONSTRAINTS=no
1458 DEFAULT_wxUSE_IPC=no
1459 DEFAULT_wxUSE_HELP=no
1460 DEFAULT_wxUSE_MS_HTML_HELP=no
1461 DEFAULT_wxUSE_WXHTML_HELP=no
1462 DEFAULT_wxUSE_TREELAYOUT=no
1463 DEFAULT_wxUSE_METAFILE=no
1464 DEFAULT_wxUSE_MIMETYPE=no
1465 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1466
1467 DEFAULT_wxUSE_COMMONDLGS=no
1468 DEFAULT_wxUSE_CHOICEDLG=no
1469 DEFAULT_wxUSE_COLOURDLG=no
1470 DEFAULT_wxUSE_DIRDLG=no
1471 DEFAULT_wxUSE_FILEDLG=no
1472 DEFAULT_wxUSE_FINDREPLDLG=no
1473 DEFAULT_wxUSE_FONTDLG=no
1474 DEFAULT_wxUSE_MSGDLG=no
1475 DEFAULT_wxUSE_NUMBERDLG=no
1476 DEFAULT_wxUSE_TEXTDLG=no
1477 DEFAULT_wxUSE_SPLASH=no
1478 DEFAULT_wxUSE_STARTUP_TIPS=no
1479 DEFAULT_wxUSE_PROGRESSDLG=no
1480 DEFAULT_wxUSE_WIZARDDLG=no
1481
1482 DEFAULT_wxUSE_MENUS=no
1483 DEFAULT_wxUSE_MINIFRAME=no
1484 DEFAULT_wxUSE_HTML=no
1485 DEFAULT_wxUSE_FILESYSTEM=no
1486 DEFAULT_wxUSE_FS_INET=no
1487 DEFAULT_wxUSE_FS_ZIP=no
1488 DEFAULT_wxUSE_BUSYINFO=no
1489 DEFAULT_wxUSE_ZIPSTREAM=no
1490 DEFAULT_wxUSE_VALIDATORS=no
1491
1492 DEFAULT_wxUSE_ACCEL=no
1493 DEFAULT_wxUSE_BUTTON=no
1494 DEFAULT_wxUSE_BMPBUTTON=no
1495 DEFAULT_wxUSE_CALCTRL=no
1496 DEFAULT_wxUSE_CARET=no
1497 DEFAULT_wxUSE_CHECKBOX=no
1498 DEFAULT_wxUSE_CHECKLST=no
1499 DEFAULT_wxUSE_CHOICE=no
1500 DEFAULT_wxUSE_COMBOBOX=no
1501 DEFAULT_wxUSE_GAUGE=no
1502 DEFAULT_wxUSE_GRID=no
1503 DEFAULT_wxUSE_NEW_GRID=no
1504 DEFAULT_wxUSE_IMAGLIST=no
1505 DEFAULT_wxUSE_LISTBOX=no
1506 DEFAULT_wxUSE_LISTCTRL=no
1507 DEFAULT_wxUSE_NOTEBOOK=no
1508 DEFAULT_wxUSE_PROPSHEET=no
1509 DEFAULT_wxUSE_RADIOBOX=no
1510 DEFAULT_wxUSE_RADIOBTN=no
1511 DEFAULT_wxUSE_SASH=no
1512 DEFAULT_wxUSE_SCROLLBAR=no
1513 DEFAULT_wxUSE_SLIDER=no
1514 DEFAULT_wxUSE_SPINBTN=no
1515 DEFAULT_wxUSE_SPINCTRL=no
1516 DEFAULT_wxUSE_SPLITTER=no
1517 DEFAULT_wxUSE_STATBMP=no
1518 DEFAULT_wxUSE_STATBOX=no
1519 DEFAULT_wxUSE_STATLINE=no
1520 DEFAULT_wxUSE_STATTEXT=no
1521 DEFAULT_wxUSE_STATUSBAR=yes
1522 DEFAULT_wxUSE_TABDIALOG=no
1523 DEFAULT_wxUSE_TEXTCTRL=no
1524 DEFAULT_wxUSE_TOGGLEBTN=no
1525 DEFAULT_wxUSE_TOOLBAR=no
1526 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1527 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1528 DEFAULT_wxUSE_TREECTRL=no
1529 DEFAULT_wxUSE_POPUPWIN=no
1530
1531 DEFAULT_wxUSE_UNICODE=no
1532 DEFAULT_wxUSE_WCSRTOMBS=no
1533
1534 DEFAULT_wxUSE_PALETTE=no
1535 DEFAULT_wxUSE_IMAGE=no
1536 DEFAULT_wxUSE_GIF=no
1537 DEFAULT_wxUSE_PCX=no
1538 DEFAULT_wxUSE_PNM=no
1539 DEFAULT_wxUSE_XPM=no
1540 else
1541 DEFAULT_wxUSE_UNIVERSAL=no
1542
1543 DEFAULT_wxUSE_THREADS=yes
1544
1545 DEFAULT_wxUSE_SHARED=yes
1546 DEFAULT_wxUSE_SONAME=no
1547 DEFAULT_wxUSE_OPTIMISE=yes
1548 DEFAULT_wxUSE_PROFILE=no
1549 DEFAULT_wxUSE_NO_DEPS=no
1550 DEFAULT_wxUSE_NO_RTTI=no
1551 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1552 DEFAULT_wxUSE_PERMISSIVE=no
1553 DEFAULT_wxUSE_DEBUG_FLAG=no
1554 DEFAULT_wxUSE_DEBUG_INFO=no
1555 DEFAULT_wxUSE_DEBUG_GDB=no
1556 DEFAULT_wxUSE_MEM_TRACING=no
1557 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1558 DEFAULT_wxUSE_DMALLOC=no
1559 DEFAULT_wxUSE_PRECOMP=yes
1560 DEFAULT_wxUSE_APPLE_IEEE=yes
1561
1562 DEFAULT_wxUSE_LOG=yes
1563 DEFAULT_wxUSE_LOGWINDOW=yes
1564 DEFAULT_wxUSE_LOGGUI=yes
1565
1566 DEFAULT_wxUSE_GUI=yes
1567
1568 DEFAULT_wxUSE_REGEX=yes
1569 DEFAULT_wxUSE_ZLIB=yes
1570 DEFAULT_wxUSE_LIBPNG=yes
1571 DEFAULT_wxUSE_LIBJPEG=yes
1572 DEFAULT_wxUSE_LIBTIFF=yes
1573 DEFAULT_wxUSE_ODBC=no
1574 DEFAULT_wxUSE_FREETYPE=no
1575 DEFAULT_wxUSE_OPENGL=no
1576
1577 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1578 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1579 DEFAULT_wxUSE_STD_IOSTREAM=no
1580 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1581 DEFAULT_wxUSE_DATETIME=yes
1582 DEFAULT_wxUSE_TIMEDATE=no
1583 DEFAULT_wxUSE_TIMER=yes
1584 DEFAULT_wxUSE_STOPWATCH=yes
1585 DEFAULT_wxUSE_FILE=yes
1586 DEFAULT_wxUSE_FFILE=yes
1587 DEFAULT_wxUSE_TEXTFILE=yes
1588 DEFAULT_wxUSE_WAVE=no
1589 DEFAULT_wxUSE_INTL=yes
1590 DEFAULT_wxUSE_CONFIG=yes
1591 DEFAULT_wxUSE_FONTMAP=yes
1592 DEFAULT_wxUSE_STREAMS=yes
1593 DEFAULT_wxUSE_SOCKETS=yes
1594 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1595 DEFAULT_wxUSE_SERIAL=yes
1596 DEFAULT_wxUSE_JOYSTICK=yes
1597 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1598 DEFAULT_wxUSE_LONGLONG=yes
1599 DEFAULT_wxUSE_GEOMETRY=yes
1600
1601 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1602 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1603 DEFAULT_wxUSE_POSTSCRIPT=yes
1604
1605 DEFAULT_wxUSE_X_RESOURCES=no
1606 DEFAULT_wxUSE_CLIPBOARD=yes
1607 DEFAULT_wxUSE_TOOLTIPS=yes
1608 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1609 DEFAULT_wxUSE_DRAGIMAGE=yes
1610 DEFAULT_wxUSE_SPLINES=yes
1611
1612 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1613 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1614 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1615
1616 DEFAULT_wxUSE_PROLOGIO=yes
1617 DEFAULT_wxUSE_RESOURCES=yes
1618 DEFAULT_wxUSE_CONSTRAINTS=yes
1619 DEFAULT_wxUSE_IPC=yes
1620 DEFAULT_wxUSE_HELP=yes
1621 DEFAULT_wxUSE_MS_HTML_HELP=yes
1622 DEFAULT_wxUSE_WXHTML_HELP=yes
1623 DEFAULT_wxUSE_TREELAYOUT=yes
1624 DEFAULT_wxUSE_METAFILE=yes
1625 DEFAULT_wxUSE_MIMETYPE=yes
1626 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1627
1628 DEFAULT_wxUSE_COMMONDLGS=yes
1629 DEFAULT_wxUSE_CHOICEDLG=yes
1630 DEFAULT_wxUSE_COLOURDLG=yes
1631 DEFAULT_wxUSE_DIRDLG=yes
1632 DEFAULT_wxUSE_FILEDLG=yes
1633 DEFAULT_wxUSE_FINDREPLDLG=yes
1634 DEFAULT_wxUSE_FONTDLG=yes
1635 DEFAULT_wxUSE_MSGDLG=yes
1636 DEFAULT_wxUSE_NUMBERDLG=yes
1637 DEFAULT_wxUSE_TEXTDLG=yes
1638 DEFAULT_wxUSE_SPLASH=yes
1639 DEFAULT_wxUSE_STARTUP_TIPS=yes
1640 DEFAULT_wxUSE_PROGRESSDLG=yes
1641 DEFAULT_wxUSE_WIZARDDLG=yes
1642
1643 DEFAULT_wxUSE_MENUS=yes
1644 DEFAULT_wxUSE_MINIFRAME=yes
1645 DEFAULT_wxUSE_HTML=yes
1646 DEFAULT_wxUSE_FILESYSTEM=yes
1647 DEFAULT_wxUSE_FS_INET=yes
1648 DEFAULT_wxUSE_FS_ZIP=yes
1649 DEFAULT_wxUSE_BUSYINFO=yes
1650 DEFAULT_wxUSE_ZIPSTREAM=yes
1651 DEFAULT_wxUSE_VALIDATORS=yes
1652
1653 DEFAULT_wxUSE_ACCEL=yes
1654 DEFAULT_wxUSE_BUTTON=yes
1655 DEFAULT_wxUSE_BMPBUTTON=yes
1656 DEFAULT_wxUSE_CALCTRL=yes
1657 DEFAULT_wxUSE_CARET=yes
1658 DEFAULT_wxUSE_CHECKBOX=yes
1659 DEFAULT_wxUSE_CHECKLST=yes
1660 DEFAULT_wxUSE_CHOICE=yes
1661 DEFAULT_wxUSE_COMBOBOX=yes
1662 DEFAULT_wxUSE_GAUGE=yes
1663 DEFAULT_wxUSE_GRID=yes
1664 DEFAULT_wxUSE_NEW_GRID=yes
1665 DEFAULT_wxUSE_IMAGLIST=yes
1666 DEFAULT_wxUSE_LISTBOX=yes
1667 DEFAULT_wxUSE_LISTCTRL=yes
1668 DEFAULT_wxUSE_NOTEBOOK=yes
1669 DEFAULT_wxUSE_PROPSHEET=yes
1670 DEFAULT_wxUSE_RADIOBOX=yes
1671 DEFAULT_wxUSE_RADIOBTN=yes
1672 DEFAULT_wxUSE_SASH=yes
1673 DEFAULT_wxUSE_SCROLLBAR=yes
1674 DEFAULT_wxUSE_SLIDER=yes
1675 DEFAULT_wxUSE_SPINBTN=yes
1676 DEFAULT_wxUSE_SPINCTRL=yes
1677 DEFAULT_wxUSE_SPLITTER=yes
1678 DEFAULT_wxUSE_STATBMP=yes
1679 DEFAULT_wxUSE_STATBOX=yes
1680 DEFAULT_wxUSE_STATLINE=yes
1681 DEFAULT_wxUSE_STATTEXT=yes
1682 DEFAULT_wxUSE_STATUSBAR=yes
1683 DEFAULT_wxUSE_TABDIALOG=no
1684 DEFAULT_wxUSE_TEXTCTRL=yes
1685 DEFAULT_wxUSE_TOGGLEBTN=yes
1686 DEFAULT_wxUSE_TOOLBAR=yes
1687 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1688 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1689 DEFAULT_wxUSE_TREECTRL=yes
1690 DEFAULT_wxUSE_POPUPWIN=yes
1691
1692 DEFAULT_wxUSE_UNICODE=no
1693 DEFAULT_wxUSE_WCSRTOMBS=no
1694
1695 DEFAULT_wxUSE_PALETTE=yes
1696 DEFAULT_wxUSE_IMAGE=yes
1697 DEFAULT_wxUSE_GIF=yes
1698 DEFAULT_wxUSE_PCX=yes
1699 DEFAULT_wxUSE_PNM=yes
1700 DEFAULT_wxUSE_XPM=yes
1701 fi
1702
1703
1704
1705 for toolkit in `echo $ALL_TOOLKITS`; do
1706 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1707 if test "x$LINE" != x ; then
1708 has_toolkit_in_cache=1
1709 eval "DEFAULT_$LINE"
1710 eval "CACHE_$toolkit=1"
1711 fi
1712 done
1713
1714
1715
1716 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1717 echo "configure:1718: checking for --enable-gui" >&5
1718 no_cache=0
1719 # Check whether --enable-gui or --disable-gui was given.
1720 if test "${enable_gui+set}" = set; then
1721 enableval="$enable_gui"
1722
1723 if test "$enableval" = yes; then
1724 ac_cv_use_gui='wxUSE_GUI=yes'
1725 else
1726 ac_cv_use_gui='wxUSE_GUI=no'
1727 fi
1728
1729 else
1730
1731 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1732 if test "x$LINE" != x ; then
1733 eval "DEFAULT_$LINE"
1734 else
1735 no_cache=1
1736 fi
1737
1738 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1739
1740 fi
1741
1742
1743 eval "$ac_cv_use_gui"
1744 if test "$no_cache" != 1; then
1745 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1746 fi
1747
1748 if test "$wxUSE_GUI" = yes; then
1749 echo "$ac_t""yes" 1>&6
1750 else
1751 echo "$ac_t""no" 1>&6
1752 fi
1753
1754
1755 if test "$wxUSE_GUI" = "yes"; then
1756
1757
1758 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1759 echo "configure:1760: checking for --enable-universal" >&5
1760 no_cache=0
1761 # Check whether --enable-universal or --disable-universal was given.
1762 if test "${enable_universal+set}" = set; then
1763 enableval="$enable_universal"
1764
1765 if test "$enableval" = yes; then
1766 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1767 else
1768 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1769 fi
1770
1771 else
1772
1773 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1774 if test "x$LINE" != x ; then
1775 eval "DEFAULT_$LINE"
1776 else
1777 no_cache=1
1778 fi
1779
1780 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1781
1782 fi
1783
1784
1785 eval "$ac_cv_use_universal"
1786 if test "$no_cache" != 1; then
1787 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1788 fi
1789
1790 if test "$wxUSE_UNIVERSAL" = yes; then
1791 echo "$ac_t""yes" 1>&6
1792 else
1793 echo "$ac_t""no" 1>&6
1794 fi
1795
1796 # Check whether --with-gtk or --without-gtk was given.
1797 if test "${with_gtk+set}" = set; then
1798 withval="$with_gtk"
1799 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1800 fi
1801
1802 # Check whether --with-motif or --without-motif was given.
1803 if test "${with_motif+set}" = set; then
1804 withval="$with_motif"
1805 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1806 fi
1807
1808 # Check whether --with-mac or --without-mac was given.
1809 if test "${with_mac+set}" = set; then
1810 withval="$with_mac"
1811 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1812 fi
1813
1814 # Check whether --with-wine or --without-wine was given.
1815 if test "${with_wine+set}" = set; then
1816 withval="$with_wine"
1817 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1818 fi
1819
1820 # Check whether --with-cygwin or --without-cygwin was given.
1821 if test "${with_cygwin+set}" = set; then
1822 withval="$with_cygwin"
1823 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1824 fi
1825
1826 # Check whether --with-mingw or --without-mingw was given.
1827 if test "${with_mingw+set}" = set; then
1828 withval="$with_mingw"
1829 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1830 fi
1831
1832 # Check whether --with-pm or --without-pm was given.
1833 if test "${with_pm+set}" = set; then
1834 withval="$with_pm"
1835 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1836 fi
1837
1838 # Check whether --with-mgl or --without-mgl was given.
1839 if test "${with_mgl+set}" = set; then
1840 withval="$with_mgl"
1841 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1842 fi
1843
1844
1845 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1846 if test "${enable_gtk2+set}" = set; then
1847 enableval="$enable_gtk2"
1848 wxUSE_GTK2=1
1849 else
1850 wxUSE_GTK2=0
1851 fi
1852
1853
1854
1855 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1856 echo "configure:1857: checking for --with-libpng" >&5
1857 no_cache=0
1858 # Check whether --with-libpng or --without-libpng was given.
1859 if test "${with_libpng+set}" = set; then
1860 withval="$with_libpng"
1861
1862 if test "$withval" = yes; then
1863 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1864 elif test "$withval" = no; then
1865 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1866 elif test "$withval" = sys; then
1867 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1868 else
1869 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1870 fi
1871
1872 else
1873
1874 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1875 if test "x$LINE" != x ; then
1876 eval "DEFAULT_$LINE"
1877 else
1878 no_cache=1
1879 fi
1880
1881 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1882
1883 fi
1884
1885
1886 eval "$ac_cv_use_libpng"
1887 if test "$no_cache" != 1; then
1888 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1889 fi
1890
1891 if test "$wxUSE_LIBPNG" = yes; then
1892 echo "$ac_t""yes" 1>&6
1893 elif test "$wxUSE_LIBPNG" = no; then
1894 echo "$ac_t""no" 1>&6
1895 elif test "$wxUSE_LIBPNG" = sys; then
1896 echo "$ac_t""system version" 1>&6
1897 else
1898 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1899 fi
1900
1901
1902 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1903 echo "configure:1904: checking for --with-libjpeg" >&5
1904 no_cache=0
1905 # Check whether --with-libjpeg or --without-libjpeg was given.
1906 if test "${with_libjpeg+set}" = set; then
1907 withval="$with_libjpeg"
1908
1909 if test "$withval" = yes; then
1910 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1911 elif test "$withval" = no; then
1912 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1913 elif test "$withval" = sys; then
1914 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1915 else
1916 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1917 fi
1918
1919 else
1920
1921 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1922 if test "x$LINE" != x ; then
1923 eval "DEFAULT_$LINE"
1924 else
1925 no_cache=1
1926 fi
1927
1928 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1929
1930 fi
1931
1932
1933 eval "$ac_cv_use_libjpeg"
1934 if test "$no_cache" != 1; then
1935 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1936 fi
1937
1938 if test "$wxUSE_LIBJPEG" = yes; then
1939 echo "$ac_t""yes" 1>&6
1940 elif test "$wxUSE_LIBJPEG" = no; then
1941 echo "$ac_t""no" 1>&6
1942 elif test "$wxUSE_LIBJPEG" = sys; then
1943 echo "$ac_t""system version" 1>&6
1944 else
1945 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1946 fi
1947
1948
1949 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
1950 echo "configure:1951: checking for --with-libtiff" >&5
1951 no_cache=0
1952 # Check whether --with-libtiff or --without-libtiff was given.
1953 if test "${with_libtiff+set}" = set; then
1954 withval="$with_libtiff"
1955
1956 if test "$withval" = yes; then
1957 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1958 elif test "$withval" = no; then
1959 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1960 elif test "$withval" = sys; then
1961 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1962 else
1963 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1964 fi
1965
1966 else
1967
1968 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1969 if test "x$LINE" != x ; then
1970 eval "DEFAULT_$LINE"
1971 else
1972 no_cache=1
1973 fi
1974
1975 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1976
1977 fi
1978
1979
1980 eval "$ac_cv_use_libtiff"
1981 if test "$no_cache" != 1; then
1982 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1983 fi
1984
1985 if test "$wxUSE_LIBTIFF" = yes; then
1986 echo "$ac_t""yes" 1>&6
1987 elif test "$wxUSE_LIBTIFF" = no; then
1988 echo "$ac_t""no" 1>&6
1989 elif test "$wxUSE_LIBTIFF" = sys; then
1990 echo "$ac_t""system version" 1>&6
1991 else
1992 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1993 fi
1994
1995
1996 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
1997 echo "configure:1998: checking for --with-freetype" >&5
1998 no_cache=0
1999 # Check whether --with-freetype or --without-freetype was given.
2000 if test "${with_freetype+set}" = set; then
2001 withval="$with_freetype"
2002
2003 if test "$withval" = yes; then
2004 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2005 elif test "$withval" = no; then
2006 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2007 elif test "$withval" = sys; then
2008 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
2009 else
2010 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
2011 fi
2012
2013 else
2014
2015 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2016 if test "x$LINE" != x ; then
2017 eval "DEFAULT_$LINE"
2018 else
2019 no_cache=1
2020 fi
2021
2022 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
2023
2024 fi
2025
2026
2027 eval "$ac_cv_use_freetype"
2028 if test "$no_cache" != 1; then
2029 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2030 fi
2031
2032 if test "$wxUSE_FREETYPE" = yes; then
2033 echo "$ac_t""yes" 1>&6
2034 elif test "$wxUSE_FREETYPE" = no; then
2035 echo "$ac_t""no" 1>&6
2036 elif test "$wxUSE_FREETYPE" = sys; then
2037 echo "$ac_t""system version" 1>&6
2038 else
2039 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
2040 fi
2041
2042
2043 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2044 echo "configure:2045: checking for --with-opengl" >&5
2045 no_cache=0
2046 # Check whether --with-opengl or --without-opengl was given.
2047 if test "${with_opengl+set}" = set; then
2048 withval="$with_opengl"
2049
2050 if test "$withval" = yes; then
2051 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2052 else
2053 ac_cv_use_opengl='wxUSE_OPENGL=no'
2054 fi
2055
2056 else
2057
2058 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2059 if test "x$LINE" != x ; then
2060 eval "DEFAULT_$LINE"
2061 else
2062 no_cache=1
2063 fi
2064
2065 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2066
2067 fi
2068
2069
2070 eval "$ac_cv_use_opengl"
2071 if test "$no_cache" != 1; then
2072 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2073 fi
2074
2075 if test "$wxUSE_OPENGL" = yes; then
2076 echo "$ac_t""yes" 1>&6
2077 else
2078 echo "$ac_t""no" 1>&6
2079 fi
2080
2081
2082 fi
2083
2084
2085 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2086 echo "configure:2087: checking for --with-dmalloc" >&5
2087 no_cache=0
2088 # Check whether --with-dmalloc or --without-dmalloc was given.
2089 if test "${with_dmalloc+set}" = set; then
2090 withval="$with_dmalloc"
2091
2092 if test "$withval" = yes; then
2093 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2094 else
2095 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2096 fi
2097
2098 else
2099
2100 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2101 if test "x$LINE" != x ; then
2102 eval "DEFAULT_$LINE"
2103 else
2104 no_cache=1
2105 fi
2106
2107 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2108
2109 fi
2110
2111
2112 eval "$ac_cv_use_dmalloc"
2113 if test "$no_cache" != 1; then
2114 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2115 fi
2116
2117 if test "$wxUSE_DMALLOC" = yes; then
2118 echo "$ac_t""yes" 1>&6
2119 else
2120 echo "$ac_t""no" 1>&6
2121 fi
2122
2123
2124 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2125 echo "configure:2126: checking for --with-regex" >&5
2126 no_cache=0
2127 # Check whether --with-regex or --without-regex was given.
2128 if test "${with_regex+set}" = set; then
2129 withval="$with_regex"
2130
2131 if test "$withval" = yes; then
2132 ac_cv_use_regex='wxUSE_REGEX=yes'
2133 elif test "$withval" = no; then
2134 ac_cv_use_regex='wxUSE_REGEX=no'
2135 elif test "$withval" = sys; then
2136 ac_cv_use_regex='wxUSE_REGEX=sys'
2137 else
2138 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2139 fi
2140
2141 else
2142
2143 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2144 if test "x$LINE" != x ; then
2145 eval "DEFAULT_$LINE"
2146 else
2147 no_cache=1
2148 fi
2149
2150 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2151
2152 fi
2153
2154
2155 eval "$ac_cv_use_regex"
2156 if test "$no_cache" != 1; then
2157 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2158 fi
2159
2160 if test "$wxUSE_REGEX" = yes; then
2161 echo "$ac_t""yes" 1>&6
2162 elif test "$wxUSE_REGEX" = no; then
2163 echo "$ac_t""no" 1>&6
2164 elif test "$wxUSE_REGEX" = sys; then
2165 echo "$ac_t""system version" 1>&6
2166 else
2167 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2168 fi
2169
2170
2171 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2172 echo "configure:2173: checking for --with-zlib" >&5
2173 no_cache=0
2174 # Check whether --with-zlib or --without-zlib was given.
2175 if test "${with_zlib+set}" = set; then
2176 withval="$with_zlib"
2177
2178 if test "$withval" = yes; then
2179 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2180 elif test "$withval" = no; then
2181 ac_cv_use_zlib='wxUSE_ZLIB=no'
2182 elif test "$withval" = sys; then
2183 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2184 else
2185 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2186 fi
2187
2188 else
2189
2190 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2191 if test "x$LINE" != x ; then
2192 eval "DEFAULT_$LINE"
2193 else
2194 no_cache=1
2195 fi
2196
2197 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2198
2199 fi
2200
2201
2202 eval "$ac_cv_use_zlib"
2203 if test "$no_cache" != 1; then
2204 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2205 fi
2206
2207 if test "$wxUSE_ZLIB" = yes; then
2208 echo "$ac_t""yes" 1>&6
2209 elif test "$wxUSE_ZLIB" = no; then
2210 echo "$ac_t""no" 1>&6
2211 elif test "$wxUSE_ZLIB" = sys; then
2212 echo "$ac_t""system version" 1>&6
2213 else
2214 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2215 fi
2216
2217
2218 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2219 echo "configure:2220: checking for --with-odbc" >&5
2220 no_cache=0
2221 # Check whether --with-odbc or --without-odbc was given.
2222 if test "${with_odbc+set}" = set; then
2223 withval="$with_odbc"
2224
2225 if test "$withval" = yes; then
2226 ac_cv_use_odbc='wxUSE_ODBC=yes'
2227 else
2228 ac_cv_use_odbc='wxUSE_ODBC=no'
2229 fi
2230
2231 else
2232
2233 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2234 if test "x$LINE" != x ; then
2235 eval "DEFAULT_$LINE"
2236 else
2237 no_cache=1
2238 fi
2239
2240 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2241
2242 fi
2243
2244
2245 eval "$ac_cv_use_odbc"
2246 if test "$no_cache" != 1; then
2247 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2248 fi
2249
2250 if test "$wxUSE_ODBC" = yes; then
2251 echo "$ac_t""yes" 1>&6
2252 else
2253 echo "$ac_t""no" 1>&6
2254 fi
2255
2256
2257
2258
2259 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2260 echo "configure:2261: checking for --enable-shared" >&5
2261 no_cache=0
2262 # Check whether --enable-shared or --disable-shared was given.
2263 if test "${enable_shared+set}" = set; then
2264 enableval="$enable_shared"
2265
2266 if test "$enableval" = yes; then
2267 ac_cv_use_shared='wxUSE_SHARED=yes'
2268 else
2269 ac_cv_use_shared='wxUSE_SHARED=no'
2270 fi
2271
2272 else
2273
2274 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2275 if test "x$LINE" != x ; then
2276 eval "DEFAULT_$LINE"
2277 else
2278 no_cache=1
2279 fi
2280
2281 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2282
2283 fi
2284
2285
2286 eval "$ac_cv_use_shared"
2287 if test "$no_cache" != 1; then
2288 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2289 fi
2290
2291 if test "$wxUSE_SHARED" = yes; then
2292 echo "$ac_t""yes" 1>&6
2293 else
2294 echo "$ac_t""no" 1>&6
2295 fi
2296
2297
2298 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2299 echo "configure:2300: checking for --enable-soname" >&5
2300 no_cache=0
2301 # Check whether --enable-soname or --disable-soname was given.
2302 if test "${enable_soname+set}" = set; then
2303 enableval="$enable_soname"
2304
2305 if test "$enableval" = yes; then
2306 ac_cv_use_soname='wxUSE_SONAME=yes'
2307 else
2308 ac_cv_use_soname='wxUSE_SONAME=no'
2309 fi
2310
2311 else
2312
2313 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2314 if test "x$LINE" != x ; then
2315 eval "DEFAULT_$LINE"
2316 else
2317 no_cache=1
2318 fi
2319
2320 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2321
2322 fi
2323
2324
2325 eval "$ac_cv_use_soname"
2326 if test "$no_cache" != 1; then
2327 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2328 fi
2329
2330 if test "$wxUSE_SONAME" = yes; then
2331 echo "$ac_t""yes" 1>&6
2332 else
2333 echo "$ac_t""no" 1>&6
2334 fi
2335
2336
2337 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2338 echo "configure:2339: checking for --enable-optimise" >&5
2339 no_cache=0
2340 # Check whether --enable-optimise or --disable-optimise was given.
2341 if test "${enable_optimise+set}" = set; then
2342 enableval="$enable_optimise"
2343
2344 if test "$enableval" = yes; then
2345 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2346 else
2347 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2348 fi
2349
2350 else
2351
2352 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2353 if test "x$LINE" != x ; then
2354 eval "DEFAULT_$LINE"
2355 else
2356 no_cache=1
2357 fi
2358
2359 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2360
2361 fi
2362
2363
2364 eval "$ac_cv_use_optimise"
2365 if test "$no_cache" != 1; then
2366 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2367 fi
2368
2369 if test "$wxUSE_OPTIMISE" = yes; then
2370 echo "$ac_t""yes" 1>&6
2371 else
2372 echo "$ac_t""no" 1>&6
2373 fi
2374
2375
2376 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2377 echo "configure:2378: checking for --enable-debug" >&5
2378 no_cache=0
2379 # Check whether --enable-debug or --disable-debug was given.
2380 if test "${enable_debug+set}" = set; then
2381 enableval="$enable_debug"
2382
2383 if test "$enableval" = yes; then
2384 ac_cv_use_debug='wxUSE_DEBUG=yes'
2385 else
2386 ac_cv_use_debug='wxUSE_DEBUG=no'
2387 fi
2388
2389 else
2390
2391 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2392 if test "x$LINE" != x ; then
2393 eval "DEFAULT_$LINE"
2394 else
2395 no_cache=1
2396 fi
2397
2398 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2399
2400 fi
2401
2402
2403 eval "$ac_cv_use_debug"
2404 if test "$no_cache" != 1; then
2405 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2406 fi
2407
2408 if test "$wxUSE_DEBUG" = yes; then
2409 echo "$ac_t""yes" 1>&6
2410 else
2411 echo "$ac_t""no" 1>&6
2412 fi
2413
2414
2415
2416 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2417 echo "configure:2418: checking for --enable-precomp" >&5
2418 no_cache=0
2419 # Check whether --enable-precomp or --disable-precomp was given.
2420 if test "${enable_precomp+set}" = set; then
2421 enableval="$enable_precomp"
2422
2423 if test "$enableval" = yes; then
2424 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2425 else
2426 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2427 fi
2428
2429 else
2430
2431 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2432 if test "x$LINE" != x ; then
2433 eval "DEFAULT_$LINE"
2434 else
2435 no_cache=1
2436 fi
2437
2438 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2439
2440 fi
2441
2442
2443 eval "$ac_cv_use_precomp"
2444 if test "$no_cache" != 1; then
2445 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2446 fi
2447
2448 if test "$wxUSE_PRECOMP" = yes; then
2449 echo "$ac_t""yes" 1>&6
2450 else
2451 echo "$ac_t""no" 1>&6
2452 fi
2453
2454
2455 if test "$wxUSE_DEBUG" = "yes"; then
2456 DEFAULT_wxUSE_DEBUG_FLAG=yes
2457 DEFAULT_wxUSE_DEBUG_INFO=yes
2458 elif test "$wxUSE_DEBUG" = "no"; then
2459 DEFAULT_wxUSE_DEBUG_FLAG=no
2460 DEFAULT_wxUSE_DEBUG_INFO=no
2461 fi
2462
2463
2464 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2465 echo "configure:2466: checking for --enable-debug_flag" >&5
2466 no_cache=0
2467 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2468 if test "${enable_debug_flag+set}" = set; then
2469 enableval="$enable_debug_flag"
2470
2471 if test "$enableval" = yes; then
2472 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2473 else
2474 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2475 fi
2476
2477 else
2478
2479 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2480 if test "x$LINE" != x ; then
2481 eval "DEFAULT_$LINE"
2482 else
2483 no_cache=1
2484 fi
2485
2486 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2487
2488 fi
2489
2490
2491 eval "$ac_cv_use_debug_flag"
2492 if test "$no_cache" != 1; then
2493 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2494 fi
2495
2496 if test "$wxUSE_DEBUG_FLAG" = yes; then
2497 echo "$ac_t""yes" 1>&6
2498 else
2499 echo "$ac_t""no" 1>&6
2500 fi
2501
2502
2503 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2504 echo "configure:2505: checking for --enable-debug_info" >&5
2505 no_cache=0
2506 # Check whether --enable-debug_info or --disable-debug_info was given.
2507 if test "${enable_debug_info+set}" = set; then
2508 enableval="$enable_debug_info"
2509
2510 if test "$enableval" = yes; then
2511 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2512 else
2513 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2514 fi
2515
2516 else
2517
2518 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2519 if test "x$LINE" != x ; then
2520 eval "DEFAULT_$LINE"
2521 else
2522 no_cache=1
2523 fi
2524
2525 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2526
2527 fi
2528
2529
2530 eval "$ac_cv_use_debug_info"
2531 if test "$no_cache" != 1; then
2532 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2533 fi
2534
2535 if test "$wxUSE_DEBUG_INFO" = yes; then
2536 echo "$ac_t""yes" 1>&6
2537 else
2538 echo "$ac_t""no" 1>&6
2539 fi
2540
2541
2542 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2543 echo "configure:2544: checking for --enable-debug_gdb" >&5
2544 no_cache=0
2545 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2546 if test "${enable_debug_gdb+set}" = set; then
2547 enableval="$enable_debug_gdb"
2548
2549 if test "$enableval" = yes; then
2550 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2551 else
2552 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2553 fi
2554
2555 else
2556
2557 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2558 if test "x$LINE" != x ; then
2559 eval "DEFAULT_$LINE"
2560 else
2561 no_cache=1
2562 fi
2563
2564 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2565
2566 fi
2567
2568
2569 eval "$ac_cv_use_debug_gdb"
2570 if test "$no_cache" != 1; then
2571 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2572 fi
2573
2574 if test "$wxUSE_DEBUG_GDB" = yes; then
2575 echo "$ac_t""yes" 1>&6
2576 else
2577 echo "$ac_t""no" 1>&6
2578 fi
2579
2580
2581 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2582 echo "configure:2583: checking for --enable-debug_cntxt" >&5
2583 no_cache=0
2584 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2585 if test "${enable_debug_cntxt+set}" = set; then
2586 enableval="$enable_debug_cntxt"
2587
2588 if test "$enableval" = yes; then
2589 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2590 else
2591 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2592 fi
2593
2594 else
2595
2596 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2597 if test "x$LINE" != x ; then
2598 eval "DEFAULT_$LINE"
2599 else
2600 no_cache=1
2601 fi
2602
2603 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2604
2605 fi
2606
2607
2608 eval "$ac_cv_use_debug_cntxt"
2609 if test "$no_cache" != 1; then
2610 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2611 fi
2612
2613 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2614 echo "$ac_t""yes" 1>&6
2615 else
2616 echo "$ac_t""no" 1>&6
2617 fi
2618
2619
2620 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2621 echo "configure:2622: checking for --enable-mem_tracing" >&5
2622 no_cache=0
2623 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2624 if test "${enable_mem_tracing+set}" = set; then
2625 enableval="$enable_mem_tracing"
2626
2627 if test "$enableval" = yes; then
2628 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2629 else
2630 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2631 fi
2632
2633 else
2634
2635 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2636 if test "x$LINE" != x ; then
2637 eval "DEFAULT_$LINE"
2638 else
2639 no_cache=1
2640 fi
2641
2642 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2643
2644 fi
2645
2646
2647 eval "$ac_cv_use_mem_tracing"
2648 if test "$no_cache" != 1; then
2649 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2650 fi
2651
2652 if test "$wxUSE_MEM_TRACING" = yes; then
2653 echo "$ac_t""yes" 1>&6
2654 else
2655 echo "$ac_t""no" 1>&6
2656 fi
2657
2658
2659 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2660 echo "configure:2661: checking for --enable-profile" >&5
2661 no_cache=0
2662 # Check whether --enable-profile or --disable-profile was given.
2663 if test "${enable_profile+set}" = set; then
2664 enableval="$enable_profile"
2665
2666 if test "$enableval" = yes; then
2667 ac_cv_use_profile='wxUSE_PROFILE=yes'
2668 else
2669 ac_cv_use_profile='wxUSE_PROFILE=no'
2670 fi
2671
2672 else
2673
2674 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2675 if test "x$LINE" != x ; then
2676 eval "DEFAULT_$LINE"
2677 else
2678 no_cache=1
2679 fi
2680
2681 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2682
2683 fi
2684
2685
2686 eval "$ac_cv_use_profile"
2687 if test "$no_cache" != 1; then
2688 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2689 fi
2690
2691 if test "$wxUSE_PROFILE" = yes; then
2692 echo "$ac_t""yes" 1>&6
2693 else
2694 echo "$ac_t""no" 1>&6
2695 fi
2696
2697
2698 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2699 echo "configure:2700: checking for --enable-no_rtti" >&5
2700 no_cache=0
2701 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2702 if test "${enable_no_rtti+set}" = set; then
2703 enableval="$enable_no_rtti"
2704
2705 if test "$enableval" = yes; then
2706 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2707 else
2708 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2709 fi
2710
2711 else
2712
2713 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2714 if test "x$LINE" != x ; then
2715 eval "DEFAULT_$LINE"
2716 else
2717 no_cache=1
2718 fi
2719
2720 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2721
2722 fi
2723
2724
2725 eval "$ac_cv_use_no_rtti"
2726 if test "$no_cache" != 1; then
2727 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2728 fi
2729
2730 if test "$wxUSE_NO_RTTI" = yes; then
2731 echo "$ac_t""yes" 1>&6
2732 else
2733 echo "$ac_t""no" 1>&6
2734 fi
2735
2736
2737 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2738 echo "configure:2739: checking for --enable-no_exceptions" >&5
2739 no_cache=0
2740 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2741 if test "${enable_no_exceptions+set}" = set; then
2742 enableval="$enable_no_exceptions"
2743
2744 if test "$enableval" = yes; then
2745 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2746 else
2747 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2748 fi
2749
2750 else
2751
2752 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2753 if test "x$LINE" != x ; then
2754 eval "DEFAULT_$LINE"
2755 else
2756 no_cache=1
2757 fi
2758
2759 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2760
2761 fi
2762
2763
2764 eval "$ac_cv_use_no_exceptions"
2765 if test "$no_cache" != 1; then
2766 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2767 fi
2768
2769 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2770 echo "$ac_t""yes" 1>&6
2771 else
2772 echo "$ac_t""no" 1>&6
2773 fi
2774
2775
2776 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2777 echo "configure:2778: checking for --enable-permissive" >&5
2778 no_cache=0
2779 # Check whether --enable-permissive or --disable-permissive was given.
2780 if test "${enable_permissive+set}" = set; then
2781 enableval="$enable_permissive"
2782
2783 if test "$enableval" = yes; then
2784 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2785 else
2786 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2787 fi
2788
2789 else
2790
2791 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2792 if test "x$LINE" != x ; then
2793 eval "DEFAULT_$LINE"
2794 else
2795 no_cache=1
2796 fi
2797
2798 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2799
2800 fi
2801
2802
2803 eval "$ac_cv_use_permissive"
2804 if test "$no_cache" != 1; then
2805 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2806 fi
2807
2808 if test "$wxUSE_PERMISSIVE" = yes; then
2809 echo "$ac_t""yes" 1>&6
2810 else
2811 echo "$ac_t""no" 1>&6
2812 fi
2813
2814
2815 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2816 echo "configure:2817: checking for --enable-no_deps" >&5
2817 no_cache=0
2818 # Check whether --enable-no_deps or --disable-no_deps was given.
2819 if test "${enable_no_deps+set}" = set; then
2820 enableval="$enable_no_deps"
2821
2822 if test "$enableval" = yes; then
2823 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2824 else
2825 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2826 fi
2827
2828 else
2829
2830 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2831 if test "x$LINE" != x ; then
2832 eval "DEFAULT_$LINE"
2833 else
2834 no_cache=1
2835 fi
2836
2837 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2838
2839 fi
2840
2841
2842 eval "$ac_cv_use_no_deps"
2843 if test "$no_cache" != 1; then
2844 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2845 fi
2846
2847 if test "$wxUSE_NO_DEPS" = yes; then
2848 echo "$ac_t""yes" 1>&6
2849 else
2850 echo "$ac_t""no" 1>&6
2851 fi
2852
2853
2854
2855 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2856 echo "configure:2857: checking for --enable-compat20" >&5
2857 no_cache=0
2858 # Check whether --enable-compat20 or --disable-compat20 was given.
2859 if test "${enable_compat20+set}" = set; then
2860 enableval="$enable_compat20"
2861
2862 if test "$enableval" = yes; then
2863 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2864 else
2865 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2866 fi
2867
2868 else
2869
2870 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2871 if test "x$LINE" != x ; then
2872 eval "DEFAULT_$LINE"
2873 else
2874 no_cache=1
2875 fi
2876
2877 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2878
2879 fi
2880
2881
2882 eval "$ac_cv_use_compat20"
2883 if test "$no_cache" != 1; then
2884 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2885 fi
2886
2887 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2888 echo "$ac_t""yes" 1>&6
2889 else
2890 echo "$ac_t""no" 1>&6
2891 fi
2892
2893
2894 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2895 echo "configure:2896: checking for --enable-compat22" >&5
2896 no_cache=0
2897 # Check whether --enable-compat22 or --disable-compat22 was given.
2898 if test "${enable_compat22+set}" = set; then
2899 enableval="$enable_compat22"
2900
2901 if test "$enableval" = yes; then
2902 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2903 else
2904 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2905 fi
2906
2907 else
2908
2909 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2910 if test "x$LINE" != x ; then
2911 eval "DEFAULT_$LINE"
2912 else
2913 no_cache=1
2914 fi
2915
2916 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2917
2918 fi
2919
2920
2921 eval "$ac_cv_use_compat22"
2922 if test "$no_cache" != 1; then
2923 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2924 fi
2925
2926 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2927 echo "$ac_t""yes" 1>&6
2928 else
2929 echo "$ac_t""no" 1>&6
2930 fi
2931
2932
2933
2934
2935 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2936 echo "configure:2937: checking for --enable-intl" >&5
2937 no_cache=0
2938 # Check whether --enable-intl or --disable-intl was given.
2939 if test "${enable_intl+set}" = set; then
2940 enableval="$enable_intl"
2941
2942 if test "$enableval" = yes; then
2943 ac_cv_use_intl='wxUSE_INTL=yes'
2944 else
2945 ac_cv_use_intl='wxUSE_INTL=no'
2946 fi
2947
2948 else
2949
2950 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2951 if test "x$LINE" != x ; then
2952 eval "DEFAULT_$LINE"
2953 else
2954 no_cache=1
2955 fi
2956
2957 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2958
2959 fi
2960
2961
2962 eval "$ac_cv_use_intl"
2963 if test "$no_cache" != 1; then
2964 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2965 fi
2966
2967 if test "$wxUSE_INTL" = yes; then
2968 echo "$ac_t""yes" 1>&6
2969 else
2970 echo "$ac_t""no" 1>&6
2971 fi
2972
2973
2974 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
2975 echo "configure:2976: checking for --enable-config" >&5
2976 no_cache=0
2977 # Check whether --enable-config or --disable-config was given.
2978 if test "${enable_config+set}" = set; then
2979 enableval="$enable_config"
2980
2981 if test "$enableval" = yes; then
2982 ac_cv_use_config='wxUSE_CONFIG=yes'
2983 else
2984 ac_cv_use_config='wxUSE_CONFIG=no'
2985 fi
2986
2987 else
2988
2989 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2990 if test "x$LINE" != x ; then
2991 eval "DEFAULT_$LINE"
2992 else
2993 no_cache=1
2994 fi
2995
2996 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2997
2998 fi
2999
3000
3001 eval "$ac_cv_use_config"
3002 if test "$no_cache" != 1; then
3003 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3004 fi
3005
3006 if test "$wxUSE_CONFIG" = yes; then
3007 echo "$ac_t""yes" 1>&6
3008 else
3009 echo "$ac_t""no" 1>&6
3010 fi
3011
3012
3013
3014 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3015 echo "configure:3016: checking for --enable-sockets" >&5
3016 no_cache=0
3017 # Check whether --enable-sockets or --disable-sockets was given.
3018 if test "${enable_sockets+set}" = set; then
3019 enableval="$enable_sockets"
3020
3021 if test "$enableval" = yes; then
3022 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3023 else
3024 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3025 fi
3026
3027 else
3028
3029 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3030 if test "x$LINE" != x ; then
3031 eval "DEFAULT_$LINE"
3032 else
3033 no_cache=1
3034 fi
3035
3036 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3037
3038 fi
3039
3040
3041 eval "$ac_cv_use_sockets"
3042 if test "$no_cache" != 1; then
3043 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3044 fi
3045
3046 if test "$wxUSE_SOCKETS" = yes; then
3047 echo "$ac_t""yes" 1>&6
3048 else
3049 echo "$ac_t""no" 1>&6
3050 fi
3051
3052
3053
3054 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3055 echo "configure:3056: checking for --enable-ipc" >&5
3056 no_cache=0
3057 # Check whether --enable-ipc or --disable-ipc was given.
3058 if test "${enable_ipc+set}" = set; then
3059 enableval="$enable_ipc"
3060
3061 if test "$enableval" = yes; then
3062 ac_cv_use_ipc='wxUSE_IPC=yes'
3063 else
3064 ac_cv_use_ipc='wxUSE_IPC=no'
3065 fi
3066
3067 else
3068
3069 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3070 if test "x$LINE" != x ; then
3071 eval "DEFAULT_$LINE"
3072 else
3073 no_cache=1
3074 fi
3075
3076 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3077
3078 fi
3079
3080
3081 eval "$ac_cv_use_ipc"
3082 if test "$no_cache" != 1; then
3083 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3084 fi
3085
3086 if test "$wxUSE_IPC" = yes; then
3087 echo "$ac_t""yes" 1>&6
3088 else
3089 echo "$ac_t""no" 1>&6
3090 fi
3091
3092
3093
3094 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3095 echo "configure:3096: checking for --enable-cmdline" >&5
3096 no_cache=0
3097 # Check whether --enable-cmdline or --disable-cmdline was given.
3098 if test "${enable_cmdline+set}" = set; then
3099 enableval="$enable_cmdline"
3100
3101 if test "$enableval" = yes; then
3102 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3103 else
3104 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3105 fi
3106
3107 else
3108
3109 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3110 if test "x$LINE" != x ; then
3111 eval "DEFAULT_$LINE"
3112 else
3113 no_cache=1
3114 fi
3115
3116 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3117
3118 fi
3119
3120
3121 eval "$ac_cv_use_cmdline"
3122 if test "$no_cache" != 1; then
3123 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3124 fi
3125
3126 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3127 echo "$ac_t""yes" 1>&6
3128 else
3129 echo "$ac_t""no" 1>&6
3130 fi
3131
3132
3133 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3134 echo "configure:3135: checking for --enable-datetime" >&5
3135 no_cache=0
3136 # Check whether --enable-datetime or --disable-datetime was given.
3137 if test "${enable_datetime+set}" = set; then
3138 enableval="$enable_datetime"
3139
3140 if test "$enableval" = yes; then
3141 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3142 else
3143 ac_cv_use_datetime='wxUSE_DATETIME=no'
3144 fi
3145
3146 else
3147
3148 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3149 if test "x$LINE" != x ; then
3150 eval "DEFAULT_$LINE"
3151 else
3152 no_cache=1
3153 fi
3154
3155 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3156
3157 fi
3158
3159
3160 eval "$ac_cv_use_datetime"
3161 if test "$no_cache" != 1; then
3162 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3163 fi
3164
3165 if test "$wxUSE_DATETIME" = yes; then
3166 echo "$ac_t""yes" 1>&6
3167 else
3168 echo "$ac_t""no" 1>&6
3169 fi
3170
3171
3172 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3173 echo "configure:3174: checking for --enable-timedate" >&5
3174 no_cache=0
3175 # Check whether --enable-timedate or --disable-timedate was given.
3176 if test "${enable_timedate+set}" = set; then
3177 enableval="$enable_timedate"
3178
3179 if test "$enableval" = yes; then
3180 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3181 else
3182 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3183 fi
3184
3185 else
3186
3187 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3188 if test "x$LINE" != x ; then
3189 eval "DEFAULT_$LINE"
3190 else
3191 no_cache=1
3192 fi
3193
3194 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3195
3196 fi
3197
3198
3199 eval "$ac_cv_use_timedate"
3200 if test "$no_cache" != 1; then
3201 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3202 fi
3203
3204 if test "$wxUSE_TIMEDATE" = yes; then
3205 echo "$ac_t""yes" 1>&6
3206 else
3207 echo "$ac_t""no" 1>&6
3208 fi
3209
3210
3211 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3212 echo "configure:3213: checking for --enable-stopwatch" >&5
3213 no_cache=0
3214 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3215 if test "${enable_stopwatch+set}" = set; then
3216 enableval="$enable_stopwatch"
3217
3218 if test "$enableval" = yes; then
3219 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3220 else
3221 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3222 fi
3223
3224 else
3225
3226 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3227 if test "x$LINE" != x ; then
3228 eval "DEFAULT_$LINE"
3229 else
3230 no_cache=1
3231 fi
3232
3233 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3234
3235 fi
3236
3237
3238 eval "$ac_cv_use_stopwatch"
3239 if test "$no_cache" != 1; then
3240 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3241 fi
3242
3243 if test "$wxUSE_STOPWATCH" = yes; then
3244 echo "$ac_t""yes" 1>&6
3245 else
3246 echo "$ac_t""no" 1>&6
3247 fi
3248
3249
3250 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3251 echo "configure:3252: checking for --enable-dialupman" >&5
3252 no_cache=0
3253 # Check whether --enable-dialupman or --disable-dialupman was given.
3254 if test "${enable_dialupman+set}" = set; then
3255 enableval="$enable_dialupman"
3256
3257 if test "$enableval" = yes; then
3258 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3259 else
3260 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3261 fi
3262
3263 else
3264
3265 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3266 if test "x$LINE" != x ; then
3267 eval "DEFAULT_$LINE"
3268 else
3269 no_cache=1
3270 fi
3271
3272 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3273
3274 fi
3275
3276
3277 eval "$ac_cv_use_dialupman"
3278 if test "$no_cache" != 1; then
3279 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3280 fi
3281
3282 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3283 echo "$ac_t""yes" 1>&6
3284 else
3285 echo "$ac_t""no" 1>&6
3286 fi
3287
3288
3289 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3290 echo "configure:3291: checking for --enable-apple_ieee" >&5
3291 no_cache=0
3292 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3293 if test "${enable_apple_ieee+set}" = set; then
3294 enableval="$enable_apple_ieee"
3295
3296 if test "$enableval" = yes; then
3297 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3298 else
3299 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3300 fi
3301
3302 else
3303
3304 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3305 if test "x$LINE" != x ; then
3306 eval "DEFAULT_$LINE"
3307 else
3308 no_cache=1
3309 fi
3310
3311 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3312
3313 fi
3314
3315
3316 eval "$ac_cv_use_apple_ieee"
3317 if test "$no_cache" != 1; then
3318 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3319 fi
3320
3321 if test "$wxUSE_APPLE_IEEE" = yes; then
3322 echo "$ac_t""yes" 1>&6
3323 else
3324 echo "$ac_t""no" 1>&6
3325 fi
3326
3327
3328 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3329 echo "configure:3330: checking for --enable-timer" >&5
3330 no_cache=0
3331 # Check whether --enable-timer or --disable-timer was given.
3332 if test "${enable_timer+set}" = set; then
3333 enableval="$enable_timer"
3334
3335 if test "$enableval" = yes; then
3336 ac_cv_use_timer='wxUSE_TIMER=yes'
3337 else
3338 ac_cv_use_timer='wxUSE_TIMER=no'
3339 fi
3340
3341 else
3342
3343 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3344 if test "x$LINE" != x ; then
3345 eval "DEFAULT_$LINE"
3346 else
3347 no_cache=1
3348 fi
3349
3350 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3351
3352 fi
3353
3354
3355 eval "$ac_cv_use_timer"
3356 if test "$no_cache" != 1; then
3357 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3358 fi
3359
3360 if test "$wxUSE_TIMER" = yes; then
3361 echo "$ac_t""yes" 1>&6
3362 else
3363 echo "$ac_t""no" 1>&6
3364 fi
3365
3366
3367 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3368 echo "configure:3369: checking for --enable-wave" >&5
3369 no_cache=0
3370 # Check whether --enable-wave or --disable-wave was given.
3371 if test "${enable_wave+set}" = set; then
3372 enableval="$enable_wave"
3373
3374 if test "$enableval" = yes; then
3375 ac_cv_use_wave='wxUSE_WAVE=yes'
3376 else
3377 ac_cv_use_wave='wxUSE_WAVE=no'
3378 fi
3379
3380 else
3381
3382 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3383 if test "x$LINE" != x ; then
3384 eval "DEFAULT_$LINE"
3385 else
3386 no_cache=1
3387 fi
3388
3389 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3390
3391 fi
3392
3393
3394 eval "$ac_cv_use_wave"
3395 if test "$no_cache" != 1; then
3396 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3397 fi
3398
3399 if test "$wxUSE_WAVE" = yes; then
3400 echo "$ac_t""yes" 1>&6
3401 else
3402 echo "$ac_t""no" 1>&6
3403 fi
3404
3405
3406 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3407 echo "configure:3408: checking for --enable-fraction" >&5
3408 no_cache=0
3409 # Check whether --enable-fraction or --disable-fraction was given.
3410 if test "${enable_fraction+set}" = set; then
3411 enableval="$enable_fraction"
3412
3413 if test "$enableval" = yes; then
3414 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3415 else
3416 ac_cv_use_fraction='wxUSE_FRACTION=no'
3417 fi
3418
3419 else
3420
3421 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3422 if test "x$LINE" != x ; then
3423 eval "DEFAULT_$LINE"
3424 else
3425 no_cache=1
3426 fi
3427
3428 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3429
3430 fi
3431
3432
3433 eval "$ac_cv_use_fraction"
3434 if test "$no_cache" != 1; then
3435 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3436 fi
3437
3438 if test "$wxUSE_FRACTION" = yes; then
3439 echo "$ac_t""yes" 1>&6
3440 else
3441 echo "$ac_t""no" 1>&6
3442 fi
3443
3444
3445 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3446 echo "configure:3447: checking for --enable-dynlib" >&5
3447 no_cache=0
3448 # Check whether --enable-dynlib or --disable-dynlib was given.
3449 if test "${enable_dynlib+set}" = set; then
3450 enableval="$enable_dynlib"
3451
3452 if test "$enableval" = yes; then
3453 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3454 else
3455 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3456 fi
3457
3458 else
3459
3460 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3461 if test "x$LINE" != x ; then
3462 eval "DEFAULT_$LINE"
3463 else
3464 no_cache=1
3465 fi
3466
3467 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3468
3469 fi
3470
3471
3472 eval "$ac_cv_use_dynlib"
3473 if test "$no_cache" != 1; then
3474 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3475 fi
3476
3477 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3478 echo "$ac_t""yes" 1>&6
3479 else
3480 echo "$ac_t""no" 1>&6
3481 fi
3482
3483
3484 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3485 echo "configure:3486: checking for --enable-longlong" >&5
3486 no_cache=0
3487 # Check whether --enable-longlong or --disable-longlong was given.
3488 if test "${enable_longlong+set}" = set; then
3489 enableval="$enable_longlong"
3490
3491 if test "$enableval" = yes; then
3492 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3493 else
3494 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3495 fi
3496
3497 else
3498
3499 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3500 if test "x$LINE" != x ; then
3501 eval "DEFAULT_$LINE"
3502 else
3503 no_cache=1
3504 fi
3505
3506 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3507
3508 fi
3509
3510
3511 eval "$ac_cv_use_longlong"
3512 if test "$no_cache" != 1; then
3513 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3514 fi
3515
3516 if test "$wxUSE_LONGLONG" = yes; then
3517 echo "$ac_t""yes" 1>&6
3518 else
3519 echo "$ac_t""no" 1>&6
3520 fi
3521
3522
3523 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3524 echo "configure:3525: checking for --enable-geometry" >&5
3525 no_cache=0
3526 # Check whether --enable-geometry or --disable-geometry was given.
3527 if test "${enable_geometry+set}" = set; then
3528 enableval="$enable_geometry"
3529
3530 if test "$enableval" = yes; then
3531 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3532 else
3533 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3534 fi
3535
3536 else
3537
3538 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3539 if test "x$LINE" != x ; then
3540 eval "DEFAULT_$LINE"
3541 else
3542 no_cache=1
3543 fi
3544
3545 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3546
3547 fi
3548
3549
3550 eval "$ac_cv_use_geometry"
3551 if test "$no_cache" != 1; then
3552 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3553 fi
3554
3555 if test "$wxUSE_GEOMETRY" = yes; then
3556 echo "$ac_t""yes" 1>&6
3557 else
3558 echo "$ac_t""no" 1>&6
3559 fi
3560
3561
3562 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3563 echo "configure:3564: checking for --enable-log" >&5
3564 no_cache=0
3565 # Check whether --enable-log or --disable-log was given.
3566 if test "${enable_log+set}" = set; then
3567 enableval="$enable_log"
3568
3569 if test "$enableval" = yes; then
3570 ac_cv_use_log='wxUSE_LOG=yes'
3571 else
3572 ac_cv_use_log='wxUSE_LOG=no'
3573 fi
3574
3575 else
3576
3577 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3578 if test "x$LINE" != x ; then
3579 eval "DEFAULT_$LINE"
3580 else
3581 no_cache=1
3582 fi
3583
3584 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3585
3586 fi
3587
3588
3589 eval "$ac_cv_use_log"
3590 if test "$no_cache" != 1; then
3591 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3592 fi
3593
3594 if test "$wxUSE_LOG" = yes; then
3595 echo "$ac_t""yes" 1>&6
3596 else
3597 echo "$ac_t""no" 1>&6
3598 fi
3599
3600
3601 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3602 echo "configure:3603: checking for --enable-streams" >&5
3603 no_cache=0
3604 # Check whether --enable-streams or --disable-streams was given.
3605 if test "${enable_streams+set}" = set; then
3606 enableval="$enable_streams"
3607
3608 if test "$enableval" = yes; then
3609 ac_cv_use_streams='wxUSE_STREAMS=yes'
3610 else
3611 ac_cv_use_streams='wxUSE_STREAMS=no'
3612 fi
3613
3614 else
3615
3616 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3617 if test "x$LINE" != x ; then
3618 eval "DEFAULT_$LINE"
3619 else
3620 no_cache=1
3621 fi
3622
3623 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3624
3625 fi
3626
3627
3628 eval "$ac_cv_use_streams"
3629 if test "$no_cache" != 1; then
3630 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3631 fi
3632
3633 if test "$wxUSE_STREAMS" = yes; then
3634 echo "$ac_t""yes" 1>&6
3635 else
3636 echo "$ac_t""no" 1>&6
3637 fi
3638
3639
3640 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3641 echo "configure:3642: checking for --enable-file" >&5
3642 no_cache=0
3643 # Check whether --enable-file or --disable-file was given.
3644 if test "${enable_file+set}" = set; then
3645 enableval="$enable_file"
3646
3647 if test "$enableval" = yes; then
3648 ac_cv_use_file='wxUSE_FILE=yes'
3649 else
3650 ac_cv_use_file='wxUSE_FILE=no'
3651 fi
3652
3653 else
3654
3655 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3656 if test "x$LINE" != x ; then
3657 eval "DEFAULT_$LINE"
3658 else
3659 no_cache=1
3660 fi
3661
3662 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3663
3664 fi
3665
3666
3667 eval "$ac_cv_use_file"
3668 if test "$no_cache" != 1; then
3669 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3670 fi
3671
3672 if test "$wxUSE_FILE" = yes; then
3673 echo "$ac_t""yes" 1>&6
3674 else
3675 echo "$ac_t""no" 1>&6
3676 fi
3677
3678
3679 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3680 echo "configure:3681: checking for --enable-ffile" >&5
3681 no_cache=0
3682 # Check whether --enable-ffile or --disable-ffile was given.
3683 if test "${enable_ffile+set}" = set; then
3684 enableval="$enable_ffile"
3685
3686 if test "$enableval" = yes; then
3687 ac_cv_use_ffile='wxUSE_FFILE=yes'
3688 else
3689 ac_cv_use_ffile='wxUSE_FFILE=no'
3690 fi
3691
3692 else
3693
3694 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3695 if test "x$LINE" != x ; then
3696 eval "DEFAULT_$LINE"
3697 else
3698 no_cache=1
3699 fi
3700
3701 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3702
3703 fi
3704
3705
3706 eval "$ac_cv_use_ffile"
3707 if test "$no_cache" != 1; then
3708 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3709 fi
3710
3711 if test "$wxUSE_FFILE" = yes; then
3712 echo "$ac_t""yes" 1>&6
3713 else
3714 echo "$ac_t""no" 1>&6
3715 fi
3716
3717
3718 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3719 echo "configure:3720: checking for --enable-textfile" >&5
3720 no_cache=0
3721 # Check whether --enable-textfile or --disable-textfile was given.
3722 if test "${enable_textfile+set}" = set; then
3723 enableval="$enable_textfile"
3724
3725 if test "$enableval" = yes; then
3726 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3727 else
3728 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3729 fi
3730
3731 else
3732
3733 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3734 if test "x$LINE" != x ; then
3735 eval "DEFAULT_$LINE"
3736 else
3737 no_cache=1
3738 fi
3739
3740 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3741
3742 fi
3743
3744
3745 eval "$ac_cv_use_textfile"
3746 if test "$no_cache" != 1; then
3747 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3748 fi
3749
3750 if test "$wxUSE_TEXTFILE" = yes; then
3751 echo "$ac_t""yes" 1>&6
3752 else
3753 echo "$ac_t""no" 1>&6
3754 fi
3755
3756
3757 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3758 echo "configure:3759: checking for --enable-fontmap" >&5
3759 no_cache=0
3760 # Check whether --enable-fontmap or --disable-fontmap was given.
3761 if test "${enable_fontmap+set}" = set; then
3762 enableval="$enable_fontmap"
3763
3764 if test "$enableval" = yes; then
3765 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
3766 else
3767 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
3768 fi
3769
3770 else
3771
3772 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
3773 if test "x$LINE" != x ; then
3774 eval "DEFAULT_$LINE"
3775 else
3776 no_cache=1
3777 fi
3778
3779 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
3780
3781 fi
3782
3783
3784 eval "$ac_cv_use_fontmap"
3785 if test "$no_cache" != 1; then
3786 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
3787 fi
3788
3789 if test "$wxUSE_FONTMAP" = yes; then
3790 echo "$ac_t""yes" 1>&6
3791 else
3792 echo "$ac_t""no" 1>&6
3793 fi
3794
3795
3796 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3797 echo "configure:3798: checking for --enable-unicode" >&5
3798 no_cache=0
3799 # Check whether --enable-unicode or --disable-unicode was given.
3800 if test "${enable_unicode+set}" = set; then
3801 enableval="$enable_unicode"
3802
3803 if test "$enableval" = yes; then
3804 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3805 else
3806 ac_cv_use_unicode='wxUSE_UNICODE=no'
3807 fi
3808
3809 else
3810
3811 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3812 if test "x$LINE" != x ; then
3813 eval "DEFAULT_$LINE"
3814 else
3815 no_cache=1
3816 fi
3817
3818 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3819
3820 fi
3821
3822
3823 eval "$ac_cv_use_unicode"
3824 if test "$no_cache" != 1; then
3825 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3826 fi
3827
3828 if test "$wxUSE_UNICODE" = yes; then
3829 echo "$ac_t""yes" 1>&6
3830 else
3831 echo "$ac_t""no" 1>&6
3832 fi
3833
3834
3835 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3836 echo "configure:3837: checking for --enable-wxprintfv" >&5
3837 no_cache=0
3838 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3839 if test "${enable_wxprintfv+set}" = set; then
3840 enableval="$enable_wxprintfv"
3841
3842 if test "$enableval" = yes; then
3843 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3844 else
3845 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3846 fi
3847
3848 else
3849
3850 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3851 if test "x$LINE" != x ; then
3852 eval "DEFAULT_$LINE"
3853 else
3854 no_cache=1
3855 fi
3856
3857 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3858
3859 fi
3860
3861
3862 eval "$ac_cv_use_wxprintfv"
3863 if test "$no_cache" != 1; then
3864 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3865 fi
3866
3867 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3868 echo "$ac_t""yes" 1>&6
3869 else
3870 echo "$ac_t""no" 1>&6
3871 fi
3872
3873
3874 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3875 echo "configure:3876: checking for --enable-std_iostreams" >&5
3876 no_cache=0
3877 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3878 if test "${enable_std_iostreams+set}" = set; then
3879 enableval="$enable_std_iostreams"
3880
3881 if test "$enableval" = yes; then
3882 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3883 else
3884 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3885 fi
3886
3887 else
3888
3889 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3890 if test "x$LINE" != x ; then
3891 eval "DEFAULT_$LINE"
3892 else
3893 no_cache=1
3894 fi
3895
3896 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3897
3898 fi
3899
3900
3901 eval "$ac_cv_use_std_iostreams"
3902 if test "$no_cache" != 1; then
3903 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3904 fi
3905
3906 if test "$wxUSE_STD_IOSTREAM" = yes; then
3907 echo "$ac_t""yes" 1>&6
3908 else
3909 echo "$ac_t""no" 1>&6
3910 fi
3911
3912
3913 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3914 echo "configure:3915: checking for --enable-filesystem" >&5
3915 no_cache=0
3916 # Check whether --enable-filesystem or --disable-filesystem was given.
3917 if test "${enable_filesystem+set}" = set; then
3918 enableval="$enable_filesystem"
3919
3920 if test "$enableval" = yes; then
3921 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3922 else
3923 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3924 fi
3925
3926 else
3927
3928 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3929 if test "x$LINE" != x ; then
3930 eval "DEFAULT_$LINE"
3931 else
3932 no_cache=1
3933 fi
3934
3935 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3936
3937 fi
3938
3939
3940 eval "$ac_cv_use_filesystem"
3941 if test "$no_cache" != 1; then
3942 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3943 fi
3944
3945 if test "$wxUSE_FILESYSTEM" = yes; then
3946 echo "$ac_t""yes" 1>&6
3947 else
3948 echo "$ac_t""no" 1>&6
3949 fi
3950
3951
3952 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
3953 echo "configure:3954: checking for --enable-fs_inet" >&5
3954 no_cache=0
3955 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3956 if test "${enable_fs_inet+set}" = set; then
3957 enableval="$enable_fs_inet"
3958
3959 if test "$enableval" = yes; then
3960 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3961 else
3962 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3963 fi
3964
3965 else
3966
3967 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3968 if test "x$LINE" != x ; then
3969 eval "DEFAULT_$LINE"
3970 else
3971 no_cache=1
3972 fi
3973
3974 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3975
3976 fi
3977
3978
3979 eval "$ac_cv_use_fs_inet"
3980 if test "$no_cache" != 1; then
3981 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3982 fi
3983
3984 if test "$wxUSE_FS_INET" = yes; then
3985 echo "$ac_t""yes" 1>&6
3986 else
3987 echo "$ac_t""no" 1>&6
3988 fi
3989
3990
3991 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
3992 echo "configure:3993: checking for --enable-fs_zip" >&5
3993 no_cache=0
3994 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3995 if test "${enable_fs_zip+set}" = set; then
3996 enableval="$enable_fs_zip"
3997
3998 if test "$enableval" = yes; then
3999 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4000 else
4001 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4002 fi
4003
4004 else
4005
4006 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4007 if test "x$LINE" != x ; then
4008 eval "DEFAULT_$LINE"
4009 else
4010 no_cache=1
4011 fi
4012
4013 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4014
4015 fi
4016
4017
4018 eval "$ac_cv_use_fs_zip"
4019 if test "$no_cache" != 1; then
4020 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4021 fi
4022
4023 if test "$wxUSE_FS_ZIP" = yes; then
4024 echo "$ac_t""yes" 1>&6
4025 else
4026 echo "$ac_t""no" 1>&6
4027 fi
4028
4029
4030 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4031 echo "configure:4032: checking for --enable-zipstream" >&5
4032 no_cache=0
4033 # Check whether --enable-zipstream or --disable-zipstream was given.
4034 if test "${enable_zipstream+set}" = set; then
4035 enableval="$enable_zipstream"
4036
4037 if test "$enableval" = yes; then
4038 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4039 else
4040 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4041 fi
4042
4043 else
4044
4045 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4046 if test "x$LINE" != x ; then
4047 eval "DEFAULT_$LINE"
4048 else
4049 no_cache=1
4050 fi
4051
4052 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4053
4054 fi
4055
4056
4057 eval "$ac_cv_use_zipstream"
4058 if test "$no_cache" != 1; then
4059 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4060 fi
4061
4062 if test "$wxUSE_ZIPSTREAM" = yes; then
4063 echo "$ac_t""yes" 1>&6
4064 else
4065 echo "$ac_t""no" 1>&6
4066 fi
4067
4068
4069
4070 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4071 echo "configure:4072: checking for --enable-catch_segvs" >&5
4072 no_cache=0
4073 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4074 if test "${enable_catch_segvs+set}" = set; then
4075 enableval="$enable_catch_segvs"
4076
4077 if test "$enableval" = yes; then
4078 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4079 else
4080 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4081 fi
4082
4083 else
4084
4085 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4086 if test "x$LINE" != x ; then
4087 eval "DEFAULT_$LINE"
4088 else
4089 no_cache=1
4090 fi
4091
4092 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4093
4094 fi
4095
4096
4097 eval "$ac_cv_use_catch_segvs"
4098 if test "$no_cache" != 1; then
4099 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4100 fi
4101
4102 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4103 echo "$ac_t""yes" 1>&6
4104 else
4105 echo "$ac_t""no" 1>&6
4106 fi
4107
4108
4109 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4110 echo "configure:4111: checking for --enable-snglinst" >&5
4111 no_cache=0
4112 # Check whether --enable-snglinst or --disable-snglinst was given.
4113 if test "${enable_snglinst+set}" = set; then
4114 enableval="$enable_snglinst"
4115
4116 if test "$enableval" = yes; then
4117 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4118 else
4119 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4120 fi
4121
4122 else
4123
4124 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4125 if test "x$LINE" != x ; then
4126 eval "DEFAULT_$LINE"
4127 else
4128 no_cache=1
4129 fi
4130
4131 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4132
4133 fi
4134
4135
4136 eval "$ac_cv_use_snglinst"
4137 if test "$no_cache" != 1; then
4138 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4139 fi
4140
4141 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4142 echo "$ac_t""yes" 1>&6
4143 else
4144 echo "$ac_t""no" 1>&6
4145 fi
4146
4147
4148
4149 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4150 echo "configure:4151: checking for --enable-mimetype" >&5
4151 no_cache=0
4152 # Check whether --enable-mimetype or --disable-mimetype was given.
4153 if test "${enable_mimetype+set}" = set; then
4154 enableval="$enable_mimetype"
4155
4156 if test "$enableval" = yes; then
4157 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4158 else
4159 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4160 fi
4161
4162 else
4163
4164 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4165 if test "x$LINE" != x ; then
4166 eval "DEFAULT_$LINE"
4167 else
4168 no_cache=1
4169 fi
4170
4171 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4172
4173 fi
4174
4175
4176 eval "$ac_cv_use_mimetype"
4177 if test "$no_cache" != 1; then
4178 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4179 fi
4180
4181 if test "$wxUSE_MIMETYPE" = yes; then
4182 echo "$ac_t""yes" 1>&6
4183 else
4184 echo "$ac_t""no" 1>&6
4185 fi
4186
4187
4188 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4189 echo "configure:4190: checking for --enable-system_options" >&5
4190 no_cache=0
4191 # Check whether --enable-system_options or --disable-system_options was given.
4192 if test "${enable_system_options+set}" = set; then
4193 enableval="$enable_system_options"
4194
4195 if test "$enableval" = yes; then
4196 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4197 else
4198 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4199 fi
4200
4201 else
4202
4203 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4204 if test "x$LINE" != x ; then
4205 eval "DEFAULT_$LINE"
4206 else
4207 no_cache=1
4208 fi
4209
4210 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4211
4212 fi
4213
4214
4215 eval "$ac_cv_use_system_options"
4216 if test "$no_cache" != 1; then
4217 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4218 fi
4219
4220 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4221 echo "$ac_t""yes" 1>&6
4222 else
4223 echo "$ac_t""no" 1>&6
4224 fi
4225
4226
4227
4228
4229 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4230 echo "configure:4231: checking for --enable-threads" >&5
4231 no_cache=0
4232 # Check whether --enable-threads or --disable-threads was given.
4233 if test "${enable_threads+set}" = set; then
4234 enableval="$enable_threads"
4235
4236 if test "$enableval" = yes; then
4237 ac_cv_use_threads='wxUSE_THREADS=yes'
4238 else
4239 ac_cv_use_threads='wxUSE_THREADS=no'
4240 fi
4241
4242 else
4243
4244 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4245 if test "x$LINE" != x ; then
4246 eval "DEFAULT_$LINE"
4247 else
4248 no_cache=1
4249 fi
4250
4251 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4252
4253 fi
4254
4255
4256 eval "$ac_cv_use_threads"
4257 if test "$no_cache" != 1; then
4258 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4259 fi
4260
4261 if test "$wxUSE_THREADS" = yes; then
4262 echo "$ac_t""yes" 1>&6
4263 else
4264 echo "$ac_t""no" 1>&6
4265 fi
4266
4267
4268 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
4269 echo "configure:4270: checking for --enable-serial" >&5
4270 no_cache=0
4271 # Check whether --enable-serial or --disable-serial was given.
4272 if test "${enable_serial+set}" = set; then
4273 enableval="$enable_serial"
4274
4275 if test "$enableval" = yes; then
4276 ac_cv_use_serial='wxUSE_SERIAL=yes'
4277 else
4278 ac_cv_use_serial='wxUSE_SERIAL=no'
4279 fi
4280
4281 else
4282
4283 LINE=`grep "wxUSE_SERIAL" ${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_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
4291
4292 fi
4293
4294
4295 eval "$ac_cv_use_serial"
4296 if test "$no_cache" != 1; then
4297 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4298 fi
4299
4300 if test "$wxUSE_SERIAL" = yes; then
4301 echo "$ac_t""yes" 1>&6
4302 else
4303 echo "$ac_t""no" 1>&6
4304 fi
4305
4306
4307 if test "$wxUSE_GUI" = "yes"; then
4308
4309
4310
4311 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4312 echo "configure:4313: checking for --enable-docview" >&5
4313 no_cache=0
4314 # Check whether --enable-docview or --disable-docview was given.
4315 if test "${enable_docview+set}" = set; then
4316 enableval="$enable_docview"
4317
4318 if test "$enableval" = yes; then
4319 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4320 else
4321 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4322 fi
4323
4324 else
4325
4326 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4327 if test "x$LINE" != x ; then
4328 eval "DEFAULT_$LINE"
4329 else
4330 no_cache=1
4331 fi
4332
4333 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4334
4335 fi
4336
4337
4338 eval "$ac_cv_use_docview"
4339 if test "$no_cache" != 1; then
4340 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4341 fi
4342
4343 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4344 echo "$ac_t""yes" 1>&6
4345 else
4346 echo "$ac_t""no" 1>&6
4347 fi
4348
4349
4350 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4351 echo "configure:4352: checking for --enable-help" >&5
4352 no_cache=0
4353 # Check whether --enable-help or --disable-help was given.
4354 if test "${enable_help+set}" = set; then
4355 enableval="$enable_help"
4356
4357 if test "$enableval" = yes; then
4358 ac_cv_use_help='wxUSE_HELP=yes'
4359 else
4360 ac_cv_use_help='wxUSE_HELP=no'
4361 fi
4362
4363 else
4364
4365 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4366 if test "x$LINE" != x ; then
4367 eval "DEFAULT_$LINE"
4368 else
4369 no_cache=1
4370 fi
4371
4372 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4373
4374 fi
4375
4376
4377 eval "$ac_cv_use_help"
4378 if test "$no_cache" != 1; then
4379 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4380 fi
4381
4382 if test "$wxUSE_HELP" = yes; then
4383 echo "$ac_t""yes" 1>&6
4384 else
4385 echo "$ac_t""no" 1>&6
4386 fi
4387
4388
4389 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4390 echo "configure:4391: checking for --enable-mshtmlhelp" >&5
4391 no_cache=0
4392 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4393 if test "${enable_mshtmlhelp+set}" = set; then
4394 enableval="$enable_mshtmlhelp"
4395
4396 if test "$enableval" = yes; then
4397 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4398 else
4399 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4400 fi
4401
4402 else
4403
4404 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4405 if test "x$LINE" != x ; then
4406 eval "DEFAULT_$LINE"
4407 else
4408 no_cache=1
4409 fi
4410
4411 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4412
4413 fi
4414
4415
4416 eval "$ac_cv_use_mshtmlhelp"
4417 if test "$no_cache" != 1; then
4418 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4419 fi
4420
4421 if test "$wxUSE_MS_HTML_HELP" = yes; then
4422 echo "$ac_t""yes" 1>&6
4423 else
4424 echo "$ac_t""no" 1>&6
4425 fi
4426
4427
4428 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4429 echo "configure:4430: checking for --enable-html" >&5
4430 no_cache=0
4431 # Check whether --enable-html or --disable-html was given.
4432 if test "${enable_html+set}" = set; then
4433 enableval="$enable_html"
4434
4435 if test "$enableval" = yes; then
4436 ac_cv_use_html='wxUSE_HTML=yes'
4437 else
4438 ac_cv_use_html='wxUSE_HTML=no'
4439 fi
4440
4441 else
4442
4443 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4444 if test "x$LINE" != x ; then
4445 eval "DEFAULT_$LINE"
4446 else
4447 no_cache=1
4448 fi
4449
4450 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4451
4452 fi
4453
4454
4455 eval "$ac_cv_use_html"
4456 if test "$no_cache" != 1; then
4457 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4458 fi
4459
4460 if test "$wxUSE_HTML" = yes; then
4461 echo "$ac_t""yes" 1>&6
4462 else
4463 echo "$ac_t""no" 1>&6
4464 fi
4465
4466
4467 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4468 echo "configure:4469: checking for --enable-htmlhelp" >&5
4469 no_cache=0
4470 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4471 if test "${enable_htmlhelp+set}" = set; then
4472 enableval="$enable_htmlhelp"
4473
4474 if test "$enableval" = yes; then
4475 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4476 else
4477 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4478 fi
4479
4480 else
4481
4482 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4483 if test "x$LINE" != x ; then
4484 eval "DEFAULT_$LINE"
4485 else
4486 no_cache=1
4487 fi
4488
4489 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4490
4491 fi
4492
4493
4494 eval "$ac_cv_use_htmlhelp"
4495 if test "$no_cache" != 1; then
4496 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4497 fi
4498
4499 if test "$wxUSE_WXHTML_HELP" = yes; then
4500 echo "$ac_t""yes" 1>&6
4501 else
4502 echo "$ac_t""no" 1>&6
4503 fi
4504
4505
4506 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4507 echo "configure:4508: checking for --enable-constraints" >&5
4508 no_cache=0
4509 # Check whether --enable-constraints or --disable-constraints was given.
4510 if test "${enable_constraints+set}" = set; then
4511 enableval="$enable_constraints"
4512
4513 if test "$enableval" = yes; then
4514 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4515 else
4516 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4517 fi
4518
4519 else
4520
4521 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4522 if test "x$LINE" != x ; then
4523 eval "DEFAULT_$LINE"
4524 else
4525 no_cache=1
4526 fi
4527
4528 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
4529
4530 fi
4531
4532
4533 eval "$ac_cv_use_constraints"
4534 if test "$no_cache" != 1; then
4535 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4536 fi
4537
4538 if test "$wxUSE_CONSTRAINTS" = yes; then
4539 echo "$ac_t""yes" 1>&6
4540 else
4541 echo "$ac_t""no" 1>&6
4542 fi
4543
4544
4545 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4546 echo "configure:4547: checking for --enable-printarch" >&5
4547 no_cache=0
4548 # Check whether --enable-printarch or --disable-printarch was given.
4549 if test "${enable_printarch+set}" = set; then
4550 enableval="$enable_printarch"
4551
4552 if test "$enableval" = yes; then
4553 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4554 else
4555 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4556 fi
4557
4558 else
4559
4560 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4561 if test "x$LINE" != x ; then
4562 eval "DEFAULT_$LINE"
4563 else
4564 no_cache=1
4565 fi
4566
4567 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
4568
4569 fi
4570
4571
4572 eval "$ac_cv_use_printarch"
4573 if test "$no_cache" != 1; then
4574 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4575 fi
4576
4577 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
4578 echo "$ac_t""yes" 1>&6
4579 else
4580 echo "$ac_t""no" 1>&6
4581 fi
4582
4583
4584 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4585 echo "configure:4586: checking for --enable-mdi" >&5
4586 no_cache=0
4587 # Check whether --enable-mdi or --disable-mdi was given.
4588 if test "${enable_mdi+set}" = set; then
4589 enableval="$enable_mdi"
4590
4591 if test "$enableval" = yes; then
4592 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4593 else
4594 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4595 fi
4596
4597 else
4598
4599 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4600 if test "x$LINE" != x ; then
4601 eval "DEFAULT_$LINE"
4602 else
4603 no_cache=1
4604 fi
4605
4606 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
4607
4608 fi
4609
4610
4611 eval "$ac_cv_use_mdi"
4612 if test "$no_cache" != 1; then
4613 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4614 fi
4615
4616 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
4617 echo "$ac_t""yes" 1>&6
4618 else
4619 echo "$ac_t""no" 1>&6
4620 fi
4621
4622
4623 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4624 echo "configure:4625: checking for --enable-loggui" >&5
4625 no_cache=0
4626 # Check whether --enable-loggui or --disable-loggui was given.
4627 if test "${enable_loggui+set}" = set; then
4628 enableval="$enable_loggui"
4629
4630 if test "$enableval" = yes; then
4631 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4632 else
4633 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4634 fi
4635
4636 else
4637
4638 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4639 if test "x$LINE" != x ; then
4640 eval "DEFAULT_$LINE"
4641 else
4642 no_cache=1
4643 fi
4644
4645 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4646
4647 fi
4648
4649
4650 eval "$ac_cv_use_loggui"
4651 if test "$no_cache" != 1; then
4652 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4653 fi
4654
4655 if test "$wxUSE_LOGGUI" = yes; then
4656 echo "$ac_t""yes" 1>&6
4657 else
4658 echo "$ac_t""no" 1>&6
4659 fi
4660
4661
4662 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4663 echo "configure:4664: checking for --enable-logwin" >&5
4664 no_cache=0
4665 # Check whether --enable-logwin or --disable-logwin was given.
4666 if test "${enable_logwin+set}" = set; then
4667 enableval="$enable_logwin"
4668
4669 if test "$enableval" = yes; then
4670 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4671 else
4672 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4673 fi
4674
4675 else
4676
4677 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4678 if test "x$LINE" != x ; then
4679 eval "DEFAULT_$LINE"
4680 else
4681 no_cache=1
4682 fi
4683
4684 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4685
4686 fi
4687
4688
4689 eval "$ac_cv_use_logwin"
4690 if test "$no_cache" != 1; then
4691 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4692 fi
4693
4694 if test "$wxUSE_LOGWINDOW" = yes; then
4695 echo "$ac_t""yes" 1>&6
4696 else
4697 echo "$ac_t""no" 1>&6
4698 fi
4699
4700
4701
4702 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4703 echo "configure:4704: checking for --enable-postscript" >&5
4704 no_cache=0
4705 # Check whether --enable-postscript or --disable-postscript was given.
4706 if test "${enable_postscript+set}" = set; then
4707 enableval="$enable_postscript"
4708
4709 if test "$enableval" = yes; then
4710 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4711 else
4712 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4713 fi
4714
4715 else
4716
4717 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4718 if test "x$LINE" != x ; then
4719 eval "DEFAULT_$LINE"
4720 else
4721 no_cache=1
4722 fi
4723
4724 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
4725
4726 fi
4727
4728
4729 eval "$ac_cv_use_postscript"
4730 if test "$no_cache" != 1; then
4731 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4732 fi
4733
4734 if test "$wxUSE_POSTSCRIPT" = yes; then
4735 echo "$ac_t""yes" 1>&6
4736 else
4737 echo "$ac_t""no" 1>&6
4738 fi
4739
4740
4741
4742
4743
4744 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4745 echo "configure:4746: checking for --enable-prologio" >&5
4746 no_cache=0
4747 # Check whether --enable-prologio or --disable-prologio was given.
4748 if test "${enable_prologio+set}" = set; then
4749 enableval="$enable_prologio"
4750
4751 if test "$enableval" = yes; then
4752 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4753 else
4754 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4755 fi
4756
4757 else
4758
4759 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4760 if test "x$LINE" != x ; then
4761 eval "DEFAULT_$LINE"
4762 else
4763 no_cache=1
4764 fi
4765
4766 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
4767
4768 fi
4769
4770
4771 eval "$ac_cv_use_prologio"
4772 if test "$no_cache" != 1; then
4773 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4774 fi
4775
4776 if test "$wxUSE_PROLOGIO" = yes; then
4777 echo "$ac_t""yes" 1>&6
4778 else
4779 echo "$ac_t""no" 1>&6
4780 fi
4781
4782
4783 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4784 echo "configure:4785: checking for --enable-resources" >&5
4785 no_cache=0
4786 # Check whether --enable-resources or --disable-resources was given.
4787 if test "${enable_resources+set}" = set; then
4788 enableval="$enable_resources"
4789
4790 if test "$enableval" = yes; then
4791 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4792 else
4793 ac_cv_use_resources='wxUSE_RESOURCES=no'
4794 fi
4795
4796 else
4797
4798 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4799 if test "x$LINE" != x ; then
4800 eval "DEFAULT_$LINE"
4801 else
4802 no_cache=1
4803 fi
4804
4805 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
4806
4807 fi
4808
4809
4810 eval "$ac_cv_use_resources"
4811 if test "$no_cache" != 1; then
4812 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4813 fi
4814
4815 if test "$wxUSE_RESOURCES" = yes; then
4816 echo "$ac_t""yes" 1>&6
4817 else
4818 echo "$ac_t""no" 1>&6
4819 fi
4820
4821
4822
4823 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
4824 echo "configure:4825: checking for --enable-xresources" >&5
4825 no_cache=0
4826 # Check whether --enable-xresources or --disable-xresources was given.
4827 if test "${enable_xresources+set}" = set; then
4828 enableval="$enable_xresources"
4829
4830 if test "$enableval" = yes; then
4831 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4832 else
4833 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4834 fi
4835
4836 else
4837
4838 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4839 if test "x$LINE" != x ; then
4840 eval "DEFAULT_$LINE"
4841 else
4842 no_cache=1
4843 fi
4844
4845 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
4846
4847 fi
4848
4849
4850 eval "$ac_cv_use_xresources"
4851 if test "$no_cache" != 1; then
4852 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4853 fi
4854
4855 if test "$wxUSE_X_RESOURCES" = yes; then
4856 echo "$ac_t""yes" 1>&6
4857 else
4858 echo "$ac_t""no" 1>&6
4859 fi
4860
4861
4862
4863
4864 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
4865 echo "configure:4866: checking for --enable-clipboard" >&5
4866 no_cache=0
4867 # Check whether --enable-clipboard or --disable-clipboard was given.
4868 if test "${enable_clipboard+set}" = set; then
4869 enableval="$enable_clipboard"
4870
4871 if test "$enableval" = yes; then
4872 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4873 else
4874 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4875 fi
4876
4877 else
4878
4879 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4880 if test "x$LINE" != x ; then
4881 eval "DEFAULT_$LINE"
4882 else
4883 no_cache=1
4884 fi
4885
4886 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4887
4888 fi
4889
4890
4891 eval "$ac_cv_use_clipboard"
4892 if test "$no_cache" != 1; then
4893 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4894 fi
4895
4896 if test "$wxUSE_CLIPBOARD" = yes; then
4897 echo "$ac_t""yes" 1>&6
4898 else
4899 echo "$ac_t""no" 1>&6
4900 fi
4901
4902
4903 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
4904 echo "configure:4905: checking for --enable-dnd" >&5
4905 no_cache=0
4906 # Check whether --enable-dnd or --disable-dnd was given.
4907 if test "${enable_dnd+set}" = set; then
4908 enableval="$enable_dnd"
4909
4910 if test "$enableval" = yes; then
4911 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4912 else
4913 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4914 fi
4915
4916 else
4917
4918 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4919 if test "x$LINE" != x ; then
4920 eval "DEFAULT_$LINE"
4921 else
4922 no_cache=1
4923 fi
4924
4925 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4926
4927 fi
4928
4929
4930 eval "$ac_cv_use_dnd"
4931 if test "$no_cache" != 1; then
4932 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4933 fi
4934
4935 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4936 echo "$ac_t""yes" 1>&6
4937 else
4938 echo "$ac_t""no" 1>&6
4939 fi
4940
4941
4942 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
4943 echo "configure:4944: checking for --enable-metafile" >&5
4944 no_cache=0
4945 # Check whether --enable-metafile or --disable-metafile was given.
4946 if test "${enable_metafile+set}" = set; then
4947 enableval="$enable_metafile"
4948
4949 if test "$enableval" = yes; then
4950 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4951 else
4952 ac_cv_use_metafile='wxUSE_METAFILE=no'
4953 fi
4954
4955 else
4956
4957 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4958 if test "x$LINE" != x ; then
4959 eval "DEFAULT_$LINE"
4960 else
4961 no_cache=1
4962 fi
4963
4964 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4965
4966 fi
4967
4968
4969 eval "$ac_cv_use_metafile"
4970 if test "$no_cache" != 1; then
4971 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4972 fi
4973
4974 if test "$wxUSE_METAFILE" = yes; then
4975 echo "$ac_t""yes" 1>&6
4976 else
4977 echo "$ac_t""no" 1>&6
4978 fi
4979
4980
4981
4982 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
4983 echo "configure:4984: checking for --enable-treelayout" >&5
4984 no_cache=0
4985 # Check whether --enable-treelayout or --disable-treelayout was given.
4986 if test "${enable_treelayout+set}" = set; then
4987 enableval="$enable_treelayout"
4988
4989 if test "$enableval" = yes; then
4990 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
4991 else
4992 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
4993 fi
4994
4995 else
4996
4997 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
4998 if test "x$LINE" != x ; then
4999 eval "DEFAULT_$LINE"
5000 else
5001 no_cache=1
5002 fi
5003
5004 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5005
5006 fi
5007
5008
5009 eval "$ac_cv_use_treelayout"
5010 if test "$no_cache" != 1; then
5011 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5012 fi
5013
5014 if test "$wxUSE_TREELAYOUT" = yes; then
5015 echo "$ac_t""yes" 1>&6
5016 else
5017 echo "$ac_t""no" 1>&6
5018 fi
5019
5020
5021
5022
5023 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5024 echo "configure:5025: checking for --enable-controls" >&5
5025 no_cache=0
5026 # Check whether --enable-controls or --disable-controls was given.
5027 if test "${enable_controls+set}" = set; then
5028 enableval="$enable_controls"
5029
5030 if test "$enableval" = yes; then
5031 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5032 else
5033 ac_cv_use_controls='wxUSE_CONTROLS=no'
5034 fi
5035
5036 else
5037
5038 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5039 if test "x$LINE" != x ; then
5040 eval "DEFAULT_$LINE"
5041 else
5042 no_cache=1
5043 fi
5044
5045 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5046
5047 fi
5048
5049
5050 eval "$ac_cv_use_controls"
5051 if test "$no_cache" != 1; then
5052 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5053 fi
5054
5055 if test "$wxUSE_CONTROLS" = yes; then
5056 echo "$ac_t""yes" 1>&6
5057 else
5058 echo "$ac_t""no" 1>&6
5059 fi
5060
5061
5062 if test "$wxUSE_CONTROLS" = "yes"; then
5063 DEFAULT_wxUSE_ACCEL=yes
5064 DEFAULT_wxUSE_BMPBUTTON=yes
5065 DEFAULT_wxUSE_BUTTON=yes
5066 DEFAULT_wxUSE_CALCTRL=no
5067 DEFAULT_wxUSE_CARET=yes
5068 DEFAULT_wxUSE_COMBOBOX=yes
5069 DEFAULT_wxUSE_CHECKBOX=yes
5070 DEFAULT_wxUSE_CHECKLISTBOX=yes
5071 DEFAULT_wxUSE_CHOICE=yes
5072 DEFAULT_wxUSE_GAUGE=yes
5073 DEFAULT_wxUSE_GRID=yes
5074 DEFAULT_wxUSE_NEW_GRID=yes
5075 DEFAULT_wxUSE_IMAGLIST=yes
5076 DEFAULT_wxUSE_LISTBOX=yes
5077 DEFAULT_wxUSE_LISTCTRL=yes
5078 DEFAULT_wxUSE_NOTEBOOK=yes
5079 DEFAULT_wxUSE_PROPSHEET=yes
5080 DEFAULT_wxUSE_RADIOBOX=yes
5081 DEFAULT_wxUSE_RADIOBTN=yes
5082 DEFAULT_wxUSE_SASH=yes
5083 DEFAULT_wxUSE_SCROLLBAR=yes
5084 DEFAULT_wxUSE_SLIDER=yes
5085 DEFAULT_wxUSE_SPINBTN=yes
5086 DEFAULT_wxUSE_SPINCTRL=yes
5087 DEFAULT_wxUSE_SPLITTER=yes
5088 DEFAULT_wxUSE_STATBMP=yes
5089 DEFAULT_wxUSE_STATBOX=yes
5090 DEFAULT_wxUSE_STATLINE=yes
5091 DEFAULT_wxUSE_STATUSBAR=yes
5092 DEFAULT_wxUSE_TAB_DIALOG=yes
5093 DEFAULT_wxUSE_TOGGLEBTN=yes
5094 DEFAULT_wxUSE_TOOLBAR=yes
5095 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5096 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5097 DEFAULT_wxUSE_TOOLTIPS=yes
5098 DEFAULT_wxUSE_TREECTRL=yes
5099 DEFAULT_wxUSE_POPUPWIN=yes
5100 elif test "$wxUSE_CONTROLS" = "no"; then
5101 DEFAULT_wxUSE_ACCEL=no
5102 DEFAULT_wxUSE_BMPBUTTON=no
5103 DEFAULT_wxUSE_BUTTON=no
5104 DEFAULT_wxUSE_CALCTRL=no
5105 DEFAULT_wxUSE_CARET=no
5106 DEFAULT_wxUSE_COMBOBOX=no
5107 DEFAULT_wxUSE_CHECKBOX=no
5108 DEFAULT_wxUSE_CHECKLISTBOX=no
5109 DEFAULT_wxUSE_CHOICE=no
5110 DEFAULT_wxUSE_GAUGE=no
5111 DEFAULT_wxUSE_GRID=no
5112 DEFAULT_wxUSE_NEW_GRID=no
5113 DEFAULT_wxUSE_IMAGLIST=no
5114 DEFAULT_wxUSE_LISTBOX=no
5115 DEFAULT_wxUSE_LISTCTRL=no
5116 DEFAULT_wxUSE_NOTEBOOK=no
5117 DEFAULT_wxUSE_PROPSHEET=no
5118 DEFAULT_wxUSE_RADIOBOX=no
5119 DEFAULT_wxUSE_RADIOBTN=no
5120 DEFAULT_wxUSE_SASH=no
5121 DEFAULT_wxUSE_SCROLLBAR=no
5122 DEFAULT_wxUSE_SLIDER=no
5123 DEFAULT_wxUSE_SPINBTN=no
5124 DEFAULT_wxUSE_SPINCTRL=no
5125 DEFAULT_wxUSE_SPLITTER=no
5126 DEFAULT_wxUSE_STATBMP=no
5127 DEFAULT_wxUSE_STATBOX=no
5128 DEFAULT_wxUSE_STATLINE=no
5129 DEFAULT_wxUSE_STATUSBAR=no
5130 DEFAULT_wxUSE_TAB_DIALOG=no
5131 DEFAULT_wxUSE_TOGGLEBTN=no
5132 DEFAULT_wxUSE_TOOLBAR=no
5133 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5134 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5135 DEFAULT_wxUSE_TOOLTIPS=no
5136 DEFAULT_wxUSE_TREECTRL=no
5137 DEFAULT_wxUSE_POPUPWIN=no
5138 fi
5139
5140
5141 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5142 echo "configure:5143: checking for --enable-accel" >&5
5143 no_cache=0
5144 # Check whether --enable-accel or --disable-accel was given.
5145 if test "${enable_accel+set}" = set; then
5146 enableval="$enable_accel"
5147
5148 if test "$enableval" = yes; then
5149 ac_cv_use_accel='wxUSE_ACCEL=yes'
5150 else
5151 ac_cv_use_accel='wxUSE_ACCEL=no'
5152 fi
5153
5154 else
5155
5156 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5157 if test "x$LINE" != x ; then
5158 eval "DEFAULT_$LINE"
5159 else
5160 no_cache=1
5161 fi
5162
5163 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5164
5165 fi
5166
5167
5168 eval "$ac_cv_use_accel"
5169 if test "$no_cache" != 1; then
5170 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5171 fi
5172
5173 if test "$wxUSE_ACCEL" = yes; then
5174 echo "$ac_t""yes" 1>&6
5175 else
5176 echo "$ac_t""no" 1>&6
5177 fi
5178
5179
5180 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5181 echo "configure:5182: checking for --enable-button" >&5
5182 no_cache=0
5183 # Check whether --enable-button or --disable-button was given.
5184 if test "${enable_button+set}" = set; then
5185 enableval="$enable_button"
5186
5187 if test "$enableval" = yes; then
5188 ac_cv_use_button='wxUSE_BUTTON=yes'
5189 else
5190 ac_cv_use_button='wxUSE_BUTTON=no'
5191 fi
5192
5193 else
5194
5195 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5196 if test "x$LINE" != x ; then
5197 eval "DEFAULT_$LINE"
5198 else
5199 no_cache=1
5200 fi
5201
5202 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5203
5204 fi
5205
5206
5207 eval "$ac_cv_use_button"
5208 if test "$no_cache" != 1; then
5209 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5210 fi
5211
5212 if test "$wxUSE_BUTTON" = yes; then
5213 echo "$ac_t""yes" 1>&6
5214 else
5215 echo "$ac_t""no" 1>&6
5216 fi
5217
5218
5219 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5220 echo "configure:5221: checking for --enable-bmpbutton" >&5
5221 no_cache=0
5222 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5223 if test "${enable_bmpbutton+set}" = set; then
5224 enableval="$enable_bmpbutton"
5225
5226 if test "$enableval" = yes; then
5227 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5228 else
5229 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5230 fi
5231
5232 else
5233
5234 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5235 if test "x$LINE" != x ; then
5236 eval "DEFAULT_$LINE"
5237 else
5238 no_cache=1
5239 fi
5240
5241 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5242
5243 fi
5244
5245
5246 eval "$ac_cv_use_bmpbutton"
5247 if test "$no_cache" != 1; then
5248 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5249 fi
5250
5251 if test "$wxUSE_BMPBUTTON" = yes; then
5252 echo "$ac_t""yes" 1>&6
5253 else
5254 echo "$ac_t""no" 1>&6
5255 fi
5256
5257
5258 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5259 echo "configure:5260: checking for --enable-calendar" >&5
5260 no_cache=0
5261 # Check whether --enable-calendar or --disable-calendar was given.
5262 if test "${enable_calendar+set}" = set; then
5263 enableval="$enable_calendar"
5264
5265 if test "$enableval" = yes; then
5266 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5267 else
5268 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5269 fi
5270
5271 else
5272
5273 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5274 if test "x$LINE" != x ; then
5275 eval "DEFAULT_$LINE"
5276 else
5277 no_cache=1
5278 fi
5279
5280 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5281
5282 fi
5283
5284
5285 eval "$ac_cv_use_calendar"
5286 if test "$no_cache" != 1; then
5287 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5288 fi
5289
5290 if test "$wxUSE_CALCTRL" = yes; then
5291 echo "$ac_t""yes" 1>&6
5292 else
5293 echo "$ac_t""no" 1>&6
5294 fi
5295
5296
5297 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5298 echo "configure:5299: checking for --enable-caret" >&5
5299 no_cache=0
5300 # Check whether --enable-caret or --disable-caret was given.
5301 if test "${enable_caret+set}" = set; then
5302 enableval="$enable_caret"
5303
5304 if test "$enableval" = yes; then
5305 ac_cv_use_caret='wxUSE_CARET=yes'
5306 else
5307 ac_cv_use_caret='wxUSE_CARET=no'
5308 fi
5309
5310 else
5311
5312 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5313 if test "x$LINE" != x ; then
5314 eval "DEFAULT_$LINE"
5315 else
5316 no_cache=1
5317 fi
5318
5319 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5320
5321 fi
5322
5323
5324 eval "$ac_cv_use_caret"
5325 if test "$no_cache" != 1; then
5326 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5327 fi
5328
5329 if test "$wxUSE_CARET" = yes; then
5330 echo "$ac_t""yes" 1>&6
5331 else
5332 echo "$ac_t""no" 1>&6
5333 fi
5334
5335
5336 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5337 echo "configure:5338: checking for --enable-checkbox" >&5
5338 no_cache=0
5339 # Check whether --enable-checkbox or --disable-checkbox was given.
5340 if test "${enable_checkbox+set}" = set; then
5341 enableval="$enable_checkbox"
5342
5343 if test "$enableval" = yes; then
5344 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5345 else
5346 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5347 fi
5348
5349 else
5350
5351 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5352 if test "x$LINE" != x ; then
5353 eval "DEFAULT_$LINE"
5354 else
5355 no_cache=1
5356 fi
5357
5358 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5359
5360 fi
5361
5362
5363 eval "$ac_cv_use_checkbox"
5364 if test "$no_cache" != 1; then
5365 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5366 fi
5367
5368 if test "$wxUSE_CHECKBOX" = yes; then
5369 echo "$ac_t""yes" 1>&6
5370 else
5371 echo "$ac_t""no" 1>&6
5372 fi
5373
5374
5375 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5376 echo "configure:5377: checking for --enable-checklst" >&5
5377 no_cache=0
5378 # Check whether --enable-checklst or --disable-checklst was given.
5379 if test "${enable_checklst+set}" = set; then
5380 enableval="$enable_checklst"
5381
5382 if test "$enableval" = yes; then
5383 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5384 else
5385 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5386 fi
5387
5388 else
5389
5390 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5391 if test "x$LINE" != x ; then
5392 eval "DEFAULT_$LINE"
5393 else
5394 no_cache=1
5395 fi
5396
5397 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5398
5399 fi
5400
5401
5402 eval "$ac_cv_use_checklst"
5403 if test "$no_cache" != 1; then
5404 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5405 fi
5406
5407 if test "$wxUSE_CHECKLST" = yes; then
5408 echo "$ac_t""yes" 1>&6
5409 else
5410 echo "$ac_t""no" 1>&6
5411 fi
5412
5413
5414 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5415 echo "configure:5416: checking for --enable-choice" >&5
5416 no_cache=0
5417 # Check whether --enable-choice or --disable-choice was given.
5418 if test "${enable_choice+set}" = set; then
5419 enableval="$enable_choice"
5420
5421 if test "$enableval" = yes; then
5422 ac_cv_use_choice='wxUSE_CHOICE=yes'
5423 else
5424 ac_cv_use_choice='wxUSE_CHOICE=no'
5425 fi
5426
5427 else
5428
5429 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5430 if test "x$LINE" != x ; then
5431 eval "DEFAULT_$LINE"
5432 else
5433 no_cache=1
5434 fi
5435
5436 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5437
5438 fi
5439
5440
5441 eval "$ac_cv_use_choice"
5442 if test "$no_cache" != 1; then
5443 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5444 fi
5445
5446 if test "$wxUSE_CHOICE" = yes; then
5447 echo "$ac_t""yes" 1>&6
5448 else
5449 echo "$ac_t""no" 1>&6
5450 fi
5451
5452
5453 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5454 echo "configure:5455: checking for --enable-combobox" >&5
5455 no_cache=0
5456 # Check whether --enable-combobox or --disable-combobox was given.
5457 if test "${enable_combobox+set}" = set; then
5458 enableval="$enable_combobox"
5459
5460 if test "$enableval" = yes; then
5461 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5462 else
5463 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5464 fi
5465
5466 else
5467
5468 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5469 if test "x$LINE" != x ; then
5470 eval "DEFAULT_$LINE"
5471 else
5472 no_cache=1
5473 fi
5474
5475 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5476
5477 fi
5478
5479
5480 eval "$ac_cv_use_combobox"
5481 if test "$no_cache" != 1; then
5482 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5483 fi
5484
5485 if test "$wxUSE_COMBOBOX" = yes; then
5486 echo "$ac_t""yes" 1>&6
5487 else
5488 echo "$ac_t""no" 1>&6
5489 fi
5490
5491
5492 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
5493 echo "configure:5494: checking for --enable-gauge" >&5
5494 no_cache=0
5495 # Check whether --enable-gauge or --disable-gauge was given.
5496 if test "${enable_gauge+set}" = set; then
5497 enableval="$enable_gauge"
5498
5499 if test "$enableval" = yes; then
5500 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5501 else
5502 ac_cv_use_gauge='wxUSE_GAUGE=no'
5503 fi
5504
5505 else
5506
5507 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5508 if test "x$LINE" != x ; then
5509 eval "DEFAULT_$LINE"
5510 else
5511 no_cache=1
5512 fi
5513
5514 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
5515
5516 fi
5517
5518
5519 eval "$ac_cv_use_gauge"
5520 if test "$no_cache" != 1; then
5521 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5522 fi
5523
5524 if test "$wxUSE_GAUGE" = yes; then
5525 echo "$ac_t""yes" 1>&6
5526 else
5527 echo "$ac_t""no" 1>&6
5528 fi
5529
5530
5531 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
5532 echo "configure:5533: checking for --enable-grid" >&5
5533 no_cache=0
5534 # Check whether --enable-grid or --disable-grid was given.
5535 if test "${enable_grid+set}" = set; then
5536 enableval="$enable_grid"
5537
5538 if test "$enableval" = yes; then
5539 ac_cv_use_grid='wxUSE_GRID=yes'
5540 else
5541 ac_cv_use_grid='wxUSE_GRID=no'
5542 fi
5543
5544 else
5545
5546 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5547 if test "x$LINE" != x ; then
5548 eval "DEFAULT_$LINE"
5549 else
5550 no_cache=1
5551 fi
5552
5553 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5554
5555 fi
5556
5557
5558 eval "$ac_cv_use_grid"
5559 if test "$no_cache" != 1; then
5560 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5561 fi
5562
5563 if test "$wxUSE_GRID" = yes; then
5564 echo "$ac_t""yes" 1>&6
5565 else
5566 echo "$ac_t""no" 1>&6
5567 fi
5568
5569
5570 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
5571 echo "configure:5572: checking for --enable-newgrid" >&5
5572 no_cache=0
5573 # Check whether --enable-newgrid or --disable-newgrid was given.
5574 if test "${enable_newgrid+set}" = set; then
5575 enableval="$enable_newgrid"
5576
5577 if test "$enableval" = yes; then
5578 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5579 else
5580 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5581 fi
5582
5583 else
5584
5585 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5586 if test "x$LINE" != x ; then
5587 eval "DEFAULT_$LINE"
5588 else
5589 no_cache=1
5590 fi
5591
5592 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
5593
5594 fi
5595
5596
5597 eval "$ac_cv_use_newgrid"
5598 if test "$no_cache" != 1; then
5599 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5600 fi
5601
5602 if test "$wxUSE_NEW_GRID" = yes; then
5603 echo "$ac_t""yes" 1>&6
5604 else
5605 echo "$ac_t""no" 1>&6
5606 fi
5607
5608
5609 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
5610 echo "configure:5611: checking for --enable-imaglist" >&5
5611 no_cache=0
5612 # Check whether --enable-imaglist or --disable-imaglist was given.
5613 if test "${enable_imaglist+set}" = set; then
5614 enableval="$enable_imaglist"
5615
5616 if test "$enableval" = yes; then
5617 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5618 else
5619 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5620 fi
5621
5622 else
5623
5624 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5625 if test "x$LINE" != x ; then
5626 eval "DEFAULT_$LINE"
5627 else
5628 no_cache=1
5629 fi
5630
5631 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
5632
5633 fi
5634
5635
5636 eval "$ac_cv_use_imaglist"
5637 if test "$no_cache" != 1; then
5638 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5639 fi
5640
5641 if test "$wxUSE_IMAGLIST" = yes; then
5642 echo "$ac_t""yes" 1>&6
5643 else
5644 echo "$ac_t""no" 1>&6
5645 fi
5646
5647
5648 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
5649 echo "configure:5650: checking for --enable-listbox" >&5
5650 no_cache=0
5651 # Check whether --enable-listbox or --disable-listbox was given.
5652 if test "${enable_listbox+set}" = set; then
5653 enableval="$enable_listbox"
5654
5655 if test "$enableval" = yes; then
5656 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5657 else
5658 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5659 fi
5660
5661 else
5662
5663 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5664 if test "x$LINE" != x ; then
5665 eval "DEFAULT_$LINE"
5666 else
5667 no_cache=1
5668 fi
5669
5670 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
5671
5672 fi
5673
5674
5675 eval "$ac_cv_use_listbox"
5676 if test "$no_cache" != 1; then
5677 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5678 fi
5679
5680 if test "$wxUSE_LISTBOX" = yes; then
5681 echo "$ac_t""yes" 1>&6
5682 else
5683 echo "$ac_t""no" 1>&6
5684 fi
5685
5686
5687 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
5688 echo "configure:5689: checking for --enable-listctrl" >&5
5689 no_cache=0
5690 # Check whether --enable-listctrl or --disable-listctrl was given.
5691 if test "${enable_listctrl+set}" = set; then
5692 enableval="$enable_listctrl"
5693
5694 if test "$enableval" = yes; then
5695 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5696 else
5697 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5698 fi
5699
5700 else
5701
5702 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5703 if test "x$LINE" != x ; then
5704 eval "DEFAULT_$LINE"
5705 else
5706 no_cache=1
5707 fi
5708
5709 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
5710
5711 fi
5712
5713
5714 eval "$ac_cv_use_listctrl"
5715 if test "$no_cache" != 1; then
5716 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5717 fi
5718
5719 if test "$wxUSE_LISTCTRL" = yes; then
5720 echo "$ac_t""yes" 1>&6
5721 else
5722 echo "$ac_t""no" 1>&6
5723 fi
5724
5725
5726 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
5727 echo "configure:5728: checking for --enable-notebook" >&5
5728 no_cache=0
5729 # Check whether --enable-notebook or --disable-notebook was given.
5730 if test "${enable_notebook+set}" = set; then
5731 enableval="$enable_notebook"
5732
5733 if test "$enableval" = yes; then
5734 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5735 else
5736 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5737 fi
5738
5739 else
5740
5741 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5742 if test "x$LINE" != x ; then
5743 eval "DEFAULT_$LINE"
5744 else
5745 no_cache=1
5746 fi
5747
5748 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
5749
5750 fi
5751
5752
5753 eval "$ac_cv_use_notebook"
5754 if test "$no_cache" != 1; then
5755 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5756 fi
5757
5758 if test "$wxUSE_NOTEBOOK" = yes; then
5759 echo "$ac_t""yes" 1>&6
5760 else
5761 echo "$ac_t""no" 1>&6
5762 fi
5763
5764
5765 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
5766 echo "configure:5767: checking for --enable-propsheet" >&5
5767 no_cache=0
5768 # Check whether --enable-propsheet or --disable-propsheet was given.
5769 if test "${enable_propsheet+set}" = set; then
5770 enableval="$enable_propsheet"
5771
5772 if test "$enableval" = yes; then
5773 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5774 else
5775 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5776 fi
5777
5778 else
5779
5780 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5781 if test "x$LINE" != x ; then
5782 eval "DEFAULT_$LINE"
5783 else
5784 no_cache=1
5785 fi
5786
5787 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5788
5789 fi
5790
5791
5792 eval "$ac_cv_use_propsheet"
5793 if test "$no_cache" != 1; then
5794 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5795 fi
5796
5797 if test "$wxUSE_PROPSHEET" = yes; then
5798 echo "$ac_t""yes" 1>&6
5799 else
5800 echo "$ac_t""no" 1>&6
5801 fi
5802
5803
5804 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
5805 echo "configure:5806: checking for --enable-radiobox" >&5
5806 no_cache=0
5807 # Check whether --enable-radiobox or --disable-radiobox was given.
5808 if test "${enable_radiobox+set}" = set; then
5809 enableval="$enable_radiobox"
5810
5811 if test "$enableval" = yes; then
5812 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5813 else
5814 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5815 fi
5816
5817 else
5818
5819 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5820 if test "x$LINE" != x ; then
5821 eval "DEFAULT_$LINE"
5822 else
5823 no_cache=1
5824 fi
5825
5826 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
5827
5828 fi
5829
5830
5831 eval "$ac_cv_use_radiobox"
5832 if test "$no_cache" != 1; then
5833 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5834 fi
5835
5836 if test "$wxUSE_RADIOBOX" = yes; then
5837 echo "$ac_t""yes" 1>&6
5838 else
5839 echo "$ac_t""no" 1>&6
5840 fi
5841
5842
5843 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
5844 echo "configure:5845: checking for --enable-radiobtn" >&5
5845 no_cache=0
5846 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5847 if test "${enable_radiobtn+set}" = set; then
5848 enableval="$enable_radiobtn"
5849
5850 if test "$enableval" = yes; then
5851 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5852 else
5853 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5854 fi
5855
5856 else
5857
5858 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5859 if test "x$LINE" != x ; then
5860 eval "DEFAULT_$LINE"
5861 else
5862 no_cache=1
5863 fi
5864
5865 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
5866
5867 fi
5868
5869
5870 eval "$ac_cv_use_radiobtn"
5871 if test "$no_cache" != 1; then
5872 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5873 fi
5874
5875 if test "$wxUSE_RADIOBTN" = yes; then
5876 echo "$ac_t""yes" 1>&6
5877 else
5878 echo "$ac_t""no" 1>&6
5879 fi
5880
5881
5882 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
5883 echo "configure:5884: checking for --enable-sash" >&5
5884 no_cache=0
5885 # Check whether --enable-sash or --disable-sash was given.
5886 if test "${enable_sash+set}" = set; then
5887 enableval="$enable_sash"
5888
5889 if test "$enableval" = yes; then
5890 ac_cv_use_sash='wxUSE_SASH=yes'
5891 else
5892 ac_cv_use_sash='wxUSE_SASH=no'
5893 fi
5894
5895 else
5896
5897 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5898 if test "x$LINE" != x ; then
5899 eval "DEFAULT_$LINE"
5900 else
5901 no_cache=1
5902 fi
5903
5904 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
5905
5906 fi
5907
5908
5909 eval "$ac_cv_use_sash"
5910 if test "$no_cache" != 1; then
5911 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5912 fi
5913
5914 if test "$wxUSE_SASH" = yes; then
5915 echo "$ac_t""yes" 1>&6
5916 else
5917 echo "$ac_t""no" 1>&6
5918 fi
5919
5920
5921 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
5922 echo "configure:5923: checking for --enable-scrollbar" >&5
5923 no_cache=0
5924 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5925 if test "${enable_scrollbar+set}" = set; then
5926 enableval="$enable_scrollbar"
5927
5928 if test "$enableval" = yes; then
5929 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5930 else
5931 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5932 fi
5933
5934 else
5935
5936 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5937 if test "x$LINE" != x ; then
5938 eval "DEFAULT_$LINE"
5939 else
5940 no_cache=1
5941 fi
5942
5943 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
5944
5945 fi
5946
5947
5948 eval "$ac_cv_use_scrollbar"
5949 if test "$no_cache" != 1; then
5950 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5951 fi
5952
5953 if test "$wxUSE_SCROLLBAR" = yes; then
5954 echo "$ac_t""yes" 1>&6
5955 else
5956 echo "$ac_t""no" 1>&6
5957 fi
5958
5959
5960 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
5961 echo "configure:5962: checking for --enable-slider" >&5
5962 no_cache=0
5963 # Check whether --enable-slider or --disable-slider was given.
5964 if test "${enable_slider+set}" = set; then
5965 enableval="$enable_slider"
5966
5967 if test "$enableval" = yes; then
5968 ac_cv_use_slider='wxUSE_SLIDER=yes'
5969 else
5970 ac_cv_use_slider='wxUSE_SLIDER=no'
5971 fi
5972
5973 else
5974
5975 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5976 if test "x$LINE" != x ; then
5977 eval "DEFAULT_$LINE"
5978 else
5979 no_cache=1
5980 fi
5981
5982 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
5983
5984 fi
5985
5986
5987 eval "$ac_cv_use_slider"
5988 if test "$no_cache" != 1; then
5989 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5990 fi
5991
5992 if test "$wxUSE_SLIDER" = yes; then
5993 echo "$ac_t""yes" 1>&6
5994 else
5995 echo "$ac_t""no" 1>&6
5996 fi
5997
5998
5999 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6000 echo "configure:6001: checking for --enable-spinbtn" >&5
6001 no_cache=0
6002 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6003 if test "${enable_spinbtn+set}" = set; then
6004 enableval="$enable_spinbtn"
6005
6006 if test "$enableval" = yes; then
6007 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6008 else
6009 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6010 fi
6011
6012 else
6013
6014 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6015 if test "x$LINE" != x ; then
6016 eval "DEFAULT_$LINE"
6017 else
6018 no_cache=1
6019 fi
6020
6021 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6022
6023 fi
6024
6025
6026 eval "$ac_cv_use_spinbtn"
6027 if test "$no_cache" != 1; then
6028 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6029 fi
6030
6031 if test "$wxUSE_SPINBTN" = yes; then
6032 echo "$ac_t""yes" 1>&6
6033 else
6034 echo "$ac_t""no" 1>&6
6035 fi
6036
6037
6038 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6039 echo "configure:6040: checking for --enable-spinctrl" >&5
6040 no_cache=0
6041 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6042 if test "${enable_spinctrl+set}" = set; then
6043 enableval="$enable_spinctrl"
6044
6045 if test "$enableval" = yes; then
6046 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6047 else
6048 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6049 fi
6050
6051 else
6052
6053 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6054 if test "x$LINE" != x ; then
6055 eval "DEFAULT_$LINE"
6056 else
6057 no_cache=1
6058 fi
6059
6060 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6061
6062 fi
6063
6064
6065 eval "$ac_cv_use_spinctrl"
6066 if test "$no_cache" != 1; then
6067 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6068 fi
6069
6070 if test "$wxUSE_SPINCTRL" = yes; then
6071 echo "$ac_t""yes" 1>&6
6072 else
6073 echo "$ac_t""no" 1>&6
6074 fi
6075
6076
6077 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6078 echo "configure:6079: checking for --enable-splitter" >&5
6079 no_cache=0
6080 # Check whether --enable-splitter or --disable-splitter was given.
6081 if test "${enable_splitter+set}" = set; then
6082 enableval="$enable_splitter"
6083
6084 if test "$enableval" = yes; then
6085 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6086 else
6087 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6088 fi
6089
6090 else
6091
6092 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6093 if test "x$LINE" != x ; then
6094 eval "DEFAULT_$LINE"
6095 else
6096 no_cache=1
6097 fi
6098
6099 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6100
6101 fi
6102
6103
6104 eval "$ac_cv_use_splitter"
6105 if test "$no_cache" != 1; then
6106 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6107 fi
6108
6109 if test "$wxUSE_SPLITTER" = yes; then
6110 echo "$ac_t""yes" 1>&6
6111 else
6112 echo "$ac_t""no" 1>&6
6113 fi
6114
6115
6116 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6117 echo "configure:6118: checking for --enable-statbmp" >&5
6118 no_cache=0
6119 # Check whether --enable-statbmp or --disable-statbmp was given.
6120 if test "${enable_statbmp+set}" = set; then
6121 enableval="$enable_statbmp"
6122
6123 if test "$enableval" = yes; then
6124 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6125 else
6126 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6127 fi
6128
6129 else
6130
6131 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6132 if test "x$LINE" != x ; then
6133 eval "DEFAULT_$LINE"
6134 else
6135 no_cache=1
6136 fi
6137
6138 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6139
6140 fi
6141
6142
6143 eval "$ac_cv_use_statbmp"
6144 if test "$no_cache" != 1; then
6145 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6146 fi
6147
6148 if test "$wxUSE_STATBMP" = yes; then
6149 echo "$ac_t""yes" 1>&6
6150 else
6151 echo "$ac_t""no" 1>&6
6152 fi
6153
6154
6155 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6156 echo "configure:6157: checking for --enable-statbox" >&5
6157 no_cache=0
6158 # Check whether --enable-statbox or --disable-statbox was given.
6159 if test "${enable_statbox+set}" = set; then
6160 enableval="$enable_statbox"
6161
6162 if test "$enableval" = yes; then
6163 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6164 else
6165 ac_cv_use_statbox='wxUSE_STATBOX=no'
6166 fi
6167
6168 else
6169
6170 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6171 if test "x$LINE" != x ; then
6172 eval "DEFAULT_$LINE"
6173 else
6174 no_cache=1
6175 fi
6176
6177 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6178
6179 fi
6180
6181
6182 eval "$ac_cv_use_statbox"
6183 if test "$no_cache" != 1; then
6184 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6185 fi
6186
6187 if test "$wxUSE_STATBOX" = yes; then
6188 echo "$ac_t""yes" 1>&6
6189 else
6190 echo "$ac_t""no" 1>&6
6191 fi
6192
6193
6194 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6195 echo "configure:6196: checking for --enable-statline" >&5
6196 no_cache=0
6197 # Check whether --enable-statline or --disable-statline was given.
6198 if test "${enable_statline+set}" = set; then
6199 enableval="$enable_statline"
6200
6201 if test "$enableval" = yes; then
6202 ac_cv_use_statline='wxUSE_STATLINE=yes'
6203 else
6204 ac_cv_use_statline='wxUSE_STATLINE=no'
6205 fi
6206
6207 else
6208
6209 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6210 if test "x$LINE" != x ; then
6211 eval "DEFAULT_$LINE"
6212 else
6213 no_cache=1
6214 fi
6215
6216 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6217
6218 fi
6219
6220
6221 eval "$ac_cv_use_statline"
6222 if test "$no_cache" != 1; then
6223 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6224 fi
6225
6226 if test "$wxUSE_STATLINE" = yes; then
6227 echo "$ac_t""yes" 1>&6
6228 else
6229 echo "$ac_t""no" 1>&6
6230 fi
6231
6232
6233 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6234 echo "configure:6235: checking for --enable-stattext" >&5
6235 no_cache=0
6236 # Check whether --enable-stattext or --disable-stattext was given.
6237 if test "${enable_stattext+set}" = set; then
6238 enableval="$enable_stattext"
6239
6240 if test "$enableval" = yes; then
6241 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6242 else
6243 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6244 fi
6245
6246 else
6247
6248 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6249 if test "x$LINE" != x ; then
6250 eval "DEFAULT_$LINE"
6251 else
6252 no_cache=1
6253 fi
6254
6255 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6256
6257 fi
6258
6259
6260 eval "$ac_cv_use_stattext"
6261 if test "$no_cache" != 1; then
6262 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6263 fi
6264
6265 if test "$wxUSE_STATTEXT" = yes; then
6266 echo "$ac_t""yes" 1>&6
6267 else
6268 echo "$ac_t""no" 1>&6
6269 fi
6270
6271
6272 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6273 echo "configure:6274: checking for --enable-statusbar" >&5
6274 no_cache=0
6275 # Check whether --enable-statusbar or --disable-statusbar was given.
6276 if test "${enable_statusbar+set}" = set; then
6277 enableval="$enable_statusbar"
6278
6279 if test "$enableval" = yes; then
6280 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6281 else
6282 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6283 fi
6284
6285 else
6286
6287 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6288 if test "x$LINE" != x ; then
6289 eval "DEFAULT_$LINE"
6290 else
6291 no_cache=1
6292 fi
6293
6294 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6295
6296 fi
6297
6298
6299 eval "$ac_cv_use_statusbar"
6300 if test "$no_cache" != 1; then
6301 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6302 fi
6303
6304 if test "$wxUSE_STATUSBAR" = yes; then
6305 echo "$ac_t""yes" 1>&6
6306 else
6307 echo "$ac_t""no" 1>&6
6308 fi
6309
6310
6311 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6312 echo "configure:6313: checking for --enable-tabdialog" >&5
6313 no_cache=0
6314 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6315 if test "${enable_tabdialog+set}" = set; then
6316 enableval="$enable_tabdialog"
6317
6318 if test "$enableval" = yes; then
6319 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6320 else
6321 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6322 fi
6323
6324 else
6325
6326 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6327 if test "x$LINE" != x ; then
6328 eval "DEFAULT_$LINE"
6329 else
6330 no_cache=1
6331 fi
6332
6333 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6334
6335 fi
6336
6337
6338 eval "$ac_cv_use_tabdialog"
6339 if test "$no_cache" != 1; then
6340 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6341 fi
6342
6343 if test "$wxUSE_TABDIALOG" = yes; then
6344 echo "$ac_t""yes" 1>&6
6345 else
6346 echo "$ac_t""no" 1>&6
6347 fi
6348
6349
6350 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6351 echo "configure:6352: checking for --enable-textctrl" >&5
6352 no_cache=0
6353 # Check whether --enable-textctrl or --disable-textctrl was given.
6354 if test "${enable_textctrl+set}" = set; then
6355 enableval="$enable_textctrl"
6356
6357 if test "$enableval" = yes; then
6358 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6359 else
6360 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6361 fi
6362
6363 else
6364
6365 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6366 if test "x$LINE" != x ; then
6367 eval "DEFAULT_$LINE"
6368 else
6369 no_cache=1
6370 fi
6371
6372 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6373
6374 fi
6375
6376
6377 eval "$ac_cv_use_textctrl"
6378 if test "$no_cache" != 1; then
6379 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6380 fi
6381
6382 if test "$wxUSE_TEXTCTRL" = yes; then
6383 echo "$ac_t""yes" 1>&6
6384 else
6385 echo "$ac_t""no" 1>&6
6386 fi
6387
6388
6389 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6390 echo "configure:6391: checking for --enable-togglebtn" >&5
6391 no_cache=0
6392 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6393 if test "${enable_togglebtn+set}" = set; then
6394 enableval="$enable_togglebtn"
6395
6396 if test "$enableval" = yes; then
6397 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6398 else
6399 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6400 fi
6401
6402 else
6403
6404 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6405 if test "x$LINE" != x ; then
6406 eval "DEFAULT_$LINE"
6407 else
6408 no_cache=1
6409 fi
6410
6411 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6412
6413 fi
6414
6415
6416 eval "$ac_cv_use_togglebtn"
6417 if test "$no_cache" != 1; then
6418 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6419 fi
6420
6421 if test "$wxUSE_TOGGLEBTN" = yes; then
6422 echo "$ac_t""yes" 1>&6
6423 else
6424 echo "$ac_t""no" 1>&6
6425 fi
6426
6427
6428 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6429 echo "configure:6430: checking for --enable-toolbar" >&5
6430 no_cache=0
6431 # Check whether --enable-toolbar or --disable-toolbar was given.
6432 if test "${enable_toolbar+set}" = set; then
6433 enableval="$enable_toolbar"
6434
6435 if test "$enableval" = yes; then
6436 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6437 else
6438 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6439 fi
6440
6441 else
6442
6443 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6444 if test "x$LINE" != x ; then
6445 eval "DEFAULT_$LINE"
6446 else
6447 no_cache=1
6448 fi
6449
6450 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6451
6452 fi
6453
6454
6455 eval "$ac_cv_use_toolbar"
6456 if test "$no_cache" != 1; then
6457 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6458 fi
6459
6460 if test "$wxUSE_TOOLBAR" = yes; then
6461 echo "$ac_t""yes" 1>&6
6462 else
6463 echo "$ac_t""no" 1>&6
6464 fi
6465
6466
6467 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6468 echo "configure:6469: checking for --enable-tbarnative" >&5
6469 no_cache=0
6470 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6471 if test "${enable_tbarnative+set}" = set; then
6472 enableval="$enable_tbarnative"
6473
6474 if test "$enableval" = yes; then
6475 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6476 else
6477 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6478 fi
6479
6480 else
6481
6482 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6483 if test "x$LINE" != x ; then
6484 eval "DEFAULT_$LINE"
6485 else
6486 no_cache=1
6487 fi
6488
6489 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
6490
6491 fi
6492
6493
6494 eval "$ac_cv_use_tbarnative"
6495 if test "$no_cache" != 1; then
6496 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6497 fi
6498
6499 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6500 echo "$ac_t""yes" 1>&6
6501 else
6502 echo "$ac_t""no" 1>&6
6503 fi
6504
6505
6506 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
6507 echo "configure:6508: checking for --enable-tbarsmpl" >&5
6508 no_cache=0
6509 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6510 if test "${enable_tbarsmpl+set}" = set; then
6511 enableval="$enable_tbarsmpl"
6512
6513 if test "$enableval" = yes; then
6514 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6515 else
6516 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6517 fi
6518
6519 else
6520
6521 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6522 if test "x$LINE" != x ; then
6523 eval "DEFAULT_$LINE"
6524 else
6525 no_cache=1
6526 fi
6527
6528 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
6529
6530 fi
6531
6532
6533 eval "$ac_cv_use_tbarsmpl"
6534 if test "$no_cache" != 1; then
6535 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6536 fi
6537
6538 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
6539 echo "$ac_t""yes" 1>&6
6540 else
6541 echo "$ac_t""no" 1>&6
6542 fi
6543
6544
6545 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
6546 echo "configure:6547: checking for --enable-treectrl" >&5
6547 no_cache=0
6548 # Check whether --enable-treectrl or --disable-treectrl was given.
6549 if test "${enable_treectrl+set}" = set; then
6550 enableval="$enable_treectrl"
6551
6552 if test "$enableval" = yes; then
6553 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6554 else
6555 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6556 fi
6557
6558 else
6559
6560 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6561 if test "x$LINE" != x ; then
6562 eval "DEFAULT_$LINE"
6563 else
6564 no_cache=1
6565 fi
6566
6567 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
6568
6569 fi
6570
6571
6572 eval "$ac_cv_use_treectrl"
6573 if test "$no_cache" != 1; then
6574 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6575 fi
6576
6577 if test "$wxUSE_TREECTRL" = yes; then
6578 echo "$ac_t""yes" 1>&6
6579 else
6580 echo "$ac_t""no" 1>&6
6581 fi
6582
6583
6584 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
6585 echo "configure:6586: checking for --enable-popupwin" >&5
6586 no_cache=0
6587 # Check whether --enable-popupwin or --disable-popupwin was given.
6588 if test "${enable_popupwin+set}" = set; then
6589 enableval="$enable_popupwin"
6590
6591 if test "$enableval" = yes; then
6592 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6593 else
6594 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6595 fi
6596
6597 else
6598
6599 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6600 if test "x$LINE" != x ; then
6601 eval "DEFAULT_$LINE"
6602 else
6603 no_cache=1
6604 fi
6605
6606 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6607
6608 fi
6609
6610
6611 eval "$ac_cv_use_popupwin"
6612 if test "$no_cache" != 1; then
6613 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6614 fi
6615
6616 if test "$wxUSE_POPUPWIN" = yes; then
6617 echo "$ac_t""yes" 1>&6
6618 else
6619 echo "$ac_t""no" 1>&6
6620 fi
6621
6622
6623
6624
6625 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
6626 echo "configure:6627: checking for --enable-commondlg" >&5
6627 no_cache=0
6628 # Check whether --enable-commondlg or --disable-commondlg was given.
6629 if test "${enable_commondlg+set}" = set; then
6630 enableval="$enable_commondlg"
6631
6632 if test "$enableval" = yes; then
6633 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6634 else
6635 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6636 fi
6637
6638 else
6639
6640 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6641 if test "x$LINE" != x ; then
6642 eval "DEFAULT_$LINE"
6643 else
6644 no_cache=1
6645 fi
6646
6647 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6648
6649 fi
6650
6651
6652 eval "$ac_cv_use_commondlg"
6653 if test "$no_cache" != 1; then
6654 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6655 fi
6656
6657 if test "$wxUSE_COMMONDLGS" = yes; then
6658 echo "$ac_t""yes" 1>&6
6659 else
6660 echo "$ac_t""no" 1>&6
6661 fi
6662
6663
6664 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
6665 echo "configure:6666: checking for --enable-choicedlg" >&5
6666 no_cache=0
6667 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6668 if test "${enable_choicedlg+set}" = set; then
6669 enableval="$enable_choicedlg"
6670
6671 if test "$enableval" = yes; then
6672 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6673 else
6674 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6675 fi
6676
6677 else
6678
6679 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6680 if test "x$LINE" != x ; then
6681 eval "DEFAULT_$LINE"
6682 else
6683 no_cache=1
6684 fi
6685
6686 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6687
6688 fi
6689
6690
6691 eval "$ac_cv_use_choicedlg"
6692 if test "$no_cache" != 1; then
6693 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6694 fi
6695
6696 if test "$wxUSE_CHOICEDLG" = yes; then
6697 echo "$ac_t""yes" 1>&6
6698 else
6699 echo "$ac_t""no" 1>&6
6700 fi
6701
6702
6703 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
6704 echo "configure:6705: checking for --enable-coldlg" >&5
6705 no_cache=0
6706 # Check whether --enable-coldlg or --disable-coldlg was given.
6707 if test "${enable_coldlg+set}" = set; then
6708 enableval="$enable_coldlg"
6709
6710 if test "$enableval" = yes; then
6711 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6712 else
6713 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6714 fi
6715
6716 else
6717
6718 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6719 if test "x$LINE" != x ; then
6720 eval "DEFAULT_$LINE"
6721 else
6722 no_cache=1
6723 fi
6724
6725 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6726
6727 fi
6728
6729
6730 eval "$ac_cv_use_coldlg"
6731 if test "$no_cache" != 1; then
6732 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6733 fi
6734
6735 if test "$wxUSE_COLOURDLG" = yes; then
6736 echo "$ac_t""yes" 1>&6
6737 else
6738 echo "$ac_t""no" 1>&6
6739 fi
6740
6741
6742 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6743 echo "configure:6744: checking for --enable-filedlg" >&5
6744 no_cache=0
6745 # Check whether --enable-filedlg or --disable-filedlg was given.
6746 if test "${enable_filedlg+set}" = set; then
6747 enableval="$enable_filedlg"
6748
6749 if test "$enableval" = yes; then
6750 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6751 else
6752 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6753 fi
6754
6755 else
6756
6757 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6758 if test "x$LINE" != x ; then
6759 eval "DEFAULT_$LINE"
6760 else
6761 no_cache=1
6762 fi
6763
6764 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6765
6766 fi
6767
6768
6769 eval "$ac_cv_use_filedlg"
6770 if test "$no_cache" != 1; then
6771 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6772 fi
6773
6774 if test "$wxUSE_FILEDLG" = yes; then
6775 echo "$ac_t""yes" 1>&6
6776 else
6777 echo "$ac_t""no" 1>&6
6778 fi
6779
6780
6781 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6782 echo "configure:6783: checking for --enable-filedlg" >&5
6783 no_cache=0
6784 # Check whether --enable-filedlg or --disable-filedlg was given.
6785 if test "${enable_filedlg+set}" = set; then
6786 enableval="$enable_filedlg"
6787
6788 if test "$enableval" = yes; then
6789 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes'
6790 else
6791 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no'
6792 fi
6793
6794 else
6795
6796 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6797 if test "x$LINE" != x ; then
6798 eval "DEFAULT_$LINE"
6799 else
6800 no_cache=1
6801 fi
6802
6803 ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
6804
6805 fi
6806
6807
6808 eval "$ac_cv_use_filedlg"
6809 if test "$no_cache" != 1; then
6810 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6811 fi
6812
6813 if test "$wxUSE_FINDREPLDLG" = yes; then
6814 echo "$ac_t""yes" 1>&6
6815 else
6816 echo "$ac_t""no" 1>&6
6817 fi
6818
6819
6820 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
6821 echo "configure:6822: checking for --enable-fontdlg" >&5
6822 no_cache=0
6823 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6824 if test "${enable_fontdlg+set}" = set; then
6825 enableval="$enable_fontdlg"
6826
6827 if test "$enableval" = yes; then
6828 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6829 else
6830 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6831 fi
6832
6833 else
6834
6835 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6836 if test "x$LINE" != x ; then
6837 eval "DEFAULT_$LINE"
6838 else
6839 no_cache=1
6840 fi
6841
6842 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6843
6844 fi
6845
6846
6847 eval "$ac_cv_use_fontdlg"
6848 if test "$no_cache" != 1; then
6849 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6850 fi
6851
6852 if test "$wxUSE_FONTDLG" = yes; then
6853 echo "$ac_t""yes" 1>&6
6854 else
6855 echo "$ac_t""no" 1>&6
6856 fi
6857
6858
6859 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
6860 echo "configure:6861: checking for --enable-dirdlg" >&5
6861 no_cache=0
6862 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6863 if test "${enable_dirdlg+set}" = set; then
6864 enableval="$enable_dirdlg"
6865
6866 if test "$enableval" = yes; then
6867 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6868 else
6869 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6870 fi
6871
6872 else
6873
6874 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6875 if test "x$LINE" != x ; then
6876 eval "DEFAULT_$LINE"
6877 else
6878 no_cache=1
6879 fi
6880
6881 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6882
6883 fi
6884
6885
6886 eval "$ac_cv_use_dirdlg"
6887 if test "$no_cache" != 1; then
6888 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
6889 fi
6890
6891 if test "$wxUSE_DIRDLG" = yes; then
6892 echo "$ac_t""yes" 1>&6
6893 else
6894 echo "$ac_t""no" 1>&6
6895 fi
6896
6897
6898 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
6899 echo "configure:6900: checking for --enable-msgdlg" >&5
6900 no_cache=0
6901 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6902 if test "${enable_msgdlg+set}" = set; then
6903 enableval="$enable_msgdlg"
6904
6905 if test "$enableval" = yes; then
6906 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
6907 else
6908 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
6909 fi
6910
6911 else
6912
6913 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
6914 if test "x$LINE" != x ; then
6915 eval "DEFAULT_$LINE"
6916 else
6917 no_cache=1
6918 fi
6919
6920 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
6921
6922 fi
6923
6924
6925 eval "$ac_cv_use_msgdlg"
6926 if test "$no_cache" != 1; then
6927 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
6928 fi
6929
6930 if test "$wxUSE_MSGDLG" = yes; then
6931 echo "$ac_t""yes" 1>&6
6932 else
6933 echo "$ac_t""no" 1>&6
6934 fi
6935
6936
6937 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
6938 echo "configure:6939: checking for --enable-numberdlg" >&5
6939 no_cache=0
6940 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6941 if test "${enable_numberdlg+set}" = set; then
6942 enableval="$enable_numberdlg"
6943
6944 if test "$enableval" = yes; then
6945 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
6946 else
6947 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
6948 fi
6949
6950 else
6951
6952 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
6953 if test "x$LINE" != x ; then
6954 eval "DEFAULT_$LINE"
6955 else
6956 no_cache=1
6957 fi
6958
6959 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
6960
6961 fi
6962
6963
6964 eval "$ac_cv_use_numberdlg"
6965 if test "$no_cache" != 1; then
6966 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
6967 fi
6968
6969 if test "$wxUSE_NUMBERDLG" = yes; then
6970 echo "$ac_t""yes" 1>&6
6971 else
6972 echo "$ac_t""no" 1>&6
6973 fi
6974
6975
6976 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
6977 echo "configure:6978: checking for --enable-splash" >&5
6978 no_cache=0
6979 # Check whether --enable-splash or --disable-splash was given.
6980 if test "${enable_splash+set}" = set; then
6981 enableval="$enable_splash"
6982
6983 if test "$enableval" = yes; then
6984 ac_cv_use_splash='wxUSE_SPLASH=yes'
6985 else
6986 ac_cv_use_splash='wxUSE_SPLASH=no'
6987 fi
6988
6989 else
6990
6991 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
6992 if test "x$LINE" != x ; then
6993 eval "DEFAULT_$LINE"
6994 else
6995 no_cache=1
6996 fi
6997
6998 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
6999
7000 fi
7001
7002
7003 eval "$ac_cv_use_splash"
7004 if test "$no_cache" != 1; then
7005 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7006 fi
7007
7008 if test "$wxUSE_SPLASH" = yes; then
7009 echo "$ac_t""yes" 1>&6
7010 else
7011 echo "$ac_t""no" 1>&6
7012 fi
7013
7014
7015 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7016 echo "configure:7017: checking for --enable-textdlg" >&5
7017 no_cache=0
7018 # Check whether --enable-textdlg or --disable-textdlg was given.
7019 if test "${enable_textdlg+set}" = set; then
7020 enableval="$enable_textdlg"
7021
7022 if test "$enableval" = yes; then
7023 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7024 else
7025 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7026 fi
7027
7028 else
7029
7030 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7031 if test "x$LINE" != x ; then
7032 eval "DEFAULT_$LINE"
7033 else
7034 no_cache=1
7035 fi
7036
7037 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7038
7039 fi
7040
7041
7042 eval "$ac_cv_use_textdlg"
7043 if test "$no_cache" != 1; then
7044 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7045 fi
7046
7047 if test "$wxUSE_TEXTDLG" = yes; then
7048 echo "$ac_t""yes" 1>&6
7049 else
7050 echo "$ac_t""no" 1>&6
7051 fi
7052
7053
7054 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7055 echo "configure:7056: checking for --enable-tipdlg" >&5
7056 no_cache=0
7057 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7058 if test "${enable_tipdlg+set}" = set; then
7059 enableval="$enable_tipdlg"
7060
7061 if test "$enableval" = yes; then
7062 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7063 else
7064 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7065 fi
7066
7067 else
7068
7069 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7070 if test "x$LINE" != x ; then
7071 eval "DEFAULT_$LINE"
7072 else
7073 no_cache=1
7074 fi
7075
7076 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7077
7078 fi
7079
7080
7081 eval "$ac_cv_use_tipdlg"
7082 if test "$no_cache" != 1; then
7083 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7084 fi
7085
7086 if test "$wxUSE_STARTUP_TIPS" = yes; then
7087 echo "$ac_t""yes" 1>&6
7088 else
7089 echo "$ac_t""no" 1>&6
7090 fi
7091
7092
7093 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7094 echo "configure:7095: checking for --enable-progressdlg" >&5
7095 no_cache=0
7096 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7097 if test "${enable_progressdlg+set}" = set; then
7098 enableval="$enable_progressdlg"
7099
7100 if test "$enableval" = yes; then
7101 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7102 else
7103 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7104 fi
7105
7106 else
7107
7108 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7109 if test "x$LINE" != x ; then
7110 eval "DEFAULT_$LINE"
7111 else
7112 no_cache=1
7113 fi
7114
7115 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7116
7117 fi
7118
7119
7120 eval "$ac_cv_use_progressdlg"
7121 if test "$no_cache" != 1; then
7122 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7123 fi
7124
7125 if test "$wxUSE_PROGRESSDLG" = yes; then
7126 echo "$ac_t""yes" 1>&6
7127 else
7128 echo "$ac_t""no" 1>&6
7129 fi
7130
7131
7132 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7133 echo "configure:7134: checking for --enable-wizarddlg" >&5
7134 no_cache=0
7135 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7136 if test "${enable_wizarddlg+set}" = set; then
7137 enableval="$enable_wizarddlg"
7138
7139 if test "$enableval" = yes; then
7140 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7141 else
7142 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7143 fi
7144
7145 else
7146
7147 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7148 if test "x$LINE" != x ; then
7149 eval "DEFAULT_$LINE"
7150 else
7151 no_cache=1
7152 fi
7153
7154 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7155
7156 fi
7157
7158
7159 eval "$ac_cv_use_wizarddlg"
7160 if test "$no_cache" != 1; then
7161 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7162 fi
7163
7164 if test "$wxUSE_WIZARDDLG" = yes; then
7165 echo "$ac_t""yes" 1>&6
7166 else
7167 echo "$ac_t""no" 1>&6
7168 fi
7169
7170
7171
7172
7173 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7174 echo "configure:7175: checking for --enable-menus" >&5
7175 no_cache=0
7176 # Check whether --enable-menus or --disable-menus was given.
7177 if test "${enable_menus+set}" = set; then
7178 enableval="$enable_menus"
7179
7180 if test "$enableval" = yes; then
7181 ac_cv_use_menus='wxUSE_MENUS=yes'
7182 else
7183 ac_cv_use_menus='wxUSE_MENUS=no'
7184 fi
7185
7186 else
7187
7188 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7189 if test "x$LINE" != x ; then
7190 eval "DEFAULT_$LINE"
7191 else
7192 no_cache=1
7193 fi
7194
7195 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7196
7197 fi
7198
7199
7200 eval "$ac_cv_use_menus"
7201 if test "$no_cache" != 1; then
7202 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7203 fi
7204
7205 if test "$wxUSE_MENUS" = yes; then
7206 echo "$ac_t""yes" 1>&6
7207 else
7208 echo "$ac_t""no" 1>&6
7209 fi
7210
7211
7212 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7213 echo "configure:7214: checking for --enable-miniframe" >&5
7214 no_cache=0
7215 # Check whether --enable-miniframe or --disable-miniframe was given.
7216 if test "${enable_miniframe+set}" = set; then
7217 enableval="$enable_miniframe"
7218
7219 if test "$enableval" = yes; then
7220 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7221 else
7222 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7223 fi
7224
7225 else
7226
7227 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7228 if test "x$LINE" != x ; then
7229 eval "DEFAULT_$LINE"
7230 else
7231 no_cache=1
7232 fi
7233
7234 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7235
7236 fi
7237
7238
7239 eval "$ac_cv_use_miniframe"
7240 if test "$no_cache" != 1; then
7241 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7242 fi
7243
7244 if test "$wxUSE_MINIFRAME" = yes; then
7245 echo "$ac_t""yes" 1>&6
7246 else
7247 echo "$ac_t""no" 1>&6
7248 fi
7249
7250
7251 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7252 echo "configure:7253: checking for --enable-tooltips" >&5
7253 no_cache=0
7254 # Check whether --enable-tooltips or --disable-tooltips was given.
7255 if test "${enable_tooltips+set}" = set; then
7256 enableval="$enable_tooltips"
7257
7258 if test "$enableval" = yes; then
7259 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7260 else
7261 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7262 fi
7263
7264 else
7265
7266 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7267 if test "x$LINE" != x ; then
7268 eval "DEFAULT_$LINE"
7269 else
7270 no_cache=1
7271 fi
7272
7273 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7274
7275 fi
7276
7277
7278 eval "$ac_cv_use_tooltips"
7279 if test "$no_cache" != 1; then
7280 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7281 fi
7282
7283 if test "$wxUSE_TOOLTIPS" = yes; then
7284 echo "$ac_t""yes" 1>&6
7285 else
7286 echo "$ac_t""no" 1>&6
7287 fi
7288
7289
7290 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7291 echo "configure:7292: checking for --enable-splines" >&5
7292 no_cache=0
7293 # Check whether --enable-splines or --disable-splines was given.
7294 if test "${enable_splines+set}" = set; then
7295 enableval="$enable_splines"
7296
7297 if test "$enableval" = yes; then
7298 ac_cv_use_splines='wxUSE_SPLINES=yes'
7299 else
7300 ac_cv_use_splines='wxUSE_SPLINES=no'
7301 fi
7302
7303 else
7304
7305 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7306 if test "x$LINE" != x ; then
7307 eval "DEFAULT_$LINE"
7308 else
7309 no_cache=1
7310 fi
7311
7312 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7313
7314 fi
7315
7316
7317 eval "$ac_cv_use_splines"
7318 if test "$no_cache" != 1; then
7319 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7320 fi
7321
7322 if test "$wxUSE_SPLINES" = yes; then
7323 echo "$ac_t""yes" 1>&6
7324 else
7325 echo "$ac_t""no" 1>&6
7326 fi
7327
7328
7329 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7330 echo "configure:7331: checking for --enable-validators" >&5
7331 no_cache=0
7332 # Check whether --enable-validators or --disable-validators was given.
7333 if test "${enable_validators+set}" = set; then
7334 enableval="$enable_validators"
7335
7336 if test "$enableval" = yes; then
7337 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7338 else
7339 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7340 fi
7341
7342 else
7343
7344 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7345 if test "x$LINE" != x ; then
7346 eval "DEFAULT_$LINE"
7347 else
7348 no_cache=1
7349 fi
7350
7351 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7352
7353 fi
7354
7355
7356 eval "$ac_cv_use_validators"
7357 if test "$no_cache" != 1; then
7358 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7359 fi
7360
7361 if test "$wxUSE_VALIDATORS" = yes; then
7362 echo "$ac_t""yes" 1>&6
7363 else
7364 echo "$ac_t""no" 1>&6
7365 fi
7366
7367
7368 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7369 echo "configure:7370: checking for --enable-busyinfo" >&5
7370 no_cache=0
7371 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7372 if test "${enable_busyinfo+set}" = set; then
7373 enableval="$enable_busyinfo"
7374
7375 if test "$enableval" = yes; then
7376 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7377 else
7378 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7379 fi
7380
7381 else
7382
7383 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7384 if test "x$LINE" != x ; then
7385 eval "DEFAULT_$LINE"
7386 else
7387 no_cache=1
7388 fi
7389
7390 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7391
7392 fi
7393
7394
7395 eval "$ac_cv_use_busyinfo"
7396 if test "$no_cache" != 1; then
7397 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7398 fi
7399
7400 if test "$wxUSE_BUSYINFO" = yes; then
7401 echo "$ac_t""yes" 1>&6
7402 else
7403 echo "$ac_t""no" 1>&6
7404 fi
7405
7406
7407 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7408 echo "configure:7409: checking for --enable-joystick" >&5
7409 no_cache=0
7410 # Check whether --enable-joystick or --disable-joystick was given.
7411 if test "${enable_joystick+set}" = set; then
7412 enableval="$enable_joystick"
7413
7414 if test "$enableval" = yes; then
7415 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7416 else
7417 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7418 fi
7419
7420 else
7421
7422 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7423 if test "x$LINE" != x ; then
7424 eval "DEFAULT_$LINE"
7425 else
7426 no_cache=1
7427 fi
7428
7429 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
7430
7431 fi
7432
7433
7434 eval "$ac_cv_use_joystick"
7435 if test "$no_cache" != 1; then
7436 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7437 fi
7438
7439 if test "$wxUSE_JOYSTICK" = yes; then
7440 echo "$ac_t""yes" 1>&6
7441 else
7442 echo "$ac_t""no" 1>&6
7443 fi
7444
7445
7446 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
7447 echo "configure:7448: checking for --enable-metafile" >&5
7448 no_cache=0
7449 # Check whether --enable-metafile or --disable-metafile was given.
7450 if test "${enable_metafile+set}" = set; then
7451 enableval="$enable_metafile"
7452
7453 if test "$enableval" = yes; then
7454 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7455 else
7456 ac_cv_use_metafile='wxUSE_METAFILE=no'
7457 fi
7458
7459 else
7460
7461 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7462 if test "x$LINE" != x ; then
7463 eval "DEFAULT_$LINE"
7464 else
7465 no_cache=1
7466 fi
7467
7468 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7469
7470 fi
7471
7472
7473 eval "$ac_cv_use_metafile"
7474 if test "$no_cache" != 1; then
7475 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7476 fi
7477
7478 if test "$wxUSE_METAFILE" = yes; then
7479 echo "$ac_t""yes" 1>&6
7480 else
7481 echo "$ac_t""no" 1>&6
7482 fi
7483
7484
7485 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
7486 echo "configure:7487: checking for --enable-dragimage" >&5
7487 no_cache=0
7488 # Check whether --enable-dragimage or --disable-dragimage was given.
7489 if test "${enable_dragimage+set}" = set; then
7490 enableval="$enable_dragimage"
7491
7492 if test "$enableval" = yes; then
7493 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7494 else
7495 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7496 fi
7497
7498 else
7499
7500 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7501 if test "x$LINE" != x ; then
7502 eval "DEFAULT_$LINE"
7503 else
7504 no_cache=1
7505 fi
7506
7507 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7508
7509 fi
7510
7511
7512 eval "$ac_cv_use_dragimage"
7513 if test "$no_cache" != 1; then
7514 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7515 fi
7516
7517 if test "$wxUSE_DRAGIMAGE" = yes; then
7518 echo "$ac_t""yes" 1>&6
7519 else
7520 echo "$ac_t""no" 1>&6
7521 fi
7522
7523
7524
7525
7526 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
7527 echo "configure:7528: checking for --enable-palette" >&5
7528 no_cache=0
7529 # Check whether --enable-palette or --disable-palette was given.
7530 if test "${enable_palette+set}" = set; then
7531 enableval="$enable_palette"
7532
7533 if test "$enableval" = yes; then
7534 ac_cv_use_palette='wxUSE_PALETTE=yes'
7535 else
7536 ac_cv_use_palette='wxUSE_PALETTE=no'
7537 fi
7538
7539 else
7540
7541 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
7542 if test "x$LINE" != x ; then
7543 eval "DEFAULT_$LINE"
7544 else
7545 no_cache=1
7546 fi
7547
7548 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
7549
7550 fi
7551
7552
7553 eval "$ac_cv_use_palette"
7554 if test "$no_cache" != 1; then
7555 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
7556 fi
7557
7558 if test "$wxUSE_PALETTE" = yes; then
7559 echo "$ac_t""yes" 1>&6
7560 else
7561 echo "$ac_t""no" 1>&6
7562 fi
7563
7564
7565 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
7566 echo "configure:7567: checking for --enable-image" >&5
7567 no_cache=0
7568 # Check whether --enable-image or --disable-image was given.
7569 if test "${enable_image+set}" = set; then
7570 enableval="$enable_image"
7571
7572 if test "$enableval" = yes; then
7573 ac_cv_use_image='wxUSE_IMAGE=yes'
7574 else
7575 ac_cv_use_image='wxUSE_IMAGE=no'
7576 fi
7577
7578 else
7579
7580 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7581 if test "x$LINE" != x ; then
7582 eval "DEFAULT_$LINE"
7583 else
7584 no_cache=1
7585 fi
7586
7587 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
7588
7589 fi
7590
7591
7592 eval "$ac_cv_use_image"
7593 if test "$no_cache" != 1; then
7594 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7595 fi
7596
7597 if test "$wxUSE_IMAGE" = yes; then
7598 echo "$ac_t""yes" 1>&6
7599 else
7600 echo "$ac_t""no" 1>&6
7601 fi
7602
7603
7604 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7605 echo "configure:7606: checking for --enable-gif" >&5
7606 no_cache=0
7607 # Check whether --enable-gif or --disable-gif was given.
7608 if test "${enable_gif+set}" = set; then
7609 enableval="$enable_gif"
7610
7611 if test "$enableval" = yes; then
7612 ac_cv_use_gif='wxUSE_GIF=yes'
7613 else
7614 ac_cv_use_gif='wxUSE_GIF=no'
7615 fi
7616
7617 else
7618
7619 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7620 if test "x$LINE" != x ; then
7621 eval "DEFAULT_$LINE"
7622 else
7623 no_cache=1
7624 fi
7625
7626 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
7627
7628 fi
7629
7630
7631 eval "$ac_cv_use_gif"
7632 if test "$no_cache" != 1; then
7633 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7634 fi
7635
7636 if test "$wxUSE_GIF" = yes; then
7637 echo "$ac_t""yes" 1>&6
7638 else
7639 echo "$ac_t""no" 1>&6
7640 fi
7641
7642
7643 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7644 echo "configure:7645: checking for --enable-pcx" >&5
7645 no_cache=0
7646 # Check whether --enable-pcx or --disable-pcx was given.
7647 if test "${enable_pcx+set}" = set; then
7648 enableval="$enable_pcx"
7649
7650 if test "$enableval" = yes; then
7651 ac_cv_use_pcx='wxUSE_PCX=yes'
7652 else
7653 ac_cv_use_pcx='wxUSE_PCX=no'
7654 fi
7655
7656 else
7657
7658 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7659 if test "x$LINE" != x ; then
7660 eval "DEFAULT_$LINE"
7661 else
7662 no_cache=1
7663 fi
7664
7665 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
7666
7667 fi
7668
7669
7670 eval "$ac_cv_use_pcx"
7671 if test "$no_cache" != 1; then
7672 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7673 fi
7674
7675 if test "$wxUSE_PCX" = yes; then
7676 echo "$ac_t""yes" 1>&6
7677 else
7678 echo "$ac_t""no" 1>&6
7679 fi
7680
7681
7682 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7683 echo "configure:7684: checking for --enable-pnm" >&5
7684 no_cache=0
7685 # Check whether --enable-pnm or --disable-pnm was given.
7686 if test "${enable_pnm+set}" = set; then
7687 enableval="$enable_pnm"
7688
7689 if test "$enableval" = yes; then
7690 ac_cv_use_pnm='wxUSE_PNM=yes'
7691 else
7692 ac_cv_use_pnm='wxUSE_PNM=no'
7693 fi
7694
7695 else
7696
7697 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7698 if test "x$LINE" != x ; then
7699 eval "DEFAULT_$LINE"
7700 else
7701 no_cache=1
7702 fi
7703
7704 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
7705
7706 fi
7707
7708
7709 eval "$ac_cv_use_pnm"
7710 if test "$no_cache" != 1; then
7711 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7712 fi
7713
7714 if test "$wxUSE_PNM" = yes; then
7715 echo "$ac_t""yes" 1>&6
7716 else
7717 echo "$ac_t""no" 1>&6
7718 fi
7719
7720
7721 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7722 echo "configure:7723: checking for --enable-pnm" >&5
7723 no_cache=0
7724 # Check whether --enable-pnm or --disable-pnm was given.
7725 if test "${enable_pnm+set}" = set; then
7726 enableval="$enable_pnm"
7727
7728 if test "$enableval" = yes; then
7729 ac_cv_use_pnm='wxUSE_XPM=yes'
7730 else
7731 ac_cv_use_pnm='wxUSE_XPM=no'
7732 fi
7733
7734 else
7735
7736 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7737 if test "x$LINE" != x ; then
7738 eval "DEFAULT_$LINE"
7739 else
7740 no_cache=1
7741 fi
7742
7743 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
7744
7745 fi
7746
7747
7748 eval "$ac_cv_use_pnm"
7749 if test "$no_cache" != 1; then
7750 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7751 fi
7752
7753 if test "$wxUSE_XPM" = yes; then
7754 echo "$ac_t""yes" 1>&6
7755 else
7756 echo "$ac_t""no" 1>&6
7757 fi
7758
7759
7760 fi
7761
7762
7763 echo "saving argument cache $wx_arg_cache_file"
7764 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
7765
7766
7767
7768 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7769 echo "configure:7770: checking for toolkit" >&5
7770
7771 if test "$wxUSE_GUI" = "yes"; then
7772
7773 if test "$USE_BEOS" = 1; then
7774 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7775 fi
7776
7777 if test "$TOOLKIT_GIVEN" = 1; then
7778 for toolkit in `echo $ALL_TOOLKITS`; do
7779 var=wxUSE_$toolkit
7780 eval "value=\$${var}"
7781 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7782 done
7783 else
7784 for toolkit in `echo $ALL_TOOLKITS`; do
7785 if test "$has_toolkit_in_cache" != 1; then
7786 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7787 else
7788 var=DEFAULT_wxUSE_$toolkit
7789 fi
7790 eval "wxUSE_$toolkit=\$${var}"
7791 done
7792 fi
7793
7794 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
7795 + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} \
7796 + ${wxUSE_MGL:-0}`
7797
7798 case "${host}" in
7799 *-pc-os2_emx )
7800 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7801 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7802 LEX_STEM="lexyy"
7803 ;;
7804 *)
7805 PATH_IFS=':'
7806 LEX_STEM="lex.yy"
7807 ;;
7808 esac
7809
7810 case "$NUM_TOOLKITS" in
7811 1)
7812 ;;
7813 0)
7814 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7815 ;;
7816 *)
7817 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7818 esac
7819
7820 for toolkit in `echo $ALL_TOOLKITS`; do
7821 var=wxUSE_$toolkit
7822 eval "value=\$${var}"
7823 if test "x$value" != x; then
7824 cache_var=CACHE_$toolkit
7825 eval "cache=\$${cache_var}"
7826 if test "$cache" = 1; then
7827 echo "$var=$value" >> ${wx_arg_cache_file}
7828 fi
7829 if test "$value" = 1; then
7830 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7831 echo "$ac_t""$toolkit_echo" 1>&6
7832 fi
7833 fi
7834 done
7835 else
7836 PATH_IFS=':'
7837 echo "$ac_t""base ($host_alias hosted) only" 1>&6
7838 fi
7839
7840
7841 cat > confcache <<\EOF
7842 # This file is a shell script that caches the results of configure
7843 # tests run on this system so they can be shared between configure
7844 # scripts and configure runs. It is not useful on other systems.
7845 # If it contains results you don't want to keep, you may remove or edit it.
7846 #
7847 # By default, configure uses ./config.cache as the cache file,
7848 # creating it if it does not exist already. You can give configure
7849 # the --cache-file=FILE option to use a different cache file; that is
7850 # what configure does when it calls configure scripts in
7851 # subdirectories, so they share the cache.
7852 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7853 # config.status only pays attention to the cache file if you give it the
7854 # --recheck option to rerun configure.
7855 #
7856 EOF
7857 # The following way of writing the cache mishandles newlines in values,
7858 # but we know of no workaround that is simple, portable, and efficient.
7859 # So, don't put newlines in cache variables' values.
7860 # Ultrix sh set writes to stderr and can't be redirected directly,
7861 # and sets the high bit in the cache file unless we assign to the vars.
7862 (set) 2>&1 |
7863 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7864 *ac_space=\ *)
7865 # `set' does not quote correctly, so add quotes (double-quote substitution
7866 # turns \\\\ into \\, and sed turns \\ into \).
7867 sed -n \
7868 -e "s/'/'\\\\''/g" \
7869 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7870 ;;
7871 *)
7872 # `set' quotes correctly as required by POSIX, so do not add quotes.
7873 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7874 ;;
7875 esac >> confcache
7876 if cmp -s $cache_file confcache; then
7877 :
7878 else
7879 if test -w $cache_file; then
7880 echo "updating cache $cache_file"
7881 cat confcache > $cache_file
7882 else
7883 echo "not updating unwritable cache $cache_file"
7884 fi
7885 fi
7886 rm -f confcache
7887
7888
7889 if test "$build" != "$host" ; then
7890 if test "$USE_WIN32" = 1 ; then
7891 CC=$host_alias-gcc
7892 CXX=$host_alias-c++
7893 AR=$host_alias-ar
7894 RANLIB=$host_alias-ranlib
7895 DLLTOOL=$host_alias-dlltool
7896 RESCOMP=$host_alias-windres
7897 LD=$host_alias-ld
7898 NM=$host_alias-nm
7899 STRIP=$host_alias-strip
7900 else
7901 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
7902 fi
7903 fi
7904
7905 # Extract the first word of "gcc", so it can be a program name with args.
7906 set dummy gcc; ac_word=$2
7907 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7908 echo "configure:7909: checking for $ac_word" >&5
7909 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7910 echo $ac_n "(cached) $ac_c" 1>&6
7911 else
7912 if test -n "$CC"; then
7913 ac_cv_prog_CC="$CC" # Let the user override the test.
7914 else
7915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7916 ac_dummy="$PATH"
7917 for ac_dir in $ac_dummy; do
7918 test -z "$ac_dir" && ac_dir=.
7919 if test -f $ac_dir/$ac_word; then
7920 ac_cv_prog_CC="gcc"
7921 break
7922 fi
7923 done
7924 IFS="$ac_save_ifs"
7925 fi
7926 fi
7927 CC="$ac_cv_prog_CC"
7928 if test -n "$CC"; then
7929 echo "$ac_t""$CC" 1>&6
7930 else
7931 echo "$ac_t""no" 1>&6
7932 fi
7933
7934 if test -z "$CC"; then
7935 # Extract the first word of "cc", so it can be a program name with args.
7936 set dummy cc; ac_word=$2
7937 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7938 echo "configure:7939: checking for $ac_word" >&5
7939 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7940 echo $ac_n "(cached) $ac_c" 1>&6
7941 else
7942 if test -n "$CC"; then
7943 ac_cv_prog_CC="$CC" # Let the user override the test.
7944 else
7945 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7946 ac_prog_rejected=no
7947 ac_dummy="$PATH"
7948 for ac_dir in $ac_dummy; do
7949 test -z "$ac_dir" && ac_dir=.
7950 if test -f $ac_dir/$ac_word; then
7951 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7952 ac_prog_rejected=yes
7953 continue
7954 fi
7955 ac_cv_prog_CC="cc"
7956 break
7957 fi
7958 done
7959 IFS="$ac_save_ifs"
7960 if test $ac_prog_rejected = yes; then
7961 # We found a bogon in the path, so make sure we never use it.
7962 set dummy $ac_cv_prog_CC
7963 shift
7964 if test $# -gt 0; then
7965 # We chose a different compiler from the bogus one.
7966 # However, it has the same basename, so the bogon will be chosen
7967 # first if we set CC to just the basename; use the full file name.
7968 shift
7969 set dummy "$ac_dir/$ac_word" "$@"
7970 shift
7971 ac_cv_prog_CC="$@"
7972 fi
7973 fi
7974 fi
7975 fi
7976 CC="$ac_cv_prog_CC"
7977 if test -n "$CC"; then
7978 echo "$ac_t""$CC" 1>&6
7979 else
7980 echo "$ac_t""no" 1>&6
7981 fi
7982
7983 if test -z "$CC"; then
7984 case "`uname -s`" in
7985 *win32* | *WIN32*)
7986 # Extract the first word of "cl", so it can be a program name with args.
7987 set dummy cl; ac_word=$2
7988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7989 echo "configure:7990: checking for $ac_word" >&5
7990 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7991 echo $ac_n "(cached) $ac_c" 1>&6
7992 else
7993 if test -n "$CC"; then
7994 ac_cv_prog_CC="$CC" # Let the user override the test.
7995 else
7996 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7997 ac_dummy="$PATH"
7998 for ac_dir in $ac_dummy; do
7999 test -z "$ac_dir" && ac_dir=.
8000 if test -f $ac_dir/$ac_word; then
8001 ac_cv_prog_CC="cl"
8002 break
8003 fi
8004 done
8005 IFS="$ac_save_ifs"
8006 fi
8007 fi
8008 CC="$ac_cv_prog_CC"
8009 if test -n "$CC"; then
8010 echo "$ac_t""$CC" 1>&6
8011 else
8012 echo "$ac_t""no" 1>&6
8013 fi
8014 ;;
8015 esac
8016 fi
8017 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8018 fi
8019
8020 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8021 echo "configure:8022: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8022
8023 ac_ext=c
8024 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8025 ac_cpp='$CPP $CPPFLAGS'
8026 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8027 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8028 cross_compiling=$ac_cv_prog_cc_cross
8029
8030 cat > conftest.$ac_ext << EOF
8031
8032 #line 8033 "configure"
8033 #include "confdefs.h"
8034
8035 main(){return(0);}
8036 EOF
8037 if { (eval echo configure:8038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8038 ac_cv_prog_cc_works=yes
8039 # If we can't run a trivial program, we are probably using a cross compiler.
8040 if (./conftest; exit) 2>/dev/null; then
8041 ac_cv_prog_cc_cross=no
8042 else
8043 ac_cv_prog_cc_cross=yes
8044 fi
8045 else
8046 echo "configure: failed program was:" >&5
8047 cat conftest.$ac_ext >&5
8048 ac_cv_prog_cc_works=no
8049 fi
8050 rm -fr conftest*
8051 ac_ext=c
8052 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8053 ac_cpp='$CPP $CPPFLAGS'
8054 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8055 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8056 cross_compiling=$ac_cv_prog_cc_cross
8057
8058 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8059 if test $ac_cv_prog_cc_works = no; then
8060 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8061 fi
8062 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8063 echo "configure:8064: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8064 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8065 cross_compiling=$ac_cv_prog_cc_cross
8066
8067 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8068 echo "configure:8069: checking whether we are using GNU C" >&5
8069 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8070 echo $ac_n "(cached) $ac_c" 1>&6
8071 else
8072 cat > conftest.c <<EOF
8073 #ifdef __GNUC__
8074 yes;
8075 #endif
8076 EOF
8077 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8078 ac_cv_prog_gcc=yes
8079 else
8080 ac_cv_prog_gcc=no
8081 fi
8082 fi
8083
8084 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8085
8086 if test $ac_cv_prog_gcc = yes; then
8087 GCC=yes
8088 else
8089 GCC=
8090 fi
8091
8092 ac_test_CFLAGS="${CFLAGS+set}"
8093 ac_save_CFLAGS="$CFLAGS"
8094 CFLAGS=
8095 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8096 echo "configure:8097: checking whether ${CC-cc} accepts -g" >&5
8097 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8098 echo $ac_n "(cached) $ac_c" 1>&6
8099 else
8100 echo 'void f(){}' > conftest.c
8101 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8102 ac_cv_prog_cc_g=yes
8103 else
8104 ac_cv_prog_cc_g=no
8105 fi
8106 rm -f conftest*
8107
8108 fi
8109
8110 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8111 if test "$ac_test_CFLAGS" = set; then
8112 CFLAGS="$ac_save_CFLAGS"
8113 elif test $ac_cv_prog_cc_g = yes; then
8114 if test "$GCC" = yes; then
8115 CFLAGS="-g -O2"
8116 else
8117 CFLAGS="-g"
8118 fi
8119 else
8120 if test "$GCC" = yes; then
8121 CFLAGS="-O2"
8122 else
8123 CFLAGS=
8124 fi
8125 fi
8126
8127
8128 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8129
8130 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8131 echo "configure:8132: checking how to run the C preprocessor" >&5
8132 # On Suns, sometimes $CPP names a directory.
8133 if test -n "$CPP" && test -d "$CPP"; then
8134 CPP=
8135 fi
8136 if test -z "$CPP"; then
8137 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8138 echo $ac_n "(cached) $ac_c" 1>&6
8139 else
8140 # This must be in double quotes, not single quotes, because CPP may get
8141 # substituted into the Makefile and "${CC-cc}" will confuse make.
8142 CPP="${CC-cc} -E"
8143 # On the NeXT, cc -E runs the code through the compiler's parser,
8144 # not just through cpp.
8145 cat > conftest.$ac_ext <<EOF
8146 #line 8147 "configure"
8147 #include "confdefs.h"
8148 #include <assert.h>
8149 Syntax Error
8150 EOF
8151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8152 { (eval echo configure:8153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8153 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8154 if test -z "$ac_err"; then
8155 :
8156 else
8157 echo "$ac_err" >&5
8158 echo "configure: failed program was:" >&5
8159 cat conftest.$ac_ext >&5
8160 rm -rf conftest*
8161 CPP="${CC-cc} -E -traditional-cpp"
8162 cat > conftest.$ac_ext <<EOF
8163 #line 8164 "configure"
8164 #include "confdefs.h"
8165 #include <assert.h>
8166 Syntax Error
8167 EOF
8168 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8169 { (eval echo configure:8170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8170 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8171 if test -z "$ac_err"; then
8172 :
8173 else
8174 echo "$ac_err" >&5
8175 echo "configure: failed program was:" >&5
8176 cat conftest.$ac_ext >&5
8177 rm -rf conftest*
8178 CPP="${CC-cc} -nologo -E"
8179 cat > conftest.$ac_ext <<EOF
8180 #line 8181 "configure"
8181 #include "confdefs.h"
8182 #include <assert.h>
8183 Syntax Error
8184 EOF
8185 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8186 { (eval echo configure:8187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8187 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8188 if test -z "$ac_err"; then
8189 :
8190 else
8191 echo "$ac_err" >&5
8192 echo "configure: failed program was:" >&5
8193 cat conftest.$ac_ext >&5
8194 rm -rf conftest*
8195 CPP=/lib/cpp
8196 fi
8197 rm -f conftest*
8198 fi
8199 rm -f conftest*
8200 fi
8201 rm -f conftest*
8202 ac_cv_prog_CPP="$CPP"
8203 fi
8204 CPP="$ac_cv_prog_CPP"
8205 else
8206 ac_cv_prog_CPP="$CPP"
8207 fi
8208 echo "$ac_t""$CPP" 1>&6
8209
8210 if test $ac_cv_prog_gcc = yes; then
8211 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8212 echo "configure:8213: checking whether ${CC-cc} needs -traditional" >&5
8213 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8214 echo $ac_n "(cached) $ac_c" 1>&6
8215 else
8216 ac_pattern="Autoconf.*'x'"
8217 cat > conftest.$ac_ext <<EOF
8218 #line 8219 "configure"
8219 #include "confdefs.h"
8220 #include <sgtty.h>
8221 Autoconf TIOCGETP
8222 EOF
8223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8224 egrep "$ac_pattern" >/dev/null 2>&1; then
8225 rm -rf conftest*
8226 ac_cv_prog_gcc_traditional=yes
8227 else
8228 rm -rf conftest*
8229 ac_cv_prog_gcc_traditional=no
8230 fi
8231 rm -f conftest*
8232
8233
8234 if test $ac_cv_prog_gcc_traditional = no; then
8235 cat > conftest.$ac_ext <<EOF
8236 #line 8237 "configure"
8237 #include "confdefs.h"
8238 #include <termio.h>
8239 Autoconf TCGETA
8240 EOF
8241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8242 egrep "$ac_pattern" >/dev/null 2>&1; then
8243 rm -rf conftest*
8244 ac_cv_prog_gcc_traditional=yes
8245 fi
8246 rm -f conftest*
8247
8248 fi
8249 fi
8250
8251 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8252 if test $ac_cv_prog_gcc_traditional = yes; then
8253 CC="$CC -traditional"
8254 fi
8255 fi
8256
8257
8258
8259 ac_ext=C
8260 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8261 ac_cpp='$CXXCPP $CPPFLAGS'
8262 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8263 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8264 cross_compiling=$ac_cv_prog_cxx_cross
8265
8266
8267 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8268 do
8269 # Extract the first word of "$ac_prog", so it can be a program name with args.
8270 set dummy $ac_prog; ac_word=$2
8271 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8272 echo "configure:8273: checking for $ac_word" >&5
8273 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8274 echo $ac_n "(cached) $ac_c" 1>&6
8275 else
8276 if test -n "$CXX"; then
8277 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8278 else
8279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8280 ac_dummy="$PATH"
8281 for ac_dir in $ac_dummy; do
8282 test -z "$ac_dir" && ac_dir=.
8283 if test -f $ac_dir/$ac_word; then
8284 ac_cv_prog_CXX="$ac_prog"
8285 break
8286 fi
8287 done
8288 IFS="$ac_save_ifs"
8289 fi
8290 fi
8291 CXX="$ac_cv_prog_CXX"
8292 if test -n "$CXX"; then
8293 echo "$ac_t""$CXX" 1>&6
8294 else
8295 echo "$ac_t""no" 1>&6
8296 fi
8297
8298 test -n "$CXX" && break
8299 done
8300 test -n "$CXX" || CXX="gcc"
8301
8302
8303 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8304 echo "configure:8305: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8305
8306 ac_ext=C
8307 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8308 ac_cpp='$CXXCPP $CPPFLAGS'
8309 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8310 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8311 cross_compiling=$ac_cv_prog_cxx_cross
8312
8313 cat > conftest.$ac_ext << EOF
8314
8315 #line 8316 "configure"
8316 #include "confdefs.h"
8317
8318 int main(){return(0);}
8319 EOF
8320 if { (eval echo configure:8321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8321 ac_cv_prog_cxx_works=yes
8322 # If we can't run a trivial program, we are probably using a cross compiler.
8323 if (./conftest; exit) 2>/dev/null; then
8324 ac_cv_prog_cxx_cross=no
8325 else
8326 ac_cv_prog_cxx_cross=yes
8327 fi
8328 else
8329 echo "configure: failed program was:" >&5
8330 cat conftest.$ac_ext >&5
8331 ac_cv_prog_cxx_works=no
8332 fi
8333 rm -fr conftest*
8334 ac_ext=C
8335 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8336 ac_cpp='$CXXCPP $CPPFLAGS'
8337 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8338 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8339 cross_compiling=$ac_cv_prog_cxx_cross
8340
8341 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8342 if test $ac_cv_prog_cxx_works = no; then
8343 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8344 fi
8345 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8346 echo "configure:8347: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
8347 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8348 cross_compiling=$ac_cv_prog_cxx_cross
8349
8350 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
8351 echo "configure:8352: checking whether we are using GNU C++" >&5
8352 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8353 echo $ac_n "(cached) $ac_c" 1>&6
8354 else
8355 cat > conftest.C <<EOF
8356 #ifdef __GNUC__
8357 yes;
8358 #endif
8359 EOF
8360 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8361 ac_cv_prog_gxx=yes
8362 else
8363 ac_cv_prog_gxx=no
8364 fi
8365 fi
8366
8367 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
8368
8369 if test $ac_cv_prog_gxx = yes; then
8370 GXX=yes
8371 else
8372 GXX=
8373 fi
8374
8375 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8376 ac_save_CXXFLAGS="$CXXFLAGS"
8377 CXXFLAGS=
8378 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
8379 echo "configure:8380: checking whether ${CXX-g++} accepts -g" >&5
8380 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8381 echo $ac_n "(cached) $ac_c" 1>&6
8382 else
8383 echo 'void f(){}' > conftest.cc
8384 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
8385 ac_cv_prog_cxx_g=yes
8386 else
8387 ac_cv_prog_cxx_g=no
8388 fi
8389 rm -f conftest*
8390
8391 fi
8392
8393 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
8394 if test "$ac_test_CXXFLAGS" = set; then
8395 CXXFLAGS="$ac_save_CXXFLAGS"
8396 elif test $ac_cv_prog_cxx_g = yes; then
8397 if test "$GXX" = yes; then
8398 CXXFLAGS="-g -O2"
8399 else
8400 CXXFLAGS="-g"
8401 fi
8402 else
8403 if test "$GXX" = yes; then
8404 CXXFLAGS="-O2"
8405 else
8406 CXXFLAGS=
8407 fi
8408 fi
8409
8410
8411 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8412
8413 ac_ext=c
8414 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8415 ac_cpp='$CPP $CPPFLAGS'
8416 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8417 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8418 cross_compiling=$ac_cv_prog_cc_cross
8419
8420
8421 # Extract the first word of "ranlib", so it can be a program name with args.
8422 set dummy ranlib; ac_word=$2
8423 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8424 echo "configure:8425: checking for $ac_word" >&5
8425 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8426 echo $ac_n "(cached) $ac_c" 1>&6
8427 else
8428 if test -n "$RANLIB"; then
8429 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8430 else
8431 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8432 ac_dummy="$PATH"
8433 for ac_dir in $ac_dummy; do
8434 test -z "$ac_dir" && ac_dir=.
8435 if test -f $ac_dir/$ac_word; then
8436 ac_cv_prog_RANLIB="ranlib"
8437 break
8438 fi
8439 done
8440 IFS="$ac_save_ifs"
8441 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8442 fi
8443 fi
8444 RANLIB="$ac_cv_prog_RANLIB"
8445 if test -n "$RANLIB"; then
8446 echo "$ac_t""$RANLIB" 1>&6
8447 else
8448 echo "$ac_t""no" 1>&6
8449 fi
8450
8451
8452 # Extract the first word of "ar", so it can be a program name with args.
8453 set dummy ar; ac_word=$2
8454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8455 echo "configure:8456: checking for $ac_word" >&5
8456 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8457 echo $ac_n "(cached) $ac_c" 1>&6
8458 else
8459 if test -n "$AR"; then
8460 ac_cv_prog_AR="$AR" # Let the user override the test.
8461 else
8462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8463 ac_dummy="$PATH"
8464 for ac_dir in $ac_dummy; do
8465 test -z "$ac_dir" && ac_dir=.
8466 if test -f $ac_dir/$ac_word; then
8467 ac_cv_prog_AR="ar"
8468 break
8469 fi
8470 done
8471 IFS="$ac_save_ifs"
8472 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8473 fi
8474 fi
8475 AR="$ac_cv_prog_AR"
8476 if test -n "$AR"; then
8477 echo "$ac_t""$AR" 1>&6
8478 else
8479 echo "$ac_t""no" 1>&6
8480 fi
8481
8482
8483 # Find a good install program. We prefer a C program (faster),
8484 # so one script is as good as another. But avoid the broken or
8485 # incompatible versions:
8486 # SysV /etc/install, /usr/sbin/install
8487 # SunOS /usr/etc/install
8488 # IRIX /sbin/install
8489 # AIX /bin/install
8490 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8491 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8492 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8493 # ./install, which can be erroneously created by make from ./install.sh.
8494 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8495 echo "configure:8496: checking for a BSD compatible install" >&5
8496 if test -z "$INSTALL"; then
8497 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8498 echo $ac_n "(cached) $ac_c" 1>&6
8499 else
8500 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8501 for ac_dir in $PATH; do
8502 # Account for people who put trailing slashes in PATH elements.
8503 case "$ac_dir/" in
8504 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8505 *)
8506 # OSF1 and SCO ODT 3.0 have their own names for install.
8507 # Don't use installbsd from OSF since it installs stuff as root
8508 # by default.
8509 for ac_prog in ginstall scoinst install; do
8510 if test -f $ac_dir/$ac_prog; then
8511 if test $ac_prog = install &&
8512 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8513 # AIX install. It has an incompatible calling convention.
8514 :
8515 else
8516 ac_cv_path_install="$ac_dir/$ac_prog -c"
8517 break 2
8518 fi
8519 fi
8520 done
8521 ;;
8522 esac
8523 done
8524 IFS="$ac_save_IFS"
8525
8526 fi
8527 if test "${ac_cv_path_install+set}" = set; then
8528 INSTALL="$ac_cv_path_install"
8529 else
8530 # As a last resort, use the slow shell script. We don't cache a
8531 # path for INSTALL within a source directory, because that will
8532 # break other packages using the cache if that directory is
8533 # removed, or if the path is relative.
8534 INSTALL="$ac_install_sh"
8535 fi
8536 fi
8537 echo "$ac_t""$INSTALL" 1>&6
8538
8539 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8540 # It thinks the first close brace ends the variable substitution.
8541 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8542
8543 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8544
8545 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8546
8547
8548 # Extract the first word of "strip", so it can be a program name with args.
8549 set dummy strip; ac_word=$2
8550 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8551 echo "configure:8552: checking for $ac_word" >&5
8552 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8553 echo $ac_n "(cached) $ac_c" 1>&6
8554 else
8555 if test -n "$STRIP"; then
8556 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8557 else
8558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8559 ac_dummy="$PATH"
8560 for ac_dir in $ac_dummy; do
8561 test -z "$ac_dir" && ac_dir=.
8562 if test -f $ac_dir/$ac_word; then
8563 ac_cv_prog_STRIP="strip"
8564 break
8565 fi
8566 done
8567 IFS="$ac_save_ifs"
8568 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8569 fi
8570 fi
8571 STRIP="$ac_cv_prog_STRIP"
8572 if test -n "$STRIP"; then
8573 echo "$ac_t""$STRIP" 1>&6
8574 else
8575 echo "$ac_t""no" 1>&6
8576 fi
8577
8578
8579 echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8580 echo "configure:8581: checking make for VPATH support" >&5
8581 cat - << EOF > confMake
8582 check : file
8583 cp \$? \$@
8584 cp \$? final_file
8585 EOF
8586
8587 if test ! -d sub ; then
8588 mkdir sub
8589 fi
8590 echo dummy > sub/file
8591 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
8592 RESULT=$?
8593 rm -f sub/file check final_file confMake
8594 rmdir sub
8595 if test "$RESULT" = 0; then
8596 echo "$ac_t""yes" 1>&6
8597 else
8598 echo "$ac_t""no" 1>&6
8599 { echo "configure: error:
8600 You need a make-utility that is able to use the variable
8601 VPATH correctly.
8602 If your version of make does not support VPATH correctly,
8603 please install GNU-make (possibly as gmake), and start
8604 configure with the following command:
8605 export MAKE=gmake; ./configure for sh-type shells
8606 setenv MAKE gmake; ./configure for csh-type shells
8607 Also please do remember to use gmake in this case every time
8608 you are trying to compile.
8609 " 1>&2; exit 1; }
8610 fi
8611
8612 for ac_prog in 'bison -y' byacc
8613 do
8614 # Extract the first word of "$ac_prog", so it can be a program name with args.
8615 set dummy $ac_prog; ac_word=$2
8616 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8617 echo "configure:8618: checking for $ac_word" >&5
8618 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8619 echo $ac_n "(cached) $ac_c" 1>&6
8620 else
8621 if test -n "$YACC"; then
8622 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8623 else
8624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8625 ac_dummy="$PATH"
8626 for ac_dir in $ac_dummy; do
8627 test -z "$ac_dir" && ac_dir=.
8628 if test -f $ac_dir/$ac_word; then
8629 ac_cv_prog_YACC="$ac_prog"
8630 break
8631 fi
8632 done
8633 IFS="$ac_save_ifs"
8634 fi
8635 fi
8636 YACC="$ac_cv_prog_YACC"
8637 if test -n "$YACC"; then
8638 echo "$ac_t""$YACC" 1>&6
8639 else
8640 echo "$ac_t""no" 1>&6
8641 fi
8642
8643 test -n "$YACC" && break
8644 done
8645 test -n "$YACC" || YACC="yacc"
8646
8647
8648 # Extract the first word of "flex", so it can be a program name with args.
8649 set dummy flex; ac_word=$2
8650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8651 echo "configure:8652: checking for $ac_word" >&5
8652 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8653 echo $ac_n "(cached) $ac_c" 1>&6
8654 else
8655 if test -n "$LEX"; then
8656 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8657 else
8658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8659 ac_dummy="$PATH"
8660 for ac_dir in $ac_dummy; do
8661 test -z "$ac_dir" && ac_dir=.
8662 if test -f $ac_dir/$ac_word; then
8663 ac_cv_prog_LEX="flex"
8664 break
8665 fi
8666 done
8667 IFS="$ac_save_ifs"
8668 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
8669 fi
8670 fi
8671 LEX="$ac_cv_prog_LEX"
8672 if test -n "$LEX"; then
8673 echo "$ac_t""$LEX" 1>&6
8674 else
8675 echo "$ac_t""no" 1>&6
8676 fi
8677
8678 if test -z "$LEXLIB"
8679 then
8680 case "$LEX" in
8681 flex*) ac_lib=fl ;;
8682 *) ac_lib=l ;;
8683 esac
8684 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8685 echo "configure:8686: checking for yywrap in -l$ac_lib" >&5
8686 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8688 echo $ac_n "(cached) $ac_c" 1>&6
8689 else
8690 ac_save_LIBS="$LIBS"
8691 LIBS="-l$ac_lib $LIBS"
8692 cat > conftest.$ac_ext <<EOF
8693 #line 8694 "configure"
8694 #include "confdefs.h"
8695 /* Override any gcc2 internal prototype to avoid an error. */
8696 /* We use char because int might match the return type of a gcc2
8697 builtin and then its argument prototype would still apply. */
8698 char yywrap();
8699
8700 int main() {
8701 yywrap()
8702 ; return 0; }
8703 EOF
8704 if { (eval echo configure:8705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8705 rm -rf conftest*
8706 eval "ac_cv_lib_$ac_lib_var=yes"
8707 else
8708 echo "configure: failed program was:" >&5
8709 cat conftest.$ac_ext >&5
8710 rm -rf conftest*
8711 eval "ac_cv_lib_$ac_lib_var=no"
8712 fi
8713 rm -f conftest*
8714 LIBS="$ac_save_LIBS"
8715
8716 fi
8717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8718 echo "$ac_t""yes" 1>&6
8719 LEXLIB="-l$ac_lib"
8720 else
8721 echo "$ac_t""no" 1>&6
8722 fi
8723
8724 fi
8725
8726
8727 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8728 echo "configure:8729: checking whether ln -s works" >&5
8729 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8730 echo $ac_n "(cached) $ac_c" 1>&6
8731 else
8732 rm -f conftestdata
8733 if ln -s X conftestdata 2>/dev/null
8734 then
8735 rm -f conftestdata
8736 ac_cv_prog_LN_S="ln -s"
8737 else
8738 ac_cv_prog_LN_S=ln
8739 fi
8740 fi
8741 LN_S="$ac_cv_prog_LN_S"
8742 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8743 echo "$ac_t""yes" 1>&6
8744 else
8745 echo "$ac_t""no" 1>&6
8746 fi
8747
8748
8749
8750 SEARCH_INCLUDE="\
8751 /usr/local/include \
8752 \
8753 /usr/Motif-1.2/include \
8754 /usr/Motif-2.1/include \
8755 \
8756 /usr/include/Motif1.2 \
8757 /opt/xpm/include/X11 \
8758 /opt/GBxpm/include/ \
8759 /opt/GBxpm/X11/include/ \
8760 \
8761 /usr/Motif1.2/include \
8762 /usr/dt/include \
8763 /usr/openwin/include \
8764 \
8765 /usr/include/Xm \
8766 \
8767 /usr/X11R6/include \
8768 /usr/X11R6.4/include \
8769 /usr/X11R5/include \
8770 /usr/X11R4/include \
8771 \
8772 /usr/include/X11R6 \
8773 /usr/include/X11R5 \
8774 /usr/include/X11R4 \
8775 \
8776 /usr/local/X11R6/include \
8777 /usr/local/X11R5/include \
8778 /usr/local/X11R4/include \
8779 \
8780 /usr/local/include/X11R6 \
8781 /usr/local/include/X11R5 \
8782 /usr/local/include/X11R4 \
8783 \
8784 /usr/X11/include \
8785 /usr/include/X11 \
8786 /usr/local/X11/include \
8787 /usr/local/include/X11 \
8788 \
8789 /usr/X386/include \
8790 /usr/x386/include \
8791 /usr/XFree86/include/X11 \
8792 \
8793 X:/XFree86/include \
8794 X:/XFree86/include/X11 \
8795 \
8796 /usr/include/gtk \
8797 /usr/local/include/gtk \
8798 /usr/include/glib \
8799 /usr/local/include/glib \
8800 \
8801 /usr/include/qt \
8802 /usr/local/include/qt \
8803 \
8804 /usr/include/windows \
8805 /usr/include/wine \
8806 /usr/local/include/wine \
8807 \
8808 /usr/unsupported/include \
8809 /usr/athena/include \
8810 /usr/local/x11r5/include \
8811 /usr/lpp/Xamples/include \
8812 \
8813 /usr/openwin/share/include \
8814 \
8815 /usr/include"
8816
8817 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8818
8819
8820 cat > confcache <<\EOF
8821 # This file is a shell script that caches the results of configure
8822 # tests run on this system so they can be shared between configure
8823 # scripts and configure runs. It is not useful on other systems.
8824 # If it contains results you don't want to keep, you may remove or edit it.
8825 #
8826 # By default, configure uses ./config.cache as the cache file,
8827 # creating it if it does not exist already. You can give configure
8828 # the --cache-file=FILE option to use a different cache file; that is
8829 # what configure does when it calls configure scripts in
8830 # subdirectories, so they share the cache.
8831 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8832 # config.status only pays attention to the cache file if you give it the
8833 # --recheck option to rerun configure.
8834 #
8835 EOF
8836 # The following way of writing the cache mishandles newlines in values,
8837 # but we know of no workaround that is simple, portable, and efficient.
8838 # So, don't put newlines in cache variables' values.
8839 # Ultrix sh set writes to stderr and can't be redirected directly,
8840 # and sets the high bit in the cache file unless we assign to the vars.
8841 (set) 2>&1 |
8842 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8843 *ac_space=\ *)
8844 # `set' does not quote correctly, so add quotes (double-quote substitution
8845 # turns \\\\ into \\, and sed turns \\ into \).
8846 sed -n \
8847 -e "s/'/'\\\\''/g" \
8848 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8849 ;;
8850 *)
8851 # `set' quotes correctly as required by POSIX, so do not add quotes.
8852 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8853 ;;
8854 esac >> confcache
8855 if cmp -s $cache_file confcache; then
8856 :
8857 else
8858 if test -w $cache_file; then
8859 echo "updating cache $cache_file"
8860 cat confcache > $cache_file
8861 else
8862 echo "not updating unwritable cache $cache_file"
8863 fi
8864 fi
8865 rm -f confcache
8866
8867
8868
8869 REGEX_INCLUDE=
8870 if test "$wxUSE_REGEX" != "no"; then
8871 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
8872 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
8873 echo "configure:8874: checking for regex.h" >&5
8874 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8875 echo $ac_n "(cached) $ac_c" 1>&6
8876 else
8877 cat > conftest.$ac_ext <<EOF
8878 #line 8879 "configure"
8879 #include "confdefs.h"
8880 #include <regex.h>
8881 EOF
8882 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8883 { (eval echo configure:8884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8884 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8885 if test -z "$ac_err"; then
8886 rm -rf conftest*
8887 eval "ac_cv_header_$ac_safe=yes"
8888 else
8889 echo "$ac_err" >&5
8890 echo "configure: failed program was:" >&5
8891 cat conftest.$ac_ext >&5
8892 rm -rf conftest*
8893 eval "ac_cv_header_$ac_safe=no"
8894 fi
8895 rm -f conftest*
8896 fi
8897 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8898 echo "$ac_t""yes" 1>&6
8899 for ac_func in regcomp
8900 do
8901 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8902 echo "configure:8903: checking for $ac_func" >&5
8903 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8904 echo $ac_n "(cached) $ac_c" 1>&6
8905 else
8906 cat > conftest.$ac_ext <<EOF
8907 #line 8908 "configure"
8908 #include "confdefs.h"
8909 /* System header to define __stub macros and hopefully few prototypes,
8910 which can conflict with char $ac_func(); below. */
8911 #include <assert.h>
8912 /* Override any gcc2 internal prototype to avoid an error. */
8913 /* We use char because int might match the return type of a gcc2
8914 builtin and then its argument prototype would still apply. */
8915 char $ac_func();
8916
8917 int main() {
8918
8919 /* The GNU C library defines this for functions which it implements
8920 to always fail with ENOSYS. Some functions are actually named
8921 something starting with __ and the normal name is an alias. */
8922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8923 choke me
8924 #else
8925 $ac_func();
8926 #endif
8927
8928 ; return 0; }
8929 EOF
8930 if { (eval echo configure:8931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8931 rm -rf conftest*
8932 eval "ac_cv_func_$ac_func=yes"
8933 else
8934 echo "configure: failed program was:" >&5
8935 cat conftest.$ac_ext >&5
8936 rm -rf conftest*
8937 eval "ac_cv_func_$ac_func=no"
8938 fi
8939 rm -f conftest*
8940 fi
8941
8942 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8943 echo "$ac_t""yes" 1>&6
8944 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8945 cat >> confdefs.h <<EOF
8946 #define $ac_tr_func 1
8947 EOF
8948
8949 else
8950 echo "$ac_t""no" 1>&6
8951 fi
8952 done
8953
8954 else
8955 echo "$ac_t""no" 1>&6
8956 fi
8957
8958
8959 if test "x$ac_cv_func_regcomp" != "xyes"; then
8960 if test "$wxUSE_REGEX" = "sys"; then
8961 { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; }
8962 fi
8963
8964 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
8965 fi
8966
8967 cat >> confdefs.h <<\EOF
8968 #define wxUSE_REGEX 1
8969 EOF
8970
8971 fi
8972
8973
8974 AFMINSTALL=
8975
8976 TOOLKIT=
8977 TOOLKIT_INCLUDE=
8978 WIDGET_SET=
8979
8980 if test "$USE_WIN32" = 1 ; then
8981 for ac_hdr in w32api.h
8982 do
8983 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8984 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8985 echo "configure:8986: checking for $ac_hdr" >&5
8986 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8987 echo $ac_n "(cached) $ac_c" 1>&6
8988 else
8989 cat > conftest.$ac_ext <<EOF
8990 #line 8991 "configure"
8991 #include "confdefs.h"
8992 #include <$ac_hdr>
8993 EOF
8994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8995 { (eval echo configure:8996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8997 if test -z "$ac_err"; then
8998 rm -rf conftest*
8999 eval "ac_cv_header_$ac_safe=yes"
9000 else
9001 echo "$ac_err" >&5
9002 echo "configure: failed program was:" >&5
9003 cat conftest.$ac_ext >&5
9004 rm -rf conftest*
9005 eval "ac_cv_header_$ac_safe=no"
9006 fi
9007 rm -f conftest*
9008 fi
9009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9010 echo "$ac_t""yes" 1>&6
9011 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9012 cat >> confdefs.h <<EOF
9013 #define $ac_tr_hdr 1
9014 EOF
9015
9016 else
9017 echo "$ac_t""no" 1>&6
9018 fi
9019 done
9020
9021 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
9022 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
9023 echo "configure:9024: checking for windows.h" >&5
9024 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9025 echo $ac_n "(cached) $ac_c" 1>&6
9026 else
9027 cat > conftest.$ac_ext <<EOF
9028 #line 9029 "configure"
9029 #include "confdefs.h"
9030 #include <windows.h>
9031 EOF
9032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9033 { (eval echo configure:9034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9035 if test -z "$ac_err"; then
9036 rm -rf conftest*
9037 eval "ac_cv_header_$ac_safe=yes"
9038 else
9039 echo "$ac_err" >&5
9040 echo "configure: failed program was:" >&5
9041 cat conftest.$ac_ext >&5
9042 rm -rf conftest*
9043 eval "ac_cv_header_$ac_safe=no"
9044 fi
9045 rm -f conftest*
9046 fi
9047 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9048 echo "$ac_t""yes" 1>&6
9049 :
9050 else
9051 echo "$ac_t""no" 1>&6
9052
9053 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9054
9055 fi
9056
9057
9058 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
9059 echo "configure:9060: checking if w32api has good enough MSIE support" >&5
9060 if eval "test \"`echo '$''{'wx_cv_w32api_win_ie'+set}'`\" = set"; then
9061 echo $ac_n "(cached) $ac_c" 1>&6
9062 else
9063
9064 cat > conftest.$ac_ext <<EOF
9065 #line 9066 "configure"
9066 #include "confdefs.h"
9067 #include <w32api.h>
9068 int main() {
9069
9070 #define wxCHECK_W32API_VERSION( major, minor ) \
9071 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
9072 && ( ( __W32API_MAJOR_VERSION > (major) ) \
9073 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
9074
9075 #if !wxCHECK_W32API_VERSION(1,1)
9076 #error You need w32api 1.1 or newer
9077 #endif
9078
9079 ; return 0; }
9080 EOF
9081 if { (eval echo configure:9082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9082 rm -rf conftest*
9083
9084 wx_cv_w32api_win_ie=yes
9085 CPPFLAGS="$CPPFLAGS -D_WIN_IE=0x400"
9086
9087 else
9088 echo "configure: failed program was:" >&5
9089 cat conftest.$ac_ext >&5
9090 rm -rf conftest*
9091
9092 wx_cv_w32api_win_ie=no
9093
9094 fi
9095 rm -f conftest*
9096
9097 fi
9098
9099 echo "$ac_t""$wx_cv_w32api_win_ie" 1>&6
9100
9101 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
9102
9103 if test "$wxUSE_CYGWIN" = 1; then
9104 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
9105 fi
9106
9107 if test "$wxUSE_ODBC" = "yes" ; then
9108 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
9109 fi
9110
9111 if test "$wxUSE_MINGW" = 1; then
9112 LDFLAGS="$LDFLAGS -mwindows"
9113 fi
9114
9115 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
9116 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
9117 fi
9118
9119 if test "$wxUSE_GUI" = "yes"; then
9120 USE_GUI=1
9121
9122 GUI_TK_LIBRARY=
9123
9124 WXGTK12=
9125 WXGTK127=
9126 WXGTK20=
9127
9128 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
9129 TOOLKIT=MSW
9130 GUIDIST=MSW_DIST
9131 fi
9132
9133 if test "$wxUSE_GTK" = 1; then
9134 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
9135 echo "configure:9136: checking for GTK+ version" >&5
9136
9137 gtk_version_cached=1
9138 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9139 echo $ac_n "(cached) $ac_c" 1>&6
9140 else
9141
9142 gtk_version_cached=0
9143 echo "$ac_t""""" 1>&6
9144
9145 wx_cv_lib_gtk=
9146 if test "x$wxUSE_GTK2" = "xyes"; then
9147 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
9148 if test "${with_gtk_prefix+set}" = set; then
9149 withval="$with_gtk_prefix"
9150 gtk_config_prefix="$withval"
9151 else
9152 gtk_config_prefix=""
9153 fi
9154
9155 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9156 if test "${with_gtk_exec_prefix+set}" = set; then
9157 withval="$with_gtk_exec_prefix"
9158 gtk_config_exec_prefix="$withval"
9159 else
9160 gtk_config_exec_prefix=""
9161 fi
9162
9163 # Check whether --enable-gtktest or --disable-gtktest was given.
9164 if test "${enable_gtktest+set}" = set; then
9165 enableval="$enable_gtktest"
9166 :
9167 else
9168 enable_gtktest=yes
9169 fi
9170
9171
9172 for module in .
9173 do
9174 case "$module" in
9175 gthread)
9176 gtk_config_args="$gtk_config_args gthread"
9177 ;;
9178 esac
9179 done
9180
9181 if test x$gtk_config_exec_prefix != x ; then
9182 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9183 if test x${GTK_CONFIG_2_0+set} != xset ; then
9184 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9185 fi
9186 fi
9187 if test x$gtk_config_prefix != x ; then
9188 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9189 if test x${GTK_CONFIG_2_0+set} != xset ; then
9190 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9191 fi
9192 fi
9193
9194 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9195 set dummy gtk-config-2.0; ac_word=$2
9196 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9197 echo "configure:9198: checking for $ac_word" >&5
9198 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9199 echo $ac_n "(cached) $ac_c" 1>&6
9200 else
9201 case "$GTK_CONFIG_2_0" in
9202 /*)
9203 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9204 ;;
9205 ?:/*)
9206 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9207 ;;
9208 *)
9209 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9210 ac_dummy="$PATH"
9211 for ac_dir in $ac_dummy; do
9212 test -z "$ac_dir" && ac_dir=.
9213 if test -f $ac_dir/$ac_word; then
9214 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9215 break
9216 fi
9217 done
9218 IFS="$ac_save_ifs"
9219 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9220 ;;
9221 esac
9222 fi
9223 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
9224 if test -n "$GTK_CONFIG_2_0"; then
9225 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
9226 else
9227 echo "$ac_t""no" 1>&6
9228 fi
9229
9230 min_gtk_version=1.3.1
9231 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9232 echo "configure:9233: checking for GTK - version >= $min_gtk_version" >&5
9233 no_gtk=""
9234 if test "$GTK_CONFIG_2_0" = "no" ; then
9235 no_gtk=yes
9236 else
9237 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9238 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9239 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9240 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9241 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9242 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9243 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9244 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9245 if test "x$enable_gtktest" = "xyes" ; then
9246 ac_save_CFLAGS="$CFLAGS"
9247 ac_save_LIBS="$LIBS"
9248 CFLAGS="$CFLAGS $GTK_CFLAGS"
9249 LIBS="$GTK_LIBS $LIBS"
9250 rm -f conf.gtktest
9251 if test "$cross_compiling" = yes; then
9252 echo $ac_n "cross compiling; assumed OK... $ac_c"
9253 else
9254 cat > conftest.$ac_ext <<EOF
9255 #line 9256 "configure"
9256 #include "confdefs.h"
9257
9258 #include <gtk/gtk.h>
9259 #include <stdio.h>
9260 #include <stdlib.h>
9261
9262 int
9263 main ()
9264 {
9265 int major, minor, micro;
9266 char *tmp_version;
9267
9268 system ("touch conf.gtktest");
9269
9270 /* HP/UX 9 (%@#!) writes to sscanf strings */
9271 tmp_version = g_strdup("$min_gtk_version");
9272 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9273 printf("%s, bad version string\n", "$min_gtk_version");
9274 exit(1);
9275 }
9276
9277 if ((gtk_major_version != $gtk_config_major_version) ||
9278 (gtk_minor_version != $gtk_config_minor_version) ||
9279 (gtk_micro_version != $gtk_config_micro_version))
9280 {
9281 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
9282 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9283 gtk_major_version, gtk_minor_version, gtk_micro_version);
9284 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9285 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9286 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9287 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9288 printf("*** required on your system.\n");
9289 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9290 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9291 printf("*** before re-running configure\n");
9292 }
9293 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9294 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
9295 (gtk_minor_version != GTK_MINOR_VERSION) ||
9296 (gtk_micro_version != GTK_MICRO_VERSION))
9297 {
9298 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
9299 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
9300 printf("*** library (version %d.%d.%d)\n",
9301 gtk_major_version, gtk_minor_version, gtk_micro_version);
9302 }
9303 #endif /* defined (GTK_MAJOR_VERSION) ... */
9304 else
9305 {
9306 if ((gtk_major_version > major) ||
9307 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9308 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9309 {
9310 return 0;
9311 }
9312 else
9313 {
9314 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9315 gtk_major_version, gtk_minor_version, gtk_micro_version);
9316 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
9317 major, minor, micro);
9318 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9319 printf("***\n");
9320 printf("*** If you have already installed a sufficiently new version, this error\n");
9321 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9322 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9323 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9324 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9325 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9326 printf("*** so that the correct libraries are found at run-time))\n");
9327 }
9328 }
9329 return 1;
9330 }
9331
9332 EOF
9333 if { (eval echo configure:9334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9334 then
9335 :
9336 else
9337 echo "configure: failed program was:" >&5
9338 cat conftest.$ac_ext >&5
9339 rm -fr conftest*
9340 no_gtk=yes
9341 fi
9342 rm -fr conftest*
9343 fi
9344
9345 CFLAGS="$ac_save_CFLAGS"
9346 LIBS="$ac_save_LIBS"
9347 fi
9348 fi
9349 if test "x$no_gtk" = x ; then
9350 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
9351 wx_cv_lib_gtk=2.0
9352 else
9353 echo "$ac_t""no" 1>&6
9354 if test "$GTK_CONFIG_2_0" = "no" ; then
9355 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9356 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9357 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9358 echo "*** full path to gtk-config-2.0."
9359 else
9360 if test -f conf.gtktest ; then
9361 :
9362 else
9363 echo "*** Could not run GTK test program, checking why..."
9364 CFLAGS="$CFLAGS $GTK_CFLAGS"
9365 LIBS="$LIBS $GTK_LIBS"
9366 cat > conftest.$ac_ext <<EOF
9367 #line 9368 "configure"
9368 #include "confdefs.h"
9369
9370 #include <gtk/gtk.h>
9371 #include <stdio.h>
9372
9373 int main() {
9374 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9375 ; return 0; }
9376 EOF
9377 if { (eval echo configure:9378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9378 rm -rf conftest*
9379 echo "*** The test program compiled, but did not run. This usually means"
9380 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9381 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9382 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9383 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9384 echo "*** is required on your system"
9385 echo "***"
9386 echo "*** If you have an old version installed, it is best to remove it, although"
9387 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9388 echo "***"
9389 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9390 echo "*** came with the system with the command"
9391 echo "***"
9392 echo "*** rpm --erase --nodeps gtk gtk-devel"
9393 else
9394 echo "configure: failed program was:" >&5
9395 cat conftest.$ac_ext >&5
9396 rm -rf conftest*
9397 echo "*** The test program failed to compile or link. See the file config.log for the"
9398 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9399 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
9400 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
9401 fi
9402 rm -f conftest*
9403 CFLAGS="$ac_save_CFLAGS"
9404 LIBS="$ac_save_LIBS"
9405 fi
9406 fi
9407 GTK_CFLAGS=""
9408 GTK_LIBS=""
9409 gthread
9410 fi
9411
9412
9413 rm -f conf.gtktest
9414
9415 fi
9416
9417 if test -z "$wx_cv_lib_gtk"; then
9418
9419 if test x$gtk_config_exec_prefix != x ; then
9420 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9421 if test x${GTK_CONFIG+set} != xset ; then
9422 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9423 fi
9424 fi
9425 if test x$gtk_config_prefix != x ; then
9426 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9427 if test x${GTK_CONFIG+set} != xset ; then
9428 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9429 fi
9430 fi
9431
9432 # Extract the first word of "gtk-config", so it can be a program name with args.
9433 set dummy gtk-config; ac_word=$2
9434 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9435 echo "configure:9436: checking for $ac_word" >&5
9436 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9437 echo $ac_n "(cached) $ac_c" 1>&6
9438 else
9439 case "$GTK_CONFIG" in
9440 /*)
9441 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9442 ;;
9443 ?:/*)
9444 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9445 ;;
9446 *)
9447 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9448 ac_dummy="$PATH"
9449 for ac_dir in $ac_dummy; do
9450 test -z "$ac_dir" && ac_dir=.
9451 if test -f $ac_dir/$ac_word; then
9452 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9453 break
9454 fi
9455 done
9456 IFS="$ac_save_ifs"
9457 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9458 ;;
9459 esac
9460 fi
9461 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
9462 if test -n "$GTK_CONFIG"; then
9463 echo "$ac_t""$GTK_CONFIG" 1>&6
9464 else
9465 echo "$ac_t""no" 1>&6
9466 fi
9467
9468 min_gtk_version=1.2.7
9469 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9470 echo "configure:9471: checking for GTK - version >= $min_gtk_version" >&5
9471 no_gtk=""
9472 if test "$GTK_CONFIG" != "no" ; then
9473 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9474 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9475 ac_save_CFLAGS="$CFLAGS"
9476 ac_save_LIBS="$LIBS"
9477 CFLAGS="$CFLAGS $GTK_CFLAGS"
9478 LIBS="$LIBS $GTK_LIBS"
9479 if test "$cross_compiling" = yes; then
9480 echo $ac_n "cross compiling; assumed OK... $ac_c"
9481 else
9482 cat > conftest.$ac_ext <<EOF
9483 #line 9484 "configure"
9484 #include "confdefs.h"
9485
9486 #include <gtk/gtk.h>
9487 #include <gtk/gtkfeatures.h>
9488 #include <stdio.h>
9489 #include <stdlib.h>
9490
9491 int
9492 main ()
9493 {
9494 int major, minor, micro;
9495
9496 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9497 printf("%s, bad version string\n", "$min_gtk_version");
9498 exit(1);
9499 }
9500
9501 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9502 (GTK_MINOR_VERSION != gtk_minor_version) ||
9503 (GTK_MICRO_VERSION != gtk_micro_version)) {
9504 printf("Headers vs. library version mismatch!\n");
9505 exit(1);
9506 }
9507
9508 if (gtk_minor_version == 1) return FALSE;
9509
9510 return !((gtk_major_version > major) ||
9511 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9512 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9513 }
9514
9515 EOF
9516 if { (eval echo configure:9517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9517 then
9518 :
9519 else
9520 echo "configure: failed program was:" >&5
9521 cat conftest.$ac_ext >&5
9522 rm -fr conftest*
9523 no_gtk=yes
9524 fi
9525 rm -fr conftest*
9526 fi
9527
9528 CFLAGS="$ac_save_CFLAGS"
9529 LIBS="$ac_save_LIBS"
9530 else
9531 no_gtk=yes
9532 fi
9533 if test "x$no_gtk" = x ; then
9534 echo "$ac_t""yes" 1>&6
9535 wx_cv_lib_gtk=1.2.7
9536 else
9537 echo "$ac_t""no" 1>&6
9538 GTK_CFLAGS=""
9539 GTK_LIBS=""
9540 :
9541 fi
9542
9543
9544
9545 fi
9546
9547 if test -z "$wx_cv_lib_gtk"; then
9548
9549 if test x$gtk_config_exec_prefix != x ; then
9550 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9551 if test x${GTK_CONFIG+set} != xset ; then
9552 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9553 fi
9554 fi
9555 if test x$gtk_config_prefix != x ; then
9556 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9557 if test x${GTK_CONFIG+set} != xset ; then
9558 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9559 fi
9560 fi
9561
9562 # Extract the first word of "gtk-config", so it can be a program name with args.
9563 set dummy gtk-config; ac_word=$2
9564 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9565 echo "configure:9566: checking for $ac_word" >&5
9566 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9567 echo $ac_n "(cached) $ac_c" 1>&6
9568 else
9569 case "$GTK_CONFIG" in
9570 /*)
9571 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9572 ;;
9573 ?:/*)
9574 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9575 ;;
9576 *)
9577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9578 ac_dummy="$PATH"
9579 for ac_dir in $ac_dummy; do
9580 test -z "$ac_dir" && ac_dir=.
9581 if test -f $ac_dir/$ac_word; then
9582 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9583 break
9584 fi
9585 done
9586 IFS="$ac_save_ifs"
9587 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9588 ;;
9589 esac
9590 fi
9591 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
9592 if test -n "$GTK_CONFIG"; then
9593 echo "$ac_t""$GTK_CONFIG" 1>&6
9594 else
9595 echo "$ac_t""no" 1>&6
9596 fi
9597
9598 min_gtk_version=1.2.3
9599 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9600 echo "configure:9601: checking for GTK - version >= $min_gtk_version" >&5
9601 no_gtk=""
9602 if test "$GTK_CONFIG" != "no" ; then
9603 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9604 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9605 ac_save_CFLAGS="$CFLAGS"
9606 ac_save_LIBS="$LIBS"
9607 CFLAGS="$CFLAGS $GTK_CFLAGS"
9608 LIBS="$LIBS $GTK_LIBS"
9609 if test "$cross_compiling" = yes; then
9610 echo $ac_n "cross compiling; assumed OK... $ac_c"
9611 else
9612 cat > conftest.$ac_ext <<EOF
9613 #line 9614 "configure"
9614 #include "confdefs.h"
9615
9616 #include <gtk/gtk.h>
9617 #include <gtk/gtkfeatures.h>
9618 #include <stdio.h>
9619 #include <stdlib.h>
9620
9621 int
9622 main ()
9623 {
9624 int major, minor, micro;
9625
9626 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9627 printf("%s, bad version string\n", "$min_gtk_version");
9628 exit(1);
9629 }
9630
9631 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9632 (GTK_MINOR_VERSION != gtk_minor_version) ||
9633 (GTK_MICRO_VERSION != gtk_micro_version)) {
9634 printf("Headers vs. library version mismatch!\n");
9635 exit(1);
9636 }
9637
9638 if (gtk_minor_version == 1) return FALSE;
9639
9640 return !((gtk_major_version > major) ||
9641 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9642 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9643 }
9644
9645 EOF
9646 if { (eval echo configure:9647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9647 then
9648 :
9649 else
9650 echo "configure: failed program was:" >&5
9651 cat conftest.$ac_ext >&5
9652 rm -fr conftest*
9653 no_gtk=yes
9654 fi
9655 rm -fr conftest*
9656 fi
9657
9658 CFLAGS="$ac_save_CFLAGS"
9659 LIBS="$ac_save_LIBS"
9660 else
9661 no_gtk=yes
9662 fi
9663 if test "x$no_gtk" = x ; then
9664 echo "$ac_t""yes" 1>&6
9665 wx_cv_lib_gtk=1.2.3
9666 else
9667 echo "$ac_t""no" 1>&6
9668 GTK_CFLAGS=""
9669 GTK_LIBS=""
9670 :
9671 fi
9672
9673
9674
9675 fi
9676
9677 if test -z "$wx_cv_lib_gtk"; then
9678 wx_cv_lib_gtk=none
9679 else
9680 wx_cv_cflags_gtk=$GTK_CFLAGS
9681 wx_cv_libs_gtk=$GTK_LIBS
9682 fi
9683
9684
9685 fi
9686
9687
9688 if test "$gtk_version_cached" = 1; then
9689 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
9690 fi
9691
9692 case "$wx_cv_lib_gtk" in
9693 2.0) WXGTK20=1
9694 ;;
9695 1.2.7) WXGTK127=1
9696 WXGTK12=1
9697 ;;
9698 1.2.3) WXGTK12=1
9699 ;;
9700 *) { echo "configure: error:
9701 Please check that gtk-config is in path, the directory
9702 where GTK+ libraries are installed (returned by
9703 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9704 equivalent variable and GTK+ is version 1.2.3 or above.
9705 " 1>&2; exit 1; }
9706 ;;
9707 esac
9708
9709 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
9710 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
9711
9712 AFMINSTALL=afminstall
9713 TOOLKIT=GTK
9714 GUIDIST=GTK_DIST
9715
9716 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
9717 echo "configure:9718: checking for gdk_im_open in -lgdk" >&5
9718 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9719 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9720 echo $ac_n "(cached) $ac_c" 1>&6
9721 else
9722 ac_save_LIBS="$LIBS"
9723 LIBS="-lgdk $LIBS"
9724 cat > conftest.$ac_ext <<EOF
9725 #line 9726 "configure"
9726 #include "confdefs.h"
9727 /* Override any gcc2 internal prototype to avoid an error. */
9728 /* We use char because int might match the return type of a gcc2
9729 builtin and then its argument prototype would still apply. */
9730 char gdk_im_open();
9731
9732 int main() {
9733 gdk_im_open()
9734 ; return 0; }
9735 EOF
9736 if { (eval echo configure:9737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9737 rm -rf conftest*
9738 eval "ac_cv_lib_$ac_lib_var=yes"
9739 else
9740 echo "configure: failed program was:" >&5
9741 cat conftest.$ac_ext >&5
9742 rm -rf conftest*
9743 eval "ac_cv_lib_$ac_lib_var=no"
9744 fi
9745 rm -f conftest*
9746 LIBS="$ac_save_LIBS"
9747
9748 fi
9749 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9750 echo "$ac_t""yes" 1>&6
9751 cat >> confdefs.h <<\EOF
9752 #define HAVE_XIM 1
9753 EOF
9754
9755 else
9756 echo "$ac_t""no" 1>&6
9757 fi
9758
9759 fi
9760
9761 if test "$wxUSE_MGL" = 1; then
9762
9763 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
9764 echo "configure:9765: checking for SciTech MGL library" >&5
9765 if test "x$MGL_ROOT" = x ; then
9766 echo "$ac_t""not found" 1>&6
9767 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9768 else
9769 echo "$ac_t""$MGL_ROOT" 1>&6
9770 fi
9771
9772 mgl_os=linux/gcc/glibc
9773 mgl_lib_type=""
9774
9775 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9776 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a ; then
9777 mgl_lib_type=debug
9778 fi
9779 fi
9780 if test "x$mgl_lib_type" = x ; then
9781 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a ; then
9782 mgl_lib_type=release
9783 else
9784 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9785 fi
9786 fi
9787
9788 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9789 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
9790
9791 AFMINSTALL=afminstall
9792 TOOLKIT=MGL
9793 GUIDIST=MGL_DIST
9794 fi
9795
9796 if test "$wxUSE_WINE" = 1; then
9797 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
9798 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
9799 echo "configure:9800: checking for windows.h" >&5
9800 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9801 echo $ac_n "(cached) $ac_c" 1>&6
9802 else
9803 cat > conftest.$ac_ext <<EOF
9804 #line 9805 "configure"
9805 #include "confdefs.h"
9806 #include <windows.h>
9807 EOF
9808 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9809 { (eval echo configure:9810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9810 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9811 if test -z "$ac_err"; then
9812 rm -rf conftest*
9813 eval "ac_cv_header_$ac_safe=yes"
9814 else
9815 echo "$ac_err" >&5
9816 echo "configure: failed program was:" >&5
9817 cat conftest.$ac_ext >&5
9818 rm -rf conftest*
9819 eval "ac_cv_header_$ac_safe=no"
9820 fi
9821 rm -f conftest*
9822 fi
9823 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9824 echo "$ac_t""yes" 1>&6
9825 :
9826 else
9827 echo "$ac_t""no" 1>&6
9828
9829 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9830
9831 fi
9832
9833
9834 xpm_link=""
9835 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9836 echo "configure:9837: checking for Xpm library" >&5
9837
9838 ac_find_libraries=
9839 for ac_dir in $SEARCH_LIB;
9840 do
9841 for ac_extension in a so sl dylib; do
9842 if test -f "$ac_dir/libXpm.$ac_extension"; then
9843 ac_find_libraries=$ac_dir
9844 break 2
9845 fi
9846 done
9847 done
9848
9849 if test "$ac_find_libraries" != "" ; then
9850 GUI_TK_LIBRARY="-L$ac_find_libraries"
9851 xpm_link="-lXpm"
9852 cat >> confdefs.h <<\EOF
9853 #define wxHAVE_LIB_XPM 1
9854 EOF
9855
9856 echo "$ac_t""found at $ac_find_libraries" 1>&6
9857 else
9858 echo "$ac_t""no" 1>&6
9859 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9860 fi
9861
9862 mesa_link=""
9863 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
9864 echo "configure:9865: checking for Mesa library" >&5
9865
9866 ac_find_libraries=
9867 for ac_dir in $SEARCH_LIB;
9868 do
9869 for ac_extension in a so sl dylib; do
9870 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9871 ac_find_libraries=$ac_dir
9872 break 2
9873 fi
9874 done
9875 done
9876
9877 if test "$ac_find_libraries" != "" ; then
9878 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9879 mesa_link="-lMesaGL"
9880 echo "$ac_t""found at $ac_find_libraries" 1>&6
9881 else
9882 { echo "configure: error: no" 1>&2; exit 1; }
9883 fi
9884
9885 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine $mesa_link $xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9886 TOOLKIT=MSW
9887 GUIDIST=MSW_DIST
9888 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
9889 fi
9890
9891
9892 # If we find X, set shell vars x_includes and x_libraries to the
9893 # paths, otherwise set no_x=yes.
9894 # Uses ac_ vars as temps to allow command line to override cache and checks.
9895 # --without-x overrides everything else, but does not touch the cache.
9896 echo $ac_n "checking for X""... $ac_c" 1>&6
9897 echo "configure:9898: checking for X" >&5
9898
9899 # Check whether --with-x or --without-x was given.
9900 if test "${with_x+set}" = set; then
9901 withval="$with_x"
9902 :
9903 fi
9904
9905 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9906 if test "x$with_x" = xno; then
9907 # The user explicitly disabled X.
9908 have_x=disabled
9909 else
9910 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9911 # Both variables are already set.
9912 have_x=yes
9913 else
9914 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9915 echo $ac_n "(cached) $ac_c" 1>&6
9916 else
9917 # One or both of the vars are not set, and there is no cached value.
9918 ac_x_includes=NO ac_x_libraries=NO
9919 rm -fr conftestdir
9920 if mkdir conftestdir; then
9921 cd conftestdir
9922 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9923 cat > Imakefile <<'EOF'
9924 acfindx:
9925 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9926 EOF
9927 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9928 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9929 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9930 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9931 for ac_extension in a so sl; do
9932 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9933 test -f $ac_im_libdir/libX11.$ac_extension; then
9934 ac_im_usrlibdir=$ac_im_libdir; break
9935 fi
9936 done
9937 # Screen out bogus values from the imake configuration. They are
9938 # bogus both because they are the default anyway, and because
9939 # using them would break gcc on systems where it needs fixed includes.
9940 case "$ac_im_incroot" in
9941 /usr/include) ;;
9942 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
9943 esac
9944 case "$ac_im_usrlibdir" in
9945 /usr/lib | /lib) ;;
9946 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
9947 esac
9948 fi
9949 cd ..
9950 rm -fr conftestdir
9951 fi
9952
9953 if test "$ac_x_includes" = NO; then
9954 # Guess where to find include files, by looking for this one X11 .h file.
9955 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9956
9957 # First, try using that file with no special directory specified.
9958 cat > conftest.$ac_ext <<EOF
9959 #line 9960 "configure"
9960 #include "confdefs.h"
9961 #include <$x_direct_test_include>
9962 EOF
9963 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9964 { (eval echo configure:9965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9965 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9966 if test -z "$ac_err"; then
9967 rm -rf conftest*
9968 # We can compile using X headers with no special include directory.
9969 ac_x_includes=
9970 else
9971 echo "$ac_err" >&5
9972 echo "configure: failed program was:" >&5
9973 cat conftest.$ac_ext >&5
9974 rm -rf conftest*
9975 # Look for the header file in a standard set of common directories.
9976 # Check X11 before X11Rn because it is often a symlink to the current release.
9977 for ac_dir in \
9978 /usr/X11/include \
9979 /usr/X11R6/include \
9980 /usr/X11R5/include \
9981 /usr/X11R4/include \
9982 \
9983 /usr/include/X11 \
9984 /usr/include/X11R6 \
9985 /usr/include/X11R5 \
9986 /usr/include/X11R4 \
9987 \
9988 /usr/local/X11/include \
9989 /usr/local/X11R6/include \
9990 /usr/local/X11R5/include \
9991 /usr/local/X11R4/include \
9992 \
9993 /usr/local/include/X11 \
9994 /usr/local/include/X11R6 \
9995 /usr/local/include/X11R5 \
9996 /usr/local/include/X11R4 \
9997 \
9998 /usr/X386/include \
9999 /usr/x386/include \
10000 /usr/XFree86/include/X11 \
10001 \
10002 /usr/include \
10003 /usr/local/include \
10004 /usr/unsupported/include \
10005 /usr/athena/include \
10006 /usr/local/x11r5/include \
10007 /usr/lpp/Xamples/include \
10008 \
10009 /usr/openwin/include \
10010 /usr/openwin/share/include \
10011 ; \
10012 do
10013 if test -r "$ac_dir/$x_direct_test_include"; then
10014 ac_x_includes=$ac_dir
10015 break
10016 fi
10017 done
10018 fi
10019 rm -f conftest*
10020 fi # $ac_x_includes = NO
10021
10022 if test "$ac_x_libraries" = NO; then
10023 # Check for the libraries.
10024
10025 test -z "$x_direct_test_library" && x_direct_test_library=Xt
10026 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10027
10028 # See if we find them without any special options.
10029 # Don't add to $LIBS permanently.
10030 ac_save_LIBS="$LIBS"
10031 LIBS="-l$x_direct_test_library $LIBS"
10032 cat > conftest.$ac_ext <<EOF
10033 #line 10034 "configure"
10034 #include "confdefs.h"
10035
10036 int main() {
10037 ${x_direct_test_function}()
10038 ; return 0; }
10039 EOF
10040 if { (eval echo configure:10041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10041 rm -rf conftest*
10042 LIBS="$ac_save_LIBS"
10043 # We can link X programs with no special library path.
10044 ac_x_libraries=
10045 else
10046 echo "configure: failed program was:" >&5
10047 cat conftest.$ac_ext >&5
10048 rm -rf conftest*
10049 LIBS="$ac_save_LIBS"
10050 # First see if replacing the include by lib works.
10051 # Check X11 before X11Rn because it is often a symlink to the current release.
10052 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
10053 /usr/X11/lib \
10054 /usr/X11R6/lib \
10055 /usr/X11R5/lib \
10056 /usr/X11R4/lib \
10057 \
10058 /usr/lib/X11 \
10059 /usr/lib/X11R6 \
10060 /usr/lib/X11R5 \
10061 /usr/lib/X11R4 \
10062 \
10063 /usr/local/X11/lib \
10064 /usr/local/X11R6/lib \
10065 /usr/local/X11R5/lib \
10066 /usr/local/X11R4/lib \
10067 \
10068 /usr/local/lib/X11 \
10069 /usr/local/lib/X11R6 \
10070 /usr/local/lib/X11R5 \
10071 /usr/local/lib/X11R4 \
10072 \
10073 /usr/X386/lib \
10074 /usr/x386/lib \
10075 /usr/XFree86/lib/X11 \
10076 \
10077 /usr/lib \
10078 /usr/local/lib \
10079 /usr/unsupported/lib \
10080 /usr/athena/lib \
10081 /usr/local/x11r5/lib \
10082 /usr/lpp/Xamples/lib \
10083 /lib/usr/lib/X11 \
10084 \
10085 /usr/openwin/lib \
10086 /usr/openwin/share/lib \
10087 ; \
10088 do
10089 for ac_extension in a so sl; do
10090 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
10091 ac_x_libraries=$ac_dir
10092 break 2
10093 fi
10094 done
10095 done
10096 fi
10097 rm -f conftest*
10098 fi # $ac_x_libraries = NO
10099
10100 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
10101 # Didn't find X anywhere. Cache the known absence of X.
10102 ac_cv_have_x="have_x=no"
10103 else
10104 # Record where we found X for the cache.
10105 ac_cv_have_x="have_x=yes \
10106 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10107 fi
10108 fi
10109 fi
10110 eval "$ac_cv_have_x"
10111 fi # $with_x != no
10112
10113 if test "$have_x" != yes; then
10114 echo "$ac_t""$have_x" 1>&6
10115 no_x=yes
10116 else
10117 # If each of the values was on the command line, it overrides each guess.
10118 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10119 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10120 # Update the cache value to reflect the command line values.
10121 ac_cv_have_x="have_x=yes \
10122 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10123 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
10124 fi
10125
10126 if test "$no_x" = yes; then
10127 # Not all programs may use this symbol, but it does not hurt to define it.
10128 cat >> confdefs.h <<\EOF
10129 #define X_DISPLAY_MISSING 1
10130 EOF
10131
10132 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10133 else
10134 if test -n "$x_includes"; then
10135 X_CFLAGS="$X_CFLAGS -I$x_includes"
10136 fi
10137
10138 # It would also be nice to do this for all -L options, not just this one.
10139 if test -n "$x_libraries"; then
10140 X_LIBS="$X_LIBS -L$x_libraries"
10141 # For Solaris; some versions of Sun CC require a space after -R and
10142 # others require no space. Words are not sufficient . . . .
10143 case "`(uname -sr) 2>/dev/null`" in
10144 "SunOS 5"*)
10145 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
10146 echo "configure:10147: checking whether -R must be followed by a space" >&5
10147 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
10148 cat > conftest.$ac_ext <<EOF
10149 #line 10150 "configure"
10150 #include "confdefs.h"
10151
10152 int main() {
10153
10154 ; return 0; }
10155 EOF
10156 if { (eval echo configure:10157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10157 rm -rf conftest*
10158 ac_R_nospace=yes
10159 else
10160 echo "configure: failed program was:" >&5
10161 cat conftest.$ac_ext >&5
10162 rm -rf conftest*
10163 ac_R_nospace=no
10164 fi
10165 rm -f conftest*
10166 if test $ac_R_nospace = yes; then
10167 echo "$ac_t""no" 1>&6
10168 X_LIBS="$X_LIBS -R$x_libraries"
10169 else
10170 LIBS="$ac_xsave_LIBS -R $x_libraries"
10171 cat > conftest.$ac_ext <<EOF
10172 #line 10173 "configure"
10173 #include "confdefs.h"
10174
10175 int main() {
10176
10177 ; return 0; }
10178 EOF
10179 if { (eval echo configure:10180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10180 rm -rf conftest*
10181 ac_R_space=yes
10182 else
10183 echo "configure: failed program was:" >&5
10184 cat conftest.$ac_ext >&5
10185 rm -rf conftest*
10186 ac_R_space=no
10187 fi
10188 rm -f conftest*
10189 if test $ac_R_space = yes; then
10190 echo "$ac_t""yes" 1>&6
10191 X_LIBS="$X_LIBS -R $x_libraries"
10192 else
10193 echo "$ac_t""neither works" 1>&6
10194 fi
10195 fi
10196 LIBS="$ac_xsave_LIBS"
10197 esac
10198 fi
10199
10200 # Check for system-dependent libraries X programs must link with.
10201 # Do this before checking for the system-independent R6 libraries
10202 # (-lICE), since we may need -lsocket or whatever for X linking.
10203
10204 if test "$ISC" = yes; then
10205 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10206 else
10207 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10208 # libraries were built with DECnet support. And karl@cs.umb.edu says
10209 # the Alpha needs dnet_stub (dnet does not exist).
10210 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
10211 echo "configure:10212: checking for dnet_ntoa in -ldnet" >&5
10212 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10213 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10214 echo $ac_n "(cached) $ac_c" 1>&6
10215 else
10216 ac_save_LIBS="$LIBS"
10217 LIBS="-ldnet $LIBS"
10218 cat > conftest.$ac_ext <<EOF
10219 #line 10220 "configure"
10220 #include "confdefs.h"
10221 /* Override any gcc2 internal prototype to avoid an error. */
10222 /* We use char because int might match the return type of a gcc2
10223 builtin and then its argument prototype would still apply. */
10224 char dnet_ntoa();
10225
10226 int main() {
10227 dnet_ntoa()
10228 ; return 0; }
10229 EOF
10230 if { (eval echo configure:10231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10231 rm -rf conftest*
10232 eval "ac_cv_lib_$ac_lib_var=yes"
10233 else
10234 echo "configure: failed program was:" >&5
10235 cat conftest.$ac_ext >&5
10236 rm -rf conftest*
10237 eval "ac_cv_lib_$ac_lib_var=no"
10238 fi
10239 rm -f conftest*
10240 LIBS="$ac_save_LIBS"
10241
10242 fi
10243 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10244 echo "$ac_t""yes" 1>&6
10245 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10246 else
10247 echo "$ac_t""no" 1>&6
10248 fi
10249
10250 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10251 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
10252 echo "configure:10253: checking for dnet_ntoa in -ldnet_stub" >&5
10253 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10254 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10255 echo $ac_n "(cached) $ac_c" 1>&6
10256 else
10257 ac_save_LIBS="$LIBS"
10258 LIBS="-ldnet_stub $LIBS"
10259 cat > conftest.$ac_ext <<EOF
10260 #line 10261 "configure"
10261 #include "confdefs.h"
10262 /* Override any gcc2 internal prototype to avoid an error. */
10263 /* We use char because int might match the return type of a gcc2
10264 builtin and then its argument prototype would still apply. */
10265 char dnet_ntoa();
10266
10267 int main() {
10268 dnet_ntoa()
10269 ; return 0; }
10270 EOF
10271 if { (eval echo configure:10272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10272 rm -rf conftest*
10273 eval "ac_cv_lib_$ac_lib_var=yes"
10274 else
10275 echo "configure: failed program was:" >&5
10276 cat conftest.$ac_ext >&5
10277 rm -rf conftest*
10278 eval "ac_cv_lib_$ac_lib_var=no"
10279 fi
10280 rm -f conftest*
10281 LIBS="$ac_save_LIBS"
10282
10283 fi
10284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10285 echo "$ac_t""yes" 1>&6
10286 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10287 else
10288 echo "$ac_t""no" 1>&6
10289 fi
10290
10291 fi
10292
10293 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10294 # to get the SysV transport functions.
10295 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
10296 # needs -lnsl.
10297 # The nsl library prevents programs from opening the X display
10298 # on Irix 5.2, according to dickey@clark.net.
10299 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
10300 echo "configure:10301: checking for gethostbyname" >&5
10301 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10302 echo $ac_n "(cached) $ac_c" 1>&6
10303 else
10304 cat > conftest.$ac_ext <<EOF
10305 #line 10306 "configure"
10306 #include "confdefs.h"
10307 /* System header to define __stub macros and hopefully few prototypes,
10308 which can conflict with char gethostbyname(); below. */
10309 #include <assert.h>
10310 /* Override any gcc2 internal prototype to avoid an error. */
10311 /* We use char because int might match the return type of a gcc2
10312 builtin and then its argument prototype would still apply. */
10313 char gethostbyname();
10314
10315 int main() {
10316
10317 /* The GNU C library defines this for functions which it implements
10318 to always fail with ENOSYS. Some functions are actually named
10319 something starting with __ and the normal name is an alias. */
10320 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10321 choke me
10322 #else
10323 gethostbyname();
10324 #endif
10325
10326 ; return 0; }
10327 EOF
10328 if { (eval echo configure:10329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10329 rm -rf conftest*
10330 eval "ac_cv_func_gethostbyname=yes"
10331 else
10332 echo "configure: failed program was:" >&5
10333 cat conftest.$ac_ext >&5
10334 rm -rf conftest*
10335 eval "ac_cv_func_gethostbyname=no"
10336 fi
10337 rm -f conftest*
10338 fi
10339
10340 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10341 echo "$ac_t""yes" 1>&6
10342 :
10343 else
10344 echo "$ac_t""no" 1>&6
10345 fi
10346
10347 if test $ac_cv_func_gethostbyname = no; then
10348 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
10349 echo "configure:10350: checking for gethostbyname in -lnsl" >&5
10350 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10351 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10352 echo $ac_n "(cached) $ac_c" 1>&6
10353 else
10354 ac_save_LIBS="$LIBS"
10355 LIBS="-lnsl $LIBS"
10356 cat > conftest.$ac_ext <<EOF
10357 #line 10358 "configure"
10358 #include "confdefs.h"
10359 /* Override any gcc2 internal prototype to avoid an error. */
10360 /* We use char because int might match the return type of a gcc2
10361 builtin and then its argument prototype would still apply. */
10362 char gethostbyname();
10363
10364 int main() {
10365 gethostbyname()
10366 ; return 0; }
10367 EOF
10368 if { (eval echo configure:10369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10369 rm -rf conftest*
10370 eval "ac_cv_lib_$ac_lib_var=yes"
10371 else
10372 echo "configure: failed program was:" >&5
10373 cat conftest.$ac_ext >&5
10374 rm -rf conftest*
10375 eval "ac_cv_lib_$ac_lib_var=no"
10376 fi
10377 rm -f conftest*
10378 LIBS="$ac_save_LIBS"
10379
10380 fi
10381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10382 echo "$ac_t""yes" 1>&6
10383 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10384 else
10385 echo "$ac_t""no" 1>&6
10386 fi
10387
10388 fi
10389
10390 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10391 # socket/setsockopt and other routines are undefined under SCO ODT
10392 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10393 # on later versions), says simon@lia.di.epfl.ch: it contains
10394 # gethostby* variants that don't use the nameserver (or something).
10395 # -lsocket must be given before -lnsl if both are needed.
10396 # We assume that if connect needs -lnsl, so does gethostbyname.
10397 echo $ac_n "checking for connect""... $ac_c" 1>&6
10398 echo "configure:10399: checking for connect" >&5
10399 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
10400 echo $ac_n "(cached) $ac_c" 1>&6
10401 else
10402 cat > conftest.$ac_ext <<EOF
10403 #line 10404 "configure"
10404 #include "confdefs.h"
10405 /* System header to define __stub macros and hopefully few prototypes,
10406 which can conflict with char connect(); below. */
10407 #include <assert.h>
10408 /* Override any gcc2 internal prototype to avoid an error. */
10409 /* We use char because int might match the return type of a gcc2
10410 builtin and then its argument prototype would still apply. */
10411 char connect();
10412
10413 int main() {
10414
10415 /* The GNU C library defines this for functions which it implements
10416 to always fail with ENOSYS. Some functions are actually named
10417 something starting with __ and the normal name is an alias. */
10418 #if defined (__stub_connect) || defined (__stub___connect)
10419 choke me
10420 #else
10421 connect();
10422 #endif
10423
10424 ; return 0; }
10425 EOF
10426 if { (eval echo configure:10427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10427 rm -rf conftest*
10428 eval "ac_cv_func_connect=yes"
10429 else
10430 echo "configure: failed program was:" >&5
10431 cat conftest.$ac_ext >&5
10432 rm -rf conftest*
10433 eval "ac_cv_func_connect=no"
10434 fi
10435 rm -f conftest*
10436 fi
10437
10438 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
10439 echo "$ac_t""yes" 1>&6
10440 :
10441 else
10442 echo "$ac_t""no" 1>&6
10443 fi
10444
10445 if test $ac_cv_func_connect = no; then
10446 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
10447 echo "configure:10448: checking for connect in -lsocket" >&5
10448 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
10449 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10450 echo $ac_n "(cached) $ac_c" 1>&6
10451 else
10452 ac_save_LIBS="$LIBS"
10453 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10454 cat > conftest.$ac_ext <<EOF
10455 #line 10456 "configure"
10456 #include "confdefs.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 connect();
10461
10462 int main() {
10463 connect()
10464 ; return 0; }
10465 EOF
10466 if { (eval echo configure:10467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10467 rm -rf conftest*
10468 eval "ac_cv_lib_$ac_lib_var=yes"
10469 else
10470 echo "configure: failed program was:" >&5
10471 cat conftest.$ac_ext >&5
10472 rm -rf conftest*
10473 eval "ac_cv_lib_$ac_lib_var=no"
10474 fi
10475 rm -f conftest*
10476 LIBS="$ac_save_LIBS"
10477
10478 fi
10479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10480 echo "$ac_t""yes" 1>&6
10481 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10482 else
10483 echo "$ac_t""no" 1>&6
10484 fi
10485
10486 fi
10487
10488 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
10489 echo $ac_n "checking for remove""... $ac_c" 1>&6
10490 echo "configure:10491: checking for remove" >&5
10491 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
10492 echo $ac_n "(cached) $ac_c" 1>&6
10493 else
10494 cat > conftest.$ac_ext <<EOF
10495 #line 10496 "configure"
10496 #include "confdefs.h"
10497 /* System header to define __stub macros and hopefully few prototypes,
10498 which can conflict with char remove(); below. */
10499 #include <assert.h>
10500 /* Override any gcc2 internal prototype to avoid an error. */
10501 /* We use char because int might match the return type of a gcc2
10502 builtin and then its argument prototype would still apply. */
10503 char remove();
10504
10505 int main() {
10506
10507 /* The GNU C library defines this for functions which it implements
10508 to always fail with ENOSYS. Some functions are actually named
10509 something starting with __ and the normal name is an alias. */
10510 #if defined (__stub_remove) || defined (__stub___remove)
10511 choke me
10512 #else
10513 remove();
10514 #endif
10515
10516 ; return 0; }
10517 EOF
10518 if { (eval echo configure:10519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10519 rm -rf conftest*
10520 eval "ac_cv_func_remove=yes"
10521 else
10522 echo "configure: failed program was:" >&5
10523 cat conftest.$ac_ext >&5
10524 rm -rf conftest*
10525 eval "ac_cv_func_remove=no"
10526 fi
10527 rm -f conftest*
10528 fi
10529
10530 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
10531 echo "$ac_t""yes" 1>&6
10532 :
10533 else
10534 echo "$ac_t""no" 1>&6
10535 fi
10536
10537 if test $ac_cv_func_remove = no; then
10538 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
10539 echo "configure:10540: checking for remove in -lposix" >&5
10540 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
10541 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10542 echo $ac_n "(cached) $ac_c" 1>&6
10543 else
10544 ac_save_LIBS="$LIBS"
10545 LIBS="-lposix $LIBS"
10546 cat > conftest.$ac_ext <<EOF
10547 #line 10548 "configure"
10548 #include "confdefs.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 remove();
10553
10554 int main() {
10555 remove()
10556 ; return 0; }
10557 EOF
10558 if { (eval echo configure:10559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10559 rm -rf conftest*
10560 eval "ac_cv_lib_$ac_lib_var=yes"
10561 else
10562 echo "configure: failed program was:" >&5
10563 cat conftest.$ac_ext >&5
10564 rm -rf conftest*
10565 eval "ac_cv_lib_$ac_lib_var=no"
10566 fi
10567 rm -f conftest*
10568 LIBS="$ac_save_LIBS"
10569
10570 fi
10571 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10572 echo "$ac_t""yes" 1>&6
10573 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10574 else
10575 echo "$ac_t""no" 1>&6
10576 fi
10577
10578 fi
10579
10580 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10581 echo $ac_n "checking for shmat""... $ac_c" 1>&6
10582 echo "configure:10583: checking for shmat" >&5
10583 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
10584 echo $ac_n "(cached) $ac_c" 1>&6
10585 else
10586 cat > conftest.$ac_ext <<EOF
10587 #line 10588 "configure"
10588 #include "confdefs.h"
10589 /* System header to define __stub macros and hopefully few prototypes,
10590 which can conflict with char shmat(); below. */
10591 #include <assert.h>
10592 /* Override any gcc2 internal prototype to avoid an error. */
10593 /* We use char because int might match the return type of a gcc2
10594 builtin and then its argument prototype would still apply. */
10595 char shmat();
10596
10597 int main() {
10598
10599 /* The GNU C library defines this for functions which it implements
10600 to always fail with ENOSYS. Some functions are actually named
10601 something starting with __ and the normal name is an alias. */
10602 #if defined (__stub_shmat) || defined (__stub___shmat)
10603 choke me
10604 #else
10605 shmat();
10606 #endif
10607
10608 ; return 0; }
10609 EOF
10610 if { (eval echo configure:10611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10611 rm -rf conftest*
10612 eval "ac_cv_func_shmat=yes"
10613 else
10614 echo "configure: failed program was:" >&5
10615 cat conftest.$ac_ext >&5
10616 rm -rf conftest*
10617 eval "ac_cv_func_shmat=no"
10618 fi
10619 rm -f conftest*
10620 fi
10621
10622 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
10623 echo "$ac_t""yes" 1>&6
10624 :
10625 else
10626 echo "$ac_t""no" 1>&6
10627 fi
10628
10629 if test $ac_cv_func_shmat = no; then
10630 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
10631 echo "configure:10632: checking for shmat in -lipc" >&5
10632 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
10633 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10634 echo $ac_n "(cached) $ac_c" 1>&6
10635 else
10636 ac_save_LIBS="$LIBS"
10637 LIBS="-lipc $LIBS"
10638 cat > conftest.$ac_ext <<EOF
10639 #line 10640 "configure"
10640 #include "confdefs.h"
10641 /* Override any gcc2 internal prototype to avoid an error. */
10642 /* We use char because int might match the return type of a gcc2
10643 builtin and then its argument prototype would still apply. */
10644 char shmat();
10645
10646 int main() {
10647 shmat()
10648 ; return 0; }
10649 EOF
10650 if { (eval echo configure:10651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10651 rm -rf conftest*
10652 eval "ac_cv_lib_$ac_lib_var=yes"
10653 else
10654 echo "configure: failed program was:" >&5
10655 cat conftest.$ac_ext >&5
10656 rm -rf conftest*
10657 eval "ac_cv_lib_$ac_lib_var=no"
10658 fi
10659 rm -f conftest*
10660 LIBS="$ac_save_LIBS"
10661
10662 fi
10663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10664 echo "$ac_t""yes" 1>&6
10665 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10666 else
10667 echo "$ac_t""no" 1>&6
10668 fi
10669
10670 fi
10671 fi
10672
10673 # Check for libraries that X11R6 Xt/Xaw programs need.
10674 ac_save_LDFLAGS="$LDFLAGS"
10675 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10676 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10677 # check for ICE first), but we must link in the order -lSM -lICE or
10678 # we get undefined symbols. So assume we have SM if we have ICE.
10679 # These have to be linked with before -lX11, unlike the other
10680 # libraries we check for below, so use a different variable.
10681 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10682 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
10683 echo "configure:10684: checking for IceConnectionNumber in -lICE" >&5
10684 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10686 echo $ac_n "(cached) $ac_c" 1>&6
10687 else
10688 ac_save_LIBS="$LIBS"
10689 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10690 cat > conftest.$ac_ext <<EOF
10691 #line 10692 "configure"
10692 #include "confdefs.h"
10693 /* Override any gcc2 internal prototype to avoid an error. */
10694 /* We use char because int might match the return type of a gcc2
10695 builtin and then its argument prototype would still apply. */
10696 char IceConnectionNumber();
10697
10698 int main() {
10699 IceConnectionNumber()
10700 ; return 0; }
10701 EOF
10702 if { (eval echo configure:10703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10703 rm -rf conftest*
10704 eval "ac_cv_lib_$ac_lib_var=yes"
10705 else
10706 echo "configure: failed program was:" >&5
10707 cat conftest.$ac_ext >&5
10708 rm -rf conftest*
10709 eval "ac_cv_lib_$ac_lib_var=no"
10710 fi
10711 rm -f conftest*
10712 LIBS="$ac_save_LIBS"
10713
10714 fi
10715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10716 echo "$ac_t""yes" 1>&6
10717 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10718 else
10719 echo "$ac_t""no" 1>&6
10720 fi
10721
10722 LDFLAGS="$ac_save_LDFLAGS"
10723
10724 fi
10725
10726 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10727 LDFLAGS="$LDFLAGS $X_LIBS"
10728
10729 if test "$wxUSE_MOTIF" = 1; then
10730 if test "$no_x" = "yes"; then
10731 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10732 fi
10733
10734 GUI_TK_LIBRARY="$X_LIBS"
10735 TOOLKIT_INCLUDE="$X_CFLAGS"
10736 AFMINSTALL=afminstall
10737 COMPILED_X_PROGRAM=0
10738
10739 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
10740 echo "configure:10741: checking for Motif/Lesstif headers" >&5
10741
10742 ac_find_includes=
10743 for ac_dir in $SEARCH_INCLUDE;
10744 do
10745 if test -f "$ac_dir/Xm/Xm.h"; then
10746 ac_find_includes=$ac_dir
10747 break
10748 fi
10749 done
10750
10751 if test "$ac_find_includes" != "" ; then
10752 echo "$ac_t""found $ac_find_includes" 1>&6
10753 else
10754 cat > conftest.$ac_ext <<EOF
10755 #line 10756 "configure"
10756 #include "confdefs.h"
10757
10758 #include <Xm/Xm.h>
10759
10760 int main() {
10761
10762 int version;
10763 version = xmUseVersion;
10764
10765 ; return 0; }
10766 EOF
10767 if { (eval echo configure:10768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10768 rm -rf conftest*
10769
10770 echo "$ac_t""found in default search path" 1>&6
10771 COMPILED_X_PROGRAM=1
10772
10773 else
10774 echo "configure: failed program was:" >&5
10775 cat conftest.$ac_ext >&5
10776 rm -rf conftest*
10777
10778 echo "$ac_t""no" 1>&6
10779 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10780
10781
10782 fi
10783 rm -f conftest*
10784 fi
10785
10786 if test "$COMPILED_X_PROGRAM" = 0; then
10787 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
10788 echo "configure:10789: checking for Motif/Lesstif library" >&5
10789
10790 ac_find_libraries=
10791 for ac_dir in $SEARCH_LIB;
10792 do
10793 for ac_extension in a so sl dylib; do
10794 if test -f "$ac_dir/libXm.$ac_extension"; then
10795 ac_find_libraries=$ac_dir
10796 break 2
10797 fi
10798 done
10799 done
10800
10801 if test "$ac_find_libraries" != "" ; then
10802
10803 ac_path_to_include=$ac_find_includes
10804 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10805 result=$?
10806 if test $result = 0; then
10807 ac_path_to_include=""
10808 else
10809 ac_path_to_include="-I$ac_find_includes"
10810 fi
10811
10812
10813 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10814 result=$?
10815 if test $result = 0; then
10816 ac_path_to_link=""
10817 else
10818 ac_path_to_link="-L$ac_find_libraries"
10819 fi
10820
10821
10822 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10823 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10824 echo "$ac_t""found at $ac_find_libraries" 1>&6
10825 else
10826 cat > conftest.$ac_ext <<EOF
10827 #line 10828 "configure"
10828 #include "confdefs.h"
10829
10830 #include <Xm/Xm.h>
10831
10832 int main() {
10833
10834 int version;
10835 version = xmUseVersion;
10836
10837 ; return 0; }
10838 EOF
10839 if { (eval echo configure:10840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10840 rm -rf conftest*
10841
10842 echo "$ac_t""found in default search path" 1>&6
10843 COMPILED_X_PROGRAM=1
10844
10845 else
10846 echo "configure: failed program was:" >&5
10847 cat conftest.$ac_ext >&5
10848 rm -rf conftest*
10849
10850 echo "$ac_t""no" 1>&6
10851 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10852
10853
10854 fi
10855 rm -f conftest*
10856 fi
10857 fi
10858
10859 xpm_link=""
10860 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
10861 echo "configure:10862: checking for Xpm library" >&5
10862
10863 ac_find_libraries=
10864 for ac_dir in $SEARCH_LIB;
10865 do
10866 for ac_extension in a so sl dylib; do
10867 if test -f "$ac_dir/libXpm.$ac_extension"; then
10868 ac_find_libraries=$ac_dir
10869 break 2
10870 fi
10871 done
10872 done
10873
10874 if test "$ac_find_libraries" != "" ; then
10875
10876 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10877 result=$?
10878 if test $result = 0; then
10879 ac_path_to_link=""
10880 else
10881 ac_path_to_link="-L$ac_find_libraries"
10882 fi
10883
10884 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10885 xpm_link="-lXpm "
10886 cat >> confdefs.h <<\EOF
10887 #define wxHAVE_LIB_XPM 1
10888 EOF
10889
10890 echo "$ac_t""found at $ac_find_libraries" 1>&6
10891 else
10892 cat > conftest.$ac_ext <<EOF
10893 #line 10894 "configure"
10894 #include "confdefs.h"
10895
10896 #include <X11/xpm.h>
10897
10898 int main() {
10899
10900 int version;
10901 version = XpmLibraryVersion();
10902
10903 ; return 0; }
10904 EOF
10905 if { (eval echo configure:10906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10906 rm -rf conftest*
10907
10908 xpm_link="-lXpm "
10909 cat >> confdefs.h <<\EOF
10910 #define wxHAVE_LIB_XPM 1
10911 EOF
10912
10913 echo "$ac_t""found in default search path" 1>&6
10914 COMPILED_X_PROGRAM=0
10915
10916 else
10917 echo "configure: failed program was:" >&5
10918 cat conftest.$ac_ext >&5
10919 rm -rf conftest*
10920
10921 echo "$ac_t""no" 1>&6
10922 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10923
10924
10925 fi
10926 rm -f conftest*
10927 fi
10928
10929 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm $xpm_link -lXmu -lXext -lXt -lX11"
10930 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10931 TOOLKIT=MOTIF
10932 GUIDIST=MOTIF_DIST
10933 fi
10934
10935 if test "$wxUSE_MAC" = 1; then
10936 if test "$wxUSE_PRECOMP" = "yes"; then
10937 CPPFLAGS="${CPPFLAGS} -cpp-precomp"
10938 fi
10939 CPPFLAGS="${CPPFLAGS} -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
10940 CFLAGS="${CFLAGS} -fpascal-strings"
10941 CXXFLAGS="${CXXFLAGS} -fpascal-strings"
10942 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DTARGET_CARBON"
10943
10944 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
10945 TOOLKIT=MAC
10946 GUIDIST=MACX_DIST
10947 fi
10948
10949 if test "$wxUSE_PM" = 1; then
10950 TOOLKIT=PM
10951 GUIDIST=GTK_DIST
10952 fi
10953
10954 if test "$TOOLKIT" = "PM" ; then
10955 TOOLKIT_DIR="os2"
10956 else
10957 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10958 fi
10959
10960 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
10961
10962 if test "$wxUSE_UNIVERSAL" = "yes"; then
10963 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10964 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
10965 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
10966 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
10967 WIDGET_SET=univ
10968 else
10969 ALL_OBJECTS="\$(GUIOBJS)"
10970 fi
10971
10972 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10973
10974 if test "$TOOLKIT" != "MSW"; then
10975 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10976 fi
10977
10978 if test "$wxUSE_HTML" = "yes"; then
10979 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10980 fi
10981
10982 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
10983 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10984 fi
10985 if test "$wxUSE_LIBJPEG" = "yes" ; then
10986 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
10987 fi
10988 if test "$wxUSE_LIBTIFF" = "yes" ; then
10989 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10990 fi
10991 if test "$wxUSE_LIBPNG" = "yes" ; then
10992 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10993 fi
10994 if test "$wxUSE_FREETYPE" = "yes" ; then
10995 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10996 fi
10997
10998 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10999 RPM_SPEC="wx\$(TOOLKIT).spec"
11000
11001 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
11002 DISTDIR="wx\$(TOOLKIT)"
11003 else
11004 USE_GUI=0
11005
11006 TOOLKIT_DIR="base"
11007
11008 if test "$USE_WIN32" = 1 ; then
11009 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
11010 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
11011
11012 TOOLKIT="MSW"
11013 else
11014 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
11015 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
11016 fi
11017
11018 PORT_FILES="\${top_srcdir}/src/files.lst"
11019 RPM_FILES="src/rpmfiles.lst"
11020 RPM_SPEC="wxBase.spec"
11021
11022 GUIDIST="BASE_DIST"
11023 DISTDIR="wxBase"
11024 fi
11025
11026 if test "x$REGEX_INCLUDE" != "x" ; then
11027 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
11028 fi
11029 if test "$wxUSE_ZLIB" = "yes" ; then
11030 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
11031 fi
11032
11033 if test "$wxUSE_OPENGL" = "yes"; then
11034 if test "$wxUSE_MAC" = 1; then
11035 cat >> confdefs.h <<\EOF
11036 #define wxUSE_OPENGL 1
11037 EOF
11038
11039 cat >> confdefs.h <<\EOF
11040 #define wxUSE_GLCANVAS 1
11041 EOF
11042
11043 OPENGL_LIBS="-framework OpenGL -framework AGL"
11044 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
11045 else
11046 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11047 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
11048 echo "configure:11049: checking for GL/gl.h" >&5
11049 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11050 echo $ac_n "(cached) $ac_c" 1>&6
11051 else
11052 cat > conftest.$ac_ext <<EOF
11053 #line 11054 "configure"
11054 #include "confdefs.h"
11055 #include <GL/gl.h>
11056 EOF
11057 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11058 { (eval echo configure:11059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11059 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11060 if test -z "$ac_err"; then
11061 rm -rf conftest*
11062 eval "ac_cv_header_$ac_safe=yes"
11063 else
11064 echo "$ac_err" >&5
11065 echo "configure: failed program was:" >&5
11066 cat conftest.$ac_ext >&5
11067 rm -rf conftest*
11068 eval "ac_cv_header_$ac_safe=no"
11069 fi
11070 rm -f conftest*
11071 fi
11072 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11073 echo "$ac_t""yes" 1>&6
11074
11075 cat >> confdefs.h <<\EOF
11076 #define wxUSE_OPENGL 1
11077 EOF
11078
11079 cat >> confdefs.h <<\EOF
11080 #define wxUSE_GLCANVAS 1
11081 EOF
11082
11083 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
11084 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
11085 echo "configure:11086: checking for glFlush in -lGL" >&5
11086 ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
11087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11088 echo $ac_n "(cached) $ac_c" 1>&6
11089 else
11090 ac_save_LIBS="$LIBS"
11091 LIBS="-lGL $LIBS"
11092 cat > conftest.$ac_ext <<EOF
11093 #line 11094 "configure"
11094 #include "confdefs.h"
11095 /* Override any gcc2 internal prototype to avoid an error. */
11096 /* We use char because int might match the return type of a gcc2
11097 builtin and then its argument prototype would still apply. */
11098 char glFlush();
11099
11100 int main() {
11101 glFlush()
11102 ; return 0; }
11103 EOF
11104 if { (eval echo configure:11105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11105 rm -rf conftest*
11106 eval "ac_cv_lib_$ac_lib_var=yes"
11107 else
11108 echo "configure: failed program was:" >&5
11109 cat conftest.$ac_ext >&5
11110 rm -rf conftest*
11111 eval "ac_cv_lib_$ac_lib_var=no"
11112 fi
11113 rm -f conftest*
11114 LIBS="$ac_save_LIBS"
11115
11116 fi
11117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11118 echo "$ac_t""yes" 1>&6
11119
11120 OPENGL_LIBS="-lGL -lGLU"
11121
11122 else
11123 echo "$ac_t""no" 1>&6
11124
11125 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
11126 echo "configure:11127: checking for glFlush in -lMesaGL" >&5
11127 ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
11128 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11129 echo $ac_n "(cached) $ac_c" 1>&6
11130 else
11131 ac_save_LIBS="$LIBS"
11132 LIBS="-lMesaGL $LIBS"
11133 cat > conftest.$ac_ext <<EOF
11134 #line 11135 "configure"
11135 #include "confdefs.h"
11136 /* Override any gcc2 internal prototype to avoid an error. */
11137 /* We use char because int might match the return type of a gcc2
11138 builtin and then its argument prototype would still apply. */
11139 char glFlush();
11140
11141 int main() {
11142 glFlush()
11143 ; return 0; }
11144 EOF
11145 if { (eval echo configure:11146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11146 rm -rf conftest*
11147 eval "ac_cv_lib_$ac_lib_var=yes"
11148 else
11149 echo "configure: failed program was:" >&5
11150 cat conftest.$ac_ext >&5
11151 rm -rf conftest*
11152 eval "ac_cv_lib_$ac_lib_var=no"
11153 fi
11154 rm -f conftest*
11155 LIBS="$ac_save_LIBS"
11156
11157 fi
11158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11159 echo "$ac_t""yes" 1>&6
11160
11161 OPENGL_LIBS="-lMesaGL -lMesaGLU"
11162
11163 else
11164 echo "$ac_t""no" 1>&6
11165 fi
11166
11167
11168 fi
11169
11170
11171 else
11172 echo "$ac_t""no" 1>&6
11173 wxUSE_OPENGL=0
11174 fi
11175
11176 fi
11177 fi
11178
11179 if test -z "$TOOLKIT_VPATH" ; then
11180 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
11181 fi
11182
11183 if test -n "$TOOLKIT" ; then
11184 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
11185 fi
11186
11187 if test "$wxUSE_CYGWIN" = 1 ; then
11188 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
11189 fi
11190
11191 lib_debug_suffix=
11192 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
11193 lib_debug_suffix=d
11194 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}d"
11195 fi
11196
11197 TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}-${WX_RELEASE}"
11198 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}_gl-${WX_RELEASE}"
11199
11200 if test "$cross_compiling" = "yes"; then
11201 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
11202 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
11203 fi
11204
11205 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
11206 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
11207
11208 WXCONFIG_LIBS="-l${WX_LIBRARY}"
11209
11210 if test "$wxUSE_OPENGL" = "yes"; then
11211 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} $OPENGL_LIBS"
11212 fi
11213
11214 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
11215 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
11216
11217 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11218 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11219
11220 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
11221 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
11222 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
11223 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
11224
11225 WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
11226
11227
11228
11229 if test "$wxUSE_SHARED" = "yes"; then
11230
11231 if test "$wxUSE_OPENGL" = "yes"; then
11232 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11233 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
11234 else
11235 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11236 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
11237 fi
11238
11239 if test "$GCC" = "yes"; then
11240 PIC_FLAG="-fPIC"
11241 fi
11242
11243 SHARED_LD="${CXX} -shared -o"
11244
11245 case "${host}" in
11246 *-hp-hpux* )
11247 if test "$GCC" != "yes"; then
11248 LDFLAGS="-L/usr/lib"
11249
11250 SHARED_LD="${CXX} -b -o"
11251 PIC_FLAG="+Z"
11252 fi
11253
11254 if test "$wxUSE_OPENGL" = "yes"; then
11255 WX_ALL_INSTALLED="preinstall_gl"
11256 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
11257 else
11258 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
11259 fi
11260 ;;
11261
11262 *-*-linux* )
11263 if test "$GCC" != "yes"; then
11264 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
11265 echo "configure:11266: checking for Intel compiler" >&5
11266 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
11267 echo $ac_n "(cached) $ac_c" 1>&6
11268 else
11269
11270 cat > conftest.$ac_ext <<EOF
11271 #line 11272 "configure"
11272 #include "confdefs.h"
11273
11274 int main() {
11275
11276 #ifndef __INTEL_COMPILER
11277 #error Not icc
11278 #endif
11279
11280 ; return 0; }
11281 EOF
11282 if { (eval echo configure:11283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11283 rm -rf conftest*
11284 wx_cv_prog_icc=yes
11285 else
11286 echo "configure: failed program was:" >&5
11287 cat conftest.$ac_ext >&5
11288 rm -rf conftest*
11289 wx_cv_prog_icc=no
11290
11291 fi
11292 rm -f conftest*
11293
11294 fi
11295
11296 echo "$ac_t""$wx_cv_prog_icc" 1>&6
11297 if test "$wx_cv_prog_icc" = "yes"; then
11298 PIC_FLAG="-KPIC"
11299 fi
11300 fi
11301
11302 if test "$wxUSE_SONAME" = "yes" ; then
11303 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
11304 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
11305 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
11306 fi
11307 ;;
11308
11309 *-*-solaris2* )
11310 if test "$GCC" = yes ; then
11311 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
11312 else
11313 SHARED_LD="${CXX} -G -o"
11314 PIC_FLAG="-KPIC"
11315 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
11316 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}"
11317 fi
11318 ;;
11319
11320 *-*-darwin* )
11321 CFLAGS="${CFLAGS} -fno-common"
11322 CXXFLAGS="${CXXFLAGS} -fno-common"
11323 SHARED_LD="${CXX} -dynamiclib -o"
11324 PIC_FLAG="-dynamic -fPIC"
11325 ;;
11326
11327 *-*-aix* )
11328 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
11329 ;;
11330
11331 *-*-cygwin* | *-*-mingw32* )
11332 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_NAME_STATIC} -o"
11333 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXUSINGDLL=1"
11334 WXMSW_DLL_DEFINES="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
11335
11336 if test "$wxUSE_OPENGL" = "yes"; then
11337 WX_ALL_INSTALLED="preinstall_gl"
11338 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
11339 else
11340 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
11341 fi
11342 PIC_FLAG=
11343 ;;
11344
11345 *-pc-os2_emx )
11346 wxUSE_SHARED=no
11347 ;;
11348
11349 *-*-beos* )
11350 SHARED_LD="${LD} -shared -o"
11351 ;;
11352
11353 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
11354 *-*-sunos4* | \
11355 *-*-irix5* | *-*-irix6* | \
11356 *-*-osf* | \
11357 *-*-dgux5* | \
11358 *-*-sysv5* )
11359 ;;
11360
11361 *)
11362 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
11363 esac
11364
11365 if test "x$WX_TARGET_LIBRARY" = "x"; then
11366 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
11367 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
11368 fi
11369
11370 WX_TARGET_LIBRARY_TYPE="so"
11371 fi
11372
11373 if test "$wxUSE_SHARED" = "no"; then
11374
11375 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
11376 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11377 fi
11378
11379 if test "$wxUSE_OPENGL" = "yes"; then
11380 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
11381 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
11382 else
11383 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
11384 fi
11385
11386 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11387 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
11388
11389 WX_TARGET_LIBRARY_TYPE="a"
11390 fi
11391
11392 if test "$wxUSE_MAC" = 1; then
11393 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
11394 # Extract the first word of "Rez", so it can be a program name with args.
11395 set dummy Rez; ac_word=$2
11396 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11397 echo "configure:11398: checking for $ac_word" >&5
11398 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
11399 echo $ac_n "(cached) $ac_c" 1>&6
11400 else
11401 if test -n "$RESCOMP"; then
11402 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
11403 else
11404 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11405 ac_dummy="$PATH"
11406 for ac_dir in $ac_dummy; do
11407 test -z "$ac_dir" && ac_dir=.
11408 if test -f $ac_dir/$ac_word; then
11409 ac_cv_prog_RESCOMP="Rez"
11410 break
11411 fi
11412 done
11413 IFS="$ac_save_ifs"
11414 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
11415 fi
11416 fi
11417 RESCOMP="$ac_cv_prog_RESCOMP"
11418 if test -n "$RESCOMP"; then
11419 echo "$ac_t""$RESCOMP" 1>&6
11420 else
11421 echo "$ac_t""no" 1>&6
11422 fi
11423
11424 # Extract the first word of "Derez", so it can be a program name with args.
11425 set dummy Derez; ac_word=$2
11426 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11427 echo "configure:11428: checking for $ac_word" >&5
11428 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
11429 echo $ac_n "(cached) $ac_c" 1>&6
11430 else
11431 if test -n "$DEREZ"; then
11432 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
11433 else
11434 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11435 ac_dummy="$PATH"
11436 for ac_dir in $ac_dummy; do
11437 test -z "$ac_dir" && ac_dir=.
11438 if test -f $ac_dir/$ac_word; then
11439 ac_cv_prog_DEREZ="Derez"
11440 break
11441 fi
11442 done
11443 IFS="$ac_save_ifs"
11444 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
11445 fi
11446 fi
11447 DEREZ="$ac_cv_prog_DEREZ"
11448 if test -n "$DEREZ"; then
11449 echo "$ac_t""$DEREZ" 1>&6
11450 else
11451 echo "$ac_t""no" 1>&6
11452 fi
11453
11454 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
11455 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
11456 fi
11457
11458
11459 if test "$wxUSE_MAC" != 1; then
11460 for ac_hdr in strings.h
11461 do
11462 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11463 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11464 echo "configure:11465: checking for $ac_hdr" >&5
11465 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11466 echo $ac_n "(cached) $ac_c" 1>&6
11467 else
11468 cat > conftest.$ac_ext <<EOF
11469 #line 11470 "configure"
11470 #include "confdefs.h"
11471 #include <$ac_hdr>
11472 EOF
11473 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11474 { (eval echo configure:11475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11475 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11476 if test -z "$ac_err"; then
11477 rm -rf conftest*
11478 eval "ac_cv_header_$ac_safe=yes"
11479 else
11480 echo "$ac_err" >&5
11481 echo "configure: failed program was:" >&5
11482 cat conftest.$ac_ext >&5
11483 rm -rf conftest*
11484 eval "ac_cv_header_$ac_safe=no"
11485 fi
11486 rm -f conftest*
11487 fi
11488 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11489 echo "$ac_t""yes" 1>&6
11490 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11491 cat >> confdefs.h <<EOF
11492 #define $ac_tr_hdr 1
11493 EOF
11494
11495 else
11496 echo "$ac_t""no" 1>&6
11497 fi
11498 done
11499
11500 fi
11501
11502 for ac_hdr in stdlib.h
11503 do
11504 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11505 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11506 echo "configure:11507: checking for $ac_hdr" >&5
11507 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11508 echo $ac_n "(cached) $ac_c" 1>&6
11509 else
11510 cat > conftest.$ac_ext <<EOF
11511 #line 11512 "configure"
11512 #include "confdefs.h"
11513 #include <$ac_hdr>
11514 EOF
11515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11516 { (eval echo configure:11517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11518 if test -z "$ac_err"; then
11519 rm -rf conftest*
11520 eval "ac_cv_header_$ac_safe=yes"
11521 else
11522 echo "$ac_err" >&5
11523 echo "configure: failed program was:" >&5
11524 cat conftest.$ac_ext >&5
11525 rm -rf conftest*
11526 eval "ac_cv_header_$ac_safe=no"
11527 fi
11528 rm -f conftest*
11529 fi
11530 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11531 echo "$ac_t""yes" 1>&6
11532 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11533 cat >> confdefs.h <<EOF
11534 #define $ac_tr_hdr 1
11535 EOF
11536
11537 else
11538 echo "$ac_t""no" 1>&6
11539 fi
11540 done
11541
11542 for ac_hdr in unistd.h
11543 do
11544 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11545 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11546 echo "configure:11547: checking for $ac_hdr" >&5
11547 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11548 echo $ac_n "(cached) $ac_c" 1>&6
11549 else
11550 cat > conftest.$ac_ext <<EOF
11551 #line 11552 "configure"
11552 #include "confdefs.h"
11553 #include <$ac_hdr>
11554 EOF
11555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11556 { (eval echo configure:11557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11558 if test -z "$ac_err"; then
11559 rm -rf conftest*
11560 eval "ac_cv_header_$ac_safe=yes"
11561 else
11562 echo "$ac_err" >&5
11563 echo "configure: failed program was:" >&5
11564 cat conftest.$ac_ext >&5
11565 rm -rf conftest*
11566 eval "ac_cv_header_$ac_safe=no"
11567 fi
11568 rm -f conftest*
11569 fi
11570 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11571 echo "$ac_t""yes" 1>&6
11572 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11573 cat >> confdefs.h <<EOF
11574 #define $ac_tr_hdr 1
11575 EOF
11576
11577 else
11578 echo "$ac_t""no" 1>&6
11579 fi
11580 done
11581
11582 for ac_hdr in wchar.h
11583 do
11584 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11585 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11586 echo "configure:11587: checking for $ac_hdr" >&5
11587 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11588 echo $ac_n "(cached) $ac_c" 1>&6
11589 else
11590 cat > conftest.$ac_ext <<EOF
11591 #line 11592 "configure"
11592 #include "confdefs.h"
11593 #include <$ac_hdr>
11594 EOF
11595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11596 { (eval echo configure:11597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11597 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11598 if test -z "$ac_err"; then
11599 rm -rf conftest*
11600 eval "ac_cv_header_$ac_safe=yes"
11601 else
11602 echo "$ac_err" >&5
11603 echo "configure: failed program was:" >&5
11604 cat conftest.$ac_ext >&5
11605 rm -rf conftest*
11606 eval "ac_cv_header_$ac_safe=no"
11607 fi
11608 rm -f conftest*
11609 fi
11610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11611 echo "$ac_t""yes" 1>&6
11612 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11613 cat >> confdefs.h <<EOF
11614 #define $ac_tr_hdr 1
11615 EOF
11616
11617 else
11618 echo "$ac_t""no" 1>&6
11619 fi
11620 done
11621
11622 for ac_hdr in wcstr.h
11623 do
11624 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11625 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11626 echo "configure:11627: checking for $ac_hdr" >&5
11627 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11628 echo $ac_n "(cached) $ac_c" 1>&6
11629 else
11630 cat > conftest.$ac_ext <<EOF
11631 #line 11632 "configure"
11632 #include "confdefs.h"
11633 #include <$ac_hdr>
11634 EOF
11635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11636 { (eval echo configure:11637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11637 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11638 if test -z "$ac_err"; then
11639 rm -rf conftest*
11640 eval "ac_cv_header_$ac_safe=yes"
11641 else
11642 echo "$ac_err" >&5
11643 echo "configure: failed program was:" >&5
11644 cat conftest.$ac_ext >&5
11645 rm -rf conftest*
11646 eval "ac_cv_header_$ac_safe=no"
11647 fi
11648 rm -f conftest*
11649 fi
11650 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11651 echo "$ac_t""yes" 1>&6
11652 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11653 cat >> confdefs.h <<EOF
11654 #define $ac_tr_hdr 1
11655 EOF
11656
11657 else
11658 echo "$ac_t""no" 1>&6
11659 fi
11660 done
11661
11662 for ac_hdr in fnmatch.h
11663 do
11664 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11665 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11666 echo "configure:11667: checking for $ac_hdr" >&5
11667 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11668 echo $ac_n "(cached) $ac_c" 1>&6
11669 else
11670 cat > conftest.$ac_ext <<EOF
11671 #line 11672 "configure"
11672 #include "confdefs.h"
11673 #include <$ac_hdr>
11674 EOF
11675 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11676 { (eval echo configure:11677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11677 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11678 if test -z "$ac_err"; then
11679 rm -rf conftest*
11680 eval "ac_cv_header_$ac_safe=yes"
11681 else
11682 echo "$ac_err" >&5
11683 echo "configure: failed program was:" >&5
11684 cat conftest.$ac_ext >&5
11685 rm -rf conftest*
11686 eval "ac_cv_header_$ac_safe=no"
11687 fi
11688 rm -f conftest*
11689 fi
11690 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11691 echo "$ac_t""yes" 1>&6
11692 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11693 cat >> confdefs.h <<EOF
11694 #define $ac_tr_hdr 1
11695 EOF
11696
11697 else
11698 echo "$ac_t""no" 1>&6
11699 fi
11700 done
11701
11702 for ac_hdr in iconv.h
11703 do
11704 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11705 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11706 echo "configure:11707: checking for $ac_hdr" >&5
11707 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11708 echo $ac_n "(cached) $ac_c" 1>&6
11709 else
11710 cat > conftest.$ac_ext <<EOF
11711 #line 11712 "configure"
11712 #include "confdefs.h"
11713 #include <$ac_hdr>
11714 EOF
11715 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11716 { (eval echo configure:11717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11717 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11718 if test -z "$ac_err"; then
11719 rm -rf conftest*
11720 eval "ac_cv_header_$ac_safe=yes"
11721 else
11722 echo "$ac_err" >&5
11723 echo "configure: failed program was:" >&5
11724 cat conftest.$ac_ext >&5
11725 rm -rf conftest*
11726 eval "ac_cv_header_$ac_safe=no"
11727 fi
11728 rm -f conftest*
11729 fi
11730 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11731 echo "$ac_t""yes" 1>&6
11732 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11733 cat >> confdefs.h <<EOF
11734 #define $ac_tr_hdr 1
11735 EOF
11736
11737 else
11738 echo "$ac_t""no" 1>&6
11739 fi
11740 done
11741
11742 for ac_hdr in langinfo.h
11743 do
11744 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11745 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11746 echo "configure:11747: checking for $ac_hdr" >&5
11747 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11748 echo $ac_n "(cached) $ac_c" 1>&6
11749 else
11750 cat > conftest.$ac_ext <<EOF
11751 #line 11752 "configure"
11752 #include "confdefs.h"
11753 #include <$ac_hdr>
11754 EOF
11755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11756 { (eval echo configure:11757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11758 if test -z "$ac_err"; then
11759 rm -rf conftest*
11760 eval "ac_cv_header_$ac_safe=yes"
11761 else
11762 echo "$ac_err" >&5
11763 echo "configure: failed program was:" >&5
11764 cat conftest.$ac_ext >&5
11765 rm -rf conftest*
11766 eval "ac_cv_header_$ac_safe=no"
11767 fi
11768 rm -f conftest*
11769 fi
11770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11771 echo "$ac_t""yes" 1>&6
11772 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11773 cat >> confdefs.h <<EOF
11774 #define $ac_tr_hdr 1
11775 EOF
11776
11777 else
11778 echo "$ac_t""no" 1>&6
11779 fi
11780 done
11781
11782
11783 if test "$wxUSE_GUI" = "yes"; then
11784 if test "$wxUSE_UNIX" = "yes"; then
11785 for ac_hdr in X11/XKBlib.h
11786 do
11787 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11788 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11789 echo "configure:11790: checking for $ac_hdr" >&5
11790 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11791 echo $ac_n "(cached) $ac_c" 1>&6
11792 else
11793 cat > conftest.$ac_ext <<EOF
11794 #line 11795 "configure"
11795 #include "confdefs.h"
11796 #include <$ac_hdr>
11797 EOF
11798 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11799 { (eval echo configure:11800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11800 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11801 if test -z "$ac_err"; then
11802 rm -rf conftest*
11803 eval "ac_cv_header_$ac_safe=yes"
11804 else
11805 echo "$ac_err" >&5
11806 echo "configure: failed program was:" >&5
11807 cat conftest.$ac_ext >&5
11808 rm -rf conftest*
11809 eval "ac_cv_header_$ac_safe=no"
11810 fi
11811 rm -f conftest*
11812 fi
11813 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11814 echo "$ac_t""yes" 1>&6
11815 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11816 cat >> confdefs.h <<EOF
11817 #define $ac_tr_hdr 1
11818 EOF
11819
11820 else
11821 echo "$ac_t""no" 1>&6
11822 fi
11823 done
11824
11825 fi
11826 fi
11827
11828
11829 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
11830 echo "configure:11831: checking for ANSI C header files" >&5
11831 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11832 echo $ac_n "(cached) $ac_c" 1>&6
11833 else
11834 cat > conftest.$ac_ext <<EOF
11835 #line 11836 "configure"
11836 #include "confdefs.h"
11837 #include <stdlib.h>
11838 #include <stdarg.h>
11839 #include <string.h>
11840 #include <float.h>
11841 EOF
11842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11843 { (eval echo configure:11844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11845 if test -z "$ac_err"; then
11846 rm -rf conftest*
11847 ac_cv_header_stdc=yes
11848 else
11849 echo "$ac_err" >&5
11850 echo "configure: failed program was:" >&5
11851 cat conftest.$ac_ext >&5
11852 rm -rf conftest*
11853 ac_cv_header_stdc=no
11854 fi
11855 rm -f conftest*
11856
11857 if test $ac_cv_header_stdc = yes; then
11858 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11859 cat > conftest.$ac_ext <<EOF
11860 #line 11861 "configure"
11861 #include "confdefs.h"
11862 #include <string.h>
11863 EOF
11864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11865 egrep "memchr" >/dev/null 2>&1; then
11866 :
11867 else
11868 rm -rf conftest*
11869 ac_cv_header_stdc=no
11870 fi
11871 rm -f conftest*
11872
11873 fi
11874
11875 if test $ac_cv_header_stdc = yes; then
11876 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11877 cat > conftest.$ac_ext <<EOF
11878 #line 11879 "configure"
11879 #include "confdefs.h"
11880 #include <stdlib.h>
11881 EOF
11882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11883 egrep "free" >/dev/null 2>&1; then
11884 :
11885 else
11886 rm -rf conftest*
11887 ac_cv_header_stdc=no
11888 fi
11889 rm -f conftest*
11890
11891 fi
11892
11893 if test $ac_cv_header_stdc = yes; then
11894 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11895 if test "$cross_compiling" = yes; then
11896 :
11897 else
11898 cat > conftest.$ac_ext <<EOF
11899 #line 11900 "configure"
11900 #include "confdefs.h"
11901 #include <ctype.h>
11902 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11903 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11904 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11905 int main () { int i; for (i = 0; i < 256; i++)
11906 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11907 exit (0); }
11908
11909 EOF
11910 if { (eval echo configure:11911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11911 then
11912 :
11913 else
11914 echo "configure: failed program was:" >&5
11915 cat conftest.$ac_ext >&5
11916 rm -fr conftest*
11917 ac_cv_header_stdc=no
11918 fi
11919 rm -fr conftest*
11920 fi
11921
11922 fi
11923 fi
11924
11925 echo "$ac_t""$ac_cv_header_stdc" 1>&6
11926 if test $ac_cv_header_stdc = yes; then
11927 cat >> confdefs.h <<\EOF
11928 #define STDC_HEADERS 1
11929 EOF
11930
11931 fi
11932
11933 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
11934 echo "configure:11935: checking for mode_t" >&5
11935 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11936 echo $ac_n "(cached) $ac_c" 1>&6
11937 else
11938 cat > conftest.$ac_ext <<EOF
11939 #line 11940 "configure"
11940 #include "confdefs.h"
11941 #include <sys/types.h>
11942 #if STDC_HEADERS
11943 #include <stdlib.h>
11944 #include <stddef.h>
11945 #endif
11946 EOF
11947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11948 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11949 rm -rf conftest*
11950 ac_cv_type_mode_t=yes
11951 else
11952 rm -rf conftest*
11953 ac_cv_type_mode_t=no
11954 fi
11955 rm -f conftest*
11956
11957 fi
11958 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11959 if test $ac_cv_type_mode_t = no; then
11960 cat >> confdefs.h <<\EOF
11961 #define mode_t int
11962 EOF
11963
11964 fi
11965
11966 echo $ac_n "checking for off_t""... $ac_c" 1>&6
11967 echo "configure:11968: checking for off_t" >&5
11968 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11969 echo $ac_n "(cached) $ac_c" 1>&6
11970 else
11971 cat > conftest.$ac_ext <<EOF
11972 #line 11973 "configure"
11973 #include "confdefs.h"
11974 #include <sys/types.h>
11975 #if STDC_HEADERS
11976 #include <stdlib.h>
11977 #include <stddef.h>
11978 #endif
11979 EOF
11980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11981 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11982 rm -rf conftest*
11983 ac_cv_type_off_t=yes
11984 else
11985 rm -rf conftest*
11986 ac_cv_type_off_t=no
11987 fi
11988 rm -f conftest*
11989
11990 fi
11991 echo "$ac_t""$ac_cv_type_off_t" 1>&6
11992 if test $ac_cv_type_off_t = no; then
11993 cat >> confdefs.h <<\EOF
11994 #define off_t long
11995 EOF
11996
11997 fi
11998
11999 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
12000 echo "configure:12001: checking for pid_t" >&5
12001 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
12002 echo $ac_n "(cached) $ac_c" 1>&6
12003 else
12004 cat > conftest.$ac_ext <<EOF
12005 #line 12006 "configure"
12006 #include "confdefs.h"
12007 #include <sys/types.h>
12008 #if STDC_HEADERS
12009 #include <stdlib.h>
12010 #include <stddef.h>
12011 #endif
12012 EOF
12013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12014 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12015 rm -rf conftest*
12016 ac_cv_type_pid_t=yes
12017 else
12018 rm -rf conftest*
12019 ac_cv_type_pid_t=no
12020 fi
12021 rm -f conftest*
12022
12023 fi
12024 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
12025 if test $ac_cv_type_pid_t = no; then
12026 cat >> confdefs.h <<\EOF
12027 #define pid_t int
12028 EOF
12029
12030 fi
12031
12032 echo $ac_n "checking for size_t""... $ac_c" 1>&6
12033 echo "configure:12034: checking for size_t" >&5
12034 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
12035 echo $ac_n "(cached) $ac_c" 1>&6
12036 else
12037 cat > conftest.$ac_ext <<EOF
12038 #line 12039 "configure"
12039 #include "confdefs.h"
12040 #include <sys/types.h>
12041 #if STDC_HEADERS
12042 #include <stdlib.h>
12043 #include <stddef.h>
12044 #endif
12045 EOF
12046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12047 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12048 rm -rf conftest*
12049 ac_cv_type_size_t=yes
12050 else
12051 rm -rf conftest*
12052 ac_cv_type_size_t=no
12053 fi
12054 rm -f conftest*
12055
12056 fi
12057 echo "$ac_t""$ac_cv_type_size_t" 1>&6
12058 if test $ac_cv_type_size_t = no; then
12059 cat >> confdefs.h <<\EOF
12060 #define size_t unsigned
12061 EOF
12062
12063 fi
12064
12065 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
12066 echo "configure:12067: checking for uid_t in sys/types.h" >&5
12067 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
12068 echo $ac_n "(cached) $ac_c" 1>&6
12069 else
12070 cat > conftest.$ac_ext <<EOF
12071 #line 12072 "configure"
12072 #include "confdefs.h"
12073 #include <sys/types.h>
12074 EOF
12075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12076 egrep "uid_t" >/dev/null 2>&1; then
12077 rm -rf conftest*
12078 ac_cv_type_uid_t=yes
12079 else
12080 rm -rf conftest*
12081 ac_cv_type_uid_t=no
12082 fi
12083 rm -f conftest*
12084
12085 fi
12086
12087 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
12088 if test $ac_cv_type_uid_t = no; then
12089 cat >> confdefs.h <<\EOF
12090 #define uid_t int
12091 EOF
12092
12093 cat >> confdefs.h <<\EOF
12094 #define gid_t int
12095 EOF
12096
12097 fi
12098
12099
12100 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
12101 echo "configure:12102: checking for wchar_t" >&5
12102 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
12103 echo $ac_n "(cached) $ac_c" 1>&6
12104 else
12105
12106 cat > conftest.$ac_ext <<EOF
12107 #line 12108 "configure"
12108 #include "confdefs.h"
12109 #include <wchar.h>
12110 int main() {
12111
12112 wchar_t wc, *ws;
12113 wc = L'a';
12114 ws = L"Hello, world!";
12115
12116 ; return 0; }
12117 EOF
12118 if { (eval echo configure:12119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12119 rm -rf conftest*
12120 wx_cv_type_wchar_t=yes
12121 else
12122 echo "configure: failed program was:" >&5
12123 cat conftest.$ac_ext >&5
12124 rm -rf conftest*
12125 cat > conftest.$ac_ext <<EOF
12126 #line 12127 "configure"
12127 #include "confdefs.h"
12128 #include <stdlib.h>
12129 int main() {
12130
12131 wchar_t wc, *ws;
12132 wc = L'a';
12133 ws = L"Hello, world!";
12134
12135 ; return 0; }
12136 EOF
12137 if { (eval echo configure:12138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12138 rm -rf conftest*
12139 wx_cv_type_wchar_t=yes
12140 else
12141 echo "configure: failed program was:" >&5
12142 cat conftest.$ac_ext >&5
12143 rm -rf conftest*
12144 wx_cv_type_wchar_t=no
12145 fi
12146 rm -f conftest*
12147
12148 fi
12149 rm -f conftest*
12150
12151 fi
12152
12153 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
12154
12155 if test "$wx_cv_type_wchar_t" = "yes"; then
12156 cat >> confdefs.h <<\EOF
12157 #define wxUSE_WCHAR_T 1
12158 EOF
12159
12160 fi
12161
12162
12163 ac_ext=C
12164 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12165 ac_cpp='$CXXCPP $CPPFLAGS'
12166 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12167 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12168 cross_compiling=$ac_cv_prog_cxx_cross
12169
12170 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
12171 echo "configure:12172: checking if size_t is unsigned int" >&5
12172 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
12173 echo $ac_n "(cached) $ac_c" 1>&6
12174 else
12175 cat > conftest.$ac_ext <<EOF
12176 #line 12177 "configure"
12177 #include "confdefs.h"
12178 #include <stddef.h>
12179 int main() {
12180
12181 return 0; }
12182
12183 struct Foo { void foo(size_t); void foo(unsigned int); };
12184
12185 int bar() {
12186
12187 ; return 0; }
12188 EOF
12189 if { (eval echo configure:12190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12190 rm -rf conftest*
12191 wx_cv_size_t_is_uint=no
12192 else
12193 echo "configure: failed program was:" >&5
12194 cat conftest.$ac_ext >&5
12195 rm -rf conftest*
12196 wx_cv_size_t_is_uint=yes
12197
12198 fi
12199 rm -f conftest*
12200
12201 fi
12202
12203 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
12204
12205 if test "$wx_cv_size_t_is_uint" = "yes"; then
12206 cat >> confdefs.h <<\EOF
12207 #define wxSIZE_T_IS_UINT 1
12208 EOF
12209
12210 else
12211 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
12212 echo "configure:12213: checking if size_t is unsigned long" >&5
12213 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
12214 echo $ac_n "(cached) $ac_c" 1>&6
12215 else
12216 cat > conftest.$ac_ext <<EOF
12217 #line 12218 "configure"
12218 #include "confdefs.h"
12219 #include <stddef.h>
12220 int main() {
12221
12222 return 0; }
12223
12224 struct Foo { void foo(size_t); void foo(unsigned long); };
12225
12226 int bar() {
12227
12228 ; return 0; }
12229 EOF
12230 if { (eval echo configure:12231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12231 rm -rf conftest*
12232 wx_cv_size_t_is_ulong=no
12233 else
12234 echo "configure: failed program was:" >&5
12235 cat conftest.$ac_ext >&5
12236 rm -rf conftest*
12237 wx_cv_size_t_is_ulong=yes
12238
12239 fi
12240 rm -f conftest*
12241
12242 fi
12243
12244 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
12245
12246 if test "$wx_cv_size_t_is_ulong" = "yes"; then
12247 cat >> confdefs.h <<\EOF
12248 #define wxSIZE_T_IS_ULONG 1
12249 EOF
12250
12251 fi
12252 fi
12253
12254 ac_ext=c
12255 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12256 ac_cpp='$CPP $CPPFLAGS'
12257 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12258 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12259 cross_compiling=$ac_cv_prog_cc_cross
12260
12261
12262
12263 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
12264 echo "configure:12265: checking for pw_gecos in struct passwd" >&5
12265 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
12266 echo $ac_n "(cached) $ac_c" 1>&6
12267 else
12268
12269 cat > conftest.$ac_ext <<EOF
12270 #line 12271 "configure"
12271 #include "confdefs.h"
12272 #include <pwd.h>
12273 int main() {
12274
12275 char *p;
12276 struct passwd *pw;
12277 p = pw->pw_gecos;
12278
12279 ; return 0; }
12280 EOF
12281 if { (eval echo configure:12282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12282 rm -rf conftest*
12283
12284 wx_cv_struct_pw_gecos=yes
12285
12286 else
12287 echo "configure: failed program was:" >&5
12288 cat conftest.$ac_ext >&5
12289 rm -rf conftest*
12290
12291 wx_cv_struct_pw_gecos=no
12292
12293
12294 fi
12295 rm -f conftest*
12296
12297
12298 fi
12299
12300 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
12301
12302 if test "$wx_cv_struct_pw_gecos" = "yes"; then
12303 cat >> confdefs.h <<\EOF
12304 #define HAVE_PW_GECOS 1
12305 EOF
12306
12307 fi
12308
12309
12310 echo $ac_n "checking for working const""... $ac_c" 1>&6
12311 echo "configure:12312: checking for working const" >&5
12312 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
12313 echo $ac_n "(cached) $ac_c" 1>&6
12314 else
12315 cat > conftest.$ac_ext <<EOF
12316 #line 12317 "configure"
12317 #include "confdefs.h"
12318
12319 int main() {
12320
12321 /* Ultrix mips cc rejects this. */
12322 typedef int charset[2]; const charset x;
12323 /* SunOS 4.1.1 cc rejects this. */
12324 char const *const *ccp;
12325 char **p;
12326 /* NEC SVR4.0.2 mips cc rejects this. */
12327 struct point {int x, y;};
12328 static struct point const zero = {0,0};
12329 /* AIX XL C 1.02.0.0 rejects this.
12330 It does not let you subtract one const X* pointer from another in an arm
12331 of an if-expression whose if-part is not a constant expression */
12332 const char *g = "string";
12333 ccp = &g + (g ? g-g : 0);
12334 /* HPUX 7.0 cc rejects these. */
12335 ++ccp;
12336 p = (char**) ccp;
12337 ccp = (char const *const *) p;
12338 { /* SCO 3.2v4 cc rejects this. */
12339 char *t;
12340 char const *s = 0 ? (char *) 0 : (char const *) 0;
12341
12342 *t++ = 0;
12343 }
12344 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12345 int x[] = {25, 17};
12346 const int *foo = &x[0];
12347 ++foo;
12348 }
12349 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12350 typedef const int *iptr;
12351 iptr p = 0;
12352 ++p;
12353 }
12354 { /* AIX XL C 1.02.0.0 rejects this saying
12355 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12356 struct s { int j; const int *ap[3]; };
12357 struct s *b; b->j = 5;
12358 }
12359 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12360 const int foo = 10;
12361 }
12362
12363 ; return 0; }
12364 EOF
12365 if { (eval echo configure:12366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12366 rm -rf conftest*
12367 ac_cv_c_const=yes
12368 else
12369 echo "configure: failed program was:" >&5
12370 cat conftest.$ac_ext >&5
12371 rm -rf conftest*
12372 ac_cv_c_const=no
12373 fi
12374 rm -f conftest*
12375 fi
12376
12377 echo "$ac_t""$ac_cv_c_const" 1>&6
12378 if test $ac_cv_c_const = no; then
12379 cat >> confdefs.h <<\EOF
12380 #define const
12381 EOF
12382
12383 fi
12384
12385 echo $ac_n "checking for inline""... $ac_c" 1>&6
12386 echo "configure:12387: checking for inline" >&5
12387 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
12388 echo $ac_n "(cached) $ac_c" 1>&6
12389 else
12390 ac_cv_c_inline=no
12391 for ac_kw in inline __inline__ __inline; do
12392 cat > conftest.$ac_ext <<EOF
12393 #line 12394 "configure"
12394 #include "confdefs.h"
12395
12396 int main() {
12397 } $ac_kw foo() {
12398 ; return 0; }
12399 EOF
12400 if { (eval echo configure:12401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12401 rm -rf conftest*
12402 ac_cv_c_inline=$ac_kw; break
12403 else
12404 echo "configure: failed program was:" >&5
12405 cat conftest.$ac_ext >&5
12406 fi
12407 rm -f conftest*
12408 done
12409
12410 fi
12411
12412 echo "$ac_t""$ac_cv_c_inline" 1>&6
12413 case "$ac_cv_c_inline" in
12414 inline | yes) ;;
12415 no) cat >> confdefs.h <<\EOF
12416 #define inline
12417 EOF
12418 ;;
12419 *) cat >> confdefs.h <<EOF
12420 #define inline $ac_cv_c_inline
12421 EOF
12422 ;;
12423 esac
12424
12425
12426 echo $ac_n "checking size of char""... $ac_c" 1>&6
12427 echo "configure:12428: checking size of char" >&5
12428 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
12429 echo $ac_n "(cached) $ac_c" 1>&6
12430 else
12431 if test "$cross_compiling" = yes; then
12432 ac_cv_sizeof_char=1
12433 else
12434 cat > conftest.$ac_ext <<EOF
12435 #line 12436 "configure"
12436 #include "confdefs.h"
12437 #include <stdio.h>
12438 main()
12439 {
12440 FILE *f=fopen("conftestval", "w");
12441 if (!f) exit(1);
12442 fprintf(f, "%d\n", sizeof(char));
12443 exit(0);
12444 }
12445 EOF
12446 if { (eval echo configure:12447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12447 then
12448 ac_cv_sizeof_char=`cat conftestval`
12449 else
12450 echo "configure: failed program was:" >&5
12451 cat conftest.$ac_ext >&5
12452 rm -fr conftest*
12453 ac_cv_sizeof_char=0
12454 fi
12455 rm -fr conftest*
12456 fi
12457
12458 fi
12459 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
12460 cat >> confdefs.h <<EOF
12461 #define SIZEOF_CHAR $ac_cv_sizeof_char
12462 EOF
12463
12464
12465 echo $ac_n "checking size of short""... $ac_c" 1>&6
12466 echo "configure:12467: checking size of short" >&5
12467 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
12468 echo $ac_n "(cached) $ac_c" 1>&6
12469 else
12470 if test "$cross_compiling" = yes; then
12471 ac_cv_sizeof_short=2
12472 else
12473 cat > conftest.$ac_ext <<EOF
12474 #line 12475 "configure"
12475 #include "confdefs.h"
12476 #include <stdio.h>
12477 main()
12478 {
12479 FILE *f=fopen("conftestval", "w");
12480 if (!f) exit(1);
12481 fprintf(f, "%d\n", sizeof(short));
12482 exit(0);
12483 }
12484 EOF
12485 if { (eval echo configure:12486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12486 then
12487 ac_cv_sizeof_short=`cat conftestval`
12488 else
12489 echo "configure: failed program was:" >&5
12490 cat conftest.$ac_ext >&5
12491 rm -fr conftest*
12492 ac_cv_sizeof_short=0
12493 fi
12494 rm -fr conftest*
12495 fi
12496
12497 fi
12498 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
12499 cat >> confdefs.h <<EOF
12500 #define SIZEOF_SHORT $ac_cv_sizeof_short
12501 EOF
12502
12503
12504 echo $ac_n "checking size of int *""... $ac_c" 1>&6
12505 echo "configure:12506: checking size of int *" >&5
12506 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
12507 echo $ac_n "(cached) $ac_c" 1>&6
12508 else
12509 if test "$cross_compiling" = yes; then
12510 ac_cv_sizeof_int_p=4
12511 else
12512 cat > conftest.$ac_ext <<EOF
12513 #line 12514 "configure"
12514 #include "confdefs.h"
12515 #include <stdio.h>
12516 main()
12517 {
12518 FILE *f=fopen("conftestval", "w");
12519 if (!f) exit(1);
12520 fprintf(f, "%d\n", sizeof(int *));
12521 exit(0);
12522 }
12523 EOF
12524 if { (eval echo configure:12525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12525 then
12526 ac_cv_sizeof_int_p=`cat conftestval`
12527 else
12528 echo "configure: failed program was:" >&5
12529 cat conftest.$ac_ext >&5
12530 rm -fr conftest*
12531 ac_cv_sizeof_int_p=0
12532 fi
12533 rm -fr conftest*
12534 fi
12535
12536 fi
12537 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
12538 cat >> confdefs.h <<EOF
12539 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
12540 EOF
12541
12542
12543 echo $ac_n "checking size of int""... $ac_c" 1>&6
12544 echo "configure:12545: checking size of int" >&5
12545 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
12546 echo $ac_n "(cached) $ac_c" 1>&6
12547 else
12548 if test "$cross_compiling" = yes; then
12549 ac_cv_sizeof_int=4
12550 else
12551 cat > conftest.$ac_ext <<EOF
12552 #line 12553 "configure"
12553 #include "confdefs.h"
12554 #include <stdio.h>
12555 main()
12556 {
12557 FILE *f=fopen("conftestval", "w");
12558 if (!f) exit(1);
12559 fprintf(f, "%d\n", sizeof(int));
12560 exit(0);
12561 }
12562 EOF
12563 if { (eval echo configure:12564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12564 then
12565 ac_cv_sizeof_int=`cat conftestval`
12566 else
12567 echo "configure: failed program was:" >&5
12568 cat conftest.$ac_ext >&5
12569 rm -fr conftest*
12570 ac_cv_sizeof_int=0
12571 fi
12572 rm -fr conftest*
12573 fi
12574
12575 fi
12576 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
12577 cat >> confdefs.h <<EOF
12578 #define SIZEOF_INT $ac_cv_sizeof_int
12579 EOF
12580
12581
12582 echo $ac_n "checking size of long""... $ac_c" 1>&6
12583 echo "configure:12584: checking size of long" >&5
12584 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
12585 echo $ac_n "(cached) $ac_c" 1>&6
12586 else
12587 if test "$cross_compiling" = yes; then
12588 ac_cv_sizeof_long=4
12589 else
12590 cat > conftest.$ac_ext <<EOF
12591 #line 12592 "configure"
12592 #include "confdefs.h"
12593 #include <stdio.h>
12594 main()
12595 {
12596 FILE *f=fopen("conftestval", "w");
12597 if (!f) exit(1);
12598 fprintf(f, "%d\n", sizeof(long));
12599 exit(0);
12600 }
12601 EOF
12602 if { (eval echo configure:12603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12603 then
12604 ac_cv_sizeof_long=`cat conftestval`
12605 else
12606 echo "configure: failed program was:" >&5
12607 cat conftest.$ac_ext >&5
12608 rm -fr conftest*
12609 ac_cv_sizeof_long=0
12610 fi
12611 rm -fr conftest*
12612 fi
12613
12614 fi
12615 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
12616 cat >> confdefs.h <<EOF
12617 #define SIZEOF_LONG $ac_cv_sizeof_long
12618 EOF
12619
12620
12621 echo $ac_n "checking size of long long""... $ac_c" 1>&6
12622 echo "configure:12623: checking size of long long" >&5
12623 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
12624 echo $ac_n "(cached) $ac_c" 1>&6
12625 else
12626 if test "$cross_compiling" = yes; then
12627 ac_cv_sizeof_long_long=0
12628 else
12629 cat > conftest.$ac_ext <<EOF
12630 #line 12631 "configure"
12631 #include "confdefs.h"
12632 #include <stdio.h>
12633 main()
12634 {
12635 FILE *f=fopen("conftestval", "w");
12636 if (!f) exit(1);
12637 fprintf(f, "%d\n", sizeof(long long));
12638 exit(0);
12639 }
12640 EOF
12641 if { (eval echo configure:12642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12642 then
12643 ac_cv_sizeof_long_long=`cat conftestval`
12644 else
12645 echo "configure: failed program was:" >&5
12646 cat conftest.$ac_ext >&5
12647 rm -fr conftest*
12648 ac_cv_sizeof_long_long=0
12649 fi
12650 rm -fr conftest*
12651 fi
12652
12653 fi
12654 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
12655 cat >> confdefs.h <<EOF
12656 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12657 EOF
12658
12659
12660
12661 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
12662 echo "configure:12663: checking size of wchar_t" >&5
12663 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
12664 echo $ac_n "(cached) $ac_c" 1>&6
12665 else
12666
12667 if test "$cross_compiling" = yes; then
12668 wx_cv_sizeof_wchar_t=4
12669
12670 else
12671 cat > conftest.$ac_ext <<EOF
12672 #line 12673 "configure"
12673 #include "confdefs.h"
12674
12675 #ifdef HAVE_WCHAR_H
12676 # include <wchar.h>
12677 #endif
12678 #ifdef HAVE_STDLIB_H
12679 # include <stdlib.h>
12680 #endif
12681 #include <stdio.h>
12682 int main()
12683 {
12684 FILE *f=fopen("conftestval", "w");
12685 if (!f) exit(1);
12686 fprintf(f, "%i", sizeof(wchar_t));
12687 exit(0);
12688 }
12689
12690 EOF
12691 if { (eval echo configure:12692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12692 then
12693 wx_cv_sizeof_wchar_t=`cat conftestval`
12694 else
12695 echo "configure: failed program was:" >&5
12696 cat conftest.$ac_ext >&5
12697 rm -fr conftest*
12698 wx_cv_sizeof_wchar_t=0
12699 fi
12700 rm -fr conftest*
12701 fi
12702
12703
12704 fi
12705
12706 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
12707
12708 cat >> confdefs.h <<EOF
12709 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
12710 EOF
12711
12712
12713 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
12714 echo "configure:12715: checking whether byte ordering is bigendian" >&5
12715 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
12716 echo $ac_n "(cached) $ac_c" 1>&6
12717 else
12718 ac_cv_c_bigendian=unknown
12719 # See if sys/param.h defines the BYTE_ORDER macro.
12720 cat > conftest.$ac_ext <<EOF
12721 #line 12722 "configure"
12722 #include "confdefs.h"
12723 #include <sys/types.h>
12724 #include <sys/param.h>
12725 int main() {
12726
12727 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12728 bogus endian macros
12729 #endif
12730 ; return 0; }
12731 EOF
12732 if { (eval echo configure:12733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12733 rm -rf conftest*
12734 # It does; now see whether it defined to BIG_ENDIAN or not.
12735 cat > conftest.$ac_ext <<EOF
12736 #line 12737 "configure"
12737 #include "confdefs.h"
12738 #include <sys/types.h>
12739 #include <sys/param.h>
12740 int main() {
12741
12742 #if BYTE_ORDER != BIG_ENDIAN
12743 not big endian
12744 #endif
12745 ; return 0; }
12746 EOF
12747 if { (eval echo configure:12748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12748 rm -rf conftest*
12749 ac_cv_c_bigendian=yes
12750 else
12751 echo "configure: failed program was:" >&5
12752 cat conftest.$ac_ext >&5
12753 rm -rf conftest*
12754 ac_cv_c_bigendian=no
12755 fi
12756 rm -f conftest*
12757 else
12758 echo "configure: failed program was:" >&5
12759 cat conftest.$ac_ext >&5
12760 fi
12761 rm -f conftest*
12762 if test $ac_cv_c_bigendian = unknown; then
12763 if test "$cross_compiling" = yes; then
12764 ac_cv_c_bigendian=unknown
12765 else
12766 cat > conftest.$ac_ext <<EOF
12767 #line 12768 "configure"
12768 #include "confdefs.h"
12769 main () {
12770 /* Are we little or big endian? From Harbison&Steele. */
12771 union
12772 {
12773 long l;
12774 char c[sizeof (long)];
12775 } u;
12776 u.l = 1;
12777 exit (u.c[sizeof (long) - 1] == 1);
12778 }
12779 EOF
12780 if { (eval echo configure:12781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12781 then
12782 ac_cv_c_bigendian=no
12783 else
12784 echo "configure: failed program was:" >&5
12785 cat conftest.$ac_ext >&5
12786 rm -fr conftest*
12787 ac_cv_c_bigendian=yes
12788 fi
12789 rm -fr conftest*
12790 fi
12791
12792 fi
12793 fi
12794
12795 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
12796 if test $ac_cv_c_bigendian = unknown; then
12797 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
12798 fi
12799 if test $ac_cv_c_bigendian = yes; then
12800 cat >> confdefs.h <<\EOF
12801 #define WORDS_BIGENDIAN 1
12802 EOF
12803
12804 fi
12805
12806
12807 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
12808 echo "configure:12809: checking how to run the C++ preprocessor" >&5
12809 if test -z "$CXXCPP"; then
12810 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
12811 echo $ac_n "(cached) $ac_c" 1>&6
12812 else
12813 ac_ext=C
12814 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12815 ac_cpp='$CXXCPP $CPPFLAGS'
12816 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12817 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12818 cross_compiling=$ac_cv_prog_cxx_cross
12819 CXXCPP="${CXX-g++} -E"
12820 cat > conftest.$ac_ext <<EOF
12821 #line 12822 "configure"
12822 #include "confdefs.h"
12823 #include <stdlib.h>
12824 EOF
12825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12826 { (eval echo configure:12827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12828 if test -z "$ac_err"; then
12829 :
12830 else
12831 echo "$ac_err" >&5
12832 echo "configure: failed program was:" >&5
12833 cat conftest.$ac_ext >&5
12834 rm -rf conftest*
12835 CXXCPP=/lib/cpp
12836 fi
12837 rm -f conftest*
12838 ac_cv_prog_CXXCPP="$CXXCPP"
12839 ac_ext=C
12840 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12841 ac_cpp='$CXXCPP $CPPFLAGS'
12842 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12843 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12844 cross_compiling=$ac_cv_prog_cxx_cross
12845 fi
12846 fi
12847 CXXCPP="$ac_cv_prog_CXXCPP"
12848 echo "$ac_t""$CXXCPP" 1>&6
12849
12850
12851 if test "$cross_compiling" = "yes"; then
12852 cat >> confdefs.h <<\EOF
12853 #define wxUSE_IOSTREAMH 1
12854 EOF
12855
12856 else
12857
12858 ac_ext=C
12859 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12860 ac_cpp='$CXXCPP $CPPFLAGS'
12861 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12862 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12863 cross_compiling=$ac_cv_prog_cxx_cross
12864
12865
12866 for ac_hdr in iostream
12867 do
12868 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12869 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12870 echo "configure:12871: checking for $ac_hdr" >&5
12871 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12872 echo $ac_n "(cached) $ac_c" 1>&6
12873 else
12874 cat > conftest.$ac_ext <<EOF
12875 #line 12876 "configure"
12876 #include "confdefs.h"
12877 #include <$ac_hdr>
12878 EOF
12879 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12880 { (eval echo configure:12881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12881 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12882 if test -z "$ac_err"; then
12883 rm -rf conftest*
12884 eval "ac_cv_header_$ac_safe=yes"
12885 else
12886 echo "$ac_err" >&5
12887 echo "configure: failed program was:" >&5
12888 cat conftest.$ac_ext >&5
12889 rm -rf conftest*
12890 eval "ac_cv_header_$ac_safe=no"
12891 fi
12892 rm -f conftest*
12893 fi
12894 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12895 echo "$ac_t""yes" 1>&6
12896 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12897 cat >> confdefs.h <<EOF
12898 #define $ac_tr_hdr 1
12899 EOF
12900
12901 else
12902 echo "$ac_t""no" 1>&6
12903 fi
12904 done
12905
12906
12907 if test "$ac_cv_header_iostream" = "yes" ; then
12908 :
12909 else
12910 cat >> confdefs.h <<\EOF
12911 #define wxUSE_IOSTREAMH 1
12912 EOF
12913
12914 fi
12915
12916 ac_ext=c
12917 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12918 ac_cpp='$CPP $CPPFLAGS'
12919 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12920 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12921 cross_compiling=$ac_cv_prog_cc_cross
12922
12923 fi
12924
12925
12926
12927 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
12928 echo "configure:12929: checking if C++ compiler supports bool" >&5
12929 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12930 echo $ac_n "(cached) $ac_c" 1>&6
12931 else
12932
12933
12934 ac_ext=C
12935 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12936 ac_cpp='$CXXCPP $CPPFLAGS'
12937 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12938 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12939 cross_compiling=$ac_cv_prog_cxx_cross
12940
12941
12942 cat > conftest.$ac_ext <<EOF
12943 #line 12944 "configure"
12944 #include "confdefs.h"
12945
12946
12947 int main() {
12948
12949 bool b = true;
12950
12951 return 0;
12952
12953 ; return 0; }
12954 EOF
12955 if { (eval echo configure:12956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12956 rm -rf conftest*
12957
12958 wx_cv_cpp_bool=yes
12959
12960 else
12961 echo "configure: failed program was:" >&5
12962 cat conftest.$ac_ext >&5
12963 rm -rf conftest*
12964
12965 wx_cv_cpp_bool=no
12966
12967
12968 fi
12969 rm -f conftest*
12970
12971 ac_ext=c
12972 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12973 ac_cpp='$CPP $CPPFLAGS'
12974 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12975 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12976 cross_compiling=$ac_cv_prog_cc_cross
12977
12978
12979 fi
12980
12981 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
12982
12983 if test "$wx_cv_cpp_bool" = "yes"; then
12984 cat >> confdefs.h <<\EOF
12985 #define HAVE_BOOL 1
12986 EOF
12987
12988 fi
12989
12990
12991
12992 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
12993 echo "configure:12994: checking for wcslen in -lc" >&5
12994 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12995 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12996 echo $ac_n "(cached) $ac_c" 1>&6
12997 else
12998 ac_save_LIBS="$LIBS"
12999 LIBS="-lc $LIBS"
13000 cat > conftest.$ac_ext <<EOF
13001 #line 13002 "configure"
13002 #include "confdefs.h"
13003 /* Override any gcc2 internal prototype to avoid an error. */
13004 /* We use char because int might match the return type of a gcc2
13005 builtin and then its argument prototype would still apply. */
13006 char wcslen();
13007
13008 int main() {
13009 wcslen()
13010 ; return 0; }
13011 EOF
13012 if { (eval echo configure:13013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13013 rm -rf conftest*
13014 eval "ac_cv_lib_$ac_lib_var=yes"
13015 else
13016 echo "configure: failed program was:" >&5
13017 cat conftest.$ac_ext >&5
13018 rm -rf conftest*
13019 eval "ac_cv_lib_$ac_lib_var=no"
13020 fi
13021 rm -f conftest*
13022 LIBS="$ac_save_LIBS"
13023
13024 fi
13025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13026 echo "$ac_t""yes" 1>&6
13027
13028 cat >> confdefs.h <<\EOF
13029 #define HAVE_WCSLEN 1
13030 EOF
13031
13032 WCHAR_LINK=""
13033
13034 else
13035 echo "$ac_t""no" 1>&6
13036
13037 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
13038 echo "configure:13039: checking for wcslen in -lw" >&5
13039 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
13040 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13041 echo $ac_n "(cached) $ac_c" 1>&6
13042 else
13043 ac_save_LIBS="$LIBS"
13044 LIBS="-lw $LIBS"
13045 cat > conftest.$ac_ext <<EOF
13046 #line 13047 "configure"
13047 #include "confdefs.h"
13048 /* Override any gcc2 internal prototype to avoid an error. */
13049 /* We use char because int might match the return type of a gcc2
13050 builtin and then its argument prototype would still apply. */
13051 char wcslen();
13052
13053 int main() {
13054 wcslen()
13055 ; return 0; }
13056 EOF
13057 if { (eval echo configure:13058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13058 rm -rf conftest*
13059 eval "ac_cv_lib_$ac_lib_var=yes"
13060 else
13061 echo "configure: failed program was:" >&5
13062 cat conftest.$ac_ext >&5
13063 rm -rf conftest*
13064 eval "ac_cv_lib_$ac_lib_var=no"
13065 fi
13066 rm -f conftest*
13067 LIBS="$ac_save_LIBS"
13068
13069 fi
13070 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13071 echo "$ac_t""yes" 1>&6
13072
13073 cat >> confdefs.h <<\EOF
13074 #define HAVE_WCSLEN 1
13075 EOF
13076
13077 WCHAR_LINK="-lw"
13078
13079 else
13080 echo "$ac_t""no" 1>&6
13081
13082 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
13083 echo "configure:13084: checking for wcslen in -lmsvcrt" >&5
13084 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
13085 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13086 echo $ac_n "(cached) $ac_c" 1>&6
13087 else
13088 ac_save_LIBS="$LIBS"
13089 LIBS="-lmsvcrt $LIBS"
13090 cat > conftest.$ac_ext <<EOF
13091 #line 13092 "configure"
13092 #include "confdefs.h"
13093 /* Override any gcc2 internal prototype to avoid an error. */
13094 /* We use char because int might match the return type of a gcc2
13095 builtin and then its argument prototype would still apply. */
13096 char wcslen();
13097
13098 int main() {
13099 wcslen()
13100 ; return 0; }
13101 EOF
13102 if { (eval echo configure:13103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13103 rm -rf conftest*
13104 eval "ac_cv_lib_$ac_lib_var=yes"
13105 else
13106 echo "configure: failed program was:" >&5
13107 cat conftest.$ac_ext >&5
13108 rm -rf conftest*
13109 eval "ac_cv_lib_$ac_lib_var=no"
13110 fi
13111 rm -f conftest*
13112 LIBS="$ac_save_LIBS"
13113
13114 fi
13115 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13116 echo "$ac_t""yes" 1>&6
13117
13118 cat >> confdefs.h <<\EOF
13119 #define HAVE_WCSLEN 1
13120 EOF
13121
13122 WCHAR_LINK=""
13123
13124 else
13125 echo "$ac_t""no" 1>&6
13126 fi
13127
13128
13129 fi
13130
13131
13132 fi
13133
13134
13135 for ac_func in wcsrtombs
13136 do
13137 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13138 echo "configure:13139: checking for $ac_func" >&5
13139 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13140 echo $ac_n "(cached) $ac_c" 1>&6
13141 else
13142 cat > conftest.$ac_ext <<EOF
13143 #line 13144 "configure"
13144 #include "confdefs.h"
13145 /* System header to define __stub macros and hopefully few prototypes,
13146 which can conflict with char $ac_func(); below. */
13147 #include <assert.h>
13148 /* Override any gcc2 internal prototype to avoid an error. */
13149 /* We use char because int might match the return type of a gcc2
13150 builtin and then its argument prototype would still apply. */
13151 char $ac_func();
13152
13153 int main() {
13154
13155 /* The GNU C library defines this for functions which it implements
13156 to always fail with ENOSYS. Some functions are actually named
13157 something starting with __ and the normal name is an alias. */
13158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13159 choke me
13160 #else
13161 $ac_func();
13162 #endif
13163
13164 ; return 0; }
13165 EOF
13166 if { (eval echo configure:13167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13167 rm -rf conftest*
13168 eval "ac_cv_func_$ac_func=yes"
13169 else
13170 echo "configure: failed program was:" >&5
13171 cat conftest.$ac_ext >&5
13172 rm -rf conftest*
13173 eval "ac_cv_func_$ac_func=no"
13174 fi
13175 rm -f conftest*
13176 fi
13177
13178 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13179 echo "$ac_t""yes" 1>&6
13180 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13181 cat >> confdefs.h <<EOF
13182 #define $ac_tr_func 1
13183 EOF
13184
13185 else
13186 echo "$ac_t""no" 1>&6
13187 fi
13188 done
13189
13190
13191 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
13192 echo "configure:13193: checking for vprintf" >&5
13193 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
13194 echo $ac_n "(cached) $ac_c" 1>&6
13195 else
13196 cat > conftest.$ac_ext <<EOF
13197 #line 13198 "configure"
13198 #include "confdefs.h"
13199 /* System header to define __stub macros and hopefully few prototypes,
13200 which can conflict with char vprintf(); below. */
13201 #include <assert.h>
13202 /* Override any gcc2 internal prototype to avoid an error. */
13203 /* We use char because int might match the return type of a gcc2
13204 builtin and then its argument prototype would still apply. */
13205 char vprintf();
13206
13207 int main() {
13208
13209 /* The GNU C library defines this for functions which it implements
13210 to always fail with ENOSYS. Some functions are actually named
13211 something starting with __ and the normal name is an alias. */
13212 #if defined (__stub_vprintf) || defined (__stub___vprintf)
13213 choke me
13214 #else
13215 vprintf();
13216 #endif
13217
13218 ; return 0; }
13219 EOF
13220 if { (eval echo configure:13221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13221 rm -rf conftest*
13222 eval "ac_cv_func_vprintf=yes"
13223 else
13224 echo "configure: failed program was:" >&5
13225 cat conftest.$ac_ext >&5
13226 rm -rf conftest*
13227 eval "ac_cv_func_vprintf=no"
13228 fi
13229 rm -f conftest*
13230 fi
13231
13232 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
13233 echo "$ac_t""yes" 1>&6
13234 cat >> confdefs.h <<\EOF
13235 #define HAVE_VPRINTF 1
13236 EOF
13237
13238 else
13239 echo "$ac_t""no" 1>&6
13240 fi
13241
13242 if test "$ac_cv_func_vprintf" != yes; then
13243 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
13244 echo "configure:13245: checking for _doprnt" >&5
13245 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
13246 echo $ac_n "(cached) $ac_c" 1>&6
13247 else
13248 cat > conftest.$ac_ext <<EOF
13249 #line 13250 "configure"
13250 #include "confdefs.h"
13251 /* System header to define __stub macros and hopefully few prototypes,
13252 which can conflict with char _doprnt(); below. */
13253 #include <assert.h>
13254 /* Override any gcc2 internal prototype to avoid an error. */
13255 /* We use char because int might match the return type of a gcc2
13256 builtin and then its argument prototype would still apply. */
13257 char _doprnt();
13258
13259 int main() {
13260
13261 /* The GNU C library defines this for functions which it implements
13262 to always fail with ENOSYS. Some functions are actually named
13263 something starting with __ and the normal name is an alias. */
13264 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13265 choke me
13266 #else
13267 _doprnt();
13268 #endif
13269
13270 ; return 0; }
13271 EOF
13272 if { (eval echo configure:13273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13273 rm -rf conftest*
13274 eval "ac_cv_func__doprnt=yes"
13275 else
13276 echo "configure: failed program was:" >&5
13277 cat conftest.$ac_ext >&5
13278 rm -rf conftest*
13279 eval "ac_cv_func__doprnt=no"
13280 fi
13281 rm -f conftest*
13282 fi
13283
13284 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
13285 echo "$ac_t""yes" 1>&6
13286 cat >> confdefs.h <<\EOF
13287 #define HAVE_DOPRNT 1
13288 EOF
13289
13290 else
13291 echo "$ac_t""no" 1>&6
13292 fi
13293
13294 fi
13295
13296
13297
13298
13299
13300
13301 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
13302 echo "configure:13303: checking for vsnprintf" >&5
13303 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
13304 echo $ac_n "(cached) $ac_c" 1>&6
13305 else
13306
13307 cat > conftest.$ac_ext <<EOF
13308 #line 13309 "configure"
13309 #include "confdefs.h"
13310
13311 #include <stdio.h>
13312 #include <stdarg.h>
13313
13314 int main() {
13315
13316 int wx_test_vsnprintf(const char *, ...);
13317
13318 wx_test_vsnprintf("%s");
13319 return 0;
13320 }
13321
13322 int wx_test_vsnprintf(const char *fmt, ...)
13323 {
13324 char *s;
13325
13326 va_list argp;
13327 va_start(argp, fmt);
13328 vsnprintf(s, 42, fmt, argp);
13329 va_end(argp);
13330
13331 ; return 0; }
13332 EOF
13333 if { (eval echo configure:13334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13334 rm -rf conftest*
13335
13336 wx_cv_func_vsnprintf=yes
13337
13338 else
13339 echo "configure: failed program was:" >&5
13340 cat conftest.$ac_ext >&5
13341 rm -rf conftest*
13342
13343 cat > conftest.$ac_ext <<EOF
13344 #line 13345 "configure"
13345 #include "confdefs.h"
13346
13347 #include <stdio.h>
13348 #include <stdarg.h>
13349
13350 int main() {
13351
13352 int wx_test_vsnprintf(const char *, ...);
13353
13354 wx_test_vsnprintf("%s");
13355 return 0;
13356 }
13357
13358 int wx_test_vsnprintf(const char *fmt, ...)
13359 {
13360 char *s;
13361
13362 va_list argp;
13363 va_start(argp, fmt);
13364 _vsnprintf(s, 42, fmt, argp);
13365 va_end(argp);
13366
13367 ; return 0; }
13368 EOF
13369 if { (eval echo configure:13370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13370 rm -rf conftest*
13371
13372 wx_cv_func_vsnprintf=yes
13373
13374 else
13375 echo "configure: failed program was:" >&5
13376 cat conftest.$ac_ext >&5
13377 rm -rf conftest*
13378
13379 wx_cv_func_vsnprintf=no
13380
13381 fi
13382 rm -f conftest*
13383
13384 fi
13385 rm -f conftest*
13386
13387 fi
13388
13389 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
13390
13391 if test "$wx_cv_func_vsnprintf" = yes; then
13392 cat >> confdefs.h <<\EOF
13393 #define HAVE_VSNPRINTF 1
13394 EOF
13395
13396 else
13397 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
13398 fi
13399
13400 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
13401 echo "configure:13402: checking for vsscanf" >&5
13402 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
13403 echo $ac_n "(cached) $ac_c" 1>&6
13404 else
13405
13406 cat > conftest.$ac_ext <<EOF
13407 #line 13408 "configure"
13408 #include "confdefs.h"
13409
13410 #include <stdio.h>
13411 #include <stdarg.h>
13412
13413 int main() {
13414
13415 int wx_test_vsscanf(const char *, ...);
13416
13417 wx_test_vsscanf("%d");
13418 return 0;
13419 }
13420
13421 int wx_test_vsscanf(const char *fmt, ...)
13422 {
13423 va_list argp;
13424 va_start(argp, fmt);
13425 vsscanf("42", fmt, argp);
13426 va_end(argp);
13427
13428 ; return 0; }
13429 EOF
13430 if { (eval echo configure:13431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13431 rm -rf conftest*
13432
13433 wx_cv_func_vsscanf=yes
13434
13435 else
13436 echo "configure: failed program was:" >&5
13437 cat conftest.$ac_ext >&5
13438 rm -rf conftest*
13439
13440 wx_cv_func_vsscanf=no
13441
13442 fi
13443 rm -f conftest*
13444
13445 fi
13446
13447 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
13448
13449 if test "$wx_cv_func_vsscanf" = yes; then
13450 cat >> confdefs.h <<\EOF
13451 #define HAVE_VSSCANF 1
13452 EOF
13453
13454 fi
13455
13456 if test "$TOOLKIT" != "MSW"; then
13457
13458
13459
13460 ac_ext=C
13461 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13462 ac_cpp='$CXXCPP $CPPFLAGS'
13463 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13464 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13465 cross_compiling=$ac_cv_prog_cxx_cross
13466
13467 echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
13468 echo "configure:13469: checking if iconv() takes char**" >&5
13469 if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
13470 echo $ac_n "(cached) $ac_c" 1>&6
13471 else
13472
13473 cat > conftest.$ac_ext <<EOF
13474 #line 13475 "configure"
13475 #include "confdefs.h"
13476 #include <iconv.h>
13477 int main() {
13478
13479 char **inbuf, **outbuf;
13480 iconv_t cd;
13481 size_t insz, outsz;
13482 iconv(cd, inbuf, &insz, outbuf, &outsz);
13483
13484 ; return 0; }
13485 EOF
13486 if { (eval echo configure:13487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13487 rm -rf conftest*
13488 wx_cv_iconv_takes_char=yes
13489 else
13490 echo "configure: failed program was:" >&5
13491 cat conftest.$ac_ext >&5
13492 rm -rf conftest*
13493 wx_cv_iconv_takes_char=no
13494 fi
13495 rm -f conftest*
13496
13497 fi
13498
13499 echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
13500 ac_ext=c
13501 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13502 ac_cpp='$CPP $CPPFLAGS'
13503 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13504 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13505 cross_compiling=$ac_cv_prog_cc_cross
13506
13507 if test "$wx_cv_iconv_takes_char" = yes ; then
13508 cat >> confdefs.h <<\EOF
13509 #define WX_ICONV_TAKES_CHAR 1
13510 EOF
13511
13512 fi
13513
13514
13515 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
13516 for ac_func in sigaction
13517 do
13518 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13519 echo "configure:13520: checking for $ac_func" >&5
13520 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13521 echo $ac_n "(cached) $ac_c" 1>&6
13522 else
13523 cat > conftest.$ac_ext <<EOF
13524 #line 13525 "configure"
13525 #include "confdefs.h"
13526 /* System header to define __stub macros and hopefully few prototypes,
13527 which can conflict with char $ac_func(); below. */
13528 #include <assert.h>
13529 /* Override any gcc2 internal prototype to avoid an error. */
13530 /* We use char because int might match the return type of a gcc2
13531 builtin and then its argument prototype would still apply. */
13532 char $ac_func();
13533
13534 int main() {
13535
13536 /* The GNU C library defines this for functions which it implements
13537 to always fail with ENOSYS. Some functions are actually named
13538 something starting with __ and the normal name is an alias. */
13539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13540 choke me
13541 #else
13542 $ac_func();
13543 #endif
13544
13545 ; return 0; }
13546 EOF
13547 if { (eval echo configure:13548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13548 rm -rf conftest*
13549 eval "ac_cv_func_$ac_func=yes"
13550 else
13551 echo "configure: failed program was:" >&5
13552 cat conftest.$ac_ext >&5
13553 rm -rf conftest*
13554 eval "ac_cv_func_$ac_func=no"
13555 fi
13556 rm -f conftest*
13557 fi
13558
13559 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13560 echo "$ac_t""yes" 1>&6
13561 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13562 cat >> confdefs.h <<EOF
13563 #define $ac_tr_func 1
13564 EOF
13565
13566 else
13567 echo "$ac_t""no" 1>&6
13568 fi
13569 done
13570
13571
13572 if test "$ac_cv_func_sigaction" = "no"; then
13573 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
13574 wxUSE_ON_FATAL_EXCEPTION=no
13575 fi
13576
13577 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
13578
13579 ac_ext=C
13580 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13581 ac_cpp='$CXXCPP $CPPFLAGS'
13582 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13583 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13584 cross_compiling=$ac_cv_prog_cxx_cross
13585
13586
13587 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
13588 echo "configure:13589: checking for sa_handler type" >&5
13589 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
13590 echo $ac_n "(cached) $ac_c" 1>&6
13591 else
13592
13593 cat > conftest.$ac_ext <<EOF
13594 #line 13595 "configure"
13595 #include "confdefs.h"
13596 #include <signal.h>
13597 int main() {
13598
13599 extern void testSigHandler(int);
13600
13601 struct sigaction sa;
13602 sa.sa_handler = testSigHandler;
13603
13604 ; return 0; }
13605 EOF
13606 if { (eval echo configure:13607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13607 rm -rf conftest*
13608
13609 wx_cv_type_sa_handler=int
13610
13611 else
13612 echo "configure: failed program was:" >&5
13613 cat conftest.$ac_ext >&5
13614 rm -rf conftest*
13615
13616 wx_cv_type_sa_handler=void
13617
13618 fi
13619 rm -f conftest*
13620
13621 fi
13622
13623 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
13624
13625 ac_ext=c
13626 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13627 ac_cpp='$CPP $CPPFLAGS'
13628 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13629 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13630 cross_compiling=$ac_cv_prog_cc_cross
13631
13632
13633 cat >> confdefs.h <<EOF
13634 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
13635 EOF
13636
13637 fi
13638 fi
13639
13640 for ac_func in vfork
13641 do
13642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13643 echo "configure:13644: checking for $ac_func" >&5
13644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13645 echo $ac_n "(cached) $ac_c" 1>&6
13646 else
13647 cat > conftest.$ac_ext <<EOF
13648 #line 13649 "configure"
13649 #include "confdefs.h"
13650 /* System header to define __stub macros and hopefully few prototypes,
13651 which can conflict with char $ac_func(); below. */
13652 #include <assert.h>
13653 /* Override any gcc2 internal prototype to avoid an error. */
13654 /* We use char because int might match the return type of a gcc2
13655 builtin and then its argument prototype would still apply. */
13656 char $ac_func();
13657
13658 int main() {
13659
13660 /* The GNU C library defines this for functions which it implements
13661 to always fail with ENOSYS. Some functions are actually named
13662 something starting with __ and the normal name is an alias. */
13663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13664 choke me
13665 #else
13666 $ac_func();
13667 #endif
13668
13669 ; return 0; }
13670 EOF
13671 if { (eval echo configure:13672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13672 rm -rf conftest*
13673 eval "ac_cv_func_$ac_func=yes"
13674 else
13675 echo "configure: failed program was:" >&5
13676 cat conftest.$ac_ext >&5
13677 rm -rf conftest*
13678 eval "ac_cv_func_$ac_func=no"
13679 fi
13680 rm -f conftest*
13681 fi
13682
13683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13684 echo "$ac_t""yes" 1>&6
13685 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13686 cat >> confdefs.h <<EOF
13687 #define $ac_tr_func 1
13688 EOF
13689
13690 else
13691 echo "$ac_t""no" 1>&6
13692 fi
13693 done
13694
13695
13696 echo $ac_n "checking for statfs""... $ac_c" 1>&6
13697 echo "configure:13698: checking for statfs" >&5
13698 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
13699 echo $ac_n "(cached) $ac_c" 1>&6
13700 else
13701 cat > conftest.$ac_ext <<EOF
13702 #line 13703 "configure"
13703 #include "confdefs.h"
13704
13705 #ifdef __DARWIN__
13706 #include <sys/param.h>
13707 #include <sys/mount.h>
13708 #else
13709 #include <sys/vfs.h>
13710 #endif
13711
13712 int main() {
13713
13714 long l;
13715 struct statfs fs;
13716 statfs("/", &fs);
13717 l = fs.f_bsize;
13718 l += fs.f_blocks;
13719 l += fs.f_bavail;
13720
13721 ; return 0; }
13722 EOF
13723 if { (eval echo configure:13724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13724 rm -rf conftest*
13725
13726 wx_cv_func_statfs=yes
13727
13728 else
13729 echo "configure: failed program was:" >&5
13730 cat conftest.$ac_ext >&5
13731 rm -rf conftest*
13732
13733 wx_cv_func_statfs=no
13734
13735
13736 fi
13737 rm -f conftest*
13738
13739 fi
13740
13741 echo "$ac_t""$wx_cv_func_statfs" 1>&6
13742
13743 if test "$wx_cv_func_statfs" = "yes"; then
13744 cat >> confdefs.h <<\EOF
13745 #define HAVE_STATFS 1
13746 EOF
13747
13748 else
13749 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
13750 fi
13751
13752 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
13753 for ac_func in fcntl flock
13754 do
13755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13756 echo "configure:13757: checking for $ac_func" >&5
13757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13758 echo $ac_n "(cached) $ac_c" 1>&6
13759 else
13760 cat > conftest.$ac_ext <<EOF
13761 #line 13762 "configure"
13762 #include "confdefs.h"
13763 /* System header to define __stub macros and hopefully few prototypes,
13764 which can conflict with char $ac_func(); below. */
13765 #include <assert.h>
13766 /* Override any gcc2 internal prototype to avoid an error. */
13767 /* We use char because int might match the return type of a gcc2
13768 builtin and then its argument prototype would still apply. */
13769 char $ac_func();
13770
13771 int main() {
13772
13773 /* The GNU C library defines this for functions which it implements
13774 to always fail with ENOSYS. Some functions are actually named
13775 something starting with __ and the normal name is an alias. */
13776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13777 choke me
13778 #else
13779 $ac_func();
13780 #endif
13781
13782 ; return 0; }
13783 EOF
13784 if { (eval echo configure:13785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13785 rm -rf conftest*
13786 eval "ac_cv_func_$ac_func=yes"
13787 else
13788 echo "configure: failed program was:" >&5
13789 cat conftest.$ac_ext >&5
13790 rm -rf conftest*
13791 eval "ac_cv_func_$ac_func=no"
13792 fi
13793 rm -f conftest*
13794 fi
13795
13796 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13797 echo "$ac_t""yes" 1>&6
13798 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13799 cat >> confdefs.h <<EOF
13800 #define $ac_tr_func 1
13801 EOF
13802 break
13803 else
13804 echo "$ac_t""no" 1>&6
13805 fi
13806 done
13807
13808
13809 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
13810 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
13811 wxUSE_SNGLINST_CHECKER=no
13812 fi
13813 fi
13814
13815 for ac_func in timegm
13816 do
13817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13818 echo "configure:13819: checking for $ac_func" >&5
13819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13820 echo $ac_n "(cached) $ac_c" 1>&6
13821 else
13822 cat > conftest.$ac_ext <<EOF
13823 #line 13824 "configure"
13824 #include "confdefs.h"
13825 /* System header to define __stub macros and hopefully few prototypes,
13826 which can conflict with char $ac_func(); below. */
13827 #include <assert.h>
13828 /* Override any gcc2 internal prototype to avoid an error. */
13829 /* We use char because int might match the return type of a gcc2
13830 builtin and then its argument prototype would still apply. */
13831 char $ac_func();
13832
13833 int main() {
13834
13835 /* The GNU C library defines this for functions which it implements
13836 to always fail with ENOSYS. Some functions are actually named
13837 something starting with __ and the normal name is an alias. */
13838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13839 choke me
13840 #else
13841 $ac_func();
13842 #endif
13843
13844 ; return 0; }
13845 EOF
13846 if { (eval echo configure:13847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13847 rm -rf conftest*
13848 eval "ac_cv_func_$ac_func=yes"
13849 else
13850 echo "configure: failed program was:" >&5
13851 cat conftest.$ac_ext >&5
13852 rm -rf conftest*
13853 eval "ac_cv_func_$ac_func=no"
13854 fi
13855 rm -f conftest*
13856 fi
13857
13858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13859 echo "$ac_t""yes" 1>&6
13860 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13861 cat >> confdefs.h <<EOF
13862 #define $ac_tr_func 1
13863 EOF
13864
13865 else
13866 echo "$ac_t""no" 1>&6
13867 fi
13868 done
13869
13870
13871 for ac_func in putenv setenv
13872 do
13873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13874 echo "configure:13875: checking for $ac_func" >&5
13875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13876 echo $ac_n "(cached) $ac_c" 1>&6
13877 else
13878 cat > conftest.$ac_ext <<EOF
13879 #line 13880 "configure"
13880 #include "confdefs.h"
13881 /* System header to define __stub macros and hopefully few prototypes,
13882 which can conflict with char $ac_func(); below. */
13883 #include <assert.h>
13884 /* Override any gcc2 internal prototype to avoid an error. */
13885 /* We use char because int might match the return type of a gcc2
13886 builtin and then its argument prototype would still apply. */
13887 char $ac_func();
13888
13889 int main() {
13890
13891 /* The GNU C library defines this for functions which it implements
13892 to always fail with ENOSYS. Some functions are actually named
13893 something starting with __ and the normal name is an alias. */
13894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13895 choke me
13896 #else
13897 $ac_func();
13898 #endif
13899
13900 ; return 0; }
13901 EOF
13902 if { (eval echo configure:13903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13903 rm -rf conftest*
13904 eval "ac_cv_func_$ac_func=yes"
13905 else
13906 echo "configure: failed program was:" >&5
13907 cat conftest.$ac_ext >&5
13908 rm -rf conftest*
13909 eval "ac_cv_func_$ac_func=no"
13910 fi
13911 rm -f conftest*
13912 fi
13913
13914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13915 echo "$ac_t""yes" 1>&6
13916 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13917 cat >> confdefs.h <<EOF
13918 #define $ac_tr_func 1
13919 EOF
13920 break
13921 else
13922 echo "$ac_t""no" 1>&6
13923 fi
13924 done
13925
13926
13927 HAVE_SOME_SLEEP_FUNC=0
13928 if test "$USE_BEOS" = 1; then
13929 cat >> confdefs.h <<\EOF
13930 #define HAVE_SLEEP 1
13931 EOF
13932
13933 HAVE_SOME_SLEEP_FUNC=1
13934 fi
13935
13936 if test "$USE_DARWIN" = 1; then
13937 cat >> confdefs.h <<\EOF
13938 #define HAVE_USLEEP 1
13939 EOF
13940
13941 HAVE_SOME_SLEEP_FUNC=1
13942 fi
13943
13944 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
13945 POSIX4_LINK=
13946 for ac_func in nanosleep
13947 do
13948 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13949 echo "configure:13950: checking for $ac_func" >&5
13950 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13951 echo $ac_n "(cached) $ac_c" 1>&6
13952 else
13953 cat > conftest.$ac_ext <<EOF
13954 #line 13955 "configure"
13955 #include "confdefs.h"
13956 /* System header to define __stub macros and hopefully few prototypes,
13957 which can conflict with char $ac_func(); below. */
13958 #include <assert.h>
13959 /* Override any gcc2 internal prototype to avoid an error. */
13960 /* We use char because int might match the return type of a gcc2
13961 builtin and then its argument prototype would still apply. */
13962 char $ac_func();
13963
13964 int main() {
13965
13966 /* The GNU C library defines this for functions which it implements
13967 to always fail with ENOSYS. Some functions are actually named
13968 something starting with __ and the normal name is an alias. */
13969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13970 choke me
13971 #else
13972 $ac_func();
13973 #endif
13974
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_func_$ac_func=yes"
13980 else
13981 echo "configure: failed program was:" >&5
13982 cat conftest.$ac_ext >&5
13983 rm -rf conftest*
13984 eval "ac_cv_func_$ac_func=no"
13985 fi
13986 rm -f conftest*
13987 fi
13988
13989 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13990 echo "$ac_t""yes" 1>&6
13991 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13992 cat >> confdefs.h <<EOF
13993 #define $ac_tr_func 1
13994 EOF
13995 cat >> confdefs.h <<\EOF
13996 #define HAVE_NANOSLEEP 1
13997 EOF
13998
13999 else
14000 echo "$ac_t""no" 1>&6
14001 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
14002 echo "configure:14003: checking for nanosleep in -lposix4" >&5
14003 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
14004 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14005 echo $ac_n "(cached) $ac_c" 1>&6
14006 else
14007 ac_save_LIBS="$LIBS"
14008 LIBS="-lposix4 $LIBS"
14009 cat > conftest.$ac_ext <<EOF
14010 #line 14011 "configure"
14011 #include "confdefs.h"
14012 /* Override any gcc2 internal prototype to avoid an error. */
14013 /* We use char because int might match the return type of a gcc2
14014 builtin and then its argument prototype would still apply. */
14015 char nanosleep();
14016
14017 int main() {
14018 nanosleep()
14019 ; return 0; }
14020 EOF
14021 if { (eval echo configure:14022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14022 rm -rf conftest*
14023 eval "ac_cv_lib_$ac_lib_var=yes"
14024 else
14025 echo "configure: failed program was:" >&5
14026 cat conftest.$ac_ext >&5
14027 rm -rf conftest*
14028 eval "ac_cv_lib_$ac_lib_var=no"
14029 fi
14030 rm -f conftest*
14031 LIBS="$ac_save_LIBS"
14032
14033 fi
14034 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14035 echo "$ac_t""yes" 1>&6
14036
14037 cat >> confdefs.h <<\EOF
14038 #define HAVE_NANOSLEEP 1
14039 EOF
14040
14041 POSIX4_LINK="-lposix4"
14042
14043 else
14044 echo "$ac_t""no" 1>&6
14045
14046 for ac_func in usleep
14047 do
14048 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14049 echo "configure:14050: checking for $ac_func" >&5
14050 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14051 echo $ac_n "(cached) $ac_c" 1>&6
14052 else
14053 cat > conftest.$ac_ext <<EOF
14054 #line 14055 "configure"
14055 #include "confdefs.h"
14056 /* System header to define __stub macros and hopefully few prototypes,
14057 which can conflict with char $ac_func(); below. */
14058 #include <assert.h>
14059 /* Override any gcc2 internal prototype to avoid an error. */
14060 /* We use char because int might match the return type of a gcc2
14061 builtin and then its argument prototype would still apply. */
14062 char $ac_func();
14063
14064 int main() {
14065
14066 /* The GNU C library defines this for functions which it implements
14067 to always fail with ENOSYS. Some functions are actually named
14068 something starting with __ and the normal name is an alias. */
14069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14070 choke me
14071 #else
14072 $ac_func();
14073 #endif
14074
14075 ; return 0; }
14076 EOF
14077 if { (eval echo configure:14078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14078 rm -rf conftest*
14079 eval "ac_cv_func_$ac_func=yes"
14080 else
14081 echo "configure: failed program was:" >&5
14082 cat conftest.$ac_ext >&5
14083 rm -rf conftest*
14084 eval "ac_cv_func_$ac_func=no"
14085 fi
14086 rm -f conftest*
14087 fi
14088
14089 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14090 echo "$ac_t""yes" 1>&6
14091 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14092 cat >> confdefs.h <<EOF
14093 #define $ac_tr_func 1
14094 EOF
14095 cat >> confdefs.h <<\EOF
14096 #define HAVE_USLEEP 1
14097 EOF
14098
14099 else
14100 echo "$ac_t""no" 1>&6
14101 echo "configure: warning: wxSleep() function will not work" 1>&2
14102
14103 fi
14104 done
14105
14106
14107
14108 fi
14109
14110
14111
14112 fi
14113 done
14114
14115 fi
14116
14117 for ac_func in uname gethostname
14118 do
14119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14120 echo "configure:14121: checking for $ac_func" >&5
14121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14122 echo $ac_n "(cached) $ac_c" 1>&6
14123 else
14124 cat > conftest.$ac_ext <<EOF
14125 #line 14126 "configure"
14126 #include "confdefs.h"
14127 /* System header to define __stub macros and hopefully few prototypes,
14128 which can conflict with char $ac_func(); below. */
14129 #include <assert.h>
14130 /* Override any gcc2 internal prototype to avoid an error. */
14131 /* We use char because int might match the return type of a gcc2
14132 builtin and then its argument prototype would still apply. */
14133 char $ac_func();
14134
14135 int main() {
14136
14137 /* The GNU C library defines this for functions which it implements
14138 to always fail with ENOSYS. Some functions are actually named
14139 something starting with __ and the normal name is an alias. */
14140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14141 choke me
14142 #else
14143 $ac_func();
14144 #endif
14145
14146 ; return 0; }
14147 EOF
14148 if { (eval echo configure:14149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14149 rm -rf conftest*
14150 eval "ac_cv_func_$ac_func=yes"
14151 else
14152 echo "configure: failed program was:" >&5
14153 cat conftest.$ac_ext >&5
14154 rm -rf conftest*
14155 eval "ac_cv_func_$ac_func=no"
14156 fi
14157 rm -f conftest*
14158 fi
14159
14160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14161 echo "$ac_t""yes" 1>&6
14162 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14163 cat >> confdefs.h <<EOF
14164 #define $ac_tr_func 1
14165 EOF
14166 break
14167 else
14168 echo "$ac_t""no" 1>&6
14169 fi
14170 done
14171
14172
14173
14174 ac_ext=C
14175 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14176 ac_cpp='$CXXCPP $CPPFLAGS'
14177 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14178 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14179 cross_compiling=$ac_cv_prog_cxx_cross
14180
14181
14182 for ac_func in strtok_r
14183 do
14184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14185 echo "configure:14186: checking for $ac_func" >&5
14186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14187 echo $ac_n "(cached) $ac_c" 1>&6
14188 else
14189 cat > conftest.$ac_ext <<EOF
14190 #line 14191 "configure"
14191 #include "confdefs.h"
14192 /* System header to define __stub macros and hopefully few prototypes,
14193 which can conflict with char $ac_func(); below. */
14194 #include <assert.h>
14195 /* Override any gcc2 internal prototype to avoid an error. */
14196 #ifdef __cplusplus
14197 extern "C"
14198 #endif
14199 /* We use char because int might match the return type of a gcc2
14200 builtin and then its argument prototype would still apply. */
14201 char $ac_func();
14202
14203 int main() {
14204
14205 /* The GNU C library defines this for functions which it implements
14206 to always fail with ENOSYS. Some functions are actually named
14207 something starting with __ and the normal name is an alias. */
14208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14209 choke me
14210 #else
14211 $ac_func();
14212 #endif
14213
14214 ; return 0; }
14215 EOF
14216 if { (eval echo configure:14217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14217 rm -rf conftest*
14218 eval "ac_cv_func_$ac_func=yes"
14219 else
14220 echo "configure: failed program was:" >&5
14221 cat conftest.$ac_ext >&5
14222 rm -rf conftest*
14223 eval "ac_cv_func_$ac_func=no"
14224 fi
14225 rm -f conftest*
14226 fi
14227
14228 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14229 echo "$ac_t""yes" 1>&6
14230 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14231 cat >> confdefs.h <<EOF
14232 #define $ac_tr_func 1
14233 EOF
14234
14235 else
14236 echo "$ac_t""no" 1>&6
14237 fi
14238 done
14239
14240
14241 ac_ext=c
14242 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14243 ac_cpp='$CPP $CPPFLAGS'
14244 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14245 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14246 cross_compiling=$ac_cv_prog_cc_cross
14247
14248
14249 INET_LINK=
14250 for ac_func in inet_addr
14251 do
14252 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14253 echo "configure:14254: checking for $ac_func" >&5
14254 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14255 echo $ac_n "(cached) $ac_c" 1>&6
14256 else
14257 cat > conftest.$ac_ext <<EOF
14258 #line 14259 "configure"
14259 #include "confdefs.h"
14260 /* System header to define __stub macros and hopefully few prototypes,
14261 which can conflict with char $ac_func(); below. */
14262 #include <assert.h>
14263 /* Override any gcc2 internal prototype to avoid an error. */
14264 /* We use char because int might match the return type of a gcc2
14265 builtin and then its argument prototype would still apply. */
14266 char $ac_func();
14267
14268 int main() {
14269
14270 /* The GNU C library defines this for functions which it implements
14271 to always fail with ENOSYS. Some functions are actually named
14272 something starting with __ and the normal name is an alias. */
14273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14274 choke me
14275 #else
14276 $ac_func();
14277 #endif
14278
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_func_$ac_func=yes"
14284 else
14285 echo "configure: failed program was:" >&5
14286 cat conftest.$ac_ext >&5
14287 rm -rf conftest*
14288 eval "ac_cv_func_$ac_func=no"
14289 fi
14290 rm -f conftest*
14291 fi
14292
14293 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14294 echo "$ac_t""yes" 1>&6
14295 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14296 cat >> confdefs.h <<EOF
14297 #define $ac_tr_func 1
14298 EOF
14299 cat >> confdefs.h <<\EOF
14300 #define HAVE_INET_ADDR 1
14301 EOF
14302
14303 else
14304 echo "$ac_t""no" 1>&6
14305 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
14306 echo "configure:14307: checking for inet_addr in -lnsl" >&5
14307 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
14308 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14309 echo $ac_n "(cached) $ac_c" 1>&6
14310 else
14311 ac_save_LIBS="$LIBS"
14312 LIBS="-lnsl $LIBS"
14313 cat > conftest.$ac_ext <<EOF
14314 #line 14315 "configure"
14315 #include "confdefs.h"
14316 /* Override any gcc2 internal prototype to avoid an error. */
14317 /* We use char because int might match the return type of a gcc2
14318 builtin and then its argument prototype would still apply. */
14319 char inet_addr();
14320
14321 int main() {
14322 inet_addr()
14323 ; return 0; }
14324 EOF
14325 if { (eval echo configure:14326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14326 rm -rf conftest*
14327 eval "ac_cv_lib_$ac_lib_var=yes"
14328 else
14329 echo "configure: failed program was:" >&5
14330 cat conftest.$ac_ext >&5
14331 rm -rf conftest*
14332 eval "ac_cv_lib_$ac_lib_var=no"
14333 fi
14334 rm -f conftest*
14335 LIBS="$ac_save_LIBS"
14336
14337 fi
14338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14339 echo "$ac_t""yes" 1>&6
14340 INET_LINK="nsl"
14341 else
14342 echo "$ac_t""no" 1>&6
14343 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
14344 echo "configure:14345: checking for inet_addr in -lresolv" >&5
14345 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
14346 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14347 echo $ac_n "(cached) $ac_c" 1>&6
14348 else
14349 ac_save_LIBS="$LIBS"
14350 LIBS="-lresolv $LIBS"
14351 cat > conftest.$ac_ext <<EOF
14352 #line 14353 "configure"
14353 #include "confdefs.h"
14354 /* Override any gcc2 internal prototype to avoid an error. */
14355 /* We use char because int might match the return type of a gcc2
14356 builtin and then its argument prototype would still apply. */
14357 char inet_addr();
14358
14359 int main() {
14360 inet_addr()
14361 ; return 0; }
14362 EOF
14363 if { (eval echo configure:14364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14364 rm -rf conftest*
14365 eval "ac_cv_lib_$ac_lib_var=yes"
14366 else
14367 echo "configure: failed program was:" >&5
14368 cat conftest.$ac_ext >&5
14369 rm -rf conftest*
14370 eval "ac_cv_lib_$ac_lib_var=no"
14371 fi
14372 rm -f conftest*
14373 LIBS="$ac_save_LIBS"
14374
14375 fi
14376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14377 echo "$ac_t""yes" 1>&6
14378 INET_LINK="resolv"
14379
14380 else
14381 echo "$ac_t""no" 1>&6
14382 fi
14383
14384
14385 fi
14386
14387
14388
14389 fi
14390 done
14391
14392
14393 for ac_func in inet_aton
14394 do
14395 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14396 echo "configure:14397: checking for $ac_func" >&5
14397 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14398 echo $ac_n "(cached) $ac_c" 1>&6
14399 else
14400 cat > conftest.$ac_ext <<EOF
14401 #line 14402 "configure"
14402 #include "confdefs.h"
14403 /* System header to define __stub macros and hopefully few prototypes,
14404 which can conflict with char $ac_func(); below. */
14405 #include <assert.h>
14406 /* Override any gcc2 internal prototype to avoid an error. */
14407 /* We use char because int might match the return type of a gcc2
14408 builtin and then its argument prototype would still apply. */
14409 char $ac_func();
14410
14411 int main() {
14412
14413 /* The GNU C library defines this for functions which it implements
14414 to always fail with ENOSYS. Some functions are actually named
14415 something starting with __ and the normal name is an alias. */
14416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14417 choke me
14418 #else
14419 $ac_func();
14420 #endif
14421
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_func_$ac_func=yes"
14427 else
14428 echo "configure: failed program was:" >&5
14429 cat conftest.$ac_ext >&5
14430 rm -rf conftest*
14431 eval "ac_cv_func_$ac_func=no"
14432 fi
14433 rm -f conftest*
14434 fi
14435
14436 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14437 echo "$ac_t""yes" 1>&6
14438 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14439 cat >> confdefs.h <<EOF
14440 #define $ac_tr_func 1
14441 EOF
14442 cat >> confdefs.h <<\EOF
14443 #define HAVE_INET_ATON 1
14444 EOF
14445
14446 else
14447 echo "$ac_t""no" 1>&6
14448 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
14449 echo "configure:14450: checking for inet_aton in -l$INET_LINK" >&5
14450 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
14451 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14452 echo $ac_n "(cached) $ac_c" 1>&6
14453 else
14454 ac_save_LIBS="$LIBS"
14455 LIBS="-l$INET_LINK $LIBS"
14456 cat > conftest.$ac_ext <<EOF
14457 #line 14458 "configure"
14458 #include "confdefs.h"
14459 /* Override any gcc2 internal prototype to avoid an error. */
14460 /* We use char because int might match the return type of a gcc2
14461 builtin and then its argument prototype would still apply. */
14462 char inet_aton();
14463
14464 int main() {
14465 inet_aton()
14466 ; return 0; }
14467 EOF
14468 if { (eval echo configure:14469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14469 rm -rf conftest*
14470 eval "ac_cv_lib_$ac_lib_var=yes"
14471 else
14472 echo "configure: failed program was:" >&5
14473 cat conftest.$ac_ext >&5
14474 rm -rf conftest*
14475 eval "ac_cv_lib_$ac_lib_var=no"
14476 fi
14477 rm -f conftest*
14478 LIBS="$ac_save_LIBS"
14479
14480 fi
14481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14482 echo "$ac_t""yes" 1>&6
14483 cat >> confdefs.h <<\EOF
14484 #define HAVE_INET_ATON 1
14485 EOF
14486
14487 else
14488 echo "$ac_t""no" 1>&6
14489 fi
14490
14491
14492 fi
14493 done
14494
14495
14496 if test "x$INET_LINK" != "x"; then
14497 cat >> confdefs.h <<\EOF
14498 #define HAVE_INET_ADDR 1
14499 EOF
14500
14501 INET_LINK="-l$INET_LINK"
14502 fi
14503
14504 fi
14505
14506
14507 cat > confcache <<\EOF
14508 # This file is a shell script that caches the results of configure
14509 # tests run on this system so they can be shared between configure
14510 # scripts and configure runs. It is not useful on other systems.
14511 # If it contains results you don't want to keep, you may remove or edit it.
14512 #
14513 # By default, configure uses ./config.cache as the cache file,
14514 # creating it if it does not exist already. You can give configure
14515 # the --cache-file=FILE option to use a different cache file; that is
14516 # what configure does when it calls configure scripts in
14517 # subdirectories, so they share the cache.
14518 # Giving --cache-file=/dev/null disables caching, for debugging configure.
14519 # config.status only pays attention to the cache file if you give it the
14520 # --recheck option to rerun configure.
14521 #
14522 EOF
14523 # The following way of writing the cache mishandles newlines in values,
14524 # but we know of no workaround that is simple, portable, and efficient.
14525 # So, don't put newlines in cache variables' values.
14526 # Ultrix sh set writes to stderr and can't be redirected directly,
14527 # and sets the high bit in the cache file unless we assign to the vars.
14528 (set) 2>&1 |
14529 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14530 *ac_space=\ *)
14531 # `set' does not quote correctly, so add quotes (double-quote substitution
14532 # turns \\\\ into \\, and sed turns \\ into \).
14533 sed -n \
14534 -e "s/'/'\\\\''/g" \
14535 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14536 ;;
14537 *)
14538 # `set' quotes correctly as required by POSIX, so do not add quotes.
14539 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14540 ;;
14541 esac >> confcache
14542 if cmp -s $cache_file confcache; then
14543 :
14544 else
14545 if test -w $cache_file; then
14546 echo "updating cache $cache_file"
14547 cat confcache > $cache_file
14548 else
14549 echo "not updating unwritable cache $cache_file"
14550 fi
14551 fi
14552 rm -f confcache
14553
14554
14555
14556 if test "$TOOLKIT" != "MSW"; then
14557
14558
14559 THREADS_LINK=
14560 THREADS_OBJ=
14561 CODE_GEN_FLAGS=
14562 CODE_GEN_FLAGS_CXX=
14563
14564 if test "$wxUSE_THREADS" = "yes" ; then
14565 if test "$wxUSE_WINE" = 1 ; then
14566 echo "configure: warning: Threads are not supported under WINE" 1>&2
14567 wxUSE_THREADS="no"
14568 elif test "$USE_BEOS" = 1; then
14569 echo "configure: warning: BeOS threads are not yet supported" 1>&2
14570 wxUSE_THREADS="no"
14571 fi
14572 fi
14573
14574 if test "$wxUSE_THREADS" = "yes" ; then
14575
14576 if test "$USE_AIX" = 1; then
14577 THREADS_LIB=pthreads
14578 else
14579 THREADS_LIB=pthread
14580 fi
14581
14582 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
14583 echo "configure:14584: checking for pthread_create in -l$THREADS_LIB" >&5
14584 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
14585 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14586 echo $ac_n "(cached) $ac_c" 1>&6
14587 else
14588 ac_save_LIBS="$LIBS"
14589 LIBS="-l$THREADS_LIB $LIBS"
14590 cat > conftest.$ac_ext <<EOF
14591 #line 14592 "configure"
14592 #include "confdefs.h"
14593 /* Override any gcc2 internal prototype to avoid an error. */
14594 /* We use char because int might match the return type of a gcc2
14595 builtin and then its argument prototype would still apply. */
14596 char pthread_create();
14597
14598 int main() {
14599 pthread_create()
14600 ; return 0; }
14601 EOF
14602 if { (eval echo configure:14603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14603 rm -rf conftest*
14604 eval "ac_cv_lib_$ac_lib_var=yes"
14605 else
14606 echo "configure: failed program was:" >&5
14607 cat conftest.$ac_ext >&5
14608 rm -rf conftest*
14609 eval "ac_cv_lib_$ac_lib_var=no"
14610 fi
14611 rm -f conftest*
14612 LIBS="$ac_save_LIBS"
14613
14614 fi
14615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14616 echo "$ac_t""yes" 1>&6
14617
14618 THREADS_OBJ="threadpsx.lo"
14619 THREADS_LINK=$THREADS_LIB
14620
14621 else
14622 echo "$ac_t""no" 1>&6
14623
14624 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
14625 echo "configure:14626: checking for pthread_create in -lc_r" >&5
14626 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
14627 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14628 echo $ac_n "(cached) $ac_c" 1>&6
14629 else
14630 ac_save_LIBS="$LIBS"
14631 LIBS="-lc_r $LIBS"
14632 cat > conftest.$ac_ext <<EOF
14633 #line 14634 "configure"
14634 #include "confdefs.h"
14635 /* Override any gcc2 internal prototype to avoid an error. */
14636 /* We use char because int might match the return type of a gcc2
14637 builtin and then its argument prototype would still apply. */
14638 char pthread_create();
14639
14640 int main() {
14641 pthread_create()
14642 ; return 0; }
14643 EOF
14644 if { (eval echo configure:14645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14645 rm -rf conftest*
14646 eval "ac_cv_lib_$ac_lib_var=yes"
14647 else
14648 echo "configure: failed program was:" >&5
14649 cat conftest.$ac_ext >&5
14650 rm -rf conftest*
14651 eval "ac_cv_lib_$ac_lib_var=no"
14652 fi
14653 rm -f conftest*
14654 LIBS="$ac_save_LIBS"
14655
14656 fi
14657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14658 echo "$ac_t""yes" 1>&6
14659
14660 THREADS_OBJ="threadpsx.lo"
14661 THREADS_LINK="c_r"
14662
14663 else
14664 echo "$ac_t""no" 1>&6
14665
14666 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
14667 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
14668 echo "configure:14669: checking for sys/prctl.h" >&5
14669 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14670 echo $ac_n "(cached) $ac_c" 1>&6
14671 else
14672 cat > conftest.$ac_ext <<EOF
14673 #line 14674 "configure"
14674 #include "confdefs.h"
14675 #include <sys/prctl.h>
14676 EOF
14677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14678 { (eval echo configure:14679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14680 if test -z "$ac_err"; then
14681 rm -rf conftest*
14682 eval "ac_cv_header_$ac_safe=yes"
14683 else
14684 echo "$ac_err" >&5
14685 echo "configure: failed program was:" >&5
14686 cat conftest.$ac_ext >&5
14687 rm -rf conftest*
14688 eval "ac_cv_header_$ac_safe=no"
14689 fi
14690 rm -f conftest*
14691 fi
14692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14693 echo "$ac_t""yes" 1>&6
14694
14695 THREADS_OBJ="threadsgi.lo"
14696
14697 else
14698 echo "$ac_t""no" 1>&6
14699 fi
14700
14701
14702 fi
14703
14704
14705 fi
14706
14707
14708 if test -z "$THREADS_OBJ" ; then
14709 wxUSE_THREADS=no
14710 echo "configure: warning: No thread support on this system" 1>&2
14711 fi
14712 fi
14713
14714 if test "$wxUSE_THREADS" = "yes" ; then
14715 for ac_func in thr_setconcurrency
14716 do
14717 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14718 echo "configure:14719: checking for $ac_func" >&5
14719 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14720 echo $ac_n "(cached) $ac_c" 1>&6
14721 else
14722 cat > conftest.$ac_ext <<EOF
14723 #line 14724 "configure"
14724 #include "confdefs.h"
14725 /* System header to define __stub macros and hopefully few prototypes,
14726 which can conflict with char $ac_func(); below. */
14727 #include <assert.h>
14728 /* Override any gcc2 internal prototype to avoid an error. */
14729 /* We use char because int might match the return type of a gcc2
14730 builtin and then its argument prototype would still apply. */
14731 char $ac_func();
14732
14733 int main() {
14734
14735 /* The GNU C library defines this for functions which it implements
14736 to always fail with ENOSYS. Some functions are actually named
14737 something starting with __ and the normal name is an alias. */
14738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14739 choke me
14740 #else
14741 $ac_func();
14742 #endif
14743
14744 ; return 0; }
14745 EOF
14746 if { (eval echo configure:14747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14747 rm -rf conftest*
14748 eval "ac_cv_func_$ac_func=yes"
14749 else
14750 echo "configure: failed program was:" >&5
14751 cat conftest.$ac_ext >&5
14752 rm -rf conftest*
14753 eval "ac_cv_func_$ac_func=no"
14754 fi
14755 rm -f conftest*
14756 fi
14757
14758 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14759 echo "$ac_t""yes" 1>&6
14760 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14761 cat >> confdefs.h <<EOF
14762 #define $ac_tr_func 1
14763 EOF
14764
14765 else
14766 echo "$ac_t""no" 1>&6
14767 fi
14768 done
14769
14770
14771
14772 for ac_hdr in sched.h
14773 do
14774 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14775 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14776 echo "configure:14777: checking for $ac_hdr" >&5
14777 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14778 echo $ac_n "(cached) $ac_c" 1>&6
14779 else
14780 cat > conftest.$ac_ext <<EOF
14781 #line 14782 "configure"
14782 #include "confdefs.h"
14783 #include <$ac_hdr>
14784 EOF
14785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14786 { (eval echo configure:14787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14787 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14788 if test -z "$ac_err"; then
14789 rm -rf conftest*
14790 eval "ac_cv_header_$ac_safe=yes"
14791 else
14792 echo "$ac_err" >&5
14793 echo "configure: failed program was:" >&5
14794 cat conftest.$ac_ext >&5
14795 rm -rf conftest*
14796 eval "ac_cv_header_$ac_safe=no"
14797 fi
14798 rm -f conftest*
14799 fi
14800 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14801 echo "$ac_t""yes" 1>&6
14802 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14803 cat >> confdefs.h <<EOF
14804 #define $ac_tr_hdr 1
14805 EOF
14806
14807 else
14808 echo "$ac_t""no" 1>&6
14809 fi
14810 done
14811
14812
14813 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
14814 echo "configure:14815: checking for sched_yield in -l$THREADS_LINK" >&5
14815 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
14816 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14817 echo $ac_n "(cached) $ac_c" 1>&6
14818 else
14819 ac_save_LIBS="$LIBS"
14820 LIBS="-l$THREADS_LINK $LIBS"
14821 cat > conftest.$ac_ext <<EOF
14822 #line 14823 "configure"
14823 #include "confdefs.h"
14824 /* Override any gcc2 internal prototype to avoid an error. */
14825 /* We use char because int might match the return type of a gcc2
14826 builtin and then its argument prototype would still apply. */
14827 char sched_yield();
14828
14829 int main() {
14830 sched_yield()
14831 ; return 0; }
14832 EOF
14833 if { (eval echo configure:14834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14834 rm -rf conftest*
14835 eval "ac_cv_lib_$ac_lib_var=yes"
14836 else
14837 echo "configure: failed program was:" >&5
14838 cat conftest.$ac_ext >&5
14839 rm -rf conftest*
14840 eval "ac_cv_lib_$ac_lib_var=no"
14841 fi
14842 rm -f conftest*
14843 LIBS="$ac_save_LIBS"
14844
14845 fi
14846 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14847 echo "$ac_t""yes" 1>&6
14848 cat >> confdefs.h <<\EOF
14849 #define HAVE_SCHED_YIELD 1
14850 EOF
14851
14852 else
14853 echo "$ac_t""no" 1>&6
14854 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
14855 echo "configure:14856: checking for sched_yield in -lposix4" >&5
14856 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
14857 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14858 echo $ac_n "(cached) $ac_c" 1>&6
14859 else
14860 ac_save_LIBS="$LIBS"
14861 LIBS="-lposix4 $LIBS"
14862 cat > conftest.$ac_ext <<EOF
14863 #line 14864 "configure"
14864 #include "confdefs.h"
14865 /* Override any gcc2 internal prototype to avoid an error. */
14866 /* We use char because int might match the return type of a gcc2
14867 builtin and then its argument prototype would still apply. */
14868 char sched_yield();
14869
14870 int main() {
14871 sched_yield()
14872 ; return 0; }
14873 EOF
14874 if { (eval echo configure:14875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14875 rm -rf conftest*
14876 eval "ac_cv_lib_$ac_lib_var=yes"
14877 else
14878 echo "configure: failed program was:" >&5
14879 cat conftest.$ac_ext >&5
14880 rm -rf conftest*
14881 eval "ac_cv_lib_$ac_lib_var=no"
14882 fi
14883 rm -f conftest*
14884 LIBS="$ac_save_LIBS"
14885
14886 fi
14887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14888 echo "$ac_t""yes" 1>&6
14889 cat >> confdefs.h <<\EOF
14890 #define HAVE_SCHED_YIELD 1
14891 EOF
14892 POSIX4_LINK="-lposix4"
14893 else
14894 echo "$ac_t""no" 1>&6
14895 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
14896
14897 fi
14898
14899
14900 fi
14901
14902
14903 HAVE_PRIOR_FUNCS=0
14904 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
14905 echo "configure:14906: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
14906 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
14907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14908 echo $ac_n "(cached) $ac_c" 1>&6
14909 else
14910 ac_save_LIBS="$LIBS"
14911 LIBS="-l$THREADS_LINK $LIBS"
14912 cat > conftest.$ac_ext <<EOF
14913 #line 14914 "configure"
14914 #include "confdefs.h"
14915 /* Override any gcc2 internal prototype to avoid an error. */
14916 /* We use char because int might match the return type of a gcc2
14917 builtin and then its argument prototype would still apply. */
14918 char pthread_attr_getschedpolicy();
14919
14920 int main() {
14921 pthread_attr_getschedpolicy()
14922 ; return 0; }
14923 EOF
14924 if { (eval echo configure:14925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14925 rm -rf conftest*
14926 eval "ac_cv_lib_$ac_lib_var=yes"
14927 else
14928 echo "configure: failed program was:" >&5
14929 cat conftest.$ac_ext >&5
14930 rm -rf conftest*
14931 eval "ac_cv_lib_$ac_lib_var=no"
14932 fi
14933 rm -f conftest*
14934 LIBS="$ac_save_LIBS"
14935
14936 fi
14937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14938 echo "$ac_t""yes" 1>&6
14939 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
14940 echo "configure:14941: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
14941 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
14942 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14943 echo $ac_n "(cached) $ac_c" 1>&6
14944 else
14945 ac_save_LIBS="$LIBS"
14946 LIBS="-l$THREADS_LINK $LIBS"
14947 cat > conftest.$ac_ext <<EOF
14948 #line 14949 "configure"
14949 #include "confdefs.h"
14950 /* Override any gcc2 internal prototype to avoid an error. */
14951 /* We use char because int might match the return type of a gcc2
14952 builtin and then its argument prototype would still apply. */
14953 char pthread_attr_setschedparam();
14954
14955 int main() {
14956 pthread_attr_setschedparam()
14957 ; return 0; }
14958 EOF
14959 if { (eval echo configure:14960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14960 rm -rf conftest*
14961 eval "ac_cv_lib_$ac_lib_var=yes"
14962 else
14963 echo "configure: failed program was:" >&5
14964 cat conftest.$ac_ext >&5
14965 rm -rf conftest*
14966 eval "ac_cv_lib_$ac_lib_var=no"
14967 fi
14968 rm -f conftest*
14969 LIBS="$ac_save_LIBS"
14970
14971 fi
14972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14973 echo "$ac_t""yes" 1>&6
14974 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
14975 echo "configure:14976: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
14976 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14977 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14978 echo $ac_n "(cached) $ac_c" 1>&6
14979 else
14980 ac_save_LIBS="$LIBS"
14981 LIBS="-l$THREADS_LINK $LIBS"
14982 cat > conftest.$ac_ext <<EOF
14983 #line 14984 "configure"
14984 #include "confdefs.h"
14985 /* Override any gcc2 internal prototype to avoid an error. */
14986 /* We use char because int might match the return type of a gcc2
14987 builtin and then its argument prototype would still apply. */
14988 char sched_get_priority_max();
14989
14990 int main() {
14991 sched_get_priority_max()
14992 ; return 0; }
14993 EOF
14994 if { (eval echo configure:14995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14995 rm -rf conftest*
14996 eval "ac_cv_lib_$ac_lib_var=yes"
14997 else
14998 echo "configure: failed program was:" >&5
14999 cat conftest.$ac_ext >&5
15000 rm -rf conftest*
15001 eval "ac_cv_lib_$ac_lib_var=no"
15002 fi
15003 rm -f conftest*
15004 LIBS="$ac_save_LIBS"
15005
15006 fi
15007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15008 echo "$ac_t""yes" 1>&6
15009 HAVE_PRIOR_FUNCS=1
15010 else
15011 echo "$ac_t""no" 1>&6
15012 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
15013 echo "configure:15014: checking for sched_get_priority_max in -lposix4" >&5
15014 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
15015 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15016 echo $ac_n "(cached) $ac_c" 1>&6
15017 else
15018 ac_save_LIBS="$LIBS"
15019 LIBS="-lposix4 $LIBS"
15020 cat > conftest.$ac_ext <<EOF
15021 #line 15022 "configure"
15022 #include "confdefs.h"
15023 /* Override any gcc2 internal prototype to avoid an error. */
15024 /* We use char because int might match the return type of a gcc2
15025 builtin and then its argument prototype would still apply. */
15026 char sched_get_priority_max();
15027
15028 int main() {
15029 sched_get_priority_max()
15030 ; return 0; }
15031 EOF
15032 if { (eval echo configure:15033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15033 rm -rf conftest*
15034 eval "ac_cv_lib_$ac_lib_var=yes"
15035 else
15036 echo "configure: failed program was:" >&5
15037 cat conftest.$ac_ext >&5
15038 rm -rf conftest*
15039 eval "ac_cv_lib_$ac_lib_var=no"
15040 fi
15041 rm -f conftest*
15042 LIBS="$ac_save_LIBS"
15043
15044 fi
15045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15046 echo "$ac_t""yes" 1>&6
15047
15048 HAVE_PRIOR_FUNCS=1
15049 POSIX4_LINK="-lposix4"
15050
15051 else
15052 echo "$ac_t""no" 1>&6
15053 fi
15054
15055
15056 fi
15057
15058
15059 else
15060 echo "$ac_t""no" 1>&6
15061 fi
15062
15063
15064 else
15065 echo "$ac_t""no" 1>&6
15066 fi
15067
15068
15069 if test "$HAVE_PRIOR_FUNCS" = 1; then
15070 cat >> confdefs.h <<\EOF
15071 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
15072 EOF
15073
15074 else
15075 echo "configure: warning: Setting thread priority will not work" 1>&2
15076 fi
15077
15078 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
15079 echo "configure:15080: checking for pthread_cancel in -l$THREADS_LINK" >&5
15080 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
15081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15082 echo $ac_n "(cached) $ac_c" 1>&6
15083 else
15084 ac_save_LIBS="$LIBS"
15085 LIBS="-l$THREADS_LINK $LIBS"
15086 cat > conftest.$ac_ext <<EOF
15087 #line 15088 "configure"
15088 #include "confdefs.h"
15089 /* Override any gcc2 internal prototype to avoid an error. */
15090 /* We use char because int might match the return type of a gcc2
15091 builtin and then its argument prototype would still apply. */
15092 char pthread_cancel();
15093
15094 int main() {
15095 pthread_cancel()
15096 ; return 0; }
15097 EOF
15098 if { (eval echo configure:15099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15099 rm -rf conftest*
15100 eval "ac_cv_lib_$ac_lib_var=yes"
15101 else
15102 echo "configure: failed program was:" >&5
15103 cat conftest.$ac_ext >&5
15104 rm -rf conftest*
15105 eval "ac_cv_lib_$ac_lib_var=no"
15106 fi
15107 rm -f conftest*
15108 LIBS="$ac_save_LIBS"
15109
15110 fi
15111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15112 echo "$ac_t""yes" 1>&6
15113 cat >> confdefs.h <<\EOF
15114 #define HAVE_PTHREAD_CANCEL 1
15115 EOF
15116
15117 else
15118 echo "$ac_t""no" 1>&6
15119 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
15120 fi
15121
15122
15123 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
15124 echo "configure:15125: checking for pthread_cleanup_push/pop" >&5
15125 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
15126 echo $ac_n "(cached) $ac_c" 1>&6
15127 else
15128
15129 cat > conftest.$ac_ext <<EOF
15130 #line 15131 "configure"
15131 #include "confdefs.h"
15132 #include <pthread.h>
15133 int main() {
15134
15135 pthread_cleanup_push(NULL, NULL);
15136 pthread_cleanup_pop(0);
15137
15138 ; return 0; }
15139 EOF
15140 if { (eval echo configure:15141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15141 rm -rf conftest*
15142
15143 wx_cv_func_pthread_cleanup_push=yes
15144
15145 else
15146 echo "configure: failed program was:" >&5
15147 cat conftest.$ac_ext >&5
15148 rm -rf conftest*
15149
15150 wx_cv_func_pthread_cleanup_push=no
15151
15152 fi
15153 rm -f conftest*
15154
15155 fi
15156
15157 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
15158
15159 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
15160 cat >> confdefs.h <<\EOF
15161 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
15162 EOF
15163
15164 fi
15165
15166
15167 if test "x$wx_lib_glibc21" = "xyes"; then
15168 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
15169 fi
15170
15171 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
15172 echo "configure:15173: checking for pthread_mutexattr_t" >&5
15173 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
15174 echo $ac_n "(cached) $ac_c" 1>&6
15175 else
15176
15177 cat > conftest.$ac_ext <<EOF
15178 #line 15179 "configure"
15179 #include "confdefs.h"
15180 #include <pthread.h>
15181 int main() {
15182
15183 pthread_mutexattr_t attr;
15184 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
15185
15186 ; return 0; }
15187 EOF
15188 if { (eval echo configure:15189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15189 rm -rf conftest*
15190
15191 wx_cv_type_pthread_mutexattr_t=yes
15192
15193 else
15194 echo "configure: failed program was:" >&5
15195 cat conftest.$ac_ext >&5
15196 rm -rf conftest*
15197
15198 wx_cv_type_pthread_mutexattr_t=no
15199
15200
15201 fi
15202 rm -f conftest*
15203
15204 fi
15205
15206 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
15207
15208 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
15209 cat >> confdefs.h <<\EOF
15210 #define HAVE_PTHREAD_MUTEXATTR_T 1
15211 EOF
15212
15213 else
15214 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
15215 echo "configure:15216: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
15216 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
15217 echo $ac_n "(cached) $ac_c" 1>&6
15218 else
15219
15220 cat > conftest.$ac_ext <<EOF
15221 #line 15222 "configure"
15222 #include "confdefs.h"
15223 #include <pthread.h>
15224 int main() {
15225
15226 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
15227
15228 ; return 0; }
15229 EOF
15230 if { (eval echo configure:15231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15231 rm -rf conftest*
15232
15233 wx_cv_type_pthread_rec_mutex_init=yes
15234
15235 else
15236 echo "configure: failed program was:" >&5
15237 cat conftest.$ac_ext >&5
15238 rm -rf conftest*
15239
15240 wx_cv_type_pthread_rec_mutex_init=no
15241
15242
15243 fi
15244 rm -f conftest*
15245
15246 fi
15247
15248 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
15249 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
15250 cat >> confdefs.h <<\EOF
15251 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
15252 EOF
15253
15254 else
15255 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
15256 fi
15257 fi
15258
15259 THREADS_LINK="-l$THREADS_LINK"
15260
15261 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
15262 CPPFLAGS="${CFLAGS} -mt"
15263 CXXFLAGS="${CXXFLAGS} -mt"
15264 LDFLAGS="${LDFLAGS} -mt"
15265 fi
15266 fi
15267
15268 fi
15269
15270 if test "$wxUSE_THREADS" = "yes"; then
15271 cat >> confdefs.h <<\EOF
15272 #define wxUSE_THREADS 1
15273 EOF
15274
15275
15276 if test "$USE_DARWIN" != 1; then
15277 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
15278 fi
15279
15280 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
15281 else
15282 if test "$ac_cv_func_strtok_r" = "yes"; then
15283 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
15284 echo "configure:15285: checking if -D_REENTRANT is needed" >&5
15285 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
15286 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
15287 echo "$ac_t""yes" 1>&6
15288 else
15289 echo "$ac_t""no" 1>&6
15290 fi
15291 fi
15292 fi
15293
15294 if test "$WXGTK20" = 1 ; then
15295 cat >> confdefs.h <<EOF
15296 #define __WXGTK20__ $WXGTK20
15297 EOF
15298
15299 WXGTK12=1
15300 fi
15301
15302 if test "$WXGTK12" = 1 ; then
15303 cat >> confdefs.h <<EOF
15304 #define __WXGTK12__ $WXGTK12
15305 EOF
15306
15307 fi
15308
15309 if test "$WXGTK127" = 1 ; then
15310 cat >> confdefs.h <<EOF
15311 #define __WXGTK127__ $WXGTK127
15312 EOF
15313
15314 fi
15315
15316 WXDEBUG=
15317
15318 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
15319 WXDEBUG="-g"
15320 wxUSE_OPTIMISE=no
15321 fi
15322
15323 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
15324 wxUSE_DEBUG_INFO=yes
15325 WXDEBUG="-ggdb"
15326 fi
15327
15328 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
15329 cat >> confdefs.h <<\EOF
15330 #define WXDEBUG 1
15331 EOF
15332
15333 WXDEBUG_DEFINE="-D__WXDEBUG__"
15334 else
15335 if test "$wxUSE_GTK" = 1 ; then
15336 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
15337 fi
15338 fi
15339
15340 if test "$wxUSE_MEM_TRACING" = "yes" ; then
15341 cat >> confdefs.h <<\EOF
15342 #define wxUSE_MEMORY_TRACING 1
15343 EOF
15344
15345 cat >> confdefs.h <<\EOF
15346 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
15347 EOF
15348
15349 cat >> confdefs.h <<\EOF
15350 #define wxUSE_DEBUG_NEW_ALWAYS 1
15351 EOF
15352
15353 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
15354 fi
15355
15356 if test "$wxUSE_DMALLOC" = "yes" ; then
15357 DMALLOC_LINK="-ldmalloc"
15358 fi
15359
15360 PROFILE=
15361 if test "$wxUSE_PROFILE" = "yes" ; then
15362 PROFILE="-pg"
15363 fi
15364
15365 if test "$GCC" = yes ; then
15366 if test "$wxUSE_NO_RTTI" = "yes" ; then
15367 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
15368 fi
15369 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
15370 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
15371 fi
15372 if test "$wxUSE_PERMISSIVE" = "yes" ; then
15373 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
15374 fi
15375 if test "$wxUSE_NO_DEPS" = "no" ; then
15376 CFLAGS="-MMD ${CFLAGS}"
15377 CXXFLAGS="-MMD ${CXXFLAGS}"
15378 fi
15379 if test "$USE_WIN32" = 1 ; then
15380 # I'm not even really sure what this was ever added to solve,
15381 # but someone added it for mingw native builds, so I guess
15382 # they had a reason, right??
15383 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
15384 fi
15385 fi
15386
15387
15388 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
15389 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
15390 if test "$wxUSE_OPTIMISE" = "no" ; then
15391 OPTIMISE=
15392 else
15393 if test "$GCC" = yes ; then
15394 OPTIMISE="-O2"
15395 case "${host}" in
15396 i586-*-*|i686-*-* )
15397 OPTIMISE="${OPTIMISE} "
15398 ;;
15399 esac
15400 else
15401 OPTIMISE="-O"
15402 fi
15403 fi
15404
15405 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
15406 cat >> confdefs.h <<\EOF
15407 #define WXWIN_COMPATIBILITY_2 1
15408 EOF
15409
15410
15411 WXWIN_COMPATIBILITY_2_2="yes"
15412 fi
15413
15414 if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
15415 cat >> confdefs.h <<\EOF
15416 #define WXWIN_COMPATIBILITY_2_2 1
15417 EOF
15418
15419 fi
15420
15421
15422 ZLIB_INCLUDE=
15423 if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
15424 cat >> confdefs.h <<\EOF
15425 #define wxUSE_ZLIB 1
15426 EOF
15427
15428 if test "$wxUSE_ZLIB" = "yes" ; then
15429 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
15430 else
15431 ZLIB_LINK=
15432 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
15433 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
15434 echo "configure:15435: checking for zlib.h" >&5
15435 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15436 echo $ac_n "(cached) $ac_c" 1>&6
15437 else
15438 cat > conftest.$ac_ext <<EOF
15439 #line 15440 "configure"
15440 #include "confdefs.h"
15441 #include <zlib.h>
15442 EOF
15443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15444 { (eval echo configure:15445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15445 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15446 if test -z "$ac_err"; then
15447 rm -rf conftest*
15448 eval "ac_cv_header_$ac_safe=yes"
15449 else
15450 echo "$ac_err" >&5
15451 echo "configure: failed program was:" >&5
15452 cat conftest.$ac_ext >&5
15453 rm -rf conftest*
15454 eval "ac_cv_header_$ac_safe=no"
15455 fi
15456 rm -f conftest*
15457 fi
15458 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15459 echo "$ac_t""yes" 1>&6
15460 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
15461 echo "configure:15462: checking for deflate in -lz" >&5
15462 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
15463 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15464 echo $ac_n "(cached) $ac_c" 1>&6
15465 else
15466 ac_save_LIBS="$LIBS"
15467 LIBS="-lz $LIBS"
15468 cat > conftest.$ac_ext <<EOF
15469 #line 15470 "configure"
15470 #include "confdefs.h"
15471 /* Override any gcc2 internal prototype to avoid an error. */
15472 /* We use char because int might match the return type of a gcc2
15473 builtin and then its argument prototype would still apply. */
15474 char deflate();
15475
15476 int main() {
15477 deflate()
15478 ; return 0; }
15479 EOF
15480 if { (eval echo configure:15481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15481 rm -rf conftest*
15482 eval "ac_cv_lib_$ac_lib_var=yes"
15483 else
15484 echo "configure: failed program was:" >&5
15485 cat conftest.$ac_ext >&5
15486 rm -rf conftest*
15487 eval "ac_cv_lib_$ac_lib_var=no"
15488 fi
15489 rm -f conftest*
15490 LIBS="$ac_save_LIBS"
15491
15492 fi
15493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15494 echo "$ac_t""yes" 1>&6
15495 ZLIB_LINK="-lz"
15496 else
15497 echo "$ac_t""no" 1>&6
15498 fi
15499
15500 else
15501 echo "$ac_t""no" 1>&6
15502 fi
15503
15504 if test "x$ZLIB_LINK" = "x" ; then
15505 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
15506 fi
15507 fi
15508 fi
15509
15510 PNG_INCLUDE=
15511 if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
15512 cat >> confdefs.h <<\EOF
15513 #define wxUSE_LIBPNG 1
15514 EOF
15515
15516 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
15517 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
15518 wxUSE_LIBPNG=yes
15519 fi
15520
15521 if test "$wxUSE_LIBPNG" = "yes" ; then
15522 PNG_INCLUDE="-I\${top_srcdir}/src/png"
15523 else
15524 PNG_LINK=
15525 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
15526 echo $ac_n "checking for png.h""... $ac_c" 1>&6
15527 echo "configure:15528: checking for png.h" >&5
15528 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15529 echo $ac_n "(cached) $ac_c" 1>&6
15530 else
15531 cat > conftest.$ac_ext <<EOF
15532 #line 15533 "configure"
15533 #include "confdefs.h"
15534 #include <png.h>
15535 EOF
15536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15537 { (eval echo configure:15538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15539 if test -z "$ac_err"; then
15540 rm -rf conftest*
15541 eval "ac_cv_header_$ac_safe=yes"
15542 else
15543 echo "$ac_err" >&5
15544 echo "configure: failed program was:" >&5
15545 cat conftest.$ac_ext >&5
15546 rm -rf conftest*
15547 eval "ac_cv_header_$ac_safe=no"
15548 fi
15549 rm -f conftest*
15550 fi
15551 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15552 echo "$ac_t""yes" 1>&6
15553 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
15554 echo "configure:15555: checking for png_check_sig in -lpng" >&5
15555 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
15556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15557 echo $ac_n "(cached) $ac_c" 1>&6
15558 else
15559 ac_save_LIBS="$LIBS"
15560 LIBS="-lpng -lz -lm $LIBS"
15561 cat > conftest.$ac_ext <<EOF
15562 #line 15563 "configure"
15563 #include "confdefs.h"
15564 /* Override any gcc2 internal prototype to avoid an error. */
15565 /* We use char because int might match the return type of a gcc2
15566 builtin and then its argument prototype would still apply. */
15567 char png_check_sig();
15568
15569 int main() {
15570 png_check_sig()
15571 ; return 0; }
15572 EOF
15573 if { (eval echo configure:15574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15574 rm -rf conftest*
15575 eval "ac_cv_lib_$ac_lib_var=yes"
15576 else
15577 echo "configure: failed program was:" >&5
15578 cat conftest.$ac_ext >&5
15579 rm -rf conftest*
15580 eval "ac_cv_lib_$ac_lib_var=no"
15581 fi
15582 rm -f conftest*
15583 LIBS="$ac_save_LIBS"
15584
15585 fi
15586 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15587 echo "$ac_t""yes" 1>&6
15588 PNG_LINK="-lpng"
15589 else
15590 echo "$ac_t""no" 1>&6
15591 fi
15592
15593
15594 else
15595 echo "$ac_t""no" 1>&6
15596 fi
15597
15598 if test "x$PNG_LINK" = "x" ; then
15599 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
15600 fi
15601 fi
15602
15603 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
15604 fi
15605
15606 JPEG_INCLUDE=
15607 if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
15608 cat >> confdefs.h <<\EOF
15609 #define wxUSE_LIBJPEG 1
15610 EOF
15611
15612 if test "$wxUSE_LIBJPEG" = "yes" ; then
15613 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
15614 else
15615 JPEG_LINK=
15616 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
15617 echo "configure:15618: checking for jpeglib.h" >&5
15618 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
15619 echo $ac_n "(cached) $ac_c" 1>&6
15620 else
15621 cat > conftest.$ac_ext <<EOF
15622 #line 15623 "configure"
15623 #include "confdefs.h"
15624
15625 #undef HAVE_STDLIB_H
15626 #include <stdio.h>
15627 #include <jpeglib.h>
15628
15629 int main() {
15630
15631
15632 ; return 0; }
15633 EOF
15634 if { (eval echo configure:15635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15635 rm -rf conftest*
15636 ac_cv_header_jpeglib_h=yes
15637 else
15638 echo "configure: failed program was:" >&5
15639 cat conftest.$ac_ext >&5
15640 rm -rf conftest*
15641 ac_cv_header_jpeglib_h=no
15642
15643 fi
15644 rm -f conftest*
15645
15646 fi
15647
15648 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
15649
15650 if test "$ac_cv_header_jpeglib_h" = "yes"; then
15651 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
15652 echo "configure:15653: checking for jpeg_read_header in -ljpeg" >&5
15653 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
15654 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15655 echo $ac_n "(cached) $ac_c" 1>&6
15656 else
15657 ac_save_LIBS="$LIBS"
15658 LIBS="-ljpeg $LIBS"
15659 cat > conftest.$ac_ext <<EOF
15660 #line 15661 "configure"
15661 #include "confdefs.h"
15662 /* Override any gcc2 internal prototype to avoid an error. */
15663 /* We use char because int might match the return type of a gcc2
15664 builtin and then its argument prototype would still apply. */
15665 char jpeg_read_header();
15666
15667 int main() {
15668 jpeg_read_header()
15669 ; return 0; }
15670 EOF
15671 if { (eval echo configure:15672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15672 rm -rf conftest*
15673 eval "ac_cv_lib_$ac_lib_var=yes"
15674 else
15675 echo "configure: failed program was:" >&5
15676 cat conftest.$ac_ext >&5
15677 rm -rf conftest*
15678 eval "ac_cv_lib_$ac_lib_var=no"
15679 fi
15680 rm -f conftest*
15681 LIBS="$ac_save_LIBS"
15682
15683 fi
15684 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15685 echo "$ac_t""yes" 1>&6
15686 JPEG_LINK="-ljpeg"
15687 else
15688 echo "$ac_t""no" 1>&6
15689 fi
15690
15691 fi
15692
15693 if test "x$JPEG_LINK" = "x" ; then
15694 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
15695 fi
15696 fi
15697 fi
15698
15699 TIFF_INCLUDE=
15700 if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
15701 cat >> confdefs.h <<\EOF
15702 #define wxUSE_LIBTIFF 1
15703 EOF
15704
15705 if test "$wxUSE_LIBTIFF" = "yes" ; then
15706 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
15707 else
15708 TIFF_LINK=
15709 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
15710 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
15711 echo "configure:15712: checking for tiffio.h" >&5
15712 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15713 echo $ac_n "(cached) $ac_c" 1>&6
15714 else
15715 cat > conftest.$ac_ext <<EOF
15716 #line 15717 "configure"
15717 #include "confdefs.h"
15718 #include <tiffio.h>
15719 EOF
15720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15721 { (eval echo configure:15722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15722 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15723 if test -z "$ac_err"; then
15724 rm -rf conftest*
15725 eval "ac_cv_header_$ac_safe=yes"
15726 else
15727 echo "$ac_err" >&5
15728 echo "configure: failed program was:" >&5
15729 cat conftest.$ac_ext >&5
15730 rm -rf conftest*
15731 eval "ac_cv_header_$ac_safe=no"
15732 fi
15733 rm -f conftest*
15734 fi
15735 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15736 echo "$ac_t""yes" 1>&6
15737 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
15738 echo "configure:15739: checking for TIFFError in -ltiff" >&5
15739 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
15740 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15741 echo $ac_n "(cached) $ac_c" 1>&6
15742 else
15743 ac_save_LIBS="$LIBS"
15744 LIBS="-ltiff -lm $LIBS"
15745 cat > conftest.$ac_ext <<EOF
15746 #line 15747 "configure"
15747 #include "confdefs.h"
15748 /* Override any gcc2 internal prototype to avoid an error. */
15749 /* We use char because int might match the return type of a gcc2
15750 builtin and then its argument prototype would still apply. */
15751 char TIFFError();
15752
15753 int main() {
15754 TIFFError()
15755 ; return 0; }
15756 EOF
15757 if { (eval echo configure:15758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15758 rm -rf conftest*
15759 eval "ac_cv_lib_$ac_lib_var=yes"
15760 else
15761 echo "configure: failed program was:" >&5
15762 cat conftest.$ac_ext >&5
15763 rm -rf conftest*
15764 eval "ac_cv_lib_$ac_lib_var=no"
15765 fi
15766 rm -f conftest*
15767 LIBS="$ac_save_LIBS"
15768
15769 fi
15770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15771 echo "$ac_t""yes" 1>&6
15772 TIFF_LINK="-ltiff"
15773 else
15774 echo "$ac_t""no" 1>&6
15775 fi
15776
15777 else
15778 echo "$ac_t""no" 1>&6
15779 fi
15780
15781 if test "x$TIFF_LINK" = "x" ; then
15782 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
15783 fi
15784 fi
15785 fi
15786
15787 FREETYPE_INCLUDE=
15788 if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
15789 cat >> confdefs.h <<\EOF
15790 #define wxUSE_FREETYPE 1
15791 EOF
15792
15793 if test "$wxUSE_FREETYPE" = "yes" ; then
15794 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
15795 else
15796 FREETYPE_LINK=
15797 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
15798 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
15799 echo "configure:15800: checking for freetype.h" >&5
15800 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15801 echo $ac_n "(cached) $ac_c" 1>&6
15802 else
15803 cat > conftest.$ac_ext <<EOF
15804 #line 15805 "configure"
15805 #include "confdefs.h"
15806 #include <freetype.h>
15807 EOF
15808 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15809 { (eval echo configure:15810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15810 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15811 if test -z "$ac_err"; then
15812 rm -rf conftest*
15813 eval "ac_cv_header_$ac_safe=yes"
15814 else
15815 echo "$ac_err" >&5
15816 echo "configure: failed program was:" >&5
15817 cat conftest.$ac_ext >&5
15818 rm -rf conftest*
15819 eval "ac_cv_header_$ac_safe=no"
15820 fi
15821 rm -f conftest*
15822 fi
15823 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15824 echo "$ac_t""yes" 1>&6
15825 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
15826 echo "configure:15827: checking for FT_Render_Glyph in -lfreetype" >&5
15827 ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
15828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15829 echo $ac_n "(cached) $ac_c" 1>&6
15830 else
15831 ac_save_LIBS="$LIBS"
15832 LIBS="-lfreetype -lm $LIBS"
15833 cat > conftest.$ac_ext <<EOF
15834 #line 15835 "configure"
15835 #include "confdefs.h"
15836 /* Override any gcc2 internal prototype to avoid an error. */
15837 /* We use char because int might match the return type of a gcc2
15838 builtin and then its argument prototype would still apply. */
15839 char FT_Render_Glyph();
15840
15841 int main() {
15842 FT_Render_Glyph()
15843 ; return 0; }
15844 EOF
15845 if { (eval echo configure:15846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15846 rm -rf conftest*
15847 eval "ac_cv_lib_$ac_lib_var=yes"
15848 else
15849 echo "configure: failed program was:" >&5
15850 cat conftest.$ac_ext >&5
15851 rm -rf conftest*
15852 eval "ac_cv_lib_$ac_lib_var=no"
15853 fi
15854 rm -f conftest*
15855 LIBS="$ac_save_LIBS"
15856
15857 fi
15858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15859 echo "$ac_t""yes" 1>&6
15860 FREETYPE_LINK="-lfreetype"
15861 else
15862 echo "$ac_t""no" 1>&6
15863 fi
15864
15865
15866 else
15867 echo "$ac_t""no" 1>&6
15868 fi
15869
15870 if test "x$FREETYPE_LINK" = "x" ; then
15871 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
15872 fi
15873 fi
15874 fi
15875
15876
15877 if test "$wxUSE_GUI" = "yes"; then
15878 cat >> confdefs.h <<\EOF
15879 #define wxUSE_GUI 1
15880 EOF
15881
15882
15883 else
15884 cat >> confdefs.h <<\EOF
15885 #define wxUSE_NOGUI 1
15886 EOF
15887
15888 fi
15889
15890
15891 if test "$wxUSE_UNIX" = "yes"; then
15892 cat >> confdefs.h <<\EOF
15893 #define wxUSE_UNIX 1
15894 EOF
15895
15896 fi
15897
15898
15899 if test "$wxUSE_APPLE_IEEE" = "yes"; then
15900 cat >> confdefs.h <<\EOF
15901 #define wxUSE_APPLE_IEEE 1
15902 EOF
15903
15904 fi
15905
15906 if test "$wxUSE_TIMER" = "yes"; then
15907 cat >> confdefs.h <<\EOF
15908 #define wxUSE_TIMER 1
15909 EOF
15910
15911 fi
15912
15913 if test "$wxUSE_WAVE" = "yes"; then
15914 cat >> confdefs.h <<\EOF
15915 #define wxUSE_WAVE 1
15916 EOF
15917
15918 fi
15919
15920 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15921 cat >> confdefs.h <<\EOF
15922 #define wxUSE_CMDLINE_PARSER 1
15923 EOF
15924
15925 fi
15926
15927 if test "$wxUSE_STOPWATCH" = "yes"; then
15928 cat >> confdefs.h <<\EOF
15929 #define wxUSE_STOPWATCH 1
15930 EOF
15931
15932 fi
15933
15934 if test "$wxUSE_DATETIME" = "yes"; then
15935 cat >> confdefs.h <<\EOF
15936 #define wxUSE_DATETIME 1
15937 EOF
15938
15939 fi
15940
15941 if test "$wxUSE_TIMEDATE" = "yes"; then
15942 cat >> confdefs.h <<\EOF
15943 #define wxUSE_TIMEDATE 1
15944 EOF
15945
15946 fi
15947
15948 if test "$wxUSE_FILE" = "yes"; then
15949 cat >> confdefs.h <<\EOF
15950 #define wxUSE_FILE 1
15951 EOF
15952
15953 fi
15954
15955 if test "$wxUSE_FFILE" = "yes"; then
15956 cat >> confdefs.h <<\EOF
15957 #define wxUSE_FFILE 1
15958 EOF
15959
15960 fi
15961
15962 if test "$wxUSE_FILESYSTEM" = "yes"; then
15963 cat >> confdefs.h <<\EOF
15964 #define wxUSE_FILESYSTEM 1
15965 EOF
15966
15967 fi
15968
15969 if test "$wxUSE_FS_INET" = "yes"; then
15970 cat >> confdefs.h <<\EOF
15971 #define wxUSE_FS_INET 1
15972 EOF
15973
15974 fi
15975
15976 if test "$wxUSE_FS_ZIP" = "yes"; then
15977 cat >> confdefs.h <<\EOF
15978 #define wxUSE_FS_ZIP 1
15979 EOF
15980
15981 fi
15982
15983 if test "$wxUSE_ZIPSTREAM" = "yes"; then
15984 cat >> confdefs.h <<\EOF
15985 #define wxUSE_ZIPSTREAM 1
15986 EOF
15987
15988 fi
15989
15990 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15991 cat >> confdefs.h <<\EOF
15992 #define wxUSE_ON_FATAL_EXCEPTION 1
15993 EOF
15994
15995 fi
15996
15997 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15998 cat >> confdefs.h <<\EOF
15999 #define wxUSE_SNGLINST_CHECKER 1
16000 EOF
16001
16002 fi
16003
16004 if test "$wxUSE_BUSYINFO" = "yes"; then
16005 cat >> confdefs.h <<\EOF
16006 #define wxUSE_BUSYINFO 1
16007 EOF
16008
16009 fi
16010
16011 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
16012 cat >> confdefs.h <<\EOF
16013 #define wxUSE_STD_IOSTREAM 1
16014 EOF
16015
16016 fi
16017
16018 if test "$wxUSE_TEXTFILE" = "yes"; then
16019 if test "$wxUSE_FILE" != "yes"; then
16020 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
16021 else
16022 cat >> confdefs.h <<\EOF
16023 #define wxUSE_TEXTFILE 1
16024 EOF
16025
16026 fi
16027 fi
16028
16029 if test "$wxUSE_CONFIG" = "yes" ; then
16030 if test "$wxUSE_TEXTFILE" != "yes"; then
16031 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
16032 else
16033 cat >> confdefs.h <<\EOF
16034 #define wxUSE_CONFIG 1
16035 EOF
16036
16037 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
16038 fi
16039 fi
16040
16041 if test "$wxUSE_INTL" = "yes" ; then
16042 if test "$wxUSE_FILE" != "yes"; then
16043 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
16044 else
16045 cat >> confdefs.h <<\EOF
16046 #define wxUSE_INTL 1
16047 EOF
16048
16049 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
16050 GUIDIST="$GUIDIST INTL_DIST"
16051 fi
16052 fi
16053
16054 if test "$wxUSE_LOG" = "yes"; then
16055 cat >> confdefs.h <<\EOF
16056 #define wxUSE_LOG 1
16057 EOF
16058
16059
16060 if test "$wxUSE_LOGGUI" = "yes"; then
16061 cat >> confdefs.h <<\EOF
16062 #define wxUSE_LOGGUI 1
16063 EOF
16064
16065 fi
16066
16067 if test "$wxUSE_LOGWINDOW" = "yes"; then
16068 cat >> confdefs.h <<\EOF
16069 #define wxUSE_LOGWINDOW 1
16070 EOF
16071
16072 fi
16073 fi
16074
16075 if test "$wxUSE_LONGLONG" = "yes"; then
16076 cat >> confdefs.h <<\EOF
16077 #define wxUSE_LONGLONG 1
16078 EOF
16079
16080 fi
16081
16082 if test "$wxUSE_GEOMETRY" = "yes"; then
16083 cat >> confdefs.h <<\EOF
16084 #define wxUSE_GEOMETRY 1
16085 EOF
16086
16087 fi
16088
16089 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
16090 cat >> confdefs.h <<\EOF
16091 #define wxUSE_DIALUP_MANAGER 1
16092 EOF
16093
16094 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
16095 fi
16096
16097 if test "$wxUSE_STREAMS" = "yes" ; then
16098 cat >> confdefs.h <<\EOF
16099 #define wxUSE_STREAMS 1
16100 EOF
16101
16102 fi
16103
16104
16105 if test "$wxUSE_DATETIME" = "yes"; then
16106 for ac_func in strptime
16107 do
16108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16109 echo "configure:16110: checking for $ac_func" >&5
16110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16111 echo $ac_n "(cached) $ac_c" 1>&6
16112 else
16113 cat > conftest.$ac_ext <<EOF
16114 #line 16115 "configure"
16115 #include "confdefs.h"
16116 /* System header to define __stub macros and hopefully few prototypes,
16117 which can conflict with char $ac_func(); below. */
16118 #include <assert.h>
16119 /* Override any gcc2 internal prototype to avoid an error. */
16120 /* We use char because int might match the return type of a gcc2
16121 builtin and then its argument prototype would still apply. */
16122 char $ac_func();
16123
16124 int main() {
16125
16126 /* The GNU C library defines this for functions which it implements
16127 to always fail with ENOSYS. Some functions are actually named
16128 something starting with __ and the normal name is an alias. */
16129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16130 choke me
16131 #else
16132 $ac_func();
16133 #endif
16134
16135 ; return 0; }
16136 EOF
16137 if { (eval echo configure:16138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16138 rm -rf conftest*
16139 eval "ac_cv_func_$ac_func=yes"
16140 else
16141 echo "configure: failed program was:" >&5
16142 cat conftest.$ac_ext >&5
16143 rm -rf conftest*
16144 eval "ac_cv_func_$ac_func=no"
16145 fi
16146 rm -f conftest*
16147 fi
16148
16149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16150 echo "$ac_t""yes" 1>&6
16151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16152 cat >> confdefs.h <<EOF
16153 #define $ac_tr_func 1
16154 EOF
16155
16156 else
16157 echo "$ac_t""no" 1>&6
16158 fi
16159 done
16160
16161
16162 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
16163 echo "configure:16164: checking for timezone variable in <time.h>" >&5
16164 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
16165 echo $ac_n "(cached) $ac_c" 1>&6
16166 else
16167
16168 cat > conftest.$ac_ext <<EOF
16169 #line 16170 "configure"
16170 #include "confdefs.h"
16171
16172 #include <time.h>
16173
16174 int main() {
16175
16176 int tz;
16177 tz = timezone;
16178
16179 ; return 0; }
16180 EOF
16181 if { (eval echo configure:16182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16182 rm -rf conftest*
16183
16184 wx_cv_var_timezone=timezone
16185
16186 else
16187 echo "configure: failed program was:" >&5
16188 cat conftest.$ac_ext >&5
16189 rm -rf conftest*
16190
16191 cat > conftest.$ac_ext <<EOF
16192 #line 16193 "configure"
16193 #include "confdefs.h"
16194
16195 #include <time.h>
16196
16197 int main() {
16198
16199 int tz;
16200 tz = _timezone;
16201
16202 ; return 0; }
16203 EOF
16204 if { (eval echo configure:16205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16205 rm -rf conftest*
16206
16207 wx_cv_var_timezone=_timezone
16208
16209 else
16210 echo "configure: failed program was:" >&5
16211 cat conftest.$ac_ext >&5
16212 rm -rf conftest*
16213
16214 cat > conftest.$ac_ext <<EOF
16215 #line 16216 "configure"
16216 #include "confdefs.h"
16217
16218 #include <time.h>
16219
16220 int main() {
16221
16222 int tz;
16223 tz = __timezone;
16224
16225 ; return 0; }
16226 EOF
16227 if { (eval echo configure:16228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16228 rm -rf conftest*
16229
16230 wx_cv_var_timezone=__timezone
16231
16232 else
16233 echo "configure: failed program was:" >&5
16234 cat conftest.$ac_ext >&5
16235 rm -rf conftest*
16236 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16237
16238 fi
16239 rm -f conftest*
16240
16241
16242 fi
16243 rm -f conftest*
16244
16245
16246 fi
16247 rm -f conftest*
16248
16249
16250 fi
16251
16252 echo "$ac_t""$wx_cv_var_timezone" 1>&6
16253
16254 cat >> confdefs.h <<EOF
16255 #define WX_TIMEZONE $wx_cv_var_timezone
16256 EOF
16257
16258
16259 for ac_func in localtime
16260 do
16261 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16262 echo "configure:16263: checking for $ac_func" >&5
16263 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16264 echo $ac_n "(cached) $ac_c" 1>&6
16265 else
16266 cat > conftest.$ac_ext <<EOF
16267 #line 16268 "configure"
16268 #include "confdefs.h"
16269 /* System header to define __stub macros and hopefully few prototypes,
16270 which can conflict with char $ac_func(); below. */
16271 #include <assert.h>
16272 /* Override any gcc2 internal prototype to avoid an error. */
16273 /* We use char because int might match the return type of a gcc2
16274 builtin and then its argument prototype would still apply. */
16275 char $ac_func();
16276
16277 int main() {
16278
16279 /* The GNU C library defines this for functions which it implements
16280 to always fail with ENOSYS. Some functions are actually named
16281 something starting with __ and the normal name is an alias. */
16282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16283 choke me
16284 #else
16285 $ac_func();
16286 #endif
16287
16288 ; return 0; }
16289 EOF
16290 if { (eval echo configure:16291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16291 rm -rf conftest*
16292 eval "ac_cv_func_$ac_func=yes"
16293 else
16294 echo "configure: failed program was:" >&5
16295 cat conftest.$ac_ext >&5
16296 rm -rf conftest*
16297 eval "ac_cv_func_$ac_func=no"
16298 fi
16299 rm -f conftest*
16300 fi
16301
16302 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16303 echo "$ac_t""yes" 1>&6
16304 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16305 cat >> confdefs.h <<EOF
16306 #define $ac_tr_func 1
16307 EOF
16308
16309 else
16310 echo "$ac_t""no" 1>&6
16311 fi
16312 done
16313
16314
16315 if test "$ac_cv_func_localtime" = "yes"; then
16316 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
16317 echo "configure:16318: checking for tm_gmtoff in struct tm" >&5
16318 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16319 echo $ac_n "(cached) $ac_c" 1>&6
16320 else
16321
16322 cat > conftest.$ac_ext <<EOF
16323 #line 16324 "configure"
16324 #include "confdefs.h"
16325
16326 #include <time.h>
16327
16328 int main() {
16329
16330 struct tm tm;
16331 tm.tm_gmtoff++;
16332
16333 ; return 0; }
16334 EOF
16335 if { (eval echo configure:16336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16336 rm -rf conftest*
16337
16338 wx_cv_struct_tm_has_gmtoff=yes
16339
16340 else
16341 echo "configure: failed program was:" >&5
16342 cat conftest.$ac_ext >&5
16343 rm -rf conftest*
16344 wx_cv_struct_tm_has_gmtoff=no
16345
16346 fi
16347 rm -f conftest*
16348
16349 fi
16350
16351 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
16352 fi
16353
16354 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
16355 cat >> confdefs.h <<\EOF
16356 #define WX_GMTOFF_IN_TM 1
16357 EOF
16358
16359 fi
16360
16361 for ac_func in gettimeofday ftime
16362 do
16363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16364 echo "configure:16365: checking for $ac_func" >&5
16365 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16366 echo $ac_n "(cached) $ac_c" 1>&6
16367 else
16368 cat > conftest.$ac_ext <<EOF
16369 #line 16370 "configure"
16370 #include "confdefs.h"
16371 /* System header to define __stub macros and hopefully few prototypes,
16372 which can conflict with char $ac_func(); below. */
16373 #include <assert.h>
16374 /* Override any gcc2 internal prototype to avoid an error. */
16375 /* We use char because int might match the return type of a gcc2
16376 builtin and then its argument prototype would still apply. */
16377 char $ac_func();
16378
16379 int main() {
16380
16381 /* The GNU C library defines this for functions which it implements
16382 to always fail with ENOSYS. Some functions are actually named
16383 something starting with __ and the normal name is an alias. */
16384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16385 choke me
16386 #else
16387 $ac_func();
16388 #endif
16389
16390 ; return 0; }
16391 EOF
16392 if { (eval echo configure:16393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16393 rm -rf conftest*
16394 eval "ac_cv_func_$ac_func=yes"
16395 else
16396 echo "configure: failed program was:" >&5
16397 cat conftest.$ac_ext >&5
16398 rm -rf conftest*
16399 eval "ac_cv_func_$ac_func=no"
16400 fi
16401 rm -f conftest*
16402 fi
16403
16404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16405 echo "$ac_t""yes" 1>&6
16406 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16407 cat >> confdefs.h <<EOF
16408 #define $ac_tr_func 1
16409 EOF
16410 break
16411 else
16412 echo "$ac_t""no" 1>&6
16413 fi
16414 done
16415
16416
16417 if test "$ac_cv_func_gettimeofday" = "yes"; then
16418 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
16419 echo "configure:16420: checking whether gettimeofday takes two arguments" >&5
16420 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16421 echo $ac_n "(cached) $ac_c" 1>&6
16422 else
16423
16424
16425 ac_ext=C
16426 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16427 ac_cpp='$CXXCPP $CPPFLAGS'
16428 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16429 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16430 cross_compiling=$ac_cv_prog_cxx_cross
16431
16432
16433 cat > conftest.$ac_ext <<EOF
16434 #line 16435 "configure"
16435 #include "confdefs.h"
16436
16437 #include <sys/time.h>
16438 #include <unistd.h>
16439
16440 int main() {
16441
16442 struct timeval tv;
16443 gettimeofday(&tv, NULL);
16444
16445 ; return 0; }
16446 EOF
16447 if { (eval echo configure:16448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16448 rm -rf conftest*
16449 wx_cv_func_gettimeofday_has_2_args=yes
16450 else
16451 echo "configure: failed program was:" >&5
16452 cat conftest.$ac_ext >&5
16453 rm -rf conftest*
16454 cat > conftest.$ac_ext <<EOF
16455 #line 16456 "configure"
16456 #include "confdefs.h"
16457
16458 #include <sys/time.h>
16459 #include <unistd.h>
16460
16461 int main() {
16462
16463 struct timeval tv;
16464 gettimeofday(&tv);
16465
16466 ; return 0; }
16467 EOF
16468 if { (eval echo configure:16469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16469 rm -rf conftest*
16470 wx_cv_func_gettimeofday_has_2_args=no
16471 else
16472 echo "configure: failed program was:" >&5
16473 cat conftest.$ac_ext >&5
16474 rm -rf conftest*
16475
16476 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
16477 wx_cv_func_gettimeofday_has_2_args=unknown
16478
16479
16480 fi
16481 rm -f conftest*
16482
16483 fi
16484 rm -f conftest*
16485 ac_ext=c
16486 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16487 ac_cpp='$CPP $CPPFLAGS'
16488 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16489 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16490 cross_compiling=$ac_cv_prog_cc_cross
16491
16492
16493 fi
16494
16495 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
16496
16497 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
16498 cat >> confdefs.h <<\EOF
16499 #define WX_GETTIMEOFDAY_NO_TZ 1
16500 EOF
16501
16502 fi
16503 fi
16504
16505 cat >> confdefs.h <<\EOF
16506 #define wxUSE_TIMEDATE 1
16507 EOF
16508
16509 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16510 fi
16511
16512
16513 if test "$TOOLKIT" != "MSW"; then
16514
16515 if test "$wxUSE_SOCKETS" = "yes"; then
16516 echo $ac_n "checking for socket""... $ac_c" 1>&6
16517 echo "configure:16518: checking for socket" >&5
16518 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16519 echo $ac_n "(cached) $ac_c" 1>&6
16520 else
16521 cat > conftest.$ac_ext <<EOF
16522 #line 16523 "configure"
16523 #include "confdefs.h"
16524 /* System header to define __stub macros and hopefully few prototypes,
16525 which can conflict with char socket(); below. */
16526 #include <assert.h>
16527 /* Override any gcc2 internal prototype to avoid an error. */
16528 /* We use char because int might match the return type of a gcc2
16529 builtin and then its argument prototype would still apply. */
16530 char socket();
16531
16532 int main() {
16533
16534 /* The GNU C library defines this for functions which it implements
16535 to always fail with ENOSYS. Some functions are actually named
16536 something starting with __ and the normal name is an alias. */
16537 #if defined (__stub_socket) || defined (__stub___socket)
16538 choke me
16539 #else
16540 socket();
16541 #endif
16542
16543 ; return 0; }
16544 EOF
16545 if { (eval echo configure:16546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16546 rm -rf conftest*
16547 eval "ac_cv_func_socket=yes"
16548 else
16549 echo "configure: failed program was:" >&5
16550 cat conftest.$ac_ext >&5
16551 rm -rf conftest*
16552 eval "ac_cv_func_socket=no"
16553 fi
16554 rm -f conftest*
16555 fi
16556
16557 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16558 echo "$ac_t""yes" 1>&6
16559 :
16560 else
16561 echo "$ac_t""no" 1>&6
16562 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
16563 echo "configure:16564: checking for socket in -lsocket" >&5
16564 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16565 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16566 echo $ac_n "(cached) $ac_c" 1>&6
16567 else
16568 ac_save_LIBS="$LIBS"
16569 LIBS="-lsocket $LIBS"
16570 cat > conftest.$ac_ext <<EOF
16571 #line 16572 "configure"
16572 #include "confdefs.h"
16573 /* Override any gcc2 internal prototype to avoid an error. */
16574 /* We use char because int might match the return type of a gcc2
16575 builtin and then its argument prototype would still apply. */
16576 char socket();
16577
16578 int main() {
16579 socket()
16580 ; return 0; }
16581 EOF
16582 if { (eval echo configure:16583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16583 rm -rf conftest*
16584 eval "ac_cv_lib_$ac_lib_var=yes"
16585 else
16586 echo "configure: failed program was:" >&5
16587 cat conftest.$ac_ext >&5
16588 rm -rf conftest*
16589 eval "ac_cv_lib_$ac_lib_var=no"
16590 fi
16591 rm -f conftest*
16592 LIBS="$ac_save_LIBS"
16593
16594 fi
16595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16596 echo "$ac_t""yes" 1>&6
16597 INET_LINK="$INET_LINK -lsocket"
16598 else
16599 echo "$ac_t""no" 1>&6
16600
16601 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
16602 wxUSE_SOCKETS=no
16603
16604
16605 fi
16606
16607
16608 fi
16609
16610 fi
16611
16612
16613 if test "$wxUSE_SOCKETS" = "yes" ; then
16614 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
16615 echo "configure:16616: checking what is the type of the third argument of getsockname" >&5
16616 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16617 echo $ac_n "(cached) $ac_c" 1>&6
16618 else
16619
16620
16621 ac_ext=C
16622 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16623 ac_cpp='$CXXCPP $CPPFLAGS'
16624 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16625 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16626 cross_compiling=$ac_cv_prog_cxx_cross
16627
16628
16629 cat > conftest.$ac_ext <<EOF
16630 #line 16631 "configure"
16631 #include "confdefs.h"
16632
16633 #include <sys/types.h>
16634 #include <sys/socket.h>
16635
16636 int main() {
16637
16638 socklen_t len;
16639 getsockname(0, 0, &len);
16640
16641 ; return 0; }
16642 EOF
16643 if { (eval echo configure:16644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16644 rm -rf conftest*
16645 wx_cv_type_getsockname3=socklen_t
16646 else
16647 echo "configure: failed program was:" >&5
16648 cat conftest.$ac_ext >&5
16649 rm -rf conftest*
16650 cat > conftest.$ac_ext <<EOF
16651 #line 16652 "configure"
16652 #include "confdefs.h"
16653
16654 #include <sys/types.h>
16655 #include <sys/socket.h>
16656
16657 int main() {
16658
16659 size_t len;
16660 getsockname(0, 0, &len);
16661
16662 ; return 0; }
16663 EOF
16664 if { (eval echo configure:16665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16665 rm -rf conftest*
16666 wx_cv_type_getsockname3=size_t
16667 else
16668 echo "configure: failed program was:" >&5
16669 cat conftest.$ac_ext >&5
16670 rm -rf conftest*
16671 cat > conftest.$ac_ext <<EOF
16672 #line 16673 "configure"
16673 #include "confdefs.h"
16674
16675 #include <sys/types.h>
16676 #include <sys/socket.h>
16677
16678 int main() {
16679
16680 int len;
16681 getsockname(0, 0, &len);
16682
16683 ; return 0; }
16684 EOF
16685 if { (eval echo configure:16686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16686 rm -rf conftest*
16687 wx_cv_type_getsockname3=int
16688 else
16689 echo "configure: failed program was:" >&5
16690 cat conftest.$ac_ext >&5
16691 rm -rf conftest*
16692 wx_cv_type_getsockname3=unknown
16693
16694 fi
16695 rm -f conftest*
16696
16697 fi
16698 rm -f conftest*
16699
16700 fi
16701 rm -f conftest*
16702
16703 ac_ext=c
16704 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16705 ac_cpp='$CPP $CPPFLAGS'
16706 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16707 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16708 cross_compiling=$ac_cv_prog_cc_cross
16709
16710
16711 fi
16712
16713 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
16714
16715 if test "$wx_cv_type_getsockname3" = "unknown"; then
16716 wxUSE_SOCKETS=no
16717 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
16718 else
16719 cat >> confdefs.h <<EOF
16720 #define SOCKLEN_T $wx_cv_type_getsockname3
16721 EOF
16722
16723 fi
16724 fi
16725 fi
16726
16727 if test "$wxUSE_SOCKETS" = "yes" ; then
16728 cat >> confdefs.h <<\EOF
16729 #define wxUSE_SOCKETS 1
16730 EOF
16731
16732 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
16733 fi
16734
16735
16736 if test "$wxUSE_GUI" = "yes"; then
16737
16738 if test "$TOOLKIT" != "MSW"; then
16739 if test "$wxUSE_JOYSTICK" = "yes"; then
16740 for ac_hdr in linux/joystick.h
16741 do
16742 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16743 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16744 echo "configure:16745: checking for $ac_hdr" >&5
16745 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16746 echo $ac_n "(cached) $ac_c" 1>&6
16747 else
16748 cat > conftest.$ac_ext <<EOF
16749 #line 16750 "configure"
16750 #include "confdefs.h"
16751 #include <$ac_hdr>
16752 EOF
16753 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16754 { (eval echo configure:16755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16755 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16756 if test -z "$ac_err"; then
16757 rm -rf conftest*
16758 eval "ac_cv_header_$ac_safe=yes"
16759 else
16760 echo "$ac_err" >&5
16761 echo "configure: failed program was:" >&5
16762 cat conftest.$ac_ext >&5
16763 rm -rf conftest*
16764 eval "ac_cv_header_$ac_safe=no"
16765 fi
16766 rm -f conftest*
16767 fi
16768 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16769 echo "$ac_t""yes" 1>&6
16770 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16771 cat >> confdefs.h <<EOF
16772 #define $ac_tr_hdr 1
16773 EOF
16774
16775 else
16776 echo "$ac_t""no" 1>&6
16777 fi
16778 done
16779
16780 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
16781 wxUSE_JOYSTICK=no
16782 echo "configure: warning: Joystick not supported by this system" 1>&2
16783 fi
16784 fi
16785 fi
16786
16787 if test "$wxUSE_JOYSTICK" = "yes"; then
16788 cat >> confdefs.h <<\EOF
16789 #define wxUSE_JOYSTICK 1
16790 EOF
16791
16792 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
16793 fi
16794 fi
16795
16796
16797 if test "$TOOLKIT" != "MSW"; then
16798
16799 HAVE_DL_FUNCS=0
16800 HAVE_SHL_FUNCS=0
16801 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
16802 if test "$USE_DARWIN" = 1; then
16803 HAVE_DL_FUNCS=1
16804 else
16805 for ac_func in dlopen
16806 do
16807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16808 echo "configure:16809: checking for $ac_func" >&5
16809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16810 echo $ac_n "(cached) $ac_c" 1>&6
16811 else
16812 cat > conftest.$ac_ext <<EOF
16813 #line 16814 "configure"
16814 #include "confdefs.h"
16815 /* System header to define __stub macros and hopefully few prototypes,
16816 which can conflict with char $ac_func(); below. */
16817 #include <assert.h>
16818 /* Override any gcc2 internal prototype to avoid an error. */
16819 /* We use char because int might match the return type of a gcc2
16820 builtin and then its argument prototype would still apply. */
16821 char $ac_func();
16822
16823 int main() {
16824
16825 /* The GNU C library defines this for functions which it implements
16826 to always fail with ENOSYS. Some functions are actually named
16827 something starting with __ and the normal name is an alias. */
16828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16829 choke me
16830 #else
16831 $ac_func();
16832 #endif
16833
16834 ; return 0; }
16835 EOF
16836 if { (eval echo configure:16837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16837 rm -rf conftest*
16838 eval "ac_cv_func_$ac_func=yes"
16839 else
16840 echo "configure: failed program was:" >&5
16841 cat conftest.$ac_ext >&5
16842 rm -rf conftest*
16843 eval "ac_cv_func_$ac_func=no"
16844 fi
16845 rm -f conftest*
16846 fi
16847
16848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16849 echo "$ac_t""yes" 1>&6
16850 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16851 cat >> confdefs.h <<EOF
16852 #define $ac_tr_func 1
16853 EOF
16854
16855 cat >> confdefs.h <<\EOF
16856 #define HAVE_DLOPEN 1
16857 EOF
16858
16859 HAVE_DL_FUNCS=1
16860
16861 else
16862 echo "$ac_t""no" 1>&6
16863 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
16864 echo "configure:16865: checking for dlopen in -ldl" >&5
16865 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16866 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16867 echo $ac_n "(cached) $ac_c" 1>&6
16868 else
16869 ac_save_LIBS="$LIBS"
16870 LIBS="-ldl $LIBS"
16871 cat > conftest.$ac_ext <<EOF
16872 #line 16873 "configure"
16873 #include "confdefs.h"
16874 /* Override any gcc2 internal prototype to avoid an error. */
16875 /* We use char because int might match the return type of a gcc2
16876 builtin and then its argument prototype would still apply. */
16877 char dlopen();
16878
16879 int main() {
16880 dlopen()
16881 ; return 0; }
16882 EOF
16883 if { (eval echo configure:16884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16884 rm -rf conftest*
16885 eval "ac_cv_lib_$ac_lib_var=yes"
16886 else
16887 echo "configure: failed program was:" >&5
16888 cat conftest.$ac_ext >&5
16889 rm -rf conftest*
16890 eval "ac_cv_lib_$ac_lib_var=no"
16891 fi
16892 rm -f conftest*
16893 LIBS="$ac_save_LIBS"
16894
16895 fi
16896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16897 echo "$ac_t""yes" 1>&6
16898
16899 cat >> confdefs.h <<\EOF
16900 #define HAVE_DLOPEN 1
16901 EOF
16902
16903 HAVE_DL_FUNCS=1
16904 LIBS="$LIBS -ldl"
16905
16906 else
16907 echo "$ac_t""no" 1>&6
16908
16909 for ac_func in shl_load
16910 do
16911 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16912 echo "configure:16913: checking for $ac_func" >&5
16913 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16914 echo $ac_n "(cached) $ac_c" 1>&6
16915 else
16916 cat > conftest.$ac_ext <<EOF
16917 #line 16918 "configure"
16918 #include "confdefs.h"
16919 /* System header to define __stub macros and hopefully few prototypes,
16920 which can conflict with char $ac_func(); below. */
16921 #include <assert.h>
16922 /* Override any gcc2 internal prototype to avoid an error. */
16923 /* We use char because int might match the return type of a gcc2
16924 builtin and then its argument prototype would still apply. */
16925 char $ac_func();
16926
16927 int main() {
16928
16929 /* The GNU C library defines this for functions which it implements
16930 to always fail with ENOSYS. Some functions are actually named
16931 something starting with __ and the normal name is an alias. */
16932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16933 choke me
16934 #else
16935 $ac_func();
16936 #endif
16937
16938 ; return 0; }
16939 EOF
16940 if { (eval echo configure:16941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16941 rm -rf conftest*
16942 eval "ac_cv_func_$ac_func=yes"
16943 else
16944 echo "configure: failed program was:" >&5
16945 cat conftest.$ac_ext >&5
16946 rm -rf conftest*
16947 eval "ac_cv_func_$ac_func=no"
16948 fi
16949 rm -f conftest*
16950 fi
16951
16952 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16953 echo "$ac_t""yes" 1>&6
16954 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16955 cat >> confdefs.h <<EOF
16956 #define $ac_tr_func 1
16957 EOF
16958
16959 cat >> confdefs.h <<\EOF
16960 #define HAVE_SHL_LOAD 1
16961 EOF
16962
16963 HAVE_SHL_FUNCS=1
16964
16965 else
16966 echo "$ac_t""no" 1>&6
16967 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
16968 echo "configure:16969: checking for dld in -lshl_load" >&5
16969 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16970 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16971 echo $ac_n "(cached) $ac_c" 1>&6
16972 else
16973 ac_save_LIBS="$LIBS"
16974 LIBS="-lshl_load $LIBS"
16975 cat > conftest.$ac_ext <<EOF
16976 #line 16977 "configure"
16977 #include "confdefs.h"
16978 /* Override any gcc2 internal prototype to avoid an error. */
16979 /* We use char because int might match the return type of a gcc2
16980 builtin and then its argument prototype would still apply. */
16981 char dld();
16982
16983 int main() {
16984 dld()
16985 ; return 0; }
16986 EOF
16987 if { (eval echo configure:16988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16988 rm -rf conftest*
16989 eval "ac_cv_lib_$ac_lib_var=yes"
16990 else
16991 echo "configure: failed program was:" >&5
16992 cat conftest.$ac_ext >&5
16993 rm -rf conftest*
16994 eval "ac_cv_lib_$ac_lib_var=no"
16995 fi
16996 rm -f conftest*
16997 LIBS="$ac_save_LIBS"
16998
16999 fi
17000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17001 echo "$ac_t""yes" 1>&6
17002
17003 HAVE_SHL_FUNCS=1
17004 LIBS="$LIBS -ldld"
17005
17006 else
17007 echo "$ac_t""no" 1>&6
17008 fi
17009
17010
17011 fi
17012 done
17013
17014
17015 fi
17016
17017
17018 fi
17019 done
17020
17021
17022 if test "$HAVE_DL_FUNCS" = 1; then
17023 for ac_func in dlerror
17024 do
17025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17026 echo "configure:17027: checking for $ac_func" >&5
17027 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17028 echo $ac_n "(cached) $ac_c" 1>&6
17029 else
17030 cat > conftest.$ac_ext <<EOF
17031 #line 17032 "configure"
17032 #include "confdefs.h"
17033 /* System header to define __stub macros and hopefully few prototypes,
17034 which can conflict with char $ac_func(); below. */
17035 #include <assert.h>
17036 /* Override any gcc2 internal prototype to avoid an error. */
17037 /* We use char because int might match the return type of a gcc2
17038 builtin and then its argument prototype would still apply. */
17039 char $ac_func();
17040
17041 int main() {
17042
17043 /* The GNU C library defines this for functions which it implements
17044 to always fail with ENOSYS. Some functions are actually named
17045 something starting with __ and the normal name is an alias. */
17046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17047 choke me
17048 #else
17049 $ac_func();
17050 #endif
17051
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_func_$ac_func=yes"
17057 else
17058 echo "configure: failed program was:" >&5
17059 cat conftest.$ac_ext >&5
17060 rm -rf conftest*
17061 eval "ac_cv_func_$ac_func=no"
17062 fi
17063 rm -f conftest*
17064 fi
17065
17066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17067 echo "$ac_t""yes" 1>&6
17068 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17069 cat >> confdefs.h <<EOF
17070 #define $ac_tr_func 1
17071 EOF
17072 cat >> confdefs.h <<\EOF
17073 #define HAVE_DLERROR 1
17074 EOF
17075
17076 else
17077 echo "$ac_t""no" 1>&6
17078 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
17079 echo "configure:17080: checking for dlerror in -ldl" >&5
17080 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
17081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17082 echo $ac_n "(cached) $ac_c" 1>&6
17083 else
17084 ac_save_LIBS="$LIBS"
17085 LIBS="-ldl $LIBS"
17086 cat > conftest.$ac_ext <<EOF
17087 #line 17088 "configure"
17088 #include "confdefs.h"
17089 /* Override any gcc2 internal prototype to avoid an error. */
17090 /* We use char because int might match the return type of a gcc2
17091 builtin and then its argument prototype would still apply. */
17092 char dlerror();
17093
17094 int main() {
17095 dlerror()
17096 ; return 0; }
17097 EOF
17098 if { (eval echo configure:17099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17099 rm -rf conftest*
17100 eval "ac_cv_lib_$ac_lib_var=yes"
17101 else
17102 echo "configure: failed program was:" >&5
17103 cat conftest.$ac_ext >&5
17104 rm -rf conftest*
17105 eval "ac_cv_lib_$ac_lib_var=no"
17106 fi
17107 rm -f conftest*
17108 LIBS="$ac_save_LIBS"
17109
17110 fi
17111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17112 echo "$ac_t""yes" 1>&6
17113 cat >> confdefs.h <<\EOF
17114 #define HAVE_DLERROR 1
17115 EOF
17116
17117 else
17118 echo "$ac_t""no" 1>&6
17119 fi
17120
17121 fi
17122 done
17123
17124 fi
17125 fi
17126
17127 if test "$HAVE_DL_FUNCS" = 0; then
17128 if test "$HAVE_SHL_FUNCS" = 0; then
17129 if test "$USE_UNIX" = 1; then
17130 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
17131 wxUSE_DYNLIB_CLASS=no
17132 else
17133 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
17134 fi
17135 fi
17136 fi
17137 fi
17138 fi
17139
17140 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
17141 cat >> confdefs.h <<\EOF
17142 #define wxUSE_DYNLIB_CLASS 1
17143 EOF
17144
17145 else
17146 wxUSE_ODBC=no
17147 wxUSE_SERIAL=no
17148 fi
17149
17150
17151 if test "$wxUSE_FONTMAP" = "yes" ; then
17152 cat >> confdefs.h <<\EOF
17153 #define wxUSE_FONTMAP 1
17154 EOF
17155
17156 fi
17157
17158 if test "$wxUSE_UNICODE" = "yes" ; then
17159 cat >> confdefs.h <<\EOF
17160 #define wxUSE_UNICODE 1
17161 EOF
17162
17163 fi
17164
17165 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
17166 cat >> confdefs.h <<\EOF
17167 #define wxUSE_EXPERIMENTAL_PRINTF 1
17168 EOF
17169
17170 fi
17171
17172
17173 if test "$wxUSE_SERIAL" = "yes" ; then
17174 cat >> confdefs.h <<\EOF
17175 #define wxUSE_SERIAL 1
17176 EOF
17177
17178 fi
17179
17180
17181 IODBC_C_SRC=""
17182 if test "$wxUSE_ODBC" = "yes" ; then
17183 cat >> confdefs.h <<\EOF
17184 #define wxUSE_ODBC 1
17185 EOF
17186
17187 WXODBCFLAG="-D_IODBC_"
17188 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
17189 fi
17190
17191
17192 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
17193 cat >> confdefs.h <<\EOF
17194 #define wxUSE_POSTSCRIPT 1
17195 EOF
17196
17197 fi
17198
17199 cat >> confdefs.h <<\EOF
17200 #define wxUSE_AFM_FOR_POSTSCRIPT 1
17201 EOF
17202
17203
17204 cat >> confdefs.h <<\EOF
17205 #define wxUSE_NORMALIZED_PS_FONTS 1
17206 EOF
17207
17208
17209
17210 if test "$wxUSE_CONSTRAINTS" = "yes"; then
17211 cat >> confdefs.h <<\EOF
17212 #define wxUSE_CONSTRAINTS 1
17213 EOF
17214
17215 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
17216 fi
17217
17218 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17219 if test "$wxUSE_UNIVERSAL" = "yes"; then
17220 echo "configure: warning: MDI is not supported for wxUNIVERSAL yet... disabled" 1>&2
17221 wxUSE_MDI_ARCHITECTURE=no
17222 fi
17223
17224 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17225 cat >> confdefs.h <<\EOF
17226 #define wxUSE_MDI_ARCHITECTURE 1
17227 EOF
17228
17229 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
17230 fi
17231 fi
17232
17233 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
17234 cat >> confdefs.h <<\EOF
17235 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
17236 EOF
17237
17238 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
17239 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17240 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
17241 fi
17242 fi
17243
17244 if test "$wxUSE_HELP" = "yes"; then
17245 cat >> confdefs.h <<\EOF
17246 #define wxUSE_HELP 1
17247 EOF
17248
17249 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
17250
17251 if test "$USE_WIN32" = 1; then
17252 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
17253 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
17254 echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
17255 echo "configure:17256: checking for htmlhelp.h" >&5
17256 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17257 echo $ac_n "(cached) $ac_c" 1>&6
17258 else
17259 cat > conftest.$ac_ext <<EOF
17260 #line 17261 "configure"
17261 #include "confdefs.h"
17262 #include <htmlhelp.h>
17263 EOF
17264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17265 { (eval echo configure:17266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17267 if test -z "$ac_err"; then
17268 rm -rf conftest*
17269 eval "ac_cv_header_$ac_safe=yes"
17270 else
17271 echo "$ac_err" >&5
17272 echo "configure: failed program was:" >&5
17273 cat conftest.$ac_ext >&5
17274 rm -rf conftest*
17275 eval "ac_cv_header_$ac_safe=no"
17276 fi
17277 rm -f conftest*
17278 fi
17279 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17280 echo "$ac_t""yes" 1>&6
17281
17282 cat >> confdefs.h <<\EOF
17283 #define wxUSE_MS_HTML_HELP 1
17284 EOF
17285
17286
17287 else
17288 echo "$ac_t""no" 1>&6
17289
17290 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
17291 wxUSE_MS_HTML_HELP=no
17292
17293 fi
17294
17295 fi
17296 fi
17297
17298 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17299 if test "$wxUSE_HTML" = "yes"; then
17300 cat >> confdefs.h <<\EOF
17301 #define wxUSE_WXHTML_HELP 1
17302 EOF
17303
17304 else
17305 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17306 wxUSE_WXHTML_HELP=no
17307 fi
17308 fi
17309 fi
17310
17311 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17312 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17313 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
17314 else
17315 cat >> confdefs.h <<\EOF
17316 #define wxUSE_PRINTING_ARCHITECTURE 1
17317 EOF
17318
17319 fi
17320 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17321 fi
17322
17323 if test "$wxUSE_PROLOGIO" = "yes" ; then
17324 cat >> confdefs.h <<\EOF
17325 #define wxUSE_PROLOGIO 1
17326 EOF
17327
17328 fi
17329
17330 if test "$wxUSE_RESOURCES" = "yes" ; then
17331 cat >> confdefs.h <<\EOF
17332 #define wxUSE_RESOURCES 1
17333 EOF
17334
17335 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
17336 fi
17337
17338 if test "$wxUSE_X_RESOURCES" = "yes"; then
17339 cat >> confdefs.h <<\EOF
17340 #define wxUSE_X_RESOURCES 1
17341 EOF
17342
17343 fi
17344
17345
17346 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
17347 -o "$wxUSE_CLIPBOARD" = "yes" \
17348 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
17349 for ac_hdr in ole2.h
17350 do
17351 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17352 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17353 echo "configure:17354: checking for $ac_hdr" >&5
17354 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17355 echo $ac_n "(cached) $ac_c" 1>&6
17356 else
17357 cat > conftest.$ac_ext <<EOF
17358 #line 17359 "configure"
17359 #include "confdefs.h"
17360 #include <$ac_hdr>
17361 EOF
17362 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17363 { (eval echo configure:17364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17364 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17365 if test -z "$ac_err"; then
17366 rm -rf conftest*
17367 eval "ac_cv_header_$ac_safe=yes"
17368 else
17369 echo "$ac_err" >&5
17370 echo "configure: failed program was:" >&5
17371 cat conftest.$ac_ext >&5
17372 rm -rf conftest*
17373 eval "ac_cv_header_$ac_safe=no"
17374 fi
17375 rm -f conftest*
17376 fi
17377 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17378 echo "$ac_t""yes" 1>&6
17379 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17380 cat >> confdefs.h <<EOF
17381 #define $ac_tr_hdr 1
17382 EOF
17383
17384 else
17385 echo "$ac_t""no" 1>&6
17386 fi
17387 done
17388
17389
17390 if test "$ac_cv_header_ole2_h" = "yes" ; then
17391 if test "$GCC" = yes ; then
17392 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
17393 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
17394 LIBS="$LIBS -lrpcrt4 -loleaut32 -lole32 -luuid"
17395 cat >> confdefs.h <<\EOF
17396 #define wxUSE_OLE 1
17397 EOF
17398
17399
17400 fi
17401
17402 cat >> confdefs.h <<\EOF
17403 #define wxUSE_DATAOBJ 1
17404 EOF
17405
17406 else
17407 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
17408
17409 wxUSE_CLIPBOARD=no
17410 wxUSE_DRAG_AND_DROP=no
17411 wxUSE_DATAOBJ=no
17412 fi
17413
17414 if test "$wxUSE_METAFILE" = "yes"; then
17415 cat >> confdefs.h <<\EOF
17416 #define wxUSE_METAFILE 1
17417 EOF
17418
17419
17420 cat >> confdefs.h <<\EOF
17421 #define wxUSE_ENH_METAFILE 1
17422 EOF
17423
17424 fi
17425 fi
17426
17427 if test "$wxUSE_IPC" = "yes"; then
17428 if test "$wxUSE_SOCKETS" != "yes"; then
17429 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
17430 fi
17431
17432 cat >> confdefs.h <<\EOF
17433 #define wxUSE_IPC 1
17434 EOF
17435
17436 fi
17437
17438 if test "$wxUSE_CLIPBOARD" = "yes"; then
17439 cat >> confdefs.h <<\EOF
17440 #define wxUSE_CLIPBOARD 1
17441 EOF
17442
17443
17444 cat >> confdefs.h <<\EOF
17445 #define wxUSE_DATAOBJ 1
17446 EOF
17447
17448 fi
17449
17450 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17451 if test "$wxUSE_GTK" = 1; then
17452 if test "$WXGTK12" != 1; then
17453 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
17454 wxUSE_DRAG_AND_DROP=no
17455 fi
17456 fi
17457
17458 if test "$wxUSE_MOTIF" = 1; then
17459 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
17460 wxUSE_DRAG_AND_DROP=no
17461 fi
17462
17463 if test "$wxUSE_MAC" = 1; then
17464 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
17465 wxUSE_DRAG_AND_DROP=no
17466 fi
17467
17468 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
17469 cat >> confdefs.h <<\EOF
17470 #define wxUSE_DRAG_AND_DROP 1
17471 EOF
17472
17473 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17474 fi
17475
17476 fi
17477
17478 if test "$wxUSE_SPLINES" = "yes" ; then
17479 cat >> confdefs.h <<\EOF
17480 #define wxUSE_SPLINES 1
17481 EOF
17482
17483 fi
17484
17485
17486 USES_CONTROLS=0
17487 if test "$wxUSE_CONTROLS" = "yes"; then
17488 USES_CONTROLS=1
17489 fi
17490
17491 if test "$wxUSE_ACCEL" = "yes"; then
17492 cat >> confdefs.h <<\EOF
17493 #define wxUSE_ACCEL 1
17494 EOF
17495
17496 USES_CONTROLS=1
17497 fi
17498
17499 if test "$wxUSE_BUTTON" = "yes"; then
17500 cat >> confdefs.h <<\EOF
17501 #define wxUSE_BUTTON 1
17502 EOF
17503
17504 USES_CONTROLS=1
17505 fi
17506
17507 if test "$wxUSE_BMPBUTTON" = "yes"; then
17508 cat >> confdefs.h <<\EOF
17509 #define wxUSE_BMPBUTTON 1
17510 EOF
17511
17512 USES_CONTROLS=1
17513 fi
17514
17515 if test "$wxUSE_CALCTRL" = "yes"; then
17516 cat >> confdefs.h <<\EOF
17517 #define wxUSE_CALENDARCTRL 1
17518 EOF
17519
17520 USES_CONTROLS=1
17521 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
17522 fi
17523
17524 if test "$wxUSE_CARET" = "yes"; then
17525 cat >> confdefs.h <<\EOF
17526 #define wxUSE_CARET 1
17527 EOF
17528
17529 USES_CONTROLS=1
17530 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17531 fi
17532
17533 if test "$wxUSE_COMBOBOX" = "yes"; then
17534 cat >> confdefs.h <<\EOF
17535 #define wxUSE_COMBOBOX 1
17536 EOF
17537
17538 USES_CONTROLS=1
17539 fi
17540
17541 if test "$wxUSE_CHOICE" = "yes"; then
17542 cat >> confdefs.h <<\EOF
17543 #define wxUSE_CHOICE 1
17544 EOF
17545
17546 USES_CONTROLS=1
17547 fi
17548
17549 if test "$wxUSE_CHECKBOX" = "yes"; then
17550 cat >> confdefs.h <<\EOF
17551 #define wxUSE_CHECKBOX 1
17552 EOF
17553
17554 USES_CONTROLS=1
17555 fi
17556
17557 if test "$wxUSE_CHECKLST" = "yes"; then
17558 cat >> confdefs.h <<\EOF
17559 #define wxUSE_CHECKLISTBOX 1
17560 EOF
17561
17562 USES_CONTROLS=1
17563 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17564 fi
17565
17566 if test "$wxUSE_GAUGE" = "yes"; then
17567 cat >> confdefs.h <<\EOF
17568 #define wxUSE_GAUGE 1
17569 EOF
17570
17571 USES_CONTROLS=1
17572 fi
17573
17574 if test "$wxUSE_NEW_GRID" = "yes"; then
17575 wxUSE_GRID="yes"
17576 cat >> confdefs.h <<\EOF
17577 #define wxUSE_NEW_GRID 1
17578 EOF
17579
17580 USES_CONTROLS=1
17581 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
17582 fi
17583
17584 if test "$wxUSE_GRID" = "yes"; then
17585 cat >> confdefs.h <<\EOF
17586 #define wxUSE_GRID 1
17587 EOF
17588
17589 USES_CONTROLS=1
17590 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
17591 fi
17592
17593 if test "$wxUSE_IMAGLIST" = "yes"; then
17594 cat >> confdefs.h <<\EOF
17595 #define wxUSE_IMAGLIST 1
17596 EOF
17597
17598 fi
17599
17600 if test "$wxUSE_LISTBOX" = "yes"; then
17601 cat >> confdefs.h <<\EOF
17602 #define wxUSE_LISTBOX 1
17603 EOF
17604
17605 USES_CONTROLS=1
17606 fi
17607
17608 if test "$wxUSE_LISTCTRL" = "yes"; then
17609 if test "$wxUSE_IMAGLIST" = "yes"; then
17610 cat >> confdefs.h <<\EOF
17611 #define wxUSE_LISTCTRL 1
17612 EOF
17613
17614 USES_CONTROLS=1
17615 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17616 else
17617 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
17618 fi
17619 fi
17620
17621 if test "$wxUSE_NOTEBOOK" = "yes"; then
17622 cat >> confdefs.h <<\EOF
17623 #define wxUSE_NOTEBOOK 1
17624 EOF
17625
17626 USES_CONTROLS=1
17627 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17628 fi
17629
17630 if test "$wxUSE_PROPSHEET" = "yes"; then
17631 cat >> confdefs.h <<\EOF
17632 #define wxUSE_PROPSHEET 1
17633 EOF
17634
17635 USES_CONTROLS=1
17636 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
17637 fi
17638
17639 if test "$wxUSE_RADIOBOX" = "yes"; then
17640 cat >> confdefs.h <<\EOF
17641 #define wxUSE_RADIOBOX 1
17642 EOF
17643
17644 USES_CONTROLS=1
17645 fi
17646
17647 if test "$wxUSE_RADIOBTN" = "yes"; then
17648 cat >> confdefs.h <<\EOF
17649 #define wxUSE_RADIOBTN 1
17650 EOF
17651
17652 USES_CONTROLS=1
17653 fi
17654
17655 if test "$wxUSE_SASH" = "yes"; then
17656 cat >> confdefs.h <<\EOF
17657 #define wxUSE_SASH 1
17658 EOF
17659
17660 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17661 fi
17662
17663 if test "$wxUSE_SCROLLBAR" = "yes"; then
17664 cat >> confdefs.h <<\EOF
17665 #define wxUSE_SCROLLBAR 1
17666 EOF
17667
17668 USES_CONTROLS=1
17669 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
17670 fi
17671
17672 if test "$wxUSE_SLIDER" = "yes"; then
17673 cat >> confdefs.h <<\EOF
17674 #define wxUSE_SLIDER 1
17675 EOF
17676
17677 USES_CONTROLS=1
17678 fi
17679
17680 if test "$wxUSE_SPINBTN" = "yes"; then
17681 cat >> confdefs.h <<\EOF
17682 #define wxUSE_SPINBTN 1
17683 EOF
17684
17685 USES_CONTROLS=1
17686 fi
17687
17688 if test "$wxUSE_SPINCTRL" = "yes"; then
17689 cat >> confdefs.h <<\EOF
17690 #define wxUSE_SPINCTRL 1
17691 EOF
17692
17693 USES_CONTROLS=1
17694 fi
17695
17696 if test "$wxUSE_SPLITTER" = "yes"; then
17697 cat >> confdefs.h <<\EOF
17698 #define wxUSE_SPLITTER 1
17699 EOF
17700
17701 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17702 fi
17703
17704 if test "$wxUSE_STATBMP" = "yes"; then
17705 cat >> confdefs.h <<\EOF
17706 #define wxUSE_STATBMP 1
17707 EOF
17708
17709 USES_CONTROLS=1
17710 fi
17711
17712 if test "$wxUSE_STATBOX" = "yes"; then
17713 cat >> confdefs.h <<\EOF
17714 #define wxUSE_STATBOX 1
17715 EOF
17716
17717 USES_CONTROLS=1
17718 fi
17719
17720 if test "$wxUSE_STATTEXT" = "yes"; then
17721 cat >> confdefs.h <<\EOF
17722 #define wxUSE_STATTEXT 1
17723 EOF
17724
17725 USES_CONTROLS=1
17726 fi
17727
17728 if test "$wxUSE_STATLINE" = "yes"; then
17729 if test "$wxUSE_WINE" = 1 ; then
17730 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
17731 else
17732 cat >> confdefs.h <<\EOF
17733 #define wxUSE_STATLINE 1
17734 EOF
17735
17736 USES_CONTROLS=1
17737 fi
17738 fi
17739
17740 if test "$wxUSE_STATUSBAR" = "yes"; then
17741 cat >> confdefs.h <<\EOF
17742 #define wxUSE_STATUSBAR 1
17743 EOF
17744
17745 USES_CONTROLS=1
17746
17747 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
17748 fi
17749
17750 if test "$wxUSE_TABDIALOG" = "yes"; then
17751 cat >> confdefs.h <<\EOF
17752 #define wxUSE_TAB_DIALOG 1
17753 EOF
17754
17755 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17756 fi
17757
17758 if test "$wxUSE_TEXTCTRL" = "yes"; then
17759 cat >> confdefs.h <<\EOF
17760 #define wxUSE_TEXTCTRL 1
17761 EOF
17762
17763 USES_CONTROLS=1
17764 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17765 fi
17766
17767 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17768 if test "$wxUSE_MAC" = 1 -o "$wxUSE_UNIVERSAL" = "yes"; then
17769 echo "configure: warning: Toggle button not yet supported under Mac OS X or wxUNIVERSAL... disabled" 1>&2
17770 wxUSE_TOGGLEBTN=no
17771 fi
17772
17773 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17774 cat >> confdefs.h <<\EOF
17775 #define wxUSE_TOGGLEBTN 1
17776 EOF
17777
17778 USES_CONTROLS=1
17779 fi
17780 fi
17781
17782 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
17783 cat >> confdefs.h <<\EOF
17784 #define wxUSE_TOOLBAR_SIMPLE 1
17785 EOF
17786
17787 wxUSE_TOOLBAR="yes"
17788 USES_CONTROLS=1
17789 fi
17790
17791 if test "$wxUSE_TOOLBAR" = "yes"; then
17792 cat >> confdefs.h <<\EOF
17793 #define wxUSE_TOOLBAR 1
17794 EOF
17795
17796 USES_CONTROLS=1
17797
17798 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17799 wxUSE_TOOLBAR_NATIVE="yes"
17800 fi
17801
17802 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17803 cat >> confdefs.h <<\EOF
17804 #define wxUSE_TOOLBAR_NATIVE 1
17805 EOF
17806
17807 USES_CONTROLS=1
17808 fi
17809
17810 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
17811 fi
17812
17813 if test "$wxUSE_TOOLTIPS" = "yes"; then
17814 if test "$wxUSE_MOTIF" = 1; then
17815 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
17816 else
17817 if test "$wxUSE_WINE" = 1; then
17818 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
17819 else
17820 cat >> confdefs.h <<\EOF
17821 #define wxUSE_TOOLTIPS 1
17822 EOF
17823
17824 fi
17825 fi
17826 fi
17827
17828 if test "$wxUSE_TREECTRL" = "yes"; then
17829 if test "$wxUSE_IMAGLIST" = "yes"; then
17830 cat >> confdefs.h <<\EOF
17831 #define wxUSE_TREECTRL 1
17832 EOF
17833
17834 USES_CONTROLS=1
17835 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17836 else
17837 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
17838 fi
17839 fi
17840
17841 if test "$wxUSE_POPUPWIN" = "yes"; then
17842 if test "$wxUSE_MAC" = 1; then
17843 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17844 else
17845 cat >> confdefs.h <<\EOF
17846 #define wxUSE_POPUPWIN 1
17847 EOF
17848
17849 USES_CONTROLS=1
17850 fi
17851 fi
17852
17853 if test "$USES_CONTROLS" = 1; then
17854 cat >> confdefs.h <<\EOF
17855 #define wxUSE_CONTROLS 1
17856 EOF
17857
17858 fi
17859
17860
17861 if test "$wxUSE_TREELAYOUT" = "yes"; then
17862 cat >> confdefs.h <<\EOF
17863 #define wxUSE_TREELAYOUT 1
17864 EOF
17865
17866 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
17867 fi
17868
17869 if test "$wxUSE_DRAGIMAGE" = "yes"; then
17870 cat >> confdefs.h <<\EOF
17871 #define wxUSE_DRAGIMAGE 1
17872 EOF
17873
17874 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
17875 fi
17876
17877 if test "$wxUSE_MENUS" = "yes"; then
17878 cat >> confdefs.h <<\EOF
17879 #define wxUSE_MENUS 1
17880 EOF
17881
17882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
17883 fi
17884
17885 if test "$wxUSE_METAFILE" = "yes"; then
17886 cat >> confdefs.h <<\EOF
17887 #define wxUSE_METAFILE 1
17888 EOF
17889
17890 fi
17891
17892 if test "$wxUSE_MIMETYPE" = "yes"; then
17893 cat >> confdefs.h <<\EOF
17894 #define wxUSE_MIMETYPE 1
17895 EOF
17896
17897 fi
17898
17899 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
17900 cat >> confdefs.h <<\EOF
17901 #define wxUSE_SYSTEM_OPTIONS 1
17902 EOF
17903
17904 fi
17905
17906 if test "$wxUSE_MINIFRAME" = "yes"; then
17907 cat >> confdefs.h <<\EOF
17908 #define wxUSE_MINIFRAME 1
17909 EOF
17910
17911 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
17912 fi
17913
17914 if test "$wxUSE_HTML" = "yes"; then
17915 cat >> confdefs.h <<\EOF
17916 #define wxUSE_HTML 1
17917 EOF
17918
17919 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
17920 fi
17921
17922 if test "$wxUSE_VALIDATORS" = "yes"; then
17923 cat >> confdefs.h <<\EOF
17924 #define wxUSE_VALIDATORS 1
17925 EOF
17926
17927 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
17928 fi
17929
17930 if test "$wxUSE_PALETTE" = "yes" ; then
17931 cat >> confdefs.h <<\EOF
17932 #define wxUSE_PALETTE 1
17933 EOF
17934
17935 fi
17936
17937 if test "$wxUSE_IMAGE" = "yes" ; then
17938 cat >> confdefs.h <<\EOF
17939 #define wxUSE_IMAGE 1
17940 EOF
17941
17942 fi
17943
17944 if test "$wxUSE_GIF" = "yes" ; then
17945 cat >> confdefs.h <<\EOF
17946 #define wxUSE_GIF 1
17947 EOF
17948
17949 fi
17950
17951 if test "$wxUSE_PCX" = "yes" ; then
17952 cat >> confdefs.h <<\EOF
17953 #define wxUSE_PCX 1
17954 EOF
17955
17956 fi
17957
17958 if test "$wxUSE_PNM" = "yes" ; then
17959 cat >> confdefs.h <<\EOF
17960 #define wxUSE_PNM 1
17961 EOF
17962
17963 fi
17964
17965 if test "$wxUSE_XPM" = "yes" ; then
17966 cat >> confdefs.h <<\EOF
17967 #define wxUSE_XPM 1
17968 EOF
17969
17970 fi
17971
17972
17973 if test "$wxUSE_CHOICEDLG" = "yes"; then
17974 cat >> confdefs.h <<\EOF
17975 #define wxUSE_CHOICEDLG 1
17976 EOF
17977
17978 fi
17979
17980 if test "$wxUSE_COLOURDLG" = "yes"; then
17981 cat >> confdefs.h <<\EOF
17982 #define wxUSE_COLOURDLG 1
17983 EOF
17984
17985 fi
17986
17987 if test "$wxUSE_FILEDLG" = "yes"; then
17988 cat >> confdefs.h <<\EOF
17989 #define wxUSE_FILEDLG 1
17990 EOF
17991
17992 fi
17993
17994 if test "$wxUSE_FINDREPLDLG" = "yes"; then
17995 cat >> confdefs.h <<\EOF
17996 #define wxUSE_FINDREPLDLG 1
17997 EOF
17998
17999 fi
18000
18001 if test "$wxUSE_FONTDLG" = "yes"; then
18002 cat >> confdefs.h <<\EOF
18003 #define wxUSE_FONTDLG 1
18004 EOF
18005
18006 fi
18007
18008 if test "$wxUSE_DIRDLG" = "yes"; then
18009 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18010 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
18011 else
18012 if test "$wxUSE_TREECTRL" != "yes"; then
18013 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
18014 else
18015 cat >> confdefs.h <<\EOF
18016 #define wxUSE_DIRDLG 1
18017 EOF
18018
18019 fi
18020 fi
18021 fi
18022
18023 if test "$wxUSE_MSGDLG" = "yes"; then
18024 cat >> confdefs.h <<\EOF
18025 #define wxUSE_MSGDLG 1
18026 EOF
18027
18028 fi
18029
18030 if test "$wxUSE_NUMBERDLG" = "yes"; then
18031 cat >> confdefs.h <<\EOF
18032 #define wxUSE_NUMBERDLG 1
18033 EOF
18034
18035 fi
18036
18037 if test "$wxUSE_PROGRESSDLG" = "yes"; then
18038 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18039 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
18040 else
18041 cat >> confdefs.h <<\EOF
18042 #define wxUSE_PROGRESSDLG 1
18043 EOF
18044
18045 fi
18046 fi
18047
18048 if test "$wxUSE_SPLASH" = "yes"; then
18049 cat >> confdefs.h <<\EOF
18050 #define wxUSE_SPLASH 1
18051 EOF
18052
18053 fi
18054
18055 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
18056 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18057 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
18058 else
18059 cat >> confdefs.h <<\EOF
18060 #define wxUSE_STARTUP_TIPS 1
18061 EOF
18062
18063 fi
18064 fi
18065
18066 if test "$wxUSE_TEXTDLG" = "yes"; then
18067 cat >> confdefs.h <<\EOF
18068 #define wxUSE_TEXTDLG 1
18069 EOF
18070
18071 fi
18072
18073 if test "$wxUSE_WIZARDDLG" = "yes"; then
18074 cat >> confdefs.h <<\EOF
18075 #define wxUSE_WIZARDDLG 1
18076 EOF
18077
18078 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
18079 fi
18080
18081
18082 if test "$cross_compiling" = "yes"; then
18083 OSINFO="\"$host\""
18084 else
18085 OSINFO=`uname -s -r -m`
18086 OSINFO="\"$OSINFO\""
18087 fi
18088
18089 cat >> confdefs.h <<EOF
18090 #define WXWIN_OS_DESCRIPTION $OSINFO
18091 EOF
18092
18093
18094
18095 if test "x$prefix" != "xNONE"; then
18096 wxPREFIX=$prefix
18097 else
18098 wxPREFIX=$ac_default_prefix
18099 fi
18100
18101 cat >> confdefs.h <<EOF
18102 #define wxINSTALL_PREFIX "$wxPREFIX"
18103 EOF
18104
18105
18106
18107 GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
18108
18109 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
18110
18111 if test "$wxUSE_MAC" = 1 ; then
18112 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
18113 fi
18114
18115 if test "$wxUSE_GUI" = "yes"; then
18116 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
18117
18118
18119 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
18120 drawing dynamic erase event exec font image \
18121 minimal richedit rotate widgets"
18122
18123 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
18124 else
18125 SAMPLES_SUBDIRS="console"
18126 fi
18127
18128 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
18129
18130 INCLUDES="-I. -I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
18131 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
18132 $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
18133
18134 if test "$wxUSE_GTK" = 1; then
18135 WXCONFIG_INCLUDE=""
18136 else
18137 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
18138 fi
18139
18140 if test "$GXX" = yes ; then
18141 CXXWARNINGS="-Wall"
18142 fi
18143 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
18144
18145 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
18146 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
18147
18148 LDFLAGS="$LDFLAGS $PROFILE"
18149
18150 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
18234 echo "configure:18235: checking whether ${MAKE-make} sets \${MAKE}" >&5
18235 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
18236 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
18237 echo $ac_n "(cached) $ac_c" 1>&6
18238 else
18239 cat > conftestmake <<\EOF
18240 all:
18241 @echo 'ac_maketemp="${MAKE}"'
18242 EOF
18243 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18244 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
18245 if test -n "$ac_maketemp"; then
18246 eval ac_cv_prog_make_${ac_make}_set=yes
18247 else
18248 eval ac_cv_prog_make_${ac_make}_set=no
18249 fi
18250 rm -f conftestmake
18251 fi
18252 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
18253 echo "$ac_t""yes" 1>&6
18254 SET_MAKE=
18255 else
18256 echo "$ac_t""no" 1>&6
18257 SET_MAKE="MAKE=${MAKE-make}"
18258 fi
18259
18260
18261 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
18262 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
18263 fi
18264
18265
18266
18267 if test "$wxUSE_GUI" = "yes"; then
18268 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
18269 wx_cv_path_ifs=$PATH_IFS
18270 wx_cv_program_ext=$PROGRAM_EXT
18271 wx_cv_target_library=$WX_TARGET_LIBRARY
18272 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
18273 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
18274 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
18275 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
18276 subdirs="demos samples utils contrib"
18277
18278 fi
18279
18280 trap '' 1 2 15
18281 cat > confcache <<\EOF
18282 # This file is a shell script that caches the results of configure
18283 # tests run on this system so they can be shared between configure
18284 # scripts and configure runs. It is not useful on other systems.
18285 # If it contains results you don't want to keep, you may remove or edit it.
18286 #
18287 # By default, configure uses ./config.cache as the cache file,
18288 # creating it if it does not exist already. You can give configure
18289 # the --cache-file=FILE option to use a different cache file; that is
18290 # what configure does when it calls configure scripts in
18291 # subdirectories, so they share the cache.
18292 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18293 # config.status only pays attention to the cache file if you give it the
18294 # --recheck option to rerun configure.
18295 #
18296 EOF
18297 # The following way of writing the cache mishandles newlines in values,
18298 # but we know of no workaround that is simple, portable, and efficient.
18299 # So, don't put newlines in cache variables' values.
18300 # Ultrix sh set writes to stderr and can't be redirected directly,
18301 # and sets the high bit in the cache file unless we assign to the vars.
18302 (set) 2>&1 |
18303 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18304 *ac_space=\ *)
18305 # `set' does not quote correctly, so add quotes (double-quote substitution
18306 # turns \\\\ into \\, and sed turns \\ into \).
18307 sed -n \
18308 -e "s/'/'\\\\''/g" \
18309 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18310 ;;
18311 *)
18312 # `set' quotes correctly as required by POSIX, so do not add quotes.
18313 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18314 ;;
18315 esac >> confcache
18316 if cmp -s $cache_file confcache; then
18317 :
18318 else
18319 if test -w $cache_file; then
18320 echo "updating cache $cache_file"
18321 cat confcache > $cache_file
18322 else
18323 echo "not updating unwritable cache $cache_file"
18324 fi
18325 fi
18326 rm -f confcache
18327
18328 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18329
18330 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18331 # Let make expand exec_prefix.
18332 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18333
18334 # Any assignment to VPATH causes Sun make to only execute
18335 # the first set of double-colon rules, so remove it if not needed.
18336 # If there is a colon in the path, we need to keep it.
18337 if test "x$srcdir" = x.; then
18338 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
18339 fi
18340
18341 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18342
18343 DEFS=-DHAVE_CONFIG_H
18344
18345 # Without the "./", some shells look in PATH for config.status.
18346 : ${CONFIG_STATUS=./config.status}
18347
18348 echo creating $CONFIG_STATUS
18349 rm -f $CONFIG_STATUS
18350 cat > $CONFIG_STATUS <<EOF
18351 #! /bin/sh
18352 # Generated automatically by configure.
18353 # Run this file to recreate the current configuration.
18354 # This directory was configured as follows,
18355 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18356 #
18357 # $0 $ac_configure_args
18358 #
18359 # Compiler output produced by configure, useful for debugging
18360 # configure, is in ./config.log if it exists.
18361
18362 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18363 for ac_option
18364 do
18365 case "\$ac_option" in
18366 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18367 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18368 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18369 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18370 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18371 exit 0 ;;
18372 -help | --help | --hel | --he | --h)
18373 echo "\$ac_cs_usage"; exit 0 ;;
18374 *) echo "\$ac_cs_usage"; exit 1 ;;
18375 esac
18376 done
18377
18378 ac_given_srcdir=$srcdir
18379 ac_given_INSTALL="$INSTALL"
18380
18381 trap 'rm -fr `echo "
18382 wx-config
18383 src/make.env
18384 src/makeprog.env
18385 src/makelib.env
18386 Makefile
18387 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
18388 EOF
18389 cat >> $CONFIG_STATUS <<EOF
18390
18391 # Protect against being on the right side of a sed subst in config.status.
18392 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18393 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18394 $ac_vpsub
18395 $extrasub
18396 s%@SHELL@%$SHELL%g
18397 s%@CFLAGS@%$CFLAGS%g
18398 s%@CPPFLAGS@%$CPPFLAGS%g
18399 s%@CXXFLAGS@%$CXXFLAGS%g
18400 s%@FFLAGS@%$FFLAGS%g
18401 s%@DEFS@%$DEFS%g
18402 s%@LDFLAGS@%$LDFLAGS%g
18403 s%@LIBS@%$LIBS%g
18404 s%@exec_prefix@%$exec_prefix%g
18405 s%@prefix@%$prefix%g
18406 s%@program_transform_name@%$program_transform_name%g
18407 s%@bindir@%$bindir%g
18408 s%@sbindir@%$sbindir%g
18409 s%@libexecdir@%$libexecdir%g
18410 s%@datadir@%$datadir%g
18411 s%@sysconfdir@%$sysconfdir%g
18412 s%@sharedstatedir@%$sharedstatedir%g
18413 s%@localstatedir@%$localstatedir%g
18414 s%@libdir@%$libdir%g
18415 s%@includedir@%$includedir%g
18416 s%@oldincludedir@%$oldincludedir%g
18417 s%@infodir@%$infodir%g
18418 s%@mandir@%$mandir%g
18419 s%@host@%$host%g
18420 s%@host_alias@%$host_alias%g
18421 s%@host_cpu@%$host_cpu%g
18422 s%@host_vendor@%$host_vendor%g
18423 s%@host_os@%$host_os%g
18424 s%@target@%$target%g
18425 s%@target_alias@%$target_alias%g
18426 s%@target_cpu@%$target_cpu%g
18427 s%@target_vendor@%$target_vendor%g
18428 s%@target_os@%$target_os%g
18429 s%@build@%$build%g
18430 s%@build_alias@%$build_alias%g
18431 s%@build_cpu@%$build_cpu%g
18432 s%@build_vendor@%$build_vendor%g
18433 s%@build_os@%$build_os%g
18434 s%@CC@%$CC%g
18435 s%@CPP@%$CPP%g
18436 s%@CXX@%$CXX%g
18437 s%@RANLIB@%$RANLIB%g
18438 s%@AR@%$AR%g
18439 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18440 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18441 s%@INSTALL_DATA@%$INSTALL_DATA%g
18442 s%@STRIP@%$STRIP%g
18443 s%@YACC@%$YACC%g
18444 s%@LEX@%$LEX%g
18445 s%@LEXLIB@%$LEXLIB%g
18446 s%@LN_S@%$LN_S%g
18447 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
18448 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18449 s%@GTK_LIBS@%$GTK_LIBS%g
18450 s%@GTK_CONFIG@%$GTK_CONFIG%g
18451 s%@X_CFLAGS@%$X_CFLAGS%g
18452 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18453 s%@X_LIBS@%$X_LIBS%g
18454 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
18455 s%@RESCOMP@%$RESCOMP%g
18456 s%@DEREZ@%$DEREZ%g
18457 s%@CXXCPP@%$CXXCPP%g
18458 s%@LEX_STEM@%$LEX_STEM%g
18459 s%@PATH_IFS@%$PATH_IFS%g
18460 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18461 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18462 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
18463 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18464 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
18465 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18466 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18467 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
18468 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
18469 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18470 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
18471 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18472 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18473 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
18474 s%@WX_ALL@%$WX_ALL%g
18475 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18476 s%@SHARED_LD@%$SHARED_LD%g
18477 s%@PIC_FLAG@%$PIC_FLAG%g
18478 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18479 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
18480 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
18481 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
18482 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18483 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18484 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18485 s%@USE_GUI@%$USE_GUI%g
18486 s%@AFMINSTALL@%$AFMINSTALL%g
18487 s%@TOOLKIT@%$TOOLKIT%g
18488 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
18489 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
18490 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
18491 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
18492 s%@cross_compiling@%$cross_compiling%g
18493 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
18494 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
18495 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18496 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
18497 s%@GUIDIST@%$GUIDIST%g
18498 s%@PORT_FILES@%$PORT_FILES%g
18499 s%@DISTDIR@%$DISTDIR%g
18500 s%@RPM_SPEC@%$RPM_SPEC%g
18501 s%@RPM_FILES@%$RPM_FILES%g
18502 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
18503 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
18504 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18505 s%@EXTRADEFS@%$EXTRADEFS%g
18506 s%@LD_LIBS@%$LD_LIBS%g
18507 s%@WXMSW_DLL_DEFINES@%$WXMSW_DLL_DEFINES%g
18508 s%@RESFLAGS@%$RESFLAGS%g
18509 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
18510 s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
18511 s%@LIBWXMACRES@%$LIBWXMACRES%g
18512 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18513 s%@DLLTOOL@%$DLLTOOL%g
18514 s%@AS@%$AS%g
18515 s%@NM@%$NM%g
18516 s%@LD@%$LD%g
18517 s%@MAKEINFO@%$MAKEINFO%g
18518 s%@SET_MAKE@%$SET_MAKE%g
18519 s%@subdirs@%$subdirs%g
18520
18521 CEOF
18522 EOF
18523
18524 cat >> $CONFIG_STATUS <<\EOF
18525
18526 # Split the substitutions into bite-sized pieces for seds with
18527 # small command number limits, like on Digital OSF/1 and HP-UX.
18528 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18529 ac_file=1 # Number of current file.
18530 ac_beg=1 # First line for current file.
18531 ac_end=$ac_max_sed_cmds # Line after last line for current file.
18532 ac_more_lines=:
18533 ac_sed_cmds=""
18534 while $ac_more_lines; do
18535 if test $ac_beg -gt 1; then
18536 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18537 else
18538 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18539 fi
18540 if test ! -s conftest.s$ac_file; then
18541 ac_more_lines=false
18542 rm -f conftest.s$ac_file
18543 else
18544 if test -z "$ac_sed_cmds"; then
18545 ac_sed_cmds="sed -f conftest.s$ac_file"
18546 else
18547 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18548 fi
18549 ac_file=`expr $ac_file + 1`
18550 ac_beg=$ac_end
18551 ac_end=`expr $ac_end + $ac_max_sed_cmds`
18552 fi
18553 done
18554 if test -z "$ac_sed_cmds"; then
18555 ac_sed_cmds=cat
18556 fi
18557 EOF
18558
18559 cat >> $CONFIG_STATUS <<EOF
18560
18561 CONFIG_FILES=\${CONFIG_FILES-"wx-config
18562 src/make.env
18563 src/makeprog.env
18564 src/makelib.env
18565 Makefile
18566 "}
18567 EOF
18568 cat >> $CONFIG_STATUS <<\EOF
18569 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18570 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18571 case "$ac_file" in
18572 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18573 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18574 *) ac_file_in="${ac_file}.in" ;;
18575 esac
18576
18577 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18578
18579 # Remove last slash and all that follows it. Not all systems have dirname.
18580 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18581 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18582 # The file is in a subdirectory.
18583 test ! -d "$ac_dir" && mkdir "$ac_dir"
18584 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18585 # A "../" for each directory in $ac_dir_suffix.
18586 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18587 else
18588 ac_dir_suffix= ac_dots=
18589 fi
18590
18591 case "$ac_given_srcdir" in
18592 .) srcdir=.
18593 if test -z "$ac_dots"; then top_srcdir=.
18594 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18595 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18596 *) # Relative path.
18597 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18598 top_srcdir="$ac_dots$ac_given_srcdir" ;;
18599 esac
18600
18601 case "$ac_given_INSTALL" in
18602 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18603 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18604 esac
18605
18606 echo creating "$ac_file"
18607 rm -f "$ac_file"
18608 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18609 case "$ac_file" in
18610 *Makefile*) ac_comsub="1i\\
18611 # $configure_input" ;;
18612 *) ac_comsub= ;;
18613 esac
18614
18615 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18616 sed -e "$ac_comsub
18617 s%@configure_input@%$configure_input%g
18618 s%@srcdir@%$srcdir%g
18619 s%@top_srcdir@%$top_srcdir%g
18620 s%@INSTALL@%$INSTALL%g
18621 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18622 fi; done
18623 rm -f conftest.s*
18624
18625 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18626 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18627 #
18628 # ac_d sets the value in "#define NAME VALUE" lines.
18629 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18630 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18631 ac_dC='\3'
18632 ac_dD='%g'
18633 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18634 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18635 ac_uB='\([ ]\)%\1#\2define\3'
18636 ac_uC=' '
18637 ac_uD='\4%g'
18638 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18639 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18640 ac_eB='$%\1#\2define\3'
18641 ac_eC=' '
18642 ac_eD='%g'
18643
18644 if test "${CONFIG_HEADERS+set}" != set; then
18645 EOF
18646 cat >> $CONFIG_STATUS <<EOF
18647 CONFIG_HEADERS="setup.h:setup.h.in"
18648 EOF
18649 cat >> $CONFIG_STATUS <<\EOF
18650 fi
18651 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18652 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18653 case "$ac_file" in
18654 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18655 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18656 *) ac_file_in="${ac_file}.in" ;;
18657 esac
18658
18659 echo creating $ac_file
18660
18661 rm -f conftest.frag conftest.in conftest.out
18662 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18663 cat $ac_file_inputs > conftest.in
18664
18665 EOF
18666
18667 # Transform confdefs.h into a sed script conftest.vals that substitutes
18668 # the proper values into config.h.in to produce config.h. And first:
18669 # Protect against being on the right side of a sed subst in config.status.
18670 # Protect against being in an unquoted here document in config.status.
18671 rm -f conftest.vals
18672 cat > conftest.hdr <<\EOF
18673 s/[\\&%]/\\&/g
18674 s%[\\$`]%\\&%g
18675 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18676 s%ac_d%ac_u%gp
18677 s%ac_u%ac_e%gp
18678 EOF
18679 sed -n -f conftest.hdr confdefs.h > conftest.vals
18680 rm -f conftest.hdr
18681
18682 # This sed command replaces #undef with comments. This is necessary, for
18683 # example, in the case of _POSIX_SOURCE, which is predefined and required
18684 # on some systems where configure will not decide to define it.
18685 cat >> conftest.vals <<\EOF
18686 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18687 EOF
18688
18689 # Break up conftest.vals because some shells have a limit on
18690 # the size of here documents, and old seds have small limits too.
18691
18692 rm -f conftest.tail
18693 while :
18694 do
18695 ac_lines=`grep -c . conftest.vals`
18696 # grep -c gives empty output for an empty file on some AIX systems.
18697 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18698 # Write a limited-size here document to conftest.frag.
18699 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18700 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18701 echo 'CEOF
18702 sed -f conftest.frag conftest.in > conftest.out
18703 rm -f conftest.in
18704 mv conftest.out conftest.in
18705 ' >> $CONFIG_STATUS
18706 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18707 rm -f conftest.vals
18708 mv conftest.tail conftest.vals
18709 done
18710 rm -f conftest.vals
18711
18712 cat >> $CONFIG_STATUS <<\EOF
18713 rm -f conftest.frag conftest.h
18714 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18715 cat conftest.in >> conftest.h
18716 rm -f conftest.in
18717 if cmp -s $ac_file conftest.h 2>/dev/null; then
18718 echo "$ac_file is unchanged"
18719 rm -f conftest.h
18720 else
18721 # Remove last slash and all that follows it. Not all systems have dirname.
18722 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18723 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18724 # The file is in a subdirectory.
18725 test ! -d "$ac_dir" && mkdir "$ac_dir"
18726 fi
18727 rm -f $ac_file
18728 mv conftest.h $ac_file
18729 fi
18730 fi; done
18731
18732 EOF
18733 cat >> $CONFIG_STATUS <<EOF
18734
18735 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
18736 LN_S="${LN_S}"
18737
18738
18739 EOF
18740 cat >> $CONFIG_STATUS <<\EOF
18741
18742 if test ! -L wx-config; then
18743 chmod +x wx-config
18744 mv wx-config wx${TOOLCHAIN_NAME}-config
18745 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
18746 fi
18747
18748 if test ! -d lib; then
18749 mkdir lib
18750 fi
18751 if test ! -d lib/wx; then
18752 mkdir lib/wx
18753 fi
18754 if test ! -d lib/wx/include; then
18755 mkdir lib/wx/include
18756 fi
18757 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
18758 mkdir lib/wx/include/${TOOLCHAIN_NAME}
18759 fi
18760 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
18761 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
18762 fi
18763 if test -f setup.h; then
18764 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
18765 fi
18766
18767 exit 0
18768 EOF
18769 chmod +x $CONFIG_STATUS
18770 rm -fr confdefs* $ac_clean_files
18771 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
18772
18773 if test "$no_recursion" != yes; then
18774
18775 # Remove --cache-file and --srcdir arguments so they do not pile up.
18776 ac_sub_configure_args=
18777 ac_prev=
18778 for ac_arg in $ac_configure_args; do
18779 if test -n "$ac_prev"; then
18780 ac_prev=
18781 continue
18782 fi
18783 case "$ac_arg" in
18784 -cache-file | --cache-file | --cache-fil | --cache-fi \
18785 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18786 ac_prev=cache_file ;;
18787 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18788 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
18789 ;;
18790 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18791 ac_prev=srcdir ;;
18792 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18793 ;;
18794 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18795 esac
18796 done
18797
18798 for ac_config_dir in demos samples utils contrib; do
18799
18800 # Do not complain, so a configure script can configure whichever
18801 # parts of a large source tree are present.
18802 if test ! -d $srcdir/$ac_config_dir; then
18803 continue
18804 fi
18805
18806 echo configuring in $ac_config_dir
18807
18808 case "$srcdir" in
18809 .) ;;
18810 *)
18811 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18812 else
18813 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18814 fi
18815 ;;
18816 esac
18817
18818 ac_popdir=`pwd`
18819 cd $ac_config_dir
18820
18821 # A "../" for each directory in /$ac_config_dir.
18822 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
18823
18824 case "$srcdir" in
18825 .) # No --srcdir option. We are building in place.
18826 ac_sub_srcdir=$srcdir ;;
18827 /*) # Absolute path.
18828 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
18829 *) # Relative path.
18830 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
18831 esac
18832
18833 # Check for guested configure; otherwise get Cygnus style configure.
18834 if test -f $ac_sub_srcdir/configure; then
18835 ac_sub_configure=$ac_sub_srcdir/configure
18836 elif test -f $ac_sub_srcdir/configure.in; then
18837 ac_sub_configure=$ac_configure
18838 else
18839 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
18840 ac_sub_configure=
18841 fi
18842
18843 # The recursion is here.
18844 if test -n "$ac_sub_configure"; then
18845
18846 # Make the cache file name correct relative to the subdirectory.
18847 case "$cache_file" in
18848 /*) ac_sub_cache_file=$cache_file ;;
18849 *) # Relative path.
18850 ac_sub_cache_file="$ac_dots$cache_file" ;;
18851 esac
18852 case "$ac_given_INSTALL" in
18853 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18854 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18855 esac
18856
18857 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
18858 # The eval makes quoting arguments work.
18859 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
18860 then :
18861 else
18862 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
18863 fi
18864 fi
18865
18866 cd $ac_popdir
18867 done
18868 fi
18869
18870