]> git.saurik.com Git - wxWidgets.git/blame_incremental - configure
added detection of regex support to configure
[wxWidgets.git] / configure
... / ...
CommitLineData
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:
55ac_help=
56ac_default_prefix=/usr/local
57# Any additions from configure.in:
58ac_help="$ac_help
59 --enable-gui use GUI classes"
60ac_help="$ac_help
61 --enable-universal use wxWindows GUI controls instead of native ones"
62ac_help="$ac_help
63 --with-gtk use GTK+"
64ac_help="$ac_help
65 --with-motif use Motif/Lesstif"
66ac_help="$ac_help
67 --with-mac use Mac OS X"
68ac_help="$ac_help
69 --with-wine use WINE"
70ac_help="$ac_help
71 --with-cygwin use Cygwin for MS-Windows"
72ac_help="$ac_help
73 --with-mingw use GCC Minimal MS-Windows"
74ac_help="$ac_help
75 --with-pm use OS/2 Presentation Manager"
76ac_help="$ac_help
77 --with-mgl use MGL"
78ac_help="$ac_help
79 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
80ac_help="$ac_help
81 --with-libpng use libpng (PNG image format)"
82ac_help="$ac_help
83 --with-libjpeg use libjpeg (JPEG file format)"
84ac_help="$ac_help
85 --with-libtiff use libtiff (TIFF file format)"
86ac_help="$ac_help
87 --with-freetype use freetype (font rasterizer)"
88ac_help="$ac_help
89 --with-opengl use OpenGL (or Mesa)"
90ac_help="$ac_help
91 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
92ac_help="$ac_help
93 --with-regex enable support for wxRegEx class"
94ac_help="$ac_help
95 --with-zlib use zlib for LZW compression"
96ac_help="$ac_help
97 --with-odbc use the IODBC and wxODBC classes"
98ac_help="$ac_help
99 --enable-shared create shared library code"
100ac_help="$ac_help
101 --enable-burnt_name create set name in shared library "
102ac_help="$ac_help
103 --enable-optimise create optimised code"
104ac_help="$ac_help
105 --enable-debug same as debug_flag and debug_info"
106ac_help="$ac_help
107 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
108ac_help="$ac_help
109 --enable-debug_info create code with debugging information"
110ac_help="$ac_help
111 --enable-debug_gdb create code with extra GDB debugging information"
112ac_help="$ac_help
113 --enable-debug_cntxt use wxDebugContext"
114ac_help="$ac_help
115 --enable-mem_tracing create code with memory tracing"
116ac_help="$ac_help
117 --enable-profile create code with profiling information"
118ac_help="$ac_help
119 --enable-no_rtti create code without RTTI information"
120ac_help="$ac_help
121 --enable-no_exceptions create code without exceptions information"
122ac_help="$ac_help
123 --enable-permissive compile code disregarding strict ANSI"
124ac_help="$ac_help
125 --enable-no_deps create code without dependency information"
126ac_help="$ac_help
127 --enable-compat20 enable wxWin 2.0 compatibility"
128ac_help="$ac_help
129 --enable-compat22 enable wxWin 2.2 compatibility"
130ac_help="$ac_help
131 --enable-intl use internationalization system"
132ac_help="$ac_help
133 --enable-config use wxConfig (and derived) classes"
134ac_help="$ac_help
135 --enable-sockets use socket/network classes"
136ac_help="$ac_help
137 --enable-ipc use interprocess communication (wxSocket etc.)"
138ac_help="$ac_help
139 --enable-cmdline use wxCmdLineParser class"
140ac_help="$ac_help
141 --enable-datetime use wxDateTime class"
142ac_help="$ac_help
143 --enable-timedate use obsolete wxDate/wxTime classes"
144ac_help="$ac_help
145 --enable-stopwatch use wxStopWatch class"
146ac_help="$ac_help
147 --enable-dialupman use dialup network classes"
148ac_help="$ac_help
149 --enable-apple_ieee use the Apple IEEE codec"
150ac_help="$ac_help
151 --enable-timer use wxTimer class"
152ac_help="$ac_help
153 --enable-wave use wxWave class"
154ac_help="$ac_help
155 --enable-fraction use wxFraction class"
156ac_help="$ac_help
157 --enable-dynlib use wxLibrary class for DLL loading"
158ac_help="$ac_help
159 --enable-longlong use wxLongLong class"
160ac_help="$ac_help
161 --enable-geometry use geometry class"
162ac_help="$ac_help
163 --enable-log use logging system"
164ac_help="$ac_help
165 --enable-streams use wxStream etc classes"
166ac_help="$ac_help
167 --enable-file use wxFile classes"
168ac_help="$ac_help
169 --enable-ffile use wxFFile classes"
170ac_help="$ac_help
171 --enable-textfile use wxTextFile classes"
172ac_help="$ac_help
173 --enable-fontmap use font encodings conversion classes"
174ac_help="$ac_help
175 --enable-unicode compile wxString with Unicode support"
176ac_help="$ac_help
177 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
178ac_help="$ac_help
179 --enable-wxprintfv use wxWindows implementation of vprintf()"
180ac_help="$ac_help
181 --enable-std_iostreams use standard C++ stream classes"
182ac_help="$ac_help
183 --enable-filesystem use virtual file systems classes"
184ac_help="$ac_help
185 --enable-fs_inet use virtual HTTP/FTP filesystems"
186ac_help="$ac_help
187 --enable-fs_zip use virtual ZIP filesystems"
188ac_help="$ac_help
189 --enable-zipstream use wxZipInputStream"
190ac_help="$ac_help
191 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
192ac_help="$ac_help
193 --enable-snglinst use wxSingleInstanceChecker class"
194ac_help="$ac_help
195 --enable-mimetypes use wxMimeTypesManager"
196ac_help="$ac_help
197 --enable-sysoptions use wxSystemOptions"
198ac_help="$ac_help
199 --enable-threads use threads"
200ac_help="$ac_help
201 --enable-serial use class serialization"
202ac_help="$ac_help
203 --enable-docview use document view architecture"
204ac_help="$ac_help
205 --enable-help use help subsystem"
206ac_help="$ac_help
207 --enable-mshtmlhelp use MS HTML Help (win32)"
208ac_help="$ac_help
209 --enable-html use wxHTML sub-library"
210ac_help="$ac_help
211 --enable-htmlhelp use wxHTML-based help"
212ac_help="$ac_help
213 --enable-constraints use layout-constraints system"
214ac_help="$ac_help
215 --enable-printarch use printing architecture"
216ac_help="$ac_help
217 --enable-mdi use multiple document interface architecture"
218ac_help="$ac_help
219 --enable-loggui use standard GUI logger"
220ac_help="$ac_help
221 --enable-logwin use wxLogWindow"
222ac_help="$ac_help
223 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
224ac_help="$ac_help
225 --enable-prologio use Prolog IO library"
226ac_help="$ac_help
227 --enable-resources use wxWindows resources"
228ac_help="$ac_help
229 --enable-xresources use X resources for save (default for gtk+)"
230ac_help="$ac_help
231 --enable-clipboard use wxClipboard classes"
232ac_help="$ac_help
233 --enable-dnd use Drag'n'Drop classes"
234ac_help="$ac_help
235 --enable-metafile use win32 metafiles"
236ac_help="$ac_help
237 --enable-wxtree make wxTree library"
238ac_help="$ac_help
239 --enable-controls use all usual controls"
240ac_help="$ac_help
241 --enable-accel use accelerators"
242ac_help="$ac_help
243 --enable-button use wxButton class"
244ac_help="$ac_help
245 --enable-bmpbutton use wxBitmapButton class"
246ac_help="$ac_help
247 --enable-calendar use wxCalendarCtrl class"
248ac_help="$ac_help
249 --enable-caret use wxCaret class"
250ac_help="$ac_help
251 --enable-checkbox use wxCheckBox class"
252ac_help="$ac_help
253 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
254ac_help="$ac_help
255 --enable-choice use wxChoice class"
256ac_help="$ac_help
257 --enable-combobox use wxComboBox classes"
258ac_help="$ac_help
259 --enable-gauge use wxGauge class"
260ac_help="$ac_help
261 --enable-grid use wxGrid class"
262ac_help="$ac_help
263 --enable-newgrid use new wxGrid class"
264ac_help="$ac_help
265 --enable-imaglist use wxImageList class"
266ac_help="$ac_help
267 --enable-listbox use wxListBox class"
268ac_help="$ac_help
269 --enable-listctrl use wxListCtrl class"
270ac_help="$ac_help
271 --enable-notebook use wxNotebook class"
272ac_help="$ac_help
273 --enable-radiobox use wxRadioBox class"
274ac_help="$ac_help
275 --enable-radiobtn use wxRadioButton class"
276ac_help="$ac_help
277 --enable-sash use wxSashWindow class"
278ac_help="$ac_help
279 --enable-scrollbar use wxScrollBar class and scrollable windows"
280ac_help="$ac_help
281 --enable-slider use wxSlider class"
282ac_help="$ac_help
283 --enable-spinbtn use wxSpinButton class"
284ac_help="$ac_help
285 --enable-spinctrl use wxSpinCtrl class"
286ac_help="$ac_help
287 --enable-splitter use wxSplitterWindow class"
288ac_help="$ac_help
289 --enable-statbmp use wxStaticBitmap class"
290ac_help="$ac_help
291 --enable-statbox use wxStaticBox class"
292ac_help="$ac_help
293 --enable-statline use wxStaticLine class"
294ac_help="$ac_help
295 --enable-stattext use wxStaticText class"
296ac_help="$ac_help
297 --enable-statusbar use wxStatusBar class"
298ac_help="$ac_help
299 --enable-tabdialog use wxTabControl class"
300ac_help="$ac_help
301 --enable-textctrl use wxTextCtrl class"
302ac_help="$ac_help
303 --enable-togglebtn use wxToggleButton class"
304ac_help="$ac_help
305 --enable-toolbar use wxToolBar class"
306ac_help="$ac_help
307 --enable-tbarnative use native wxToolBar class"
308ac_help="$ac_help
309 --enable-tbarsmpl use wxToolBarSimple class"
310ac_help="$ac_help
311 --enable-treectrl use wxTreeCtrl class"
312ac_help="$ac_help
313 --enable-popupwin use wxPopUpWindow class"
314ac_help="$ac_help
315 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
316ac_help="$ac_help
317 --enable-choicedlg use wxChoiceDialog"
318ac_help="$ac_help
319 --enable-coldlg use wxColourDialog"
320ac_help="$ac_help
321 --enable-filedlg use wxFileDialog"
322ac_help="$ac_help
323 --enable-fontdlg use wxFontDialog"
324ac_help="$ac_help
325 --enable-dirdlg use wxDirDialog"
326ac_help="$ac_help
327 --enable-msgdlg use wxMessageDialog"
328ac_help="$ac_help
329 --enable-numberdlg use wxNumberEntryDialog"
330ac_help="$ac_help
331 --enable-textdlg use wxTextDialog"
332ac_help="$ac_help
333 --enable-tipdlg use startup tips"
334ac_help="$ac_help
335 --enable-progressdlg use wxProgressDialog"
336ac_help="$ac_help
337 --enable-wizarddlg use wxWizard"
338ac_help="$ac_help
339 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
340ac_help="$ac_help
341 --enable-miniframe use wxMiniFrame class"
342ac_help="$ac_help
343 --enable-tooltips use wxToolTip class"
344ac_help="$ac_help
345 --enable-splines use spline drawing code"
346ac_help="$ac_help
347 --enable-validators use wxValidator and derived classes"
348ac_help="$ac_help
349 --enable-busyinfo use wxBusyInfo"
350ac_help="$ac_help
351 --enable-joystick compile in joystick support (Linux only)"
352ac_help="$ac_help
353 --enable-metafiles use wxMetaFile (Windows only)"
354ac_help="$ac_help
355 --enable-dragimage use wxDragImage"
356ac_help="$ac_help
357 --enable-image use wxImage class"
358ac_help="$ac_help
359 --enable-gif use gif images (GIF file format)"
360ac_help="$ac_help
361 --enable-pcx use pcx images (PCX file format)"
362ac_help="$ac_help
363 --enable-pnm use pnm images (PNM file format)"
364ac_help="$ac_help
365 --enable-xpm use xpm images (XPM file format)"
366ac_help="$ac_help
367 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
368ac_help="$ac_help
369 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
370ac_help="$ac_help
371 --disable-gtktest Do not try to compile and run a test GTK program"
372ac_help="$ac_help
373 --with-x use the X Window System"
374
375# Initialize some variables set by options.
376# The variables have the same names as the options, with
377# dashes changed to underlines.
378build=NONE
379cache_file=./config.cache
380exec_prefix=NONE
381host=NONE
382no_create=
383nonopt=NONE
384no_recursion=
385prefix=NONE
386program_prefix=NONE
387program_suffix=NONE
388program_transform_name=s,x,x,
389silent=
390site=
391srcdir=
392target=NONE
393verbose=
394x_includes=NONE
395x_libraries=NONE
396bindir='${exec_prefix}/bin'
397sbindir='${exec_prefix}/sbin'
398libexecdir='${exec_prefix}/libexec'
399datadir='${prefix}/share'
400sysconfdir='${prefix}/etc'
401sharedstatedir='${prefix}/com'
402localstatedir='${prefix}/var'
403libdir='${exec_prefix}/lib'
404includedir='${prefix}/include'
405oldincludedir='/usr/include'
406infodir='${prefix}/info'
407mandir='${prefix}/man'
408
409# Initialize some other variables.
410subdirs=
411MFLAGS= MAKEFLAGS=
412SHELL=${CONFIG_SHELL-/bin/sh}
413# Maximum number of lines to put in a shell here document.
414ac_max_here_lines=12
415
416ac_prev=
417for ac_option
418do
419
420 # If the previous option needs an argument, assign it.
421 if test -n "$ac_prev"; then
422 eval "$ac_prev=\$ac_option"
423 ac_prev=
424 continue
425 fi
426
427 case "$ac_option" in
428 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
429 *) ac_optarg= ;;
430 esac
431
432 # Accept the important Cygnus configure options, so we can diagnose typos.
433
434 case "$ac_option" in
435
436 -bindir | --bindir | --bindi | --bind | --bin | --bi)
437 ac_prev=bindir ;;
438 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
439 bindir="$ac_optarg" ;;
440
441 -build | --build | --buil | --bui | --bu)
442 ac_prev=build ;;
443 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
444 build="$ac_optarg" ;;
445
446 -cache-file | --cache-file | --cache-fil | --cache-fi \
447 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
448 ac_prev=cache_file ;;
449 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
450 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
451 cache_file="$ac_optarg" ;;
452
453 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
454 ac_prev=datadir ;;
455 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
456 | --da=*)
457 datadir="$ac_optarg" ;;
458
459 -disable-* | --disable-*)
460 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
461 # Reject names that are not valid shell variable names.
462 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
463 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
464 fi
465 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
466 eval "enable_${ac_feature}=no" ;;
467
468 -enable-* | --enable-*)
469 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
470 # Reject names that are not valid shell variable names.
471 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
472 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
473 fi
474 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
475 case "$ac_option" in
476 *=*) ;;
477 *) ac_optarg=yes ;;
478 esac
479 eval "enable_${ac_feature}='$ac_optarg'" ;;
480
481 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
482 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
483 | --exec | --exe | --ex)
484 ac_prev=exec_prefix ;;
485 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
486 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
487 | --exec=* | --exe=* | --ex=*)
488 exec_prefix="$ac_optarg" ;;
489
490 -gas | --gas | --ga | --g)
491 # Obsolete; use --with-gas.
492 with_gas=yes ;;
493
494 -help | --help | --hel | --he)
495 # Omit some internal or obsolete options to make the list less imposing.
496 # This message is too long to be a string in the A/UX 3.1 sh.
497 cat << EOF
498Usage: configure [options] [host]
499Options: [defaults in brackets after descriptions]
500Configuration:
501 --cache-file=FILE cache test results in FILE
502 --help print this message
503 --no-create do not create output files
504 --quiet, --silent do not print \`checking...' messages
505 --version print the version of autoconf that created configure
506Directory and file names:
507 --prefix=PREFIX install architecture-independent files in PREFIX
508 [$ac_default_prefix]
509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
510 [same as prefix]
511 --bindir=DIR user executables in DIR [EPREFIX/bin]
512 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
513 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
514 --datadir=DIR read-only architecture-independent data in DIR
515 [PREFIX/share]
516 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
517 --sharedstatedir=DIR modifiable architecture-independent data in DIR
518 [PREFIX/com]
519 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
520 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
521 --includedir=DIR C header files in DIR [PREFIX/include]
522 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
523 --infodir=DIR info documentation in DIR [PREFIX/info]
524 --mandir=DIR man documentation in DIR [PREFIX/man]
525 --srcdir=DIR find the sources in DIR [configure dir or ..]
526 --program-prefix=PREFIX prepend PREFIX to installed program names
527 --program-suffix=SUFFIX append SUFFIX to installed program names
528 --program-transform-name=PROGRAM
529 run sed PROGRAM on installed program names
530EOF
531 cat << EOF
532Host type:
533 --build=BUILD configure for building on BUILD [BUILD=HOST]
534 --host=HOST configure for HOST [guessed]
535 --target=TARGET configure for TARGET [TARGET=HOST]
536Features and packages:
537 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
538 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
539 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
540 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
541 --x-includes=DIR X include files are in DIR
542 --x-libraries=DIR X library files are in DIR
543EOF
544 if test -n "$ac_help"; then
545 echo "--enable and --with options recognized:$ac_help"
546 fi
547 exit 0 ;;
548
549 -host | --host | --hos | --ho)
550 ac_prev=host ;;
551 -host=* | --host=* | --hos=* | --ho=*)
552 host="$ac_optarg" ;;
553
554 -includedir | --includedir | --includedi | --included | --include \
555 | --includ | --inclu | --incl | --inc)
556 ac_prev=includedir ;;
557 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
558 | --includ=* | --inclu=* | --incl=* | --inc=*)
559 includedir="$ac_optarg" ;;
560
561 -infodir | --infodir | --infodi | --infod | --info | --inf)
562 ac_prev=infodir ;;
563 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
564 infodir="$ac_optarg" ;;
565
566 -libdir | --libdir | --libdi | --libd)
567 ac_prev=libdir ;;
568 -libdir=* | --libdir=* | --libdi=* | --libd=*)
569 libdir="$ac_optarg" ;;
570
571 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
572 | --libexe | --libex | --libe)
573 ac_prev=libexecdir ;;
574 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
575 | --libexe=* | --libex=* | --libe=*)
576 libexecdir="$ac_optarg" ;;
577
578 -localstatedir | --localstatedir | --localstatedi | --localstated \
579 | --localstate | --localstat | --localsta | --localst \
580 | --locals | --local | --loca | --loc | --lo)
581 ac_prev=localstatedir ;;
582 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
583 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
584 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
585 localstatedir="$ac_optarg" ;;
586
587 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
588 ac_prev=mandir ;;
589 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
590 mandir="$ac_optarg" ;;
591
592 -nfp | --nfp | --nf)
593 # Obsolete; use --without-fp.
594 with_fp=no ;;
595
596 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
597 | --no-cr | --no-c)
598 no_create=yes ;;
599
600 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
601 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
602 no_recursion=yes ;;
603
604 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
605 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
606 | --oldin | --oldi | --old | --ol | --o)
607 ac_prev=oldincludedir ;;
608 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
609 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
610 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
611 oldincludedir="$ac_optarg" ;;
612
613 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
614 ac_prev=prefix ;;
615 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
616 prefix="$ac_optarg" ;;
617
618 -program-prefix | --program-prefix | --program-prefi | --program-pref \
619 | --program-pre | --program-pr | --program-p)
620 ac_prev=program_prefix ;;
621 -program-prefix=* | --program-prefix=* | --program-prefi=* \
622 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
623 program_prefix="$ac_optarg" ;;
624
625 -program-suffix | --program-suffix | --program-suffi | --program-suff \
626 | --program-suf | --program-su | --program-s)
627 ac_prev=program_suffix ;;
628 -program-suffix=* | --program-suffix=* | --program-suffi=* \
629 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
630 program_suffix="$ac_optarg" ;;
631
632 -program-transform-name | --program-transform-name \
633 | --program-transform-nam | --program-transform-na \
634 | --program-transform-n | --program-transform- \
635 | --program-transform | --program-transfor \
636 | --program-transfo | --program-transf \
637 | --program-trans | --program-tran \
638 | --progr-tra | --program-tr | --program-t)
639 ac_prev=program_transform_name ;;
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 program_transform_name="$ac_optarg" ;;
648
649 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
650 | -silent | --silent | --silen | --sile | --sil)
651 silent=yes ;;
652
653 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
654 ac_prev=sbindir ;;
655 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
656 | --sbi=* | --sb=*)
657 sbindir="$ac_optarg" ;;
658
659 -sharedstatedir | --sharedstatedir | --sharedstatedi \
660 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
661 | --sharedst | --shareds | --shared | --share | --shar \
662 | --sha | --sh)
663 ac_prev=sharedstatedir ;;
664 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
665 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
666 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
667 | --sha=* | --sh=*)
668 sharedstatedir="$ac_optarg" ;;
669
670 -site | --site | --sit)
671 ac_prev=site ;;
672 -site=* | --site=* | --sit=*)
673 site="$ac_optarg" ;;
674
675 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
676 ac_prev=srcdir ;;
677 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
678 srcdir="$ac_optarg" ;;
679
680 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
681 | --syscon | --sysco | --sysc | --sys | --sy)
682 ac_prev=sysconfdir ;;
683 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
684 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
685 sysconfdir="$ac_optarg" ;;
686
687 -target | --target | --targe | --targ | --tar | --ta | --t)
688 ac_prev=target ;;
689 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
690 target="$ac_optarg" ;;
691
692 -v | -verbose | --verbose | --verbos | --verbo | --verb)
693 verbose=yes ;;
694
695 -version | --version | --versio | --versi | --vers)
696 echo "configure generated by autoconf version 2.13"
697 exit 0 ;;
698
699 -with-* | --with-*)
700 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
701 # Reject names that are not valid shell variable names.
702 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
703 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
704 fi
705 ac_package=`echo $ac_package| sed 's/-/_/g'`
706 case "$ac_option" in
707 *=*) ;;
708 *) ac_optarg=yes ;;
709 esac
710 eval "with_${ac_package}='$ac_optarg'" ;;
711
712 -without-* | --without-*)
713 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
714 # Reject names that are not valid shell variable names.
715 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
716 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
717 fi
718 ac_package=`echo $ac_package| sed 's/-/_/g'`
719 eval "with_${ac_package}=no" ;;
720
721 --x)
722 # Obsolete; use --with-x.
723 with_x=yes ;;
724
725 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
726 | --x-incl | --x-inc | --x-in | --x-i)
727 ac_prev=x_includes ;;
728 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
729 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
730 x_includes="$ac_optarg" ;;
731
732 -x-libraries | --x-libraries | --x-librarie | --x-librari \
733 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
734 ac_prev=x_libraries ;;
735 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
736 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
737 x_libraries="$ac_optarg" ;;
738
739 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
740 ;;
741
742 *)
743 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
744 echo "configure: warning: $ac_option: invalid host type" 1>&2
745 fi
746 if test "x$nonopt" != xNONE; then
747 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
748 fi
749 nonopt="$ac_option"
750 ;;
751
752 esac
753done
754
755if test -n "$ac_prev"; then
756 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
757fi
758
759trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
760
761# File descriptor usage:
762# 0 standard input
763# 1 file creation
764# 2 errors and warnings
765# 3 some systems may open it to /dev/tty
766# 4 used on the Kubota Titan
767# 6 checking for... messages and results
768# 5 compiler messages saved in config.log
769if test "$silent" = yes; then
770 exec 6>/dev/null
771else
772 exec 6>&1
773fi
774exec 5>./config.log
775
776echo "\
777This file contains any messages produced by compilers while
778running configure, to aid debugging if configure makes a mistake.
779" 1>&5
780
781# Strip out --no-create and --no-recursion so they do not pile up.
782# Also quote any args containing shell metacharacters.
783ac_configure_args=
784for ac_arg
785do
786 case "$ac_arg" in
787 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
788 | --no-cr | --no-c) ;;
789 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
790 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
791 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
792 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
793 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
794 esac
795done
796
797# NLS nuisances.
798# Only set these to C if already set. These must not be set unconditionally
799# because not all systems understand e.g. LANG=C (notably SCO).
800# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
801# Non-C LC_CTYPE values break the ctype check.
802if test "${LANG+set}" = set; then LANG=C; export LANG; fi
803if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
804if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
805if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
806
807# confdefs.h avoids OS command line length limits that DEFS can exceed.
808rm -rf conftest* confdefs.h
809# AIX cpp loses on an empty file, so make sure it contains at least a newline.
810echo > confdefs.h
811
812# A filename unique to this package, relative to the directory that
813# configure is in, which we can look for to find out if srcdir is correct.
814ac_unique_file=wx-config.in
815
816# Find the source files, if location was not specified.
817if test -z "$srcdir"; then
818 ac_srcdir_defaulted=yes
819 # Try the directory containing this script, then its parent.
820 ac_prog=$0
821 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
822 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
823 srcdir=$ac_confdir
824 if test ! -r $srcdir/$ac_unique_file; then
825 srcdir=..
826 fi
827else
828 ac_srcdir_defaulted=no
829fi
830if test ! -r $srcdir/$ac_unique_file; then
831 if test "$ac_srcdir_defaulted" = yes; then
832 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
833 else
834 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
835 fi
836fi
837srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
838
839# Prefer explicitly selected file to automatically selected ones.
840if test -z "$CONFIG_SITE"; then
841 if test "x$prefix" != xNONE; then
842 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
843 else
844 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
845 fi
846fi
847for ac_site_file in $CONFIG_SITE; do
848 if test -r "$ac_site_file"; then
849 echo "loading site script $ac_site_file"
850 . "$ac_site_file"
851 fi
852done
853
854if test -r "$cache_file"; then
855 echo "loading cache $cache_file"
856 . $cache_file
857else
858 echo "creating cache $cache_file"
859 > $cache_file
860fi
861
862ac_ext=c
863# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
864ac_cpp='$CPP $CPPFLAGS'
865ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
866ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
867cross_compiling=$ac_cv_prog_cc_cross
868
869ac_exeext=
870ac_objext=o
871if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
872 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
873 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
874 ac_n= ac_c='
875' ac_t=' '
876 else
877 ac_n=-n ac_c= ac_t=
878 fi
879else
880 ac_n= ac_c='\c' ac_t=
881fi
882
883
884
885ac_aux_dir=
886for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
887 if test -f $ac_dir/install-sh; then
888 ac_aux_dir=$ac_dir
889 ac_install_sh="$ac_aux_dir/install-sh -c"
890 break
891 elif test -f $ac_dir/install.sh; then
892 ac_aux_dir=$ac_dir
893 ac_install_sh="$ac_aux_dir/install.sh -c"
894 break
895 fi
896done
897if test -z "$ac_aux_dir"; then
898 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
899fi
900ac_config_guess=$ac_aux_dir/config.guess
901ac_config_sub=$ac_aux_dir/config.sub
902ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
903
904
905# Do some error checking and defaulting for the host and target type.
906# The inputs are:
907# configure --host=HOST --target=TARGET --build=BUILD NONOPT
908#
909# The rules are:
910# 1. You are not allowed to specify --host, --target, and nonopt at the
911# same time.
912# 2. Host defaults to nonopt.
913# 3. If nonopt is not specified, then host defaults to the current host,
914# as determined by config.guess.
915# 4. Target and build default to nonopt.
916# 5. If nonopt is not specified, then target and build default to host.
917
918# The aliases save the names the user supplied, while $host etc.
919# will get canonicalized.
920case $host---$target---$nonopt in
921NONE---*---* | *---NONE---* | *---*---NONE) ;;
922*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
923esac
924
925
926# Make sure we can run config.sub.
927if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
928else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
929fi
930
931echo $ac_n "checking host system type""... $ac_c" 1>&6
932echo "configure:933: checking host system type" >&5
933
934host_alias=$host
935case "$host_alias" in
936NONE)
937 case $nonopt in
938 NONE)
939 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
940 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
941 fi ;;
942 *) host_alias=$nonopt ;;
943 esac ;;
944esac
945
946host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
947host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
948host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
949host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
950echo "$ac_t""$host" 1>&6
951
952echo $ac_n "checking target system type""... $ac_c" 1>&6
953echo "configure:954: checking target system type" >&5
954
955target_alias=$target
956case "$target_alias" in
957NONE)
958 case $nonopt in
959 NONE) target_alias=$host_alias ;;
960 *) target_alias=$nonopt ;;
961 esac ;;
962esac
963
964target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
965target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
966target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
967target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
968echo "$ac_t""$target" 1>&6
969
970echo $ac_n "checking build system type""... $ac_c" 1>&6
971echo "configure:972: checking build system type" >&5
972
973build_alias=$build
974case "$build_alias" in
975NONE)
976 case $nonopt in
977 NONE) build_alias=$host_alias ;;
978 *) build_alias=$nonopt ;;
979 esac ;;
980esac
981
982build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
983build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
984build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
985build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
986echo "$ac_t""$build" 1>&6
987
988test "$host_alias" != "$target_alias" &&
989 test "$program_prefix$program_suffix$program_transform_name" = \
990 NONENONEs,x,x, &&
991 program_prefix=${target_alias}-
992
993
994
995WX_MAJOR_VERSION_NUMBER=2
996WX_MINOR_VERSION_NUMBER=3
997WX_RELEASE_NUMBER=2
998
999WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1000WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1001
1002WX_CURRENT=1
1003WX_REVISION=0
1004WX_AGE=0
1005
1006
1007
1008USE_UNIX=1
1009USE_WIN32=0
1010USE_BEOS=0
1011USE_MAC=0
1012
1013USE_LINUX=
1014USE_SGI=
1015USE_HPUX=
1016USE_SYSV=
1017USE_SVR4=
1018USE_AIX=
1019USE_SUN=
1020USE_SOLARIS=
1021USE_SUNOS=
1022USE_ALPHA=
1023USE_OSF=
1024USE_BSD=
1025USE_FREEBSD=
1026USE_OPENBSD=
1027USE_NETBSD=
1028USE_VMS=
1029USE_ULTRIX=
1030USE_CYGWIN=
1031USE_MINGW=
1032USE_DATA_GENERAL=
1033
1034NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1035
1036ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
1037
1038DEFAULT_wxUSE_GTK=0
1039DEFAULT_wxUSE_MAC=0
1040DEFAULT_wxUSE_MGL=0
1041DEFAULT_wxUSE_MOTIF=0
1042DEFAULT_wxUSE_MSW=0
1043DEFAULT_wxUSE_PM=0
1044DEFAULT_wxUSE_WINE=0
1045
1046DEFAULT_DEFAULT_wxUSE_GTK=0
1047DEFAULT_DEFAULT_wxUSE_MAC=0
1048DEFAULT_DEFAULT_wxUSE_MGL=0
1049DEFAULT_DEFAULT_wxUSE_MOTIF=0
1050DEFAULT_DEFAULT_wxUSE_MSW=0
1051DEFAULT_DEFAULT_wxUSE_PM=0
1052DEFAULT_DEFAULT_wxUSE_WINE=0
1053
1054PROGRAM_EXT=
1055
1056case "${host}" in
1057 *-hp-hpux* )
1058 USE_HPUX=1
1059 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1060 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1061 cat >> confdefs.h <<\EOF
1062#define __HPUX__ 1
1063EOF
1064
1065 ;;
1066 *-*-linux* )
1067 USE_LINUX=1
1068 cat >> confdefs.h <<\EOF
1069#define __LINUX__ 1
1070EOF
1071
1072 TMP=`uname -m`
1073 if test "x$TMP" = "xalpha"; then
1074 USE_ALPHA=1
1075 cat >> confdefs.h <<\EOF
1076#define __ALPHA__ 1
1077EOF
1078
1079 fi
1080 DEFAULT_DEFAULT_wxUSE_GTK=1
1081 ;;
1082 *-*-irix5* | *-*-irix6* )
1083 USE_SGI=1
1084 USE_SVR4=1
1085 cat >> confdefs.h <<\EOF
1086#define __SGI__ 1
1087EOF
1088
1089 cat >> confdefs.h <<\EOF
1090#define __SVR4__ 1
1091EOF
1092
1093 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1094 ;;
1095 *-*-solaris2* )
1096 USE_SUN=1
1097 USE_SOLARIS=1
1098 USE_SVR4=1
1099 cat >> confdefs.h <<\EOF
1100#define __SUN__ 1
1101EOF
1102
1103 cat >> confdefs.h <<\EOF
1104#define __SOLARIS__ 1
1105EOF
1106
1107 cat >> confdefs.h <<\EOF
1108#define __SVR4__ 1
1109EOF
1110
1111 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1112 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1113 ;;
1114 *-*-sunos4* )
1115 USE_SUN=1
1116 USE_SUNOS=1
1117 USE_BSD=1
1118 cat >> confdefs.h <<\EOF
1119#define __SUN__ 1
1120EOF
1121
1122 cat >> confdefs.h <<\EOF
1123#define __SUNOS__ 1
1124EOF
1125
1126 cat >> confdefs.h <<\EOF
1127#define __BSD__ 1
1128EOF
1129
1130 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1131 ;;
1132 *-*-freebsd*)
1133 USE_BSD=1
1134 USE_FREEBSD=1
1135 cat >> confdefs.h <<\EOF
1136#define __FREEBSD__ 1
1137EOF
1138
1139 cat >> confdefs.h <<\EOF
1140#define __BSD__ 1
1141EOF
1142
1143 DEFAULT_DEFAULT_wxUSE_GTK=1
1144 ;;
1145 *-*-openbsd*)
1146 USE_BSD=1
1147 USE_OPENBSD=1
1148 cat >> confdefs.h <<\EOF
1149#define __FREEBSD__ 1
1150EOF
1151
1152 cat >> confdefs.h <<\EOF
1153#define __OPENBSD__ 1
1154EOF
1155
1156 DEFAULT_DEFAULT_wxUSE_GTK=1
1157 ;;
1158 *-*-netbsd*)
1159 USE_BSD=1
1160 USE_NETBSD=1
1161 cat >> confdefs.h <<\EOF
1162#define __FREEBSD__ 1
1163EOF
1164
1165 cat >> confdefs.h <<\EOF
1166#define __NETBSD__ 1
1167EOF
1168
1169 DEFAULT_DEFAULT_wxUSE_GTK=1
1170 ;;
1171 *-*-osf* )
1172 USE_ALPHA=1
1173 USE_OSF=1
1174 cat >> confdefs.h <<\EOF
1175#define __ALPHA__ 1
1176EOF
1177
1178 cat >> confdefs.h <<\EOF
1179#define __OSF__ 1
1180EOF
1181
1182 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1183 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1184 ;;
1185 *-*-dgux5* )
1186 USE_ALPHA=1
1187 USE_SVR4=1
1188 cat >> confdefs.h <<\EOF
1189#define __ALPHA__ 1
1190EOF
1191
1192 cat >> confdefs.h <<\EOF
1193#define __SVR4__ 1
1194EOF
1195
1196 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1197 ;;
1198 *-*-sysv5* )
1199 USE_SYSV=1
1200 USE_SVR4=1
1201 cat >> confdefs.h <<\EOF
1202#define __SYSV__ 1
1203EOF
1204
1205 cat >> confdefs.h <<\EOF
1206#define __SVR4__ 1
1207EOF
1208
1209 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1210 ;;
1211 *-*-aix* )
1212 USE_AIX=1
1213 USE_SYSV=1
1214 USE_SVR4=1
1215 cat >> confdefs.h <<\EOF
1216#define __AIX__ 1
1217EOF
1218
1219 cat >> confdefs.h <<\EOF
1220#define __SYSV__ 1
1221EOF
1222
1223 cat >> confdefs.h <<\EOF
1224#define __SVR4__ 1
1225EOF
1226
1227 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1228 ;;
1229
1230 *-*-cygwin* | *-*-mingw32* )
1231 USE_UNIX=0
1232 USE_WIN32=1
1233 cat >> confdefs.h <<\EOF
1234#define __WIN32__ 1
1235EOF
1236
1237 cat >> confdefs.h <<\EOF
1238#define __WIN95__ 1
1239EOF
1240
1241 cat >> confdefs.h <<\EOF
1242#define __WINDOWS__ 1
1243EOF
1244
1245 cat >> confdefs.h <<\EOF
1246#define __GNUWIN32__ 1
1247EOF
1248
1249 cat >> confdefs.h <<\EOF
1250#define STRICT 1
1251EOF
1252
1253 cat >> confdefs.h <<\EOF
1254#define WINVER 0x0400
1255EOF
1256
1257 PROGRAM_EXT=".exe"
1258 DEFAULT_DEFAULT_wxUSE_MSW=1
1259 ;;
1260
1261 *-pc-os2_emx )
1262 cat >> confdefs.h <<\EOF
1263#define __EMX__ 1
1264EOF
1265
1266 PROGRAM_EXT=".exe"
1267 DEFAULT_DEFAULT_wxUSE_PM=1
1268 ;;
1269
1270 *-*-darwin* )
1271 USE_BSD=1
1272 USE_MAC=1
1273 cat >> confdefs.h <<\EOF
1274#define __MAC__ 1
1275EOF
1276
1277 cat >> confdefs.h <<\EOF
1278#define __BSD__ 1
1279EOF
1280
1281 cat >> confdefs.h <<\EOF
1282#define __UNIX__ 1
1283EOF
1284
1285 DEFAULT_DEFAULT_wxUSE_MAC=1
1286 ;;
1287
1288 *-*-beos* )
1289 USE_BEOS=1
1290 cat >> confdefs.h <<\EOF
1291#define __BEOS__ 1
1292EOF
1293
1294 ;;
1295
1296 *)
1297 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1298esac
1299
1300if test "$USE_UNIX" = 1 ; then
1301 wxUSE_UNIX=yes
1302 cat >> confdefs.h <<\EOF
1303#define __UNIX__ 1
1304EOF
1305
1306
1307 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1308 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1309fi
1310
1311if test "$USE_BEOS" = 1; then
1312 SRC_SUBDIRS="$SRC_SUBDIRS be"
1313 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
1314fi
1315
1316if test "$USE_LINUX" = 1; then
1317 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1318echo "configure:1319: checking for gettext in -lc" >&5
1319ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1320if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1321 echo $ac_n "(cached) $ac_c" 1>&6
1322else
1323 ac_save_LIBS="$LIBS"
1324LIBS="-lc $LIBS"
1325cat > conftest.$ac_ext <<EOF
1326#line 1327 "configure"
1327#include "confdefs.h"
1328/* Override any gcc2 internal prototype to avoid an error. */
1329/* We use char because int might match the return type of a gcc2
1330 builtin and then its argument prototype would still apply. */
1331char gettext();
1332
1333int main() {
1334gettext()
1335; return 0; }
1336EOF
1337if { (eval echo configure:1338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1338 rm -rf conftest*
1339 eval "ac_cv_lib_$ac_lib_var=yes"
1340else
1341 echo "configure: failed program was:" >&5
1342 cat conftest.$ac_ext >&5
1343 rm -rf conftest*
1344 eval "ac_cv_lib_$ac_lib_var=no"
1345fi
1346rm -f conftest*
1347LIBS="$ac_save_LIBS"
1348
1349fi
1350if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1351 echo "$ac_t""yes" 1>&6
1352 cat >> confdefs.h <<\EOF
1353#define wxHAVE_GLIBC2 1
1354EOF
1355
1356else
1357 echo "$ac_t""no" 1>&6
1358fi
1359
1360fi
1361
1362
1363
1364
1365 wx_arg_cache_file="configarg.cache"
1366 echo "loading argument cache $wx_arg_cache_file"
1367 rm -f ${wx_arg_cache_file}.tmp
1368 touch ${wx_arg_cache_file}.tmp
1369 touch ${wx_arg_cache_file}
1370
1371
1372DEBUG_CONFIGURE=0
1373if test $DEBUG_CONFIGURE = 1; then
1374 DEFAULT_wxUSE_UNIVERSAL=no
1375
1376 DEFAULT_wxUSE_THREADS=yes
1377
1378 DEFAULT_wxUSE_SHARED=yes
1379 DEFAULT_wxUSE_BURNT_NAME=no
1380 DEFAULT_wxUSE_OPTIMISE=no
1381 DEFAULT_wxUSE_PROFILE=no
1382 DEFAULT_wxUSE_NO_DEPS=no
1383 DEFAULT_wxUSE_NO_RTTI=no
1384 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1385 DEFAULT_wxUSE_PERMISSIVE=no
1386 DEFAULT_wxUSE_DEBUG_FLAG=yes
1387 DEFAULT_wxUSE_DEBUG_INFO=yes
1388 DEFAULT_wxUSE_DEBUG_GDB=yes
1389 DEFAULT_wxUSE_MEM_TRACING=no
1390 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1391 DEFAULT_wxUSE_DMALLOC=no
1392 DEFAULT_wxUSE_APPLE_IEEE=no
1393
1394 DEFAULT_wxUSE_LOG=yes
1395 DEFAULT_wxUSE_LOGWINDOW=no
1396 DEFAULT_wxUSE_LOGGUI=no
1397
1398 DEFAULT_wxUSE_GUI=yes
1399 DEFAULT_wxUSE_CONTROLS=no
1400
1401 DEFAULT_wxUSE_REGEX=no
1402 DEFAULT_wxUSE_ZLIB=no
1403 DEFAULT_wxUSE_LIBPNG=no
1404 DEFAULT_wxUSE_LIBJPEG=no
1405 DEFAULT_wxUSE_LIBTIFF=no
1406 DEFAULT_wxUSE_ODBC=no
1407 DEFAULT_wxUSE_FREETYPE=no
1408 DEFAULT_wxUSE_OPENGL=no
1409
1410 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1411 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1412 DEFAULT_wxUSE_STD_IOSTREAM=no
1413 DEFAULT_wxUSE_CMDLINE_PARSER=no
1414 DEFAULT_wxUSE_DATETIME=no
1415 DEFAULT_wxUSE_TIMEDATE=no
1416 DEFAULT_wxUSE_TIMER=no
1417 DEFAULT_wxUSE_STOPWATCH=no
1418 DEFAULT_wxUSE_FILE=no
1419 DEFAULT_wxUSE_FFILE=no
1420 DEFAULT_wxUSE_TEXTFILE=no
1421 DEFAULT_wxUSE_WAVE=no
1422 DEFAULT_wxUSE_INTL=no
1423 DEFAULT_wxUSE_CONFIG=no
1424 DEFAULT_wxUSE_FONTMAP=no
1425 DEFAULT_wxUSE_STREAMS=no
1426 DEFAULT_wxUSE_SOCKETS=no
1427 DEFAULT_wxUSE_DIALUP_MANAGER=no
1428 DEFAULT_wxUSE_SERIAL=no
1429 DEFAULT_wxUSE_JOYSTICK=no
1430 DEFAULT_wxUSE_DYNLIB_CLASS=no
1431 DEFAULT_wxUSE_LONGLONG=no
1432 DEFAULT_wxUSE_GEOMETRY=no
1433
1434 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1435 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1436 DEFAULT_wxUSE_POSTSCRIPT=no
1437
1438 DEFAULT_wxUSE_X_RESOURCES=no
1439 DEFAULT_wxUSE_CLIPBOARD=no
1440 DEFAULT_wxUSE_TOOLTIPS=no
1441 DEFAULT_wxUSE_DRAG_AND_DROP=no
1442 DEFAULT_wxUSE_DRAGIMAGE=no
1443 DEFAULT_wxUSE_SPLINES=no
1444
1445 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1446 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1447 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1448
1449 DEFAULT_wxUSE_PROLOGIO=no
1450 DEFAULT_wxUSE_RESOURCES=no
1451 DEFAULT_wxUSE_CONSTRAINTS=no
1452 DEFAULT_wxUSE_IPC=no
1453 DEFAULT_wxUSE_HELP=no
1454 DEFAULT_wxUSE_MS_HTML_HELP=no
1455
1456 DEFAULT_wxUSE_WXHTML_HELP=no
1457 DEFAULT_wxUSE_WXTREE=no
1458 DEFAULT_wxUSE_METAFILE=no
1459 DEFAULT_wxUSE_MIMETYPE=no
1460 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1461
1462 DEFAULT_wxUSE_COMMONDLGS=no
1463 DEFAULT_wxUSE_CHOICEDLG=no
1464 DEFAULT_wxUSE_COLOURDLG=no
1465 DEFAULT_wxUSE_DIRDLG=no
1466 DEFAULT_wxUSE_FILEDLG=no
1467 DEFAULT_wxUSE_FONTDLG=no
1468 DEFAULT_wxUSE_MSGDLG=no
1469 DEFAULT_wxUSE_NUMBERDLG=no
1470 DEFAULT_wxUSE_TEXTDLG=no
1471 DEFAULT_wxUSE_STARTUP_TIPS=no
1472 DEFAULT_wxUSE_PROGRESSDLG=no
1473 DEFAULT_wxUSE_WIZARDDLG=no
1474
1475 DEFAULT_wxUSE_MENUS=no
1476 DEFAULT_wxUSE_MINIFRAME=no
1477 DEFAULT_wxUSE_HTML=no
1478 DEFAULT_wxUSE_FILESYSTEM=no
1479 DEFAULT_wxUSE_FS_INET=no
1480 DEFAULT_wxUSE_FS_ZIP=no
1481 DEFAULT_wxUSE_BUSYINFO=no
1482 DEFAULT_wxUSE_ZIPSTREAM=no
1483 DEFAULT_wxUSE_VALIDATORS=no
1484
1485 DEFAULT_wxUSE_ACCEL=no
1486 DEFAULT_wxUSE_BUTTON=no
1487 DEFAULT_wxUSE_BMPBUTTON=no
1488 DEFAULT_wxUSE_CALCTRL=no
1489 DEFAULT_wxUSE_CARET=no
1490 DEFAULT_wxUSE_CHECKBOX=no
1491 DEFAULT_wxUSE_CHECKLST=no
1492 DEFAULT_wxUSE_CHOICE=no
1493 DEFAULT_wxUSE_COMBOBOX=no
1494 DEFAULT_wxUSE_GAUGE=no
1495 DEFAULT_wxUSE_GRID=no
1496 DEFAULT_wxUSE_NEW_GRID=no
1497 DEFAULT_wxUSE_IMAGLIST=no
1498 DEFAULT_wxUSE_LISTBOX=no
1499 DEFAULT_wxUSE_LISTCTRL=no
1500 DEFAULT_wxUSE_NOTEBOOK=no
1501 DEFAULT_wxUSE_RADIOBOX=no
1502 DEFAULT_wxUSE_RADIOBTN=no
1503 DEFAULT_wxUSE_SASH=no
1504 DEFAULT_wxUSE_SCROLLBAR=no
1505 DEFAULT_wxUSE_SLIDER=no
1506 DEFAULT_wxUSE_SPINBTN=no
1507 DEFAULT_wxUSE_SPINCTRL=no
1508 DEFAULT_wxUSE_SPLITTER=no
1509 DEFAULT_wxUSE_STATBMP=no
1510 DEFAULT_wxUSE_STATBOX=no
1511 DEFAULT_wxUSE_STATLINE=no
1512 DEFAULT_wxUSE_STATTEXT=no
1513 DEFAULT_wxUSE_STATUSBAR=yes
1514 DEFAULT_wxUSE_TABDIALOG=no
1515 DEFAULT_wxUSE_TEXTCTRL=no
1516 DEFAULT_wxUSE_TOGGLEBTN=no
1517 DEFAULT_wxUSE_TOOLBAR=no
1518 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1519 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1520 DEFAULT_wxUSE_TREECTRL=no
1521 DEFAULT_wxUSE_POPUPWIN=no
1522
1523 DEFAULT_wxUSE_UNICODE=no
1524 DEFAULT_wxUSE_WCSRTOMBS=no
1525
1526 DEFAULT_wxUSE_IMAGE=no
1527 DEFAULT_wxUSE_GIF=no
1528 DEFAULT_wxUSE_PCX=no
1529 DEFAULT_wxUSE_PNM=no
1530 DEFAULT_wxUSE_XPM=no
1531else
1532 DEFAULT_wxUSE_UNIVERSAL=no
1533
1534 DEFAULT_wxUSE_THREADS=yes
1535
1536 DEFAULT_wxUSE_SHARED=yes
1537 DEFAULT_wxUSE_BURNT_NAME=no
1538 DEFAULT_wxUSE_OPTIMISE=yes
1539 DEFAULT_wxUSE_PROFILE=no
1540 DEFAULT_wxUSE_NO_DEPS=no
1541 DEFAULT_wxUSE_NO_RTTI=no
1542 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1543 DEFAULT_wxUSE_PERMISSIVE=no
1544 DEFAULT_wxUSE_DEBUG_FLAG=no
1545 DEFAULT_wxUSE_DEBUG_INFO=no
1546 DEFAULT_wxUSE_DEBUG_GDB=no
1547 DEFAULT_wxUSE_MEM_TRACING=no
1548 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1549 DEFAULT_wxUSE_DMALLOC=no
1550 DEFAULT_wxUSE_APPLE_IEEE=yes
1551
1552 DEFAULT_wxUSE_LOG=yes
1553 DEFAULT_wxUSE_LOGWINDOW=yes
1554 DEFAULT_wxUSE_LOGGUI=yes
1555
1556 DEFAULT_wxUSE_GUI=yes
1557
1558 DEFAULT_wxUSE_REGEX=sys
1559 DEFAULT_wxUSE_ZLIB=yes
1560 DEFAULT_wxUSE_LIBPNG=yes
1561 DEFAULT_wxUSE_LIBJPEG=yes
1562 DEFAULT_wxUSE_LIBTIFF=yes
1563 DEFAULT_wxUSE_ODBC=no
1564 DEFAULT_wxUSE_FREETYPE=no
1565 DEFAULT_wxUSE_OPENGL=no
1566
1567 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1568 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1569 DEFAULT_wxUSE_STD_IOSTREAM=no
1570 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1571 DEFAULT_wxUSE_DATETIME=yes
1572 DEFAULT_wxUSE_TIMEDATE=no
1573 DEFAULT_wxUSE_TIMER=yes
1574 DEFAULT_wxUSE_STOPWATCH=yes
1575 DEFAULT_wxUSE_FILE=yes
1576 DEFAULT_wxUSE_FFILE=yes
1577 DEFAULT_wxUSE_TEXTFILE=yes
1578 DEFAULT_wxUSE_WAVE=no
1579 DEFAULT_wxUSE_INTL=yes
1580 DEFAULT_wxUSE_CONFIG=yes
1581 DEFAULT_wxUSE_FONTMAP=yes
1582 DEFAULT_wxUSE_STREAMS=yes
1583 DEFAULT_wxUSE_SOCKETS=yes
1584 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1585 DEFAULT_wxUSE_SERIAL=yes
1586 DEFAULT_wxUSE_JOYSTICK=yes
1587 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1588 DEFAULT_wxUSE_LONGLONG=yes
1589 DEFAULT_wxUSE_GEOMETRY=yes
1590
1591 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1592 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1593 DEFAULT_wxUSE_POSTSCRIPT=yes
1594
1595 DEFAULT_wxUSE_X_RESOURCES=no
1596 DEFAULT_wxUSE_CLIPBOARD=yes
1597 DEFAULT_wxUSE_TOOLTIPS=yes
1598 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1599 DEFAULT_wxUSE_DRAGIMAGE=yes
1600 DEFAULT_wxUSE_SPLINES=yes
1601
1602 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1603 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1604 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1605
1606 DEFAULT_wxUSE_PROLOGIO=yes
1607 DEFAULT_wxUSE_RESOURCES=yes
1608 DEFAULT_wxUSE_CONSTRAINTS=yes
1609 DEFAULT_wxUSE_IPC=yes
1610 DEFAULT_wxUSE_HELP=yes
1611 DEFAULT_wxUSE_MS_HTML_HELP=yes
1612 DEFAULT_wxUSE_WXHTML_HELP=yes
1613 DEFAULT_wxUSE_WXTREE=yes
1614 DEFAULT_wxUSE_METAFILE=yes
1615 DEFAULT_wxUSE_MIMETYPE=yes
1616 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1617
1618 DEFAULT_wxUSE_COMMONDLGS=yes
1619 DEFAULT_wxUSE_CHOICEDLG=yes
1620 DEFAULT_wxUSE_COLOURDLG=yes
1621 DEFAULT_wxUSE_DIRDLG=yes
1622 DEFAULT_wxUSE_FILEDLG=yes
1623 DEFAULT_wxUSE_FONTDLG=yes
1624 DEFAULT_wxUSE_MSGDLG=yes
1625 DEFAULT_wxUSE_NUMBERDLG=yes
1626 DEFAULT_wxUSE_TEXTDLG=yes
1627 DEFAULT_wxUSE_STARTUP_TIPS=yes
1628 DEFAULT_wxUSE_PROGRESSDLG=yes
1629 DEFAULT_wxUSE_WIZARDDLG=yes
1630
1631 DEFAULT_wxUSE_MENUS=yes
1632 DEFAULT_wxUSE_MINIFRAME=yes
1633 DEFAULT_wxUSE_HTML=yes
1634 DEFAULT_wxUSE_FILESYSTEM=yes
1635 DEFAULT_wxUSE_FS_INET=yes
1636 DEFAULT_wxUSE_FS_ZIP=yes
1637 DEFAULT_wxUSE_BUSYINFO=yes
1638 DEFAULT_wxUSE_ZIPSTREAM=yes
1639 DEFAULT_wxUSE_VALIDATORS=yes
1640
1641 DEFAULT_wxUSE_ACCEL=yes
1642 DEFAULT_wxUSE_BUTTON=yes
1643 DEFAULT_wxUSE_BMPBUTTON=yes
1644 DEFAULT_wxUSE_CALCTRL=yes
1645 DEFAULT_wxUSE_CARET=yes
1646 DEFAULT_wxUSE_CHECKBOX=yes
1647 DEFAULT_wxUSE_CHECKLST=yes
1648 DEFAULT_wxUSE_CHOICE=yes
1649 DEFAULT_wxUSE_COMBOBOX=yes
1650 DEFAULT_wxUSE_GAUGE=yes
1651 DEFAULT_wxUSE_GRID=yes
1652 DEFAULT_wxUSE_NEW_GRID=yes
1653 DEFAULT_wxUSE_IMAGLIST=yes
1654 DEFAULT_wxUSE_LISTBOX=yes
1655 DEFAULT_wxUSE_LISTCTRL=yes
1656 DEFAULT_wxUSE_NOTEBOOK=yes
1657 DEFAULT_wxUSE_RADIOBOX=yes
1658 DEFAULT_wxUSE_RADIOBTN=yes
1659 DEFAULT_wxUSE_SASH=yes
1660 DEFAULT_wxUSE_SCROLLBAR=yes
1661 DEFAULT_wxUSE_SLIDER=yes
1662 DEFAULT_wxUSE_SPINBTN=yes
1663 DEFAULT_wxUSE_SPINCTRL=yes
1664 DEFAULT_wxUSE_SPLITTER=yes
1665 DEFAULT_wxUSE_STATBMP=yes
1666 DEFAULT_wxUSE_STATBOX=yes
1667 DEFAULT_wxUSE_STATLINE=yes
1668 DEFAULT_wxUSE_STATTEXT=yes
1669 DEFAULT_wxUSE_STATUSBAR=yes
1670 DEFAULT_wxUSE_TABDIALOG=no
1671 DEFAULT_wxUSE_TEXTCTRL=yes
1672 DEFAULT_wxUSE_TOGGLEBTN=yes
1673 DEFAULT_wxUSE_TOOLBAR=yes
1674 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1675 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1676 DEFAULT_wxUSE_TREECTRL=yes
1677 DEFAULT_wxUSE_POPUPWIN=yes
1678
1679 DEFAULT_wxUSE_UNICODE=no
1680 DEFAULT_wxUSE_WCSRTOMBS=no
1681
1682 DEFAULT_wxUSE_IMAGE=yes
1683 DEFAULT_wxUSE_GIF=yes
1684 DEFAULT_wxUSE_PCX=yes
1685 DEFAULT_wxUSE_PNM=yes
1686 DEFAULT_wxUSE_XPM=yes
1687fi
1688
1689
1690
1691for toolkit in `echo $ALL_TOOLKITS`; do
1692 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1693 if test "x$LINE" != x ; then
1694 has_toolkit_in_cache=1
1695 eval "DEFAULT_$LINE"
1696 eval "CACHE_$toolkit=1"
1697 fi
1698done
1699
1700
1701
1702 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1703echo "configure:1704: checking for --enable-gui" >&5
1704 no_cache=0
1705 # Check whether --enable-gui or --disable-gui was given.
1706if test "${enable_gui+set}" = set; then
1707 enableval="$enable_gui"
1708
1709 if test "$enableval" = yes; then
1710 ac_cv_use_gui='wxUSE_GUI=yes'
1711 else
1712 ac_cv_use_gui='wxUSE_GUI=no'
1713 fi
1714
1715else
1716
1717 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1718 if test "x$LINE" != x ; then
1719 eval "DEFAULT_$LINE"
1720 else
1721 no_cache=1
1722 fi
1723
1724 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1725
1726fi
1727
1728
1729 eval "$ac_cv_use_gui"
1730 if test "$no_cache" != 1; then
1731 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1732 fi
1733
1734 if test "$wxUSE_GUI" = yes; then
1735 echo "$ac_t""yes" 1>&6
1736 else
1737 echo "$ac_t""no" 1>&6
1738 fi
1739
1740
1741if test "$wxUSE_GUI" = "yes"; then
1742
1743
1744 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1745echo "configure:1746: checking for --enable-universal" >&5
1746 no_cache=0
1747 # Check whether --enable-universal or --disable-universal was given.
1748if test "${enable_universal+set}" = set; then
1749 enableval="$enable_universal"
1750
1751 if test "$enableval" = yes; then
1752 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1753 else
1754 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1755 fi
1756
1757else
1758
1759 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1760 if test "x$LINE" != x ; then
1761 eval "DEFAULT_$LINE"
1762 else
1763 no_cache=1
1764 fi
1765
1766 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1767
1768fi
1769
1770
1771 eval "$ac_cv_use_universal"
1772 if test "$no_cache" != 1; then
1773 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1774 fi
1775
1776 if test "$wxUSE_UNIVERSAL" = yes; then
1777 echo "$ac_t""yes" 1>&6
1778 else
1779 echo "$ac_t""no" 1>&6
1780 fi
1781
1782# Check whether --with-gtk or --without-gtk was given.
1783if test "${with_gtk+set}" = set; then
1784 withval="$with_gtk"
1785 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1786fi
1787
1788# Check whether --with-motif or --without-motif was given.
1789if test "${with_motif+set}" = set; then
1790 withval="$with_motif"
1791 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1792fi
1793
1794# Check whether --with-mac or --without-mac was given.
1795if test "${with_mac+set}" = set; then
1796 withval="$with_mac"
1797 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1798fi
1799
1800# Check whether --with-wine or --without-wine was given.
1801if test "${with_wine+set}" = set; then
1802 withval="$with_wine"
1803 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1804fi
1805
1806# Check whether --with-cygwin or --without-cygwin was given.
1807if test "${with_cygwin+set}" = set; then
1808 withval="$with_cygwin"
1809 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1810fi
1811
1812# Check whether --with-mingw or --without-mingw was given.
1813if test "${with_mingw+set}" = set; then
1814 withval="$with_mingw"
1815 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1816fi
1817
1818# Check whether --with-pm or --without-pm was given.
1819if test "${with_pm+set}" = set; then
1820 withval="$with_pm"
1821 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1822fi
1823
1824# Check whether --with-mgl or --without-mgl was given.
1825if test "${with_mgl+set}" = set; then
1826 withval="$with_mgl"
1827 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1828fi
1829
1830
1831# Check whether --enable-gtk2 or --disable-gtk2 was given.
1832if test "${enable_gtk2+set}" = set; then
1833 enableval="$enable_gtk2"
1834 wxUSE_GTK2=1
1835else
1836 wxUSE_GTK2=0
1837fi
1838
1839
1840
1841 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1842echo "configure:1843: checking for --with-libpng" >&5
1843 no_cache=0
1844 # Check whether --with-libpng or --without-libpng was given.
1845if test "${with_libpng+set}" = set; then
1846 withval="$with_libpng"
1847
1848 if test "$withval" = yes; then
1849 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1850 elif test "$withval" = no; then
1851 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1852 elif test "$withval" = sys; then
1853 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1854 else
1855 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1856 fi
1857
1858else
1859
1860 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1861 if test "x$LINE" != x ; then
1862 eval "DEFAULT_$LINE"
1863 else
1864 no_cache=1
1865 fi
1866
1867 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1868
1869fi
1870
1871
1872 eval "$ac_cv_use_libpng"
1873 if test "$no_cache" != 1; then
1874 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1875 fi
1876
1877 if test "$wxUSE_LIBPNG" = yes; then
1878 echo "$ac_t""yes" 1>&6
1879 elif test "$wxUSE_LIBPNG" = no; then
1880 echo "$ac_t""no" 1>&6
1881 elif test "$wxUSE_LIBPNG" = sys; then
1882 echo "$ac_t""system version" 1>&6
1883 else
1884 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1885 fi
1886
1887
1888 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1889echo "configure:1890: checking for --with-libjpeg" >&5
1890 no_cache=0
1891 # Check whether --with-libjpeg or --without-libjpeg was given.
1892if test "${with_libjpeg+set}" = set; then
1893 withval="$with_libjpeg"
1894
1895 if test "$withval" = yes; then
1896 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1897 elif test "$withval" = no; then
1898 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1899 elif test "$withval" = sys; then
1900 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1901 else
1902 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1903 fi
1904
1905else
1906
1907 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1908 if test "x$LINE" != x ; then
1909 eval "DEFAULT_$LINE"
1910 else
1911 no_cache=1
1912 fi
1913
1914 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1915
1916fi
1917
1918
1919 eval "$ac_cv_use_libjpeg"
1920 if test "$no_cache" != 1; then
1921 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1922 fi
1923
1924 if test "$wxUSE_LIBJPEG" = yes; then
1925 echo "$ac_t""yes" 1>&6
1926 elif test "$wxUSE_LIBJPEG" = no; then
1927 echo "$ac_t""no" 1>&6
1928 elif test "$wxUSE_LIBJPEG" = sys; then
1929 echo "$ac_t""system version" 1>&6
1930 else
1931 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1932 fi
1933
1934
1935 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
1936echo "configure:1937: checking for --with-libtiff" >&5
1937 no_cache=0
1938 # Check whether --with-libtiff or --without-libtiff was given.
1939if test "${with_libtiff+set}" = set; then
1940 withval="$with_libtiff"
1941
1942 if test "$withval" = yes; then
1943 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1944 elif test "$withval" = no; then
1945 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1946 elif test "$withval" = sys; then
1947 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1948 else
1949 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1950 fi
1951
1952else
1953
1954 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1955 if test "x$LINE" != x ; then
1956 eval "DEFAULT_$LINE"
1957 else
1958 no_cache=1
1959 fi
1960
1961 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1962
1963fi
1964
1965
1966 eval "$ac_cv_use_libtiff"
1967 if test "$no_cache" != 1; then
1968 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1969 fi
1970
1971 if test "$wxUSE_LIBTIFF" = yes; then
1972 echo "$ac_t""yes" 1>&6
1973 elif test "$wxUSE_LIBTIFF" = no; then
1974 echo "$ac_t""no" 1>&6
1975 elif test "$wxUSE_LIBTIFF" = sys; then
1976 echo "$ac_t""system version" 1>&6
1977 else
1978 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1979 fi
1980
1981
1982 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
1983echo "configure:1984: checking for --with-freetype" >&5
1984 no_cache=0
1985 # Check whether --with-freetype or --without-freetype was given.
1986if test "${with_freetype+set}" = set; then
1987 withval="$with_freetype"
1988
1989 if test "$withval" = yes; then
1990 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1991 elif test "$withval" = no; then
1992 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1993 elif test "$withval" = sys; then
1994 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1995 else
1996 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1997 fi
1998
1999else
2000
2001 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2002 if test "x$LINE" != x ; then
2003 eval "DEFAULT_$LINE"
2004 else
2005 no_cache=1
2006 fi
2007
2008 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
2009
2010fi
2011
2012
2013 eval "$ac_cv_use_freetype"
2014 if test "$no_cache" != 1; then
2015 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2016 fi
2017
2018 if test "$wxUSE_FREETYPE" = yes; then
2019 echo "$ac_t""yes" 1>&6
2020 elif test "$wxUSE_FREETYPE" = no; then
2021 echo "$ac_t""no" 1>&6
2022 elif test "$wxUSE_FREETYPE" = sys; then
2023 echo "$ac_t""system version" 1>&6
2024 else
2025 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
2026 fi
2027
2028
2029 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2030echo "configure:2031: checking for --with-opengl" >&5
2031 no_cache=0
2032 # Check whether --with-opengl or --without-opengl was given.
2033if test "${with_opengl+set}" = set; then
2034 withval="$with_opengl"
2035
2036 if test "$withval" = yes; then
2037 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2038 else
2039 ac_cv_use_opengl='wxUSE_OPENGL=no'
2040 fi
2041
2042else
2043
2044 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2045 if test "x$LINE" != x ; then
2046 eval "DEFAULT_$LINE"
2047 else
2048 no_cache=1
2049 fi
2050
2051 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2052
2053fi
2054
2055
2056 eval "$ac_cv_use_opengl"
2057 if test "$no_cache" != 1; then
2058 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2059 fi
2060
2061 if test "$wxUSE_OPENGL" = yes; then
2062 echo "$ac_t""yes" 1>&6
2063 else
2064 echo "$ac_t""no" 1>&6
2065 fi
2066
2067
2068fi
2069
2070
2071 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2072echo "configure:2073: checking for --with-dmalloc" >&5
2073 no_cache=0
2074 # Check whether --with-dmalloc or --without-dmalloc was given.
2075if test "${with_dmalloc+set}" = set; then
2076 withval="$with_dmalloc"
2077
2078 if test "$withval" = yes; then
2079 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2080 else
2081 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2082 fi
2083
2084else
2085
2086 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2087 if test "x$LINE" != x ; then
2088 eval "DEFAULT_$LINE"
2089 else
2090 no_cache=1
2091 fi
2092
2093 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2094
2095fi
2096
2097
2098 eval "$ac_cv_use_dmalloc"
2099 if test "$no_cache" != 1; then
2100 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2101 fi
2102
2103 if test "$wxUSE_DMALLOC" = yes; then
2104 echo "$ac_t""yes" 1>&6
2105 else
2106 echo "$ac_t""no" 1>&6
2107 fi
2108
2109
2110 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2111echo "configure:2112: checking for --with-regex" >&5
2112 no_cache=0
2113 # Check whether --with-regex or --without-regex was given.
2114if test "${with_regex+set}" = set; then
2115 withval="$with_regex"
2116
2117 if test "$withval" = yes; then
2118 ac_cv_use_regex='wxUSE_REGEX=yes'
2119 elif test "$withval" = no; then
2120 ac_cv_use_regex='wxUSE_REGEX=no'
2121 elif test "$withval" = sys; then
2122 ac_cv_use_regex='wxUSE_REGEX=sys'
2123 else
2124 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2125 fi
2126
2127else
2128
2129 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2130 if test "x$LINE" != x ; then
2131 eval "DEFAULT_$LINE"
2132 else
2133 no_cache=1
2134 fi
2135
2136 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2137
2138fi
2139
2140
2141 eval "$ac_cv_use_regex"
2142 if test "$no_cache" != 1; then
2143 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2144 fi
2145
2146 if test "$wxUSE_REGEX" = yes; then
2147 echo "$ac_t""yes" 1>&6
2148 elif test "$wxUSE_REGEX" = no; then
2149 echo "$ac_t""no" 1>&6
2150 elif test "$wxUSE_REGEX" = sys; then
2151 echo "$ac_t""system version" 1>&6
2152 else
2153 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2154 fi
2155
2156
2157 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2158echo "configure:2159: checking for --with-zlib" >&5
2159 no_cache=0
2160 # Check whether --with-zlib or --without-zlib was given.
2161if test "${with_zlib+set}" = set; then
2162 withval="$with_zlib"
2163
2164 if test "$withval" = yes; then
2165 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2166 elif test "$withval" = no; then
2167 ac_cv_use_zlib='wxUSE_ZLIB=no'
2168 elif test "$withval" = sys; then
2169 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2170 else
2171 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2172 fi
2173
2174else
2175
2176 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2177 if test "x$LINE" != x ; then
2178 eval "DEFAULT_$LINE"
2179 else
2180 no_cache=1
2181 fi
2182
2183 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2184
2185fi
2186
2187
2188 eval "$ac_cv_use_zlib"
2189 if test "$no_cache" != 1; then
2190 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2191 fi
2192
2193 if test "$wxUSE_ZLIB" = yes; then
2194 echo "$ac_t""yes" 1>&6
2195 elif test "$wxUSE_ZLIB" = no; then
2196 echo "$ac_t""no" 1>&6
2197 elif test "$wxUSE_ZLIB" = sys; then
2198 echo "$ac_t""system version" 1>&6
2199 else
2200 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2201 fi
2202
2203
2204 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2205echo "configure:2206: checking for --with-odbc" >&5
2206 no_cache=0
2207 # Check whether --with-odbc or --without-odbc was given.
2208if test "${with_odbc+set}" = set; then
2209 withval="$with_odbc"
2210
2211 if test "$withval" = yes; then
2212 ac_cv_use_odbc='wxUSE_ODBC=yes'
2213 else
2214 ac_cv_use_odbc='wxUSE_ODBC=no'
2215 fi
2216
2217else
2218
2219 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2220 if test "x$LINE" != x ; then
2221 eval "DEFAULT_$LINE"
2222 else
2223 no_cache=1
2224 fi
2225
2226 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2227
2228fi
2229
2230
2231 eval "$ac_cv_use_odbc"
2232 if test "$no_cache" != 1; then
2233 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2234 fi
2235
2236 if test "$wxUSE_ODBC" = yes; then
2237 echo "$ac_t""yes" 1>&6
2238 else
2239 echo "$ac_t""no" 1>&6
2240 fi
2241
2242
2243
2244
2245
2246 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2247echo "configure:2248: checking for --enable-shared" >&5
2248 no_cache=0
2249 # Check whether --enable-shared or --disable-shared was given.
2250if test "${enable_shared+set}" = set; then
2251 enableval="$enable_shared"
2252
2253 if test "$enableval" = yes; then
2254 ac_cv_use_shared='wxUSE_SHARED=yes'
2255 else
2256 ac_cv_use_shared='wxUSE_SHARED=no'
2257 fi
2258
2259else
2260
2261 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2262 if test "x$LINE" != x ; then
2263 eval "DEFAULT_$LINE"
2264 else
2265 no_cache=1
2266 fi
2267
2268 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2269
2270fi
2271
2272
2273 eval "$ac_cv_use_shared"
2274 if test "$no_cache" != 1; then
2275 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2276 fi
2277
2278 if test "$wxUSE_SHARED" = yes; then
2279 echo "$ac_t""yes" 1>&6
2280 else
2281 echo "$ac_t""no" 1>&6
2282 fi
2283
2284
2285 echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6
2286echo "configure:2287: checking for --enable-burnt_name" >&5
2287 no_cache=0
2288 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2289if test "${enable_burnt_name+set}" = set; then
2290 enableval="$enable_burnt_name"
2291
2292 if test "$enableval" = yes; then
2293 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2294 else
2295 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2296 fi
2297
2298else
2299
2300 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2301 if test "x$LINE" != x ; then
2302 eval "DEFAULT_$LINE"
2303 else
2304 no_cache=1
2305 fi
2306
2307 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
2308
2309fi
2310
2311
2312 eval "$ac_cv_use_burnt_name"
2313 if test "$no_cache" != 1; then
2314 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2315 fi
2316
2317 if test "$wxUSE_BURNT_NAME" = yes; then
2318 echo "$ac_t""yes" 1>&6
2319 else
2320 echo "$ac_t""no" 1>&6
2321 fi
2322
2323
2324 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2325echo "configure:2326: checking for --enable-optimise" >&5
2326 no_cache=0
2327 # Check whether --enable-optimise or --disable-optimise was given.
2328if test "${enable_optimise+set}" = set; then
2329 enableval="$enable_optimise"
2330
2331 if test "$enableval" = yes; then
2332 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2333 else
2334 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2335 fi
2336
2337else
2338
2339 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2340 if test "x$LINE" != x ; then
2341 eval "DEFAULT_$LINE"
2342 else
2343 no_cache=1
2344 fi
2345
2346 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2347
2348fi
2349
2350
2351 eval "$ac_cv_use_optimise"
2352 if test "$no_cache" != 1; then
2353 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2354 fi
2355
2356 if test "$wxUSE_OPTIMISE" = yes; then
2357 echo "$ac_t""yes" 1>&6
2358 else
2359 echo "$ac_t""no" 1>&6
2360 fi
2361
2362
2363 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2364echo "configure:2365: checking for --enable-debug" >&5
2365 no_cache=0
2366 # Check whether --enable-debug or --disable-debug was given.
2367if test "${enable_debug+set}" = set; then
2368 enableval="$enable_debug"
2369
2370 if test "$enableval" = yes; then
2371 ac_cv_use_debug='wxUSE_DEBUG=yes'
2372 else
2373 ac_cv_use_debug='wxUSE_DEBUG=no'
2374 fi
2375
2376else
2377
2378 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2379 if test "x$LINE" != x ; then
2380 eval "DEFAULT_$LINE"
2381 else
2382 no_cache=1
2383 fi
2384
2385 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2386
2387fi
2388
2389
2390 eval "$ac_cv_use_debug"
2391 if test "$no_cache" != 1; then
2392 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2393 fi
2394
2395 if test "$wxUSE_DEBUG" = yes; then
2396 echo "$ac_t""yes" 1>&6
2397 else
2398 echo "$ac_t""no" 1>&6
2399 fi
2400
2401
2402if test "$wxUSE_DEBUG" = "yes"; then
2403 DEFAULT_wxUSE_DEBUG_FLAG=yes
2404 DEFAULT_wxUSE_DEBUG_INFO=yes
2405elif test "$wxUSE_DEBUG" = "no"; then
2406 DEFAULT_wxUSE_DEBUG_FLAG=no
2407 DEFAULT_wxUSE_DEBUG_INFO=no
2408fi
2409
2410
2411 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2412echo "configure:2413: checking for --enable-debug_flag" >&5
2413 no_cache=0
2414 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2415if test "${enable_debug_flag+set}" = set; then
2416 enableval="$enable_debug_flag"
2417
2418 if test "$enableval" = yes; then
2419 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2420 else
2421 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2422 fi
2423
2424else
2425
2426 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2427 if test "x$LINE" != x ; then
2428 eval "DEFAULT_$LINE"
2429 else
2430 no_cache=1
2431 fi
2432
2433 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2434
2435fi
2436
2437
2438 eval "$ac_cv_use_debug_flag"
2439 if test "$no_cache" != 1; then
2440 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2441 fi
2442
2443 if test "$wxUSE_DEBUG_FLAG" = yes; then
2444 echo "$ac_t""yes" 1>&6
2445 else
2446 echo "$ac_t""no" 1>&6
2447 fi
2448
2449
2450 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2451echo "configure:2452: checking for --enable-debug_info" >&5
2452 no_cache=0
2453 # Check whether --enable-debug_info or --disable-debug_info was given.
2454if test "${enable_debug_info+set}" = set; then
2455 enableval="$enable_debug_info"
2456
2457 if test "$enableval" = yes; then
2458 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2459 else
2460 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2461 fi
2462
2463else
2464
2465 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2466 if test "x$LINE" != x ; then
2467 eval "DEFAULT_$LINE"
2468 else
2469 no_cache=1
2470 fi
2471
2472 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2473
2474fi
2475
2476
2477 eval "$ac_cv_use_debug_info"
2478 if test "$no_cache" != 1; then
2479 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2480 fi
2481
2482 if test "$wxUSE_DEBUG_INFO" = yes; then
2483 echo "$ac_t""yes" 1>&6
2484 else
2485 echo "$ac_t""no" 1>&6
2486 fi
2487
2488
2489 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2490echo "configure:2491: checking for --enable-debug_gdb" >&5
2491 no_cache=0
2492 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2493if test "${enable_debug_gdb+set}" = set; then
2494 enableval="$enable_debug_gdb"
2495
2496 if test "$enableval" = yes; then
2497 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2498 else
2499 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2500 fi
2501
2502else
2503
2504 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2505 if test "x$LINE" != x ; then
2506 eval "DEFAULT_$LINE"
2507 else
2508 no_cache=1
2509 fi
2510
2511 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2512
2513fi
2514
2515
2516 eval "$ac_cv_use_debug_gdb"
2517 if test "$no_cache" != 1; then
2518 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2519 fi
2520
2521 if test "$wxUSE_DEBUG_GDB" = yes; then
2522 echo "$ac_t""yes" 1>&6
2523 else
2524 echo "$ac_t""no" 1>&6
2525 fi
2526
2527
2528 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2529echo "configure:2530: checking for --enable-debug_cntxt" >&5
2530 no_cache=0
2531 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2532if test "${enable_debug_cntxt+set}" = set; then
2533 enableval="$enable_debug_cntxt"
2534
2535 if test "$enableval" = yes; then
2536 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2537 else
2538 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2539 fi
2540
2541else
2542
2543 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2544 if test "x$LINE" != x ; then
2545 eval "DEFAULT_$LINE"
2546 else
2547 no_cache=1
2548 fi
2549
2550 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2551
2552fi
2553
2554
2555 eval "$ac_cv_use_debug_cntxt"
2556 if test "$no_cache" != 1; then
2557 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2558 fi
2559
2560 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2561 echo "$ac_t""yes" 1>&6
2562 else
2563 echo "$ac_t""no" 1>&6
2564 fi
2565
2566
2567 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2568echo "configure:2569: checking for --enable-mem_tracing" >&5
2569 no_cache=0
2570 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2571if test "${enable_mem_tracing+set}" = set; then
2572 enableval="$enable_mem_tracing"
2573
2574 if test "$enableval" = yes; then
2575 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2576 else
2577 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2578 fi
2579
2580else
2581
2582 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2583 if test "x$LINE" != x ; then
2584 eval "DEFAULT_$LINE"
2585 else
2586 no_cache=1
2587 fi
2588
2589 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2590
2591fi
2592
2593
2594 eval "$ac_cv_use_mem_tracing"
2595 if test "$no_cache" != 1; then
2596 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2597 fi
2598
2599 if test "$wxUSE_MEM_TRACING" = yes; then
2600 echo "$ac_t""yes" 1>&6
2601 else
2602 echo "$ac_t""no" 1>&6
2603 fi
2604
2605
2606 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2607echo "configure:2608: checking for --enable-profile" >&5
2608 no_cache=0
2609 # Check whether --enable-profile or --disable-profile was given.
2610if test "${enable_profile+set}" = set; then
2611 enableval="$enable_profile"
2612
2613 if test "$enableval" = yes; then
2614 ac_cv_use_profile='wxUSE_PROFILE=yes'
2615 else
2616 ac_cv_use_profile='wxUSE_PROFILE=no'
2617 fi
2618
2619else
2620
2621 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2622 if test "x$LINE" != x ; then
2623 eval "DEFAULT_$LINE"
2624 else
2625 no_cache=1
2626 fi
2627
2628 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2629
2630fi
2631
2632
2633 eval "$ac_cv_use_profile"
2634 if test "$no_cache" != 1; then
2635 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2636 fi
2637
2638 if test "$wxUSE_PROFILE" = yes; then
2639 echo "$ac_t""yes" 1>&6
2640 else
2641 echo "$ac_t""no" 1>&6
2642 fi
2643
2644
2645 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2646echo "configure:2647: checking for --enable-no_rtti" >&5
2647 no_cache=0
2648 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2649if test "${enable_no_rtti+set}" = set; then
2650 enableval="$enable_no_rtti"
2651
2652 if test "$enableval" = yes; then
2653 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2654 else
2655 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2656 fi
2657
2658else
2659
2660 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2661 if test "x$LINE" != x ; then
2662 eval "DEFAULT_$LINE"
2663 else
2664 no_cache=1
2665 fi
2666
2667 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2668
2669fi
2670
2671
2672 eval "$ac_cv_use_no_rtti"
2673 if test "$no_cache" != 1; then
2674 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2675 fi
2676
2677 if test "$wxUSE_NO_RTTI" = yes; then
2678 echo "$ac_t""yes" 1>&6
2679 else
2680 echo "$ac_t""no" 1>&6
2681 fi
2682
2683
2684 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2685echo "configure:2686: checking for --enable-no_exceptions" >&5
2686 no_cache=0
2687 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2688if test "${enable_no_exceptions+set}" = set; then
2689 enableval="$enable_no_exceptions"
2690
2691 if test "$enableval" = yes; then
2692 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2693 else
2694 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2695 fi
2696
2697else
2698
2699 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2700 if test "x$LINE" != x ; then
2701 eval "DEFAULT_$LINE"
2702 else
2703 no_cache=1
2704 fi
2705
2706 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2707
2708fi
2709
2710
2711 eval "$ac_cv_use_no_exceptions"
2712 if test "$no_cache" != 1; then
2713 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2714 fi
2715
2716 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2717 echo "$ac_t""yes" 1>&6
2718 else
2719 echo "$ac_t""no" 1>&6
2720 fi
2721
2722
2723 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2724echo "configure:2725: checking for --enable-permissive" >&5
2725 no_cache=0
2726 # Check whether --enable-permissive or --disable-permissive was given.
2727if test "${enable_permissive+set}" = set; then
2728 enableval="$enable_permissive"
2729
2730 if test "$enableval" = yes; then
2731 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2732 else
2733 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2734 fi
2735
2736else
2737
2738 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2739 if test "x$LINE" != x ; then
2740 eval "DEFAULT_$LINE"
2741 else
2742 no_cache=1
2743 fi
2744
2745 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2746
2747fi
2748
2749
2750 eval "$ac_cv_use_permissive"
2751 if test "$no_cache" != 1; then
2752 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2753 fi
2754
2755 if test "$wxUSE_PERMISSIVE" = yes; then
2756 echo "$ac_t""yes" 1>&6
2757 else
2758 echo "$ac_t""no" 1>&6
2759 fi
2760
2761
2762 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2763echo "configure:2764: checking for --enable-no_deps" >&5
2764 no_cache=0
2765 # Check whether --enable-no_deps or --disable-no_deps was given.
2766if test "${enable_no_deps+set}" = set; then
2767 enableval="$enable_no_deps"
2768
2769 if test "$enableval" = yes; then
2770 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2771 else
2772 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2773 fi
2774
2775else
2776
2777 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2778 if test "x$LINE" != x ; then
2779 eval "DEFAULT_$LINE"
2780 else
2781 no_cache=1
2782 fi
2783
2784 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2785
2786fi
2787
2788
2789 eval "$ac_cv_use_no_deps"
2790 if test "$no_cache" != 1; then
2791 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2792 fi
2793
2794 if test "$wxUSE_NO_DEPS" = yes; then
2795 echo "$ac_t""yes" 1>&6
2796 else
2797 echo "$ac_t""no" 1>&6
2798 fi
2799
2800
2801
2802 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2803echo "configure:2804: checking for --enable-compat20" >&5
2804 no_cache=0
2805 # Check whether --enable-compat20 or --disable-compat20 was given.
2806if test "${enable_compat20+set}" = set; then
2807 enableval="$enable_compat20"
2808
2809 if test "$enableval" = yes; then
2810 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2811 else
2812 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2813 fi
2814
2815else
2816
2817 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2818 if test "x$LINE" != x ; then
2819 eval "DEFAULT_$LINE"
2820 else
2821 no_cache=1
2822 fi
2823
2824 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2825
2826fi
2827
2828
2829 eval "$ac_cv_use_compat20"
2830 if test "$no_cache" != 1; then
2831 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2832 fi
2833
2834 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2835 echo "$ac_t""yes" 1>&6
2836 else
2837 echo "$ac_t""no" 1>&6
2838 fi
2839
2840
2841 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2842echo "configure:2843: checking for --enable-compat22" >&5
2843 no_cache=0
2844 # Check whether --enable-compat22 or --disable-compat22 was given.
2845if test "${enable_compat22+set}" = set; then
2846 enableval="$enable_compat22"
2847
2848 if test "$enableval" = yes; then
2849 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2850 else
2851 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2852 fi
2853
2854else
2855
2856 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2857 if test "x$LINE" != x ; then
2858 eval "DEFAULT_$LINE"
2859 else
2860 no_cache=1
2861 fi
2862
2863 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2864
2865fi
2866
2867
2868 eval "$ac_cv_use_compat22"
2869 if test "$no_cache" != 1; then
2870 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2871 fi
2872
2873 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2874 echo "$ac_t""yes" 1>&6
2875 else
2876 echo "$ac_t""no" 1>&6
2877 fi
2878
2879
2880
2881
2882 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2883echo "configure:2884: checking for --enable-intl" >&5
2884 no_cache=0
2885 # Check whether --enable-intl or --disable-intl was given.
2886if test "${enable_intl+set}" = set; then
2887 enableval="$enable_intl"
2888
2889 if test "$enableval" = yes; then
2890 ac_cv_use_intl='wxUSE_INTL=yes'
2891 else
2892 ac_cv_use_intl='wxUSE_INTL=no'
2893 fi
2894
2895else
2896
2897 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2898 if test "x$LINE" != x ; then
2899 eval "DEFAULT_$LINE"
2900 else
2901 no_cache=1
2902 fi
2903
2904 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2905
2906fi
2907
2908
2909 eval "$ac_cv_use_intl"
2910 if test "$no_cache" != 1; then
2911 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2912 fi
2913
2914 if test "$wxUSE_INTL" = yes; then
2915 echo "$ac_t""yes" 1>&6
2916 else
2917 echo "$ac_t""no" 1>&6
2918 fi
2919
2920
2921 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
2922echo "configure:2923: checking for --enable-config" >&5
2923 no_cache=0
2924 # Check whether --enable-config or --disable-config was given.
2925if test "${enable_config+set}" = set; then
2926 enableval="$enable_config"
2927
2928 if test "$enableval" = yes; then
2929 ac_cv_use_config='wxUSE_CONFIG=yes'
2930 else
2931 ac_cv_use_config='wxUSE_CONFIG=no'
2932 fi
2933
2934else
2935
2936 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2937 if test "x$LINE" != x ; then
2938 eval "DEFAULT_$LINE"
2939 else
2940 no_cache=1
2941 fi
2942
2943 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2944
2945fi
2946
2947
2948 eval "$ac_cv_use_config"
2949 if test "$no_cache" != 1; then
2950 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2951 fi
2952
2953 if test "$wxUSE_CONFIG" = yes; then
2954 echo "$ac_t""yes" 1>&6
2955 else
2956 echo "$ac_t""no" 1>&6
2957 fi
2958
2959
2960
2961 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
2962echo "configure:2963: checking for --enable-sockets" >&5
2963 no_cache=0
2964 # Check whether --enable-sockets or --disable-sockets was given.
2965if test "${enable_sockets+set}" = set; then
2966 enableval="$enable_sockets"
2967
2968 if test "$enableval" = yes; then
2969 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2970 else
2971 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2972 fi
2973
2974else
2975
2976 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2977 if test "x$LINE" != x ; then
2978 eval "DEFAULT_$LINE"
2979 else
2980 no_cache=1
2981 fi
2982
2983 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2984
2985fi
2986
2987
2988 eval "$ac_cv_use_sockets"
2989 if test "$no_cache" != 1; then
2990 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2991 fi
2992
2993 if test "$wxUSE_SOCKETS" = yes; then
2994 echo "$ac_t""yes" 1>&6
2995 else
2996 echo "$ac_t""no" 1>&6
2997 fi
2998
2999
3000
3001 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3002echo "configure:3003: checking for --enable-ipc" >&5
3003 no_cache=0
3004 # Check whether --enable-ipc or --disable-ipc was given.
3005if test "${enable_ipc+set}" = set; then
3006 enableval="$enable_ipc"
3007
3008 if test "$enableval" = yes; then
3009 ac_cv_use_ipc='wxUSE_IPC=yes'
3010 else
3011 ac_cv_use_ipc='wxUSE_IPC=no'
3012 fi
3013
3014else
3015
3016 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3017 if test "x$LINE" != x ; then
3018 eval "DEFAULT_$LINE"
3019 else
3020 no_cache=1
3021 fi
3022
3023 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3024
3025fi
3026
3027
3028 eval "$ac_cv_use_ipc"
3029 if test "$no_cache" != 1; then
3030 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3031 fi
3032
3033 if test "$wxUSE_IPC" = yes; then
3034 echo "$ac_t""yes" 1>&6
3035 else
3036 echo "$ac_t""no" 1>&6
3037 fi
3038
3039
3040
3041 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3042echo "configure:3043: checking for --enable-cmdline" >&5
3043 no_cache=0
3044 # Check whether --enable-cmdline or --disable-cmdline was given.
3045if test "${enable_cmdline+set}" = set; then
3046 enableval="$enable_cmdline"
3047
3048 if test "$enableval" = yes; then
3049 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3050 else
3051 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3052 fi
3053
3054else
3055
3056 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3057 if test "x$LINE" != x ; then
3058 eval "DEFAULT_$LINE"
3059 else
3060 no_cache=1
3061 fi
3062
3063 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3064
3065fi
3066
3067
3068 eval "$ac_cv_use_cmdline"
3069 if test "$no_cache" != 1; then
3070 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3071 fi
3072
3073 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3074 echo "$ac_t""yes" 1>&6
3075 else
3076 echo "$ac_t""no" 1>&6
3077 fi
3078
3079
3080 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3081echo "configure:3082: checking for --enable-datetime" >&5
3082 no_cache=0
3083 # Check whether --enable-datetime or --disable-datetime was given.
3084if test "${enable_datetime+set}" = set; then
3085 enableval="$enable_datetime"
3086
3087 if test "$enableval" = yes; then
3088 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3089 else
3090 ac_cv_use_datetime='wxUSE_DATETIME=no'
3091 fi
3092
3093else
3094
3095 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3096 if test "x$LINE" != x ; then
3097 eval "DEFAULT_$LINE"
3098 else
3099 no_cache=1
3100 fi
3101
3102 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3103
3104fi
3105
3106
3107 eval "$ac_cv_use_datetime"
3108 if test "$no_cache" != 1; then
3109 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3110 fi
3111
3112 if test "$wxUSE_DATETIME" = yes; then
3113 echo "$ac_t""yes" 1>&6
3114 else
3115 echo "$ac_t""no" 1>&6
3116 fi
3117
3118
3119 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3120echo "configure:3121: checking for --enable-timedate" >&5
3121 no_cache=0
3122 # Check whether --enable-timedate or --disable-timedate was given.
3123if test "${enable_timedate+set}" = set; then
3124 enableval="$enable_timedate"
3125
3126 if test "$enableval" = yes; then
3127 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3128 else
3129 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3130 fi
3131
3132else
3133
3134 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3135 if test "x$LINE" != x ; then
3136 eval "DEFAULT_$LINE"
3137 else
3138 no_cache=1
3139 fi
3140
3141 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3142
3143fi
3144
3145
3146 eval "$ac_cv_use_timedate"
3147 if test "$no_cache" != 1; then
3148 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3149 fi
3150
3151 if test "$wxUSE_TIMEDATE" = yes; then
3152 echo "$ac_t""yes" 1>&6
3153 else
3154 echo "$ac_t""no" 1>&6
3155 fi
3156
3157
3158 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3159echo "configure:3160: checking for --enable-stopwatch" >&5
3160 no_cache=0
3161 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3162if test "${enable_stopwatch+set}" = set; then
3163 enableval="$enable_stopwatch"
3164
3165 if test "$enableval" = yes; then
3166 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3167 else
3168 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3169 fi
3170
3171else
3172
3173 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3174 if test "x$LINE" != x ; then
3175 eval "DEFAULT_$LINE"
3176 else
3177 no_cache=1
3178 fi
3179
3180 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3181
3182fi
3183
3184
3185 eval "$ac_cv_use_stopwatch"
3186 if test "$no_cache" != 1; then
3187 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3188 fi
3189
3190 if test "$wxUSE_STOPWATCH" = yes; then
3191 echo "$ac_t""yes" 1>&6
3192 else
3193 echo "$ac_t""no" 1>&6
3194 fi
3195
3196
3197 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3198echo "configure:3199: checking for --enable-dialupman" >&5
3199 no_cache=0
3200 # Check whether --enable-dialupman or --disable-dialupman was given.
3201if test "${enable_dialupman+set}" = set; then
3202 enableval="$enable_dialupman"
3203
3204 if test "$enableval" = yes; then
3205 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3206 else
3207 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3208 fi
3209
3210else
3211
3212 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3213 if test "x$LINE" != x ; then
3214 eval "DEFAULT_$LINE"
3215 else
3216 no_cache=1
3217 fi
3218
3219 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3220
3221fi
3222
3223
3224 eval "$ac_cv_use_dialupman"
3225 if test "$no_cache" != 1; then
3226 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3227 fi
3228
3229 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3230 echo "$ac_t""yes" 1>&6
3231 else
3232 echo "$ac_t""no" 1>&6
3233 fi
3234
3235
3236 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3237echo "configure:3238: checking for --enable-apple_ieee" >&5
3238 no_cache=0
3239 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3240if test "${enable_apple_ieee+set}" = set; then
3241 enableval="$enable_apple_ieee"
3242
3243 if test "$enableval" = yes; then
3244 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3245 else
3246 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3247 fi
3248
3249else
3250
3251 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3252 if test "x$LINE" != x ; then
3253 eval "DEFAULT_$LINE"
3254 else
3255 no_cache=1
3256 fi
3257
3258 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3259
3260fi
3261
3262
3263 eval "$ac_cv_use_apple_ieee"
3264 if test "$no_cache" != 1; then
3265 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3266 fi
3267
3268 if test "$wxUSE_APPLE_IEEE" = yes; then
3269 echo "$ac_t""yes" 1>&6
3270 else
3271 echo "$ac_t""no" 1>&6
3272 fi
3273
3274
3275 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3276echo "configure:3277: checking for --enable-timer" >&5
3277 no_cache=0
3278 # Check whether --enable-timer or --disable-timer was given.
3279if test "${enable_timer+set}" = set; then
3280 enableval="$enable_timer"
3281
3282 if test "$enableval" = yes; then
3283 ac_cv_use_timer='wxUSE_TIMER=yes'
3284 else
3285 ac_cv_use_timer='wxUSE_TIMER=no'
3286 fi
3287
3288else
3289
3290 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3291 if test "x$LINE" != x ; then
3292 eval "DEFAULT_$LINE"
3293 else
3294 no_cache=1
3295 fi
3296
3297 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3298
3299fi
3300
3301
3302 eval "$ac_cv_use_timer"
3303 if test "$no_cache" != 1; then
3304 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3305 fi
3306
3307 if test "$wxUSE_TIMER" = yes; then
3308 echo "$ac_t""yes" 1>&6
3309 else
3310 echo "$ac_t""no" 1>&6
3311 fi
3312
3313
3314 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3315echo "configure:3316: checking for --enable-wave" >&5
3316 no_cache=0
3317 # Check whether --enable-wave or --disable-wave was given.
3318if test "${enable_wave+set}" = set; then
3319 enableval="$enable_wave"
3320
3321 if test "$enableval" = yes; then
3322 ac_cv_use_wave='wxUSE_WAVE=yes'
3323 else
3324 ac_cv_use_wave='wxUSE_WAVE=no'
3325 fi
3326
3327else
3328
3329 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3330 if test "x$LINE" != x ; then
3331 eval "DEFAULT_$LINE"
3332 else
3333 no_cache=1
3334 fi
3335
3336 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3337
3338fi
3339
3340
3341 eval "$ac_cv_use_wave"
3342 if test "$no_cache" != 1; then
3343 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3344 fi
3345
3346 if test "$wxUSE_WAVE" = yes; then
3347 echo "$ac_t""yes" 1>&6
3348 else
3349 echo "$ac_t""no" 1>&6
3350 fi
3351
3352
3353 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3354echo "configure:3355: checking for --enable-fraction" >&5
3355 no_cache=0
3356 # Check whether --enable-fraction or --disable-fraction was given.
3357if test "${enable_fraction+set}" = set; then
3358 enableval="$enable_fraction"
3359
3360 if test "$enableval" = yes; then
3361 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3362 else
3363 ac_cv_use_fraction='wxUSE_FRACTION=no'
3364 fi
3365
3366else
3367
3368 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3369 if test "x$LINE" != x ; then
3370 eval "DEFAULT_$LINE"
3371 else
3372 no_cache=1
3373 fi
3374
3375 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3376
3377fi
3378
3379
3380 eval "$ac_cv_use_fraction"
3381 if test "$no_cache" != 1; then
3382 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3383 fi
3384
3385 if test "$wxUSE_FRACTION" = yes; then
3386 echo "$ac_t""yes" 1>&6
3387 else
3388 echo "$ac_t""no" 1>&6
3389 fi
3390
3391
3392 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3393echo "configure:3394: checking for --enable-dynlib" >&5
3394 no_cache=0
3395 # Check whether --enable-dynlib or --disable-dynlib was given.
3396if test "${enable_dynlib+set}" = set; then
3397 enableval="$enable_dynlib"
3398
3399 if test "$enableval" = yes; then
3400 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3401 else
3402 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3403 fi
3404
3405else
3406
3407 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3408 if test "x$LINE" != x ; then
3409 eval "DEFAULT_$LINE"
3410 else
3411 no_cache=1
3412 fi
3413
3414 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3415
3416fi
3417
3418
3419 eval "$ac_cv_use_dynlib"
3420 if test "$no_cache" != 1; then
3421 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3422 fi
3423
3424 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3425 echo "$ac_t""yes" 1>&6
3426 else
3427 echo "$ac_t""no" 1>&6
3428 fi
3429
3430
3431 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3432echo "configure:3433: checking for --enable-longlong" >&5
3433 no_cache=0
3434 # Check whether --enable-longlong or --disable-longlong was given.
3435if test "${enable_longlong+set}" = set; then
3436 enableval="$enable_longlong"
3437
3438 if test "$enableval" = yes; then
3439 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3440 else
3441 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3442 fi
3443
3444else
3445
3446 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3447 if test "x$LINE" != x ; then
3448 eval "DEFAULT_$LINE"
3449 else
3450 no_cache=1
3451 fi
3452
3453 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3454
3455fi
3456
3457
3458 eval "$ac_cv_use_longlong"
3459 if test "$no_cache" != 1; then
3460 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3461 fi
3462
3463 if test "$wxUSE_LONGLONG" = yes; then
3464 echo "$ac_t""yes" 1>&6
3465 else
3466 echo "$ac_t""no" 1>&6
3467 fi
3468
3469
3470 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3471echo "configure:3472: checking for --enable-geometry" >&5
3472 no_cache=0
3473 # Check whether --enable-geometry or --disable-geometry was given.
3474if test "${enable_geometry+set}" = set; then
3475 enableval="$enable_geometry"
3476
3477 if test "$enableval" = yes; then
3478 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3479 else
3480 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3481 fi
3482
3483else
3484
3485 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3486 if test "x$LINE" != x ; then
3487 eval "DEFAULT_$LINE"
3488 else
3489 no_cache=1
3490 fi
3491
3492 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3493
3494fi
3495
3496
3497 eval "$ac_cv_use_geometry"
3498 if test "$no_cache" != 1; then
3499 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3500 fi
3501
3502 if test "$wxUSE_GEOMETRY" = yes; then
3503 echo "$ac_t""yes" 1>&6
3504 else
3505 echo "$ac_t""no" 1>&6
3506 fi
3507
3508
3509 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3510echo "configure:3511: checking for --enable-log" >&5
3511 no_cache=0
3512 # Check whether --enable-log or --disable-log was given.
3513if test "${enable_log+set}" = set; then
3514 enableval="$enable_log"
3515
3516 if test "$enableval" = yes; then
3517 ac_cv_use_log='wxUSE_LOG=yes'
3518 else
3519 ac_cv_use_log='wxUSE_LOG=no'
3520 fi
3521
3522else
3523
3524 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3525 if test "x$LINE" != x ; then
3526 eval "DEFAULT_$LINE"
3527 else
3528 no_cache=1
3529 fi
3530
3531 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3532
3533fi
3534
3535
3536 eval "$ac_cv_use_log"
3537 if test "$no_cache" != 1; then
3538 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3539 fi
3540
3541 if test "$wxUSE_LOG" = yes; then
3542 echo "$ac_t""yes" 1>&6
3543 else
3544 echo "$ac_t""no" 1>&6
3545 fi
3546
3547
3548 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3549echo "configure:3550: checking for --enable-streams" >&5
3550 no_cache=0
3551 # Check whether --enable-streams or --disable-streams was given.
3552if test "${enable_streams+set}" = set; then
3553 enableval="$enable_streams"
3554
3555 if test "$enableval" = yes; then
3556 ac_cv_use_streams='wxUSE_STREAMS=yes'
3557 else
3558 ac_cv_use_streams='wxUSE_STREAMS=no'
3559 fi
3560
3561else
3562
3563 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3564 if test "x$LINE" != x ; then
3565 eval "DEFAULT_$LINE"
3566 else
3567 no_cache=1
3568 fi
3569
3570 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3571
3572fi
3573
3574
3575 eval "$ac_cv_use_streams"
3576 if test "$no_cache" != 1; then
3577 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3578 fi
3579
3580 if test "$wxUSE_STREAMS" = yes; then
3581 echo "$ac_t""yes" 1>&6
3582 else
3583 echo "$ac_t""no" 1>&6
3584 fi
3585
3586
3587 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3588echo "configure:3589: checking for --enable-file" >&5
3589 no_cache=0
3590 # Check whether --enable-file or --disable-file was given.
3591if test "${enable_file+set}" = set; then
3592 enableval="$enable_file"
3593
3594 if test "$enableval" = yes; then
3595 ac_cv_use_file='wxUSE_FILE=yes'
3596 else
3597 ac_cv_use_file='wxUSE_FILE=no'
3598 fi
3599
3600else
3601
3602 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3603 if test "x$LINE" != x ; then
3604 eval "DEFAULT_$LINE"
3605 else
3606 no_cache=1
3607 fi
3608
3609 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3610
3611fi
3612
3613
3614 eval "$ac_cv_use_file"
3615 if test "$no_cache" != 1; then
3616 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3617 fi
3618
3619 if test "$wxUSE_FILE" = yes; then
3620 echo "$ac_t""yes" 1>&6
3621 else
3622 echo "$ac_t""no" 1>&6
3623 fi
3624
3625
3626 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3627echo "configure:3628: checking for --enable-ffile" >&5
3628 no_cache=0
3629 # Check whether --enable-ffile or --disable-ffile was given.
3630if test "${enable_ffile+set}" = set; then
3631 enableval="$enable_ffile"
3632
3633 if test "$enableval" = yes; then
3634 ac_cv_use_ffile='wxUSE_FFILE=yes'
3635 else
3636 ac_cv_use_ffile='wxUSE_FFILE=no'
3637 fi
3638
3639else
3640
3641 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3642 if test "x$LINE" != x ; then
3643 eval "DEFAULT_$LINE"
3644 else
3645 no_cache=1
3646 fi
3647
3648 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3649
3650fi
3651
3652
3653 eval "$ac_cv_use_ffile"
3654 if test "$no_cache" != 1; then
3655 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3656 fi
3657
3658 if test "$wxUSE_FFILE" = yes; then
3659 echo "$ac_t""yes" 1>&6
3660 else
3661 echo "$ac_t""no" 1>&6
3662 fi
3663
3664
3665 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3666echo "configure:3667: checking for --enable-textfile" >&5
3667 no_cache=0
3668 # Check whether --enable-textfile or --disable-textfile was given.
3669if test "${enable_textfile+set}" = set; then
3670 enableval="$enable_textfile"
3671
3672 if test "$enableval" = yes; then
3673 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3674 else
3675 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3676 fi
3677
3678else
3679
3680 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3681 if test "x$LINE" != x ; then
3682 eval "DEFAULT_$LINE"
3683 else
3684 no_cache=1
3685 fi
3686
3687 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3688
3689fi
3690
3691
3692 eval "$ac_cv_use_textfile"
3693 if test "$no_cache" != 1; then
3694 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3695 fi
3696
3697 if test "$wxUSE_TEXTFILE" = yes; then
3698 echo "$ac_t""yes" 1>&6
3699 else
3700 echo "$ac_t""no" 1>&6
3701 fi
3702
3703
3704 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3705echo "configure:3706: checking for --enable-fontmap" >&5
3706 no_cache=0
3707 # Check whether --enable-fontmap or --disable-fontmap was given.
3708if test "${enable_fontmap+set}" = set; then
3709 enableval="$enable_fontmap"
3710
3711 if test "$enableval" = yes; then
3712 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
3713 else
3714 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
3715 fi
3716
3717else
3718
3719 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
3720 if test "x$LINE" != x ; then
3721 eval "DEFAULT_$LINE"
3722 else
3723 no_cache=1
3724 fi
3725
3726 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
3727
3728fi
3729
3730
3731 eval "$ac_cv_use_fontmap"
3732 if test "$no_cache" != 1; then
3733 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
3734 fi
3735
3736 if test "$wxUSE_FONTMAP" = yes; then
3737 echo "$ac_t""yes" 1>&6
3738 else
3739 echo "$ac_t""no" 1>&6
3740 fi
3741
3742
3743 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3744echo "configure:3745: checking for --enable-unicode" >&5
3745 no_cache=0
3746 # Check whether --enable-unicode or --disable-unicode was given.
3747if test "${enable_unicode+set}" = set; then
3748 enableval="$enable_unicode"
3749
3750 if test "$enableval" = yes; then
3751 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3752 else
3753 ac_cv_use_unicode='wxUSE_UNICODE=no'
3754 fi
3755
3756else
3757
3758 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3759 if test "x$LINE" != x ; then
3760 eval "DEFAULT_$LINE"
3761 else
3762 no_cache=1
3763 fi
3764
3765 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3766
3767fi
3768
3769
3770 eval "$ac_cv_use_unicode"
3771 if test "$no_cache" != 1; then
3772 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3773 fi
3774
3775 if test "$wxUSE_UNICODE" = yes; then
3776 echo "$ac_t""yes" 1>&6
3777 else
3778 echo "$ac_t""no" 1>&6
3779 fi
3780
3781
3782 echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6
3783echo "configure:3784: checking for --enable-wcsrtombs" >&5
3784 no_cache=0
3785 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3786if test "${enable_wcsrtombs+set}" = set; then
3787 enableval="$enable_wcsrtombs"
3788
3789 if test "$enableval" = yes; then
3790 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3791 else
3792 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3793 fi
3794
3795else
3796
3797 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3798 if test "x$LINE" != x ; then
3799 eval "DEFAULT_$LINE"
3800 else
3801 no_cache=1
3802 fi
3803
3804 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3805
3806fi
3807
3808
3809 eval "$ac_cv_use_wcsrtombs"
3810 if test "$no_cache" != 1; then
3811 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3812 fi
3813
3814 if test "$wxUSE_WCSRTOMBS" = yes; then
3815 echo "$ac_t""yes" 1>&6
3816 else
3817 echo "$ac_t""no" 1>&6
3818 fi
3819
3820
3821 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3822echo "configure:3823: checking for --enable-wxprintfv" >&5
3823 no_cache=0
3824 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3825if test "${enable_wxprintfv+set}" = set; then
3826 enableval="$enable_wxprintfv"
3827
3828 if test "$enableval" = yes; then
3829 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3830 else
3831 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3832 fi
3833
3834else
3835
3836 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3837 if test "x$LINE" != x ; then
3838 eval "DEFAULT_$LINE"
3839 else
3840 no_cache=1
3841 fi
3842
3843 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3844
3845fi
3846
3847
3848 eval "$ac_cv_use_wxprintfv"
3849 if test "$no_cache" != 1; then
3850 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3851 fi
3852
3853 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3854 echo "$ac_t""yes" 1>&6
3855 else
3856 echo "$ac_t""no" 1>&6
3857 fi
3858
3859
3860 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3861echo "configure:3862: checking for --enable-std_iostreams" >&5
3862 no_cache=0
3863 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3864if test "${enable_std_iostreams+set}" = set; then
3865 enableval="$enable_std_iostreams"
3866
3867 if test "$enableval" = yes; then
3868 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3869 else
3870 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3871 fi
3872
3873else
3874
3875 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3876 if test "x$LINE" != x ; then
3877 eval "DEFAULT_$LINE"
3878 else
3879 no_cache=1
3880 fi
3881
3882 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3883
3884fi
3885
3886
3887 eval "$ac_cv_use_std_iostreams"
3888 if test "$no_cache" != 1; then
3889 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3890 fi
3891
3892 if test "$wxUSE_STD_IOSTREAM" = yes; then
3893 echo "$ac_t""yes" 1>&6
3894 else
3895 echo "$ac_t""no" 1>&6
3896 fi
3897
3898
3899 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3900echo "configure:3901: checking for --enable-filesystem" >&5
3901 no_cache=0
3902 # Check whether --enable-filesystem or --disable-filesystem was given.
3903if test "${enable_filesystem+set}" = set; then
3904 enableval="$enable_filesystem"
3905
3906 if test "$enableval" = yes; then
3907 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3908 else
3909 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3910 fi
3911
3912else
3913
3914 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3915 if test "x$LINE" != x ; then
3916 eval "DEFAULT_$LINE"
3917 else
3918 no_cache=1
3919 fi
3920
3921 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3922
3923fi
3924
3925
3926 eval "$ac_cv_use_filesystem"
3927 if test "$no_cache" != 1; then
3928 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3929 fi
3930
3931 if test "$wxUSE_FILESYSTEM" = yes; then
3932 echo "$ac_t""yes" 1>&6
3933 else
3934 echo "$ac_t""no" 1>&6
3935 fi
3936
3937
3938 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
3939echo "configure:3940: checking for --enable-fs_inet" >&5
3940 no_cache=0
3941 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3942if test "${enable_fs_inet+set}" = set; then
3943 enableval="$enable_fs_inet"
3944
3945 if test "$enableval" = yes; then
3946 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3947 else
3948 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3949 fi
3950
3951else
3952
3953 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3954 if test "x$LINE" != x ; then
3955 eval "DEFAULT_$LINE"
3956 else
3957 no_cache=1
3958 fi
3959
3960 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3961
3962fi
3963
3964
3965 eval "$ac_cv_use_fs_inet"
3966 if test "$no_cache" != 1; then
3967 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3968 fi
3969
3970 if test "$wxUSE_FS_INET" = yes; then
3971 echo "$ac_t""yes" 1>&6
3972 else
3973 echo "$ac_t""no" 1>&6
3974 fi
3975
3976
3977 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
3978echo "configure:3979: checking for --enable-fs_zip" >&5
3979 no_cache=0
3980 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3981if test "${enable_fs_zip+set}" = set; then
3982 enableval="$enable_fs_zip"
3983
3984 if test "$enableval" = yes; then
3985 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3986 else
3987 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3988 fi
3989
3990else
3991
3992 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3993 if test "x$LINE" != x ; then
3994 eval "DEFAULT_$LINE"
3995 else
3996 no_cache=1
3997 fi
3998
3999 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4000
4001fi
4002
4003
4004 eval "$ac_cv_use_fs_zip"
4005 if test "$no_cache" != 1; then
4006 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4007 fi
4008
4009 if test "$wxUSE_FS_ZIP" = yes; then
4010 echo "$ac_t""yes" 1>&6
4011 else
4012 echo "$ac_t""no" 1>&6
4013 fi
4014
4015
4016 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4017echo "configure:4018: checking for --enable-zipstream" >&5
4018 no_cache=0
4019 # Check whether --enable-zipstream or --disable-zipstream was given.
4020if test "${enable_zipstream+set}" = set; then
4021 enableval="$enable_zipstream"
4022
4023 if test "$enableval" = yes; then
4024 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4025 else
4026 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4027 fi
4028
4029else
4030
4031 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4032 if test "x$LINE" != x ; then
4033 eval "DEFAULT_$LINE"
4034 else
4035 no_cache=1
4036 fi
4037
4038 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4039
4040fi
4041
4042
4043 eval "$ac_cv_use_zipstream"
4044 if test "$no_cache" != 1; then
4045 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4046 fi
4047
4048 if test "$wxUSE_ZIPSTREAM" = yes; then
4049 echo "$ac_t""yes" 1>&6
4050 else
4051 echo "$ac_t""no" 1>&6
4052 fi
4053
4054
4055
4056 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4057echo "configure:4058: checking for --enable-catch_segvs" >&5
4058 no_cache=0
4059 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4060if test "${enable_catch_segvs+set}" = set; then
4061 enableval="$enable_catch_segvs"
4062
4063 if test "$enableval" = yes; then
4064 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4065 else
4066 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4067 fi
4068
4069else
4070
4071 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4072 if test "x$LINE" != x ; then
4073 eval "DEFAULT_$LINE"
4074 else
4075 no_cache=1
4076 fi
4077
4078 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4079
4080fi
4081
4082
4083 eval "$ac_cv_use_catch_segvs"
4084 if test "$no_cache" != 1; then
4085 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4086 fi
4087
4088 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4089 echo "$ac_t""yes" 1>&6
4090 else
4091 echo "$ac_t""no" 1>&6
4092 fi
4093
4094
4095 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4096echo "configure:4097: checking for --enable-snglinst" >&5
4097 no_cache=0
4098 # Check whether --enable-snglinst or --disable-snglinst was given.
4099if test "${enable_snglinst+set}" = set; then
4100 enableval="$enable_snglinst"
4101
4102 if test "$enableval" = yes; then
4103 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4104 else
4105 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4106 fi
4107
4108else
4109
4110 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4111 if test "x$LINE" != x ; then
4112 eval "DEFAULT_$LINE"
4113 else
4114 no_cache=1
4115 fi
4116
4117 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4118
4119fi
4120
4121
4122 eval "$ac_cv_use_snglinst"
4123 if test "$no_cache" != 1; then
4124 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4125 fi
4126
4127 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4128 echo "$ac_t""yes" 1>&6
4129 else
4130 echo "$ac_t""no" 1>&6
4131 fi
4132
4133
4134
4135 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4136echo "configure:4137: checking for --enable-mimetype" >&5
4137 no_cache=0
4138 # Check whether --enable-mimetype or --disable-mimetype was given.
4139if test "${enable_mimetype+set}" = set; then
4140 enableval="$enable_mimetype"
4141
4142 if test "$enableval" = yes; then
4143 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4144 else
4145 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4146 fi
4147
4148else
4149
4150 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4151 if test "x$LINE" != x ; then
4152 eval "DEFAULT_$LINE"
4153 else
4154 no_cache=1
4155 fi
4156
4157 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4158
4159fi
4160
4161
4162 eval "$ac_cv_use_mimetype"
4163 if test "$no_cache" != 1; then
4164 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4165 fi
4166
4167 if test "$wxUSE_MIMETYPE" = yes; then
4168 echo "$ac_t""yes" 1>&6
4169 else
4170 echo "$ac_t""no" 1>&6
4171 fi
4172
4173
4174 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4175echo "configure:4176: checking for --enable-system_options" >&5
4176 no_cache=0
4177 # Check whether --enable-system_options or --disable-system_options was given.
4178if test "${enable_system_options+set}" = set; then
4179 enableval="$enable_system_options"
4180
4181 if test "$enableval" = yes; then
4182 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4183 else
4184 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4185 fi
4186
4187else
4188
4189 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4190 if test "x$LINE" != x ; then
4191 eval "DEFAULT_$LINE"
4192 else
4193 no_cache=1
4194 fi
4195
4196 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4197
4198fi
4199
4200
4201 eval "$ac_cv_use_system_options"
4202 if test "$no_cache" != 1; then
4203 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4204 fi
4205
4206 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4207 echo "$ac_t""yes" 1>&6
4208 else
4209 echo "$ac_t""no" 1>&6
4210 fi
4211
4212
4213
4214
4215 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4216echo "configure:4217: checking for --enable-threads" >&5
4217 no_cache=0
4218 # Check whether --enable-threads or --disable-threads was given.
4219if test "${enable_threads+set}" = set; then
4220 enableval="$enable_threads"
4221
4222 if test "$enableval" = yes; then
4223 ac_cv_use_threads='wxUSE_THREADS=yes'
4224 else
4225 ac_cv_use_threads='wxUSE_THREADS=no'
4226 fi
4227
4228else
4229
4230 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4231 if test "x$LINE" != x ; then
4232 eval "DEFAULT_$LINE"
4233 else
4234 no_cache=1
4235 fi
4236
4237 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4238
4239fi
4240
4241
4242 eval "$ac_cv_use_threads"
4243 if test "$no_cache" != 1; then
4244 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4245 fi
4246
4247 if test "$wxUSE_THREADS" = yes; then
4248 echo "$ac_t""yes" 1>&6
4249 else
4250 echo "$ac_t""no" 1>&6
4251 fi
4252
4253
4254 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
4255echo "configure:4256: checking for --enable-serial" >&5
4256 no_cache=0
4257 # Check whether --enable-serial or --disable-serial was given.
4258if test "${enable_serial+set}" = set; then
4259 enableval="$enable_serial"
4260
4261 if test "$enableval" = yes; then
4262 ac_cv_use_serial='wxUSE_SERIAL=yes'
4263 else
4264 ac_cv_use_serial='wxUSE_SERIAL=no'
4265 fi
4266
4267else
4268
4269 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4270 if test "x$LINE" != x ; then
4271 eval "DEFAULT_$LINE"
4272 else
4273 no_cache=1
4274 fi
4275
4276 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
4277
4278fi
4279
4280
4281 eval "$ac_cv_use_serial"
4282 if test "$no_cache" != 1; then
4283 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4284 fi
4285
4286 if test "$wxUSE_SERIAL" = yes; then
4287 echo "$ac_t""yes" 1>&6
4288 else
4289 echo "$ac_t""no" 1>&6
4290 fi
4291
4292
4293if test "$wxUSE_GUI" = "yes"; then
4294
4295
4296
4297 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4298echo "configure:4299: checking for --enable-docview" >&5
4299 no_cache=0
4300 # Check whether --enable-docview or --disable-docview was given.
4301if test "${enable_docview+set}" = set; then
4302 enableval="$enable_docview"
4303
4304 if test "$enableval" = yes; then
4305 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4306 else
4307 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4308 fi
4309
4310else
4311
4312 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4313 if test "x$LINE" != x ; then
4314 eval "DEFAULT_$LINE"
4315 else
4316 no_cache=1
4317 fi
4318
4319 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4320
4321fi
4322
4323
4324 eval "$ac_cv_use_docview"
4325 if test "$no_cache" != 1; then
4326 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4327 fi
4328
4329 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4330 echo "$ac_t""yes" 1>&6
4331 else
4332 echo "$ac_t""no" 1>&6
4333 fi
4334
4335
4336 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4337echo "configure:4338: checking for --enable-help" >&5
4338 no_cache=0
4339 # Check whether --enable-help or --disable-help was given.
4340if test "${enable_help+set}" = set; then
4341 enableval="$enable_help"
4342
4343 if test "$enableval" = yes; then
4344 ac_cv_use_help='wxUSE_HELP=yes'
4345 else
4346 ac_cv_use_help='wxUSE_HELP=no'
4347 fi
4348
4349else
4350
4351 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4352 if test "x$LINE" != x ; then
4353 eval "DEFAULT_$LINE"
4354 else
4355 no_cache=1
4356 fi
4357
4358 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4359
4360fi
4361
4362
4363 eval "$ac_cv_use_help"
4364 if test "$no_cache" != 1; then
4365 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4366 fi
4367
4368 if test "$wxUSE_HELP" = yes; then
4369 echo "$ac_t""yes" 1>&6
4370 else
4371 echo "$ac_t""no" 1>&6
4372 fi
4373
4374
4375 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4376echo "configure:4377: checking for --enable-mshtmlhelp" >&5
4377 no_cache=0
4378 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4379if test "${enable_mshtmlhelp+set}" = set; then
4380 enableval="$enable_mshtmlhelp"
4381
4382 if test "$enableval" = yes; then
4383 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4384 else
4385 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4386 fi
4387
4388else
4389
4390 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4391 if test "x$LINE" != x ; then
4392 eval "DEFAULT_$LINE"
4393 else
4394 no_cache=1
4395 fi
4396
4397 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4398
4399fi
4400
4401
4402 eval "$ac_cv_use_mshtmlhelp"
4403 if test "$no_cache" != 1; then
4404 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4405 fi
4406
4407 if test "$wxUSE_MS_HTML_HELP" = yes; then
4408 echo "$ac_t""yes" 1>&6
4409 else
4410 echo "$ac_t""no" 1>&6
4411 fi
4412
4413
4414 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4415echo "configure:4416: checking for --enable-html" >&5
4416 no_cache=0
4417 # Check whether --enable-html or --disable-html was given.
4418if test "${enable_html+set}" = set; then
4419 enableval="$enable_html"
4420
4421 if test "$enableval" = yes; then
4422 ac_cv_use_html='wxUSE_HTML=yes'
4423 else
4424 ac_cv_use_html='wxUSE_HTML=no'
4425 fi
4426
4427else
4428
4429 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4430 if test "x$LINE" != x ; then
4431 eval "DEFAULT_$LINE"
4432 else
4433 no_cache=1
4434 fi
4435
4436 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4437
4438fi
4439
4440
4441 eval "$ac_cv_use_html"
4442 if test "$no_cache" != 1; then
4443 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4444 fi
4445
4446 if test "$wxUSE_HTML" = yes; then
4447 echo "$ac_t""yes" 1>&6
4448 else
4449 echo "$ac_t""no" 1>&6
4450 fi
4451
4452
4453 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4454echo "configure:4455: checking for --enable-htmlhelp" >&5
4455 no_cache=0
4456 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4457if test "${enable_htmlhelp+set}" = set; then
4458 enableval="$enable_htmlhelp"
4459
4460 if test "$enableval" = yes; then
4461 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4462 else
4463 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4464 fi
4465
4466else
4467
4468 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4469 if test "x$LINE" != x ; then
4470 eval "DEFAULT_$LINE"
4471 else
4472 no_cache=1
4473 fi
4474
4475 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4476
4477fi
4478
4479
4480 eval "$ac_cv_use_htmlhelp"
4481 if test "$no_cache" != 1; then
4482 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4483 fi
4484
4485 if test "$wxUSE_WXHTML_HELP" = yes; then
4486 echo "$ac_t""yes" 1>&6
4487 else
4488 echo "$ac_t""no" 1>&6
4489 fi
4490
4491
4492 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4493echo "configure:4494: checking for --enable-constraints" >&5
4494 no_cache=0
4495 # Check whether --enable-constraints or --disable-constraints was given.
4496if test "${enable_constraints+set}" = set; then
4497 enableval="$enable_constraints"
4498
4499 if test "$enableval" = yes; then
4500 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4501 else
4502 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4503 fi
4504
4505else
4506
4507 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4508 if test "x$LINE" != x ; then
4509 eval "DEFAULT_$LINE"
4510 else
4511 no_cache=1
4512 fi
4513
4514 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
4515
4516fi
4517
4518
4519 eval "$ac_cv_use_constraints"
4520 if test "$no_cache" != 1; then
4521 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4522 fi
4523
4524 if test "$wxUSE_CONSTRAINTS" = yes; then
4525 echo "$ac_t""yes" 1>&6
4526 else
4527 echo "$ac_t""no" 1>&6
4528 fi
4529
4530
4531 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4532echo "configure:4533: checking for --enable-printarch" >&5
4533 no_cache=0
4534 # Check whether --enable-printarch or --disable-printarch was given.
4535if test "${enable_printarch+set}" = set; then
4536 enableval="$enable_printarch"
4537
4538 if test "$enableval" = yes; then
4539 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4540 else
4541 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4542 fi
4543
4544else
4545
4546 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4547 if test "x$LINE" != x ; then
4548 eval "DEFAULT_$LINE"
4549 else
4550 no_cache=1
4551 fi
4552
4553 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
4554
4555fi
4556
4557
4558 eval "$ac_cv_use_printarch"
4559 if test "$no_cache" != 1; then
4560 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4561 fi
4562
4563 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
4564 echo "$ac_t""yes" 1>&6
4565 else
4566 echo "$ac_t""no" 1>&6
4567 fi
4568
4569
4570 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4571echo "configure:4572: checking for --enable-mdi" >&5
4572 no_cache=0
4573 # Check whether --enable-mdi or --disable-mdi was given.
4574if test "${enable_mdi+set}" = set; then
4575 enableval="$enable_mdi"
4576
4577 if test "$enableval" = yes; then
4578 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4579 else
4580 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4581 fi
4582
4583else
4584
4585 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4586 if test "x$LINE" != x ; then
4587 eval "DEFAULT_$LINE"
4588 else
4589 no_cache=1
4590 fi
4591
4592 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
4593
4594fi
4595
4596
4597 eval "$ac_cv_use_mdi"
4598 if test "$no_cache" != 1; then
4599 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4600 fi
4601
4602 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
4603 echo "$ac_t""yes" 1>&6
4604 else
4605 echo "$ac_t""no" 1>&6
4606 fi
4607
4608
4609 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4610echo "configure:4611: checking for --enable-loggui" >&5
4611 no_cache=0
4612 # Check whether --enable-loggui or --disable-loggui was given.
4613if test "${enable_loggui+set}" = set; then
4614 enableval="$enable_loggui"
4615
4616 if test "$enableval" = yes; then
4617 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4618 else
4619 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4620 fi
4621
4622else
4623
4624 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4625 if test "x$LINE" != x ; then
4626 eval "DEFAULT_$LINE"
4627 else
4628 no_cache=1
4629 fi
4630
4631 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4632
4633fi
4634
4635
4636 eval "$ac_cv_use_loggui"
4637 if test "$no_cache" != 1; then
4638 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4639 fi
4640
4641 if test "$wxUSE_LOGGUI" = yes; then
4642 echo "$ac_t""yes" 1>&6
4643 else
4644 echo "$ac_t""no" 1>&6
4645 fi
4646
4647
4648 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4649echo "configure:4650: checking for --enable-logwin" >&5
4650 no_cache=0
4651 # Check whether --enable-logwin or --disable-logwin was given.
4652if test "${enable_logwin+set}" = set; then
4653 enableval="$enable_logwin"
4654
4655 if test "$enableval" = yes; then
4656 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4657 else
4658 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4659 fi
4660
4661else
4662
4663 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4664 if test "x$LINE" != x ; then
4665 eval "DEFAULT_$LINE"
4666 else
4667 no_cache=1
4668 fi
4669
4670 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4671
4672fi
4673
4674
4675 eval "$ac_cv_use_logwin"
4676 if test "$no_cache" != 1; then
4677 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4678 fi
4679
4680 if test "$wxUSE_LOGWINDOW" = yes; then
4681 echo "$ac_t""yes" 1>&6
4682 else
4683 echo "$ac_t""no" 1>&6
4684 fi
4685
4686
4687
4688 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4689echo "configure:4690: checking for --enable-postscript" >&5
4690 no_cache=0
4691 # Check whether --enable-postscript or --disable-postscript was given.
4692if test "${enable_postscript+set}" = set; then
4693 enableval="$enable_postscript"
4694
4695 if test "$enableval" = yes; then
4696 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4697 else
4698 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4699 fi
4700
4701else
4702
4703 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4704 if test "x$LINE" != x ; then
4705 eval "DEFAULT_$LINE"
4706 else
4707 no_cache=1
4708 fi
4709
4710 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
4711
4712fi
4713
4714
4715 eval "$ac_cv_use_postscript"
4716 if test "$no_cache" != 1; then
4717 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4718 fi
4719
4720 if test "$wxUSE_POSTSCRIPT" = yes; then
4721 echo "$ac_t""yes" 1>&6
4722 else
4723 echo "$ac_t""no" 1>&6
4724 fi
4725
4726
4727
4728
4729
4730 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4731echo "configure:4732: checking for --enable-prologio" >&5
4732 no_cache=0
4733 # Check whether --enable-prologio or --disable-prologio was given.
4734if test "${enable_prologio+set}" = set; then
4735 enableval="$enable_prologio"
4736
4737 if test "$enableval" = yes; then
4738 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4739 else
4740 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4741 fi
4742
4743else
4744
4745 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4746 if test "x$LINE" != x ; then
4747 eval "DEFAULT_$LINE"
4748 else
4749 no_cache=1
4750 fi
4751
4752 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
4753
4754fi
4755
4756
4757 eval "$ac_cv_use_prologio"
4758 if test "$no_cache" != 1; then
4759 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4760 fi
4761
4762 if test "$wxUSE_PROLOGIO" = yes; then
4763 echo "$ac_t""yes" 1>&6
4764 else
4765 echo "$ac_t""no" 1>&6
4766 fi
4767
4768
4769 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4770echo "configure:4771: checking for --enable-resources" >&5
4771 no_cache=0
4772 # Check whether --enable-resources or --disable-resources was given.
4773if test "${enable_resources+set}" = set; then
4774 enableval="$enable_resources"
4775
4776 if test "$enableval" = yes; then
4777 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4778 else
4779 ac_cv_use_resources='wxUSE_RESOURCES=no'
4780 fi
4781
4782else
4783
4784 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4785 if test "x$LINE" != x ; then
4786 eval "DEFAULT_$LINE"
4787 else
4788 no_cache=1
4789 fi
4790
4791 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
4792
4793fi
4794
4795
4796 eval "$ac_cv_use_resources"
4797 if test "$no_cache" != 1; then
4798 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4799 fi
4800
4801 if test "$wxUSE_RESOURCES" = yes; then
4802 echo "$ac_t""yes" 1>&6
4803 else
4804 echo "$ac_t""no" 1>&6
4805 fi
4806
4807
4808
4809 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
4810echo "configure:4811: checking for --enable-xresources" >&5
4811 no_cache=0
4812 # Check whether --enable-xresources or --disable-xresources was given.
4813if test "${enable_xresources+set}" = set; then
4814 enableval="$enable_xresources"
4815
4816 if test "$enableval" = yes; then
4817 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4818 else
4819 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4820 fi
4821
4822else
4823
4824 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4825 if test "x$LINE" != x ; then
4826 eval "DEFAULT_$LINE"
4827 else
4828 no_cache=1
4829 fi
4830
4831 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
4832
4833fi
4834
4835
4836 eval "$ac_cv_use_xresources"
4837 if test "$no_cache" != 1; then
4838 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4839 fi
4840
4841 if test "$wxUSE_X_RESOURCES" = yes; then
4842 echo "$ac_t""yes" 1>&6
4843 else
4844 echo "$ac_t""no" 1>&6
4845 fi
4846
4847
4848
4849
4850 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
4851echo "configure:4852: checking for --enable-clipboard" >&5
4852 no_cache=0
4853 # Check whether --enable-clipboard or --disable-clipboard was given.
4854if test "${enable_clipboard+set}" = set; then
4855 enableval="$enable_clipboard"
4856
4857 if test "$enableval" = yes; then
4858 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4859 else
4860 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4861 fi
4862
4863else
4864
4865 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4866 if test "x$LINE" != x ; then
4867 eval "DEFAULT_$LINE"
4868 else
4869 no_cache=1
4870 fi
4871
4872 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4873
4874fi
4875
4876
4877 eval "$ac_cv_use_clipboard"
4878 if test "$no_cache" != 1; then
4879 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4880 fi
4881
4882 if test "$wxUSE_CLIPBOARD" = yes; then
4883 echo "$ac_t""yes" 1>&6
4884 else
4885 echo "$ac_t""no" 1>&6
4886 fi
4887
4888
4889 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
4890echo "configure:4891: checking for --enable-dnd" >&5
4891 no_cache=0
4892 # Check whether --enable-dnd or --disable-dnd was given.
4893if test "${enable_dnd+set}" = set; then
4894 enableval="$enable_dnd"
4895
4896 if test "$enableval" = yes; then
4897 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4898 else
4899 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4900 fi
4901
4902else
4903
4904 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4905 if test "x$LINE" != x ; then
4906 eval "DEFAULT_$LINE"
4907 else
4908 no_cache=1
4909 fi
4910
4911 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4912
4913fi
4914
4915
4916 eval "$ac_cv_use_dnd"
4917 if test "$no_cache" != 1; then
4918 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4919 fi
4920
4921 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4922 echo "$ac_t""yes" 1>&6
4923 else
4924 echo "$ac_t""no" 1>&6
4925 fi
4926
4927
4928 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
4929echo "configure:4930: checking for --enable-metafile" >&5
4930 no_cache=0
4931 # Check whether --enable-metafile or --disable-metafile was given.
4932if test "${enable_metafile+set}" = set; then
4933 enableval="$enable_metafile"
4934
4935 if test "$enableval" = yes; then
4936 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4937 else
4938 ac_cv_use_metafile='wxUSE_METAFILE=no'
4939 fi
4940
4941else
4942
4943 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4944 if test "x$LINE" != x ; then
4945 eval "DEFAULT_$LINE"
4946 else
4947 no_cache=1
4948 fi
4949
4950 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4951
4952fi
4953
4954
4955 eval "$ac_cv_use_metafile"
4956 if test "$no_cache" != 1; then
4957 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4958 fi
4959
4960 if test "$wxUSE_METAFILE" = yes; then
4961 echo "$ac_t""yes" 1>&6
4962 else
4963 echo "$ac_t""no" 1>&6
4964 fi
4965
4966
4967
4968 echo $ac_n "checking for --enable-wxtree""... $ac_c" 1>&6
4969echo "configure:4970: checking for --enable-wxtree" >&5
4970 no_cache=0
4971 # Check whether --enable-wxtree or --disable-wxtree was given.
4972if test "${enable_wxtree+set}" = set; then
4973 enableval="$enable_wxtree"
4974
4975 if test "$enableval" = yes; then
4976 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
4977 else
4978 ac_cv_use_wxtree='wxUSE_WXTREE=no'
4979 fi
4980
4981else
4982
4983 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
4984 if test "x$LINE" != x ; then
4985 eval "DEFAULT_$LINE"
4986 else
4987 no_cache=1
4988 fi
4989
4990 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
4991
4992fi
4993
4994
4995 eval "$ac_cv_use_wxtree"
4996 if test "$no_cache" != 1; then
4997 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
4998 fi
4999
5000 if test "$wxUSE_WXTREE" = yes; then
5001 echo "$ac_t""yes" 1>&6
5002 else
5003 echo "$ac_t""no" 1>&6
5004 fi
5005
5006
5007
5008
5009 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5010echo "configure:5011: checking for --enable-controls" >&5
5011 no_cache=0
5012 # Check whether --enable-controls or --disable-controls was given.
5013if test "${enable_controls+set}" = set; then
5014 enableval="$enable_controls"
5015
5016 if test "$enableval" = yes; then
5017 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5018 else
5019 ac_cv_use_controls='wxUSE_CONTROLS=no'
5020 fi
5021
5022else
5023
5024 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5025 if test "x$LINE" != x ; then
5026 eval "DEFAULT_$LINE"
5027 else
5028 no_cache=1
5029 fi
5030
5031 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5032
5033fi
5034
5035
5036 eval "$ac_cv_use_controls"
5037 if test "$no_cache" != 1; then
5038 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5039 fi
5040
5041 if test "$wxUSE_CONTROLS" = yes; then
5042 echo "$ac_t""yes" 1>&6
5043 else
5044 echo "$ac_t""no" 1>&6
5045 fi
5046
5047
5048if test "$wxUSE_CONTROLS" = "yes"; then
5049 DEFAULT_wxUSE_ACCEL=yes
5050 DEFAULT_wxUSE_BMPBUTTON=yes
5051 DEFAULT_wxUSE_BUTTON=yes
5052 DEFAULT_wxUSE_CALCTRL=no
5053 DEFAULT_wxUSE_CARET=yes
5054 DEFAULT_wxUSE_COMBOBOX=yes
5055 DEFAULT_wxUSE_CHECKBOX=yes
5056 DEFAULT_wxUSE_CHECKLISTBOX=yes
5057 DEFAULT_wxUSE_CHOICE=yes
5058 DEFAULT_wxUSE_GAUGE=yes
5059 DEFAULT_wxUSE_GRID=yes
5060 DEFAULT_wxUSE_NEW_GRID=yes
5061 DEFAULT_wxUSE_IMAGLIST=yes
5062 DEFAULT_wxUSE_LISTBOX=yes
5063 DEFAULT_wxUSE_LISTCTRL=yes
5064 DEFAULT_wxUSE_NOTEBOOK=yes
5065 DEFAULT_wxUSE_RADIOBOX=yes
5066 DEFAULT_wxUSE_RADIOBTN=yes
5067 DEFAULT_wxUSE_SASH=yes
5068 DEFAULT_wxUSE_SCROLLBAR=yes
5069 DEFAULT_wxUSE_SLIDER=yes
5070 DEFAULT_wxUSE_SPINBTN=yes
5071 DEFAULT_wxUSE_SPINCTRL=yes
5072 DEFAULT_wxUSE_SPLITTER=yes
5073 DEFAULT_wxUSE_STATBMP=yes
5074 DEFAULT_wxUSE_STATBOX=yes
5075 DEFAULT_wxUSE_STATLINE=yes
5076 DEFAULT_wxUSE_STATUSBAR=yes
5077 DEFAULT_wxUSE_TAB_DIALOG=yes
5078 DEFAULT_wxUSE_TOGGLEBTN=yes
5079 DEFAULT_wxUSE_TOOLBAR=yes
5080 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5081 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5082 DEFAULT_wxUSE_TOOLTIPS=yes
5083 DEFAULT_wxUSE_TREECTRL=yes
5084 DEFAULT_wxUSE_POPUPWIN=yes
5085elif test "$wxUSE_CONTROLS" = "no"; then
5086 DEFAULT_wxUSE_ACCEL=no
5087 DEFAULT_wxUSE_BMPBUTTON=no
5088 DEFAULT_wxUSE_BUTTON=no
5089 DEFAULT_wxUSE_CALCTRL=no
5090 DEFAULT_wxUSE_CARET=no
5091 DEFAULT_wxUSE_COMBOBOX=no
5092 DEFAULT_wxUSE_CHECKBOX=no
5093 DEFAULT_wxUSE_CHECKLISTBOX=no
5094 DEFAULT_wxUSE_CHOICE=no
5095 DEFAULT_wxUSE_GAUGE=no
5096 DEFAULT_wxUSE_GRID=no
5097 DEFAULT_wxUSE_NEW_GRID=no
5098 DEFAULT_wxUSE_IMAGLIST=no
5099 DEFAULT_wxUSE_LISTBOX=no
5100 DEFAULT_wxUSE_LISTCTRL=no
5101 DEFAULT_wxUSE_NOTEBOOK=no
5102 DEFAULT_wxUSE_RADIOBOX=no
5103 DEFAULT_wxUSE_RADIOBTN=no
5104 DEFAULT_wxUSE_SASH=no
5105 DEFAULT_wxUSE_SCROLLBAR=no
5106 DEFAULT_wxUSE_SLIDER=no
5107 DEFAULT_wxUSE_SPINBTN=no
5108 DEFAULT_wxUSE_SPINCTRL=no
5109 DEFAULT_wxUSE_SPLITTER=no
5110 DEFAULT_wxUSE_STATBMP=no
5111 DEFAULT_wxUSE_STATBOX=no
5112 DEFAULT_wxUSE_STATLINE=no
5113 DEFAULT_wxUSE_STATUSBAR=no
5114 DEFAULT_wxUSE_TAB_DIALOG=no
5115 DEFAULT_wxUSE_TOGGLEBTN=no
5116 DEFAULT_wxUSE_TOOLBAR=no
5117 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5118 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5119 DEFAULT_wxUSE_TOOLTIPS=no
5120 DEFAULT_wxUSE_TREECTRL=no
5121 DEFAULT_wxUSE_POPUPWIN=no
5122fi
5123
5124
5125 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5126echo "configure:5127: checking for --enable-accel" >&5
5127 no_cache=0
5128 # Check whether --enable-accel or --disable-accel was given.
5129if test "${enable_accel+set}" = set; then
5130 enableval="$enable_accel"
5131
5132 if test "$enableval" = yes; then
5133 ac_cv_use_accel='wxUSE_ACCEL=yes'
5134 else
5135 ac_cv_use_accel='wxUSE_ACCEL=no'
5136 fi
5137
5138else
5139
5140 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5141 if test "x$LINE" != x ; then
5142 eval "DEFAULT_$LINE"
5143 else
5144 no_cache=1
5145 fi
5146
5147 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5148
5149fi
5150
5151
5152 eval "$ac_cv_use_accel"
5153 if test "$no_cache" != 1; then
5154 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5155 fi
5156
5157 if test "$wxUSE_ACCEL" = yes; then
5158 echo "$ac_t""yes" 1>&6
5159 else
5160 echo "$ac_t""no" 1>&6
5161 fi
5162
5163
5164 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5165echo "configure:5166: checking for --enable-button" >&5
5166 no_cache=0
5167 # Check whether --enable-button or --disable-button was given.
5168if test "${enable_button+set}" = set; then
5169 enableval="$enable_button"
5170
5171 if test "$enableval" = yes; then
5172 ac_cv_use_button='wxUSE_BUTTON=yes'
5173 else
5174 ac_cv_use_button='wxUSE_BUTTON=no'
5175 fi
5176
5177else
5178
5179 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5180 if test "x$LINE" != x ; then
5181 eval "DEFAULT_$LINE"
5182 else
5183 no_cache=1
5184 fi
5185
5186 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5187
5188fi
5189
5190
5191 eval "$ac_cv_use_button"
5192 if test "$no_cache" != 1; then
5193 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5194 fi
5195
5196 if test "$wxUSE_BUTTON" = yes; then
5197 echo "$ac_t""yes" 1>&6
5198 else
5199 echo "$ac_t""no" 1>&6
5200 fi
5201
5202
5203 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5204echo "configure:5205: checking for --enable-bmpbutton" >&5
5205 no_cache=0
5206 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5207if test "${enable_bmpbutton+set}" = set; then
5208 enableval="$enable_bmpbutton"
5209
5210 if test "$enableval" = yes; then
5211 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5212 else
5213 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5214 fi
5215
5216else
5217
5218 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5219 if test "x$LINE" != x ; then
5220 eval "DEFAULT_$LINE"
5221 else
5222 no_cache=1
5223 fi
5224
5225 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5226
5227fi
5228
5229
5230 eval "$ac_cv_use_bmpbutton"
5231 if test "$no_cache" != 1; then
5232 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5233 fi
5234
5235 if test "$wxUSE_BMPBUTTON" = yes; then
5236 echo "$ac_t""yes" 1>&6
5237 else
5238 echo "$ac_t""no" 1>&6
5239 fi
5240
5241
5242 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5243echo "configure:5244: checking for --enable-calendar" >&5
5244 no_cache=0
5245 # Check whether --enable-calendar or --disable-calendar was given.
5246if test "${enable_calendar+set}" = set; then
5247 enableval="$enable_calendar"
5248
5249 if test "$enableval" = yes; then
5250 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5251 else
5252 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5253 fi
5254
5255else
5256
5257 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5258 if test "x$LINE" != x ; then
5259 eval "DEFAULT_$LINE"
5260 else
5261 no_cache=1
5262 fi
5263
5264 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5265
5266fi
5267
5268
5269 eval "$ac_cv_use_calendar"
5270 if test "$no_cache" != 1; then
5271 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5272 fi
5273
5274 if test "$wxUSE_CALCTRL" = yes; then
5275 echo "$ac_t""yes" 1>&6
5276 else
5277 echo "$ac_t""no" 1>&6
5278 fi
5279
5280
5281 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5282echo "configure:5283: checking for --enable-caret" >&5
5283 no_cache=0
5284 # Check whether --enable-caret or --disable-caret was given.
5285if test "${enable_caret+set}" = set; then
5286 enableval="$enable_caret"
5287
5288 if test "$enableval" = yes; then
5289 ac_cv_use_caret='wxUSE_CARET=yes'
5290 else
5291 ac_cv_use_caret='wxUSE_CARET=no'
5292 fi
5293
5294else
5295
5296 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5297 if test "x$LINE" != x ; then
5298 eval "DEFAULT_$LINE"
5299 else
5300 no_cache=1
5301 fi
5302
5303 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5304
5305fi
5306
5307
5308 eval "$ac_cv_use_caret"
5309 if test "$no_cache" != 1; then
5310 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5311 fi
5312
5313 if test "$wxUSE_CARET" = yes; then
5314 echo "$ac_t""yes" 1>&6
5315 else
5316 echo "$ac_t""no" 1>&6
5317 fi
5318
5319
5320 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5321echo "configure:5322: checking for --enable-checkbox" >&5
5322 no_cache=0
5323 # Check whether --enable-checkbox or --disable-checkbox was given.
5324if test "${enable_checkbox+set}" = set; then
5325 enableval="$enable_checkbox"
5326
5327 if test "$enableval" = yes; then
5328 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5329 else
5330 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5331 fi
5332
5333else
5334
5335 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5336 if test "x$LINE" != x ; then
5337 eval "DEFAULT_$LINE"
5338 else
5339 no_cache=1
5340 fi
5341
5342 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5343
5344fi
5345
5346
5347 eval "$ac_cv_use_checkbox"
5348 if test "$no_cache" != 1; then
5349 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5350 fi
5351
5352 if test "$wxUSE_CHECKBOX" = yes; then
5353 echo "$ac_t""yes" 1>&6
5354 else
5355 echo "$ac_t""no" 1>&6
5356 fi
5357
5358
5359 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5360echo "configure:5361: checking for --enable-checklst" >&5
5361 no_cache=0
5362 # Check whether --enable-checklst or --disable-checklst was given.
5363if test "${enable_checklst+set}" = set; then
5364 enableval="$enable_checklst"
5365
5366 if test "$enableval" = yes; then
5367 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5368 else
5369 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5370 fi
5371
5372else
5373
5374 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5375 if test "x$LINE" != x ; then
5376 eval "DEFAULT_$LINE"
5377 else
5378 no_cache=1
5379 fi
5380
5381 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5382
5383fi
5384
5385
5386 eval "$ac_cv_use_checklst"
5387 if test "$no_cache" != 1; then
5388 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5389 fi
5390
5391 if test "$wxUSE_CHECKLST" = yes; then
5392 echo "$ac_t""yes" 1>&6
5393 else
5394 echo "$ac_t""no" 1>&6
5395 fi
5396
5397
5398 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5399echo "configure:5400: checking for --enable-choice" >&5
5400 no_cache=0
5401 # Check whether --enable-choice or --disable-choice was given.
5402if test "${enable_choice+set}" = set; then
5403 enableval="$enable_choice"
5404
5405 if test "$enableval" = yes; then
5406 ac_cv_use_choice='wxUSE_CHOICE=yes'
5407 else
5408 ac_cv_use_choice='wxUSE_CHOICE=no'
5409 fi
5410
5411else
5412
5413 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5414 if test "x$LINE" != x ; then
5415 eval "DEFAULT_$LINE"
5416 else
5417 no_cache=1
5418 fi
5419
5420 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5421
5422fi
5423
5424
5425 eval "$ac_cv_use_choice"
5426 if test "$no_cache" != 1; then
5427 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5428 fi
5429
5430 if test "$wxUSE_CHOICE" = yes; then
5431 echo "$ac_t""yes" 1>&6
5432 else
5433 echo "$ac_t""no" 1>&6
5434 fi
5435
5436
5437 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5438echo "configure:5439: checking for --enable-combobox" >&5
5439 no_cache=0
5440 # Check whether --enable-combobox or --disable-combobox was given.
5441if test "${enable_combobox+set}" = set; then
5442 enableval="$enable_combobox"
5443
5444 if test "$enableval" = yes; then
5445 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5446 else
5447 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5448 fi
5449
5450else
5451
5452 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5453 if test "x$LINE" != x ; then
5454 eval "DEFAULT_$LINE"
5455 else
5456 no_cache=1
5457 fi
5458
5459 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5460
5461fi
5462
5463
5464 eval "$ac_cv_use_combobox"
5465 if test "$no_cache" != 1; then
5466 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5467 fi
5468
5469 if test "$wxUSE_COMBOBOX" = yes; then
5470 echo "$ac_t""yes" 1>&6
5471 else
5472 echo "$ac_t""no" 1>&6
5473 fi
5474
5475
5476 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
5477echo "configure:5478: checking for --enable-gauge" >&5
5478 no_cache=0
5479 # Check whether --enable-gauge or --disable-gauge was given.
5480if test "${enable_gauge+set}" = set; then
5481 enableval="$enable_gauge"
5482
5483 if test "$enableval" = yes; then
5484 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5485 else
5486 ac_cv_use_gauge='wxUSE_GAUGE=no'
5487 fi
5488
5489else
5490
5491 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5492 if test "x$LINE" != x ; then
5493 eval "DEFAULT_$LINE"
5494 else
5495 no_cache=1
5496 fi
5497
5498 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
5499
5500fi
5501
5502
5503 eval "$ac_cv_use_gauge"
5504 if test "$no_cache" != 1; then
5505 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5506 fi
5507
5508 if test "$wxUSE_GAUGE" = yes; then
5509 echo "$ac_t""yes" 1>&6
5510 else
5511 echo "$ac_t""no" 1>&6
5512 fi
5513
5514
5515 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
5516echo "configure:5517: checking for --enable-grid" >&5
5517 no_cache=0
5518 # Check whether --enable-grid or --disable-grid was given.
5519if test "${enable_grid+set}" = set; then
5520 enableval="$enable_grid"
5521
5522 if test "$enableval" = yes; then
5523 ac_cv_use_grid='wxUSE_GRID=yes'
5524 else
5525 ac_cv_use_grid='wxUSE_GRID=no'
5526 fi
5527
5528else
5529
5530 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5531 if test "x$LINE" != x ; then
5532 eval "DEFAULT_$LINE"
5533 else
5534 no_cache=1
5535 fi
5536
5537 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5538
5539fi
5540
5541
5542 eval "$ac_cv_use_grid"
5543 if test "$no_cache" != 1; then
5544 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5545 fi
5546
5547 if test "$wxUSE_GRID" = yes; then
5548 echo "$ac_t""yes" 1>&6
5549 else
5550 echo "$ac_t""no" 1>&6
5551 fi
5552
5553
5554 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
5555echo "configure:5556: checking for --enable-newgrid" >&5
5556 no_cache=0
5557 # Check whether --enable-newgrid or --disable-newgrid was given.
5558if test "${enable_newgrid+set}" = set; then
5559 enableval="$enable_newgrid"
5560
5561 if test "$enableval" = yes; then
5562 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5563 else
5564 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5565 fi
5566
5567else
5568
5569 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5570 if test "x$LINE" != x ; then
5571 eval "DEFAULT_$LINE"
5572 else
5573 no_cache=1
5574 fi
5575
5576 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
5577
5578fi
5579
5580
5581 eval "$ac_cv_use_newgrid"
5582 if test "$no_cache" != 1; then
5583 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5584 fi
5585
5586 if test "$wxUSE_NEW_GRID" = yes; then
5587 echo "$ac_t""yes" 1>&6
5588 else
5589 echo "$ac_t""no" 1>&6
5590 fi
5591
5592
5593 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
5594echo "configure:5595: checking for --enable-imaglist" >&5
5595 no_cache=0
5596 # Check whether --enable-imaglist or --disable-imaglist was given.
5597if test "${enable_imaglist+set}" = set; then
5598 enableval="$enable_imaglist"
5599
5600 if test "$enableval" = yes; then
5601 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5602 else
5603 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5604 fi
5605
5606else
5607
5608 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5609 if test "x$LINE" != x ; then
5610 eval "DEFAULT_$LINE"
5611 else
5612 no_cache=1
5613 fi
5614
5615 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
5616
5617fi
5618
5619
5620 eval "$ac_cv_use_imaglist"
5621 if test "$no_cache" != 1; then
5622 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5623 fi
5624
5625 if test "$wxUSE_IMAGLIST" = yes; then
5626 echo "$ac_t""yes" 1>&6
5627 else
5628 echo "$ac_t""no" 1>&6
5629 fi
5630
5631
5632 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
5633echo "configure:5634: checking for --enable-listbox" >&5
5634 no_cache=0
5635 # Check whether --enable-listbox or --disable-listbox was given.
5636if test "${enable_listbox+set}" = set; then
5637 enableval="$enable_listbox"
5638
5639 if test "$enableval" = yes; then
5640 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5641 else
5642 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5643 fi
5644
5645else
5646
5647 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5648 if test "x$LINE" != x ; then
5649 eval "DEFAULT_$LINE"
5650 else
5651 no_cache=1
5652 fi
5653
5654 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
5655
5656fi
5657
5658
5659 eval "$ac_cv_use_listbox"
5660 if test "$no_cache" != 1; then
5661 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5662 fi
5663
5664 if test "$wxUSE_LISTBOX" = yes; then
5665 echo "$ac_t""yes" 1>&6
5666 else
5667 echo "$ac_t""no" 1>&6
5668 fi
5669
5670
5671 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
5672echo "configure:5673: checking for --enable-listctrl" >&5
5673 no_cache=0
5674 # Check whether --enable-listctrl or --disable-listctrl was given.
5675if test "${enable_listctrl+set}" = set; then
5676 enableval="$enable_listctrl"
5677
5678 if test "$enableval" = yes; then
5679 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5680 else
5681 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5682 fi
5683
5684else
5685
5686 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5687 if test "x$LINE" != x ; then
5688 eval "DEFAULT_$LINE"
5689 else
5690 no_cache=1
5691 fi
5692
5693 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
5694
5695fi
5696
5697
5698 eval "$ac_cv_use_listctrl"
5699 if test "$no_cache" != 1; then
5700 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5701 fi
5702
5703 if test "$wxUSE_LISTCTRL" = yes; then
5704 echo "$ac_t""yes" 1>&6
5705 else
5706 echo "$ac_t""no" 1>&6
5707 fi
5708
5709
5710 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
5711echo "configure:5712: checking for --enable-notebook" >&5
5712 no_cache=0
5713 # Check whether --enable-notebook or --disable-notebook was given.
5714if test "${enable_notebook+set}" = set; then
5715 enableval="$enable_notebook"
5716
5717 if test "$enableval" = yes; then
5718 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5719 else
5720 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5721 fi
5722
5723else
5724
5725 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5726 if test "x$LINE" != x ; then
5727 eval "DEFAULT_$LINE"
5728 else
5729 no_cache=1
5730 fi
5731
5732 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
5733
5734fi
5735
5736
5737 eval "$ac_cv_use_notebook"
5738 if test "$no_cache" != 1; then
5739 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5740 fi
5741
5742 if test "$wxUSE_NOTEBOOK" = yes; then
5743 echo "$ac_t""yes" 1>&6
5744 else
5745 echo "$ac_t""no" 1>&6
5746 fi
5747
5748
5749 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
5750echo "configure:5751: checking for --enable-radiobox" >&5
5751 no_cache=0
5752 # Check whether --enable-radiobox or --disable-radiobox was given.
5753if test "${enable_radiobox+set}" = set; then
5754 enableval="$enable_radiobox"
5755
5756 if test "$enableval" = yes; then
5757 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5758 else
5759 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5760 fi
5761
5762else
5763
5764 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5765 if test "x$LINE" != x ; then
5766 eval "DEFAULT_$LINE"
5767 else
5768 no_cache=1
5769 fi
5770
5771 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
5772
5773fi
5774
5775
5776 eval "$ac_cv_use_radiobox"
5777 if test "$no_cache" != 1; then
5778 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5779 fi
5780
5781 if test "$wxUSE_RADIOBOX" = yes; then
5782 echo "$ac_t""yes" 1>&6
5783 else
5784 echo "$ac_t""no" 1>&6
5785 fi
5786
5787
5788 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
5789echo "configure:5790: checking for --enable-radiobtn" >&5
5790 no_cache=0
5791 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5792if test "${enable_radiobtn+set}" = set; then
5793 enableval="$enable_radiobtn"
5794
5795 if test "$enableval" = yes; then
5796 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5797 else
5798 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5799 fi
5800
5801else
5802
5803 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5804 if test "x$LINE" != x ; then
5805 eval "DEFAULT_$LINE"
5806 else
5807 no_cache=1
5808 fi
5809
5810 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
5811
5812fi
5813
5814
5815 eval "$ac_cv_use_radiobtn"
5816 if test "$no_cache" != 1; then
5817 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5818 fi
5819
5820 if test "$wxUSE_RADIOBTN" = yes; then
5821 echo "$ac_t""yes" 1>&6
5822 else
5823 echo "$ac_t""no" 1>&6
5824 fi
5825
5826
5827 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
5828echo "configure:5829: checking for --enable-sash" >&5
5829 no_cache=0
5830 # Check whether --enable-sash or --disable-sash was given.
5831if test "${enable_sash+set}" = set; then
5832 enableval="$enable_sash"
5833
5834 if test "$enableval" = yes; then
5835 ac_cv_use_sash='wxUSE_SASH=yes'
5836 else
5837 ac_cv_use_sash='wxUSE_SASH=no'
5838 fi
5839
5840else
5841
5842 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5843 if test "x$LINE" != x ; then
5844 eval "DEFAULT_$LINE"
5845 else
5846 no_cache=1
5847 fi
5848
5849 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
5850
5851fi
5852
5853
5854 eval "$ac_cv_use_sash"
5855 if test "$no_cache" != 1; then
5856 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5857 fi
5858
5859 if test "$wxUSE_SASH" = yes; then
5860 echo "$ac_t""yes" 1>&6
5861 else
5862 echo "$ac_t""no" 1>&6
5863 fi
5864
5865
5866 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
5867echo "configure:5868: checking for --enable-scrollbar" >&5
5868 no_cache=0
5869 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5870if test "${enable_scrollbar+set}" = set; then
5871 enableval="$enable_scrollbar"
5872
5873 if test "$enableval" = yes; then
5874 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5875 else
5876 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5877 fi
5878
5879else
5880
5881 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5882 if test "x$LINE" != x ; then
5883 eval "DEFAULT_$LINE"
5884 else
5885 no_cache=1
5886 fi
5887
5888 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
5889
5890fi
5891
5892
5893 eval "$ac_cv_use_scrollbar"
5894 if test "$no_cache" != 1; then
5895 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5896 fi
5897
5898 if test "$wxUSE_SCROLLBAR" = yes; then
5899 echo "$ac_t""yes" 1>&6
5900 else
5901 echo "$ac_t""no" 1>&6
5902 fi
5903
5904
5905 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
5906echo "configure:5907: checking for --enable-slider" >&5
5907 no_cache=0
5908 # Check whether --enable-slider or --disable-slider was given.
5909if test "${enable_slider+set}" = set; then
5910 enableval="$enable_slider"
5911
5912 if test "$enableval" = yes; then
5913 ac_cv_use_slider='wxUSE_SLIDER=yes'
5914 else
5915 ac_cv_use_slider='wxUSE_SLIDER=no'
5916 fi
5917
5918else
5919
5920 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5921 if test "x$LINE" != x ; then
5922 eval "DEFAULT_$LINE"
5923 else
5924 no_cache=1
5925 fi
5926
5927 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
5928
5929fi
5930
5931
5932 eval "$ac_cv_use_slider"
5933 if test "$no_cache" != 1; then
5934 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5935 fi
5936
5937 if test "$wxUSE_SLIDER" = yes; then
5938 echo "$ac_t""yes" 1>&6
5939 else
5940 echo "$ac_t""no" 1>&6
5941 fi
5942
5943
5944 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
5945echo "configure:5946: checking for --enable-spinbtn" >&5
5946 no_cache=0
5947 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5948if test "${enable_spinbtn+set}" = set; then
5949 enableval="$enable_spinbtn"
5950
5951 if test "$enableval" = yes; then
5952 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5953 else
5954 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5955 fi
5956
5957else
5958
5959 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5960 if test "x$LINE" != x ; then
5961 eval "DEFAULT_$LINE"
5962 else
5963 no_cache=1
5964 fi
5965
5966 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
5967
5968fi
5969
5970
5971 eval "$ac_cv_use_spinbtn"
5972 if test "$no_cache" != 1; then
5973 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5974 fi
5975
5976 if test "$wxUSE_SPINBTN" = yes; then
5977 echo "$ac_t""yes" 1>&6
5978 else
5979 echo "$ac_t""no" 1>&6
5980 fi
5981
5982
5983 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
5984echo "configure:5985: checking for --enable-spinctrl" >&5
5985 no_cache=0
5986 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5987if test "${enable_spinctrl+set}" = set; then
5988 enableval="$enable_spinctrl"
5989
5990 if test "$enableval" = yes; then
5991 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
5992 else
5993 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
5994 fi
5995
5996else
5997
5998 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
5999 if test "x$LINE" != x ; then
6000 eval "DEFAULT_$LINE"
6001 else
6002 no_cache=1
6003 fi
6004
6005 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6006
6007fi
6008
6009
6010 eval "$ac_cv_use_spinctrl"
6011 if test "$no_cache" != 1; then
6012 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6013 fi
6014
6015 if test "$wxUSE_SPINCTRL" = yes; then
6016 echo "$ac_t""yes" 1>&6
6017 else
6018 echo "$ac_t""no" 1>&6
6019 fi
6020
6021
6022 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6023echo "configure:6024: checking for --enable-splitter" >&5
6024 no_cache=0
6025 # Check whether --enable-splitter or --disable-splitter was given.
6026if test "${enable_splitter+set}" = set; then
6027 enableval="$enable_splitter"
6028
6029 if test "$enableval" = yes; then
6030 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6031 else
6032 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6033 fi
6034
6035else
6036
6037 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6038 if test "x$LINE" != x ; then
6039 eval "DEFAULT_$LINE"
6040 else
6041 no_cache=1
6042 fi
6043
6044 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6045
6046fi
6047
6048
6049 eval "$ac_cv_use_splitter"
6050 if test "$no_cache" != 1; then
6051 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6052 fi
6053
6054 if test "$wxUSE_SPLITTER" = yes; then
6055 echo "$ac_t""yes" 1>&6
6056 else
6057 echo "$ac_t""no" 1>&6
6058 fi
6059
6060
6061 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6062echo "configure:6063: checking for --enable-statbmp" >&5
6063 no_cache=0
6064 # Check whether --enable-statbmp or --disable-statbmp was given.
6065if test "${enable_statbmp+set}" = set; then
6066 enableval="$enable_statbmp"
6067
6068 if test "$enableval" = yes; then
6069 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6070 else
6071 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6072 fi
6073
6074else
6075
6076 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6077 if test "x$LINE" != x ; then
6078 eval "DEFAULT_$LINE"
6079 else
6080 no_cache=1
6081 fi
6082
6083 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6084
6085fi
6086
6087
6088 eval "$ac_cv_use_statbmp"
6089 if test "$no_cache" != 1; then
6090 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6091 fi
6092
6093 if test "$wxUSE_STATBMP" = yes; then
6094 echo "$ac_t""yes" 1>&6
6095 else
6096 echo "$ac_t""no" 1>&6
6097 fi
6098
6099
6100 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6101echo "configure:6102: checking for --enable-statbox" >&5
6102 no_cache=0
6103 # Check whether --enable-statbox or --disable-statbox was given.
6104if test "${enable_statbox+set}" = set; then
6105 enableval="$enable_statbox"
6106
6107 if test "$enableval" = yes; then
6108 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6109 else
6110 ac_cv_use_statbox='wxUSE_STATBOX=no'
6111 fi
6112
6113else
6114
6115 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6116 if test "x$LINE" != x ; then
6117 eval "DEFAULT_$LINE"
6118 else
6119 no_cache=1
6120 fi
6121
6122 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6123
6124fi
6125
6126
6127 eval "$ac_cv_use_statbox"
6128 if test "$no_cache" != 1; then
6129 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6130 fi
6131
6132 if test "$wxUSE_STATBOX" = yes; then
6133 echo "$ac_t""yes" 1>&6
6134 else
6135 echo "$ac_t""no" 1>&6
6136 fi
6137
6138
6139 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6140echo "configure:6141: checking for --enable-statline" >&5
6141 no_cache=0
6142 # Check whether --enable-statline or --disable-statline was given.
6143if test "${enable_statline+set}" = set; then
6144 enableval="$enable_statline"
6145
6146 if test "$enableval" = yes; then
6147 ac_cv_use_statline='wxUSE_STATLINE=yes'
6148 else
6149 ac_cv_use_statline='wxUSE_STATLINE=no'
6150 fi
6151
6152else
6153
6154 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6155 if test "x$LINE" != x ; then
6156 eval "DEFAULT_$LINE"
6157 else
6158 no_cache=1
6159 fi
6160
6161 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6162
6163fi
6164
6165
6166 eval "$ac_cv_use_statline"
6167 if test "$no_cache" != 1; then
6168 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6169 fi
6170
6171 if test "$wxUSE_STATLINE" = yes; then
6172 echo "$ac_t""yes" 1>&6
6173 else
6174 echo "$ac_t""no" 1>&6
6175 fi
6176
6177
6178 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6179echo "configure:6180: checking for --enable-stattext" >&5
6180 no_cache=0
6181 # Check whether --enable-stattext or --disable-stattext was given.
6182if test "${enable_stattext+set}" = set; then
6183 enableval="$enable_stattext"
6184
6185 if test "$enableval" = yes; then
6186 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6187 else
6188 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6189 fi
6190
6191else
6192
6193 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6194 if test "x$LINE" != x ; then
6195 eval "DEFAULT_$LINE"
6196 else
6197 no_cache=1
6198 fi
6199
6200 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6201
6202fi
6203
6204
6205 eval "$ac_cv_use_stattext"
6206 if test "$no_cache" != 1; then
6207 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6208 fi
6209
6210 if test "$wxUSE_STATTEXT" = yes; then
6211 echo "$ac_t""yes" 1>&6
6212 else
6213 echo "$ac_t""no" 1>&6
6214 fi
6215
6216
6217 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6218echo "configure:6219: checking for --enable-statusbar" >&5
6219 no_cache=0
6220 # Check whether --enable-statusbar or --disable-statusbar was given.
6221if test "${enable_statusbar+set}" = set; then
6222 enableval="$enable_statusbar"
6223
6224 if test "$enableval" = yes; then
6225 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6226 else
6227 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6228 fi
6229
6230else
6231
6232 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6233 if test "x$LINE" != x ; then
6234 eval "DEFAULT_$LINE"
6235 else
6236 no_cache=1
6237 fi
6238
6239 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6240
6241fi
6242
6243
6244 eval "$ac_cv_use_statusbar"
6245 if test "$no_cache" != 1; then
6246 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6247 fi
6248
6249 if test "$wxUSE_STATUSBAR" = yes; then
6250 echo "$ac_t""yes" 1>&6
6251 else
6252 echo "$ac_t""no" 1>&6
6253 fi
6254
6255
6256 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6257echo "configure:6258: checking for --enable-tabdialog" >&5
6258 no_cache=0
6259 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6260if test "${enable_tabdialog+set}" = set; then
6261 enableval="$enable_tabdialog"
6262
6263 if test "$enableval" = yes; then
6264 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6265 else
6266 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6267 fi
6268
6269else
6270
6271 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6272 if test "x$LINE" != x ; then
6273 eval "DEFAULT_$LINE"
6274 else
6275 no_cache=1
6276 fi
6277
6278 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6279
6280fi
6281
6282
6283 eval "$ac_cv_use_tabdialog"
6284 if test "$no_cache" != 1; then
6285 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6286 fi
6287
6288 if test "$wxUSE_TABDIALOG" = yes; then
6289 echo "$ac_t""yes" 1>&6
6290 else
6291 echo "$ac_t""no" 1>&6
6292 fi
6293
6294
6295 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6296echo "configure:6297: checking for --enable-textctrl" >&5
6297 no_cache=0
6298 # Check whether --enable-textctrl or --disable-textctrl was given.
6299if test "${enable_textctrl+set}" = set; then
6300 enableval="$enable_textctrl"
6301
6302 if test "$enableval" = yes; then
6303 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6304 else
6305 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6306 fi
6307
6308else
6309
6310 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6311 if test "x$LINE" != x ; then
6312 eval "DEFAULT_$LINE"
6313 else
6314 no_cache=1
6315 fi
6316
6317 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6318
6319fi
6320
6321
6322 eval "$ac_cv_use_textctrl"
6323 if test "$no_cache" != 1; then
6324 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6325 fi
6326
6327 if test "$wxUSE_TEXTCTRL" = yes; then
6328 echo "$ac_t""yes" 1>&6
6329 else
6330 echo "$ac_t""no" 1>&6
6331 fi
6332
6333
6334 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6335echo "configure:6336: checking for --enable-togglebtn" >&5
6336 no_cache=0
6337 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6338if test "${enable_togglebtn+set}" = set; then
6339 enableval="$enable_togglebtn"
6340
6341 if test "$enableval" = yes; then
6342 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6343 else
6344 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6345 fi
6346
6347else
6348
6349 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6350 if test "x$LINE" != x ; then
6351 eval "DEFAULT_$LINE"
6352 else
6353 no_cache=1
6354 fi
6355
6356 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6357
6358fi
6359
6360
6361 eval "$ac_cv_use_togglebtn"
6362 if test "$no_cache" != 1; then
6363 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6364 fi
6365
6366 if test "$wxUSE_TOGGLEBTN" = yes; then
6367 echo "$ac_t""yes" 1>&6
6368 else
6369 echo "$ac_t""no" 1>&6
6370 fi
6371
6372
6373 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6374echo "configure:6375: checking for --enable-toolbar" >&5
6375 no_cache=0
6376 # Check whether --enable-toolbar or --disable-toolbar was given.
6377if test "${enable_toolbar+set}" = set; then
6378 enableval="$enable_toolbar"
6379
6380 if test "$enableval" = yes; then
6381 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6382 else
6383 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6384 fi
6385
6386else
6387
6388 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6389 if test "x$LINE" != x ; then
6390 eval "DEFAULT_$LINE"
6391 else
6392 no_cache=1
6393 fi
6394
6395 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6396
6397fi
6398
6399
6400 eval "$ac_cv_use_toolbar"
6401 if test "$no_cache" != 1; then
6402 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6403 fi
6404
6405 if test "$wxUSE_TOOLBAR" = yes; then
6406 echo "$ac_t""yes" 1>&6
6407 else
6408 echo "$ac_t""no" 1>&6
6409 fi
6410
6411
6412 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6413echo "configure:6414: checking for --enable-tbarnative" >&5
6414 no_cache=0
6415 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6416if test "${enable_tbarnative+set}" = set; then
6417 enableval="$enable_tbarnative"
6418
6419 if test "$enableval" = yes; then
6420 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6421 else
6422 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6423 fi
6424
6425else
6426
6427 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6428 if test "x$LINE" != x ; then
6429 eval "DEFAULT_$LINE"
6430 else
6431 no_cache=1
6432 fi
6433
6434 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
6435
6436fi
6437
6438
6439 eval "$ac_cv_use_tbarnative"
6440 if test "$no_cache" != 1; then
6441 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6442 fi
6443
6444 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6445 echo "$ac_t""yes" 1>&6
6446 else
6447 echo "$ac_t""no" 1>&6
6448 fi
6449
6450
6451 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
6452echo "configure:6453: checking for --enable-tbarsmpl" >&5
6453 no_cache=0
6454 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6455if test "${enable_tbarsmpl+set}" = set; then
6456 enableval="$enable_tbarsmpl"
6457
6458 if test "$enableval" = yes; then
6459 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6460 else
6461 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6462 fi
6463
6464else
6465
6466 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6467 if test "x$LINE" != x ; then
6468 eval "DEFAULT_$LINE"
6469 else
6470 no_cache=1
6471 fi
6472
6473 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
6474
6475fi
6476
6477
6478 eval "$ac_cv_use_tbarsmpl"
6479 if test "$no_cache" != 1; then
6480 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6481 fi
6482
6483 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
6484 echo "$ac_t""yes" 1>&6
6485 else
6486 echo "$ac_t""no" 1>&6
6487 fi
6488
6489
6490 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
6491echo "configure:6492: checking for --enable-treectrl" >&5
6492 no_cache=0
6493 # Check whether --enable-treectrl or --disable-treectrl was given.
6494if test "${enable_treectrl+set}" = set; then
6495 enableval="$enable_treectrl"
6496
6497 if test "$enableval" = yes; then
6498 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6499 else
6500 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6501 fi
6502
6503else
6504
6505 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6506 if test "x$LINE" != x ; then
6507 eval "DEFAULT_$LINE"
6508 else
6509 no_cache=1
6510 fi
6511
6512 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
6513
6514fi
6515
6516
6517 eval "$ac_cv_use_treectrl"
6518 if test "$no_cache" != 1; then
6519 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6520 fi
6521
6522 if test "$wxUSE_TREECTRL" = yes; then
6523 echo "$ac_t""yes" 1>&6
6524 else
6525 echo "$ac_t""no" 1>&6
6526 fi
6527
6528
6529 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
6530echo "configure:6531: checking for --enable-popupwin" >&5
6531 no_cache=0
6532 # Check whether --enable-popupwin or --disable-popupwin was given.
6533if test "${enable_popupwin+set}" = set; then
6534 enableval="$enable_popupwin"
6535
6536 if test "$enableval" = yes; then
6537 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6538 else
6539 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6540 fi
6541
6542else
6543
6544 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6545 if test "x$LINE" != x ; then
6546 eval "DEFAULT_$LINE"
6547 else
6548 no_cache=1
6549 fi
6550
6551 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6552
6553fi
6554
6555
6556 eval "$ac_cv_use_popupwin"
6557 if test "$no_cache" != 1; then
6558 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6559 fi
6560
6561 if test "$wxUSE_POPUPWIN" = yes; then
6562 echo "$ac_t""yes" 1>&6
6563 else
6564 echo "$ac_t""no" 1>&6
6565 fi
6566
6567
6568
6569
6570 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
6571echo "configure:6572: checking for --enable-commondlg" >&5
6572 no_cache=0
6573 # Check whether --enable-commondlg or --disable-commondlg was given.
6574if test "${enable_commondlg+set}" = set; then
6575 enableval="$enable_commondlg"
6576
6577 if test "$enableval" = yes; then
6578 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6579 else
6580 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6581 fi
6582
6583else
6584
6585 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6586 if test "x$LINE" != x ; then
6587 eval "DEFAULT_$LINE"
6588 else
6589 no_cache=1
6590 fi
6591
6592 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6593
6594fi
6595
6596
6597 eval "$ac_cv_use_commondlg"
6598 if test "$no_cache" != 1; then
6599 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6600 fi
6601
6602 if test "$wxUSE_COMMONDLGS" = yes; then
6603 echo "$ac_t""yes" 1>&6
6604 else
6605 echo "$ac_t""no" 1>&6
6606 fi
6607
6608
6609 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
6610echo "configure:6611: checking for --enable-choicedlg" >&5
6611 no_cache=0
6612 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6613if test "${enable_choicedlg+set}" = set; then
6614 enableval="$enable_choicedlg"
6615
6616 if test "$enableval" = yes; then
6617 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6618 else
6619 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6620 fi
6621
6622else
6623
6624 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6625 if test "x$LINE" != x ; then
6626 eval "DEFAULT_$LINE"
6627 else
6628 no_cache=1
6629 fi
6630
6631 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6632
6633fi
6634
6635
6636 eval "$ac_cv_use_choicedlg"
6637 if test "$no_cache" != 1; then
6638 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6639 fi
6640
6641 if test "$wxUSE_CHOICEDLG" = yes; then
6642 echo "$ac_t""yes" 1>&6
6643 else
6644 echo "$ac_t""no" 1>&6
6645 fi
6646
6647
6648 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
6649echo "configure:6650: checking for --enable-coldlg" >&5
6650 no_cache=0
6651 # Check whether --enable-coldlg or --disable-coldlg was given.
6652if test "${enable_coldlg+set}" = set; then
6653 enableval="$enable_coldlg"
6654
6655 if test "$enableval" = yes; then
6656 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6657 else
6658 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6659 fi
6660
6661else
6662
6663 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6664 if test "x$LINE" != x ; then
6665 eval "DEFAULT_$LINE"
6666 else
6667 no_cache=1
6668 fi
6669
6670 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6671
6672fi
6673
6674
6675 eval "$ac_cv_use_coldlg"
6676 if test "$no_cache" != 1; then
6677 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6678 fi
6679
6680 if test "$wxUSE_COLOURDLG" = yes; then
6681 echo "$ac_t""yes" 1>&6
6682 else
6683 echo "$ac_t""no" 1>&6
6684 fi
6685
6686
6687 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6688echo "configure:6689: checking for --enable-filedlg" >&5
6689 no_cache=0
6690 # Check whether --enable-filedlg or --disable-filedlg was given.
6691if test "${enable_filedlg+set}" = set; then
6692 enableval="$enable_filedlg"
6693
6694 if test "$enableval" = yes; then
6695 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6696 else
6697 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6698 fi
6699
6700else
6701
6702 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6703 if test "x$LINE" != x ; then
6704 eval "DEFAULT_$LINE"
6705 else
6706 no_cache=1
6707 fi
6708
6709 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6710
6711fi
6712
6713
6714 eval "$ac_cv_use_filedlg"
6715 if test "$no_cache" != 1; then
6716 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6717 fi
6718
6719 if test "$wxUSE_FILEDLG" = yes; then
6720 echo "$ac_t""yes" 1>&6
6721 else
6722 echo "$ac_t""no" 1>&6
6723 fi
6724
6725
6726 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
6727echo "configure:6728: checking for --enable-fontdlg" >&5
6728 no_cache=0
6729 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6730if test "${enable_fontdlg+set}" = set; then
6731 enableval="$enable_fontdlg"
6732
6733 if test "$enableval" = yes; then
6734 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6735 else
6736 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6737 fi
6738
6739else
6740
6741 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6742 if test "x$LINE" != x ; then
6743 eval "DEFAULT_$LINE"
6744 else
6745 no_cache=1
6746 fi
6747
6748 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6749
6750fi
6751
6752
6753 eval "$ac_cv_use_fontdlg"
6754 if test "$no_cache" != 1; then
6755 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6756 fi
6757
6758 if test "$wxUSE_FONTDLG" = yes; then
6759 echo "$ac_t""yes" 1>&6
6760 else
6761 echo "$ac_t""no" 1>&6
6762 fi
6763
6764
6765 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
6766echo "configure:6767: checking for --enable-dirdlg" >&5
6767 no_cache=0
6768 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6769if test "${enable_dirdlg+set}" = set; then
6770 enableval="$enable_dirdlg"
6771
6772 if test "$enableval" = yes; then
6773 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6774 else
6775 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6776 fi
6777
6778else
6779
6780 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6781 if test "x$LINE" != x ; then
6782 eval "DEFAULT_$LINE"
6783 else
6784 no_cache=1
6785 fi
6786
6787 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6788
6789fi
6790
6791
6792 eval "$ac_cv_use_dirdlg"
6793 if test "$no_cache" != 1; then
6794 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
6795 fi
6796
6797 if test "$wxUSE_DIRDLG" = yes; then
6798 echo "$ac_t""yes" 1>&6
6799 else
6800 echo "$ac_t""no" 1>&6
6801 fi
6802
6803
6804 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
6805echo "configure:6806: checking for --enable-msgdlg" >&5
6806 no_cache=0
6807 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6808if test "${enable_msgdlg+set}" = set; then
6809 enableval="$enable_msgdlg"
6810
6811 if test "$enableval" = yes; then
6812 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
6813 else
6814 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
6815 fi
6816
6817else
6818
6819 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
6820 if test "x$LINE" != x ; then
6821 eval "DEFAULT_$LINE"
6822 else
6823 no_cache=1
6824 fi
6825
6826 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
6827
6828fi
6829
6830
6831 eval "$ac_cv_use_msgdlg"
6832 if test "$no_cache" != 1; then
6833 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
6834 fi
6835
6836 if test "$wxUSE_MSGDLG" = yes; then
6837 echo "$ac_t""yes" 1>&6
6838 else
6839 echo "$ac_t""no" 1>&6
6840 fi
6841
6842
6843 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
6844echo "configure:6845: checking for --enable-numberdlg" >&5
6845 no_cache=0
6846 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6847if test "${enable_numberdlg+set}" = set; then
6848 enableval="$enable_numberdlg"
6849
6850 if test "$enableval" = yes; then
6851 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
6852 else
6853 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
6854 fi
6855
6856else
6857
6858 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
6859 if test "x$LINE" != x ; then
6860 eval "DEFAULT_$LINE"
6861 else
6862 no_cache=1
6863 fi
6864
6865 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
6866
6867fi
6868
6869
6870 eval "$ac_cv_use_numberdlg"
6871 if test "$no_cache" != 1; then
6872 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
6873 fi
6874
6875 if test "$wxUSE_NUMBERDLG" = yes; then
6876 echo "$ac_t""yes" 1>&6
6877 else
6878 echo "$ac_t""no" 1>&6
6879 fi
6880
6881
6882 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
6883echo "configure:6884: checking for --enable-textdlg" >&5
6884 no_cache=0
6885 # Check whether --enable-textdlg or --disable-textdlg was given.
6886if test "${enable_textdlg+set}" = set; then
6887 enableval="$enable_textdlg"
6888
6889 if test "$enableval" = yes; then
6890 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6891 else
6892 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6893 fi
6894
6895else
6896
6897 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6898 if test "x$LINE" != x ; then
6899 eval "DEFAULT_$LINE"
6900 else
6901 no_cache=1
6902 fi
6903
6904 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
6905
6906fi
6907
6908
6909 eval "$ac_cv_use_textdlg"
6910 if test "$no_cache" != 1; then
6911 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
6912 fi
6913
6914 if test "$wxUSE_TEXTDLG" = yes; then
6915 echo "$ac_t""yes" 1>&6
6916 else
6917 echo "$ac_t""no" 1>&6
6918 fi
6919
6920
6921 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
6922echo "configure:6923: checking for --enable-tipdlg" >&5
6923 no_cache=0
6924 # Check whether --enable-tipdlg or --disable-tipdlg was given.
6925if test "${enable_tipdlg+set}" = set; then
6926 enableval="$enable_tipdlg"
6927
6928 if test "$enableval" = yes; then
6929 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
6930 else
6931 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
6932 fi
6933
6934else
6935
6936 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
6937 if test "x$LINE" != x ; then
6938 eval "DEFAULT_$LINE"
6939 else
6940 no_cache=1
6941 fi
6942
6943 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
6944
6945fi
6946
6947
6948 eval "$ac_cv_use_tipdlg"
6949 if test "$no_cache" != 1; then
6950 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
6951 fi
6952
6953 if test "$wxUSE_STARTUP_TIPS" = yes; then
6954 echo "$ac_t""yes" 1>&6
6955 else
6956 echo "$ac_t""no" 1>&6
6957 fi
6958
6959
6960 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
6961echo "configure:6962: checking for --enable-progressdlg" >&5
6962 no_cache=0
6963 # Check whether --enable-progressdlg or --disable-progressdlg was given.
6964if test "${enable_progressdlg+set}" = set; then
6965 enableval="$enable_progressdlg"
6966
6967 if test "$enableval" = yes; then
6968 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
6969 else
6970 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
6971 fi
6972
6973else
6974
6975 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
6976 if test "x$LINE" != x ; then
6977 eval "DEFAULT_$LINE"
6978 else
6979 no_cache=1
6980 fi
6981
6982 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
6983
6984fi
6985
6986
6987 eval "$ac_cv_use_progressdlg"
6988 if test "$no_cache" != 1; then
6989 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
6990 fi
6991
6992 if test "$wxUSE_PROGRESSDLG" = yes; then
6993 echo "$ac_t""yes" 1>&6
6994 else
6995 echo "$ac_t""no" 1>&6
6996 fi
6997
6998
6999 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7000echo "configure:7001: checking for --enable-wizarddlg" >&5
7001 no_cache=0
7002 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7003if test "${enable_wizarddlg+set}" = set; then
7004 enableval="$enable_wizarddlg"
7005
7006 if test "$enableval" = yes; then
7007 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7008 else
7009 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7010 fi
7011
7012else
7013
7014 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7015 if test "x$LINE" != x ; then
7016 eval "DEFAULT_$LINE"
7017 else
7018 no_cache=1
7019 fi
7020
7021 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7022
7023fi
7024
7025
7026 eval "$ac_cv_use_wizarddlg"
7027 if test "$no_cache" != 1; then
7028 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7029 fi
7030
7031 if test "$wxUSE_WIZARDDLG" = yes; then
7032 echo "$ac_t""yes" 1>&6
7033 else
7034 echo "$ac_t""no" 1>&6
7035 fi
7036
7037
7038
7039
7040 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7041echo "configure:7042: checking for --enable-menus" >&5
7042 no_cache=0
7043 # Check whether --enable-menus or --disable-menus was given.
7044if test "${enable_menus+set}" = set; then
7045 enableval="$enable_menus"
7046
7047 if test "$enableval" = yes; then
7048 ac_cv_use_menus='wxUSE_MENUS=yes'
7049 else
7050 ac_cv_use_menus='wxUSE_MENUS=no'
7051 fi
7052
7053else
7054
7055 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7056 if test "x$LINE" != x ; then
7057 eval "DEFAULT_$LINE"
7058 else
7059 no_cache=1
7060 fi
7061
7062 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7063
7064fi
7065
7066
7067 eval "$ac_cv_use_menus"
7068 if test "$no_cache" != 1; then
7069 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7070 fi
7071
7072 if test "$wxUSE_MENUS" = yes; then
7073 echo "$ac_t""yes" 1>&6
7074 else
7075 echo "$ac_t""no" 1>&6
7076 fi
7077
7078
7079 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7080echo "configure:7081: checking for --enable-miniframe" >&5
7081 no_cache=0
7082 # Check whether --enable-miniframe or --disable-miniframe was given.
7083if test "${enable_miniframe+set}" = set; then
7084 enableval="$enable_miniframe"
7085
7086 if test "$enableval" = yes; then
7087 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7088 else
7089 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7090 fi
7091
7092else
7093
7094 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7095 if test "x$LINE" != x ; then
7096 eval "DEFAULT_$LINE"
7097 else
7098 no_cache=1
7099 fi
7100
7101 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7102
7103fi
7104
7105
7106 eval "$ac_cv_use_miniframe"
7107 if test "$no_cache" != 1; then
7108 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7109 fi
7110
7111 if test "$wxUSE_MINIFRAME" = yes; then
7112 echo "$ac_t""yes" 1>&6
7113 else
7114 echo "$ac_t""no" 1>&6
7115 fi
7116
7117
7118 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7119echo "configure:7120: checking for --enable-tooltips" >&5
7120 no_cache=0
7121 # Check whether --enable-tooltips or --disable-tooltips was given.
7122if test "${enable_tooltips+set}" = set; then
7123 enableval="$enable_tooltips"
7124
7125 if test "$enableval" = yes; then
7126 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7127 else
7128 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7129 fi
7130
7131else
7132
7133 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7134 if test "x$LINE" != x ; then
7135 eval "DEFAULT_$LINE"
7136 else
7137 no_cache=1
7138 fi
7139
7140 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7141
7142fi
7143
7144
7145 eval "$ac_cv_use_tooltips"
7146 if test "$no_cache" != 1; then
7147 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7148 fi
7149
7150 if test "$wxUSE_TOOLTIPS" = yes; then
7151 echo "$ac_t""yes" 1>&6
7152 else
7153 echo "$ac_t""no" 1>&6
7154 fi
7155
7156
7157 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7158echo "configure:7159: checking for --enable-splines" >&5
7159 no_cache=0
7160 # Check whether --enable-splines or --disable-splines was given.
7161if test "${enable_splines+set}" = set; then
7162 enableval="$enable_splines"
7163
7164 if test "$enableval" = yes; then
7165 ac_cv_use_splines='wxUSE_SPLINES=yes'
7166 else
7167 ac_cv_use_splines='wxUSE_SPLINES=no'
7168 fi
7169
7170else
7171
7172 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7173 if test "x$LINE" != x ; then
7174 eval "DEFAULT_$LINE"
7175 else
7176 no_cache=1
7177 fi
7178
7179 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7180
7181fi
7182
7183
7184 eval "$ac_cv_use_splines"
7185 if test "$no_cache" != 1; then
7186 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7187 fi
7188
7189 if test "$wxUSE_SPLINES" = yes; then
7190 echo "$ac_t""yes" 1>&6
7191 else
7192 echo "$ac_t""no" 1>&6
7193 fi
7194
7195
7196 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7197echo "configure:7198: checking for --enable-validators" >&5
7198 no_cache=0
7199 # Check whether --enable-validators or --disable-validators was given.
7200if test "${enable_validators+set}" = set; then
7201 enableval="$enable_validators"
7202
7203 if test "$enableval" = yes; then
7204 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7205 else
7206 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7207 fi
7208
7209else
7210
7211 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7212 if test "x$LINE" != x ; then
7213 eval "DEFAULT_$LINE"
7214 else
7215 no_cache=1
7216 fi
7217
7218 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7219
7220fi
7221
7222
7223 eval "$ac_cv_use_validators"
7224 if test "$no_cache" != 1; then
7225 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7226 fi
7227
7228 if test "$wxUSE_VALIDATORS" = yes; then
7229 echo "$ac_t""yes" 1>&6
7230 else
7231 echo "$ac_t""no" 1>&6
7232 fi
7233
7234
7235 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7236echo "configure:7237: checking for --enable-busyinfo" >&5
7237 no_cache=0
7238 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7239if test "${enable_busyinfo+set}" = set; then
7240 enableval="$enable_busyinfo"
7241
7242 if test "$enableval" = yes; then
7243 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7244 else
7245 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7246 fi
7247
7248else
7249
7250 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7251 if test "x$LINE" != x ; then
7252 eval "DEFAULT_$LINE"
7253 else
7254 no_cache=1
7255 fi
7256
7257 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7258
7259fi
7260
7261
7262 eval "$ac_cv_use_busyinfo"
7263 if test "$no_cache" != 1; then
7264 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7265 fi
7266
7267 if test "$wxUSE_BUSYINFO" = yes; then
7268 echo "$ac_t""yes" 1>&6
7269 else
7270 echo "$ac_t""no" 1>&6
7271 fi
7272
7273
7274 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7275echo "configure:7276: checking for --enable-joystick" >&5
7276 no_cache=0
7277 # Check whether --enable-joystick or --disable-joystick was given.
7278if test "${enable_joystick+set}" = set; then
7279 enableval="$enable_joystick"
7280
7281 if test "$enableval" = yes; then
7282 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7283 else
7284 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7285 fi
7286
7287else
7288
7289 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7290 if test "x$LINE" != x ; then
7291 eval "DEFAULT_$LINE"
7292 else
7293 no_cache=1
7294 fi
7295
7296 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
7297
7298fi
7299
7300
7301 eval "$ac_cv_use_joystick"
7302 if test "$no_cache" != 1; then
7303 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7304 fi
7305
7306 if test "$wxUSE_JOYSTICK" = yes; then
7307 echo "$ac_t""yes" 1>&6
7308 else
7309 echo "$ac_t""no" 1>&6
7310 fi
7311
7312
7313 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
7314echo "configure:7315: checking for --enable-metafile" >&5
7315 no_cache=0
7316 # Check whether --enable-metafile or --disable-metafile was given.
7317if test "${enable_metafile+set}" = set; then
7318 enableval="$enable_metafile"
7319
7320 if test "$enableval" = yes; then
7321 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7322 else
7323 ac_cv_use_metafile='wxUSE_METAFILE=no'
7324 fi
7325
7326else
7327
7328 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7329 if test "x$LINE" != x ; then
7330 eval "DEFAULT_$LINE"
7331 else
7332 no_cache=1
7333 fi
7334
7335 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7336
7337fi
7338
7339
7340 eval "$ac_cv_use_metafile"
7341 if test "$no_cache" != 1; then
7342 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7343 fi
7344
7345 if test "$wxUSE_METAFILE" = yes; then
7346 echo "$ac_t""yes" 1>&6
7347 else
7348 echo "$ac_t""no" 1>&6
7349 fi
7350
7351
7352 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
7353echo "configure:7354: checking for --enable-dragimage" >&5
7354 no_cache=0
7355 # Check whether --enable-dragimage or --disable-dragimage was given.
7356if test "${enable_dragimage+set}" = set; then
7357 enableval="$enable_dragimage"
7358
7359 if test "$enableval" = yes; then
7360 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7361 else
7362 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7363 fi
7364
7365else
7366
7367 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7368 if test "x$LINE" != x ; then
7369 eval "DEFAULT_$LINE"
7370 else
7371 no_cache=1
7372 fi
7373
7374 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7375
7376fi
7377
7378
7379 eval "$ac_cv_use_dragimage"
7380 if test "$no_cache" != 1; then
7381 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7382 fi
7383
7384 if test "$wxUSE_DRAGIMAGE" = yes; then
7385 echo "$ac_t""yes" 1>&6
7386 else
7387 echo "$ac_t""no" 1>&6
7388 fi
7389
7390
7391
7392
7393 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
7394echo "configure:7395: checking for --enable-image" >&5
7395 no_cache=0
7396 # Check whether --enable-image or --disable-image was given.
7397if test "${enable_image+set}" = set; then
7398 enableval="$enable_image"
7399
7400 if test "$enableval" = yes; then
7401 ac_cv_use_image='wxUSE_IMAGE=yes'
7402 else
7403 ac_cv_use_image='wxUSE_IMAGE=no'
7404 fi
7405
7406else
7407
7408 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7409 if test "x$LINE" != x ; then
7410 eval "DEFAULT_$LINE"
7411 else
7412 no_cache=1
7413 fi
7414
7415 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
7416
7417fi
7418
7419
7420 eval "$ac_cv_use_image"
7421 if test "$no_cache" != 1; then
7422 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7423 fi
7424
7425 if test "$wxUSE_IMAGE" = yes; then
7426 echo "$ac_t""yes" 1>&6
7427 else
7428 echo "$ac_t""no" 1>&6
7429 fi
7430
7431
7432 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7433echo "configure:7434: checking for --enable-gif" >&5
7434 no_cache=0
7435 # Check whether --enable-gif or --disable-gif was given.
7436if test "${enable_gif+set}" = set; then
7437 enableval="$enable_gif"
7438
7439 if test "$enableval" = yes; then
7440 ac_cv_use_gif='wxUSE_GIF=yes'
7441 else
7442 ac_cv_use_gif='wxUSE_GIF=no'
7443 fi
7444
7445else
7446
7447 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7448 if test "x$LINE" != x ; then
7449 eval "DEFAULT_$LINE"
7450 else
7451 no_cache=1
7452 fi
7453
7454 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
7455
7456fi
7457
7458
7459 eval "$ac_cv_use_gif"
7460 if test "$no_cache" != 1; then
7461 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7462 fi
7463
7464 if test "$wxUSE_GIF" = yes; then
7465 echo "$ac_t""yes" 1>&6
7466 else
7467 echo "$ac_t""no" 1>&6
7468 fi
7469
7470
7471 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7472echo "configure:7473: checking for --enable-pcx" >&5
7473 no_cache=0
7474 # Check whether --enable-pcx or --disable-pcx was given.
7475if test "${enable_pcx+set}" = set; then
7476 enableval="$enable_pcx"
7477
7478 if test "$enableval" = yes; then
7479 ac_cv_use_pcx='wxUSE_PCX=yes'
7480 else
7481 ac_cv_use_pcx='wxUSE_PCX=no'
7482 fi
7483
7484else
7485
7486 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7487 if test "x$LINE" != x ; then
7488 eval "DEFAULT_$LINE"
7489 else
7490 no_cache=1
7491 fi
7492
7493 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
7494
7495fi
7496
7497
7498 eval "$ac_cv_use_pcx"
7499 if test "$no_cache" != 1; then
7500 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7501 fi
7502
7503 if test "$wxUSE_PCX" = yes; then
7504 echo "$ac_t""yes" 1>&6
7505 else
7506 echo "$ac_t""no" 1>&6
7507 fi
7508
7509
7510 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7511echo "configure:7512: checking for --enable-pnm" >&5
7512 no_cache=0
7513 # Check whether --enable-pnm or --disable-pnm was given.
7514if test "${enable_pnm+set}" = set; then
7515 enableval="$enable_pnm"
7516
7517 if test "$enableval" = yes; then
7518 ac_cv_use_pnm='wxUSE_PNM=yes'
7519 else
7520 ac_cv_use_pnm='wxUSE_PNM=no'
7521 fi
7522
7523else
7524
7525 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7526 if test "x$LINE" != x ; then
7527 eval "DEFAULT_$LINE"
7528 else
7529 no_cache=1
7530 fi
7531
7532 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
7533
7534fi
7535
7536
7537 eval "$ac_cv_use_pnm"
7538 if test "$no_cache" != 1; then
7539 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7540 fi
7541
7542 if test "$wxUSE_PNM" = yes; then
7543 echo "$ac_t""yes" 1>&6
7544 else
7545 echo "$ac_t""no" 1>&6
7546 fi
7547
7548
7549 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7550echo "configure:7551: checking for --enable-pnm" >&5
7551 no_cache=0
7552 # Check whether --enable-pnm or --disable-pnm was given.
7553if test "${enable_pnm+set}" = set; then
7554 enableval="$enable_pnm"
7555
7556 if test "$enableval" = yes; then
7557 ac_cv_use_pnm='wxUSE_XPM=yes'
7558 else
7559 ac_cv_use_pnm='wxUSE_XPM=no'
7560 fi
7561
7562else
7563
7564 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7565 if test "x$LINE" != x ; then
7566 eval "DEFAULT_$LINE"
7567 else
7568 no_cache=1
7569 fi
7570
7571 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
7572
7573fi
7574
7575
7576 eval "$ac_cv_use_pnm"
7577 if test "$no_cache" != 1; then
7578 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7579 fi
7580
7581 if test "$wxUSE_XPM" = yes; then
7582 echo "$ac_t""yes" 1>&6
7583 else
7584 echo "$ac_t""no" 1>&6
7585 fi
7586
7587
7588fi
7589
7590
7591 echo "saving argument cache $wx_arg_cache_file"
7592 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
7593
7594
7595
7596echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7597echo "configure:7598: checking for toolkit" >&5
7598
7599if test "$wxUSE_GUI" = "yes"; then
7600
7601if test "$USE_BEOS" = 1; then
7602 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7603fi
7604
7605if test "$TOOLKIT_GIVEN" = 1; then
7606 for toolkit in `echo $ALL_TOOLKITS`; do
7607 var=wxUSE_$toolkit
7608 eval "value=\$${var}"
7609 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7610 done
7611else
7612 for toolkit in `echo $ALL_TOOLKITS`; do
7613 if test "$has_toolkit_in_cache" != 1; then
7614 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7615 else
7616 var=DEFAULT_wxUSE_$toolkit
7617 fi
7618 eval "wxUSE_$toolkit=\$${var}"
7619 done
7620fi
7621
7622NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}`
7623
7624case "${host}" in
7625 *-pc-os2_emx )
7626 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7627 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7628 LEX_STEM="lexyy"
7629 ;;
7630 *)
7631 PATH_IFS=':'
7632 LEX_STEM="lex.yy"
7633 ;;
7634esac
7635
7636case "$NUM_TOOLKITS" in
7637 1)
7638 ;;
7639 0)
7640 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7641 ;;
7642 *)
7643 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7644esac
7645
7646for toolkit in `echo $ALL_TOOLKITS`; do
7647 var=wxUSE_$toolkit
7648 eval "value=\$${var}"
7649 if test "x$value" != x; then
7650 cache_var=CACHE_$toolkit
7651 eval "cache=\$${cache_var}"
7652 if test "$cache" = 1; then
7653 echo "$var=$value" >> ${wx_arg_cache_file}
7654 fi
7655 if test "$value" = 1; then
7656 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7657 echo "$ac_t""$toolkit_echo" 1>&6
7658 fi
7659 fi
7660done
7661
7662else
7663 PATH_IFS=':'
7664 echo "$ac_t""base only" 1>&6
7665fi
7666
7667
7668cat > confcache <<\EOF
7669# This file is a shell script that caches the results of configure
7670# tests run on this system so they can be shared between configure
7671# scripts and configure runs. It is not useful on other systems.
7672# If it contains results you don't want to keep, you may remove or edit it.
7673#
7674# By default, configure uses ./config.cache as the cache file,
7675# creating it if it does not exist already. You can give configure
7676# the --cache-file=FILE option to use a different cache file; that is
7677# what configure does when it calls configure scripts in
7678# subdirectories, so they share the cache.
7679# Giving --cache-file=/dev/null disables caching, for debugging configure.
7680# config.status only pays attention to the cache file if you give it the
7681# --recheck option to rerun configure.
7682#
7683EOF
7684# The following way of writing the cache mishandles newlines in values,
7685# but we know of no workaround that is simple, portable, and efficient.
7686# So, don't put newlines in cache variables' values.
7687# Ultrix sh set writes to stderr and can't be redirected directly,
7688# and sets the high bit in the cache file unless we assign to the vars.
7689(set) 2>&1 |
7690 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7691 *ac_space=\ *)
7692 # `set' does not quote correctly, so add quotes (double-quote substitution
7693 # turns \\\\ into \\, and sed turns \\ into \).
7694 sed -n \
7695 -e "s/'/'\\\\''/g" \
7696 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7697 ;;
7698 *)
7699 # `set' quotes correctly as required by POSIX, so do not add quotes.
7700 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7701 ;;
7702 esac >> confcache
7703if cmp -s $cache_file confcache; then
7704 :
7705else
7706 if test -w $cache_file; then
7707 echo "updating cache $cache_file"
7708 cat confcache > $cache_file
7709 else
7710 echo "not updating unwritable cache $cache_file"
7711 fi
7712fi
7713rm -f confcache
7714
7715
7716if test "$build" != "$host" ; then
7717 CC=$host_alias-gcc
7718 CXX=$host_alias-c++
7719 AR=$host_alias-ar
7720 RANLIB=$host_alias-ranlib
7721 DLLTOOL=$host_alias-dlltool
7722 RESCOMP=$host_alias-windres
7723 LD=$host_alias-ld
7724 NM=$host_alias-nm
7725 STRIP=$host_alias-strip
7726fi
7727
7728# Extract the first word of "gcc", so it can be a program name with args.
7729set dummy gcc; ac_word=$2
7730echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7731echo "configure:7732: checking for $ac_word" >&5
7732if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7733 echo $ac_n "(cached) $ac_c" 1>&6
7734else
7735 if test -n "$CC"; then
7736 ac_cv_prog_CC="$CC" # Let the user override the test.
7737else
7738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7739 ac_dummy="$PATH"
7740 for ac_dir in $ac_dummy; do
7741 test -z "$ac_dir" && ac_dir=.
7742 if test -f $ac_dir/$ac_word; then
7743 ac_cv_prog_CC="gcc"
7744 break
7745 fi
7746 done
7747 IFS="$ac_save_ifs"
7748fi
7749fi
7750CC="$ac_cv_prog_CC"
7751if test -n "$CC"; then
7752 echo "$ac_t""$CC" 1>&6
7753else
7754 echo "$ac_t""no" 1>&6
7755fi
7756
7757if test -z "$CC"; then
7758 # Extract the first word of "cc", so it can be a program name with args.
7759set dummy cc; ac_word=$2
7760echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7761echo "configure:7762: checking for $ac_word" >&5
7762if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7763 echo $ac_n "(cached) $ac_c" 1>&6
7764else
7765 if test -n "$CC"; then
7766 ac_cv_prog_CC="$CC" # Let the user override the test.
7767else
7768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7769 ac_prog_rejected=no
7770 ac_dummy="$PATH"
7771 for ac_dir in $ac_dummy; do
7772 test -z "$ac_dir" && ac_dir=.
7773 if test -f $ac_dir/$ac_word; then
7774 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7775 ac_prog_rejected=yes
7776 continue
7777 fi
7778 ac_cv_prog_CC="cc"
7779 break
7780 fi
7781 done
7782 IFS="$ac_save_ifs"
7783if test $ac_prog_rejected = yes; then
7784 # We found a bogon in the path, so make sure we never use it.
7785 set dummy $ac_cv_prog_CC
7786 shift
7787 if test $# -gt 0; then
7788 # We chose a different compiler from the bogus one.
7789 # However, it has the same basename, so the bogon will be chosen
7790 # first if we set CC to just the basename; use the full file name.
7791 shift
7792 set dummy "$ac_dir/$ac_word" "$@"
7793 shift
7794 ac_cv_prog_CC="$@"
7795 fi
7796fi
7797fi
7798fi
7799CC="$ac_cv_prog_CC"
7800if test -n "$CC"; then
7801 echo "$ac_t""$CC" 1>&6
7802else
7803 echo "$ac_t""no" 1>&6
7804fi
7805
7806 if test -z "$CC"; then
7807 case "`uname -s`" in
7808 *win32* | *WIN32*)
7809 # Extract the first word of "cl", so it can be a program name with args.
7810set dummy cl; ac_word=$2
7811echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7812echo "configure:7813: checking for $ac_word" >&5
7813if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7814 echo $ac_n "(cached) $ac_c" 1>&6
7815else
7816 if test -n "$CC"; then
7817 ac_cv_prog_CC="$CC" # Let the user override the test.
7818else
7819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7820 ac_dummy="$PATH"
7821 for ac_dir in $ac_dummy; do
7822 test -z "$ac_dir" && ac_dir=.
7823 if test -f $ac_dir/$ac_word; then
7824 ac_cv_prog_CC="cl"
7825 break
7826 fi
7827 done
7828 IFS="$ac_save_ifs"
7829fi
7830fi
7831CC="$ac_cv_prog_CC"
7832if test -n "$CC"; then
7833 echo "$ac_t""$CC" 1>&6
7834else
7835 echo "$ac_t""no" 1>&6
7836fi
7837 ;;
7838 esac
7839 fi
7840 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
7841fi
7842
7843echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7844echo "configure:7845: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
7845
7846ac_ext=c
7847# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7848ac_cpp='$CPP $CPPFLAGS'
7849ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7850ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7851cross_compiling=$ac_cv_prog_cc_cross
7852
7853cat > conftest.$ac_ext << EOF
7854
7855#line 7856 "configure"
7856#include "confdefs.h"
7857
7858main(){return(0);}
7859EOF
7860if { (eval echo configure:7861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7861 ac_cv_prog_cc_works=yes
7862 # If we can't run a trivial program, we are probably using a cross compiler.
7863 if (./conftest; exit) 2>/dev/null; then
7864 ac_cv_prog_cc_cross=no
7865 else
7866 ac_cv_prog_cc_cross=yes
7867 fi
7868else
7869 echo "configure: failed program was:" >&5
7870 cat conftest.$ac_ext >&5
7871 ac_cv_prog_cc_works=no
7872fi
7873rm -fr conftest*
7874ac_ext=c
7875# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7876ac_cpp='$CPP $CPPFLAGS'
7877ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7878ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7879cross_compiling=$ac_cv_prog_cc_cross
7880
7881echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
7882if test $ac_cv_prog_cc_works = no; then
7883 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
7884fi
7885echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7886echo "configure:7887: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
7887echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
7888cross_compiling=$ac_cv_prog_cc_cross
7889
7890echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
7891echo "configure:7892: checking whether we are using GNU C" >&5
7892if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
7893 echo $ac_n "(cached) $ac_c" 1>&6
7894else
7895 cat > conftest.c <<EOF
7896#ifdef __GNUC__
7897 yes;
7898#endif
7899EOF
7900if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
7901 ac_cv_prog_gcc=yes
7902else
7903 ac_cv_prog_gcc=no
7904fi
7905fi
7906
7907echo "$ac_t""$ac_cv_prog_gcc" 1>&6
7908
7909if test $ac_cv_prog_gcc = yes; then
7910 GCC=yes
7911else
7912 GCC=
7913fi
7914
7915ac_test_CFLAGS="${CFLAGS+set}"
7916ac_save_CFLAGS="$CFLAGS"
7917CFLAGS=
7918echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
7919echo "configure:7920: checking whether ${CC-cc} accepts -g" >&5
7920if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
7921 echo $ac_n "(cached) $ac_c" 1>&6
7922else
7923 echo 'void f(){}' > conftest.c
7924if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
7925 ac_cv_prog_cc_g=yes
7926else
7927 ac_cv_prog_cc_g=no
7928fi
7929rm -f conftest*
7930
7931fi
7932
7933echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
7934if test "$ac_test_CFLAGS" = set; then
7935 CFLAGS="$ac_save_CFLAGS"
7936elif test $ac_cv_prog_cc_g = yes; then
7937 if test "$GCC" = yes; then
7938 CFLAGS="-g -O2"
7939 else
7940 CFLAGS="-g"
7941 fi
7942else
7943 if test "$GCC" = yes; then
7944 CFLAGS="-O2"
7945 else
7946 CFLAGS=
7947 fi
7948fi
7949
7950
7951CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
7952
7953echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7954echo "configure:7955: checking how to run the C preprocessor" >&5
7955# On Suns, sometimes $CPP names a directory.
7956if test -n "$CPP" && test -d "$CPP"; then
7957 CPP=
7958fi
7959if test -z "$CPP"; then
7960if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
7961 echo $ac_n "(cached) $ac_c" 1>&6
7962else
7963 # This must be in double quotes, not single quotes, because CPP may get
7964 # substituted into the Makefile and "${CC-cc}" will confuse make.
7965 CPP="${CC-cc} -E"
7966 # On the NeXT, cc -E runs the code through the compiler's parser,
7967 # not just through cpp.
7968 cat > conftest.$ac_ext <<EOF
7969#line 7970 "configure"
7970#include "confdefs.h"
7971#include <assert.h>
7972Syntax Error
7973EOF
7974ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7975{ (eval echo configure:7976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7976ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7977if test -z "$ac_err"; then
7978 :
7979else
7980 echo "$ac_err" >&5
7981 echo "configure: failed program was:" >&5
7982 cat conftest.$ac_ext >&5
7983 rm -rf conftest*
7984 CPP="${CC-cc} -E -traditional-cpp"
7985 cat > conftest.$ac_ext <<EOF
7986#line 7987 "configure"
7987#include "confdefs.h"
7988#include <assert.h>
7989Syntax Error
7990EOF
7991ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7992{ (eval echo configure:7993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7993ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7994if test -z "$ac_err"; then
7995 :
7996else
7997 echo "$ac_err" >&5
7998 echo "configure: failed program was:" >&5
7999 cat conftest.$ac_ext >&5
8000 rm -rf conftest*
8001 CPP="${CC-cc} -nologo -E"
8002 cat > conftest.$ac_ext <<EOF
8003#line 8004 "configure"
8004#include "confdefs.h"
8005#include <assert.h>
8006Syntax Error
8007EOF
8008ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8009{ (eval echo configure:8010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8010ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8011if test -z "$ac_err"; then
8012 :
8013else
8014 echo "$ac_err" >&5
8015 echo "configure: failed program was:" >&5
8016 cat conftest.$ac_ext >&5
8017 rm -rf conftest*
8018 CPP=/lib/cpp
8019fi
8020rm -f conftest*
8021fi
8022rm -f conftest*
8023fi
8024rm -f conftest*
8025 ac_cv_prog_CPP="$CPP"
8026fi
8027 CPP="$ac_cv_prog_CPP"
8028else
8029 ac_cv_prog_CPP="$CPP"
8030fi
8031echo "$ac_t""$CPP" 1>&6
8032
8033
8034if test $ac_cv_prog_gcc = yes; then
8035 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8036echo "configure:8037: checking whether ${CC-cc} needs -traditional" >&5
8037if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8038 echo $ac_n "(cached) $ac_c" 1>&6
8039else
8040 ac_pattern="Autoconf.*'x'"
8041 cat > conftest.$ac_ext <<EOF
8042#line 8043 "configure"
8043#include "confdefs.h"
8044#include <sgtty.h>
8045Autoconf TIOCGETP
8046EOF
8047if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8048 egrep "$ac_pattern" >/dev/null 2>&1; then
8049 rm -rf conftest*
8050 ac_cv_prog_gcc_traditional=yes
8051else
8052 rm -rf conftest*
8053 ac_cv_prog_gcc_traditional=no
8054fi
8055rm -f conftest*
8056
8057
8058 if test $ac_cv_prog_gcc_traditional = no; then
8059 cat > conftest.$ac_ext <<EOF
8060#line 8061 "configure"
8061#include "confdefs.h"
8062#include <termio.h>
8063Autoconf TCGETA
8064EOF
8065if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8066 egrep "$ac_pattern" >/dev/null 2>&1; then
8067 rm -rf conftest*
8068 ac_cv_prog_gcc_traditional=yes
8069fi
8070rm -f conftest*
8071
8072 fi
8073fi
8074
8075echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8076 if test $ac_cv_prog_gcc_traditional = yes; then
8077 CC="$CC -traditional"
8078 fi
8079fi
8080
8081
8082
8083ac_ext=C
8084# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8085ac_cpp='$CXXCPP $CPPFLAGS'
8086ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8087ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8088cross_compiling=$ac_cv_prog_cxx_cross
8089
8090
8091for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8092do
8093# Extract the first word of "$ac_prog", so it can be a program name with args.
8094set dummy $ac_prog; ac_word=$2
8095echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8096echo "configure:8097: checking for $ac_word" >&5
8097if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8098 echo $ac_n "(cached) $ac_c" 1>&6
8099else
8100 if test -n "$CXX"; then
8101 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8102else
8103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8104 ac_dummy="$PATH"
8105 for ac_dir in $ac_dummy; do
8106 test -z "$ac_dir" && ac_dir=.
8107 if test -f $ac_dir/$ac_word; then
8108 ac_cv_prog_CXX="$ac_prog"
8109 break
8110 fi
8111 done
8112 IFS="$ac_save_ifs"
8113fi
8114fi
8115CXX="$ac_cv_prog_CXX"
8116if test -n "$CXX"; then
8117 echo "$ac_t""$CXX" 1>&6
8118else
8119 echo "$ac_t""no" 1>&6
8120fi
8121
8122test -n "$CXX" && break
8123done
8124test -n "$CXX" || CXX="gcc"
8125
8126
8127echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8128echo "configure:8129: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8129
8130ac_ext=C
8131# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8132ac_cpp='$CXXCPP $CPPFLAGS'
8133ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8134ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8135cross_compiling=$ac_cv_prog_cxx_cross
8136
8137cat > conftest.$ac_ext << EOF
8138
8139#line 8140 "configure"
8140#include "confdefs.h"
8141
8142int main(){return(0);}
8143EOF
8144if { (eval echo configure:8145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8145 ac_cv_prog_cxx_works=yes
8146 # If we can't run a trivial program, we are probably using a cross compiler.
8147 if (./conftest; exit) 2>/dev/null; then
8148 ac_cv_prog_cxx_cross=no
8149 else
8150 ac_cv_prog_cxx_cross=yes
8151 fi
8152else
8153 echo "configure: failed program was:" >&5
8154 cat conftest.$ac_ext >&5
8155 ac_cv_prog_cxx_works=no
8156fi
8157rm -fr conftest*
8158ac_ext=C
8159# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8160ac_cpp='$CXXCPP $CPPFLAGS'
8161ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8162ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8163cross_compiling=$ac_cv_prog_cxx_cross
8164
8165echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8166if test $ac_cv_prog_cxx_works = no; then
8167 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8168fi
8169echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8170echo "configure:8171: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
8171echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8172cross_compiling=$ac_cv_prog_cxx_cross
8173
8174echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
8175echo "configure:8176: checking whether we are using GNU C++" >&5
8176if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8177 echo $ac_n "(cached) $ac_c" 1>&6
8178else
8179 cat > conftest.C <<EOF
8180#ifdef __GNUC__
8181 yes;
8182#endif
8183EOF
8184if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8185 ac_cv_prog_gxx=yes
8186else
8187 ac_cv_prog_gxx=no
8188fi
8189fi
8190
8191echo "$ac_t""$ac_cv_prog_gxx" 1>&6
8192
8193if test $ac_cv_prog_gxx = yes; then
8194 GXX=yes
8195else
8196 GXX=
8197fi
8198
8199ac_test_CXXFLAGS="${CXXFLAGS+set}"
8200ac_save_CXXFLAGS="$CXXFLAGS"
8201CXXFLAGS=
8202echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
8203echo "configure:8204: checking whether ${CXX-g++} accepts -g" >&5
8204if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8205 echo $ac_n "(cached) $ac_c" 1>&6
8206else
8207 echo 'void f(){}' > conftest.cc
8208if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
8209 ac_cv_prog_cxx_g=yes
8210else
8211 ac_cv_prog_cxx_g=no
8212fi
8213rm -f conftest*
8214
8215fi
8216
8217echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
8218if test "$ac_test_CXXFLAGS" = set; then
8219 CXXFLAGS="$ac_save_CXXFLAGS"
8220elif test $ac_cv_prog_cxx_g = yes; then
8221 if test "$GXX" = yes; then
8222 CXXFLAGS="-g -O2"
8223 else
8224 CXXFLAGS="-g"
8225 fi
8226else
8227 if test "$GXX" = yes; then
8228 CXXFLAGS="-O2"
8229 else
8230 CXXFLAGS=
8231 fi
8232fi
8233
8234
8235echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
8236echo "configure:8237: checking how to run the C++ preprocessor" >&5
8237if test -z "$CXXCPP"; then
8238if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
8239 echo $ac_n "(cached) $ac_c" 1>&6
8240else
8241 ac_ext=C
8242# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8243ac_cpp='$CXXCPP $CPPFLAGS'
8244ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8245ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8246cross_compiling=$ac_cv_prog_cxx_cross
8247 CXXCPP="${CXX-g++} -E"
8248 cat > conftest.$ac_ext <<EOF
8249#line 8250 "configure"
8250#include "confdefs.h"
8251#include <stdlib.h>
8252EOF
8253ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8254{ (eval echo configure:8255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8255ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8256if test -z "$ac_err"; then
8257 :
8258else
8259 echo "$ac_err" >&5
8260 echo "configure: failed program was:" >&5
8261 cat conftest.$ac_ext >&5
8262 rm -rf conftest*
8263 CXXCPP=/lib/cpp
8264fi
8265rm -f conftest*
8266 ac_cv_prog_CXXCPP="$CXXCPP"
8267ac_ext=C
8268# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8269ac_cpp='$CXXCPP $CPPFLAGS'
8270ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8271ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8272cross_compiling=$ac_cv_prog_cxx_cross
8273fi
8274fi
8275CXXCPP="$ac_cv_prog_CXXCPP"
8276echo "$ac_t""$CXXCPP" 1>&6
8277
8278
8279CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8280
8281ac_ext=c
8282# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8283ac_cpp='$CPP $CPPFLAGS'
8284ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8285ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8286cross_compiling=$ac_cv_prog_cc_cross
8287
8288
8289# Extract the first word of "ranlib", so it can be a program name with args.
8290set dummy ranlib; ac_word=$2
8291echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8292echo "configure:8293: checking for $ac_word" >&5
8293if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8294 echo $ac_n "(cached) $ac_c" 1>&6
8295else
8296 if test -n "$RANLIB"; then
8297 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8298else
8299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8300 ac_dummy="$PATH"
8301 for ac_dir in $ac_dummy; do
8302 test -z "$ac_dir" && ac_dir=.
8303 if test -f $ac_dir/$ac_word; then
8304 ac_cv_prog_RANLIB="ranlib"
8305 break
8306 fi
8307 done
8308 IFS="$ac_save_ifs"
8309 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8310fi
8311fi
8312RANLIB="$ac_cv_prog_RANLIB"
8313if test -n "$RANLIB"; then
8314 echo "$ac_t""$RANLIB" 1>&6
8315else
8316 echo "$ac_t""no" 1>&6
8317fi
8318
8319
8320# Extract the first word of "ar", so it can be a program name with args.
8321set dummy ar; ac_word=$2
8322echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8323echo "configure:8324: checking for $ac_word" >&5
8324if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8325 echo $ac_n "(cached) $ac_c" 1>&6
8326else
8327 if test -n "$AR"; then
8328 ac_cv_prog_AR="$AR" # Let the user override the test.
8329else
8330 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8331 ac_dummy="$PATH"
8332 for ac_dir in $ac_dummy; do
8333 test -z "$ac_dir" && ac_dir=.
8334 if test -f $ac_dir/$ac_word; then
8335 ac_cv_prog_AR="ar"
8336 break
8337 fi
8338 done
8339 IFS="$ac_save_ifs"
8340 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8341fi
8342fi
8343AR="$ac_cv_prog_AR"
8344if test -n "$AR"; then
8345 echo "$ac_t""$AR" 1>&6
8346else
8347 echo "$ac_t""no" 1>&6
8348fi
8349
8350
8351# Find a good install program. We prefer a C program (faster),
8352# so one script is as good as another. But avoid the broken or
8353# incompatible versions:
8354# SysV /etc/install, /usr/sbin/install
8355# SunOS /usr/etc/install
8356# IRIX /sbin/install
8357# AIX /bin/install
8358# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8359# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8360# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8361# ./install, which can be erroneously created by make from ./install.sh.
8362echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8363echo "configure:8364: checking for a BSD compatible install" >&5
8364if test -z "$INSTALL"; then
8365if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8366 echo $ac_n "(cached) $ac_c" 1>&6
8367else
8368 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8369 for ac_dir in $PATH; do
8370 # Account for people who put trailing slashes in PATH elements.
8371 case "$ac_dir/" in
8372 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8373 *)
8374 # OSF1 and SCO ODT 3.0 have their own names for install.
8375 # Don't use installbsd from OSF since it installs stuff as root
8376 # by default.
8377 for ac_prog in ginstall scoinst install; do
8378 if test -f $ac_dir/$ac_prog; then
8379 if test $ac_prog = install &&
8380 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8381 # AIX install. It has an incompatible calling convention.
8382 :
8383 else
8384 ac_cv_path_install="$ac_dir/$ac_prog -c"
8385 break 2
8386 fi
8387 fi
8388 done
8389 ;;
8390 esac
8391 done
8392 IFS="$ac_save_IFS"
8393
8394fi
8395 if test "${ac_cv_path_install+set}" = set; then
8396 INSTALL="$ac_cv_path_install"
8397 else
8398 # As a last resort, use the slow shell script. We don't cache a
8399 # path for INSTALL within a source directory, because that will
8400 # break other packages using the cache if that directory is
8401 # removed, or if the path is relative.
8402 INSTALL="$ac_install_sh"
8403 fi
8404fi
8405echo "$ac_t""$INSTALL" 1>&6
8406
8407# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8408# It thinks the first close brace ends the variable substitution.
8409test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8410
8411test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8412
8413test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8414
8415
8416# Extract the first word of "strip", so it can be a program name with args.
8417set dummy strip; ac_word=$2
8418echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8419echo "configure:8420: checking for $ac_word" >&5
8420if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8421 echo $ac_n "(cached) $ac_c" 1>&6
8422else
8423 if test -n "$STRIP"; then
8424 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8425else
8426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8427 ac_dummy="$PATH"
8428 for ac_dir in $ac_dummy; do
8429 test -z "$ac_dir" && ac_dir=.
8430 if test -f $ac_dir/$ac_word; then
8431 ac_cv_prog_STRIP="strip"
8432 break
8433 fi
8434 done
8435 IFS="$ac_save_ifs"
8436 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8437fi
8438fi
8439STRIP="$ac_cv_prog_STRIP"
8440if test -n "$STRIP"; then
8441 echo "$ac_t""$STRIP" 1>&6
8442else
8443 echo "$ac_t""no" 1>&6
8444fi
8445
8446
8447echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8448echo "configure:8449: checking make for VPATH support" >&5
8449cat - << EOF > confMake
8450check : file
8451 cp \$? \$@
8452 cp \$? final_file
8453EOF
8454
8455if test ! -d sub ; then
8456 mkdir sub
8457fi
8458echo dummy > sub/file
8459${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
8460RESULT=$?
8461rm -f sub/file check final_file confMake
8462rmdir sub
8463if test "$RESULT" = 0; then
8464 echo "$ac_t""yes" 1>&6
8465else
8466 echo "$ac_t""no" 1>&6
8467 { echo "configure: error:
8468You need a make-utility that is able to use the variable
8469VPATH correctly.
8470If your version of make does not support VPATH correctly,
8471please install GNU-make (possibly as gmake), and start
8472configure with the following command:
8473export MAKE=gmake; ./configure for sh-type shells
8474setenv MAKE gmake; ./configure for csh-type shells
8475Also please do remember to use gmake in this case every time
8476you are trying to compile.
8477" 1>&2; exit 1; }
8478fi
8479
8480for ac_prog in 'bison -y' byacc
8481do
8482# Extract the first word of "$ac_prog", so it can be a program name with args.
8483set dummy $ac_prog; ac_word=$2
8484echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8485echo "configure:8486: checking for $ac_word" >&5
8486if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8487 echo $ac_n "(cached) $ac_c" 1>&6
8488else
8489 if test -n "$YACC"; then
8490 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8491else
8492 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8493 ac_dummy="$PATH"
8494 for ac_dir in $ac_dummy; do
8495 test -z "$ac_dir" && ac_dir=.
8496 if test -f $ac_dir/$ac_word; then
8497 ac_cv_prog_YACC="$ac_prog"
8498 break
8499 fi
8500 done
8501 IFS="$ac_save_ifs"
8502fi
8503fi
8504YACC="$ac_cv_prog_YACC"
8505if test -n "$YACC"; then
8506 echo "$ac_t""$YACC" 1>&6
8507else
8508 echo "$ac_t""no" 1>&6
8509fi
8510
8511test -n "$YACC" && break
8512done
8513test -n "$YACC" || YACC="yacc"
8514
8515
8516# Extract the first word of "flex", so it can be a program name with args.
8517set dummy flex; ac_word=$2
8518echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8519echo "configure:8520: checking for $ac_word" >&5
8520if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8521 echo $ac_n "(cached) $ac_c" 1>&6
8522else
8523 if test -n "$LEX"; then
8524 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8525else
8526 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8527 ac_dummy="$PATH"
8528 for ac_dir in $ac_dummy; do
8529 test -z "$ac_dir" && ac_dir=.
8530 if test -f $ac_dir/$ac_word; then
8531 ac_cv_prog_LEX="flex"
8532 break
8533 fi
8534 done
8535 IFS="$ac_save_ifs"
8536 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
8537fi
8538fi
8539LEX="$ac_cv_prog_LEX"
8540if test -n "$LEX"; then
8541 echo "$ac_t""$LEX" 1>&6
8542else
8543 echo "$ac_t""no" 1>&6
8544fi
8545
8546if test -z "$LEXLIB"
8547then
8548 case "$LEX" in
8549 flex*) ac_lib=fl ;;
8550 *) ac_lib=l ;;
8551 esac
8552 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8553echo "configure:8554: checking for yywrap in -l$ac_lib" >&5
8554ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8555if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8556 echo $ac_n "(cached) $ac_c" 1>&6
8557else
8558 ac_save_LIBS="$LIBS"
8559LIBS="-l$ac_lib $LIBS"
8560cat > conftest.$ac_ext <<EOF
8561#line 8562 "configure"
8562#include "confdefs.h"
8563/* Override any gcc2 internal prototype to avoid an error. */
8564/* We use char because int might match the return type of a gcc2
8565 builtin and then its argument prototype would still apply. */
8566char yywrap();
8567
8568int main() {
8569yywrap()
8570; return 0; }
8571EOF
8572if { (eval echo configure:8573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8573 rm -rf conftest*
8574 eval "ac_cv_lib_$ac_lib_var=yes"
8575else
8576 echo "configure: failed program was:" >&5
8577 cat conftest.$ac_ext >&5
8578 rm -rf conftest*
8579 eval "ac_cv_lib_$ac_lib_var=no"
8580fi
8581rm -f conftest*
8582LIBS="$ac_save_LIBS"
8583
8584fi
8585if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8586 echo "$ac_t""yes" 1>&6
8587 LEXLIB="-l$ac_lib"
8588else
8589 echo "$ac_t""no" 1>&6
8590fi
8591
8592fi
8593
8594
8595echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8596echo "configure:8597: checking whether ln -s works" >&5
8597if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8598 echo $ac_n "(cached) $ac_c" 1>&6
8599else
8600 rm -f conftestdata
8601if ln -s X conftestdata 2>/dev/null
8602then
8603 rm -f conftestdata
8604 ac_cv_prog_LN_S="ln -s"
8605else
8606 ac_cv_prog_LN_S=ln
8607fi
8608fi
8609LN_S="$ac_cv_prog_LN_S"
8610if test "$ac_cv_prog_LN_S" = "ln -s"; then
8611 echo "$ac_t""yes" 1>&6
8612else
8613 echo "$ac_t""no" 1>&6
8614fi
8615
8616
8617
8618SEARCH_INCLUDE="\
8619 /usr/local/include \
8620 \
8621 /usr/Motif-1.2/include \
8622 /usr/Motif-2.1/include \
8623 \
8624 /usr/include/Motif1.2 \
8625 /opt/xpm/include/X11 \
8626 /opt/GBxpm/include/ \
8627 /opt/GBxpm/X11/include/ \
8628 \
8629 /usr/Motif1.2/include \
8630 /usr/dt/include \
8631 /usr/openwin/include \
8632 \
8633 /usr/include/Xm \
8634 \
8635 /usr/X11R6/include \
8636 /usr/X11R6.4/include \
8637 /usr/X11R5/include \
8638 /usr/X11R4/include \
8639 \
8640 /usr/include/X11R6 \
8641 /usr/include/X11R5 \
8642 /usr/include/X11R4 \
8643 \
8644 /usr/local/X11R6/include \
8645 /usr/local/X11R5/include \
8646 /usr/local/X11R4/include \
8647 \
8648 /usr/local/include/X11R6 \
8649 /usr/local/include/X11R5 \
8650 /usr/local/include/X11R4 \
8651 \
8652 /usr/X11/include \
8653 /usr/include/X11 \
8654 /usr/local/X11/include \
8655 /usr/local/include/X11 \
8656 \
8657 /usr/X386/include \
8658 /usr/x386/include \
8659 /usr/XFree86/include/X11 \
8660 \
8661 X:/XFree86/include \
8662 X:/XFree86/include/X11 \
8663 \
8664 /usr/include/gtk \
8665 /usr/local/include/gtk \
8666 /usr/include/glib \
8667 /usr/local/include/glib \
8668 \
8669 /usr/include/qt \
8670 /usr/local/include/qt \
8671 \
8672 /usr/include/windows \
8673 /usr/include/wine \
8674 /usr/local/include/wine \
8675 \
8676 /usr/unsupported/include \
8677 /usr/athena/include \
8678 /usr/local/x11r5/include \
8679 /usr/lpp/Xamples/include \
8680 \
8681 /usr/openwin/share/include \
8682 \
8683 /usr/include"
8684
8685SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8686
8687
8688cat > confcache <<\EOF
8689# This file is a shell script that caches the results of configure
8690# tests run on this system so they can be shared between configure
8691# scripts and configure runs. It is not useful on other systems.
8692# If it contains results you don't want to keep, you may remove or edit it.
8693#
8694# By default, configure uses ./config.cache as the cache file,
8695# creating it if it does not exist already. You can give configure
8696# the --cache-file=FILE option to use a different cache file; that is
8697# what configure does when it calls configure scripts in
8698# subdirectories, so they share the cache.
8699# Giving --cache-file=/dev/null disables caching, for debugging configure.
8700# config.status only pays attention to the cache file if you give it the
8701# --recheck option to rerun configure.
8702#
8703EOF
8704# The following way of writing the cache mishandles newlines in values,
8705# but we know of no workaround that is simple, portable, and efficient.
8706# So, don't put newlines in cache variables' values.
8707# Ultrix sh set writes to stderr and can't be redirected directly,
8708# and sets the high bit in the cache file unless we assign to the vars.
8709(set) 2>&1 |
8710 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8711 *ac_space=\ *)
8712 # `set' does not quote correctly, so add quotes (double-quote substitution
8713 # turns \\\\ into \\, and sed turns \\ into \).
8714 sed -n \
8715 -e "s/'/'\\\\''/g" \
8716 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8717 ;;
8718 *)
8719 # `set' quotes correctly as required by POSIX, so do not add quotes.
8720 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8721 ;;
8722 esac >> confcache
8723if cmp -s $cache_file confcache; then
8724 :
8725else
8726 if test -w $cache_file; then
8727 echo "updating cache $cache_file"
8728 cat confcache > $cache_file
8729 else
8730 echo "not updating unwritable cache $cache_file"
8731 fi
8732fi
8733rm -f confcache
8734
8735
8736
8737AFMINSTALL=
8738
8739if test "$wxUSE_GUI" = "yes"; then
8740 USE_GUI=1
8741
8742 TOOLKIT=
8743 TOOLKIT_INCLUDE=
8744
8745 GUI_TK_LIBRARY=
8746 GUI_TK_LINK=
8747
8748 WXGTK12=
8749 WXGTK127=
8750 WXGTK20=
8751
8752 WXWINE=
8753
8754 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
8755 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
8756echo $ac_n "checking for windows.h""... $ac_c" 1>&6
8757echo "configure:8758: checking for windows.h" >&5
8758if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8759 echo $ac_n "(cached) $ac_c" 1>&6
8760else
8761 cat > conftest.$ac_ext <<EOF
8762#line 8763 "configure"
8763#include "confdefs.h"
8764#include <windows.h>
8765EOF
8766ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8767{ (eval echo configure:8768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8768ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8769if test -z "$ac_err"; then
8770 rm -rf conftest*
8771 eval "ac_cv_header_$ac_safe=yes"
8772else
8773 echo "$ac_err" >&5
8774 echo "configure: failed program was:" >&5
8775 cat conftest.$ac_ext >&5
8776 rm -rf conftest*
8777 eval "ac_cv_header_$ac_safe=no"
8778fi
8779rm -f conftest*
8780fi
8781if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8782 echo "$ac_t""yes" 1>&6
8783 :
8784else
8785 echo "$ac_t""no" 1>&6
8786
8787 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
8788
8789fi
8790
8791
8792 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
8793 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
8794
8795 if test "$wxUSE_ODBC" = "yes" ; then
8796 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
8797 fi
8798
8799 if test "$wxUSE_MINGW" = 1; then
8800 LDFLAGS="$LDFLAGS -mwindows"
8801 fi
8802
8803 TOOLKIT=MSW
8804 GUIDIST=MSW_DIST
8805
8806 RCINCSWITCH="--include-dir"
8807 RCDEFSWITCH="--define"
8808 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
8809 RCINPUTSWITCH="-i"
8810 RCOUTPUTSWITCH="-o"
8811 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
8812
8813 RESPROGRAM="\$(RES_PROGRAM)"
8814 fi
8815
8816 if test "$wxUSE_GTK" = 1; then
8817 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
8818echo "configure:8819: checking for GTK+ version" >&5
8819
8820 gtk_version_cached=1
8821 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
8822 echo $ac_n "(cached) $ac_c" 1>&6
8823else
8824
8825 gtk_version_cached=0
8826 echo "$ac_t""""" 1>&6
8827
8828 wx_cv_lib_gtk=
8829 if test "x$wxUSE_GTK2" = "xyes"; then
8830 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
8831if test "${with_gtk_prefix+set}" = set; then
8832 withval="$with_gtk_prefix"
8833 gtk_config_prefix="$withval"
8834else
8835 gtk_config_prefix=""
8836fi
8837
8838# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
8839if test "${with_gtk_exec_prefix+set}" = set; then
8840 withval="$with_gtk_exec_prefix"
8841 gtk_config_exec_prefix="$withval"
8842else
8843 gtk_config_exec_prefix=""
8844fi
8845
8846# Check whether --enable-gtktest or --disable-gtktest was given.
8847if test "${enable_gtktest+set}" = set; then
8848 enableval="$enable_gtktest"
8849 :
8850else
8851 enable_gtktest=yes
8852fi
8853
8854
8855 for module in .
8856 do
8857 case "$module" in
8858 gthread)
8859 gtk_config_args="$gtk_config_args gthread"
8860 ;;
8861 esac
8862 done
8863
8864 if test x$gtk_config_exec_prefix != x ; then
8865 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8866 if test x${GTK_CONFIG_2_0+set} != xset ; then
8867 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
8868 fi
8869 fi
8870 if test x$gtk_config_prefix != x ; then
8871 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8872 if test x${GTK_CONFIG_2_0+set} != xset ; then
8873 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
8874 fi
8875 fi
8876
8877 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
8878set dummy gtk-config-2.0; ac_word=$2
8879echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8880echo "configure:8881: checking for $ac_word" >&5
8881if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
8882 echo $ac_n "(cached) $ac_c" 1>&6
8883else
8884 case "$GTK_CONFIG_2_0" in
8885 /*)
8886 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
8887 ;;
8888 ?:/*)
8889 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
8890 ;;
8891 *)
8892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8893 ac_dummy="$PATH"
8894 for ac_dir in $ac_dummy; do
8895 test -z "$ac_dir" && ac_dir=.
8896 if test -f $ac_dir/$ac_word; then
8897 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
8898 break
8899 fi
8900 done
8901 IFS="$ac_save_ifs"
8902 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
8903 ;;
8904esac
8905fi
8906GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
8907if test -n "$GTK_CONFIG_2_0"; then
8908 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
8909else
8910 echo "$ac_t""no" 1>&6
8911fi
8912
8913 min_gtk_version=1.3.1
8914 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8915echo "configure:8916: checking for GTK - version >= $min_gtk_version" >&5
8916 no_gtk=""
8917 if test "$GTK_CONFIG_2_0" = "no" ; then
8918 no_gtk=yes
8919 else
8920 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
8921 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
8922 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8923 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8924 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8925 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8926 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8927 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8928 if test "x$enable_gtktest" = "xyes" ; then
8929 ac_save_CFLAGS="$CFLAGS"
8930 ac_save_LIBS="$LIBS"
8931 CFLAGS="$CFLAGS $GTK_CFLAGS"
8932 LIBS="$GTK_LIBS $LIBS"
8933 rm -f conf.gtktest
8934 if test "$cross_compiling" = yes; then
8935 echo $ac_n "cross compiling; assumed OK... $ac_c"
8936else
8937 cat > conftest.$ac_ext <<EOF
8938#line 8939 "configure"
8939#include "confdefs.h"
8940
8941#include <gtk/gtk.h>
8942#include <stdio.h>
8943#include <stdlib.h>
8944
8945int
8946main ()
8947{
8948 int major, minor, micro;
8949 char *tmp_version;
8950
8951 system ("touch conf.gtktest");
8952
8953 /* HP/UX 9 (%@#!) writes to sscanf strings */
8954 tmp_version = g_strdup("$min_gtk_version");
8955 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8956 printf("%s, bad version string\n", "$min_gtk_version");
8957 exit(1);
8958 }
8959
8960 if ((gtk_major_version != $gtk_config_major_version) ||
8961 (gtk_minor_version != $gtk_config_minor_version) ||
8962 (gtk_micro_version != $gtk_config_micro_version))
8963 {
8964 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
8965 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
8966 gtk_major_version, gtk_minor_version, gtk_micro_version);
8967 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
8968 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
8969 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8970 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8971 printf("*** required on your system.\n");
8972 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
8973 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
8974 printf("*** before re-running configure\n");
8975 }
8976#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
8977 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8978 (gtk_minor_version != GTK_MINOR_VERSION) ||
8979 (gtk_micro_version != GTK_MICRO_VERSION))
8980 {
8981 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8982 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
8983 printf("*** library (version %d.%d.%d)\n",
8984 gtk_major_version, gtk_minor_version, gtk_micro_version);
8985 }
8986#endif /* defined (GTK_MAJOR_VERSION) ... */
8987 else
8988 {
8989 if ((gtk_major_version > major) ||
8990 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8991 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
8992 {
8993 return 0;
8994 }
8995 else
8996 {
8997 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
8998 gtk_major_version, gtk_minor_version, gtk_micro_version);
8999 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
9000 major, minor, micro);
9001 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9002 printf("***\n");
9003 printf("*** If you have already installed a sufficiently new version, this error\n");
9004 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9005 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9006 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9007 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9008 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9009 printf("*** so that the correct libraries are found at run-time))\n");
9010 }
9011 }
9012 return 1;
9013}
9014
9015EOF
9016if { (eval echo configure:9017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9017then
9018 :
9019else
9020 echo "configure: failed program was:" >&5
9021 cat conftest.$ac_ext >&5
9022 rm -fr conftest*
9023 no_gtk=yes
9024fi
9025rm -fr conftest*
9026fi
9027
9028 CFLAGS="$ac_save_CFLAGS"
9029 LIBS="$ac_save_LIBS"
9030 fi
9031 fi
9032 if test "x$no_gtk" = x ; then
9033 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
9034 wx_cv_lib_gtk=2.0
9035 else
9036 echo "$ac_t""no" 1>&6
9037 if test "$GTK_CONFIG_2_0" = "no" ; then
9038 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9039 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9040 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9041 echo "*** full path to gtk-config-2.0."
9042 else
9043 if test -f conf.gtktest ; then
9044 :
9045 else
9046 echo "*** Could not run GTK test program, checking why..."
9047 CFLAGS="$CFLAGS $GTK_CFLAGS"
9048 LIBS="$LIBS $GTK_LIBS"
9049 cat > conftest.$ac_ext <<EOF
9050#line 9051 "configure"
9051#include "confdefs.h"
9052
9053#include <gtk/gtk.h>
9054#include <stdio.h>
9055
9056int main() {
9057 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9058; return 0; }
9059EOF
9060if { (eval echo configure:9061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9061 rm -rf conftest*
9062 echo "*** The test program compiled, but did not run. This usually means"
9063 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9064 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9065 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9066 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9067 echo "*** is required on your system"
9068 echo "***"
9069 echo "*** If you have an old version installed, it is best to remove it, although"
9070 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9071 echo "***"
9072 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9073 echo "*** came with the system with the command"
9074 echo "***"
9075 echo "*** rpm --erase --nodeps gtk gtk-devel"
9076else
9077 echo "configure: failed program was:" >&5
9078 cat conftest.$ac_ext >&5
9079 rm -rf conftest*
9080 echo "*** The test program failed to compile or link. See the file config.log for the"
9081 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9082 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
9083 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
9084fi
9085rm -f conftest*
9086 CFLAGS="$ac_save_CFLAGS"
9087 LIBS="$ac_save_LIBS"
9088 fi
9089 fi
9090 GTK_CFLAGS=""
9091 GTK_LIBS=""
9092 gthread
9093 fi
9094
9095
9096 rm -f conf.gtktest
9097
9098 fi
9099
9100 if test -z "$wx_cv_lib_gtk"; then
9101
9102 if test x$gtk_config_exec_prefix != x ; then
9103 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9104 if test x${GTK_CONFIG+set} != xset ; then
9105 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9106 fi
9107 fi
9108 if test x$gtk_config_prefix != x ; then
9109 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9110 if test x${GTK_CONFIG+set} != xset ; then
9111 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9112 fi
9113 fi
9114
9115 # Extract the first word of "gtk-config", so it can be a program name with args.
9116set dummy gtk-config; ac_word=$2
9117echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9118echo "configure:9119: checking for $ac_word" >&5
9119if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9120 echo $ac_n "(cached) $ac_c" 1>&6
9121else
9122 case "$GTK_CONFIG" in
9123 /*)
9124 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9125 ;;
9126 ?:/*)
9127 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9128 ;;
9129 *)
9130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9131 ac_dummy="$PATH"
9132 for ac_dir in $ac_dummy; do
9133 test -z "$ac_dir" && ac_dir=.
9134 if test -f $ac_dir/$ac_word; then
9135 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9136 break
9137 fi
9138 done
9139 IFS="$ac_save_ifs"
9140 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9141 ;;
9142esac
9143fi
9144GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
9145if test -n "$GTK_CONFIG"; then
9146 echo "$ac_t""$GTK_CONFIG" 1>&6
9147else
9148 echo "$ac_t""no" 1>&6
9149fi
9150
9151 min_gtk_version=1.2.7
9152 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9153echo "configure:9154: checking for GTK - version >= $min_gtk_version" >&5
9154 no_gtk=""
9155 if test "$GTK_CONFIG" != "no" ; then
9156 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9157 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9158 ac_save_CFLAGS="$CFLAGS"
9159 ac_save_LIBS="$LIBS"
9160 CFLAGS="$CFLAGS $GTK_CFLAGS"
9161 LIBS="$LIBS $GTK_LIBS"
9162 if test "$cross_compiling" = yes; then
9163 echo $ac_n "cross compiling; assumed OK... $ac_c"
9164else
9165 cat > conftest.$ac_ext <<EOF
9166#line 9167 "configure"
9167#include "confdefs.h"
9168
9169#include <gtk/gtk.h>
9170#include <gtk/gtkfeatures.h>
9171#include <stdio.h>
9172#include <stdlib.h>
9173
9174int
9175main ()
9176{
9177 int major, minor, micro;
9178
9179 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9180 printf("%s, bad version string\n", "$min_gtk_version");
9181 exit(1);
9182 }
9183
9184 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9185 (GTK_MINOR_VERSION != gtk_minor_version) ||
9186 (GTK_MICRO_VERSION != gtk_micro_version)) {
9187 printf("Headers vs. library version mismatch!\n");
9188 exit(1);
9189 }
9190
9191 if (gtk_minor_version == 1) return FALSE;
9192
9193 return !((gtk_major_version > major) ||
9194 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9195 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9196}
9197
9198EOF
9199if { (eval echo configure:9200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9200then
9201 :
9202else
9203 echo "configure: failed program was:" >&5
9204 cat conftest.$ac_ext >&5
9205 rm -fr conftest*
9206 no_gtk=yes
9207fi
9208rm -fr conftest*
9209fi
9210
9211 CFLAGS="$ac_save_CFLAGS"
9212 LIBS="$ac_save_LIBS"
9213 else
9214 no_gtk=yes
9215 fi
9216 if test "x$no_gtk" = x ; then
9217 echo "$ac_t""yes" 1>&6
9218 wx_cv_lib_gtk=1.2.7
9219 else
9220 echo "$ac_t""no" 1>&6
9221 GTK_CFLAGS=""
9222 GTK_LIBS=""
9223 :
9224 fi
9225
9226
9227
9228 fi
9229
9230 if test -z "$wx_cv_lib_gtk"; then
9231
9232 if test x$gtk_config_exec_prefix != x ; then
9233 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9234 if test x${GTK_CONFIG+set} != xset ; then
9235 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9236 fi
9237 fi
9238 if test x$gtk_config_prefix != x ; then
9239 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9240 if test x${GTK_CONFIG+set} != xset ; then
9241 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9242 fi
9243 fi
9244
9245 # Extract the first word of "gtk-config", so it can be a program name with args.
9246set dummy gtk-config; ac_word=$2
9247echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9248echo "configure:9249: checking for $ac_word" >&5
9249if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9250 echo $ac_n "(cached) $ac_c" 1>&6
9251else
9252 case "$GTK_CONFIG" in
9253 /*)
9254 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9255 ;;
9256 ?:/*)
9257 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9258 ;;
9259 *)
9260 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9261 ac_dummy="$PATH"
9262 for ac_dir in $ac_dummy; do
9263 test -z "$ac_dir" && ac_dir=.
9264 if test -f $ac_dir/$ac_word; then
9265 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9266 break
9267 fi
9268 done
9269 IFS="$ac_save_ifs"
9270 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9271 ;;
9272esac
9273fi
9274GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
9275if test -n "$GTK_CONFIG"; then
9276 echo "$ac_t""$GTK_CONFIG" 1>&6
9277else
9278 echo "$ac_t""no" 1>&6
9279fi
9280
9281 min_gtk_version=1.2.3
9282 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9283echo "configure:9284: checking for GTK - version >= $min_gtk_version" >&5
9284 no_gtk=""
9285 if test "$GTK_CONFIG" != "no" ; then
9286 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9287 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9288 ac_save_CFLAGS="$CFLAGS"
9289 ac_save_LIBS="$LIBS"
9290 CFLAGS="$CFLAGS $GTK_CFLAGS"
9291 LIBS="$LIBS $GTK_LIBS"
9292 if test "$cross_compiling" = yes; then
9293 echo $ac_n "cross compiling; assumed OK... $ac_c"
9294else
9295 cat > conftest.$ac_ext <<EOF
9296#line 9297 "configure"
9297#include "confdefs.h"
9298
9299#include <gtk/gtk.h>
9300#include <gtk/gtkfeatures.h>
9301#include <stdio.h>
9302#include <stdlib.h>
9303
9304int
9305main ()
9306{
9307 int major, minor, micro;
9308
9309 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9310 printf("%s, bad version string\n", "$min_gtk_version");
9311 exit(1);
9312 }
9313
9314 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9315 (GTK_MINOR_VERSION != gtk_minor_version) ||
9316 (GTK_MICRO_VERSION != gtk_micro_version)) {
9317 printf("Headers vs. library version mismatch!\n");
9318 exit(1);
9319 }
9320
9321 if (gtk_minor_version == 1) return FALSE;
9322
9323 return !((gtk_major_version > major) ||
9324 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9325 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9326}
9327
9328EOF
9329if { (eval echo configure:9330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9330then
9331 :
9332else
9333 echo "configure: failed program was:" >&5
9334 cat conftest.$ac_ext >&5
9335 rm -fr conftest*
9336 no_gtk=yes
9337fi
9338rm -fr conftest*
9339fi
9340
9341 CFLAGS="$ac_save_CFLAGS"
9342 LIBS="$ac_save_LIBS"
9343 else
9344 no_gtk=yes
9345 fi
9346 if test "x$no_gtk" = x ; then
9347 echo "$ac_t""yes" 1>&6
9348 wx_cv_lib_gtk=1.2.3
9349 else
9350 echo "$ac_t""no" 1>&6
9351 GTK_CFLAGS=""
9352 GTK_LIBS=""
9353 :
9354 fi
9355
9356
9357
9358 fi
9359
9360 if test -z "$wx_cv_lib_gtk"; then
9361 wx_cv_lib_gtk=none
9362 else
9363 wx_cv_cflags_gtk=$GTK_CFLAGS
9364 wx_cv_libs_gtk=$GTK_LIBS
9365 fi
9366
9367
9368fi
9369
9370
9371 if test "$gtk_version_cached" = 1; then
9372 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
9373 fi
9374
9375 case "$wx_cv_lib_gtk" in
9376 2.0) WXGTK20=1
9377 ;;
9378 1.2.7) WXGTK127=1
9379 WXGTK12=1
9380 ;;
9381 1.2.3) WXGTK12=1
9382 ;;
9383 *) { echo "configure: error:
9384Please check that gtk-config is in path, the directory
9385where GTK+ libraries are installed (returned by
9386'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9387equivalent variable and GTK+ is version 1.2.3 or above.
9388 " 1>&2; exit 1; }
9389 ;;
9390 esac
9391
9392 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
9393 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
9394
9395 AFMINSTALL=afminstall
9396 TOOLKIT=GTK
9397 GUIDIST=GTK_DIST
9398
9399 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
9400echo "configure:9401: checking for gdk_im_open in -lgdk" >&5
9401ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9402if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9403 echo $ac_n "(cached) $ac_c" 1>&6
9404else
9405 ac_save_LIBS="$LIBS"
9406LIBS="-lgdk $LIBS"
9407cat > conftest.$ac_ext <<EOF
9408#line 9409 "configure"
9409#include "confdefs.h"
9410/* Override any gcc2 internal prototype to avoid an error. */
9411/* We use char because int might match the return type of a gcc2
9412 builtin and then its argument prototype would still apply. */
9413char gdk_im_open();
9414
9415int main() {
9416gdk_im_open()
9417; return 0; }
9418EOF
9419if { (eval echo configure:9420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9420 rm -rf conftest*
9421 eval "ac_cv_lib_$ac_lib_var=yes"
9422else
9423 echo "configure: failed program was:" >&5
9424 cat conftest.$ac_ext >&5
9425 rm -rf conftest*
9426 eval "ac_cv_lib_$ac_lib_var=no"
9427fi
9428rm -f conftest*
9429LIBS="$ac_save_LIBS"
9430
9431fi
9432if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9433 echo "$ac_t""yes" 1>&6
9434 cat >> confdefs.h <<\EOF
9435#define HAVE_XIM 1
9436EOF
9437
9438else
9439 echo "$ac_t""no" 1>&6
9440fi
9441
9442 fi
9443
9444 if test "$wxUSE_MGL" = 1; then
9445
9446 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
9447echo "configure:9448: checking for SciTech MGL library" >&5
9448 if test "x$MGL_ROOT" = x ; then
9449 echo "$ac_t""not found" 1>&6
9450 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9451 else
9452 echo "$ac_t""$MGL_ROOT" 1>&6
9453 fi
9454
9455 MGL_OS=linux/gcc/glibc
9456 MGL_LIB_TYPE=""
9457
9458 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9459 if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then
9460 MGL_LIB_TYPE=debug
9461 fi
9462 fi
9463 if test "x$MGL_LIB_TYPE" = x ; then
9464 if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then
9465 MGL_LIB_TYPE=release
9466 else
9467 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9468 fi
9469 fi
9470
9471 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9472 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm"
9473
9474 AFMINSTALL=afminstall
9475 TOOLKIT=MGL
9476 GUIDIST=MGL_DIST
9477 fi
9478
9479 if test "$wxUSE_WINE" = 1; then
9480 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
9481echo "configure:9482: checking for WINE includes" >&5
9482
9483ac_find_includes=
9484for ac_dir in $SEARCH_INCLUDE;
9485 do
9486 if test -f "$ac_dir/windows.h"; then
9487 ac_find_includes=$ac_dir
9488 break
9489 fi
9490 done
9491
9492 if test "$ac_find_includes" != "" ; then
9493 echo "$ac_t""found $ac_find_includes" 1>&6
9494 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
9495 else
9496 echo "$ac_t""no" 1>&6
9497 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9498 fi
9499
9500 XPM_LINK=""
9501 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9502echo "configure:9503: checking for Xpm library" >&5
9503
9504ac_find_libraries=
9505for ac_dir in $SEARCH_LIB;
9506 do
9507 for ac_extension in a so sl; do
9508 if test -f "$ac_dir/libXpm.$ac_extension"; then
9509 ac_find_libraries=$ac_dir
9510 break 2
9511 fi
9512 done
9513 done
9514
9515 if test "$ac_find_libraries" != "" ; then
9516 GUI_TK_LIBRARY="-L$ac_find_libraries"
9517 XPM_LINK="-lXpm"
9518 cat >> confdefs.h <<\EOF
9519#define wxHAVE_LIB_XPM 1
9520EOF
9521
9522 echo "$ac_t""found at $ac_find_libraries" 1>&6
9523 else
9524 echo "$ac_t""no" 1>&6
9525 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9526 fi
9527
9528 MESA_LINK=""
9529 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
9530echo "configure:9531: checking for Mesa library" >&5
9531
9532ac_find_libraries=
9533for ac_dir in $SEARCH_LIB;
9534 do
9535 for ac_extension in a so sl; do
9536 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9537 ac_find_libraries=$ac_dir
9538 break 2
9539 fi
9540 done
9541 done
9542
9543 if test "$ac_find_libraries" != "" ; then
9544 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9545 MESA_LINK="-lMesaGL"
9546 echo "$ac_t""found at $ac_find_libraries" 1>&6
9547 else
9548 { echo "configure: error: no" 1>&2; exit 1; }
9549 fi
9550
9551 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9552 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9553 WXWINE=1
9554 TOOLKIT=MSW
9555 GUIDIST=MSW_DIST
9556 fi
9557
9558
9559 # If we find X, set shell vars x_includes and x_libraries to the
9560# paths, otherwise set no_x=yes.
9561# Uses ac_ vars as temps to allow command line to override cache and checks.
9562# --without-x overrides everything else, but does not touch the cache.
9563echo $ac_n "checking for X""... $ac_c" 1>&6
9564echo "configure:9565: checking for X" >&5
9565
9566# Check whether --with-x or --without-x was given.
9567if test "${with_x+set}" = set; then
9568 withval="$with_x"
9569 :
9570fi
9571
9572# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9573if test "x$with_x" = xno; then
9574 # The user explicitly disabled X.
9575 have_x=disabled
9576else
9577 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9578 # Both variables are already set.
9579 have_x=yes
9580 else
9581if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9582 echo $ac_n "(cached) $ac_c" 1>&6
9583else
9584 # One or both of the vars are not set, and there is no cached value.
9585ac_x_includes=NO ac_x_libraries=NO
9586rm -fr conftestdir
9587if mkdir conftestdir; then
9588 cd conftestdir
9589 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9590 cat > Imakefile <<'EOF'
9591acfindx:
9592 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9593EOF
9594 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9595 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9596 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9597 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9598 for ac_extension in a so sl; do
9599 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9600 test -f $ac_im_libdir/libX11.$ac_extension; then
9601 ac_im_usrlibdir=$ac_im_libdir; break
9602 fi
9603 done
9604 # Screen out bogus values from the imake configuration. They are
9605 # bogus both because they are the default anyway, and because
9606 # using them would break gcc on systems where it needs fixed includes.
9607 case "$ac_im_incroot" in
9608 /usr/include) ;;
9609 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
9610 esac
9611 case "$ac_im_usrlibdir" in
9612 /usr/lib | /lib) ;;
9613 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
9614 esac
9615 fi
9616 cd ..
9617 rm -fr conftestdir
9618fi
9619
9620if test "$ac_x_includes" = NO; then
9621 # Guess where to find include files, by looking for this one X11 .h file.
9622 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9623
9624 # First, try using that file with no special directory specified.
9625cat > conftest.$ac_ext <<EOF
9626#line 9627 "configure"
9627#include "confdefs.h"
9628#include <$x_direct_test_include>
9629EOF
9630ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9631{ (eval echo configure:9632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9632ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9633if test -z "$ac_err"; then
9634 rm -rf conftest*
9635 # We can compile using X headers with no special include directory.
9636ac_x_includes=
9637else
9638 echo "$ac_err" >&5
9639 echo "configure: failed program was:" >&5
9640 cat conftest.$ac_ext >&5
9641 rm -rf conftest*
9642 # Look for the header file in a standard set of common directories.
9643# Check X11 before X11Rn because it is often a symlink to the current release.
9644 for ac_dir in \
9645 /usr/X11/include \
9646 /usr/X11R6/include \
9647 /usr/X11R5/include \
9648 /usr/X11R4/include \
9649 \
9650 /usr/include/X11 \
9651 /usr/include/X11R6 \
9652 /usr/include/X11R5 \
9653 /usr/include/X11R4 \
9654 \
9655 /usr/local/X11/include \
9656 /usr/local/X11R6/include \
9657 /usr/local/X11R5/include \
9658 /usr/local/X11R4/include \
9659 \
9660 /usr/local/include/X11 \
9661 /usr/local/include/X11R6 \
9662 /usr/local/include/X11R5 \
9663 /usr/local/include/X11R4 \
9664 \
9665 /usr/X386/include \
9666 /usr/x386/include \
9667 /usr/XFree86/include/X11 \
9668 \
9669 /usr/include \
9670 /usr/local/include \
9671 /usr/unsupported/include \
9672 /usr/athena/include \
9673 /usr/local/x11r5/include \
9674 /usr/lpp/Xamples/include \
9675 \
9676 /usr/openwin/include \
9677 /usr/openwin/share/include \
9678 ; \
9679 do
9680 if test -r "$ac_dir/$x_direct_test_include"; then
9681 ac_x_includes=$ac_dir
9682 break
9683 fi
9684 done
9685fi
9686rm -f conftest*
9687fi # $ac_x_includes = NO
9688
9689if test "$ac_x_libraries" = NO; then
9690 # Check for the libraries.
9691
9692 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9693 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9694
9695 # See if we find them without any special options.
9696 # Don't add to $LIBS permanently.
9697 ac_save_LIBS="$LIBS"
9698 LIBS="-l$x_direct_test_library $LIBS"
9699cat > conftest.$ac_ext <<EOF
9700#line 9701 "configure"
9701#include "confdefs.h"
9702
9703int main() {
9704${x_direct_test_function}()
9705; return 0; }
9706EOF
9707if { (eval echo configure:9708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9708 rm -rf conftest*
9709 LIBS="$ac_save_LIBS"
9710# We can link X programs with no special library path.
9711ac_x_libraries=
9712else
9713 echo "configure: failed program was:" >&5
9714 cat conftest.$ac_ext >&5
9715 rm -rf conftest*
9716 LIBS="$ac_save_LIBS"
9717# First see if replacing the include by lib works.
9718# Check X11 before X11Rn because it is often a symlink to the current release.
9719for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9720 /usr/X11/lib \
9721 /usr/X11R6/lib \
9722 /usr/X11R5/lib \
9723 /usr/X11R4/lib \
9724 \
9725 /usr/lib/X11 \
9726 /usr/lib/X11R6 \
9727 /usr/lib/X11R5 \
9728 /usr/lib/X11R4 \
9729 \
9730 /usr/local/X11/lib \
9731 /usr/local/X11R6/lib \
9732 /usr/local/X11R5/lib \
9733 /usr/local/X11R4/lib \
9734 \
9735 /usr/local/lib/X11 \
9736 /usr/local/lib/X11R6 \
9737 /usr/local/lib/X11R5 \
9738 /usr/local/lib/X11R4 \
9739 \
9740 /usr/X386/lib \
9741 /usr/x386/lib \
9742 /usr/XFree86/lib/X11 \
9743 \
9744 /usr/lib \
9745 /usr/local/lib \
9746 /usr/unsupported/lib \
9747 /usr/athena/lib \
9748 /usr/local/x11r5/lib \
9749 /usr/lpp/Xamples/lib \
9750 /lib/usr/lib/X11 \
9751 \
9752 /usr/openwin/lib \
9753 /usr/openwin/share/lib \
9754 ; \
9755do
9756 for ac_extension in a so sl; do
9757 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
9758 ac_x_libraries=$ac_dir
9759 break 2
9760 fi
9761 done
9762done
9763fi
9764rm -f conftest*
9765fi # $ac_x_libraries = NO
9766
9767if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
9768 # Didn't find X anywhere. Cache the known absence of X.
9769 ac_cv_have_x="have_x=no"
9770else
9771 # Record where we found X for the cache.
9772 ac_cv_have_x="have_x=yes \
9773 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9774fi
9775fi
9776 fi
9777 eval "$ac_cv_have_x"
9778fi # $with_x != no
9779
9780if test "$have_x" != yes; then
9781 echo "$ac_t""$have_x" 1>&6
9782 no_x=yes
9783else
9784 # If each of the values was on the command line, it overrides each guess.
9785 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9786 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9787 # Update the cache value to reflect the command line values.
9788 ac_cv_have_x="have_x=yes \
9789 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9790 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
9791fi
9792
9793if test "$no_x" = yes; then
9794 # Not all programs may use this symbol, but it does not hurt to define it.
9795 cat >> confdefs.h <<\EOF
9796#define X_DISPLAY_MISSING 1
9797EOF
9798
9799 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9800else
9801 if test -n "$x_includes"; then
9802 X_CFLAGS="$X_CFLAGS -I$x_includes"
9803 fi
9804
9805 # It would also be nice to do this for all -L options, not just this one.
9806 if test -n "$x_libraries"; then
9807 X_LIBS="$X_LIBS -L$x_libraries"
9808 # For Solaris; some versions of Sun CC require a space after -R and
9809 # others require no space. Words are not sufficient . . . .
9810 case "`(uname -sr) 2>/dev/null`" in
9811 "SunOS 5"*)
9812 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
9813echo "configure:9814: checking whether -R must be followed by a space" >&5
9814 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
9815 cat > conftest.$ac_ext <<EOF
9816#line 9817 "configure"
9817#include "confdefs.h"
9818
9819int main() {
9820
9821; return 0; }
9822EOF
9823if { (eval echo configure:9824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9824 rm -rf conftest*
9825 ac_R_nospace=yes
9826else
9827 echo "configure: failed program was:" >&5
9828 cat conftest.$ac_ext >&5
9829 rm -rf conftest*
9830 ac_R_nospace=no
9831fi
9832rm -f conftest*
9833 if test $ac_R_nospace = yes; then
9834 echo "$ac_t""no" 1>&6
9835 X_LIBS="$X_LIBS -R$x_libraries"
9836 else
9837 LIBS="$ac_xsave_LIBS -R $x_libraries"
9838 cat > conftest.$ac_ext <<EOF
9839#line 9840 "configure"
9840#include "confdefs.h"
9841
9842int main() {
9843
9844; return 0; }
9845EOF
9846if { (eval echo configure:9847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9847 rm -rf conftest*
9848 ac_R_space=yes
9849else
9850 echo "configure: failed program was:" >&5
9851 cat conftest.$ac_ext >&5
9852 rm -rf conftest*
9853 ac_R_space=no
9854fi
9855rm -f conftest*
9856 if test $ac_R_space = yes; then
9857 echo "$ac_t""yes" 1>&6
9858 X_LIBS="$X_LIBS -R $x_libraries"
9859 else
9860 echo "$ac_t""neither works" 1>&6
9861 fi
9862 fi
9863 LIBS="$ac_xsave_LIBS"
9864 esac
9865 fi
9866
9867 # Check for system-dependent libraries X programs must link with.
9868 # Do this before checking for the system-independent R6 libraries
9869 # (-lICE), since we may need -lsocket or whatever for X linking.
9870
9871 if test "$ISC" = yes; then
9872 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9873 else
9874 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
9875 # libraries were built with DECnet support. And karl@cs.umb.edu says
9876 # the Alpha needs dnet_stub (dnet does not exist).
9877 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
9878echo "configure:9879: checking for dnet_ntoa in -ldnet" >&5
9879ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9880if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9881 echo $ac_n "(cached) $ac_c" 1>&6
9882else
9883 ac_save_LIBS="$LIBS"
9884LIBS="-ldnet $LIBS"
9885cat > conftest.$ac_ext <<EOF
9886#line 9887 "configure"
9887#include "confdefs.h"
9888/* Override any gcc2 internal prototype to avoid an error. */
9889/* We use char because int might match the return type of a gcc2
9890 builtin and then its argument prototype would still apply. */
9891char dnet_ntoa();
9892
9893int main() {
9894dnet_ntoa()
9895; return 0; }
9896EOF
9897if { (eval echo configure:9898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9898 rm -rf conftest*
9899 eval "ac_cv_lib_$ac_lib_var=yes"
9900else
9901 echo "configure: failed program was:" >&5
9902 cat conftest.$ac_ext >&5
9903 rm -rf conftest*
9904 eval "ac_cv_lib_$ac_lib_var=no"
9905fi
9906rm -f conftest*
9907LIBS="$ac_save_LIBS"
9908
9909fi
9910if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9911 echo "$ac_t""yes" 1>&6
9912 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9913else
9914 echo "$ac_t""no" 1>&6
9915fi
9916
9917 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9918 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
9919echo "configure:9920: checking for dnet_ntoa in -ldnet_stub" >&5
9920ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9921if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9922 echo $ac_n "(cached) $ac_c" 1>&6
9923else
9924 ac_save_LIBS="$LIBS"
9925LIBS="-ldnet_stub $LIBS"
9926cat > conftest.$ac_ext <<EOF
9927#line 9928 "configure"
9928#include "confdefs.h"
9929/* Override any gcc2 internal prototype to avoid an error. */
9930/* We use char because int might match the return type of a gcc2
9931 builtin and then its argument prototype would still apply. */
9932char dnet_ntoa();
9933
9934int main() {
9935dnet_ntoa()
9936; return 0; }
9937EOF
9938if { (eval echo configure:9939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9939 rm -rf conftest*
9940 eval "ac_cv_lib_$ac_lib_var=yes"
9941else
9942 echo "configure: failed program was:" >&5
9943 cat conftest.$ac_ext >&5
9944 rm -rf conftest*
9945 eval "ac_cv_lib_$ac_lib_var=no"
9946fi
9947rm -f conftest*
9948LIBS="$ac_save_LIBS"
9949
9950fi
9951if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9952 echo "$ac_t""yes" 1>&6
9953 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9954else
9955 echo "$ac_t""no" 1>&6
9956fi
9957
9958 fi
9959
9960 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9961 # to get the SysV transport functions.
9962 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
9963 # needs -lnsl.
9964 # The nsl library prevents programs from opening the X display
9965 # on Irix 5.2, according to dickey@clark.net.
9966 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
9967echo "configure:9968: checking for gethostbyname" >&5
9968if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
9969 echo $ac_n "(cached) $ac_c" 1>&6
9970else
9971 cat > conftest.$ac_ext <<EOF
9972#line 9973 "configure"
9973#include "confdefs.h"
9974/* System header to define __stub macros and hopefully few prototypes,
9975 which can conflict with char gethostbyname(); below. */
9976#include <assert.h>
9977/* Override any gcc2 internal prototype to avoid an error. */
9978/* We use char because int might match the return type of a gcc2
9979 builtin and then its argument prototype would still apply. */
9980char gethostbyname();
9981
9982int main() {
9983
9984/* The GNU C library defines this for functions which it implements
9985 to always fail with ENOSYS. Some functions are actually named
9986 something starting with __ and the normal name is an alias. */
9987#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9988choke me
9989#else
9990gethostbyname();
9991#endif
9992
9993; return 0; }
9994EOF
9995if { (eval echo configure:9996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9996 rm -rf conftest*
9997 eval "ac_cv_func_gethostbyname=yes"
9998else
9999 echo "configure: failed program was:" >&5
10000 cat conftest.$ac_ext >&5
10001 rm -rf conftest*
10002 eval "ac_cv_func_gethostbyname=no"
10003fi
10004rm -f conftest*
10005fi
10006
10007if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10008 echo "$ac_t""yes" 1>&6
10009 :
10010else
10011 echo "$ac_t""no" 1>&6
10012fi
10013
10014 if test $ac_cv_func_gethostbyname = no; then
10015 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
10016echo "configure:10017: checking for gethostbyname in -lnsl" >&5
10017ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10018if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10019 echo $ac_n "(cached) $ac_c" 1>&6
10020else
10021 ac_save_LIBS="$LIBS"
10022LIBS="-lnsl $LIBS"
10023cat > conftest.$ac_ext <<EOF
10024#line 10025 "configure"
10025#include "confdefs.h"
10026/* Override any gcc2 internal prototype to avoid an error. */
10027/* We use char because int might match the return type of a gcc2
10028 builtin and then its argument prototype would still apply. */
10029char gethostbyname();
10030
10031int main() {
10032gethostbyname()
10033; return 0; }
10034EOF
10035if { (eval echo configure:10036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10036 rm -rf conftest*
10037 eval "ac_cv_lib_$ac_lib_var=yes"
10038else
10039 echo "configure: failed program was:" >&5
10040 cat conftest.$ac_ext >&5
10041 rm -rf conftest*
10042 eval "ac_cv_lib_$ac_lib_var=no"
10043fi
10044rm -f conftest*
10045LIBS="$ac_save_LIBS"
10046
10047fi
10048if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10049 echo "$ac_t""yes" 1>&6
10050 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10051else
10052 echo "$ac_t""no" 1>&6
10053fi
10054
10055 fi
10056
10057 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10058 # socket/setsockopt and other routines are undefined under SCO ODT
10059 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10060 # on later versions), says simon@lia.di.epfl.ch: it contains
10061 # gethostby* variants that don't use the nameserver (or something).
10062 # -lsocket must be given before -lnsl if both are needed.
10063 # We assume that if connect needs -lnsl, so does gethostbyname.
10064 echo $ac_n "checking for connect""... $ac_c" 1>&6
10065echo "configure:10066: checking for connect" >&5
10066if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
10067 echo $ac_n "(cached) $ac_c" 1>&6
10068else
10069 cat > conftest.$ac_ext <<EOF
10070#line 10071 "configure"
10071#include "confdefs.h"
10072/* System header to define __stub macros and hopefully few prototypes,
10073 which can conflict with char connect(); below. */
10074#include <assert.h>
10075/* Override any gcc2 internal prototype to avoid an error. */
10076/* We use char because int might match the return type of a gcc2
10077 builtin and then its argument prototype would still apply. */
10078char connect();
10079
10080int main() {
10081
10082/* The GNU C library defines this for functions which it implements
10083 to always fail with ENOSYS. Some functions are actually named
10084 something starting with __ and the normal name is an alias. */
10085#if defined (__stub_connect) || defined (__stub___connect)
10086choke me
10087#else
10088connect();
10089#endif
10090
10091; return 0; }
10092EOF
10093if { (eval echo configure:10094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10094 rm -rf conftest*
10095 eval "ac_cv_func_connect=yes"
10096else
10097 echo "configure: failed program was:" >&5
10098 cat conftest.$ac_ext >&5
10099 rm -rf conftest*
10100 eval "ac_cv_func_connect=no"
10101fi
10102rm -f conftest*
10103fi
10104
10105if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
10106 echo "$ac_t""yes" 1>&6
10107 :
10108else
10109 echo "$ac_t""no" 1>&6
10110fi
10111
10112 if test $ac_cv_func_connect = no; then
10113 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
10114echo "configure:10115: checking for connect in -lsocket" >&5
10115ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
10116if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10117 echo $ac_n "(cached) $ac_c" 1>&6
10118else
10119 ac_save_LIBS="$LIBS"
10120LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10121cat > conftest.$ac_ext <<EOF
10122#line 10123 "configure"
10123#include "confdefs.h"
10124/* Override any gcc2 internal prototype to avoid an error. */
10125/* We use char because int might match the return type of a gcc2
10126 builtin and then its argument prototype would still apply. */
10127char connect();
10128
10129int main() {
10130connect()
10131; return 0; }
10132EOF
10133if { (eval echo configure:10134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10134 rm -rf conftest*
10135 eval "ac_cv_lib_$ac_lib_var=yes"
10136else
10137 echo "configure: failed program was:" >&5
10138 cat conftest.$ac_ext >&5
10139 rm -rf conftest*
10140 eval "ac_cv_lib_$ac_lib_var=no"
10141fi
10142rm -f conftest*
10143LIBS="$ac_save_LIBS"
10144
10145fi
10146if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10147 echo "$ac_t""yes" 1>&6
10148 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10149else
10150 echo "$ac_t""no" 1>&6
10151fi
10152
10153 fi
10154
10155 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
10156 echo $ac_n "checking for remove""... $ac_c" 1>&6
10157echo "configure:10158: checking for remove" >&5
10158if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
10159 echo $ac_n "(cached) $ac_c" 1>&6
10160else
10161 cat > conftest.$ac_ext <<EOF
10162#line 10163 "configure"
10163#include "confdefs.h"
10164/* System header to define __stub macros and hopefully few prototypes,
10165 which can conflict with char remove(); below. */
10166#include <assert.h>
10167/* Override any gcc2 internal prototype to avoid an error. */
10168/* We use char because int might match the return type of a gcc2
10169 builtin and then its argument prototype would still apply. */
10170char remove();
10171
10172int main() {
10173
10174/* The GNU C library defines this for functions which it implements
10175 to always fail with ENOSYS. Some functions are actually named
10176 something starting with __ and the normal name is an alias. */
10177#if defined (__stub_remove) || defined (__stub___remove)
10178choke me
10179#else
10180remove();
10181#endif
10182
10183; return 0; }
10184EOF
10185if { (eval echo configure:10186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10186 rm -rf conftest*
10187 eval "ac_cv_func_remove=yes"
10188else
10189 echo "configure: failed program was:" >&5
10190 cat conftest.$ac_ext >&5
10191 rm -rf conftest*
10192 eval "ac_cv_func_remove=no"
10193fi
10194rm -f conftest*
10195fi
10196
10197if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
10198 echo "$ac_t""yes" 1>&6
10199 :
10200else
10201 echo "$ac_t""no" 1>&6
10202fi
10203
10204 if test $ac_cv_func_remove = no; then
10205 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
10206echo "configure:10207: checking for remove in -lposix" >&5
10207ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
10208if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10209 echo $ac_n "(cached) $ac_c" 1>&6
10210else
10211 ac_save_LIBS="$LIBS"
10212LIBS="-lposix $LIBS"
10213cat > conftest.$ac_ext <<EOF
10214#line 10215 "configure"
10215#include "confdefs.h"
10216/* Override any gcc2 internal prototype to avoid an error. */
10217/* We use char because int might match the return type of a gcc2
10218 builtin and then its argument prototype would still apply. */
10219char remove();
10220
10221int main() {
10222remove()
10223; return 0; }
10224EOF
10225if { (eval echo configure:10226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10226 rm -rf conftest*
10227 eval "ac_cv_lib_$ac_lib_var=yes"
10228else
10229 echo "configure: failed program was:" >&5
10230 cat conftest.$ac_ext >&5
10231 rm -rf conftest*
10232 eval "ac_cv_lib_$ac_lib_var=no"
10233fi
10234rm -f conftest*
10235LIBS="$ac_save_LIBS"
10236
10237fi
10238if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10239 echo "$ac_t""yes" 1>&6
10240 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10241else
10242 echo "$ac_t""no" 1>&6
10243fi
10244
10245 fi
10246
10247 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10248 echo $ac_n "checking for shmat""... $ac_c" 1>&6
10249echo "configure:10250: checking for shmat" >&5
10250if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
10251 echo $ac_n "(cached) $ac_c" 1>&6
10252else
10253 cat > conftest.$ac_ext <<EOF
10254#line 10255 "configure"
10255#include "confdefs.h"
10256/* System header to define __stub macros and hopefully few prototypes,
10257 which can conflict with char shmat(); below. */
10258#include <assert.h>
10259/* Override any gcc2 internal prototype to avoid an error. */
10260/* We use char because int might match the return type of a gcc2
10261 builtin and then its argument prototype would still apply. */
10262char shmat();
10263
10264int main() {
10265
10266/* The GNU C library defines this for functions which it implements
10267 to always fail with ENOSYS. Some functions are actually named
10268 something starting with __ and the normal name is an alias. */
10269#if defined (__stub_shmat) || defined (__stub___shmat)
10270choke me
10271#else
10272shmat();
10273#endif
10274
10275; return 0; }
10276EOF
10277if { (eval echo configure:10278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10278 rm -rf conftest*
10279 eval "ac_cv_func_shmat=yes"
10280else
10281 echo "configure: failed program was:" >&5
10282 cat conftest.$ac_ext >&5
10283 rm -rf conftest*
10284 eval "ac_cv_func_shmat=no"
10285fi
10286rm -f conftest*
10287fi
10288
10289if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
10290 echo "$ac_t""yes" 1>&6
10291 :
10292else
10293 echo "$ac_t""no" 1>&6
10294fi
10295
10296 if test $ac_cv_func_shmat = no; then
10297 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
10298echo "configure:10299: checking for shmat in -lipc" >&5
10299ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
10300if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10301 echo $ac_n "(cached) $ac_c" 1>&6
10302else
10303 ac_save_LIBS="$LIBS"
10304LIBS="-lipc $LIBS"
10305cat > conftest.$ac_ext <<EOF
10306#line 10307 "configure"
10307#include "confdefs.h"
10308/* Override any gcc2 internal prototype to avoid an error. */
10309/* We use char because int might match the return type of a gcc2
10310 builtin and then its argument prototype would still apply. */
10311char shmat();
10312
10313int main() {
10314shmat()
10315; return 0; }
10316EOF
10317if { (eval echo configure:10318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10318 rm -rf conftest*
10319 eval "ac_cv_lib_$ac_lib_var=yes"
10320else
10321 echo "configure: failed program was:" >&5
10322 cat conftest.$ac_ext >&5
10323 rm -rf conftest*
10324 eval "ac_cv_lib_$ac_lib_var=no"
10325fi
10326rm -f conftest*
10327LIBS="$ac_save_LIBS"
10328
10329fi
10330if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10331 echo "$ac_t""yes" 1>&6
10332 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10333else
10334 echo "$ac_t""no" 1>&6
10335fi
10336
10337 fi
10338 fi
10339
10340 # Check for libraries that X11R6 Xt/Xaw programs need.
10341 ac_save_LDFLAGS="$LDFLAGS"
10342 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10343 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10344 # check for ICE first), but we must link in the order -lSM -lICE or
10345 # we get undefined symbols. So assume we have SM if we have ICE.
10346 # These have to be linked with before -lX11, unlike the other
10347 # libraries we check for below, so use a different variable.
10348 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10349 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
10350echo "configure:10351: checking for IceConnectionNumber in -lICE" >&5
10351ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10352if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10353 echo $ac_n "(cached) $ac_c" 1>&6
10354else
10355 ac_save_LIBS="$LIBS"
10356LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10357cat > conftest.$ac_ext <<EOF
10358#line 10359 "configure"
10359#include "confdefs.h"
10360/* Override any gcc2 internal prototype to avoid an error. */
10361/* We use char because int might match the return type of a gcc2
10362 builtin and then its argument prototype would still apply. */
10363char IceConnectionNumber();
10364
10365int main() {
10366IceConnectionNumber()
10367; return 0; }
10368EOF
10369if { (eval echo configure:10370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10370 rm -rf conftest*
10371 eval "ac_cv_lib_$ac_lib_var=yes"
10372else
10373 echo "configure: failed program was:" >&5
10374 cat conftest.$ac_ext >&5
10375 rm -rf conftest*
10376 eval "ac_cv_lib_$ac_lib_var=no"
10377fi
10378rm -f conftest*
10379LIBS="$ac_save_LIBS"
10380
10381fi
10382if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10383 echo "$ac_t""yes" 1>&6
10384 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10385else
10386 echo "$ac_t""no" 1>&6
10387fi
10388
10389 LDFLAGS="$ac_save_LDFLAGS"
10390
10391fi
10392
10393 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10394 LDFLAGS="$LDFLAGS $X_LIBS"
10395
10396 if test "$wxUSE_MOTIF" = 1; then
10397 if test "$no_x" = "yes"; then
10398 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10399 fi
10400
10401 GUI_TK_LIBRARY="$X_LIBS"
10402 TOOLKIT_INCLUDE="$X_CFLAGS"
10403
10404 AFMINSTALL=afminstall
10405
10406
10407 COMPILED_X_PROGRAM=0
10408
10409 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
10410echo "configure:10411: checking for Motif/Lesstif headers" >&5
10411
10412ac_find_includes=
10413for ac_dir in $SEARCH_INCLUDE;
10414 do
10415 if test -f "$ac_dir/Xm/Xm.h"; then
10416 ac_find_includes=$ac_dir
10417 break
10418 fi
10419 done
10420
10421 if test "$ac_find_includes" != "" ; then
10422 echo "$ac_t""found $ac_find_includes" 1>&6
10423 else
10424 cat > conftest.$ac_ext <<EOF
10425#line 10426 "configure"
10426#include "confdefs.h"
10427
10428 #include <Xm/Xm.h>
10429
10430int main() {
10431
10432 int version;
10433
10434 version = xmUseVersion;
10435
10436; return 0; }
10437EOF
10438if { (eval echo configure:10439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10439 rm -rf conftest*
10440
10441 echo "$ac_t""found in default search path" 1>&6
10442 COMPILED_X_PROGRAM=1
10443
10444else
10445 echo "configure: failed program was:" >&5
10446 cat conftest.$ac_ext >&5
10447 rm -rf conftest*
10448
10449 echo "$ac_t""no" 1>&6
10450 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10451
10452
10453fi
10454rm -f conftest*
10455 fi
10456
10457 if test "$COMPILED_X_PROGRAM" = 0; then
10458 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
10459echo "configure:10460: checking for Motif/Lesstif library" >&5
10460
10461ac_find_libraries=
10462for ac_dir in $SEARCH_LIB;
10463 do
10464 for ac_extension in a so sl; do
10465 if test -f "$ac_dir/libXm.$ac_extension"; then
10466 ac_find_libraries=$ac_dir
10467 break 2
10468 fi
10469 done
10470 done
10471
10472 if test "$ac_find_libraries" != "" ; then
10473
10474 ac_path_to_include=$ac_find_includes
10475 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10476 result=$?
10477 if test $result = 0; then
10478 ac_path_to_include=""
10479 else
10480 ac_path_to_include="-I$ac_find_includes"
10481 fi
10482
10483
10484 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10485 result=$?
10486 if test $result = 0; then
10487 ac_path_to_link=""
10488 else
10489 ac_path_to_link="-L$ac_find_libraries"
10490 fi
10491
10492
10493 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10494 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10495 echo "$ac_t""found at $ac_find_libraries" 1>&6
10496 else
10497 cat > conftest.$ac_ext <<EOF
10498#line 10499 "configure"
10499#include "confdefs.h"
10500
10501 #include <Xm/Xm.h>
10502
10503int main() {
10504
10505 int version;
10506
10507 version = xmUseVersion;
10508
10509; return 0; }
10510EOF
10511if { (eval echo configure:10512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10512 rm -rf conftest*
10513
10514 echo "$ac_t""found in default search path" 1>&6
10515 COMPILED_X_PROGRAM=1
10516
10517else
10518 echo "configure: failed program was:" >&5
10519 cat conftest.$ac_ext >&5
10520 rm -rf conftest*
10521
10522 echo "$ac_t""no" 1>&6
10523 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10524
10525
10526fi
10527rm -f conftest*
10528 fi
10529 fi
10530
10531
10532 XPM_LINK=""
10533 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
10534echo "configure:10535: checking for Xpm library" >&5
10535
10536ac_find_libraries=
10537for ac_dir in $SEARCH_LIB;
10538 do
10539 for ac_extension in a so sl; do
10540 if test -f "$ac_dir/libXpm.$ac_extension"; then
10541 ac_find_libraries=$ac_dir
10542 break 2
10543 fi
10544 done
10545 done
10546
10547 if test "$ac_find_libraries" != "" ; then
10548
10549 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10550 result=$?
10551 if test $result = 0; then
10552 ac_path_to_link=""
10553 else
10554 ac_path_to_link="-L$ac_find_libraries"
10555 fi
10556
10557 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10558 XPM_LINK="-lXpm "
10559 cat >> confdefs.h <<\EOF
10560#define wxHAVE_LIB_XPM 1
10561EOF
10562
10563 echo "$ac_t""found at $ac_find_libraries" 1>&6
10564 else
10565 cat > conftest.$ac_ext <<EOF
10566#line 10567 "configure"
10567#include "confdefs.h"
10568
10569 #include <X11/xpm.h>
10570
10571int main() {
10572
10573 int version;
10574
10575 version = XpmLibraryVersion();
10576
10577; return 0; }
10578EOF
10579if { (eval echo configure:10580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10580 rm -rf conftest*
10581
10582 XPM_LINK="-lXpm "
10583 cat >> confdefs.h <<\EOF
10584#define wxHAVE_LIB_XPM 1
10585EOF
10586
10587 echo "$ac_t""found in default search path" 1>&6
10588 COMPILED_X_PROGRAM=0
10589
10590else
10591 echo "configure: failed program was:" >&5
10592 cat conftest.$ac_ext >&5
10593 rm -rf conftest*
10594
10595 echo "$ac_t""no" 1>&6
10596 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10597
10598
10599fi
10600rm -f conftest*
10601 fi
10602
10603 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
10604 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
10605 TOOLKIT=MOTIF
10606 GUIDIST=MOTIF_DIST
10607 fi
10608
10609 if test "$wxUSE_MAC" = 1; then
10610 TOOLKIT=MAC
10611 GUIDIST=MACX_DIST
10612 fi
10613
10614 if test "$wxUSE_PM" = 1; then
10615 TOOLKIT=PM
10616 GUIDIST=GTK_DIST
10617 fi
10618
10619 if test "$TOOLKIT" != "PM" ; then
10620 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10621 else
10622 TOOLKIT_DIR="os2"
10623 fi
10624
10625 TOOLKIT_NAME="${TOOLKIT_DIR}"
10626
10627 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10628
10629 if test "$TOOLKIT_NAME" = "motif"; then
10630 TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10631 fi
10632
10633 if test "$wxUSE_UNIVERSAL" = "yes"; then
10634 TOOLKIT_NAME="${TOOLKIT_NAME}univ"
10635 UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
10636 TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}"
10637 SETUPH_DIR="univ"
10638 else
10639 SETUPH_DIR="${TOOLKIT_DIR}"
10640 fi
10641
10642 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10643 TOOLKIT_NAME="${TOOLKIT_NAME}d"
10644 fi
10645
10646 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10647 if test "$wxUSE_UNIVERSAL" = "yes"; then
10648 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__"
10649 fi
10650
10651 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10652
10653 if test "$wxUSE_UNIVERSAL" = "yes"; then
10654 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10655 else
10656 ALL_OBJECTS="\$(GUIOBJS)"
10657 fi
10658
10659 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10660
10661 if test "$TOOLKIT" != "MSW"; then
10662 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10663 fi
10664
10665 if test "$wxUSE_HTML" = "yes"; then
10666 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10667 fi
10668
10669 if test "$TOOLKIT" != "MSW"; then
10670 if test "$wxUSE_ODBC" = "yes" ; then
10671 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10672 fi
10673 fi
10674
10675 if test "$wxUSE_LIBJPEG" = "yes" ; then
10676 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
10677 fi
10678 if test "$wxUSE_LIBTIFF" = "yes" ; then
10679 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10680 fi
10681 if test "$wxUSE_LIBPNG" = "yes" ; then
10682 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10683 fi
10684 if test "$wxUSE_ZLIB" = "yes" ; then
10685 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10686 fi
10687 if test "$wxUSE_FREETYPE" = "yes" ; then
10688 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10689 fi
10690
10691 if test "$wxUSE_UNIVERSAL" = "yes"; then
10692 ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)"
10693 else
10694 ALL_DEPFILES="\$(GUIDEPS)"
10695 fi
10696
10697 ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)"
10698
10699 if test "$TOOLKIT" != "MSW"; then
10700 ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)"
10701 fi
10702
10703 if test "$wxUSE_HTML" = "yes"; then
10704 ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)"
10705 fi
10706
10707 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
10708 if test "$wxUSE_UNIVERSAL" = "yes"; then
10709 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
10710 fi
10711 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10712 RPM_SPEC="wx\$(TOOLKIT).spec"
10713
10714 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10715 DISTDIR="wx\$(TOOLKIT)"
10716else
10717 USE_GUI=0
10718
10719 TOOLKIT_DIR="base"
10720
10721 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10722 TOOLKIT_NAME="${TOOLKIT_DIR}d"
10723 else
10724 TOOLKIT_NAME="${TOOLKIT_DIR}"
10725 fi
10726
10727 TOOLKIT_DEF="-D__WXBASE__"
10728
10729 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
10730 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10731
10732 if test "$wxUSE_ZLIB" = "yes" ; then
10733 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10734 fi
10735
10736 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10737
10738 PORT_FILES="src/files.lst"
10739 RPM_FILES="src/rpmfiles.lst"
10740 RPM_SPEC="wxBase.spec"
10741
10742 GUIDIST="BASE_DIST"
10743 DISTDIR="wxBase"
10744fi
10745
10746WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
10747WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10748
10749WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
10750WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10751
10752WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10753WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10754
10755WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
10756WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
10757WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
10758WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
10759WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
10760WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10761
10762SHARED_LD=
10763PIC_FLAG=
10764WX_ALL=
10765WX_ALL_INSTALLED=
10766BURNT_LIBRARY_NAME=
10767WX_TARGET_LIBRARY_SONAME=
10768
10769
10770if test "$wxUSE_SHARED" = "yes"; then
10771 case "${host}" in
10772 *-hp-hpux* )
10773 if test "$GCC" = yes ; then
10774 SHARED_LD="${CC} -shared -fPIC -o"
10775 PIC_FLAG="-fPIC"
10776 else
10777 LDFLAGS="-L/usr/lib"
10778
10779 SHARED_LD="${CXX} -b -o"
10780 PIC_FLAG="+Z"
10781 fi
10782 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
10783 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
10784 if test "$wxUSE_OPENGL" = "yes"; then
10785 WX_ALL_INSTALLED="preinstall_gl"
10786 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
10787 else
10788 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
10789 fi
10790 ;;
10791
10792 *-*-linux* )
10793 SHARED_LD="${CC} -shared -o"
10794 PIC_FLAG="-fPIC"
10795 if test "$wxUSE_BURNT_NAME" = "yes" ; then
10796 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
10797 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
10798 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
10799 fi
10800 if test "$wxUSE_OPENGL" = "yes"; then
10801 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10802 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10803 else
10804 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10805 WX_ALL="CREATE_LINKS"
10806 fi
10807 ;;
10808 *-*-irix5* | *-*-irix6* )
10809 if test "$GCC" = yes ; then
10810 SHARED_LD="${CC} -shared -o"
10811 PIC_FLAG="-fPIC"
10812 else
10813 SHARED_LD="${CXX} -shared -o"
10814 fi
10815 if test "$wxUSE_OPENGL" = "yes"; then
10816 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10817 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10818 else
10819 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10820 WX_ALL="CREATE_LINKS"
10821 fi
10822 ;;
10823 *-*-solaris2* )
10824 if test "$GCC" = yes ; then
10825 SHARED_LD="${CC} -shared -o"
10826 PIC_FLAG="-fPIC"
10827
10828 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10829 else
10830 SHARED_LD="${CXX} -G -o"
10831 PIC_FLAG="-KPIC"
10832 fi
10833 if test "$wxUSE_OPENGL" = "yes"; then
10834 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10835 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10836 else
10837 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10838 WX_ALL="CREATE_LINKS"
10839 fi
10840 ;;
10841 *-*-sunos4* )
10842 SHARED_LD="${CC} -shared -o"
10843 PIC_FLAG="-fPIC"
10844 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10845 WX_ALL="CREATE_LINKS"
10846 ;;
10847 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
10848 SHARED_LD="${CC} -shared -o"
10849 PIC_FLAG="-fPIC"
10850 if test "$wxUSE_OPENGL" = "yes"; then
10851 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10852 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10853 else
10854 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10855 WX_ALL="CREATE_LINKS"
10856 fi
10857 ;;
10858 *-*-darwin* )
10859 SHARED_LD="${CXX} -dynamiclib -o"
10860 PIC_FLAG="-dynamic -fPIC"
10861 if test "$wxUSE_OPENGL" = "yes"; then
10862 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10863 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10864 else
10865 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10866 WX_ALL="CREATE_LINKS"
10867 fi
10868 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
10869 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10870 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10871 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
10872 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
10873 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
10874 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
10875 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
10876 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
10877 ;;
10878 *-*-osf* )
10879 SHARED_LD="${CXX} -shared -o"
10880 PIC_FLAG="-fPIC"
10881 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10882 WX_ALL="CREATE_LINKS"
10883 ;;
10884 *-*-dgux5* )
10885 SHARED_LD="${CXX} -shared -o"
10886 PIC_FLAG="-fPIC"
10887 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10888 WX_ALL="CREATE_LINKS"
10889 ;;
10890 *-*-sysv5* )
10891 SHARED_LD="${CC} -shared -o"
10892 PIC_FLAG="-fPIC"
10893 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10894 WX_ALL="CREATE_LINKS"
10895 ;;
10896 *-*-aix* )
10897 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10898 WX_ALL=${WX_LIBRARY_NAME_SHARED}
10899 ;;
10900 *-*-cygwin* )
10901 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10902 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10903 if test "$wxUSE_OPENGL" = "yes"; then
10904 WX_ALL_INSTALLED="preinstall_gl"
10905 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10906 else
10907 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10908 fi
10909 ;;
10910 *-*-mingw32* )
10911 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10912 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10913 if test "$wxUSE_OPENGL" = "yes"; then
10914 WX_ALL_INSTALLED="preinstall_gl"
10915 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10916 else
10917 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10918 fi
10919 ;;
10920 *-pc-os2_emx )
10921 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10922 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10923 ;;
10924 *-*-beos* )
10925 SHARED_LD="${LD} -shared -o"
10926 PIC_FLAG="-fPIC"
10927 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10928 WX_ALL="CREATE_LINKS"
10929 ;;
10930 *)
10931 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10932 esac
10933
10934 if test "x$WX_TARGET_LIBRARY" = "x"; then
10935 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
10936 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10937 fi
10938 WX_TARGET_LIBRARY_TYPE="so"
10939else
10940 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10941 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10942
10943 if test "$wxUSE_OPENGL" = "yes"; then
10944 WX_ALL_INSTALLED="preinstall_gl"
10945 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10946 else
10947 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10948 fi
10949
10950 if test "$wxUSE_GUI" = "no"; then
10951 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
10952 fi
10953
10954 WX_TARGET_LIBRARY_TYPE="a"
10955fi
10956
10957
10958for ac_hdr in strings.h
10959do
10960ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10961echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10962echo "configure:10963: checking for $ac_hdr" >&5
10963if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10964 echo $ac_n "(cached) $ac_c" 1>&6
10965else
10966 cat > conftest.$ac_ext <<EOF
10967#line 10968 "configure"
10968#include "confdefs.h"
10969#include <$ac_hdr>
10970EOF
10971ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10972{ (eval echo configure:10973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10973ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10974if test -z "$ac_err"; then
10975 rm -rf conftest*
10976 eval "ac_cv_header_$ac_safe=yes"
10977else
10978 echo "$ac_err" >&5
10979 echo "configure: failed program was:" >&5
10980 cat conftest.$ac_ext >&5
10981 rm -rf conftest*
10982 eval "ac_cv_header_$ac_safe=no"
10983fi
10984rm -f conftest*
10985fi
10986if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10987 echo "$ac_t""yes" 1>&6
10988 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10989 cat >> confdefs.h <<EOF
10990#define $ac_tr_hdr 1
10991EOF
10992
10993else
10994 echo "$ac_t""no" 1>&6
10995fi
10996done
10997
10998for ac_hdr in stdlib.h
10999do
11000ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11001echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11002echo "configure:11003: checking for $ac_hdr" >&5
11003if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11004 echo $ac_n "(cached) $ac_c" 1>&6
11005else
11006 cat > conftest.$ac_ext <<EOF
11007#line 11008 "configure"
11008#include "confdefs.h"
11009#include <$ac_hdr>
11010EOF
11011ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11012{ (eval echo configure:11013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11013ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11014if test -z "$ac_err"; then
11015 rm -rf conftest*
11016 eval "ac_cv_header_$ac_safe=yes"
11017else
11018 echo "$ac_err" >&5
11019 echo "configure: failed program was:" >&5
11020 cat conftest.$ac_ext >&5
11021 rm -rf conftest*
11022 eval "ac_cv_header_$ac_safe=no"
11023fi
11024rm -f conftest*
11025fi
11026if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11027 echo "$ac_t""yes" 1>&6
11028 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11029 cat >> confdefs.h <<EOF
11030#define $ac_tr_hdr 1
11031EOF
11032
11033else
11034 echo "$ac_t""no" 1>&6
11035fi
11036done
11037
11038for ac_hdr in unistd.h
11039do
11040ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11041echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11042echo "configure:11043: checking for $ac_hdr" >&5
11043if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11044 echo $ac_n "(cached) $ac_c" 1>&6
11045else
11046 cat > conftest.$ac_ext <<EOF
11047#line 11048 "configure"
11048#include "confdefs.h"
11049#include <$ac_hdr>
11050EOF
11051ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11052{ (eval echo configure:11053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11053ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11054if test -z "$ac_err"; then
11055 rm -rf conftest*
11056 eval "ac_cv_header_$ac_safe=yes"
11057else
11058 echo "$ac_err" >&5
11059 echo "configure: failed program was:" >&5
11060 cat conftest.$ac_ext >&5
11061 rm -rf conftest*
11062 eval "ac_cv_header_$ac_safe=no"
11063fi
11064rm -f conftest*
11065fi
11066if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11067 echo "$ac_t""yes" 1>&6
11068 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11069 cat >> confdefs.h <<EOF
11070#define $ac_tr_hdr 1
11071EOF
11072
11073else
11074 echo "$ac_t""no" 1>&6
11075fi
11076done
11077
11078for ac_hdr in wchar.h
11079do
11080ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11081echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11082echo "configure:11083: checking for $ac_hdr" >&5
11083if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11084 echo $ac_n "(cached) $ac_c" 1>&6
11085else
11086 cat > conftest.$ac_ext <<EOF
11087#line 11088 "configure"
11088#include "confdefs.h"
11089#include <$ac_hdr>
11090EOF
11091ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11092{ (eval echo configure:11093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11093ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11094if test -z "$ac_err"; then
11095 rm -rf conftest*
11096 eval "ac_cv_header_$ac_safe=yes"
11097else
11098 echo "$ac_err" >&5
11099 echo "configure: failed program was:" >&5
11100 cat conftest.$ac_ext >&5
11101 rm -rf conftest*
11102 eval "ac_cv_header_$ac_safe=no"
11103fi
11104rm -f conftest*
11105fi
11106if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11107 echo "$ac_t""yes" 1>&6
11108 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11109 cat >> confdefs.h <<EOF
11110#define $ac_tr_hdr 1
11111EOF
11112
11113else
11114 echo "$ac_t""no" 1>&6
11115fi
11116done
11117
11118for ac_hdr in wcstr.h
11119do
11120ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11121echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11122echo "configure:11123: checking for $ac_hdr" >&5
11123if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11124 echo $ac_n "(cached) $ac_c" 1>&6
11125else
11126 cat > conftest.$ac_ext <<EOF
11127#line 11128 "configure"
11128#include "confdefs.h"
11129#include <$ac_hdr>
11130EOF
11131ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11132{ (eval echo configure:11133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11133ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11134if test -z "$ac_err"; then
11135 rm -rf conftest*
11136 eval "ac_cv_header_$ac_safe=yes"
11137else
11138 echo "$ac_err" >&5
11139 echo "configure: failed program was:" >&5
11140 cat conftest.$ac_ext >&5
11141 rm -rf conftest*
11142 eval "ac_cv_header_$ac_safe=no"
11143fi
11144rm -f conftest*
11145fi
11146if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11147 echo "$ac_t""yes" 1>&6
11148 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11149 cat >> confdefs.h <<EOF
11150#define $ac_tr_hdr 1
11151EOF
11152
11153else
11154 echo "$ac_t""no" 1>&6
11155fi
11156done
11157
11158for ac_hdr in fnmatch.h
11159do
11160ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11161echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11162echo "configure:11163: checking for $ac_hdr" >&5
11163if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11164 echo $ac_n "(cached) $ac_c" 1>&6
11165else
11166 cat > conftest.$ac_ext <<EOF
11167#line 11168 "configure"
11168#include "confdefs.h"
11169#include <$ac_hdr>
11170EOF
11171ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11172{ (eval echo configure:11173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11173ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11174if test -z "$ac_err"; then
11175 rm -rf conftest*
11176 eval "ac_cv_header_$ac_safe=yes"
11177else
11178 echo "$ac_err" >&5
11179 echo "configure: failed program was:" >&5
11180 cat conftest.$ac_ext >&5
11181 rm -rf conftest*
11182 eval "ac_cv_header_$ac_safe=no"
11183fi
11184rm -f conftest*
11185fi
11186if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11187 echo "$ac_t""yes" 1>&6
11188 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11189 cat >> confdefs.h <<EOF
11190#define $ac_tr_hdr 1
11191EOF
11192
11193else
11194 echo "$ac_t""no" 1>&6
11195fi
11196done
11197
11198for ac_hdr in iconv.h
11199do
11200ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11201echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11202echo "configure:11203: checking for $ac_hdr" >&5
11203if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11204 echo $ac_n "(cached) $ac_c" 1>&6
11205else
11206 cat > conftest.$ac_ext <<EOF
11207#line 11208 "configure"
11208#include "confdefs.h"
11209#include <$ac_hdr>
11210EOF
11211ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11212{ (eval echo configure:11213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11213ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11214if test -z "$ac_err"; then
11215 rm -rf conftest*
11216 eval "ac_cv_header_$ac_safe=yes"
11217else
11218 echo "$ac_err" >&5
11219 echo "configure: failed program was:" >&5
11220 cat conftest.$ac_ext >&5
11221 rm -rf conftest*
11222 eval "ac_cv_header_$ac_safe=no"
11223fi
11224rm -f conftest*
11225fi
11226if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11227 echo "$ac_t""yes" 1>&6
11228 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11229 cat >> confdefs.h <<EOF
11230#define $ac_tr_hdr 1
11231EOF
11232
11233else
11234 echo "$ac_t""no" 1>&6
11235fi
11236done
11237
11238for ac_hdr in langinfo.h
11239do
11240ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11241echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11242echo "configure:11243: checking for $ac_hdr" >&5
11243if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11244 echo $ac_n "(cached) $ac_c" 1>&6
11245else
11246 cat > conftest.$ac_ext <<EOF
11247#line 11248 "configure"
11248#include "confdefs.h"
11249#include <$ac_hdr>
11250EOF
11251ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11252{ (eval echo configure:11253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11253ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11254if test -z "$ac_err"; then
11255 rm -rf conftest*
11256 eval "ac_cv_header_$ac_safe=yes"
11257else
11258 echo "$ac_err" >&5
11259 echo "configure: failed program was:" >&5
11260 cat conftest.$ac_ext >&5
11261 rm -rf conftest*
11262 eval "ac_cv_header_$ac_safe=no"
11263fi
11264rm -f conftest*
11265fi
11266if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11267 echo "$ac_t""yes" 1>&6
11268 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11269 cat >> confdefs.h <<EOF
11270#define $ac_tr_hdr 1
11271EOF
11272
11273else
11274 echo "$ac_t""no" 1>&6
11275fi
11276done
11277
11278
11279if test "$wxUSE_GUI" = "yes"; then
11280 if test "$wxUSE_UNIX" = "yes"; then
11281 for ac_hdr in X11/XKBlib.h
11282do
11283ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11284echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11285echo "configure:11286: checking for $ac_hdr" >&5
11286if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11287 echo $ac_n "(cached) $ac_c" 1>&6
11288else
11289 cat > conftest.$ac_ext <<EOF
11290#line 11291 "configure"
11291#include "confdefs.h"
11292#include <$ac_hdr>
11293EOF
11294ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11295{ (eval echo configure:11296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11296ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11297if test -z "$ac_err"; then
11298 rm -rf conftest*
11299 eval "ac_cv_header_$ac_safe=yes"
11300else
11301 echo "$ac_err" >&5
11302 echo "configure: failed program was:" >&5
11303 cat conftest.$ac_ext >&5
11304 rm -rf conftest*
11305 eval "ac_cv_header_$ac_safe=no"
11306fi
11307rm -f conftest*
11308fi
11309if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11310 echo "$ac_t""yes" 1>&6
11311 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11312 cat >> confdefs.h <<EOF
11313#define $ac_tr_hdr 1
11314EOF
11315
11316else
11317 echo "$ac_t""no" 1>&6
11318fi
11319done
11320
11321 fi
11322fi
11323
11324if test "$USE_WIN32" = 1; then
11325 for ac_hdr in w32api.h
11326do
11327ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11328echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11329echo "configure:11330: checking for $ac_hdr" >&5
11330if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11331 echo $ac_n "(cached) $ac_c" 1>&6
11332else
11333 cat > conftest.$ac_ext <<EOF
11334#line 11335 "configure"
11335#include "confdefs.h"
11336#include <$ac_hdr>
11337EOF
11338ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11339{ (eval echo configure:11340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11340ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11341if test -z "$ac_err"; then
11342 rm -rf conftest*
11343 eval "ac_cv_header_$ac_safe=yes"
11344else
11345 echo "$ac_err" >&5
11346 echo "configure: failed program was:" >&5
11347 cat conftest.$ac_ext >&5
11348 rm -rf conftest*
11349 eval "ac_cv_header_$ac_safe=no"
11350fi
11351rm -f conftest*
11352fi
11353if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11354 echo "$ac_t""yes" 1>&6
11355 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11356 cat >> confdefs.h <<EOF
11357#define $ac_tr_hdr 1
11358EOF
11359
11360else
11361 echo "$ac_t""no" 1>&6
11362fi
11363done
11364
11365fi
11366
11367
11368echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
11369echo "configure:11370: checking for ANSI C header files" >&5
11370if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11371 echo $ac_n "(cached) $ac_c" 1>&6
11372else
11373 cat > conftest.$ac_ext <<EOF
11374#line 11375 "configure"
11375#include "confdefs.h"
11376#include <stdlib.h>
11377#include <stdarg.h>
11378#include <string.h>
11379#include <float.h>
11380EOF
11381ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11382{ (eval echo configure:11383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11383ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11384if test -z "$ac_err"; then
11385 rm -rf conftest*
11386 ac_cv_header_stdc=yes
11387else
11388 echo "$ac_err" >&5
11389 echo "configure: failed program was:" >&5
11390 cat conftest.$ac_ext >&5
11391 rm -rf conftest*
11392 ac_cv_header_stdc=no
11393fi
11394rm -f conftest*
11395
11396if test $ac_cv_header_stdc = yes; then
11397 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11398cat > conftest.$ac_ext <<EOF
11399#line 11400 "configure"
11400#include "confdefs.h"
11401#include <string.h>
11402EOF
11403if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11404 egrep "memchr" >/dev/null 2>&1; then
11405 :
11406else
11407 rm -rf conftest*
11408 ac_cv_header_stdc=no
11409fi
11410rm -f conftest*
11411
11412fi
11413
11414if test $ac_cv_header_stdc = yes; then
11415 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11416cat > conftest.$ac_ext <<EOF
11417#line 11418 "configure"
11418#include "confdefs.h"
11419#include <stdlib.h>
11420EOF
11421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11422 egrep "free" >/dev/null 2>&1; then
11423 :
11424else
11425 rm -rf conftest*
11426 ac_cv_header_stdc=no
11427fi
11428rm -f conftest*
11429
11430fi
11431
11432if test $ac_cv_header_stdc = yes; then
11433 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11434if test "$cross_compiling" = yes; then
11435 :
11436else
11437 cat > conftest.$ac_ext <<EOF
11438#line 11439 "configure"
11439#include "confdefs.h"
11440#include <ctype.h>
11441#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11442#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11443#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11444int main () { int i; for (i = 0; i < 256; i++)
11445if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11446exit (0); }
11447
11448EOF
11449if { (eval echo configure:11450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11450then
11451 :
11452else
11453 echo "configure: failed program was:" >&5
11454 cat conftest.$ac_ext >&5
11455 rm -fr conftest*
11456 ac_cv_header_stdc=no
11457fi
11458rm -fr conftest*
11459fi
11460
11461fi
11462fi
11463
11464echo "$ac_t""$ac_cv_header_stdc" 1>&6
11465if test $ac_cv_header_stdc = yes; then
11466 cat >> confdefs.h <<\EOF
11467#define STDC_HEADERS 1
11468EOF
11469
11470fi
11471
11472echo $ac_n "checking for mode_t""... $ac_c" 1>&6
11473echo "configure:11474: checking for mode_t" >&5
11474if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11475 echo $ac_n "(cached) $ac_c" 1>&6
11476else
11477 cat > conftest.$ac_ext <<EOF
11478#line 11479 "configure"
11479#include "confdefs.h"
11480#include <sys/types.h>
11481#if STDC_HEADERS
11482#include <stdlib.h>
11483#include <stddef.h>
11484#endif
11485EOF
11486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11487 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11488 rm -rf conftest*
11489 ac_cv_type_mode_t=yes
11490else
11491 rm -rf conftest*
11492 ac_cv_type_mode_t=no
11493fi
11494rm -f conftest*
11495
11496fi
11497echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11498if test $ac_cv_type_mode_t = no; then
11499 cat >> confdefs.h <<\EOF
11500#define mode_t int
11501EOF
11502
11503fi
11504
11505echo $ac_n "checking for off_t""... $ac_c" 1>&6
11506echo "configure:11507: checking for off_t" >&5
11507if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11508 echo $ac_n "(cached) $ac_c" 1>&6
11509else
11510 cat > conftest.$ac_ext <<EOF
11511#line 11512 "configure"
11512#include "confdefs.h"
11513#include <sys/types.h>
11514#if STDC_HEADERS
11515#include <stdlib.h>
11516#include <stddef.h>
11517#endif
11518EOF
11519if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11520 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11521 rm -rf conftest*
11522 ac_cv_type_off_t=yes
11523else
11524 rm -rf conftest*
11525 ac_cv_type_off_t=no
11526fi
11527rm -f conftest*
11528
11529fi
11530echo "$ac_t""$ac_cv_type_off_t" 1>&6
11531if test $ac_cv_type_off_t = no; then
11532 cat >> confdefs.h <<\EOF
11533#define off_t long
11534EOF
11535
11536fi
11537
11538echo $ac_n "checking for pid_t""... $ac_c" 1>&6
11539echo "configure:11540: checking for pid_t" >&5
11540if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11541 echo $ac_n "(cached) $ac_c" 1>&6
11542else
11543 cat > conftest.$ac_ext <<EOF
11544#line 11545 "configure"
11545#include "confdefs.h"
11546#include <sys/types.h>
11547#if STDC_HEADERS
11548#include <stdlib.h>
11549#include <stddef.h>
11550#endif
11551EOF
11552if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11553 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11554 rm -rf conftest*
11555 ac_cv_type_pid_t=yes
11556else
11557 rm -rf conftest*
11558 ac_cv_type_pid_t=no
11559fi
11560rm -f conftest*
11561
11562fi
11563echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11564if test $ac_cv_type_pid_t = no; then
11565 cat >> confdefs.h <<\EOF
11566#define pid_t int
11567EOF
11568
11569fi
11570
11571echo $ac_n "checking for size_t""... $ac_c" 1>&6
11572echo "configure:11573: checking for size_t" >&5
11573if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11574 echo $ac_n "(cached) $ac_c" 1>&6
11575else
11576 cat > conftest.$ac_ext <<EOF
11577#line 11578 "configure"
11578#include "confdefs.h"
11579#include <sys/types.h>
11580#if STDC_HEADERS
11581#include <stdlib.h>
11582#include <stddef.h>
11583#endif
11584EOF
11585if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11586 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11587 rm -rf conftest*
11588 ac_cv_type_size_t=yes
11589else
11590 rm -rf conftest*
11591 ac_cv_type_size_t=no
11592fi
11593rm -f conftest*
11594
11595fi
11596echo "$ac_t""$ac_cv_type_size_t" 1>&6
11597if test $ac_cv_type_size_t = no; then
11598 cat >> confdefs.h <<\EOF
11599#define size_t unsigned
11600EOF
11601
11602fi
11603
11604echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
11605echo "configure:11606: checking for uid_t in sys/types.h" >&5
11606if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
11607 echo $ac_n "(cached) $ac_c" 1>&6
11608else
11609 cat > conftest.$ac_ext <<EOF
11610#line 11611 "configure"
11611#include "confdefs.h"
11612#include <sys/types.h>
11613EOF
11614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11615 egrep "uid_t" >/dev/null 2>&1; then
11616 rm -rf conftest*
11617 ac_cv_type_uid_t=yes
11618else
11619 rm -rf conftest*
11620 ac_cv_type_uid_t=no
11621fi
11622rm -f conftest*
11623
11624fi
11625
11626echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11627if test $ac_cv_type_uid_t = no; then
11628 cat >> confdefs.h <<\EOF
11629#define uid_t int
11630EOF
11631
11632 cat >> confdefs.h <<\EOF
11633#define gid_t int
11634EOF
11635
11636fi
11637
11638
11639echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
11640echo "configure:11641: checking for wchar_t" >&5
11641if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
11642 echo $ac_n "(cached) $ac_c" 1>&6
11643else
11644
11645 cat > conftest.$ac_ext <<EOF
11646#line 11647 "configure"
11647#include "confdefs.h"
11648#include <wchar.h>
11649int main() {
11650
11651 wchar_t wc, *ws;
11652 wc = L'a';
11653 ws = L"Hello, world!";
11654
11655; return 0; }
11656EOF
11657if { (eval echo configure:11658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11658 rm -rf conftest*
11659 wx_cv_type_wchar_t=yes
11660else
11661 echo "configure: failed program was:" >&5
11662 cat conftest.$ac_ext >&5
11663 rm -rf conftest*
11664 cat > conftest.$ac_ext <<EOF
11665#line 11666 "configure"
11666#include "confdefs.h"
11667#include <stdlib.h>
11668int main() {
11669
11670 wchar_t wc, *ws;
11671 wc = L'a';
11672 ws = L"Hello, world!";
11673
11674; return 0; }
11675EOF
11676if { (eval echo configure:11677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11677 rm -rf conftest*
11678 wx_cv_type_wchar_t=yes
11679else
11680 echo "configure: failed program was:" >&5
11681 cat conftest.$ac_ext >&5
11682 rm -rf conftest*
11683 wx_cv_type_wchar_t=no
11684fi
11685rm -f conftest*
11686
11687fi
11688rm -f conftest*
11689
11690fi
11691
11692echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
11693
11694if test "$wx_cv_type_wchar_t" = "yes"; then
11695 cat >> confdefs.h <<\EOF
11696#define wxUSE_WCHAR_T 1
11697EOF
11698
11699fi
11700
11701
11702ac_ext=C
11703# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11704ac_cpp='$CXXCPP $CPPFLAGS'
11705ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11706ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11707cross_compiling=$ac_cv_prog_cxx_cross
11708
11709echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
11710echo "configure:11711: checking if size_t is unsigned int" >&5
11711if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
11712 echo $ac_n "(cached) $ac_c" 1>&6
11713else
11714 cat > conftest.$ac_ext <<EOF
11715#line 11716 "configure"
11716#include "confdefs.h"
11717#include <stddef.h>
11718int main() {
11719
11720 return 0; }
11721
11722 struct Foo { void foo(size_t); void foo(unsigned int); };
11723
11724 int bar() {
11725
11726; return 0; }
11727EOF
11728if { (eval echo configure:11729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11729 rm -rf conftest*
11730 wx_cv_size_t_is_uint=no
11731else
11732 echo "configure: failed program was:" >&5
11733 cat conftest.$ac_ext >&5
11734 rm -rf conftest*
11735 wx_cv_size_t_is_uint=yes
11736
11737fi
11738rm -f conftest*
11739
11740fi
11741
11742echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
11743
11744if test "$wx_cv_size_t_is_uint" = "yes"; then
11745 cat >> confdefs.h <<\EOF
11746#define wxSIZE_T_IS_UINT 1
11747EOF
11748
11749else
11750 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
11751echo "configure:11752: checking if size_t is unsigned long" >&5
11752if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
11753 echo $ac_n "(cached) $ac_c" 1>&6
11754else
11755 cat > conftest.$ac_ext <<EOF
11756#line 11757 "configure"
11757#include "confdefs.h"
11758#include <stddef.h>
11759int main() {
11760
11761 return 0; }
11762
11763 struct Foo { void foo(size_t); void foo(unsigned long); };
11764
11765 int bar() {
11766
11767; return 0; }
11768EOF
11769if { (eval echo configure:11770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11770 rm -rf conftest*
11771 wx_cv_size_t_is_ulong=no
11772else
11773 echo "configure: failed program was:" >&5
11774 cat conftest.$ac_ext >&5
11775 rm -rf conftest*
11776 wx_cv_size_t_is_ulong=yes
11777
11778fi
11779rm -f conftest*
11780
11781fi
11782
11783echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
11784
11785 if test "$wx_cv_size_t_is_ulong" = "yes"; then
11786 cat >> confdefs.h <<\EOF
11787#define wxSIZE_T_IS_ULONG 1
11788EOF
11789
11790 fi
11791fi
11792
11793ac_ext=c
11794# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11795ac_cpp='$CPP $CPPFLAGS'
11796ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11797ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11798cross_compiling=$ac_cv_prog_cc_cross
11799
11800
11801
11802echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
11803echo "configure:11804: checking for pw_gecos in struct passwd" >&5
11804if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
11805 echo $ac_n "(cached) $ac_c" 1>&6
11806else
11807
11808 cat > conftest.$ac_ext <<EOF
11809#line 11810 "configure"
11810#include "confdefs.h"
11811#include <pwd.h>
11812int main() {
11813
11814 char *p;
11815 struct passwd *pw;
11816 p = pw->pw_gecos;
11817
11818; return 0; }
11819EOF
11820if { (eval echo configure:11821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11821 rm -rf conftest*
11822
11823 wx_cv_struct_pw_gecos=yes
11824
11825else
11826 echo "configure: failed program was:" >&5
11827 cat conftest.$ac_ext >&5
11828 rm -rf conftest*
11829
11830 wx_cv_struct_pw_gecos=no
11831
11832
11833fi
11834rm -f conftest*
11835
11836
11837fi
11838
11839echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
11840
11841if test "$wx_cv_struct_pw_gecos" = "yes"; then
11842 cat >> confdefs.h <<\EOF
11843#define HAVE_PW_GECOS 1
11844EOF
11845
11846fi
11847
11848
11849echo $ac_n "checking for working const""... $ac_c" 1>&6
11850echo "configure:11851: checking for working const" >&5
11851if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
11852 echo $ac_n "(cached) $ac_c" 1>&6
11853else
11854 cat > conftest.$ac_ext <<EOF
11855#line 11856 "configure"
11856#include "confdefs.h"
11857
11858int main() {
11859
11860/* Ultrix mips cc rejects this. */
11861typedef int charset[2]; const charset x;
11862/* SunOS 4.1.1 cc rejects this. */
11863char const *const *ccp;
11864char **p;
11865/* NEC SVR4.0.2 mips cc rejects this. */
11866struct point {int x, y;};
11867static struct point const zero = {0,0};
11868/* AIX XL C 1.02.0.0 rejects this.
11869 It does not let you subtract one const X* pointer from another in an arm
11870 of an if-expression whose if-part is not a constant expression */
11871const char *g = "string";
11872ccp = &g + (g ? g-g : 0);
11873/* HPUX 7.0 cc rejects these. */
11874++ccp;
11875p = (char**) ccp;
11876ccp = (char const *const *) p;
11877{ /* SCO 3.2v4 cc rejects this. */
11878 char *t;
11879 char const *s = 0 ? (char *) 0 : (char const *) 0;
11880
11881 *t++ = 0;
11882}
11883{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11884 int x[] = {25, 17};
11885 const int *foo = &x[0];
11886 ++foo;
11887}
11888{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11889 typedef const int *iptr;
11890 iptr p = 0;
11891 ++p;
11892}
11893{ /* AIX XL C 1.02.0.0 rejects this saying
11894 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11895 struct s { int j; const int *ap[3]; };
11896 struct s *b; b->j = 5;
11897}
11898{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11899 const int foo = 10;
11900}
11901
11902; return 0; }
11903EOF
11904if { (eval echo configure:11905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11905 rm -rf conftest*
11906 ac_cv_c_const=yes
11907else
11908 echo "configure: failed program was:" >&5
11909 cat conftest.$ac_ext >&5
11910 rm -rf conftest*
11911 ac_cv_c_const=no
11912fi
11913rm -f conftest*
11914fi
11915
11916echo "$ac_t""$ac_cv_c_const" 1>&6
11917if test $ac_cv_c_const = no; then
11918 cat >> confdefs.h <<\EOF
11919#define const
11920EOF
11921
11922fi
11923
11924echo $ac_n "checking for inline""... $ac_c" 1>&6
11925echo "configure:11926: checking for inline" >&5
11926if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
11927 echo $ac_n "(cached) $ac_c" 1>&6
11928else
11929 ac_cv_c_inline=no
11930for ac_kw in inline __inline__ __inline; do
11931 cat > conftest.$ac_ext <<EOF
11932#line 11933 "configure"
11933#include "confdefs.h"
11934
11935int main() {
11936} $ac_kw foo() {
11937; return 0; }
11938EOF
11939if { (eval echo configure:11940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11940 rm -rf conftest*
11941 ac_cv_c_inline=$ac_kw; break
11942else
11943 echo "configure: failed program was:" >&5
11944 cat conftest.$ac_ext >&5
11945fi
11946rm -f conftest*
11947done
11948
11949fi
11950
11951echo "$ac_t""$ac_cv_c_inline" 1>&6
11952case "$ac_cv_c_inline" in
11953 inline | yes) ;;
11954 no) cat >> confdefs.h <<\EOF
11955#define inline
11956EOF
11957 ;;
11958 *) cat >> confdefs.h <<EOF
11959#define inline $ac_cv_c_inline
11960EOF
11961 ;;
11962esac
11963
11964
11965echo $ac_n "checking size of char""... $ac_c" 1>&6
11966echo "configure:11967: checking size of char" >&5
11967if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
11968 echo $ac_n "(cached) $ac_c" 1>&6
11969else
11970 if test "$cross_compiling" = yes; then
11971 ac_cv_sizeof_char=1
11972else
11973 cat > conftest.$ac_ext <<EOF
11974#line 11975 "configure"
11975#include "confdefs.h"
11976#include <stdio.h>
11977main()
11978{
11979 FILE *f=fopen("conftestval", "w");
11980 if (!f) exit(1);
11981 fprintf(f, "%d\n", sizeof(char));
11982 exit(0);
11983}
11984EOF
11985if { (eval echo configure:11986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11986then
11987 ac_cv_sizeof_char=`cat conftestval`
11988else
11989 echo "configure: failed program was:" >&5
11990 cat conftest.$ac_ext >&5
11991 rm -fr conftest*
11992 ac_cv_sizeof_char=0
11993fi
11994rm -fr conftest*
11995fi
11996
11997fi
11998echo "$ac_t""$ac_cv_sizeof_char" 1>&6
11999cat >> confdefs.h <<EOF
12000#define SIZEOF_CHAR $ac_cv_sizeof_char
12001EOF
12002
12003
12004echo $ac_n "checking size of short""... $ac_c" 1>&6
12005echo "configure:12006: checking size of short" >&5
12006if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
12007 echo $ac_n "(cached) $ac_c" 1>&6
12008else
12009 if test "$cross_compiling" = yes; then
12010 ac_cv_sizeof_short=2
12011else
12012 cat > conftest.$ac_ext <<EOF
12013#line 12014 "configure"
12014#include "confdefs.h"
12015#include <stdio.h>
12016main()
12017{
12018 FILE *f=fopen("conftestval", "w");
12019 if (!f) exit(1);
12020 fprintf(f, "%d\n", sizeof(short));
12021 exit(0);
12022}
12023EOF
12024if { (eval echo configure:12025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12025then
12026 ac_cv_sizeof_short=`cat conftestval`
12027else
12028 echo "configure: failed program was:" >&5
12029 cat conftest.$ac_ext >&5
12030 rm -fr conftest*
12031 ac_cv_sizeof_short=0
12032fi
12033rm -fr conftest*
12034fi
12035
12036fi
12037echo "$ac_t""$ac_cv_sizeof_short" 1>&6
12038cat >> confdefs.h <<EOF
12039#define SIZEOF_SHORT $ac_cv_sizeof_short
12040EOF
12041
12042
12043echo $ac_n "checking size of int *""... $ac_c" 1>&6
12044echo "configure:12045: checking size of int *" >&5
12045if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
12046 echo $ac_n "(cached) $ac_c" 1>&6
12047else
12048 if test "$cross_compiling" = yes; then
12049 ac_cv_sizeof_int_p=4
12050else
12051 cat > conftest.$ac_ext <<EOF
12052#line 12053 "configure"
12053#include "confdefs.h"
12054#include <stdio.h>
12055main()
12056{
12057 FILE *f=fopen("conftestval", "w");
12058 if (!f) exit(1);
12059 fprintf(f, "%d\n", sizeof(int *));
12060 exit(0);
12061}
12062EOF
12063if { (eval echo configure:12064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12064then
12065 ac_cv_sizeof_int_p=`cat conftestval`
12066else
12067 echo "configure: failed program was:" >&5
12068 cat conftest.$ac_ext >&5
12069 rm -fr conftest*
12070 ac_cv_sizeof_int_p=0
12071fi
12072rm -fr conftest*
12073fi
12074
12075fi
12076echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
12077cat >> confdefs.h <<EOF
12078#define SIZEOF_INT_P $ac_cv_sizeof_int_p
12079EOF
12080
12081
12082echo $ac_n "checking size of int""... $ac_c" 1>&6
12083echo "configure:12084: checking size of int" >&5
12084if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
12085 echo $ac_n "(cached) $ac_c" 1>&6
12086else
12087 if test "$cross_compiling" = yes; then
12088 ac_cv_sizeof_int=4
12089else
12090 cat > conftest.$ac_ext <<EOF
12091#line 12092 "configure"
12092#include "confdefs.h"
12093#include <stdio.h>
12094main()
12095{
12096 FILE *f=fopen("conftestval", "w");
12097 if (!f) exit(1);
12098 fprintf(f, "%d\n", sizeof(int));
12099 exit(0);
12100}
12101EOF
12102if { (eval echo configure:12103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12103then
12104 ac_cv_sizeof_int=`cat conftestval`
12105else
12106 echo "configure: failed program was:" >&5
12107 cat conftest.$ac_ext >&5
12108 rm -fr conftest*
12109 ac_cv_sizeof_int=0
12110fi
12111rm -fr conftest*
12112fi
12113
12114fi
12115echo "$ac_t""$ac_cv_sizeof_int" 1>&6
12116cat >> confdefs.h <<EOF
12117#define SIZEOF_INT $ac_cv_sizeof_int
12118EOF
12119
12120
12121echo $ac_n "checking size of long""... $ac_c" 1>&6
12122echo "configure:12123: checking size of long" >&5
12123if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
12124 echo $ac_n "(cached) $ac_c" 1>&6
12125else
12126 if test "$cross_compiling" = yes; then
12127 ac_cv_sizeof_long=4
12128else
12129 cat > conftest.$ac_ext <<EOF
12130#line 12131 "configure"
12131#include "confdefs.h"
12132#include <stdio.h>
12133main()
12134{
12135 FILE *f=fopen("conftestval", "w");
12136 if (!f) exit(1);
12137 fprintf(f, "%d\n", sizeof(long));
12138 exit(0);
12139}
12140EOF
12141if { (eval echo configure:12142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12142then
12143 ac_cv_sizeof_long=`cat conftestval`
12144else
12145 echo "configure: failed program was:" >&5
12146 cat conftest.$ac_ext >&5
12147 rm -fr conftest*
12148 ac_cv_sizeof_long=0
12149fi
12150rm -fr conftest*
12151fi
12152
12153fi
12154echo "$ac_t""$ac_cv_sizeof_long" 1>&6
12155cat >> confdefs.h <<EOF
12156#define SIZEOF_LONG $ac_cv_sizeof_long
12157EOF
12158
12159
12160echo $ac_n "checking size of long long""... $ac_c" 1>&6
12161echo "configure:12162: checking size of long long" >&5
12162if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
12163 echo $ac_n "(cached) $ac_c" 1>&6
12164else
12165 if test "$cross_compiling" = yes; then
12166 ac_cv_sizeof_long_long=0
12167else
12168 cat > conftest.$ac_ext <<EOF
12169#line 12170 "configure"
12170#include "confdefs.h"
12171#include <stdio.h>
12172main()
12173{
12174 FILE *f=fopen("conftestval", "w");
12175 if (!f) exit(1);
12176 fprintf(f, "%d\n", sizeof(long long));
12177 exit(0);
12178}
12179EOF
12180if { (eval echo configure:12181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12181then
12182 ac_cv_sizeof_long_long=`cat conftestval`
12183else
12184 echo "configure: failed program was:" >&5
12185 cat conftest.$ac_ext >&5
12186 rm -fr conftest*
12187 ac_cv_sizeof_long_long=0
12188fi
12189rm -fr conftest*
12190fi
12191
12192fi
12193echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
12194cat >> confdefs.h <<EOF
12195#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12196EOF
12197
12198
12199
12200echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
12201echo "configure:12202: checking size of wchar_t" >&5
12202if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
12203 echo $ac_n "(cached) $ac_c" 1>&6
12204else
12205
12206 if test "$cross_compiling" = yes; then
12207 wx_cv_sizeof_wchar_t=4
12208
12209else
12210 cat > conftest.$ac_ext <<EOF
12211#line 12212 "configure"
12212#include "confdefs.h"
12213
12214 #ifdef HAVE_WCHAR_H
12215 # include <wchar.h>
12216 #endif
12217 #ifdef HAVE_STDLIB_H
12218 # include <stdlib.h>
12219 #endif
12220 #include <stdio.h>
12221 int main()
12222 {
12223 FILE *f=fopen("conftestval", "w");
12224 if (!f) exit(1);
12225 fprintf(f, "%i", sizeof(wchar_t));
12226 exit(0);
12227 }
12228
12229EOF
12230if { (eval echo configure:12231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12231then
12232 wx_cv_sizeof_wchar_t=`cat conftestval`
12233else
12234 echo "configure: failed program was:" >&5
12235 cat conftest.$ac_ext >&5
12236 rm -fr conftest*
12237 wx_cv_sizeof_wchar_t=0
12238fi
12239rm -fr conftest*
12240fi
12241
12242
12243fi
12244
12245echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
12246
12247cat >> confdefs.h <<EOF
12248#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
12249EOF
12250
12251
12252echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
12253echo "configure:12254: checking whether byte ordering is bigendian" >&5
12254if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
12255 echo $ac_n "(cached) $ac_c" 1>&6
12256else
12257 ac_cv_c_bigendian=unknown
12258# See if sys/param.h defines the BYTE_ORDER macro.
12259cat > conftest.$ac_ext <<EOF
12260#line 12261 "configure"
12261#include "confdefs.h"
12262#include <sys/types.h>
12263#include <sys/param.h>
12264int main() {
12265
12266#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12267 bogus endian macros
12268#endif
12269; return 0; }
12270EOF
12271if { (eval echo configure:12272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12272 rm -rf conftest*
12273 # It does; now see whether it defined to BIG_ENDIAN or not.
12274cat > conftest.$ac_ext <<EOF
12275#line 12276 "configure"
12276#include "confdefs.h"
12277#include <sys/types.h>
12278#include <sys/param.h>
12279int main() {
12280
12281#if BYTE_ORDER != BIG_ENDIAN
12282 not big endian
12283#endif
12284; return 0; }
12285EOF
12286if { (eval echo configure:12287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12287 rm -rf conftest*
12288 ac_cv_c_bigendian=yes
12289else
12290 echo "configure: failed program was:" >&5
12291 cat conftest.$ac_ext >&5
12292 rm -rf conftest*
12293 ac_cv_c_bigendian=no
12294fi
12295rm -f conftest*
12296else
12297 echo "configure: failed program was:" >&5
12298 cat conftest.$ac_ext >&5
12299fi
12300rm -f conftest*
12301if test $ac_cv_c_bigendian = unknown; then
12302if test "$cross_compiling" = yes; then
12303 ac_cv_c_bigendian=unknown
12304else
12305 cat > conftest.$ac_ext <<EOF
12306#line 12307 "configure"
12307#include "confdefs.h"
12308main () {
12309 /* Are we little or big endian? From Harbison&Steele. */
12310 union
12311 {
12312 long l;
12313 char c[sizeof (long)];
12314 } u;
12315 u.l = 1;
12316 exit (u.c[sizeof (long) - 1] == 1);
12317}
12318EOF
12319if { (eval echo configure:12320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12320then
12321 ac_cv_c_bigendian=no
12322else
12323 echo "configure: failed program was:" >&5
12324 cat conftest.$ac_ext >&5
12325 rm -fr conftest*
12326 ac_cv_c_bigendian=yes
12327fi
12328rm -fr conftest*
12329fi
12330
12331fi
12332fi
12333
12334echo "$ac_t""$ac_cv_c_bigendian" 1>&6
12335if test $ac_cv_c_bigendian = unknown; then
12336 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
12337fi
12338if test $ac_cv_c_bigendian = yes; then
12339 cat >> confdefs.h <<\EOF
12340#define WORDS_BIGENDIAN 1
12341EOF
12342
12343fi
12344
12345
12346
12347 if test "$cross_compiling" = "yes"; then
12348 cat >> confdefs.h <<\EOF
12349#define wxUSE_IOSTREAMH 1
12350EOF
12351
12352 else
12353
12354 ac_ext=C
12355# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12356ac_cpp='$CXXCPP $CPPFLAGS'
12357ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12358ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12359cross_compiling=$ac_cv_prog_cxx_cross
12360
12361
12362 for ac_hdr in iostream
12363do
12364ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12365echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12366echo "configure:12367: checking for $ac_hdr" >&5
12367if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12368 echo $ac_n "(cached) $ac_c" 1>&6
12369else
12370 cat > conftest.$ac_ext <<EOF
12371#line 12372 "configure"
12372#include "confdefs.h"
12373#include <$ac_hdr>
12374EOF
12375ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12376{ (eval echo configure:12377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12377ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12378if test -z "$ac_err"; then
12379 rm -rf conftest*
12380 eval "ac_cv_header_$ac_safe=yes"
12381else
12382 echo "$ac_err" >&5
12383 echo "configure: failed program was:" >&5
12384 cat conftest.$ac_ext >&5
12385 rm -rf conftest*
12386 eval "ac_cv_header_$ac_safe=no"
12387fi
12388rm -f conftest*
12389fi
12390if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12391 echo "$ac_t""yes" 1>&6
12392 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12393 cat >> confdefs.h <<EOF
12394#define $ac_tr_hdr 1
12395EOF
12396
12397else
12398 echo "$ac_t""no" 1>&6
12399fi
12400done
12401
12402
12403 if test "$ac_cv_header_iostream" = "yes" ; then
12404 :
12405 else
12406 cat >> confdefs.h <<\EOF
12407#define wxUSE_IOSTREAMH 1
12408EOF
12409
12410 fi
12411
12412 ac_ext=c
12413# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12414ac_cpp='$CPP $CPPFLAGS'
12415ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12416ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12417cross_compiling=$ac_cv_prog_cc_cross
12418
12419 fi
12420
12421
12422
12423 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
12424echo "configure:12425: checking if C++ compiler supports bool" >&5
12425if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12426 echo $ac_n "(cached) $ac_c" 1>&6
12427else
12428
12429
12430 ac_ext=C
12431# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12432ac_cpp='$CXXCPP $CPPFLAGS'
12433ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12434ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12435cross_compiling=$ac_cv_prog_cxx_cross
12436
12437
12438 cat > conftest.$ac_ext <<EOF
12439#line 12440 "configure"
12440#include "confdefs.h"
12441
12442
12443int main() {
12444
12445 bool b = true;
12446
12447 return 0;
12448
12449; return 0; }
12450EOF
12451if { (eval echo configure:12452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12452 rm -rf conftest*
12453
12454 wx_cv_cpp_bool=yes
12455
12456else
12457 echo "configure: failed program was:" >&5
12458 cat conftest.$ac_ext >&5
12459 rm -rf conftest*
12460
12461 wx_cv_cpp_bool=no
12462
12463
12464fi
12465rm -f conftest*
12466
12467 ac_ext=c
12468# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12469ac_cpp='$CPP $CPPFLAGS'
12470ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12471ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12472cross_compiling=$ac_cv_prog_cc_cross
12473
12474
12475fi
12476
12477echo "$ac_t""$wx_cv_cpp_bool" 1>&6
12478
12479 if test "$wx_cv_cpp_bool" = "yes"; then
12480 cat >> confdefs.h <<\EOF
12481#define HAVE_BOOL 1
12482EOF
12483
12484 fi
12485
12486
12487
12488echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
12489echo "configure:12490: checking for wcslen in -lc" >&5
12490ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12491if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12492 echo $ac_n "(cached) $ac_c" 1>&6
12493else
12494 ac_save_LIBS="$LIBS"
12495LIBS="-lc $LIBS"
12496cat > conftest.$ac_ext <<EOF
12497#line 12498 "configure"
12498#include "confdefs.h"
12499/* Override any gcc2 internal prototype to avoid an error. */
12500/* We use char because int might match the return type of a gcc2
12501 builtin and then its argument prototype would still apply. */
12502char wcslen();
12503
12504int main() {
12505wcslen()
12506; return 0; }
12507EOF
12508if { (eval echo configure:12509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12509 rm -rf conftest*
12510 eval "ac_cv_lib_$ac_lib_var=yes"
12511else
12512 echo "configure: failed program was:" >&5
12513 cat conftest.$ac_ext >&5
12514 rm -rf conftest*
12515 eval "ac_cv_lib_$ac_lib_var=no"
12516fi
12517rm -f conftest*
12518LIBS="$ac_save_LIBS"
12519
12520fi
12521if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12522 echo "$ac_t""yes" 1>&6
12523
12524 cat >> confdefs.h <<\EOF
12525#define HAVE_WCSLEN 1
12526EOF
12527
12528 WCHAR_LINK=""
12529
12530else
12531 echo "$ac_t""no" 1>&6
12532
12533 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
12534echo "configure:12535: checking for wcslen in -lw" >&5
12535ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12536if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12537 echo $ac_n "(cached) $ac_c" 1>&6
12538else
12539 ac_save_LIBS="$LIBS"
12540LIBS="-lw $LIBS"
12541cat > conftest.$ac_ext <<EOF
12542#line 12543 "configure"
12543#include "confdefs.h"
12544/* Override any gcc2 internal prototype to avoid an error. */
12545/* We use char because int might match the return type of a gcc2
12546 builtin and then its argument prototype would still apply. */
12547char wcslen();
12548
12549int main() {
12550wcslen()
12551; return 0; }
12552EOF
12553if { (eval echo configure:12554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12554 rm -rf conftest*
12555 eval "ac_cv_lib_$ac_lib_var=yes"
12556else
12557 echo "configure: failed program was:" >&5
12558 cat conftest.$ac_ext >&5
12559 rm -rf conftest*
12560 eval "ac_cv_lib_$ac_lib_var=no"
12561fi
12562rm -f conftest*
12563LIBS="$ac_save_LIBS"
12564
12565fi
12566if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12567 echo "$ac_t""yes" 1>&6
12568
12569 cat >> confdefs.h <<\EOF
12570#define HAVE_WCSLEN 1
12571EOF
12572
12573 WCHAR_LINK="-lw"
12574
12575else
12576 echo "$ac_t""no" 1>&6
12577fi
12578
12579
12580fi
12581
12582
12583echo $ac_n "checking for vprintf""... $ac_c" 1>&6
12584echo "configure:12585: checking for vprintf" >&5
12585if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
12586 echo $ac_n "(cached) $ac_c" 1>&6
12587else
12588 cat > conftest.$ac_ext <<EOF
12589#line 12590 "configure"
12590#include "confdefs.h"
12591/* System header to define __stub macros and hopefully few prototypes,
12592 which can conflict with char vprintf(); below. */
12593#include <assert.h>
12594/* Override any gcc2 internal prototype to avoid an error. */
12595/* We use char because int might match the return type of a gcc2
12596 builtin and then its argument prototype would still apply. */
12597char vprintf();
12598
12599int main() {
12600
12601/* The GNU C library defines this for functions which it implements
12602 to always fail with ENOSYS. Some functions are actually named
12603 something starting with __ and the normal name is an alias. */
12604#if defined (__stub_vprintf) || defined (__stub___vprintf)
12605choke me
12606#else
12607vprintf();
12608#endif
12609
12610; return 0; }
12611EOF
12612if { (eval echo configure:12613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12613 rm -rf conftest*
12614 eval "ac_cv_func_vprintf=yes"
12615else
12616 echo "configure: failed program was:" >&5
12617 cat conftest.$ac_ext >&5
12618 rm -rf conftest*
12619 eval "ac_cv_func_vprintf=no"
12620fi
12621rm -f conftest*
12622fi
12623
12624if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12625 echo "$ac_t""yes" 1>&6
12626 cat >> confdefs.h <<\EOF
12627#define HAVE_VPRINTF 1
12628EOF
12629
12630else
12631 echo "$ac_t""no" 1>&6
12632fi
12633
12634if test "$ac_cv_func_vprintf" != yes; then
12635echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
12636echo "configure:12637: checking for _doprnt" >&5
12637if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
12638 echo $ac_n "(cached) $ac_c" 1>&6
12639else
12640 cat > conftest.$ac_ext <<EOF
12641#line 12642 "configure"
12642#include "confdefs.h"
12643/* System header to define __stub macros and hopefully few prototypes,
12644 which can conflict with char _doprnt(); below. */
12645#include <assert.h>
12646/* Override any gcc2 internal prototype to avoid an error. */
12647/* We use char because int might match the return type of a gcc2
12648 builtin and then its argument prototype would still apply. */
12649char _doprnt();
12650
12651int main() {
12652
12653/* The GNU C library defines this for functions which it implements
12654 to always fail with ENOSYS. Some functions are actually named
12655 something starting with __ and the normal name is an alias. */
12656#if defined (__stub__doprnt) || defined (__stub____doprnt)
12657choke me
12658#else
12659_doprnt();
12660#endif
12661
12662; return 0; }
12663EOF
12664if { (eval echo configure:12665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12665 rm -rf conftest*
12666 eval "ac_cv_func__doprnt=yes"
12667else
12668 echo "configure: failed program was:" >&5
12669 cat conftest.$ac_ext >&5
12670 rm -rf conftest*
12671 eval "ac_cv_func__doprnt=no"
12672fi
12673rm -f conftest*
12674fi
12675
12676if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12677 echo "$ac_t""yes" 1>&6
12678 cat >> confdefs.h <<\EOF
12679#define HAVE_DOPRNT 1
12680EOF
12681
12682else
12683 echo "$ac_t""no" 1>&6
12684fi
12685
12686fi
12687
12688
12689
12690
12691
12692
12693
12694echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
12695echo "configure:12696: checking for vsnprintf" >&5
12696if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
12697 echo $ac_n "(cached) $ac_c" 1>&6
12698else
12699
12700 cat > conftest.$ac_ext <<EOF
12701#line 12702 "configure"
12702#include "confdefs.h"
12703
12704 #include <stdio.h>
12705 #include <stdarg.h>
12706
12707int main() {
12708
12709 int wx_test_vsnprintf(const char *, ...);
12710
12711 wx_test_vsnprintf("%s");
12712 return 0;
12713 }
12714
12715 int wx_test_vsnprintf(const char *fmt, ...)
12716 {
12717 char *s;
12718
12719 va_list argp;
12720 va_start(argp, fmt);
12721 vsnprintf(s, 42, fmt, argp);
12722 va_end(argp);
12723
12724; return 0; }
12725EOF
12726if { (eval echo configure:12727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12727 rm -rf conftest*
12728
12729 wx_cv_func_vsnprintf=yes
12730
12731else
12732 echo "configure: failed program was:" >&5
12733 cat conftest.$ac_ext >&5
12734 rm -rf conftest*
12735
12736 cat > conftest.$ac_ext <<EOF
12737#line 12738 "configure"
12738#include "confdefs.h"
12739
12740 #include <stdio.h>
12741 #include <stdarg.h>
12742
12743int main() {
12744
12745 int wx_test_vsnprintf(const char *, ...);
12746
12747 wx_test_vsnprintf("%s");
12748 return 0;
12749 }
12750
12751 int wx_test_vsnprintf(const char *fmt, ...)
12752 {
12753 char *s;
12754
12755 va_list argp;
12756 va_start(argp, fmt);
12757 _vsnprintf(s, 42, fmt, argp);
12758 va_end(argp);
12759
12760; return 0; }
12761EOF
12762if { (eval echo configure:12763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12763 rm -rf conftest*
12764
12765 wx_cv_func_vsnprintf=yes
12766
12767else
12768 echo "configure: failed program was:" >&5
12769 cat conftest.$ac_ext >&5
12770 rm -rf conftest*
12771
12772 wx_cv_func_vsnprintf=no
12773
12774fi
12775rm -f conftest*
12776
12777fi
12778rm -f conftest*
12779
12780fi
12781
12782echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
12783
12784if test "$wx_cv_func_vsnprintf" = yes; then
12785 cat >> confdefs.h <<\EOF
12786#define HAVE_VSNPRINTF 1
12787EOF
12788
12789else
12790 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
12791fi
12792
12793echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
12794echo "configure:12795: checking for vsscanf" >&5
12795if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
12796 echo $ac_n "(cached) $ac_c" 1>&6
12797else
12798
12799 cat > conftest.$ac_ext <<EOF
12800#line 12801 "configure"
12801#include "confdefs.h"
12802
12803 #include <stdio.h>
12804 #include <stdarg.h>
12805
12806int main() {
12807
12808 int wx_test_vsscanf(const char *, ...);
12809
12810 wx_test_vsscanf("%d");
12811 return 0;
12812 }
12813
12814 int wx_test_vsscanf(const char *fmt, ...)
12815 {
12816 va_list argp;
12817 va_start(argp, fmt);
12818 vsscanf("42", fmt, argp);
12819 va_end(argp);
12820
12821; return 0; }
12822EOF
12823if { (eval echo configure:12824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12824 rm -rf conftest*
12825
12826 wx_cv_func_vsscanf=yes
12827
12828else
12829 echo "configure: failed program was:" >&5
12830 cat conftest.$ac_ext >&5
12831 rm -rf conftest*
12832
12833 wx_cv_func_vsscanf=no
12834
12835fi
12836rm -f conftest*
12837
12838fi
12839
12840echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
12841
12842if test "$wx_cv_func_vsscanf" = yes; then
12843 cat >> confdefs.h <<\EOF
12844#define HAVE_VSSCANF 1
12845EOF
12846
12847fi
12848
12849if test "$TOOLKIT" != "MSW"; then
12850
12851
12852
12853ac_ext=C
12854# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12855ac_cpp='$CXXCPP $CPPFLAGS'
12856ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12857ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12858cross_compiling=$ac_cv_prog_cxx_cross
12859
12860echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
12861echo "configure:12862: checking if iconv() takes char**" >&5
12862if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
12863 echo $ac_n "(cached) $ac_c" 1>&6
12864else
12865
12866 cat > conftest.$ac_ext <<EOF
12867#line 12868 "configure"
12868#include "confdefs.h"
12869#include <iconv.h>
12870int main() {
12871
12872 char **inbuf, **outbuf;
12873 iconv_t cd;
12874 size_t insz, outsz;
12875 iconv(cd, inbuf, &insz, outbuf, &outsz);
12876
12877; return 0; }
12878EOF
12879if { (eval echo configure:12880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12880 rm -rf conftest*
12881 wx_cv_iconv_takes_char=yes
12882else
12883 echo "configure: failed program was:" >&5
12884 cat conftest.$ac_ext >&5
12885 rm -rf conftest*
12886 wx_cv_iconv_takes_char=no
12887fi
12888rm -f conftest*
12889
12890fi
12891
12892echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
12893ac_ext=c
12894# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12895ac_cpp='$CPP $CPPFLAGS'
12896ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12897ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12898cross_compiling=$ac_cv_prog_cc_cross
12899
12900if test "$wx_cv_iconv_takes_char" = yes ; then
12901 cat >> confdefs.h <<\EOF
12902#define WX_ICONV_TAKES_CHAR 1
12903EOF
12904
12905fi
12906
12907
12908if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
12909 for ac_func in sigaction
12910do
12911echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12912echo "configure:12913: checking for $ac_func" >&5
12913if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12914 echo $ac_n "(cached) $ac_c" 1>&6
12915else
12916 cat > conftest.$ac_ext <<EOF
12917#line 12918 "configure"
12918#include "confdefs.h"
12919/* System header to define __stub macros and hopefully few prototypes,
12920 which can conflict with char $ac_func(); below. */
12921#include <assert.h>
12922/* Override any gcc2 internal prototype to avoid an error. */
12923/* We use char because int might match the return type of a gcc2
12924 builtin and then its argument prototype would still apply. */
12925char $ac_func();
12926
12927int main() {
12928
12929/* The GNU C library defines this for functions which it implements
12930 to always fail with ENOSYS. Some functions are actually named
12931 something starting with __ and the normal name is an alias. */
12932#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12933choke me
12934#else
12935$ac_func();
12936#endif
12937
12938; return 0; }
12939EOF
12940if { (eval echo configure:12941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12941 rm -rf conftest*
12942 eval "ac_cv_func_$ac_func=yes"
12943else
12944 echo "configure: failed program was:" >&5
12945 cat conftest.$ac_ext >&5
12946 rm -rf conftest*
12947 eval "ac_cv_func_$ac_func=no"
12948fi
12949rm -f conftest*
12950fi
12951
12952if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12953 echo "$ac_t""yes" 1>&6
12954 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12955 cat >> confdefs.h <<EOF
12956#define $ac_tr_func 1
12957EOF
12958
12959else
12960 echo "$ac_t""no" 1>&6
12961fi
12962done
12963
12964
12965 if test "$ac_cv_func_sigaction" = "no"; then
12966 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
12967 wxUSE_ON_FATAL_EXCEPTION=no
12968 fi
12969
12970 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
12971
12972 ac_ext=C
12973# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12974ac_cpp='$CXXCPP $CPPFLAGS'
12975ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12976ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12977cross_compiling=$ac_cv_prog_cxx_cross
12978
12979
12980 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
12981echo "configure:12982: checking for sa_handler type" >&5
12982if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
12983 echo $ac_n "(cached) $ac_c" 1>&6
12984else
12985
12986 cat > conftest.$ac_ext <<EOF
12987#line 12988 "configure"
12988#include "confdefs.h"
12989#include <signal.h>
12990int main() {
12991
12992 extern void testSigHandler(int);
12993
12994 struct sigaction sa;
12995 sa.sa_handler = testSigHandler;
12996
12997; return 0; }
12998EOF
12999if { (eval echo configure:13000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13000 rm -rf conftest*
13001
13002 wx_cv_type_sa_handler=int
13003
13004else
13005 echo "configure: failed program was:" >&5
13006 cat conftest.$ac_ext >&5
13007 rm -rf conftest*
13008
13009 wx_cv_type_sa_handler=void
13010
13011fi
13012rm -f conftest*
13013
13014fi
13015
13016echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
13017
13018 ac_ext=c
13019# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13020ac_cpp='$CPP $CPPFLAGS'
13021ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13022ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13023cross_compiling=$ac_cv_prog_cc_cross
13024
13025
13026 cat >> confdefs.h <<EOF
13027#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
13028EOF
13029
13030 fi
13031fi
13032
13033for ac_func in vfork
13034do
13035echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13036echo "configure:13037: checking for $ac_func" >&5
13037if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13038 echo $ac_n "(cached) $ac_c" 1>&6
13039else
13040 cat > conftest.$ac_ext <<EOF
13041#line 13042 "configure"
13042#include "confdefs.h"
13043/* System header to define __stub macros and hopefully few prototypes,
13044 which can conflict with char $ac_func(); below. */
13045#include <assert.h>
13046/* Override any gcc2 internal prototype to avoid an error. */
13047/* We use char because int might match the return type of a gcc2
13048 builtin and then its argument prototype would still apply. */
13049char $ac_func();
13050
13051int main() {
13052
13053/* The GNU C library defines this for functions which it implements
13054 to always fail with ENOSYS. Some functions are actually named
13055 something starting with __ and the normal name is an alias. */
13056#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13057choke me
13058#else
13059$ac_func();
13060#endif
13061
13062; return 0; }
13063EOF
13064if { (eval echo configure:13065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13065 rm -rf conftest*
13066 eval "ac_cv_func_$ac_func=yes"
13067else
13068 echo "configure: failed program was:" >&5
13069 cat conftest.$ac_ext >&5
13070 rm -rf conftest*
13071 eval "ac_cv_func_$ac_func=no"
13072fi
13073rm -f conftest*
13074fi
13075
13076if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13077 echo "$ac_t""yes" 1>&6
13078 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13079 cat >> confdefs.h <<EOF
13080#define $ac_tr_func 1
13081EOF
13082
13083else
13084 echo "$ac_t""no" 1>&6
13085fi
13086done
13087
13088
13089if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
13090 for ac_func in fcntl flock
13091do
13092echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13093echo "configure:13094: checking for $ac_func" >&5
13094if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13095 echo $ac_n "(cached) $ac_c" 1>&6
13096else
13097 cat > conftest.$ac_ext <<EOF
13098#line 13099 "configure"
13099#include "confdefs.h"
13100/* System header to define __stub macros and hopefully few prototypes,
13101 which can conflict with char $ac_func(); below. */
13102#include <assert.h>
13103/* Override any gcc2 internal prototype to avoid an error. */
13104/* We use char because int might match the return type of a gcc2
13105 builtin and then its argument prototype would still apply. */
13106char $ac_func();
13107
13108int main() {
13109
13110/* The GNU C library defines this for functions which it implements
13111 to always fail with ENOSYS. Some functions are actually named
13112 something starting with __ and the normal name is an alias. */
13113#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13114choke me
13115#else
13116$ac_func();
13117#endif
13118
13119; return 0; }
13120EOF
13121if { (eval echo configure:13122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13122 rm -rf conftest*
13123 eval "ac_cv_func_$ac_func=yes"
13124else
13125 echo "configure: failed program was:" >&5
13126 cat conftest.$ac_ext >&5
13127 rm -rf conftest*
13128 eval "ac_cv_func_$ac_func=no"
13129fi
13130rm -f conftest*
13131fi
13132
13133if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13134 echo "$ac_t""yes" 1>&6
13135 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13136 cat >> confdefs.h <<EOF
13137#define $ac_tr_func 1
13138EOF
13139 break
13140else
13141 echo "$ac_t""no" 1>&6
13142fi
13143done
13144
13145
13146 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
13147 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
13148 wxUSE_SNGLINST_CHECKER=no
13149 fi
13150fi
13151
13152for ac_func in timegm
13153do
13154echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13155echo "configure:13156: checking for $ac_func" >&5
13156if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13157 echo $ac_n "(cached) $ac_c" 1>&6
13158else
13159 cat > conftest.$ac_ext <<EOF
13160#line 13161 "configure"
13161#include "confdefs.h"
13162/* System header to define __stub macros and hopefully few prototypes,
13163 which can conflict with char $ac_func(); below. */
13164#include <assert.h>
13165/* Override any gcc2 internal prototype to avoid an error. */
13166/* We use char because int might match the return type of a gcc2
13167 builtin and then its argument prototype would still apply. */
13168char $ac_func();
13169
13170int main() {
13171
13172/* The GNU C library defines this for functions which it implements
13173 to always fail with ENOSYS. Some functions are actually named
13174 something starting with __ and the normal name is an alias. */
13175#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13176choke me
13177#else
13178$ac_func();
13179#endif
13180
13181; return 0; }
13182EOF
13183if { (eval echo configure:13184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13184 rm -rf conftest*
13185 eval "ac_cv_func_$ac_func=yes"
13186else
13187 echo "configure: failed program was:" >&5
13188 cat conftest.$ac_ext >&5
13189 rm -rf conftest*
13190 eval "ac_cv_func_$ac_func=no"
13191fi
13192rm -f conftest*
13193fi
13194
13195if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13196 echo "$ac_t""yes" 1>&6
13197 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13198 cat >> confdefs.h <<EOF
13199#define $ac_tr_func 1
13200EOF
13201
13202else
13203 echo "$ac_t""no" 1>&6
13204fi
13205done
13206
13207
13208for ac_func in putenv setenv
13209do
13210echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13211echo "configure:13212: checking for $ac_func" >&5
13212if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13213 echo $ac_n "(cached) $ac_c" 1>&6
13214else
13215 cat > conftest.$ac_ext <<EOF
13216#line 13217 "configure"
13217#include "confdefs.h"
13218/* System header to define __stub macros and hopefully few prototypes,
13219 which can conflict with char $ac_func(); below. */
13220#include <assert.h>
13221/* Override any gcc2 internal prototype to avoid an error. */
13222/* We use char because int might match the return type of a gcc2
13223 builtin and then its argument prototype would still apply. */
13224char $ac_func();
13225
13226int main() {
13227
13228/* The GNU C library defines this for functions which it implements
13229 to always fail with ENOSYS. Some functions are actually named
13230 something starting with __ and the normal name is an alias. */
13231#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13232choke me
13233#else
13234$ac_func();
13235#endif
13236
13237; return 0; }
13238EOF
13239if { (eval echo configure:13240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13240 rm -rf conftest*
13241 eval "ac_cv_func_$ac_func=yes"
13242else
13243 echo "configure: failed program was:" >&5
13244 cat conftest.$ac_ext >&5
13245 rm -rf conftest*
13246 eval "ac_cv_func_$ac_func=no"
13247fi
13248rm -f conftest*
13249fi
13250
13251if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13252 echo "$ac_t""yes" 1>&6
13253 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13254 cat >> confdefs.h <<EOF
13255#define $ac_tr_func 1
13256EOF
13257 break
13258else
13259 echo "$ac_t""no" 1>&6
13260fi
13261done
13262
13263
13264HAVE_SOME_SLEEP_FUNC=0
13265if test "$USE_BEOS" = 1; then
13266 cat >> confdefs.h <<\EOF
13267#define HAVE_SLEEP 1
13268EOF
13269
13270 HAVE_SOME_SLEEP_FUNC=1
13271fi
13272
13273if test "$USE_MAC" = 1; then
13274 cat >> confdefs.h <<\EOF
13275#define HAVE_USLEEP 1
13276EOF
13277
13278 HAVE_SOME_SLEEP_FUNC=1
13279fi
13280
13281if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
13282 POSIX4_LINK=
13283 for ac_func in nanosleep
13284do
13285echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13286echo "configure:13287: checking for $ac_func" >&5
13287if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13288 echo $ac_n "(cached) $ac_c" 1>&6
13289else
13290 cat > conftest.$ac_ext <<EOF
13291#line 13292 "configure"
13292#include "confdefs.h"
13293/* System header to define __stub macros and hopefully few prototypes,
13294 which can conflict with char $ac_func(); below. */
13295#include <assert.h>
13296/* Override any gcc2 internal prototype to avoid an error. */
13297/* We use char because int might match the return type of a gcc2
13298 builtin and then its argument prototype would still apply. */
13299char $ac_func();
13300
13301int main() {
13302
13303/* The GNU C library defines this for functions which it implements
13304 to always fail with ENOSYS. Some functions are actually named
13305 something starting with __ and the normal name is an alias. */
13306#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13307choke me
13308#else
13309$ac_func();
13310#endif
13311
13312; return 0; }
13313EOF
13314if { (eval echo configure:13315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13315 rm -rf conftest*
13316 eval "ac_cv_func_$ac_func=yes"
13317else
13318 echo "configure: failed program was:" >&5
13319 cat conftest.$ac_ext >&5
13320 rm -rf conftest*
13321 eval "ac_cv_func_$ac_func=no"
13322fi
13323rm -f conftest*
13324fi
13325
13326if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13327 echo "$ac_t""yes" 1>&6
13328 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13329 cat >> confdefs.h <<EOF
13330#define $ac_tr_func 1
13331EOF
13332 cat >> confdefs.h <<\EOF
13333#define HAVE_NANOSLEEP 1
13334EOF
13335
13336else
13337 echo "$ac_t""no" 1>&6
13338echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
13339echo "configure:13340: checking for nanosleep in -lposix4" >&5
13340ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
13341if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13342 echo $ac_n "(cached) $ac_c" 1>&6
13343else
13344 ac_save_LIBS="$LIBS"
13345LIBS="-lposix4 $LIBS"
13346cat > conftest.$ac_ext <<EOF
13347#line 13348 "configure"
13348#include "confdefs.h"
13349/* Override any gcc2 internal prototype to avoid an error. */
13350/* We use char because int might match the return type of a gcc2
13351 builtin and then its argument prototype would still apply. */
13352char nanosleep();
13353
13354int main() {
13355nanosleep()
13356; return 0; }
13357EOF
13358if { (eval echo configure:13359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13359 rm -rf conftest*
13360 eval "ac_cv_lib_$ac_lib_var=yes"
13361else
13362 echo "configure: failed program was:" >&5
13363 cat conftest.$ac_ext >&5
13364 rm -rf conftest*
13365 eval "ac_cv_lib_$ac_lib_var=no"
13366fi
13367rm -f conftest*
13368LIBS="$ac_save_LIBS"
13369
13370fi
13371if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13372 echo "$ac_t""yes" 1>&6
13373
13374 cat >> confdefs.h <<\EOF
13375#define HAVE_NANOSLEEP 1
13376EOF
13377
13378 POSIX4_LINK="-lposix4"
13379
13380else
13381 echo "$ac_t""no" 1>&6
13382
13383 for ac_func in usleep
13384do
13385echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13386echo "configure:13387: checking for $ac_func" >&5
13387if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13388 echo $ac_n "(cached) $ac_c" 1>&6
13389else
13390 cat > conftest.$ac_ext <<EOF
13391#line 13392 "configure"
13392#include "confdefs.h"
13393/* System header to define __stub macros and hopefully few prototypes,
13394 which can conflict with char $ac_func(); below. */
13395#include <assert.h>
13396/* Override any gcc2 internal prototype to avoid an error. */
13397/* We use char because int might match the return type of a gcc2
13398 builtin and then its argument prototype would still apply. */
13399char $ac_func();
13400
13401int main() {
13402
13403/* The GNU C library defines this for functions which it implements
13404 to always fail with ENOSYS. Some functions are actually named
13405 something starting with __ and the normal name is an alias. */
13406#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13407choke me
13408#else
13409$ac_func();
13410#endif
13411
13412; return 0; }
13413EOF
13414if { (eval echo configure:13415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13415 rm -rf conftest*
13416 eval "ac_cv_func_$ac_func=yes"
13417else
13418 echo "configure: failed program was:" >&5
13419 cat conftest.$ac_ext >&5
13420 rm -rf conftest*
13421 eval "ac_cv_func_$ac_func=no"
13422fi
13423rm -f conftest*
13424fi
13425
13426if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13427 echo "$ac_t""yes" 1>&6
13428 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13429 cat >> confdefs.h <<EOF
13430#define $ac_tr_func 1
13431EOF
13432 cat >> confdefs.h <<\EOF
13433#define HAVE_USLEEP 1
13434EOF
13435
13436else
13437 echo "$ac_t""no" 1>&6
13438echo "configure: warning: wxSleep() function will not work" 1>&2
13439
13440fi
13441done
13442
13443
13444
13445fi
13446
13447
13448
13449fi
13450done
13451
13452fi
13453
13454for ac_func in uname gethostname
13455do
13456echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13457echo "configure:13458: checking for $ac_func" >&5
13458if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13459 echo $ac_n "(cached) $ac_c" 1>&6
13460else
13461 cat > conftest.$ac_ext <<EOF
13462#line 13463 "configure"
13463#include "confdefs.h"
13464/* System header to define __stub macros and hopefully few prototypes,
13465 which can conflict with char $ac_func(); below. */
13466#include <assert.h>
13467/* Override any gcc2 internal prototype to avoid an error. */
13468/* We use char because int might match the return type of a gcc2
13469 builtin and then its argument prototype would still apply. */
13470char $ac_func();
13471
13472int main() {
13473
13474/* The GNU C library defines this for functions which it implements
13475 to always fail with ENOSYS. Some functions are actually named
13476 something starting with __ and the normal name is an alias. */
13477#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13478choke me
13479#else
13480$ac_func();
13481#endif
13482
13483; return 0; }
13484EOF
13485if { (eval echo configure:13486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13486 rm -rf conftest*
13487 eval "ac_cv_func_$ac_func=yes"
13488else
13489 echo "configure: failed program was:" >&5
13490 cat conftest.$ac_ext >&5
13491 rm -rf conftest*
13492 eval "ac_cv_func_$ac_func=no"
13493fi
13494rm -f conftest*
13495fi
13496
13497if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13498 echo "$ac_t""yes" 1>&6
13499 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13500 cat >> confdefs.h <<EOF
13501#define $ac_tr_func 1
13502EOF
13503 break
13504else
13505 echo "$ac_t""no" 1>&6
13506fi
13507done
13508
13509
13510
13511ac_ext=C
13512# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13513ac_cpp='$CXXCPP $CPPFLAGS'
13514ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13515ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13516cross_compiling=$ac_cv_prog_cxx_cross
13517
13518
13519for ac_func in strtok_r
13520do
13521echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13522echo "configure:13523: checking for $ac_func" >&5
13523if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13524 echo $ac_n "(cached) $ac_c" 1>&6
13525else
13526 cat > conftest.$ac_ext <<EOF
13527#line 13528 "configure"
13528#include "confdefs.h"
13529/* System header to define __stub macros and hopefully few prototypes,
13530 which can conflict with char $ac_func(); below. */
13531#include <assert.h>
13532/* Override any gcc2 internal prototype to avoid an error. */
13533#ifdef __cplusplus
13534extern "C"
13535#endif
13536/* We use char because int might match the return type of a gcc2
13537 builtin and then its argument prototype would still apply. */
13538char $ac_func();
13539
13540int main() {
13541
13542/* The GNU C library defines this for functions which it implements
13543 to always fail with ENOSYS. Some functions are actually named
13544 something starting with __ and the normal name is an alias. */
13545#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13546choke me
13547#else
13548$ac_func();
13549#endif
13550
13551; return 0; }
13552EOF
13553if { (eval echo configure:13554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13554 rm -rf conftest*
13555 eval "ac_cv_func_$ac_func=yes"
13556else
13557 echo "configure: failed program was:" >&5
13558 cat conftest.$ac_ext >&5
13559 rm -rf conftest*
13560 eval "ac_cv_func_$ac_func=no"
13561fi
13562rm -f conftest*
13563fi
13564
13565if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13566 echo "$ac_t""yes" 1>&6
13567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13568 cat >> confdefs.h <<EOF
13569#define $ac_tr_func 1
13570EOF
13571
13572else
13573 echo "$ac_t""no" 1>&6
13574fi
13575done
13576
13577
13578ac_ext=c
13579# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13580ac_cpp='$CPP $CPPFLAGS'
13581ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13582ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13583cross_compiling=$ac_cv_prog_cc_cross
13584
13585
13586INET_LINK=
13587for ac_func in inet_addr
13588do
13589echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13590echo "configure:13591: checking for $ac_func" >&5
13591if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13592 echo $ac_n "(cached) $ac_c" 1>&6
13593else
13594 cat > conftest.$ac_ext <<EOF
13595#line 13596 "configure"
13596#include "confdefs.h"
13597/* System header to define __stub macros and hopefully few prototypes,
13598 which can conflict with char $ac_func(); below. */
13599#include <assert.h>
13600/* Override any gcc2 internal prototype to avoid an error. */
13601/* We use char because int might match the return type of a gcc2
13602 builtin and then its argument prototype would still apply. */
13603char $ac_func();
13604
13605int main() {
13606
13607/* The GNU C library defines this for functions which it implements
13608 to always fail with ENOSYS. Some functions are actually named
13609 something starting with __ and the normal name is an alias. */
13610#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13611choke me
13612#else
13613$ac_func();
13614#endif
13615
13616; return 0; }
13617EOF
13618if { (eval echo configure:13619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13619 rm -rf conftest*
13620 eval "ac_cv_func_$ac_func=yes"
13621else
13622 echo "configure: failed program was:" >&5
13623 cat conftest.$ac_ext >&5
13624 rm -rf conftest*
13625 eval "ac_cv_func_$ac_func=no"
13626fi
13627rm -f conftest*
13628fi
13629
13630if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13631 echo "$ac_t""yes" 1>&6
13632 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13633 cat >> confdefs.h <<EOF
13634#define $ac_tr_func 1
13635EOF
13636 cat >> confdefs.h <<\EOF
13637#define HAVE_INET_ADDR 1
13638EOF
13639
13640else
13641 echo "$ac_t""no" 1>&6
13642echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
13643echo "configure:13644: checking for inet_addr in -lnsl" >&5
13644ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
13645if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13646 echo $ac_n "(cached) $ac_c" 1>&6
13647else
13648 ac_save_LIBS="$LIBS"
13649LIBS="-lnsl $LIBS"
13650cat > conftest.$ac_ext <<EOF
13651#line 13652 "configure"
13652#include "confdefs.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. */
13656char inet_addr();
13657
13658int main() {
13659inet_addr()
13660; return 0; }
13661EOF
13662if { (eval echo configure:13663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13663 rm -rf conftest*
13664 eval "ac_cv_lib_$ac_lib_var=yes"
13665else
13666 echo "configure: failed program was:" >&5
13667 cat conftest.$ac_ext >&5
13668 rm -rf conftest*
13669 eval "ac_cv_lib_$ac_lib_var=no"
13670fi
13671rm -f conftest*
13672LIBS="$ac_save_LIBS"
13673
13674fi
13675if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13676 echo "$ac_t""yes" 1>&6
13677 INET_LINK="nsl"
13678else
13679 echo "$ac_t""no" 1>&6
13680echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
13681echo "configure:13682: checking for inet_addr in -lresolv" >&5
13682ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
13683if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13684 echo $ac_n "(cached) $ac_c" 1>&6
13685else
13686 ac_save_LIBS="$LIBS"
13687LIBS="-lresolv $LIBS"
13688cat > conftest.$ac_ext <<EOF
13689#line 13690 "configure"
13690#include "confdefs.h"
13691/* Override any gcc2 internal prototype to avoid an error. */
13692/* We use char because int might match the return type of a gcc2
13693 builtin and then its argument prototype would still apply. */
13694char inet_addr();
13695
13696int main() {
13697inet_addr()
13698; return 0; }
13699EOF
13700if { (eval echo configure:13701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13701 rm -rf conftest*
13702 eval "ac_cv_lib_$ac_lib_var=yes"
13703else
13704 echo "configure: failed program was:" >&5
13705 cat conftest.$ac_ext >&5
13706 rm -rf conftest*
13707 eval "ac_cv_lib_$ac_lib_var=no"
13708fi
13709rm -f conftest*
13710LIBS="$ac_save_LIBS"
13711
13712fi
13713if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13714 echo "$ac_t""yes" 1>&6
13715 INET_LINK="resolv"
13716
13717else
13718 echo "$ac_t""no" 1>&6
13719fi
13720
13721
13722fi
13723
13724
13725
13726fi
13727done
13728
13729
13730for ac_func in inet_aton
13731do
13732echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13733echo "configure:13734: checking for $ac_func" >&5
13734if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13735 echo $ac_n "(cached) $ac_c" 1>&6
13736else
13737 cat > conftest.$ac_ext <<EOF
13738#line 13739 "configure"
13739#include "confdefs.h"
13740/* System header to define __stub macros and hopefully few prototypes,
13741 which can conflict with char $ac_func(); below. */
13742#include <assert.h>
13743/* Override any gcc2 internal prototype to avoid an error. */
13744/* We use char because int might match the return type of a gcc2
13745 builtin and then its argument prototype would still apply. */
13746char $ac_func();
13747
13748int main() {
13749
13750/* The GNU C library defines this for functions which it implements
13751 to always fail with ENOSYS. Some functions are actually named
13752 something starting with __ and the normal name is an alias. */
13753#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13754choke me
13755#else
13756$ac_func();
13757#endif
13758
13759; return 0; }
13760EOF
13761if { (eval echo configure:13762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13762 rm -rf conftest*
13763 eval "ac_cv_func_$ac_func=yes"
13764else
13765 echo "configure: failed program was:" >&5
13766 cat conftest.$ac_ext >&5
13767 rm -rf conftest*
13768 eval "ac_cv_func_$ac_func=no"
13769fi
13770rm -f conftest*
13771fi
13772
13773if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13774 echo "$ac_t""yes" 1>&6
13775 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13776 cat >> confdefs.h <<EOF
13777#define $ac_tr_func 1
13778EOF
13779 cat >> confdefs.h <<\EOF
13780#define HAVE_INET_ATON 1
13781EOF
13782
13783else
13784 echo "$ac_t""no" 1>&6
13785 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
13786echo "configure:13787: checking for inet_aton in -l$INET_LINK" >&5
13787ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
13788if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13789 echo $ac_n "(cached) $ac_c" 1>&6
13790else
13791 ac_save_LIBS="$LIBS"
13792LIBS="-l$INET_LINK $LIBS"
13793cat > conftest.$ac_ext <<EOF
13794#line 13795 "configure"
13795#include "confdefs.h"
13796/* Override any gcc2 internal prototype to avoid an error. */
13797/* We use char because int might match the return type of a gcc2
13798 builtin and then its argument prototype would still apply. */
13799char inet_aton();
13800
13801int main() {
13802inet_aton()
13803; return 0; }
13804EOF
13805if { (eval echo configure:13806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13806 rm -rf conftest*
13807 eval "ac_cv_lib_$ac_lib_var=yes"
13808else
13809 echo "configure: failed program was:" >&5
13810 cat conftest.$ac_ext >&5
13811 rm -rf conftest*
13812 eval "ac_cv_lib_$ac_lib_var=no"
13813fi
13814rm -f conftest*
13815LIBS="$ac_save_LIBS"
13816
13817fi
13818if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13819 echo "$ac_t""yes" 1>&6
13820 cat >> confdefs.h <<\EOF
13821#define HAVE_INET_ATON 1
13822EOF
13823
13824else
13825 echo "$ac_t""no" 1>&6
13826fi
13827
13828
13829fi
13830done
13831
13832
13833if test "x$INET_LINK" != "x"; then
13834 cat >> confdefs.h <<\EOF
13835#define HAVE_INET_ADDR 1
13836EOF
13837
13838 INET_LINK="-l$INET_LINK"
13839fi
13840
13841fi
13842
13843
13844cat > confcache <<\EOF
13845# This file is a shell script that caches the results of configure
13846# tests run on this system so they can be shared between configure
13847# scripts and configure runs. It is not useful on other systems.
13848# If it contains results you don't want to keep, you may remove or edit it.
13849#
13850# By default, configure uses ./config.cache as the cache file,
13851# creating it if it does not exist already. You can give configure
13852# the --cache-file=FILE option to use a different cache file; that is
13853# what configure does when it calls configure scripts in
13854# subdirectories, so they share the cache.
13855# Giving --cache-file=/dev/null disables caching, for debugging configure.
13856# config.status only pays attention to the cache file if you give it the
13857# --recheck option to rerun configure.
13858#
13859EOF
13860# The following way of writing the cache mishandles newlines in values,
13861# but we know of no workaround that is simple, portable, and efficient.
13862# So, don't put newlines in cache variables' values.
13863# Ultrix sh set writes to stderr and can't be redirected directly,
13864# and sets the high bit in the cache file unless we assign to the vars.
13865(set) 2>&1 |
13866 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13867 *ac_space=\ *)
13868 # `set' does not quote correctly, so add quotes (double-quote substitution
13869 # turns \\\\ into \\, and sed turns \\ into \).
13870 sed -n \
13871 -e "s/'/'\\\\''/g" \
13872 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13873 ;;
13874 *)
13875 # `set' quotes correctly as required by POSIX, so do not add quotes.
13876 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13877 ;;
13878 esac >> confcache
13879if cmp -s $cache_file confcache; then
13880 :
13881else
13882 if test -w $cache_file; then
13883 echo "updating cache $cache_file"
13884 cat confcache > $cache_file
13885 else
13886 echo "not updating unwritable cache $cache_file"
13887 fi
13888fi
13889rm -f confcache
13890
13891
13892
13893if test "$TOOLKIT" != "MSW"; then
13894
13895
13896THREADS_LINK=""
13897THREADS_OBJ=""
13898
13899if test "$wxUSE_THREADS" = "yes" ; then
13900 if test "$wxUSE_WINE" = 1 ; then
13901 echo "configure: warning: Threads are not supported under WINE" 1>&2
13902 wxUSE_THREADS="no"
13903 elif test "$USE_BEOS" = 1; then
13904 echo "configure: warning: BeOS threads are not yet supported" 1>&2
13905 wxUSE_THREADS="no"
13906 fi
13907fi
13908
13909if test "$wxUSE_THREADS" = "yes" ; then
13910
13911 if test "$USE_AIX" = 1; then
13912 THREADS_LIB=pthreads
13913 else
13914 THREADS_LIB=pthread
13915 fi
13916
13917 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
13918echo "configure:13919: checking for pthread_create in -l$THREADS_LIB" >&5
13919ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
13920if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13921 echo $ac_n "(cached) $ac_c" 1>&6
13922else
13923 ac_save_LIBS="$LIBS"
13924LIBS="-l$THREADS_LIB $LIBS"
13925cat > conftest.$ac_ext <<EOF
13926#line 13927 "configure"
13927#include "confdefs.h"
13928/* Override any gcc2 internal prototype to avoid an error. */
13929/* We use char because int might match the return type of a gcc2
13930 builtin and then its argument prototype would still apply. */
13931char pthread_create();
13932
13933int main() {
13934pthread_create()
13935; return 0; }
13936EOF
13937if { (eval echo configure:13938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13938 rm -rf conftest*
13939 eval "ac_cv_lib_$ac_lib_var=yes"
13940else
13941 echo "configure: failed program was:" >&5
13942 cat conftest.$ac_ext >&5
13943 rm -rf conftest*
13944 eval "ac_cv_lib_$ac_lib_var=no"
13945fi
13946rm -f conftest*
13947LIBS="$ac_save_LIBS"
13948
13949fi
13950if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13951 echo "$ac_t""yes" 1>&6
13952
13953 THREADS_OBJ="threadpsx.lo"
13954 THREADS_LINK=$THREADS_LIB
13955
13956else
13957 echo "$ac_t""no" 1>&6
13958
13959 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
13960echo "configure:13961: checking for pthread_create in -lc_r" >&5
13961ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
13962if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13963 echo $ac_n "(cached) $ac_c" 1>&6
13964else
13965 ac_save_LIBS="$LIBS"
13966LIBS="-lc_r $LIBS"
13967cat > conftest.$ac_ext <<EOF
13968#line 13969 "configure"
13969#include "confdefs.h"
13970/* Override any gcc2 internal prototype to avoid an error. */
13971/* We use char because int might match the return type of a gcc2
13972 builtin and then its argument prototype would still apply. */
13973char pthread_create();
13974
13975int main() {
13976pthread_create()
13977; return 0; }
13978EOF
13979if { (eval echo configure:13980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13980 rm -rf conftest*
13981 eval "ac_cv_lib_$ac_lib_var=yes"
13982else
13983 echo "configure: failed program was:" >&5
13984 cat conftest.$ac_ext >&5
13985 rm -rf conftest*
13986 eval "ac_cv_lib_$ac_lib_var=no"
13987fi
13988rm -f conftest*
13989LIBS="$ac_save_LIBS"
13990
13991fi
13992if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13993 echo "$ac_t""yes" 1>&6
13994
13995 THREADS_OBJ="threadpsx.lo"
13996 THREADS_LINK="c_r"
13997
13998else
13999 echo "$ac_t""no" 1>&6
14000
14001 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
14002echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
14003echo "configure:14004: checking for sys/prctl.h" >&5
14004if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14005 echo $ac_n "(cached) $ac_c" 1>&6
14006else
14007 cat > conftest.$ac_ext <<EOF
14008#line 14009 "configure"
14009#include "confdefs.h"
14010#include <sys/prctl.h>
14011EOF
14012ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14013{ (eval echo configure:14014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14014ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14015if test -z "$ac_err"; then
14016 rm -rf conftest*
14017 eval "ac_cv_header_$ac_safe=yes"
14018else
14019 echo "$ac_err" >&5
14020 echo "configure: failed program was:" >&5
14021 cat conftest.$ac_ext >&5
14022 rm -rf conftest*
14023 eval "ac_cv_header_$ac_safe=no"
14024fi
14025rm -f conftest*
14026fi
14027if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14028 echo "$ac_t""yes" 1>&6
14029
14030 THREADS_OBJ="threadsgi.lo"
14031
14032else
14033 echo "$ac_t""no" 1>&6
14034fi
14035
14036
14037fi
14038
14039
14040fi
14041
14042
14043 if test -z "$THREADS_OBJ" ; then
14044 wxUSE_THREADS=no
14045 echo "configure: warning: No thread support on this system" 1>&2
14046 fi
14047fi
14048
14049if test "$wxUSE_THREADS" = "yes" ; then
14050 for ac_func in thr_setconcurrency
14051do
14052echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14053echo "configure:14054: checking for $ac_func" >&5
14054if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14055 echo $ac_n "(cached) $ac_c" 1>&6
14056else
14057 cat > conftest.$ac_ext <<EOF
14058#line 14059 "configure"
14059#include "confdefs.h"
14060/* System header to define __stub macros and hopefully few prototypes,
14061 which can conflict with char $ac_func(); below. */
14062#include <assert.h>
14063/* Override any gcc2 internal prototype to avoid an error. */
14064/* We use char because int might match the return type of a gcc2
14065 builtin and then its argument prototype would still apply. */
14066char $ac_func();
14067
14068int main() {
14069
14070/* The GNU C library defines this for functions which it implements
14071 to always fail with ENOSYS. Some functions are actually named
14072 something starting with __ and the normal name is an alias. */
14073#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14074choke me
14075#else
14076$ac_func();
14077#endif
14078
14079; return 0; }
14080EOF
14081if { (eval echo configure:14082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14082 rm -rf conftest*
14083 eval "ac_cv_func_$ac_func=yes"
14084else
14085 echo "configure: failed program was:" >&5
14086 cat conftest.$ac_ext >&5
14087 rm -rf conftest*
14088 eval "ac_cv_func_$ac_func=no"
14089fi
14090rm -f conftest*
14091fi
14092
14093if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14094 echo "$ac_t""yes" 1>&6
14095 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14096 cat >> confdefs.h <<EOF
14097#define $ac_tr_func 1
14098EOF
14099
14100else
14101 echo "$ac_t""no" 1>&6
14102fi
14103done
14104
14105
14106
14107 for ac_hdr in sched.h
14108do
14109ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14110echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14111echo "configure:14112: checking for $ac_hdr" >&5
14112if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14113 echo $ac_n "(cached) $ac_c" 1>&6
14114else
14115 cat > conftest.$ac_ext <<EOF
14116#line 14117 "configure"
14117#include "confdefs.h"
14118#include <$ac_hdr>
14119EOF
14120ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14121{ (eval echo configure:14122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14122ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14123if test -z "$ac_err"; then
14124 rm -rf conftest*
14125 eval "ac_cv_header_$ac_safe=yes"
14126else
14127 echo "$ac_err" >&5
14128 echo "configure: failed program was:" >&5
14129 cat conftest.$ac_ext >&5
14130 rm -rf conftest*
14131 eval "ac_cv_header_$ac_safe=no"
14132fi
14133rm -f conftest*
14134fi
14135if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14136 echo "$ac_t""yes" 1>&6
14137 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14138 cat >> confdefs.h <<EOF
14139#define $ac_tr_hdr 1
14140EOF
14141
14142else
14143 echo "$ac_t""no" 1>&6
14144fi
14145done
14146
14147
14148 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
14149echo "configure:14150: checking for sched_yield in -l$THREADS_LINK" >&5
14150ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
14151if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14152 echo $ac_n "(cached) $ac_c" 1>&6
14153else
14154 ac_save_LIBS="$LIBS"
14155LIBS="-l$THREADS_LINK $LIBS"
14156cat > conftest.$ac_ext <<EOF
14157#line 14158 "configure"
14158#include "confdefs.h"
14159/* Override any gcc2 internal prototype to avoid an error. */
14160/* We use char because int might match the return type of a gcc2
14161 builtin and then its argument prototype would still apply. */
14162char sched_yield();
14163
14164int main() {
14165sched_yield()
14166; return 0; }
14167EOF
14168if { (eval echo configure:14169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14169 rm -rf conftest*
14170 eval "ac_cv_lib_$ac_lib_var=yes"
14171else
14172 echo "configure: failed program was:" >&5
14173 cat conftest.$ac_ext >&5
14174 rm -rf conftest*
14175 eval "ac_cv_lib_$ac_lib_var=no"
14176fi
14177rm -f conftest*
14178LIBS="$ac_save_LIBS"
14179
14180fi
14181if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14182 echo "$ac_t""yes" 1>&6
14183 cat >> confdefs.h <<\EOF
14184#define HAVE_SCHED_YIELD 1
14185EOF
14186
14187else
14188 echo "$ac_t""no" 1>&6
14189echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
14190echo "configure:14191: checking for sched_yield in -lposix4" >&5
14191ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
14192if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14193 echo $ac_n "(cached) $ac_c" 1>&6
14194else
14195 ac_save_LIBS="$LIBS"
14196LIBS="-lposix4 $LIBS"
14197cat > conftest.$ac_ext <<EOF
14198#line 14199 "configure"
14199#include "confdefs.h"
14200/* Override any gcc2 internal prototype to avoid an error. */
14201/* We use char because int might match the return type of a gcc2
14202 builtin and then its argument prototype would still apply. */
14203char sched_yield();
14204
14205int main() {
14206sched_yield()
14207; return 0; }
14208EOF
14209if { (eval echo configure:14210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14210 rm -rf conftest*
14211 eval "ac_cv_lib_$ac_lib_var=yes"
14212else
14213 echo "configure: failed program was:" >&5
14214 cat conftest.$ac_ext >&5
14215 rm -rf conftest*
14216 eval "ac_cv_lib_$ac_lib_var=no"
14217fi
14218rm -f conftest*
14219LIBS="$ac_save_LIBS"
14220
14221fi
14222if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14223 echo "$ac_t""yes" 1>&6
14224 cat >> confdefs.h <<\EOF
14225#define HAVE_SCHED_YIELD 1
14226EOF
14227 POSIX4_LINK="-lposix4"
14228else
14229 echo "$ac_t""no" 1>&6
14230echo "configure: warning: wxThread::Yield will not work properly" 1>&2
14231
14232fi
14233
14234
14235fi
14236
14237
14238 HAVE_PRIOR_FUNCS=0
14239 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
14240echo "configure:14241: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
14241ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
14242if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14243 echo $ac_n "(cached) $ac_c" 1>&6
14244else
14245 ac_save_LIBS="$LIBS"
14246LIBS="-l$THREADS_LINK $LIBS"
14247cat > conftest.$ac_ext <<EOF
14248#line 14249 "configure"
14249#include "confdefs.h"
14250/* Override any gcc2 internal prototype to avoid an error. */
14251/* We use char because int might match the return type of a gcc2
14252 builtin and then its argument prototype would still apply. */
14253char pthread_attr_getschedpolicy();
14254
14255int main() {
14256pthread_attr_getschedpolicy()
14257; return 0; }
14258EOF
14259if { (eval echo configure:14260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14260 rm -rf conftest*
14261 eval "ac_cv_lib_$ac_lib_var=yes"
14262else
14263 echo "configure: failed program was:" >&5
14264 cat conftest.$ac_ext >&5
14265 rm -rf conftest*
14266 eval "ac_cv_lib_$ac_lib_var=no"
14267fi
14268rm -f conftest*
14269LIBS="$ac_save_LIBS"
14270
14271fi
14272if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14273 echo "$ac_t""yes" 1>&6
14274 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
14275echo "configure:14276: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
14276ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
14277if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14278 echo $ac_n "(cached) $ac_c" 1>&6
14279else
14280 ac_save_LIBS="$LIBS"
14281LIBS="-l$THREADS_LINK $LIBS"
14282cat > conftest.$ac_ext <<EOF
14283#line 14284 "configure"
14284#include "confdefs.h"
14285/* Override any gcc2 internal prototype to avoid an error. */
14286/* We use char because int might match the return type of a gcc2
14287 builtin and then its argument prototype would still apply. */
14288char pthread_attr_setschedparam();
14289
14290int main() {
14291pthread_attr_setschedparam()
14292; return 0; }
14293EOF
14294if { (eval echo configure:14295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14295 rm -rf conftest*
14296 eval "ac_cv_lib_$ac_lib_var=yes"
14297else
14298 echo "configure: failed program was:" >&5
14299 cat conftest.$ac_ext >&5
14300 rm -rf conftest*
14301 eval "ac_cv_lib_$ac_lib_var=no"
14302fi
14303rm -f conftest*
14304LIBS="$ac_save_LIBS"
14305
14306fi
14307if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14308 echo "$ac_t""yes" 1>&6
14309 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
14310echo "configure:14311: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
14311ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14312if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14313 echo $ac_n "(cached) $ac_c" 1>&6
14314else
14315 ac_save_LIBS="$LIBS"
14316LIBS="-l$THREADS_LINK $LIBS"
14317cat > conftest.$ac_ext <<EOF
14318#line 14319 "configure"
14319#include "confdefs.h"
14320/* Override any gcc2 internal prototype to avoid an error. */
14321/* We use char because int might match the return type of a gcc2
14322 builtin and then its argument prototype would still apply. */
14323char sched_get_priority_max();
14324
14325int main() {
14326sched_get_priority_max()
14327; return 0; }
14328EOF
14329if { (eval echo configure:14330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14330 rm -rf conftest*
14331 eval "ac_cv_lib_$ac_lib_var=yes"
14332else
14333 echo "configure: failed program was:" >&5
14334 cat conftest.$ac_ext >&5
14335 rm -rf conftest*
14336 eval "ac_cv_lib_$ac_lib_var=no"
14337fi
14338rm -f conftest*
14339LIBS="$ac_save_LIBS"
14340
14341fi
14342if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14343 echo "$ac_t""yes" 1>&6
14344 HAVE_PRIOR_FUNCS=1
14345else
14346 echo "$ac_t""no" 1>&6
14347echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
14348echo "configure:14349: checking for sched_get_priority_max in -lposix4" >&5
14349ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14350if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14351 echo $ac_n "(cached) $ac_c" 1>&6
14352else
14353 ac_save_LIBS="$LIBS"
14354LIBS="-lposix4 $LIBS"
14355cat > conftest.$ac_ext <<EOF
14356#line 14357 "configure"
14357#include "confdefs.h"
14358/* Override any gcc2 internal prototype to avoid an error. */
14359/* We use char because int might match the return type of a gcc2
14360 builtin and then its argument prototype would still apply. */
14361char sched_get_priority_max();
14362
14363int main() {
14364sched_get_priority_max()
14365; return 0; }
14366EOF
14367if { (eval echo configure:14368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14368 rm -rf conftest*
14369 eval "ac_cv_lib_$ac_lib_var=yes"
14370else
14371 echo "configure: failed program was:" >&5
14372 cat conftest.$ac_ext >&5
14373 rm -rf conftest*
14374 eval "ac_cv_lib_$ac_lib_var=no"
14375fi
14376rm -f conftest*
14377LIBS="$ac_save_LIBS"
14378
14379fi
14380if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14381 echo "$ac_t""yes" 1>&6
14382
14383 HAVE_PRIOR_FUNCS=1
14384 POSIX4_LINK="-lposix4"
14385
14386else
14387 echo "$ac_t""no" 1>&6
14388fi
14389
14390
14391fi
14392
14393
14394else
14395 echo "$ac_t""no" 1>&6
14396fi
14397
14398
14399else
14400 echo "$ac_t""no" 1>&6
14401fi
14402
14403
14404 if test "$HAVE_PRIOR_FUNCS" = 1; then
14405 cat >> confdefs.h <<\EOF
14406#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
14407EOF
14408
14409 else
14410 echo "configure: warning: Setting thread priority will not work" 1>&2
14411 fi
14412
14413 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
14414echo "configure:14415: checking for pthread_cancel in -l$THREADS_LINK" >&5
14415ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
14416if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14417 echo $ac_n "(cached) $ac_c" 1>&6
14418else
14419 ac_save_LIBS="$LIBS"
14420LIBS="-l$THREADS_LINK $LIBS"
14421cat > conftest.$ac_ext <<EOF
14422#line 14423 "configure"
14423#include "confdefs.h"
14424/* Override any gcc2 internal prototype to avoid an error. */
14425/* We use char because int might match the return type of a gcc2
14426 builtin and then its argument prototype would still apply. */
14427char pthread_cancel();
14428
14429int main() {
14430pthread_cancel()
14431; return 0; }
14432EOF
14433if { (eval echo configure:14434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14434 rm -rf conftest*
14435 eval "ac_cv_lib_$ac_lib_var=yes"
14436else
14437 echo "configure: failed program was:" >&5
14438 cat conftest.$ac_ext >&5
14439 rm -rf conftest*
14440 eval "ac_cv_lib_$ac_lib_var=no"
14441fi
14442rm -f conftest*
14443LIBS="$ac_save_LIBS"
14444
14445fi
14446if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14447 echo "$ac_t""yes" 1>&6
14448 cat >> confdefs.h <<\EOF
14449#define HAVE_PTHREAD_CANCEL 1
14450EOF
14451
14452else
14453 echo "$ac_t""no" 1>&6
14454echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
14455fi
14456
14457
14458 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
14459echo "configure:14460: checking for pthread_cleanup_push/pop" >&5
14460if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
14461 echo $ac_n "(cached) $ac_c" 1>&6
14462else
14463
14464 cat > conftest.$ac_ext <<EOF
14465#line 14466 "configure"
14466#include "confdefs.h"
14467#include <pthread.h>
14468int main() {
14469
14470 pthread_cleanup_push(NULL, NULL);
14471 pthread_cleanup_pop(0);
14472
14473; return 0; }
14474EOF
14475if { (eval echo configure:14476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14476 rm -rf conftest*
14477
14478 wx_cv_func_pthread_cleanup_push=yes
14479
14480else
14481 echo "configure: failed program was:" >&5
14482 cat conftest.$ac_ext >&5
14483 rm -rf conftest*
14484
14485 wx_cv_func_pthread_cleanup_push=no
14486
14487fi
14488rm -f conftest*
14489
14490fi
14491
14492echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
14493
14494 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
14495 cat >> confdefs.h <<\EOF
14496#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
14497EOF
14498
14499 fi
14500
14501
14502 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
14503echo "configure:14504: checking for pthread_mutexattr_t" >&5
14504if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
14505 echo $ac_n "(cached) $ac_c" 1>&6
14506else
14507
14508 cat > conftest.$ac_ext <<EOF
14509#line 14510 "configure"
14510#include "confdefs.h"
14511#include <pthread.h>
14512int main() {
14513
14514 pthread_mutexattr_t attr;
14515 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
14516
14517; return 0; }
14518EOF
14519if { (eval echo configure:14520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14520 rm -rf conftest*
14521
14522 wx_cv_type_pthread_mutexattr_t=yes
14523
14524else
14525 echo "configure: failed program was:" >&5
14526 cat conftest.$ac_ext >&5
14527 rm -rf conftest*
14528
14529 wx_cv_type_pthread_mutexattr_t=no
14530
14531
14532fi
14533rm -f conftest*
14534
14535fi
14536
14537echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
14538
14539 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
14540 cat >> confdefs.h <<\EOF
14541#define HAVE_PTHREAD_MUTEXATTR_T 1
14542EOF
14543
14544 else
14545 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
14546echo "configure:14547: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
14547if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
14548 echo $ac_n "(cached) $ac_c" 1>&6
14549else
14550
14551 cat > conftest.$ac_ext <<EOF
14552#line 14553 "configure"
14553#include "confdefs.h"
14554#include <pthread.h>
14555int main() {
14556
14557 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
14558
14559; return 0; }
14560EOF
14561if { (eval echo configure:14562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14562 rm -rf conftest*
14563
14564 wx_cv_type_pthread_rec_mutex_init=yes
14565
14566else
14567 echo "configure: failed program was:" >&5
14568 cat conftest.$ac_ext >&5
14569 rm -rf conftest*
14570
14571 wx_cv_type_pthread_rec_mutex_init=no
14572
14573
14574fi
14575rm -f conftest*
14576
14577fi
14578
14579echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
14580 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
14581 cat >> confdefs.h <<\EOF
14582#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
14583EOF
14584
14585 else
14586 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
14587 fi
14588 fi
14589
14590 THREADS_LINK="-l$THREADS_LINK"
14591
14592 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
14593 CFLAGS="${CFLAGS} -mt"
14594 CXXFLAGS="${CXXFLAGS} -mt"
14595 LDFLAGS="${LDFLAGS} -mt"
14596 fi
14597fi
14598
14599fi
14600
14601if test "$wxUSE_THREADS" = "yes"; then
14602 cat >> confdefs.h <<\EOF
14603#define wxUSE_THREADS 1
14604EOF
14605
14606
14607 if test "$wxUSE_MAC" = "0"; then
14608 CFLAGS="${CFLAGS} -D_REENTRANT"
14609 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14610 fi
14611
14612 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
14613else
14614 if test "$ac_cv_func_strtok_r" = "yes"; then
14615 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
14616echo "configure:14617: checking if -D_REENTRANT is needed" >&5
14617 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
14618 CFLAGS="${CFLAGS} -D_REENTRANT"
14619 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14620 echo "$ac_t""yes" 1>&6
14621 else
14622 echo "$ac_t""no" 1>&6
14623 fi
14624 fi
14625fi
14626
14627if test "$WXGTK20" = 1 ; then
14628 cat >> confdefs.h <<EOF
14629#define __WXGTK20__ $WXGTK20
14630EOF
14631
14632 WXGTK12=1
14633fi
14634
14635if test "$WXGTK12" = 1 ; then
14636 cat >> confdefs.h <<EOF
14637#define __WXGTK12__ $WXGTK12
14638EOF
14639
14640fi
14641
14642if test "$WXGTK127" = 1 ; then
14643 cat >> confdefs.h <<EOF
14644#define __WXGTK127__ $WXGTK127
14645EOF
14646
14647fi
14648
14649if test "$WXWINE" = 1 ; then
14650 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
14651fi
14652
14653if test "$wxUSE_MAC" = 1 ; then
14654 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON"
14655 CFLAGS="${CFLAGS} -fno-common -fpascal-strings"
14656 CPPFLAGS="${CPPFLAGS} -cpp-precomp -fno-common -fpascal-strings"
14657 # Extract the first word of "Rez", so it can be a program name with args.
14658set dummy Rez; ac_word=$2
14659echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14660echo "configure:14661: checking for $ac_word" >&5
14661if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
14662 echo $ac_n "(cached) $ac_c" 1>&6
14663else
14664 if test -n "$REZ"; then
14665 ac_cv_prog_REZ="$REZ" # Let the user override the test.
14666else
14667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14668 ac_dummy="$PATH"
14669 for ac_dir in $ac_dummy; do
14670 test -z "$ac_dir" && ac_dir=.
14671 if test -f $ac_dir/$ac_word; then
14672 ac_cv_prog_REZ="Rez"
14673 break
14674 fi
14675 done
14676 IFS="$ac_save_ifs"
14677 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
14678fi
14679fi
14680REZ="$ac_cv_prog_REZ"
14681if test -n "$REZ"; then
14682 echo "$ac_t""$REZ" 1>&6
14683else
14684 echo "$ac_t""no" 1>&6
14685fi
14686
14687 # Extract the first word of "Derez", so it can be a program name with args.
14688set dummy Derez; ac_word=$2
14689echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14690echo "configure:14691: checking for $ac_word" >&5
14691if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
14692 echo $ac_n "(cached) $ac_c" 1>&6
14693else
14694 if test -n "$DEREZ"; then
14695 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
14696else
14697 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14698 ac_dummy="$PATH"
14699 for ac_dir in $ac_dummy; do
14700 test -z "$ac_dir" && ac_dir=.
14701 if test -f $ac_dir/$ac_word; then
14702 ac_cv_prog_DEREZ="Derez"
14703 break
14704 fi
14705 done
14706 IFS="$ac_save_ifs"
14707 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
14708fi
14709fi
14710DEREZ="$ac_cv_prog_DEREZ"
14711if test -n "$DEREZ"; then
14712 echo "$ac_t""$DEREZ" 1>&6
14713else
14714 echo "$ac_t""no" 1>&6
14715fi
14716
14717 RESCOMP=${REZ}
14718 REZFLAGS="-d __UNIX__ -useDF"
14719 DEREZFLAGS="Carbon.r -useDF"
14720 RESFLAGS="Carbon.r -t APPL"
14721 LIBWXMACRES="\$(LIBWX_MACRES)"
14722 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
14723fi
14724
14725if test "$wxUSE_CYGWIN" = 1 ; then
14726 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
14727fi
14728
14729WXDEBUG=
14730
14731if test "$wxUSE_DEBUG_INFO" = "yes" ; then
14732 WXDEBUG="-g"
14733 wxUSE_OPTIMISE=no
14734fi
14735
14736if test "$wxUSE_DEBUG_GDB" = "yes" ; then
14737 wxUSE_DEBUG_INFO=yes
14738 WXDEBUG="-ggdb"
14739fi
14740
14741if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
14742 cat >> confdefs.h <<\EOF
14743#define WXDEBUG 1
14744EOF
14745
14746 WXDEBUG_DEFINE="-D__WXDEBUG__"
14747else
14748 if test "$wxUSE_GTK" = 1 ; then
14749 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
14750 fi
14751fi
14752
14753if test "$wxUSE_MEM_TRACING" = "yes" ; then
14754 cat >> confdefs.h <<\EOF
14755#define wxUSE_MEMORY_TRACING 1
14756EOF
14757
14758 cat >> confdefs.h <<\EOF
14759#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
14760EOF
14761
14762 cat >> confdefs.h <<\EOF
14763#define wxUSE_DEBUG_NEW_ALWAYS 1
14764EOF
14765
14766 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
14767fi
14768
14769if test "$wxUSE_DMALLOC" = "yes" ; then
14770 DMALLOC_LINK="-ldmalloc"
14771fi
14772
14773PROFILE=
14774if test "$wxUSE_PROFILE" = "yes" ; then
14775 PROFILE="-pg"
14776fi
14777
14778DEP_INFO_FLAGS=
14779CODE_GEN_FLAGS=
14780CODE_GEN_FLAGS_CXX=
14781if test "$GCC" = yes ; then
14782 if test "$wxUSE_NO_RTTI" = "yes" ; then
14783 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
14784 fi
14785 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
14786 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
14787 fi
14788 if test "$wxUSE_PERMISSIVE" = "yes" ; then
14789 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
14790 fi
14791 if test "$wxUSE_NO_DEPS" = "no" ; then
14792 DEP_INFO_FLAGS="-MMD"
14793 fi
14794fi
14795
14796
14797CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
14798CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
14799if test "$wxUSE_OPTIMISE" = "no" ; then
14800 OPTIMISE=
14801else
14802 if test "$GCC" = yes ; then
14803 OPTIMISE="-O2"
14804 case "${host}" in
14805 i586-*-*|i686-*-* )
14806 OPTIMISE="${OPTIMISE} "
14807 ;;
14808 esac
14809 else
14810 OPTIMISE="-O"
14811 fi
14812fi
14813
14814if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
14815 cat >> confdefs.h <<\EOF
14816#define WXWIN_COMPATIBILITY_2 1
14817EOF
14818
14819
14820 WXWIN_COMPATIBILITY_2_2="yes"
14821fi
14822
14823if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
14824 cat >> confdefs.h <<\EOF
14825#define WXWIN_COMPATIBILITY_2_2 1
14826EOF
14827
14828fi
14829
14830
14831REGEX_INCLUDE=
14832if test "$wxUSE_REGEX" != "no"; then
14833 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
14834echo $ac_n "checking for regex.h""... $ac_c" 1>&6
14835echo "configure:14836: checking for regex.h" >&5
14836if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14837 echo $ac_n "(cached) $ac_c" 1>&6
14838else
14839 cat > conftest.$ac_ext <<EOF
14840#line 14841 "configure"
14841#include "confdefs.h"
14842#include <regex.h>
14843EOF
14844ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14845{ (eval echo configure:14846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14846ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14847if test -z "$ac_err"; then
14848 rm -rf conftest*
14849 eval "ac_cv_header_$ac_safe=yes"
14850else
14851 echo "$ac_err" >&5
14852 echo "configure: failed program was:" >&5
14853 cat conftest.$ac_ext >&5
14854 rm -rf conftest*
14855 eval "ac_cv_header_$ac_safe=no"
14856fi
14857rm -f conftest*
14858fi
14859if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14860 echo "$ac_t""yes" 1>&6
14861 for ac_func in regcomp
14862do
14863echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14864echo "configure:14865: checking for $ac_func" >&5
14865if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14866 echo $ac_n "(cached) $ac_c" 1>&6
14867else
14868 cat > conftest.$ac_ext <<EOF
14869#line 14870 "configure"
14870#include "confdefs.h"
14871/* System header to define __stub macros and hopefully few prototypes,
14872 which can conflict with char $ac_func(); below. */
14873#include <assert.h>
14874/* Override any gcc2 internal prototype to avoid an error. */
14875/* We use char because int might match the return type of a gcc2
14876 builtin and then its argument prototype would still apply. */
14877char $ac_func();
14878
14879int main() {
14880
14881/* The GNU C library defines this for functions which it implements
14882 to always fail with ENOSYS. Some functions are actually named
14883 something starting with __ and the normal name is an alias. */
14884#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14885choke me
14886#else
14887$ac_func();
14888#endif
14889
14890; return 0; }
14891EOF
14892if { (eval echo configure:14893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14893 rm -rf conftest*
14894 eval "ac_cv_func_$ac_func=yes"
14895else
14896 echo "configure: failed program was:" >&5
14897 cat conftest.$ac_ext >&5
14898 rm -rf conftest*
14899 eval "ac_cv_func_$ac_func=no"
14900fi
14901rm -f conftest*
14902fi
14903
14904if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14905 echo "$ac_t""yes" 1>&6
14906 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14907 cat >> confdefs.h <<EOF
14908#define $ac_tr_func 1
14909EOF
14910
14911else
14912 echo "$ac_t""no" 1>&6
14913fi
14914done
14915
14916else
14917 echo "$ac_t""no" 1>&6
14918fi
14919
14920
14921 if test "x$ac_cv_func_regcomp" != "xyes"; then
14922 if test "$wxUSE_REGEX" = "sys"; then
14923 { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; }
14924 fi
14925
14926 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
14927 fi
14928
14929 cat >> confdefs.h <<\EOF
14930#define wxUSE_REGEX 1
14931EOF
14932
14933fi
14934
14935ZLIB_INCLUDE=
14936if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
14937 cat >> confdefs.h <<\EOF
14938#define wxUSE_ZLIB 1
14939EOF
14940
14941 if test "$wxUSE_ZLIB" = "yes" ; then
14942 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
14943 else
14944 ZLIB_LINK=
14945 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
14946echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
14947echo "configure:14948: checking for zlib.h" >&5
14948if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14949 echo $ac_n "(cached) $ac_c" 1>&6
14950else
14951 cat > conftest.$ac_ext <<EOF
14952#line 14953 "configure"
14953#include "confdefs.h"
14954#include <zlib.h>
14955EOF
14956ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14957{ (eval echo configure:14958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14958ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14959if test -z "$ac_err"; then
14960 rm -rf conftest*
14961 eval "ac_cv_header_$ac_safe=yes"
14962else
14963 echo "$ac_err" >&5
14964 echo "configure: failed program was:" >&5
14965 cat conftest.$ac_ext >&5
14966 rm -rf conftest*
14967 eval "ac_cv_header_$ac_safe=no"
14968fi
14969rm -f conftest*
14970fi
14971if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14972 echo "$ac_t""yes" 1>&6
14973 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
14974echo "configure:14975: checking for deflate in -lz" >&5
14975ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
14976if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14977 echo $ac_n "(cached) $ac_c" 1>&6
14978else
14979 ac_save_LIBS="$LIBS"
14980LIBS="-lz $LIBS"
14981cat > conftest.$ac_ext <<EOF
14982#line 14983 "configure"
14983#include "confdefs.h"
14984/* Override any gcc2 internal prototype to avoid an error. */
14985/* We use char because int might match the return type of a gcc2
14986 builtin and then its argument prototype would still apply. */
14987char deflate();
14988
14989int main() {
14990deflate()
14991; return 0; }
14992EOF
14993if { (eval echo configure:14994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14994 rm -rf conftest*
14995 eval "ac_cv_lib_$ac_lib_var=yes"
14996else
14997 echo "configure: failed program was:" >&5
14998 cat conftest.$ac_ext >&5
14999 rm -rf conftest*
15000 eval "ac_cv_lib_$ac_lib_var=no"
15001fi
15002rm -f conftest*
15003LIBS="$ac_save_LIBS"
15004
15005fi
15006if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15007 echo "$ac_t""yes" 1>&6
15008 ZLIB_LINK="-lz"
15009else
15010 echo "$ac_t""no" 1>&6
15011fi
15012
15013else
15014 echo "$ac_t""no" 1>&6
15015fi
15016
15017 if test "x$ZLIB_LINK" = "x" ; then
15018 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
15019 fi
15020 fi
15021fi
15022
15023PNG_INCLUDE=
15024if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
15025 cat >> confdefs.h <<\EOF
15026#define wxUSE_LIBPNG 1
15027EOF
15028
15029 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
15030 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
15031 wxUSE_LIBPNG=yes
15032 fi
15033
15034 if test "$wxUSE_LIBPNG" = "yes" ; then
15035 PNG_INCLUDE="-I\${top_srcdir}/src/png"
15036 else
15037 PNG_LINK=
15038 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
15039echo $ac_n "checking for png.h""... $ac_c" 1>&6
15040echo "configure:15041: checking for png.h" >&5
15041if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15042 echo $ac_n "(cached) $ac_c" 1>&6
15043else
15044 cat > conftest.$ac_ext <<EOF
15045#line 15046 "configure"
15046#include "confdefs.h"
15047#include <png.h>
15048EOF
15049ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15050{ (eval echo configure:15051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15051ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15052if test -z "$ac_err"; then
15053 rm -rf conftest*
15054 eval "ac_cv_header_$ac_safe=yes"
15055else
15056 echo "$ac_err" >&5
15057 echo "configure: failed program was:" >&5
15058 cat conftest.$ac_ext >&5
15059 rm -rf conftest*
15060 eval "ac_cv_header_$ac_safe=no"
15061fi
15062rm -f conftest*
15063fi
15064if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15065 echo "$ac_t""yes" 1>&6
15066 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
15067echo "configure:15068: checking for png_check_sig in -lpng" >&5
15068ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
15069if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15070 echo $ac_n "(cached) $ac_c" 1>&6
15071else
15072 ac_save_LIBS="$LIBS"
15073LIBS="-lpng -lz -lm $LIBS"
15074cat > conftest.$ac_ext <<EOF
15075#line 15076 "configure"
15076#include "confdefs.h"
15077/* Override any gcc2 internal prototype to avoid an error. */
15078/* We use char because int might match the return type of a gcc2
15079 builtin and then its argument prototype would still apply. */
15080char png_check_sig();
15081
15082int main() {
15083png_check_sig()
15084; return 0; }
15085EOF
15086if { (eval echo configure:15087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15087 rm -rf conftest*
15088 eval "ac_cv_lib_$ac_lib_var=yes"
15089else
15090 echo "configure: failed program was:" >&5
15091 cat conftest.$ac_ext >&5
15092 rm -rf conftest*
15093 eval "ac_cv_lib_$ac_lib_var=no"
15094fi
15095rm -f conftest*
15096LIBS="$ac_save_LIBS"
15097
15098fi
15099if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15100 echo "$ac_t""yes" 1>&6
15101 PNG_LINK="-lpng"
15102else
15103 echo "$ac_t""no" 1>&6
15104fi
15105
15106
15107else
15108 echo "$ac_t""no" 1>&6
15109fi
15110
15111 if test "x$PNG_LINK" = "x" ; then
15112 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
15113 fi
15114 fi
15115
15116 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
15117fi
15118
15119JPEG_INCLUDE=
15120if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
15121 cat >> confdefs.h <<\EOF
15122#define wxUSE_LIBJPEG 1
15123EOF
15124
15125 if test "$wxUSE_LIBJPEG" = "yes" ; then
15126 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
15127 else
15128 JPEG_LINK=
15129 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
15130echo "configure:15131: checking for jpeglib.h" >&5
15131 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
15132 echo $ac_n "(cached) $ac_c" 1>&6
15133else
15134 cat > conftest.$ac_ext <<EOF
15135#line 15136 "configure"
15136#include "confdefs.h"
15137
15138 #undef HAVE_STDLIB_H
15139 #include <stdio.h>
15140 #include <jpeglib.h>
15141
15142int main() {
15143
15144
15145; return 0; }
15146EOF
15147if { (eval echo configure:15148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15148 rm -rf conftest*
15149 ac_cv_header_jpeglib_h=yes
15150else
15151 echo "configure: failed program was:" >&5
15152 cat conftest.$ac_ext >&5
15153 rm -rf conftest*
15154 ac_cv_header_jpeglib_h=no
15155
15156fi
15157rm -f conftest*
15158
15159fi
15160
15161 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
15162
15163 if test "$ac_cv_header_jpeglib_h" = "yes"; then
15164 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
15165echo "configure:15166: checking for jpeg_read_header in -ljpeg" >&5
15166ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
15167if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15168 echo $ac_n "(cached) $ac_c" 1>&6
15169else
15170 ac_save_LIBS="$LIBS"
15171LIBS="-ljpeg $LIBS"
15172cat > conftest.$ac_ext <<EOF
15173#line 15174 "configure"
15174#include "confdefs.h"
15175/* Override any gcc2 internal prototype to avoid an error. */
15176/* We use char because int might match the return type of a gcc2
15177 builtin and then its argument prototype would still apply. */
15178char jpeg_read_header();
15179
15180int main() {
15181jpeg_read_header()
15182; return 0; }
15183EOF
15184if { (eval echo configure:15185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15185 rm -rf conftest*
15186 eval "ac_cv_lib_$ac_lib_var=yes"
15187else
15188 echo "configure: failed program was:" >&5
15189 cat conftest.$ac_ext >&5
15190 rm -rf conftest*
15191 eval "ac_cv_lib_$ac_lib_var=no"
15192fi
15193rm -f conftest*
15194LIBS="$ac_save_LIBS"
15195
15196fi
15197if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15198 echo "$ac_t""yes" 1>&6
15199 JPEG_LINK="-ljpeg"
15200else
15201 echo "$ac_t""no" 1>&6
15202fi
15203
15204 fi
15205
15206 if test "x$JPEG_LINK" = "x" ; then
15207 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
15208 fi
15209 fi
15210fi
15211
15212TIFF_INCLUDE=
15213if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
15214 cat >> confdefs.h <<\EOF
15215#define wxUSE_LIBTIFF 1
15216EOF
15217
15218 if test "$wxUSE_LIBTIFF" = "yes" ; then
15219 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
15220 else
15221 TIFF_LINK=
15222 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
15223echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
15224echo "configure:15225: checking for tiffio.h" >&5
15225if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15226 echo $ac_n "(cached) $ac_c" 1>&6
15227else
15228 cat > conftest.$ac_ext <<EOF
15229#line 15230 "configure"
15230#include "confdefs.h"
15231#include <tiffio.h>
15232EOF
15233ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15234{ (eval echo configure:15235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15235ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15236if test -z "$ac_err"; then
15237 rm -rf conftest*
15238 eval "ac_cv_header_$ac_safe=yes"
15239else
15240 echo "$ac_err" >&5
15241 echo "configure: failed program was:" >&5
15242 cat conftest.$ac_ext >&5
15243 rm -rf conftest*
15244 eval "ac_cv_header_$ac_safe=no"
15245fi
15246rm -f conftest*
15247fi
15248if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15249 echo "$ac_t""yes" 1>&6
15250 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
15251echo "configure:15252: checking for TIFFError in -ltiff" >&5
15252ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
15253if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15254 echo $ac_n "(cached) $ac_c" 1>&6
15255else
15256 ac_save_LIBS="$LIBS"
15257LIBS="-ltiff -lm $LIBS"
15258cat > conftest.$ac_ext <<EOF
15259#line 15260 "configure"
15260#include "confdefs.h"
15261/* Override any gcc2 internal prototype to avoid an error. */
15262/* We use char because int might match the return type of a gcc2
15263 builtin and then its argument prototype would still apply. */
15264char TIFFError();
15265
15266int main() {
15267TIFFError()
15268; return 0; }
15269EOF
15270if { (eval echo configure:15271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15271 rm -rf conftest*
15272 eval "ac_cv_lib_$ac_lib_var=yes"
15273else
15274 echo "configure: failed program was:" >&5
15275 cat conftest.$ac_ext >&5
15276 rm -rf conftest*
15277 eval "ac_cv_lib_$ac_lib_var=no"
15278fi
15279rm -f conftest*
15280LIBS="$ac_save_LIBS"
15281
15282fi
15283if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15284 echo "$ac_t""yes" 1>&6
15285 TIFF_LINK="-ltiff"
15286else
15287 echo "$ac_t""no" 1>&6
15288fi
15289
15290else
15291 echo "$ac_t""no" 1>&6
15292fi
15293
15294 if test "x$TIFF_LINK" = "x" ; then
15295 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
15296 fi
15297 fi
15298fi
15299
15300FREETYPE_INCLUDE=
15301if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
15302 cat >> confdefs.h <<\EOF
15303#define wxUSE_FREETYPE 1
15304EOF
15305
15306 if test "$wxUSE_FREETYPE" = "yes" ; then
15307 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
15308 else
15309 FREETYPE_LINK=
15310 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
15311echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
15312echo "configure:15313: checking for freetype.h" >&5
15313if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15314 echo $ac_n "(cached) $ac_c" 1>&6
15315else
15316 cat > conftest.$ac_ext <<EOF
15317#line 15318 "configure"
15318#include "confdefs.h"
15319#include <freetype.h>
15320EOF
15321ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15322{ (eval echo configure:15323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15323ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15324if test -z "$ac_err"; then
15325 rm -rf conftest*
15326 eval "ac_cv_header_$ac_safe=yes"
15327else
15328 echo "$ac_err" >&5
15329 echo "configure: failed program was:" >&5
15330 cat conftest.$ac_ext >&5
15331 rm -rf conftest*
15332 eval "ac_cv_header_$ac_safe=no"
15333fi
15334rm -f conftest*
15335fi
15336if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15337 echo "$ac_t""yes" 1>&6
15338 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
15339echo "configure:15340: checking for FT_Render_Glyph in -lfreetype" >&5
15340ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
15341if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15342 echo $ac_n "(cached) $ac_c" 1>&6
15343else
15344 ac_save_LIBS="$LIBS"
15345LIBS="-lfreetype -lm $LIBS"
15346cat > conftest.$ac_ext <<EOF
15347#line 15348 "configure"
15348#include "confdefs.h"
15349/* Override any gcc2 internal prototype to avoid an error. */
15350/* We use char because int might match the return type of a gcc2
15351 builtin and then its argument prototype would still apply. */
15352char FT_Render_Glyph();
15353
15354int main() {
15355FT_Render_Glyph()
15356; return 0; }
15357EOF
15358if { (eval echo configure:15359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15359 rm -rf conftest*
15360 eval "ac_cv_lib_$ac_lib_var=yes"
15361else
15362 echo "configure: failed program was:" >&5
15363 cat conftest.$ac_ext >&5
15364 rm -rf conftest*
15365 eval "ac_cv_lib_$ac_lib_var=no"
15366fi
15367rm -f conftest*
15368LIBS="$ac_save_LIBS"
15369
15370fi
15371if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15372 echo "$ac_t""yes" 1>&6
15373 FREETYPE_LINK="-lfreetype"
15374else
15375 echo "$ac_t""no" 1>&6
15376fi
15377
15378
15379else
15380 echo "$ac_t""no" 1>&6
15381fi
15382
15383 if test "x$FREETYPE_LINK" = "x" ; then
15384 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
15385 fi
15386 fi
15387fi
15388
15389if test "$wxUSE_OPENGL" = "yes"; then
15390 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15391echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15392echo "configure:15393: checking for GL/gl.h" >&5
15393if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15394 echo $ac_n "(cached) $ac_c" 1>&6
15395else
15396 cat > conftest.$ac_ext <<EOF
15397#line 15398 "configure"
15398#include "confdefs.h"
15399#include <GL/gl.h>
15400EOF
15401ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15402{ (eval echo configure:15403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15403ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15404if test -z "$ac_err"; then
15405 rm -rf conftest*
15406 eval "ac_cv_header_$ac_safe=yes"
15407else
15408 echo "$ac_err" >&5
15409 echo "configure: failed program was:" >&5
15410 cat conftest.$ac_ext >&5
15411 rm -rf conftest*
15412 eval "ac_cv_header_$ac_safe=no"
15413fi
15414rm -f conftest*
15415fi
15416if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15417 echo "$ac_t""yes" 1>&6
15418
15419 cat >> confdefs.h <<\EOF
15420#define wxUSE_OPENGL 1
15421EOF
15422
15423 cat >> confdefs.h <<\EOF
15424#define wxUSE_GLCANVAS 1
15425EOF
15426
15427 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
15428echo "configure:15429: checking for glFlush in -lGL" >&5
15429ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
15430if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15431 echo $ac_n "(cached) $ac_c" 1>&6
15432else
15433 ac_save_LIBS="$LIBS"
15434LIBS="-lGL $LIBS"
15435cat > conftest.$ac_ext <<EOF
15436#line 15437 "configure"
15437#include "confdefs.h"
15438/* Override any gcc2 internal prototype to avoid an error. */
15439/* We use char because int might match the return type of a gcc2
15440 builtin and then its argument prototype would still apply. */
15441char glFlush();
15442
15443int main() {
15444glFlush()
15445; return 0; }
15446EOF
15447if { (eval echo configure:15448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15448 rm -rf conftest*
15449 eval "ac_cv_lib_$ac_lib_var=yes"
15450else
15451 echo "configure: failed program was:" >&5
15452 cat conftest.$ac_ext >&5
15453 rm -rf conftest*
15454 eval "ac_cv_lib_$ac_lib_var=no"
15455fi
15456rm -f conftest*
15457LIBS="$ac_save_LIBS"
15458
15459fi
15460if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15461 echo "$ac_t""yes" 1>&6
15462
15463 OPENGL_LINK="-lGL -lGLU"
15464
15465else
15466 echo "$ac_t""no" 1>&6
15467
15468 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
15469echo "configure:15470: checking for glFlush in -lMesaGL" >&5
15470ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
15471if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15472 echo $ac_n "(cached) $ac_c" 1>&6
15473else
15474 ac_save_LIBS="$LIBS"
15475LIBS="-lMesaGL $LIBS"
15476cat > conftest.$ac_ext <<EOF
15477#line 15478 "configure"
15478#include "confdefs.h"
15479/* Override any gcc2 internal prototype to avoid an error. */
15480/* We use char because int might match the return type of a gcc2
15481 builtin and then its argument prototype would still apply. */
15482char glFlush();
15483
15484int main() {
15485glFlush()
15486; return 0; }
15487EOF
15488if { (eval echo configure:15489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15489 rm -rf conftest*
15490 eval "ac_cv_lib_$ac_lib_var=yes"
15491else
15492 echo "configure: failed program was:" >&5
15493 cat conftest.$ac_ext >&5
15494 rm -rf conftest*
15495 eval "ac_cv_lib_$ac_lib_var=no"
15496fi
15497rm -f conftest*
15498LIBS="$ac_save_LIBS"
15499
15500fi
15501if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15502 echo "$ac_t""yes" 1>&6
15503
15504 OPENGL_LINK="-lMesaGL -lMesaGLU"
15505
15506else
15507 echo "$ac_t""no" 1>&6
15508fi
15509
15510
15511fi
15512
15513
15514else
15515 echo "$ac_t""no" 1>&6
15516wxUSE_OPENGL=0
15517fi
15518
15519fi
15520
15521
15522if test "$wxUSE_GUI" = "yes"; then
15523 cat >> confdefs.h <<\EOF
15524#define wxUSE_GUI 1
15525EOF
15526
15527
15528 else
15529 cat >> confdefs.h <<\EOF
15530#define wxUSE_NOGUI 1
15531EOF
15532
15533fi
15534
15535
15536if test "$wxUSE_UNIX" = "yes"; then
15537 cat >> confdefs.h <<\EOF
15538#define wxUSE_UNIX 1
15539EOF
15540
15541fi
15542
15543
15544if test "$wxUSE_APPLE_IEEE" = "yes"; then
15545 cat >> confdefs.h <<\EOF
15546#define wxUSE_APPLE_IEEE 1
15547EOF
15548
15549fi
15550
15551if test "$wxUSE_TIMER" = "yes"; then
15552 cat >> confdefs.h <<\EOF
15553#define wxUSE_TIMER 1
15554EOF
15555
15556fi
15557
15558if test "$wxUSE_WAVE" = "yes"; then
15559 cat >> confdefs.h <<\EOF
15560#define wxUSE_WAVE 1
15561EOF
15562
15563fi
15564
15565if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15566 cat >> confdefs.h <<\EOF
15567#define wxUSE_CMDLINE_PARSER 1
15568EOF
15569
15570fi
15571
15572if test "$wxUSE_STOPWATCH" = "yes"; then
15573 cat >> confdefs.h <<\EOF
15574#define wxUSE_STOPWATCH 1
15575EOF
15576
15577fi
15578
15579if test "$wxUSE_DATETIME" = "yes"; then
15580 cat >> confdefs.h <<\EOF
15581#define wxUSE_DATETIME 1
15582EOF
15583
15584fi
15585
15586if test "$wxUSE_TIMEDATE" = "yes"; then
15587 cat >> confdefs.h <<\EOF
15588#define wxUSE_TIMEDATE 1
15589EOF
15590
15591fi
15592
15593if test "$wxUSE_FILE" = "yes"; then
15594 cat >> confdefs.h <<\EOF
15595#define wxUSE_FILE 1
15596EOF
15597
15598fi
15599
15600if test "$wxUSE_FFILE" = "yes"; then
15601 cat >> confdefs.h <<\EOF
15602#define wxUSE_FFILE 1
15603EOF
15604
15605fi
15606
15607if test "$wxUSE_FILESYSTEM" = "yes"; then
15608 cat >> confdefs.h <<\EOF
15609#define wxUSE_FILESYSTEM 1
15610EOF
15611
15612fi
15613
15614if test "$wxUSE_FS_INET" = "yes"; then
15615 cat >> confdefs.h <<\EOF
15616#define wxUSE_FS_INET 1
15617EOF
15618
15619fi
15620
15621if test "$wxUSE_FS_ZIP" = "yes"; then
15622 cat >> confdefs.h <<\EOF
15623#define wxUSE_FS_ZIP 1
15624EOF
15625
15626fi
15627
15628if test "$wxUSE_ZIPSTREAM" = "yes"; then
15629 cat >> confdefs.h <<\EOF
15630#define wxUSE_ZIPSTREAM 1
15631EOF
15632
15633fi
15634
15635if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15636 cat >> confdefs.h <<\EOF
15637#define wxUSE_ON_FATAL_EXCEPTION 1
15638EOF
15639
15640fi
15641
15642if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15643 cat >> confdefs.h <<\EOF
15644#define wxUSE_SNGLINST_CHECKER 1
15645EOF
15646
15647fi
15648
15649if test "$wxUSE_BUSYINFO" = "yes"; then
15650 cat >> confdefs.h <<\EOF
15651#define wxUSE_BUSYINFO 1
15652EOF
15653
15654fi
15655
15656if test "$wxUSE_STD_IOSTREAM" = "yes"; then
15657 cat >> confdefs.h <<\EOF
15658#define wxUSE_STD_IOSTREAM 1
15659EOF
15660
15661fi
15662
15663if test "$wxUSE_TEXTFILE" = "yes"; then
15664 if test "$wxUSE_FILE" != "yes"; then
15665 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
15666 else
15667 cat >> confdefs.h <<\EOF
15668#define wxUSE_TEXTFILE 1
15669EOF
15670
15671 fi
15672fi
15673
15674if test "$wxUSE_CONFIG" = "yes" ; then
15675 if test "$wxUSE_TEXTFILE" != "yes"; then
15676 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
15677 else
15678 cat >> confdefs.h <<\EOF
15679#define wxUSE_CONFIG 1
15680EOF
15681
15682 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15683 fi
15684fi
15685
15686if test "$wxUSE_INTL" = "yes" ; then
15687 if test "$wxUSE_FILE" != "yes"; then
15688 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
15689 else
15690 cat >> confdefs.h <<\EOF
15691#define wxUSE_INTL 1
15692EOF
15693
15694 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
15695 GUIDIST="$GUIDIST INTL_DIST"
15696 fi
15697fi
15698
15699if test "$wxUSE_LOG" = "yes"; then
15700 cat >> confdefs.h <<\EOF
15701#define wxUSE_LOG 1
15702EOF
15703
15704
15705 if test "$wxUSE_LOGGUI" = "yes"; then
15706 cat >> confdefs.h <<\EOF
15707#define wxUSE_LOGGUI 1
15708EOF
15709
15710 fi
15711
15712 if test "$wxUSE_LOGWINDOW" = "yes"; then
15713 cat >> confdefs.h <<\EOF
15714#define wxUSE_LOGWINDOW 1
15715EOF
15716
15717 fi
15718fi
15719
15720if test "$wxUSE_LONGLONG" = "yes"; then
15721 cat >> confdefs.h <<\EOF
15722#define wxUSE_LONGLONG 1
15723EOF
15724
15725fi
15726
15727if test "$wxUSE_GEOMETRY" = "yes"; then
15728 cat >> confdefs.h <<\EOF
15729#define wxUSE_GEOMETRY 1
15730EOF
15731
15732fi
15733
15734if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
15735 cat >> confdefs.h <<\EOF
15736#define wxUSE_DIALUP_MANAGER 1
15737EOF
15738
15739 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
15740fi
15741
15742if test "$wxUSE_STREAMS" = "yes" ; then
15743 cat >> confdefs.h <<\EOF
15744#define wxUSE_STREAMS 1
15745EOF
15746
15747fi
15748
15749
15750if test "$wxUSE_DATETIME" = "yes"; then
15751 for ac_func in strptime
15752do
15753echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15754echo "configure:15755: checking for $ac_func" >&5
15755if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15756 echo $ac_n "(cached) $ac_c" 1>&6
15757else
15758 cat > conftest.$ac_ext <<EOF
15759#line 15760 "configure"
15760#include "confdefs.h"
15761/* System header to define __stub macros and hopefully few prototypes,
15762 which can conflict with char $ac_func(); below. */
15763#include <assert.h>
15764/* Override any gcc2 internal prototype to avoid an error. */
15765/* We use char because int might match the return type of a gcc2
15766 builtin and then its argument prototype would still apply. */
15767char $ac_func();
15768
15769int main() {
15770
15771/* The GNU C library defines this for functions which it implements
15772 to always fail with ENOSYS. Some functions are actually named
15773 something starting with __ and the normal name is an alias. */
15774#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15775choke me
15776#else
15777$ac_func();
15778#endif
15779
15780; return 0; }
15781EOF
15782if { (eval echo configure:15783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15783 rm -rf conftest*
15784 eval "ac_cv_func_$ac_func=yes"
15785else
15786 echo "configure: failed program was:" >&5
15787 cat conftest.$ac_ext >&5
15788 rm -rf conftest*
15789 eval "ac_cv_func_$ac_func=no"
15790fi
15791rm -f conftest*
15792fi
15793
15794if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15795 echo "$ac_t""yes" 1>&6
15796 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15797 cat >> confdefs.h <<EOF
15798#define $ac_tr_func 1
15799EOF
15800
15801else
15802 echo "$ac_t""no" 1>&6
15803fi
15804done
15805
15806
15807 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
15808echo "configure:15809: checking for timezone variable in <time.h>" >&5
15809if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
15810 echo $ac_n "(cached) $ac_c" 1>&6
15811else
15812
15813 cat > conftest.$ac_ext <<EOF
15814#line 15815 "configure"
15815#include "confdefs.h"
15816
15817 #include <time.h>
15818
15819int main() {
15820
15821 int tz;
15822 tz = timezone;
15823
15824; return 0; }
15825EOF
15826if { (eval echo configure:15827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15827 rm -rf conftest*
15828
15829 wx_cv_var_timezone=timezone
15830
15831else
15832 echo "configure: failed program was:" >&5
15833 cat conftest.$ac_ext >&5
15834 rm -rf conftest*
15835
15836 cat > conftest.$ac_ext <<EOF
15837#line 15838 "configure"
15838#include "confdefs.h"
15839
15840 #include <time.h>
15841
15842int main() {
15843
15844 int tz;
15845 tz = _timezone;
15846
15847; return 0; }
15848EOF
15849if { (eval echo configure:15850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15850 rm -rf conftest*
15851
15852 wx_cv_var_timezone=_timezone
15853
15854else
15855 echo "configure: failed program was:" >&5
15856 cat conftest.$ac_ext >&5
15857 rm -rf conftest*
15858
15859 cat > conftest.$ac_ext <<EOF
15860#line 15861 "configure"
15861#include "confdefs.h"
15862
15863 #include <time.h>
15864
15865int main() {
15866
15867 int tz;
15868 tz = __timezone;
15869
15870; return 0; }
15871EOF
15872if { (eval echo configure:15873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15873 rm -rf conftest*
15874
15875 wx_cv_var_timezone=__timezone
15876
15877else
15878 echo "configure: failed program was:" >&5
15879 cat conftest.$ac_ext >&5
15880 rm -rf conftest*
15881 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
15882
15883fi
15884rm -f conftest*
15885
15886
15887fi
15888rm -f conftest*
15889
15890
15891fi
15892rm -f conftest*
15893
15894
15895fi
15896
15897echo "$ac_t""$wx_cv_var_timezone" 1>&6
15898
15899 cat >> confdefs.h <<EOF
15900#define WX_TIMEZONE $wx_cv_var_timezone
15901EOF
15902
15903
15904 for ac_func in localtime
15905do
15906echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15907echo "configure:15908: checking for $ac_func" >&5
15908if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15909 echo $ac_n "(cached) $ac_c" 1>&6
15910else
15911 cat > conftest.$ac_ext <<EOF
15912#line 15913 "configure"
15913#include "confdefs.h"
15914/* System header to define __stub macros and hopefully few prototypes,
15915 which can conflict with char $ac_func(); below. */
15916#include <assert.h>
15917/* Override any gcc2 internal prototype to avoid an error. */
15918/* We use char because int might match the return type of a gcc2
15919 builtin and then its argument prototype would still apply. */
15920char $ac_func();
15921
15922int main() {
15923
15924/* The GNU C library defines this for functions which it implements
15925 to always fail with ENOSYS. Some functions are actually named
15926 something starting with __ and the normal name is an alias. */
15927#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15928choke me
15929#else
15930$ac_func();
15931#endif
15932
15933; return 0; }
15934EOF
15935if { (eval echo configure:15936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15936 rm -rf conftest*
15937 eval "ac_cv_func_$ac_func=yes"
15938else
15939 echo "configure: failed program was:" >&5
15940 cat conftest.$ac_ext >&5
15941 rm -rf conftest*
15942 eval "ac_cv_func_$ac_func=no"
15943fi
15944rm -f conftest*
15945fi
15946
15947if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15948 echo "$ac_t""yes" 1>&6
15949 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15950 cat >> confdefs.h <<EOF
15951#define $ac_tr_func 1
15952EOF
15953
15954else
15955 echo "$ac_t""no" 1>&6
15956fi
15957done
15958
15959
15960 if test "$ac_cv_func_localtime" = "yes"; then
15961 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
15962echo "configure:15963: checking for tm_gmtoff in struct tm" >&5
15963if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
15964 echo $ac_n "(cached) $ac_c" 1>&6
15965else
15966
15967 cat > conftest.$ac_ext <<EOF
15968#line 15969 "configure"
15969#include "confdefs.h"
15970
15971 #include <time.h>
15972
15973int main() {
15974
15975 struct tm tm;
15976 tm.tm_gmtoff++;
15977
15978; return 0; }
15979EOF
15980if { (eval echo configure:15981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15981 rm -rf conftest*
15982
15983 wx_cv_struct_tm_has_gmtoff=yes
15984
15985else
15986 echo "configure: failed program was:" >&5
15987 cat conftest.$ac_ext >&5
15988 rm -rf conftest*
15989 wx_cv_struct_tm_has_gmtoff=no
15990
15991fi
15992rm -f conftest*
15993
15994fi
15995
15996echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
15997 fi
15998
15999 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
16000 cat >> confdefs.h <<\EOF
16001#define WX_GMTOFF_IN_TM 1
16002EOF
16003
16004 fi
16005
16006 for ac_func in gettimeofday ftime
16007do
16008echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16009echo "configure:16010: checking for $ac_func" >&5
16010if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16011 echo $ac_n "(cached) $ac_c" 1>&6
16012else
16013 cat > conftest.$ac_ext <<EOF
16014#line 16015 "configure"
16015#include "confdefs.h"
16016/* System header to define __stub macros and hopefully few prototypes,
16017 which can conflict with char $ac_func(); below. */
16018#include <assert.h>
16019/* Override any gcc2 internal prototype to avoid an error. */
16020/* We use char because int might match the return type of a gcc2
16021 builtin and then its argument prototype would still apply. */
16022char $ac_func();
16023
16024int main() {
16025
16026/* The GNU C library defines this for functions which it implements
16027 to always fail with ENOSYS. Some functions are actually named
16028 something starting with __ and the normal name is an alias. */
16029#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16030choke me
16031#else
16032$ac_func();
16033#endif
16034
16035; return 0; }
16036EOF
16037if { (eval echo configure:16038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16038 rm -rf conftest*
16039 eval "ac_cv_func_$ac_func=yes"
16040else
16041 echo "configure: failed program was:" >&5
16042 cat conftest.$ac_ext >&5
16043 rm -rf conftest*
16044 eval "ac_cv_func_$ac_func=no"
16045fi
16046rm -f conftest*
16047fi
16048
16049if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16050 echo "$ac_t""yes" 1>&6
16051 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16052 cat >> confdefs.h <<EOF
16053#define $ac_tr_func 1
16054EOF
16055 break
16056else
16057 echo "$ac_t""no" 1>&6
16058fi
16059done
16060
16061
16062 if test "$ac_cv_func_gettimeofday" = "yes"; then
16063 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
16064echo "configure:16065: checking whether gettimeofday takes two arguments" >&5
16065if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16066 echo $ac_n "(cached) $ac_c" 1>&6
16067else
16068
16069
16070 ac_ext=C
16071# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16072ac_cpp='$CXXCPP $CPPFLAGS'
16073ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16074ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16075cross_compiling=$ac_cv_prog_cxx_cross
16076
16077
16078 cat > conftest.$ac_ext <<EOF
16079#line 16080 "configure"
16080#include "confdefs.h"
16081
16082 #include <sys/time.h>
16083 #include <unistd.h>
16084
16085int main() {
16086
16087 struct timeval tv;
16088 struct timezone tz;
16089 gettimeofday(&tv, &tz);
16090
16091; return 0; }
16092EOF
16093if { (eval echo configure:16094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16094 rm -rf conftest*
16095 wx_cv_func_gettimeofday_has_2_args=yes
16096else
16097 echo "configure: failed program was:" >&5
16098 cat conftest.$ac_ext >&5
16099 rm -rf conftest*
16100 cat > conftest.$ac_ext <<EOF
16101#line 16102 "configure"
16102#include "confdefs.h"
16103
16104 #include <sys/time.h>
16105 #include <unistd.h>
16106
16107int main() {
16108
16109 struct timeval tv;
16110 gettimeofday(&tv);
16111
16112; return 0; }
16113EOF
16114if { (eval echo configure:16115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16115 rm -rf conftest*
16116 wx_cv_func_gettimeofday_has_2_args=no
16117else
16118 echo "configure: failed program was:" >&5
16119 cat conftest.$ac_ext >&5
16120 rm -rf conftest*
16121 wx_cv_func_gettimeofday_has_2_args=unknown
16122
16123fi
16124rm -f conftest*
16125
16126fi
16127rm -f conftest*
16128 ac_ext=c
16129# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16130ac_cpp='$CPP $CPPFLAGS'
16131ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16132ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16133cross_compiling=$ac_cv_prog_cc_cross
16134
16135
16136fi
16137
16138echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
16139
16140 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
16141 cat >> confdefs.h <<\EOF
16142#define WX_GETTIMEOFDAY_NO_TZ 1
16143EOF
16144
16145 fi
16146 fi
16147
16148 cat >> confdefs.h <<\EOF
16149#define wxUSE_TIMEDATE 1
16150EOF
16151
16152 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16153fi
16154
16155
16156if test "$TOOLKIT" != "MSW"; then
16157
16158if test "$wxUSE_SOCKETS" = "yes"; then
16159 echo $ac_n "checking for socket""... $ac_c" 1>&6
16160echo "configure:16161: checking for socket" >&5
16161if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16162 echo $ac_n "(cached) $ac_c" 1>&6
16163else
16164 cat > conftest.$ac_ext <<EOF
16165#line 16166 "configure"
16166#include "confdefs.h"
16167/* System header to define __stub macros and hopefully few prototypes,
16168 which can conflict with char socket(); below. */
16169#include <assert.h>
16170/* Override any gcc2 internal prototype to avoid an error. */
16171/* We use char because int might match the return type of a gcc2
16172 builtin and then its argument prototype would still apply. */
16173char socket();
16174
16175int main() {
16176
16177/* The GNU C library defines this for functions which it implements
16178 to always fail with ENOSYS. Some functions are actually named
16179 something starting with __ and the normal name is an alias. */
16180#if defined (__stub_socket) || defined (__stub___socket)
16181choke me
16182#else
16183socket();
16184#endif
16185
16186; return 0; }
16187EOF
16188if { (eval echo configure:16189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16189 rm -rf conftest*
16190 eval "ac_cv_func_socket=yes"
16191else
16192 echo "configure: failed program was:" >&5
16193 cat conftest.$ac_ext >&5
16194 rm -rf conftest*
16195 eval "ac_cv_func_socket=no"
16196fi
16197rm -f conftest*
16198fi
16199
16200if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16201 echo "$ac_t""yes" 1>&6
16202 :
16203else
16204 echo "$ac_t""no" 1>&6
16205echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
16206echo "configure:16207: checking for socket in -lsocket" >&5
16207ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16208if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16209 echo $ac_n "(cached) $ac_c" 1>&6
16210else
16211 ac_save_LIBS="$LIBS"
16212LIBS="-lsocket $LIBS"
16213cat > conftest.$ac_ext <<EOF
16214#line 16215 "configure"
16215#include "confdefs.h"
16216/* Override any gcc2 internal prototype to avoid an error. */
16217/* We use char because int might match the return type of a gcc2
16218 builtin and then its argument prototype would still apply. */
16219char socket();
16220
16221int main() {
16222socket()
16223; return 0; }
16224EOF
16225if { (eval echo configure:16226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16226 rm -rf conftest*
16227 eval "ac_cv_lib_$ac_lib_var=yes"
16228else
16229 echo "configure: failed program was:" >&5
16230 cat conftest.$ac_ext >&5
16231 rm -rf conftest*
16232 eval "ac_cv_lib_$ac_lib_var=no"
16233fi
16234rm -f conftest*
16235LIBS="$ac_save_LIBS"
16236
16237fi
16238if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16239 echo "$ac_t""yes" 1>&6
16240 INET_LINK="$INET_LINK -lsocket"
16241else
16242 echo "$ac_t""no" 1>&6
16243
16244 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
16245 wxUSE_SOCKETS=no
16246
16247
16248fi
16249
16250
16251fi
16252
16253fi
16254
16255
16256if test "$wxUSE_SOCKETS" = "yes" ; then
16257 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
16258echo "configure:16259: checking what is the type of the third argument of getsockname" >&5
16259if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16260 echo $ac_n "(cached) $ac_c" 1>&6
16261else
16262
16263
16264 ac_ext=C
16265# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16266ac_cpp='$CXXCPP $CPPFLAGS'
16267ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16268ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16269cross_compiling=$ac_cv_prog_cxx_cross
16270
16271
16272 cat > conftest.$ac_ext <<EOF
16273#line 16274 "configure"
16274#include "confdefs.h"
16275
16276 #include <sys/types.h>
16277 #include <sys/socket.h>
16278
16279int main() {
16280
16281 socklen_t len;
16282 getsockname(0, 0, &len);
16283
16284; return 0; }
16285EOF
16286if { (eval echo configure:16287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16287 rm -rf conftest*
16288 wx_cv_type_getsockname3=socklen_t
16289else
16290 echo "configure: failed program was:" >&5
16291 cat conftest.$ac_ext >&5
16292 rm -rf conftest*
16293 cat > conftest.$ac_ext <<EOF
16294#line 16295 "configure"
16295#include "confdefs.h"
16296
16297 #include <sys/types.h>
16298 #include <sys/socket.h>
16299
16300int main() {
16301
16302 size_t len;
16303 getsockname(0, 0, &len);
16304
16305; return 0; }
16306EOF
16307if { (eval echo configure:16308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16308 rm -rf conftest*
16309 wx_cv_type_getsockname3=size_t
16310else
16311 echo "configure: failed program was:" >&5
16312 cat conftest.$ac_ext >&5
16313 rm -rf conftest*
16314 cat > conftest.$ac_ext <<EOF
16315#line 16316 "configure"
16316#include "confdefs.h"
16317
16318 #include <sys/types.h>
16319 #include <sys/socket.h>
16320
16321int main() {
16322
16323 int len;
16324 getsockname(0, 0, &len);
16325
16326; return 0; }
16327EOF
16328if { (eval echo configure:16329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16329 rm -rf conftest*
16330 wx_cv_type_getsockname3=int
16331else
16332 echo "configure: failed program was:" >&5
16333 cat conftest.$ac_ext >&5
16334 rm -rf conftest*
16335 wx_cv_type_getsockname3=unknown
16336
16337fi
16338rm -f conftest*
16339
16340fi
16341rm -f conftest*
16342
16343fi
16344rm -f conftest*
16345
16346 ac_ext=c
16347# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16348ac_cpp='$CPP $CPPFLAGS'
16349ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16350ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16351cross_compiling=$ac_cv_prog_cc_cross
16352
16353
16354fi
16355
16356echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
16357
16358 if test "$wx_cv_type_getsockname3" = "unknown"; then
16359 wxUSE_SOCKETS=no
16360 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
16361 else
16362 cat >> confdefs.h <<EOF
16363#define SOCKLEN_T $wx_cv_type_getsockname3
16364EOF
16365
16366 fi
16367fi
16368
16369fi
16370
16371if test "$wxUSE_SOCKETS" = "yes" ; then
16372 cat >> confdefs.h <<\EOF
16373#define wxUSE_SOCKETS 1
16374EOF
16375
16376 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
16377 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
16378fi
16379
16380
16381if test "$wxUSE_GUI" = "yes"; then
16382
16383if test "$TOOLKIT" != "MSW"; then
16384
16385if test "$wxUSE_JOYSTICK" = "yes"; then
16386 for ac_hdr in linux/joystick.h
16387do
16388ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16389echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16390echo "configure:16391: checking for $ac_hdr" >&5
16391if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16392 echo $ac_n "(cached) $ac_c" 1>&6
16393else
16394 cat > conftest.$ac_ext <<EOF
16395#line 16396 "configure"
16396#include "confdefs.h"
16397#include <$ac_hdr>
16398EOF
16399ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16400{ (eval echo configure:16401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16401ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16402if test -z "$ac_err"; then
16403 rm -rf conftest*
16404 eval "ac_cv_header_$ac_safe=yes"
16405else
16406 echo "$ac_err" >&5
16407 echo "configure: failed program was:" >&5
16408 cat conftest.$ac_ext >&5
16409 rm -rf conftest*
16410 eval "ac_cv_header_$ac_safe=no"
16411fi
16412rm -f conftest*
16413fi
16414if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16415 echo "$ac_t""yes" 1>&6
16416 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16417 cat >> confdefs.h <<EOF
16418#define $ac_tr_hdr 1
16419EOF
16420
16421else
16422 echo "$ac_t""no" 1>&6
16423fi
16424done
16425
16426 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
16427 wxUSE_JOYSTICK=no
16428 echo "configure: warning: Joystick not supported by this system" 1>&2
16429 fi
16430fi
16431
16432fi
16433
16434if test "$wxUSE_JOYSTICK" = "yes"; then
16435 cat >> confdefs.h <<\EOF
16436#define wxUSE_JOYSTICK 1
16437EOF
16438
16439 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
16440fi
16441
16442fi
16443
16444
16445if test "$TOOLKIT" != "MSW"; then
16446
16447HAVE_DL_FUNCS=0
16448HAVE_SHL_FUNCS=0
16449if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
16450 if test "$USE_MAC" = 1; then
16451 HAVE_DL_FUNCS=1
16452 else
16453 for ac_func in dlopen
16454do
16455echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16456echo "configure:16457: checking for $ac_func" >&5
16457if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16458 echo $ac_n "(cached) $ac_c" 1>&6
16459else
16460 cat > conftest.$ac_ext <<EOF
16461#line 16462 "configure"
16462#include "confdefs.h"
16463/* System header to define __stub macros and hopefully few prototypes,
16464 which can conflict with char $ac_func(); below. */
16465#include <assert.h>
16466/* Override any gcc2 internal prototype to avoid an error. */
16467/* We use char because int might match the return type of a gcc2
16468 builtin and then its argument prototype would still apply. */
16469char $ac_func();
16470
16471int main() {
16472
16473/* The GNU C library defines this for functions which it implements
16474 to always fail with ENOSYS. Some functions are actually named
16475 something starting with __ and the normal name is an alias. */
16476#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16477choke me
16478#else
16479$ac_func();
16480#endif
16481
16482; return 0; }
16483EOF
16484if { (eval echo configure:16485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16485 rm -rf conftest*
16486 eval "ac_cv_func_$ac_func=yes"
16487else
16488 echo "configure: failed program was:" >&5
16489 cat conftest.$ac_ext >&5
16490 rm -rf conftest*
16491 eval "ac_cv_func_$ac_func=no"
16492fi
16493rm -f conftest*
16494fi
16495
16496if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16497 echo "$ac_t""yes" 1>&6
16498 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16499 cat >> confdefs.h <<EOF
16500#define $ac_tr_func 1
16501EOF
16502
16503 cat >> confdefs.h <<\EOF
16504#define HAVE_DLOPEN 1
16505EOF
16506
16507 HAVE_DL_FUNCS=1
16508
16509else
16510 echo "$ac_t""no" 1>&6
16511echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
16512echo "configure:16513: checking for dlopen in -ldl" >&5
16513ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16514if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16515 echo $ac_n "(cached) $ac_c" 1>&6
16516else
16517 ac_save_LIBS="$LIBS"
16518LIBS="-ldl $LIBS"
16519cat > conftest.$ac_ext <<EOF
16520#line 16521 "configure"
16521#include "confdefs.h"
16522/* Override any gcc2 internal prototype to avoid an error. */
16523/* We use char because int might match the return type of a gcc2
16524 builtin and then its argument prototype would still apply. */
16525char dlopen();
16526
16527int main() {
16528dlopen()
16529; return 0; }
16530EOF
16531if { (eval echo configure:16532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16532 rm -rf conftest*
16533 eval "ac_cv_lib_$ac_lib_var=yes"
16534else
16535 echo "configure: failed program was:" >&5
16536 cat conftest.$ac_ext >&5
16537 rm -rf conftest*
16538 eval "ac_cv_lib_$ac_lib_var=no"
16539fi
16540rm -f conftest*
16541LIBS="$ac_save_LIBS"
16542
16543fi
16544if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16545 echo "$ac_t""yes" 1>&6
16546
16547 cat >> confdefs.h <<\EOF
16548#define HAVE_DLOPEN 1
16549EOF
16550
16551 HAVE_DL_FUNCS=1
16552 LIBS="$LIBS -ldl"
16553
16554else
16555 echo "$ac_t""no" 1>&6
16556
16557 for ac_func in shl_load
16558do
16559echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16560echo "configure:16561: checking for $ac_func" >&5
16561if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16562 echo $ac_n "(cached) $ac_c" 1>&6
16563else
16564 cat > conftest.$ac_ext <<EOF
16565#line 16566 "configure"
16566#include "confdefs.h"
16567/* System header to define __stub macros and hopefully few prototypes,
16568 which can conflict with char $ac_func(); below. */
16569#include <assert.h>
16570/* Override any gcc2 internal prototype to avoid an error. */
16571/* We use char because int might match the return type of a gcc2
16572 builtin and then its argument prototype would still apply. */
16573char $ac_func();
16574
16575int main() {
16576
16577/* The GNU C library defines this for functions which it implements
16578 to always fail with ENOSYS. Some functions are actually named
16579 something starting with __ and the normal name is an alias. */
16580#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16581choke me
16582#else
16583$ac_func();
16584#endif
16585
16586; return 0; }
16587EOF
16588if { (eval echo configure:16589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16589 rm -rf conftest*
16590 eval "ac_cv_func_$ac_func=yes"
16591else
16592 echo "configure: failed program was:" >&5
16593 cat conftest.$ac_ext >&5
16594 rm -rf conftest*
16595 eval "ac_cv_func_$ac_func=no"
16596fi
16597rm -f conftest*
16598fi
16599
16600if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16601 echo "$ac_t""yes" 1>&6
16602 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16603 cat >> confdefs.h <<EOF
16604#define $ac_tr_func 1
16605EOF
16606
16607 cat >> confdefs.h <<\EOF
16608#define HAVE_SHL_LOAD 1
16609EOF
16610
16611 HAVE_SHL_FUNCS=1
16612
16613else
16614 echo "$ac_t""no" 1>&6
16615echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
16616echo "configure:16617: checking for dld in -lshl_load" >&5
16617ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16618if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16619 echo $ac_n "(cached) $ac_c" 1>&6
16620else
16621 ac_save_LIBS="$LIBS"
16622LIBS="-lshl_load $LIBS"
16623cat > conftest.$ac_ext <<EOF
16624#line 16625 "configure"
16625#include "confdefs.h"
16626/* Override any gcc2 internal prototype to avoid an error. */
16627/* We use char because int might match the return type of a gcc2
16628 builtin and then its argument prototype would still apply. */
16629char dld();
16630
16631int main() {
16632dld()
16633; return 0; }
16634EOF
16635if { (eval echo configure:16636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16636 rm -rf conftest*
16637 eval "ac_cv_lib_$ac_lib_var=yes"
16638else
16639 echo "configure: failed program was:" >&5
16640 cat conftest.$ac_ext >&5
16641 rm -rf conftest*
16642 eval "ac_cv_lib_$ac_lib_var=no"
16643fi
16644rm -f conftest*
16645LIBS="$ac_save_LIBS"
16646
16647fi
16648if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16649 echo "$ac_t""yes" 1>&6
16650
16651 HAVE_SHL_FUNCS=1
16652 LIBS="$LIBS -ldld"
16653
16654else
16655 echo "$ac_t""no" 1>&6
16656fi
16657
16658
16659fi
16660done
16661
16662
16663fi
16664
16665
16666fi
16667done
16668
16669
16670 if test "$HAVE_DL_FUNCS" = 1; then
16671 for ac_func in dlerror
16672do
16673echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16674echo "configure:16675: checking for $ac_func" >&5
16675if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16676 echo $ac_n "(cached) $ac_c" 1>&6
16677else
16678 cat > conftest.$ac_ext <<EOF
16679#line 16680 "configure"
16680#include "confdefs.h"
16681/* System header to define __stub macros and hopefully few prototypes,
16682 which can conflict with char $ac_func(); below. */
16683#include <assert.h>
16684/* Override any gcc2 internal prototype to avoid an error. */
16685/* We use char because int might match the return type of a gcc2
16686 builtin and then its argument prototype would still apply. */
16687char $ac_func();
16688
16689int main() {
16690
16691/* The GNU C library defines this for functions which it implements
16692 to always fail with ENOSYS. Some functions are actually named
16693 something starting with __ and the normal name is an alias. */
16694#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16695choke me
16696#else
16697$ac_func();
16698#endif
16699
16700; return 0; }
16701EOF
16702if { (eval echo configure:16703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16703 rm -rf conftest*
16704 eval "ac_cv_func_$ac_func=yes"
16705else
16706 echo "configure: failed program was:" >&5
16707 cat conftest.$ac_ext >&5
16708 rm -rf conftest*
16709 eval "ac_cv_func_$ac_func=no"
16710fi
16711rm -f conftest*
16712fi
16713
16714if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16715 echo "$ac_t""yes" 1>&6
16716 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16717 cat >> confdefs.h <<EOF
16718#define $ac_tr_func 1
16719EOF
16720 cat >> confdefs.h <<\EOF
16721#define HAVE_DLERROR 1
16722EOF
16723
16724else
16725 echo "$ac_t""no" 1>&6
16726echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
16727echo "configure:16728: checking for dlerror in -ldl" >&5
16728ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
16729if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16730 echo $ac_n "(cached) $ac_c" 1>&6
16731else
16732 ac_save_LIBS="$LIBS"
16733LIBS="-ldl $LIBS"
16734cat > conftest.$ac_ext <<EOF
16735#line 16736 "configure"
16736#include "confdefs.h"
16737/* Override any gcc2 internal prototype to avoid an error. */
16738/* We use char because int might match the return type of a gcc2
16739 builtin and then its argument prototype would still apply. */
16740char dlerror();
16741
16742int main() {
16743dlerror()
16744; return 0; }
16745EOF
16746if { (eval echo configure:16747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16747 rm -rf conftest*
16748 eval "ac_cv_lib_$ac_lib_var=yes"
16749else
16750 echo "configure: failed program was:" >&5
16751 cat conftest.$ac_ext >&5
16752 rm -rf conftest*
16753 eval "ac_cv_lib_$ac_lib_var=no"
16754fi
16755rm -f conftest*
16756LIBS="$ac_save_LIBS"
16757
16758fi
16759if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16760 echo "$ac_t""yes" 1>&6
16761 cat >> confdefs.h <<\EOF
16762#define HAVE_DLERROR 1
16763EOF
16764
16765else
16766 echo "$ac_t""no" 1>&6
16767fi
16768
16769fi
16770done
16771
16772 fi
16773 fi
16774
16775 if test "$HAVE_DL_FUNCS" = 0; then
16776 if test "$HAVE_SHL_FUNCS" = 0; then
16777 if test "$USE_UNIX" = 1; then
16778 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
16779 wxUSE_DYNLIB_CLASS=no
16780 else
16781 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
16782 fi
16783 fi
16784 fi
16785fi
16786
16787fi
16788
16789if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
16790 cat >> confdefs.h <<\EOF
16791#define wxUSE_DYNLIB_CLASS 1
16792EOF
16793
16794else
16795 wxUSE_ODBC=no
16796 wxUSE_SERIAL=no
16797fi
16798
16799
16800if test "$wxUSE_FONTMAP" = "yes" ; then
16801 cat >> confdefs.h <<\EOF
16802#define wxUSE_FONTMAP 1
16803EOF
16804
16805fi
16806
16807if test "$wxUSE_UNICODE" = "yes" ; then
16808 cat >> confdefs.h <<\EOF
16809#define wxUSE_UNICODE 1
16810EOF
16811
16812fi
16813
16814if test "$wxUSE_WCSRTOMBS" = "yes" ; then
16815 cat >> confdefs.h <<\EOF
16816#define wxUSE_WCSRTOMBS 1
16817EOF
16818
16819fi
16820
16821if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
16822 cat >> confdefs.h <<\EOF
16823#define wxUSE_EXPERIMENTAL_PRINTF 1
16824EOF
16825
16826fi
16827
16828
16829if test "$wxUSE_SERIAL" = "yes" ; then
16830 cat >> confdefs.h <<\EOF
16831#define wxUSE_SERIAL 1
16832EOF
16833
16834fi
16835
16836
16837IODBC_C_SRC=""
16838if test "$wxUSE_ODBC" = "yes" ; then
16839 cat >> confdefs.h <<\EOF
16840#define wxUSE_ODBC 1
16841EOF
16842
16843 WXODBCFLAG="-D_IODBC_"
16844 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
16845fi
16846
16847
16848if test "$wxUSE_POSTSCRIPT" = "yes" ; then
16849 cat >> confdefs.h <<\EOF
16850#define wxUSE_POSTSCRIPT 1
16851EOF
16852
16853fi
16854
16855cat >> confdefs.h <<\EOF
16856#define wxUSE_AFM_FOR_POSTSCRIPT 1
16857EOF
16858
16859
16860cat >> confdefs.h <<\EOF
16861#define wxUSE_NORMALIZED_PS_FONTS 1
16862EOF
16863
16864
16865
16866if test "$wxUSE_CONSTRAINTS" = "yes"; then
16867 cat >> confdefs.h <<\EOF
16868#define wxUSE_CONSTRAINTS 1
16869EOF
16870
16871 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
16872fi
16873
16874if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16875 cat >> confdefs.h <<\EOF
16876#define wxUSE_MDI_ARCHITECTURE 1
16877EOF
16878
16879 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
16880fi
16881
16882if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
16883 cat >> confdefs.h <<\EOF
16884#define wxUSE_DOC_VIEW_ARCHITECTURE 1
16885EOF
16886
16887 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
16888 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16889 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
16890 fi
16891fi
16892
16893if test "$wxUSE_HELP" = "yes"; then
16894 cat >> confdefs.h <<\EOF
16895#define wxUSE_HELP 1
16896EOF
16897
16898 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
16899
16900 if test "$USE_WIN32" = 1; then
16901 if test "$wxUSE_WXHTML_HELP" = "yes"; then
16902 cat >> confdefs.h <<\EOF
16903#define wxUSE_WXHTML_HELP 1
16904EOF
16905
16906 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
16907echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
16908echo "configure:16909: checking for htmlhelp.h" >&5
16909if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16910 echo $ac_n "(cached) $ac_c" 1>&6
16911else
16912 cat > conftest.$ac_ext <<EOF
16913#line 16914 "configure"
16914#include "confdefs.h"
16915#include <htmlhelp.h>
16916EOF
16917ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16918{ (eval echo configure:16919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16919ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16920if test -z "$ac_err"; then
16921 rm -rf conftest*
16922 eval "ac_cv_header_$ac_safe=yes"
16923else
16924 echo "$ac_err" >&5
16925 echo "configure: failed program was:" >&5
16926 cat conftest.$ac_ext >&5
16927 rm -rf conftest*
16928 eval "ac_cv_header_$ac_safe=no"
16929fi
16930rm -f conftest*
16931fi
16932if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16933 echo "$ac_t""yes" 1>&6
16934
16935 cat >> confdefs.h <<\EOF
16936#define wxUSE_MS_HTML_HELP 1
16937EOF
16938
16939
16940else
16941 echo "$ac_t""no" 1>&6
16942
16943 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h so it won't be compiled without it" 1>&2
16944 wxUSE_MS_HTML_HELP=no
16945
16946fi
16947
16948 fi
16949 fi
16950fi
16951
16952if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
16953 if test "$wxUSE_CONSTRAINTS" != "yes"; then
16954 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
16955 else
16956 cat >> confdefs.h <<\EOF
16957#define wxUSE_PRINTING_ARCHITECTURE 1
16958EOF
16959
16960 fi
16961 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
16962fi
16963
16964if test "$wxUSE_PROLOGIO" = "yes" ; then
16965 cat >> confdefs.h <<\EOF
16966#define wxUSE_PROLOGIO 1
16967EOF
16968
16969fi
16970
16971if test "$wxUSE_RESOURCES" = "yes" ; then
16972 cat >> confdefs.h <<\EOF
16973#define wxUSE_RESOURCES 1
16974EOF
16975
16976 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
16977fi
16978
16979if test "$wxUSE_X_RESOURCES" = "yes"; then
16980 cat >> confdefs.h <<\EOF
16981#define wxUSE_X_RESOURCES 1
16982EOF
16983
16984fi
16985
16986
16987if test "$wxUSE_IPC" = "yes"; then
16988 if test "$wxUSE_SOCKETS" != "yes"; then
16989 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
16990 fi
16991
16992 cat >> confdefs.h <<\EOF
16993#define wxUSE_IPC 1
16994EOF
16995
16996fi
16997
16998if test "$wxUSE_CLIPBOARD" = "yes"; then
16999 cat >> confdefs.h <<\EOF
17000#define wxUSE_CLIPBOARD 1
17001EOF
17002
17003 cat >> confdefs.h <<\EOF
17004#define wxUSE_DATAOBJ 1
17005EOF
17006
17007fi
17008
17009if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17010 if test "$wxUSE_GTK" = 1; then
17011 if test "$WXGTK12" != 1; then
17012 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
17013 wxUSE_DRAG_AND_DROP=no
17014 fi
17015 fi
17016
17017 if test "$wxUSE_MOTIF" = 1; then
17018 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
17019 wxUSE_DRAG_AND_DROP=no
17020 fi
17021
17022 if test "$wxUSE_MAC" = 1; then
17023 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
17024 wxUSE_DRAG_AND_DROP=no
17025 fi
17026
17027 if test "$USE_WIN32" = 1; then
17028
17029 for ac_hdr in ole2.h
17030do
17031ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17032echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17033echo "configure:17034: checking for $ac_hdr" >&5
17034if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17035 echo $ac_n "(cached) $ac_c" 1>&6
17036else
17037 cat > conftest.$ac_ext <<EOF
17038#line 17039 "configure"
17039#include "confdefs.h"
17040#include <$ac_hdr>
17041EOF
17042ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17043{ (eval echo configure:17044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17044ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17045if test -z "$ac_err"; then
17046 rm -rf conftest*
17047 eval "ac_cv_header_$ac_safe=yes"
17048else
17049 echo "$ac_err" >&5
17050 echo "configure: failed program was:" >&5
17051 cat conftest.$ac_ext >&5
17052 rm -rf conftest*
17053 eval "ac_cv_header_$ac_safe=no"
17054fi
17055rm -f conftest*
17056fi
17057if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17058 echo "$ac_t""yes" 1>&6
17059 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17060 cat >> confdefs.h <<EOF
17061#define $ac_tr_hdr 1
17062EOF
17063
17064else
17065 echo "$ac_t""no" 1>&6
17066fi
17067done
17068
17069
17070 if test "$ac_cv_header_ole2_h" = "yes" ; then
17071 if test "$GCC" = yes ; then
17072 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
17073 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
17074 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
17075 LIBS="$LIBS -lole32 -luuid"
17076 cat >> confdefs.h <<\EOF
17077#define wxUSE_OLE 1
17078EOF
17079
17080
17081 if test "$wxUSE_METAFILE" = "yes"; then
17082 cat >> confdefs.h <<\EOF
17083#define wxUSE_METAFILE 1
17084EOF
17085
17086 cat >> confdefs.h <<\EOF
17087#define wxUSE_ENH_METAFILE 1
17088EOF
17089
17090 fi
17091 fi
17092 else
17093 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
17094 wxUSE_DRAG_AND_DROP=no
17095 fi
17096 fi
17097
17098 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
17099 cat >> confdefs.h <<\EOF
17100#define wxUSE_DRAG_AND_DROP 1
17101EOF
17102
17103 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17104 fi
17105
17106fi
17107
17108if test "$wxUSE_SPLINES" = "yes" ; then
17109 cat >> confdefs.h <<\EOF
17110#define wxUSE_SPLINES 1
17111EOF
17112
17113fi
17114
17115
17116USES_CONTROLS=0
17117if test "$wxUSE_CONTROLS" = "yes"; then
17118 USES_CONTROLS=1
17119fi
17120
17121if test "$wxUSE_ACCEL" = "yes"; then
17122 cat >> confdefs.h <<\EOF
17123#define wxUSE_ACCEL 1
17124EOF
17125
17126 USES_CONTROLS=1
17127fi
17128
17129if test "$wxUSE_BUTTON" = "yes"; then
17130 cat >> confdefs.h <<\EOF
17131#define wxUSE_BUTTON 1
17132EOF
17133
17134 USES_CONTROLS=1
17135fi
17136
17137if test "$wxUSE_BMPBUTTON" = "yes"; then
17138 cat >> confdefs.h <<\EOF
17139#define wxUSE_BMPBUTTON 1
17140EOF
17141
17142 USES_CONTROLS=1
17143fi
17144
17145if test "$wxUSE_CALCTRL" = "yes"; then
17146 cat >> confdefs.h <<\EOF
17147#define wxUSE_CALENDARCTRL 1
17148EOF
17149
17150 USES_CONTROLS=1
17151 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
17152fi
17153
17154if test "$wxUSE_CARET" = "yes"; then
17155 cat >> confdefs.h <<\EOF
17156#define wxUSE_CARET 1
17157EOF
17158
17159 USES_CONTROLS=1
17160 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17161fi
17162
17163if test "$wxUSE_COMBOBOX" = "yes"; then
17164 cat >> confdefs.h <<\EOF
17165#define wxUSE_COMBOBOX 1
17166EOF
17167
17168 USES_CONTROLS=1
17169fi
17170
17171if test "$wxUSE_CHOICE" = "yes"; then
17172 cat >> confdefs.h <<\EOF
17173#define wxUSE_CHOICE 1
17174EOF
17175
17176 USES_CONTROLS=1
17177fi
17178
17179if test "$wxUSE_CHECKBOX" = "yes"; then
17180 cat >> confdefs.h <<\EOF
17181#define wxUSE_CHECKBOX 1
17182EOF
17183
17184 USES_CONTROLS=1
17185fi
17186
17187if test "$wxUSE_CHECKLST" = "yes"; then
17188 cat >> confdefs.h <<\EOF
17189#define wxUSE_CHECKLISTBOX 1
17190EOF
17191
17192 USES_CONTROLS=1
17193 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17194fi
17195
17196if test "$wxUSE_GAUGE" = "yes"; then
17197 cat >> confdefs.h <<\EOF
17198#define wxUSE_GAUGE 1
17199EOF
17200
17201 USES_CONTROLS=1
17202fi
17203
17204if test "$wxUSE_NEW_GRID" = "yes"; then
17205 wxUSE_GRID="yes"
17206 cat >> confdefs.h <<\EOF
17207#define wxUSE_NEW_GRID 1
17208EOF
17209
17210 USES_CONTROLS=1
17211 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
17212fi
17213
17214if test "$wxUSE_GRID" = "yes"; then
17215 cat >> confdefs.h <<\EOF
17216#define wxUSE_GRID 1
17217EOF
17218
17219 USES_CONTROLS=1
17220 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
17221fi
17222
17223if test "$wxUSE_IMAGLIST" = "yes"; then
17224 cat >> confdefs.h <<\EOF
17225#define wxUSE_IMAGLIST 1
17226EOF
17227
17228fi
17229
17230if test "$wxUSE_LISTBOX" = "yes"; then
17231 cat >> confdefs.h <<\EOF
17232#define wxUSE_LISTBOX 1
17233EOF
17234
17235 USES_CONTROLS=1
17236fi
17237
17238if test "$wxUSE_LISTCTRL" = "yes"; then
17239 if test "$wxUSE_IMAGLIST" = "yes"; then
17240 cat >> confdefs.h <<\EOF
17241#define wxUSE_LISTCTRL 1
17242EOF
17243
17244 USES_CONTROLS=1
17245 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17246 else
17247 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
17248 fi
17249fi
17250
17251if test "$wxUSE_NOTEBOOK" = "yes"; then
17252 cat >> confdefs.h <<\EOF
17253#define wxUSE_NOTEBOOK 1
17254EOF
17255
17256 USES_CONTROLS=1
17257 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17258fi
17259
17260if test "$wxUSE_RADIOBOX" = "yes"; then
17261 cat >> confdefs.h <<\EOF
17262#define wxUSE_RADIOBOX 1
17263EOF
17264
17265 USES_CONTROLS=1
17266fi
17267
17268if test "$wxUSE_RADIOBTN" = "yes"; then
17269 cat >> confdefs.h <<\EOF
17270#define wxUSE_RADIOBTN 1
17271EOF
17272
17273 USES_CONTROLS=1
17274fi
17275
17276if test "$wxUSE_SASH" = "yes"; then
17277 cat >> confdefs.h <<\EOF
17278#define wxUSE_SASH 1
17279EOF
17280
17281 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17282fi
17283
17284if test "$wxUSE_SCROLLBAR" = "yes"; then
17285 cat >> confdefs.h <<\EOF
17286#define wxUSE_SCROLLBAR 1
17287EOF
17288
17289 USES_CONTROLS=1
17290 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
17291fi
17292
17293if test "$wxUSE_SLIDER" = "yes"; then
17294 cat >> confdefs.h <<\EOF
17295#define wxUSE_SLIDER 1
17296EOF
17297
17298 USES_CONTROLS=1
17299fi
17300
17301if test "$wxUSE_SPINBTN" = "yes"; then
17302 cat >> confdefs.h <<\EOF
17303#define wxUSE_SPINBTN 1
17304EOF
17305
17306 USES_CONTROLS=1
17307fi
17308
17309if test "$wxUSE_SPINCTRL" = "yes"; then
17310 cat >> confdefs.h <<\EOF
17311#define wxUSE_SPINCTRL 1
17312EOF
17313
17314 USES_CONTROLS=1
17315fi
17316
17317if test "$wxUSE_SPLITTER" = "yes"; then
17318 cat >> confdefs.h <<\EOF
17319#define wxUSE_SPLITTER 1
17320EOF
17321
17322 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17323fi
17324
17325if test "$wxUSE_STATBMP" = "yes"; then
17326 cat >> confdefs.h <<\EOF
17327#define wxUSE_STATBMP 1
17328EOF
17329
17330 USES_CONTROLS=1
17331fi
17332
17333if test "$wxUSE_STATBOX" = "yes"; then
17334 cat >> confdefs.h <<\EOF
17335#define wxUSE_STATBOX 1
17336EOF
17337
17338 USES_CONTROLS=1
17339fi
17340
17341if test "$wxUSE_STATTEXT" = "yes"; then
17342 cat >> confdefs.h <<\EOF
17343#define wxUSE_STATTEXT 1
17344EOF
17345
17346 USES_CONTROLS=1
17347fi
17348
17349if test "$wxUSE_STATLINE" = "yes"; then
17350 if test "$wxUSE_WINE" = 1 ; then
17351 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
17352 else
17353 cat >> confdefs.h <<\EOF
17354#define wxUSE_STATLINE 1
17355EOF
17356
17357 USES_CONTROLS=1
17358 fi
17359fi
17360
17361if test "$wxUSE_STATUSBAR" = "yes"; then
17362 cat >> confdefs.h <<\EOF
17363#define wxUSE_STATUSBAR 1
17364EOF
17365
17366 USES_CONTROLS=1
17367
17368 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
17369fi
17370
17371if test "$wxUSE_TABDIALOG" = "yes"; then
17372 cat >> confdefs.h <<\EOF
17373#define wxUSE_TAB_DIALOG 1
17374EOF
17375
17376 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17377fi
17378
17379if test "$wxUSE_TEXTCTRL" = "yes"; then
17380 cat >> confdefs.h <<\EOF
17381#define wxUSE_TEXTCTRL 1
17382EOF
17383
17384 USES_CONTROLS=1
17385 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17386fi
17387
17388if test "$wxUSE_TOGGLEBTN" = "yes"; then
17389 if test "$wxUSE_MAC" = 1; then
17390 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
17391 wxUSE_TOGGLEBTN=no
17392 fi
17393
17394 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17395 cat >> confdefs.h <<\EOF
17396#define wxUSE_TOGGLEBTN 1
17397EOF
17398
17399 USES_CONTROLS=1
17400 fi
17401fi
17402
17403if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
17404 cat >> confdefs.h <<\EOF
17405#define wxUSE_TOOLBAR_SIMPLE 1
17406EOF
17407
17408 wxUSE_TOOLBAR="yes"
17409 USES_CONTROLS=1
17410fi
17411
17412if test "$wxUSE_TOOLBAR" = "yes"; then
17413 cat >> confdefs.h <<\EOF
17414#define wxUSE_TOOLBAR 1
17415EOF
17416
17417 USES_CONTROLS=1
17418
17419 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17420 wxUSE_TOOLBAR_NATIVE="yes"
17421 fi
17422
17423 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17424 cat >> confdefs.h <<\EOF
17425#define wxUSE_TOOLBAR_NATIVE 1
17426EOF
17427
17428 USES_CONTROLS=1
17429 fi
17430
17431 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
17432fi
17433
17434if test "$wxUSE_TOOLTIPS" = "yes"; then
17435 if test "$wxUSE_MOTIF" = 1; then
17436 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
17437 else
17438 if test "$wxUSE_WINE" = 1; then
17439 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
17440 else
17441 cat >> confdefs.h <<\EOF
17442#define wxUSE_TOOLTIPS 1
17443EOF
17444
17445 fi
17446 fi
17447fi
17448
17449if test "$wxUSE_TREECTRL" = "yes"; then
17450 if test "$wxUSE_IMAGLIST" = "yes"; then
17451 cat >> confdefs.h <<\EOF
17452#define wxUSE_TREECTRL 1
17453EOF
17454
17455 USES_CONTROLS=1
17456 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17457 else
17458 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
17459 fi
17460fi
17461
17462if test "$wxUSE_POPUPWIN" = "yes"; then
17463 if test "$wxUSE_MAC" = 1; then
17464 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17465 else
17466 cat >> confdefs.h <<\EOF
17467#define wxUSE_POPUPWIN 1
17468EOF
17469
17470 USES_CONTROLS=1
17471 fi
17472fi
17473
17474if test "$USES_CONTROLS" = 1; then
17475 cat >> confdefs.h <<\EOF
17476#define wxUSE_CONTROLS 1
17477EOF
17478
17479fi
17480
17481
17482
17483if test "$wxUSE_DRAGIMAGE" = "yes"; then
17484 cat >> confdefs.h <<\EOF
17485#define wxUSE_DRAGIMAGE 1
17486EOF
17487
17488 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
17489fi
17490
17491if test "$wxUSE_MENUS" = "yes"; then
17492 cat >> confdefs.h <<\EOF
17493#define wxUSE_MENUS 1
17494EOF
17495
17496 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
17497fi
17498
17499if test "$wxUSE_METAFILE" = "yes"; then
17500 cat >> confdefs.h <<\EOF
17501#define wxUSE_METAFILE 1
17502EOF
17503
17504fi
17505
17506if test "$wxUSE_MIMETYPE" = "yes"; then
17507 cat >> confdefs.h <<\EOF
17508#define wxUSE_MIMETYPE 1
17509EOF
17510
17511fi
17512
17513if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
17514 cat >> confdefs.h <<\EOF
17515#define wxUSE_SYSTEM_OPTIONS 1
17516EOF
17517
17518fi
17519
17520if test "$wxUSE_MINIFRAME" = "yes"; then
17521 cat >> confdefs.h <<\EOF
17522#define wxUSE_MINIFRAME 1
17523EOF
17524
17525 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
17526fi
17527
17528if test "$wxUSE_HTML" = "yes"; then
17529 cat >> confdefs.h <<\EOF
17530#define wxUSE_HTML 1
17531EOF
17532
17533 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
17534 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
17535fi
17536
17537if test "$wxUSE_VALIDATORS" = "yes"; then
17538 cat >> confdefs.h <<\EOF
17539#define wxUSE_VALIDATORS 1
17540EOF
17541
17542 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
17543fi
17544
17545if test "$wxUSE_IMAGE" = "yes" ; then
17546 cat >> confdefs.h <<\EOF
17547#define wxUSE_IMAGE 1
17548EOF
17549
17550fi
17551
17552if test "$wxUSE_GIF" = "yes" ; then
17553 cat >> confdefs.h <<\EOF
17554#define wxUSE_GIF 1
17555EOF
17556
17557fi
17558
17559if test "$wxUSE_PCX" = "yes" ; then
17560 cat >> confdefs.h <<\EOF
17561#define wxUSE_PCX 1
17562EOF
17563
17564fi
17565
17566if test "$wxUSE_PNM" = "yes" ; then
17567 cat >> confdefs.h <<\EOF
17568#define wxUSE_PNM 1
17569EOF
17570
17571fi
17572
17573if test "$wxUSE_XPM" = "yes" ; then
17574 cat >> confdefs.h <<\EOF
17575#define wxUSE_XPM 1
17576EOF
17577
17578fi
17579
17580
17581if test "$wxUSE_CHOICEDLG" = "yes"; then
17582 cat >> confdefs.h <<\EOF
17583#define wxUSE_CHOICEDLG 1
17584EOF
17585
17586fi
17587
17588if test "$wxUSE_COLOURDLG" = "yes"; then
17589 cat >> confdefs.h <<\EOF
17590#define wxUSE_COLOURDLG 1
17591EOF
17592
17593fi
17594
17595if test "$wxUSE_FILEDLG" = "yes"; then
17596 cat >> confdefs.h <<\EOF
17597#define wxUSE_FILEDLG 1
17598EOF
17599
17600fi
17601
17602if test "$wxUSE_FONTDLG" = "yes"; then
17603 cat >> confdefs.h <<\EOF
17604#define wxUSE_FONTDLG 1
17605EOF
17606
17607fi
17608
17609if test "$wxUSE_DIRDLG" = "yes"; then
17610 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17611 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
17612 else
17613 if test "$wxUSE_TREECTRL" != "yes"; then
17614 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
17615 else
17616 cat >> confdefs.h <<\EOF
17617#define wxUSE_DIRDLG 1
17618EOF
17619
17620 fi
17621 fi
17622fi
17623
17624if test "$wxUSE_MSGDLG" = "yes"; then
17625 cat >> confdefs.h <<\EOF
17626#define wxUSE_MSGDLG 1
17627EOF
17628
17629fi
17630
17631if test "$wxUSE_NUMBERDLG" = "yes"; then
17632 cat >> confdefs.h <<\EOF
17633#define wxUSE_NUMBERDLG 1
17634EOF
17635
17636fi
17637
17638if test "$wxUSE_PROGRESSDLG" = "yes"; then
17639 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17640 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
17641 else
17642 cat >> confdefs.h <<\EOF
17643#define wxUSE_PROGRESSDLG 1
17644EOF
17645
17646 fi
17647fi
17648
17649if test "$wxUSE_STARTUP_TIPS" = "yes"; then
17650 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17651 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
17652 else
17653 cat >> confdefs.h <<\EOF
17654#define wxUSE_STARTUP_TIPS 1
17655EOF
17656
17657 fi
17658fi
17659
17660if test "$wxUSE_TEXTDLG" = "yes"; then
17661 cat >> confdefs.h <<\EOF
17662#define wxUSE_TEXTDLG 1
17663EOF
17664
17665fi
17666
17667if test "$wxUSE_WIZARDDLG" = "yes"; then
17668 cat >> confdefs.h <<\EOF
17669#define wxUSE_WIZARDDLG 1
17670EOF
17671
17672 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
17673fi
17674
17675
17676if test "$cross_compiling" = "yes"; then
17677 OSINFO="\"$host\""
17678else
17679 OSINFO=`uname -s -r -m`
17680 OSINFO="\"$OSINFO\""
17681fi
17682
17683cat >> confdefs.h <<EOF
17684#define WXWIN_OS_DESCRIPTION $OSINFO
17685EOF
17686
17687
17688
17689GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
17690OPENGL_LIBS="$OPENGL_LINK"
17691
17692EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
17693if test "$USE_MAC" = 1 ; then
17694 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
17695fi
17696if test "$wxUSE_GUI" = "yes"; then
17697 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
17698fi
17699
17700LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
17701
17702INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include \
17703$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
17704$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
17705
17706if test "$wxUSE_GTK" = 1; then
17707 WXCONFIG_INCLUDE=""
17708else
17709 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
17710fi
17711
17712if test "$GXX" = yes ; then
17713 CXXWARNINGS="-Wall"
17714 fi
17715EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
17716
17717CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
17718CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
17719
17720LDFLAGS="$LDFLAGS $PROFILE"
17721
17722if test "$wxUSE_GUI" = "yes"; then
17723
17724 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
17725 drawing dynamic event font fractal image \
17726 minimal richedit widgets"
17727
17728 if test "$wxUSE_UNIVERSAL" = "yes" ; then
17729 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
17730 fi
17731
17732 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
17733else
17734 SAMPLES_SUBDIRS=""
17735fi
17736
17737SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
17833echo "configure:17834: checking whether ${MAKE-make} sets \${MAKE}" >&5
17834set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
17835if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
17836 echo $ac_n "(cached) $ac_c" 1>&6
17837else
17838 cat > conftestmake <<\EOF
17839all:
17840 @echo 'ac_maketemp="${MAKE}"'
17841EOF
17842# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17843eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
17844if test -n "$ac_maketemp"; then
17845 eval ac_cv_prog_make_${ac_make}_set=yes
17846else
17847 eval ac_cv_prog_make_${ac_make}_set=no
17848fi
17849rm -f conftestmake
17850fi
17851if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
17852 echo "$ac_t""yes" 1>&6
17853 SET_MAKE=
17854else
17855 echo "$ac_t""no" 1>&6
17856 SET_MAKE="MAKE=${MAKE-make}"
17857fi
17858
17859
17860if test -d include; then
17861 if test -d include/wx; then
17862 if test -d include/wx/${SETUPH_DIR}; then
17863 if test -f include/wx/${SETUPH_DIR}/setup.h; then
17864 mv -f include/wx/${SETUPH_DIR}/setup.h setup.h
17865 fi
17866 fi
17867 fi
17868fi
17869
17870
17871
17872if test "$wxUSE_GUI" = "yes"; then
17873 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
17874 wx_cv_path_ifs=$PATH_IFS
17875 wx_cv_program_ext=$PROGRAM_EXT
17876 wx_cv_target_library=$WX_TARGET_LIBRARY
17877 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
17878 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
17879 wx_cv_target_library wx_cv_target_libtype
17880 subdirs="demos samples utils contrib"
17881
17882fi
17883
17884trap '' 1 2 15
17885cat > confcache <<\EOF
17886# This file is a shell script that caches the results of configure
17887# tests run on this system so they can be shared between configure
17888# scripts and configure runs. It is not useful on other systems.
17889# If it contains results you don't want to keep, you may remove or edit it.
17890#
17891# By default, configure uses ./config.cache as the cache file,
17892# creating it if it does not exist already. You can give configure
17893# the --cache-file=FILE option to use a different cache file; that is
17894# what configure does when it calls configure scripts in
17895# subdirectories, so they share the cache.
17896# Giving --cache-file=/dev/null disables caching, for debugging configure.
17897# config.status only pays attention to the cache file if you give it the
17898# --recheck option to rerun configure.
17899#
17900EOF
17901# The following way of writing the cache mishandles newlines in values,
17902# but we know of no workaround that is simple, portable, and efficient.
17903# So, don't put newlines in cache variables' values.
17904# Ultrix sh set writes to stderr and can't be redirected directly,
17905# and sets the high bit in the cache file unless we assign to the vars.
17906(set) 2>&1 |
17907 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17908 *ac_space=\ *)
17909 # `set' does not quote correctly, so add quotes (double-quote substitution
17910 # turns \\\\ into \\, and sed turns \\ into \).
17911 sed -n \
17912 -e "s/'/'\\\\''/g" \
17913 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17914 ;;
17915 *)
17916 # `set' quotes correctly as required by POSIX, so do not add quotes.
17917 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17918 ;;
17919 esac >> confcache
17920if cmp -s $cache_file confcache; then
17921 :
17922else
17923 if test -w $cache_file; then
17924 echo "updating cache $cache_file"
17925 cat confcache > $cache_file
17926 else
17927 echo "not updating unwritable cache $cache_file"
17928 fi
17929fi
17930rm -f confcache
17931
17932trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17933
17934test "x$prefix" = xNONE && prefix=$ac_default_prefix
17935# Let make expand exec_prefix.
17936test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17937
17938# Any assignment to VPATH causes Sun make to only execute
17939# the first set of double-colon rules, so remove it if not needed.
17940# If there is a colon in the path, we need to keep it.
17941if test "x$srcdir" = x.; then
17942 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
17943fi
17944
17945trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17946
17947DEFS=-DHAVE_CONFIG_H
17948
17949# Without the "./", some shells look in PATH for config.status.
17950: ${CONFIG_STATUS=./config.status}
17951
17952echo creating $CONFIG_STATUS
17953rm -f $CONFIG_STATUS
17954cat > $CONFIG_STATUS <<EOF
17955#! /bin/sh
17956# Generated automatically by configure.
17957# Run this file to recreate the current configuration.
17958# This directory was configured as follows,
17959# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17960#
17961# $0 $ac_configure_args
17962#
17963# Compiler output produced by configure, useful for debugging
17964# configure, is in ./config.log if it exists.
17965
17966ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17967for ac_option
17968do
17969 case "\$ac_option" in
17970 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17971 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17972 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17973 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17974 echo "$CONFIG_STATUS generated by autoconf version 2.13"
17975 exit 0 ;;
17976 -help | --help | --hel | --he | --h)
17977 echo "\$ac_cs_usage"; exit 0 ;;
17978 *) echo "\$ac_cs_usage"; exit 1 ;;
17979 esac
17980done
17981
17982ac_given_srcdir=$srcdir
17983ac_given_INSTALL="$INSTALL"
17984
17985trap 'rm -fr `echo "
17986 wx-config
17987 src/make.env
17988 src/makeprog.env
17989 src/makelib.env
17990 Makefile
17991 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
17992EOF
17993cat >> $CONFIG_STATUS <<EOF
17994
17995# Protect against being on the right side of a sed subst in config.status.
17996sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17997 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17998$ac_vpsub
17999$extrasub
18000s%@SHELL@%$SHELL%g
18001s%@CFLAGS@%$CFLAGS%g
18002s%@CPPFLAGS@%$CPPFLAGS%g
18003s%@CXXFLAGS@%$CXXFLAGS%g
18004s%@FFLAGS@%$FFLAGS%g
18005s%@DEFS@%$DEFS%g
18006s%@LDFLAGS@%$LDFLAGS%g
18007s%@LIBS@%$LIBS%g
18008s%@exec_prefix@%$exec_prefix%g
18009s%@prefix@%$prefix%g
18010s%@program_transform_name@%$program_transform_name%g
18011s%@bindir@%$bindir%g
18012s%@sbindir@%$sbindir%g
18013s%@libexecdir@%$libexecdir%g
18014s%@datadir@%$datadir%g
18015s%@sysconfdir@%$sysconfdir%g
18016s%@sharedstatedir@%$sharedstatedir%g
18017s%@localstatedir@%$localstatedir%g
18018s%@libdir@%$libdir%g
18019s%@includedir@%$includedir%g
18020s%@oldincludedir@%$oldincludedir%g
18021s%@infodir@%$infodir%g
18022s%@mandir@%$mandir%g
18023s%@host@%$host%g
18024s%@host_alias@%$host_alias%g
18025s%@host_cpu@%$host_cpu%g
18026s%@host_vendor@%$host_vendor%g
18027s%@host_os@%$host_os%g
18028s%@target@%$target%g
18029s%@target_alias@%$target_alias%g
18030s%@target_cpu@%$target_cpu%g
18031s%@target_vendor@%$target_vendor%g
18032s%@target_os@%$target_os%g
18033s%@build@%$build%g
18034s%@build_alias@%$build_alias%g
18035s%@build_cpu@%$build_cpu%g
18036s%@build_vendor@%$build_vendor%g
18037s%@build_os@%$build_os%g
18038s%@CC@%$CC%g
18039s%@CPP@%$CPP%g
18040s%@CXX@%$CXX%g
18041s%@CXXCPP@%$CXXCPP%g
18042s%@RANLIB@%$RANLIB%g
18043s%@AR@%$AR%g
18044s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18045s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18046s%@INSTALL_DATA@%$INSTALL_DATA%g
18047s%@STRIP@%$STRIP%g
18048s%@YACC@%$YACC%g
18049s%@LEX@%$LEX%g
18050s%@LEXLIB@%$LEXLIB%g
18051s%@LN_S@%$LN_S%g
18052s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
18053s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18054s%@GTK_LIBS@%$GTK_LIBS%g
18055s%@GTK_CONFIG@%$GTK_CONFIG%g
18056s%@X_CFLAGS@%$X_CFLAGS%g
18057s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18058s%@X_LIBS@%$X_LIBS%g
18059s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
18060s%@REZ@%$REZ%g
18061s%@DEREZ@%$DEREZ%g
18062s%@LEX_STEM@%$LEX_STEM%g
18063s%@PATH_IFS@%$PATH_IFS%g
18064s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18065s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18066s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
18067s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
18068s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18069s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
18070s%@WX_LIBRARY@%$WX_LIBRARY%g
18071s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18072s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18073s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
18074s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
18075s%@PROGRAM_EXT@%$PROGRAM_EXT%g
18076s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
18077s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18078s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
18079s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
18080s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18081s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18082s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
18083s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
18084s%@WX_ALL@%$WX_ALL%g
18085s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18086s%@SHARED_LD@%$SHARED_LD%g
18087s%@PIC_FLAG@%$PIC_FLAG%g
18088s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
18089s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18090s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
18091s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
18092s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
18093s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18094s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18095s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18096s%@USE_GUI@%$USE_GUI%g
18097s%@AFMINSTALL@%$AFMINSTALL%g
18098s%@SETUPH_DIR@%$SETUPH_DIR%g
18099s%@TOOLKIT@%$TOOLKIT%g
18100s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
18101s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
18102s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
18103s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
18104s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
18105s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18106s%@ALL_OBJECTS@%$ALL_OBJECTS%g
18107s%@ALL_DEPFILES@%$ALL_DEPFILES%g
18108s%@GUIDIST@%$GUIDIST%g
18109s%@PORT_FILES@%$PORT_FILES%g
18110s%@DISTDIR@%$DISTDIR%g
18111s%@RPM_SPEC@%$RPM_SPEC%g
18112s%@RPM_FILES@%$RPM_FILES%g
18113s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
18114s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
18115s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
18116s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
18117s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
18118s%@USER_SUBDIRS@%$USER_SUBDIRS%g
18119s%@EXTRA_LIBS@%$EXTRA_LIBS%g
18120s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18121s%@EXTRADEFS@%$EXTRADEFS%g
18122s%@LD_LIBS@%$LD_LIBS%g
18123s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
18124s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
18125s%@RESPROGRAM@%$RESPROGRAM%g
18126s%@RESCOMP@%$RESCOMP%g
18127s%@RESFLAGS@%$RESFLAGS%g
18128s%@REZFLAGS@%$REZFLAGS%g
18129s%@DEREZFLAGS@%$DEREZFLAGS%g
18130s%@LIBWXMACRES@%$LIBWXMACRES%g
18131s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18132s%@DLLTOOL@%$DLLTOOL%g
18133s%@AS@%$AS%g
18134s%@NM@%$NM%g
18135s%@LD@%$LD%g
18136s%@MAKEINFO@%$MAKEINFO%g
18137s%@SET_MAKE@%$SET_MAKE%g
18138s%@subdirs@%$subdirs%g
18139
18140CEOF
18141EOF
18142
18143cat >> $CONFIG_STATUS <<\EOF
18144
18145# Split the substitutions into bite-sized pieces for seds with
18146# small command number limits, like on Digital OSF/1 and HP-UX.
18147ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18148ac_file=1 # Number of current file.
18149ac_beg=1 # First line for current file.
18150ac_end=$ac_max_sed_cmds # Line after last line for current file.
18151ac_more_lines=:
18152ac_sed_cmds=""
18153while $ac_more_lines; do
18154 if test $ac_beg -gt 1; then
18155 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18156 else
18157 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18158 fi
18159 if test ! -s conftest.s$ac_file; then
18160 ac_more_lines=false
18161 rm -f conftest.s$ac_file
18162 else
18163 if test -z "$ac_sed_cmds"; then
18164 ac_sed_cmds="sed -f conftest.s$ac_file"
18165 else
18166 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18167 fi
18168 ac_file=`expr $ac_file + 1`
18169 ac_beg=$ac_end
18170 ac_end=`expr $ac_end + $ac_max_sed_cmds`
18171 fi
18172done
18173if test -z "$ac_sed_cmds"; then
18174 ac_sed_cmds=cat
18175fi
18176EOF
18177
18178cat >> $CONFIG_STATUS <<EOF
18179
18180CONFIG_FILES=\${CONFIG_FILES-"wx-config
18181 src/make.env
18182 src/makeprog.env
18183 src/makelib.env
18184 Makefile
18185 "}
18186EOF
18187cat >> $CONFIG_STATUS <<\EOF
18188for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18189 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18190 case "$ac_file" in
18191 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18192 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18193 *) ac_file_in="${ac_file}.in" ;;
18194 esac
18195
18196 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18197
18198 # Remove last slash and all that follows it. Not all systems have dirname.
18199 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18200 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18201 # The file is in a subdirectory.
18202 test ! -d "$ac_dir" && mkdir "$ac_dir"
18203 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18204 # A "../" for each directory in $ac_dir_suffix.
18205 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18206 else
18207 ac_dir_suffix= ac_dots=
18208 fi
18209
18210 case "$ac_given_srcdir" in
18211 .) srcdir=.
18212 if test -z "$ac_dots"; then top_srcdir=.
18213 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18214 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18215 *) # Relative path.
18216 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18217 top_srcdir="$ac_dots$ac_given_srcdir" ;;
18218 esac
18219
18220 case "$ac_given_INSTALL" in
18221 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18222 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18223 esac
18224
18225 echo creating "$ac_file"
18226 rm -f "$ac_file"
18227 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18228 case "$ac_file" in
18229 *Makefile*) ac_comsub="1i\\
18230# $configure_input" ;;
18231 *) ac_comsub= ;;
18232 esac
18233
18234 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18235 sed -e "$ac_comsub
18236s%@configure_input@%$configure_input%g
18237s%@srcdir@%$srcdir%g
18238s%@top_srcdir@%$top_srcdir%g
18239s%@INSTALL@%$INSTALL%g
18240" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18241fi; done
18242rm -f conftest.s*
18243
18244# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18245# NAME is the cpp macro being defined and VALUE is the value it is being given.
18246#
18247# ac_d sets the value in "#define NAME VALUE" lines.
18248ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18249ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18250ac_dC='\3'
18251ac_dD='%g'
18252# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18253ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18254ac_uB='\([ ]\)%\1#\2define\3'
18255ac_uC=' '
18256ac_uD='\4%g'
18257# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18258ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18259ac_eB='$%\1#\2define\3'
18260ac_eC=' '
18261ac_eD='%g'
18262
18263if test "${CONFIG_HEADERS+set}" != set; then
18264EOF
18265cat >> $CONFIG_STATUS <<EOF
18266 CONFIG_HEADERS="setup.h:setup.h.in"
18267EOF
18268cat >> $CONFIG_STATUS <<\EOF
18269fi
18270for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18271 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18272 case "$ac_file" in
18273 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18274 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18275 *) ac_file_in="${ac_file}.in" ;;
18276 esac
18277
18278 echo creating $ac_file
18279
18280 rm -f conftest.frag conftest.in conftest.out
18281 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18282 cat $ac_file_inputs > conftest.in
18283
18284EOF
18285
18286# Transform confdefs.h into a sed script conftest.vals that substitutes
18287# the proper values into config.h.in to produce config.h. And first:
18288# Protect against being on the right side of a sed subst in config.status.
18289# Protect against being in an unquoted here document in config.status.
18290rm -f conftest.vals
18291cat > conftest.hdr <<\EOF
18292s/[\\&%]/\\&/g
18293s%[\\$`]%\\&%g
18294s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18295s%ac_d%ac_u%gp
18296s%ac_u%ac_e%gp
18297EOF
18298sed -n -f conftest.hdr confdefs.h > conftest.vals
18299rm -f conftest.hdr
18300
18301# This sed command replaces #undef with comments. This is necessary, for
18302# example, in the case of _POSIX_SOURCE, which is predefined and required
18303# on some systems where configure will not decide to define it.
18304cat >> conftest.vals <<\EOF
18305s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18306EOF
18307
18308# Break up conftest.vals because some shells have a limit on
18309# the size of here documents, and old seds have small limits too.
18310
18311rm -f conftest.tail
18312while :
18313do
18314 ac_lines=`grep -c . conftest.vals`
18315 # grep -c gives empty output for an empty file on some AIX systems.
18316 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18317 # Write a limited-size here document to conftest.frag.
18318 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18319 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18320 echo 'CEOF
18321 sed -f conftest.frag conftest.in > conftest.out
18322 rm -f conftest.in
18323 mv conftest.out conftest.in
18324' >> $CONFIG_STATUS
18325 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18326 rm -f conftest.vals
18327 mv conftest.tail conftest.vals
18328done
18329rm -f conftest.vals
18330
18331cat >> $CONFIG_STATUS <<\EOF
18332 rm -f conftest.frag conftest.h
18333 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18334 cat conftest.in >> conftest.h
18335 rm -f conftest.in
18336 if cmp -s $ac_file conftest.h 2>/dev/null; then
18337 echo "$ac_file is unchanged"
18338 rm -f conftest.h
18339 else
18340 # Remove last slash and all that follows it. Not all systems have dirname.
18341 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18342 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18343 # The file is in a subdirectory.
18344 test ! -d "$ac_dir" && mkdir "$ac_dir"
18345 fi
18346 rm -f $ac_file
18347 mv conftest.h $ac_file
18348 fi
18349fi; done
18350
18351EOF
18352cat >> $CONFIG_STATUS <<EOF
18353
18354 SETUPH_DIR="${SETUPH_DIR}"
18355 TOOLKIT_NAME="${TOOLKIT_NAME}"
18356 LN_S="${LN_S}"
18357
18358
18359EOF
18360cat >> $CONFIG_STATUS <<\EOF
18361
18362 if test ! -f wx${TOOLKIT_NAME}-config; then
18363 chmod +x wx-config
18364 mv wx-config wx${TOOLKIT_NAME}-config
18365 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
18366 fi
18367
18368
18369 if test ! -d lib; then
18370 mkdir lib
18371 fi
18372 if test ! -d lib/wx; then
18373 mkdir lib/wx
18374 fi
18375 if test ! -d lib/wx/include; then
18376 mkdir lib/wx/include
18377 fi
18378 if test ! -d lib/wx/include/wx; then
18379 mkdir lib/wx/include/wx
18380 fi
18381 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
18382 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
18383 fi
18384 if test -f setup.h; then
18385 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
18386 fi
18387
18388
18389 if test ! -d include; then
18390 mkdir include
18391 fi
18392 if test ! -d include/wx; then
18393 mkdir include/wx
18394 fi
18395 if test ! -d include/wx/${SETUPH_DIR}; then
18396 mkdir include/wx/${SETUPH_DIR}
18397 fi
18398 if test -f setup.h; then
18399 cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h
18400 fi
18401
18402
18403exit 0
18404EOF
18405chmod +x $CONFIG_STATUS
18406rm -fr confdefs* $ac_clean_files
18407test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
18408
18409if test "$no_recursion" != yes; then
18410
18411 # Remove --cache-file and --srcdir arguments so they do not pile up.
18412 ac_sub_configure_args=
18413 ac_prev=
18414 for ac_arg in $ac_configure_args; do
18415 if test -n "$ac_prev"; then
18416 ac_prev=
18417 continue
18418 fi
18419 case "$ac_arg" in
18420 -cache-file | --cache-file | --cache-fil | --cache-fi \
18421 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18422 ac_prev=cache_file ;;
18423 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18424 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
18425 ;;
18426 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18427 ac_prev=srcdir ;;
18428 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18429 ;;
18430 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18431 esac
18432 done
18433
18434 for ac_config_dir in demos samples utils contrib; do
18435
18436 # Do not complain, so a configure script can configure whichever
18437 # parts of a large source tree are present.
18438 if test ! -d $srcdir/$ac_config_dir; then
18439 continue
18440 fi
18441
18442 echo configuring in $ac_config_dir
18443
18444 case "$srcdir" in
18445 .) ;;
18446 *)
18447 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18448 else
18449 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18450 fi
18451 ;;
18452 esac
18453
18454 ac_popdir=`pwd`
18455 cd $ac_config_dir
18456
18457 # A "../" for each directory in /$ac_config_dir.
18458 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
18459
18460 case "$srcdir" in
18461 .) # No --srcdir option. We are building in place.
18462 ac_sub_srcdir=$srcdir ;;
18463 /*) # Absolute path.
18464 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
18465 *) # Relative path.
18466 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
18467 esac
18468
18469 # Check for guested configure; otherwise get Cygnus style configure.
18470 if test -f $ac_sub_srcdir/configure; then
18471 ac_sub_configure=$ac_sub_srcdir/configure
18472 elif test -f $ac_sub_srcdir/configure.in; then
18473 ac_sub_configure=$ac_configure
18474 else
18475 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
18476 ac_sub_configure=
18477 fi
18478
18479 # The recursion is here.
18480 if test -n "$ac_sub_configure"; then
18481
18482 # Make the cache file name correct relative to the subdirectory.
18483 case "$cache_file" in
18484 /*) ac_sub_cache_file=$cache_file ;;
18485 *) # Relative path.
18486 ac_sub_cache_file="$ac_dots$cache_file" ;;
18487 esac
18488 case "$ac_given_INSTALL" in
18489 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18490 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18491 esac
18492
18493 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
18494 # The eval makes quoting arguments work.
18495 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
18496 then :
18497 else
18498 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
18499 fi
18500 fi
18501
18502 cd $ac_popdir
18503 done
18504fi
18505
18506