]> git.saurik.com Git - wxWidgets.git/blame_incremental - configure
honour min/max size in wxMGL's wxWindow::DoSetSize
[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
40
41
42
43
44
45
46
47
48
49
50
51
52# Configure paths for GTK+
53# Owen Taylor 97-11-3
54
55
56
57# Guess values for system-dependent variables and create Makefiles.
58# Generated automatically using autoconf version 2.13
59# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
60#
61# This configure script is free software; the Free Software Foundation
62# gives unlimited permission to copy, distribute and modify it.
63
64# Defaults:
65ac_help=
66ac_default_prefix=/usr/local
67# Any additions from configure.in:
68ac_help="$ac_help
69 --enable-gui use GUI classes"
70ac_help="$ac_help
71 --enable-universal use wxWindows GUI controls instead of native ones"
72ac_help="$ac_help
73 --with-gtk use GTK+"
74ac_help="$ac_help
75 --with-motif use Motif/Lesstif"
76ac_help="$ac_help
77 --with-mac use Mac OS X"
78ac_help="$ac_help
79 --with-wine use WINE"
80ac_help="$ac_help
81 --with-msw use MS-Windows"
82ac_help="$ac_help
83 --with-pm use OS/2 Presentation Manager"
84ac_help="$ac_help
85 --with-mgl use SciTech MGL"
86ac_help="$ac_help
87 --with-microwin use MicroWindows"
88ac_help="$ac_help
89 --with-x11 use X11"
90ac_help="$ac_help
91 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
92ac_help="$ac_help
93 --with-libpng use libpng (PNG image format)"
94ac_help="$ac_help
95 --with-libjpeg use libjpeg (JPEG file format)"
96ac_help="$ac_help
97 --with-libtiff use libtiff (TIFF file format)"
98ac_help="$ac_help
99 --with-opengl use OpenGL (or Mesa)"
100ac_help="$ac_help
101 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
102ac_help="$ac_help
103 --with-regex enable support for wxRegEx class"
104ac_help="$ac_help
105 --with-zlib use zlib for LZW compression"
106ac_help="$ac_help
107 --with-odbc use the IODBC and wxODBC classes"
108ac_help="$ac_help
109 --enable-shared create shared library code"
110ac_help="$ac_help
111 --enable-soname set the DT_SONAME field in ELF shared libraries"
112ac_help="$ac_help
113 --enable-optimise create optimised code"
114ac_help="$ac_help
115 --enable-debug same as debug_flag and debug_info"
116ac_help="$ac_help
117 --enable-precomp enable use of precompiled headers (Mac OS X)"
118ac_help="$ac_help
119 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
120ac_help="$ac_help
121 --enable-debug_info create code with debugging information"
122ac_help="$ac_help
123 --enable-debug_gdb create code with extra GDB debugging information"
124ac_help="$ac_help
125 --enable-debug_cntxt use wxDebugContext"
126ac_help="$ac_help
127 --enable-mem_tracing create code with memory tracing"
128ac_help="$ac_help
129 --enable-profile create code with profiling information"
130ac_help="$ac_help
131 --enable-no_rtti create code without RTTI information"
132ac_help="$ac_help
133 --enable-no_exceptions create code without C++ exceptions handling"
134ac_help="$ac_help
135 --enable-permissive compile code disregarding strict ANSI"
136ac_help="$ac_help
137 --enable-no_deps create code without dependency information"
138ac_help="$ac_help
139 --enable-compat20 enable wxWindows 2.0 compatibility"
140ac_help="$ac_help
141 --enable-compat22 enable wxWindows 2.2 compatibility"
142ac_help="$ac_help
143 --enable-intl use internationalization system"
144ac_help="$ac_help
145 --enable-config use wxConfig (and derived) classes"
146ac_help="$ac_help
147 --enable-protocols use wxProtocol and derived classes"
148ac_help="$ac_help
149 --enable-ftp use wxFTP (requires wxProtocol"
150ac_help="$ac_help
151 --enable-http use wxHTTP (requires wxProtocol"
152ac_help="$ac_help
153 --enable-fileproto use wxFileProto class (requires wxProtocol"
154ac_help="$ac_help
155 --enable-sockets use socket/network classes"
156ac_help="$ac_help
157 --enable-ipc use interprocess communication (wxSocket etc.)"
158ac_help="$ac_help
159 --enable-cmdline use wxCmdLineParser class"
160ac_help="$ac_help
161 --enable-datetime use wxDateTime class"
162ac_help="$ac_help
163 --enable-timedate use obsolete wxDate/wxTime classes"
164ac_help="$ac_help
165 --enable-stopwatch use wxStopWatch class"
166ac_help="$ac_help
167 --enable-dialupman use dialup network classes"
168ac_help="$ac_help
169 --enable-apple_ieee use the Apple IEEE codec"
170ac_help="$ac_help
171 --enable-timer use wxTimer class"
172ac_help="$ac_help
173 --enable-wave use wxWave class"
174ac_help="$ac_help
175 --enable-fraction use wxFraction class"
176ac_help="$ac_help
177 --enable-dynlib use wxLibrary class for DLL loading"
178ac_help="$ac_help
179 --enable-dynamicloader use (new) wxDynamicLibrary class"
180ac_help="$ac_help
181 --enable-longlong use wxLongLong class"
182ac_help="$ac_help
183 --enable-geometry use geometry class"
184ac_help="$ac_help
185 --enable-log use logging system"
186ac_help="$ac_help
187 --enable-streams use wxStream etc classes"
188ac_help="$ac_help
189 --enable-file use wxFile classes"
190ac_help="$ac_help
191 --enable-ffile use wxFFile classes"
192ac_help="$ac_help
193 --enable-textbuf use wxTextBuffer class"
194ac_help="$ac_help
195 --enable-textfile use wxTextFile class"
196ac_help="$ac_help
197 --enable-fontmap use font encodings conversion classes"
198ac_help="$ac_help
199 --enable-unicode compile wxString with Unicode support"
200ac_help="$ac_help
201 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
202ac_help="$ac_help
203 --enable-wxprintfv use wxWindows implementation of vprintf()"
204ac_help="$ac_help
205 --enable-std_iostreams use standard C++ stream classes"
206ac_help="$ac_help
207 --enable-filesystem use virtual file systems classes"
208ac_help="$ac_help
209 --enable-fs_inet use virtual HTTP/FTP filesystems"
210ac_help="$ac_help
211 --enable-fs_zip use virtual ZIP filesystems"
212ac_help="$ac_help
213 --enable-zipstream use wxZipInputStream"
214ac_help="$ac_help
215 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
216ac_help="$ac_help
217 --enable-snglinst use wxSingleInstanceChecker class"
218ac_help="$ac_help
219 --enable-mimetype use wxMimeTypesManager"
220ac_help="$ac_help
221 --enable-sysoptions use wxSystemOptions"
222ac_help="$ac_help
223 --enable-url use wxURL class"
224ac_help="$ac_help
225 --enable-protocol use wxProtocol class"
226ac_help="$ac_help
227 --enable-protocol-http HTTP support in wxProtocol"
228ac_help="$ac_help
229 --enable-protocol-ftp FTP support in wxProtocol"
230ac_help="$ac_help
231 --enable-protocol-file FILE support in wxProtocol"
232ac_help="$ac_help
233 --enable-threads use threads"
234ac_help="$ac_help
235 --enable-docview use document view architecture"
236ac_help="$ac_help
237 --enable-help use help subsystem"
238ac_help="$ac_help
239 --enable-mshtmlhelp use MS HTML Help (win32)"
240ac_help="$ac_help
241 --enable-html use wxHTML sub-library"
242ac_help="$ac_help
243 --enable-htmlhelp use wxHTML-based help"
244ac_help="$ac_help
245 --enable-constraints use layout-constraints system"
246ac_help="$ac_help
247 --enable-printarch use printing architecture"
248ac_help="$ac_help
249 --enable-mdi use multiple document interface architecture"
250ac_help="$ac_help
251 --enable-loggui use standard GUI logger"
252ac_help="$ac_help
253 --enable-logwin use wxLogWindow"
254ac_help="$ac_help
255 --enable-logdialog use wxLogDialog"
256ac_help="$ac_help
257 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
258ac_help="$ac_help
259 --enable-prologio use Prolog IO library"
260ac_help="$ac_help
261 --enable-resources use wxWindows resources"
262ac_help="$ac_help
263 --enable-xresources use X resources for save (default for gtk+)"
264ac_help="$ac_help
265 --enable-clipboard use wxClipboard classes"
266ac_help="$ac_help
267 --enable-dnd use Drag'n'Drop classes"
268ac_help="$ac_help
269 --enable-metafile use win32 metafiles"
270ac_help="$ac_help
271 --enable-treelayout use wxTreeLayout classes"
272ac_help="$ac_help
273 --enable-controls use all usual controls"
274ac_help="$ac_help
275 --enable-accel use accelerators"
276ac_help="$ac_help
277 --enable-button use wxButton class"
278ac_help="$ac_help
279 --enable-bmpbutton use wxBitmapButton class"
280ac_help="$ac_help
281 --enable-calendar use wxCalendarCtrl class"
282ac_help="$ac_help
283 --enable-caret use wxCaret class"
284ac_help="$ac_help
285 --enable-checkbox use wxCheckBox class"
286ac_help="$ac_help
287 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
288ac_help="$ac_help
289 --enable-choice use wxChoice class"
290ac_help="$ac_help
291 --enable-combobox use wxComboBox classes"
292ac_help="$ac_help
293 --enable-gauge use wxGauge class"
294ac_help="$ac_help
295 --enable-grid use wxGrid class"
296ac_help="$ac_help
297 --enable-newgrid use new wxGrid class"
298ac_help="$ac_help
299 --enable-imaglist use wxImageList class"
300ac_help="$ac_help
301 --enable-listbox use wxListBox class"
302ac_help="$ac_help
303 --enable-listctrl use wxListCtrl class"
304ac_help="$ac_help
305 --enable-notebook use wxNotebook class"
306ac_help="$ac_help
307 --enable-propsheet use wxPropertySheet class"
308ac_help="$ac_help
309 --enable-radiobox use wxRadioBox class"
310ac_help="$ac_help
311 --enable-radiobtn use wxRadioButton class"
312ac_help="$ac_help
313 --enable-sash use wxSashWindow class"
314ac_help="$ac_help
315 --enable-scrollbar use wxScrollBar class and scrollable windows"
316ac_help="$ac_help
317 --enable-slider use wxSlider class"
318ac_help="$ac_help
319 --enable-spinbtn use wxSpinButton class"
320ac_help="$ac_help
321 --enable-spinctrl use wxSpinCtrl class"
322ac_help="$ac_help
323 --enable-splitter use wxSplitterWindow class"
324ac_help="$ac_help
325 --enable-statbmp use wxStaticBitmap class"
326ac_help="$ac_help
327 --enable-statbox use wxStaticBox class"
328ac_help="$ac_help
329 --enable-statline use wxStaticLine class"
330ac_help="$ac_help
331 --enable-stattext use wxStaticText class"
332ac_help="$ac_help
333 --enable-statusbar use wxStatusBar class"
334ac_help="$ac_help
335 --enable-tabdialog use wxTabControl class"
336ac_help="$ac_help
337 --enable-textctrl use wxTextCtrl class"
338ac_help="$ac_help
339 --enable-togglebtn use wxToggleButton class"
340ac_help="$ac_help
341 --enable-toolbar use wxToolBar class"
342ac_help="$ac_help
343 --enable-tbarnative use native wxToolBar class"
344ac_help="$ac_help
345 --enable-tbarsmpl use wxToolBarSimple class"
346ac_help="$ac_help
347 --enable-treectrl use wxTreeCtrl class"
348ac_help="$ac_help
349 --enable-tipwindow use wxTipWindow class"
350ac_help="$ac_help
351 --enable-popupwin use wxPopUpWindow class"
352ac_help="$ac_help
353 --enable-commondlg use all common dialogs"
354ac_help="$ac_help
355 --enable-choicedlg use wxChoiceDialog"
356ac_help="$ac_help
357 --enable-coldlg use wxColourDialog"
358ac_help="$ac_help
359 --enable-filedlg use wxFileDialog"
360ac_help="$ac_help
361 --enable-finddlg use wxFindReplaceDialog"
362ac_help="$ac_help
363 --enable-fontdlg use wxFontDialog"
364ac_help="$ac_help
365 --enable-dirdlg use wxDirDialog"
366ac_help="$ac_help
367 --enable-msgdlg use wxMessageDialog"
368ac_help="$ac_help
369 --enable-numberdlg use wxNumberEntryDialog"
370ac_help="$ac_help
371 --enable-splash use wxSplashScreen"
372ac_help="$ac_help
373 --enable-textdlg use wxTextDialog"
374ac_help="$ac_help
375 --enable-tipdlg use startup tips"
376ac_help="$ac_help
377 --enable-progressdlg use wxProgressDialog"
378ac_help="$ac_help
379 --enable-wizarddlg use wxWizard"
380ac_help="$ac_help
381 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
382ac_help="$ac_help
383 --enable-miniframe use wxMiniFrame class"
384ac_help="$ac_help
385 --enable-tooltips use wxToolTip class"
386ac_help="$ac_help
387 --enable-splines use spline drawing code"
388ac_help="$ac_help
389 --enable-validators use wxValidator and derived classes"
390ac_help="$ac_help
391 --enable-busyinfo use wxBusyInfo"
392ac_help="$ac_help
393 --enable-joystick use wxJoystick (Linux only)"
394ac_help="$ac_help
395 --enable-metafiles use wxMetaFile (Windows only)"
396ac_help="$ac_help
397 --enable-dragimage use wxDragImage"
398ac_help="$ac_help
399 --enable-palette use wxPalette class"
400ac_help="$ac_help
401 --enable-image use wxImage class"
402ac_help="$ac_help
403 --enable-gif use gif images (GIF file format)"
404ac_help="$ac_help
405 --enable-pcx use pcx images (PCX file format)"
406ac_help="$ac_help
407 --enable-iff use iff images (IFF file format)"
408ac_help="$ac_help
409 --enable-pnm use pnm images (PNM file format)"
410ac_help="$ac_help
411 --enable-xpm use xpm images (XPM file format)"
412ac_help="$ac_help
413 --enable-icocur use Windows ICO and CUR formats"
414ac_help="$ac_help
415 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
416ac_help="$ac_help
417 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
418ac_help="$ac_help
419 --disable-gtktest Do not try to compile and run a test GTK program"
420ac_help="$ac_help
421 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
422ac_help="$ac_help
423 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
424ac_help="$ac_help
425 --disable-gtktest Do not try to compile and run a test GTK program"
426ac_help="$ac_help
427 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
428ac_help="$ac_help
429 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
430ac_help="$ac_help
431 --disable-gtktest Do not try to compile and run a test GTK program"
432ac_help="$ac_help
433 --with-x use the X Window System"
434ac_help="$ac_help
435 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
436
437# Initialize some variables set by options.
438# The variables have the same names as the options, with
439# dashes changed to underlines.
440build=NONE
441cache_file=./config.cache
442exec_prefix=NONE
443host=NONE
444no_create=
445nonopt=NONE
446no_recursion=
447prefix=NONE
448program_prefix=NONE
449program_suffix=NONE
450program_transform_name=s,x,x,
451silent=
452site=
453srcdir=
454target=NONE
455verbose=
456x_includes=NONE
457x_libraries=NONE
458bindir='${exec_prefix}/bin'
459sbindir='${exec_prefix}/sbin'
460libexecdir='${exec_prefix}/libexec'
461datadir='${prefix}/share'
462sysconfdir='${prefix}/etc'
463sharedstatedir='${prefix}/com'
464localstatedir='${prefix}/var'
465libdir='${exec_prefix}/lib'
466includedir='${prefix}/include'
467oldincludedir='/usr/include'
468infodir='${prefix}/info'
469mandir='${prefix}/man'
470
471# Initialize some other variables.
472subdirs=
473MFLAGS= MAKEFLAGS=
474SHELL=${CONFIG_SHELL-/bin/sh}
475# Maximum number of lines to put in a shell here document.
476ac_max_here_lines=12
477
478ac_prev=
479for ac_option
480do
481
482 # If the previous option needs an argument, assign it.
483 if test -n "$ac_prev"; then
484 eval "$ac_prev=\$ac_option"
485 ac_prev=
486 continue
487 fi
488
489 case "$ac_option" in
490 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
491 *) ac_optarg= ;;
492 esac
493
494 # Accept the important Cygnus configure options, so we can diagnose typos.
495
496 case "$ac_option" in
497
498 -bindir | --bindir | --bindi | --bind | --bin | --bi)
499 ac_prev=bindir ;;
500 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
501 bindir="$ac_optarg" ;;
502
503 -build | --build | --buil | --bui | --bu)
504 ac_prev=build ;;
505 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
506 build="$ac_optarg" ;;
507
508 -cache-file | --cache-file | --cache-fil | --cache-fi \
509 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
510 ac_prev=cache_file ;;
511 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
512 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
513 cache_file="$ac_optarg" ;;
514
515 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
516 ac_prev=datadir ;;
517 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
518 | --da=*)
519 datadir="$ac_optarg" ;;
520
521 -disable-* | --disable-*)
522 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
523 # Reject names that are not valid shell variable names.
524 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
525 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
526 fi
527 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
528 eval "enable_${ac_feature}=no" ;;
529
530 -enable-* | --enable-*)
531 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
532 # Reject names that are not valid shell variable names.
533 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
534 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
535 fi
536 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
537 case "$ac_option" in
538 *=*) ;;
539 *) ac_optarg=yes ;;
540 esac
541 eval "enable_${ac_feature}='$ac_optarg'" ;;
542
543 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
544 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
545 | --exec | --exe | --ex)
546 ac_prev=exec_prefix ;;
547 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
548 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
549 | --exec=* | --exe=* | --ex=*)
550 exec_prefix="$ac_optarg" ;;
551
552 -gas | --gas | --ga | --g)
553 # Obsolete; use --with-gas.
554 with_gas=yes ;;
555
556 -help | --help | --hel | --he)
557 # Omit some internal or obsolete options to make the list less imposing.
558 # This message is too long to be a string in the A/UX 3.1 sh.
559 cat << EOF
560Usage: configure [options] [host]
561Options: [defaults in brackets after descriptions]
562Configuration:
563 --cache-file=FILE cache test results in FILE
564 --help print this message
565 --no-create do not create output files
566 --quiet, --silent do not print \`checking...' messages
567 --version print the version of autoconf that created configure
568Directory and file names:
569 --prefix=PREFIX install architecture-independent files in PREFIX
570 [$ac_default_prefix]
571 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
572 [same as prefix]
573 --bindir=DIR user executables in DIR [EPREFIX/bin]
574 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
575 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
576 --datadir=DIR read-only architecture-independent data in DIR
577 [PREFIX/share]
578 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
579 --sharedstatedir=DIR modifiable architecture-independent data in DIR
580 [PREFIX/com]
581 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
582 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
583 --includedir=DIR C header files in DIR [PREFIX/include]
584 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
585 --infodir=DIR info documentation in DIR [PREFIX/info]
586 --mandir=DIR man documentation in DIR [PREFIX/man]
587 --srcdir=DIR find the sources in DIR [configure dir or ..]
588 --program-prefix=PREFIX prepend PREFIX to installed program names
589 --program-suffix=SUFFIX append SUFFIX to installed program names
590 --program-transform-name=PROGRAM
591 run sed PROGRAM on installed program names
592EOF
593 cat << EOF
594Host type:
595 --build=BUILD configure for building on BUILD [BUILD=HOST]
596 --host=HOST configure for HOST [guessed]
597 --target=TARGET configure for TARGET [TARGET=HOST]
598Features and packages:
599 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
600 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
601 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
602 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
603 --x-includes=DIR X include files are in DIR
604 --x-libraries=DIR X library files are in DIR
605EOF
606 if test -n "$ac_help"; then
607 echo "--enable and --with options recognized:$ac_help"
608 fi
609 exit 0 ;;
610
611 -host | --host | --hos | --ho)
612 ac_prev=host ;;
613 -host=* | --host=* | --hos=* | --ho=*)
614 host="$ac_optarg" ;;
615
616 -includedir | --includedir | --includedi | --included | --include \
617 | --includ | --inclu | --incl | --inc)
618 ac_prev=includedir ;;
619 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
620 | --includ=* | --inclu=* | --incl=* | --inc=*)
621 includedir="$ac_optarg" ;;
622
623 -infodir | --infodir | --infodi | --infod | --info | --inf)
624 ac_prev=infodir ;;
625 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
626 infodir="$ac_optarg" ;;
627
628 -libdir | --libdir | --libdi | --libd)
629 ac_prev=libdir ;;
630 -libdir=* | --libdir=* | --libdi=* | --libd=*)
631 libdir="$ac_optarg" ;;
632
633 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
634 | --libexe | --libex | --libe)
635 ac_prev=libexecdir ;;
636 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
637 | --libexe=* | --libex=* | --libe=*)
638 libexecdir="$ac_optarg" ;;
639
640 -localstatedir | --localstatedir | --localstatedi | --localstated \
641 | --localstate | --localstat | --localsta | --localst \
642 | --locals | --local | --loca | --loc | --lo)
643 ac_prev=localstatedir ;;
644 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
645 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
646 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
647 localstatedir="$ac_optarg" ;;
648
649 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
650 ac_prev=mandir ;;
651 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
652 mandir="$ac_optarg" ;;
653
654 -nfp | --nfp | --nf)
655 # Obsolete; use --without-fp.
656 with_fp=no ;;
657
658 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
659 | --no-cr | --no-c)
660 no_create=yes ;;
661
662 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
663 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
664 no_recursion=yes ;;
665
666 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
667 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
668 | --oldin | --oldi | --old | --ol | --o)
669 ac_prev=oldincludedir ;;
670 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
671 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
672 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
673 oldincludedir="$ac_optarg" ;;
674
675 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
676 ac_prev=prefix ;;
677 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
678 prefix="$ac_optarg" ;;
679
680 -program-prefix | --program-prefix | --program-prefi | --program-pref \
681 | --program-pre | --program-pr | --program-p)
682 ac_prev=program_prefix ;;
683 -program-prefix=* | --program-prefix=* | --program-prefi=* \
684 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
685 program_prefix="$ac_optarg" ;;
686
687 -program-suffix | --program-suffix | --program-suffi | --program-suff \
688 | --program-suf | --program-su | --program-s)
689 ac_prev=program_suffix ;;
690 -program-suffix=* | --program-suffix=* | --program-suffi=* \
691 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
692 program_suffix="$ac_optarg" ;;
693
694 -program-transform-name | --program-transform-name \
695 | --program-transform-nam | --program-transform-na \
696 | --program-transform-n | --program-transform- \
697 | --program-transform | --program-transfor \
698 | --program-transfo | --program-transf \
699 | --program-trans | --program-tran \
700 | --progr-tra | --program-tr | --program-t)
701 ac_prev=program_transform_name ;;
702 -program-transform-name=* | --program-transform-name=* \
703 | --program-transform-nam=* | --program-transform-na=* \
704 | --program-transform-n=* | --program-transform-=* \
705 | --program-transform=* | --program-transfor=* \
706 | --program-transfo=* | --program-transf=* \
707 | --program-trans=* | --program-tran=* \
708 | --progr-tra=* | --program-tr=* | --program-t=*)
709 program_transform_name="$ac_optarg" ;;
710
711 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
712 | -silent | --silent | --silen | --sile | --sil)
713 silent=yes ;;
714
715 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
716 ac_prev=sbindir ;;
717 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
718 | --sbi=* | --sb=*)
719 sbindir="$ac_optarg" ;;
720
721 -sharedstatedir | --sharedstatedir | --sharedstatedi \
722 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
723 | --sharedst | --shareds | --shared | --share | --shar \
724 | --sha | --sh)
725 ac_prev=sharedstatedir ;;
726 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
727 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
728 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
729 | --sha=* | --sh=*)
730 sharedstatedir="$ac_optarg" ;;
731
732 -site | --site | --sit)
733 ac_prev=site ;;
734 -site=* | --site=* | --sit=*)
735 site="$ac_optarg" ;;
736
737 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
738 ac_prev=srcdir ;;
739 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
740 srcdir="$ac_optarg" ;;
741
742 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
743 | --syscon | --sysco | --sysc | --sys | --sy)
744 ac_prev=sysconfdir ;;
745 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
746 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
747 sysconfdir="$ac_optarg" ;;
748
749 -target | --target | --targe | --targ | --tar | --ta | --t)
750 ac_prev=target ;;
751 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
752 target="$ac_optarg" ;;
753
754 -v | -verbose | --verbose | --verbos | --verbo | --verb)
755 verbose=yes ;;
756
757 -version | --version | --versio | --versi | --vers)
758 echo "configure generated by autoconf version 2.13"
759 exit 0 ;;
760
761 -with-* | --with-*)
762 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
763 # Reject names that are not valid shell variable names.
764 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
765 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
766 fi
767 ac_package=`echo $ac_package| sed 's/-/_/g'`
768 case "$ac_option" in
769 *=*) ;;
770 *) ac_optarg=yes ;;
771 esac
772 eval "with_${ac_package}='$ac_optarg'" ;;
773
774 -without-* | --without-*)
775 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
776 # Reject names that are not valid shell variable names.
777 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
778 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
779 fi
780 ac_package=`echo $ac_package| sed 's/-/_/g'`
781 eval "with_${ac_package}=no" ;;
782
783 --x)
784 # Obsolete; use --with-x.
785 with_x=yes ;;
786
787 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
788 | --x-incl | --x-inc | --x-in | --x-i)
789 ac_prev=x_includes ;;
790 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
791 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
792 x_includes="$ac_optarg" ;;
793
794 -x-libraries | --x-libraries | --x-librarie | --x-librari \
795 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
796 ac_prev=x_libraries ;;
797 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
798 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
799 x_libraries="$ac_optarg" ;;
800
801 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
802 ;;
803
804 *)
805 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
806 echo "configure: warning: $ac_option: invalid host type" 1>&2
807 fi
808 if test "x$nonopt" != xNONE; then
809 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
810 fi
811 nonopt="$ac_option"
812 ;;
813
814 esac
815done
816
817if test -n "$ac_prev"; then
818 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
819fi
820
821trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
822
823# File descriptor usage:
824# 0 standard input
825# 1 file creation
826# 2 errors and warnings
827# 3 some systems may open it to /dev/tty
828# 4 used on the Kubota Titan
829# 6 checking for... messages and results
830# 5 compiler messages saved in config.log
831if test "$silent" = yes; then
832 exec 6>/dev/null
833else
834 exec 6>&1
835fi
836exec 5>./config.log
837
838echo "\
839This file contains any messages produced by compilers while
840running configure, to aid debugging if configure makes a mistake.
841" 1>&5
842
843# Strip out --no-create and --no-recursion so they do not pile up.
844# Also quote any args containing shell metacharacters.
845ac_configure_args=
846for ac_arg
847do
848 case "$ac_arg" in
849 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
850 | --no-cr | --no-c) ;;
851 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
852 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
853 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
854 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
855 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
856 esac
857done
858
859# NLS nuisances.
860# Only set these to C if already set. These must not be set unconditionally
861# because not all systems understand e.g. LANG=C (notably SCO).
862# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
863# Non-C LC_CTYPE values break the ctype check.
864if test "${LANG+set}" = set; then LANG=C; export LANG; fi
865if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
866if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
867if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
868
869# confdefs.h avoids OS command line length limits that DEFS can exceed.
870rm -rf conftest* confdefs.h
871# AIX cpp loses on an empty file, so make sure it contains at least a newline.
872echo > confdefs.h
873
874# A filename unique to this package, relative to the directory that
875# configure is in, which we can look for to find out if srcdir is correct.
876ac_unique_file=wx-config.in
877
878# Find the source files, if location was not specified.
879if test -z "$srcdir"; then
880 ac_srcdir_defaulted=yes
881 # Try the directory containing this script, then its parent.
882 ac_prog=$0
883 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
884 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
885 srcdir=$ac_confdir
886 if test ! -r $srcdir/$ac_unique_file; then
887 srcdir=..
888 fi
889else
890 ac_srcdir_defaulted=no
891fi
892if test ! -r $srcdir/$ac_unique_file; then
893 if test "$ac_srcdir_defaulted" = yes; then
894 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
895 else
896 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
897 fi
898fi
899srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
900
901# Prefer explicitly selected file to automatically selected ones.
902if test -z "$CONFIG_SITE"; then
903 if test "x$prefix" != xNONE; then
904 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
905 else
906 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
907 fi
908fi
909for ac_site_file in $CONFIG_SITE; do
910 if test -r "$ac_site_file"; then
911 echo "loading site script $ac_site_file"
912 . "$ac_site_file"
913 fi
914done
915
916if test -r "$cache_file"; then
917 echo "loading cache $cache_file"
918 . $cache_file
919else
920 echo "creating cache $cache_file"
921 > $cache_file
922fi
923
924ac_ext=c
925# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
926ac_cpp='$CPP $CPPFLAGS'
927ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
928ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
929cross_compiling=$ac_cv_prog_cc_cross
930
931ac_exeext=
932ac_objext=o
933if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
934 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
935 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
936 ac_n= ac_c='
937' ac_t=' '
938 else
939 ac_n=-n ac_c= ac_t=
940 fi
941else
942 ac_n= ac_c='\c' ac_t=
943fi
944
945
946
947ac_aux_dir=
948for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
949 if test -f $ac_dir/install-sh; then
950 ac_aux_dir=$ac_dir
951 ac_install_sh="$ac_aux_dir/install-sh -c"
952 break
953 elif test -f $ac_dir/install.sh; then
954 ac_aux_dir=$ac_dir
955 ac_install_sh="$ac_aux_dir/install.sh -c"
956 break
957 fi
958done
959if test -z "$ac_aux_dir"; then
960 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
961fi
962ac_config_guess=$ac_aux_dir/config.guess
963ac_config_sub=$ac_aux_dir/config.sub
964ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
965
966
967# Do some error checking and defaulting for the host and target type.
968# The inputs are:
969# configure --host=HOST --target=TARGET --build=BUILD NONOPT
970#
971# The rules are:
972# 1. You are not allowed to specify --host, --target, and nonopt at the
973# same time.
974# 2. Host defaults to nonopt.
975# 3. If nonopt is not specified, then host defaults to the current host,
976# as determined by config.guess.
977# 4. Target and build default to nonopt.
978# 5. If nonopt is not specified, then target and build default to host.
979
980# The aliases save the names the user supplied, while $host etc.
981# will get canonicalized.
982case $host---$target---$nonopt in
983NONE---*---* | *---NONE---* | *---*---NONE) ;;
984*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
985esac
986
987
988# Make sure we can run config.sub.
989if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
990else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
991fi
992
993echo $ac_n "checking host system type""... $ac_c" 1>&6
994echo "configure:995: checking host system type" >&5
995
996host_alias=$host
997case "$host_alias" in
998NONE)
999 case $nonopt in
1000 NONE)
1001 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1002 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1003 fi ;;
1004 *) host_alias=$nonopt ;;
1005 esac ;;
1006esac
1007
1008host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1009host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1010host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1011host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1012echo "$ac_t""$host" 1>&6
1013
1014echo $ac_n "checking target system type""... $ac_c" 1>&6
1015echo "configure:1016: checking target system type" >&5
1016
1017target_alias=$target
1018case "$target_alias" in
1019NONE)
1020 case $nonopt in
1021 NONE) target_alias=$host_alias ;;
1022 *) target_alias=$nonopt ;;
1023 esac ;;
1024esac
1025
1026target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1027target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1028target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1029target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1030echo "$ac_t""$target" 1>&6
1031
1032echo $ac_n "checking build system type""... $ac_c" 1>&6
1033echo "configure:1034: checking build system type" >&5
1034
1035build_alias=$build
1036case "$build_alias" in
1037NONE)
1038 case $nonopt in
1039 NONE) build_alias=$host_alias ;;
1040 *) build_alias=$nonopt ;;
1041 esac ;;
1042esac
1043
1044build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1045build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1046build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1047build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1048echo "$ac_t""$build" 1>&6
1049
1050test "$host_alias" != "$target_alias" &&
1051 test "$program_prefix$program_suffix$program_transform_name" = \
1052 NONENONEs,x,x, &&
1053 program_prefix=${target_alias}-
1054
1055
1056
1057WX_MAJOR_VERSION_NUMBER=2
1058WX_MINOR_VERSION_NUMBER=3
1059WX_RELEASE_NUMBER=3
1060
1061WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1062WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1063
1064WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1065
1066WX_CURRENT=2
1067WX_REVISION=0
1068WX_AGE=0
1069
1070
1071
1072USE_UNIX=1
1073USE_WIN32=0
1074USE_DOS=0
1075USE_BEOS=0
1076USE_MAC=0
1077
1078USE_LINUX=
1079USE_SGI=
1080USE_HPUX=
1081USE_SYSV=
1082USE_SVR4=
1083USE_AIX=
1084USE_SUN=
1085USE_SOLARIS=
1086USE_SUNOS=
1087USE_ALPHA=
1088USE_OSF=
1089USE_BSD=
1090USE_DARWIN=
1091USE_FREEBSD=
1092USE_OPENBSD=
1093USE_NETBSD=
1094USE_VMS=
1095USE_ULTRIX=
1096USE_DATA_GENERAL=
1097
1098NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1099
1100CPP_MT_FLAG=-D_REENTRANT
1101
1102ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
1103
1104DEFAULT_wxUSE_GTK=0
1105DEFAULT_wxUSE_MAC=0
1106DEFAULT_wxUSE_MGL=0
1107DEFAULT_wxUSE_MICROWIN=0
1108DEFAULT_wxUSE_MOTIF=0
1109DEFAULT_wxUSE_MSW=0
1110DEFAULT_wxUSE_PM=0
1111DEFAULT_wxUSE_WINE=0
1112DEFAULT_wxUSE_X11=0
1113
1114DEFAULT_DEFAULT_wxUSE_GTK=0
1115DEFAULT_DEFAULT_wxUSE_MAC=0
1116DEFAULT_DEFAULT_wxUSE_MGL=0
1117DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1118DEFAULT_DEFAULT_wxUSE_MOTIF=0
1119DEFAULT_DEFAULT_wxUSE_MSW=0
1120DEFAULT_DEFAULT_wxUSE_PM=0
1121DEFAULT_DEFAULT_wxUSE_WINE=0
1122DEFAULT_DEFAULT_wxUSE_X11=0
1123
1124PROGRAM_EXT=
1125SO_SUFFIX=so
1126
1127case "${host}" in
1128 *-hp-hpux* )
1129 USE_HPUX=1
1130 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1131 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1132 SO_SUFFIX=sl
1133 cat >> confdefs.h <<\EOF
1134#define __HPUX__ 1
1135EOF
1136
1137 ;;
1138 *-*-linux* )
1139 USE_LINUX=1
1140 cat >> confdefs.h <<\EOF
1141#define __LINUX__ 1
1142EOF
1143
1144 TMP=`uname -m`
1145 if test "x$TMP" = "xalpha"; then
1146 USE_ALPHA=1
1147 cat >> confdefs.h <<\EOF
1148#define __ALPHA__ 1
1149EOF
1150
1151 fi
1152 DEFAULT_DEFAULT_wxUSE_GTK=1
1153 ;;
1154 *-*-irix5* | *-*-irix6* )
1155 USE_SGI=1
1156 USE_SVR4=1
1157 cat >> confdefs.h <<\EOF
1158#define __SGI__ 1
1159EOF
1160
1161 cat >> confdefs.h <<\EOF
1162#define __SVR4__ 1
1163EOF
1164
1165 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1166 ;;
1167 *-*-solaris2* )
1168 USE_SUN=1
1169 USE_SOLARIS=1
1170 USE_SVR4=1
1171 cat >> confdefs.h <<\EOF
1172#define __SUN__ 1
1173EOF
1174
1175 cat >> confdefs.h <<\EOF
1176#define __SOLARIS__ 1
1177EOF
1178
1179 cat >> confdefs.h <<\EOF
1180#define __SVR4__ 1
1181EOF
1182
1183 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1184 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1185 ;;
1186 *-*-sunos4* )
1187 USE_SUN=1
1188 USE_SUNOS=1
1189 USE_BSD=1
1190 cat >> confdefs.h <<\EOF
1191#define __SUN__ 1
1192EOF
1193
1194 cat >> confdefs.h <<\EOF
1195#define __SUNOS__ 1
1196EOF
1197
1198 cat >> confdefs.h <<\EOF
1199#define __BSD__ 1
1200EOF
1201
1202 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1203 ;;
1204 *-*-freebsd*)
1205 USE_BSD=1
1206 USE_FREEBSD=1
1207 CPP_MT_FLAG=-D_THREAD_SAFE
1208 cat >> confdefs.h <<\EOF
1209#define __FREEBSD__ 1
1210EOF
1211
1212 cat >> confdefs.h <<\EOF
1213#define __BSD__ 1
1214EOF
1215
1216 DEFAULT_DEFAULT_wxUSE_GTK=1
1217 ;;
1218 *-*-openbsd*)
1219 USE_BSD=1
1220 USE_OPENBSD=1
1221 cat >> confdefs.h <<\EOF
1222#define __FREEBSD__ 1
1223EOF
1224
1225 cat >> confdefs.h <<\EOF
1226#define __OPENBSD__ 1
1227EOF
1228
1229 DEFAULT_DEFAULT_wxUSE_GTK=1
1230 ;;
1231 *-*-netbsd*)
1232 USE_BSD=1
1233 USE_NETBSD=1
1234 cat >> confdefs.h <<\EOF
1235#define __FREEBSD__ 1
1236EOF
1237
1238 cat >> confdefs.h <<\EOF
1239#define __NETBSD__ 1
1240EOF
1241
1242 DEFAULT_DEFAULT_wxUSE_GTK=1
1243 ;;
1244 *-*-osf* )
1245 USE_ALPHA=1
1246 USE_OSF=1
1247 cat >> confdefs.h <<\EOF
1248#define __ALPHA__ 1
1249EOF
1250
1251 cat >> confdefs.h <<\EOF
1252#define __OSF__ 1
1253EOF
1254
1255 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1256 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1257 ;;
1258 *-*-dgux5* )
1259 USE_ALPHA=1
1260 USE_SVR4=1
1261 cat >> confdefs.h <<\EOF
1262#define __ALPHA__ 1
1263EOF
1264
1265 cat >> confdefs.h <<\EOF
1266#define __SVR4__ 1
1267EOF
1268
1269 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1270 ;;
1271 *-*-sysv5* )
1272 USE_SYSV=1
1273 USE_SVR4=1
1274 cat >> confdefs.h <<\EOF
1275#define __SYSV__ 1
1276EOF
1277
1278 cat >> confdefs.h <<\EOF
1279#define __SVR4__ 1
1280EOF
1281
1282 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1283 ;;
1284 *-*-aix* )
1285 USE_AIX=1
1286 USE_SYSV=1
1287 USE_SVR4=1
1288 cat >> confdefs.h <<\EOF
1289#define __AIX__ 1
1290EOF
1291
1292 cat >> confdefs.h <<\EOF
1293#define __SYSV__ 1
1294EOF
1295
1296 cat >> confdefs.h <<\EOF
1297#define __SVR4__ 1
1298EOF
1299
1300 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1301 ;;
1302
1303 *-*-cygwin* | *-*-mingw32* )
1304 USE_UNIX=0
1305 USE_WIN32=1
1306 SO_SUFFIX=dll
1307 cat >> confdefs.h <<\EOF
1308#define __WIN32__ 1
1309EOF
1310
1311 cat >> confdefs.h <<\EOF
1312#define __WIN95__ 1
1313EOF
1314
1315 cat >> confdefs.h <<\EOF
1316#define __WINDOWS__ 1
1317EOF
1318
1319 cat >> confdefs.h <<\EOF
1320#define __GNUWIN32__ 1
1321EOF
1322
1323 cat >> confdefs.h <<\EOF
1324#define STRICT 1
1325EOF
1326
1327 cat >> confdefs.h <<\EOF
1328#define WINVER 0x0400
1329EOF
1330
1331 PROGRAM_EXT=".exe"
1332 RESCOMP=windres
1333 DEFAULT_DEFAULT_wxUSE_MSW=1
1334 ;;
1335
1336 *-pc-msdosdjgpp )
1337 USE_UNIX=0
1338 USE_DOS=1
1339 cat >> confdefs.h <<\EOF
1340#define __DOS__ 1
1341EOF
1342
1343 PROGRAM_EXT=".exe"
1344 DEFAULT_DEFAULT_wxUSE_MGL=1
1345 DEFAULT_DEFAULT_wxUSE_SHARED=0
1346 ;;
1347
1348 *-pc-os2_emx | *-pc-os2-emx )
1349 cat >> confdefs.h <<\EOF
1350#define __EMX__ 1
1351EOF
1352
1353 PROGRAM_EXT=".exe"
1354 DEFAULT_DEFAULT_wxUSE_PM=1
1355 ;;
1356
1357 powerpc-*-darwin* )
1358 USE_BSD=1
1359 USE_DARWIN=1
1360 CPP_MT_FLAG=
1361 SO_SUFFIX=dylib
1362 cat >> confdefs.h <<\EOF
1363#define __BSD__ 1
1364EOF
1365
1366 cat >> confdefs.h <<\EOF
1367#define __DARWIN__ 1
1368EOF
1369
1370 cat >> confdefs.h <<\EOF
1371#define __POWERPC__ 1
1372EOF
1373
1374 DEFAULT_DEFAULT_wxUSE_MAC=1
1375 ;;
1376
1377 *-*-beos* )
1378 USE_BEOS=1
1379 cat >> confdefs.h <<\EOF
1380#define __BEOS__ 1
1381EOF
1382
1383 ;;
1384
1385 *)
1386 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1387esac
1388
1389if test "$USE_UNIX" = 1 ; then
1390 wxUSE_UNIX=yes
1391 cat >> confdefs.h <<\EOF
1392#define __UNIX__ 1
1393EOF
1394
1395fi
1396
1397if test "$USE_LINUX" = 1; then
1398 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
1399echo "configure:1400: checking for glibc 2.1 or later" >&5
1400if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1402else
1403
1404 cat > conftest.$ac_ext <<EOF
1405#line 1406 "configure"
1406#include "confdefs.h"
1407#include <features.h>
1408int main() {
1409
1410 #if !__GLIBC_PREREQ(2, 1)
1411 #error not glibc2.1
1412 #endif
1413
1414; return 0; }
1415EOF
1416if { (eval echo configure:1417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1417 rm -rf conftest*
1418
1419 wx_lib_glibc21=yes
1420
1421else
1422 echo "configure: failed program was:" >&5
1423 cat conftest.$ac_ext >&5
1424 rm -rf conftest*
1425
1426 wx_lib_glibc21=no
1427
1428
1429fi
1430rm -f conftest*
1431
1432fi
1433
1434echo "$ac_t""$wx_lib_glibc21" 1>&6
1435 if test "$wx_lib_glibc21" = "yes"; then
1436 cat >> confdefs.h <<\EOF
1437#define wxHAVE_GLIBC2 1
1438EOF
1439
1440 fi
1441fi
1442
1443
1444
1445
1446 wx_arg_cache_file="configarg.cache"
1447 echo "loading argument cache $wx_arg_cache_file"
1448 rm -f ${wx_arg_cache_file}.tmp
1449 touch ${wx_arg_cache_file}.tmp
1450 touch ${wx_arg_cache_file}
1451
1452
1453DEBUG_CONFIGURE=0
1454if test $DEBUG_CONFIGURE = 1; then
1455 DEFAULT_wxUSE_UNIVERSAL=no
1456
1457 DEFAULT_wxUSE_THREADS=yes
1458
1459 DEFAULT_wxUSE_SHARED=yes
1460 DEFAULT_wxUSE_SONAME=no
1461 DEFAULT_wxUSE_OPTIMISE=no
1462 DEFAULT_wxUSE_PROFILE=no
1463 DEFAULT_wxUSE_NO_DEPS=no
1464 DEFAULT_wxUSE_NO_RTTI=yes
1465 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1466 DEFAULT_wxUSE_PERMISSIVE=no
1467 DEFAULT_wxUSE_DEBUG_FLAG=yes
1468 DEFAULT_wxUSE_DEBUG_INFO=yes
1469 DEFAULT_wxUSE_DEBUG_GDB=yes
1470 DEFAULT_wxUSE_MEM_TRACING=no
1471 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1472 DEFAULT_wxUSE_DMALLOC=no
1473 DEFAULT_wxUSE_PRECOMP=no
1474 DEFAULT_wxUSE_APPLE_IEEE=no
1475
1476 DEFAULT_wxUSE_LOG=yes
1477 DEFAULT_wxUSE_LOGWINDOW=no
1478 DEFAULT_wxUSE_LOGGUI=no
1479 DEFAULT_wxUSE_LOGDIALOG=no
1480
1481 DEFAULT_wxUSE_GUI=yes
1482 DEFAULT_wxUSE_CONTROLS=no
1483
1484 DEFAULT_wxUSE_REGEX=no
1485 DEFAULT_wxUSE_ZLIB=no
1486 DEFAULT_wxUSE_LIBPNG=no
1487 DEFAULT_wxUSE_LIBJPEG=no
1488 DEFAULT_wxUSE_LIBTIFF=no
1489 DEFAULT_wxUSE_ODBC=no
1490 DEFAULT_wxUSE_OPENGL=no
1491
1492 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1493 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1494 DEFAULT_wxUSE_STD_IOSTREAM=no
1495 DEFAULT_wxUSE_CMDLINE_PARSER=no
1496 DEFAULT_wxUSE_DATETIME=no
1497 DEFAULT_wxUSE_TIMEDATE=no
1498 DEFAULT_wxUSE_TIMER=no
1499 DEFAULT_wxUSE_STOPWATCH=no
1500 DEFAULT_wxUSE_FILE=no
1501 DEFAULT_wxUSE_FFILE=no
1502 DEFAULT_wxUSE_TEXTBUFFER=no
1503 DEFAULT_wxUSE_TEXTFILE=no
1504 DEFAULT_wxUSE_WAVE=no
1505 DEFAULT_wxUSE_INTL=no
1506 DEFAULT_wxUSE_CONFIG=no
1507 DEFAULT_wxUSE_FONTMAP=no
1508 DEFAULT_wxUSE_STREAMS=no
1509 DEFAULT_wxUSE_SOCKETS=no
1510 DEFAULT_wxUSE_DIALUP_MANAGER=no
1511 DEFAULT_wxUSE_JOYSTICK=no
1512 DEFAULT_wxUSE_DYNLIB_CLASS=no
1513 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1514 DEFAULT_wxUSE_LONGLONG=no
1515 DEFAULT_wxUSE_GEOMETRY=no
1516
1517 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1518 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1519 DEFAULT_wxUSE_POSTSCRIPT=no
1520
1521 DEFAULT_wxUSE_X_RESOURCES=no
1522 DEFAULT_wxUSE_CLIPBOARD=no
1523 DEFAULT_wxUSE_TOOLTIPS=no
1524 DEFAULT_wxUSE_DRAG_AND_DROP=no
1525 DEFAULT_wxUSE_DRAGIMAGE=no
1526 DEFAULT_wxUSE_SPLINES=no
1527
1528 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1529 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1530 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1531
1532 DEFAULT_wxUSE_PROLOGIO=no
1533 DEFAULT_wxUSE_RESOURCES=no
1534 DEFAULT_wxUSE_CONSTRAINTS=no
1535 DEFAULT_wxUSE_IPC=no
1536 DEFAULT_wxUSE_HELP=no
1537 DEFAULT_wxUSE_MS_HTML_HELP=no
1538 DEFAULT_wxUSE_WXHTML_HELP=no
1539 DEFAULT_wxUSE_TREELAYOUT=no
1540 DEFAULT_wxUSE_METAFILE=no
1541 DEFAULT_wxUSE_MIMETYPE=no
1542 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1543 DEFAULT_wxUSE_PROTOCOL=no
1544 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1545 DEFAULT_wxUSE_PROTOCOL_FTP=no
1546 DEFAULT_wxUSE_PROTOCOL_FILE=no
1547 DEFAULT_wxUSE_URL=no
1548
1549 DEFAULT_wxUSE_COMMONDLGS=no
1550 DEFAULT_wxUSE_CHOICEDLG=no
1551 DEFAULT_wxUSE_COLOURDLG=no
1552 DEFAULT_wxUSE_DIRDLG=no
1553 DEFAULT_wxUSE_FILEDLG=no
1554 DEFAULT_wxUSE_FINDREPLDLG=no
1555 DEFAULT_wxUSE_FONTDLG=no
1556 DEFAULT_wxUSE_MSGDLG=no
1557 DEFAULT_wxUSE_NUMBERDLG=no
1558 DEFAULT_wxUSE_TEXTDLG=no
1559 DEFAULT_wxUSE_SPLASH=no
1560 DEFAULT_wxUSE_STARTUP_TIPS=no
1561 DEFAULT_wxUSE_PROGRESSDLG=no
1562 DEFAULT_wxUSE_WIZARDDLG=no
1563
1564 DEFAULT_wxUSE_MENUS=no
1565 DEFAULT_wxUSE_MINIFRAME=no
1566 DEFAULT_wxUSE_HTML=no
1567 DEFAULT_wxUSE_FILESYSTEM=no
1568 DEFAULT_wxUSE_FS_INET=no
1569 DEFAULT_wxUSE_FS_ZIP=no
1570 DEFAULT_wxUSE_BUSYINFO=no
1571 DEFAULT_wxUSE_ZIPSTREAM=no
1572 DEFAULT_wxUSE_VALIDATORS=no
1573
1574 DEFAULT_wxUSE_ACCEL=no
1575 DEFAULT_wxUSE_BUTTON=no
1576 DEFAULT_wxUSE_BMPBUTTON=no
1577 DEFAULT_wxUSE_CALCTRL=no
1578 DEFAULT_wxUSE_CARET=no
1579 DEFAULT_wxUSE_CHECKBOX=no
1580 DEFAULT_wxUSE_CHECKLST=no
1581 DEFAULT_wxUSE_CHOICE=no
1582 DEFAULT_wxUSE_COMBOBOX=no
1583 DEFAULT_wxUSE_GAUGE=no
1584 DEFAULT_wxUSE_GRID=no
1585 DEFAULT_wxUSE_NEW_GRID=no
1586 DEFAULT_wxUSE_IMAGLIST=no
1587 DEFAULT_wxUSE_LISTBOX=no
1588 DEFAULT_wxUSE_LISTCTRL=no
1589 DEFAULT_wxUSE_NOTEBOOK=no
1590 DEFAULT_wxUSE_PROPSHEET=no
1591 DEFAULT_wxUSE_RADIOBOX=no
1592 DEFAULT_wxUSE_RADIOBTN=no
1593 DEFAULT_wxUSE_SASH=no
1594 DEFAULT_wxUSE_SCROLLBAR=no
1595 DEFAULT_wxUSE_SLIDER=no
1596 DEFAULT_wxUSE_SPINBTN=no
1597 DEFAULT_wxUSE_SPINCTRL=no
1598 DEFAULT_wxUSE_SPLITTER=no
1599 DEFAULT_wxUSE_STATBMP=no
1600 DEFAULT_wxUSE_STATBOX=no
1601 DEFAULT_wxUSE_STATLINE=no
1602 DEFAULT_wxUSE_STATTEXT=no
1603 DEFAULT_wxUSE_STATUSBAR=yes
1604 DEFAULT_wxUSE_TABDIALOG=no
1605 DEFAULT_wxUSE_TEXTCTRL=no
1606 DEFAULT_wxUSE_TOGGLEBTN=no
1607 DEFAULT_wxUSE_TOOLBAR=no
1608 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1609 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1610 DEFAULT_wxUSE_TREECTRL=no
1611 DEFAULT_wxUSE_POPUPWIN=no
1612 DEFAULT_wxUSE_TIPWINDOW=no
1613
1614 DEFAULT_wxUSE_UNICODE=no
1615 DEFAULT_wxUSE_UNICODE_MSLU=no
1616 DEFAULT_wxUSE_WCSRTOMBS=no
1617
1618 DEFAULT_wxUSE_PALETTE=no
1619 DEFAULT_wxUSE_IMAGE=no
1620 DEFAULT_wxUSE_GIF=no
1621 DEFAULT_wxUSE_PCX=no
1622 DEFAULT_wxUSE_PNM=no
1623 DEFAULT_wxUSE_IFF=no
1624 DEFAULT_wxUSE_XPM=no
1625 DEFAULT_wxUSE_ICO_CUR=no
1626else
1627 DEFAULT_wxUSE_UNIVERSAL=no
1628
1629 DEFAULT_wxUSE_THREADS=yes
1630
1631 DEFAULT_wxUSE_SHARED=yes
1632 DEFAULT_wxUSE_SONAME=no
1633 DEFAULT_wxUSE_OPTIMISE=yes
1634 DEFAULT_wxUSE_PROFILE=no
1635 DEFAULT_wxUSE_NO_DEPS=no
1636 DEFAULT_wxUSE_NO_RTTI=yes
1637 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1638 DEFAULT_wxUSE_PERMISSIVE=no
1639 DEFAULT_wxUSE_DEBUG_FLAG=no
1640 DEFAULT_wxUSE_DEBUG_INFO=no
1641 DEFAULT_wxUSE_DEBUG_GDB=no
1642 DEFAULT_wxUSE_MEM_TRACING=no
1643 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1644 DEFAULT_wxUSE_DMALLOC=no
1645 DEFAULT_wxUSE_PRECOMP=no
1646 DEFAULT_wxUSE_APPLE_IEEE=yes
1647
1648 DEFAULT_wxUSE_LOG=yes
1649 DEFAULT_wxUSE_LOGWINDOW=yes
1650 DEFAULT_wxUSE_LOGGUI=yes
1651 DEFAULT_wxUSE_LOGDIALOG=yes
1652
1653 DEFAULT_wxUSE_GUI=yes
1654
1655 DEFAULT_wxUSE_REGEX=yes
1656 DEFAULT_wxUSE_ZLIB=yes
1657 DEFAULT_wxUSE_LIBPNG=yes
1658 DEFAULT_wxUSE_LIBJPEG=yes
1659 DEFAULT_wxUSE_LIBTIFF=yes
1660 DEFAULT_wxUSE_ODBC=no
1661 DEFAULT_wxUSE_OPENGL=no
1662
1663 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1664 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1665 DEFAULT_wxUSE_STD_IOSTREAM=no
1666 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1667 DEFAULT_wxUSE_DATETIME=yes
1668 DEFAULT_wxUSE_TIMEDATE=no
1669 DEFAULT_wxUSE_TIMER=yes
1670 DEFAULT_wxUSE_STOPWATCH=yes
1671 DEFAULT_wxUSE_FILE=yes
1672 DEFAULT_wxUSE_FFILE=yes
1673 DEFAULT_wxUSE_TEXTBUFFER=yes
1674 DEFAULT_wxUSE_TEXTFILE=yes
1675 DEFAULT_wxUSE_WAVE=no
1676 DEFAULT_wxUSE_INTL=yes
1677 DEFAULT_wxUSE_CONFIG=yes
1678 DEFAULT_wxUSE_FONTMAP=yes
1679 DEFAULT_wxUSE_STREAMS=yes
1680 DEFAULT_wxUSE_SOCKETS=yes
1681 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1682 DEFAULT_wxUSE_JOYSTICK=yes
1683 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1684 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1685 DEFAULT_wxUSE_LONGLONG=yes
1686 DEFAULT_wxUSE_GEOMETRY=yes
1687
1688 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1689 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1690 DEFAULT_wxUSE_POSTSCRIPT=yes
1691
1692 DEFAULT_wxUSE_X_RESOURCES=no
1693 DEFAULT_wxUSE_CLIPBOARD=yes
1694 DEFAULT_wxUSE_TOOLTIPS=yes
1695 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1696 DEFAULT_wxUSE_DRAGIMAGE=yes
1697 DEFAULT_wxUSE_SPLINES=yes
1698
1699 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1700 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1701 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1702
1703 DEFAULT_wxUSE_PROLOGIO=yes
1704 DEFAULT_wxUSE_RESOURCES=yes
1705 DEFAULT_wxUSE_CONSTRAINTS=yes
1706 DEFAULT_wxUSE_IPC=yes
1707 DEFAULT_wxUSE_HELP=yes
1708 DEFAULT_wxUSE_MS_HTML_HELP=yes
1709 DEFAULT_wxUSE_WXHTML_HELP=yes
1710 DEFAULT_wxUSE_TREELAYOUT=yes
1711 DEFAULT_wxUSE_METAFILE=yes
1712 DEFAULT_wxUSE_MIMETYPE=yes
1713 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1714 DEFAULT_wxUSE_PROTOCOL=yes
1715 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1716 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1717 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1718 DEFAULT_wxUSE_URL=yes
1719
1720 DEFAULT_wxUSE_COMMONDLGS=yes
1721 DEFAULT_wxUSE_CHOICEDLG=yes
1722 DEFAULT_wxUSE_COLOURDLG=yes
1723 DEFAULT_wxUSE_DIRDLG=yes
1724 DEFAULT_wxUSE_FILEDLG=yes
1725 DEFAULT_wxUSE_FINDREPLDLG=yes
1726 DEFAULT_wxUSE_FONTDLG=yes
1727 DEFAULT_wxUSE_MSGDLG=yes
1728 DEFAULT_wxUSE_NUMBERDLG=yes
1729 DEFAULT_wxUSE_TEXTDLG=yes
1730 DEFAULT_wxUSE_SPLASH=yes
1731 DEFAULT_wxUSE_STARTUP_TIPS=yes
1732 DEFAULT_wxUSE_PROGRESSDLG=yes
1733 DEFAULT_wxUSE_WIZARDDLG=yes
1734
1735 DEFAULT_wxUSE_MENUS=yes
1736 DEFAULT_wxUSE_MINIFRAME=yes
1737 DEFAULT_wxUSE_HTML=yes
1738 DEFAULT_wxUSE_FILESYSTEM=yes
1739 DEFAULT_wxUSE_FS_INET=yes
1740 DEFAULT_wxUSE_FS_ZIP=yes
1741 DEFAULT_wxUSE_BUSYINFO=yes
1742 DEFAULT_wxUSE_ZIPSTREAM=yes
1743 DEFAULT_wxUSE_VALIDATORS=yes
1744
1745 DEFAULT_wxUSE_ACCEL=yes
1746 DEFAULT_wxUSE_BUTTON=yes
1747 DEFAULT_wxUSE_BMPBUTTON=yes
1748 DEFAULT_wxUSE_CALCTRL=yes
1749 DEFAULT_wxUSE_CARET=yes
1750 DEFAULT_wxUSE_CHECKBOX=yes
1751 DEFAULT_wxUSE_CHECKLST=yes
1752 DEFAULT_wxUSE_CHOICE=yes
1753 DEFAULT_wxUSE_COMBOBOX=yes
1754 DEFAULT_wxUSE_GAUGE=yes
1755 DEFAULT_wxUSE_GRID=yes
1756 DEFAULT_wxUSE_NEW_GRID=yes
1757 DEFAULT_wxUSE_IMAGLIST=yes
1758 DEFAULT_wxUSE_LISTBOX=yes
1759 DEFAULT_wxUSE_LISTCTRL=yes
1760 DEFAULT_wxUSE_NOTEBOOK=yes
1761 DEFAULT_wxUSE_PROPSHEET=yes
1762 DEFAULT_wxUSE_RADIOBOX=yes
1763 DEFAULT_wxUSE_RADIOBTN=yes
1764 DEFAULT_wxUSE_SASH=yes
1765 DEFAULT_wxUSE_SCROLLBAR=yes
1766 DEFAULT_wxUSE_SLIDER=yes
1767 DEFAULT_wxUSE_SPINBTN=yes
1768 DEFAULT_wxUSE_SPINCTRL=yes
1769 DEFAULT_wxUSE_SPLITTER=yes
1770 DEFAULT_wxUSE_STATBMP=yes
1771 DEFAULT_wxUSE_STATBOX=yes
1772 DEFAULT_wxUSE_STATLINE=yes
1773 DEFAULT_wxUSE_STATTEXT=yes
1774 DEFAULT_wxUSE_STATUSBAR=yes
1775 DEFAULT_wxUSE_TABDIALOG=no
1776 DEFAULT_wxUSE_TEXTCTRL=yes
1777 DEFAULT_wxUSE_TOGGLEBTN=yes
1778 DEFAULT_wxUSE_TOOLBAR=yes
1779 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1780 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1781 DEFAULT_wxUSE_TREECTRL=yes
1782 DEFAULT_wxUSE_POPUPWIN=yes
1783 DEFAULT_wxUSE_TIPWINDOW=yes
1784
1785 DEFAULT_wxUSE_UNICODE=no
1786 DEFAULT_wxUSE_UNICODE_MSLU=yes
1787 DEFAULT_wxUSE_WCSRTOMBS=no
1788
1789 DEFAULT_wxUSE_PALETTE=yes
1790 DEFAULT_wxUSE_IMAGE=yes
1791 DEFAULT_wxUSE_GIF=yes
1792 DEFAULT_wxUSE_PCX=yes
1793 DEFAULT_wxUSE_IFF=no
1794 DEFAULT_wxUSE_PNM=yes
1795 DEFAULT_wxUSE_XPM=yes
1796 DEFAULT_wxUSE_ICO_CUR=yes
1797fi
1798
1799
1800
1801for toolkit in `echo $ALL_TOOLKITS`; do
1802 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1803 if test "x$LINE" != x ; then
1804 has_toolkit_in_cache=1
1805 eval "DEFAULT_$LINE"
1806 eval "CACHE_$toolkit=1"
1807 fi
1808done
1809
1810
1811
1812 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1813echo "configure:1814: checking for --enable-gui" >&5
1814 no_cache=0
1815 # Check whether --enable-gui or --disable-gui was given.
1816if test "${enable_gui+set}" = set; then
1817 enableval="$enable_gui"
1818
1819 if test "$enableval" = yes; then
1820 ac_cv_use_gui='wxUSE_GUI=yes'
1821 else
1822 ac_cv_use_gui='wxUSE_GUI=no'
1823 fi
1824
1825else
1826
1827 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1828 if test "x$LINE" != x ; then
1829 eval "DEFAULT_$LINE"
1830 else
1831 no_cache=1
1832 fi
1833
1834 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1835
1836fi
1837
1838
1839 eval "$ac_cv_use_gui"
1840 if test "$no_cache" != 1; then
1841 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1842 fi
1843
1844 if test "$wxUSE_GUI" = yes; then
1845 echo "$ac_t""yes" 1>&6
1846 else
1847 echo "$ac_t""no" 1>&6
1848 fi
1849
1850
1851if test "$wxUSE_GUI" = "yes"; then
1852
1853
1854 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1855echo "configure:1856: checking for --enable-universal" >&5
1856 no_cache=0
1857 # Check whether --enable-universal or --disable-universal was given.
1858if test "${enable_universal+set}" = set; then
1859 enableval="$enable_universal"
1860
1861 if test "$enableval" = yes; then
1862 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1863 else
1864 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1865 fi
1866
1867else
1868
1869 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1870 if test "x$LINE" != x ; then
1871 eval "DEFAULT_$LINE"
1872 else
1873 no_cache=1
1874 fi
1875
1876 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1877
1878fi
1879
1880
1881 eval "$ac_cv_use_universal"
1882 if test "$no_cache" != 1; then
1883 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1884 fi
1885
1886 if test "$wxUSE_UNIVERSAL" = yes; then
1887 echo "$ac_t""yes" 1>&6
1888 else
1889 echo "$ac_t""no" 1>&6
1890 fi
1891
1892# Check whether --with-gtk or --without-gtk was given.
1893if test "${with_gtk+set}" = set; then
1894 withval="$with_gtk"
1895 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1896fi
1897
1898# Check whether --with-motif or --without-motif was given.
1899if test "${with_motif+set}" = set; then
1900 withval="$with_motif"
1901 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1902fi
1903
1904# Check whether --with-mac or --without-mac was given.
1905if test "${with_mac+set}" = set; then
1906 withval="$with_mac"
1907 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1908fi
1909
1910# Check whether --with-wine or --without-wine was given.
1911if test "${with_wine+set}" = set; then
1912 withval="$with_wine"
1913 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1914fi
1915
1916# Check whether --with-msw or --without-msw was given.
1917if test "${with_msw+set}" = set; then
1918 withval="$with_msw"
1919 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
1920fi
1921
1922# Check whether --with-pm or --without-pm was given.
1923if test "${with_pm+set}" = set; then
1924 withval="$with_pm"
1925 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1926fi
1927
1928# Check whether --with-mgl or --without-mgl was given.
1929if test "${with_mgl+set}" = set; then
1930 withval="$with_mgl"
1931 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1932fi
1933
1934# Check whether --with-microwin or --without-microwin was given.
1935if test "${with_microwin+set}" = set; then
1936 withval="$with_microwin"
1937 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1938fi
1939
1940# Check whether --with-x11 or --without-x11 was given.
1941if test "${with_x11+set}" = set; then
1942 withval="$with_x11"
1943 wxUSE_X11="$withval" CACHE_X11=1 TOOLKIT_GIVEN=1
1944fi
1945
1946
1947# Check whether --enable-gtk2 or --disable-gtk2 was given.
1948if test "${enable_gtk2+set}" = set; then
1949 enableval="$enable_gtk2"
1950 wxUSE_GTK2=1
1951else
1952 wxUSE_GTK2=0
1953fi
1954
1955
1956
1957 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1958echo "configure:1959: checking for --with-libpng" >&5
1959 no_cache=0
1960 # Check whether --with-libpng or --without-libpng was given.
1961if test "${with_libpng+set}" = set; then
1962 withval="$with_libpng"
1963
1964 if test "$withval" = yes; then
1965 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1966 elif test "$withval" = no; then
1967 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1968 elif test "$withval" = sys; then
1969 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1970 elif test "$withval" = builtin; then
1971 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1972 else
1973 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1974 fi
1975
1976else
1977
1978 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1979 if test "x$LINE" != x ; then
1980 eval "DEFAULT_$LINE"
1981 else
1982 no_cache=1
1983 fi
1984
1985 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1986
1987fi
1988
1989
1990 eval "$ac_cv_use_libpng"
1991 if test "$no_cache" != 1; then
1992 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1993 fi
1994
1995 if test "$wxUSE_LIBPNG" = yes; then
1996 echo "$ac_t""yes" 1>&6
1997 elif test "$wxUSE_LIBPNG" = no; then
1998 echo "$ac_t""no" 1>&6
1999 elif test "$wxUSE_LIBPNG" = sys; then
2000 echo "$ac_t""system version" 1>&6
2001 elif test "$wxUSE_LIBPNG" = builtin; then
2002 echo "$ac_t""builtin version" 1>&6
2003 else
2004 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2005 fi
2006
2007
2008 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2009echo "configure:2010: checking for --with-libjpeg" >&5
2010 no_cache=0
2011 # Check whether --with-libjpeg or --without-libjpeg was given.
2012if test "${with_libjpeg+set}" = set; then
2013 withval="$with_libjpeg"
2014
2015 if test "$withval" = yes; then
2016 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2017 elif test "$withval" = no; then
2018 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2019 elif test "$withval" = sys; then
2020 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2021 elif test "$withval" = builtin; then
2022 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2023 else
2024 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2025 fi
2026
2027else
2028
2029 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2030 if test "x$LINE" != x ; then
2031 eval "DEFAULT_$LINE"
2032 else
2033 no_cache=1
2034 fi
2035
2036 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2037
2038fi
2039
2040
2041 eval "$ac_cv_use_libjpeg"
2042 if test "$no_cache" != 1; then
2043 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2044 fi
2045
2046 if test "$wxUSE_LIBJPEG" = yes; then
2047 echo "$ac_t""yes" 1>&6
2048 elif test "$wxUSE_LIBJPEG" = no; then
2049 echo "$ac_t""no" 1>&6
2050 elif test "$wxUSE_LIBJPEG" = sys; then
2051 echo "$ac_t""system version" 1>&6
2052 elif test "$wxUSE_LIBJPEG" = builtin; then
2053 echo "$ac_t""builtin version" 1>&6
2054 else
2055 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2056 fi
2057
2058
2059 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2060echo "configure:2061: checking for --with-libtiff" >&5
2061 no_cache=0
2062 # Check whether --with-libtiff or --without-libtiff was given.
2063if test "${with_libtiff+set}" = set; then
2064 withval="$with_libtiff"
2065
2066 if test "$withval" = yes; then
2067 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2068 elif test "$withval" = no; then
2069 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2070 elif test "$withval" = sys; then
2071 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2072 elif test "$withval" = builtin; then
2073 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2074 else
2075 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2076 fi
2077
2078else
2079
2080 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2081 if test "x$LINE" != x ; then
2082 eval "DEFAULT_$LINE"
2083 else
2084 no_cache=1
2085 fi
2086
2087 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2088
2089fi
2090
2091
2092 eval "$ac_cv_use_libtiff"
2093 if test "$no_cache" != 1; then
2094 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2095 fi
2096
2097 if test "$wxUSE_LIBTIFF" = yes; then
2098 echo "$ac_t""yes" 1>&6
2099 elif test "$wxUSE_LIBTIFF" = no; then
2100 echo "$ac_t""no" 1>&6
2101 elif test "$wxUSE_LIBTIFF" = sys; then
2102 echo "$ac_t""system version" 1>&6
2103 elif test "$wxUSE_LIBTIFF" = builtin; then
2104 echo "$ac_t""builtin version" 1>&6
2105 else
2106 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2107 fi
2108
2109
2110 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2111echo "configure:2112: checking for --with-opengl" >&5
2112 no_cache=0
2113 # Check whether --with-opengl or --without-opengl was given.
2114if test "${with_opengl+set}" = set; then
2115 withval="$with_opengl"
2116
2117 if test "$withval" = yes; then
2118 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2119 else
2120 ac_cv_use_opengl='wxUSE_OPENGL=no'
2121 fi
2122
2123else
2124
2125 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2126 if test "x$LINE" != x ; then
2127 eval "DEFAULT_$LINE"
2128 else
2129 no_cache=1
2130 fi
2131
2132 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2133
2134fi
2135
2136
2137 eval "$ac_cv_use_opengl"
2138 if test "$no_cache" != 1; then
2139 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2140 fi
2141
2142 if test "$wxUSE_OPENGL" = yes; then
2143 echo "$ac_t""yes" 1>&6
2144 else
2145 echo "$ac_t""no" 1>&6
2146 fi
2147
2148
2149fi
2150
2151
2152 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2153echo "configure:2154: checking for --with-dmalloc" >&5
2154 no_cache=0
2155 # Check whether --with-dmalloc or --without-dmalloc was given.
2156if test "${with_dmalloc+set}" = set; then
2157 withval="$with_dmalloc"
2158
2159 if test "$withval" = yes; then
2160 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2161 else
2162 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2163 fi
2164
2165else
2166
2167 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2168 if test "x$LINE" != x ; then
2169 eval "DEFAULT_$LINE"
2170 else
2171 no_cache=1
2172 fi
2173
2174 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2175
2176fi
2177
2178
2179 eval "$ac_cv_use_dmalloc"
2180 if test "$no_cache" != 1; then
2181 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2182 fi
2183
2184 if test "$wxUSE_DMALLOC" = yes; then
2185 echo "$ac_t""yes" 1>&6
2186 else
2187 echo "$ac_t""no" 1>&6
2188 fi
2189
2190
2191 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2192echo "configure:2193: checking for --with-regex" >&5
2193 no_cache=0
2194 # Check whether --with-regex or --without-regex was given.
2195if test "${with_regex+set}" = set; then
2196 withval="$with_regex"
2197
2198 if test "$withval" = yes; then
2199 ac_cv_use_regex='wxUSE_REGEX=yes'
2200 elif test "$withval" = no; then
2201 ac_cv_use_regex='wxUSE_REGEX=no'
2202 elif test "$withval" = sys; then
2203 ac_cv_use_regex='wxUSE_REGEX=sys'
2204 elif test "$withval" = builtin; then
2205 ac_cv_use_regex='wxUSE_REGEX=builtin'
2206 else
2207 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2208 fi
2209
2210else
2211
2212 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2213 if test "x$LINE" != x ; then
2214 eval "DEFAULT_$LINE"
2215 else
2216 no_cache=1
2217 fi
2218
2219 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2220
2221fi
2222
2223
2224 eval "$ac_cv_use_regex"
2225 if test "$no_cache" != 1; then
2226 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2227 fi
2228
2229 if test "$wxUSE_REGEX" = yes; then
2230 echo "$ac_t""yes" 1>&6
2231 elif test "$wxUSE_REGEX" = no; then
2232 echo "$ac_t""no" 1>&6
2233 elif test "$wxUSE_REGEX" = sys; then
2234 echo "$ac_t""system version" 1>&6
2235 elif test "$wxUSE_REGEX" = builtin; then
2236 echo "$ac_t""builtin version" 1>&6
2237 else
2238 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2239 fi
2240
2241
2242 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2243echo "configure:2244: checking for --with-zlib" >&5
2244 no_cache=0
2245 # Check whether --with-zlib or --without-zlib was given.
2246if test "${with_zlib+set}" = set; then
2247 withval="$with_zlib"
2248
2249 if test "$withval" = yes; then
2250 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2251 elif test "$withval" = no; then
2252 ac_cv_use_zlib='wxUSE_ZLIB=no'
2253 elif test "$withval" = sys; then
2254 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2255 elif test "$withval" = builtin; then
2256 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2257 else
2258 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2259 fi
2260
2261else
2262
2263 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2264 if test "x$LINE" != x ; then
2265 eval "DEFAULT_$LINE"
2266 else
2267 no_cache=1
2268 fi
2269
2270 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2271
2272fi
2273
2274
2275 eval "$ac_cv_use_zlib"
2276 if test "$no_cache" != 1; then
2277 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2278 fi
2279
2280 if test "$wxUSE_ZLIB" = yes; then
2281 echo "$ac_t""yes" 1>&6
2282 elif test "$wxUSE_ZLIB" = no; then
2283 echo "$ac_t""no" 1>&6
2284 elif test "$wxUSE_ZLIB" = sys; then
2285 echo "$ac_t""system version" 1>&6
2286 elif test "$wxUSE_ZLIB" = builtin; then
2287 echo "$ac_t""builtin version" 1>&6
2288 else
2289 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2290 fi
2291
2292
2293 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2294echo "configure:2295: checking for --with-odbc" >&5
2295 no_cache=0
2296 # Check whether --with-odbc or --without-odbc was given.
2297if test "${with_odbc+set}" = set; then
2298 withval="$with_odbc"
2299
2300 if test "$withval" = yes; then
2301 ac_cv_use_odbc='wxUSE_ODBC=yes'
2302 else
2303 ac_cv_use_odbc='wxUSE_ODBC=no'
2304 fi
2305
2306else
2307
2308 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2309 if test "x$LINE" != x ; then
2310 eval "DEFAULT_$LINE"
2311 else
2312 no_cache=1
2313 fi
2314
2315 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2316
2317fi
2318
2319
2320 eval "$ac_cv_use_odbc"
2321 if test "$no_cache" != 1; then
2322 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2323 fi
2324
2325 if test "$wxUSE_ODBC" = yes; then
2326 echo "$ac_t""yes" 1>&6
2327 else
2328 echo "$ac_t""no" 1>&6
2329 fi
2330
2331
2332
2333
2334 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2335echo "configure:2336: checking for --enable-shared" >&5
2336 no_cache=0
2337 # Check whether --enable-shared or --disable-shared was given.
2338if test "${enable_shared+set}" = set; then
2339 enableval="$enable_shared"
2340
2341 if test "$enableval" = yes; then
2342 ac_cv_use_shared='wxUSE_SHARED=yes'
2343 else
2344 ac_cv_use_shared='wxUSE_SHARED=no'
2345 fi
2346
2347else
2348
2349 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2350 if test "x$LINE" != x ; then
2351 eval "DEFAULT_$LINE"
2352 else
2353 no_cache=1
2354 fi
2355
2356 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2357
2358fi
2359
2360
2361 eval "$ac_cv_use_shared"
2362 if test "$no_cache" != 1; then
2363 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2364 fi
2365
2366 if test "$wxUSE_SHARED" = yes; then
2367 echo "$ac_t""yes" 1>&6
2368 else
2369 echo "$ac_t""no" 1>&6
2370 fi
2371
2372
2373 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2374echo "configure:2375: checking for --enable-soname" >&5
2375 no_cache=0
2376 # Check whether --enable-soname or --disable-soname was given.
2377if test "${enable_soname+set}" = set; then
2378 enableval="$enable_soname"
2379
2380 if test "$enableval" = yes; then
2381 ac_cv_use_soname='wxUSE_SONAME=yes'
2382 else
2383 ac_cv_use_soname='wxUSE_SONAME=no'
2384 fi
2385
2386else
2387
2388 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2389 if test "x$LINE" != x ; then
2390 eval "DEFAULT_$LINE"
2391 else
2392 no_cache=1
2393 fi
2394
2395 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2396
2397fi
2398
2399
2400 eval "$ac_cv_use_soname"
2401 if test "$no_cache" != 1; then
2402 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2403 fi
2404
2405 if test "$wxUSE_SONAME" = yes; then
2406 echo "$ac_t""yes" 1>&6
2407 else
2408 echo "$ac_t""no" 1>&6
2409 fi
2410
2411
2412 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2413echo "configure:2414: checking for --enable-optimise" >&5
2414 no_cache=0
2415 # Check whether --enable-optimise or --disable-optimise was given.
2416if test "${enable_optimise+set}" = set; then
2417 enableval="$enable_optimise"
2418
2419 if test "$enableval" = yes; then
2420 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2421 else
2422 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2423 fi
2424
2425else
2426
2427 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2428 if test "x$LINE" != x ; then
2429 eval "DEFAULT_$LINE"
2430 else
2431 no_cache=1
2432 fi
2433
2434 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2435
2436fi
2437
2438
2439 eval "$ac_cv_use_optimise"
2440 if test "$no_cache" != 1; then
2441 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2442 fi
2443
2444 if test "$wxUSE_OPTIMISE" = yes; then
2445 echo "$ac_t""yes" 1>&6
2446 else
2447 echo "$ac_t""no" 1>&6
2448 fi
2449
2450
2451 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2452echo "configure:2453: checking for --enable-debug" >&5
2453 no_cache=0
2454 # Check whether --enable-debug or --disable-debug was given.
2455if test "${enable_debug+set}" = set; then
2456 enableval="$enable_debug"
2457
2458 if test "$enableval" = yes; then
2459 ac_cv_use_debug='wxUSE_DEBUG=yes'
2460 else
2461 ac_cv_use_debug='wxUSE_DEBUG=no'
2462 fi
2463
2464else
2465
2466 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2467 if test "x$LINE" != x ; then
2468 eval "DEFAULT_$LINE"
2469 else
2470 no_cache=1
2471 fi
2472
2473 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2474
2475fi
2476
2477
2478 eval "$ac_cv_use_debug"
2479 if test "$no_cache" != 1; then
2480 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2481 fi
2482
2483 if test "$wxUSE_DEBUG" = yes; then
2484 echo "$ac_t""yes" 1>&6
2485 else
2486 echo "$ac_t""no" 1>&6
2487 fi
2488
2489
2490
2491 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2492echo "configure:2493: checking for --enable-precomp" >&5
2493 no_cache=0
2494 # Check whether --enable-precomp or --disable-precomp was given.
2495if test "${enable_precomp+set}" = set; then
2496 enableval="$enable_precomp"
2497
2498 if test "$enableval" = yes; then
2499 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2500 else
2501 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2502 fi
2503
2504else
2505
2506 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2507 if test "x$LINE" != x ; then
2508 eval "DEFAULT_$LINE"
2509 else
2510 no_cache=1
2511 fi
2512
2513 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2514
2515fi
2516
2517
2518 eval "$ac_cv_use_precomp"
2519 if test "$no_cache" != 1; then
2520 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2521 fi
2522
2523 if test "$wxUSE_PRECOMP" = yes; then
2524 echo "$ac_t""yes" 1>&6
2525 else
2526 echo "$ac_t""no" 1>&6
2527 fi
2528
2529
2530if test "$wxUSE_DEBUG" = "yes"; then
2531 DEFAULT_wxUSE_DEBUG_FLAG=yes
2532 DEFAULT_wxUSE_DEBUG_INFO=yes
2533elif test "$wxUSE_DEBUG" = "no"; then
2534 DEFAULT_wxUSE_DEBUG_FLAG=no
2535 DEFAULT_wxUSE_DEBUG_INFO=no
2536fi
2537
2538
2539 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2540echo "configure:2541: checking for --enable-debug_flag" >&5
2541 no_cache=0
2542 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2543if test "${enable_debug_flag+set}" = set; then
2544 enableval="$enable_debug_flag"
2545
2546 if test "$enableval" = yes; then
2547 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2548 else
2549 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2550 fi
2551
2552else
2553
2554 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2555 if test "x$LINE" != x ; then
2556 eval "DEFAULT_$LINE"
2557 else
2558 no_cache=1
2559 fi
2560
2561 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2562
2563fi
2564
2565
2566 eval "$ac_cv_use_debug_flag"
2567 if test "$no_cache" != 1; then
2568 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2569 fi
2570
2571 if test "$wxUSE_DEBUG_FLAG" = yes; then
2572 echo "$ac_t""yes" 1>&6
2573 else
2574 echo "$ac_t""no" 1>&6
2575 fi
2576
2577
2578 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2579echo "configure:2580: checking for --enable-debug_info" >&5
2580 no_cache=0
2581 # Check whether --enable-debug_info or --disable-debug_info was given.
2582if test "${enable_debug_info+set}" = set; then
2583 enableval="$enable_debug_info"
2584
2585 if test "$enableval" = yes; then
2586 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2587 else
2588 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2589 fi
2590
2591else
2592
2593 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2594 if test "x$LINE" != x ; then
2595 eval "DEFAULT_$LINE"
2596 else
2597 no_cache=1
2598 fi
2599
2600 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2601
2602fi
2603
2604
2605 eval "$ac_cv_use_debug_info"
2606 if test "$no_cache" != 1; then
2607 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2608 fi
2609
2610 if test "$wxUSE_DEBUG_INFO" = yes; then
2611 echo "$ac_t""yes" 1>&6
2612 else
2613 echo "$ac_t""no" 1>&6
2614 fi
2615
2616
2617 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2618echo "configure:2619: checking for --enable-debug_gdb" >&5
2619 no_cache=0
2620 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2621if test "${enable_debug_gdb+set}" = set; then
2622 enableval="$enable_debug_gdb"
2623
2624 if test "$enableval" = yes; then
2625 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2626 else
2627 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2628 fi
2629
2630else
2631
2632 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2633 if test "x$LINE" != x ; then
2634 eval "DEFAULT_$LINE"
2635 else
2636 no_cache=1
2637 fi
2638
2639 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2640
2641fi
2642
2643
2644 eval "$ac_cv_use_debug_gdb"
2645 if test "$no_cache" != 1; then
2646 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2647 fi
2648
2649 if test "$wxUSE_DEBUG_GDB" = yes; then
2650 echo "$ac_t""yes" 1>&6
2651 else
2652 echo "$ac_t""no" 1>&6
2653 fi
2654
2655
2656 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2657echo "configure:2658: checking for --enable-debug_cntxt" >&5
2658 no_cache=0
2659 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2660if test "${enable_debug_cntxt+set}" = set; then
2661 enableval="$enable_debug_cntxt"
2662
2663 if test "$enableval" = yes; then
2664 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2665 else
2666 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2667 fi
2668
2669else
2670
2671 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2672 if test "x$LINE" != x ; then
2673 eval "DEFAULT_$LINE"
2674 else
2675 no_cache=1
2676 fi
2677
2678 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2679
2680fi
2681
2682
2683 eval "$ac_cv_use_debug_cntxt"
2684 if test "$no_cache" != 1; then
2685 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2686 fi
2687
2688 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2689 echo "$ac_t""yes" 1>&6
2690 else
2691 echo "$ac_t""no" 1>&6
2692 fi
2693
2694
2695 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2696echo "configure:2697: checking for --enable-mem_tracing" >&5
2697 no_cache=0
2698 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2699if test "${enable_mem_tracing+set}" = set; then
2700 enableval="$enable_mem_tracing"
2701
2702 if test "$enableval" = yes; then
2703 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2704 else
2705 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2706 fi
2707
2708else
2709
2710 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2711 if test "x$LINE" != x ; then
2712 eval "DEFAULT_$LINE"
2713 else
2714 no_cache=1
2715 fi
2716
2717 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2718
2719fi
2720
2721
2722 eval "$ac_cv_use_mem_tracing"
2723 if test "$no_cache" != 1; then
2724 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2725 fi
2726
2727 if test "$wxUSE_MEM_TRACING" = yes; then
2728 echo "$ac_t""yes" 1>&6
2729 else
2730 echo "$ac_t""no" 1>&6
2731 fi
2732
2733
2734 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2735echo "configure:2736: checking for --enable-profile" >&5
2736 no_cache=0
2737 # Check whether --enable-profile or --disable-profile was given.
2738if test "${enable_profile+set}" = set; then
2739 enableval="$enable_profile"
2740
2741 if test "$enableval" = yes; then
2742 ac_cv_use_profile='wxUSE_PROFILE=yes'
2743 else
2744 ac_cv_use_profile='wxUSE_PROFILE=no'
2745 fi
2746
2747else
2748
2749 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2750 if test "x$LINE" != x ; then
2751 eval "DEFAULT_$LINE"
2752 else
2753 no_cache=1
2754 fi
2755
2756 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2757
2758fi
2759
2760
2761 eval "$ac_cv_use_profile"
2762 if test "$no_cache" != 1; then
2763 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2764 fi
2765
2766 if test "$wxUSE_PROFILE" = yes; then
2767 echo "$ac_t""yes" 1>&6
2768 else
2769 echo "$ac_t""no" 1>&6
2770 fi
2771
2772
2773 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2774echo "configure:2775: checking for --enable-no_rtti" >&5
2775 no_cache=0
2776 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2777if test "${enable_no_rtti+set}" = set; then
2778 enableval="$enable_no_rtti"
2779
2780 if test "$enableval" = yes; then
2781 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2782 else
2783 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2784 fi
2785
2786else
2787
2788 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2789 if test "x$LINE" != x ; then
2790 eval "DEFAULT_$LINE"
2791 else
2792 no_cache=1
2793 fi
2794
2795 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2796
2797fi
2798
2799
2800 eval "$ac_cv_use_no_rtti"
2801 if test "$no_cache" != 1; then
2802 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2803 fi
2804
2805 if test "$wxUSE_NO_RTTI" = yes; then
2806 echo "$ac_t""yes" 1>&6
2807 else
2808 echo "$ac_t""no" 1>&6
2809 fi
2810
2811
2812 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2813echo "configure:2814: checking for --enable-no_exceptions" >&5
2814 no_cache=0
2815 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2816if test "${enable_no_exceptions+set}" = set; then
2817 enableval="$enable_no_exceptions"
2818
2819 if test "$enableval" = yes; then
2820 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2821 else
2822 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2823 fi
2824
2825else
2826
2827 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2828 if test "x$LINE" != x ; then
2829 eval "DEFAULT_$LINE"
2830 else
2831 no_cache=1
2832 fi
2833
2834 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2835
2836fi
2837
2838
2839 eval "$ac_cv_use_no_exceptions"
2840 if test "$no_cache" != 1; then
2841 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2842 fi
2843
2844 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2845 echo "$ac_t""yes" 1>&6
2846 else
2847 echo "$ac_t""no" 1>&6
2848 fi
2849
2850
2851 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2852echo "configure:2853: checking for --enable-permissive" >&5
2853 no_cache=0
2854 # Check whether --enable-permissive or --disable-permissive was given.
2855if test "${enable_permissive+set}" = set; then
2856 enableval="$enable_permissive"
2857
2858 if test "$enableval" = yes; then
2859 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2860 else
2861 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2862 fi
2863
2864else
2865
2866 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2867 if test "x$LINE" != x ; then
2868 eval "DEFAULT_$LINE"
2869 else
2870 no_cache=1
2871 fi
2872
2873 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2874
2875fi
2876
2877
2878 eval "$ac_cv_use_permissive"
2879 if test "$no_cache" != 1; then
2880 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2881 fi
2882
2883 if test "$wxUSE_PERMISSIVE" = yes; then
2884 echo "$ac_t""yes" 1>&6
2885 else
2886 echo "$ac_t""no" 1>&6
2887 fi
2888
2889
2890 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2891echo "configure:2892: checking for --enable-no_deps" >&5
2892 no_cache=0
2893 # Check whether --enable-no_deps or --disable-no_deps was given.
2894if test "${enable_no_deps+set}" = set; then
2895 enableval="$enable_no_deps"
2896
2897 if test "$enableval" = yes; then
2898 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2899 else
2900 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2901 fi
2902
2903else
2904
2905 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2906 if test "x$LINE" != x ; then
2907 eval "DEFAULT_$LINE"
2908 else
2909 no_cache=1
2910 fi
2911
2912 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2913
2914fi
2915
2916
2917 eval "$ac_cv_use_no_deps"
2918 if test "$no_cache" != 1; then
2919 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2920 fi
2921
2922 if test "$wxUSE_NO_DEPS" = yes; then
2923 echo "$ac_t""yes" 1>&6
2924 else
2925 echo "$ac_t""no" 1>&6
2926 fi
2927
2928
2929
2930 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2931echo "configure:2932: checking for --enable-compat20" >&5
2932 no_cache=0
2933 # Check whether --enable-compat20 or --disable-compat20 was given.
2934if test "${enable_compat20+set}" = set; then
2935 enableval="$enable_compat20"
2936
2937 if test "$enableval" = yes; then
2938 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2939 else
2940 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2941 fi
2942
2943else
2944
2945 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2946 if test "x$LINE" != x ; then
2947 eval "DEFAULT_$LINE"
2948 else
2949 no_cache=1
2950 fi
2951
2952 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2953
2954fi
2955
2956
2957 eval "$ac_cv_use_compat20"
2958 if test "$no_cache" != 1; then
2959 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2960 fi
2961
2962 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2963 echo "$ac_t""yes" 1>&6
2964 else
2965 echo "$ac_t""no" 1>&6
2966 fi
2967
2968
2969 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2970echo "configure:2971: checking for --enable-compat22" >&5
2971 no_cache=0
2972 # Check whether --enable-compat22 or --disable-compat22 was given.
2973if test "${enable_compat22+set}" = set; then
2974 enableval="$enable_compat22"
2975
2976 if test "$enableval" = yes; then
2977 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2978 else
2979 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2980 fi
2981
2982else
2983
2984 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2985 if test "x$LINE" != x ; then
2986 eval "DEFAULT_$LINE"
2987 else
2988 no_cache=1
2989 fi
2990
2991 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2992
2993fi
2994
2995
2996 eval "$ac_cv_use_compat22"
2997 if test "$no_cache" != 1; then
2998 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2999 fi
3000
3001 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3002 echo "$ac_t""yes" 1>&6
3003 else
3004 echo "$ac_t""no" 1>&6
3005 fi
3006
3007
3008
3009
3010 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
3011echo "configure:3012: checking for --enable-intl" >&5
3012 no_cache=0
3013 # Check whether --enable-intl or --disable-intl was given.
3014if test "${enable_intl+set}" = set; then
3015 enableval="$enable_intl"
3016
3017 if test "$enableval" = yes; then
3018 ac_cv_use_intl='wxUSE_INTL=yes'
3019 else
3020 ac_cv_use_intl='wxUSE_INTL=no'
3021 fi
3022
3023else
3024
3025 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3026 if test "x$LINE" != x ; then
3027 eval "DEFAULT_$LINE"
3028 else
3029 no_cache=1
3030 fi
3031
3032 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3033
3034fi
3035
3036
3037 eval "$ac_cv_use_intl"
3038 if test "$no_cache" != 1; then
3039 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3040 fi
3041
3042 if test "$wxUSE_INTL" = yes; then
3043 echo "$ac_t""yes" 1>&6
3044 else
3045 echo "$ac_t""no" 1>&6
3046 fi
3047
3048
3049 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3050echo "configure:3051: checking for --enable-config" >&5
3051 no_cache=0
3052 # Check whether --enable-config or --disable-config was given.
3053if test "${enable_config+set}" = set; then
3054 enableval="$enable_config"
3055
3056 if test "$enableval" = yes; then
3057 ac_cv_use_config='wxUSE_CONFIG=yes'
3058 else
3059 ac_cv_use_config='wxUSE_CONFIG=no'
3060 fi
3061
3062else
3063
3064 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3065 if test "x$LINE" != x ; then
3066 eval "DEFAULT_$LINE"
3067 else
3068 no_cache=1
3069 fi
3070
3071 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3072
3073fi
3074
3075
3076 eval "$ac_cv_use_config"
3077 if test "$no_cache" != 1; then
3078 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3079 fi
3080
3081 if test "$wxUSE_CONFIG" = yes; then
3082 echo "$ac_t""yes" 1>&6
3083 else
3084 echo "$ac_t""no" 1>&6
3085 fi
3086
3087
3088
3089 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
3090echo "configure:3091: checking for --enable-protocols" >&5
3091 no_cache=0
3092 # Check whether --enable-protocols or --disable-protocols was given.
3093if test "${enable_protocols+set}" = set; then
3094 enableval="$enable_protocols"
3095
3096 if test "$enableval" = yes; then
3097 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3098 else
3099 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3100 fi
3101
3102else
3103
3104 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3105 if test "x$LINE" != x ; then
3106 eval "DEFAULT_$LINE"
3107 else
3108 no_cache=1
3109 fi
3110
3111 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3112
3113fi
3114
3115
3116 eval "$ac_cv_use_protocols"
3117 if test "$no_cache" != 1; then
3118 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3119 fi
3120
3121 if test "$wxUSE_PROTOCOL" = yes; then
3122 echo "$ac_t""yes" 1>&6
3123 else
3124 echo "$ac_t""no" 1>&6
3125 fi
3126
3127
3128 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
3129echo "configure:3130: checking for --enable-ftp" >&5
3130 no_cache=0
3131 # Check whether --enable-ftp or --disable-ftp was given.
3132if test "${enable_ftp+set}" = set; then
3133 enableval="$enable_ftp"
3134
3135 if test "$enableval" = yes; then
3136 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3137 else
3138 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3139 fi
3140
3141else
3142
3143 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3144 if test "x$LINE" != x ; then
3145 eval "DEFAULT_$LINE"
3146 else
3147 no_cache=1
3148 fi
3149
3150 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3151
3152fi
3153
3154
3155 eval "$ac_cv_use_ftp"
3156 if test "$no_cache" != 1; then
3157 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3158 fi
3159
3160 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3161 echo "$ac_t""yes" 1>&6
3162 else
3163 echo "$ac_t""no" 1>&6
3164 fi
3165
3166
3167 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
3168echo "configure:3169: checking for --enable-http" >&5
3169 no_cache=0
3170 # Check whether --enable-http or --disable-http was given.
3171if test "${enable_http+set}" = set; then
3172 enableval="$enable_http"
3173
3174 if test "$enableval" = yes; then
3175 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3176 else
3177 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3178 fi
3179
3180else
3181
3182 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3183 if test "x$LINE" != x ; then
3184 eval "DEFAULT_$LINE"
3185 else
3186 no_cache=1
3187 fi
3188
3189 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3190
3191fi
3192
3193
3194 eval "$ac_cv_use_http"
3195 if test "$no_cache" != 1; then
3196 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3197 fi
3198
3199 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3200 echo "$ac_t""yes" 1>&6
3201 else
3202 echo "$ac_t""no" 1>&6
3203 fi
3204
3205
3206 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
3207echo "configure:3208: checking for --enable-fileproto" >&5
3208 no_cache=0
3209 # Check whether --enable-fileproto or --disable-fileproto was given.
3210if test "${enable_fileproto+set}" = set; then
3211 enableval="$enable_fileproto"
3212
3213 if test "$enableval" = yes; then
3214 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3215 else
3216 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3217 fi
3218
3219else
3220
3221 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3222 if test "x$LINE" != x ; then
3223 eval "DEFAULT_$LINE"
3224 else
3225 no_cache=1
3226 fi
3227
3228 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3229
3230fi
3231
3232
3233 eval "$ac_cv_use_fileproto"
3234 if test "$no_cache" != 1; then
3235 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3236 fi
3237
3238 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3239 echo "$ac_t""yes" 1>&6
3240 else
3241 echo "$ac_t""no" 1>&6
3242 fi
3243
3244
3245 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3246echo "configure:3247: checking for --enable-sockets" >&5
3247 no_cache=0
3248 # Check whether --enable-sockets or --disable-sockets was given.
3249if test "${enable_sockets+set}" = set; then
3250 enableval="$enable_sockets"
3251
3252 if test "$enableval" = yes; then
3253 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3254 else
3255 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3256 fi
3257
3258else
3259
3260 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3261 if test "x$LINE" != x ; then
3262 eval "DEFAULT_$LINE"
3263 else
3264 no_cache=1
3265 fi
3266
3267 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3268
3269fi
3270
3271
3272 eval "$ac_cv_use_sockets"
3273 if test "$no_cache" != 1; then
3274 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3275 fi
3276
3277 if test "$wxUSE_SOCKETS" = yes; then
3278 echo "$ac_t""yes" 1>&6
3279 else
3280 echo "$ac_t""no" 1>&6
3281 fi
3282
3283
3284
3285 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3286echo "configure:3287: checking for --enable-ipc" >&5
3287 no_cache=0
3288 # Check whether --enable-ipc or --disable-ipc was given.
3289if test "${enable_ipc+set}" = set; then
3290 enableval="$enable_ipc"
3291
3292 if test "$enableval" = yes; then
3293 ac_cv_use_ipc='wxUSE_IPC=yes'
3294 else
3295 ac_cv_use_ipc='wxUSE_IPC=no'
3296 fi
3297
3298else
3299
3300 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3301 if test "x$LINE" != x ; then
3302 eval "DEFAULT_$LINE"
3303 else
3304 no_cache=1
3305 fi
3306
3307 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3308
3309fi
3310
3311
3312 eval "$ac_cv_use_ipc"
3313 if test "$no_cache" != 1; then
3314 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3315 fi
3316
3317 if test "$wxUSE_IPC" = yes; then
3318 echo "$ac_t""yes" 1>&6
3319 else
3320 echo "$ac_t""no" 1>&6
3321 fi
3322
3323
3324
3325 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3326echo "configure:3327: checking for --enable-cmdline" >&5
3327 no_cache=0
3328 # Check whether --enable-cmdline or --disable-cmdline was given.
3329if test "${enable_cmdline+set}" = set; then
3330 enableval="$enable_cmdline"
3331
3332 if test "$enableval" = yes; then
3333 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3334 else
3335 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3336 fi
3337
3338else
3339
3340 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3341 if test "x$LINE" != x ; then
3342 eval "DEFAULT_$LINE"
3343 else
3344 no_cache=1
3345 fi
3346
3347 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3348
3349fi
3350
3351
3352 eval "$ac_cv_use_cmdline"
3353 if test "$no_cache" != 1; then
3354 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3355 fi
3356
3357 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3358 echo "$ac_t""yes" 1>&6
3359 else
3360 echo "$ac_t""no" 1>&6
3361 fi
3362
3363
3364 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3365echo "configure:3366: checking for --enable-datetime" >&5
3366 no_cache=0
3367 # Check whether --enable-datetime or --disable-datetime was given.
3368if test "${enable_datetime+set}" = set; then
3369 enableval="$enable_datetime"
3370
3371 if test "$enableval" = yes; then
3372 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3373 else
3374 ac_cv_use_datetime='wxUSE_DATETIME=no'
3375 fi
3376
3377else
3378
3379 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3380 if test "x$LINE" != x ; then
3381 eval "DEFAULT_$LINE"
3382 else
3383 no_cache=1
3384 fi
3385
3386 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3387
3388fi
3389
3390
3391 eval "$ac_cv_use_datetime"
3392 if test "$no_cache" != 1; then
3393 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3394 fi
3395
3396 if test "$wxUSE_DATETIME" = yes; then
3397 echo "$ac_t""yes" 1>&6
3398 else
3399 echo "$ac_t""no" 1>&6
3400 fi
3401
3402
3403 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3404echo "configure:3405: checking for --enable-timedate" >&5
3405 no_cache=0
3406 # Check whether --enable-timedate or --disable-timedate was given.
3407if test "${enable_timedate+set}" = set; then
3408 enableval="$enable_timedate"
3409
3410 if test "$enableval" = yes; then
3411 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3412 else
3413 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3414 fi
3415
3416else
3417
3418 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3419 if test "x$LINE" != x ; then
3420 eval "DEFAULT_$LINE"
3421 else
3422 no_cache=1
3423 fi
3424
3425 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3426
3427fi
3428
3429
3430 eval "$ac_cv_use_timedate"
3431 if test "$no_cache" != 1; then
3432 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3433 fi
3434
3435 if test "$wxUSE_TIMEDATE" = yes; then
3436 echo "$ac_t""yes" 1>&6
3437 else
3438 echo "$ac_t""no" 1>&6
3439 fi
3440
3441
3442 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3443echo "configure:3444: checking for --enable-stopwatch" >&5
3444 no_cache=0
3445 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3446if test "${enable_stopwatch+set}" = set; then
3447 enableval="$enable_stopwatch"
3448
3449 if test "$enableval" = yes; then
3450 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3451 else
3452 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3453 fi
3454
3455else
3456
3457 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3458 if test "x$LINE" != x ; then
3459 eval "DEFAULT_$LINE"
3460 else
3461 no_cache=1
3462 fi
3463
3464 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3465
3466fi
3467
3468
3469 eval "$ac_cv_use_stopwatch"
3470 if test "$no_cache" != 1; then
3471 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3472 fi
3473
3474 if test "$wxUSE_STOPWATCH" = yes; then
3475 echo "$ac_t""yes" 1>&6
3476 else
3477 echo "$ac_t""no" 1>&6
3478 fi
3479
3480
3481 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3482echo "configure:3483: checking for --enable-dialupman" >&5
3483 no_cache=0
3484 # Check whether --enable-dialupman or --disable-dialupman was given.
3485if test "${enable_dialupman+set}" = set; then
3486 enableval="$enable_dialupman"
3487
3488 if test "$enableval" = yes; then
3489 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3490 else
3491 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3492 fi
3493
3494else
3495
3496 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3497 if test "x$LINE" != x ; then
3498 eval "DEFAULT_$LINE"
3499 else
3500 no_cache=1
3501 fi
3502
3503 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3504
3505fi
3506
3507
3508 eval "$ac_cv_use_dialupman"
3509 if test "$no_cache" != 1; then
3510 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3511 fi
3512
3513 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3514 echo "$ac_t""yes" 1>&6
3515 else
3516 echo "$ac_t""no" 1>&6
3517 fi
3518
3519
3520 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3521echo "configure:3522: checking for --enable-apple_ieee" >&5
3522 no_cache=0
3523 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3524if test "${enable_apple_ieee+set}" = set; then
3525 enableval="$enable_apple_ieee"
3526
3527 if test "$enableval" = yes; then
3528 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3529 else
3530 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3531 fi
3532
3533else
3534
3535 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3536 if test "x$LINE" != x ; then
3537 eval "DEFAULT_$LINE"
3538 else
3539 no_cache=1
3540 fi
3541
3542 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3543
3544fi
3545
3546
3547 eval "$ac_cv_use_apple_ieee"
3548 if test "$no_cache" != 1; then
3549 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3550 fi
3551
3552 if test "$wxUSE_APPLE_IEEE" = yes; then
3553 echo "$ac_t""yes" 1>&6
3554 else
3555 echo "$ac_t""no" 1>&6
3556 fi
3557
3558
3559 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3560echo "configure:3561: checking for --enable-timer" >&5
3561 no_cache=0
3562 # Check whether --enable-timer or --disable-timer was given.
3563if test "${enable_timer+set}" = set; then
3564 enableval="$enable_timer"
3565
3566 if test "$enableval" = yes; then
3567 ac_cv_use_timer='wxUSE_TIMER=yes'
3568 else
3569 ac_cv_use_timer='wxUSE_TIMER=no'
3570 fi
3571
3572else
3573
3574 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3575 if test "x$LINE" != x ; then
3576 eval "DEFAULT_$LINE"
3577 else
3578 no_cache=1
3579 fi
3580
3581 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3582
3583fi
3584
3585
3586 eval "$ac_cv_use_timer"
3587 if test "$no_cache" != 1; then
3588 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3589 fi
3590
3591 if test "$wxUSE_TIMER" = yes; then
3592 echo "$ac_t""yes" 1>&6
3593 else
3594 echo "$ac_t""no" 1>&6
3595 fi
3596
3597
3598 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3599echo "configure:3600: checking for --enable-wave" >&5
3600 no_cache=0
3601 # Check whether --enable-wave or --disable-wave was given.
3602if test "${enable_wave+set}" = set; then
3603 enableval="$enable_wave"
3604
3605 if test "$enableval" = yes; then
3606 ac_cv_use_wave='wxUSE_WAVE=yes'
3607 else
3608 ac_cv_use_wave='wxUSE_WAVE=no'
3609 fi
3610
3611else
3612
3613 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3614 if test "x$LINE" != x ; then
3615 eval "DEFAULT_$LINE"
3616 else
3617 no_cache=1
3618 fi
3619
3620 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3621
3622fi
3623
3624
3625 eval "$ac_cv_use_wave"
3626 if test "$no_cache" != 1; then
3627 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3628 fi
3629
3630 if test "$wxUSE_WAVE" = yes; then
3631 echo "$ac_t""yes" 1>&6
3632 else
3633 echo "$ac_t""no" 1>&6
3634 fi
3635
3636
3637 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3638echo "configure:3639: checking for --enable-fraction" >&5
3639 no_cache=0
3640 # Check whether --enable-fraction or --disable-fraction was given.
3641if test "${enable_fraction+set}" = set; then
3642 enableval="$enable_fraction"
3643
3644 if test "$enableval" = yes; then
3645 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3646 else
3647 ac_cv_use_fraction='wxUSE_FRACTION=no'
3648 fi
3649
3650else
3651
3652 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3653 if test "x$LINE" != x ; then
3654 eval "DEFAULT_$LINE"
3655 else
3656 no_cache=1
3657 fi
3658
3659 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3660
3661fi
3662
3663
3664 eval "$ac_cv_use_fraction"
3665 if test "$no_cache" != 1; then
3666 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3667 fi
3668
3669 if test "$wxUSE_FRACTION" = yes; then
3670 echo "$ac_t""yes" 1>&6
3671 else
3672 echo "$ac_t""no" 1>&6
3673 fi
3674
3675
3676 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3677echo "configure:3678: checking for --enable-dynlib" >&5
3678 no_cache=0
3679 # Check whether --enable-dynlib or --disable-dynlib was given.
3680if test "${enable_dynlib+set}" = set; then
3681 enableval="$enable_dynlib"
3682
3683 if test "$enableval" = yes; then
3684 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3685 else
3686 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3687 fi
3688
3689else
3690
3691 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3692 if test "x$LINE" != x ; then
3693 eval "DEFAULT_$LINE"
3694 else
3695 no_cache=1
3696 fi
3697
3698 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3699
3700fi
3701
3702
3703 eval "$ac_cv_use_dynlib"
3704 if test "$no_cache" != 1; then
3705 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3706 fi
3707
3708 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3709 echo "$ac_t""yes" 1>&6
3710 else
3711 echo "$ac_t""no" 1>&6
3712 fi
3713
3714
3715 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3716echo "configure:3717: checking for --enable-dynamicloader" >&5
3717 no_cache=0
3718 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3719if test "${enable_dynamicloader+set}" = set; then
3720 enableval="$enable_dynamicloader"
3721
3722 if test "$enableval" = yes; then
3723 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3724 else
3725 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3726 fi
3727
3728else
3729
3730 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3731 if test "x$LINE" != x ; then
3732 eval "DEFAULT_$LINE"
3733 else
3734 no_cache=1
3735 fi
3736
3737 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3738
3739fi
3740
3741
3742 eval "$ac_cv_use_dynamicloader"
3743 if test "$no_cache" != 1; then
3744 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3745 fi
3746
3747 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3748 echo "$ac_t""yes" 1>&6
3749 else
3750 echo "$ac_t""no" 1>&6
3751 fi
3752
3753
3754 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3755echo "configure:3756: checking for --enable-longlong" >&5
3756 no_cache=0
3757 # Check whether --enable-longlong or --disable-longlong was given.
3758if test "${enable_longlong+set}" = set; then
3759 enableval="$enable_longlong"
3760
3761 if test "$enableval" = yes; then
3762 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3763 else
3764 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3765 fi
3766
3767else
3768
3769 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3770 if test "x$LINE" != x ; then
3771 eval "DEFAULT_$LINE"
3772 else
3773 no_cache=1
3774 fi
3775
3776 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3777
3778fi
3779
3780
3781 eval "$ac_cv_use_longlong"
3782 if test "$no_cache" != 1; then
3783 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3784 fi
3785
3786 if test "$wxUSE_LONGLONG" = yes; then
3787 echo "$ac_t""yes" 1>&6
3788 else
3789 echo "$ac_t""no" 1>&6
3790 fi
3791
3792
3793 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3794echo "configure:3795: checking for --enable-geometry" >&5
3795 no_cache=0
3796 # Check whether --enable-geometry or --disable-geometry was given.
3797if test "${enable_geometry+set}" = set; then
3798 enableval="$enable_geometry"
3799
3800 if test "$enableval" = yes; then
3801 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3802 else
3803 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3804 fi
3805
3806else
3807
3808 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3809 if test "x$LINE" != x ; then
3810 eval "DEFAULT_$LINE"
3811 else
3812 no_cache=1
3813 fi
3814
3815 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3816
3817fi
3818
3819
3820 eval "$ac_cv_use_geometry"
3821 if test "$no_cache" != 1; then
3822 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3823 fi
3824
3825 if test "$wxUSE_GEOMETRY" = yes; then
3826 echo "$ac_t""yes" 1>&6
3827 else
3828 echo "$ac_t""no" 1>&6
3829 fi
3830
3831
3832 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3833echo "configure:3834: checking for --enable-log" >&5
3834 no_cache=0
3835 # Check whether --enable-log or --disable-log was given.
3836if test "${enable_log+set}" = set; then
3837 enableval="$enable_log"
3838
3839 if test "$enableval" = yes; then
3840 ac_cv_use_log='wxUSE_LOG=yes'
3841 else
3842 ac_cv_use_log='wxUSE_LOG=no'
3843 fi
3844
3845else
3846
3847 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3848 if test "x$LINE" != x ; then
3849 eval "DEFAULT_$LINE"
3850 else
3851 no_cache=1
3852 fi
3853
3854 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3855
3856fi
3857
3858
3859 eval "$ac_cv_use_log"
3860 if test "$no_cache" != 1; then
3861 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3862 fi
3863
3864 if test "$wxUSE_LOG" = yes; then
3865 echo "$ac_t""yes" 1>&6
3866 else
3867 echo "$ac_t""no" 1>&6
3868 fi
3869
3870
3871 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3872echo "configure:3873: checking for --enable-streams" >&5
3873 no_cache=0
3874 # Check whether --enable-streams or --disable-streams was given.
3875if test "${enable_streams+set}" = set; then
3876 enableval="$enable_streams"
3877
3878 if test "$enableval" = yes; then
3879 ac_cv_use_streams='wxUSE_STREAMS=yes'
3880 else
3881 ac_cv_use_streams='wxUSE_STREAMS=no'
3882 fi
3883
3884else
3885
3886 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3887 if test "x$LINE" != x ; then
3888 eval "DEFAULT_$LINE"
3889 else
3890 no_cache=1
3891 fi
3892
3893 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3894
3895fi
3896
3897
3898 eval "$ac_cv_use_streams"
3899 if test "$no_cache" != 1; then
3900 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3901 fi
3902
3903 if test "$wxUSE_STREAMS" = yes; then
3904 echo "$ac_t""yes" 1>&6
3905 else
3906 echo "$ac_t""no" 1>&6
3907 fi
3908
3909
3910 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3911echo "configure:3912: checking for --enable-file" >&5
3912 no_cache=0
3913 # Check whether --enable-file or --disable-file was given.
3914if test "${enable_file+set}" = set; then
3915 enableval="$enable_file"
3916
3917 if test "$enableval" = yes; then
3918 ac_cv_use_file='wxUSE_FILE=yes'
3919 else
3920 ac_cv_use_file='wxUSE_FILE=no'
3921 fi
3922
3923else
3924
3925 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3926 if test "x$LINE" != x ; then
3927 eval "DEFAULT_$LINE"
3928 else
3929 no_cache=1
3930 fi
3931
3932 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3933
3934fi
3935
3936
3937 eval "$ac_cv_use_file"
3938 if test "$no_cache" != 1; then
3939 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3940 fi
3941
3942 if test "$wxUSE_FILE" = yes; then
3943 echo "$ac_t""yes" 1>&6
3944 else
3945 echo "$ac_t""no" 1>&6
3946 fi
3947
3948
3949 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3950echo "configure:3951: checking for --enable-ffile" >&5
3951 no_cache=0
3952 # Check whether --enable-ffile or --disable-ffile was given.
3953if test "${enable_ffile+set}" = set; then
3954 enableval="$enable_ffile"
3955
3956 if test "$enableval" = yes; then
3957 ac_cv_use_ffile='wxUSE_FFILE=yes'
3958 else
3959 ac_cv_use_ffile='wxUSE_FFILE=no'
3960 fi
3961
3962else
3963
3964 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3965 if test "x$LINE" != x ; then
3966 eval "DEFAULT_$LINE"
3967 else
3968 no_cache=1
3969 fi
3970
3971 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3972
3973fi
3974
3975
3976 eval "$ac_cv_use_ffile"
3977 if test "$no_cache" != 1; then
3978 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3979 fi
3980
3981 if test "$wxUSE_FFILE" = yes; then
3982 echo "$ac_t""yes" 1>&6
3983 else
3984 echo "$ac_t""no" 1>&6
3985 fi
3986
3987
3988 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
3989echo "configure:3990: checking for --enable-textbuf" >&5
3990 no_cache=0
3991 # Check whether --enable-textbuf or --disable-textbuf was given.
3992if test "${enable_textbuf+set}" = set; then
3993 enableval="$enable_textbuf"
3994
3995 if test "$enableval" = yes; then
3996 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3997 else
3998 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
3999 fi
4000
4001else
4002
4003 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4004 if test "x$LINE" != x ; then
4005 eval "DEFAULT_$LINE"
4006 else
4007 no_cache=1
4008 fi
4009
4010 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4011
4012fi
4013
4014
4015 eval "$ac_cv_use_textbuf"
4016 if test "$no_cache" != 1; then
4017 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4018 fi
4019
4020 if test "$wxUSE_TEXTBUFFER" = yes; then
4021 echo "$ac_t""yes" 1>&6
4022 else
4023 echo "$ac_t""no" 1>&6
4024 fi
4025
4026
4027 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
4028echo "configure:4029: checking for --enable-textfile" >&5
4029 no_cache=0
4030 # Check whether --enable-textfile or --disable-textfile was given.
4031if test "${enable_textfile+set}" = set; then
4032 enableval="$enable_textfile"
4033
4034 if test "$enableval" = yes; then
4035 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4036 else
4037 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4038 fi
4039
4040else
4041
4042 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4043 if test "x$LINE" != x ; then
4044 eval "DEFAULT_$LINE"
4045 else
4046 no_cache=1
4047 fi
4048
4049 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4050
4051fi
4052
4053
4054 eval "$ac_cv_use_textfile"
4055 if test "$no_cache" != 1; then
4056 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4057 fi
4058
4059 if test "$wxUSE_TEXTFILE" = yes; then
4060 echo "$ac_t""yes" 1>&6
4061 else
4062 echo "$ac_t""no" 1>&6
4063 fi
4064
4065
4066 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
4067echo "configure:4068: checking for --enable-fontmap" >&5
4068 no_cache=0
4069 # Check whether --enable-fontmap or --disable-fontmap was given.
4070if test "${enable_fontmap+set}" = set; then
4071 enableval="$enable_fontmap"
4072
4073 if test "$enableval" = yes; then
4074 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4075 else
4076 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4077 fi
4078
4079else
4080
4081 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4082 if test "x$LINE" != x ; then
4083 eval "DEFAULT_$LINE"
4084 else
4085 no_cache=1
4086 fi
4087
4088 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4089
4090fi
4091
4092
4093 eval "$ac_cv_use_fontmap"
4094 if test "$no_cache" != 1; then
4095 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4096 fi
4097
4098 if test "$wxUSE_FONTMAP" = yes; then
4099 echo "$ac_t""yes" 1>&6
4100 else
4101 echo "$ac_t""no" 1>&6
4102 fi
4103
4104
4105 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
4106echo "configure:4107: checking for --enable-unicode" >&5
4107 no_cache=0
4108 # Check whether --enable-unicode or --disable-unicode was given.
4109if test "${enable_unicode+set}" = set; then
4110 enableval="$enable_unicode"
4111
4112 if test "$enableval" = yes; then
4113 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4114 else
4115 ac_cv_use_unicode='wxUSE_UNICODE=no'
4116 fi
4117
4118else
4119
4120 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4121 if test "x$LINE" != x ; then
4122 eval "DEFAULT_$LINE"
4123 else
4124 no_cache=1
4125 fi
4126
4127 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4128
4129fi
4130
4131
4132 eval "$ac_cv_use_unicode"
4133 if test "$no_cache" != 1; then
4134 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4135 fi
4136
4137 if test "$wxUSE_UNICODE" = yes; then
4138 echo "$ac_t""yes" 1>&6
4139 else
4140 echo "$ac_t""no" 1>&6
4141 fi
4142
4143
4144 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
4145echo "configure:4146: checking for --enable-mslu" >&5
4146 no_cache=0
4147 # Check whether --enable-mslu or --disable-mslu was given.
4148if test "${enable_mslu+set}" = set; then
4149 enableval="$enable_mslu"
4150
4151 if test "$enableval" = yes; then
4152 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4153 else
4154 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4155 fi
4156
4157else
4158
4159 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4160 if test "x$LINE" != x ; then
4161 eval "DEFAULT_$LINE"
4162 else
4163 no_cache=1
4164 fi
4165
4166 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4167
4168fi
4169
4170
4171 eval "$ac_cv_use_mslu"
4172 if test "$no_cache" != 1; then
4173 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4174 fi
4175
4176 if test "$wxUSE_UNICODE_MSLU" = yes; then
4177 echo "$ac_t""yes" 1>&6
4178 else
4179 echo "$ac_t""no" 1>&6
4180 fi
4181
4182
4183 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
4184echo "configure:4185: checking for --enable-wxprintfv" >&5
4185 no_cache=0
4186 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4187if test "${enable_wxprintfv+set}" = set; then
4188 enableval="$enable_wxprintfv"
4189
4190 if test "$enableval" = yes; then
4191 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4192 else
4193 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4194 fi
4195
4196else
4197
4198 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4199 if test "x$LINE" != x ; then
4200 eval "DEFAULT_$LINE"
4201 else
4202 no_cache=1
4203 fi
4204
4205 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4206
4207fi
4208
4209
4210 eval "$ac_cv_use_wxprintfv"
4211 if test "$no_cache" != 1; then
4212 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4213 fi
4214
4215 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4216 echo "$ac_t""yes" 1>&6
4217 else
4218 echo "$ac_t""no" 1>&6
4219 fi
4220
4221
4222 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
4223echo "configure:4224: checking for --enable-std_iostreams" >&5
4224 no_cache=0
4225 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4226if test "${enable_std_iostreams+set}" = set; then
4227 enableval="$enable_std_iostreams"
4228
4229 if test "$enableval" = yes; then
4230 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4231 else
4232 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4233 fi
4234
4235else
4236
4237 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4238 if test "x$LINE" != x ; then
4239 eval "DEFAULT_$LINE"
4240 else
4241 no_cache=1
4242 fi
4243
4244 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4245
4246fi
4247
4248
4249 eval "$ac_cv_use_std_iostreams"
4250 if test "$no_cache" != 1; then
4251 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4252 fi
4253
4254 if test "$wxUSE_STD_IOSTREAM" = yes; then
4255 echo "$ac_t""yes" 1>&6
4256 else
4257 echo "$ac_t""no" 1>&6
4258 fi
4259
4260
4261 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
4262echo "configure:4263: checking for --enable-filesystem" >&5
4263 no_cache=0
4264 # Check whether --enable-filesystem or --disable-filesystem was given.
4265if test "${enable_filesystem+set}" = set; then
4266 enableval="$enable_filesystem"
4267
4268 if test "$enableval" = yes; then
4269 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4270 else
4271 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4272 fi
4273
4274else
4275
4276 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4277 if test "x$LINE" != x ; then
4278 eval "DEFAULT_$LINE"
4279 else
4280 no_cache=1
4281 fi
4282
4283 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4284
4285fi
4286
4287
4288 eval "$ac_cv_use_filesystem"
4289 if test "$no_cache" != 1; then
4290 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4291 fi
4292
4293 if test "$wxUSE_FILESYSTEM" = yes; then
4294 echo "$ac_t""yes" 1>&6
4295 else
4296 echo "$ac_t""no" 1>&6
4297 fi
4298
4299
4300 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4301echo "configure:4302: checking for --enable-fs_inet" >&5
4302 no_cache=0
4303 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4304if test "${enable_fs_inet+set}" = set; then
4305 enableval="$enable_fs_inet"
4306
4307 if test "$enableval" = yes; then
4308 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4309 else
4310 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4311 fi
4312
4313else
4314
4315 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4316 if test "x$LINE" != x ; then
4317 eval "DEFAULT_$LINE"
4318 else
4319 no_cache=1
4320 fi
4321
4322 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4323
4324fi
4325
4326
4327 eval "$ac_cv_use_fs_inet"
4328 if test "$no_cache" != 1; then
4329 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4330 fi
4331
4332 if test "$wxUSE_FS_INET" = yes; then
4333 echo "$ac_t""yes" 1>&6
4334 else
4335 echo "$ac_t""no" 1>&6
4336 fi
4337
4338
4339 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4340echo "configure:4341: checking for --enable-fs_zip" >&5
4341 no_cache=0
4342 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4343if test "${enable_fs_zip+set}" = set; then
4344 enableval="$enable_fs_zip"
4345
4346 if test "$enableval" = yes; then
4347 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4348 else
4349 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4350 fi
4351
4352else
4353
4354 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4355 if test "x$LINE" != x ; then
4356 eval "DEFAULT_$LINE"
4357 else
4358 no_cache=1
4359 fi
4360
4361 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4362
4363fi
4364
4365
4366 eval "$ac_cv_use_fs_zip"
4367 if test "$no_cache" != 1; then
4368 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4369 fi
4370
4371 if test "$wxUSE_FS_ZIP" = yes; then
4372 echo "$ac_t""yes" 1>&6
4373 else
4374 echo "$ac_t""no" 1>&6
4375 fi
4376
4377
4378 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4379echo "configure:4380: checking for --enable-zipstream" >&5
4380 no_cache=0
4381 # Check whether --enable-zipstream or --disable-zipstream was given.
4382if test "${enable_zipstream+set}" = set; then
4383 enableval="$enable_zipstream"
4384
4385 if test "$enableval" = yes; then
4386 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4387 else
4388 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4389 fi
4390
4391else
4392
4393 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4394 if test "x$LINE" != x ; then
4395 eval "DEFAULT_$LINE"
4396 else
4397 no_cache=1
4398 fi
4399
4400 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4401
4402fi
4403
4404
4405 eval "$ac_cv_use_zipstream"
4406 if test "$no_cache" != 1; then
4407 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4408 fi
4409
4410 if test "$wxUSE_ZIPSTREAM" = yes; then
4411 echo "$ac_t""yes" 1>&6
4412 else
4413 echo "$ac_t""no" 1>&6
4414 fi
4415
4416
4417
4418 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4419echo "configure:4420: checking for --enable-catch_segvs" >&5
4420 no_cache=0
4421 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4422if test "${enable_catch_segvs+set}" = set; then
4423 enableval="$enable_catch_segvs"
4424
4425 if test "$enableval" = yes; then
4426 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4427 else
4428 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4429 fi
4430
4431else
4432
4433 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4434 if test "x$LINE" != x ; then
4435 eval "DEFAULT_$LINE"
4436 else
4437 no_cache=1
4438 fi
4439
4440 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4441
4442fi
4443
4444
4445 eval "$ac_cv_use_catch_segvs"
4446 if test "$no_cache" != 1; then
4447 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4448 fi
4449
4450 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4451 echo "$ac_t""yes" 1>&6
4452 else
4453 echo "$ac_t""no" 1>&6
4454 fi
4455
4456
4457 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4458echo "configure:4459: checking for --enable-snglinst" >&5
4459 no_cache=0
4460 # Check whether --enable-snglinst or --disable-snglinst was given.
4461if test "${enable_snglinst+set}" = set; then
4462 enableval="$enable_snglinst"
4463
4464 if test "$enableval" = yes; then
4465 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4466 else
4467 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4468 fi
4469
4470else
4471
4472 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4473 if test "x$LINE" != x ; then
4474 eval "DEFAULT_$LINE"
4475 else
4476 no_cache=1
4477 fi
4478
4479 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4480
4481fi
4482
4483
4484 eval "$ac_cv_use_snglinst"
4485 if test "$no_cache" != 1; then
4486 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4487 fi
4488
4489 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4490 echo "$ac_t""yes" 1>&6
4491 else
4492 echo "$ac_t""no" 1>&6
4493 fi
4494
4495
4496
4497 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4498echo "configure:4499: checking for --enable-mimetype" >&5
4499 no_cache=0
4500 # Check whether --enable-mimetype or --disable-mimetype was given.
4501if test "${enable_mimetype+set}" = set; then
4502 enableval="$enable_mimetype"
4503
4504 if test "$enableval" = yes; then
4505 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4506 else
4507 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4508 fi
4509
4510else
4511
4512 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4513 if test "x$LINE" != x ; then
4514 eval "DEFAULT_$LINE"
4515 else
4516 no_cache=1
4517 fi
4518
4519 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4520
4521fi
4522
4523
4524 eval "$ac_cv_use_mimetype"
4525 if test "$no_cache" != 1; then
4526 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4527 fi
4528
4529 if test "$wxUSE_MIMETYPE" = yes; then
4530 echo "$ac_t""yes" 1>&6
4531 else
4532 echo "$ac_t""no" 1>&6
4533 fi
4534
4535
4536 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4537echo "configure:4538: checking for --enable-system_options" >&5
4538 no_cache=0
4539 # Check whether --enable-system_options or --disable-system_options was given.
4540if test "${enable_system_options+set}" = set; then
4541 enableval="$enable_system_options"
4542
4543 if test "$enableval" = yes; then
4544 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4545 else
4546 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4547 fi
4548
4549else
4550
4551 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4552 if test "x$LINE" != x ; then
4553 eval "DEFAULT_$LINE"
4554 else
4555 no_cache=1
4556 fi
4557
4558 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4559
4560fi
4561
4562
4563 eval "$ac_cv_use_system_options"
4564 if test "$no_cache" != 1; then
4565 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4566 fi
4567
4568 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4569 echo "$ac_t""yes" 1>&6
4570 else
4571 echo "$ac_t""no" 1>&6
4572 fi
4573
4574
4575
4576 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
4577echo "configure:4578: checking for --enable-url" >&5
4578 no_cache=0
4579 # Check whether --enable-url or --disable-url was given.
4580if test "${enable_url+set}" = set; then
4581 enableval="$enable_url"
4582
4583 if test "$enableval" = yes; then
4584 ac_cv_use_url='wxUSE_URL=yes'
4585 else
4586 ac_cv_use_url='wxUSE_URL=no'
4587 fi
4588
4589else
4590
4591 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4592 if test "x$LINE" != x ; then
4593 eval "DEFAULT_$LINE"
4594 else
4595 no_cache=1
4596 fi
4597
4598 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4599
4600fi
4601
4602
4603 eval "$ac_cv_use_url"
4604 if test "$no_cache" != 1; then
4605 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4606 fi
4607
4608 if test "$wxUSE_URL" = yes; then
4609 echo "$ac_t""yes" 1>&6
4610 else
4611 echo "$ac_t""no" 1>&6
4612 fi
4613
4614
4615 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
4616echo "configure:4617: checking for --enable-protocol" >&5
4617 no_cache=0
4618 # Check whether --enable-protocol or --disable-protocol was given.
4619if test "${enable_protocol+set}" = set; then
4620 enableval="$enable_protocol"
4621
4622 if test "$enableval" = yes; then
4623 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4624 else
4625 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4626 fi
4627
4628else
4629
4630 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4631 if test "x$LINE" != x ; then
4632 eval "DEFAULT_$LINE"
4633 else
4634 no_cache=1
4635 fi
4636
4637 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4638
4639fi
4640
4641
4642 eval "$ac_cv_use_protocol"
4643 if test "$no_cache" != 1; then
4644 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4645 fi
4646
4647 if test "$wxUSE_PROTOCOL" = yes; then
4648 echo "$ac_t""yes" 1>&6
4649 else
4650 echo "$ac_t""no" 1>&6
4651 fi
4652
4653
4654 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
4655echo "configure:4656: checking for --enable-protocol_http" >&5
4656 no_cache=0
4657 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4658if test "${enable_protocol_http+set}" = set; then
4659 enableval="$enable_protocol_http"
4660
4661 if test "$enableval" = yes; then
4662 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4663 else
4664 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4665 fi
4666
4667else
4668
4669 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4670 if test "x$LINE" != x ; then
4671 eval "DEFAULT_$LINE"
4672 else
4673 no_cache=1
4674 fi
4675
4676 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4677
4678fi
4679
4680
4681 eval "$ac_cv_use_protocol_http"
4682 if test "$no_cache" != 1; then
4683 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4684 fi
4685
4686 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4687 echo "$ac_t""yes" 1>&6
4688 else
4689 echo "$ac_t""no" 1>&6
4690 fi
4691
4692
4693 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
4694echo "configure:4695: checking for --enable-protocol_ftp" >&5
4695 no_cache=0
4696 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4697if test "${enable_protocol_ftp+set}" = set; then
4698 enableval="$enable_protocol_ftp"
4699
4700 if test "$enableval" = yes; then
4701 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4702 else
4703 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4704 fi
4705
4706else
4707
4708 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4709 if test "x$LINE" != x ; then
4710 eval "DEFAULT_$LINE"
4711 else
4712 no_cache=1
4713 fi
4714
4715 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4716
4717fi
4718
4719
4720 eval "$ac_cv_use_protocol_ftp"
4721 if test "$no_cache" != 1; then
4722 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4723 fi
4724
4725 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4726 echo "$ac_t""yes" 1>&6
4727 else
4728 echo "$ac_t""no" 1>&6
4729 fi
4730
4731
4732 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
4733echo "configure:4734: checking for --enable-protocol_file" >&5
4734 no_cache=0
4735 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4736if test "${enable_protocol_file+set}" = set; then
4737 enableval="$enable_protocol_file"
4738
4739 if test "$enableval" = yes; then
4740 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4741 else
4742 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4743 fi
4744
4745else
4746
4747 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4748 if test "x$LINE" != x ; then
4749 eval "DEFAULT_$LINE"
4750 else
4751 no_cache=1
4752 fi
4753
4754 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4755
4756fi
4757
4758
4759 eval "$ac_cv_use_protocol_file"
4760 if test "$no_cache" != 1; then
4761 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4762 fi
4763
4764 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4765 echo "$ac_t""yes" 1>&6
4766 else
4767 echo "$ac_t""no" 1>&6
4768 fi
4769
4770
4771
4772
4773
4774 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4775echo "configure:4776: checking for --enable-threads" >&5
4776 no_cache=0
4777 # Check whether --enable-threads or --disable-threads was given.
4778if test "${enable_threads+set}" = set; then
4779 enableval="$enable_threads"
4780
4781 if test "$enableval" = yes; then
4782 ac_cv_use_threads='wxUSE_THREADS=yes'
4783 else
4784 ac_cv_use_threads='wxUSE_THREADS=no'
4785 fi
4786
4787else
4788
4789 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4790 if test "x$LINE" != x ; then
4791 eval "DEFAULT_$LINE"
4792 else
4793 no_cache=1
4794 fi
4795
4796 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4797
4798fi
4799
4800
4801 eval "$ac_cv_use_threads"
4802 if test "$no_cache" != 1; then
4803 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4804 fi
4805
4806 if test "$wxUSE_THREADS" = yes; then
4807 echo "$ac_t""yes" 1>&6
4808 else
4809 echo "$ac_t""no" 1>&6
4810 fi
4811
4812
4813if test "$wxUSE_GUI" = "yes"; then
4814
4815
4816
4817 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4818echo "configure:4819: checking for --enable-docview" >&5
4819 no_cache=0
4820 # Check whether --enable-docview or --disable-docview was given.
4821if test "${enable_docview+set}" = set; then
4822 enableval="$enable_docview"
4823
4824 if test "$enableval" = yes; then
4825 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4826 else
4827 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4828 fi
4829
4830else
4831
4832 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4833 if test "x$LINE" != x ; then
4834 eval "DEFAULT_$LINE"
4835 else
4836 no_cache=1
4837 fi
4838
4839 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4840
4841fi
4842
4843
4844 eval "$ac_cv_use_docview"
4845 if test "$no_cache" != 1; then
4846 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4847 fi
4848
4849 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4850 echo "$ac_t""yes" 1>&6
4851 else
4852 echo "$ac_t""no" 1>&6
4853 fi
4854
4855
4856 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4857echo "configure:4858: checking for --enable-help" >&5
4858 no_cache=0
4859 # Check whether --enable-help or --disable-help was given.
4860if test "${enable_help+set}" = set; then
4861 enableval="$enable_help"
4862
4863 if test "$enableval" = yes; then
4864 ac_cv_use_help='wxUSE_HELP=yes'
4865 else
4866 ac_cv_use_help='wxUSE_HELP=no'
4867 fi
4868
4869else
4870
4871 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4872 if test "x$LINE" != x ; then
4873 eval "DEFAULT_$LINE"
4874 else
4875 no_cache=1
4876 fi
4877
4878 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4879
4880fi
4881
4882
4883 eval "$ac_cv_use_help"
4884 if test "$no_cache" != 1; then
4885 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4886 fi
4887
4888 if test "$wxUSE_HELP" = yes; then
4889 echo "$ac_t""yes" 1>&6
4890 else
4891 echo "$ac_t""no" 1>&6
4892 fi
4893
4894
4895 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4896echo "configure:4897: checking for --enable-mshtmlhelp" >&5
4897 no_cache=0
4898 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4899if test "${enable_mshtmlhelp+set}" = set; then
4900 enableval="$enable_mshtmlhelp"
4901
4902 if test "$enableval" = yes; then
4903 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4904 else
4905 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4906 fi
4907
4908else
4909
4910 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4911 if test "x$LINE" != x ; then
4912 eval "DEFAULT_$LINE"
4913 else
4914 no_cache=1
4915 fi
4916
4917 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4918
4919fi
4920
4921
4922 eval "$ac_cv_use_mshtmlhelp"
4923 if test "$no_cache" != 1; then
4924 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4925 fi
4926
4927 if test "$wxUSE_MS_HTML_HELP" = yes; then
4928 echo "$ac_t""yes" 1>&6
4929 else
4930 echo "$ac_t""no" 1>&6
4931 fi
4932
4933
4934 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4935echo "configure:4936: checking for --enable-html" >&5
4936 no_cache=0
4937 # Check whether --enable-html or --disable-html was given.
4938if test "${enable_html+set}" = set; then
4939 enableval="$enable_html"
4940
4941 if test "$enableval" = yes; then
4942 ac_cv_use_html='wxUSE_HTML=yes'
4943 else
4944 ac_cv_use_html='wxUSE_HTML=no'
4945 fi
4946
4947else
4948
4949 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4950 if test "x$LINE" != x ; then
4951 eval "DEFAULT_$LINE"
4952 else
4953 no_cache=1
4954 fi
4955
4956 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4957
4958fi
4959
4960
4961 eval "$ac_cv_use_html"
4962 if test "$no_cache" != 1; then
4963 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4964 fi
4965
4966 if test "$wxUSE_HTML" = yes; then
4967 echo "$ac_t""yes" 1>&6
4968 else
4969 echo "$ac_t""no" 1>&6
4970 fi
4971
4972
4973 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4974echo "configure:4975: checking for --enable-htmlhelp" >&5
4975 no_cache=0
4976 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4977if test "${enable_htmlhelp+set}" = set; then
4978 enableval="$enable_htmlhelp"
4979
4980 if test "$enableval" = yes; then
4981 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4982 else
4983 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4984 fi
4985
4986else
4987
4988 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4989 if test "x$LINE" != x ; then
4990 eval "DEFAULT_$LINE"
4991 else
4992 no_cache=1
4993 fi
4994
4995 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4996
4997fi
4998
4999
5000 eval "$ac_cv_use_htmlhelp"
5001 if test "$no_cache" != 1; then
5002 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5003 fi
5004
5005 if test "$wxUSE_WXHTML_HELP" = yes; then
5006 echo "$ac_t""yes" 1>&6
5007 else
5008 echo "$ac_t""no" 1>&6
5009 fi
5010
5011
5012 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
5013echo "configure:5014: checking for --enable-constraints" >&5
5014 no_cache=0
5015 # Check whether --enable-constraints or --disable-constraints was given.
5016if test "${enable_constraints+set}" = set; then
5017 enableval="$enable_constraints"
5018
5019 if test "$enableval" = yes; then
5020 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5021 else
5022 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5023 fi
5024
5025else
5026
5027 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5028 if test "x$LINE" != x ; then
5029 eval "DEFAULT_$LINE"
5030 else
5031 no_cache=1
5032 fi
5033
5034 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5035
5036fi
5037
5038
5039 eval "$ac_cv_use_constraints"
5040 if test "$no_cache" != 1; then
5041 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5042 fi
5043
5044 if test "$wxUSE_CONSTRAINTS" = yes; then
5045 echo "$ac_t""yes" 1>&6
5046 else
5047 echo "$ac_t""no" 1>&6
5048 fi
5049
5050
5051 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
5052echo "configure:5053: checking for --enable-printarch" >&5
5053 no_cache=0
5054 # Check whether --enable-printarch or --disable-printarch was given.
5055if test "${enable_printarch+set}" = set; then
5056 enableval="$enable_printarch"
5057
5058 if test "$enableval" = yes; then
5059 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5060 else
5061 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5062 fi
5063
5064else
5065
5066 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5067 if test "x$LINE" != x ; then
5068 eval "DEFAULT_$LINE"
5069 else
5070 no_cache=1
5071 fi
5072
5073 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5074
5075fi
5076
5077
5078 eval "$ac_cv_use_printarch"
5079 if test "$no_cache" != 1; then
5080 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5081 fi
5082
5083 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5084 echo "$ac_t""yes" 1>&6
5085 else
5086 echo "$ac_t""no" 1>&6
5087 fi
5088
5089
5090 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
5091echo "configure:5092: checking for --enable-mdi" >&5
5092 no_cache=0
5093 # Check whether --enable-mdi or --disable-mdi was given.
5094if test "${enable_mdi+set}" = set; then
5095 enableval="$enable_mdi"
5096
5097 if test "$enableval" = yes; then
5098 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5099 else
5100 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5101 fi
5102
5103else
5104
5105 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5106 if test "x$LINE" != x ; then
5107 eval "DEFAULT_$LINE"
5108 else
5109 no_cache=1
5110 fi
5111
5112 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5113
5114fi
5115
5116
5117 eval "$ac_cv_use_mdi"
5118 if test "$no_cache" != 1; then
5119 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5120 fi
5121
5122 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5123 echo "$ac_t""yes" 1>&6
5124 else
5125 echo "$ac_t""no" 1>&6
5126 fi
5127
5128
5129 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
5130echo "configure:5131: checking for --enable-loggui" >&5
5131 no_cache=0
5132 # Check whether --enable-loggui or --disable-loggui was given.
5133if test "${enable_loggui+set}" = set; then
5134 enableval="$enable_loggui"
5135
5136 if test "$enableval" = yes; then
5137 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5138 else
5139 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5140 fi
5141
5142else
5143
5144 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5145 if test "x$LINE" != x ; then
5146 eval "DEFAULT_$LINE"
5147 else
5148 no_cache=1
5149 fi
5150
5151 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5152
5153fi
5154
5155
5156 eval "$ac_cv_use_loggui"
5157 if test "$no_cache" != 1; then
5158 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5159 fi
5160
5161 if test "$wxUSE_LOGGUI" = yes; then
5162 echo "$ac_t""yes" 1>&6
5163 else
5164 echo "$ac_t""no" 1>&6
5165 fi
5166
5167
5168 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
5169echo "configure:5170: checking for --enable-logwin" >&5
5170 no_cache=0
5171 # Check whether --enable-logwin or --disable-logwin was given.
5172if test "${enable_logwin+set}" = set; then
5173 enableval="$enable_logwin"
5174
5175 if test "$enableval" = yes; then
5176 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5177 else
5178 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5179 fi
5180
5181else
5182
5183 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5184 if test "x$LINE" != x ; then
5185 eval "DEFAULT_$LINE"
5186 else
5187 no_cache=1
5188 fi
5189
5190 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5191
5192fi
5193
5194
5195 eval "$ac_cv_use_logwin"
5196 if test "$no_cache" != 1; then
5197 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5198 fi
5199
5200 if test "$wxUSE_LOGWINDOW" = yes; then
5201 echo "$ac_t""yes" 1>&6
5202 else
5203 echo "$ac_t""no" 1>&6
5204 fi
5205
5206
5207 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
5208echo "configure:5209: checking for --enable-logdialog" >&5
5209 no_cache=0
5210 # Check whether --enable-logdialog or --disable-logdialog was given.
5211if test "${enable_logdialog+set}" = set; then
5212 enableval="$enable_logdialog"
5213
5214 if test "$enableval" = yes; then
5215 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5216 else
5217 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5218 fi
5219
5220else
5221
5222 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5223 if test "x$LINE" != x ; then
5224 eval "DEFAULT_$LINE"
5225 else
5226 no_cache=1
5227 fi
5228
5229 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5230
5231fi
5232
5233
5234 eval "$ac_cv_use_logdialog"
5235 if test "$no_cache" != 1; then
5236 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5237 fi
5238
5239 if test "$wxUSE_LOGDIALOG" = yes; then
5240 echo "$ac_t""yes" 1>&6
5241 else
5242 echo "$ac_t""no" 1>&6
5243 fi
5244
5245
5246
5247 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
5248echo "configure:5249: checking for --enable-postscript" >&5
5249 no_cache=0
5250 # Check whether --enable-postscript or --disable-postscript was given.
5251if test "${enable_postscript+set}" = set; then
5252 enableval="$enable_postscript"
5253
5254 if test "$enableval" = yes; then
5255 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5256 else
5257 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5258 fi
5259
5260else
5261
5262 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5263 if test "x$LINE" != x ; then
5264 eval "DEFAULT_$LINE"
5265 else
5266 no_cache=1
5267 fi
5268
5269 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5270
5271fi
5272
5273
5274 eval "$ac_cv_use_postscript"
5275 if test "$no_cache" != 1; then
5276 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5277 fi
5278
5279 if test "$wxUSE_POSTSCRIPT" = yes; then
5280 echo "$ac_t""yes" 1>&6
5281 else
5282 echo "$ac_t""no" 1>&6
5283 fi
5284
5285
5286
5287
5288
5289 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
5290echo "configure:5291: checking for --enable-prologio" >&5
5291 no_cache=0
5292 # Check whether --enable-prologio or --disable-prologio was given.
5293if test "${enable_prologio+set}" = set; then
5294 enableval="$enable_prologio"
5295
5296 if test "$enableval" = yes; then
5297 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5298 else
5299 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5300 fi
5301
5302else
5303
5304 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5305 if test "x$LINE" != x ; then
5306 eval "DEFAULT_$LINE"
5307 else
5308 no_cache=1
5309 fi
5310
5311 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5312
5313fi
5314
5315
5316 eval "$ac_cv_use_prologio"
5317 if test "$no_cache" != 1; then
5318 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5319 fi
5320
5321 if test "$wxUSE_PROLOGIO" = yes; then
5322 echo "$ac_t""yes" 1>&6
5323 else
5324 echo "$ac_t""no" 1>&6
5325 fi
5326
5327
5328 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
5329echo "configure:5330: checking for --enable-resources" >&5
5330 no_cache=0
5331 # Check whether --enable-resources or --disable-resources was given.
5332if test "${enable_resources+set}" = set; then
5333 enableval="$enable_resources"
5334
5335 if test "$enableval" = yes; then
5336 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5337 else
5338 ac_cv_use_resources='wxUSE_RESOURCES=no'
5339 fi
5340
5341else
5342
5343 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5344 if test "x$LINE" != x ; then
5345 eval "DEFAULT_$LINE"
5346 else
5347 no_cache=1
5348 fi
5349
5350 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5351
5352fi
5353
5354
5355 eval "$ac_cv_use_resources"
5356 if test "$no_cache" != 1; then
5357 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5358 fi
5359
5360 if test "$wxUSE_RESOURCES" = yes; then
5361 echo "$ac_t""yes" 1>&6
5362 else
5363 echo "$ac_t""no" 1>&6
5364 fi
5365
5366
5367
5368 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
5369echo "configure:5370: checking for --enable-xresources" >&5
5370 no_cache=0
5371 # Check whether --enable-xresources or --disable-xresources was given.
5372if test "${enable_xresources+set}" = set; then
5373 enableval="$enable_xresources"
5374
5375 if test "$enableval" = yes; then
5376 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5377 else
5378 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5379 fi
5380
5381else
5382
5383 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5384 if test "x$LINE" != x ; then
5385 eval "DEFAULT_$LINE"
5386 else
5387 no_cache=1
5388 fi
5389
5390 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5391
5392fi
5393
5394
5395 eval "$ac_cv_use_xresources"
5396 if test "$no_cache" != 1; then
5397 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5398 fi
5399
5400 if test "$wxUSE_X_RESOURCES" = yes; then
5401 echo "$ac_t""yes" 1>&6
5402 else
5403 echo "$ac_t""no" 1>&6
5404 fi
5405
5406
5407
5408
5409 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
5410echo "configure:5411: checking for --enable-clipboard" >&5
5411 no_cache=0
5412 # Check whether --enable-clipboard or --disable-clipboard was given.
5413if test "${enable_clipboard+set}" = set; then
5414 enableval="$enable_clipboard"
5415
5416 if test "$enableval" = yes; then
5417 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5418 else
5419 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5420 fi
5421
5422else
5423
5424 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5425 if test "x$LINE" != x ; then
5426 eval "DEFAULT_$LINE"
5427 else
5428 no_cache=1
5429 fi
5430
5431 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5432
5433fi
5434
5435
5436 eval "$ac_cv_use_clipboard"
5437 if test "$no_cache" != 1; then
5438 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5439 fi
5440
5441 if test "$wxUSE_CLIPBOARD" = yes; then
5442 echo "$ac_t""yes" 1>&6
5443 else
5444 echo "$ac_t""no" 1>&6
5445 fi
5446
5447
5448 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
5449echo "configure:5450: checking for --enable-dnd" >&5
5450 no_cache=0
5451 # Check whether --enable-dnd or --disable-dnd was given.
5452if test "${enable_dnd+set}" = set; then
5453 enableval="$enable_dnd"
5454
5455 if test "$enableval" = yes; then
5456 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5457 else
5458 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5459 fi
5460
5461else
5462
5463 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5464 if test "x$LINE" != x ; then
5465 eval "DEFAULT_$LINE"
5466 else
5467 no_cache=1
5468 fi
5469
5470 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5471
5472fi
5473
5474
5475 eval "$ac_cv_use_dnd"
5476 if test "$no_cache" != 1; then
5477 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5478 fi
5479
5480 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5481 echo "$ac_t""yes" 1>&6
5482 else
5483 echo "$ac_t""no" 1>&6
5484 fi
5485
5486
5487 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
5488echo "configure:5489: checking for --enable-metafile" >&5
5489 no_cache=0
5490 # Check whether --enable-metafile or --disable-metafile was given.
5491if test "${enable_metafile+set}" = set; then
5492 enableval="$enable_metafile"
5493
5494 if test "$enableval" = yes; then
5495 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5496 else
5497 ac_cv_use_metafile='wxUSE_METAFILE=no'
5498 fi
5499
5500else
5501
5502 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5503 if test "x$LINE" != x ; then
5504 eval "DEFAULT_$LINE"
5505 else
5506 no_cache=1
5507 fi
5508
5509 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5510
5511fi
5512
5513
5514 eval "$ac_cv_use_metafile"
5515 if test "$no_cache" != 1; then
5516 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5517 fi
5518
5519 if test "$wxUSE_METAFILE" = yes; then
5520 echo "$ac_t""yes" 1>&6
5521 else
5522 echo "$ac_t""no" 1>&6
5523 fi
5524
5525
5526
5527 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5528echo "configure:5529: checking for --enable-treelayout" >&5
5529 no_cache=0
5530 # Check whether --enable-treelayout or --disable-treelayout was given.
5531if test "${enable_treelayout+set}" = set; then
5532 enableval="$enable_treelayout"
5533
5534 if test "$enableval" = yes; then
5535 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5536 else
5537 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5538 fi
5539
5540else
5541
5542 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5543 if test "x$LINE" != x ; then
5544 eval "DEFAULT_$LINE"
5545 else
5546 no_cache=1
5547 fi
5548
5549 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5550
5551fi
5552
5553
5554 eval "$ac_cv_use_treelayout"
5555 if test "$no_cache" != 1; then
5556 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5557 fi
5558
5559 if test "$wxUSE_TREELAYOUT" = yes; then
5560 echo "$ac_t""yes" 1>&6
5561 else
5562 echo "$ac_t""no" 1>&6
5563 fi
5564
5565
5566
5567
5568 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5569echo "configure:5570: checking for --enable-controls" >&5
5570 no_cache=0
5571 # Check whether --enable-controls or --disable-controls was given.
5572if test "${enable_controls+set}" = set; then
5573 enableval="$enable_controls"
5574
5575 if test "$enableval" = yes; then
5576 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5577 else
5578 ac_cv_use_controls='wxUSE_CONTROLS=no'
5579 fi
5580
5581else
5582
5583 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5584 if test "x$LINE" != x ; then
5585 eval "DEFAULT_$LINE"
5586 else
5587 no_cache=1
5588 fi
5589
5590 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5591
5592fi
5593
5594
5595 eval "$ac_cv_use_controls"
5596 if test "$no_cache" != 1; then
5597 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5598 fi
5599
5600 if test "$wxUSE_CONTROLS" = yes; then
5601 echo "$ac_t""yes" 1>&6
5602 else
5603 echo "$ac_t""no" 1>&6
5604 fi
5605
5606
5607if test "$wxUSE_CONTROLS" = "yes"; then
5608 DEFAULT_wxUSE_ACCEL=yes
5609 DEFAULT_wxUSE_BMPBUTTON=yes
5610 DEFAULT_wxUSE_BUTTON=yes
5611 DEFAULT_wxUSE_CALCTRL=no
5612 DEFAULT_wxUSE_CARET=yes
5613 DEFAULT_wxUSE_COMBOBOX=yes
5614 DEFAULT_wxUSE_CHECKBOX=yes
5615 DEFAULT_wxUSE_CHECKLISTBOX=yes
5616 DEFAULT_wxUSE_CHOICE=yes
5617 DEFAULT_wxUSE_GAUGE=yes
5618 DEFAULT_wxUSE_GRID=yes
5619 DEFAULT_wxUSE_NEW_GRID=yes
5620 DEFAULT_wxUSE_IMAGLIST=yes
5621 DEFAULT_wxUSE_LISTBOX=yes
5622 DEFAULT_wxUSE_LISTCTRL=yes
5623 DEFAULT_wxUSE_NOTEBOOK=yes
5624 DEFAULT_wxUSE_PROPSHEET=yes
5625 DEFAULT_wxUSE_RADIOBOX=yes
5626 DEFAULT_wxUSE_RADIOBTN=yes
5627 DEFAULT_wxUSE_SASH=yes
5628 DEFAULT_wxUSE_SCROLLBAR=yes
5629 DEFAULT_wxUSE_SLIDER=yes
5630 DEFAULT_wxUSE_SPINBTN=yes
5631 DEFAULT_wxUSE_SPINCTRL=yes
5632 DEFAULT_wxUSE_SPLITTER=yes
5633 DEFAULT_wxUSE_STATBMP=yes
5634 DEFAULT_wxUSE_STATBOX=yes
5635 DEFAULT_wxUSE_STATLINE=yes
5636 DEFAULT_wxUSE_STATUSBAR=yes
5637 DEFAULT_wxUSE_TAB_DIALOG=yes
5638 DEFAULT_wxUSE_TOGGLEBTN=yes
5639 DEFAULT_wxUSE_TOOLBAR=yes
5640 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5641 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5642 DEFAULT_wxUSE_TOOLTIPS=yes
5643 DEFAULT_wxUSE_TREECTRL=yes
5644 DEFAULT_wxUSE_POPUPWIN=yes
5645 DEFAULT_wxUSE_TIPWINDOW=yes
5646elif test "$wxUSE_CONTROLS" = "no"; then
5647 DEFAULT_wxUSE_ACCEL=no
5648 DEFAULT_wxUSE_BMPBUTTON=no
5649 DEFAULT_wxUSE_BUTTON=no
5650 DEFAULT_wxUSE_CALCTRL=no
5651 DEFAULT_wxUSE_CARET=no
5652 DEFAULT_wxUSE_COMBOBOX=no
5653 DEFAULT_wxUSE_CHECKBOX=no
5654 DEFAULT_wxUSE_CHECKLISTBOX=no
5655 DEFAULT_wxUSE_CHOICE=no
5656 DEFAULT_wxUSE_GAUGE=no
5657 DEFAULT_wxUSE_GRID=no
5658 DEFAULT_wxUSE_NEW_GRID=no
5659 DEFAULT_wxUSE_IMAGLIST=no
5660 DEFAULT_wxUSE_LISTBOX=no
5661 DEFAULT_wxUSE_LISTCTRL=no
5662 DEFAULT_wxUSE_NOTEBOOK=no
5663 DEFAULT_wxUSE_PROPSHEET=no
5664 DEFAULT_wxUSE_RADIOBOX=no
5665 DEFAULT_wxUSE_RADIOBTN=no
5666 DEFAULT_wxUSE_SASH=no
5667 DEFAULT_wxUSE_SCROLLBAR=no
5668 DEFAULT_wxUSE_SLIDER=no
5669 DEFAULT_wxUSE_SPINBTN=no
5670 DEFAULT_wxUSE_SPINCTRL=no
5671 DEFAULT_wxUSE_SPLITTER=no
5672 DEFAULT_wxUSE_STATBMP=no
5673 DEFAULT_wxUSE_STATBOX=no
5674 DEFAULT_wxUSE_STATLINE=no
5675 DEFAULT_wxUSE_STATUSBAR=no
5676 DEFAULT_wxUSE_TAB_DIALOG=no
5677 DEFAULT_wxUSE_TOGGLEBTN=no
5678 DEFAULT_wxUSE_TOOLBAR=no
5679 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5680 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5681 DEFAULT_wxUSE_TOOLTIPS=no
5682 DEFAULT_wxUSE_TREECTRL=no
5683 DEFAULT_wxUSE_POPUPWIN=no
5684 DEFAULT_wxUSE_TIPWINDOW=no
5685fi
5686
5687
5688 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5689echo "configure:5690: checking for --enable-accel" >&5
5690 no_cache=0
5691 # Check whether --enable-accel or --disable-accel was given.
5692if test "${enable_accel+set}" = set; then
5693 enableval="$enable_accel"
5694
5695 if test "$enableval" = yes; then
5696 ac_cv_use_accel='wxUSE_ACCEL=yes'
5697 else
5698 ac_cv_use_accel='wxUSE_ACCEL=no'
5699 fi
5700
5701else
5702
5703 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5704 if test "x$LINE" != x ; then
5705 eval "DEFAULT_$LINE"
5706 else
5707 no_cache=1
5708 fi
5709
5710 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5711
5712fi
5713
5714
5715 eval "$ac_cv_use_accel"
5716 if test "$no_cache" != 1; then
5717 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5718 fi
5719
5720 if test "$wxUSE_ACCEL" = yes; then
5721 echo "$ac_t""yes" 1>&6
5722 else
5723 echo "$ac_t""no" 1>&6
5724 fi
5725
5726
5727 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5728echo "configure:5729: checking for --enable-button" >&5
5729 no_cache=0
5730 # Check whether --enable-button or --disable-button was given.
5731if test "${enable_button+set}" = set; then
5732 enableval="$enable_button"
5733
5734 if test "$enableval" = yes; then
5735 ac_cv_use_button='wxUSE_BUTTON=yes'
5736 else
5737 ac_cv_use_button='wxUSE_BUTTON=no'
5738 fi
5739
5740else
5741
5742 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5743 if test "x$LINE" != x ; then
5744 eval "DEFAULT_$LINE"
5745 else
5746 no_cache=1
5747 fi
5748
5749 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5750
5751fi
5752
5753
5754 eval "$ac_cv_use_button"
5755 if test "$no_cache" != 1; then
5756 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5757 fi
5758
5759 if test "$wxUSE_BUTTON" = yes; then
5760 echo "$ac_t""yes" 1>&6
5761 else
5762 echo "$ac_t""no" 1>&6
5763 fi
5764
5765
5766 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5767echo "configure:5768: checking for --enable-bmpbutton" >&5
5768 no_cache=0
5769 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5770if test "${enable_bmpbutton+set}" = set; then
5771 enableval="$enable_bmpbutton"
5772
5773 if test "$enableval" = yes; then
5774 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5775 else
5776 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5777 fi
5778
5779else
5780
5781 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5782 if test "x$LINE" != x ; then
5783 eval "DEFAULT_$LINE"
5784 else
5785 no_cache=1
5786 fi
5787
5788 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5789
5790fi
5791
5792
5793 eval "$ac_cv_use_bmpbutton"
5794 if test "$no_cache" != 1; then
5795 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5796 fi
5797
5798 if test "$wxUSE_BMPBUTTON" = yes; then
5799 echo "$ac_t""yes" 1>&6
5800 else
5801 echo "$ac_t""no" 1>&6
5802 fi
5803
5804
5805 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5806echo "configure:5807: checking for --enable-calendar" >&5
5807 no_cache=0
5808 # Check whether --enable-calendar or --disable-calendar was given.
5809if test "${enable_calendar+set}" = set; then
5810 enableval="$enable_calendar"
5811
5812 if test "$enableval" = yes; then
5813 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5814 else
5815 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5816 fi
5817
5818else
5819
5820 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5821 if test "x$LINE" != x ; then
5822 eval "DEFAULT_$LINE"
5823 else
5824 no_cache=1
5825 fi
5826
5827 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5828
5829fi
5830
5831
5832 eval "$ac_cv_use_calendar"
5833 if test "$no_cache" != 1; then
5834 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5835 fi
5836
5837 if test "$wxUSE_CALCTRL" = yes; then
5838 echo "$ac_t""yes" 1>&6
5839 else
5840 echo "$ac_t""no" 1>&6
5841 fi
5842
5843
5844 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5845echo "configure:5846: checking for --enable-caret" >&5
5846 no_cache=0
5847 # Check whether --enable-caret or --disable-caret was given.
5848if test "${enable_caret+set}" = set; then
5849 enableval="$enable_caret"
5850
5851 if test "$enableval" = yes; then
5852 ac_cv_use_caret='wxUSE_CARET=yes'
5853 else
5854 ac_cv_use_caret='wxUSE_CARET=no'
5855 fi
5856
5857else
5858
5859 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5860 if test "x$LINE" != x ; then
5861 eval "DEFAULT_$LINE"
5862 else
5863 no_cache=1
5864 fi
5865
5866 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5867
5868fi
5869
5870
5871 eval "$ac_cv_use_caret"
5872 if test "$no_cache" != 1; then
5873 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5874 fi
5875
5876 if test "$wxUSE_CARET" = yes; then
5877 echo "$ac_t""yes" 1>&6
5878 else
5879 echo "$ac_t""no" 1>&6
5880 fi
5881
5882
5883 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5884echo "configure:5885: checking for --enable-checkbox" >&5
5885 no_cache=0
5886 # Check whether --enable-checkbox or --disable-checkbox was given.
5887if test "${enable_checkbox+set}" = set; then
5888 enableval="$enable_checkbox"
5889
5890 if test "$enableval" = yes; then
5891 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5892 else
5893 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5894 fi
5895
5896else
5897
5898 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5899 if test "x$LINE" != x ; then
5900 eval "DEFAULT_$LINE"
5901 else
5902 no_cache=1
5903 fi
5904
5905 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5906
5907fi
5908
5909
5910 eval "$ac_cv_use_checkbox"
5911 if test "$no_cache" != 1; then
5912 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5913 fi
5914
5915 if test "$wxUSE_CHECKBOX" = yes; then
5916 echo "$ac_t""yes" 1>&6
5917 else
5918 echo "$ac_t""no" 1>&6
5919 fi
5920
5921
5922 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5923echo "configure:5924: checking for --enable-checklst" >&5
5924 no_cache=0
5925 # Check whether --enable-checklst or --disable-checklst was given.
5926if test "${enable_checklst+set}" = set; then
5927 enableval="$enable_checklst"
5928
5929 if test "$enableval" = yes; then
5930 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5931 else
5932 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5933 fi
5934
5935else
5936
5937 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5938 if test "x$LINE" != x ; then
5939 eval "DEFAULT_$LINE"
5940 else
5941 no_cache=1
5942 fi
5943
5944 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5945
5946fi
5947
5948
5949 eval "$ac_cv_use_checklst"
5950 if test "$no_cache" != 1; then
5951 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5952 fi
5953
5954 if test "$wxUSE_CHECKLST" = yes; then
5955 echo "$ac_t""yes" 1>&6
5956 else
5957 echo "$ac_t""no" 1>&6
5958 fi
5959
5960
5961 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5962echo "configure:5963: checking for --enable-choice" >&5
5963 no_cache=0
5964 # Check whether --enable-choice or --disable-choice was given.
5965if test "${enable_choice+set}" = set; then
5966 enableval="$enable_choice"
5967
5968 if test "$enableval" = yes; then
5969 ac_cv_use_choice='wxUSE_CHOICE=yes'
5970 else
5971 ac_cv_use_choice='wxUSE_CHOICE=no'
5972 fi
5973
5974else
5975
5976 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5977 if test "x$LINE" != x ; then
5978 eval "DEFAULT_$LINE"
5979 else
5980 no_cache=1
5981 fi
5982
5983 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5984
5985fi
5986
5987
5988 eval "$ac_cv_use_choice"
5989 if test "$no_cache" != 1; then
5990 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5991 fi
5992
5993 if test "$wxUSE_CHOICE" = yes; then
5994 echo "$ac_t""yes" 1>&6
5995 else
5996 echo "$ac_t""no" 1>&6
5997 fi
5998
5999
6000 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
6001echo "configure:6002: checking for --enable-combobox" >&5
6002 no_cache=0
6003 # Check whether --enable-combobox or --disable-combobox was given.
6004if test "${enable_combobox+set}" = set; then
6005 enableval="$enable_combobox"
6006
6007 if test "$enableval" = yes; then
6008 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6009 else
6010 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6011 fi
6012
6013else
6014
6015 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6016 if test "x$LINE" != x ; then
6017 eval "DEFAULT_$LINE"
6018 else
6019 no_cache=1
6020 fi
6021
6022 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6023
6024fi
6025
6026
6027 eval "$ac_cv_use_combobox"
6028 if test "$no_cache" != 1; then
6029 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6030 fi
6031
6032 if test "$wxUSE_COMBOBOX" = yes; then
6033 echo "$ac_t""yes" 1>&6
6034 else
6035 echo "$ac_t""no" 1>&6
6036 fi
6037
6038
6039 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
6040echo "configure:6041: checking for --enable-gauge" >&5
6041 no_cache=0
6042 # Check whether --enable-gauge or --disable-gauge was given.
6043if test "${enable_gauge+set}" = set; then
6044 enableval="$enable_gauge"
6045
6046 if test "$enableval" = yes; then
6047 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6048 else
6049 ac_cv_use_gauge='wxUSE_GAUGE=no'
6050 fi
6051
6052else
6053
6054 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6055 if test "x$LINE" != x ; then
6056 eval "DEFAULT_$LINE"
6057 else
6058 no_cache=1
6059 fi
6060
6061 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6062
6063fi
6064
6065
6066 eval "$ac_cv_use_gauge"
6067 if test "$no_cache" != 1; then
6068 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6069 fi
6070
6071 if test "$wxUSE_GAUGE" = yes; then
6072 echo "$ac_t""yes" 1>&6
6073 else
6074 echo "$ac_t""no" 1>&6
6075 fi
6076
6077
6078 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
6079echo "configure:6080: checking for --enable-grid" >&5
6080 no_cache=0
6081 # Check whether --enable-grid or --disable-grid was given.
6082if test "${enable_grid+set}" = set; then
6083 enableval="$enable_grid"
6084
6085 if test "$enableval" = yes; then
6086 ac_cv_use_grid='wxUSE_GRID=yes'
6087 else
6088 ac_cv_use_grid='wxUSE_GRID=no'
6089 fi
6090
6091else
6092
6093 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6094 if test "x$LINE" != x ; then
6095 eval "DEFAULT_$LINE"
6096 else
6097 no_cache=1
6098 fi
6099
6100 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6101
6102fi
6103
6104
6105 eval "$ac_cv_use_grid"
6106 if test "$no_cache" != 1; then
6107 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6108 fi
6109
6110 if test "$wxUSE_GRID" = yes; then
6111 echo "$ac_t""yes" 1>&6
6112 else
6113 echo "$ac_t""no" 1>&6
6114 fi
6115
6116
6117 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
6118echo "configure:6119: checking for --enable-newgrid" >&5
6119 no_cache=0
6120 # Check whether --enable-newgrid or --disable-newgrid was given.
6121if test "${enable_newgrid+set}" = set; then
6122 enableval="$enable_newgrid"
6123
6124 if test "$enableval" = yes; then
6125 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6126 else
6127 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6128 fi
6129
6130else
6131
6132 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6133 if test "x$LINE" != x ; then
6134 eval "DEFAULT_$LINE"
6135 else
6136 no_cache=1
6137 fi
6138
6139 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6140
6141fi
6142
6143
6144 eval "$ac_cv_use_newgrid"
6145 if test "$no_cache" != 1; then
6146 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6147 fi
6148
6149 if test "$wxUSE_NEW_GRID" = yes; then
6150 echo "$ac_t""yes" 1>&6
6151 else
6152 echo "$ac_t""no" 1>&6
6153 fi
6154
6155
6156 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
6157echo "configure:6158: checking for --enable-imaglist" >&5
6158 no_cache=0
6159 # Check whether --enable-imaglist or --disable-imaglist was given.
6160if test "${enable_imaglist+set}" = set; then
6161 enableval="$enable_imaglist"
6162
6163 if test "$enableval" = yes; then
6164 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6165 else
6166 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6167 fi
6168
6169else
6170
6171 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6172 if test "x$LINE" != x ; then
6173 eval "DEFAULT_$LINE"
6174 else
6175 no_cache=1
6176 fi
6177
6178 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6179
6180fi
6181
6182
6183 eval "$ac_cv_use_imaglist"
6184 if test "$no_cache" != 1; then
6185 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6186 fi
6187
6188 if test "$wxUSE_IMAGLIST" = yes; then
6189 echo "$ac_t""yes" 1>&6
6190 else
6191 echo "$ac_t""no" 1>&6
6192 fi
6193
6194
6195 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
6196echo "configure:6197: checking for --enable-listbox" >&5
6197 no_cache=0
6198 # Check whether --enable-listbox or --disable-listbox was given.
6199if test "${enable_listbox+set}" = set; then
6200 enableval="$enable_listbox"
6201
6202 if test "$enableval" = yes; then
6203 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6204 else
6205 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6206 fi
6207
6208else
6209
6210 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6211 if test "x$LINE" != x ; then
6212 eval "DEFAULT_$LINE"
6213 else
6214 no_cache=1
6215 fi
6216
6217 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6218
6219fi
6220
6221
6222 eval "$ac_cv_use_listbox"
6223 if test "$no_cache" != 1; then
6224 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6225 fi
6226
6227 if test "$wxUSE_LISTBOX" = yes; then
6228 echo "$ac_t""yes" 1>&6
6229 else
6230 echo "$ac_t""no" 1>&6
6231 fi
6232
6233
6234 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
6235echo "configure:6236: checking for --enable-listctrl" >&5
6236 no_cache=0
6237 # Check whether --enable-listctrl or --disable-listctrl was given.
6238if test "${enable_listctrl+set}" = set; then
6239 enableval="$enable_listctrl"
6240
6241 if test "$enableval" = yes; then
6242 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6243 else
6244 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6245 fi
6246
6247else
6248
6249 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6250 if test "x$LINE" != x ; then
6251 eval "DEFAULT_$LINE"
6252 else
6253 no_cache=1
6254 fi
6255
6256 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6257
6258fi
6259
6260
6261 eval "$ac_cv_use_listctrl"
6262 if test "$no_cache" != 1; then
6263 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6264 fi
6265
6266 if test "$wxUSE_LISTCTRL" = yes; then
6267 echo "$ac_t""yes" 1>&6
6268 else
6269 echo "$ac_t""no" 1>&6
6270 fi
6271
6272
6273 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
6274echo "configure:6275: checking for --enable-notebook" >&5
6275 no_cache=0
6276 # Check whether --enable-notebook or --disable-notebook was given.
6277if test "${enable_notebook+set}" = set; then
6278 enableval="$enable_notebook"
6279
6280 if test "$enableval" = yes; then
6281 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6282 else
6283 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6284 fi
6285
6286else
6287
6288 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6289 if test "x$LINE" != x ; then
6290 eval "DEFAULT_$LINE"
6291 else
6292 no_cache=1
6293 fi
6294
6295 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6296
6297fi
6298
6299
6300 eval "$ac_cv_use_notebook"
6301 if test "$no_cache" != 1; then
6302 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6303 fi
6304
6305 if test "$wxUSE_NOTEBOOK" = yes; then
6306 echo "$ac_t""yes" 1>&6
6307 else
6308 echo "$ac_t""no" 1>&6
6309 fi
6310
6311
6312 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
6313echo "configure:6314: checking for --enable-propsheet" >&5
6314 no_cache=0
6315 # Check whether --enable-propsheet or --disable-propsheet was given.
6316if test "${enable_propsheet+set}" = set; then
6317 enableval="$enable_propsheet"
6318
6319 if test "$enableval" = yes; then
6320 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6321 else
6322 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6323 fi
6324
6325else
6326
6327 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6328 if test "x$LINE" != x ; then
6329 eval "DEFAULT_$LINE"
6330 else
6331 no_cache=1
6332 fi
6333
6334 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6335
6336fi
6337
6338
6339 eval "$ac_cv_use_propsheet"
6340 if test "$no_cache" != 1; then
6341 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6342 fi
6343
6344 if test "$wxUSE_PROPSHEET" = yes; then
6345 echo "$ac_t""yes" 1>&6
6346 else
6347 echo "$ac_t""no" 1>&6
6348 fi
6349
6350
6351 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
6352echo "configure:6353: checking for --enable-radiobox" >&5
6353 no_cache=0
6354 # Check whether --enable-radiobox or --disable-radiobox was given.
6355if test "${enable_radiobox+set}" = set; then
6356 enableval="$enable_radiobox"
6357
6358 if test "$enableval" = yes; then
6359 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6360 else
6361 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6362 fi
6363
6364else
6365
6366 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6367 if test "x$LINE" != x ; then
6368 eval "DEFAULT_$LINE"
6369 else
6370 no_cache=1
6371 fi
6372
6373 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6374
6375fi
6376
6377
6378 eval "$ac_cv_use_radiobox"
6379 if test "$no_cache" != 1; then
6380 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6381 fi
6382
6383 if test "$wxUSE_RADIOBOX" = yes; then
6384 echo "$ac_t""yes" 1>&6
6385 else
6386 echo "$ac_t""no" 1>&6
6387 fi
6388
6389
6390 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
6391echo "configure:6392: checking for --enable-radiobtn" >&5
6392 no_cache=0
6393 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6394if test "${enable_radiobtn+set}" = set; then
6395 enableval="$enable_radiobtn"
6396
6397 if test "$enableval" = yes; then
6398 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6399 else
6400 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6401 fi
6402
6403else
6404
6405 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6406 if test "x$LINE" != x ; then
6407 eval "DEFAULT_$LINE"
6408 else
6409 no_cache=1
6410 fi
6411
6412 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6413
6414fi
6415
6416
6417 eval "$ac_cv_use_radiobtn"
6418 if test "$no_cache" != 1; then
6419 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6420 fi
6421
6422 if test "$wxUSE_RADIOBTN" = yes; then
6423 echo "$ac_t""yes" 1>&6
6424 else
6425 echo "$ac_t""no" 1>&6
6426 fi
6427
6428
6429 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
6430echo "configure:6431: checking for --enable-sash" >&5
6431 no_cache=0
6432 # Check whether --enable-sash or --disable-sash was given.
6433if test "${enable_sash+set}" = set; then
6434 enableval="$enable_sash"
6435
6436 if test "$enableval" = yes; then
6437 ac_cv_use_sash='wxUSE_SASH=yes'
6438 else
6439 ac_cv_use_sash='wxUSE_SASH=no'
6440 fi
6441
6442else
6443
6444 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6445 if test "x$LINE" != x ; then
6446 eval "DEFAULT_$LINE"
6447 else
6448 no_cache=1
6449 fi
6450
6451 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6452
6453fi
6454
6455
6456 eval "$ac_cv_use_sash"
6457 if test "$no_cache" != 1; then
6458 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6459 fi
6460
6461 if test "$wxUSE_SASH" = yes; then
6462 echo "$ac_t""yes" 1>&6
6463 else
6464 echo "$ac_t""no" 1>&6
6465 fi
6466
6467
6468 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
6469echo "configure:6470: checking for --enable-scrollbar" >&5
6470 no_cache=0
6471 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6472if test "${enable_scrollbar+set}" = set; then
6473 enableval="$enable_scrollbar"
6474
6475 if test "$enableval" = yes; then
6476 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6477 else
6478 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6479 fi
6480
6481else
6482
6483 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6484 if test "x$LINE" != x ; then
6485 eval "DEFAULT_$LINE"
6486 else
6487 no_cache=1
6488 fi
6489
6490 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6491
6492fi
6493
6494
6495 eval "$ac_cv_use_scrollbar"
6496 if test "$no_cache" != 1; then
6497 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6498 fi
6499
6500 if test "$wxUSE_SCROLLBAR" = yes; then
6501 echo "$ac_t""yes" 1>&6
6502 else
6503 echo "$ac_t""no" 1>&6
6504 fi
6505
6506
6507 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
6508echo "configure:6509: checking for --enable-slider" >&5
6509 no_cache=0
6510 # Check whether --enable-slider or --disable-slider was given.
6511if test "${enable_slider+set}" = set; then
6512 enableval="$enable_slider"
6513
6514 if test "$enableval" = yes; then
6515 ac_cv_use_slider='wxUSE_SLIDER=yes'
6516 else
6517 ac_cv_use_slider='wxUSE_SLIDER=no'
6518 fi
6519
6520else
6521
6522 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6523 if test "x$LINE" != x ; then
6524 eval "DEFAULT_$LINE"
6525 else
6526 no_cache=1
6527 fi
6528
6529 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6530
6531fi
6532
6533
6534 eval "$ac_cv_use_slider"
6535 if test "$no_cache" != 1; then
6536 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6537 fi
6538
6539 if test "$wxUSE_SLIDER" = yes; then
6540 echo "$ac_t""yes" 1>&6
6541 else
6542 echo "$ac_t""no" 1>&6
6543 fi
6544
6545
6546 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6547echo "configure:6548: checking for --enable-spinbtn" >&5
6548 no_cache=0
6549 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6550if test "${enable_spinbtn+set}" = set; then
6551 enableval="$enable_spinbtn"
6552
6553 if test "$enableval" = yes; then
6554 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6555 else
6556 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6557 fi
6558
6559else
6560
6561 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6562 if test "x$LINE" != x ; then
6563 eval "DEFAULT_$LINE"
6564 else
6565 no_cache=1
6566 fi
6567
6568 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6569
6570fi
6571
6572
6573 eval "$ac_cv_use_spinbtn"
6574 if test "$no_cache" != 1; then
6575 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6576 fi
6577
6578 if test "$wxUSE_SPINBTN" = yes; then
6579 echo "$ac_t""yes" 1>&6
6580 else
6581 echo "$ac_t""no" 1>&6
6582 fi
6583
6584
6585 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6586echo "configure:6587: checking for --enable-spinctrl" >&5
6587 no_cache=0
6588 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6589if test "${enable_spinctrl+set}" = set; then
6590 enableval="$enable_spinctrl"
6591
6592 if test "$enableval" = yes; then
6593 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6594 else
6595 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6596 fi
6597
6598else
6599
6600 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6601 if test "x$LINE" != x ; then
6602 eval "DEFAULT_$LINE"
6603 else
6604 no_cache=1
6605 fi
6606
6607 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6608
6609fi
6610
6611
6612 eval "$ac_cv_use_spinctrl"
6613 if test "$no_cache" != 1; then
6614 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6615 fi
6616
6617 if test "$wxUSE_SPINCTRL" = yes; then
6618 echo "$ac_t""yes" 1>&6
6619 else
6620 echo "$ac_t""no" 1>&6
6621 fi
6622
6623
6624 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6625echo "configure:6626: checking for --enable-splitter" >&5
6626 no_cache=0
6627 # Check whether --enable-splitter or --disable-splitter was given.
6628if test "${enable_splitter+set}" = set; then
6629 enableval="$enable_splitter"
6630
6631 if test "$enableval" = yes; then
6632 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6633 else
6634 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6635 fi
6636
6637else
6638
6639 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6640 if test "x$LINE" != x ; then
6641 eval "DEFAULT_$LINE"
6642 else
6643 no_cache=1
6644 fi
6645
6646 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6647
6648fi
6649
6650
6651 eval "$ac_cv_use_splitter"
6652 if test "$no_cache" != 1; then
6653 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6654 fi
6655
6656 if test "$wxUSE_SPLITTER" = yes; then
6657 echo "$ac_t""yes" 1>&6
6658 else
6659 echo "$ac_t""no" 1>&6
6660 fi
6661
6662
6663 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6664echo "configure:6665: checking for --enable-statbmp" >&5
6665 no_cache=0
6666 # Check whether --enable-statbmp or --disable-statbmp was given.
6667if test "${enable_statbmp+set}" = set; then
6668 enableval="$enable_statbmp"
6669
6670 if test "$enableval" = yes; then
6671 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6672 else
6673 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6674 fi
6675
6676else
6677
6678 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6679 if test "x$LINE" != x ; then
6680 eval "DEFAULT_$LINE"
6681 else
6682 no_cache=1
6683 fi
6684
6685 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6686
6687fi
6688
6689
6690 eval "$ac_cv_use_statbmp"
6691 if test "$no_cache" != 1; then
6692 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6693 fi
6694
6695 if test "$wxUSE_STATBMP" = yes; then
6696 echo "$ac_t""yes" 1>&6
6697 else
6698 echo "$ac_t""no" 1>&6
6699 fi
6700
6701
6702 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6703echo "configure:6704: checking for --enable-statbox" >&5
6704 no_cache=0
6705 # Check whether --enable-statbox or --disable-statbox was given.
6706if test "${enable_statbox+set}" = set; then
6707 enableval="$enable_statbox"
6708
6709 if test "$enableval" = yes; then
6710 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6711 else
6712 ac_cv_use_statbox='wxUSE_STATBOX=no'
6713 fi
6714
6715else
6716
6717 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6718 if test "x$LINE" != x ; then
6719 eval "DEFAULT_$LINE"
6720 else
6721 no_cache=1
6722 fi
6723
6724 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6725
6726fi
6727
6728
6729 eval "$ac_cv_use_statbox"
6730 if test "$no_cache" != 1; then
6731 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6732 fi
6733
6734 if test "$wxUSE_STATBOX" = yes; then
6735 echo "$ac_t""yes" 1>&6
6736 else
6737 echo "$ac_t""no" 1>&6
6738 fi
6739
6740
6741 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6742echo "configure:6743: checking for --enable-statline" >&5
6743 no_cache=0
6744 # Check whether --enable-statline or --disable-statline was given.
6745if test "${enable_statline+set}" = set; then
6746 enableval="$enable_statline"
6747
6748 if test "$enableval" = yes; then
6749 ac_cv_use_statline='wxUSE_STATLINE=yes'
6750 else
6751 ac_cv_use_statline='wxUSE_STATLINE=no'
6752 fi
6753
6754else
6755
6756 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6757 if test "x$LINE" != x ; then
6758 eval "DEFAULT_$LINE"
6759 else
6760 no_cache=1
6761 fi
6762
6763 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6764
6765fi
6766
6767
6768 eval "$ac_cv_use_statline"
6769 if test "$no_cache" != 1; then
6770 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6771 fi
6772
6773 if test "$wxUSE_STATLINE" = yes; then
6774 echo "$ac_t""yes" 1>&6
6775 else
6776 echo "$ac_t""no" 1>&6
6777 fi
6778
6779
6780 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6781echo "configure:6782: checking for --enable-stattext" >&5
6782 no_cache=0
6783 # Check whether --enable-stattext or --disable-stattext was given.
6784if test "${enable_stattext+set}" = set; then
6785 enableval="$enable_stattext"
6786
6787 if test "$enableval" = yes; then
6788 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6789 else
6790 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6791 fi
6792
6793else
6794
6795 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6796 if test "x$LINE" != x ; then
6797 eval "DEFAULT_$LINE"
6798 else
6799 no_cache=1
6800 fi
6801
6802 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6803
6804fi
6805
6806
6807 eval "$ac_cv_use_stattext"
6808 if test "$no_cache" != 1; then
6809 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6810 fi
6811
6812 if test "$wxUSE_STATTEXT" = yes; then
6813 echo "$ac_t""yes" 1>&6
6814 else
6815 echo "$ac_t""no" 1>&6
6816 fi
6817
6818
6819 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6820echo "configure:6821: checking for --enable-statusbar" >&5
6821 no_cache=0
6822 # Check whether --enable-statusbar or --disable-statusbar was given.
6823if test "${enable_statusbar+set}" = set; then
6824 enableval="$enable_statusbar"
6825
6826 if test "$enableval" = yes; then
6827 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6828 else
6829 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6830 fi
6831
6832else
6833
6834 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6835 if test "x$LINE" != x ; then
6836 eval "DEFAULT_$LINE"
6837 else
6838 no_cache=1
6839 fi
6840
6841 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6842
6843fi
6844
6845
6846 eval "$ac_cv_use_statusbar"
6847 if test "$no_cache" != 1; then
6848 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6849 fi
6850
6851 if test "$wxUSE_STATUSBAR" = yes; then
6852 echo "$ac_t""yes" 1>&6
6853 else
6854 echo "$ac_t""no" 1>&6
6855 fi
6856
6857
6858 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6859echo "configure:6860: checking for --enable-tabdialog" >&5
6860 no_cache=0
6861 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6862if test "${enable_tabdialog+set}" = set; then
6863 enableval="$enable_tabdialog"
6864
6865 if test "$enableval" = yes; then
6866 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6867 else
6868 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6869 fi
6870
6871else
6872
6873 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6874 if test "x$LINE" != x ; then
6875 eval "DEFAULT_$LINE"
6876 else
6877 no_cache=1
6878 fi
6879
6880 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6881
6882fi
6883
6884
6885 eval "$ac_cv_use_tabdialog"
6886 if test "$no_cache" != 1; then
6887 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6888 fi
6889
6890 if test "$wxUSE_TABDIALOG" = yes; then
6891 echo "$ac_t""yes" 1>&6
6892 else
6893 echo "$ac_t""no" 1>&6
6894 fi
6895
6896
6897 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6898echo "configure:6899: checking for --enable-textctrl" >&5
6899 no_cache=0
6900 # Check whether --enable-textctrl or --disable-textctrl was given.
6901if test "${enable_textctrl+set}" = set; then
6902 enableval="$enable_textctrl"
6903
6904 if test "$enableval" = yes; then
6905 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6906 else
6907 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6908 fi
6909
6910else
6911
6912 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6913 if test "x$LINE" != x ; then
6914 eval "DEFAULT_$LINE"
6915 else
6916 no_cache=1
6917 fi
6918
6919 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6920
6921fi
6922
6923
6924 eval "$ac_cv_use_textctrl"
6925 if test "$no_cache" != 1; then
6926 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6927 fi
6928
6929 if test "$wxUSE_TEXTCTRL" = yes; then
6930 echo "$ac_t""yes" 1>&6
6931 else
6932 echo "$ac_t""no" 1>&6
6933 fi
6934
6935
6936 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6937echo "configure:6938: checking for --enable-togglebtn" >&5
6938 no_cache=0
6939 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6940if test "${enable_togglebtn+set}" = set; then
6941 enableval="$enable_togglebtn"
6942
6943 if test "$enableval" = yes; then
6944 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6945 else
6946 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6947 fi
6948
6949else
6950
6951 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6952 if test "x$LINE" != x ; then
6953 eval "DEFAULT_$LINE"
6954 else
6955 no_cache=1
6956 fi
6957
6958 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6959
6960fi
6961
6962
6963 eval "$ac_cv_use_togglebtn"
6964 if test "$no_cache" != 1; then
6965 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6966 fi
6967
6968 if test "$wxUSE_TOGGLEBTN" = yes; then
6969 echo "$ac_t""yes" 1>&6
6970 else
6971 echo "$ac_t""no" 1>&6
6972 fi
6973
6974
6975 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6976echo "configure:6977: checking for --enable-toolbar" >&5
6977 no_cache=0
6978 # Check whether --enable-toolbar or --disable-toolbar was given.
6979if test "${enable_toolbar+set}" = set; then
6980 enableval="$enable_toolbar"
6981
6982 if test "$enableval" = yes; then
6983 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6984 else
6985 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6986 fi
6987
6988else
6989
6990 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6991 if test "x$LINE" != x ; then
6992 eval "DEFAULT_$LINE"
6993 else
6994 no_cache=1
6995 fi
6996
6997 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6998
6999fi
7000
7001
7002 eval "$ac_cv_use_toolbar"
7003 if test "$no_cache" != 1; then
7004 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7005 fi
7006
7007 if test "$wxUSE_TOOLBAR" = yes; then
7008 echo "$ac_t""yes" 1>&6
7009 else
7010 echo "$ac_t""no" 1>&6
7011 fi
7012
7013
7014 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
7015echo "configure:7016: checking for --enable-tbarnative" >&5
7016 no_cache=0
7017 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7018if test "${enable_tbarnative+set}" = set; then
7019 enableval="$enable_tbarnative"
7020
7021 if test "$enableval" = yes; then
7022 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7023 else
7024 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7025 fi
7026
7027else
7028
7029 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7030 if test "x$LINE" != x ; then
7031 eval "DEFAULT_$LINE"
7032 else
7033 no_cache=1
7034 fi
7035
7036 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7037
7038fi
7039
7040
7041 eval "$ac_cv_use_tbarnative"
7042 if test "$no_cache" != 1; then
7043 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7044 fi
7045
7046 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7047 echo "$ac_t""yes" 1>&6
7048 else
7049 echo "$ac_t""no" 1>&6
7050 fi
7051
7052
7053 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
7054echo "configure:7055: checking for --enable-tbarsmpl" >&5
7055 no_cache=0
7056 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7057if test "${enable_tbarsmpl+set}" = set; then
7058 enableval="$enable_tbarsmpl"
7059
7060 if test "$enableval" = yes; then
7061 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7062 else
7063 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7064 fi
7065
7066else
7067
7068 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7069 if test "x$LINE" != x ; then
7070 eval "DEFAULT_$LINE"
7071 else
7072 no_cache=1
7073 fi
7074
7075 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7076
7077fi
7078
7079
7080 eval "$ac_cv_use_tbarsmpl"
7081 if test "$no_cache" != 1; then
7082 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7083 fi
7084
7085 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7086 echo "$ac_t""yes" 1>&6
7087 else
7088 echo "$ac_t""no" 1>&6
7089 fi
7090
7091
7092 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
7093echo "configure:7094: checking for --enable-treectrl" >&5
7094 no_cache=0
7095 # Check whether --enable-treectrl or --disable-treectrl was given.
7096if test "${enable_treectrl+set}" = set; then
7097 enableval="$enable_treectrl"
7098
7099 if test "$enableval" = yes; then
7100 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7101 else
7102 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7103 fi
7104
7105else
7106
7107 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7108 if test "x$LINE" != x ; then
7109 eval "DEFAULT_$LINE"
7110 else
7111 no_cache=1
7112 fi
7113
7114 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7115
7116fi
7117
7118
7119 eval "$ac_cv_use_treectrl"
7120 if test "$no_cache" != 1; then
7121 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7122 fi
7123
7124 if test "$wxUSE_TREECTRL" = yes; then
7125 echo "$ac_t""yes" 1>&6
7126 else
7127 echo "$ac_t""no" 1>&6
7128 fi
7129
7130
7131 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
7132echo "configure:7133: checking for --enable-tipwindow" >&5
7133 no_cache=0
7134 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7135if test "${enable_tipwindow+set}" = set; then
7136 enableval="$enable_tipwindow"
7137
7138 if test "$enableval" = yes; then
7139 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7140 else
7141 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7142 fi
7143
7144else
7145
7146 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7147 if test "x$LINE" != x ; then
7148 eval "DEFAULT_$LINE"
7149 else
7150 no_cache=1
7151 fi
7152
7153 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7154
7155fi
7156
7157
7158 eval "$ac_cv_use_tipwindow"
7159 if test "$no_cache" != 1; then
7160 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7161 fi
7162
7163 if test "$wxUSE_TIPWINDOW" = yes; then
7164 echo "$ac_t""yes" 1>&6
7165 else
7166 echo "$ac_t""no" 1>&6
7167 fi
7168
7169
7170 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
7171echo "configure:7172: checking for --enable-popupwin" >&5
7172 no_cache=0
7173 # Check whether --enable-popupwin or --disable-popupwin was given.
7174if test "${enable_popupwin+set}" = set; then
7175 enableval="$enable_popupwin"
7176
7177 if test "$enableval" = yes; then
7178 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7179 else
7180 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7181 fi
7182
7183else
7184
7185 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7186 if test "x$LINE" != x ; then
7187 eval "DEFAULT_$LINE"
7188 else
7189 no_cache=1
7190 fi
7191
7192 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7193
7194fi
7195
7196
7197 eval "$ac_cv_use_popupwin"
7198 if test "$no_cache" != 1; then
7199 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7200 fi
7201
7202 if test "$wxUSE_POPUPWIN" = yes; then
7203 echo "$ac_t""yes" 1>&6
7204 else
7205 echo "$ac_t""no" 1>&6
7206 fi
7207
7208
7209
7210
7211 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
7212echo "configure:7213: checking for --enable-commondlg" >&5
7213 no_cache=0
7214 # Check whether --enable-commondlg or --disable-commondlg was given.
7215if test "${enable_commondlg+set}" = set; then
7216 enableval="$enable_commondlg"
7217
7218 if test "$enableval" = yes; then
7219 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7220 else
7221 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7222 fi
7223
7224else
7225
7226 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7227 if test "x$LINE" != x ; then
7228 eval "DEFAULT_$LINE"
7229 else
7230 no_cache=1
7231 fi
7232
7233 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7234
7235fi
7236
7237
7238 eval "$ac_cv_use_commondlg"
7239 if test "$no_cache" != 1; then
7240 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7241 fi
7242
7243 if test "$wxUSE_COMMONDLGS" = yes; then
7244 echo "$ac_t""yes" 1>&6
7245 else
7246 echo "$ac_t""no" 1>&6
7247 fi
7248
7249
7250 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
7251echo "configure:7252: checking for --enable-choicedlg" >&5
7252 no_cache=0
7253 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7254if test "${enable_choicedlg+set}" = set; then
7255 enableval="$enable_choicedlg"
7256
7257 if test "$enableval" = yes; then
7258 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7259 else
7260 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7261 fi
7262
7263else
7264
7265 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7266 if test "x$LINE" != x ; then
7267 eval "DEFAULT_$LINE"
7268 else
7269 no_cache=1
7270 fi
7271
7272 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7273
7274fi
7275
7276
7277 eval "$ac_cv_use_choicedlg"
7278 if test "$no_cache" != 1; then
7279 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7280 fi
7281
7282 if test "$wxUSE_CHOICEDLG" = yes; then
7283 echo "$ac_t""yes" 1>&6
7284 else
7285 echo "$ac_t""no" 1>&6
7286 fi
7287
7288
7289 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
7290echo "configure:7291: checking for --enable-coldlg" >&5
7291 no_cache=0
7292 # Check whether --enable-coldlg or --disable-coldlg was given.
7293if test "${enable_coldlg+set}" = set; then
7294 enableval="$enable_coldlg"
7295
7296 if test "$enableval" = yes; then
7297 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7298 else
7299 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7300 fi
7301
7302else
7303
7304 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7305 if test "x$LINE" != x ; then
7306 eval "DEFAULT_$LINE"
7307 else
7308 no_cache=1
7309 fi
7310
7311 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7312
7313fi
7314
7315
7316 eval "$ac_cv_use_coldlg"
7317 if test "$no_cache" != 1; then
7318 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7319 fi
7320
7321 if test "$wxUSE_COLOURDLG" = yes; then
7322 echo "$ac_t""yes" 1>&6
7323 else
7324 echo "$ac_t""no" 1>&6
7325 fi
7326
7327
7328 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
7329echo "configure:7330: checking for --enable-filedlg" >&5
7330 no_cache=0
7331 # Check whether --enable-filedlg or --disable-filedlg was given.
7332if test "${enable_filedlg+set}" = set; then
7333 enableval="$enable_filedlg"
7334
7335 if test "$enableval" = yes; then
7336 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7337 else
7338 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7339 fi
7340
7341else
7342
7343 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7344 if test "x$LINE" != x ; then
7345 eval "DEFAULT_$LINE"
7346 else
7347 no_cache=1
7348 fi
7349
7350 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7351
7352fi
7353
7354
7355 eval "$ac_cv_use_filedlg"
7356 if test "$no_cache" != 1; then
7357 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7358 fi
7359
7360 if test "$wxUSE_FILEDLG" = yes; then
7361 echo "$ac_t""yes" 1>&6
7362 else
7363 echo "$ac_t""no" 1>&6
7364 fi
7365
7366
7367 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
7368echo "configure:7369: checking for --enable-finddlg" >&5
7369 no_cache=0
7370 # Check whether --enable-finddlg or --disable-finddlg was given.
7371if test "${enable_finddlg+set}" = set; then
7372 enableval="$enable_finddlg"
7373
7374 if test "$enableval" = yes; then
7375 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7376 else
7377 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7378 fi
7379
7380else
7381
7382 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7383 if test "x$LINE" != x ; then
7384 eval "DEFAULT_$LINE"
7385 else
7386 no_cache=1
7387 fi
7388
7389 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7390
7391fi
7392
7393
7394 eval "$ac_cv_use_finddlg"
7395 if test "$no_cache" != 1; then
7396 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7397 fi
7398
7399 if test "$wxUSE_FINDREPLDLG" = yes; then
7400 echo "$ac_t""yes" 1>&6
7401 else
7402 echo "$ac_t""no" 1>&6
7403 fi
7404
7405
7406 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
7407echo "configure:7408: checking for --enable-fontdlg" >&5
7408 no_cache=0
7409 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7410if test "${enable_fontdlg+set}" = set; then
7411 enableval="$enable_fontdlg"
7412
7413 if test "$enableval" = yes; then
7414 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7415 else
7416 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7417 fi
7418
7419else
7420
7421 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7422 if test "x$LINE" != x ; then
7423 eval "DEFAULT_$LINE"
7424 else
7425 no_cache=1
7426 fi
7427
7428 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7429
7430fi
7431
7432
7433 eval "$ac_cv_use_fontdlg"
7434 if test "$no_cache" != 1; then
7435 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7436 fi
7437
7438 if test "$wxUSE_FONTDLG" = yes; then
7439 echo "$ac_t""yes" 1>&6
7440 else
7441 echo "$ac_t""no" 1>&6
7442 fi
7443
7444
7445 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
7446echo "configure:7447: checking for --enable-dirdlg" >&5
7447 no_cache=0
7448 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7449if test "${enable_dirdlg+set}" = set; then
7450 enableval="$enable_dirdlg"
7451
7452 if test "$enableval" = yes; then
7453 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7454 else
7455 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7456 fi
7457
7458else
7459
7460 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7461 if test "x$LINE" != x ; then
7462 eval "DEFAULT_$LINE"
7463 else
7464 no_cache=1
7465 fi
7466
7467 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7468
7469fi
7470
7471
7472 eval "$ac_cv_use_dirdlg"
7473 if test "$no_cache" != 1; then
7474 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7475 fi
7476
7477 if test "$wxUSE_DIRDLG" = yes; then
7478 echo "$ac_t""yes" 1>&6
7479 else
7480 echo "$ac_t""no" 1>&6
7481 fi
7482
7483
7484 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
7485echo "configure:7486: checking for --enable-msgdlg" >&5
7486 no_cache=0
7487 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7488if test "${enable_msgdlg+set}" = set; then
7489 enableval="$enable_msgdlg"
7490
7491 if test "$enableval" = yes; then
7492 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7493 else
7494 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7495 fi
7496
7497else
7498
7499 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7500 if test "x$LINE" != x ; then
7501 eval "DEFAULT_$LINE"
7502 else
7503 no_cache=1
7504 fi
7505
7506 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7507
7508fi
7509
7510
7511 eval "$ac_cv_use_msgdlg"
7512 if test "$no_cache" != 1; then
7513 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7514 fi
7515
7516 if test "$wxUSE_MSGDLG" = yes; then
7517 echo "$ac_t""yes" 1>&6
7518 else
7519 echo "$ac_t""no" 1>&6
7520 fi
7521
7522
7523 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
7524echo "configure:7525: checking for --enable-numberdlg" >&5
7525 no_cache=0
7526 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7527if test "${enable_numberdlg+set}" = set; then
7528 enableval="$enable_numberdlg"
7529
7530 if test "$enableval" = yes; then
7531 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7532 else
7533 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7534 fi
7535
7536else
7537
7538 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7539 if test "x$LINE" != x ; then
7540 eval "DEFAULT_$LINE"
7541 else
7542 no_cache=1
7543 fi
7544
7545 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7546
7547fi
7548
7549
7550 eval "$ac_cv_use_numberdlg"
7551 if test "$no_cache" != 1; then
7552 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7553 fi
7554
7555 if test "$wxUSE_NUMBERDLG" = yes; then
7556 echo "$ac_t""yes" 1>&6
7557 else
7558 echo "$ac_t""no" 1>&6
7559 fi
7560
7561
7562 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7563echo "configure:7564: checking for --enable-splash" >&5
7564 no_cache=0
7565 # Check whether --enable-splash or --disable-splash was given.
7566if test "${enable_splash+set}" = set; then
7567 enableval="$enable_splash"
7568
7569 if test "$enableval" = yes; then
7570 ac_cv_use_splash='wxUSE_SPLASH=yes'
7571 else
7572 ac_cv_use_splash='wxUSE_SPLASH=no'
7573 fi
7574
7575else
7576
7577 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7578 if test "x$LINE" != x ; then
7579 eval "DEFAULT_$LINE"
7580 else
7581 no_cache=1
7582 fi
7583
7584 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7585
7586fi
7587
7588
7589 eval "$ac_cv_use_splash"
7590 if test "$no_cache" != 1; then
7591 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7592 fi
7593
7594 if test "$wxUSE_SPLASH" = yes; then
7595 echo "$ac_t""yes" 1>&6
7596 else
7597 echo "$ac_t""no" 1>&6
7598 fi
7599
7600
7601 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7602echo "configure:7603: checking for --enable-textdlg" >&5
7603 no_cache=0
7604 # Check whether --enable-textdlg or --disable-textdlg was given.
7605if test "${enable_textdlg+set}" = set; then
7606 enableval="$enable_textdlg"
7607
7608 if test "$enableval" = yes; then
7609 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7610 else
7611 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7612 fi
7613
7614else
7615
7616 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7617 if test "x$LINE" != x ; then
7618 eval "DEFAULT_$LINE"
7619 else
7620 no_cache=1
7621 fi
7622
7623 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7624
7625fi
7626
7627
7628 eval "$ac_cv_use_textdlg"
7629 if test "$no_cache" != 1; then
7630 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7631 fi
7632
7633 if test "$wxUSE_TEXTDLG" = yes; then
7634 echo "$ac_t""yes" 1>&6
7635 else
7636 echo "$ac_t""no" 1>&6
7637 fi
7638
7639
7640 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7641echo "configure:7642: checking for --enable-tipdlg" >&5
7642 no_cache=0
7643 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7644if test "${enable_tipdlg+set}" = set; then
7645 enableval="$enable_tipdlg"
7646
7647 if test "$enableval" = yes; then
7648 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7649 else
7650 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7651 fi
7652
7653else
7654
7655 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7656 if test "x$LINE" != x ; then
7657 eval "DEFAULT_$LINE"
7658 else
7659 no_cache=1
7660 fi
7661
7662 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7663
7664fi
7665
7666
7667 eval "$ac_cv_use_tipdlg"
7668 if test "$no_cache" != 1; then
7669 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7670 fi
7671
7672 if test "$wxUSE_STARTUP_TIPS" = yes; then
7673 echo "$ac_t""yes" 1>&6
7674 else
7675 echo "$ac_t""no" 1>&6
7676 fi
7677
7678
7679 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7680echo "configure:7681: checking for --enable-progressdlg" >&5
7681 no_cache=0
7682 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7683if test "${enable_progressdlg+set}" = set; then
7684 enableval="$enable_progressdlg"
7685
7686 if test "$enableval" = yes; then
7687 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7688 else
7689 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7690 fi
7691
7692else
7693
7694 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7695 if test "x$LINE" != x ; then
7696 eval "DEFAULT_$LINE"
7697 else
7698 no_cache=1
7699 fi
7700
7701 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7702
7703fi
7704
7705
7706 eval "$ac_cv_use_progressdlg"
7707 if test "$no_cache" != 1; then
7708 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7709 fi
7710
7711 if test "$wxUSE_PROGRESSDLG" = yes; then
7712 echo "$ac_t""yes" 1>&6
7713 else
7714 echo "$ac_t""no" 1>&6
7715 fi
7716
7717
7718 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7719echo "configure:7720: checking for --enable-wizarddlg" >&5
7720 no_cache=0
7721 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7722if test "${enable_wizarddlg+set}" = set; then
7723 enableval="$enable_wizarddlg"
7724
7725 if test "$enableval" = yes; then
7726 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7727 else
7728 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7729 fi
7730
7731else
7732
7733 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7734 if test "x$LINE" != x ; then
7735 eval "DEFAULT_$LINE"
7736 else
7737 no_cache=1
7738 fi
7739
7740 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7741
7742fi
7743
7744
7745 eval "$ac_cv_use_wizarddlg"
7746 if test "$no_cache" != 1; then
7747 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7748 fi
7749
7750 if test "$wxUSE_WIZARDDLG" = yes; then
7751 echo "$ac_t""yes" 1>&6
7752 else
7753 echo "$ac_t""no" 1>&6
7754 fi
7755
7756
7757
7758
7759 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7760echo "configure:7761: checking for --enable-menus" >&5
7761 no_cache=0
7762 # Check whether --enable-menus or --disable-menus was given.
7763if test "${enable_menus+set}" = set; then
7764 enableval="$enable_menus"
7765
7766 if test "$enableval" = yes; then
7767 ac_cv_use_menus='wxUSE_MENUS=yes'
7768 else
7769 ac_cv_use_menus='wxUSE_MENUS=no'
7770 fi
7771
7772else
7773
7774 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7775 if test "x$LINE" != x ; then
7776 eval "DEFAULT_$LINE"
7777 else
7778 no_cache=1
7779 fi
7780
7781 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7782
7783fi
7784
7785
7786 eval "$ac_cv_use_menus"
7787 if test "$no_cache" != 1; then
7788 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7789 fi
7790
7791 if test "$wxUSE_MENUS" = yes; then
7792 echo "$ac_t""yes" 1>&6
7793 else
7794 echo "$ac_t""no" 1>&6
7795 fi
7796
7797
7798 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7799echo "configure:7800: checking for --enable-miniframe" >&5
7800 no_cache=0
7801 # Check whether --enable-miniframe or --disable-miniframe was given.
7802if test "${enable_miniframe+set}" = set; then
7803 enableval="$enable_miniframe"
7804
7805 if test "$enableval" = yes; then
7806 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7807 else
7808 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7809 fi
7810
7811else
7812
7813 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7814 if test "x$LINE" != x ; then
7815 eval "DEFAULT_$LINE"
7816 else
7817 no_cache=1
7818 fi
7819
7820 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7821
7822fi
7823
7824
7825 eval "$ac_cv_use_miniframe"
7826 if test "$no_cache" != 1; then
7827 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7828 fi
7829
7830 if test "$wxUSE_MINIFRAME" = yes; then
7831 echo "$ac_t""yes" 1>&6
7832 else
7833 echo "$ac_t""no" 1>&6
7834 fi
7835
7836
7837 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7838echo "configure:7839: checking for --enable-tooltips" >&5
7839 no_cache=0
7840 # Check whether --enable-tooltips or --disable-tooltips was given.
7841if test "${enable_tooltips+set}" = set; then
7842 enableval="$enable_tooltips"
7843
7844 if test "$enableval" = yes; then
7845 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7846 else
7847 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7848 fi
7849
7850else
7851
7852 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7853 if test "x$LINE" != x ; then
7854 eval "DEFAULT_$LINE"
7855 else
7856 no_cache=1
7857 fi
7858
7859 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7860
7861fi
7862
7863
7864 eval "$ac_cv_use_tooltips"
7865 if test "$no_cache" != 1; then
7866 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7867 fi
7868
7869 if test "$wxUSE_TOOLTIPS" = yes; then
7870 echo "$ac_t""yes" 1>&6
7871 else
7872 echo "$ac_t""no" 1>&6
7873 fi
7874
7875
7876 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7877echo "configure:7878: checking for --enable-splines" >&5
7878 no_cache=0
7879 # Check whether --enable-splines or --disable-splines was given.
7880if test "${enable_splines+set}" = set; then
7881 enableval="$enable_splines"
7882
7883 if test "$enableval" = yes; then
7884 ac_cv_use_splines='wxUSE_SPLINES=yes'
7885 else
7886 ac_cv_use_splines='wxUSE_SPLINES=no'
7887 fi
7888
7889else
7890
7891 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7892 if test "x$LINE" != x ; then
7893 eval "DEFAULT_$LINE"
7894 else
7895 no_cache=1
7896 fi
7897
7898 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7899
7900fi
7901
7902
7903 eval "$ac_cv_use_splines"
7904 if test "$no_cache" != 1; then
7905 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7906 fi
7907
7908 if test "$wxUSE_SPLINES" = yes; then
7909 echo "$ac_t""yes" 1>&6
7910 else
7911 echo "$ac_t""no" 1>&6
7912 fi
7913
7914
7915 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7916echo "configure:7917: checking for --enable-validators" >&5
7917 no_cache=0
7918 # Check whether --enable-validators or --disable-validators was given.
7919if test "${enable_validators+set}" = set; then
7920 enableval="$enable_validators"
7921
7922 if test "$enableval" = yes; then
7923 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7924 else
7925 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7926 fi
7927
7928else
7929
7930 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7931 if test "x$LINE" != x ; then
7932 eval "DEFAULT_$LINE"
7933 else
7934 no_cache=1
7935 fi
7936
7937 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7938
7939fi
7940
7941
7942 eval "$ac_cv_use_validators"
7943 if test "$no_cache" != 1; then
7944 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7945 fi
7946
7947 if test "$wxUSE_VALIDATORS" = yes; then
7948 echo "$ac_t""yes" 1>&6
7949 else
7950 echo "$ac_t""no" 1>&6
7951 fi
7952
7953
7954 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7955echo "configure:7956: checking for --enable-busyinfo" >&5
7956 no_cache=0
7957 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7958if test "${enable_busyinfo+set}" = set; then
7959 enableval="$enable_busyinfo"
7960
7961 if test "$enableval" = yes; then
7962 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7963 else
7964 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7965 fi
7966
7967else
7968
7969 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7970 if test "x$LINE" != x ; then
7971 eval "DEFAULT_$LINE"
7972 else
7973 no_cache=1
7974 fi
7975
7976 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7977
7978fi
7979
7980
7981 eval "$ac_cv_use_busyinfo"
7982 if test "$no_cache" != 1; then
7983 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7984 fi
7985
7986 if test "$wxUSE_BUSYINFO" = yes; then
7987 echo "$ac_t""yes" 1>&6
7988 else
7989 echo "$ac_t""no" 1>&6
7990 fi
7991
7992
7993 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7994echo "configure:7995: checking for --enable-joystick" >&5
7995 no_cache=0
7996 # Check whether --enable-joystick or --disable-joystick was given.
7997if test "${enable_joystick+set}" = set; then
7998 enableval="$enable_joystick"
7999
8000 if test "$enableval" = yes; then
8001 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8002 else
8003 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8004 fi
8005
8006else
8007
8008 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8009 if test "x$LINE" != x ; then
8010 eval "DEFAULT_$LINE"
8011 else
8012 no_cache=1
8013 fi
8014
8015 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8016
8017fi
8018
8019
8020 eval "$ac_cv_use_joystick"
8021 if test "$no_cache" != 1; then
8022 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8023 fi
8024
8025 if test "$wxUSE_JOYSTICK" = yes; then
8026 echo "$ac_t""yes" 1>&6
8027 else
8028 echo "$ac_t""no" 1>&6
8029 fi
8030
8031
8032 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
8033echo "configure:8034: checking for --enable-metafile" >&5
8034 no_cache=0
8035 # Check whether --enable-metafile or --disable-metafile was given.
8036if test "${enable_metafile+set}" = set; then
8037 enableval="$enable_metafile"
8038
8039 if test "$enableval" = yes; then
8040 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8041 else
8042 ac_cv_use_metafile='wxUSE_METAFILE=no'
8043 fi
8044
8045else
8046
8047 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8048 if test "x$LINE" != x ; then
8049 eval "DEFAULT_$LINE"
8050 else
8051 no_cache=1
8052 fi
8053
8054 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8055
8056fi
8057
8058
8059 eval "$ac_cv_use_metafile"
8060 if test "$no_cache" != 1; then
8061 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8062 fi
8063
8064 if test "$wxUSE_METAFILE" = yes; then
8065 echo "$ac_t""yes" 1>&6
8066 else
8067 echo "$ac_t""no" 1>&6
8068 fi
8069
8070
8071 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
8072echo "configure:8073: checking for --enable-dragimage" >&5
8073 no_cache=0
8074 # Check whether --enable-dragimage or --disable-dragimage was given.
8075if test "${enable_dragimage+set}" = set; then
8076 enableval="$enable_dragimage"
8077
8078 if test "$enableval" = yes; then
8079 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8080 else
8081 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8082 fi
8083
8084else
8085
8086 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8087 if test "x$LINE" != x ; then
8088 eval "DEFAULT_$LINE"
8089 else
8090 no_cache=1
8091 fi
8092
8093 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8094
8095fi
8096
8097
8098 eval "$ac_cv_use_dragimage"
8099 if test "$no_cache" != 1; then
8100 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8101 fi
8102
8103 if test "$wxUSE_DRAGIMAGE" = yes; then
8104 echo "$ac_t""yes" 1>&6
8105 else
8106 echo "$ac_t""no" 1>&6
8107 fi
8108
8109
8110
8111
8112 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
8113echo "configure:8114: checking for --enable-palette" >&5
8114 no_cache=0
8115 # Check whether --enable-palette or --disable-palette was given.
8116if test "${enable_palette+set}" = set; then
8117 enableval="$enable_palette"
8118
8119 if test "$enableval" = yes; then
8120 ac_cv_use_palette='wxUSE_PALETTE=yes'
8121 else
8122 ac_cv_use_palette='wxUSE_PALETTE=no'
8123 fi
8124
8125else
8126
8127 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8128 if test "x$LINE" != x ; then
8129 eval "DEFAULT_$LINE"
8130 else
8131 no_cache=1
8132 fi
8133
8134 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8135
8136fi
8137
8138
8139 eval "$ac_cv_use_palette"
8140 if test "$no_cache" != 1; then
8141 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8142 fi
8143
8144 if test "$wxUSE_PALETTE" = yes; then
8145 echo "$ac_t""yes" 1>&6
8146 else
8147 echo "$ac_t""no" 1>&6
8148 fi
8149
8150
8151 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
8152echo "configure:8153: checking for --enable-image" >&5
8153 no_cache=0
8154 # Check whether --enable-image or --disable-image was given.
8155if test "${enable_image+set}" = set; then
8156 enableval="$enable_image"
8157
8158 if test "$enableval" = yes; then
8159 ac_cv_use_image='wxUSE_IMAGE=yes'
8160 else
8161 ac_cv_use_image='wxUSE_IMAGE=no'
8162 fi
8163
8164else
8165
8166 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8167 if test "x$LINE" != x ; then
8168 eval "DEFAULT_$LINE"
8169 else
8170 no_cache=1
8171 fi
8172
8173 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8174
8175fi
8176
8177
8178 eval "$ac_cv_use_image"
8179 if test "$no_cache" != 1; then
8180 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8181 fi
8182
8183 if test "$wxUSE_IMAGE" = yes; then
8184 echo "$ac_t""yes" 1>&6
8185 else
8186 echo "$ac_t""no" 1>&6
8187 fi
8188
8189
8190 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
8191echo "configure:8192: checking for --enable-gif" >&5
8192 no_cache=0
8193 # Check whether --enable-gif or --disable-gif was given.
8194if test "${enable_gif+set}" = set; then
8195 enableval="$enable_gif"
8196
8197 if test "$enableval" = yes; then
8198 ac_cv_use_gif='wxUSE_GIF=yes'
8199 else
8200 ac_cv_use_gif='wxUSE_GIF=no'
8201 fi
8202
8203else
8204
8205 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8206 if test "x$LINE" != x ; then
8207 eval "DEFAULT_$LINE"
8208 else
8209 no_cache=1
8210 fi
8211
8212 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8213
8214fi
8215
8216
8217 eval "$ac_cv_use_gif"
8218 if test "$no_cache" != 1; then
8219 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8220 fi
8221
8222 if test "$wxUSE_GIF" = yes; then
8223 echo "$ac_t""yes" 1>&6
8224 else
8225 echo "$ac_t""no" 1>&6
8226 fi
8227
8228
8229 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
8230echo "configure:8231: checking for --enable-pcx" >&5
8231 no_cache=0
8232 # Check whether --enable-pcx or --disable-pcx was given.
8233if test "${enable_pcx+set}" = set; then
8234 enableval="$enable_pcx"
8235
8236 if test "$enableval" = yes; then
8237 ac_cv_use_pcx='wxUSE_PCX=yes'
8238 else
8239 ac_cv_use_pcx='wxUSE_PCX=no'
8240 fi
8241
8242else
8243
8244 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8245 if test "x$LINE" != x ; then
8246 eval "DEFAULT_$LINE"
8247 else
8248 no_cache=1
8249 fi
8250
8251 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8252
8253fi
8254
8255
8256 eval "$ac_cv_use_pcx"
8257 if test "$no_cache" != 1; then
8258 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8259 fi
8260
8261 if test "$wxUSE_PCX" = yes; then
8262 echo "$ac_t""yes" 1>&6
8263 else
8264 echo "$ac_t""no" 1>&6
8265 fi
8266
8267
8268 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
8269echo "configure:8270: checking for --enable-iff" >&5
8270 no_cache=0
8271 # Check whether --enable-iff or --disable-iff was given.
8272if test "${enable_iff+set}" = set; then
8273 enableval="$enable_iff"
8274
8275 if test "$enableval" = yes; then
8276 ac_cv_use_iff='wxUSE_IFF=yes'
8277 else
8278 ac_cv_use_iff='wxUSE_IFF=no'
8279 fi
8280
8281else
8282
8283 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8284 if test "x$LINE" != x ; then
8285 eval "DEFAULT_$LINE"
8286 else
8287 no_cache=1
8288 fi
8289
8290 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8291
8292fi
8293
8294
8295 eval "$ac_cv_use_iff"
8296 if test "$no_cache" != 1; then
8297 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8298 fi
8299
8300 if test "$wxUSE_IFF" = yes; then
8301 echo "$ac_t""yes" 1>&6
8302 else
8303 echo "$ac_t""no" 1>&6
8304 fi
8305
8306
8307 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
8308echo "configure:8309: checking for --enable-pnm" >&5
8309 no_cache=0
8310 # Check whether --enable-pnm or --disable-pnm was given.
8311if test "${enable_pnm+set}" = set; then
8312 enableval="$enable_pnm"
8313
8314 if test "$enableval" = yes; then
8315 ac_cv_use_pnm='wxUSE_PNM=yes'
8316 else
8317 ac_cv_use_pnm='wxUSE_PNM=no'
8318 fi
8319
8320else
8321
8322 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8323 if test "x$LINE" != x ; then
8324 eval "DEFAULT_$LINE"
8325 else
8326 no_cache=1
8327 fi
8328
8329 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8330
8331fi
8332
8333
8334 eval "$ac_cv_use_pnm"
8335 if test "$no_cache" != 1; then
8336 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8337 fi
8338
8339 if test "$wxUSE_PNM" = yes; then
8340 echo "$ac_t""yes" 1>&6
8341 else
8342 echo "$ac_t""no" 1>&6
8343 fi
8344
8345
8346 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
8347echo "configure:8348: checking for --enable-xpm" >&5
8348 no_cache=0
8349 # Check whether --enable-xpm or --disable-xpm was given.
8350if test "${enable_xpm+set}" = set; then
8351 enableval="$enable_xpm"
8352
8353 if test "$enableval" = yes; then
8354 ac_cv_use_xpm='wxUSE_XPM=yes'
8355 else
8356 ac_cv_use_xpm='wxUSE_XPM=no'
8357 fi
8358
8359else
8360
8361 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8362 if test "x$LINE" != x ; then
8363 eval "DEFAULT_$LINE"
8364 else
8365 no_cache=1
8366 fi
8367
8368 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8369
8370fi
8371
8372
8373 eval "$ac_cv_use_xpm"
8374 if test "$no_cache" != 1; then
8375 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8376 fi
8377
8378 if test "$wxUSE_XPM" = yes; then
8379 echo "$ac_t""yes" 1>&6
8380 else
8381 echo "$ac_t""no" 1>&6
8382 fi
8383
8384
8385 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
8386echo "configure:8387: checking for --enable-ico_cur" >&5
8387 no_cache=0
8388 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8389if test "${enable_ico_cur+set}" = set; then
8390 enableval="$enable_ico_cur"
8391
8392 if test "$enableval" = yes; then
8393 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8394 else
8395 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8396 fi
8397
8398else
8399
8400 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8401 if test "x$LINE" != x ; then
8402 eval "DEFAULT_$LINE"
8403 else
8404 no_cache=1
8405 fi
8406
8407 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8408
8409fi
8410
8411
8412 eval "$ac_cv_use_ico_cur"
8413 if test "$no_cache" != 1; then
8414 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8415 fi
8416
8417 if test "$wxUSE_ICO_CUR" = yes; then
8418 echo "$ac_t""yes" 1>&6
8419 else
8420 echo "$ac_t""no" 1>&6
8421 fi
8422
8423
8424fi
8425
8426
8427 echo "saving argument cache $wx_arg_cache_file"
8428 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8429
8430
8431
8432echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8433echo "configure:8434: checking for toolkit" >&5
8434
8435if test "$wxUSE_GUI" = "yes"; then
8436
8437 if test "$USE_BEOS" = 1; then
8438 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8439 fi
8440
8441 if test "$TOOLKIT_GIVEN" = 1; then
8442 for toolkit in `echo $ALL_TOOLKITS`; do
8443 var=wxUSE_$toolkit
8444 eval "value=\$${var}"
8445 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8446 done
8447 else
8448 for toolkit in `echo $ALL_TOOLKITS`; do
8449 if test "$has_toolkit_in_cache" != 1; then
8450 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8451 else
8452 var=DEFAULT_wxUSE_$toolkit
8453 fi
8454 eval "wxUSE_$toolkit=\$${var}"
8455 done
8456 fi
8457
8458 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
8459 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
8460
8461 case "${host}" in
8462 *-pc-os2_emx | *-pc-os2-emx )
8463 # PATH_IFS is autodetected by OS/2's configure (usually ';')
8464 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8465 LEX_STEM="lexyy"
8466 ;;
8467 *)
8468 PATH_IFS=':'
8469 LEX_STEM="lex.yy"
8470 ;;
8471 esac
8472
8473 case "$NUM_TOOLKITS" in
8474 1)
8475 ;;
8476 0)
8477 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8478 ;;
8479 *)
8480 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8481 esac
8482
8483 for toolkit in `echo $ALL_TOOLKITS`; do
8484 var=wxUSE_$toolkit
8485 eval "value=\$${var}"
8486 if test "x$value" != x; then
8487 cache_var=CACHE_$toolkit
8488 eval "cache=\$${cache_var}"
8489 if test "$cache" = 1; then
8490 echo "$var=$value" >> ${wx_arg_cache_file}
8491 fi
8492 if test "$value" = 1; then
8493 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8494 echo "$ac_t""$toolkit_echo" 1>&6
8495 fi
8496 fi
8497 done
8498else
8499 PATH_IFS=':'
8500 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8501fi
8502
8503
8504cat > confcache <<\EOF
8505# This file is a shell script that caches the results of configure
8506# tests run on this system so they can be shared between configure
8507# scripts and configure runs. It is not useful on other systems.
8508# If it contains results you don't want to keep, you may remove or edit it.
8509#
8510# By default, configure uses ./config.cache as the cache file,
8511# creating it if it does not exist already. You can give configure
8512# the --cache-file=FILE option to use a different cache file; that is
8513# what configure does when it calls configure scripts in
8514# subdirectories, so they share the cache.
8515# Giving --cache-file=/dev/null disables caching, for debugging configure.
8516# config.status only pays attention to the cache file if you give it the
8517# --recheck option to rerun configure.
8518#
8519EOF
8520# The following way of writing the cache mishandles newlines in values,
8521# but we know of no workaround that is simple, portable, and efficient.
8522# So, don't put newlines in cache variables' values.
8523# Ultrix sh set writes to stderr and can't be redirected directly,
8524# and sets the high bit in the cache file unless we assign to the vars.
8525(set) 2>&1 |
8526 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8527 *ac_space=\ *)
8528 # `set' does not quote correctly, so add quotes (double-quote substitution
8529 # turns \\\\ into \\, and sed turns \\ into \).
8530 sed -n \
8531 -e "s/'/'\\\\''/g" \
8532 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8533 ;;
8534 *)
8535 # `set' quotes correctly as required by POSIX, so do not add quotes.
8536 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8537 ;;
8538 esac >> confcache
8539if cmp -s $cache_file confcache; then
8540 :
8541else
8542 if test -w $cache_file; then
8543 echo "updating cache $cache_file"
8544 cat confcache > $cache_file
8545 else
8546 echo "not updating unwritable cache $cache_file"
8547 fi
8548fi
8549rm -f confcache
8550
8551
8552if test "$build" != "$host" ; then
8553 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then
8554 CC=$host_alias-gcc
8555 CXX=$host_alias-c++
8556 AR=$host_alias-ar
8557 RANLIB=$host_alias-ranlib
8558 DLLTOOL=$host_alias-dlltool
8559 RESCOMP=$host_alias-windres
8560 LD=$host_alias-ld
8561 NM=$host_alias-nm
8562 STRIP=$host_alias-strip
8563 else
8564 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8565 fi
8566fi
8567
8568# Extract the first word of "gcc", so it can be a program name with args.
8569set dummy gcc; ac_word=$2
8570echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8571echo "configure:8572: checking for $ac_word" >&5
8572if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8573 echo $ac_n "(cached) $ac_c" 1>&6
8574else
8575 if test -n "$CC"; then
8576 ac_cv_prog_CC="$CC" # Let the user override the test.
8577else
8578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8579 ac_dummy="$PATH"
8580 for ac_dir in $ac_dummy; do
8581 test -z "$ac_dir" && ac_dir=.
8582 if test -f $ac_dir/$ac_word; then
8583 ac_cv_prog_CC="gcc"
8584 break
8585 fi
8586 done
8587 IFS="$ac_save_ifs"
8588fi
8589fi
8590CC="$ac_cv_prog_CC"
8591if test -n "$CC"; then
8592 echo "$ac_t""$CC" 1>&6
8593else
8594 echo "$ac_t""no" 1>&6
8595fi
8596
8597if test -z "$CC"; then
8598 # Extract the first word of "cc", so it can be a program name with args.
8599set dummy cc; ac_word=$2
8600echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8601echo "configure:8602: checking for $ac_word" >&5
8602if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8603 echo $ac_n "(cached) $ac_c" 1>&6
8604else
8605 if test -n "$CC"; then
8606 ac_cv_prog_CC="$CC" # Let the user override the test.
8607else
8608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8609 ac_prog_rejected=no
8610 ac_dummy="$PATH"
8611 for ac_dir in $ac_dummy; do
8612 test -z "$ac_dir" && ac_dir=.
8613 if test -f $ac_dir/$ac_word; then
8614 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8615 ac_prog_rejected=yes
8616 continue
8617 fi
8618 ac_cv_prog_CC="cc"
8619 break
8620 fi
8621 done
8622 IFS="$ac_save_ifs"
8623if test $ac_prog_rejected = yes; then
8624 # We found a bogon in the path, so make sure we never use it.
8625 set dummy $ac_cv_prog_CC
8626 shift
8627 if test $# -gt 0; then
8628 # We chose a different compiler from the bogus one.
8629 # However, it has the same basename, so the bogon will be chosen
8630 # first if we set CC to just the basename; use the full file name.
8631 shift
8632 set dummy "$ac_dir/$ac_word" "$@"
8633 shift
8634 ac_cv_prog_CC="$@"
8635 fi
8636fi
8637fi
8638fi
8639CC="$ac_cv_prog_CC"
8640if test -n "$CC"; then
8641 echo "$ac_t""$CC" 1>&6
8642else
8643 echo "$ac_t""no" 1>&6
8644fi
8645
8646 if test -z "$CC"; then
8647 case "`uname -s`" in
8648 *win32* | *WIN32*)
8649 # Extract the first word of "cl", so it can be a program name with args.
8650set dummy cl; ac_word=$2
8651echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8652echo "configure:8653: checking for $ac_word" >&5
8653if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8654 echo $ac_n "(cached) $ac_c" 1>&6
8655else
8656 if test -n "$CC"; then
8657 ac_cv_prog_CC="$CC" # Let the user override the test.
8658else
8659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8660 ac_dummy="$PATH"
8661 for ac_dir in $ac_dummy; do
8662 test -z "$ac_dir" && ac_dir=.
8663 if test -f $ac_dir/$ac_word; then
8664 ac_cv_prog_CC="cl"
8665 break
8666 fi
8667 done
8668 IFS="$ac_save_ifs"
8669fi
8670fi
8671CC="$ac_cv_prog_CC"
8672if test -n "$CC"; then
8673 echo "$ac_t""$CC" 1>&6
8674else
8675 echo "$ac_t""no" 1>&6
8676fi
8677 ;;
8678 esac
8679 fi
8680 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8681fi
8682
8683echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8684echo "configure:8685: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8685
8686ac_ext=c
8687# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8688ac_cpp='$CPP $CPPFLAGS'
8689ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8690ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8691cross_compiling=$ac_cv_prog_cc_cross
8692
8693cat > conftest.$ac_ext << EOF
8694
8695#line 8696 "configure"
8696#include "confdefs.h"
8697
8698main(){return(0);}
8699EOF
8700if { (eval echo configure:8701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8701 ac_cv_prog_cc_works=yes
8702 # If we can't run a trivial program, we are probably using a cross compiler.
8703 if (./conftest; exit) 2>/dev/null; then
8704 ac_cv_prog_cc_cross=no
8705 else
8706 ac_cv_prog_cc_cross=yes
8707 fi
8708else
8709 echo "configure: failed program was:" >&5
8710 cat conftest.$ac_ext >&5
8711 ac_cv_prog_cc_works=no
8712fi
8713rm -fr conftest*
8714ac_ext=c
8715# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8716ac_cpp='$CPP $CPPFLAGS'
8717ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8718ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8719cross_compiling=$ac_cv_prog_cc_cross
8720
8721echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8722if test $ac_cv_prog_cc_works = no; then
8723 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8724fi
8725echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8726echo "configure:8727: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8727echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8728cross_compiling=$ac_cv_prog_cc_cross
8729
8730echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8731echo "configure:8732: checking whether we are using GNU C" >&5
8732if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8733 echo $ac_n "(cached) $ac_c" 1>&6
8734else
8735 cat > conftest.c <<EOF
8736#ifdef __GNUC__
8737 yes;
8738#endif
8739EOF
8740if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8741 ac_cv_prog_gcc=yes
8742else
8743 ac_cv_prog_gcc=no
8744fi
8745fi
8746
8747echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8748
8749if test $ac_cv_prog_gcc = yes; then
8750 GCC=yes
8751else
8752 GCC=
8753fi
8754
8755ac_test_CFLAGS="${CFLAGS+set}"
8756ac_save_CFLAGS="$CFLAGS"
8757CFLAGS=
8758echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8759echo "configure:8760: checking whether ${CC-cc} accepts -g" >&5
8760if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8761 echo $ac_n "(cached) $ac_c" 1>&6
8762else
8763 echo 'void f(){}' > conftest.c
8764if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8765 ac_cv_prog_cc_g=yes
8766else
8767 ac_cv_prog_cc_g=no
8768fi
8769rm -f conftest*
8770
8771fi
8772
8773echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8774if test "$ac_test_CFLAGS" = set; then
8775 CFLAGS="$ac_save_CFLAGS"
8776elif test $ac_cv_prog_cc_g = yes; then
8777 if test "$GCC" = yes; then
8778 CFLAGS="-g -O2"
8779 else
8780 CFLAGS="-g"
8781 fi
8782else
8783 if test "$GCC" = yes; then
8784 CFLAGS="-O2"
8785 else
8786 CFLAGS=
8787 fi
8788fi
8789
8790
8791CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8792
8793echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8794echo "configure:8795: checking how to run the C preprocessor" >&5
8795# On Suns, sometimes $CPP names a directory.
8796if test -n "$CPP" && test -d "$CPP"; then
8797 CPP=
8798fi
8799if test -z "$CPP"; then
8800if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8801 echo $ac_n "(cached) $ac_c" 1>&6
8802else
8803 # This must be in double quotes, not single quotes, because CPP may get
8804 # substituted into the Makefile and "${CC-cc}" will confuse make.
8805 CPP="${CC-cc} -E"
8806 # On the NeXT, cc -E runs the code through the compiler's parser,
8807 # not just through cpp.
8808 cat > conftest.$ac_ext <<EOF
8809#line 8810 "configure"
8810#include "confdefs.h"
8811#include <assert.h>
8812Syntax Error
8813EOF
8814ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8815{ (eval echo configure:8816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8816ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8817if test -z "$ac_err"; then
8818 :
8819else
8820 echo "$ac_err" >&5
8821 echo "configure: failed program was:" >&5
8822 cat conftest.$ac_ext >&5
8823 rm -rf conftest*
8824 CPP="${CC-cc} -E -traditional-cpp"
8825 cat > conftest.$ac_ext <<EOF
8826#line 8827 "configure"
8827#include "confdefs.h"
8828#include <assert.h>
8829Syntax Error
8830EOF
8831ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8832{ (eval echo configure:8833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8833ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8834if test -z "$ac_err"; then
8835 :
8836else
8837 echo "$ac_err" >&5
8838 echo "configure: failed program was:" >&5
8839 cat conftest.$ac_ext >&5
8840 rm -rf conftest*
8841 CPP="${CC-cc} -nologo -E"
8842 cat > conftest.$ac_ext <<EOF
8843#line 8844 "configure"
8844#include "confdefs.h"
8845#include <assert.h>
8846Syntax Error
8847EOF
8848ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8849{ (eval echo configure:8850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8850ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8851if test -z "$ac_err"; then
8852 :
8853else
8854 echo "$ac_err" >&5
8855 echo "configure: failed program was:" >&5
8856 cat conftest.$ac_ext >&5
8857 rm -rf conftest*
8858 CPP=/lib/cpp
8859fi
8860rm -f conftest*
8861fi
8862rm -f conftest*
8863fi
8864rm -f conftest*
8865 ac_cv_prog_CPP="$CPP"
8866fi
8867 CPP="$ac_cv_prog_CPP"
8868else
8869 ac_cv_prog_CPP="$CPP"
8870fi
8871echo "$ac_t""$CPP" 1>&6
8872
8873if test $ac_cv_prog_gcc = yes; then
8874 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8875echo "configure:8876: checking whether ${CC-cc} needs -traditional" >&5
8876if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8877 echo $ac_n "(cached) $ac_c" 1>&6
8878else
8879 ac_pattern="Autoconf.*'x'"
8880 cat > conftest.$ac_ext <<EOF
8881#line 8882 "configure"
8882#include "confdefs.h"
8883#include <sgtty.h>
8884Autoconf TIOCGETP
8885EOF
8886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8887 egrep "$ac_pattern" >/dev/null 2>&1; then
8888 rm -rf conftest*
8889 ac_cv_prog_gcc_traditional=yes
8890else
8891 rm -rf conftest*
8892 ac_cv_prog_gcc_traditional=no
8893fi
8894rm -f conftest*
8895
8896
8897 if test $ac_cv_prog_gcc_traditional = no; then
8898 cat > conftest.$ac_ext <<EOF
8899#line 8900 "configure"
8900#include "confdefs.h"
8901#include <termio.h>
8902Autoconf TCGETA
8903EOF
8904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8905 egrep "$ac_pattern" >/dev/null 2>&1; then
8906 rm -rf conftest*
8907 ac_cv_prog_gcc_traditional=yes
8908fi
8909rm -f conftest*
8910
8911 fi
8912fi
8913
8914echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8915 if test $ac_cv_prog_gcc_traditional = yes; then
8916 CC="$CC -traditional"
8917 fi
8918fi
8919
8920
8921
8922ac_ext=C
8923# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8924ac_cpp='$CXXCPP $CPPFLAGS'
8925ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8926ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8927cross_compiling=$ac_cv_prog_cxx_cross
8928
8929
8930for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8931do
8932# Extract the first word of "$ac_prog", so it can be a program name with args.
8933set dummy $ac_prog; ac_word=$2
8934echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8935echo "configure:8936: checking for $ac_word" >&5
8936if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8937 echo $ac_n "(cached) $ac_c" 1>&6
8938else
8939 if test -n "$CXX"; then
8940 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8941else
8942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8943 ac_dummy="$PATH"
8944 for ac_dir in $ac_dummy; do
8945 test -z "$ac_dir" && ac_dir=.
8946 if test -f $ac_dir/$ac_word; then
8947 ac_cv_prog_CXX="$ac_prog"
8948 break
8949 fi
8950 done
8951 IFS="$ac_save_ifs"
8952fi
8953fi
8954CXX="$ac_cv_prog_CXX"
8955if test -n "$CXX"; then
8956 echo "$ac_t""$CXX" 1>&6
8957else
8958 echo "$ac_t""no" 1>&6
8959fi
8960
8961test -n "$CXX" && break
8962done
8963test -n "$CXX" || CXX="gcc"
8964
8965
8966echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8967echo "configure:8968: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8968
8969ac_ext=C
8970# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8971ac_cpp='$CXXCPP $CPPFLAGS'
8972ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8973ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8974cross_compiling=$ac_cv_prog_cxx_cross
8975
8976cat > conftest.$ac_ext << EOF
8977
8978#line 8979 "configure"
8979#include "confdefs.h"
8980
8981int main(){return(0);}
8982EOF
8983if { (eval echo configure:8984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8984 ac_cv_prog_cxx_works=yes
8985 # If we can't run a trivial program, we are probably using a cross compiler.
8986 if (./conftest; exit) 2>/dev/null; then
8987 ac_cv_prog_cxx_cross=no
8988 else
8989 ac_cv_prog_cxx_cross=yes
8990 fi
8991else
8992 echo "configure: failed program was:" >&5
8993 cat conftest.$ac_ext >&5
8994 ac_cv_prog_cxx_works=no
8995fi
8996rm -fr conftest*
8997ac_ext=C
8998# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8999ac_cpp='$CXXCPP $CPPFLAGS'
9000ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9001ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9002cross_compiling=$ac_cv_prog_cxx_cross
9003
9004echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9005if test $ac_cv_prog_cxx_works = no; then
9006 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9007fi
9008echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9009echo "configure:9010: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9010echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9011cross_compiling=$ac_cv_prog_cxx_cross
9012
9013echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9014echo "configure:9015: checking whether we are using GNU C++" >&5
9015if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9016 echo $ac_n "(cached) $ac_c" 1>&6
9017else
9018 cat > conftest.C <<EOF
9019#ifdef __GNUC__
9020 yes;
9021#endif
9022EOF
9023if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9024 ac_cv_prog_gxx=yes
9025else
9026 ac_cv_prog_gxx=no
9027fi
9028fi
9029
9030echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9031
9032if test $ac_cv_prog_gxx = yes; then
9033 GXX=yes
9034else
9035 GXX=
9036fi
9037
9038ac_test_CXXFLAGS="${CXXFLAGS+set}"
9039ac_save_CXXFLAGS="$CXXFLAGS"
9040CXXFLAGS=
9041echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9042echo "configure:9043: checking whether ${CXX-g++} accepts -g" >&5
9043if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9044 echo $ac_n "(cached) $ac_c" 1>&6
9045else
9046 echo 'void f(){}' > conftest.cc
9047if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9048 ac_cv_prog_cxx_g=yes
9049else
9050 ac_cv_prog_cxx_g=no
9051fi
9052rm -f conftest*
9053
9054fi
9055
9056echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9057if test "$ac_test_CXXFLAGS" = set; then
9058 CXXFLAGS="$ac_save_CXXFLAGS"
9059elif test $ac_cv_prog_cxx_g = yes; then
9060 if test "$GXX" = yes; then
9061 CXXFLAGS="-g -O2"
9062 else
9063 CXXFLAGS="-g"
9064 fi
9065else
9066 if test "$GXX" = yes; then
9067 CXXFLAGS="-O2"
9068 else
9069 CXXFLAGS=
9070 fi
9071fi
9072
9073
9074CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
9075
9076ac_ext=c
9077# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9078ac_cpp='$CPP $CPPFLAGS'
9079ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9080ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9081cross_compiling=$ac_cv_prog_cc_cross
9082
9083
9084# Extract the first word of "ranlib", so it can be a program name with args.
9085set dummy ranlib; ac_word=$2
9086echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9087echo "configure:9088: checking for $ac_word" >&5
9088if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9089 echo $ac_n "(cached) $ac_c" 1>&6
9090else
9091 if test -n "$RANLIB"; then
9092 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9093else
9094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9095 ac_dummy="$PATH"
9096 for ac_dir in $ac_dummy; do
9097 test -z "$ac_dir" && ac_dir=.
9098 if test -f $ac_dir/$ac_word; then
9099 ac_cv_prog_RANLIB="ranlib"
9100 break
9101 fi
9102 done
9103 IFS="$ac_save_ifs"
9104 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9105fi
9106fi
9107RANLIB="$ac_cv_prog_RANLIB"
9108if test -n "$RANLIB"; then
9109 echo "$ac_t""$RANLIB" 1>&6
9110else
9111 echo "$ac_t""no" 1>&6
9112fi
9113
9114
9115# Extract the first word of "ar", so it can be a program name with args.
9116set dummy ar; 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_prog_AR'+set}'`\" = set"; then
9120 echo $ac_n "(cached) $ac_c" 1>&6
9121else
9122 if test -n "$AR"; then
9123 ac_cv_prog_AR="$AR" # Let the user override the test.
9124else
9125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9126 ac_dummy="$PATH"
9127 for ac_dir in $ac_dummy; do
9128 test -z "$ac_dir" && ac_dir=.
9129 if test -f $ac_dir/$ac_word; then
9130 ac_cv_prog_AR="ar"
9131 break
9132 fi
9133 done
9134 IFS="$ac_save_ifs"
9135 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9136fi
9137fi
9138AR="$ac_cv_prog_AR"
9139if test -n "$AR"; then
9140 echo "$ac_t""$AR" 1>&6
9141else
9142 echo "$ac_t""no" 1>&6
9143fi
9144
9145
9146# Find a good install program. We prefer a C program (faster),
9147# so one script is as good as another. But avoid the broken or
9148# incompatible versions:
9149# SysV /etc/install, /usr/sbin/install
9150# SunOS /usr/etc/install
9151# IRIX /sbin/install
9152# AIX /bin/install
9153# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9154# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9155# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9156# ./install, which can be erroneously created by make from ./install.sh.
9157echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9158echo "configure:9159: checking for a BSD compatible install" >&5
9159if test -z "$INSTALL"; then
9160if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9161 echo $ac_n "(cached) $ac_c" 1>&6
9162else
9163 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9164 for ac_dir in $PATH; do
9165 # Account for people who put trailing slashes in PATH elements.
9166 case "$ac_dir/" in
9167 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9168 *)
9169 # OSF1 and SCO ODT 3.0 have their own names for install.
9170 # Don't use installbsd from OSF since it installs stuff as root
9171 # by default.
9172 for ac_prog in ginstall scoinst install; do
9173 if test -f $ac_dir/$ac_prog; then
9174 if test $ac_prog = install &&
9175 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9176 # AIX install. It has an incompatible calling convention.
9177 :
9178 else
9179 ac_cv_path_install="$ac_dir/$ac_prog -c"
9180 break 2
9181 fi
9182 fi
9183 done
9184 ;;
9185 esac
9186 done
9187 IFS="$ac_save_IFS"
9188
9189fi
9190 if test "${ac_cv_path_install+set}" = set; then
9191 INSTALL="$ac_cv_path_install"
9192 else
9193 # As a last resort, use the slow shell script. We don't cache a
9194 # path for INSTALL within a source directory, because that will
9195 # break other packages using the cache if that directory is
9196 # removed, or if the path is relative.
9197 INSTALL="$ac_install_sh"
9198 fi
9199fi
9200echo "$ac_t""$INSTALL" 1>&6
9201
9202# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9203# It thinks the first close brace ends the variable substitution.
9204test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9205
9206test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9207
9208test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9209
9210case "${host}" in
9211
9212 powerpc-*-darwin* )
9213 INSTALL_PROGRAM="cp -fp"
9214 INSTALL_DATA="cp -fp"
9215 ;;
9216 *)
9217 ;;
9218esac
9219
9220# Extract the first word of "strip", so it can be a program name with args.
9221set dummy strip; ac_word=$2
9222echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9223echo "configure:9224: checking for $ac_word" >&5
9224if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9225 echo $ac_n "(cached) $ac_c" 1>&6
9226else
9227 if test -n "$STRIP"; then
9228 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9229else
9230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9231 ac_dummy="$PATH"
9232 for ac_dir in $ac_dummy; do
9233 test -z "$ac_dir" && ac_dir=.
9234 if test -f $ac_dir/$ac_word; then
9235 ac_cv_prog_STRIP="strip"
9236 break
9237 fi
9238 done
9239 IFS="$ac_save_ifs"
9240 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9241fi
9242fi
9243STRIP="$ac_cv_prog_STRIP"
9244if test -n "$STRIP"; then
9245 echo "$ac_t""$STRIP" 1>&6
9246else
9247 echo "$ac_t""no" 1>&6
9248fi
9249
9250
9251echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9252echo "configure:9253: checking if make is GNU make" >&5
9253if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9254 echo $ac_n "(cached) $ac_c" 1>&6
9255else
9256
9257 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9258 egrep -s GNU); then
9259 wx_cv_prog_makeisgnu="yes"
9260 else
9261 wx_cv_prog_makeisgnu="no"
9262 fi
9263
9264fi
9265
9266echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9267
9268if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9269 IF_GNU_MAKE=""
9270else
9271 IF_GNU_MAKE="#"
9272fi
9273
9274
9275
9276if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9277echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9278echo "configure:9279: checking if make supports VPATH" >&5
9279if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9280 echo $ac_n "(cached) $ac_c" 1>&6
9281else
9282
9283cat - << EOF > confMake
9284check : file
9285 cp \$? \$@
9286 cp \$? final_file
9287EOF
9288
9289if test ! -d sub ; then
9290 mkdir sub
9291fi
9292echo dummy > sub/file
9293${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9294RESULT=$?
9295rm -f sub/file check final_file confMake
9296rmdir sub
9297if test "$RESULT" = 0; then
9298 wx_cv_prog_makevpath="yes"
9299else
9300 wx_cv_prog_makevpath="no"
9301fi
9302
9303fi
9304
9305echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9306
9307if test "x$wx_cv_prog_makevpath" != "xyes"; then
9308{ echo "configure: error:
9309You need a make-utility that is able to use the variable
9310VPATH correctly.
9311If your version of make does not support VPATH correctly,
9312please install GNU-make (possibly as gmake), and start
9313configure with the following command:
9314export MAKE=gmake; ./configure for sh-type shells
9315setenv MAKE gmake; ./configure for csh-type shells
9316Also please do remember to use gmake in this case every time
9317you are trying to compile.
9318" 1>&2; exit 1; }
9319fi fi
9320for ac_prog in 'bison -y' byacc
9321do
9322# Extract the first word of "$ac_prog", so it can be a program name with args.
9323set dummy $ac_prog; ac_word=$2
9324echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9325echo "configure:9326: checking for $ac_word" >&5
9326if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9327 echo $ac_n "(cached) $ac_c" 1>&6
9328else
9329 if test -n "$YACC"; then
9330 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9331else
9332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9333 ac_dummy="$PATH"
9334 for ac_dir in $ac_dummy; do
9335 test -z "$ac_dir" && ac_dir=.
9336 if test -f $ac_dir/$ac_word; then
9337 ac_cv_prog_YACC="$ac_prog"
9338 break
9339 fi
9340 done
9341 IFS="$ac_save_ifs"
9342fi
9343fi
9344YACC="$ac_cv_prog_YACC"
9345if test -n "$YACC"; then
9346 echo "$ac_t""$YACC" 1>&6
9347else
9348 echo "$ac_t""no" 1>&6
9349fi
9350
9351test -n "$YACC" && break
9352done
9353test -n "$YACC" || YACC="yacc"
9354
9355
9356# Extract the first word of "flex", so it can be a program name with args.
9357set dummy flex; ac_word=$2
9358echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9359echo "configure:9360: checking for $ac_word" >&5
9360if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9361 echo $ac_n "(cached) $ac_c" 1>&6
9362else
9363 if test -n "$LEX"; then
9364 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9365else
9366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9367 ac_dummy="$PATH"
9368 for ac_dir in $ac_dummy; do
9369 test -z "$ac_dir" && ac_dir=.
9370 if test -f $ac_dir/$ac_word; then
9371 ac_cv_prog_LEX="flex"
9372 break
9373 fi
9374 done
9375 IFS="$ac_save_ifs"
9376 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9377fi
9378fi
9379LEX="$ac_cv_prog_LEX"
9380if test -n "$LEX"; then
9381 echo "$ac_t""$LEX" 1>&6
9382else
9383 echo "$ac_t""no" 1>&6
9384fi
9385
9386if test -z "$LEXLIB"
9387then
9388 case "$LEX" in
9389 flex*) ac_lib=fl ;;
9390 *) ac_lib=l ;;
9391 esac
9392 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9393echo "configure:9394: checking for yywrap in -l$ac_lib" >&5
9394ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9395if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9396 echo $ac_n "(cached) $ac_c" 1>&6
9397else
9398 ac_save_LIBS="$LIBS"
9399LIBS="-l$ac_lib $LIBS"
9400cat > conftest.$ac_ext <<EOF
9401#line 9402 "configure"
9402#include "confdefs.h"
9403/* Override any gcc2 internal prototype to avoid an error. */
9404/* We use char because int might match the return type of a gcc2
9405 builtin and then its argument prototype would still apply. */
9406char yywrap();
9407
9408int main() {
9409yywrap()
9410; return 0; }
9411EOF
9412if { (eval echo configure:9413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9413 rm -rf conftest*
9414 eval "ac_cv_lib_$ac_lib_var=yes"
9415else
9416 echo "configure: failed program was:" >&5
9417 cat conftest.$ac_ext >&5
9418 rm -rf conftest*
9419 eval "ac_cv_lib_$ac_lib_var=no"
9420fi
9421rm -f conftest*
9422LIBS="$ac_save_LIBS"
9423
9424fi
9425if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9426 echo "$ac_t""yes" 1>&6
9427 LEXLIB="-l$ac_lib"
9428else
9429 echo "$ac_t""no" 1>&6
9430fi
9431
9432fi
9433
9434
9435echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9436echo "configure:9437: checking whether ln -s works" >&5
9437if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9438 echo $ac_n "(cached) $ac_c" 1>&6
9439else
9440 rm -f conftestdata
9441if ln -s X conftestdata 2>/dev/null
9442then
9443 rm -f conftestdata
9444 ac_cv_prog_LN_S="ln -s"
9445else
9446 ac_cv_prog_LN_S=ln
9447fi
9448fi
9449LN_S="$ac_cv_prog_LN_S"
9450if test "$ac_cv_prog_LN_S" = "ln -s"; then
9451 echo "$ac_t""yes" 1>&6
9452else
9453 echo "$ac_t""no" 1>&6
9454fi
9455
9456
9457
9458SEARCH_INCLUDE="\
9459 /usr/local/include \
9460 \
9461 /usr/Motif-1.2/include \
9462 /usr/Motif-2.1/include \
9463 \
9464 /usr/include/Motif1.2 \
9465 /opt/xpm/include/X11 \
9466 /opt/GBxpm/include/ \
9467 /opt/GBxpm/X11/include/ \
9468 \
9469 /usr/Motif1.2/include \
9470 /usr/dt/include \
9471 /usr/openwin/include \
9472 \
9473 /usr/include/Xm \
9474 \
9475 /usr/X11R6/include \
9476 /usr/X11R6.4/include \
9477 /usr/X11R5/include \
9478 /usr/X11R4/include \
9479 \
9480 /usr/include/X11R6 \
9481 /usr/include/X11R5 \
9482 /usr/include/X11R4 \
9483 \
9484 /usr/local/X11R6/include \
9485 /usr/local/X11R5/include \
9486 /usr/local/X11R4/include \
9487 \
9488 /usr/local/include/X11R6 \
9489 /usr/local/include/X11R5 \
9490 /usr/local/include/X11R4 \
9491 \
9492 /usr/X11/include \
9493 /usr/include/X11 \
9494 /usr/local/X11/include \
9495 /usr/local/include/X11 \
9496 \
9497 /usr/X386/include \
9498 /usr/x386/include \
9499 /usr/XFree86/include/X11 \
9500 \
9501 X:/XFree86/include \
9502 X:/XFree86/include/X11 \
9503 \
9504 /usr/include/gtk \
9505 /usr/local/include/gtk \
9506 /usr/include/glib \
9507 /usr/local/include/glib \
9508 \
9509 /usr/include/qt \
9510 /usr/local/include/qt \
9511 \
9512 /usr/include/windows \
9513 /usr/include/wine \
9514 /usr/local/include/wine \
9515 \
9516 /usr/unsupported/include \
9517 /usr/athena/include \
9518 /usr/local/x11r5/include \
9519 /usr/lpp/Xamples/include \
9520 \
9521 /usr/openwin/share/include \
9522 \
9523 /usr/include"
9524
9525SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
9526
9527
9528cat > confcache <<\EOF
9529# This file is a shell script that caches the results of configure
9530# tests run on this system so they can be shared between configure
9531# scripts and configure runs. It is not useful on other systems.
9532# If it contains results you don't want to keep, you may remove or edit it.
9533#
9534# By default, configure uses ./config.cache as the cache file,
9535# creating it if it does not exist already. You can give configure
9536# the --cache-file=FILE option to use a different cache file; that is
9537# what configure does when it calls configure scripts in
9538# subdirectories, so they share the cache.
9539# Giving --cache-file=/dev/null disables caching, for debugging configure.
9540# config.status only pays attention to the cache file if you give it the
9541# --recheck option to rerun configure.
9542#
9543EOF
9544# The following way of writing the cache mishandles newlines in values,
9545# but we know of no workaround that is simple, portable, and efficient.
9546# So, don't put newlines in cache variables' values.
9547# Ultrix sh set writes to stderr and can't be redirected directly,
9548# and sets the high bit in the cache file unless we assign to the vars.
9549(set) 2>&1 |
9550 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9551 *ac_space=\ *)
9552 # `set' does not quote correctly, so add quotes (double-quote substitution
9553 # turns \\\\ into \\, and sed turns \\ into \).
9554 sed -n \
9555 -e "s/'/'\\\\''/g" \
9556 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9557 ;;
9558 *)
9559 # `set' quotes correctly as required by POSIX, so do not add quotes.
9560 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9561 ;;
9562 esac >> confcache
9563if cmp -s $cache_file confcache; then
9564 :
9565else
9566 if test -w $cache_file; then
9567 echo "updating cache $cache_file"
9568 cat confcache > $cache_file
9569 else
9570 echo "not updating unwritable cache $cache_file"
9571 fi
9572fi
9573rm -f confcache
9574
9575
9576
9577
9578REGEX_INCLUDE=
9579if test "$wxUSE_REGEX" != "no"; then
9580 cat >> confdefs.h <<\EOF
9581#define wxUSE_REGEX 1
9582EOF
9583
9584
9585 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
9586 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
9587echo $ac_n "checking for regex.h""... $ac_c" 1>&6
9588echo "configure:9589: checking for regex.h" >&5
9589if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9590 echo $ac_n "(cached) $ac_c" 1>&6
9591else
9592 cat > conftest.$ac_ext <<EOF
9593#line 9594 "configure"
9594#include "confdefs.h"
9595#include <regex.h>
9596EOF
9597ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9598{ (eval echo configure:9599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9599ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9600if test -z "$ac_err"; then
9601 rm -rf conftest*
9602 eval "ac_cv_header_$ac_safe=yes"
9603else
9604 echo "$ac_err" >&5
9605 echo "configure: failed program was:" >&5
9606 cat conftest.$ac_ext >&5
9607 rm -rf conftest*
9608 eval "ac_cv_header_$ac_safe=no"
9609fi
9610rm -f conftest*
9611fi
9612if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9613 echo "$ac_t""yes" 1>&6
9614 for ac_func in regcomp
9615do
9616echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9617echo "configure:9618: checking for $ac_func" >&5
9618if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9619 echo $ac_n "(cached) $ac_c" 1>&6
9620else
9621 cat > conftest.$ac_ext <<EOF
9622#line 9623 "configure"
9623#include "confdefs.h"
9624/* System header to define __stub macros and hopefully few prototypes,
9625 which can conflict with char $ac_func(); below. */
9626#include <assert.h>
9627/* Override any gcc2 internal prototype to avoid an error. */
9628/* We use char because int might match the return type of a gcc2
9629 builtin and then its argument prototype would still apply. */
9630char $ac_func();
9631
9632int main() {
9633
9634/* The GNU C library defines this for functions which it implements
9635 to always fail with ENOSYS. Some functions are actually named
9636 something starting with __ and the normal name is an alias. */
9637#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9638choke me
9639#else
9640$ac_func();
9641#endif
9642
9643; return 0; }
9644EOF
9645if { (eval echo configure:9646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9646 rm -rf conftest*
9647 eval "ac_cv_func_$ac_func=yes"
9648else
9649 echo "configure: failed program was:" >&5
9650 cat conftest.$ac_ext >&5
9651 rm -rf conftest*
9652 eval "ac_cv_func_$ac_func=no"
9653fi
9654rm -f conftest*
9655fi
9656
9657if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9658 echo "$ac_t""yes" 1>&6
9659 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9660 cat >> confdefs.h <<EOF
9661#define $ac_tr_func 1
9662EOF
9663
9664else
9665 echo "$ac_t""no" 1>&6
9666fi
9667done
9668
9669else
9670 echo "$ac_t""no" 1>&6
9671fi
9672
9673
9674 if test "x$ac_cv_func_regcomp" != "xyes"; then
9675 if test "$wxUSE_REGEX" = "sys" ; then
9676 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9677 else
9678 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
9679 wxUSE_REGEX=builtin
9680 fi
9681 else
9682 wxUSE_REGEX=sys
9683 fi
9684 fi
9685
9686 if test "$wxUSE_REGEX" = "builtin" ; then
9687 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9688 fi
9689fi
9690
9691
9692ZLIB_INCLUDE=
9693ZLIB_LINK=
9694if test "$wxUSE_ZLIB" != "no" ; then
9695 cat >> confdefs.h <<\EOF
9696#define wxUSE_ZLIB 1
9697EOF
9698
9699
9700 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9701 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9702echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
9703echo "configure:9704: checking for zlib.h" >&5
9704if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9705 echo $ac_n "(cached) $ac_c" 1>&6
9706else
9707 cat > conftest.$ac_ext <<EOF
9708#line 9709 "configure"
9709#include "confdefs.h"
9710#include <zlib.h>
9711EOF
9712ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9713{ (eval echo configure:9714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9714ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9715if test -z "$ac_err"; then
9716 rm -rf conftest*
9717 eval "ac_cv_header_$ac_safe=yes"
9718else
9719 echo "$ac_err" >&5
9720 echo "configure: failed program was:" >&5
9721 cat conftest.$ac_ext >&5
9722 rm -rf conftest*
9723 eval "ac_cv_header_$ac_safe=no"
9724fi
9725rm -f conftest*
9726fi
9727if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9728 echo "$ac_t""yes" 1>&6
9729 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
9730echo "configure:9731: checking for deflate in -lz" >&5
9731ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9732if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9733 echo $ac_n "(cached) $ac_c" 1>&6
9734else
9735 ac_save_LIBS="$LIBS"
9736LIBS="-lz $LIBS"
9737cat > conftest.$ac_ext <<EOF
9738#line 9739 "configure"
9739#include "confdefs.h"
9740/* Override any gcc2 internal prototype to avoid an error. */
9741/* We use char because int might match the return type of a gcc2
9742 builtin and then its argument prototype would still apply. */
9743char deflate();
9744
9745int main() {
9746deflate()
9747; return 0; }
9748EOF
9749if { (eval echo configure:9750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9750 rm -rf conftest*
9751 eval "ac_cv_lib_$ac_lib_var=yes"
9752else
9753 echo "configure: failed program was:" >&5
9754 cat conftest.$ac_ext >&5
9755 rm -rf conftest*
9756 eval "ac_cv_lib_$ac_lib_var=no"
9757fi
9758rm -f conftest*
9759LIBS="$ac_save_LIBS"
9760
9761fi
9762if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9763 echo "$ac_t""yes" 1>&6
9764 ZLIB_LINK=" -lz"
9765else
9766 echo "$ac_t""no" 1>&6
9767fi
9768
9769else
9770 echo "$ac_t""no" 1>&6
9771fi
9772
9773
9774 if test "x$ZLIB_LINK" = "x" ; then
9775 if test "$wxUSE_ZLIB" = "sys" ; then
9776 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9777 else
9778 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
9779 wxUSE_ZLIB=builtin
9780 fi
9781 else
9782 wxUSE_ZLIB=sys
9783 fi
9784 fi
9785
9786 if test "$wxUSE_ZLIB" = "builtin" ; then
9787 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9788 fi
9789fi
9790
9791
9792PNG_INCLUDE=
9793PNG_LINK=
9794if test "$wxUSE_LIBPNG" != "no" ; then
9795 cat >> confdefs.h <<\EOF
9796#define wxUSE_LIBPNG 1
9797EOF
9798
9799
9800 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
9801 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
9802 wxUSE_LIBPNG=sys
9803 fi
9804
9805 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
9806 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
9807 wxUSE_LIBPNG=builtin
9808 fi
9809
9810 if test "$wxUSE_MGL" != 1 ; then
9811 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9812 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9813echo $ac_n "checking for png.h""... $ac_c" 1>&6
9814echo "configure:9815: checking for png.h" >&5
9815if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9816 echo $ac_n "(cached) $ac_c" 1>&6
9817else
9818 cat > conftest.$ac_ext <<EOF
9819#line 9820 "configure"
9820#include "confdefs.h"
9821#include <png.h>
9822EOF
9823ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9824{ (eval echo configure:9825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9825ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9826if test -z "$ac_err"; then
9827 rm -rf conftest*
9828 eval "ac_cv_header_$ac_safe=yes"
9829else
9830 echo "$ac_err" >&5
9831 echo "configure: failed program was:" >&5
9832 cat conftest.$ac_ext >&5
9833 rm -rf conftest*
9834 eval "ac_cv_header_$ac_safe=no"
9835fi
9836rm -f conftest*
9837fi
9838if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9839 echo "$ac_t""yes" 1>&6
9840 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
9841echo "configure:9842: checking for png_check_sig in -lpng" >&5
9842ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9843if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9844 echo $ac_n "(cached) $ac_c" 1>&6
9845else
9846 ac_save_LIBS="$LIBS"
9847LIBS="-lpng -lz -lm $LIBS"
9848cat > conftest.$ac_ext <<EOF
9849#line 9850 "configure"
9850#include "confdefs.h"
9851/* Override any gcc2 internal prototype to avoid an error. */
9852/* We use char because int might match the return type of a gcc2
9853 builtin and then its argument prototype would still apply. */
9854char png_check_sig();
9855
9856int main() {
9857png_check_sig()
9858; return 0; }
9859EOF
9860if { (eval echo configure:9861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9861 rm -rf conftest*
9862 eval "ac_cv_lib_$ac_lib_var=yes"
9863else
9864 echo "configure: failed program was:" >&5
9865 cat conftest.$ac_ext >&5
9866 rm -rf conftest*
9867 eval "ac_cv_lib_$ac_lib_var=no"
9868fi
9869rm -f conftest*
9870LIBS="$ac_save_LIBS"
9871
9872fi
9873if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9874 echo "$ac_t""yes" 1>&6
9875 PNG_LINK=" -lpng"
9876else
9877 echo "$ac_t""no" 1>&6
9878fi
9879
9880
9881else
9882 echo "$ac_t""no" 1>&6
9883fi
9884
9885
9886 if test "x$PNG_LINK" = "x" ; then
9887 if test "$wxUSE_LIBPNG" = "sys" ; then
9888 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9889 else
9890 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
9891 wxUSE_LIBPNG=builtin
9892 fi
9893 else
9894 wxUSE_LIBPNG=yes
9895 fi
9896 fi
9897 fi
9898
9899 if test "$wxUSE_LIBPNG" = "builtin" ; then
9900 PNG_INCLUDE="-I\${top_srcdir}/src/png"
9901 fi
9902
9903 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
9904fi
9905
9906
9907JPEG_INCLUDE=
9908JPEG_LINK=
9909if test "$wxUSE_LIBJPEG" != "no" ; then
9910 cat >> confdefs.h <<\EOF
9911#define wxUSE_LIBJPEG 1
9912EOF
9913
9914
9915 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
9916 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
9917 wxUSE_LIBJPEG=sys
9918 fi
9919
9920 if test "$wxUSE_MGL" != 1 ; then
9921 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9922 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
9923echo "configure:9924: checking for jpeglib.h" >&5
9924 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
9925 echo $ac_n "(cached) $ac_c" 1>&6
9926else
9927 cat > conftest.$ac_ext <<EOF
9928#line 9929 "configure"
9929#include "confdefs.h"
9930
9931 #undef HAVE_STDLIB_H
9932 #include <stdio.h>
9933 #include <jpeglib.h>
9934
9935int main() {
9936
9937
9938; return 0; }
9939EOF
9940if { (eval echo configure:9941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9941 rm -rf conftest*
9942 ac_cv_header_jpeglib_h=yes
9943else
9944 echo "configure: failed program was:" >&5
9945 cat conftest.$ac_ext >&5
9946 rm -rf conftest*
9947 ac_cv_header_jpeglib_h=no
9948
9949fi
9950rm -f conftest*
9951
9952fi
9953
9954 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
9955
9956 if test "$ac_cv_header_jpeglib_h" = "yes"; then
9957 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
9958echo "configure:9959: checking for jpeg_read_header in -ljpeg" >&5
9959ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
9960if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9961 echo $ac_n "(cached) $ac_c" 1>&6
9962else
9963 ac_save_LIBS="$LIBS"
9964LIBS="-ljpeg $LIBS"
9965cat > conftest.$ac_ext <<EOF
9966#line 9967 "configure"
9967#include "confdefs.h"
9968/* Override any gcc2 internal prototype to avoid an error. */
9969/* We use char because int might match the return type of a gcc2
9970 builtin and then its argument prototype would still apply. */
9971char jpeg_read_header();
9972
9973int main() {
9974jpeg_read_header()
9975; return 0; }
9976EOF
9977if { (eval echo configure:9978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9978 rm -rf conftest*
9979 eval "ac_cv_lib_$ac_lib_var=yes"
9980else
9981 echo "configure: failed program was:" >&5
9982 cat conftest.$ac_ext >&5
9983 rm -rf conftest*
9984 eval "ac_cv_lib_$ac_lib_var=no"
9985fi
9986rm -f conftest*
9987LIBS="$ac_save_LIBS"
9988
9989fi
9990if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9991 echo "$ac_t""yes" 1>&6
9992 JPEG_LINK=" -ljpeg"
9993else
9994 echo "$ac_t""no" 1>&6
9995fi
9996
9997 fi
9998
9999 if test "x$JPEG_LINK" = "x" ; then
10000 if test "$wxUSE_LIBJPEG" = "sys" ; then
10001 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
10002 else
10003 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
10004 wxUSE_LIBJPEG=builtin
10005 fi
10006 else
10007 wxUSE_LIBJPEG=sys
10008 fi
10009 fi
10010 fi
10011
10012 if test "$wxUSE_LIBJPEG" = "builtin" ; then
10013 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
10014 fi
10015fi
10016
10017
10018TIFF_INCLUDE=
10019TIFF_LINK=
10020if test "$wxUSE_LIBTIFF" != "no" ; then
10021 cat >> confdefs.h <<\EOF
10022#define wxUSE_LIBTIFF 1
10023EOF
10024
10025
10026 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
10027 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
10028echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
10029echo "configure:10030: checking for tiffio.h" >&5
10030if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10031 echo $ac_n "(cached) $ac_c" 1>&6
10032else
10033 cat > conftest.$ac_ext <<EOF
10034#line 10035 "configure"
10035#include "confdefs.h"
10036#include <tiffio.h>
10037EOF
10038ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10039{ (eval echo configure:10040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10040ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10041if test -z "$ac_err"; then
10042 rm -rf conftest*
10043 eval "ac_cv_header_$ac_safe=yes"
10044else
10045 echo "$ac_err" >&5
10046 echo "configure: failed program was:" >&5
10047 cat conftest.$ac_ext >&5
10048 rm -rf conftest*
10049 eval "ac_cv_header_$ac_safe=no"
10050fi
10051rm -f conftest*
10052fi
10053if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10054 echo "$ac_t""yes" 1>&6
10055 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
10056echo "configure:10057: checking for TIFFError in -ltiff" >&5
10057ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
10058if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10059 echo $ac_n "(cached) $ac_c" 1>&6
10060else
10061 ac_save_LIBS="$LIBS"
10062LIBS="-ltiff -lm $LIBS"
10063cat > conftest.$ac_ext <<EOF
10064#line 10065 "configure"
10065#include "confdefs.h"
10066/* Override any gcc2 internal prototype to avoid an error. */
10067/* We use char because int might match the return type of a gcc2
10068 builtin and then its argument prototype would still apply. */
10069char TIFFError();
10070
10071int main() {
10072TIFFError()
10073; return 0; }
10074EOF
10075if { (eval echo configure:10076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10076 rm -rf conftest*
10077 eval "ac_cv_lib_$ac_lib_var=yes"
10078else
10079 echo "configure: failed program was:" >&5
10080 cat conftest.$ac_ext >&5
10081 rm -rf conftest*
10082 eval "ac_cv_lib_$ac_lib_var=no"
10083fi
10084rm -f conftest*
10085LIBS="$ac_save_LIBS"
10086
10087fi
10088if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10089 echo "$ac_t""yes" 1>&6
10090 TIFF_LINK=" -ltiff"
10091else
10092 echo "$ac_t""no" 1>&6
10093fi
10094
10095
10096else
10097 echo "$ac_t""no" 1>&6
10098fi
10099
10100
10101 if test "x$TIFF_LINK" = "x" ; then
10102 if test "$wxUSE_LIBTIFF" = "sys" ; then
10103 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
10104 else
10105 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
10106 wxUSE_LIBTIFF=builtin
10107 fi
10108 else
10109 wxUSE_LIBTIFF=sys
10110 fi
10111 fi
10112
10113 if test "$wxUSE_LIBTIFF" = "builtin" ; then
10114 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
10115 fi
10116fi
10117
10118
10119AFMINSTALL=
10120
10121TOOLKIT=
10122TOOLKIT_INCLUDE=
10123WIDGET_SET=
10124
10125if test "$USE_WIN32" = 1 ; then
10126 for ac_hdr in w32api.h
10127do
10128ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10129echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10130echo "configure:10131: checking for $ac_hdr" >&5
10131if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10132 echo $ac_n "(cached) $ac_c" 1>&6
10133else
10134 cat > conftest.$ac_ext <<EOF
10135#line 10136 "configure"
10136#include "confdefs.h"
10137#include <$ac_hdr>
10138EOF
10139ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10140{ (eval echo configure:10141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10141ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10142if test -z "$ac_err"; then
10143 rm -rf conftest*
10144 eval "ac_cv_header_$ac_safe=yes"
10145else
10146 echo "$ac_err" >&5
10147 echo "configure: failed program was:" >&5
10148 cat conftest.$ac_ext >&5
10149 rm -rf conftest*
10150 eval "ac_cv_header_$ac_safe=no"
10151fi
10152rm -f conftest*
10153fi
10154if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10155 echo "$ac_t""yes" 1>&6
10156 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10157 cat >> confdefs.h <<EOF
10158#define $ac_tr_hdr 1
10159EOF
10160
10161else
10162 echo "$ac_t""no" 1>&6
10163fi
10164done
10165
10166 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10167echo $ac_n "checking for windows.h""... $ac_c" 1>&6
10168echo "configure:10169: checking for windows.h" >&5
10169if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10170 echo $ac_n "(cached) $ac_c" 1>&6
10171else
10172 cat > conftest.$ac_ext <<EOF
10173#line 10174 "configure"
10174#include "confdefs.h"
10175#include <windows.h>
10176EOF
10177ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10178{ (eval echo configure:10179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10179ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10180if test -z "$ac_err"; then
10181 rm -rf conftest*
10182 eval "ac_cv_header_$ac_safe=yes"
10183else
10184 echo "$ac_err" >&5
10185 echo "configure: failed program was:" >&5
10186 cat conftest.$ac_ext >&5
10187 rm -rf conftest*
10188 eval "ac_cv_header_$ac_safe=no"
10189fi
10190rm -f conftest*
10191fi
10192if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10193 echo "$ac_t""yes" 1>&6
10194 :
10195else
10196 echo "$ac_t""no" 1>&6
10197
10198 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
10199
10200fi
10201
10202
10203 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
10204echo "configure:10205: checking if w32api has good enough MSIE support" >&5
10205if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
10206 echo $ac_n "(cached) $ac_c" 1>&6
10207else
10208
10209 cat > conftest.$ac_ext <<EOF
10210#line 10211 "configure"
10211#include "confdefs.h"
10212#include <w32api.h>
10213int main() {
10214
10215 #define wxCHECK_W32API_VERSION( major, minor ) \
10216 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
10217 && ( ( __W32API_MAJOR_VERSION > (major) ) \
10218 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
10219
10220 #if !wxCHECK_W32API_VERSION(1,1)
10221 #error You need w32api 1.1 or newer
10222 #endif
10223
10224; return 0; }
10225EOF
10226if { (eval echo configure:10227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10227 rm -rf conftest*
10228
10229 wx_cv_w32api_win32_ie=yes
10230
10231else
10232 echo "configure: failed program was:" >&5
10233 cat conftest.$ac_ext >&5
10234 rm -rf conftest*
10235
10236 wx_cv_w32api_win32_ie=no
10237
10238fi
10239rm -f conftest*
10240
10241fi
10242
10243echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
10244 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
10245 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
10246 fi
10247
10248 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
10249
10250 case "${host}" in
10251 *-*-cygwin* )
10252 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
10253 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
10254 esac
10255
10256 if test "$wxUSE_ODBC" = "yes" ; then
10257 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
10258 fi
10259
10260 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
10261 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
10262fi
10263
10264if test "$wxUSE_GUI" = "yes"; then
10265 USE_GUI=1
10266
10267 GUI_TK_LIBRARY=
10268
10269 WXGTK12=
10270 WXGTK127=
10271 WXGTK20=
10272
10273 if test "$wxUSE_MSW" = 1 ; then
10274 TOOLKIT=MSW
10275 GUIDIST=MSW_DIST
10276
10277 case "${host}" in
10278 *-*-mingw32* )
10279 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
10280 esac
10281 fi
10282
10283 if test "$wxUSE_GTK" = 1; then
10284 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
10285echo "configure:10286: checking for GTK+ version" >&5
10286
10287 gtk_version_cached=1
10288 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
10289 echo $ac_n "(cached) $ac_c" 1>&6
10290else
10291
10292 gtk_version_cached=0
10293 echo "$ac_t""" 1>&6
10294
10295 GTK_MODULES=
10296 if test "$wxUSE_THREADS" = "yes"; then
10297 GTK_MODULES=gthread
10298 fi
10299
10300 wx_cv_lib_gtk=
10301 if test "x$wxUSE_GTK2" = "xyes"; then
10302 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10303if test "${with_gtk_prefix+set}" = set; then
10304 withval="$with_gtk_prefix"
10305 gtk_config_prefix="$withval"
10306else
10307 gtk_config_prefix=""
10308fi
10309
10310# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10311if test "${with_gtk_exec_prefix+set}" = set; then
10312 withval="$with_gtk_exec_prefix"
10313 gtk_config_exec_prefix="$withval"
10314else
10315 gtk_config_exec_prefix=""
10316fi
10317
10318# Check whether --enable-gtktest or --disable-gtktest was given.
10319if test "${enable_gtktest+set}" = set; then
10320 enableval="$enable_gtktest"
10321 :
10322else
10323 enable_gtktest=yes
10324fi
10325
10326
10327 for module in . $GTK_MODULES
10328 do
10329 case "$module" in
10330 gthread)
10331 gtk_config_args="$gtk_config_args gthread"
10332 ;;
10333 esac
10334 done
10335
10336 if test x$gtk_config_exec_prefix != x ; then
10337 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10338 if test x${GTK_CONFIG_2_0+set} != xset ; then
10339 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
10340 fi
10341 fi
10342 if test x$gtk_config_prefix != x ; then
10343 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10344 if test x${GTK_CONFIG_2_0+set} != xset ; then
10345 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
10346 fi
10347 fi
10348
10349 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
10350set dummy gtk-config-2.0; ac_word=$2
10351echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10352echo "configure:10353: checking for $ac_word" >&5
10353if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
10354 echo $ac_n "(cached) $ac_c" 1>&6
10355else
10356 case "$GTK_CONFIG_2_0" in
10357 /*)
10358 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
10359 ;;
10360 ?:/*)
10361 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
10362 ;;
10363 *)
10364 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10365 ac_dummy="$PATH"
10366 for ac_dir in $ac_dummy; do
10367 test -z "$ac_dir" && ac_dir=.
10368 if test -f $ac_dir/$ac_word; then
10369 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
10370 break
10371 fi
10372 done
10373 IFS="$ac_save_ifs"
10374 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
10375 ;;
10376esac
10377fi
10378GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
10379if test -n "$GTK_CONFIG_2_0"; then
10380 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
10381else
10382 echo "$ac_t""no" 1>&6
10383fi
10384
10385 min_gtk_version=1.3.1
10386 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10387echo "configure:10388: checking for GTK - version >= $min_gtk_version" >&5
10388 no_gtk=""
10389 if test "$GTK_CONFIG_2_0" = "no" ; then
10390 no_gtk=yes
10391 else
10392 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
10393 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
10394 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10395 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10396 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10397 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10398 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10399 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10400 if test "x$enable_gtktest" = "xyes" ; then
10401 ac_save_CFLAGS="$CFLAGS"
10402 ac_save_LIBS="$LIBS"
10403 CFLAGS="$CFLAGS $GTK_CFLAGS"
10404 LIBS="$GTK_LIBS $LIBS"
10405 rm -f conf.gtktest
10406 if test "$cross_compiling" = yes; then
10407 echo $ac_n "cross compiling; assumed OK... $ac_c"
10408else
10409 cat > conftest.$ac_ext <<EOF
10410#line 10411 "configure"
10411#include "confdefs.h"
10412
10413#include <gtk/gtk.h>
10414#include <stdio.h>
10415#include <stdlib.h>
10416
10417int
10418main ()
10419{
10420 int major, minor, micro;
10421 char *tmp_version;
10422
10423 system ("touch conf.gtktest");
10424
10425 /* HP/UX 9 (%@#!) writes to sscanf strings */
10426 tmp_version = g_strdup("$min_gtk_version");
10427 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10428 printf("%s, bad version string\n", "$min_gtk_version");
10429 exit(1);
10430 }
10431
10432 if ((gtk_major_version != $gtk_config_major_version) ||
10433 (gtk_minor_version != $gtk_config_minor_version) ||
10434 (gtk_micro_version != $gtk_config_micro_version))
10435 {
10436 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10437 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10438 gtk_major_version, gtk_minor_version, gtk_micro_version);
10439 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
10440 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10441 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10442 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10443 printf("*** required on your system.\n");
10444 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
10445 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
10446 printf("*** before re-running configure\n");
10447 }
10448#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10449 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10450 (gtk_minor_version != GTK_MINOR_VERSION) ||
10451 (gtk_micro_version != GTK_MICRO_VERSION))
10452 {
10453 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10454 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10455 printf("*** library (version %d.%d.%d)\n",
10456 gtk_major_version, gtk_minor_version, gtk_micro_version);
10457 }
10458#endif /* defined (GTK_MAJOR_VERSION) ... */
10459 else
10460 {
10461 if ((gtk_major_version > major) ||
10462 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10463 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10464 {
10465 return 0;
10466 }
10467 else
10468 {
10469 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10470 gtk_major_version, gtk_minor_version, gtk_micro_version);
10471 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10472 major, minor, micro);
10473 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10474 printf("***\n");
10475 printf("*** If you have already installed a sufficiently new version, this error\n");
10476 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
10477 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10478 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
10479 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
10480 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10481 printf("*** so that the correct libraries are found at run-time))\n");
10482 }
10483 }
10484 return 1;
10485}
10486
10487EOF
10488if { (eval echo configure:10489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10489then
10490 :
10491else
10492 echo "configure: failed program was:" >&5
10493 cat conftest.$ac_ext >&5
10494 rm -fr conftest*
10495 no_gtk=yes
10496fi
10497rm -fr conftest*
10498fi
10499
10500 CFLAGS="$ac_save_CFLAGS"
10501 LIBS="$ac_save_LIBS"
10502 fi
10503 fi
10504 if test "x$no_gtk" = x ; then
10505 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
10506 wx_cv_lib_gtk=2.0
10507 else
10508 echo "$ac_t""no" 1>&6
10509 if test "$GTK_CONFIG_2_0" = "no" ; then
10510 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
10511 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10512 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
10513 echo "*** full path to gtk-config-2.0."
10514 else
10515 if test -f conf.gtktest ; then
10516 :
10517 else
10518 echo "*** Could not run GTK test program, checking why..."
10519 CFLAGS="$CFLAGS $GTK_CFLAGS"
10520 LIBS="$LIBS $GTK_LIBS"
10521 cat > conftest.$ac_ext <<EOF
10522#line 10523 "configure"
10523#include "confdefs.h"
10524
10525#include <gtk/gtk.h>
10526#include <stdio.h>
10527
10528int main() {
10529 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10530; return 0; }
10531EOF
10532if { (eval echo configure:10533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10533 rm -rf conftest*
10534 echo "*** The test program compiled, but did not run. This usually means"
10535 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10536 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10537 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10538 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10539 echo "*** is required on your system"
10540 echo "***"
10541 echo "*** If you have an old version installed, it is best to remove it, although"
10542 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10543 echo "***"
10544 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10545 echo "*** came with the system with the command"
10546 echo "***"
10547 echo "*** rpm --erase --nodeps gtk gtk-devel"
10548else
10549 echo "configure: failed program was:" >&5
10550 cat conftest.$ac_ext >&5
10551 rm -rf conftest*
10552 echo "*** The test program failed to compile or link. See the file config.log for the"
10553 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10554 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10555 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
10556fi
10557rm -f conftest*
10558 CFLAGS="$ac_save_CFLAGS"
10559 LIBS="$ac_save_LIBS"
10560 fi
10561 fi
10562 GTK_CFLAGS=""
10563 GTK_LIBS=""
10564 :
10565 fi
10566
10567
10568 rm -f conf.gtktest
10569
10570 fi
10571
10572 if test -z "$wx_cv_lib_gtk"; then
10573 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10574if test "${with_gtk_prefix+set}" = set; then
10575 withval="$with_gtk_prefix"
10576 gtk_config_prefix="$withval"
10577else
10578 gtk_config_prefix=""
10579fi
10580
10581# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10582if test "${with_gtk_exec_prefix+set}" = set; then
10583 withval="$with_gtk_exec_prefix"
10584 gtk_config_exec_prefix="$withval"
10585else
10586 gtk_config_exec_prefix=""
10587fi
10588
10589# Check whether --enable-gtktest or --disable-gtktest was given.
10590if test "${enable_gtktest+set}" = set; then
10591 enableval="$enable_gtktest"
10592 :
10593else
10594 enable_gtktest=yes
10595fi
10596
10597
10598 for module in . $GTK_MODULES
10599 do
10600 case "$module" in
10601 gthread)
10602 gtk_config_args="$gtk_config_args gthread"
10603 ;;
10604 esac
10605 done
10606
10607 if test x$gtk_config_exec_prefix != x ; then
10608 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10609 if test x${GTK_CONFIG+set} != xset ; then
10610 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10611 fi
10612 fi
10613 if test x$gtk_config_prefix != x ; then
10614 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10615 if test x${GTK_CONFIG+set} != xset ; then
10616 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10617 fi
10618 fi
10619
10620 # Extract the first word of "gtk-config", so it can be a program name with args.
10621set dummy gtk-config; ac_word=$2
10622echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10623echo "configure:10624: checking for $ac_word" >&5
10624if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10625 echo $ac_n "(cached) $ac_c" 1>&6
10626else
10627 case "$GTK_CONFIG" in
10628 /*)
10629 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10630 ;;
10631 ?:/*)
10632 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10633 ;;
10634 *)
10635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10636 ac_dummy="$PATH"
10637 for ac_dir in $ac_dummy; do
10638 test -z "$ac_dir" && ac_dir=.
10639 if test -f $ac_dir/$ac_word; then
10640 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10641 break
10642 fi
10643 done
10644 IFS="$ac_save_ifs"
10645 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10646 ;;
10647esac
10648fi
10649GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10650if test -n "$GTK_CONFIG"; then
10651 echo "$ac_t""$GTK_CONFIG" 1>&6
10652else
10653 echo "$ac_t""no" 1>&6
10654fi
10655
10656 min_gtk_version=1.2.7
10657 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10658echo "configure:10659: checking for GTK - version >= $min_gtk_version" >&5
10659 no_gtk=""
10660 if test "$GTK_CONFIG" = "no" ; then
10661 no_gtk=yes
10662 else
10663 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10664 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10665 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10666 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10667 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10668 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10669 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10670 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10671 if test "x$enable_gtktest" = "xyes" ; then
10672 ac_save_CFLAGS="$CFLAGS"
10673 ac_save_LIBS="$LIBS"
10674 CFLAGS="$CFLAGS $GTK_CFLAGS"
10675 LIBS="$GTK_LIBS $LIBS"
10676 rm -f conf.gtktest
10677 if test "$cross_compiling" = yes; then
10678 echo $ac_n "cross compiling; assumed OK... $ac_c"
10679else
10680 cat > conftest.$ac_ext <<EOF
10681#line 10682 "configure"
10682#include "confdefs.h"
10683
10684#include <gtk/gtk.h>
10685#include <stdio.h>
10686#include <stdlib.h>
10687
10688int
10689main ()
10690{
10691 int major, minor, micro;
10692 char *tmp_version;
10693
10694 system ("touch conf.gtktest");
10695
10696 /* HP/UX 9 (%@#!) writes to sscanf strings */
10697 tmp_version = g_strdup("$min_gtk_version");
10698 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10699 printf("%s, bad version string\n", "$min_gtk_version");
10700 exit(1);
10701 }
10702
10703 if ((gtk_major_version != $gtk_config_major_version) ||
10704 (gtk_minor_version != $gtk_config_minor_version) ||
10705 (gtk_micro_version != $gtk_config_micro_version))
10706 {
10707 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10708 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10709 gtk_major_version, gtk_minor_version, gtk_micro_version);
10710 printf ("*** was found! If gtk-config was correct, then it is best\n");
10711 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10712 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10713 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10714 printf("*** required on your system.\n");
10715 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10716 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10717 printf("*** before re-running configure\n");
10718 }
10719#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10720 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10721 (gtk_minor_version != GTK_MINOR_VERSION) ||
10722 (gtk_micro_version != GTK_MICRO_VERSION))
10723 {
10724 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10725 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10726 printf("*** library (version %d.%d.%d)\n",
10727 gtk_major_version, gtk_minor_version, gtk_micro_version);
10728 }
10729#endif /* defined (GTK_MAJOR_VERSION) ... */
10730 else
10731 {
10732 if ((gtk_major_version > major) ||
10733 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10734 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10735 {
10736 return 0;
10737 }
10738 else
10739 {
10740 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10741 gtk_major_version, gtk_minor_version, gtk_micro_version);
10742 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10743 major, minor, micro);
10744 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10745 printf("***\n");
10746 printf("*** If you have already installed a sufficiently new version, this error\n");
10747 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10748 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10749 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10750 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10751 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10752 printf("*** so that the correct libraries are found at run-time))\n");
10753 }
10754 }
10755 return 1;
10756}
10757
10758EOF
10759if { (eval echo configure:10760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10760then
10761 :
10762else
10763 echo "configure: failed program was:" >&5
10764 cat conftest.$ac_ext >&5
10765 rm -fr conftest*
10766 no_gtk=yes
10767fi
10768rm -fr conftest*
10769fi
10770
10771 CFLAGS="$ac_save_CFLAGS"
10772 LIBS="$ac_save_LIBS"
10773 fi
10774 fi
10775 if test "x$no_gtk" = x ; then
10776 echo "$ac_t""yes" 1>&6
10777 wx_cv_lib_gtk=1.2.7
10778 else
10779 echo "$ac_t""no" 1>&6
10780 if test "$GTK_CONFIG" = "no" ; then
10781 echo "*** The gtk-config script installed by GTK could not be found"
10782 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10783 echo "*** your path, or set the GTK_CONFIG environment variable to the"
10784 echo "*** full path to gtk-config."
10785 else
10786 if test -f conf.gtktest ; then
10787 :
10788 else
10789 echo "*** Could not run GTK test program, checking why..."
10790 CFLAGS="$CFLAGS $GTK_CFLAGS"
10791 LIBS="$LIBS $GTK_LIBS"
10792 cat > conftest.$ac_ext <<EOF
10793#line 10794 "configure"
10794#include "confdefs.h"
10795
10796#include <gtk/gtk.h>
10797#include <stdio.h>
10798
10799int main() {
10800 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10801; return 0; }
10802EOF
10803if { (eval echo configure:10804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10804 rm -rf conftest*
10805 echo "*** The test program compiled, but did not run. This usually means"
10806 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10807 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10808 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10809 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10810 echo "*** is required on your system"
10811 echo "***"
10812 echo "*** If you have an old version installed, it is best to remove it, although"
10813 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10814 echo "***"
10815 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10816 echo "*** came with the system with the command"
10817 echo "***"
10818 echo "*** rpm --erase --nodeps gtk gtk-devel"
10819else
10820 echo "configure: failed program was:" >&5
10821 cat conftest.$ac_ext >&5
10822 rm -rf conftest*
10823 echo "*** The test program failed to compile or link. See the file config.log for the"
10824 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10825 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10826 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
10827fi
10828rm -f conftest*
10829 CFLAGS="$ac_save_CFLAGS"
10830 LIBS="$ac_save_LIBS"
10831 fi
10832 fi
10833 GTK_CFLAGS=""
10834 GTK_LIBS=""
10835 :
10836 fi
10837
10838
10839 rm -f conf.gtktest
10840
10841 fi
10842
10843 if test -z "$wx_cv_lib_gtk"; then
10844 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10845if test "${with_gtk_prefix+set}" = set; then
10846 withval="$with_gtk_prefix"
10847 gtk_config_prefix="$withval"
10848else
10849 gtk_config_prefix=""
10850fi
10851
10852# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10853if test "${with_gtk_exec_prefix+set}" = set; then
10854 withval="$with_gtk_exec_prefix"
10855 gtk_config_exec_prefix="$withval"
10856else
10857 gtk_config_exec_prefix=""
10858fi
10859
10860# Check whether --enable-gtktest or --disable-gtktest was given.
10861if test "${enable_gtktest+set}" = set; then
10862 enableval="$enable_gtktest"
10863 :
10864else
10865 enable_gtktest=yes
10866fi
10867
10868
10869 for module in . $GTK_MODULES
10870 do
10871 case "$module" in
10872 gthread)
10873 gtk_config_args="$gtk_config_args gthread"
10874 ;;
10875 esac
10876 done
10877
10878 if test x$gtk_config_exec_prefix != x ; then
10879 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10880 if test x${GTK_CONFIG+set} != xset ; then
10881 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10882 fi
10883 fi
10884 if test x$gtk_config_prefix != x ; then
10885 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10886 if test x${GTK_CONFIG+set} != xset ; then
10887 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10888 fi
10889 fi
10890
10891 # Extract the first word of "gtk-config", so it can be a program name with args.
10892set dummy gtk-config; ac_word=$2
10893echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10894echo "configure:10895: checking for $ac_word" >&5
10895if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10896 echo $ac_n "(cached) $ac_c" 1>&6
10897else
10898 case "$GTK_CONFIG" in
10899 /*)
10900 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10901 ;;
10902 ?:/*)
10903 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10904 ;;
10905 *)
10906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10907 ac_dummy="$PATH"
10908 for ac_dir in $ac_dummy; do
10909 test -z "$ac_dir" && ac_dir=.
10910 if test -f $ac_dir/$ac_word; then
10911 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10912 break
10913 fi
10914 done
10915 IFS="$ac_save_ifs"
10916 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10917 ;;
10918esac
10919fi
10920GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10921if test -n "$GTK_CONFIG"; then
10922 echo "$ac_t""$GTK_CONFIG" 1>&6
10923else
10924 echo "$ac_t""no" 1>&6
10925fi
10926
10927 min_gtk_version=1.2.3
10928 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10929echo "configure:10930: checking for GTK - version >= $min_gtk_version" >&5
10930 no_gtk=""
10931 if test "$GTK_CONFIG" = "no" ; then
10932 no_gtk=yes
10933 else
10934 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10935 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10936 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10937 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10938 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10939 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10940 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10941 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10942 if test "x$enable_gtktest" = "xyes" ; then
10943 ac_save_CFLAGS="$CFLAGS"
10944 ac_save_LIBS="$LIBS"
10945 CFLAGS="$CFLAGS $GTK_CFLAGS"
10946 LIBS="$GTK_LIBS $LIBS"
10947 rm -f conf.gtktest
10948 if test "$cross_compiling" = yes; then
10949 echo $ac_n "cross compiling; assumed OK... $ac_c"
10950else
10951 cat > conftest.$ac_ext <<EOF
10952#line 10953 "configure"
10953#include "confdefs.h"
10954
10955#include <gtk/gtk.h>
10956#include <stdio.h>
10957#include <stdlib.h>
10958
10959int
10960main ()
10961{
10962 int major, minor, micro;
10963 char *tmp_version;
10964
10965 system ("touch conf.gtktest");
10966
10967 /* HP/UX 9 (%@#!) writes to sscanf strings */
10968 tmp_version = g_strdup("$min_gtk_version");
10969 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10970 printf("%s, bad version string\n", "$min_gtk_version");
10971 exit(1);
10972 }
10973
10974 if ((gtk_major_version != $gtk_config_major_version) ||
10975 (gtk_minor_version != $gtk_config_minor_version) ||
10976 (gtk_micro_version != $gtk_config_micro_version))
10977 {
10978 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10979 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10980 gtk_major_version, gtk_minor_version, gtk_micro_version);
10981 printf ("*** was found! If gtk-config was correct, then it is best\n");
10982 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10983 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10984 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10985 printf("*** required on your system.\n");
10986 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10987 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10988 printf("*** before re-running configure\n");
10989 }
10990#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10991 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10992 (gtk_minor_version != GTK_MINOR_VERSION) ||
10993 (gtk_micro_version != GTK_MICRO_VERSION))
10994 {
10995 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10996 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10997 printf("*** library (version %d.%d.%d)\n",
10998 gtk_major_version, gtk_minor_version, gtk_micro_version);
10999 }
11000#endif /* defined (GTK_MAJOR_VERSION) ... */
11001 else
11002 {
11003 if ((gtk_major_version > major) ||
11004 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11005 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11006 {
11007 return 0;
11008 }
11009 else
11010 {
11011 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11012 gtk_major_version, gtk_minor_version, gtk_micro_version);
11013 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11014 major, minor, micro);
11015 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11016 printf("***\n");
11017 printf("*** If you have already installed a sufficiently new version, this error\n");
11018 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
11019 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11020 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
11021 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
11022 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11023 printf("*** so that the correct libraries are found at run-time))\n");
11024 }
11025 }
11026 return 1;
11027}
11028
11029EOF
11030if { (eval echo configure:11031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11031then
11032 :
11033else
11034 echo "configure: failed program was:" >&5
11035 cat conftest.$ac_ext >&5
11036 rm -fr conftest*
11037 no_gtk=yes
11038fi
11039rm -fr conftest*
11040fi
11041
11042 CFLAGS="$ac_save_CFLAGS"
11043 LIBS="$ac_save_LIBS"
11044 fi
11045 fi
11046 if test "x$no_gtk" = x ; then
11047 echo "$ac_t""yes" 1>&6
11048 wx_cv_lib_gtk=1.2.3
11049 else
11050 echo "$ac_t""no" 1>&6
11051 if test "$GTK_CONFIG" = "no" ; then
11052 echo "*** The gtk-config script installed by GTK could not be found"
11053 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
11054 echo "*** your path, or set the GTK_CONFIG environment variable to the"
11055 echo "*** full path to gtk-config."
11056 else
11057 if test -f conf.gtktest ; then
11058 :
11059 else
11060 echo "*** Could not run GTK test program, checking why..."
11061 CFLAGS="$CFLAGS $GTK_CFLAGS"
11062 LIBS="$LIBS $GTK_LIBS"
11063 cat > conftest.$ac_ext <<EOF
11064#line 11065 "configure"
11065#include "confdefs.h"
11066
11067#include <gtk/gtk.h>
11068#include <stdio.h>
11069
11070int main() {
11071 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
11072; return 0; }
11073EOF
11074if { (eval echo configure:11075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11075 rm -rf conftest*
11076 echo "*** The test program compiled, but did not run. This usually means"
11077 echo "*** that the run-time linker is not finding GTK or finding the wrong"
11078 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
11079 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11080 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11081 echo "*** is required on your system"
11082 echo "***"
11083 echo "*** If you have an old version installed, it is best to remove it, although"
11084 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11085 echo "***"
11086 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
11087 echo "*** came with the system with the command"
11088 echo "***"
11089 echo "*** rpm --erase --nodeps gtk gtk-devel"
11090else
11091 echo "configure: failed program was:" >&5
11092 cat conftest.$ac_ext >&5
11093 rm -rf conftest*
11094 echo "*** The test program failed to compile or link. See the file config.log for the"
11095 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
11096 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
11097 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
11098fi
11099rm -f conftest*
11100 CFLAGS="$ac_save_CFLAGS"
11101 LIBS="$ac_save_LIBS"
11102 fi
11103 fi
11104 GTK_CFLAGS=""
11105 GTK_LIBS=""
11106 :
11107 fi
11108
11109
11110 rm -f conf.gtktest
11111
11112 fi
11113
11114 if test -z "$wx_cv_lib_gtk"; then
11115 wx_cv_lib_gtk=none
11116 else
11117 wx_cv_cflags_gtk=$GTK_CFLAGS
11118 wx_cv_libs_gtk=$GTK_LIBS
11119 fi
11120
11121
11122fi
11123
11124
11125 if test "$gtk_version_cached" = 1; then
11126 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
11127 fi
11128
11129 case "$wx_cv_lib_gtk" in
11130 2.0) WXGTK20=1
11131 ;;
11132 1.2.7) WXGTK127=1
11133 WXGTK12=1
11134 ;;
11135 1.2.3) WXGTK12=1
11136 ;;
11137 *) { echo "configure: error:
11138Please check that gtk-config is in path, the directory
11139where GTK+ libraries are installed (returned by
11140'gtk-config --libs' command) is in LD_LIBRARY_PATH or
11141equivalent variable and GTK+ is version 1.2.3 or above.
11142 " 1>&2; exit 1; }
11143 ;;
11144 esac
11145
11146 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11147 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
11148
11149 AFMINSTALL=afminstall
11150 TOOLKIT=GTK
11151 GUIDIST=GTK_DIST
11152
11153 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
11154echo "configure:11155: checking for gdk_im_open in -lgdk" >&5
11155ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
11156if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11157 echo $ac_n "(cached) $ac_c" 1>&6
11158else
11159 ac_save_LIBS="$LIBS"
11160LIBS="-lgdk $LIBS"
11161cat > conftest.$ac_ext <<EOF
11162#line 11163 "configure"
11163#include "confdefs.h"
11164/* Override any gcc2 internal prototype to avoid an error. */
11165/* We use char because int might match the return type of a gcc2
11166 builtin and then its argument prototype would still apply. */
11167char gdk_im_open();
11168
11169int main() {
11170gdk_im_open()
11171; return 0; }
11172EOF
11173if { (eval echo configure:11174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11174 rm -rf conftest*
11175 eval "ac_cv_lib_$ac_lib_var=yes"
11176else
11177 echo "configure: failed program was:" >&5
11178 cat conftest.$ac_ext >&5
11179 rm -rf conftest*
11180 eval "ac_cv_lib_$ac_lib_var=no"
11181fi
11182rm -f conftest*
11183LIBS="$ac_save_LIBS"
11184
11185fi
11186if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11187 echo "$ac_t""yes" 1>&6
11188 cat >> confdefs.h <<\EOF
11189#define HAVE_XIM 1
11190EOF
11191
11192else
11193 echo "$ac_t""no" 1>&6
11194fi
11195
11196 fi
11197
11198 if test "$wxUSE_MGL" = 1; then
11199 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
11200echo "configure:11201: checking for SciTech MGL library" >&5
11201 if test "x$MGL_ROOT" = x ; then
11202 echo "$ac_t""not found" 1>&6
11203 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
11204 else
11205 echo "$ac_t""$MGL_ROOT" 1>&6
11206 fi
11207
11208 case "${host}" in
11209 *-*-linux* )
11210 mgl_os=linux/gcc/glibc
11211 ;;
11212 *-pc-msdosdjgpp )
11213 mgl_os=dos32/dj2
11214 ;;
11215 *)
11216 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
11217 esac
11218
11219 mgl_lib_type=""
11220
11221 if test "$wxUSE_DEBUG_FLAG" = yes ; then
11222 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
11223 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
11224 mgl_lib_type=debug
11225 fi
11226 fi
11227 if test "x$mgl_lib_type" = x ; then
11228 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
11229 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
11230 mgl_lib_type=release
11231 else
11232 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
11233 fi
11234 fi
11235
11236 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
11237 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
11238
11239 AFMINSTALL=afminstall
11240 TOOLKIT=MGL
11241 GUIDIST=MGL_DIST
11242 fi
11243
11244 if test "$wxUSE_MICROWIN" = 1; then
11245 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
11246echo "configure:11247: checking for MicroWindows" >&5
11247 if test "x$MICROWINDOWS" = x ; then
11248 echo "$ac_t""not found" 1>&6
11249 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
11250 else
11251 echo "$ac_t""$MICROWINDOWS" 1>&6
11252 fi
11253
11254 if test -f $MICROWINDOWS/lib/libmwin.a; then
11255 echo "$ac_t""MicroWindows' libraries found." 1>&6
11256 else
11257 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
11258 fi
11259
11260 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
11261 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
11262
11263 AFMINSTALL=afminstall
11264 TOOLKIT=MICROWIN
11265 GUIDIST=MICROWIN_DIST
11266
11267 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
11268 fi
11269
11270 if test "$wxUSE_X11" = 1; then
11271 # If we find X, set shell vars x_includes and x_libraries to the
11272# paths, otherwise set no_x=yes.
11273# Uses ac_ vars as temps to allow command line to override cache and checks.
11274# --without-x overrides everything else, but does not touch the cache.
11275echo $ac_n "checking for X""... $ac_c" 1>&6
11276echo "configure:11277: checking for X" >&5
11277
11278# Check whether --with-x or --without-x was given.
11279if test "${with_x+set}" = set; then
11280 withval="$with_x"
11281 :
11282fi
11283
11284# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11285if test "x$with_x" = xno; then
11286 # The user explicitly disabled X.
11287 have_x=disabled
11288else
11289 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11290 # Both variables are already set.
11291 have_x=yes
11292 else
11293if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
11294 echo $ac_n "(cached) $ac_c" 1>&6
11295else
11296 # One or both of the vars are not set, and there is no cached value.
11297ac_x_includes=NO ac_x_libraries=NO
11298rm -fr conftestdir
11299if mkdir conftestdir; then
11300 cd conftestdir
11301 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
11302 cat > Imakefile <<'EOF'
11303acfindx:
11304 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11305EOF
11306 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11307 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11308 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11309 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11310 for ac_extension in a so sl; do
11311 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
11312 test -f $ac_im_libdir/libX11.$ac_extension; then
11313 ac_im_usrlibdir=$ac_im_libdir; break
11314 fi
11315 done
11316 # Screen out bogus values from the imake configuration. They are
11317 # bogus both because they are the default anyway, and because
11318 # using them would break gcc on systems where it needs fixed includes.
11319 case "$ac_im_incroot" in
11320 /usr/include) ;;
11321 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
11322 esac
11323 case "$ac_im_usrlibdir" in
11324 /usr/lib | /lib) ;;
11325 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
11326 esac
11327 fi
11328 cd ..
11329 rm -fr conftestdir
11330fi
11331
11332if test "$ac_x_includes" = NO; then
11333 # Guess where to find include files, by looking for this one X11 .h file.
11334 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
11335
11336 # First, try using that file with no special directory specified.
11337cat > conftest.$ac_ext <<EOF
11338#line 11339 "configure"
11339#include "confdefs.h"
11340#include <$x_direct_test_include>
11341EOF
11342ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11343{ (eval echo configure:11344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11344ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11345if test -z "$ac_err"; then
11346 rm -rf conftest*
11347 # We can compile using X headers with no special include directory.
11348ac_x_includes=
11349else
11350 echo "$ac_err" >&5
11351 echo "configure: failed program was:" >&5
11352 cat conftest.$ac_ext >&5
11353 rm -rf conftest*
11354 # Look for the header file in a standard set of common directories.
11355# Check X11 before X11Rn because it is often a symlink to the current release.
11356 for ac_dir in \
11357 /usr/X11/include \
11358 /usr/X11R6/include \
11359 /usr/X11R5/include \
11360 /usr/X11R4/include \
11361 \
11362 /usr/include/X11 \
11363 /usr/include/X11R6 \
11364 /usr/include/X11R5 \
11365 /usr/include/X11R4 \
11366 \
11367 /usr/local/X11/include \
11368 /usr/local/X11R6/include \
11369 /usr/local/X11R5/include \
11370 /usr/local/X11R4/include \
11371 \
11372 /usr/local/include/X11 \
11373 /usr/local/include/X11R6 \
11374 /usr/local/include/X11R5 \
11375 /usr/local/include/X11R4 \
11376 \
11377 /usr/X386/include \
11378 /usr/x386/include \
11379 /usr/XFree86/include/X11 \
11380 \
11381 /usr/include \
11382 /usr/local/include \
11383 /usr/unsupported/include \
11384 /usr/athena/include \
11385 /usr/local/x11r5/include \
11386 /usr/lpp/Xamples/include \
11387 \
11388 /usr/openwin/include \
11389 /usr/openwin/share/include \
11390 ; \
11391 do
11392 if test -r "$ac_dir/$x_direct_test_include"; then
11393 ac_x_includes=$ac_dir
11394 break
11395 fi
11396 done
11397fi
11398rm -f conftest*
11399fi # $ac_x_includes = NO
11400
11401if test "$ac_x_libraries" = NO; then
11402 # Check for the libraries.
11403
11404 test -z "$x_direct_test_library" && x_direct_test_library=Xt
11405 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
11406
11407 # See if we find them without any special options.
11408 # Don't add to $LIBS permanently.
11409 ac_save_LIBS="$LIBS"
11410 LIBS="-l$x_direct_test_library $LIBS"
11411cat > conftest.$ac_ext <<EOF
11412#line 11413 "configure"
11413#include "confdefs.h"
11414
11415int main() {
11416${x_direct_test_function}()
11417; return 0; }
11418EOF
11419if { (eval echo configure:11420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11420 rm -rf conftest*
11421 LIBS="$ac_save_LIBS"
11422# We can link X programs with no special library path.
11423ac_x_libraries=
11424else
11425 echo "configure: failed program was:" >&5
11426 cat conftest.$ac_ext >&5
11427 rm -rf conftest*
11428 LIBS="$ac_save_LIBS"
11429# First see if replacing the include by lib works.
11430# Check X11 before X11Rn because it is often a symlink to the current release.
11431for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
11432 /usr/X11/lib \
11433 /usr/X11R6/lib \
11434 /usr/X11R5/lib \
11435 /usr/X11R4/lib \
11436 \
11437 /usr/lib/X11 \
11438 /usr/lib/X11R6 \
11439 /usr/lib/X11R5 \
11440 /usr/lib/X11R4 \
11441 \
11442 /usr/local/X11/lib \
11443 /usr/local/X11R6/lib \
11444 /usr/local/X11R5/lib \
11445 /usr/local/X11R4/lib \
11446 \
11447 /usr/local/lib/X11 \
11448 /usr/local/lib/X11R6 \
11449 /usr/local/lib/X11R5 \
11450 /usr/local/lib/X11R4 \
11451 \
11452 /usr/X386/lib \
11453 /usr/x386/lib \
11454 /usr/XFree86/lib/X11 \
11455 \
11456 /usr/lib \
11457 /usr/local/lib \
11458 /usr/unsupported/lib \
11459 /usr/athena/lib \
11460 /usr/local/x11r5/lib \
11461 /usr/lpp/Xamples/lib \
11462 /lib/usr/lib/X11 \
11463 \
11464 /usr/openwin/lib \
11465 /usr/openwin/share/lib \
11466 ; \
11467do
11468 for ac_extension in a so sl; do
11469 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
11470 ac_x_libraries=$ac_dir
11471 break 2
11472 fi
11473 done
11474done
11475fi
11476rm -f conftest*
11477fi # $ac_x_libraries = NO
11478
11479if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
11480 # Didn't find X anywhere. Cache the known absence of X.
11481 ac_cv_have_x="have_x=no"
11482else
11483 # Record where we found X for the cache.
11484 ac_cv_have_x="have_x=yes \
11485 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11486fi
11487fi
11488 fi
11489 eval "$ac_cv_have_x"
11490fi # $with_x != no
11491
11492if test "$have_x" != yes; then
11493 echo "$ac_t""$have_x" 1>&6
11494 no_x=yes
11495else
11496 # If each of the values was on the command line, it overrides each guess.
11497 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11498 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11499 # Update the cache value to reflect the command line values.
11500 ac_cv_have_x="have_x=yes \
11501 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
11502 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
11503fi
11504
11505if test "$no_x" = yes; then
11506 # Not all programs may use this symbol, but it does not hurt to define it.
11507 cat >> confdefs.h <<\EOF
11508#define X_DISPLAY_MISSING 1
11509EOF
11510
11511 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11512else
11513 if test -n "$x_includes"; then
11514 X_CFLAGS="$X_CFLAGS -I$x_includes"
11515 fi
11516
11517 # It would also be nice to do this for all -L options, not just this one.
11518 if test -n "$x_libraries"; then
11519 X_LIBS="$X_LIBS -L$x_libraries"
11520 # For Solaris; some versions of Sun CC require a space after -R and
11521 # others require no space. Words are not sufficient . . . .
11522 case "`(uname -sr) 2>/dev/null`" in
11523 "SunOS 5"*)
11524 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
11525echo "configure:11526: checking whether -R must be followed by a space" >&5
11526 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
11527 cat > conftest.$ac_ext <<EOF
11528#line 11529 "configure"
11529#include "confdefs.h"
11530
11531int main() {
11532
11533; return 0; }
11534EOF
11535if { (eval echo configure:11536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11536 rm -rf conftest*
11537 ac_R_nospace=yes
11538else
11539 echo "configure: failed program was:" >&5
11540 cat conftest.$ac_ext >&5
11541 rm -rf conftest*
11542 ac_R_nospace=no
11543fi
11544rm -f conftest*
11545 if test $ac_R_nospace = yes; then
11546 echo "$ac_t""no" 1>&6
11547 X_LIBS="$X_LIBS -R$x_libraries"
11548 else
11549 LIBS="$ac_xsave_LIBS -R $x_libraries"
11550 cat > conftest.$ac_ext <<EOF
11551#line 11552 "configure"
11552#include "confdefs.h"
11553
11554int main() {
11555
11556; return 0; }
11557EOF
11558if { (eval echo configure:11559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11559 rm -rf conftest*
11560 ac_R_space=yes
11561else
11562 echo "configure: failed program was:" >&5
11563 cat conftest.$ac_ext >&5
11564 rm -rf conftest*
11565 ac_R_space=no
11566fi
11567rm -f conftest*
11568 if test $ac_R_space = yes; then
11569 echo "$ac_t""yes" 1>&6
11570 X_LIBS="$X_LIBS -R $x_libraries"
11571 else
11572 echo "$ac_t""neither works" 1>&6
11573 fi
11574 fi
11575 LIBS="$ac_xsave_LIBS"
11576 esac
11577 fi
11578
11579 # Check for system-dependent libraries X programs must link with.
11580 # Do this before checking for the system-independent R6 libraries
11581 # (-lICE), since we may need -lsocket or whatever for X linking.
11582
11583 if test "$ISC" = yes; then
11584 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11585 else
11586 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
11587 # libraries were built with DECnet support. And karl@cs.umb.edu says
11588 # the Alpha needs dnet_stub (dnet does not exist).
11589 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
11590echo "configure:11591: checking for dnet_ntoa in -ldnet" >&5
11591ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11592if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11593 echo $ac_n "(cached) $ac_c" 1>&6
11594else
11595 ac_save_LIBS="$LIBS"
11596LIBS="-ldnet $LIBS"
11597cat > conftest.$ac_ext <<EOF
11598#line 11599 "configure"
11599#include "confdefs.h"
11600/* Override any gcc2 internal prototype to avoid an error. */
11601/* We use char because int might match the return type of a gcc2
11602 builtin and then its argument prototype would still apply. */
11603char dnet_ntoa();
11604
11605int main() {
11606dnet_ntoa()
11607; return 0; }
11608EOF
11609if { (eval echo configure:11610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11610 rm -rf conftest*
11611 eval "ac_cv_lib_$ac_lib_var=yes"
11612else
11613 echo "configure: failed program was:" >&5
11614 cat conftest.$ac_ext >&5
11615 rm -rf conftest*
11616 eval "ac_cv_lib_$ac_lib_var=no"
11617fi
11618rm -f conftest*
11619LIBS="$ac_save_LIBS"
11620
11621fi
11622if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11623 echo "$ac_t""yes" 1>&6
11624 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11625else
11626 echo "$ac_t""no" 1>&6
11627fi
11628
11629 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11630 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
11631echo "configure:11632: checking for dnet_ntoa in -ldnet_stub" >&5
11632ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11633if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11634 echo $ac_n "(cached) $ac_c" 1>&6
11635else
11636 ac_save_LIBS="$LIBS"
11637LIBS="-ldnet_stub $LIBS"
11638cat > conftest.$ac_ext <<EOF
11639#line 11640 "configure"
11640#include "confdefs.h"
11641/* Override any gcc2 internal prototype to avoid an error. */
11642/* We use char because int might match the return type of a gcc2
11643 builtin and then its argument prototype would still apply. */
11644char dnet_ntoa();
11645
11646int main() {
11647dnet_ntoa()
11648; return 0; }
11649EOF
11650if { (eval echo configure:11651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11651 rm -rf conftest*
11652 eval "ac_cv_lib_$ac_lib_var=yes"
11653else
11654 echo "configure: failed program was:" >&5
11655 cat conftest.$ac_ext >&5
11656 rm -rf conftest*
11657 eval "ac_cv_lib_$ac_lib_var=no"
11658fi
11659rm -f conftest*
11660LIBS="$ac_save_LIBS"
11661
11662fi
11663if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11664 echo "$ac_t""yes" 1>&6
11665 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
11666else
11667 echo "$ac_t""no" 1>&6
11668fi
11669
11670 fi
11671
11672 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11673 # to get the SysV transport functions.
11674 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
11675 # needs -lnsl.
11676 # The nsl library prevents programs from opening the X display
11677 # on Irix 5.2, according to dickey@clark.net.
11678 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
11679echo "configure:11680: checking for gethostbyname" >&5
11680if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
11681 echo $ac_n "(cached) $ac_c" 1>&6
11682else
11683 cat > conftest.$ac_ext <<EOF
11684#line 11685 "configure"
11685#include "confdefs.h"
11686/* System header to define __stub macros and hopefully few prototypes,
11687 which can conflict with char gethostbyname(); below. */
11688#include <assert.h>
11689/* Override any gcc2 internal prototype to avoid an error. */
11690/* We use char because int might match the return type of a gcc2
11691 builtin and then its argument prototype would still apply. */
11692char gethostbyname();
11693
11694int main() {
11695
11696/* The GNU C library defines this for functions which it implements
11697 to always fail with ENOSYS. Some functions are actually named
11698 something starting with __ and the normal name is an alias. */
11699#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11700choke me
11701#else
11702gethostbyname();
11703#endif
11704
11705; return 0; }
11706EOF
11707if { (eval echo configure:11708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11708 rm -rf conftest*
11709 eval "ac_cv_func_gethostbyname=yes"
11710else
11711 echo "configure: failed program was:" >&5
11712 cat conftest.$ac_ext >&5
11713 rm -rf conftest*
11714 eval "ac_cv_func_gethostbyname=no"
11715fi
11716rm -f conftest*
11717fi
11718
11719if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
11720 echo "$ac_t""yes" 1>&6
11721 :
11722else
11723 echo "$ac_t""no" 1>&6
11724fi
11725
11726 if test $ac_cv_func_gethostbyname = no; then
11727 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
11728echo "configure:11729: checking for gethostbyname in -lnsl" >&5
11729ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
11730if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11731 echo $ac_n "(cached) $ac_c" 1>&6
11732else
11733 ac_save_LIBS="$LIBS"
11734LIBS="-lnsl $LIBS"
11735cat > conftest.$ac_ext <<EOF
11736#line 11737 "configure"
11737#include "confdefs.h"
11738/* Override any gcc2 internal prototype to avoid an error. */
11739/* We use char because int might match the return type of a gcc2
11740 builtin and then its argument prototype would still apply. */
11741char gethostbyname();
11742
11743int main() {
11744gethostbyname()
11745; return 0; }
11746EOF
11747if { (eval echo configure:11748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11748 rm -rf conftest*
11749 eval "ac_cv_lib_$ac_lib_var=yes"
11750else
11751 echo "configure: failed program was:" >&5
11752 cat conftest.$ac_ext >&5
11753 rm -rf conftest*
11754 eval "ac_cv_lib_$ac_lib_var=no"
11755fi
11756rm -f conftest*
11757LIBS="$ac_save_LIBS"
11758
11759fi
11760if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11761 echo "$ac_t""yes" 1>&6
11762 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11763else
11764 echo "$ac_t""no" 1>&6
11765fi
11766
11767 fi
11768
11769 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11770 # socket/setsockopt and other routines are undefined under SCO ODT
11771 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
11772 # on later versions), says simon@lia.di.epfl.ch: it contains
11773 # gethostby* variants that don't use the nameserver (or something).
11774 # -lsocket must be given before -lnsl if both are needed.
11775 # We assume that if connect needs -lnsl, so does gethostbyname.
11776 echo $ac_n "checking for connect""... $ac_c" 1>&6
11777echo "configure:11778: checking for connect" >&5
11778if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
11779 echo $ac_n "(cached) $ac_c" 1>&6
11780else
11781 cat > conftest.$ac_ext <<EOF
11782#line 11783 "configure"
11783#include "confdefs.h"
11784/* System header to define __stub macros and hopefully few prototypes,
11785 which can conflict with char connect(); below. */
11786#include <assert.h>
11787/* Override any gcc2 internal prototype to avoid an error. */
11788/* We use char because int might match the return type of a gcc2
11789 builtin and then its argument prototype would still apply. */
11790char connect();
11791
11792int main() {
11793
11794/* The GNU C library defines this for functions which it implements
11795 to always fail with ENOSYS. Some functions are actually named
11796 something starting with __ and the normal name is an alias. */
11797#if defined (__stub_connect) || defined (__stub___connect)
11798choke me
11799#else
11800connect();
11801#endif
11802
11803; return 0; }
11804EOF
11805if { (eval echo configure:11806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11806 rm -rf conftest*
11807 eval "ac_cv_func_connect=yes"
11808else
11809 echo "configure: failed program was:" >&5
11810 cat conftest.$ac_ext >&5
11811 rm -rf conftest*
11812 eval "ac_cv_func_connect=no"
11813fi
11814rm -f conftest*
11815fi
11816
11817if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
11818 echo "$ac_t""yes" 1>&6
11819 :
11820else
11821 echo "$ac_t""no" 1>&6
11822fi
11823
11824 if test $ac_cv_func_connect = no; then
11825 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
11826echo "configure:11827: checking for connect in -lsocket" >&5
11827ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
11828if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11829 echo $ac_n "(cached) $ac_c" 1>&6
11830else
11831 ac_save_LIBS="$LIBS"
11832LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
11833cat > conftest.$ac_ext <<EOF
11834#line 11835 "configure"
11835#include "confdefs.h"
11836/* Override any gcc2 internal prototype to avoid an error. */
11837/* We use char because int might match the return type of a gcc2
11838 builtin and then its argument prototype would still apply. */
11839char connect();
11840
11841int main() {
11842connect()
11843; return 0; }
11844EOF
11845if { (eval echo configure:11846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11846 rm -rf conftest*
11847 eval "ac_cv_lib_$ac_lib_var=yes"
11848else
11849 echo "configure: failed program was:" >&5
11850 cat conftest.$ac_ext >&5
11851 rm -rf conftest*
11852 eval "ac_cv_lib_$ac_lib_var=no"
11853fi
11854rm -f conftest*
11855LIBS="$ac_save_LIBS"
11856
11857fi
11858if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11859 echo "$ac_t""yes" 1>&6
11860 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
11861else
11862 echo "$ac_t""no" 1>&6
11863fi
11864
11865 fi
11866
11867 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
11868 echo $ac_n "checking for remove""... $ac_c" 1>&6
11869echo "configure:11870: checking for remove" >&5
11870if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
11871 echo $ac_n "(cached) $ac_c" 1>&6
11872else
11873 cat > conftest.$ac_ext <<EOF
11874#line 11875 "configure"
11875#include "confdefs.h"
11876/* System header to define __stub macros and hopefully few prototypes,
11877 which can conflict with char remove(); below. */
11878#include <assert.h>
11879/* Override any gcc2 internal prototype to avoid an error. */
11880/* We use char because int might match the return type of a gcc2
11881 builtin and then its argument prototype would still apply. */
11882char remove();
11883
11884int main() {
11885
11886/* The GNU C library defines this for functions which it implements
11887 to always fail with ENOSYS. Some functions are actually named
11888 something starting with __ and the normal name is an alias. */
11889#if defined (__stub_remove) || defined (__stub___remove)
11890choke me
11891#else
11892remove();
11893#endif
11894
11895; return 0; }
11896EOF
11897if { (eval echo configure:11898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11898 rm -rf conftest*
11899 eval "ac_cv_func_remove=yes"
11900else
11901 echo "configure: failed program was:" >&5
11902 cat conftest.$ac_ext >&5
11903 rm -rf conftest*
11904 eval "ac_cv_func_remove=no"
11905fi
11906rm -f conftest*
11907fi
11908
11909if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
11910 echo "$ac_t""yes" 1>&6
11911 :
11912else
11913 echo "$ac_t""no" 1>&6
11914fi
11915
11916 if test $ac_cv_func_remove = no; then
11917 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
11918echo "configure:11919: checking for remove in -lposix" >&5
11919ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
11920if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11921 echo $ac_n "(cached) $ac_c" 1>&6
11922else
11923 ac_save_LIBS="$LIBS"
11924LIBS="-lposix $LIBS"
11925cat > conftest.$ac_ext <<EOF
11926#line 11927 "configure"
11927#include "confdefs.h"
11928/* Override any gcc2 internal prototype to avoid an error. */
11929/* We use char because int might match the return type of a gcc2
11930 builtin and then its argument prototype would still apply. */
11931char remove();
11932
11933int main() {
11934remove()
11935; return 0; }
11936EOF
11937if { (eval echo configure:11938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11938 rm -rf conftest*
11939 eval "ac_cv_lib_$ac_lib_var=yes"
11940else
11941 echo "configure: failed program was:" >&5
11942 cat conftest.$ac_ext >&5
11943 rm -rf conftest*
11944 eval "ac_cv_lib_$ac_lib_var=no"
11945fi
11946rm -f conftest*
11947LIBS="$ac_save_LIBS"
11948
11949fi
11950if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11951 echo "$ac_t""yes" 1>&6
11952 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
11953else
11954 echo "$ac_t""no" 1>&6
11955fi
11956
11957 fi
11958
11959 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
11960 echo $ac_n "checking for shmat""... $ac_c" 1>&6
11961echo "configure:11962: checking for shmat" >&5
11962if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
11963 echo $ac_n "(cached) $ac_c" 1>&6
11964else
11965 cat > conftest.$ac_ext <<EOF
11966#line 11967 "configure"
11967#include "confdefs.h"
11968/* System header to define __stub macros and hopefully few prototypes,
11969 which can conflict with char shmat(); below. */
11970#include <assert.h>
11971/* Override any gcc2 internal prototype to avoid an error. */
11972/* We use char because int might match the return type of a gcc2
11973 builtin and then its argument prototype would still apply. */
11974char shmat();
11975
11976int main() {
11977
11978/* The GNU C library defines this for functions which it implements
11979 to always fail with ENOSYS. Some functions are actually named
11980 something starting with __ and the normal name is an alias. */
11981#if defined (__stub_shmat) || defined (__stub___shmat)
11982choke me
11983#else
11984shmat();
11985#endif
11986
11987; return 0; }
11988EOF
11989if { (eval echo configure:11990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11990 rm -rf conftest*
11991 eval "ac_cv_func_shmat=yes"
11992else
11993 echo "configure: failed program was:" >&5
11994 cat conftest.$ac_ext >&5
11995 rm -rf conftest*
11996 eval "ac_cv_func_shmat=no"
11997fi
11998rm -f conftest*
11999fi
12000
12001if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
12002 echo "$ac_t""yes" 1>&6
12003 :
12004else
12005 echo "$ac_t""no" 1>&6
12006fi
12007
12008 if test $ac_cv_func_shmat = no; then
12009 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
12010echo "configure:12011: checking for shmat in -lipc" >&5
12011ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
12012if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12013 echo $ac_n "(cached) $ac_c" 1>&6
12014else
12015 ac_save_LIBS="$LIBS"
12016LIBS="-lipc $LIBS"
12017cat > conftest.$ac_ext <<EOF
12018#line 12019 "configure"
12019#include "confdefs.h"
12020/* Override any gcc2 internal prototype to avoid an error. */
12021/* We use char because int might match the return type of a gcc2
12022 builtin and then its argument prototype would still apply. */
12023char shmat();
12024
12025int main() {
12026shmat()
12027; return 0; }
12028EOF
12029if { (eval echo configure:12030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12030 rm -rf conftest*
12031 eval "ac_cv_lib_$ac_lib_var=yes"
12032else
12033 echo "configure: failed program was:" >&5
12034 cat conftest.$ac_ext >&5
12035 rm -rf conftest*
12036 eval "ac_cv_lib_$ac_lib_var=no"
12037fi
12038rm -f conftest*
12039LIBS="$ac_save_LIBS"
12040
12041fi
12042if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12043 echo "$ac_t""yes" 1>&6
12044 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12045else
12046 echo "$ac_t""no" 1>&6
12047fi
12048
12049 fi
12050 fi
12051
12052 # Check for libraries that X11R6 Xt/Xaw programs need.
12053 ac_save_LDFLAGS="$LDFLAGS"
12054 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12055 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12056 # check for ICE first), but we must link in the order -lSM -lICE or
12057 # we get undefined symbols. So assume we have SM if we have ICE.
12058 # These have to be linked with before -lX11, unlike the other
12059 # libraries we check for below, so use a different variable.
12060 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
12061 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
12062echo "configure:12063: checking for IceConnectionNumber in -lICE" >&5
12063ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
12064if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12065 echo $ac_n "(cached) $ac_c" 1>&6
12066else
12067 ac_save_LIBS="$LIBS"
12068LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12069cat > conftest.$ac_ext <<EOF
12070#line 12071 "configure"
12071#include "confdefs.h"
12072/* Override any gcc2 internal prototype to avoid an error. */
12073/* We use char because int might match the return type of a gcc2
12074 builtin and then its argument prototype would still apply. */
12075char IceConnectionNumber();
12076
12077int main() {
12078IceConnectionNumber()
12079; return 0; }
12080EOF
12081if { (eval echo configure:12082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12082 rm -rf conftest*
12083 eval "ac_cv_lib_$ac_lib_var=yes"
12084else
12085 echo "configure: failed program was:" >&5
12086 cat conftest.$ac_ext >&5
12087 rm -rf conftest*
12088 eval "ac_cv_lib_$ac_lib_var=no"
12089fi
12090rm -f conftest*
12091LIBS="$ac_save_LIBS"
12092
12093fi
12094if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12095 echo "$ac_t""yes" 1>&6
12096 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12097else
12098 echo "$ac_t""no" 1>&6
12099fi
12100
12101 LDFLAGS="$ac_save_LDFLAGS"
12102
12103fi
12104
12105
12106 if test "$no_x" = "yes"; then
12107 { echo "configure: error: X11 not found" 1>&2; exit 1; }
12108 fi
12109
12110 GUI_TK_LIBRARY="$X_LIBS"
12111 TOOLKIT_INCLUDE="$X_CFLAGS"
12112 AFMINSTALL=afminstall
12113 COMPILED_X_PROGRAM=0
12114
12115 xpm_link=
12116 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
12117echo "configure:12118: checking for Xpm library" >&5
12118
12119ac_find_libraries=
12120for ac_dir in $SEARCH_LIB;
12121 do
12122 for ac_extension in a so sl dylib; do
12123 if test -f "$ac_dir/libXpm.$ac_extension"; then
12124 ac_find_libraries=$ac_dir
12125 break 2
12126 fi
12127 done
12128 done
12129
12130 if test "$ac_find_libraries" != "" ; then
12131
12132 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12133 result=$?
12134 if test $result = 0; then
12135 ac_path_to_link=""
12136 else
12137 ac_path_to_link=" -L$ac_find_libraries"
12138 fi
12139
12140 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
12141 xpm_link=" -lXpm"
12142 cat >> confdefs.h <<\EOF
12143#define wxHAVE_LIB_XPM 1
12144EOF
12145
12146 echo "$ac_t""found at $ac_find_libraries" 1>&6
12147 else
12148 cat > conftest.$ac_ext <<EOF
12149#line 12150 "configure"
12150#include "confdefs.h"
12151
12152 #include <X11/xpm.h>
12153
12154int main() {
12155
12156 int version;
12157 version = XpmLibraryVersion();
12158
12159; return 0; }
12160EOF
12161if { (eval echo configure:12162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12162 rm -rf conftest*
12163
12164 xpm_link=" -lXpm"
12165 cat >> confdefs.h <<\EOF
12166#define wxHAVE_LIB_XPM 1
12167EOF
12168
12169 echo "$ac_t""found in default search path" 1>&6
12170 COMPILED_X_PROGRAM=0
12171
12172else
12173 echo "configure: failed program was:" >&5
12174 cat conftest.$ac_ext >&5
12175 rm -rf conftest*
12176
12177 echo "$ac_t""no" 1>&6
12178 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12179
12180
12181fi
12182rm -f conftest*
12183 fi
12184
12185 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext -lXt -lX11"
12186 TOOLKIT_VPATH="\${top_srcdir}/src/x11 \${top_srcdir}/src/univ \${top_srcdir}/src/univ/themes"
12187 TOOLKIT=X11
12188 GUIDIST=X11_DIST
12189 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
12190 fi
12191
12192 if test "$wxUSE_WINE" = 1; then
12193 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12194echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12195echo "configure:12196: checking for windows.h" >&5
12196if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12197 echo $ac_n "(cached) $ac_c" 1>&6
12198else
12199 cat > conftest.$ac_ext <<EOF
12200#line 12201 "configure"
12201#include "confdefs.h"
12202#include <windows.h>
12203EOF
12204ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12205{ (eval echo configure:12206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12206ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12207if test -z "$ac_err"; then
12208 rm -rf conftest*
12209 eval "ac_cv_header_$ac_safe=yes"
12210else
12211 echo "$ac_err" >&5
12212 echo "configure: failed program was:" >&5
12213 cat conftest.$ac_ext >&5
12214 rm -rf conftest*
12215 eval "ac_cv_header_$ac_safe=no"
12216fi
12217rm -f conftest*
12218fi
12219if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12220 echo "$ac_t""yes" 1>&6
12221 :
12222else
12223 echo "$ac_t""no" 1>&6
12224
12225 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12226
12227fi
12228
12229
12230 xpm_link=
12231 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
12232echo "configure:12233: checking for Xpm library" >&5
12233
12234ac_find_libraries=
12235for ac_dir in $SEARCH_LIB;
12236 do
12237 for ac_extension in a so sl dylib; do
12238 if test -f "$ac_dir/libXpm.$ac_extension"; then
12239 ac_find_libraries=$ac_dir
12240 break 2
12241 fi
12242 done
12243 done
12244
12245 if test "$ac_find_libraries" != "" ; then
12246 GUI_TK_LIBRARY="-L$ac_find_libraries"
12247 xpm_link=" -lXpm"
12248 cat >> confdefs.h <<\EOF
12249#define wxHAVE_LIB_XPM 1
12250EOF
12251
12252 echo "$ac_t""found at $ac_find_libraries" 1>&6
12253 else
12254 echo "$ac_t""no" 1>&6
12255 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12256 fi
12257
12258 mesa_link=
12259 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
12260echo "configure:12261: checking for Mesa library" >&5
12261
12262ac_find_libraries=
12263for ac_dir in $SEARCH_LIB;
12264 do
12265 for ac_extension in a so sl dylib; do
12266 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
12267 ac_find_libraries=$ac_dir
12268 break 2
12269 fi
12270 done
12271 done
12272
12273 if test "$ac_find_libraries" != "" ; then
12274 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
12275 mesa_link=" -lMesaGL"
12276 echo "$ac_t""found at $ac_find_libraries" 1>&6
12277 else
12278 { echo "configure: error: no" 1>&2; exit 1; }
12279 fi
12280
12281 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
12282 TOOLKIT=MSW
12283 GUIDIST=MSW_DIST
12284 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
12285 fi
12286
12287 if test "$wxUSE_MOTIF" = 1; then
12288 if test "$no_x" = yes; then
12289 # Not all programs may use this symbol, but it does not hurt to define it.
12290 cat >> confdefs.h <<\EOF
12291#define X_DISPLAY_MISSING 1
12292EOF
12293
12294 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12295else
12296 if test -n "$x_includes"; then
12297 X_CFLAGS="$X_CFLAGS -I$x_includes"
12298 fi
12299
12300 # It would also be nice to do this for all -L options, not just this one.
12301 if test -n "$x_libraries"; then
12302 X_LIBS="$X_LIBS -L$x_libraries"
12303 # For Solaris; some versions of Sun CC require a space after -R and
12304 # others require no space. Words are not sufficient . . . .
12305 case "`(uname -sr) 2>/dev/null`" in
12306 "SunOS 5"*)
12307 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
12308echo "configure:12309: checking whether -R must be followed by a space" >&5
12309 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
12310 cat > conftest.$ac_ext <<EOF
12311#line 12312 "configure"
12312#include "confdefs.h"
12313
12314int main() {
12315
12316; return 0; }
12317EOF
12318if { (eval echo configure:12319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12319 rm -rf conftest*
12320 ac_R_nospace=yes
12321else
12322 echo "configure: failed program was:" >&5
12323 cat conftest.$ac_ext >&5
12324 rm -rf conftest*
12325 ac_R_nospace=no
12326fi
12327rm -f conftest*
12328 if test $ac_R_nospace = yes; then
12329 echo "$ac_t""no" 1>&6
12330 X_LIBS="$X_LIBS -R$x_libraries"
12331 else
12332 LIBS="$ac_xsave_LIBS -R $x_libraries"
12333 cat > conftest.$ac_ext <<EOF
12334#line 12335 "configure"
12335#include "confdefs.h"
12336
12337int main() {
12338
12339; return 0; }
12340EOF
12341if { (eval echo configure:12342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12342 rm -rf conftest*
12343 ac_R_space=yes
12344else
12345 echo "configure: failed program was:" >&5
12346 cat conftest.$ac_ext >&5
12347 rm -rf conftest*
12348 ac_R_space=no
12349fi
12350rm -f conftest*
12351 if test $ac_R_space = yes; then
12352 echo "$ac_t""yes" 1>&6
12353 X_LIBS="$X_LIBS -R $x_libraries"
12354 else
12355 echo "$ac_t""neither works" 1>&6
12356 fi
12357 fi
12358 LIBS="$ac_xsave_LIBS"
12359 esac
12360 fi
12361
12362 # Check for system-dependent libraries X programs must link with.
12363 # Do this before checking for the system-independent R6 libraries
12364 # (-lICE), since we may need -lsocket or whatever for X linking.
12365
12366 if test "$ISC" = yes; then
12367 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12368 else
12369 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
12370 # libraries were built with DECnet support. And karl@cs.umb.edu says
12371 # the Alpha needs dnet_stub (dnet does not exist).
12372 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
12373echo "configure:12374: checking for dnet_ntoa in -ldnet" >&5
12374ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
12375if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12376 echo $ac_n "(cached) $ac_c" 1>&6
12377else
12378 ac_save_LIBS="$LIBS"
12379LIBS="-ldnet $LIBS"
12380cat > conftest.$ac_ext <<EOF
12381#line 12382 "configure"
12382#include "confdefs.h"
12383/* Override any gcc2 internal prototype to avoid an error. */
12384/* We use char because int might match the return type of a gcc2
12385 builtin and then its argument prototype would still apply. */
12386char dnet_ntoa();
12387
12388int main() {
12389dnet_ntoa()
12390; return 0; }
12391EOF
12392if { (eval echo configure:12393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12393 rm -rf conftest*
12394 eval "ac_cv_lib_$ac_lib_var=yes"
12395else
12396 echo "configure: failed program was:" >&5
12397 cat conftest.$ac_ext >&5
12398 rm -rf conftest*
12399 eval "ac_cv_lib_$ac_lib_var=no"
12400fi
12401rm -f conftest*
12402LIBS="$ac_save_LIBS"
12403
12404fi
12405if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12406 echo "$ac_t""yes" 1>&6
12407 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12408else
12409 echo "$ac_t""no" 1>&6
12410fi
12411
12412 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12413 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
12414echo "configure:12415: checking for dnet_ntoa in -ldnet_stub" >&5
12415ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
12416if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12417 echo $ac_n "(cached) $ac_c" 1>&6
12418else
12419 ac_save_LIBS="$LIBS"
12420LIBS="-ldnet_stub $LIBS"
12421cat > conftest.$ac_ext <<EOF
12422#line 12423 "configure"
12423#include "confdefs.h"
12424/* Override any gcc2 internal prototype to avoid an error. */
12425/* We use char because int might match the return type of a gcc2
12426 builtin and then its argument prototype would still apply. */
12427char dnet_ntoa();
12428
12429int main() {
12430dnet_ntoa()
12431; return 0; }
12432EOF
12433if { (eval echo configure:12434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12434 rm -rf conftest*
12435 eval "ac_cv_lib_$ac_lib_var=yes"
12436else
12437 echo "configure: failed program was:" >&5
12438 cat conftest.$ac_ext >&5
12439 rm -rf conftest*
12440 eval "ac_cv_lib_$ac_lib_var=no"
12441fi
12442rm -f conftest*
12443LIBS="$ac_save_LIBS"
12444
12445fi
12446if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12447 echo "$ac_t""yes" 1>&6
12448 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12449else
12450 echo "$ac_t""no" 1>&6
12451fi
12452
12453 fi
12454
12455 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12456 # to get the SysV transport functions.
12457 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
12458 # needs -lnsl.
12459 # The nsl library prevents programs from opening the X display
12460 # on Irix 5.2, according to dickey@clark.net.
12461 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
12462echo "configure:12463: checking for gethostbyname" >&5
12463if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
12464 echo $ac_n "(cached) $ac_c" 1>&6
12465else
12466 cat > conftest.$ac_ext <<EOF
12467#line 12468 "configure"
12468#include "confdefs.h"
12469/* System header to define __stub macros and hopefully few prototypes,
12470 which can conflict with char gethostbyname(); below. */
12471#include <assert.h>
12472/* Override any gcc2 internal prototype to avoid an error. */
12473/* We use char because int might match the return type of a gcc2
12474 builtin and then its argument prototype would still apply. */
12475char gethostbyname();
12476
12477int main() {
12478
12479/* The GNU C library defines this for functions which it implements
12480 to always fail with ENOSYS. Some functions are actually named
12481 something starting with __ and the normal name is an alias. */
12482#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12483choke me
12484#else
12485gethostbyname();
12486#endif
12487
12488; return 0; }
12489EOF
12490if { (eval echo configure:12491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12491 rm -rf conftest*
12492 eval "ac_cv_func_gethostbyname=yes"
12493else
12494 echo "configure: failed program was:" >&5
12495 cat conftest.$ac_ext >&5
12496 rm -rf conftest*
12497 eval "ac_cv_func_gethostbyname=no"
12498fi
12499rm -f conftest*
12500fi
12501
12502if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
12503 echo "$ac_t""yes" 1>&6
12504 :
12505else
12506 echo "$ac_t""no" 1>&6
12507fi
12508
12509 if test $ac_cv_func_gethostbyname = no; then
12510 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
12511echo "configure:12512: checking for gethostbyname in -lnsl" >&5
12512ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
12513if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12514 echo $ac_n "(cached) $ac_c" 1>&6
12515else
12516 ac_save_LIBS="$LIBS"
12517LIBS="-lnsl $LIBS"
12518cat > conftest.$ac_ext <<EOF
12519#line 12520 "configure"
12520#include "confdefs.h"
12521/* Override any gcc2 internal prototype to avoid an error. */
12522/* We use char because int might match the return type of a gcc2
12523 builtin and then its argument prototype would still apply. */
12524char gethostbyname();
12525
12526int main() {
12527gethostbyname()
12528; return 0; }
12529EOF
12530if { (eval echo configure:12531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12531 rm -rf conftest*
12532 eval "ac_cv_lib_$ac_lib_var=yes"
12533else
12534 echo "configure: failed program was:" >&5
12535 cat conftest.$ac_ext >&5
12536 rm -rf conftest*
12537 eval "ac_cv_lib_$ac_lib_var=no"
12538fi
12539rm -f conftest*
12540LIBS="$ac_save_LIBS"
12541
12542fi
12543if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12544 echo "$ac_t""yes" 1>&6
12545 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12546else
12547 echo "$ac_t""no" 1>&6
12548fi
12549
12550 fi
12551
12552 # lieder@skyler.mavd.honeywell.com says without -lsocket,
12553 # socket/setsockopt and other routines are undefined under SCO ODT
12554 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12555 # on later versions), says simon@lia.di.epfl.ch: it contains
12556 # gethostby* variants that don't use the nameserver (or something).
12557 # -lsocket must be given before -lnsl if both are needed.
12558 # We assume that if connect needs -lnsl, so does gethostbyname.
12559 echo $ac_n "checking for connect""... $ac_c" 1>&6
12560echo "configure:12561: checking for connect" >&5
12561if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
12562 echo $ac_n "(cached) $ac_c" 1>&6
12563else
12564 cat > conftest.$ac_ext <<EOF
12565#line 12566 "configure"
12566#include "confdefs.h"
12567/* System header to define __stub macros and hopefully few prototypes,
12568 which can conflict with char connect(); below. */
12569#include <assert.h>
12570/* Override any gcc2 internal prototype to avoid an error. */
12571/* We use char because int might match the return type of a gcc2
12572 builtin and then its argument prototype would still apply. */
12573char connect();
12574
12575int main() {
12576
12577/* The GNU C library defines this for functions which it implements
12578 to always fail with ENOSYS. Some functions are actually named
12579 something starting with __ and the normal name is an alias. */
12580#if defined (__stub_connect) || defined (__stub___connect)
12581choke me
12582#else
12583connect();
12584#endif
12585
12586; return 0; }
12587EOF
12588if { (eval echo configure:12589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12589 rm -rf conftest*
12590 eval "ac_cv_func_connect=yes"
12591else
12592 echo "configure: failed program was:" >&5
12593 cat conftest.$ac_ext >&5
12594 rm -rf conftest*
12595 eval "ac_cv_func_connect=no"
12596fi
12597rm -f conftest*
12598fi
12599
12600if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
12601 echo "$ac_t""yes" 1>&6
12602 :
12603else
12604 echo "$ac_t""no" 1>&6
12605fi
12606
12607 if test $ac_cv_func_connect = no; then
12608 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
12609echo "configure:12610: checking for connect in -lsocket" >&5
12610ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
12611if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12612 echo $ac_n "(cached) $ac_c" 1>&6
12613else
12614 ac_save_LIBS="$LIBS"
12615LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12616cat > conftest.$ac_ext <<EOF
12617#line 12618 "configure"
12618#include "confdefs.h"
12619/* Override any gcc2 internal prototype to avoid an error. */
12620/* We use char because int might match the return type of a gcc2
12621 builtin and then its argument prototype would still apply. */
12622char connect();
12623
12624int main() {
12625connect()
12626; return 0; }
12627EOF
12628if { (eval echo configure:12629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12629 rm -rf conftest*
12630 eval "ac_cv_lib_$ac_lib_var=yes"
12631else
12632 echo "configure: failed program was:" >&5
12633 cat conftest.$ac_ext >&5
12634 rm -rf conftest*
12635 eval "ac_cv_lib_$ac_lib_var=no"
12636fi
12637rm -f conftest*
12638LIBS="$ac_save_LIBS"
12639
12640fi
12641if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12642 echo "$ac_t""yes" 1>&6
12643 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12644else
12645 echo "$ac_t""no" 1>&6
12646fi
12647
12648 fi
12649
12650 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
12651 echo $ac_n "checking for remove""... $ac_c" 1>&6
12652echo "configure:12653: checking for remove" >&5
12653if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
12654 echo $ac_n "(cached) $ac_c" 1>&6
12655else
12656 cat > conftest.$ac_ext <<EOF
12657#line 12658 "configure"
12658#include "confdefs.h"
12659/* System header to define __stub macros and hopefully few prototypes,
12660 which can conflict with char remove(); below. */
12661#include <assert.h>
12662/* Override any gcc2 internal prototype to avoid an error. */
12663/* We use char because int might match the return type of a gcc2
12664 builtin and then its argument prototype would still apply. */
12665char remove();
12666
12667int main() {
12668
12669/* The GNU C library defines this for functions which it implements
12670 to always fail with ENOSYS. Some functions are actually named
12671 something starting with __ and the normal name is an alias. */
12672#if defined (__stub_remove) || defined (__stub___remove)
12673choke me
12674#else
12675remove();
12676#endif
12677
12678; return 0; }
12679EOF
12680if { (eval echo configure:12681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12681 rm -rf conftest*
12682 eval "ac_cv_func_remove=yes"
12683else
12684 echo "configure: failed program was:" >&5
12685 cat conftest.$ac_ext >&5
12686 rm -rf conftest*
12687 eval "ac_cv_func_remove=no"
12688fi
12689rm -f conftest*
12690fi
12691
12692if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
12693 echo "$ac_t""yes" 1>&6
12694 :
12695else
12696 echo "$ac_t""no" 1>&6
12697fi
12698
12699 if test $ac_cv_func_remove = no; then
12700 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
12701echo "configure:12702: checking for remove in -lposix" >&5
12702ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
12703if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12704 echo $ac_n "(cached) $ac_c" 1>&6
12705else
12706 ac_save_LIBS="$LIBS"
12707LIBS="-lposix $LIBS"
12708cat > conftest.$ac_ext <<EOF
12709#line 12710 "configure"
12710#include "confdefs.h"
12711/* Override any gcc2 internal prototype to avoid an error. */
12712/* We use char because int might match the return type of a gcc2
12713 builtin and then its argument prototype would still apply. */
12714char remove();
12715
12716int main() {
12717remove()
12718; return 0; }
12719EOF
12720if { (eval echo configure:12721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12721 rm -rf conftest*
12722 eval "ac_cv_lib_$ac_lib_var=yes"
12723else
12724 echo "configure: failed program was:" >&5
12725 cat conftest.$ac_ext >&5
12726 rm -rf conftest*
12727 eval "ac_cv_lib_$ac_lib_var=no"
12728fi
12729rm -f conftest*
12730LIBS="$ac_save_LIBS"
12731
12732fi
12733if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12734 echo "$ac_t""yes" 1>&6
12735 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12736else
12737 echo "$ac_t""no" 1>&6
12738fi
12739
12740 fi
12741
12742 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12743 echo $ac_n "checking for shmat""... $ac_c" 1>&6
12744echo "configure:12745: checking for shmat" >&5
12745if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
12746 echo $ac_n "(cached) $ac_c" 1>&6
12747else
12748 cat > conftest.$ac_ext <<EOF
12749#line 12750 "configure"
12750#include "confdefs.h"
12751/* System header to define __stub macros and hopefully few prototypes,
12752 which can conflict with char shmat(); below. */
12753#include <assert.h>
12754/* Override any gcc2 internal prototype to avoid an error. */
12755/* We use char because int might match the return type of a gcc2
12756 builtin and then its argument prototype would still apply. */
12757char shmat();
12758
12759int main() {
12760
12761/* The GNU C library defines this for functions which it implements
12762 to always fail with ENOSYS. Some functions are actually named
12763 something starting with __ and the normal name is an alias. */
12764#if defined (__stub_shmat) || defined (__stub___shmat)
12765choke me
12766#else
12767shmat();
12768#endif
12769
12770; return 0; }
12771EOF
12772if { (eval echo configure:12773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12773 rm -rf conftest*
12774 eval "ac_cv_func_shmat=yes"
12775else
12776 echo "configure: failed program was:" >&5
12777 cat conftest.$ac_ext >&5
12778 rm -rf conftest*
12779 eval "ac_cv_func_shmat=no"
12780fi
12781rm -f conftest*
12782fi
12783
12784if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
12785 echo "$ac_t""yes" 1>&6
12786 :
12787else
12788 echo "$ac_t""no" 1>&6
12789fi
12790
12791 if test $ac_cv_func_shmat = no; then
12792 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
12793echo "configure:12794: checking for shmat in -lipc" >&5
12794ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
12795if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12796 echo $ac_n "(cached) $ac_c" 1>&6
12797else
12798 ac_save_LIBS="$LIBS"
12799LIBS="-lipc $LIBS"
12800cat > conftest.$ac_ext <<EOF
12801#line 12802 "configure"
12802#include "confdefs.h"
12803/* Override any gcc2 internal prototype to avoid an error. */
12804/* We use char because int might match the return type of a gcc2
12805 builtin and then its argument prototype would still apply. */
12806char shmat();
12807
12808int main() {
12809shmat()
12810; return 0; }
12811EOF
12812if { (eval echo configure:12813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12813 rm -rf conftest*
12814 eval "ac_cv_lib_$ac_lib_var=yes"
12815else
12816 echo "configure: failed program was:" >&5
12817 cat conftest.$ac_ext >&5
12818 rm -rf conftest*
12819 eval "ac_cv_lib_$ac_lib_var=no"
12820fi
12821rm -f conftest*
12822LIBS="$ac_save_LIBS"
12823
12824fi
12825if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12826 echo "$ac_t""yes" 1>&6
12827 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12828else
12829 echo "$ac_t""no" 1>&6
12830fi
12831
12832 fi
12833 fi
12834
12835 # Check for libraries that X11R6 Xt/Xaw programs need.
12836 ac_save_LDFLAGS="$LDFLAGS"
12837 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12838 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12839 # check for ICE first), but we must link in the order -lSM -lICE or
12840 # we get undefined symbols. So assume we have SM if we have ICE.
12841 # These have to be linked with before -lX11, unlike the other
12842 # libraries we check for below, so use a different variable.
12843 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
12844 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
12845echo "configure:12846: checking for IceConnectionNumber in -lICE" >&5
12846ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
12847if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12848 echo $ac_n "(cached) $ac_c" 1>&6
12849else
12850 ac_save_LIBS="$LIBS"
12851LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12852cat > conftest.$ac_ext <<EOF
12853#line 12854 "configure"
12854#include "confdefs.h"
12855/* Override any gcc2 internal prototype to avoid an error. */
12856/* We use char because int might match the return type of a gcc2
12857 builtin and then its argument prototype would still apply. */
12858char IceConnectionNumber();
12859
12860int main() {
12861IceConnectionNumber()
12862; return 0; }
12863EOF
12864if { (eval echo configure:12865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12865 rm -rf conftest*
12866 eval "ac_cv_lib_$ac_lib_var=yes"
12867else
12868 echo "configure: failed program was:" >&5
12869 cat conftest.$ac_ext >&5
12870 rm -rf conftest*
12871 eval "ac_cv_lib_$ac_lib_var=no"
12872fi
12873rm -f conftest*
12874LIBS="$ac_save_LIBS"
12875
12876fi
12877if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12878 echo "$ac_t""yes" 1>&6
12879 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12880else
12881 echo "$ac_t""no" 1>&6
12882fi
12883
12884 LDFLAGS="$ac_save_LDFLAGS"
12885
12886fi
12887
12888
12889 if test "$no_x" = "yes"; then
12890 { echo "configure: error: X11 not found" 1>&2; exit 1; }
12891 fi
12892
12893 GUI_TK_LIBRARY="$X_LIBS"
12894 TOOLKIT_INCLUDE="$X_CFLAGS"
12895 AFMINSTALL=afminstall
12896 COMPILED_X_PROGRAM=0
12897
12898 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
12899echo "configure:12900: checking for Motif/Lesstif headers" >&5
12900
12901ac_find_includes=
12902for ac_dir in $SEARCH_INCLUDE;
12903 do
12904 if test -f "$ac_dir/Xm/Xm.h"; then
12905 ac_find_includes=$ac_dir
12906 break
12907 fi
12908 done
12909
12910 if test "$ac_find_includes" != "" ; then
12911 echo "$ac_t""found $ac_find_includes" 1>&6
12912 else
12913 cat > conftest.$ac_ext <<EOF
12914#line 12915 "configure"
12915#include "confdefs.h"
12916
12917 #include <Xm/Xm.h>
12918
12919int main() {
12920
12921 int version;
12922 version = xmUseVersion;
12923
12924; return 0; }
12925EOF
12926if { (eval echo configure:12927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12927 rm -rf conftest*
12928
12929 echo "$ac_t""found in default search path" 1>&6
12930 COMPILED_X_PROGRAM=1
12931
12932else
12933 echo "configure: failed program was:" >&5
12934 cat conftest.$ac_ext >&5
12935 rm -rf conftest*
12936
12937 echo "$ac_t""no" 1>&6
12938 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
12939
12940
12941fi
12942rm -f conftest*
12943 fi
12944
12945 if test "$COMPILED_X_PROGRAM" = 0; then
12946 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
12947echo "configure:12948: checking for Motif/Lesstif library" >&5
12948
12949ac_find_libraries=
12950for ac_dir in $SEARCH_LIB;
12951 do
12952 for ac_extension in a so sl dylib; do
12953 if test -f "$ac_dir/libXm.$ac_extension"; then
12954 ac_find_libraries=$ac_dir
12955 break 2
12956 fi
12957 done
12958 done
12959
12960 if test "$ac_find_libraries" != "" ; then
12961
12962 ac_path_to_include=$ac_find_includes
12963 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
12964 result=$?
12965 if test $result = 0; then
12966 ac_path_to_include=""
12967 else
12968 ac_path_to_include=" -I$ac_find_includes"
12969 fi
12970
12971
12972 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12973 result=$?
12974 if test $result = 0; then
12975 ac_path_to_link=""
12976 else
12977 ac_path_to_link=" -L$ac_find_libraries"
12978 fi
12979
12980
12981 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
12982 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
12983 echo "$ac_t""found at $ac_find_libraries" 1>&6
12984 else
12985 cat > conftest.$ac_ext <<EOF
12986#line 12987 "configure"
12987#include "confdefs.h"
12988
12989 #include <Xm/Xm.h>
12990
12991int main() {
12992
12993 int version;
12994 version = xmUseVersion;
12995
12996; return 0; }
12997EOF
12998if { (eval echo configure:12999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12999 rm -rf conftest*
13000
13001 echo "$ac_t""found in default search path" 1>&6
13002 COMPILED_X_PROGRAM=1
13003
13004else
13005 echo "configure: failed program was:" >&5
13006 cat conftest.$ac_ext >&5
13007 rm -rf conftest*
13008
13009 echo "$ac_t""no" 1>&6
13010 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
13011
13012
13013fi
13014rm -f conftest*
13015 fi
13016 fi
13017
13018 xpm_link=
13019 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13020echo "configure:13021: checking for Xpm library" >&5
13021
13022ac_find_libraries=
13023for ac_dir in $SEARCH_LIB;
13024 do
13025 for ac_extension in a so sl dylib; do
13026 if test -f "$ac_dir/libXpm.$ac_extension"; then
13027 ac_find_libraries=$ac_dir
13028 break 2
13029 fi
13030 done
13031 done
13032
13033 if test "$ac_find_libraries" != "" ; then
13034
13035 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13036 result=$?
13037 if test $result = 0; then
13038 ac_path_to_link=""
13039 else
13040 ac_path_to_link=" -L$ac_find_libraries"
13041 fi
13042
13043 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13044 xpm_link=" -lXpm"
13045 cat >> confdefs.h <<\EOF
13046#define wxHAVE_LIB_XPM 1
13047EOF
13048
13049 echo "$ac_t""found at $ac_find_libraries" 1>&6
13050 else
13051 cat > conftest.$ac_ext <<EOF
13052#line 13053 "configure"
13053#include "confdefs.h"
13054
13055 #include <X11/xpm.h>
13056
13057int main() {
13058
13059 int version;
13060 version = XpmLibraryVersion();
13061
13062; return 0; }
13063EOF
13064if { (eval echo configure:13065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13065 rm -rf conftest*
13066
13067 xpm_link=" -lXpm"
13068 cat >> confdefs.h <<\EOF
13069#define wxHAVE_LIB_XPM 1
13070EOF
13071
13072 echo "$ac_t""found in default search path" 1>&6
13073 COMPILED_X_PROGRAM=0
13074
13075else
13076 echo "configure: failed program was:" >&5
13077 cat conftest.$ac_ext >&5
13078 rm -rf conftest*
13079
13080 echo "$ac_t""no" 1>&6
13081 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13082
13083
13084fi
13085rm -f conftest*
13086 fi
13087
13088 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
13089 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
13090 TOOLKIT=MOTIF
13091 GUIDIST=MOTIF_DIST
13092 fi
13093
13094 if test "$wxUSE_MAC" = 1; then
13095 if test "$wxUSE_PRECOMP" = "yes"; then
13096 CPPFLAGS="$CPPFLAGS -cpp-precomp"
13097 fi
13098 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
13099 CFLAGS="$CFLAGS -fpascal-strings"
13100 CXXFLAGS="$CXXFLAGS -fpascal-strings"
13101
13102 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
13103 TOOLKIT=MAC
13104 GUIDIST=MACX_DIST
13105 fi
13106
13107 if test "$wxUSE_PM" = 1; then
13108 TOOLKIT=PM
13109 GUIDIST=GTK_DIST
13110 fi
13111
13112 if test "$TOOLKIT" = "PM" ; then
13113 TOOLKIT_DIR="os2"
13114 else
13115 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
13116 fi
13117
13118 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
13119
13120 if test "$wxUSE_UNIVERSAL" = "yes"; then
13121 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
13122
13123 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
13124 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
13125
13126 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
13127 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
13128 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
13129 WIDGET_SET=univ
13130 else
13131 ALL_OBJECTS="\$(GUIOBJS)"
13132 ALL_SOURCES="\$(ALL_SOURCES)"
13133 ALL_HEADERS="\$(ALL_HEADERS)"
13134 fi
13135
13136 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
13137
13138 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
13139 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
13140 fi
13141
13142 if test "$wxUSE_HTML" = "yes"; then
13143 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
13144 fi
13145
13146 if test "$wxUSE_LIBJPEG" = "builtin" ; then
13147 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
13148 fi
13149 if test "$wxUSE_LIBTIFF" = "builtin" ; then
13150 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
13151 fi
13152 if test "$wxUSE_LIBPNG" = "builtin" ; then
13153 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
13154 fi
13155
13156 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
13157 DISTDIR="wx\$(TOOLKIT)"
13158else
13159 USE_GUI=0
13160
13161 TOOLKIT_DIR="base"
13162
13163 if test "$USE_WIN32" = 1 ; then
13164 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
13165 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
13166
13167 TOOLKIT="MSW"
13168 else
13169 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
13170 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
13171 fi
13172
13173 PORT_FILES="\${top_srcdir}/src/files.lst"
13174
13175 GUIDIST="BASE_DIST"
13176 DISTDIR="wxBase"
13177fi
13178
13179
13180if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
13181 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
13182fi
13183
13184if test "$wxUSE_REGEX" = "builtin" ; then
13185 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
13186fi
13187if test "$wxUSE_ZLIB" = "builtin" ; then
13188 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
13189fi
13190
13191if test "$wxUSE_OPENGL" = "yes"; then
13192 if test "$wxUSE_MAC" = 1; then
13193 OPENGL_LIBS="-framework OpenGL -framework AGL"
13194 else
13195
13196 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
13197echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
13198echo "configure:13199: checking for GL/gl.h" >&5
13199if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13200 echo $ac_n "(cached) $ac_c" 1>&6
13201else
13202 cat > conftest.$ac_ext <<EOF
13203#line 13204 "configure"
13204#include "confdefs.h"
13205#include <GL/gl.h>
13206EOF
13207ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13208{ (eval echo configure:13209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13209ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13210if test -z "$ac_err"; then
13211 rm -rf conftest*
13212 eval "ac_cv_header_$ac_safe=yes"
13213else
13214 echo "$ac_err" >&5
13215 echo "configure: failed program was:" >&5
13216 cat conftest.$ac_ext >&5
13217 rm -rf conftest*
13218 eval "ac_cv_header_$ac_safe=no"
13219fi
13220rm -f conftest*
13221fi
13222if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13223 echo "$ac_t""yes" 1>&6
13224
13225 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
13226echo "configure:13227: checking for -lGL" >&5
13227
13228ac_find_libraries=
13229for ac_dir in $SEARCH_LIB;
13230 do
13231 for ac_extension in a so sl dylib; do
13232 if test -f "$ac_dir/libGL.$ac_extension"; then
13233 ac_find_libraries=$ac_dir
13234 break 2
13235 fi
13236 done
13237 done
13238
13239 if test "$ac_find_libraries" != "" ; then
13240
13241 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
13242 result=$?
13243 if test $result = 0; then
13244 ac_path_to_link=""
13245 else
13246 ac_path_to_link=" -L$ac_find_libraries"
13247 fi
13248
13249 if test "$ac_path_to_link" = " -L/usr/lib" ; then
13250 LDFLAGS_GL="$LDFLAGS"
13251 else
13252 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
13253 fi
13254 OPENGL_LIBS="-lGL -lGLU"
13255 echo "$ac_t""yes" 1>&6
13256 else
13257 echo "$ac_t""no" 1>&6
13258 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
13259echo "configure:13260: checking for -lMesaGL" >&5
13260
13261ac_find_libraries=
13262for ac_dir in $SEARCH_LIB;
13263 do
13264 for ac_extension in a so sl dylib; do
13265 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
13266 ac_find_libraries=$ac_dir
13267 break 2
13268 fi
13269 done
13270 done
13271
13272 if test "$ac_find_libraries" != "" ; then
13273
13274 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
13275 result=$?
13276 if test $result = 0; then
13277 ac_path_to_link=""
13278 else
13279 ac_path_to_link=" -L$ac_find_libraries"
13280 fi
13281
13282 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
13283 OPENGL_LIBS="-lMesaGL -lMesaGLU"
13284 echo "$ac_t""yes" 1>&6
13285 else
13286 echo "$ac_t""no" 1>&6
13287 fi
13288 fi
13289
13290else
13291 echo "$ac_t""no" 1>&6
13292fi
13293
13294
13295
13296# AC_CHECK_HEADER(GL/gl.h,
13297# [
13298# AC_CHECK_LIB(GL, glFlush,
13299# [
13300# OPENGL_LIBS="-lGL -lGLU"
13301# ],
13302# [
13303# AC_CHECK_LIB(MesaGL, glFlush,
13304# [
13305# OPENGL_LIBS="-lMesaGL -lMesaGLU"
13306# ],
13307# [],
13308# [-lm])
13309# ],
13310# [-lm])
13311# ])
13312
13313 if test "x$OPENGL_LIBS" = "x"; then
13314 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
13315 fi
13316 fi
13317
13318 if test "$wxUSE_OPENGL" = "yes"; then
13319 cat >> confdefs.h <<\EOF
13320#define wxUSE_OPENGL 1
13321EOF
13322
13323 cat >> confdefs.h <<\EOF
13324#define wxUSE_GLCANVAS 1
13325EOF
13326
13327 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
13328 fi
13329fi
13330
13331if test -z "$TOOLKIT_VPATH" ; then
13332 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
13333fi
13334
13335if test -n "$TOOLKIT" ; then
13336 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
13337fi
13338
13339lib_unicode_suffix=
13340if test "$wxUSE_UNICODE" = "yes"; then
13341 lib_unicode_suffix=u
13342fi
13343
13344lib_debug_suffix=
13345if test "$wxUSE_DEBUG_FLAG" = "yes"; then
13346 lib_debug_suffix=d
13347fi
13348
13349TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
13350TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
13351
13352if test "$cross_compiling" = "yes"; then
13353 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
13354 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
13355fi
13356
13357WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
13358WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
13359
13360WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
13361WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
13362
13363WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
13364WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
13365WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
13366WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
13367
13368WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
13369WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
13370
13371case "${host}" in
13372 *-*-cygwin* | *-*-mingw32* )
13373
13374
13375
13376 if test "$cross_compiling" != "yes"; then
13377 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
13378 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
13379 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
13380 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
13381 else
13382 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
13383 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
13384 fi
13385
13386esac
13387
13388WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
13389WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
13390
13391WXCONFIG_LIBS="-l${WX_LIBRARY}"
13392WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
13393
13394if test "$wxUSE_OPENGL" = "yes"; then
13395 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
13396 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
13397fi
13398
13399
13400
13401if test "$wxUSE_SHARED" = "yes"; then
13402
13403 if test "$wxUSE_OPENGL" = "yes"; then
13404 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
13405 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
13406 else
13407 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
13408 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
13409 fi
13410
13411 if test "$GCC" = "yes"; then
13412 PIC_FLAG="-fPIC"
13413 fi
13414
13415 SHARED_LD="${CXX} -shared -o"
13416
13417 case "${host}" in
13418 *-hp-hpux* )
13419 if test "$GCC" == "yes"; then
13420 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
13421 else
13422 LDFLAGS="$LDFLAGS -L/usr/lib"
13423
13424 SHARED_LD="${CXX} -b -o"
13425 PIC_FLAG="+Z"
13426 fi
13427
13428 if test "$wxUSE_OPENGL" = "yes"; then
13429 WX_ALL_INSTALLED="preinstall_gl"
13430 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
13431 else
13432 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
13433 fi
13434 ;;
13435
13436 *-*-linux* )
13437 if test "$GCC" != "yes"; then
13438 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
13439echo "configure:13440: checking for Intel compiler" >&5
13440if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
13441 echo $ac_n "(cached) $ac_c" 1>&6
13442else
13443
13444 cat > conftest.$ac_ext <<EOF
13445#line 13446 "configure"
13446#include "confdefs.h"
13447
13448int main() {
13449
13450 #ifndef __INTEL_COMPILER
13451 #error Not icc
13452 #endif
13453
13454; return 0; }
13455EOF
13456if { (eval echo configure:13457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13457 rm -rf conftest*
13458 wx_cv_prog_icc=yes
13459else
13460 echo "configure: failed program was:" >&5
13461 cat conftest.$ac_ext >&5
13462 rm -rf conftest*
13463 wx_cv_prog_icc=no
13464
13465fi
13466rm -f conftest*
13467
13468fi
13469
13470echo "$ac_t""$wx_cv_prog_icc" 1>&6
13471 if test "$wx_cv_prog_icc" = "yes"; then
13472 PIC_FLAG="-KPIC"
13473 fi
13474 fi
13475
13476 if test "$wxUSE_SONAME" = "yes" ; then
13477 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
13478 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
13479 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
13480 fi
13481 ;;
13482
13483 *-*-solaris2* )
13484 if test "$GCC" = yes ; then
13485 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
13486 else
13487 SHARED_LD="${CXX} -G -o"
13488 PIC_FLAG="-KPIC"
13489 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
13490 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
13491 fi
13492 ;;
13493
13494 *-*-darwin* )
13495 CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT"
13496 CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT"
13497 SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o"
13498 PIC_FLAG="-dynamic -fPIC"
13499 ;;
13500
13501 *-*-aix* )
13502 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
13503 ;;
13504
13505 *-*-cygwin* | *-*-mingw32* )
13506
13507 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
13508
13509 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
13510 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
13511
13512 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
13513
13514 if test "$wxUSE_OPENGL" = "yes"; then
13515 WX_ALL_INSTALLED="preinstall_gl"
13516 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
13517 else
13518 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
13519 fi
13520 ;;
13521
13522 *-pc-os2_emx | *-pc-os2-emx )
13523 wxUSE_SHARED=no
13524 ;;
13525
13526 *-*-beos* )
13527 SHARED_LD="${LD} -shared -o"
13528 ;;
13529
13530 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
13531 *-*-sunos4* | \
13532 *-*-irix5* | *-*-irix6* | \
13533 *-*-osf* | \
13534 *-*-dgux5* | \
13535 *-*-sysv5* )
13536 ;;
13537
13538 *)
13539 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
13540 esac
13541
13542 if test "x$WX_TARGET_LIBRARY" = "x"; then
13543 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
13544 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
13545 fi
13546
13547 WX_TARGET_LIBRARY_TYPE="so"
13548 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
13549fi
13550
13551if test "$wxUSE_SHARED" = "no"; then
13552
13553 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
13554 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
13555 fi
13556
13557 if test "$wxUSE_MAC" = 1; then
13558 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
13559 fi
13560
13561 if test "$wxUSE_OPENGL" = "yes"; then
13562 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
13563 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
13564 else
13565 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
13566 fi
13567
13568 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
13569 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
13570
13571 WX_TARGET_LIBRARY_TYPE="a"
13572 INSTALL_LIBRARY='$(INSTALL_DATA)'
13573fi
13574
13575if test "$wxUSE_MAC" = 1; then
13576 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
13577 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
13578 # Extract the first word of "Rez", so it can be a program name with args.
13579set dummy Rez; ac_word=$2
13580echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13581echo "configure:13582: checking for $ac_word" >&5
13582if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
13583 echo $ac_n "(cached) $ac_c" 1>&6
13584else
13585 if test -n "$RESCOMP"; then
13586 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
13587else
13588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13589 ac_dummy="$PATH"
13590 for ac_dir in $ac_dummy; do
13591 test -z "$ac_dir" && ac_dir=.
13592 if test -f $ac_dir/$ac_word; then
13593 ac_cv_prog_RESCOMP="Rez"
13594 break
13595 fi
13596 done
13597 IFS="$ac_save_ifs"
13598 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
13599fi
13600fi
13601RESCOMP="$ac_cv_prog_RESCOMP"
13602if test -n "$RESCOMP"; then
13603 echo "$ac_t""$RESCOMP" 1>&6
13604else
13605 echo "$ac_t""no" 1>&6
13606fi
13607
13608 # Extract the first word of "DeRez", so it can be a program name with args.
13609set dummy DeRez; ac_word=$2
13610echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13611echo "configure:13612: checking for $ac_word" >&5
13612if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
13613 echo $ac_n "(cached) $ac_c" 1>&6
13614else
13615 if test -n "$DEREZ"; then
13616 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
13617else
13618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13619 ac_dummy="$PATH"
13620 for ac_dir in $ac_dummy; do
13621 test -z "$ac_dir" && ac_dir=.
13622 if test -f $ac_dir/$ac_word; then
13623 ac_cv_prog_DEREZ="DeRez"
13624 break
13625 fi
13626 done
13627 IFS="$ac_save_ifs"
13628 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
13629fi
13630fi
13631DEREZ="$ac_cv_prog_DEREZ"
13632if test -n "$DEREZ"; then
13633 echo "$ac_t""$DEREZ" 1>&6
13634else
13635 echo "$ac_t""no" 1>&6
13636fi
13637
13638 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
13639 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
13640 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
13641fi
13642
13643
13644if test "$wxUSE_MAC" != 1; then
13645 for ac_hdr in strings.h
13646do
13647ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13648echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13649echo "configure:13650: checking for $ac_hdr" >&5
13650if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13651 echo $ac_n "(cached) $ac_c" 1>&6
13652else
13653 cat > conftest.$ac_ext <<EOF
13654#line 13655 "configure"
13655#include "confdefs.h"
13656#include <$ac_hdr>
13657EOF
13658ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13659{ (eval echo configure:13660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13660ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13661if test -z "$ac_err"; then
13662 rm -rf conftest*
13663 eval "ac_cv_header_$ac_safe=yes"
13664else
13665 echo "$ac_err" >&5
13666 echo "configure: failed program was:" >&5
13667 cat conftest.$ac_ext >&5
13668 rm -rf conftest*
13669 eval "ac_cv_header_$ac_safe=no"
13670fi
13671rm -f conftest*
13672fi
13673if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13674 echo "$ac_t""yes" 1>&6
13675 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13676 cat >> confdefs.h <<EOF
13677#define $ac_tr_hdr 1
13678EOF
13679
13680else
13681 echo "$ac_t""no" 1>&6
13682fi
13683done
13684
13685fi
13686
13687for ac_hdr in stdlib.h
13688do
13689ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13690echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13691echo "configure:13692: checking for $ac_hdr" >&5
13692if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13693 echo $ac_n "(cached) $ac_c" 1>&6
13694else
13695 cat > conftest.$ac_ext <<EOF
13696#line 13697 "configure"
13697#include "confdefs.h"
13698#include <$ac_hdr>
13699EOF
13700ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13701{ (eval echo configure:13702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13702ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13703if test -z "$ac_err"; then
13704 rm -rf conftest*
13705 eval "ac_cv_header_$ac_safe=yes"
13706else
13707 echo "$ac_err" >&5
13708 echo "configure: failed program was:" >&5
13709 cat conftest.$ac_ext >&5
13710 rm -rf conftest*
13711 eval "ac_cv_header_$ac_safe=no"
13712fi
13713rm -f conftest*
13714fi
13715if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13716 echo "$ac_t""yes" 1>&6
13717 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13718 cat >> confdefs.h <<EOF
13719#define $ac_tr_hdr 1
13720EOF
13721
13722else
13723 echo "$ac_t""no" 1>&6
13724fi
13725done
13726
13727for ac_hdr in malloc.h
13728do
13729ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13730echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13731echo "configure:13732: checking for $ac_hdr" >&5
13732if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13733 echo $ac_n "(cached) $ac_c" 1>&6
13734else
13735 cat > conftest.$ac_ext <<EOF
13736#line 13737 "configure"
13737#include "confdefs.h"
13738#include <$ac_hdr>
13739EOF
13740ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13741{ (eval echo configure:13742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13742ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13743if test -z "$ac_err"; then
13744 rm -rf conftest*
13745 eval "ac_cv_header_$ac_safe=yes"
13746else
13747 echo "$ac_err" >&5
13748 echo "configure: failed program was:" >&5
13749 cat conftest.$ac_ext >&5
13750 rm -rf conftest*
13751 eval "ac_cv_header_$ac_safe=no"
13752fi
13753rm -f conftest*
13754fi
13755if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13756 echo "$ac_t""yes" 1>&6
13757 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13758 cat >> confdefs.h <<EOF
13759#define $ac_tr_hdr 1
13760EOF
13761
13762else
13763 echo "$ac_t""no" 1>&6
13764fi
13765done
13766
13767for ac_hdr in unistd.h
13768do
13769ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13770echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13771echo "configure:13772: checking for $ac_hdr" >&5
13772if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13773 echo $ac_n "(cached) $ac_c" 1>&6
13774else
13775 cat > conftest.$ac_ext <<EOF
13776#line 13777 "configure"
13777#include "confdefs.h"
13778#include <$ac_hdr>
13779EOF
13780ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13781{ (eval echo configure:13782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13782ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13783if test -z "$ac_err"; then
13784 rm -rf conftest*
13785 eval "ac_cv_header_$ac_safe=yes"
13786else
13787 echo "$ac_err" >&5
13788 echo "configure: failed program was:" >&5
13789 cat conftest.$ac_ext >&5
13790 rm -rf conftest*
13791 eval "ac_cv_header_$ac_safe=no"
13792fi
13793rm -f conftest*
13794fi
13795if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13796 echo "$ac_t""yes" 1>&6
13797 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13798 cat >> confdefs.h <<EOF
13799#define $ac_tr_hdr 1
13800EOF
13801
13802else
13803 echo "$ac_t""no" 1>&6
13804fi
13805done
13806
13807for ac_hdr in wchar.h
13808do
13809ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13810echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13811echo "configure:13812: checking for $ac_hdr" >&5
13812if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13813 echo $ac_n "(cached) $ac_c" 1>&6
13814else
13815 cat > conftest.$ac_ext <<EOF
13816#line 13817 "configure"
13817#include "confdefs.h"
13818#include <$ac_hdr>
13819EOF
13820ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13821{ (eval echo configure:13822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13822ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13823if test -z "$ac_err"; then
13824 rm -rf conftest*
13825 eval "ac_cv_header_$ac_safe=yes"
13826else
13827 echo "$ac_err" >&5
13828 echo "configure: failed program was:" >&5
13829 cat conftest.$ac_ext >&5
13830 rm -rf conftest*
13831 eval "ac_cv_header_$ac_safe=no"
13832fi
13833rm -f conftest*
13834fi
13835if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13836 echo "$ac_t""yes" 1>&6
13837 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13838 cat >> confdefs.h <<EOF
13839#define $ac_tr_hdr 1
13840EOF
13841
13842else
13843 echo "$ac_t""no" 1>&6
13844fi
13845done
13846
13847for ac_hdr in wcstr.h
13848do
13849ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13850echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13851echo "configure:13852: checking for $ac_hdr" >&5
13852if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13853 echo $ac_n "(cached) $ac_c" 1>&6
13854else
13855 cat > conftest.$ac_ext <<EOF
13856#line 13857 "configure"
13857#include "confdefs.h"
13858#include <$ac_hdr>
13859EOF
13860ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13861{ (eval echo configure:13862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13862ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13863if test -z "$ac_err"; then
13864 rm -rf conftest*
13865 eval "ac_cv_header_$ac_safe=yes"
13866else
13867 echo "$ac_err" >&5
13868 echo "configure: failed program was:" >&5
13869 cat conftest.$ac_ext >&5
13870 rm -rf conftest*
13871 eval "ac_cv_header_$ac_safe=no"
13872fi
13873rm -f conftest*
13874fi
13875if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13876 echo "$ac_t""yes" 1>&6
13877 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13878 cat >> confdefs.h <<EOF
13879#define $ac_tr_hdr 1
13880EOF
13881
13882else
13883 echo "$ac_t""no" 1>&6
13884fi
13885done
13886
13887for ac_hdr in wctype.h
13888do
13889ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13890echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13891echo "configure:13892: checking for $ac_hdr" >&5
13892if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13893 echo $ac_n "(cached) $ac_c" 1>&6
13894else
13895 cat > conftest.$ac_ext <<EOF
13896#line 13897 "configure"
13897#include "confdefs.h"
13898#include <$ac_hdr>
13899EOF
13900ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13901{ (eval echo configure:13902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13902ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13903if test -z "$ac_err"; then
13904 rm -rf conftest*
13905 eval "ac_cv_header_$ac_safe=yes"
13906else
13907 echo "$ac_err" >&5
13908 echo "configure: failed program was:" >&5
13909 cat conftest.$ac_ext >&5
13910 rm -rf conftest*
13911 eval "ac_cv_header_$ac_safe=no"
13912fi
13913rm -f conftest*
13914fi
13915if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13916 echo "$ac_t""yes" 1>&6
13917 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13918 cat >> confdefs.h <<EOF
13919#define $ac_tr_hdr 1
13920EOF
13921
13922else
13923 echo "$ac_t""no" 1>&6
13924fi
13925done
13926
13927for ac_hdr in fnmatch.h
13928do
13929ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13930echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13931echo "configure:13932: checking for $ac_hdr" >&5
13932if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13933 echo $ac_n "(cached) $ac_c" 1>&6
13934else
13935 cat > conftest.$ac_ext <<EOF
13936#line 13937 "configure"
13937#include "confdefs.h"
13938#include <$ac_hdr>
13939EOF
13940ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13941{ (eval echo configure:13942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13942ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13943if test -z "$ac_err"; then
13944 rm -rf conftest*
13945 eval "ac_cv_header_$ac_safe=yes"
13946else
13947 echo "$ac_err" >&5
13948 echo "configure: failed program was:" >&5
13949 cat conftest.$ac_ext >&5
13950 rm -rf conftest*
13951 eval "ac_cv_header_$ac_safe=no"
13952fi
13953rm -f conftest*
13954fi
13955if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13956 echo "$ac_t""yes" 1>&6
13957 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13958 cat >> confdefs.h <<EOF
13959#define $ac_tr_hdr 1
13960EOF
13961
13962else
13963 echo "$ac_t""no" 1>&6
13964fi
13965done
13966
13967for ac_hdr in langinfo.h
13968do
13969ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13970echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13971echo "configure:13972: checking for $ac_hdr" >&5
13972if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13973 echo $ac_n "(cached) $ac_c" 1>&6
13974else
13975 cat > conftest.$ac_ext <<EOF
13976#line 13977 "configure"
13977#include "confdefs.h"
13978#include <$ac_hdr>
13979EOF
13980ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13981{ (eval echo configure:13982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13982ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13983if test -z "$ac_err"; then
13984 rm -rf conftest*
13985 eval "ac_cv_header_$ac_safe=yes"
13986else
13987 echo "$ac_err" >&5
13988 echo "configure: failed program was:" >&5
13989 cat conftest.$ac_ext >&5
13990 rm -rf conftest*
13991 eval "ac_cv_header_$ac_safe=no"
13992fi
13993rm -f conftest*
13994fi
13995if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13996 echo "$ac_t""yes" 1>&6
13997 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13998 cat >> confdefs.h <<EOF
13999#define $ac_tr_hdr 1
14000EOF
14001
14002else
14003 echo "$ac_t""no" 1>&6
14004fi
14005done
14006
14007
14008if test "$wxUSE_GUI" = "yes"; then
14009 if test "$wxUSE_UNIX" = "yes"; then
14010 for ac_hdr in X11/XKBlib.h
14011do
14012ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14013echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14014echo "configure:14015: checking for $ac_hdr" >&5
14015if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14016 echo $ac_n "(cached) $ac_c" 1>&6
14017else
14018 cat > conftest.$ac_ext <<EOF
14019#line 14020 "configure"
14020#include "confdefs.h"
14021#include <$ac_hdr>
14022EOF
14023ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14024{ (eval echo configure:14025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14025ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14026if test -z "$ac_err"; then
14027 rm -rf conftest*
14028 eval "ac_cv_header_$ac_safe=yes"
14029else
14030 echo "$ac_err" >&5
14031 echo "configure: failed program was:" >&5
14032 cat conftest.$ac_ext >&5
14033 rm -rf conftest*
14034 eval "ac_cv_header_$ac_safe=no"
14035fi
14036rm -f conftest*
14037fi
14038if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14039 echo "$ac_t""yes" 1>&6
14040 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14041 cat >> confdefs.h <<EOF
14042#define $ac_tr_hdr 1
14043EOF
14044
14045else
14046 echo "$ac_t""no" 1>&6
14047fi
14048done
14049
14050 fi
14051fi
14052
14053
14054echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
14055echo "configure:14056: checking for ANSI C header files" >&5
14056if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
14057 echo $ac_n "(cached) $ac_c" 1>&6
14058else
14059 cat > conftest.$ac_ext <<EOF
14060#line 14061 "configure"
14061#include "confdefs.h"
14062#include <stdlib.h>
14063#include <stdarg.h>
14064#include <string.h>
14065#include <float.h>
14066EOF
14067ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14068{ (eval echo configure:14069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14069ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14070if test -z "$ac_err"; then
14071 rm -rf conftest*
14072 ac_cv_header_stdc=yes
14073else
14074 echo "$ac_err" >&5
14075 echo "configure: failed program was:" >&5
14076 cat conftest.$ac_ext >&5
14077 rm -rf conftest*
14078 ac_cv_header_stdc=no
14079fi
14080rm -f conftest*
14081
14082if test $ac_cv_header_stdc = yes; then
14083 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14084cat > conftest.$ac_ext <<EOF
14085#line 14086 "configure"
14086#include "confdefs.h"
14087#include <string.h>
14088EOF
14089if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14090 egrep "memchr" >/dev/null 2>&1; then
14091 :
14092else
14093 rm -rf conftest*
14094 ac_cv_header_stdc=no
14095fi
14096rm -f conftest*
14097
14098fi
14099
14100if test $ac_cv_header_stdc = yes; then
14101 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14102cat > conftest.$ac_ext <<EOF
14103#line 14104 "configure"
14104#include "confdefs.h"
14105#include <stdlib.h>
14106EOF
14107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14108 egrep "free" >/dev/null 2>&1; then
14109 :
14110else
14111 rm -rf conftest*
14112 ac_cv_header_stdc=no
14113fi
14114rm -f conftest*
14115
14116fi
14117
14118if test $ac_cv_header_stdc = yes; then
14119 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14120if test "$cross_compiling" = yes; then
14121 :
14122else
14123 cat > conftest.$ac_ext <<EOF
14124#line 14125 "configure"
14125#include "confdefs.h"
14126#include <ctype.h>
14127#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14128#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14129#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14130int main () { int i; for (i = 0; i < 256; i++)
14131if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14132exit (0); }
14133
14134EOF
14135if { (eval echo configure:14136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14136then
14137 :
14138else
14139 echo "configure: failed program was:" >&5
14140 cat conftest.$ac_ext >&5
14141 rm -fr conftest*
14142 ac_cv_header_stdc=no
14143fi
14144rm -fr conftest*
14145fi
14146
14147fi
14148fi
14149
14150echo "$ac_t""$ac_cv_header_stdc" 1>&6
14151if test $ac_cv_header_stdc = yes; then
14152 cat >> confdefs.h <<\EOF
14153#define STDC_HEADERS 1
14154EOF
14155
14156fi
14157
14158echo $ac_n "checking for mode_t""... $ac_c" 1>&6
14159echo "configure:14160: checking for mode_t" >&5
14160if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
14161 echo $ac_n "(cached) $ac_c" 1>&6
14162else
14163 cat > conftest.$ac_ext <<EOF
14164#line 14165 "configure"
14165#include "confdefs.h"
14166#include <sys/types.h>
14167#if STDC_HEADERS
14168#include <stdlib.h>
14169#include <stddef.h>
14170#endif
14171EOF
14172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14173 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14174 rm -rf conftest*
14175 ac_cv_type_mode_t=yes
14176else
14177 rm -rf conftest*
14178 ac_cv_type_mode_t=no
14179fi
14180rm -f conftest*
14181
14182fi
14183echo "$ac_t""$ac_cv_type_mode_t" 1>&6
14184if test $ac_cv_type_mode_t = no; then
14185 cat >> confdefs.h <<\EOF
14186#define mode_t int
14187EOF
14188
14189fi
14190
14191echo $ac_n "checking for off_t""... $ac_c" 1>&6
14192echo "configure:14193: checking for off_t" >&5
14193if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
14194 echo $ac_n "(cached) $ac_c" 1>&6
14195else
14196 cat > conftest.$ac_ext <<EOF
14197#line 14198 "configure"
14198#include "confdefs.h"
14199#include <sys/types.h>
14200#if STDC_HEADERS
14201#include <stdlib.h>
14202#include <stddef.h>
14203#endif
14204EOF
14205if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14206 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14207 rm -rf conftest*
14208 ac_cv_type_off_t=yes
14209else
14210 rm -rf conftest*
14211 ac_cv_type_off_t=no
14212fi
14213rm -f conftest*
14214
14215fi
14216echo "$ac_t""$ac_cv_type_off_t" 1>&6
14217if test $ac_cv_type_off_t = no; then
14218 cat >> confdefs.h <<\EOF
14219#define off_t long
14220EOF
14221
14222fi
14223
14224echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14225echo "configure:14226: checking for pid_t" >&5
14226if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
14227 echo $ac_n "(cached) $ac_c" 1>&6
14228else
14229 cat > conftest.$ac_ext <<EOF
14230#line 14231 "configure"
14231#include "confdefs.h"
14232#include <sys/types.h>
14233#if STDC_HEADERS
14234#include <stdlib.h>
14235#include <stddef.h>
14236#endif
14237EOF
14238if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14239 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14240 rm -rf conftest*
14241 ac_cv_type_pid_t=yes
14242else
14243 rm -rf conftest*
14244 ac_cv_type_pid_t=no
14245fi
14246rm -f conftest*
14247
14248fi
14249echo "$ac_t""$ac_cv_type_pid_t" 1>&6
14250if test $ac_cv_type_pid_t = no; then
14251 cat >> confdefs.h <<\EOF
14252#define pid_t int
14253EOF
14254
14255fi
14256
14257echo $ac_n "checking for size_t""... $ac_c" 1>&6
14258echo "configure:14259: checking for size_t" >&5
14259if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
14260 echo $ac_n "(cached) $ac_c" 1>&6
14261else
14262 cat > conftest.$ac_ext <<EOF
14263#line 14264 "configure"
14264#include "confdefs.h"
14265#include <sys/types.h>
14266#if STDC_HEADERS
14267#include <stdlib.h>
14268#include <stddef.h>
14269#endif
14270EOF
14271if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14272 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14273 rm -rf conftest*
14274 ac_cv_type_size_t=yes
14275else
14276 rm -rf conftest*
14277 ac_cv_type_size_t=no
14278fi
14279rm -f conftest*
14280
14281fi
14282echo "$ac_t""$ac_cv_type_size_t" 1>&6
14283if test $ac_cv_type_size_t = no; then
14284 cat >> confdefs.h <<\EOF
14285#define size_t unsigned
14286EOF
14287
14288fi
14289
14290echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14291echo "configure:14292: checking for uid_t in sys/types.h" >&5
14292if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
14293 echo $ac_n "(cached) $ac_c" 1>&6
14294else
14295 cat > conftest.$ac_ext <<EOF
14296#line 14297 "configure"
14297#include "confdefs.h"
14298#include <sys/types.h>
14299EOF
14300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14301 egrep "uid_t" >/dev/null 2>&1; then
14302 rm -rf conftest*
14303 ac_cv_type_uid_t=yes
14304else
14305 rm -rf conftest*
14306 ac_cv_type_uid_t=no
14307fi
14308rm -f conftest*
14309
14310fi
14311
14312echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14313if test $ac_cv_type_uid_t = no; then
14314 cat >> confdefs.h <<\EOF
14315#define uid_t int
14316EOF
14317
14318 cat >> confdefs.h <<\EOF
14319#define gid_t int
14320EOF
14321
14322fi
14323
14324
14325echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
14326echo "configure:14327: checking for wchar_t" >&5
14327if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
14328 echo $ac_n "(cached) $ac_c" 1>&6
14329else
14330
14331 cat > conftest.$ac_ext <<EOF
14332#line 14333 "configure"
14333#include "confdefs.h"
14334
14335 #ifdef HAVE_WCHAR_H
14336 # ifdef __CYGWIN__
14337 # include <stddef.h>
14338 # endif
14339 # include <wchar.h>
14340 #endif
14341 #ifdef HAVE_STDLIB_H
14342 # include <stdlib.h>
14343 #endif
14344
14345int main() {
14346
14347 wchar_t wc, *ws;
14348 wc = L'a';
14349 ws = L"Hello, world!";
14350
14351; return 0; }
14352EOF
14353if { (eval echo configure:14354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14354 rm -rf conftest*
14355 wx_cv_type_wchar_t=yes
14356else
14357 echo "configure: failed program was:" >&5
14358 cat conftest.$ac_ext >&5
14359 rm -rf conftest*
14360 wx_cv_type_wchar_t=no
14361
14362fi
14363rm -f conftest*
14364
14365fi
14366
14367echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
14368
14369if test "$wx_cv_type_wchar_t" = "yes"; then
14370 cat >> confdefs.h <<\EOF
14371#define wxUSE_WCHAR_T 1
14372EOF
14373
14374fi
14375
14376
14377ac_ext=C
14378# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14379ac_cpp='$CXXCPP $CPPFLAGS'
14380ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14381ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14382cross_compiling=$ac_cv_prog_cxx_cross
14383
14384echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
14385echo "configure:14386: checking if size_t is unsigned int" >&5
14386if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
14387 echo $ac_n "(cached) $ac_c" 1>&6
14388else
14389 cat > conftest.$ac_ext <<EOF
14390#line 14391 "configure"
14391#include "confdefs.h"
14392#include <stddef.h>
14393int main() {
14394
14395 return 0; }
14396
14397 struct Foo { void foo(size_t); void foo(unsigned int); };
14398
14399 int bar() {
14400
14401; return 0; }
14402EOF
14403if { (eval echo configure:14404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14404 rm -rf conftest*
14405 wx_cv_size_t_is_uint=no
14406else
14407 echo "configure: failed program was:" >&5
14408 cat conftest.$ac_ext >&5
14409 rm -rf conftest*
14410 wx_cv_size_t_is_uint=yes
14411
14412fi
14413rm -f conftest*
14414
14415fi
14416
14417echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
14418
14419if test "$wx_cv_size_t_is_uint" = "yes"; then
14420 cat >> confdefs.h <<\EOF
14421#define wxSIZE_T_IS_UINT 1
14422EOF
14423
14424else
14425 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
14426echo "configure:14427: checking if size_t is unsigned long" >&5
14427if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
14428 echo $ac_n "(cached) $ac_c" 1>&6
14429else
14430 cat > conftest.$ac_ext <<EOF
14431#line 14432 "configure"
14432#include "confdefs.h"
14433#include <stddef.h>
14434int main() {
14435
14436 return 0; }
14437
14438 struct Foo { void foo(size_t); void foo(unsigned long); };
14439
14440 int bar() {
14441
14442; return 0; }
14443EOF
14444if { (eval echo configure:14445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14445 rm -rf conftest*
14446 wx_cv_size_t_is_ulong=no
14447else
14448 echo "configure: failed program was:" >&5
14449 cat conftest.$ac_ext >&5
14450 rm -rf conftest*
14451 wx_cv_size_t_is_ulong=yes
14452
14453fi
14454rm -f conftest*
14455
14456fi
14457
14458echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
14459
14460 if test "$wx_cv_size_t_is_ulong" = "yes"; then
14461 cat >> confdefs.h <<\EOF
14462#define wxSIZE_T_IS_ULONG 1
14463EOF
14464
14465 fi
14466fi
14467
14468ac_ext=c
14469# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14470ac_cpp='$CPP $CPPFLAGS'
14471ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14472ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14473cross_compiling=$ac_cv_prog_cc_cross
14474
14475
14476
14477echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
14478echo "configure:14479: checking for pw_gecos in struct passwd" >&5
14479if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
14480 echo $ac_n "(cached) $ac_c" 1>&6
14481else
14482
14483 cat > conftest.$ac_ext <<EOF
14484#line 14485 "configure"
14485#include "confdefs.h"
14486#include <pwd.h>
14487int main() {
14488
14489 char *p;
14490 struct passwd *pw;
14491 p = pw->pw_gecos;
14492
14493; return 0; }
14494EOF
14495if { (eval echo configure:14496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14496 rm -rf conftest*
14497
14498 wx_cv_struct_pw_gecos=yes
14499
14500else
14501 echo "configure: failed program was:" >&5
14502 cat conftest.$ac_ext >&5
14503 rm -rf conftest*
14504
14505 wx_cv_struct_pw_gecos=no
14506
14507
14508fi
14509rm -f conftest*
14510
14511
14512fi
14513
14514echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
14515
14516if test "$wx_cv_struct_pw_gecos" = "yes"; then
14517 cat >> confdefs.h <<\EOF
14518#define HAVE_PW_GECOS 1
14519EOF
14520
14521fi
14522
14523
14524echo $ac_n "checking for working const""... $ac_c" 1>&6
14525echo "configure:14526: checking for working const" >&5
14526if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
14527 echo $ac_n "(cached) $ac_c" 1>&6
14528else
14529 cat > conftest.$ac_ext <<EOF
14530#line 14531 "configure"
14531#include "confdefs.h"
14532
14533int main() {
14534
14535/* Ultrix mips cc rejects this. */
14536typedef int charset[2]; const charset x;
14537/* SunOS 4.1.1 cc rejects this. */
14538char const *const *ccp;
14539char **p;
14540/* NEC SVR4.0.2 mips cc rejects this. */
14541struct point {int x, y;};
14542static struct point const zero = {0,0};
14543/* AIX XL C 1.02.0.0 rejects this.
14544 It does not let you subtract one const X* pointer from another in an arm
14545 of an if-expression whose if-part is not a constant expression */
14546const char *g = "string";
14547ccp = &g + (g ? g-g : 0);
14548/* HPUX 7.0 cc rejects these. */
14549++ccp;
14550p = (char**) ccp;
14551ccp = (char const *const *) p;
14552{ /* SCO 3.2v4 cc rejects this. */
14553 char *t;
14554 char const *s = 0 ? (char *) 0 : (char const *) 0;
14555
14556 *t++ = 0;
14557}
14558{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14559 int x[] = {25, 17};
14560 const int *foo = &x[0];
14561 ++foo;
14562}
14563{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14564 typedef const int *iptr;
14565 iptr p = 0;
14566 ++p;
14567}
14568{ /* AIX XL C 1.02.0.0 rejects this saying
14569 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14570 struct s { int j; const int *ap[3]; };
14571 struct s *b; b->j = 5;
14572}
14573{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14574 const int foo = 10;
14575}
14576
14577; return 0; }
14578EOF
14579if { (eval echo configure:14580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14580 rm -rf conftest*
14581 ac_cv_c_const=yes
14582else
14583 echo "configure: failed program was:" >&5
14584 cat conftest.$ac_ext >&5
14585 rm -rf conftest*
14586 ac_cv_c_const=no
14587fi
14588rm -f conftest*
14589fi
14590
14591echo "$ac_t""$ac_cv_c_const" 1>&6
14592if test $ac_cv_c_const = no; then
14593 cat >> confdefs.h <<\EOF
14594#define const
14595EOF
14596
14597fi
14598
14599echo $ac_n "checking for inline""... $ac_c" 1>&6
14600echo "configure:14601: checking for inline" >&5
14601if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
14602 echo $ac_n "(cached) $ac_c" 1>&6
14603else
14604 ac_cv_c_inline=no
14605for ac_kw in inline __inline__ __inline; do
14606 cat > conftest.$ac_ext <<EOF
14607#line 14608 "configure"
14608#include "confdefs.h"
14609
14610int main() {
14611} $ac_kw foo() {
14612; return 0; }
14613EOF
14614if { (eval echo configure:14615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14615 rm -rf conftest*
14616 ac_cv_c_inline=$ac_kw; break
14617else
14618 echo "configure: failed program was:" >&5
14619 cat conftest.$ac_ext >&5
14620fi
14621rm -f conftest*
14622done
14623
14624fi
14625
14626echo "$ac_t""$ac_cv_c_inline" 1>&6
14627case "$ac_cv_c_inline" in
14628 inline | yes) ;;
14629 no) cat >> confdefs.h <<\EOF
14630#define inline
14631EOF
14632 ;;
14633 *) cat >> confdefs.h <<EOF
14634#define inline $ac_cv_c_inline
14635EOF
14636 ;;
14637esac
14638
14639
14640echo $ac_n "checking size of char""... $ac_c" 1>&6
14641echo "configure:14642: checking size of char" >&5
14642if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
14643 echo $ac_n "(cached) $ac_c" 1>&6
14644else
14645 if test "$cross_compiling" = yes; then
14646 ac_cv_sizeof_char=1
14647else
14648 cat > conftest.$ac_ext <<EOF
14649#line 14650 "configure"
14650#include "confdefs.h"
14651#include <stdio.h>
14652main()
14653{
14654 FILE *f=fopen("conftestval", "w");
14655 if (!f) exit(1);
14656 fprintf(f, "%d\n", sizeof(char));
14657 exit(0);
14658}
14659EOF
14660if { (eval echo configure:14661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14661then
14662 ac_cv_sizeof_char=`cat conftestval`
14663else
14664 echo "configure: failed program was:" >&5
14665 cat conftest.$ac_ext >&5
14666 rm -fr conftest*
14667 ac_cv_sizeof_char=0
14668fi
14669rm -fr conftest*
14670fi
14671
14672fi
14673echo "$ac_t""$ac_cv_sizeof_char" 1>&6
14674cat >> confdefs.h <<EOF
14675#define SIZEOF_CHAR $ac_cv_sizeof_char
14676EOF
14677
14678
14679echo $ac_n "checking size of short""... $ac_c" 1>&6
14680echo "configure:14681: checking size of short" >&5
14681if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
14682 echo $ac_n "(cached) $ac_c" 1>&6
14683else
14684 if test "$cross_compiling" = yes; then
14685 ac_cv_sizeof_short=2
14686else
14687 cat > conftest.$ac_ext <<EOF
14688#line 14689 "configure"
14689#include "confdefs.h"
14690#include <stdio.h>
14691main()
14692{
14693 FILE *f=fopen("conftestval", "w");
14694 if (!f) exit(1);
14695 fprintf(f, "%d\n", sizeof(short));
14696 exit(0);
14697}
14698EOF
14699if { (eval echo configure:14700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14700then
14701 ac_cv_sizeof_short=`cat conftestval`
14702else
14703 echo "configure: failed program was:" >&5
14704 cat conftest.$ac_ext >&5
14705 rm -fr conftest*
14706 ac_cv_sizeof_short=0
14707fi
14708rm -fr conftest*
14709fi
14710
14711fi
14712echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14713cat >> confdefs.h <<EOF
14714#define SIZEOF_SHORT $ac_cv_sizeof_short
14715EOF
14716
14717
14718echo $ac_n "checking size of int *""... $ac_c" 1>&6
14719echo "configure:14720: checking size of int *" >&5
14720if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
14721 echo $ac_n "(cached) $ac_c" 1>&6
14722else
14723 if test "$cross_compiling" = yes; then
14724 ac_cv_sizeof_int_p=4
14725else
14726 cat > conftest.$ac_ext <<EOF
14727#line 14728 "configure"
14728#include "confdefs.h"
14729#include <stdio.h>
14730main()
14731{
14732 FILE *f=fopen("conftestval", "w");
14733 if (!f) exit(1);
14734 fprintf(f, "%d\n", sizeof(int *));
14735 exit(0);
14736}
14737EOF
14738if { (eval echo configure:14739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14739then
14740 ac_cv_sizeof_int_p=`cat conftestval`
14741else
14742 echo "configure: failed program was:" >&5
14743 cat conftest.$ac_ext >&5
14744 rm -fr conftest*
14745 ac_cv_sizeof_int_p=0
14746fi
14747rm -fr conftest*
14748fi
14749
14750fi
14751echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
14752cat >> confdefs.h <<EOF
14753#define SIZEOF_INT_P $ac_cv_sizeof_int_p
14754EOF
14755
14756
14757echo $ac_n "checking size of int""... $ac_c" 1>&6
14758echo "configure:14759: checking size of int" >&5
14759if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
14760 echo $ac_n "(cached) $ac_c" 1>&6
14761else
14762 if test "$cross_compiling" = yes; then
14763 ac_cv_sizeof_int=4
14764else
14765 cat > conftest.$ac_ext <<EOF
14766#line 14767 "configure"
14767#include "confdefs.h"
14768#include <stdio.h>
14769main()
14770{
14771 FILE *f=fopen("conftestval", "w");
14772 if (!f) exit(1);
14773 fprintf(f, "%d\n", sizeof(int));
14774 exit(0);
14775}
14776EOF
14777if { (eval echo configure:14778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14778then
14779 ac_cv_sizeof_int=`cat conftestval`
14780else
14781 echo "configure: failed program was:" >&5
14782 cat conftest.$ac_ext >&5
14783 rm -fr conftest*
14784 ac_cv_sizeof_int=0
14785fi
14786rm -fr conftest*
14787fi
14788
14789fi
14790echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14791cat >> confdefs.h <<EOF
14792#define SIZEOF_INT $ac_cv_sizeof_int
14793EOF
14794
14795
14796echo $ac_n "checking size of long""... $ac_c" 1>&6
14797echo "configure:14798: checking size of long" >&5
14798if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
14799 echo $ac_n "(cached) $ac_c" 1>&6
14800else
14801 if test "$cross_compiling" = yes; then
14802 ac_cv_sizeof_long=4
14803else
14804 cat > conftest.$ac_ext <<EOF
14805#line 14806 "configure"
14806#include "confdefs.h"
14807#include <stdio.h>
14808main()
14809{
14810 FILE *f=fopen("conftestval", "w");
14811 if (!f) exit(1);
14812 fprintf(f, "%d\n", sizeof(long));
14813 exit(0);
14814}
14815EOF
14816if { (eval echo configure:14817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14817then
14818 ac_cv_sizeof_long=`cat conftestval`
14819else
14820 echo "configure: failed program was:" >&5
14821 cat conftest.$ac_ext >&5
14822 rm -fr conftest*
14823 ac_cv_sizeof_long=0
14824fi
14825rm -fr conftest*
14826fi
14827
14828fi
14829echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14830cat >> confdefs.h <<EOF
14831#define SIZEOF_LONG $ac_cv_sizeof_long
14832EOF
14833
14834
14835echo $ac_n "checking size of long long""... $ac_c" 1>&6
14836echo "configure:14837: checking size of long long" >&5
14837if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
14838 echo $ac_n "(cached) $ac_c" 1>&6
14839else
14840 if test "$cross_compiling" = yes; then
14841 ac_cv_sizeof_long_long=0
14842else
14843 cat > conftest.$ac_ext <<EOF
14844#line 14845 "configure"
14845#include "confdefs.h"
14846#include <stdio.h>
14847main()
14848{
14849 FILE *f=fopen("conftestval", "w");
14850 if (!f) exit(1);
14851 fprintf(f, "%d\n", sizeof(long long));
14852 exit(0);
14853}
14854EOF
14855if { (eval echo configure:14856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14856then
14857 ac_cv_sizeof_long_long=`cat conftestval`
14858else
14859 echo "configure: failed program was:" >&5
14860 cat conftest.$ac_ext >&5
14861 rm -fr conftest*
14862 ac_cv_sizeof_long_long=0
14863fi
14864rm -fr conftest*
14865fi
14866
14867fi
14868echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
14869cat >> confdefs.h <<EOF
14870#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14871EOF
14872
14873
14874
14875echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
14876echo "configure:14877: checking size of wchar_t" >&5
14877if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
14878 echo $ac_n "(cached) $ac_c" 1>&6
14879else
14880
14881 if test "$cross_compiling" = yes; then
14882 wx_cv_sizeof_wchar_t=4
14883
14884else
14885 cat > conftest.$ac_ext <<EOF
14886#line 14887 "configure"
14887#include "confdefs.h"
14888
14889 #ifdef HAVE_WCHAR_H
14890 # ifdef __CYGWIN__
14891 # include <stddef.h>
14892 # endif
14893 # include <wchar.h>
14894 #endif
14895 #ifdef HAVE_STDLIB_H
14896 # include <stdlib.h>
14897 #endif
14898 #include <stdio.h>
14899 int main()
14900 {
14901 FILE *f=fopen("conftestval", "w");
14902 if (!f) exit(1);
14903 fprintf(f, "%i", sizeof(wchar_t));
14904 exit(0);
14905 }
14906
14907EOF
14908if { (eval echo configure:14909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14909then
14910 wx_cv_sizeof_wchar_t=`cat conftestval`
14911else
14912 echo "configure: failed program was:" >&5
14913 cat conftest.$ac_ext >&5
14914 rm -fr conftest*
14915 wx_cv_sizeof_wchar_t=0
14916fi
14917rm -fr conftest*
14918fi
14919
14920
14921fi
14922
14923echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
14924
14925cat >> confdefs.h <<EOF
14926#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
14927EOF
14928
14929
14930echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14931echo "configure:14932: checking whether byte ordering is bigendian" >&5
14932if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
14933 echo $ac_n "(cached) $ac_c" 1>&6
14934else
14935 ac_cv_c_bigendian=unknown
14936# See if sys/param.h defines the BYTE_ORDER macro.
14937cat > conftest.$ac_ext <<EOF
14938#line 14939 "configure"
14939#include "confdefs.h"
14940#include <sys/types.h>
14941#include <sys/param.h>
14942int main() {
14943
14944#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14945 bogus endian macros
14946#endif
14947; return 0; }
14948EOF
14949if { (eval echo configure:14950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14950 rm -rf conftest*
14951 # It does; now see whether it defined to BIG_ENDIAN or not.
14952cat > conftest.$ac_ext <<EOF
14953#line 14954 "configure"
14954#include "confdefs.h"
14955#include <sys/types.h>
14956#include <sys/param.h>
14957int main() {
14958
14959#if BYTE_ORDER != BIG_ENDIAN
14960 not big endian
14961#endif
14962; return 0; }
14963EOF
14964if { (eval echo configure:14965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14965 rm -rf conftest*
14966 ac_cv_c_bigendian=yes
14967else
14968 echo "configure: failed program was:" >&5
14969 cat conftest.$ac_ext >&5
14970 rm -rf conftest*
14971 ac_cv_c_bigendian=no
14972fi
14973rm -f conftest*
14974else
14975 echo "configure: failed program was:" >&5
14976 cat conftest.$ac_ext >&5
14977fi
14978rm -f conftest*
14979if test $ac_cv_c_bigendian = unknown; then
14980if test "$cross_compiling" = yes; then
14981 ac_cv_c_bigendian=unknown
14982else
14983 cat > conftest.$ac_ext <<EOF
14984#line 14985 "configure"
14985#include "confdefs.h"
14986main () {
14987 /* Are we little or big endian? From Harbison&Steele. */
14988 union
14989 {
14990 long l;
14991 char c[sizeof (long)];
14992 } u;
14993 u.l = 1;
14994 exit (u.c[sizeof (long) - 1] == 1);
14995}
14996EOF
14997if { (eval echo configure:14998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14998then
14999 ac_cv_c_bigendian=no
15000else
15001 echo "configure: failed program was:" >&5
15002 cat conftest.$ac_ext >&5
15003 rm -fr conftest*
15004 ac_cv_c_bigendian=yes
15005fi
15006rm -fr conftest*
15007fi
15008
15009fi
15010fi
15011
15012echo "$ac_t""$ac_cv_c_bigendian" 1>&6
15013if test $ac_cv_c_bigendian = unknown; then
15014 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
15015fi
15016if test $ac_cv_c_bigendian = yes; then
15017 cat >> confdefs.h <<\EOF
15018#define WORDS_BIGENDIAN 1
15019EOF
15020
15021fi
15022
15023
15024echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
15025echo "configure:15026: checking how to run the C++ preprocessor" >&5
15026if test -z "$CXXCPP"; then
15027if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
15028 echo $ac_n "(cached) $ac_c" 1>&6
15029else
15030 ac_ext=C
15031# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15032ac_cpp='$CXXCPP $CPPFLAGS'
15033ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15034ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15035cross_compiling=$ac_cv_prog_cxx_cross
15036 CXXCPP="${CXX-g++} -E"
15037 cat > conftest.$ac_ext <<EOF
15038#line 15039 "configure"
15039#include "confdefs.h"
15040#include <stdlib.h>
15041EOF
15042ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15043{ (eval echo configure:15044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15044ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15045if test -z "$ac_err"; then
15046 :
15047else
15048 echo "$ac_err" >&5
15049 echo "configure: failed program was:" >&5
15050 cat conftest.$ac_ext >&5
15051 rm -rf conftest*
15052 CXXCPP=/lib/cpp
15053fi
15054rm -f conftest*
15055 ac_cv_prog_CXXCPP="$CXXCPP"
15056ac_ext=C
15057# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15058ac_cpp='$CXXCPP $CPPFLAGS'
15059ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15060ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15061cross_compiling=$ac_cv_prog_cxx_cross
15062fi
15063fi
15064CXXCPP="$ac_cv_prog_CXXCPP"
15065echo "$ac_t""$CXXCPP" 1>&6
15066
15067
15068 if test "$cross_compiling" = "yes"; then
15069 cat >> confdefs.h <<\EOF
15070#define wxUSE_IOSTREAMH 1
15071EOF
15072
15073 else
15074
15075 ac_ext=C
15076# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15077ac_cpp='$CXXCPP $CPPFLAGS'
15078ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15079ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15080cross_compiling=$ac_cv_prog_cxx_cross
15081
15082
15083 for ac_hdr in iostream
15084do
15085ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15086echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15087echo "configure:15088: checking for $ac_hdr" >&5
15088if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15089 echo $ac_n "(cached) $ac_c" 1>&6
15090else
15091 cat > conftest.$ac_ext <<EOF
15092#line 15093 "configure"
15093#include "confdefs.h"
15094#include <$ac_hdr>
15095EOF
15096ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15097{ (eval echo configure:15098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15098ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15099if test -z "$ac_err"; then
15100 rm -rf conftest*
15101 eval "ac_cv_header_$ac_safe=yes"
15102else
15103 echo "$ac_err" >&5
15104 echo "configure: failed program was:" >&5
15105 cat conftest.$ac_ext >&5
15106 rm -rf conftest*
15107 eval "ac_cv_header_$ac_safe=no"
15108fi
15109rm -f conftest*
15110fi
15111if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15112 echo "$ac_t""yes" 1>&6
15113 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15114 cat >> confdefs.h <<EOF
15115#define $ac_tr_hdr 1
15116EOF
15117
15118else
15119 echo "$ac_t""no" 1>&6
15120fi
15121done
15122
15123
15124 if test "$ac_cv_header_iostream" = "yes" ; then
15125 :
15126 else
15127 cat >> confdefs.h <<\EOF
15128#define wxUSE_IOSTREAMH 1
15129EOF
15130
15131 fi
15132
15133 ac_ext=c
15134# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15135ac_cpp='$CPP $CPPFLAGS'
15136ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15137ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15138cross_compiling=$ac_cv_prog_cc_cross
15139
15140 fi
15141
15142
15143
15144 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
15145echo "configure:15146: checking if C++ compiler supports bool" >&5
15146if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
15147 echo $ac_n "(cached) $ac_c" 1>&6
15148else
15149
15150
15151 ac_ext=C
15152# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15153ac_cpp='$CXXCPP $CPPFLAGS'
15154ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15155ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15156cross_compiling=$ac_cv_prog_cxx_cross
15157
15158
15159 cat > conftest.$ac_ext <<EOF
15160#line 15161 "configure"
15161#include "confdefs.h"
15162
15163
15164int main() {
15165
15166 bool b = true;
15167
15168 return 0;
15169
15170; return 0; }
15171EOF
15172if { (eval echo configure:15173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15173 rm -rf conftest*
15174
15175 wx_cv_cpp_bool=yes
15176
15177else
15178 echo "configure: failed program was:" >&5
15179 cat conftest.$ac_ext >&5
15180 rm -rf conftest*
15181
15182 wx_cv_cpp_bool=no
15183
15184
15185fi
15186rm -f conftest*
15187
15188 ac_ext=c
15189# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15190ac_cpp='$CPP $CPPFLAGS'
15191ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15192ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15193cross_compiling=$ac_cv_prog_cc_cross
15194
15195
15196fi
15197
15198echo "$ac_t""$wx_cv_cpp_bool" 1>&6
15199
15200 if test "$wx_cv_cpp_bool" = "yes"; then
15201 cat >> confdefs.h <<\EOF
15202#define HAVE_BOOL 1
15203EOF
15204
15205 fi
15206
15207
15208
15209echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
15210echo "configure:15211: checking for wcslen in -lc" >&5
15211ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
15212if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15213 echo $ac_n "(cached) $ac_c" 1>&6
15214else
15215 ac_save_LIBS="$LIBS"
15216LIBS="-lc $LIBS"
15217cat > conftest.$ac_ext <<EOF
15218#line 15219 "configure"
15219#include "confdefs.h"
15220/* Override any gcc2 internal prototype to avoid an error. */
15221/* We use char because int might match the return type of a gcc2
15222 builtin and then its argument prototype would still apply. */
15223char wcslen();
15224
15225int main() {
15226wcslen()
15227; return 0; }
15228EOF
15229if { (eval echo configure:15230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15230 rm -rf conftest*
15231 eval "ac_cv_lib_$ac_lib_var=yes"
15232else
15233 echo "configure: failed program was:" >&5
15234 cat conftest.$ac_ext >&5
15235 rm -rf conftest*
15236 eval "ac_cv_lib_$ac_lib_var=no"
15237fi
15238rm -f conftest*
15239LIBS="$ac_save_LIBS"
15240
15241fi
15242if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15243 echo "$ac_t""yes" 1>&6
15244
15245 cat >> confdefs.h <<\EOF
15246#define HAVE_WCSLEN 1
15247EOF
15248
15249 WCHAR_LINK=
15250
15251else
15252 echo "$ac_t""no" 1>&6
15253
15254 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
15255echo "configure:15256: checking for wcslen in -lw" >&5
15256ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
15257if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15258 echo $ac_n "(cached) $ac_c" 1>&6
15259else
15260 ac_save_LIBS="$LIBS"
15261LIBS="-lw $LIBS"
15262cat > conftest.$ac_ext <<EOF
15263#line 15264 "configure"
15264#include "confdefs.h"
15265/* Override any gcc2 internal prototype to avoid an error. */
15266/* We use char because int might match the return type of a gcc2
15267 builtin and then its argument prototype would still apply. */
15268char wcslen();
15269
15270int main() {
15271wcslen()
15272; return 0; }
15273EOF
15274if { (eval echo configure:15275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15275 rm -rf conftest*
15276 eval "ac_cv_lib_$ac_lib_var=yes"
15277else
15278 echo "configure: failed program was:" >&5
15279 cat conftest.$ac_ext >&5
15280 rm -rf conftest*
15281 eval "ac_cv_lib_$ac_lib_var=no"
15282fi
15283rm -f conftest*
15284LIBS="$ac_save_LIBS"
15285
15286fi
15287if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15288 echo "$ac_t""yes" 1>&6
15289
15290 cat >> confdefs.h <<\EOF
15291#define HAVE_WCSLEN 1
15292EOF
15293
15294 WCHAR_LINK=" -lw"
15295
15296else
15297 echo "$ac_t""no" 1>&6
15298
15299 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
15300echo "configure:15301: checking for wcslen in -lmsvcrt" >&5
15301ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
15302if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15303 echo $ac_n "(cached) $ac_c" 1>&6
15304else
15305 ac_save_LIBS="$LIBS"
15306LIBS="-lmsvcrt $LIBS"
15307cat > conftest.$ac_ext <<EOF
15308#line 15309 "configure"
15309#include "confdefs.h"
15310/* Override any gcc2 internal prototype to avoid an error. */
15311/* We use char because int might match the return type of a gcc2
15312 builtin and then its argument prototype would still apply. */
15313char wcslen();
15314
15315int main() {
15316wcslen()
15317; return 0; }
15318EOF
15319if { (eval echo configure:15320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15320 rm -rf conftest*
15321 eval "ac_cv_lib_$ac_lib_var=yes"
15322else
15323 echo "configure: failed program was:" >&5
15324 cat conftest.$ac_ext >&5
15325 rm -rf conftest*
15326 eval "ac_cv_lib_$ac_lib_var=no"
15327fi
15328rm -f conftest*
15329LIBS="$ac_save_LIBS"
15330
15331fi
15332if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15333 echo "$ac_t""yes" 1>&6
15334
15335 cat >> confdefs.h <<\EOF
15336#define HAVE_WCSLEN 1
15337EOF
15338
15339 WCHAR_LINK=
15340
15341else
15342 echo "$ac_t""no" 1>&6
15343fi
15344
15345
15346fi
15347
15348
15349fi
15350
15351
15352for ac_func in wcsrtombs
15353do
15354echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15355echo "configure:15356: checking for $ac_func" >&5
15356if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15357 echo $ac_n "(cached) $ac_c" 1>&6
15358else
15359 cat > conftest.$ac_ext <<EOF
15360#line 15361 "configure"
15361#include "confdefs.h"
15362/* System header to define __stub macros and hopefully few prototypes,
15363 which can conflict with char $ac_func(); below. */
15364#include <assert.h>
15365/* Override any gcc2 internal prototype to avoid an error. */
15366/* We use char because int might match the return type of a gcc2
15367 builtin and then its argument prototype would still apply. */
15368char $ac_func();
15369
15370int main() {
15371
15372/* The GNU C library defines this for functions which it implements
15373 to always fail with ENOSYS. Some functions are actually named
15374 something starting with __ and the normal name is an alias. */
15375#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15376choke me
15377#else
15378$ac_func();
15379#endif
15380
15381; return 0; }
15382EOF
15383if { (eval echo configure:15384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15384 rm -rf conftest*
15385 eval "ac_cv_func_$ac_func=yes"
15386else
15387 echo "configure: failed program was:" >&5
15388 cat conftest.$ac_ext >&5
15389 rm -rf conftest*
15390 eval "ac_cv_func_$ac_func=no"
15391fi
15392rm -f conftest*
15393fi
15394
15395if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15396 echo "$ac_t""yes" 1>&6
15397 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15398 cat >> confdefs.h <<EOF
15399#define $ac_tr_func 1
15400EOF
15401
15402else
15403 echo "$ac_t""no" 1>&6
15404fi
15405done
15406
15407
15408echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15409echo "configure:15410: checking for vprintf" >&5
15410if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
15411 echo $ac_n "(cached) $ac_c" 1>&6
15412else
15413 cat > conftest.$ac_ext <<EOF
15414#line 15415 "configure"
15415#include "confdefs.h"
15416/* System header to define __stub macros and hopefully few prototypes,
15417 which can conflict with char vprintf(); below. */
15418#include <assert.h>
15419/* Override any gcc2 internal prototype to avoid an error. */
15420/* We use char because int might match the return type of a gcc2
15421 builtin and then its argument prototype would still apply. */
15422char vprintf();
15423
15424int main() {
15425
15426/* The GNU C library defines this for functions which it implements
15427 to always fail with ENOSYS. Some functions are actually named
15428 something starting with __ and the normal name is an alias. */
15429#if defined (__stub_vprintf) || defined (__stub___vprintf)
15430choke me
15431#else
15432vprintf();
15433#endif
15434
15435; return 0; }
15436EOF
15437if { (eval echo configure:15438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15438 rm -rf conftest*
15439 eval "ac_cv_func_vprintf=yes"
15440else
15441 echo "configure: failed program was:" >&5
15442 cat conftest.$ac_ext >&5
15443 rm -rf conftest*
15444 eval "ac_cv_func_vprintf=no"
15445fi
15446rm -f conftest*
15447fi
15448
15449if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15450 echo "$ac_t""yes" 1>&6
15451 cat >> confdefs.h <<\EOF
15452#define HAVE_VPRINTF 1
15453EOF
15454
15455else
15456 echo "$ac_t""no" 1>&6
15457fi
15458
15459if test "$ac_cv_func_vprintf" != yes; then
15460echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15461echo "configure:15462: checking for _doprnt" >&5
15462if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
15463 echo $ac_n "(cached) $ac_c" 1>&6
15464else
15465 cat > conftest.$ac_ext <<EOF
15466#line 15467 "configure"
15467#include "confdefs.h"
15468/* System header to define __stub macros and hopefully few prototypes,
15469 which can conflict with char _doprnt(); below. */
15470#include <assert.h>
15471/* Override any gcc2 internal prototype to avoid an error. */
15472/* We use char because int might match the return type of a gcc2
15473 builtin and then its argument prototype would still apply. */
15474char _doprnt();
15475
15476int main() {
15477
15478/* The GNU C library defines this for functions which it implements
15479 to always fail with ENOSYS. Some functions are actually named
15480 something starting with __ and the normal name is an alias. */
15481#if defined (__stub__doprnt) || defined (__stub____doprnt)
15482choke me
15483#else
15484_doprnt();
15485#endif
15486
15487; return 0; }
15488EOF
15489if { (eval echo configure:15490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15490 rm -rf conftest*
15491 eval "ac_cv_func__doprnt=yes"
15492else
15493 echo "configure: failed program was:" >&5
15494 cat conftest.$ac_ext >&5
15495 rm -rf conftest*
15496 eval "ac_cv_func__doprnt=no"
15497fi
15498rm -f conftest*
15499fi
15500
15501if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15502 echo "$ac_t""yes" 1>&6
15503 cat >> confdefs.h <<\EOF
15504#define HAVE_DOPRNT 1
15505EOF
15506
15507else
15508 echo "$ac_t""no" 1>&6
15509fi
15510
15511fi
15512
15513
15514
15515
15516
15517
15518echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
15519echo "configure:15520: checking for vsnprintf" >&5
15520if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
15521 echo $ac_n "(cached) $ac_c" 1>&6
15522else
15523
15524 cat > conftest.$ac_ext <<EOF
15525#line 15526 "configure"
15526#include "confdefs.h"
15527
15528 #include <stdio.h>
15529 #include <stdarg.h>
15530
15531int main() {
15532
15533 int wx_test_vsnprintf(const char *, ...);
15534
15535 wx_test_vsnprintf("%s");
15536 return 0;
15537 }
15538
15539 int wx_test_vsnprintf(const char *fmt, ...)
15540 {
15541 char *s;
15542
15543 va_list argp;
15544 va_start(argp, fmt);
15545 vsnprintf(s, 42, fmt, argp);
15546 va_end(argp);
15547
15548; return 0; }
15549EOF
15550if { (eval echo configure:15551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15551 rm -rf conftest*
15552
15553 wx_cv_func_vsnprintf=yes
15554
15555else
15556 echo "configure: failed program was:" >&5
15557 cat conftest.$ac_ext >&5
15558 rm -rf conftest*
15559
15560 cat > conftest.$ac_ext <<EOF
15561#line 15562 "configure"
15562#include "confdefs.h"
15563
15564 #include <stdio.h>
15565 #include <stdarg.h>
15566
15567int main() {
15568
15569 int wx_test_vsnprintf(const char *, ...);
15570
15571 wx_test_vsnprintf("%s");
15572 return 0;
15573 }
15574
15575 int wx_test_vsnprintf(const char *fmt, ...)
15576 {
15577 char *s;
15578
15579 va_list argp;
15580 va_start(argp, fmt);
15581 _vsnprintf(s, 42, fmt, argp);
15582 va_end(argp);
15583
15584; return 0; }
15585EOF
15586if { (eval echo configure:15587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15587 rm -rf conftest*
15588
15589 wx_cv_func_vsnprintf=yes
15590
15591else
15592 echo "configure: failed program was:" >&5
15593 cat conftest.$ac_ext >&5
15594 rm -rf conftest*
15595
15596 wx_cv_func_vsnprintf=no
15597
15598fi
15599rm -f conftest*
15600
15601fi
15602rm -f conftest*
15603
15604fi
15605
15606echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
15607
15608if test "$wx_cv_func_vsnprintf" = yes; then
15609 cat >> confdefs.h <<\EOF
15610#define HAVE_VSNPRINTF 1
15611EOF
15612
15613else
15614 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
15615fi
15616
15617echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
15618echo "configure:15619: checking for vsscanf" >&5
15619if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
15620 echo $ac_n "(cached) $ac_c" 1>&6
15621else
15622
15623 cat > conftest.$ac_ext <<EOF
15624#line 15625 "configure"
15625#include "confdefs.h"
15626
15627 #include <stdio.h>
15628 #include <stdarg.h>
15629
15630int main() {
15631
15632 int wx_test_vsscanf(const char *, ...);
15633
15634 wx_test_vsscanf("%d");
15635 return 0;
15636 }
15637
15638 int wx_test_vsscanf(const char *fmt, ...)
15639 {
15640 va_list argp;
15641 va_start(argp, fmt);
15642 vsscanf("42", fmt, argp);
15643 va_end(argp);
15644
15645; return 0; }
15646EOF
15647if { (eval echo configure:15648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15648 rm -rf conftest*
15649
15650 wx_cv_func_vsscanf=yes
15651
15652else
15653 echo "configure: failed program was:" >&5
15654 cat conftest.$ac_ext >&5
15655 rm -rf conftest*
15656
15657 wx_cv_func_vsscanf=no
15658
15659fi
15660rm -f conftest*
15661
15662fi
15663
15664echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
15665
15666if test "$wx_cv_func_vsscanf" = yes; then
15667 cat >> confdefs.h <<\EOF
15668#define HAVE_VSSCANF 1
15669EOF
15670
15671fi
15672
15673if test "$TOOLKIT" != "MSW"; then
15674
15675
15676
15677ac_ext=C
15678# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15679ac_cpp='$CXXCPP $CPPFLAGS'
15680ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15681ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15682cross_compiling=$ac_cv_prog_cxx_cross
15683
15684
15685
15686 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15687if test "${with_libiconv_prefix+set}" = set; then
15688 withval="$with_libiconv_prefix"
15689
15690 for dir in `echo "$withval" | tr : ' '`; do
15691 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
15692 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
15693 done
15694
15695fi
15696
15697
15698 echo $ac_n "checking for iconv""... $ac_c" 1>&6
15699echo "configure:15700: checking for iconv" >&5
15700if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
15701 echo $ac_n "(cached) $ac_c" 1>&6
15702else
15703
15704 am_cv_func_iconv="no, consider installing GNU libiconv"
15705 am_cv_lib_iconv=no
15706 cat > conftest.$ac_ext <<EOF
15707#line 15708 "configure"
15708#include "confdefs.h"
15709#include <stdlib.h>
15710#include <iconv.h>
15711int main() {
15712iconv_t cd = iconv_open("","");
15713 iconv(cd,NULL,NULL,NULL,NULL);
15714 iconv_close(cd);
15715; return 0; }
15716EOF
15717if { (eval echo configure:15718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15718 rm -rf conftest*
15719 am_cv_func_iconv=yes
15720else
15721 echo "configure: failed program was:" >&5
15722 cat conftest.$ac_ext >&5
15723fi
15724rm -f conftest*
15725 if test "$am_cv_func_iconv" != yes; then
15726 am_save_LIBS="$LIBS"
15727 LIBS="$LIBS -liconv"
15728 cat > conftest.$ac_ext <<EOF
15729#line 15730 "configure"
15730#include "confdefs.h"
15731#include <stdlib.h>
15732#include <iconv.h>
15733int main() {
15734iconv_t cd = iconv_open("","");
15735 iconv(cd,NULL,NULL,NULL,NULL);
15736 iconv_close(cd);
15737; return 0; }
15738EOF
15739if { (eval echo configure:15740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15740 rm -rf conftest*
15741 am_cv_lib_iconv=yes
15742 am_cv_func_iconv=yes
15743else
15744 echo "configure: failed program was:" >&5
15745 cat conftest.$ac_ext >&5
15746fi
15747rm -f conftest*
15748 LIBS="$am_save_LIBS"
15749 fi
15750
15751fi
15752
15753echo "$ac_t""$am_cv_func_iconv" 1>&6
15754 if test "$am_cv_func_iconv" = yes; then
15755 cat >> confdefs.h <<\EOF
15756#define HAVE_ICONV 1
15757EOF
15758
15759 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
15760echo "configure:15761: checking if iconv needs const" >&5
15761if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
15762 echo $ac_n "(cached) $ac_c" 1>&6
15763else
15764 cat > conftest.$ac_ext <<EOF
15765#line 15766 "configure"
15766#include "confdefs.h"
15767
15768#include <stdlib.h>
15769#include <iconv.h>
15770extern
15771#ifdef __cplusplus
15772"C"
15773#endif
15774#if defined(__STDC__) || defined(__cplusplus)
15775size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15776#else
15777size_t iconv();
15778#endif
15779
15780int main() {
15781
15782; return 0; }
15783EOF
15784if { (eval echo configure:15785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15785 rm -rf conftest*
15786 wx_cv_func_iconv_const="no"
15787else
15788 echo "configure: failed program was:" >&5
15789 cat conftest.$ac_ext >&5
15790 rm -rf conftest*
15791 wx_cv_func_iconv_const="yes"
15792
15793fi
15794rm -f conftest*
15795
15796fi
15797
15798echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
15799
15800 iconv_const=
15801 if test "x$wx_cv_func_iconv_const" = "xyes"; then
15802 iconv_const="const"
15803 fi
15804
15805 cat >> confdefs.h <<EOF
15806#define ICONV_CONST $iconv_const
15807EOF
15808
15809 fi
15810 LIBICONV=
15811 if test "$am_cv_lib_iconv" = yes; then
15812 LIBICONV="-liconv"
15813 fi
15814
15815
15816LIBS="$LIBICONV $LIBS"
15817ac_ext=c
15818# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15819ac_cpp='$CPP $CPPFLAGS'
15820ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15821ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15822cross_compiling=$ac_cv_prog_cc_cross
15823
15824
15825if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
15826 for ac_func in sigaction
15827do
15828echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15829echo "configure:15830: checking for $ac_func" >&5
15830if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15831 echo $ac_n "(cached) $ac_c" 1>&6
15832else
15833 cat > conftest.$ac_ext <<EOF
15834#line 15835 "configure"
15835#include "confdefs.h"
15836/* System header to define __stub macros and hopefully few prototypes,
15837 which can conflict with char $ac_func(); below. */
15838#include <assert.h>
15839/* Override any gcc2 internal prototype to avoid an error. */
15840/* We use char because int might match the return type of a gcc2
15841 builtin and then its argument prototype would still apply. */
15842char $ac_func();
15843
15844int main() {
15845
15846/* The GNU C library defines this for functions which it implements
15847 to always fail with ENOSYS. Some functions are actually named
15848 something starting with __ and the normal name is an alias. */
15849#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15850choke me
15851#else
15852$ac_func();
15853#endif
15854
15855; return 0; }
15856EOF
15857if { (eval echo configure:15858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15858 rm -rf conftest*
15859 eval "ac_cv_func_$ac_func=yes"
15860else
15861 echo "configure: failed program was:" >&5
15862 cat conftest.$ac_ext >&5
15863 rm -rf conftest*
15864 eval "ac_cv_func_$ac_func=no"
15865fi
15866rm -f conftest*
15867fi
15868
15869if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15870 echo "$ac_t""yes" 1>&6
15871 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15872 cat >> confdefs.h <<EOF
15873#define $ac_tr_func 1
15874EOF
15875
15876else
15877 echo "$ac_t""no" 1>&6
15878fi
15879done
15880
15881
15882 if test "$ac_cv_func_sigaction" = "no"; then
15883 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
15884 wxUSE_ON_FATAL_EXCEPTION=no
15885 fi
15886
15887 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15888
15889 ac_ext=C
15890# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15891ac_cpp='$CXXCPP $CPPFLAGS'
15892ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15893ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15894cross_compiling=$ac_cv_prog_cxx_cross
15895
15896
15897 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
15898echo "configure:15899: checking for sa_handler type" >&5
15899if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
15900 echo $ac_n "(cached) $ac_c" 1>&6
15901else
15902
15903 cat > conftest.$ac_ext <<EOF
15904#line 15905 "configure"
15905#include "confdefs.h"
15906#include <signal.h>
15907int main() {
15908
15909 extern void testSigHandler(int);
15910
15911 struct sigaction sa;
15912 sa.sa_handler = testSigHandler;
15913
15914; return 0; }
15915EOF
15916if { (eval echo configure:15917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15917 rm -rf conftest*
15918
15919 wx_cv_type_sa_handler=int
15920
15921else
15922 echo "configure: failed program was:" >&5
15923 cat conftest.$ac_ext >&5
15924 rm -rf conftest*
15925
15926 wx_cv_type_sa_handler=void
15927
15928fi
15929rm -f conftest*
15930
15931fi
15932
15933echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
15934
15935 ac_ext=c
15936# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15937ac_cpp='$CPP $CPPFLAGS'
15938ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15939ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15940cross_compiling=$ac_cv_prog_cc_cross
15941
15942
15943 cat >> confdefs.h <<EOF
15944#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
15945EOF
15946
15947 fi
15948fi
15949
15950for ac_func in vfork
15951do
15952echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15953echo "configure:15954: checking for $ac_func" >&5
15954if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15955 echo $ac_n "(cached) $ac_c" 1>&6
15956else
15957 cat > conftest.$ac_ext <<EOF
15958#line 15959 "configure"
15959#include "confdefs.h"
15960/* System header to define __stub macros and hopefully few prototypes,
15961 which can conflict with char $ac_func(); below. */
15962#include <assert.h>
15963/* Override any gcc2 internal prototype to avoid an error. */
15964/* We use char because int might match the return type of a gcc2
15965 builtin and then its argument prototype would still apply. */
15966char $ac_func();
15967
15968int main() {
15969
15970/* The GNU C library defines this for functions which it implements
15971 to always fail with ENOSYS. Some functions are actually named
15972 something starting with __ and the normal name is an alias. */
15973#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15974choke me
15975#else
15976$ac_func();
15977#endif
15978
15979; return 0; }
15980EOF
15981if { (eval echo configure:15982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15982 rm -rf conftest*
15983 eval "ac_cv_func_$ac_func=yes"
15984else
15985 echo "configure: failed program was:" >&5
15986 cat conftest.$ac_ext >&5
15987 rm -rf conftest*
15988 eval "ac_cv_func_$ac_func=no"
15989fi
15990rm -f conftest*
15991fi
15992
15993if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15994 echo "$ac_t""yes" 1>&6
15995 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15996 cat >> confdefs.h <<EOF
15997#define $ac_tr_func 1
15998EOF
15999
16000else
16001 echo "$ac_t""no" 1>&6
16002fi
16003done
16004
16005
16006for ac_func in mkstemp mktemp
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
16062echo $ac_n "checking for statfs""... $ac_c" 1>&6
16063echo "configure:16064: checking for statfs" >&5
16064if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16065 echo $ac_n "(cached) $ac_c" 1>&6
16066else
16067 cat > conftest.$ac_ext <<EOF
16068#line 16069 "configure"
16069#include "confdefs.h"
16070
16071 #if defined(__BSD__)
16072 #include <sys/param.h>
16073 #include <sys/mount.h>
16074 #else
16075 #include <sys/vfs.h>
16076 #endif
16077
16078int main() {
16079
16080 long l;
16081 struct statfs fs;
16082 statfs("/", &fs);
16083 l = fs.f_bsize;
16084 l += fs.f_blocks;
16085 l += fs.f_bavail;
16086
16087; return 0; }
16088EOF
16089if { (eval echo configure:16090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16090 rm -rf conftest*
16091
16092 wx_cv_func_statfs=yes
16093
16094else
16095 echo "configure: failed program was:" >&5
16096 cat conftest.$ac_ext >&5
16097 rm -rf conftest*
16098
16099 wx_cv_func_statfs=no
16100
16101
16102fi
16103rm -f conftest*
16104
16105fi
16106
16107echo "$ac_t""$wx_cv_func_statfs" 1>&6
16108
16109if test "$wx_cv_func_statfs" = "yes"; then
16110 cat >> confdefs.h <<\EOF
16111#define HAVE_STATFS 1
16112EOF
16113
16114else
16115 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
16116echo "configure:16117: checking for statvfs" >&5
16117if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
16118 echo $ac_n "(cached) $ac_c" 1>&6
16119else
16120 cat > conftest.$ac_ext <<EOF
16121#line 16122 "configure"
16122#include "confdefs.h"
16123
16124 #include <sys/statvfs.h>
16125
16126int main() {
16127
16128 long l;
16129 struct statvfs fs;
16130 statvfs("/", &fs);
16131 l = fs.f_bsize;
16132 l += fs.f_blocks;
16133 l += fs.f_bavail;
16134
16135; return 0; }
16136EOF
16137if { (eval echo configure:16138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16138 rm -rf conftest*
16139
16140 wx_cv_func_statvfs=yes
16141
16142else
16143 echo "configure: failed program was:" >&5
16144 cat conftest.$ac_ext >&5
16145 rm -rf conftest*
16146
16147 wx_cv_func_statvfs=no
16148
16149
16150fi
16151rm -f conftest*
16152
16153fi
16154
16155echo "$ac_t""$wx_cv_func_statvfs" 1>&6
16156
16157 if test "$wx_cv_func_statvfs" = "yes"; then
16158 cat >> confdefs.h <<\EOF
16159#define HAVE_STATVFS 1
16160EOF
16161
16162 else
16163 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16164 fi
16165fi
16166
16167if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16168 for ac_func in fcntl flock
16169do
16170echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16171echo "configure:16172: checking for $ac_func" >&5
16172if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16173 echo $ac_n "(cached) $ac_c" 1>&6
16174else
16175 cat > conftest.$ac_ext <<EOF
16176#line 16177 "configure"
16177#include "confdefs.h"
16178/* System header to define __stub macros and hopefully few prototypes,
16179 which can conflict with char $ac_func(); below. */
16180#include <assert.h>
16181/* Override any gcc2 internal prototype to avoid an error. */
16182/* We use char because int might match the return type of a gcc2
16183 builtin and then its argument prototype would still apply. */
16184char $ac_func();
16185
16186int main() {
16187
16188/* The GNU C library defines this for functions which it implements
16189 to always fail with ENOSYS. Some functions are actually named
16190 something starting with __ and the normal name is an alias. */
16191#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16192choke me
16193#else
16194$ac_func();
16195#endif
16196
16197; return 0; }
16198EOF
16199if { (eval echo configure:16200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16200 rm -rf conftest*
16201 eval "ac_cv_func_$ac_func=yes"
16202else
16203 echo "configure: failed program was:" >&5
16204 cat conftest.$ac_ext >&5
16205 rm -rf conftest*
16206 eval "ac_cv_func_$ac_func=no"
16207fi
16208rm -f conftest*
16209fi
16210
16211if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16212 echo "$ac_t""yes" 1>&6
16213 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16214 cat >> confdefs.h <<EOF
16215#define $ac_tr_func 1
16216EOF
16217 break
16218else
16219 echo "$ac_t""no" 1>&6
16220fi
16221done
16222
16223
16224 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
16225 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
16226 wxUSE_SNGLINST_CHECKER=no
16227 fi
16228fi
16229
16230for ac_func in timegm
16231do
16232echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16233echo "configure:16234: checking for $ac_func" >&5
16234if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16235 echo $ac_n "(cached) $ac_c" 1>&6
16236else
16237 cat > conftest.$ac_ext <<EOF
16238#line 16239 "configure"
16239#include "confdefs.h"
16240/* System header to define __stub macros and hopefully few prototypes,
16241 which can conflict with char $ac_func(); below. */
16242#include <assert.h>
16243/* Override any gcc2 internal prototype to avoid an error. */
16244/* We use char because int might match the return type of a gcc2
16245 builtin and then its argument prototype would still apply. */
16246char $ac_func();
16247
16248int main() {
16249
16250/* The GNU C library defines this for functions which it implements
16251 to always fail with ENOSYS. Some functions are actually named
16252 something starting with __ and the normal name is an alias. */
16253#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16254choke me
16255#else
16256$ac_func();
16257#endif
16258
16259; return 0; }
16260EOF
16261if { (eval echo configure:16262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16262 rm -rf conftest*
16263 eval "ac_cv_func_$ac_func=yes"
16264else
16265 echo "configure: failed program was:" >&5
16266 cat conftest.$ac_ext >&5
16267 rm -rf conftest*
16268 eval "ac_cv_func_$ac_func=no"
16269fi
16270rm -f conftest*
16271fi
16272
16273if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16274 echo "$ac_t""yes" 1>&6
16275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16276 cat >> confdefs.h <<EOF
16277#define $ac_tr_func 1
16278EOF
16279
16280else
16281 echo "$ac_t""no" 1>&6
16282fi
16283done
16284
16285
16286for ac_func in putenv setenv
16287do
16288echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16289echo "configure:16290: checking for $ac_func" >&5
16290if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16291 echo $ac_n "(cached) $ac_c" 1>&6
16292else
16293 cat > conftest.$ac_ext <<EOF
16294#line 16295 "configure"
16295#include "confdefs.h"
16296/* System header to define __stub macros and hopefully few prototypes,
16297 which can conflict with char $ac_func(); below. */
16298#include <assert.h>
16299/* Override any gcc2 internal prototype to avoid an error. */
16300/* We use char because int might match the return type of a gcc2
16301 builtin and then its argument prototype would still apply. */
16302char $ac_func();
16303
16304int main() {
16305
16306/* The GNU C library defines this for functions which it implements
16307 to always fail with ENOSYS. Some functions are actually named
16308 something starting with __ and the normal name is an alias. */
16309#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16310choke me
16311#else
16312$ac_func();
16313#endif
16314
16315; return 0; }
16316EOF
16317if { (eval echo configure:16318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16318 rm -rf conftest*
16319 eval "ac_cv_func_$ac_func=yes"
16320else
16321 echo "configure: failed program was:" >&5
16322 cat conftest.$ac_ext >&5
16323 rm -rf conftest*
16324 eval "ac_cv_func_$ac_func=no"
16325fi
16326rm -f conftest*
16327fi
16328
16329if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16330 echo "$ac_t""yes" 1>&6
16331 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16332 cat >> confdefs.h <<EOF
16333#define $ac_tr_func 1
16334EOF
16335 break
16336else
16337 echo "$ac_t""no" 1>&6
16338fi
16339done
16340
16341
16342HAVE_SOME_SLEEP_FUNC=0
16343if test "$USE_BEOS" = 1; then
16344 cat >> confdefs.h <<\EOF
16345#define HAVE_SLEEP 1
16346EOF
16347
16348 HAVE_SOME_SLEEP_FUNC=1
16349fi
16350
16351if test "$USE_DARWIN" = 1; then
16352 cat >> confdefs.h <<\EOF
16353#define HAVE_USLEEP 1
16354EOF
16355
16356 HAVE_SOME_SLEEP_FUNC=1
16357fi
16358
16359if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16360 POSIX4_LINK=
16361 for ac_func in nanosleep
16362do
16363echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16364echo "configure:16365: checking for $ac_func" >&5
16365if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16366 echo $ac_n "(cached) $ac_c" 1>&6
16367else
16368 cat > conftest.$ac_ext <<EOF
16369#line 16370 "configure"
16370#include "confdefs.h"
16371/* System header to define __stub macros and hopefully few prototypes,
16372 which can conflict with char $ac_func(); below. */
16373#include <assert.h>
16374/* Override any gcc2 internal prototype to avoid an error. */
16375/* We use char because int might match the return type of a gcc2
16376 builtin and then its argument prototype would still apply. */
16377char $ac_func();
16378
16379int main() {
16380
16381/* The GNU C library defines this for functions which it implements
16382 to always fail with ENOSYS. Some functions are actually named
16383 something starting with __ and the normal name is an alias. */
16384#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16385choke me
16386#else
16387$ac_func();
16388#endif
16389
16390; return 0; }
16391EOF
16392if { (eval echo configure:16393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16393 rm -rf conftest*
16394 eval "ac_cv_func_$ac_func=yes"
16395else
16396 echo "configure: failed program was:" >&5
16397 cat conftest.$ac_ext >&5
16398 rm -rf conftest*
16399 eval "ac_cv_func_$ac_func=no"
16400fi
16401rm -f conftest*
16402fi
16403
16404if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16405 echo "$ac_t""yes" 1>&6
16406 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16407 cat >> confdefs.h <<EOF
16408#define $ac_tr_func 1
16409EOF
16410 cat >> confdefs.h <<\EOF
16411#define HAVE_NANOSLEEP 1
16412EOF
16413
16414else
16415 echo "$ac_t""no" 1>&6
16416echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
16417echo "configure:16418: checking for nanosleep in -lposix4" >&5
16418ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
16419if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16420 echo $ac_n "(cached) $ac_c" 1>&6
16421else
16422 ac_save_LIBS="$LIBS"
16423LIBS="-lposix4 $LIBS"
16424cat > conftest.$ac_ext <<EOF
16425#line 16426 "configure"
16426#include "confdefs.h"
16427/* Override any gcc2 internal prototype to avoid an error. */
16428/* We use char because int might match the return type of a gcc2
16429 builtin and then its argument prototype would still apply. */
16430char nanosleep();
16431
16432int main() {
16433nanosleep()
16434; return 0; }
16435EOF
16436if { (eval echo configure:16437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16437 rm -rf conftest*
16438 eval "ac_cv_lib_$ac_lib_var=yes"
16439else
16440 echo "configure: failed program was:" >&5
16441 cat conftest.$ac_ext >&5
16442 rm -rf conftest*
16443 eval "ac_cv_lib_$ac_lib_var=no"
16444fi
16445rm -f conftest*
16446LIBS="$ac_save_LIBS"
16447
16448fi
16449if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16450 echo "$ac_t""yes" 1>&6
16451
16452 cat >> confdefs.h <<\EOF
16453#define HAVE_NANOSLEEP 1
16454EOF
16455
16456 POSIX4_LINK=" -lposix4"
16457
16458else
16459 echo "$ac_t""no" 1>&6
16460
16461 for ac_func in usleep
16462do
16463echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16464echo "configure:16465: checking for $ac_func" >&5
16465if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16466 echo $ac_n "(cached) $ac_c" 1>&6
16467else
16468 cat > conftest.$ac_ext <<EOF
16469#line 16470 "configure"
16470#include "confdefs.h"
16471/* System header to define __stub macros and hopefully few prototypes,
16472 which can conflict with char $ac_func(); below. */
16473#include <assert.h>
16474/* Override any gcc2 internal prototype to avoid an error. */
16475/* We use char because int might match the return type of a gcc2
16476 builtin and then its argument prototype would still apply. */
16477char $ac_func();
16478
16479int main() {
16480
16481/* The GNU C library defines this for functions which it implements
16482 to always fail with ENOSYS. Some functions are actually named
16483 something starting with __ and the normal name is an alias. */
16484#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16485choke me
16486#else
16487$ac_func();
16488#endif
16489
16490; return 0; }
16491EOF
16492if { (eval echo configure:16493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16493 rm -rf conftest*
16494 eval "ac_cv_func_$ac_func=yes"
16495else
16496 echo "configure: failed program was:" >&5
16497 cat conftest.$ac_ext >&5
16498 rm -rf conftest*
16499 eval "ac_cv_func_$ac_func=no"
16500fi
16501rm -f conftest*
16502fi
16503
16504if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16505 echo "$ac_t""yes" 1>&6
16506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16507 cat >> confdefs.h <<EOF
16508#define $ac_tr_func 1
16509EOF
16510 cat >> confdefs.h <<\EOF
16511#define HAVE_USLEEP 1
16512EOF
16513
16514else
16515 echo "$ac_t""no" 1>&6
16516echo "configure: warning: wxSleep() function will not work" 1>&2
16517
16518fi
16519done
16520
16521
16522
16523fi
16524
16525
16526
16527fi
16528done
16529
16530fi
16531
16532for ac_func in uname gethostname
16533do
16534echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16535echo "configure:16536: checking for $ac_func" >&5
16536if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16537 echo $ac_n "(cached) $ac_c" 1>&6
16538else
16539 cat > conftest.$ac_ext <<EOF
16540#line 16541 "configure"
16541#include "confdefs.h"
16542/* System header to define __stub macros and hopefully few prototypes,
16543 which can conflict with char $ac_func(); below. */
16544#include <assert.h>
16545/* Override any gcc2 internal prototype to avoid an error. */
16546/* We use char because int might match the return type of a gcc2
16547 builtin and then its argument prototype would still apply. */
16548char $ac_func();
16549
16550int main() {
16551
16552/* The GNU C library defines this for functions which it implements
16553 to always fail with ENOSYS. Some functions are actually named
16554 something starting with __ and the normal name is an alias. */
16555#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16556choke me
16557#else
16558$ac_func();
16559#endif
16560
16561; return 0; }
16562EOF
16563if { (eval echo configure:16564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16564 rm -rf conftest*
16565 eval "ac_cv_func_$ac_func=yes"
16566else
16567 echo "configure: failed program was:" >&5
16568 cat conftest.$ac_ext >&5
16569 rm -rf conftest*
16570 eval "ac_cv_func_$ac_func=no"
16571fi
16572rm -f conftest*
16573fi
16574
16575if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16576 echo "$ac_t""yes" 1>&6
16577 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16578 cat >> confdefs.h <<EOF
16579#define $ac_tr_func 1
16580EOF
16581 break
16582else
16583 echo "$ac_t""no" 1>&6
16584fi
16585done
16586
16587
16588
16589ac_ext=C
16590# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16591ac_cpp='$CXXCPP $CPPFLAGS'
16592ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16593ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16594cross_compiling=$ac_cv_prog_cxx_cross
16595
16596
16597for ac_func in strtok_r
16598do
16599echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16600echo "configure:16601: checking for $ac_func" >&5
16601if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16602 echo $ac_n "(cached) $ac_c" 1>&6
16603else
16604 cat > conftest.$ac_ext <<EOF
16605#line 16606 "configure"
16606#include "confdefs.h"
16607/* System header to define __stub macros and hopefully few prototypes,
16608 which can conflict with char $ac_func(); below. */
16609#include <assert.h>
16610/* Override any gcc2 internal prototype to avoid an error. */
16611#ifdef __cplusplus
16612extern "C"
16613#endif
16614/* We use char because int might match the return type of a gcc2
16615 builtin and then its argument prototype would still apply. */
16616char $ac_func();
16617
16618int main() {
16619
16620/* The GNU C library defines this for functions which it implements
16621 to always fail with ENOSYS. Some functions are actually named
16622 something starting with __ and the normal name is an alias. */
16623#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16624choke me
16625#else
16626$ac_func();
16627#endif
16628
16629; return 0; }
16630EOF
16631if { (eval echo configure:16632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16632 rm -rf conftest*
16633 eval "ac_cv_func_$ac_func=yes"
16634else
16635 echo "configure: failed program was:" >&5
16636 cat conftest.$ac_ext >&5
16637 rm -rf conftest*
16638 eval "ac_cv_func_$ac_func=no"
16639fi
16640rm -f conftest*
16641fi
16642
16643if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16644 echo "$ac_t""yes" 1>&6
16645 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16646 cat >> confdefs.h <<EOF
16647#define $ac_tr_func 1
16648EOF
16649
16650else
16651 echo "$ac_t""no" 1>&6
16652fi
16653done
16654
16655
16656ac_ext=c
16657# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16658ac_cpp='$CPP $CPPFLAGS'
16659ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16660ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16661cross_compiling=$ac_cv_prog_cc_cross
16662
16663
16664INET_LINK=
16665for ac_func in inet_addr
16666do
16667echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16668echo "configure:16669: checking for $ac_func" >&5
16669if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16670 echo $ac_n "(cached) $ac_c" 1>&6
16671else
16672 cat > conftest.$ac_ext <<EOF
16673#line 16674 "configure"
16674#include "confdefs.h"
16675/* System header to define __stub macros and hopefully few prototypes,
16676 which can conflict with char $ac_func(); below. */
16677#include <assert.h>
16678/* Override any gcc2 internal prototype to avoid an error. */
16679/* We use char because int might match the return type of a gcc2
16680 builtin and then its argument prototype would still apply. */
16681char $ac_func();
16682
16683int main() {
16684
16685/* The GNU C library defines this for functions which it implements
16686 to always fail with ENOSYS. Some functions are actually named
16687 something starting with __ and the normal name is an alias. */
16688#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16689choke me
16690#else
16691$ac_func();
16692#endif
16693
16694; return 0; }
16695EOF
16696if { (eval echo configure:16697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16697 rm -rf conftest*
16698 eval "ac_cv_func_$ac_func=yes"
16699else
16700 echo "configure: failed program was:" >&5
16701 cat conftest.$ac_ext >&5
16702 rm -rf conftest*
16703 eval "ac_cv_func_$ac_func=no"
16704fi
16705rm -f conftest*
16706fi
16707
16708if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16709 echo "$ac_t""yes" 1>&6
16710 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16711 cat >> confdefs.h <<EOF
16712#define $ac_tr_func 1
16713EOF
16714 cat >> confdefs.h <<\EOF
16715#define HAVE_INET_ADDR 1
16716EOF
16717
16718else
16719 echo "$ac_t""no" 1>&6
16720echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
16721echo "configure:16722: checking for inet_addr in -lnsl" >&5
16722ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
16723if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16724 echo $ac_n "(cached) $ac_c" 1>&6
16725else
16726 ac_save_LIBS="$LIBS"
16727LIBS="-lnsl $LIBS"
16728cat > conftest.$ac_ext <<EOF
16729#line 16730 "configure"
16730#include "confdefs.h"
16731/* Override any gcc2 internal prototype to avoid an error. */
16732/* We use char because int might match the return type of a gcc2
16733 builtin and then its argument prototype would still apply. */
16734char inet_addr();
16735
16736int main() {
16737inet_addr()
16738; return 0; }
16739EOF
16740if { (eval echo configure:16741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16741 rm -rf conftest*
16742 eval "ac_cv_lib_$ac_lib_var=yes"
16743else
16744 echo "configure: failed program was:" >&5
16745 cat conftest.$ac_ext >&5
16746 rm -rf conftest*
16747 eval "ac_cv_lib_$ac_lib_var=no"
16748fi
16749rm -f conftest*
16750LIBS="$ac_save_LIBS"
16751
16752fi
16753if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16754 echo "$ac_t""yes" 1>&6
16755 INET_LINK="nsl"
16756else
16757 echo "$ac_t""no" 1>&6
16758echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
16759echo "configure:16760: checking for inet_addr in -lresolv" >&5
16760ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
16761if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16762 echo $ac_n "(cached) $ac_c" 1>&6
16763else
16764 ac_save_LIBS="$LIBS"
16765LIBS="-lresolv $LIBS"
16766cat > conftest.$ac_ext <<EOF
16767#line 16768 "configure"
16768#include "confdefs.h"
16769/* Override any gcc2 internal prototype to avoid an error. */
16770/* We use char because int might match the return type of a gcc2
16771 builtin and then its argument prototype would still apply. */
16772char inet_addr();
16773
16774int main() {
16775inet_addr()
16776; return 0; }
16777EOF
16778if { (eval echo configure:16779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16779 rm -rf conftest*
16780 eval "ac_cv_lib_$ac_lib_var=yes"
16781else
16782 echo "configure: failed program was:" >&5
16783 cat conftest.$ac_ext >&5
16784 rm -rf conftest*
16785 eval "ac_cv_lib_$ac_lib_var=no"
16786fi
16787rm -f conftest*
16788LIBS="$ac_save_LIBS"
16789
16790fi
16791if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16792 echo "$ac_t""yes" 1>&6
16793 INET_LINK="resolv"
16794
16795else
16796 echo "$ac_t""no" 1>&6
16797fi
16798
16799
16800fi
16801
16802
16803
16804fi
16805done
16806
16807
16808for ac_func in inet_aton
16809do
16810echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16811echo "configure:16812: checking for $ac_func" >&5
16812if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16813 echo $ac_n "(cached) $ac_c" 1>&6
16814else
16815 cat > conftest.$ac_ext <<EOF
16816#line 16817 "configure"
16817#include "confdefs.h"
16818/* System header to define __stub macros and hopefully few prototypes,
16819 which can conflict with char $ac_func(); below. */
16820#include <assert.h>
16821/* Override any gcc2 internal prototype to avoid an error. */
16822/* We use char because int might match the return type of a gcc2
16823 builtin and then its argument prototype would still apply. */
16824char $ac_func();
16825
16826int main() {
16827
16828/* The GNU C library defines this for functions which it implements
16829 to always fail with ENOSYS. Some functions are actually named
16830 something starting with __ and the normal name is an alias. */
16831#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16832choke me
16833#else
16834$ac_func();
16835#endif
16836
16837; return 0; }
16838EOF
16839if { (eval echo configure:16840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16840 rm -rf conftest*
16841 eval "ac_cv_func_$ac_func=yes"
16842else
16843 echo "configure: failed program was:" >&5
16844 cat conftest.$ac_ext >&5
16845 rm -rf conftest*
16846 eval "ac_cv_func_$ac_func=no"
16847fi
16848rm -f conftest*
16849fi
16850
16851if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16852 echo "$ac_t""yes" 1>&6
16853 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16854 cat >> confdefs.h <<EOF
16855#define $ac_tr_func 1
16856EOF
16857 cat >> confdefs.h <<\EOF
16858#define HAVE_INET_ATON 1
16859EOF
16860
16861else
16862 echo "$ac_t""no" 1>&6
16863 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
16864echo "configure:16865: checking for inet_aton in -l$INET_LINK" >&5
16865ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
16866if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16867 echo $ac_n "(cached) $ac_c" 1>&6
16868else
16869 ac_save_LIBS="$LIBS"
16870LIBS="-l$INET_LINK $LIBS"
16871cat > conftest.$ac_ext <<EOF
16872#line 16873 "configure"
16873#include "confdefs.h"
16874/* Override any gcc2 internal prototype to avoid an error. */
16875/* We use char because int might match the return type of a gcc2
16876 builtin and then its argument prototype would still apply. */
16877char inet_aton();
16878
16879int main() {
16880inet_aton()
16881; return 0; }
16882EOF
16883if { (eval echo configure:16884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16884 rm -rf conftest*
16885 eval "ac_cv_lib_$ac_lib_var=yes"
16886else
16887 echo "configure: failed program was:" >&5
16888 cat conftest.$ac_ext >&5
16889 rm -rf conftest*
16890 eval "ac_cv_lib_$ac_lib_var=no"
16891fi
16892rm -f conftest*
16893LIBS="$ac_save_LIBS"
16894
16895fi
16896if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16897 echo "$ac_t""yes" 1>&6
16898 cat >> confdefs.h <<\EOF
16899#define HAVE_INET_ATON 1
16900EOF
16901
16902else
16903 echo "$ac_t""no" 1>&6
16904fi
16905
16906
16907fi
16908done
16909
16910
16911if test "x$INET_LINK" != "x"; then
16912 cat >> confdefs.h <<\EOF
16913#define HAVE_INET_ADDR 1
16914EOF
16915
16916 INET_LINK=" -l$INET_LINK"
16917fi
16918
16919fi
16920
16921
16922cat > confcache <<\EOF
16923# This file is a shell script that caches the results of configure
16924# tests run on this system so they can be shared between configure
16925# scripts and configure runs. It is not useful on other systems.
16926# If it contains results you don't want to keep, you may remove or edit it.
16927#
16928# By default, configure uses ./config.cache as the cache file,
16929# creating it if it does not exist already. You can give configure
16930# the --cache-file=FILE option to use a different cache file; that is
16931# what configure does when it calls configure scripts in
16932# subdirectories, so they share the cache.
16933# Giving --cache-file=/dev/null disables caching, for debugging configure.
16934# config.status only pays attention to the cache file if you give it the
16935# --recheck option to rerun configure.
16936#
16937EOF
16938# The following way of writing the cache mishandles newlines in values,
16939# but we know of no workaround that is simple, portable, and efficient.
16940# So, don't put newlines in cache variables' values.
16941# Ultrix sh set writes to stderr and can't be redirected directly,
16942# and sets the high bit in the cache file unless we assign to the vars.
16943(set) 2>&1 |
16944 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16945 *ac_space=\ *)
16946 # `set' does not quote correctly, so add quotes (double-quote substitution
16947 # turns \\\\ into \\, and sed turns \\ into \).
16948 sed -n \
16949 -e "s/'/'\\\\''/g" \
16950 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16951 ;;
16952 *)
16953 # `set' quotes correctly as required by POSIX, so do not add quotes.
16954 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16955 ;;
16956 esac >> confcache
16957if cmp -s $cache_file confcache; then
16958 :
16959else
16960 if test -w $cache_file; then
16961 echo "updating cache $cache_file"
16962 cat confcache > $cache_file
16963 else
16964 echo "not updating unwritable cache $cache_file"
16965 fi
16966fi
16967rm -f confcache
16968
16969
16970
16971if test "$TOOLKIT" != "MSW"; then
16972
16973
16974 THREADS_LINK=
16975 THREADS_OBJ=
16976 CODE_GEN_FLAGS=
16977 CODE_GEN_FLAGS_CXX=
16978
16979 if test "$wxUSE_THREADS" = "yes" ; then
16980 if test "$wxUSE_WINE" = 1 ; then
16981 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
16982 wxUSE_THREADS="no"
16983 elif test "$USE_BEOS" = 1; then
16984 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
16985 wxUSE_THREADS="no"
16986 fi
16987 fi
16988
16989 if test "$wxUSE_THREADS" = "yes" ; then
16990
16991 if test "$USE_AIX" = 1; then
16992 THREADS_LIB=pthreads
16993 else
16994 THREADS_LIB=pthread
16995 fi
16996
16997 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
16998echo "configure:16999: checking for pthread_create in -l$THREADS_LIB" >&5
16999ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
17000if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17001 echo $ac_n "(cached) $ac_c" 1>&6
17002else
17003 ac_save_LIBS="$LIBS"
17004LIBS="-l$THREADS_LIB $LIBS"
17005cat > conftest.$ac_ext <<EOF
17006#line 17007 "configure"
17007#include "confdefs.h"
17008/* Override any gcc2 internal prototype to avoid an error. */
17009/* We use char because int might match the return type of a gcc2
17010 builtin and then its argument prototype would still apply. */
17011char pthread_create();
17012
17013int main() {
17014pthread_create()
17015; return 0; }
17016EOF
17017if { (eval echo configure:17018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17018 rm -rf conftest*
17019 eval "ac_cv_lib_$ac_lib_var=yes"
17020else
17021 echo "configure: failed program was:" >&5
17022 cat conftest.$ac_ext >&5
17023 rm -rf conftest*
17024 eval "ac_cv_lib_$ac_lib_var=no"
17025fi
17026rm -f conftest*
17027LIBS="$ac_save_LIBS"
17028
17029fi
17030if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17031 echo "$ac_t""yes" 1>&6
17032
17033 THREADS_OBJ="threadpsx.lo"
17034 THREADS_LINK=$THREADS_LIB
17035
17036else
17037 echo "$ac_t""no" 1>&6
17038
17039 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
17040echo "configure:17041: checking for pthread_create in -lc_r" >&5
17041ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
17042if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17043 echo $ac_n "(cached) $ac_c" 1>&6
17044else
17045 ac_save_LIBS="$LIBS"
17046LIBS="-lc_r $LIBS"
17047cat > conftest.$ac_ext <<EOF
17048#line 17049 "configure"
17049#include "confdefs.h"
17050/* Override any gcc2 internal prototype to avoid an error. */
17051/* We use char because int might match the return type of a gcc2
17052 builtin and then its argument prototype would still apply. */
17053char pthread_create();
17054
17055int main() {
17056pthread_create()
17057; return 0; }
17058EOF
17059if { (eval echo configure:17060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17060 rm -rf conftest*
17061 eval "ac_cv_lib_$ac_lib_var=yes"
17062else
17063 echo "configure: failed program was:" >&5
17064 cat conftest.$ac_ext >&5
17065 rm -rf conftest*
17066 eval "ac_cv_lib_$ac_lib_var=no"
17067fi
17068rm -f conftest*
17069LIBS="$ac_save_LIBS"
17070
17071fi
17072if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17073 echo "$ac_t""yes" 1>&6
17074
17075 THREADS_OBJ="threadpsx.lo"
17076 THREADS_LINK="c_r"
17077
17078else
17079 echo "$ac_t""no" 1>&6
17080
17081 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
17082echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
17083echo "configure:17084: checking for sys/prctl.h" >&5
17084if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17085 echo $ac_n "(cached) $ac_c" 1>&6
17086else
17087 cat > conftest.$ac_ext <<EOF
17088#line 17089 "configure"
17089#include "confdefs.h"
17090#include <sys/prctl.h>
17091EOF
17092ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17093{ (eval echo configure:17094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17094ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17095if test -z "$ac_err"; then
17096 rm -rf conftest*
17097 eval "ac_cv_header_$ac_safe=yes"
17098else
17099 echo "$ac_err" >&5
17100 echo "configure: failed program was:" >&5
17101 cat conftest.$ac_ext >&5
17102 rm -rf conftest*
17103 eval "ac_cv_header_$ac_safe=no"
17104fi
17105rm -f conftest*
17106fi
17107if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17108 echo "$ac_t""yes" 1>&6
17109
17110 THREADS_OBJ="threadsgi.lo"
17111
17112else
17113 echo "$ac_t""no" 1>&6
17114fi
17115
17116
17117fi
17118
17119
17120fi
17121
17122
17123 if test -z "$THREADS_OBJ" ; then
17124 wxUSE_THREADS=no
17125 echo "configure: warning: No thread support on this system... disabled" 1>&2
17126 fi
17127 fi
17128
17129 if test "$wxUSE_THREADS" = "yes" ; then
17130 for ac_func in thr_setconcurrency
17131do
17132echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17133echo "configure:17134: checking for $ac_func" >&5
17134if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17135 echo $ac_n "(cached) $ac_c" 1>&6
17136else
17137 cat > conftest.$ac_ext <<EOF
17138#line 17139 "configure"
17139#include "confdefs.h"
17140/* System header to define __stub macros and hopefully few prototypes,
17141 which can conflict with char $ac_func(); below. */
17142#include <assert.h>
17143/* Override any gcc2 internal prototype to avoid an error. */
17144/* We use char because int might match the return type of a gcc2
17145 builtin and then its argument prototype would still apply. */
17146char $ac_func();
17147
17148int main() {
17149
17150/* The GNU C library defines this for functions which it implements
17151 to always fail with ENOSYS. Some functions are actually named
17152 something starting with __ and the normal name is an alias. */
17153#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17154choke me
17155#else
17156$ac_func();
17157#endif
17158
17159; return 0; }
17160EOF
17161if { (eval echo configure:17162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17162 rm -rf conftest*
17163 eval "ac_cv_func_$ac_func=yes"
17164else
17165 echo "configure: failed program was:" >&5
17166 cat conftest.$ac_ext >&5
17167 rm -rf conftest*
17168 eval "ac_cv_func_$ac_func=no"
17169fi
17170rm -f conftest*
17171fi
17172
17173if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17174 echo "$ac_t""yes" 1>&6
17175 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17176 cat >> confdefs.h <<EOF
17177#define $ac_tr_func 1
17178EOF
17179
17180else
17181 echo "$ac_t""no" 1>&6
17182fi
17183done
17184
17185
17186
17187 for ac_hdr in sched.h
17188do
17189ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17190echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17191echo "configure:17192: checking for $ac_hdr" >&5
17192if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17193 echo $ac_n "(cached) $ac_c" 1>&6
17194else
17195 cat > conftest.$ac_ext <<EOF
17196#line 17197 "configure"
17197#include "confdefs.h"
17198#include <$ac_hdr>
17199EOF
17200ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17201{ (eval echo configure:17202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17202ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17203if test -z "$ac_err"; then
17204 rm -rf conftest*
17205 eval "ac_cv_header_$ac_safe=yes"
17206else
17207 echo "$ac_err" >&5
17208 echo "configure: failed program was:" >&5
17209 cat conftest.$ac_ext >&5
17210 rm -rf conftest*
17211 eval "ac_cv_header_$ac_safe=no"
17212fi
17213rm -f conftest*
17214fi
17215if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17216 echo "$ac_t""yes" 1>&6
17217 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17218 cat >> confdefs.h <<EOF
17219#define $ac_tr_hdr 1
17220EOF
17221
17222else
17223 echo "$ac_t""no" 1>&6
17224fi
17225done
17226
17227
17228 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
17229echo "configure:17230: checking for sched_yield in -l$THREADS_LINK" >&5
17230ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
17231if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17232 echo $ac_n "(cached) $ac_c" 1>&6
17233else
17234 ac_save_LIBS="$LIBS"
17235LIBS="-l$THREADS_LINK $LIBS"
17236cat > conftest.$ac_ext <<EOF
17237#line 17238 "configure"
17238#include "confdefs.h"
17239/* Override any gcc2 internal prototype to avoid an error. */
17240/* We use char because int might match the return type of a gcc2
17241 builtin and then its argument prototype would still apply. */
17242char sched_yield();
17243
17244int main() {
17245sched_yield()
17246; return 0; }
17247EOF
17248if { (eval echo configure:17249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17249 rm -rf conftest*
17250 eval "ac_cv_lib_$ac_lib_var=yes"
17251else
17252 echo "configure: failed program was:" >&5
17253 cat conftest.$ac_ext >&5
17254 rm -rf conftest*
17255 eval "ac_cv_lib_$ac_lib_var=no"
17256fi
17257rm -f conftest*
17258LIBS="$ac_save_LIBS"
17259
17260fi
17261if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17262 echo "$ac_t""yes" 1>&6
17263 cat >> confdefs.h <<\EOF
17264#define HAVE_SCHED_YIELD 1
17265EOF
17266
17267else
17268 echo "$ac_t""no" 1>&6
17269echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
17270echo "configure:17271: checking for sched_yield in -lposix4" >&5
17271ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17272if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17273 echo $ac_n "(cached) $ac_c" 1>&6
17274else
17275 ac_save_LIBS="$LIBS"
17276LIBS="-lposix4 $LIBS"
17277cat > conftest.$ac_ext <<EOF
17278#line 17279 "configure"
17279#include "confdefs.h"
17280/* Override any gcc2 internal prototype to avoid an error. */
17281/* We use char because int might match the return type of a gcc2
17282 builtin and then its argument prototype would still apply. */
17283char sched_yield();
17284
17285int main() {
17286sched_yield()
17287; return 0; }
17288EOF
17289if { (eval echo configure:17290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17290 rm -rf conftest*
17291 eval "ac_cv_lib_$ac_lib_var=yes"
17292else
17293 echo "configure: failed program was:" >&5
17294 cat conftest.$ac_ext >&5
17295 rm -rf conftest*
17296 eval "ac_cv_lib_$ac_lib_var=no"
17297fi
17298rm -f conftest*
17299LIBS="$ac_save_LIBS"
17300
17301fi
17302if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17303 echo "$ac_t""yes" 1>&6
17304 cat >> confdefs.h <<\EOF
17305#define HAVE_SCHED_YIELD 1
17306EOF
17307 POSIX4_LINK=" -lposix4"
17308else
17309 echo "$ac_t""no" 1>&6
17310echo "configure: warning: wxThread::Yield will not work properly" 1>&2
17311
17312fi
17313
17314
17315fi
17316
17317
17318 HAVE_PRIOR_FUNCS=0
17319 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
17320echo "configure:17321: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
17321ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
17322if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17323 echo $ac_n "(cached) $ac_c" 1>&6
17324else
17325 ac_save_LIBS="$LIBS"
17326LIBS="-l$THREADS_LINK $LIBS"
17327cat > conftest.$ac_ext <<EOF
17328#line 17329 "configure"
17329#include "confdefs.h"
17330/* Override any gcc2 internal prototype to avoid an error. */
17331/* We use char because int might match the return type of a gcc2
17332 builtin and then its argument prototype would still apply. */
17333char pthread_attr_getschedpolicy();
17334
17335int main() {
17336pthread_attr_getschedpolicy()
17337; return 0; }
17338EOF
17339if { (eval echo configure:17340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17340 rm -rf conftest*
17341 eval "ac_cv_lib_$ac_lib_var=yes"
17342else
17343 echo "configure: failed program was:" >&5
17344 cat conftest.$ac_ext >&5
17345 rm -rf conftest*
17346 eval "ac_cv_lib_$ac_lib_var=no"
17347fi
17348rm -f conftest*
17349LIBS="$ac_save_LIBS"
17350
17351fi
17352if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17353 echo "$ac_t""yes" 1>&6
17354 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
17355echo "configure:17356: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
17356ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
17357if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17358 echo $ac_n "(cached) $ac_c" 1>&6
17359else
17360 ac_save_LIBS="$LIBS"
17361LIBS="-l$THREADS_LINK $LIBS"
17362cat > conftest.$ac_ext <<EOF
17363#line 17364 "configure"
17364#include "confdefs.h"
17365/* Override any gcc2 internal prototype to avoid an error. */
17366/* We use char because int might match the return type of a gcc2
17367 builtin and then its argument prototype would still apply. */
17368char pthread_attr_setschedparam();
17369
17370int main() {
17371pthread_attr_setschedparam()
17372; return 0; }
17373EOF
17374if { (eval echo configure:17375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17375 rm -rf conftest*
17376 eval "ac_cv_lib_$ac_lib_var=yes"
17377else
17378 echo "configure: failed program was:" >&5
17379 cat conftest.$ac_ext >&5
17380 rm -rf conftest*
17381 eval "ac_cv_lib_$ac_lib_var=no"
17382fi
17383rm -f conftest*
17384LIBS="$ac_save_LIBS"
17385
17386fi
17387if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17388 echo "$ac_t""yes" 1>&6
17389 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
17390echo "configure:17391: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
17391ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
17392if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17393 echo $ac_n "(cached) $ac_c" 1>&6
17394else
17395 ac_save_LIBS="$LIBS"
17396LIBS="-l$THREADS_LINK $LIBS"
17397cat > conftest.$ac_ext <<EOF
17398#line 17399 "configure"
17399#include "confdefs.h"
17400/* Override any gcc2 internal prototype to avoid an error. */
17401/* We use char because int might match the return type of a gcc2
17402 builtin and then its argument prototype would still apply. */
17403char sched_get_priority_max();
17404
17405int main() {
17406sched_get_priority_max()
17407; return 0; }
17408EOF
17409if { (eval echo configure:17410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17410 rm -rf conftest*
17411 eval "ac_cv_lib_$ac_lib_var=yes"
17412else
17413 echo "configure: failed program was:" >&5
17414 cat conftest.$ac_ext >&5
17415 rm -rf conftest*
17416 eval "ac_cv_lib_$ac_lib_var=no"
17417fi
17418rm -f conftest*
17419LIBS="$ac_save_LIBS"
17420
17421fi
17422if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17423 echo "$ac_t""yes" 1>&6
17424 HAVE_PRIOR_FUNCS=1
17425else
17426 echo "$ac_t""no" 1>&6
17427echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
17428echo "configure:17429: checking for sched_get_priority_max in -lposix4" >&5
17429ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
17430if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17431 echo $ac_n "(cached) $ac_c" 1>&6
17432else
17433 ac_save_LIBS="$LIBS"
17434LIBS="-lposix4 $LIBS"
17435cat > conftest.$ac_ext <<EOF
17436#line 17437 "configure"
17437#include "confdefs.h"
17438/* Override any gcc2 internal prototype to avoid an error. */
17439/* We use char because int might match the return type of a gcc2
17440 builtin and then its argument prototype would still apply. */
17441char sched_get_priority_max();
17442
17443int main() {
17444sched_get_priority_max()
17445; return 0; }
17446EOF
17447if { (eval echo configure:17448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17448 rm -rf conftest*
17449 eval "ac_cv_lib_$ac_lib_var=yes"
17450else
17451 echo "configure: failed program was:" >&5
17452 cat conftest.$ac_ext >&5
17453 rm -rf conftest*
17454 eval "ac_cv_lib_$ac_lib_var=no"
17455fi
17456rm -f conftest*
17457LIBS="$ac_save_LIBS"
17458
17459fi
17460if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17461 echo "$ac_t""yes" 1>&6
17462
17463 HAVE_PRIOR_FUNCS=1
17464 POSIX4_LINK=" -lposix4"
17465
17466else
17467 echo "$ac_t""no" 1>&6
17468fi
17469
17470
17471fi
17472
17473
17474else
17475 echo "$ac_t""no" 1>&6
17476fi
17477
17478
17479else
17480 echo "$ac_t""no" 1>&6
17481fi
17482
17483
17484 if test "$HAVE_PRIOR_FUNCS" = 1; then
17485 cat >> confdefs.h <<\EOF
17486#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
17487EOF
17488
17489 else
17490 echo "configure: warning: Setting thread priority will not work" 1>&2
17491 fi
17492
17493 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
17494echo "configure:17495: checking for pthread_cancel in -l$THREADS_LINK" >&5
17495ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
17496if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17497 echo $ac_n "(cached) $ac_c" 1>&6
17498else
17499 ac_save_LIBS="$LIBS"
17500LIBS="-l$THREADS_LINK $LIBS"
17501cat > conftest.$ac_ext <<EOF
17502#line 17503 "configure"
17503#include "confdefs.h"
17504/* Override any gcc2 internal prototype to avoid an error. */
17505/* We use char because int might match the return type of a gcc2
17506 builtin and then its argument prototype would still apply. */
17507char pthread_cancel();
17508
17509int main() {
17510pthread_cancel()
17511; return 0; }
17512EOF
17513if { (eval echo configure:17514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17514 rm -rf conftest*
17515 eval "ac_cv_lib_$ac_lib_var=yes"
17516else
17517 echo "configure: failed program was:" >&5
17518 cat conftest.$ac_ext >&5
17519 rm -rf conftest*
17520 eval "ac_cv_lib_$ac_lib_var=no"
17521fi
17522rm -f conftest*
17523LIBS="$ac_save_LIBS"
17524
17525fi
17526if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17527 echo "$ac_t""yes" 1>&6
17528 cat >> confdefs.h <<\EOF
17529#define HAVE_PTHREAD_CANCEL 1
17530EOF
17531
17532else
17533 echo "$ac_t""no" 1>&6
17534echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
17535fi
17536
17537
17538 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
17539echo "configure:17540: checking for pthread_cleanup_push/pop" >&5
17540if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
17541 echo $ac_n "(cached) $ac_c" 1>&6
17542else
17543
17544 cat > conftest.$ac_ext <<EOF
17545#line 17546 "configure"
17546#include "confdefs.h"
17547#include <pthread.h>
17548int main() {
17549
17550 pthread_cleanup_push(NULL, NULL);
17551 pthread_cleanup_pop(0);
17552
17553; return 0; }
17554EOF
17555if { (eval echo configure:17556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17556 rm -rf conftest*
17557
17558 wx_cv_func_pthread_cleanup_push=yes
17559
17560else
17561 echo "configure: failed program was:" >&5
17562 cat conftest.$ac_ext >&5
17563 rm -rf conftest*
17564
17565 wx_cv_func_pthread_cleanup_push=no
17566
17567fi
17568rm -f conftest*
17569
17570fi
17571
17572echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
17573
17574 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
17575 cat >> confdefs.h <<\EOF
17576#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
17577EOF
17578
17579 fi
17580
17581
17582 if test "x$wx_lib_glibc21" = "xyes"; then
17583 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
17584 fi
17585
17586 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
17587echo "configure:17588: checking for pthread_mutexattr_t" >&5
17588if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
17589 echo $ac_n "(cached) $ac_c" 1>&6
17590else
17591
17592 cat > conftest.$ac_ext <<EOF
17593#line 17594 "configure"
17594#include "confdefs.h"
17595#include <pthread.h>
17596int main() {
17597
17598 pthread_mutexattr_t attr;
17599 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
17600
17601; return 0; }
17602EOF
17603if { (eval echo configure:17604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17604 rm -rf conftest*
17605
17606 wx_cv_type_pthread_mutexattr_t=yes
17607
17608else
17609 echo "configure: failed program was:" >&5
17610 cat conftest.$ac_ext >&5
17611 rm -rf conftest*
17612
17613 wx_cv_type_pthread_mutexattr_t=no
17614
17615
17616fi
17617rm -f conftest*
17618
17619fi
17620
17621echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
17622
17623 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
17624 cat >> confdefs.h <<\EOF
17625#define HAVE_PTHREAD_MUTEXATTR_T 1
17626EOF
17627
17628 else
17629 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
17630echo "configure:17631: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
17631if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
17632 echo $ac_n "(cached) $ac_c" 1>&6
17633else
17634
17635 cat > conftest.$ac_ext <<EOF
17636#line 17637 "configure"
17637#include "confdefs.h"
17638#include <pthread.h>
17639int main() {
17640
17641 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
17642
17643; return 0; }
17644EOF
17645if { (eval echo configure:17646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17646 rm -rf conftest*
17647
17648 wx_cv_type_pthread_rec_mutex_init=yes
17649
17650else
17651 echo "configure: failed program was:" >&5
17652 cat conftest.$ac_ext >&5
17653 rm -rf conftest*
17654
17655 wx_cv_type_pthread_rec_mutex_init=no
17656
17657
17658fi
17659rm -f conftest*
17660
17661fi
17662
17663echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
17664 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
17665 cat >> confdefs.h <<\EOF
17666#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
17667EOF
17668
17669 else
17670 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
17671 fi
17672 fi
17673
17674 THREADS_LINK=" -l$THREADS_LINK"
17675
17676 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
17677 CPPFLAGS="$CFLAGS -mt"
17678 CXXFLAGS="$CXXFLAGS -mt"
17679 LDFLAGS="$LDFLAGS -mt"
17680 fi
17681 fi
17682
17683fi
17684
17685if test "$wxUSE_THREADS" = "yes"; then
17686 cat >> confdefs.h <<\EOF
17687#define wxUSE_THREADS 1
17688EOF
17689
17690
17691 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG"
17692
17693 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
17694else
17695 if test "$ac_cv_func_strtok_r" = "yes"; then
17696 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
17697echo "configure:17698: checking if -D_REENTRANT is needed" >&5
17698 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
17699 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
17700 echo "$ac_t""yes" 1>&6
17701 else
17702 echo "$ac_t""no" 1>&6
17703 fi
17704 fi
17705fi
17706
17707if test "$WXGTK20" = 1 ; then
17708 cat >> confdefs.h <<EOF
17709#define __WXGTK20__ $WXGTK20
17710EOF
17711
17712 WXGTK12=1
17713fi
17714
17715if test "$WXGTK12" = 1 ; then
17716 cat >> confdefs.h <<EOF
17717#define __WXGTK12__ $WXGTK12
17718EOF
17719
17720fi
17721
17722if test "$WXGTK127" = 1 ; then
17723 cat >> confdefs.h <<EOF
17724#define __WXGTK127__ $WXGTK127
17725EOF
17726
17727fi
17728
17729WXDEBUG=
17730
17731if test "$wxUSE_DEBUG_INFO" = "yes" ; then
17732 WXDEBUG="-g"
17733 wxUSE_OPTIMISE=no
17734fi
17735
17736if test "$wxUSE_DEBUG_GDB" = "yes" ; then
17737 wxUSE_DEBUG_INFO=yes
17738 WXDEBUG="-ggdb"
17739fi
17740
17741if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
17742 cat >> confdefs.h <<\EOF
17743#define WXDEBUG 1
17744EOF
17745
17746 WXDEBUG_DEFINE="-D__WXDEBUG__"
17747else
17748 if test "$wxUSE_GTK" = 1 ; then
17749 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
17750 fi
17751fi
17752
17753if test "$wxUSE_MEM_TRACING" = "yes" ; then
17754 cat >> confdefs.h <<\EOF
17755#define wxUSE_MEMORY_TRACING 1
17756EOF
17757
17758 cat >> confdefs.h <<\EOF
17759#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
17760EOF
17761
17762 cat >> confdefs.h <<\EOF
17763#define wxUSE_DEBUG_NEW_ALWAYS 1
17764EOF
17765
17766 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
17767fi
17768
17769if test "$wxUSE_DMALLOC" = "yes" ; then
17770 DMALLOC_LIBS="-ldmalloc"
17771fi
17772
17773PROFILE=
17774if test "$wxUSE_PROFILE" = "yes" ; then
17775 PROFILE=" -pg"
17776fi
17777
17778if test "$GCC" = "yes" ; then
17779 if test "$wxUSE_NO_RTTI" = "yes" ; then
17780 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
17781 fi
17782 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
17783 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
17784 fi
17785 if test "$wxUSE_PERMISSIVE" = "yes" ; then
17786 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
17787 fi
17788 if test "$USE_WIN32" = 1 ; then
17789 # I'm not even really sure what this was ever added to solve,
17790 # but someone added it for mingw native builds, so I guess
17791 # they had a reason, right??
17792 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
17793 fi
17794fi
17795
17796
17797CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
17798CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
17799if test "$wxUSE_OPTIMISE" = "no" ; then
17800 OPTIMISE=
17801else
17802 if test "$GCC" = yes ; then
17803 OPTIMISE="-O2"
17804 case "${host}" in
17805 i586-*-*|i686-*-* )
17806 OPTIMISE="${OPTIMISE} "
17807 ;;
17808 esac
17809 else
17810 OPTIMISE="-O"
17811 fi
17812fi
17813
17814if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
17815 cat >> confdefs.h <<\EOF
17816#define WXWIN_COMPATIBILITY_2 1
17817EOF
17818
17819
17820 WXWIN_COMPATIBILITY_2_2="yes"
17821fi
17822
17823if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
17824 cat >> confdefs.h <<\EOF
17825#define WXWIN_COMPATIBILITY_2_2 1
17826EOF
17827
17828fi
17829
17830
17831if test "$wxUSE_GUI" = "yes"; then
17832 cat >> confdefs.h <<\EOF
17833#define wxUSE_GUI 1
17834EOF
17835
17836
17837 else
17838 cat >> confdefs.h <<\EOF
17839#define wxUSE_NOGUI 1
17840EOF
17841
17842fi
17843
17844
17845if test "$wxUSE_UNIX" = "yes"; then
17846 cat >> confdefs.h <<\EOF
17847#define wxUSE_UNIX 1
17848EOF
17849
17850fi
17851
17852
17853if test "$wxUSE_APPLE_IEEE" = "yes"; then
17854 cat >> confdefs.h <<\EOF
17855#define wxUSE_APPLE_IEEE 1
17856EOF
17857
17858fi
17859
17860if test "$wxUSE_TIMER" = "yes"; then
17861 cat >> confdefs.h <<\EOF
17862#define wxUSE_TIMER 1
17863EOF
17864
17865fi
17866
17867if test "$wxUSE_WAVE" = "yes"; then
17868 cat >> confdefs.h <<\EOF
17869#define wxUSE_WAVE 1
17870EOF
17871
17872fi
17873
17874if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
17875 cat >> confdefs.h <<\EOF
17876#define wxUSE_CMDLINE_PARSER 1
17877EOF
17878
17879fi
17880
17881if test "$wxUSE_STOPWATCH" = "yes"; then
17882 cat >> confdefs.h <<\EOF
17883#define wxUSE_STOPWATCH 1
17884EOF
17885
17886fi
17887
17888if test "$wxUSE_DATETIME" = "yes"; then
17889 cat >> confdefs.h <<\EOF
17890#define wxUSE_DATETIME 1
17891EOF
17892
17893fi
17894
17895if test "$wxUSE_TIMEDATE" = "yes"; then
17896 cat >> confdefs.h <<\EOF
17897#define wxUSE_TIMEDATE 1
17898EOF
17899
17900fi
17901
17902if test "$wxUSE_FILE" = "yes"; then
17903 cat >> confdefs.h <<\EOF
17904#define wxUSE_FILE 1
17905EOF
17906
17907fi
17908
17909if test "$wxUSE_FFILE" = "yes"; then
17910 cat >> confdefs.h <<\EOF
17911#define wxUSE_FFILE 1
17912EOF
17913
17914fi
17915
17916if test "$wxUSE_FILESYSTEM" = "yes"; then
17917 cat >> confdefs.h <<\EOF
17918#define wxUSE_FILESYSTEM 1
17919EOF
17920
17921fi
17922
17923if test "$wxUSE_FS_INET" = "yes"; then
17924 cat >> confdefs.h <<\EOF
17925#define wxUSE_FS_INET 1
17926EOF
17927
17928fi
17929
17930if test "$wxUSE_FS_ZIP" = "yes"; then
17931 cat >> confdefs.h <<\EOF
17932#define wxUSE_FS_ZIP 1
17933EOF
17934
17935fi
17936
17937if test "$wxUSE_ZIPSTREAM" = "yes"; then
17938 cat >> confdefs.h <<\EOF
17939#define wxUSE_ZIPSTREAM 1
17940EOF
17941
17942fi
17943
17944if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
17945 cat >> confdefs.h <<\EOF
17946#define wxUSE_ON_FATAL_EXCEPTION 1
17947EOF
17948
17949fi
17950
17951if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
17952 cat >> confdefs.h <<\EOF
17953#define wxUSE_SNGLINST_CHECKER 1
17954EOF
17955
17956fi
17957
17958if test "$wxUSE_BUSYINFO" = "yes"; then
17959 cat >> confdefs.h <<\EOF
17960#define wxUSE_BUSYINFO 1
17961EOF
17962
17963fi
17964
17965if test "$wxUSE_STD_IOSTREAM" = "yes"; then
17966 cat >> confdefs.h <<\EOF
17967#define wxUSE_STD_IOSTREAM 1
17968EOF
17969
17970fi
17971
17972if test "$wxUSE_TEXTBUFFER" = "yes"; then
17973 cat >> confdefs.h <<\EOF
17974#define wxUSE_TEXTBUFFER 1
17975EOF
17976
17977fi
17978
17979if test "$wxUSE_TEXTFILE" = "yes"; then
17980 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
17981 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
17982 else
17983 cat >> confdefs.h <<\EOF
17984#define wxUSE_TEXTFILE 1
17985EOF
17986
17987 fi
17988fi
17989
17990if test "$wxUSE_CONFIG" = "yes" ; then
17991 if test "$wxUSE_TEXTFILE" != "yes"; then
17992 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
17993 else
17994 cat >> confdefs.h <<\EOF
17995#define wxUSE_CONFIG 1
17996EOF
17997
17998 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
17999 fi
18000fi
18001
18002if test "$wxUSE_INTL" = "yes" ; then
18003 if test "$wxUSE_FILE" != "yes"; then
18004 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
18005 else
18006 cat >> confdefs.h <<\EOF
18007#define wxUSE_INTL 1
18008EOF
18009
18010 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
18011 GUIDIST="$GUIDIST INTL_DIST"
18012 fi
18013fi
18014
18015if test "$wxUSE_LOG" = "yes"; then
18016 cat >> confdefs.h <<\EOF
18017#define wxUSE_LOG 1
18018EOF
18019
18020
18021 if test "$wxUSE_LOGGUI" = "yes"; then
18022 cat >> confdefs.h <<\EOF
18023#define wxUSE_LOGGUI 1
18024EOF
18025
18026 fi
18027
18028 if test "$wxUSE_LOGWINDOW" = "yes"; then
18029 cat >> confdefs.h <<\EOF
18030#define wxUSE_LOGWINDOW 1
18031EOF
18032
18033 fi
18034
18035 if test "$wxUSE_LOGDIALOG" = "yes"; then
18036 cat >> confdefs.h <<\EOF
18037#define wxUSE_LOG_DIALOG 1
18038EOF
18039
18040 fi
18041fi
18042
18043if test "$wxUSE_LONGLONG" = "yes"; then
18044 cat >> confdefs.h <<\EOF
18045#define wxUSE_LONGLONG 1
18046EOF
18047
18048fi
18049
18050if test "$wxUSE_GEOMETRY" = "yes"; then
18051 cat >> confdefs.h <<\EOF
18052#define wxUSE_GEOMETRY 1
18053EOF
18054
18055fi
18056
18057if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
18058 cat >> confdefs.h <<\EOF
18059#define wxUSE_DIALUP_MANAGER 1
18060EOF
18061
18062 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
18063fi
18064
18065if test "$wxUSE_STREAMS" = "yes" ; then
18066 cat >> confdefs.h <<\EOF
18067#define wxUSE_STREAMS 1
18068EOF
18069
18070fi
18071
18072
18073if test "$wxUSE_DATETIME" = "yes"; then
18074 for ac_func in strptime
18075do
18076echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18077echo "configure:18078: checking for $ac_func" >&5
18078if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18079 echo $ac_n "(cached) $ac_c" 1>&6
18080else
18081 cat > conftest.$ac_ext <<EOF
18082#line 18083 "configure"
18083#include "confdefs.h"
18084/* System header to define __stub macros and hopefully few prototypes,
18085 which can conflict with char $ac_func(); below. */
18086#include <assert.h>
18087/* Override any gcc2 internal prototype to avoid an error. */
18088/* We use char because int might match the return type of a gcc2
18089 builtin and then its argument prototype would still apply. */
18090char $ac_func();
18091
18092int main() {
18093
18094/* The GNU C library defines this for functions which it implements
18095 to always fail with ENOSYS. Some functions are actually named
18096 something starting with __ and the normal name is an alias. */
18097#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18098choke me
18099#else
18100$ac_func();
18101#endif
18102
18103; return 0; }
18104EOF
18105if { (eval echo configure:18106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18106 rm -rf conftest*
18107 eval "ac_cv_func_$ac_func=yes"
18108else
18109 echo "configure: failed program was:" >&5
18110 cat conftest.$ac_ext >&5
18111 rm -rf conftest*
18112 eval "ac_cv_func_$ac_func=no"
18113fi
18114rm -f conftest*
18115fi
18116
18117if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18118 echo "$ac_t""yes" 1>&6
18119 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18120 cat >> confdefs.h <<EOF
18121#define $ac_tr_func 1
18122EOF
18123
18124else
18125 echo "$ac_t""no" 1>&6
18126fi
18127done
18128
18129
18130 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
18131echo "configure:18132: checking for timezone variable in <time.h>" >&5
18132if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18133 echo $ac_n "(cached) $ac_c" 1>&6
18134else
18135
18136 cat > conftest.$ac_ext <<EOF
18137#line 18138 "configure"
18138#include "confdefs.h"
18139
18140 #include <time.h>
18141
18142int main() {
18143
18144 int tz;
18145 tz = timezone;
18146
18147; return 0; }
18148EOF
18149if { (eval echo configure:18150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18150 rm -rf conftest*
18151
18152 wx_cv_var_timezone=timezone
18153
18154else
18155 echo "configure: failed program was:" >&5
18156 cat conftest.$ac_ext >&5
18157 rm -rf conftest*
18158
18159 cat > conftest.$ac_ext <<EOF
18160#line 18161 "configure"
18161#include "confdefs.h"
18162
18163 #include <time.h>
18164
18165int main() {
18166
18167 int tz;
18168 tz = _timezone;
18169
18170; return 0; }
18171EOF
18172if { (eval echo configure:18173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18173 rm -rf conftest*
18174
18175 wx_cv_var_timezone=_timezone
18176
18177else
18178 echo "configure: failed program was:" >&5
18179 cat conftest.$ac_ext >&5
18180 rm -rf conftest*
18181
18182 cat > conftest.$ac_ext <<EOF
18183#line 18184 "configure"
18184#include "confdefs.h"
18185
18186 #include <time.h>
18187
18188int main() {
18189
18190 int tz;
18191 tz = __timezone;
18192
18193; return 0; }
18194EOF
18195if { (eval echo configure:18196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18196 rm -rf conftest*
18197
18198 wx_cv_var_timezone=__timezone
18199
18200else
18201 echo "configure: failed program was:" >&5
18202 cat conftest.$ac_ext >&5
18203 rm -rf conftest*
18204
18205 if test "$USE_DOS" = 0 ; then
18206 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
18207 fi
18208
18209
18210fi
18211rm -f conftest*
18212
18213
18214fi
18215rm -f conftest*
18216
18217
18218fi
18219rm -f conftest*
18220
18221
18222fi
18223
18224echo "$ac_t""$wx_cv_var_timezone" 1>&6
18225
18226 if test "x$wx_cv_var_timezone" != x ; then
18227 cat >> confdefs.h <<EOF
18228#define WX_TIMEZONE $wx_cv_var_timezone
18229EOF
18230
18231 fi
18232
18233 for ac_func in localtime
18234do
18235echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18236echo "configure:18237: checking for $ac_func" >&5
18237if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18238 echo $ac_n "(cached) $ac_c" 1>&6
18239else
18240 cat > conftest.$ac_ext <<EOF
18241#line 18242 "configure"
18242#include "confdefs.h"
18243/* System header to define __stub macros and hopefully few prototypes,
18244 which can conflict with char $ac_func(); below. */
18245#include <assert.h>
18246/* Override any gcc2 internal prototype to avoid an error. */
18247/* We use char because int might match the return type of a gcc2
18248 builtin and then its argument prototype would still apply. */
18249char $ac_func();
18250
18251int main() {
18252
18253/* The GNU C library defines this for functions which it implements
18254 to always fail with ENOSYS. Some functions are actually named
18255 something starting with __ and the normal name is an alias. */
18256#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18257choke me
18258#else
18259$ac_func();
18260#endif
18261
18262; return 0; }
18263EOF
18264if { (eval echo configure:18265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18265 rm -rf conftest*
18266 eval "ac_cv_func_$ac_func=yes"
18267else
18268 echo "configure: failed program was:" >&5
18269 cat conftest.$ac_ext >&5
18270 rm -rf conftest*
18271 eval "ac_cv_func_$ac_func=no"
18272fi
18273rm -f conftest*
18274fi
18275
18276if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18277 echo "$ac_t""yes" 1>&6
18278 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18279 cat >> confdefs.h <<EOF
18280#define $ac_tr_func 1
18281EOF
18282
18283else
18284 echo "$ac_t""no" 1>&6
18285fi
18286done
18287
18288
18289 if test "$ac_cv_func_localtime" = "yes"; then
18290 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
18291echo "configure:18292: checking for tm_gmtoff in struct tm" >&5
18292if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18293 echo $ac_n "(cached) $ac_c" 1>&6
18294else
18295
18296 cat > conftest.$ac_ext <<EOF
18297#line 18298 "configure"
18298#include "confdefs.h"
18299
18300 #include <time.h>
18301
18302int main() {
18303
18304 struct tm tm;
18305 tm.tm_gmtoff++;
18306
18307; return 0; }
18308EOF
18309if { (eval echo configure:18310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18310 rm -rf conftest*
18311
18312 wx_cv_struct_tm_has_gmtoff=yes
18313
18314else
18315 echo "configure: failed program was:" >&5
18316 cat conftest.$ac_ext >&5
18317 rm -rf conftest*
18318 wx_cv_struct_tm_has_gmtoff=no
18319
18320fi
18321rm -f conftest*
18322
18323fi
18324
18325echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
18326 fi
18327
18328 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
18329 cat >> confdefs.h <<\EOF
18330#define WX_GMTOFF_IN_TM 1
18331EOF
18332
18333 fi
18334
18335 for ac_func in gettimeofday ftime
18336do
18337echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18338echo "configure:18339: checking for $ac_func" >&5
18339if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18340 echo $ac_n "(cached) $ac_c" 1>&6
18341else
18342 cat > conftest.$ac_ext <<EOF
18343#line 18344 "configure"
18344#include "confdefs.h"
18345/* System header to define __stub macros and hopefully few prototypes,
18346 which can conflict with char $ac_func(); below. */
18347#include <assert.h>
18348/* Override any gcc2 internal prototype to avoid an error. */
18349/* We use char because int might match the return type of a gcc2
18350 builtin and then its argument prototype would still apply. */
18351char $ac_func();
18352
18353int main() {
18354
18355/* The GNU C library defines this for functions which it implements
18356 to always fail with ENOSYS. Some functions are actually named
18357 something starting with __ and the normal name is an alias. */
18358#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18359choke me
18360#else
18361$ac_func();
18362#endif
18363
18364; return 0; }
18365EOF
18366if { (eval echo configure:18367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18367 rm -rf conftest*
18368 eval "ac_cv_func_$ac_func=yes"
18369else
18370 echo "configure: failed program was:" >&5
18371 cat conftest.$ac_ext >&5
18372 rm -rf conftest*
18373 eval "ac_cv_func_$ac_func=no"
18374fi
18375rm -f conftest*
18376fi
18377
18378if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18379 echo "$ac_t""yes" 1>&6
18380 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18381 cat >> confdefs.h <<EOF
18382#define $ac_tr_func 1
18383EOF
18384 break
18385else
18386 echo "$ac_t""no" 1>&6
18387fi
18388done
18389
18390
18391 if test "$ac_cv_func_gettimeofday" = "yes"; then
18392 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
18393echo "configure:18394: checking whether gettimeofday takes two arguments" >&5
18394if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
18395 echo $ac_n "(cached) $ac_c" 1>&6
18396else
18397
18398
18399 ac_ext=C
18400# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18401ac_cpp='$CXXCPP $CPPFLAGS'
18402ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18403ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18404cross_compiling=$ac_cv_prog_cxx_cross
18405
18406
18407 cat > conftest.$ac_ext <<EOF
18408#line 18409 "configure"
18409#include "confdefs.h"
18410
18411 #include <sys/time.h>
18412 #include <unistd.h>
18413
18414int main() {
18415
18416 struct timeval tv;
18417 gettimeofday(&tv, NULL);
18418
18419; return 0; }
18420EOF
18421if { (eval echo configure:18422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18422 rm -rf conftest*
18423 wx_cv_func_gettimeofday_has_2_args=yes
18424else
18425 echo "configure: failed program was:" >&5
18426 cat conftest.$ac_ext >&5
18427 rm -rf conftest*
18428 cat > conftest.$ac_ext <<EOF
18429#line 18430 "configure"
18430#include "confdefs.h"
18431
18432 #include <sys/time.h>
18433 #include <unistd.h>
18434
18435int main() {
18436
18437 struct timeval tv;
18438 gettimeofday(&tv);
18439
18440; return 0; }
18441EOF
18442if { (eval echo configure:18443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18443 rm -rf conftest*
18444 wx_cv_func_gettimeofday_has_2_args=no
18445else
18446 echo "configure: failed program was:" >&5
18447 cat conftest.$ac_ext >&5
18448 rm -rf conftest*
18449
18450 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
18451 wx_cv_func_gettimeofday_has_2_args=unknown
18452
18453
18454fi
18455rm -f conftest*
18456
18457fi
18458rm -f conftest*
18459 ac_ext=c
18460# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18461ac_cpp='$CPP $CPPFLAGS'
18462ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18463ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18464cross_compiling=$ac_cv_prog_cc_cross
18465
18466
18467fi
18468
18469echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
18470
18471 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
18472 cat >> confdefs.h <<\EOF
18473#define WX_GETTIMEOFDAY_NO_TZ 1
18474EOF
18475
18476 fi
18477 fi
18478
18479 cat >> confdefs.h <<\EOF
18480#define wxUSE_TIMEDATE 1
18481EOF
18482
18483 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
18484fi
18485
18486
18487if test "$TOOLKIT" != "MSW"; then
18488
18489 if test "$wxUSE_SOCKETS" = "yes"; then
18490 echo $ac_n "checking for socket""... $ac_c" 1>&6
18491echo "configure:18492: checking for socket" >&5
18492if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
18493 echo $ac_n "(cached) $ac_c" 1>&6
18494else
18495 cat > conftest.$ac_ext <<EOF
18496#line 18497 "configure"
18497#include "confdefs.h"
18498/* System header to define __stub macros and hopefully few prototypes,
18499 which can conflict with char socket(); below. */
18500#include <assert.h>
18501/* Override any gcc2 internal prototype to avoid an error. */
18502/* We use char because int might match the return type of a gcc2
18503 builtin and then its argument prototype would still apply. */
18504char socket();
18505
18506int main() {
18507
18508/* The GNU C library defines this for functions which it implements
18509 to always fail with ENOSYS. Some functions are actually named
18510 something starting with __ and the normal name is an alias. */
18511#if defined (__stub_socket) || defined (__stub___socket)
18512choke me
18513#else
18514socket();
18515#endif
18516
18517; return 0; }
18518EOF
18519if { (eval echo configure:18520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18520 rm -rf conftest*
18521 eval "ac_cv_func_socket=yes"
18522else
18523 echo "configure: failed program was:" >&5
18524 cat conftest.$ac_ext >&5
18525 rm -rf conftest*
18526 eval "ac_cv_func_socket=no"
18527fi
18528rm -f conftest*
18529fi
18530
18531if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
18532 echo "$ac_t""yes" 1>&6
18533 :
18534else
18535 echo "$ac_t""no" 1>&6
18536echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
18537echo "configure:18538: checking for socket in -lsocket" >&5
18538ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
18539if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18540 echo $ac_n "(cached) $ac_c" 1>&6
18541else
18542 ac_save_LIBS="$LIBS"
18543LIBS="-lsocket $LIBS"
18544cat > conftest.$ac_ext <<EOF
18545#line 18546 "configure"
18546#include "confdefs.h"
18547/* Override any gcc2 internal prototype to avoid an error. */
18548/* We use char because int might match the return type of a gcc2
18549 builtin and then its argument prototype would still apply. */
18550char socket();
18551
18552int main() {
18553socket()
18554; return 0; }
18555EOF
18556if { (eval echo configure:18557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18557 rm -rf conftest*
18558 eval "ac_cv_lib_$ac_lib_var=yes"
18559else
18560 echo "configure: failed program was:" >&5
18561 cat conftest.$ac_ext >&5
18562 rm -rf conftest*
18563 eval "ac_cv_lib_$ac_lib_var=no"
18564fi
18565rm -f conftest*
18566LIBS="$ac_save_LIBS"
18567
18568fi
18569if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18570 echo "$ac_t""yes" 1>&6
18571 INET_LINK="$INET_LINK -lsocket"
18572else
18573 echo "$ac_t""no" 1>&6
18574
18575 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
18576 wxUSE_SOCKETS=no
18577
18578
18579fi
18580
18581
18582fi
18583
18584 fi
18585
18586
18587 if test "$wxUSE_SOCKETS" = "yes" ; then
18588 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
18589echo "configure:18590: checking what is the type of the third argument of getsockname" >&5
18590if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
18591 echo $ac_n "(cached) $ac_c" 1>&6
18592else
18593
18594
18595 ac_ext=C
18596# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18597ac_cpp='$CXXCPP $CPPFLAGS'
18598ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18599ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18600cross_compiling=$ac_cv_prog_cxx_cross
18601
18602
18603 cat > conftest.$ac_ext <<EOF
18604#line 18605 "configure"
18605#include "confdefs.h"
18606
18607 #include <sys/types.h>
18608 #include <sys/socket.h>
18609
18610int main() {
18611
18612 socklen_t len;
18613 getsockname(0, 0, &len);
18614
18615; return 0; }
18616EOF
18617if { (eval echo configure:18618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18618 rm -rf conftest*
18619 wx_cv_type_getsockname3=socklen_t
18620else
18621 echo "configure: failed program was:" >&5
18622 cat conftest.$ac_ext >&5
18623 rm -rf conftest*
18624 cat > conftest.$ac_ext <<EOF
18625#line 18626 "configure"
18626#include "confdefs.h"
18627
18628 #include <sys/types.h>
18629 #include <sys/socket.h>
18630
18631int main() {
18632
18633 size_t len;
18634 getsockname(0, 0, &len);
18635
18636; return 0; }
18637EOF
18638if { (eval echo configure:18639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18639 rm -rf conftest*
18640 wx_cv_type_getsockname3=size_t
18641else
18642 echo "configure: failed program was:" >&5
18643 cat conftest.$ac_ext >&5
18644 rm -rf conftest*
18645 cat > conftest.$ac_ext <<EOF
18646#line 18647 "configure"
18647#include "confdefs.h"
18648
18649 #include <sys/types.h>
18650 #include <sys/socket.h>
18651
18652int main() {
18653
18654 int len;
18655 getsockname(0, 0, &len);
18656
18657; return 0; }
18658EOF
18659if { (eval echo configure:18660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18660 rm -rf conftest*
18661 wx_cv_type_getsockname3=int
18662else
18663 echo "configure: failed program was:" >&5
18664 cat conftest.$ac_ext >&5
18665 rm -rf conftest*
18666 wx_cv_type_getsockname3=unknown
18667
18668fi
18669rm -f conftest*
18670
18671fi
18672rm -f conftest*
18673
18674fi
18675rm -f conftest*
18676
18677 ac_ext=c
18678# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18679ac_cpp='$CPP $CPPFLAGS'
18680ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18681ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18682cross_compiling=$ac_cv_prog_cc_cross
18683
18684
18685fi
18686
18687echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
18688
18689 if test "$wx_cv_type_getsockname3" = "unknown"; then
18690 wxUSE_SOCKETS=no
18691 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
18692 else
18693 cat >> confdefs.h <<EOF
18694#define SOCKLEN_T $wx_cv_type_getsockname3
18695EOF
18696
18697 fi
18698 fi
18699fi
18700
18701if test "$wxUSE_SOCKETS" = "yes" ; then
18702 cat >> confdefs.h <<\EOF
18703#define wxUSE_SOCKETS 1
18704EOF
18705
18706 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
18707fi
18708
18709
18710if test "$wxUSE_GUI" = "yes"; then
18711
18712 if test "$TOOLKIT" = "MAC"; then
18713 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
18714 wxUSE_JOYSTICK=no
18715 fi
18716 if test "$TOOLKIT" = "MOTIF"; then
18717 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
18718 wxUSE_JOYSTICK=no
18719 fi
18720 if test "$TOOLKIT" = "X11"; then
18721 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
18722 wxUSE_JOYSTICK=no
18723 fi
18724
18725 if test "$TOOLKIT" != "MSW"; then
18726 if test "$wxUSE_JOYSTICK" = "yes"; then
18727 for ac_hdr in linux/joystick.h
18728do
18729ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18730echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18731echo "configure:18732: checking for $ac_hdr" >&5
18732if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18733 echo $ac_n "(cached) $ac_c" 1>&6
18734else
18735 cat > conftest.$ac_ext <<EOF
18736#line 18737 "configure"
18737#include "confdefs.h"
18738#include <$ac_hdr>
18739EOF
18740ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18741{ (eval echo configure:18742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18742ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18743if test -z "$ac_err"; then
18744 rm -rf conftest*
18745 eval "ac_cv_header_$ac_safe=yes"
18746else
18747 echo "$ac_err" >&5
18748 echo "configure: failed program was:" >&5
18749 cat conftest.$ac_ext >&5
18750 rm -rf conftest*
18751 eval "ac_cv_header_$ac_safe=no"
18752fi
18753rm -f conftest*
18754fi
18755if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18756 echo "$ac_t""yes" 1>&6
18757 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18758 cat >> confdefs.h <<EOF
18759#define $ac_tr_hdr 1
18760EOF
18761
18762else
18763 echo "$ac_t""no" 1>&6
18764fi
18765done
18766
18767 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
18768 wxUSE_JOYSTICK=no
18769 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
18770 fi
18771 fi
18772 fi
18773
18774 if test "$wxUSE_JOYSTICK" = "yes"; then
18775 cat >> confdefs.h <<\EOF
18776#define wxUSE_JOYSTICK 1
18777EOF
18778
18779 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
18780 fi
18781fi
18782
18783
18784if test "$TOOLKIT" != "MSW"; then
18785
18786 HAVE_DL_FUNCS=0
18787 HAVE_SHL_FUNCS=0
18788 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
18789 if test "$USE_DARWIN" = 1; then
18790 HAVE_DL_FUNCS=1
18791 else
18792 for ac_func in dlopen
18793do
18794echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18795echo "configure:18796: checking for $ac_func" >&5
18796if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18797 echo $ac_n "(cached) $ac_c" 1>&6
18798else
18799 cat > conftest.$ac_ext <<EOF
18800#line 18801 "configure"
18801#include "confdefs.h"
18802/* System header to define __stub macros and hopefully few prototypes,
18803 which can conflict with char $ac_func(); below. */
18804#include <assert.h>
18805/* Override any gcc2 internal prototype to avoid an error. */
18806/* We use char because int might match the return type of a gcc2
18807 builtin and then its argument prototype would still apply. */
18808char $ac_func();
18809
18810int main() {
18811
18812/* The GNU C library defines this for functions which it implements
18813 to always fail with ENOSYS. Some functions are actually named
18814 something starting with __ and the normal name is an alias. */
18815#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18816choke me
18817#else
18818$ac_func();
18819#endif
18820
18821; return 0; }
18822EOF
18823if { (eval echo configure:18824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18824 rm -rf conftest*
18825 eval "ac_cv_func_$ac_func=yes"
18826else
18827 echo "configure: failed program was:" >&5
18828 cat conftest.$ac_ext >&5
18829 rm -rf conftest*
18830 eval "ac_cv_func_$ac_func=no"
18831fi
18832rm -f conftest*
18833fi
18834
18835if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18836 echo "$ac_t""yes" 1>&6
18837 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18838 cat >> confdefs.h <<EOF
18839#define $ac_tr_func 1
18840EOF
18841
18842 cat >> confdefs.h <<\EOF
18843#define HAVE_DLOPEN 1
18844EOF
18845
18846 HAVE_DL_FUNCS=1
18847
18848else
18849 echo "$ac_t""no" 1>&6
18850echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
18851echo "configure:18852: checking for dlopen in -ldl" >&5
18852ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
18853if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18854 echo $ac_n "(cached) $ac_c" 1>&6
18855else
18856 ac_save_LIBS="$LIBS"
18857LIBS="-ldl $LIBS"
18858cat > conftest.$ac_ext <<EOF
18859#line 18860 "configure"
18860#include "confdefs.h"
18861/* Override any gcc2 internal prototype to avoid an error. */
18862/* We use char because int might match the return type of a gcc2
18863 builtin and then its argument prototype would still apply. */
18864char dlopen();
18865
18866int main() {
18867dlopen()
18868; return 0; }
18869EOF
18870if { (eval echo configure:18871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18871 rm -rf conftest*
18872 eval "ac_cv_lib_$ac_lib_var=yes"
18873else
18874 echo "configure: failed program was:" >&5
18875 cat conftest.$ac_ext >&5
18876 rm -rf conftest*
18877 eval "ac_cv_lib_$ac_lib_var=no"
18878fi
18879rm -f conftest*
18880LIBS="$ac_save_LIBS"
18881
18882fi
18883if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18884 echo "$ac_t""yes" 1>&6
18885
18886 cat >> confdefs.h <<\EOF
18887#define HAVE_DLOPEN 1
18888EOF
18889
18890 HAVE_DL_FUNCS=1
18891 DL_LINK=" -ldl$DL_LINK"
18892
18893else
18894 echo "$ac_t""no" 1>&6
18895
18896 for ac_func in shl_load
18897do
18898echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18899echo "configure:18900: checking for $ac_func" >&5
18900if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18901 echo $ac_n "(cached) $ac_c" 1>&6
18902else
18903 cat > conftest.$ac_ext <<EOF
18904#line 18905 "configure"
18905#include "confdefs.h"
18906/* System header to define __stub macros and hopefully few prototypes,
18907 which can conflict with char $ac_func(); below. */
18908#include <assert.h>
18909/* Override any gcc2 internal prototype to avoid an error. */
18910/* We use char because int might match the return type of a gcc2
18911 builtin and then its argument prototype would still apply. */
18912char $ac_func();
18913
18914int main() {
18915
18916/* The GNU C library defines this for functions which it implements
18917 to always fail with ENOSYS. Some functions are actually named
18918 something starting with __ and the normal name is an alias. */
18919#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18920choke me
18921#else
18922$ac_func();
18923#endif
18924
18925; return 0; }
18926EOF
18927if { (eval echo configure:18928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18928 rm -rf conftest*
18929 eval "ac_cv_func_$ac_func=yes"
18930else
18931 echo "configure: failed program was:" >&5
18932 cat conftest.$ac_ext >&5
18933 rm -rf conftest*
18934 eval "ac_cv_func_$ac_func=no"
18935fi
18936rm -f conftest*
18937fi
18938
18939if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18940 echo "$ac_t""yes" 1>&6
18941 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18942 cat >> confdefs.h <<EOF
18943#define $ac_tr_func 1
18944EOF
18945
18946 cat >> confdefs.h <<\EOF
18947#define HAVE_SHL_LOAD 1
18948EOF
18949
18950 HAVE_SHL_FUNCS=1
18951
18952else
18953 echo "$ac_t""no" 1>&6
18954echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
18955echo "configure:18956: checking for dld in -lshl_load" >&5
18956ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
18957if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18958 echo $ac_n "(cached) $ac_c" 1>&6
18959else
18960 ac_save_LIBS="$LIBS"
18961LIBS="-lshl_load $LIBS"
18962cat > conftest.$ac_ext <<EOF
18963#line 18964 "configure"
18964#include "confdefs.h"
18965/* Override any gcc2 internal prototype to avoid an error. */
18966/* We use char because int might match the return type of a gcc2
18967 builtin and then its argument prototype would still apply. */
18968char dld();
18969
18970int main() {
18971dld()
18972; return 0; }
18973EOF
18974if { (eval echo configure:18975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18975 rm -rf conftest*
18976 eval "ac_cv_lib_$ac_lib_var=yes"
18977else
18978 echo "configure: failed program was:" >&5
18979 cat conftest.$ac_ext >&5
18980 rm -rf conftest*
18981 eval "ac_cv_lib_$ac_lib_var=no"
18982fi
18983rm -f conftest*
18984LIBS="$ac_save_LIBS"
18985
18986fi
18987if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18988 echo "$ac_t""yes" 1>&6
18989
18990 HAVE_SHL_FUNCS=1
18991 DL_LINK=" -ldld$DL_LINK"
18992
18993else
18994 echo "$ac_t""no" 1>&6
18995fi
18996
18997
18998fi
18999done
19000
19001
19002fi
19003
19004
19005fi
19006done
19007
19008
19009 if test "$HAVE_DL_FUNCS" = 1; then
19010 for ac_func in dlerror
19011do
19012echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19013echo "configure:19014: checking for $ac_func" >&5
19014if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19015 echo $ac_n "(cached) $ac_c" 1>&6
19016else
19017 cat > conftest.$ac_ext <<EOF
19018#line 19019 "configure"
19019#include "confdefs.h"
19020/* System header to define __stub macros and hopefully few prototypes,
19021 which can conflict with char $ac_func(); below. */
19022#include <assert.h>
19023/* Override any gcc2 internal prototype to avoid an error. */
19024/* We use char because int might match the return type of a gcc2
19025 builtin and then its argument prototype would still apply. */
19026char $ac_func();
19027
19028int main() {
19029
19030/* The GNU C library defines this for functions which it implements
19031 to always fail with ENOSYS. Some functions are actually named
19032 something starting with __ and the normal name is an alias. */
19033#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19034choke me
19035#else
19036$ac_func();
19037#endif
19038
19039; return 0; }
19040EOF
19041if { (eval echo configure:19042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19042 rm -rf conftest*
19043 eval "ac_cv_func_$ac_func=yes"
19044else
19045 echo "configure: failed program was:" >&5
19046 cat conftest.$ac_ext >&5
19047 rm -rf conftest*
19048 eval "ac_cv_func_$ac_func=no"
19049fi
19050rm -f conftest*
19051fi
19052
19053if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19054 echo "$ac_t""yes" 1>&6
19055 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19056 cat >> confdefs.h <<EOF
19057#define $ac_tr_func 1
19058EOF
19059 cat >> confdefs.h <<\EOF
19060#define HAVE_DLERROR 1
19061EOF
19062
19063else
19064 echo "$ac_t""no" 1>&6
19065echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
19066echo "configure:19067: checking for dlerror in -ldl" >&5
19067ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19068if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19069 echo $ac_n "(cached) $ac_c" 1>&6
19070else
19071 ac_save_LIBS="$LIBS"
19072LIBS="-ldl $LIBS"
19073cat > conftest.$ac_ext <<EOF
19074#line 19075 "configure"
19075#include "confdefs.h"
19076/* Override any gcc2 internal prototype to avoid an error. */
19077/* We use char because int might match the return type of a gcc2
19078 builtin and then its argument prototype would still apply. */
19079char dlerror();
19080
19081int main() {
19082dlerror()
19083; return 0; }
19084EOF
19085if { (eval echo configure:19086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19086 rm -rf conftest*
19087 eval "ac_cv_lib_$ac_lib_var=yes"
19088else
19089 echo "configure: failed program was:" >&5
19090 cat conftest.$ac_ext >&5
19091 rm -rf conftest*
19092 eval "ac_cv_lib_$ac_lib_var=no"
19093fi
19094rm -f conftest*
19095LIBS="$ac_save_LIBS"
19096
19097fi
19098if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19099 echo "$ac_t""yes" 1>&6
19100 cat >> confdefs.h <<\EOF
19101#define HAVE_DLERROR 1
19102EOF
19103
19104else
19105 echo "$ac_t""no" 1>&6
19106fi
19107
19108fi
19109done
19110
19111 fi
19112 fi
19113
19114 if test "$HAVE_DL_FUNCS" = 0; then
19115 if test "$HAVE_SHL_FUNCS" = 0; then
19116 if test "$USE_UNIX" = 1; then
19117 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
19118 wxUSE_DYNAMIC_LOADER=no
19119 wxUSE_DYNLIB_CLASS=no
19120 else
19121 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
19122 fi
19123 fi
19124 fi
19125 fi
19126fi
19127
19128if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
19129 cat >> confdefs.h <<\EOF
19130#define wxUSE_DYNAMIC_LOADER 1
19131EOF
19132
19133elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19134 cat >> confdefs.h <<\EOF
19135#define wxUSE_DYNLIB_CLASS 1
19136EOF
19137
19138fi
19139
19140
19141if test "$wxUSE_FONTMAP" = "yes" ; then
19142 cat >> confdefs.h <<\EOF
19143#define wxUSE_FONTMAP 1
19144EOF
19145
19146fi
19147
19148if test "$wxUSE_UNICODE" = "yes" ; then
19149 cat >> confdefs.h <<\EOF
19150#define wxUSE_UNICODE 1
19151EOF
19152
19153
19154 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
19155 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
19156echo "configure:19157: checking for main in -lunicows" >&5
19157ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19158if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19159 echo $ac_n "(cached) $ac_c" 1>&6
19160else
19161 ac_save_LIBS="$LIBS"
19162LIBS="-lunicows $LIBS"
19163cat > conftest.$ac_ext <<EOF
19164#line 19165 "configure"
19165#include "confdefs.h"
19166
19167int main() {
19168main()
19169; return 0; }
19170EOF
19171if { (eval echo configure:19172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19172 rm -rf conftest*
19173 eval "ac_cv_lib_$ac_lib_var=yes"
19174else
19175 echo "configure: failed program was:" >&5
19176 cat conftest.$ac_ext >&5
19177 rm -rf conftest*
19178 eval "ac_cv_lib_$ac_lib_var=no"
19179fi
19180rm -f conftest*
19181LIBS="$ac_save_LIBS"
19182
19183fi
19184if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19185 echo "$ac_t""yes" 1>&6
19186
19187 cat >> confdefs.h <<\EOF
19188#define wxUSE_UNICODE_MSLU 1
19189EOF
19190
19191
19192else
19193 echo "$ac_t""no" 1>&6
19194
19195 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19196 Applications will only run on Windows NT/2000/XP!" 1>&2
19197 wxUSE_UNICODE_MSLU=no
19198
19199fi
19200
19201 fi
19202fi
19203
19204if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
19205 cat >> confdefs.h <<\EOF
19206#define wxUSE_EXPERIMENTAL_PRINTF 1
19207EOF
19208
19209fi
19210
19211
19212
19213IODBC_C_SRC=""
19214if test "$wxUSE_ODBC" = "yes" ; then
19215 cat >> confdefs.h <<\EOF
19216#define wxUSE_ODBC 1
19217EOF
19218
19219 WXODBCFLAG="-D_IODBC_"
19220 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
19221fi
19222
19223
19224if test "$wxUSE_POSTSCRIPT" = "yes" ; then
19225 cat >> confdefs.h <<\EOF
19226#define wxUSE_POSTSCRIPT 1
19227EOF
19228
19229fi
19230
19231cat >> confdefs.h <<\EOF
19232#define wxUSE_AFM_FOR_POSTSCRIPT 1
19233EOF
19234
19235
19236cat >> confdefs.h <<\EOF
19237#define wxUSE_NORMALIZED_PS_FONTS 1
19238EOF
19239
19240
19241
19242if test "$wxUSE_CONSTRAINTS" = "yes"; then
19243 cat >> confdefs.h <<\EOF
19244#define wxUSE_CONSTRAINTS 1
19245EOF
19246
19247 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19248fi
19249
19250if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19251 if test "$wxUSE_UNIVERSAL" = "yes"; then
19252 echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2
19253 wxUSE_MDI_ARCHITECTURE=no
19254 fi
19255
19256 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19257 cat >> confdefs.h <<\EOF
19258#define wxUSE_MDI_ARCHITECTURE 1
19259EOF
19260
19261 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19262 fi
19263fi
19264
19265if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
19266 cat >> confdefs.h <<\EOF
19267#define wxUSE_DOC_VIEW_ARCHITECTURE 1
19268EOF
19269
19270 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19271 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19272 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19273 fi
19274fi
19275
19276if test "$wxUSE_HELP" = "yes"; then
19277 cat >> confdefs.h <<\EOF
19278#define wxUSE_HELP 1
19279EOF
19280
19281 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
19282
19283 if test "$wxUSE_MSW" = 1; then
19284 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
19285 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
19286echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
19287echo "configure:19288: checking for htmlhelp.h" >&5
19288if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19289 echo $ac_n "(cached) $ac_c" 1>&6
19290else
19291 cat > conftest.$ac_ext <<EOF
19292#line 19293 "configure"
19293#include "confdefs.h"
19294#include <htmlhelp.h>
19295EOF
19296ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19297{ (eval echo configure:19298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19298ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19299if test -z "$ac_err"; then
19300 rm -rf conftest*
19301 eval "ac_cv_header_$ac_safe=yes"
19302else
19303 echo "$ac_err" >&5
19304 echo "configure: failed program was:" >&5
19305 cat conftest.$ac_ext >&5
19306 rm -rf conftest*
19307 eval "ac_cv_header_$ac_safe=no"
19308fi
19309rm -f conftest*
19310fi
19311if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19312 echo "$ac_t""yes" 1>&6
19313
19314 cat >> confdefs.h <<\EOF
19315#define wxUSE_MS_HTML_HELP 1
19316EOF
19317
19318
19319else
19320 echo "$ac_t""no" 1>&6
19321
19322 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
19323 wxUSE_MS_HTML_HELP=no
19324
19325fi
19326
19327 fi
19328 fi
19329
19330 if test "$wxUSE_WXHTML_HELP" = "yes"; then
19331 if test "$wxUSE_HTML" = "yes"; then
19332 cat >> confdefs.h <<\EOF
19333#define wxUSE_WXHTML_HELP 1
19334EOF
19335
19336 else
19337 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
19338 wxUSE_WXHTML_HELP=no
19339 fi
19340 fi
19341fi
19342
19343if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19344 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19345 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
19346 else
19347 cat >> confdefs.h <<\EOF
19348#define wxUSE_PRINTING_ARCHITECTURE 1
19349EOF
19350
19351 fi
19352 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19353fi
19354
19355if test "$wxUSE_PROLOGIO" = "yes" ; then
19356 cat >> confdefs.h <<\EOF
19357#define wxUSE_PROLOGIO 1
19358EOF
19359
19360fi
19361
19362if test "$wxUSE_RESOURCES" = "yes" ; then
19363 cat >> confdefs.h <<\EOF
19364#define wxUSE_RESOURCES 1
19365EOF
19366
19367 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
19368fi
19369
19370if test "$wxUSE_X_RESOURCES" = "yes"; then
19371 cat >> confdefs.h <<\EOF
19372#define wxUSE_X_RESOURCES 1
19373EOF
19374
19375fi
19376
19377
19378if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
19379 -o "$wxUSE_CLIPBOARD" = "yes" \
19380 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
19381 for ac_hdr in ole2.h
19382do
19383ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19384echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19385echo "configure:19386: checking for $ac_hdr" >&5
19386if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19387 echo $ac_n "(cached) $ac_c" 1>&6
19388else
19389 cat > conftest.$ac_ext <<EOF
19390#line 19391 "configure"
19391#include "confdefs.h"
19392#include <$ac_hdr>
19393EOF
19394ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19395{ (eval echo configure:19396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19396ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19397if test -z "$ac_err"; then
19398 rm -rf conftest*
19399 eval "ac_cv_header_$ac_safe=yes"
19400else
19401 echo "$ac_err" >&5
19402 echo "configure: failed program was:" >&5
19403 cat conftest.$ac_ext >&5
19404 rm -rf conftest*
19405 eval "ac_cv_header_$ac_safe=no"
19406fi
19407rm -f conftest*
19408fi
19409if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19410 echo "$ac_t""yes" 1>&6
19411 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19412 cat >> confdefs.h <<EOF
19413#define $ac_tr_hdr 1
19414EOF
19415
19416else
19417 echo "$ac_t""no" 1>&6
19418fi
19419done
19420
19421
19422 if test "$ac_cv_header_ole2_h" = "yes" ; then
19423 if test "$GCC" = yes ; then
19424 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
19425 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
19426 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
19427 cat >> confdefs.h <<\EOF
19428#define wxUSE_OLE 1
19429EOF
19430
19431
19432 fi
19433
19434 cat >> confdefs.h <<\EOF
19435#define wxUSE_DATAOBJ 1
19436EOF
19437
19438 else
19439 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
19440
19441 wxUSE_CLIPBOARD=no
19442 wxUSE_DRAG_AND_DROP=no
19443 wxUSE_DATAOBJ=no
19444 fi
19445
19446 if test "$wxUSE_METAFILE" = "yes"; then
19447 cat >> confdefs.h <<\EOF
19448#define wxUSE_METAFILE 1
19449EOF
19450
19451
19452 cat >> confdefs.h <<\EOF
19453#define wxUSE_ENH_METAFILE 1
19454EOF
19455
19456 fi
19457fi
19458
19459if test "$wxUSE_IPC" = "yes"; then
19460 if test "$wxUSE_SOCKETS" != "yes"; then
19461 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
19462 fi
19463
19464 cat >> confdefs.h <<\EOF
19465#define wxUSE_IPC 1
19466EOF
19467
19468fi
19469
19470if test "$wxUSE_CLIPBOARD" = "yes"; then
19471 if test "$wxUSE_X11" = 1; then
19472 echo "configure: warning: Clipboard not yet supported under X11... disabled" 1>&2
19473 wxUSE_CLIPBOARD=no
19474 fi
19475
19476 if test "$wxUSE_CLIPBOARD" = "yes"; then
19477 cat >> confdefs.h <<\EOF
19478#define wxUSE_CLIPBOARD 1
19479EOF
19480
19481
19482 cat >> confdefs.h <<\EOF
19483#define wxUSE_DATAOBJ 1
19484EOF
19485
19486 fi
19487fi
19488
19489if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
19490 if test "$wxUSE_GTK" = 1; then
19491 if test "$WXGTK12" != 1; then
19492 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
19493 wxUSE_DRAG_AND_DROP=no
19494 fi
19495 fi
19496
19497 if test "$wxUSE_MOTIF" = 1; then
19498 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
19499 wxUSE_DRAG_AND_DROP=no
19500 fi
19501
19502 if test "$wxUSE_X11" = 1; then
19503 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
19504 wxUSE_DRAG_AND_DROP=no
19505 fi
19506
19507 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
19508 cat >> confdefs.h <<\EOF
19509#define wxUSE_DRAG_AND_DROP 1
19510EOF
19511
19512 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
19513 fi
19514
19515fi
19516
19517if test "$wxUSE_SPLINES" = "yes" ; then
19518 cat >> confdefs.h <<\EOF
19519#define wxUSE_SPLINES 1
19520EOF
19521
19522fi
19523
19524
19525USES_CONTROLS=0
19526if test "$wxUSE_CONTROLS" = "yes"; then
19527 USES_CONTROLS=1
19528fi
19529
19530if test "$wxUSE_ACCEL" = "yes"; then
19531 cat >> confdefs.h <<\EOF
19532#define wxUSE_ACCEL 1
19533EOF
19534
19535 USES_CONTROLS=1
19536fi
19537
19538if test "$wxUSE_BUTTON" = "yes"; then
19539 cat >> confdefs.h <<\EOF
19540#define wxUSE_BUTTON 1
19541EOF
19542
19543 USES_CONTROLS=1
19544fi
19545
19546if test "$wxUSE_BMPBUTTON" = "yes"; then
19547 cat >> confdefs.h <<\EOF
19548#define wxUSE_BMPBUTTON 1
19549EOF
19550
19551 USES_CONTROLS=1
19552fi
19553
19554if test "$wxUSE_CALCTRL" = "yes"; then
19555 cat >> confdefs.h <<\EOF
19556#define wxUSE_CALENDARCTRL 1
19557EOF
19558
19559 USES_CONTROLS=1
19560 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
19561fi
19562
19563if test "$wxUSE_CARET" = "yes"; then
19564 cat >> confdefs.h <<\EOF
19565#define wxUSE_CARET 1
19566EOF
19567
19568 USES_CONTROLS=1
19569 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
19570fi
19571
19572if test "$wxUSE_COMBOBOX" = "yes"; then
19573 cat >> confdefs.h <<\EOF
19574#define wxUSE_COMBOBOX 1
19575EOF
19576
19577 USES_CONTROLS=1
19578fi
19579
19580if test "$wxUSE_CHOICE" = "yes"; then
19581 cat >> confdefs.h <<\EOF
19582#define wxUSE_CHOICE 1
19583EOF
19584
19585 USES_CONTROLS=1
19586fi
19587
19588if test "$wxUSE_CHECKBOX" = "yes"; then
19589 cat >> confdefs.h <<\EOF
19590#define wxUSE_CHECKBOX 1
19591EOF
19592
19593 USES_CONTROLS=1
19594fi
19595
19596if test "$wxUSE_CHECKLST" = "yes"; then
19597 cat >> confdefs.h <<\EOF
19598#define wxUSE_CHECKLISTBOX 1
19599EOF
19600
19601 USES_CONTROLS=1
19602 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
19603fi
19604
19605if test "$wxUSE_GAUGE" = "yes"; then
19606 cat >> confdefs.h <<\EOF
19607#define wxUSE_GAUGE 1
19608EOF
19609
19610 USES_CONTROLS=1
19611fi
19612
19613if test "$wxUSE_NEW_GRID" = "yes"; then
19614 wxUSE_GRID="yes"
19615 cat >> confdefs.h <<\EOF
19616#define wxUSE_NEW_GRID 1
19617EOF
19618
19619 USES_CONTROLS=1
19620 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
19621fi
19622
19623if test "$wxUSE_GRID" = "yes"; then
19624 cat >> confdefs.h <<\EOF
19625#define wxUSE_GRID 1
19626EOF
19627
19628 USES_CONTROLS=1
19629 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
19630fi
19631
19632if test "$wxUSE_IMAGLIST" = "yes"; then
19633 cat >> confdefs.h <<\EOF
19634#define wxUSE_IMAGLIST 1
19635EOF
19636
19637fi
19638
19639if test "$wxUSE_LISTBOX" = "yes"; then
19640 cat >> confdefs.h <<\EOF
19641#define wxUSE_LISTBOX 1
19642EOF
19643
19644 USES_CONTROLS=1
19645fi
19646
19647if test "$wxUSE_LISTCTRL" = "yes"; then
19648 if test "$wxUSE_IMAGLIST" = "yes"; then
19649 cat >> confdefs.h <<\EOF
19650#define wxUSE_LISTCTRL 1
19651EOF
19652
19653 USES_CONTROLS=1
19654 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
19655 else
19656 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
19657 fi
19658fi
19659
19660if test "$wxUSE_NOTEBOOK" = "yes"; then
19661 cat >> confdefs.h <<\EOF
19662#define wxUSE_NOTEBOOK 1
19663EOF
19664
19665 USES_CONTROLS=1
19666 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
19667fi
19668
19669if test "$wxUSE_PROPSHEET" = "yes"; then
19670 cat >> confdefs.h <<\EOF
19671#define wxUSE_PROPSHEET 1
19672EOF
19673
19674 USES_CONTROLS=1
19675 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
19676fi
19677
19678if test "$wxUSE_RADIOBOX" = "yes"; then
19679 cat >> confdefs.h <<\EOF
19680#define wxUSE_RADIOBOX 1
19681EOF
19682
19683 USES_CONTROLS=1
19684fi
19685
19686if test "$wxUSE_RADIOBTN" = "yes"; then
19687 cat >> confdefs.h <<\EOF
19688#define wxUSE_RADIOBTN 1
19689EOF
19690
19691 USES_CONTROLS=1
19692fi
19693
19694if test "$wxUSE_SASH" = "yes"; then
19695 cat >> confdefs.h <<\EOF
19696#define wxUSE_SASH 1
19697EOF
19698
19699 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
19700fi
19701
19702if test "$wxUSE_SCROLLBAR" = "yes"; then
19703 cat >> confdefs.h <<\EOF
19704#define wxUSE_SCROLLBAR 1
19705EOF
19706
19707 USES_CONTROLS=1
19708 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
19709fi
19710
19711if test "$wxUSE_SLIDER" = "yes"; then
19712 cat >> confdefs.h <<\EOF
19713#define wxUSE_SLIDER 1
19714EOF
19715
19716 USES_CONTROLS=1
19717fi
19718
19719if test "$wxUSE_SPINBTN" = "yes"; then
19720 cat >> confdefs.h <<\EOF
19721#define wxUSE_SPINBTN 1
19722EOF
19723
19724 USES_CONTROLS=1
19725fi
19726
19727if test "$wxUSE_SPINCTRL" = "yes"; then
19728 cat >> confdefs.h <<\EOF
19729#define wxUSE_SPINCTRL 1
19730EOF
19731
19732 USES_CONTROLS=1
19733fi
19734
19735if test "$wxUSE_SPLITTER" = "yes"; then
19736 cat >> confdefs.h <<\EOF
19737#define wxUSE_SPLITTER 1
19738EOF
19739
19740 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
19741fi
19742
19743if test "$wxUSE_STATBMP" = "yes"; then
19744 cat >> confdefs.h <<\EOF
19745#define wxUSE_STATBMP 1
19746EOF
19747
19748 USES_CONTROLS=1
19749fi
19750
19751if test "$wxUSE_STATBOX" = "yes"; then
19752 cat >> confdefs.h <<\EOF
19753#define wxUSE_STATBOX 1
19754EOF
19755
19756 USES_CONTROLS=1
19757fi
19758
19759if test "$wxUSE_STATTEXT" = "yes"; then
19760 cat >> confdefs.h <<\EOF
19761#define wxUSE_STATTEXT 1
19762EOF
19763
19764 USES_CONTROLS=1
19765fi
19766
19767if test "$wxUSE_STATLINE" = "yes"; then
19768 if test "$wxUSE_WINE" = 1 ; then
19769 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
19770 else
19771 cat >> confdefs.h <<\EOF
19772#define wxUSE_STATLINE 1
19773EOF
19774
19775 USES_CONTROLS=1
19776 fi
19777fi
19778
19779if test "$wxUSE_STATUSBAR" = "yes"; then
19780 cat >> confdefs.h <<\EOF
19781#define wxUSE_STATUSBAR 1
19782EOF
19783
19784 USES_CONTROLS=1
19785
19786 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
19787fi
19788
19789if test "$wxUSE_TABDIALOG" = "yes"; then
19790 cat >> confdefs.h <<\EOF
19791#define wxUSE_TAB_DIALOG 1
19792EOF
19793
19794 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
19795fi
19796
19797if test "$wxUSE_TEXTCTRL" = "yes"; then
19798 cat >> confdefs.h <<\EOF
19799#define wxUSE_TEXTCTRL 1
19800EOF
19801
19802 USES_CONTROLS=1
19803 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
19804fi
19805
19806if test "$wxUSE_TOGGLEBTN" = "yes"; then
19807 if test "$wxUSE_MAC" = 1; then
19808 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
19809 wxUSE_TOGGLEBTN=no
19810 fi
19811 if test "$wxUSE_UNIVERSAL" = "yes"; then
19812 echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2
19813 wxUSE_TOGGLEBTN=no
19814 fi
19815
19816 if test "$wxUSE_TOGGLEBTN" = "yes"; then
19817 cat >> confdefs.h <<\EOF
19818#define wxUSE_TOGGLEBTN 1
19819EOF
19820
19821 USES_CONTROLS=1
19822 fi
19823fi
19824
19825if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
19826 cat >> confdefs.h <<\EOF
19827#define wxUSE_TOOLBAR_SIMPLE 1
19828EOF
19829
19830 wxUSE_TOOLBAR="yes"
19831 USES_CONTROLS=1
19832fi
19833
19834if test "$wxUSE_TOOLBAR" = "yes"; then
19835 cat >> confdefs.h <<\EOF
19836#define wxUSE_TOOLBAR 1
19837EOF
19838
19839 USES_CONTROLS=1
19840
19841 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
19842 wxUSE_TOOLBAR_NATIVE="yes"
19843 fi
19844
19845 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
19846 cat >> confdefs.h <<\EOF
19847#define wxUSE_TOOLBAR_NATIVE 1
19848EOF
19849
19850 USES_CONTROLS=1
19851 fi
19852
19853 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
19854fi
19855
19856if test "$wxUSE_TOOLTIPS" = "yes"; then
19857 if test "$wxUSE_MOTIF" = 1; then
19858 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
19859 else
19860 if test "$wxUSE_WINE" = 1; then
19861 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
19862 else
19863 if test "$wxUSE_UNIVERSAL" = "yes"; then
19864 echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2
19865 else
19866 if test "$wxUSE_X11" = "1"; then
19867 echo "configure: warning: wxTooltip not supported yet under X11... disabled" 1>&2
19868 else
19869 cat >> confdefs.h <<\EOF
19870#define wxUSE_TOOLTIPS 1
19871EOF
19872
19873 fi
19874 fi
19875 fi
19876 fi
19877fi
19878
19879if test "$wxUSE_TREECTRL" = "yes"; then
19880 if test "$wxUSE_IMAGLIST" = "yes"; then
19881 cat >> confdefs.h <<\EOF
19882#define wxUSE_TREECTRL 1
19883EOF
19884
19885 USES_CONTROLS=1
19886 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
19887 else
19888 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
19889 fi
19890fi
19891
19892if test "$wxUSE_POPUPWIN" = "yes"; then
19893 if test "$wxUSE_MAC" = 1; then
19894 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
19895 else
19896 if test "$wxUSE_MOTIF" = 1; then
19897 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
19898 else
19899 cat >> confdefs.h <<\EOF
19900#define wxUSE_POPUPWIN 1
19901EOF
19902
19903
19904 USES_CONTROLS=1
19905 fi
19906 fi
19907fi
19908
19909if test "$wxUSE_TIPWINDOW" = "yes"; then
19910 cat >> confdefs.h <<\EOF
19911#define wxUSE_TIPWINDOW 1
19912EOF
19913
19914fi
19915
19916if test "$USES_CONTROLS" = 1; then
19917 cat >> confdefs.h <<\EOF
19918#define wxUSE_CONTROLS 1
19919EOF
19920
19921fi
19922
19923
19924if test "$wxUSE_TREELAYOUT" = "yes"; then
19925 cat >> confdefs.h <<\EOF
19926#define wxUSE_TREELAYOUT 1
19927EOF
19928
19929 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
19930fi
19931
19932if test "$wxUSE_DRAGIMAGE" = "yes"; then
19933 cat >> confdefs.h <<\EOF
19934#define wxUSE_DRAGIMAGE 1
19935EOF
19936
19937 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
19938fi
19939
19940if test "$wxUSE_MENUS" = "yes"; then
19941 cat >> confdefs.h <<\EOF
19942#define wxUSE_MENUS 1
19943EOF
19944
19945 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
19946fi
19947
19948if test "$wxUSE_METAFILE" = "yes"; then
19949 cat >> confdefs.h <<\EOF
19950#define wxUSE_METAFILE 1
19951EOF
19952
19953fi
19954
19955if test "$wxUSE_MIMETYPE" = "yes"; then
19956 cat >> confdefs.h <<\EOF
19957#define wxUSE_MIMETYPE 1
19958EOF
19959
19960fi
19961
19962if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
19963 cat >> confdefs.h <<\EOF
19964#define wxUSE_SYSTEM_OPTIONS 1
19965EOF
19966
19967fi
19968
19969if test "$wxUSE_PROTOCOL" = "yes"; then
19970 if test "$wxUSE_SOCKETS" != "yes"; then
19971 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
19972 wxUSE_PROTOCOL=no
19973 fi
19974
19975 if test "$wxUSE_PROTOCOL" = "yes"; then
19976 cat >> confdefs.h <<\EOF
19977#define wxUSE_PROTOCOL 1
19978EOF
19979
19980
19981 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
19982 cat >> confdefs.h <<\EOF
19983#define wxUSE_PROTOCOL_HTTP 1
19984EOF
19985
19986 fi
19987 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
19988 cat >> confdefs.h <<\EOF
19989#define wxUSE_PROTOCOL_FTP 1
19990EOF
19991
19992 fi
19993 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
19994 cat >> confdefs.h <<\EOF
19995#define wxUSE_PROTOCOL_FILE 1
19996EOF
19997
19998 fi
19999 fi
20000fi
20001
20002if test "$wxUSE_URL" = "yes"; then
20003 if test "$wxUSE_PROTOCOL" != "yes"; then
20004 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
20005 wxUSE_URL=no
20006 fi
20007 if test "$wxUSE_URL" = "yes"; then
20008 cat >> confdefs.h <<\EOF
20009#define wxUSE_URL 1
20010EOF
20011
20012 fi
20013fi
20014
20015if test "$wxUSE_MINIFRAME" = "yes"; then
20016 cat >> confdefs.h <<\EOF
20017#define wxUSE_MINIFRAME 1
20018EOF
20019
20020 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20021fi
20022
20023if test "$wxUSE_HTML" = "yes"; then
20024 cat >> confdefs.h <<\EOF
20025#define wxUSE_HTML 1
20026EOF
20027
20028 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
20029fi
20030
20031if test "$wxUSE_VALIDATORS" = "yes"; then
20032 cat >> confdefs.h <<\EOF
20033#define wxUSE_VALIDATORS 1
20034EOF
20035
20036 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20037fi
20038
20039if test "$wxUSE_PALETTE" = "yes" ; then
20040 cat >> confdefs.h <<\EOF
20041#define wxUSE_PALETTE 1
20042EOF
20043
20044fi
20045
20046if test "$wxUSE_IMAGE" = "yes" ; then
20047 cat >> confdefs.h <<\EOF
20048#define wxUSE_IMAGE 1
20049EOF
20050
20051fi
20052
20053if test "$wxUSE_GIF" = "yes" ; then
20054 cat >> confdefs.h <<\EOF
20055#define wxUSE_GIF 1
20056EOF
20057
20058fi
20059
20060if test "$wxUSE_PCX" = "yes" ; then
20061 cat >> confdefs.h <<\EOF
20062#define wxUSE_PCX 1
20063EOF
20064
20065fi
20066
20067if test "$wxUSE_IFF" = "yes" ; then
20068 cat >> confdefs.h <<\EOF
20069#define wxUSE_IFF 1
20070EOF
20071
20072fi
20073
20074if test "$wxUSE_PNM" = "yes" ; then
20075 cat >> confdefs.h <<\EOF
20076#define wxUSE_PNM 1
20077EOF
20078
20079fi
20080
20081if test "$wxUSE_XPM" = "yes" ; then
20082 cat >> confdefs.h <<\EOF
20083#define wxUSE_XPM 1
20084EOF
20085
20086fi
20087
20088if test "$wxUSE_ICO_CUR" = "yes" ; then
20089 cat >> confdefs.h <<\EOF
20090#define wxUSE_ICO_CUR 1
20091EOF
20092
20093fi
20094
20095if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20096 LIBS=" -lunicows $LIBS"
20097fi
20098
20099
20100if test "$wxUSE_CHOICEDLG" = "yes"; then
20101 cat >> confdefs.h <<\EOF
20102#define wxUSE_CHOICEDLG 1
20103EOF
20104
20105fi
20106
20107if test "$wxUSE_COLOURDLG" = "yes"; then
20108 cat >> confdefs.h <<\EOF
20109#define wxUSE_COLOURDLG 1
20110EOF
20111
20112fi
20113
20114if test "$wxUSE_FILEDLG" = "yes"; then
20115 cat >> confdefs.h <<\EOF
20116#define wxUSE_FILEDLG 1
20117EOF
20118
20119fi
20120
20121if test "$wxUSE_FINDREPLDLG" = "yes"; then
20122 cat >> confdefs.h <<\EOF
20123#define wxUSE_FINDREPLDLG 1
20124EOF
20125
20126fi
20127
20128if test "$wxUSE_FONTDLG" = "yes"; then
20129 cat >> confdefs.h <<\EOF
20130#define wxUSE_FONTDLG 1
20131EOF
20132
20133fi
20134
20135if test "$wxUSE_DIRDLG" = "yes"; then
20136 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20137 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
20138 else
20139 if test "$wxUSE_TREECTRL" != "yes"; then
20140 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
20141 else
20142 cat >> confdefs.h <<\EOF
20143#define wxUSE_DIRDLG 1
20144EOF
20145
20146 fi
20147 fi
20148fi
20149
20150if test "$wxUSE_MSGDLG" = "yes"; then
20151 cat >> confdefs.h <<\EOF
20152#define wxUSE_MSGDLG 1
20153EOF
20154
20155fi
20156
20157if test "$wxUSE_NUMBERDLG" = "yes"; then
20158 cat >> confdefs.h <<\EOF
20159#define wxUSE_NUMBERDLG 1
20160EOF
20161
20162fi
20163
20164if test "$wxUSE_PROGRESSDLG" = "yes"; then
20165 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20166 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
20167 else
20168 cat >> confdefs.h <<\EOF
20169#define wxUSE_PROGRESSDLG 1
20170EOF
20171
20172 fi
20173fi
20174
20175if test "$wxUSE_SPLASH" = "yes"; then
20176 cat >> confdefs.h <<\EOF
20177#define wxUSE_SPLASH 1
20178EOF
20179
20180fi
20181
20182if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20183 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20184 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
20185 else
20186 cat >> confdefs.h <<\EOF
20187#define wxUSE_STARTUP_TIPS 1
20188EOF
20189
20190 fi
20191fi
20192
20193if test "$wxUSE_TEXTDLG" = "yes"; then
20194 cat >> confdefs.h <<\EOF
20195#define wxUSE_TEXTDLG 1
20196EOF
20197
20198fi
20199
20200if test "$wxUSE_WIZARDDLG" = "yes"; then
20201 cat >> confdefs.h <<\EOF
20202#define wxUSE_WIZARDDLG 1
20203EOF
20204
20205 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20206fi
20207
20208
20209if test "$cross_compiling" = "yes"; then
20210 OSINFO="\"$host\""
20211else
20212 OSINFO=`uname -s -r -m`
20213 OSINFO="\"$OSINFO\""
20214fi
20215
20216cat >> confdefs.h <<EOF
20217#define WXWIN_OS_DESCRIPTION $OSINFO
20218EOF
20219
20220
20221
20222if test "x$prefix" != "xNONE"; then
20223 wxPREFIX=$prefix
20224else
20225 wxPREFIX=$ac_default_prefix
20226fi
20227
20228cat >> confdefs.h <<EOF
20229#define wxINSTALL_PREFIX "$wxPREFIX"
20230EOF
20231
20232
20233
20234
20235
20236if test "$wxUSE_MAC" = 1 ; then
20237 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
20238fi
20239
20240
20241LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DL_LINK -lm $LIBS"
20242
20243if test "$wxUSE_GUI" = "yes"; then
20244
20245 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
20246
20247
20248 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
20249 drawing dynamic erase event exec font image \
20250 minimal richedit rotate widgets"
20251
20252 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20253else
20254 SAMPLES_SUBDIRS="console"
20255fi
20256
20257
20258INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
20259$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
20260
20261if test "$wxUSE_GTK" = 1; then
20262 WXCONFIG_INCLUDE=
20263else
20264 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20265fi
20266
20267if test "$GXX" = yes ; then
20268 CXXWARNINGS="-Wall"
20269
20270 if test "$wxUSE_NO_DEPS" = "no" ; then
20271 CFLAGS="-MMD $CFLAGS"
20272 CXXFLAGS="-MMD $CXXFLAGS"
20273 fi
20274fi
20275
20276EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
20277
20278CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20279CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
20280
20281LDFLAGS="$LDFLAGS$PROFILE"
20282
20283SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
20372echo "configure:20373: checking whether ${MAKE-make} sets \${MAKE}" >&5
20373set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
20374if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
20375 echo $ac_n "(cached) $ac_c" 1>&6
20376else
20377 cat > conftestmake <<\EOF
20378all:
20379 @echo 'ac_maketemp="${MAKE}"'
20380EOF
20381# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20382eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
20383if test -n "$ac_maketemp"; then
20384 eval ac_cv_prog_make_${ac_make}_set=yes
20385else
20386 eval ac_cv_prog_make_${ac_make}_set=no
20387fi
20388rm -f conftestmake
20389fi
20390if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20391 echo "$ac_t""yes" 1>&6
20392 SET_MAKE=
20393else
20394 echo "$ac_t""no" 1>&6
20395 SET_MAKE="MAKE=${MAKE-make}"
20396fi
20397
20398
20399if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
20400 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
20401fi
20402
20403
20404
20405if test "$wxUSE_GUI" = "yes"; then
20406 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
20407 wx_cv_if_gnu_make=$IF_GNU_MAKE
20408 wx_cv_path_ifs=$PATH_IFS
20409 wx_cv_program_ext=$PROGRAM_EXT
20410 wx_cv_target_library=$WX_TARGET_LIBRARY
20411 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
20412 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
20413 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
20414 wx_cv_path_ifs wx_cv_program_ext \
20415 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
20416 subdirs="demos samples utils contrib"
20417
20418fi
20419
20420trap '' 1 2 15
20421cat > confcache <<\EOF
20422# This file is a shell script that caches the results of configure
20423# tests run on this system so they can be shared between configure
20424# scripts and configure runs. It is not useful on other systems.
20425# If it contains results you don't want to keep, you may remove or edit it.
20426#
20427# By default, configure uses ./config.cache as the cache file,
20428# creating it if it does not exist already. You can give configure
20429# the --cache-file=FILE option to use a different cache file; that is
20430# what configure does when it calls configure scripts in
20431# subdirectories, so they share the cache.
20432# Giving --cache-file=/dev/null disables caching, for debugging configure.
20433# config.status only pays attention to the cache file if you give it the
20434# --recheck option to rerun configure.
20435#
20436EOF
20437# The following way of writing the cache mishandles newlines in values,
20438# but we know of no workaround that is simple, portable, and efficient.
20439# So, don't put newlines in cache variables' values.
20440# Ultrix sh set writes to stderr and can't be redirected directly,
20441# and sets the high bit in the cache file unless we assign to the vars.
20442(set) 2>&1 |
20443 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20444 *ac_space=\ *)
20445 # `set' does not quote correctly, so add quotes (double-quote substitution
20446 # turns \\\\ into \\, and sed turns \\ into \).
20447 sed -n \
20448 -e "s/'/'\\\\''/g" \
20449 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20450 ;;
20451 *)
20452 # `set' quotes correctly as required by POSIX, so do not add quotes.
20453 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20454 ;;
20455 esac >> confcache
20456if cmp -s $cache_file confcache; then
20457 :
20458else
20459 if test -w $cache_file; then
20460 echo "updating cache $cache_file"
20461 cat confcache > $cache_file
20462 else
20463 echo "not updating unwritable cache $cache_file"
20464 fi
20465fi
20466rm -f confcache
20467
20468trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
20469
20470test "x$prefix" = xNONE && prefix=$ac_default_prefix
20471# Let make expand exec_prefix.
20472test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20473
20474# Any assignment to VPATH causes Sun make to only execute
20475# the first set of double-colon rules, so remove it if not needed.
20476# If there is a colon in the path, we need to keep it.
20477if test "x$srcdir" = x.; then
20478 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
20479fi
20480
20481trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
20482
20483DEFS=-DHAVE_CONFIG_H
20484
20485# Without the "./", some shells look in PATH for config.status.
20486: ${CONFIG_STATUS=./config.status}
20487
20488echo creating $CONFIG_STATUS
20489rm -f $CONFIG_STATUS
20490cat > $CONFIG_STATUS <<EOF
20491#! /bin/sh
20492# Generated automatically by configure.
20493# Run this file to recreate the current configuration.
20494# This directory was configured as follows,
20495# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20496#
20497# $0 $ac_configure_args
20498#
20499# Compiler output produced by configure, useful for debugging
20500# configure, is in ./config.log if it exists.
20501
20502ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
20503for ac_option
20504do
20505 case "\$ac_option" in
20506 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20507 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
20508 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
20509 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
20510 echo "$CONFIG_STATUS generated by autoconf version 2.13"
20511 exit 0 ;;
20512 -help | --help | --hel | --he | --h)
20513 echo "\$ac_cs_usage"; exit 0 ;;
20514 *) echo "\$ac_cs_usage"; exit 1 ;;
20515 esac
20516done
20517
20518ac_given_srcdir=$srcdir
20519ac_given_INSTALL="$INSTALL"
20520
20521trap 'rm -fr `echo "
20522 wx-config
20523 src/make.env
20524 src/makeprog.env
20525 src/makelib.env
20526 Makefile
20527 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
20528EOF
20529cat >> $CONFIG_STATUS <<EOF
20530
20531# Protect against being on the right side of a sed subst in config.status.
20532sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
20533 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
20534$ac_vpsub
20535$extrasub
20536s%@SHELL@%$SHELL%g
20537s%@CFLAGS@%$CFLAGS%g
20538s%@CPPFLAGS@%$CPPFLAGS%g
20539s%@CXXFLAGS@%$CXXFLAGS%g
20540s%@FFLAGS@%$FFLAGS%g
20541s%@DEFS@%$DEFS%g
20542s%@LDFLAGS@%$LDFLAGS%g
20543s%@LIBS@%$LIBS%g
20544s%@exec_prefix@%$exec_prefix%g
20545s%@prefix@%$prefix%g
20546s%@program_transform_name@%$program_transform_name%g
20547s%@bindir@%$bindir%g
20548s%@sbindir@%$sbindir%g
20549s%@libexecdir@%$libexecdir%g
20550s%@datadir@%$datadir%g
20551s%@sysconfdir@%$sysconfdir%g
20552s%@sharedstatedir@%$sharedstatedir%g
20553s%@localstatedir@%$localstatedir%g
20554s%@libdir@%$libdir%g
20555s%@includedir@%$includedir%g
20556s%@oldincludedir@%$oldincludedir%g
20557s%@infodir@%$infodir%g
20558s%@mandir@%$mandir%g
20559s%@host@%$host%g
20560s%@host_alias@%$host_alias%g
20561s%@host_cpu@%$host_cpu%g
20562s%@host_vendor@%$host_vendor%g
20563s%@host_os@%$host_os%g
20564s%@target@%$target%g
20565s%@target_alias@%$target_alias%g
20566s%@target_cpu@%$target_cpu%g
20567s%@target_vendor@%$target_vendor%g
20568s%@target_os@%$target_os%g
20569s%@build@%$build%g
20570s%@build_alias@%$build_alias%g
20571s%@build_cpu@%$build_cpu%g
20572s%@build_vendor@%$build_vendor%g
20573s%@build_os@%$build_os%g
20574s%@CC@%$CC%g
20575s%@CPP@%$CPP%g
20576s%@CXX@%$CXX%g
20577s%@RANLIB@%$RANLIB%g
20578s%@AR@%$AR%g
20579s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
20580s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
20581s%@INSTALL_DATA@%$INSTALL_DATA%g
20582s%@STRIP@%$STRIP%g
20583s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
20584s%@YACC@%$YACC%g
20585s%@LEX@%$LEX%g
20586s%@LEXLIB@%$LEXLIB%g
20587s%@LN_S@%$LN_S%g
20588s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
20589s%@GTK_CFLAGS@%$GTK_CFLAGS%g
20590s%@GTK_LIBS@%$GTK_LIBS%g
20591s%@GTK_CONFIG@%$GTK_CONFIG%g
20592s%@X_CFLAGS@%$X_CFLAGS%g
20593s%@X_PRE_LIBS@%$X_PRE_LIBS%g
20594s%@X_LIBS@%$X_LIBS%g
20595s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
20596s%@RESCOMP@%$RESCOMP%g
20597s%@DEREZ@%$DEREZ%g
20598s%@CXXCPP@%$CXXCPP%g
20599s%@LIBICONV@%$LIBICONV%g
20600s%@LEX_STEM@%$LEX_STEM%g
20601s%@PATH_IFS@%$PATH_IFS%g
20602s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
20603s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
20604s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
20605s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
20606s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
20607s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
20608s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
20609s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
20610s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
20611s%@PROGRAM_EXT@%$PROGRAM_EXT%g
20612s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
20613s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
20614s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
20615s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
20616s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
20617s%@WX_ALL@%$WX_ALL%g
20618s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
20619s%@SHARED_LD@%$SHARED_LD%g
20620s%@PIC_FLAG@%$PIC_FLAG%g
20621s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
20622s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
20623s%@SONAME_FLAGS@%$SONAME_FLAGS%g
20624s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
20625s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
20626s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
20627s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
20628s%@USE_GUI@%$USE_GUI%g
20629s%@AFMINSTALL@%$AFMINSTALL%g
20630s%@TOOLKIT@%$TOOLKIT%g
20631s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
20632s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
20633s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
20634s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
20635s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
20636s%@cross_compiling@%$cross_compiling%g
20637s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
20638s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
20639s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
20640s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
20641s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
20642s%@ALL_OBJECTS@%$ALL_OBJECTS%g
20643s%@ALL_HEADERS@%$ALL_HEADERS%g
20644s%@ALL_SOURCES@%$ALL_SOURCES%g
20645s%@GUIDIST@%$GUIDIST%g
20646s%@PORT_FILES@%$PORT_FILES%g
20647s%@DISTDIR@%$DISTDIR%g
20648s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
20649s%@LDFLAGS_GL@%$LDFLAGS_GL%g
20650s%@OPENGL_LIBS@%$OPENGL_LIBS%g
20651s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
20652s%@EXTRADEFS@%$EXTRADEFS%g
20653s%@RESFLAGS@%$RESFLAGS%g
20654s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
20655s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
20656s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
20657s%@LIBWXMACRES@%$LIBWXMACRES%g
20658s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
20659s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
20660s%@DLLTOOL@%$DLLTOOL%g
20661s%@AS@%$AS%g
20662s%@NM@%$NM%g
20663s%@LD@%$LD%g
20664s%@MAKEINFO@%$MAKEINFO%g
20665s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
20666s%@SET_MAKE@%$SET_MAKE%g
20667s%@subdirs@%$subdirs%g
20668
20669CEOF
20670EOF
20671
20672cat >> $CONFIG_STATUS <<\EOF
20673
20674# Split the substitutions into bite-sized pieces for seds with
20675# small command number limits, like on Digital OSF/1 and HP-UX.
20676ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
20677ac_file=1 # Number of current file.
20678ac_beg=1 # First line for current file.
20679ac_end=$ac_max_sed_cmds # Line after last line for current file.
20680ac_more_lines=:
20681ac_sed_cmds=""
20682while $ac_more_lines; do
20683 if test $ac_beg -gt 1; then
20684 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
20685 else
20686 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
20687 fi
20688 if test ! -s conftest.s$ac_file; then
20689 ac_more_lines=false
20690 rm -f conftest.s$ac_file
20691 else
20692 if test -z "$ac_sed_cmds"; then
20693 ac_sed_cmds="sed -f conftest.s$ac_file"
20694 else
20695 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
20696 fi
20697 ac_file=`expr $ac_file + 1`
20698 ac_beg=$ac_end
20699 ac_end=`expr $ac_end + $ac_max_sed_cmds`
20700 fi
20701done
20702if test -z "$ac_sed_cmds"; then
20703 ac_sed_cmds=cat
20704fi
20705EOF
20706
20707cat >> $CONFIG_STATUS <<EOF
20708
20709CONFIG_FILES=\${CONFIG_FILES-"wx-config
20710 src/make.env
20711 src/makeprog.env
20712 src/makelib.env
20713 Makefile
20714 "}
20715EOF
20716cat >> $CONFIG_STATUS <<\EOF
20717for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
20718 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20719 case "$ac_file" in
20720 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20721 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20722 *) ac_file_in="${ac_file}.in" ;;
20723 esac
20724
20725 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
20726
20727 # Remove last slash and all that follows it. Not all systems have dirname.
20728 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20729 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20730 # The file is in a subdirectory.
20731 test ! -d "$ac_dir" && mkdir "$ac_dir"
20732 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
20733 # A "../" for each directory in $ac_dir_suffix.
20734 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
20735 else
20736 ac_dir_suffix= ac_dots=
20737 fi
20738
20739 case "$ac_given_srcdir" in
20740 .) srcdir=.
20741 if test -z "$ac_dots"; then top_srcdir=.
20742 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
20743 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
20744 *) # Relative path.
20745 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
20746 top_srcdir="$ac_dots$ac_given_srcdir" ;;
20747 esac
20748
20749 case "$ac_given_INSTALL" in
20750 [/$]*) INSTALL="$ac_given_INSTALL" ;;
20751 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
20752 esac
20753
20754 echo creating "$ac_file"
20755 rm -f "$ac_file"
20756 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
20757 case "$ac_file" in
20758 *Makefile*) ac_comsub="1i\\
20759# $configure_input" ;;
20760 *) ac_comsub= ;;
20761 esac
20762
20763 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20764 sed -e "$ac_comsub
20765s%@configure_input@%$configure_input%g
20766s%@srcdir@%$srcdir%g
20767s%@top_srcdir@%$top_srcdir%g
20768s%@INSTALL@%$INSTALL%g
20769" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
20770fi; done
20771rm -f conftest.s*
20772
20773# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20774# NAME is the cpp macro being defined and VALUE is the value it is being given.
20775#
20776# ac_d sets the value in "#define NAME VALUE" lines.
20777ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20778ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
20779ac_dC='\3'
20780ac_dD='%g'
20781# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
20782ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20783ac_uB='\([ ]\)%\1#\2define\3'
20784ac_uC=' '
20785ac_uD='\4%g'
20786# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20787ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20788ac_eB='$%\1#\2define\3'
20789ac_eC=' '
20790ac_eD='%g'
20791
20792if test "${CONFIG_HEADERS+set}" != set; then
20793EOF
20794cat >> $CONFIG_STATUS <<EOF
20795 CONFIG_HEADERS="setup.h:setup.h.in"
20796EOF
20797cat >> $CONFIG_STATUS <<\EOF
20798fi
20799for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
20800 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20801 case "$ac_file" in
20802 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20803 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20804 *) ac_file_in="${ac_file}.in" ;;
20805 esac
20806
20807 echo creating $ac_file
20808
20809 rm -f conftest.frag conftest.in conftest.out
20810 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20811 cat $ac_file_inputs > conftest.in
20812
20813EOF
20814
20815# Transform confdefs.h into a sed script conftest.vals that substitutes
20816# the proper values into config.h.in to produce config.h. And first:
20817# Protect against being on the right side of a sed subst in config.status.
20818# Protect against being in an unquoted here document in config.status.
20819rm -f conftest.vals
20820cat > conftest.hdr <<\EOF
20821s/[\\&%]/\\&/g
20822s%[\\$`]%\\&%g
20823s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
20824s%ac_d%ac_u%gp
20825s%ac_u%ac_e%gp
20826EOF
20827sed -n -f conftest.hdr confdefs.h > conftest.vals
20828rm -f conftest.hdr
20829
20830# This sed command replaces #undef with comments. This is necessary, for
20831# example, in the case of _POSIX_SOURCE, which is predefined and required
20832# on some systems where configure will not decide to define it.
20833cat >> conftest.vals <<\EOF
20834s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
20835EOF
20836
20837# Break up conftest.vals because some shells have a limit on
20838# the size of here documents, and old seds have small limits too.
20839
20840rm -f conftest.tail
20841while :
20842do
20843 ac_lines=`grep -c . conftest.vals`
20844 # grep -c gives empty output for an empty file on some AIX systems.
20845 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
20846 # Write a limited-size here document to conftest.frag.
20847 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
20848 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
20849 echo 'CEOF
20850 sed -f conftest.frag conftest.in > conftest.out
20851 rm -f conftest.in
20852 mv conftest.out conftest.in
20853' >> $CONFIG_STATUS
20854 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
20855 rm -f conftest.vals
20856 mv conftest.tail conftest.vals
20857done
20858rm -f conftest.vals
20859
20860cat >> $CONFIG_STATUS <<\EOF
20861 rm -f conftest.frag conftest.h
20862 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
20863 cat conftest.in >> conftest.h
20864 rm -f conftest.in
20865 if cmp -s $ac_file conftest.h 2>/dev/null; then
20866 echo "$ac_file is unchanged"
20867 rm -f conftest.h
20868 else
20869 # Remove last slash and all that follows it. Not all systems have dirname.
20870 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20871 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20872 # The file is in a subdirectory.
20873 test ! -d "$ac_dir" && mkdir "$ac_dir"
20874 fi
20875 rm -f $ac_file
20876 mv conftest.h $ac_file
20877 fi
20878fi; done
20879
20880EOF
20881cat >> $CONFIG_STATUS <<EOF
20882
20883 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
20884 LN_S="${LN_S}"
20885
20886
20887EOF
20888cat >> $CONFIG_STATUS <<\EOF
20889
20890 if test ! -h wx-config; then
20891 chmod +x wx-config
20892 mv wx-config wx${TOOLCHAIN_NAME}-config
20893 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
20894 fi
20895
20896 if test ! -d lib; then
20897 mkdir lib
20898 fi
20899 if test ! -d lib/wx; then
20900 mkdir lib/wx
20901 fi
20902 if test ! -d lib/wx/include; then
20903 mkdir lib/wx/include
20904 fi
20905 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
20906 mkdir lib/wx/include/${TOOLCHAIN_NAME}
20907 fi
20908 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
20909 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
20910 fi
20911 if test -f setup.h; then
20912 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
20913 fi
20914
20915exit 0
20916EOF
20917chmod +x $CONFIG_STATUS
20918rm -fr confdefs* $ac_clean_files
20919test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
20920
20921if test "$no_recursion" != yes; then
20922
20923 # Remove --cache-file and --srcdir arguments so they do not pile up.
20924 ac_sub_configure_args=
20925 ac_prev=
20926 for ac_arg in $ac_configure_args; do
20927 if test -n "$ac_prev"; then
20928 ac_prev=
20929 continue
20930 fi
20931 case "$ac_arg" in
20932 -cache-file | --cache-file | --cache-fil | --cache-fi \
20933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20934 ac_prev=cache_file ;;
20935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
20937 ;;
20938 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20939 ac_prev=srcdir ;;
20940 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20941 ;;
20942 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
20943 esac
20944 done
20945
20946 for ac_config_dir in demos samples utils contrib; do
20947
20948 # Do not complain, so a configure script can configure whichever
20949 # parts of a large source tree are present.
20950 if test ! -d $srcdir/$ac_config_dir; then
20951 continue
20952 fi
20953
20954 echo configuring in $ac_config_dir
20955
20956 case "$srcdir" in
20957 .) ;;
20958 *)
20959 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
20960 else
20961 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
20962 fi
20963 ;;
20964 esac
20965
20966 ac_popdir=`pwd`
20967 cd $ac_config_dir
20968
20969 # A "../" for each directory in /$ac_config_dir.
20970 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
20971
20972 case "$srcdir" in
20973 .) # No --srcdir option. We are building in place.
20974 ac_sub_srcdir=$srcdir ;;
20975 /*) # Absolute path.
20976 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
20977 *) # Relative path.
20978 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
20979 esac
20980
20981 # Check for guested configure; otherwise get Cygnus style configure.
20982 if test -f $ac_sub_srcdir/configure; then
20983 ac_sub_configure=$ac_sub_srcdir/configure
20984 elif test -f $ac_sub_srcdir/configure.in; then
20985 ac_sub_configure=$ac_configure
20986 else
20987 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
20988 ac_sub_configure=
20989 fi
20990
20991 # The recursion is here.
20992 if test -n "$ac_sub_configure"; then
20993
20994 # Make the cache file name correct relative to the subdirectory.
20995 case "$cache_file" in
20996 /*) ac_sub_cache_file=$cache_file ;;
20997 *) # Relative path.
20998 ac_sub_cache_file="$ac_dots$cache_file" ;;
20999 esac
21000 case "$ac_given_INSTALL" in
21001 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21002 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21003 esac
21004
21005 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
21006 # The eval makes quoting arguments work.
21007 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21008 then :
21009 else
21010 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21011 fi
21012 fi
21013
21014 cd $ac_popdir
21015 done
21016fi
21017
21018