]> git.saurik.com Git - wxWidgets.git/blame_incremental - configure
New def file
[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 ;;
1346
1347 *-pc-os2_emx | *-pc-os2-emx )
1348 cat >> confdefs.h <<\EOF
1349#define __EMX__ 1
1350EOF
1351
1352 PROGRAM_EXT=".exe"
1353 DEFAULT_DEFAULT_wxUSE_PM=1
1354 ;;
1355
1356 powerpc-*-darwin* )
1357 USE_BSD=1
1358 USE_DARWIN=1
1359 CPP_MT_FLAG=
1360 SO_SUFFIX=dylib
1361 cat >> confdefs.h <<\EOF
1362#define __BSD__ 1
1363EOF
1364
1365 cat >> confdefs.h <<\EOF
1366#define __DARWIN__ 1
1367EOF
1368
1369 cat >> confdefs.h <<\EOF
1370#define __POWERPC__ 1
1371EOF
1372
1373 DEFAULT_DEFAULT_wxUSE_MAC=1
1374 ;;
1375
1376 *-*-beos* )
1377 USE_BEOS=1
1378 cat >> confdefs.h <<\EOF
1379#define __BEOS__ 1
1380EOF
1381
1382 ;;
1383
1384 *)
1385 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1386esac
1387
1388if test "$USE_UNIX" = 1 ; then
1389 wxUSE_UNIX=yes
1390 cat >> confdefs.h <<\EOF
1391#define __UNIX__ 1
1392EOF
1393
1394fi
1395
1396if test "$USE_LINUX" = 1; then
1397 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
1398echo "configure:1399: checking for glibc 2.1 or later" >&5
1399if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1400 echo $ac_n "(cached) $ac_c" 1>&6
1401else
1402
1403 cat > conftest.$ac_ext <<EOF
1404#line 1405 "configure"
1405#include "confdefs.h"
1406#include <features.h>
1407int main() {
1408
1409 #if !__GLIBC_PREREQ(2, 1)
1410 #error not glibc2.1
1411 #endif
1412
1413; return 0; }
1414EOF
1415if { (eval echo configure:1416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1416 rm -rf conftest*
1417
1418 wx_lib_glibc21=yes
1419
1420else
1421 echo "configure: failed program was:" >&5
1422 cat conftest.$ac_ext >&5
1423 rm -rf conftest*
1424
1425 wx_lib_glibc21=no
1426
1427
1428fi
1429rm -f conftest*
1430
1431fi
1432
1433echo "$ac_t""$wx_lib_glibc21" 1>&6
1434 if test "$wx_lib_glibc21" = "yes"; then
1435 cat >> confdefs.h <<\EOF
1436#define wxHAVE_GLIBC2 1
1437EOF
1438
1439 fi
1440fi
1441
1442
1443
1444
1445 wx_arg_cache_file="configarg.cache"
1446 echo "loading argument cache $wx_arg_cache_file"
1447 rm -f ${wx_arg_cache_file}.tmp
1448 touch ${wx_arg_cache_file}.tmp
1449 touch ${wx_arg_cache_file}
1450
1451
1452DEBUG_CONFIGURE=0
1453if test $DEBUG_CONFIGURE = 1; then
1454 DEFAULT_wxUSE_UNIVERSAL=no
1455
1456 DEFAULT_wxUSE_THREADS=yes
1457
1458 DEFAULT_wxUSE_SHARED=yes
1459 DEFAULT_wxUSE_SONAME=no
1460 DEFAULT_wxUSE_OPTIMISE=no
1461 DEFAULT_wxUSE_PROFILE=no
1462 DEFAULT_wxUSE_NO_DEPS=no
1463 DEFAULT_wxUSE_NO_RTTI=yes
1464 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1465 DEFAULT_wxUSE_PERMISSIVE=no
1466 DEFAULT_wxUSE_DEBUG_FLAG=yes
1467 DEFAULT_wxUSE_DEBUG_INFO=yes
1468 DEFAULT_wxUSE_DEBUG_GDB=yes
1469 DEFAULT_wxUSE_MEM_TRACING=no
1470 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1471 DEFAULT_wxUSE_DMALLOC=no
1472 DEFAULT_wxUSE_PRECOMP=no
1473 DEFAULT_wxUSE_APPLE_IEEE=no
1474
1475 DEFAULT_wxUSE_LOG=yes
1476 DEFAULT_wxUSE_LOGWINDOW=no
1477 DEFAULT_wxUSE_LOGGUI=no
1478 DEFAULT_wxUSE_LOGDIALOG=no
1479
1480 DEFAULT_wxUSE_GUI=yes
1481 DEFAULT_wxUSE_CONTROLS=no
1482
1483 DEFAULT_wxUSE_REGEX=no
1484 DEFAULT_wxUSE_ZLIB=no
1485 DEFAULT_wxUSE_LIBPNG=no
1486 DEFAULT_wxUSE_LIBJPEG=no
1487 DEFAULT_wxUSE_LIBTIFF=no
1488 DEFAULT_wxUSE_ODBC=no
1489 DEFAULT_wxUSE_OPENGL=no
1490
1491 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1492 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1493 DEFAULT_wxUSE_STD_IOSTREAM=no
1494 DEFAULT_wxUSE_CMDLINE_PARSER=no
1495 DEFAULT_wxUSE_DATETIME=no
1496 DEFAULT_wxUSE_TIMEDATE=no
1497 DEFAULT_wxUSE_TIMER=no
1498 DEFAULT_wxUSE_STOPWATCH=no
1499 DEFAULT_wxUSE_FILE=no
1500 DEFAULT_wxUSE_FFILE=no
1501 DEFAULT_wxUSE_TEXTBUFFER=no
1502 DEFAULT_wxUSE_TEXTFILE=no
1503 DEFAULT_wxUSE_WAVE=no
1504 DEFAULT_wxUSE_INTL=no
1505 DEFAULT_wxUSE_CONFIG=no
1506 DEFAULT_wxUSE_FONTMAP=no
1507 DEFAULT_wxUSE_STREAMS=no
1508 DEFAULT_wxUSE_SOCKETS=no
1509 DEFAULT_wxUSE_DIALUP_MANAGER=no
1510 DEFAULT_wxUSE_JOYSTICK=no
1511 DEFAULT_wxUSE_DYNLIB_CLASS=no
1512 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1513 DEFAULT_wxUSE_LONGLONG=no
1514 DEFAULT_wxUSE_GEOMETRY=no
1515
1516 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1517 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1518 DEFAULT_wxUSE_POSTSCRIPT=no
1519
1520 DEFAULT_wxUSE_X_RESOURCES=no
1521 DEFAULT_wxUSE_CLIPBOARD=no
1522 DEFAULT_wxUSE_TOOLTIPS=no
1523 DEFAULT_wxUSE_DRAG_AND_DROP=no
1524 DEFAULT_wxUSE_DRAGIMAGE=no
1525 DEFAULT_wxUSE_SPLINES=no
1526
1527 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1528 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1529 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1530
1531 DEFAULT_wxUSE_PROLOGIO=no
1532 DEFAULT_wxUSE_RESOURCES=no
1533 DEFAULT_wxUSE_CONSTRAINTS=no
1534 DEFAULT_wxUSE_IPC=no
1535 DEFAULT_wxUSE_HELP=no
1536 DEFAULT_wxUSE_MS_HTML_HELP=no
1537 DEFAULT_wxUSE_WXHTML_HELP=no
1538 DEFAULT_wxUSE_TREELAYOUT=no
1539 DEFAULT_wxUSE_METAFILE=no
1540 DEFAULT_wxUSE_MIMETYPE=no
1541 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1542 DEFAULT_wxUSE_PROTOCOL=no
1543 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1544 DEFAULT_wxUSE_PROTOCOL_FTP=no
1545 DEFAULT_wxUSE_PROTOCOL_FILE=no
1546 DEFAULT_wxUSE_URL=no
1547
1548 DEFAULT_wxUSE_COMMONDLGS=no
1549 DEFAULT_wxUSE_CHOICEDLG=no
1550 DEFAULT_wxUSE_COLOURDLG=no
1551 DEFAULT_wxUSE_DIRDLG=no
1552 DEFAULT_wxUSE_FILEDLG=no
1553 DEFAULT_wxUSE_FINDREPLDLG=no
1554 DEFAULT_wxUSE_FONTDLG=no
1555 DEFAULT_wxUSE_MSGDLG=no
1556 DEFAULT_wxUSE_NUMBERDLG=no
1557 DEFAULT_wxUSE_TEXTDLG=no
1558 DEFAULT_wxUSE_SPLASH=no
1559 DEFAULT_wxUSE_STARTUP_TIPS=no
1560 DEFAULT_wxUSE_PROGRESSDLG=no
1561 DEFAULT_wxUSE_WIZARDDLG=no
1562
1563 DEFAULT_wxUSE_MENUS=no
1564 DEFAULT_wxUSE_MINIFRAME=no
1565 DEFAULT_wxUSE_HTML=no
1566 DEFAULT_wxUSE_FILESYSTEM=no
1567 DEFAULT_wxUSE_FS_INET=no
1568 DEFAULT_wxUSE_FS_ZIP=no
1569 DEFAULT_wxUSE_BUSYINFO=no
1570 DEFAULT_wxUSE_ZIPSTREAM=no
1571 DEFAULT_wxUSE_VALIDATORS=no
1572
1573 DEFAULT_wxUSE_ACCEL=no
1574 DEFAULT_wxUSE_BUTTON=no
1575 DEFAULT_wxUSE_BMPBUTTON=no
1576 DEFAULT_wxUSE_CALCTRL=no
1577 DEFAULT_wxUSE_CARET=no
1578 DEFAULT_wxUSE_CHECKBOX=no
1579 DEFAULT_wxUSE_CHECKLST=no
1580 DEFAULT_wxUSE_CHOICE=no
1581 DEFAULT_wxUSE_COMBOBOX=no
1582 DEFAULT_wxUSE_GAUGE=no
1583 DEFAULT_wxUSE_GRID=no
1584 DEFAULT_wxUSE_NEW_GRID=no
1585 DEFAULT_wxUSE_IMAGLIST=no
1586 DEFAULT_wxUSE_LISTBOX=no
1587 DEFAULT_wxUSE_LISTCTRL=no
1588 DEFAULT_wxUSE_NOTEBOOK=no
1589 DEFAULT_wxUSE_PROPSHEET=no
1590 DEFAULT_wxUSE_RADIOBOX=no
1591 DEFAULT_wxUSE_RADIOBTN=no
1592 DEFAULT_wxUSE_SASH=no
1593 DEFAULT_wxUSE_SCROLLBAR=no
1594 DEFAULT_wxUSE_SLIDER=no
1595 DEFAULT_wxUSE_SPINBTN=no
1596 DEFAULT_wxUSE_SPINCTRL=no
1597 DEFAULT_wxUSE_SPLITTER=no
1598 DEFAULT_wxUSE_STATBMP=no
1599 DEFAULT_wxUSE_STATBOX=no
1600 DEFAULT_wxUSE_STATLINE=no
1601 DEFAULT_wxUSE_STATTEXT=no
1602 DEFAULT_wxUSE_STATUSBAR=yes
1603 DEFAULT_wxUSE_TABDIALOG=no
1604 DEFAULT_wxUSE_TEXTCTRL=no
1605 DEFAULT_wxUSE_TOGGLEBTN=no
1606 DEFAULT_wxUSE_TOOLBAR=no
1607 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1608 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1609 DEFAULT_wxUSE_TREECTRL=no
1610 DEFAULT_wxUSE_POPUPWIN=no
1611 DEFAULT_wxUSE_TIPWINDOW=no
1612
1613 DEFAULT_wxUSE_UNICODE=no
1614 DEFAULT_wxUSE_UNICODE_MSLU=no
1615 DEFAULT_wxUSE_WCSRTOMBS=no
1616
1617 DEFAULT_wxUSE_PALETTE=no
1618 DEFAULT_wxUSE_IMAGE=no
1619 DEFAULT_wxUSE_GIF=no
1620 DEFAULT_wxUSE_PCX=no
1621 DEFAULT_wxUSE_PNM=no
1622 DEFAULT_wxUSE_IFF=no
1623 DEFAULT_wxUSE_XPM=no
1624 DEFAULT_wxUSE_ICO_CUR=no
1625else
1626 DEFAULT_wxUSE_UNIVERSAL=no
1627
1628 DEFAULT_wxUSE_THREADS=yes
1629
1630 DEFAULT_wxUSE_SHARED=yes
1631 DEFAULT_wxUSE_SONAME=no
1632 DEFAULT_wxUSE_OPTIMISE=yes
1633 DEFAULT_wxUSE_PROFILE=no
1634 DEFAULT_wxUSE_NO_DEPS=no
1635 DEFAULT_wxUSE_NO_RTTI=yes
1636 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1637 DEFAULT_wxUSE_PERMISSIVE=no
1638 DEFAULT_wxUSE_DEBUG_FLAG=no
1639 DEFAULT_wxUSE_DEBUG_INFO=no
1640 DEFAULT_wxUSE_DEBUG_GDB=no
1641 DEFAULT_wxUSE_MEM_TRACING=no
1642 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1643 DEFAULT_wxUSE_DMALLOC=no
1644 DEFAULT_wxUSE_PRECOMP=no
1645 DEFAULT_wxUSE_APPLE_IEEE=yes
1646
1647 DEFAULT_wxUSE_LOG=yes
1648 DEFAULT_wxUSE_LOGWINDOW=yes
1649 DEFAULT_wxUSE_LOGGUI=yes
1650 DEFAULT_wxUSE_LOGDIALOG=yes
1651
1652 DEFAULT_wxUSE_GUI=yes
1653
1654 DEFAULT_wxUSE_REGEX=yes
1655 DEFAULT_wxUSE_ZLIB=yes
1656 DEFAULT_wxUSE_LIBPNG=yes
1657 DEFAULT_wxUSE_LIBJPEG=yes
1658 DEFAULT_wxUSE_LIBTIFF=yes
1659 DEFAULT_wxUSE_ODBC=no
1660 DEFAULT_wxUSE_OPENGL=no
1661
1662 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1663 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1664 DEFAULT_wxUSE_STD_IOSTREAM=no
1665 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1666 DEFAULT_wxUSE_DATETIME=yes
1667 DEFAULT_wxUSE_TIMEDATE=no
1668 DEFAULT_wxUSE_TIMER=yes
1669 DEFAULT_wxUSE_STOPWATCH=yes
1670 DEFAULT_wxUSE_FILE=yes
1671 DEFAULT_wxUSE_FFILE=yes
1672 DEFAULT_wxUSE_TEXTBUFFER=yes
1673 DEFAULT_wxUSE_TEXTFILE=yes
1674 DEFAULT_wxUSE_WAVE=no
1675 DEFAULT_wxUSE_INTL=yes
1676 DEFAULT_wxUSE_CONFIG=yes
1677 DEFAULT_wxUSE_FONTMAP=yes
1678 DEFAULT_wxUSE_STREAMS=yes
1679 DEFAULT_wxUSE_SOCKETS=yes
1680 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1681 DEFAULT_wxUSE_JOYSTICK=yes
1682 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1683 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1684 DEFAULT_wxUSE_LONGLONG=yes
1685 DEFAULT_wxUSE_GEOMETRY=yes
1686
1687 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1688 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1689 DEFAULT_wxUSE_POSTSCRIPT=yes
1690
1691 DEFAULT_wxUSE_X_RESOURCES=no
1692 DEFAULT_wxUSE_CLIPBOARD=yes
1693 DEFAULT_wxUSE_TOOLTIPS=yes
1694 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1695 DEFAULT_wxUSE_DRAGIMAGE=yes
1696 DEFAULT_wxUSE_SPLINES=yes
1697
1698 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1699 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1700 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1701
1702 DEFAULT_wxUSE_PROLOGIO=yes
1703 DEFAULT_wxUSE_RESOURCES=yes
1704 DEFAULT_wxUSE_CONSTRAINTS=yes
1705 DEFAULT_wxUSE_IPC=yes
1706 DEFAULT_wxUSE_HELP=yes
1707 DEFAULT_wxUSE_MS_HTML_HELP=yes
1708 DEFAULT_wxUSE_WXHTML_HELP=yes
1709 DEFAULT_wxUSE_TREELAYOUT=yes
1710 DEFAULT_wxUSE_METAFILE=yes
1711 DEFAULT_wxUSE_MIMETYPE=yes
1712 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1713 DEFAULT_wxUSE_PROTOCOL=yes
1714 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1715 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1716 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1717 DEFAULT_wxUSE_URL=yes
1718
1719 DEFAULT_wxUSE_COMMONDLGS=yes
1720 DEFAULT_wxUSE_CHOICEDLG=yes
1721 DEFAULT_wxUSE_COLOURDLG=yes
1722 DEFAULT_wxUSE_DIRDLG=yes
1723 DEFAULT_wxUSE_FILEDLG=yes
1724 DEFAULT_wxUSE_FINDREPLDLG=yes
1725 DEFAULT_wxUSE_FONTDLG=yes
1726 DEFAULT_wxUSE_MSGDLG=yes
1727 DEFAULT_wxUSE_NUMBERDLG=yes
1728 DEFAULT_wxUSE_TEXTDLG=yes
1729 DEFAULT_wxUSE_SPLASH=yes
1730 DEFAULT_wxUSE_STARTUP_TIPS=yes
1731 DEFAULT_wxUSE_PROGRESSDLG=yes
1732 DEFAULT_wxUSE_WIZARDDLG=yes
1733
1734 DEFAULT_wxUSE_MENUS=yes
1735 DEFAULT_wxUSE_MINIFRAME=yes
1736 DEFAULT_wxUSE_HTML=yes
1737 DEFAULT_wxUSE_FILESYSTEM=yes
1738 DEFAULT_wxUSE_FS_INET=yes
1739 DEFAULT_wxUSE_FS_ZIP=yes
1740 DEFAULT_wxUSE_BUSYINFO=yes
1741 DEFAULT_wxUSE_ZIPSTREAM=yes
1742 DEFAULT_wxUSE_VALIDATORS=yes
1743
1744 DEFAULT_wxUSE_ACCEL=yes
1745 DEFAULT_wxUSE_BUTTON=yes
1746 DEFAULT_wxUSE_BMPBUTTON=yes
1747 DEFAULT_wxUSE_CALCTRL=yes
1748 DEFAULT_wxUSE_CARET=yes
1749 DEFAULT_wxUSE_CHECKBOX=yes
1750 DEFAULT_wxUSE_CHECKLST=yes
1751 DEFAULT_wxUSE_CHOICE=yes
1752 DEFAULT_wxUSE_COMBOBOX=yes
1753 DEFAULT_wxUSE_GAUGE=yes
1754 DEFAULT_wxUSE_GRID=yes
1755 DEFAULT_wxUSE_NEW_GRID=yes
1756 DEFAULT_wxUSE_IMAGLIST=yes
1757 DEFAULT_wxUSE_LISTBOX=yes
1758 DEFAULT_wxUSE_LISTCTRL=yes
1759 DEFAULT_wxUSE_NOTEBOOK=yes
1760 DEFAULT_wxUSE_PROPSHEET=yes
1761 DEFAULT_wxUSE_RADIOBOX=yes
1762 DEFAULT_wxUSE_RADIOBTN=yes
1763 DEFAULT_wxUSE_SASH=yes
1764 DEFAULT_wxUSE_SCROLLBAR=yes
1765 DEFAULT_wxUSE_SLIDER=yes
1766 DEFAULT_wxUSE_SPINBTN=yes
1767 DEFAULT_wxUSE_SPINCTRL=yes
1768 DEFAULT_wxUSE_SPLITTER=yes
1769 DEFAULT_wxUSE_STATBMP=yes
1770 DEFAULT_wxUSE_STATBOX=yes
1771 DEFAULT_wxUSE_STATLINE=yes
1772 DEFAULT_wxUSE_STATTEXT=yes
1773 DEFAULT_wxUSE_STATUSBAR=yes
1774 DEFAULT_wxUSE_TABDIALOG=no
1775 DEFAULT_wxUSE_TEXTCTRL=yes
1776 DEFAULT_wxUSE_TOGGLEBTN=yes
1777 DEFAULT_wxUSE_TOOLBAR=yes
1778 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1779 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1780 DEFAULT_wxUSE_TREECTRL=yes
1781 DEFAULT_wxUSE_POPUPWIN=yes
1782 DEFAULT_wxUSE_TIPWINDOW=yes
1783
1784 DEFAULT_wxUSE_UNICODE=no
1785 DEFAULT_wxUSE_UNICODE_MSLU=yes
1786 DEFAULT_wxUSE_WCSRTOMBS=no
1787
1788 DEFAULT_wxUSE_PALETTE=yes
1789 DEFAULT_wxUSE_IMAGE=yes
1790 DEFAULT_wxUSE_GIF=yes
1791 DEFAULT_wxUSE_PCX=yes
1792 DEFAULT_wxUSE_IFF=no
1793 DEFAULT_wxUSE_PNM=yes
1794 DEFAULT_wxUSE_XPM=yes
1795 DEFAULT_wxUSE_ICO_CUR=yes
1796fi
1797
1798
1799
1800for toolkit in `echo $ALL_TOOLKITS`; do
1801 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1802 if test "x$LINE" != x ; then
1803 has_toolkit_in_cache=1
1804 eval "DEFAULT_$LINE"
1805 eval "CACHE_$toolkit=1"
1806 fi
1807done
1808
1809
1810
1811 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1812echo "configure:1813: checking for --enable-gui" >&5
1813 no_cache=0
1814 # Check whether --enable-gui or --disable-gui was given.
1815if test "${enable_gui+set}" = set; then
1816 enableval="$enable_gui"
1817
1818 if test "$enableval" = yes; then
1819 ac_cv_use_gui='wxUSE_GUI=yes'
1820 else
1821 ac_cv_use_gui='wxUSE_GUI=no'
1822 fi
1823
1824else
1825
1826 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1827 if test "x$LINE" != x ; then
1828 eval "DEFAULT_$LINE"
1829 else
1830 no_cache=1
1831 fi
1832
1833 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1834
1835fi
1836
1837
1838 eval "$ac_cv_use_gui"
1839 if test "$no_cache" != 1; then
1840 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1841 fi
1842
1843 if test "$wxUSE_GUI" = yes; then
1844 echo "$ac_t""yes" 1>&6
1845 else
1846 echo "$ac_t""no" 1>&6
1847 fi
1848
1849
1850if test "$wxUSE_GUI" = "yes"; then
1851
1852
1853 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1854echo "configure:1855: checking for --enable-universal" >&5
1855 no_cache=0
1856 # Check whether --enable-universal or --disable-universal was given.
1857if test "${enable_universal+set}" = set; then
1858 enableval="$enable_universal"
1859
1860 if test "$enableval" = yes; then
1861 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1862 else
1863 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1864 fi
1865
1866else
1867
1868 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1869 if test "x$LINE" != x ; then
1870 eval "DEFAULT_$LINE"
1871 else
1872 no_cache=1
1873 fi
1874
1875 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1876
1877fi
1878
1879
1880 eval "$ac_cv_use_universal"
1881 if test "$no_cache" != 1; then
1882 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1883 fi
1884
1885 if test "$wxUSE_UNIVERSAL" = yes; then
1886 echo "$ac_t""yes" 1>&6
1887 else
1888 echo "$ac_t""no" 1>&6
1889 fi
1890
1891# Check whether --with-gtk or --without-gtk was given.
1892if test "${with_gtk+set}" = set; then
1893 withval="$with_gtk"
1894 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1895fi
1896
1897# Check whether --with-motif or --without-motif was given.
1898if test "${with_motif+set}" = set; then
1899 withval="$with_motif"
1900 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1901fi
1902
1903# Check whether --with-mac or --without-mac was given.
1904if test "${with_mac+set}" = set; then
1905 withval="$with_mac"
1906 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1907fi
1908
1909# Check whether --with-wine or --without-wine was given.
1910if test "${with_wine+set}" = set; then
1911 withval="$with_wine"
1912 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1913fi
1914
1915# Check whether --with-msw or --without-msw was given.
1916if test "${with_msw+set}" = set; then
1917 withval="$with_msw"
1918 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
1919fi
1920
1921# Check whether --with-pm or --without-pm was given.
1922if test "${with_pm+set}" = set; then
1923 withval="$with_pm"
1924 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1925fi
1926
1927# Check whether --with-mgl or --without-mgl was given.
1928if test "${with_mgl+set}" = set; then
1929 withval="$with_mgl"
1930 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1931fi
1932
1933# Check whether --with-microwin or --without-microwin was given.
1934if test "${with_microwin+set}" = set; then
1935 withval="$with_microwin"
1936 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1937fi
1938
1939# Check whether --with-x11 or --without-x11 was given.
1940if test "${with_x11+set}" = set; then
1941 withval="$with_x11"
1942 wxUSE_X11="$withval" CACHE_X11=1 TOOLKIT_GIVEN=1
1943fi
1944
1945
1946# Check whether --enable-gtk2 or --disable-gtk2 was given.
1947if test "${enable_gtk2+set}" = set; then
1948 enableval="$enable_gtk2"
1949 wxUSE_GTK2=1
1950else
1951 wxUSE_GTK2=0
1952fi
1953
1954
1955
1956 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1957echo "configure:1958: checking for --with-libpng" >&5
1958 no_cache=0
1959 # Check whether --with-libpng or --without-libpng was given.
1960if test "${with_libpng+set}" = set; then
1961 withval="$with_libpng"
1962
1963 if test "$withval" = yes; then
1964 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1965 elif test "$withval" = no; then
1966 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1967 elif test "$withval" = sys; then
1968 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1969 elif test "$withval" = builtin; then
1970 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1971 else
1972 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1973 fi
1974
1975else
1976
1977 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1978 if test "x$LINE" != x ; then
1979 eval "DEFAULT_$LINE"
1980 else
1981 no_cache=1
1982 fi
1983
1984 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1985
1986fi
1987
1988
1989 eval "$ac_cv_use_libpng"
1990 if test "$no_cache" != 1; then
1991 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1992 fi
1993
1994 if test "$wxUSE_LIBPNG" = yes; then
1995 echo "$ac_t""yes" 1>&6
1996 elif test "$wxUSE_LIBPNG" = no; then
1997 echo "$ac_t""no" 1>&6
1998 elif test "$wxUSE_LIBPNG" = sys; then
1999 echo "$ac_t""system version" 1>&6
2000 elif test "$wxUSE_LIBPNG" = builtin; then
2001 echo "$ac_t""builtin version" 1>&6
2002 else
2003 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2004 fi
2005
2006
2007 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2008echo "configure:2009: checking for --with-libjpeg" >&5
2009 no_cache=0
2010 # Check whether --with-libjpeg or --without-libjpeg was given.
2011if test "${with_libjpeg+set}" = set; then
2012 withval="$with_libjpeg"
2013
2014 if test "$withval" = yes; then
2015 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2016 elif test "$withval" = no; then
2017 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2018 elif test "$withval" = sys; then
2019 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2020 elif test "$withval" = builtin; then
2021 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2022 else
2023 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2024 fi
2025
2026else
2027
2028 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2029 if test "x$LINE" != x ; then
2030 eval "DEFAULT_$LINE"
2031 else
2032 no_cache=1
2033 fi
2034
2035 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2036
2037fi
2038
2039
2040 eval "$ac_cv_use_libjpeg"
2041 if test "$no_cache" != 1; then
2042 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2043 fi
2044
2045 if test "$wxUSE_LIBJPEG" = yes; then
2046 echo "$ac_t""yes" 1>&6
2047 elif test "$wxUSE_LIBJPEG" = no; then
2048 echo "$ac_t""no" 1>&6
2049 elif test "$wxUSE_LIBJPEG" = sys; then
2050 echo "$ac_t""system version" 1>&6
2051 elif test "$wxUSE_LIBJPEG" = builtin; then
2052 echo "$ac_t""builtin version" 1>&6
2053 else
2054 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2055 fi
2056
2057
2058 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2059echo "configure:2060: checking for --with-libtiff" >&5
2060 no_cache=0
2061 # Check whether --with-libtiff or --without-libtiff was given.
2062if test "${with_libtiff+set}" = set; then
2063 withval="$with_libtiff"
2064
2065 if test "$withval" = yes; then
2066 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2067 elif test "$withval" = no; then
2068 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2069 elif test "$withval" = sys; then
2070 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2071 elif test "$withval" = builtin; then
2072 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2073 else
2074 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2075 fi
2076
2077else
2078
2079 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2080 if test "x$LINE" != x ; then
2081 eval "DEFAULT_$LINE"
2082 else
2083 no_cache=1
2084 fi
2085
2086 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2087
2088fi
2089
2090
2091 eval "$ac_cv_use_libtiff"
2092 if test "$no_cache" != 1; then
2093 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2094 fi
2095
2096 if test "$wxUSE_LIBTIFF" = yes; then
2097 echo "$ac_t""yes" 1>&6
2098 elif test "$wxUSE_LIBTIFF" = no; then
2099 echo "$ac_t""no" 1>&6
2100 elif test "$wxUSE_LIBTIFF" = sys; then
2101 echo "$ac_t""system version" 1>&6
2102 elif test "$wxUSE_LIBTIFF" = builtin; then
2103 echo "$ac_t""builtin version" 1>&6
2104 else
2105 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2106 fi
2107
2108
2109 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2110echo "configure:2111: checking for --with-opengl" >&5
2111 no_cache=0
2112 # Check whether --with-opengl or --without-opengl was given.
2113if test "${with_opengl+set}" = set; then
2114 withval="$with_opengl"
2115
2116 if test "$withval" = yes; then
2117 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2118 else
2119 ac_cv_use_opengl='wxUSE_OPENGL=no'
2120 fi
2121
2122else
2123
2124 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2125 if test "x$LINE" != x ; then
2126 eval "DEFAULT_$LINE"
2127 else
2128 no_cache=1
2129 fi
2130
2131 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2132
2133fi
2134
2135
2136 eval "$ac_cv_use_opengl"
2137 if test "$no_cache" != 1; then
2138 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2139 fi
2140
2141 if test "$wxUSE_OPENGL" = yes; then
2142 echo "$ac_t""yes" 1>&6
2143 else
2144 echo "$ac_t""no" 1>&6
2145 fi
2146
2147
2148fi
2149
2150
2151 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2152echo "configure:2153: checking for --with-dmalloc" >&5
2153 no_cache=0
2154 # Check whether --with-dmalloc or --without-dmalloc was given.
2155if test "${with_dmalloc+set}" = set; then
2156 withval="$with_dmalloc"
2157
2158 if test "$withval" = yes; then
2159 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2160 else
2161 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2162 fi
2163
2164else
2165
2166 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2167 if test "x$LINE" != x ; then
2168 eval "DEFAULT_$LINE"
2169 else
2170 no_cache=1
2171 fi
2172
2173 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2174
2175fi
2176
2177
2178 eval "$ac_cv_use_dmalloc"
2179 if test "$no_cache" != 1; then
2180 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2181 fi
2182
2183 if test "$wxUSE_DMALLOC" = yes; then
2184 echo "$ac_t""yes" 1>&6
2185 else
2186 echo "$ac_t""no" 1>&6
2187 fi
2188
2189
2190 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2191echo "configure:2192: checking for --with-regex" >&5
2192 no_cache=0
2193 # Check whether --with-regex or --without-regex was given.
2194if test "${with_regex+set}" = set; then
2195 withval="$with_regex"
2196
2197 if test "$withval" = yes; then
2198 ac_cv_use_regex='wxUSE_REGEX=yes'
2199 elif test "$withval" = no; then
2200 ac_cv_use_regex='wxUSE_REGEX=no'
2201 elif test "$withval" = sys; then
2202 ac_cv_use_regex='wxUSE_REGEX=sys'
2203 elif test "$withval" = builtin; then
2204 ac_cv_use_regex='wxUSE_REGEX=builtin'
2205 else
2206 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2207 fi
2208
2209else
2210
2211 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2212 if test "x$LINE" != x ; then
2213 eval "DEFAULT_$LINE"
2214 else
2215 no_cache=1
2216 fi
2217
2218 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2219
2220fi
2221
2222
2223 eval "$ac_cv_use_regex"
2224 if test "$no_cache" != 1; then
2225 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2226 fi
2227
2228 if test "$wxUSE_REGEX" = yes; then
2229 echo "$ac_t""yes" 1>&6
2230 elif test "$wxUSE_REGEX" = no; then
2231 echo "$ac_t""no" 1>&6
2232 elif test "$wxUSE_REGEX" = sys; then
2233 echo "$ac_t""system version" 1>&6
2234 elif test "$wxUSE_REGEX" = builtin; then
2235 echo "$ac_t""builtin version" 1>&6
2236 else
2237 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2238 fi
2239
2240
2241 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2242echo "configure:2243: checking for --with-zlib" >&5
2243 no_cache=0
2244 # Check whether --with-zlib or --without-zlib was given.
2245if test "${with_zlib+set}" = set; then
2246 withval="$with_zlib"
2247
2248 if test "$withval" = yes; then
2249 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2250 elif test "$withval" = no; then
2251 ac_cv_use_zlib='wxUSE_ZLIB=no'
2252 elif test "$withval" = sys; then
2253 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2254 elif test "$withval" = builtin; then
2255 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2256 else
2257 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2258 fi
2259
2260else
2261
2262 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2263 if test "x$LINE" != x ; then
2264 eval "DEFAULT_$LINE"
2265 else
2266 no_cache=1
2267 fi
2268
2269 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2270
2271fi
2272
2273
2274 eval "$ac_cv_use_zlib"
2275 if test "$no_cache" != 1; then
2276 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2277 fi
2278
2279 if test "$wxUSE_ZLIB" = yes; then
2280 echo "$ac_t""yes" 1>&6
2281 elif test "$wxUSE_ZLIB" = no; then
2282 echo "$ac_t""no" 1>&6
2283 elif test "$wxUSE_ZLIB" = sys; then
2284 echo "$ac_t""system version" 1>&6
2285 elif test "$wxUSE_ZLIB" = builtin; then
2286 echo "$ac_t""builtin version" 1>&6
2287 else
2288 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2289 fi
2290
2291
2292 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2293echo "configure:2294: checking for --with-odbc" >&5
2294 no_cache=0
2295 # Check whether --with-odbc or --without-odbc was given.
2296if test "${with_odbc+set}" = set; then
2297 withval="$with_odbc"
2298
2299 if test "$withval" = yes; then
2300 ac_cv_use_odbc='wxUSE_ODBC=yes'
2301 else
2302 ac_cv_use_odbc='wxUSE_ODBC=no'
2303 fi
2304
2305else
2306
2307 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2308 if test "x$LINE" != x ; then
2309 eval "DEFAULT_$LINE"
2310 else
2311 no_cache=1
2312 fi
2313
2314 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2315
2316fi
2317
2318
2319 eval "$ac_cv_use_odbc"
2320 if test "$no_cache" != 1; then
2321 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2322 fi
2323
2324 if test "$wxUSE_ODBC" = yes; then
2325 echo "$ac_t""yes" 1>&6
2326 else
2327 echo "$ac_t""no" 1>&6
2328 fi
2329
2330
2331
2332
2333 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2334echo "configure:2335: checking for --enable-shared" >&5
2335 no_cache=0
2336 # Check whether --enable-shared or --disable-shared was given.
2337if test "${enable_shared+set}" = set; then
2338 enableval="$enable_shared"
2339
2340 if test "$enableval" = yes; then
2341 ac_cv_use_shared='wxUSE_SHARED=yes'
2342 else
2343 ac_cv_use_shared='wxUSE_SHARED=no'
2344 fi
2345
2346else
2347
2348 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2349 if test "x$LINE" != x ; then
2350 eval "DEFAULT_$LINE"
2351 else
2352 no_cache=1
2353 fi
2354
2355 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2356
2357fi
2358
2359
2360 eval "$ac_cv_use_shared"
2361 if test "$no_cache" != 1; then
2362 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2363 fi
2364
2365 if test "$wxUSE_SHARED" = yes; then
2366 echo "$ac_t""yes" 1>&6
2367 else
2368 echo "$ac_t""no" 1>&6
2369 fi
2370
2371
2372 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2373echo "configure:2374: checking for --enable-soname" >&5
2374 no_cache=0
2375 # Check whether --enable-soname or --disable-soname was given.
2376if test "${enable_soname+set}" = set; then
2377 enableval="$enable_soname"
2378
2379 if test "$enableval" = yes; then
2380 ac_cv_use_soname='wxUSE_SONAME=yes'
2381 else
2382 ac_cv_use_soname='wxUSE_SONAME=no'
2383 fi
2384
2385else
2386
2387 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2388 if test "x$LINE" != x ; then
2389 eval "DEFAULT_$LINE"
2390 else
2391 no_cache=1
2392 fi
2393
2394 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2395
2396fi
2397
2398
2399 eval "$ac_cv_use_soname"
2400 if test "$no_cache" != 1; then
2401 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2402 fi
2403
2404 if test "$wxUSE_SONAME" = yes; then
2405 echo "$ac_t""yes" 1>&6
2406 else
2407 echo "$ac_t""no" 1>&6
2408 fi
2409
2410
2411 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2412echo "configure:2413: checking for --enable-optimise" >&5
2413 no_cache=0
2414 # Check whether --enable-optimise or --disable-optimise was given.
2415if test "${enable_optimise+set}" = set; then
2416 enableval="$enable_optimise"
2417
2418 if test "$enableval" = yes; then
2419 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2420 else
2421 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2422 fi
2423
2424else
2425
2426 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2427 if test "x$LINE" != x ; then
2428 eval "DEFAULT_$LINE"
2429 else
2430 no_cache=1
2431 fi
2432
2433 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2434
2435fi
2436
2437
2438 eval "$ac_cv_use_optimise"
2439 if test "$no_cache" != 1; then
2440 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2441 fi
2442
2443 if test "$wxUSE_OPTIMISE" = yes; then
2444 echo "$ac_t""yes" 1>&6
2445 else
2446 echo "$ac_t""no" 1>&6
2447 fi
2448
2449
2450 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2451echo "configure:2452: checking for --enable-debug" >&5
2452 no_cache=0
2453 # Check whether --enable-debug or --disable-debug was given.
2454if test "${enable_debug+set}" = set; then
2455 enableval="$enable_debug"
2456
2457 if test "$enableval" = yes; then
2458 ac_cv_use_debug='wxUSE_DEBUG=yes'
2459 else
2460 ac_cv_use_debug='wxUSE_DEBUG=no'
2461 fi
2462
2463else
2464
2465 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2466 if test "x$LINE" != x ; then
2467 eval "DEFAULT_$LINE"
2468 else
2469 no_cache=1
2470 fi
2471
2472 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2473
2474fi
2475
2476
2477 eval "$ac_cv_use_debug"
2478 if test "$no_cache" != 1; then
2479 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2480 fi
2481
2482 if test "$wxUSE_DEBUG" = yes; then
2483 echo "$ac_t""yes" 1>&6
2484 else
2485 echo "$ac_t""no" 1>&6
2486 fi
2487
2488
2489
2490 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2491echo "configure:2492: checking for --enable-precomp" >&5
2492 no_cache=0
2493 # Check whether --enable-precomp or --disable-precomp was given.
2494if test "${enable_precomp+set}" = set; then
2495 enableval="$enable_precomp"
2496
2497 if test "$enableval" = yes; then
2498 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2499 else
2500 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2501 fi
2502
2503else
2504
2505 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2506 if test "x$LINE" != x ; then
2507 eval "DEFAULT_$LINE"
2508 else
2509 no_cache=1
2510 fi
2511
2512 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2513
2514fi
2515
2516
2517 eval "$ac_cv_use_precomp"
2518 if test "$no_cache" != 1; then
2519 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2520 fi
2521
2522 if test "$wxUSE_PRECOMP" = yes; then
2523 echo "$ac_t""yes" 1>&6
2524 else
2525 echo "$ac_t""no" 1>&6
2526 fi
2527
2528
2529if test "$wxUSE_DEBUG" = "yes"; then
2530 DEFAULT_wxUSE_DEBUG_FLAG=yes
2531 DEFAULT_wxUSE_DEBUG_INFO=yes
2532elif test "$wxUSE_DEBUG" = "no"; then
2533 DEFAULT_wxUSE_DEBUG_FLAG=no
2534 DEFAULT_wxUSE_DEBUG_INFO=no
2535fi
2536
2537
2538 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2539echo "configure:2540: checking for --enable-debug_flag" >&5
2540 no_cache=0
2541 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2542if test "${enable_debug_flag+set}" = set; then
2543 enableval="$enable_debug_flag"
2544
2545 if test "$enableval" = yes; then
2546 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2547 else
2548 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2549 fi
2550
2551else
2552
2553 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2554 if test "x$LINE" != x ; then
2555 eval "DEFAULT_$LINE"
2556 else
2557 no_cache=1
2558 fi
2559
2560 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2561
2562fi
2563
2564
2565 eval "$ac_cv_use_debug_flag"
2566 if test "$no_cache" != 1; then
2567 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2568 fi
2569
2570 if test "$wxUSE_DEBUG_FLAG" = yes; then
2571 echo "$ac_t""yes" 1>&6
2572 else
2573 echo "$ac_t""no" 1>&6
2574 fi
2575
2576
2577 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2578echo "configure:2579: checking for --enable-debug_info" >&5
2579 no_cache=0
2580 # Check whether --enable-debug_info or --disable-debug_info was given.
2581if test "${enable_debug_info+set}" = set; then
2582 enableval="$enable_debug_info"
2583
2584 if test "$enableval" = yes; then
2585 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2586 else
2587 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2588 fi
2589
2590else
2591
2592 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2593 if test "x$LINE" != x ; then
2594 eval "DEFAULT_$LINE"
2595 else
2596 no_cache=1
2597 fi
2598
2599 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2600
2601fi
2602
2603
2604 eval "$ac_cv_use_debug_info"
2605 if test "$no_cache" != 1; then
2606 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2607 fi
2608
2609 if test "$wxUSE_DEBUG_INFO" = yes; then
2610 echo "$ac_t""yes" 1>&6
2611 else
2612 echo "$ac_t""no" 1>&6
2613 fi
2614
2615
2616 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2617echo "configure:2618: checking for --enable-debug_gdb" >&5
2618 no_cache=0
2619 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2620if test "${enable_debug_gdb+set}" = set; then
2621 enableval="$enable_debug_gdb"
2622
2623 if test "$enableval" = yes; then
2624 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2625 else
2626 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2627 fi
2628
2629else
2630
2631 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2632 if test "x$LINE" != x ; then
2633 eval "DEFAULT_$LINE"
2634 else
2635 no_cache=1
2636 fi
2637
2638 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2639
2640fi
2641
2642
2643 eval "$ac_cv_use_debug_gdb"
2644 if test "$no_cache" != 1; then
2645 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2646 fi
2647
2648 if test "$wxUSE_DEBUG_GDB" = yes; then
2649 echo "$ac_t""yes" 1>&6
2650 else
2651 echo "$ac_t""no" 1>&6
2652 fi
2653
2654
2655 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2656echo "configure:2657: checking for --enable-debug_cntxt" >&5
2657 no_cache=0
2658 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2659if test "${enable_debug_cntxt+set}" = set; then
2660 enableval="$enable_debug_cntxt"
2661
2662 if test "$enableval" = yes; then
2663 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2664 else
2665 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2666 fi
2667
2668else
2669
2670 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2671 if test "x$LINE" != x ; then
2672 eval "DEFAULT_$LINE"
2673 else
2674 no_cache=1
2675 fi
2676
2677 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2678
2679fi
2680
2681
2682 eval "$ac_cv_use_debug_cntxt"
2683 if test "$no_cache" != 1; then
2684 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2685 fi
2686
2687 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2688 echo "$ac_t""yes" 1>&6
2689 else
2690 echo "$ac_t""no" 1>&6
2691 fi
2692
2693
2694 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2695echo "configure:2696: checking for --enable-mem_tracing" >&5
2696 no_cache=0
2697 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2698if test "${enable_mem_tracing+set}" = set; then
2699 enableval="$enable_mem_tracing"
2700
2701 if test "$enableval" = yes; then
2702 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2703 else
2704 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2705 fi
2706
2707else
2708
2709 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2710 if test "x$LINE" != x ; then
2711 eval "DEFAULT_$LINE"
2712 else
2713 no_cache=1
2714 fi
2715
2716 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2717
2718fi
2719
2720
2721 eval "$ac_cv_use_mem_tracing"
2722 if test "$no_cache" != 1; then
2723 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2724 fi
2725
2726 if test "$wxUSE_MEM_TRACING" = yes; then
2727 echo "$ac_t""yes" 1>&6
2728 else
2729 echo "$ac_t""no" 1>&6
2730 fi
2731
2732
2733 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2734echo "configure:2735: checking for --enable-profile" >&5
2735 no_cache=0
2736 # Check whether --enable-profile or --disable-profile was given.
2737if test "${enable_profile+set}" = set; then
2738 enableval="$enable_profile"
2739
2740 if test "$enableval" = yes; then
2741 ac_cv_use_profile='wxUSE_PROFILE=yes'
2742 else
2743 ac_cv_use_profile='wxUSE_PROFILE=no'
2744 fi
2745
2746else
2747
2748 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2749 if test "x$LINE" != x ; then
2750 eval "DEFAULT_$LINE"
2751 else
2752 no_cache=1
2753 fi
2754
2755 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2756
2757fi
2758
2759
2760 eval "$ac_cv_use_profile"
2761 if test "$no_cache" != 1; then
2762 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2763 fi
2764
2765 if test "$wxUSE_PROFILE" = yes; then
2766 echo "$ac_t""yes" 1>&6
2767 else
2768 echo "$ac_t""no" 1>&6
2769 fi
2770
2771
2772 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2773echo "configure:2774: checking for --enable-no_rtti" >&5
2774 no_cache=0
2775 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2776if test "${enable_no_rtti+set}" = set; then
2777 enableval="$enable_no_rtti"
2778
2779 if test "$enableval" = yes; then
2780 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2781 else
2782 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2783 fi
2784
2785else
2786
2787 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2788 if test "x$LINE" != x ; then
2789 eval "DEFAULT_$LINE"
2790 else
2791 no_cache=1
2792 fi
2793
2794 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2795
2796fi
2797
2798
2799 eval "$ac_cv_use_no_rtti"
2800 if test "$no_cache" != 1; then
2801 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2802 fi
2803
2804 if test "$wxUSE_NO_RTTI" = yes; then
2805 echo "$ac_t""yes" 1>&6
2806 else
2807 echo "$ac_t""no" 1>&6
2808 fi
2809
2810
2811 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2812echo "configure:2813: checking for --enable-no_exceptions" >&5
2813 no_cache=0
2814 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2815if test "${enable_no_exceptions+set}" = set; then
2816 enableval="$enable_no_exceptions"
2817
2818 if test "$enableval" = yes; then
2819 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2820 else
2821 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2822 fi
2823
2824else
2825
2826 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2827 if test "x$LINE" != x ; then
2828 eval "DEFAULT_$LINE"
2829 else
2830 no_cache=1
2831 fi
2832
2833 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2834
2835fi
2836
2837
2838 eval "$ac_cv_use_no_exceptions"
2839 if test "$no_cache" != 1; then
2840 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2841 fi
2842
2843 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2844 echo "$ac_t""yes" 1>&6
2845 else
2846 echo "$ac_t""no" 1>&6
2847 fi
2848
2849
2850 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2851echo "configure:2852: checking for --enable-permissive" >&5
2852 no_cache=0
2853 # Check whether --enable-permissive or --disable-permissive was given.
2854if test "${enable_permissive+set}" = set; then
2855 enableval="$enable_permissive"
2856
2857 if test "$enableval" = yes; then
2858 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2859 else
2860 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2861 fi
2862
2863else
2864
2865 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2866 if test "x$LINE" != x ; then
2867 eval "DEFAULT_$LINE"
2868 else
2869 no_cache=1
2870 fi
2871
2872 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2873
2874fi
2875
2876
2877 eval "$ac_cv_use_permissive"
2878 if test "$no_cache" != 1; then
2879 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2880 fi
2881
2882 if test "$wxUSE_PERMISSIVE" = yes; then
2883 echo "$ac_t""yes" 1>&6
2884 else
2885 echo "$ac_t""no" 1>&6
2886 fi
2887
2888
2889 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2890echo "configure:2891: checking for --enable-no_deps" >&5
2891 no_cache=0
2892 # Check whether --enable-no_deps or --disable-no_deps was given.
2893if test "${enable_no_deps+set}" = set; then
2894 enableval="$enable_no_deps"
2895
2896 if test "$enableval" = yes; then
2897 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2898 else
2899 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2900 fi
2901
2902else
2903
2904 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2905 if test "x$LINE" != x ; then
2906 eval "DEFAULT_$LINE"
2907 else
2908 no_cache=1
2909 fi
2910
2911 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2912
2913fi
2914
2915
2916 eval "$ac_cv_use_no_deps"
2917 if test "$no_cache" != 1; then
2918 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2919 fi
2920
2921 if test "$wxUSE_NO_DEPS" = yes; then
2922 echo "$ac_t""yes" 1>&6
2923 else
2924 echo "$ac_t""no" 1>&6
2925 fi
2926
2927
2928
2929 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2930echo "configure:2931: checking for --enable-compat20" >&5
2931 no_cache=0
2932 # Check whether --enable-compat20 or --disable-compat20 was given.
2933if test "${enable_compat20+set}" = set; then
2934 enableval="$enable_compat20"
2935
2936 if test "$enableval" = yes; then
2937 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2938 else
2939 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2940 fi
2941
2942else
2943
2944 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2945 if test "x$LINE" != x ; then
2946 eval "DEFAULT_$LINE"
2947 else
2948 no_cache=1
2949 fi
2950
2951 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2952
2953fi
2954
2955
2956 eval "$ac_cv_use_compat20"
2957 if test "$no_cache" != 1; then
2958 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2959 fi
2960
2961 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2962 echo "$ac_t""yes" 1>&6
2963 else
2964 echo "$ac_t""no" 1>&6
2965 fi
2966
2967
2968 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2969echo "configure:2970: checking for --enable-compat22" >&5
2970 no_cache=0
2971 # Check whether --enable-compat22 or --disable-compat22 was given.
2972if test "${enable_compat22+set}" = set; then
2973 enableval="$enable_compat22"
2974
2975 if test "$enableval" = yes; then
2976 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2977 else
2978 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2979 fi
2980
2981else
2982
2983 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2984 if test "x$LINE" != x ; then
2985 eval "DEFAULT_$LINE"
2986 else
2987 no_cache=1
2988 fi
2989
2990 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2991
2992fi
2993
2994
2995 eval "$ac_cv_use_compat22"
2996 if test "$no_cache" != 1; then
2997 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2998 fi
2999
3000 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3001 echo "$ac_t""yes" 1>&6
3002 else
3003 echo "$ac_t""no" 1>&6
3004 fi
3005
3006
3007
3008
3009 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
3010echo "configure:3011: checking for --enable-intl" >&5
3011 no_cache=0
3012 # Check whether --enable-intl or --disable-intl was given.
3013if test "${enable_intl+set}" = set; then
3014 enableval="$enable_intl"
3015
3016 if test "$enableval" = yes; then
3017 ac_cv_use_intl='wxUSE_INTL=yes'
3018 else
3019 ac_cv_use_intl='wxUSE_INTL=no'
3020 fi
3021
3022else
3023
3024 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3025 if test "x$LINE" != x ; then
3026 eval "DEFAULT_$LINE"
3027 else
3028 no_cache=1
3029 fi
3030
3031 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3032
3033fi
3034
3035
3036 eval "$ac_cv_use_intl"
3037 if test "$no_cache" != 1; then
3038 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3039 fi
3040
3041 if test "$wxUSE_INTL" = yes; then
3042 echo "$ac_t""yes" 1>&6
3043 else
3044 echo "$ac_t""no" 1>&6
3045 fi
3046
3047
3048 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3049echo "configure:3050: checking for --enable-config" >&5
3050 no_cache=0
3051 # Check whether --enable-config or --disable-config was given.
3052if test "${enable_config+set}" = set; then
3053 enableval="$enable_config"
3054
3055 if test "$enableval" = yes; then
3056 ac_cv_use_config='wxUSE_CONFIG=yes'
3057 else
3058 ac_cv_use_config='wxUSE_CONFIG=no'
3059 fi
3060
3061else
3062
3063 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3064 if test "x$LINE" != x ; then
3065 eval "DEFAULT_$LINE"
3066 else
3067 no_cache=1
3068 fi
3069
3070 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3071
3072fi
3073
3074
3075 eval "$ac_cv_use_config"
3076 if test "$no_cache" != 1; then
3077 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3078 fi
3079
3080 if test "$wxUSE_CONFIG" = yes; then
3081 echo "$ac_t""yes" 1>&6
3082 else
3083 echo "$ac_t""no" 1>&6
3084 fi
3085
3086
3087
3088 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
3089echo "configure:3090: checking for --enable-protocols" >&5
3090 no_cache=0
3091 # Check whether --enable-protocols or --disable-protocols was given.
3092if test "${enable_protocols+set}" = set; then
3093 enableval="$enable_protocols"
3094
3095 if test "$enableval" = yes; then
3096 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3097 else
3098 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3099 fi
3100
3101else
3102
3103 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3104 if test "x$LINE" != x ; then
3105 eval "DEFAULT_$LINE"
3106 else
3107 no_cache=1
3108 fi
3109
3110 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3111
3112fi
3113
3114
3115 eval "$ac_cv_use_protocols"
3116 if test "$no_cache" != 1; then
3117 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3118 fi
3119
3120 if test "$wxUSE_PROTOCOL" = yes; then
3121 echo "$ac_t""yes" 1>&6
3122 else
3123 echo "$ac_t""no" 1>&6
3124 fi
3125
3126
3127 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
3128echo "configure:3129: checking for --enable-ftp" >&5
3129 no_cache=0
3130 # Check whether --enable-ftp or --disable-ftp was given.
3131if test "${enable_ftp+set}" = set; then
3132 enableval="$enable_ftp"
3133
3134 if test "$enableval" = yes; then
3135 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3136 else
3137 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3138 fi
3139
3140else
3141
3142 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3143 if test "x$LINE" != x ; then
3144 eval "DEFAULT_$LINE"
3145 else
3146 no_cache=1
3147 fi
3148
3149 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3150
3151fi
3152
3153
3154 eval "$ac_cv_use_ftp"
3155 if test "$no_cache" != 1; then
3156 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3157 fi
3158
3159 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3160 echo "$ac_t""yes" 1>&6
3161 else
3162 echo "$ac_t""no" 1>&6
3163 fi
3164
3165
3166 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
3167echo "configure:3168: checking for --enable-http" >&5
3168 no_cache=0
3169 # Check whether --enable-http or --disable-http was given.
3170if test "${enable_http+set}" = set; then
3171 enableval="$enable_http"
3172
3173 if test "$enableval" = yes; then
3174 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3175 else
3176 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3177 fi
3178
3179else
3180
3181 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3182 if test "x$LINE" != x ; then
3183 eval "DEFAULT_$LINE"
3184 else
3185 no_cache=1
3186 fi
3187
3188 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3189
3190fi
3191
3192
3193 eval "$ac_cv_use_http"
3194 if test "$no_cache" != 1; then
3195 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3196 fi
3197
3198 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3199 echo "$ac_t""yes" 1>&6
3200 else
3201 echo "$ac_t""no" 1>&6
3202 fi
3203
3204
3205 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
3206echo "configure:3207: checking for --enable-fileproto" >&5
3207 no_cache=0
3208 # Check whether --enable-fileproto or --disable-fileproto was given.
3209if test "${enable_fileproto+set}" = set; then
3210 enableval="$enable_fileproto"
3211
3212 if test "$enableval" = yes; then
3213 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3214 else
3215 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3216 fi
3217
3218else
3219
3220 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3221 if test "x$LINE" != x ; then
3222 eval "DEFAULT_$LINE"
3223 else
3224 no_cache=1
3225 fi
3226
3227 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3228
3229fi
3230
3231
3232 eval "$ac_cv_use_fileproto"
3233 if test "$no_cache" != 1; then
3234 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3235 fi
3236
3237 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3238 echo "$ac_t""yes" 1>&6
3239 else
3240 echo "$ac_t""no" 1>&6
3241 fi
3242
3243
3244 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3245echo "configure:3246: checking for --enable-sockets" >&5
3246 no_cache=0
3247 # Check whether --enable-sockets or --disable-sockets was given.
3248if test "${enable_sockets+set}" = set; then
3249 enableval="$enable_sockets"
3250
3251 if test "$enableval" = yes; then
3252 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3253 else
3254 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3255 fi
3256
3257else
3258
3259 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3260 if test "x$LINE" != x ; then
3261 eval "DEFAULT_$LINE"
3262 else
3263 no_cache=1
3264 fi
3265
3266 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3267
3268fi
3269
3270
3271 eval "$ac_cv_use_sockets"
3272 if test "$no_cache" != 1; then
3273 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3274 fi
3275
3276 if test "$wxUSE_SOCKETS" = yes; then
3277 echo "$ac_t""yes" 1>&6
3278 else
3279 echo "$ac_t""no" 1>&6
3280 fi
3281
3282
3283
3284 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3285echo "configure:3286: checking for --enable-ipc" >&5
3286 no_cache=0
3287 # Check whether --enable-ipc or --disable-ipc was given.
3288if test "${enable_ipc+set}" = set; then
3289 enableval="$enable_ipc"
3290
3291 if test "$enableval" = yes; then
3292 ac_cv_use_ipc='wxUSE_IPC=yes'
3293 else
3294 ac_cv_use_ipc='wxUSE_IPC=no'
3295 fi
3296
3297else
3298
3299 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3300 if test "x$LINE" != x ; then
3301 eval "DEFAULT_$LINE"
3302 else
3303 no_cache=1
3304 fi
3305
3306 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3307
3308fi
3309
3310
3311 eval "$ac_cv_use_ipc"
3312 if test "$no_cache" != 1; then
3313 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3314 fi
3315
3316 if test "$wxUSE_IPC" = yes; then
3317 echo "$ac_t""yes" 1>&6
3318 else
3319 echo "$ac_t""no" 1>&6
3320 fi
3321
3322
3323
3324 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3325echo "configure:3326: checking for --enable-cmdline" >&5
3326 no_cache=0
3327 # Check whether --enable-cmdline or --disable-cmdline was given.
3328if test "${enable_cmdline+set}" = set; then
3329 enableval="$enable_cmdline"
3330
3331 if test "$enableval" = yes; then
3332 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3333 else
3334 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3335 fi
3336
3337else
3338
3339 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3340 if test "x$LINE" != x ; then
3341 eval "DEFAULT_$LINE"
3342 else
3343 no_cache=1
3344 fi
3345
3346 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3347
3348fi
3349
3350
3351 eval "$ac_cv_use_cmdline"
3352 if test "$no_cache" != 1; then
3353 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3354 fi
3355
3356 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3357 echo "$ac_t""yes" 1>&6
3358 else
3359 echo "$ac_t""no" 1>&6
3360 fi
3361
3362
3363 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3364echo "configure:3365: checking for --enable-datetime" >&5
3365 no_cache=0
3366 # Check whether --enable-datetime or --disable-datetime was given.
3367if test "${enable_datetime+set}" = set; then
3368 enableval="$enable_datetime"
3369
3370 if test "$enableval" = yes; then
3371 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3372 else
3373 ac_cv_use_datetime='wxUSE_DATETIME=no'
3374 fi
3375
3376else
3377
3378 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3379 if test "x$LINE" != x ; then
3380 eval "DEFAULT_$LINE"
3381 else
3382 no_cache=1
3383 fi
3384
3385 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3386
3387fi
3388
3389
3390 eval "$ac_cv_use_datetime"
3391 if test "$no_cache" != 1; then
3392 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3393 fi
3394
3395 if test "$wxUSE_DATETIME" = yes; then
3396 echo "$ac_t""yes" 1>&6
3397 else
3398 echo "$ac_t""no" 1>&6
3399 fi
3400
3401
3402 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3403echo "configure:3404: checking for --enable-timedate" >&5
3404 no_cache=0
3405 # Check whether --enable-timedate or --disable-timedate was given.
3406if test "${enable_timedate+set}" = set; then
3407 enableval="$enable_timedate"
3408
3409 if test "$enableval" = yes; then
3410 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3411 else
3412 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3413 fi
3414
3415else
3416
3417 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3418 if test "x$LINE" != x ; then
3419 eval "DEFAULT_$LINE"
3420 else
3421 no_cache=1
3422 fi
3423
3424 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3425
3426fi
3427
3428
3429 eval "$ac_cv_use_timedate"
3430 if test "$no_cache" != 1; then
3431 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3432 fi
3433
3434 if test "$wxUSE_TIMEDATE" = yes; then
3435 echo "$ac_t""yes" 1>&6
3436 else
3437 echo "$ac_t""no" 1>&6
3438 fi
3439
3440
3441 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3442echo "configure:3443: checking for --enable-stopwatch" >&5
3443 no_cache=0
3444 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3445if test "${enable_stopwatch+set}" = set; then
3446 enableval="$enable_stopwatch"
3447
3448 if test "$enableval" = yes; then
3449 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3450 else
3451 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3452 fi
3453
3454else
3455
3456 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3457 if test "x$LINE" != x ; then
3458 eval "DEFAULT_$LINE"
3459 else
3460 no_cache=1
3461 fi
3462
3463 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3464
3465fi
3466
3467
3468 eval "$ac_cv_use_stopwatch"
3469 if test "$no_cache" != 1; then
3470 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3471 fi
3472
3473 if test "$wxUSE_STOPWATCH" = yes; then
3474 echo "$ac_t""yes" 1>&6
3475 else
3476 echo "$ac_t""no" 1>&6
3477 fi
3478
3479
3480 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3481echo "configure:3482: checking for --enable-dialupman" >&5
3482 no_cache=0
3483 # Check whether --enable-dialupman or --disable-dialupman was given.
3484if test "${enable_dialupman+set}" = set; then
3485 enableval="$enable_dialupman"
3486
3487 if test "$enableval" = yes; then
3488 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3489 else
3490 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3491 fi
3492
3493else
3494
3495 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3496 if test "x$LINE" != x ; then
3497 eval "DEFAULT_$LINE"
3498 else
3499 no_cache=1
3500 fi
3501
3502 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3503
3504fi
3505
3506
3507 eval "$ac_cv_use_dialupman"
3508 if test "$no_cache" != 1; then
3509 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3510 fi
3511
3512 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3513 echo "$ac_t""yes" 1>&6
3514 else
3515 echo "$ac_t""no" 1>&6
3516 fi
3517
3518
3519 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3520echo "configure:3521: checking for --enable-apple_ieee" >&5
3521 no_cache=0
3522 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3523if test "${enable_apple_ieee+set}" = set; then
3524 enableval="$enable_apple_ieee"
3525
3526 if test "$enableval" = yes; then
3527 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3528 else
3529 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3530 fi
3531
3532else
3533
3534 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3535 if test "x$LINE" != x ; then
3536 eval "DEFAULT_$LINE"
3537 else
3538 no_cache=1
3539 fi
3540
3541 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3542
3543fi
3544
3545
3546 eval "$ac_cv_use_apple_ieee"
3547 if test "$no_cache" != 1; then
3548 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3549 fi
3550
3551 if test "$wxUSE_APPLE_IEEE" = yes; then
3552 echo "$ac_t""yes" 1>&6
3553 else
3554 echo "$ac_t""no" 1>&6
3555 fi
3556
3557
3558 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3559echo "configure:3560: checking for --enable-timer" >&5
3560 no_cache=0
3561 # Check whether --enable-timer or --disable-timer was given.
3562if test "${enable_timer+set}" = set; then
3563 enableval="$enable_timer"
3564
3565 if test "$enableval" = yes; then
3566 ac_cv_use_timer='wxUSE_TIMER=yes'
3567 else
3568 ac_cv_use_timer='wxUSE_TIMER=no'
3569 fi
3570
3571else
3572
3573 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3574 if test "x$LINE" != x ; then
3575 eval "DEFAULT_$LINE"
3576 else
3577 no_cache=1
3578 fi
3579
3580 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3581
3582fi
3583
3584
3585 eval "$ac_cv_use_timer"
3586 if test "$no_cache" != 1; then
3587 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3588 fi
3589
3590 if test "$wxUSE_TIMER" = yes; then
3591 echo "$ac_t""yes" 1>&6
3592 else
3593 echo "$ac_t""no" 1>&6
3594 fi
3595
3596
3597 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3598echo "configure:3599: checking for --enable-wave" >&5
3599 no_cache=0
3600 # Check whether --enable-wave or --disable-wave was given.
3601if test "${enable_wave+set}" = set; then
3602 enableval="$enable_wave"
3603
3604 if test "$enableval" = yes; then
3605 ac_cv_use_wave='wxUSE_WAVE=yes'
3606 else
3607 ac_cv_use_wave='wxUSE_WAVE=no'
3608 fi
3609
3610else
3611
3612 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3613 if test "x$LINE" != x ; then
3614 eval "DEFAULT_$LINE"
3615 else
3616 no_cache=1
3617 fi
3618
3619 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3620
3621fi
3622
3623
3624 eval "$ac_cv_use_wave"
3625 if test "$no_cache" != 1; then
3626 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3627 fi
3628
3629 if test "$wxUSE_WAVE" = yes; then
3630 echo "$ac_t""yes" 1>&6
3631 else
3632 echo "$ac_t""no" 1>&6
3633 fi
3634
3635
3636 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3637echo "configure:3638: checking for --enable-fraction" >&5
3638 no_cache=0
3639 # Check whether --enable-fraction or --disable-fraction was given.
3640if test "${enable_fraction+set}" = set; then
3641 enableval="$enable_fraction"
3642
3643 if test "$enableval" = yes; then
3644 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3645 else
3646 ac_cv_use_fraction='wxUSE_FRACTION=no'
3647 fi
3648
3649else
3650
3651 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3652 if test "x$LINE" != x ; then
3653 eval "DEFAULT_$LINE"
3654 else
3655 no_cache=1
3656 fi
3657
3658 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3659
3660fi
3661
3662
3663 eval "$ac_cv_use_fraction"
3664 if test "$no_cache" != 1; then
3665 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3666 fi
3667
3668 if test "$wxUSE_FRACTION" = yes; then
3669 echo "$ac_t""yes" 1>&6
3670 else
3671 echo "$ac_t""no" 1>&6
3672 fi
3673
3674
3675 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3676echo "configure:3677: checking for --enable-dynlib" >&5
3677 no_cache=0
3678 # Check whether --enable-dynlib or --disable-dynlib was given.
3679if test "${enable_dynlib+set}" = set; then
3680 enableval="$enable_dynlib"
3681
3682 if test "$enableval" = yes; then
3683 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3684 else
3685 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3686 fi
3687
3688else
3689
3690 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3691 if test "x$LINE" != x ; then
3692 eval "DEFAULT_$LINE"
3693 else
3694 no_cache=1
3695 fi
3696
3697 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3698
3699fi
3700
3701
3702 eval "$ac_cv_use_dynlib"
3703 if test "$no_cache" != 1; then
3704 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3705 fi
3706
3707 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3708 echo "$ac_t""yes" 1>&6
3709 else
3710 echo "$ac_t""no" 1>&6
3711 fi
3712
3713
3714 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3715echo "configure:3716: checking for --enable-dynamicloader" >&5
3716 no_cache=0
3717 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3718if test "${enable_dynamicloader+set}" = set; then
3719 enableval="$enable_dynamicloader"
3720
3721 if test "$enableval" = yes; then
3722 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3723 else
3724 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3725 fi
3726
3727else
3728
3729 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3730 if test "x$LINE" != x ; then
3731 eval "DEFAULT_$LINE"
3732 else
3733 no_cache=1
3734 fi
3735
3736 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3737
3738fi
3739
3740
3741 eval "$ac_cv_use_dynamicloader"
3742 if test "$no_cache" != 1; then
3743 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3744 fi
3745
3746 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3747 echo "$ac_t""yes" 1>&6
3748 else
3749 echo "$ac_t""no" 1>&6
3750 fi
3751
3752
3753 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3754echo "configure:3755: checking for --enable-longlong" >&5
3755 no_cache=0
3756 # Check whether --enable-longlong or --disable-longlong was given.
3757if test "${enable_longlong+set}" = set; then
3758 enableval="$enable_longlong"
3759
3760 if test "$enableval" = yes; then
3761 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3762 else
3763 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3764 fi
3765
3766else
3767
3768 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3769 if test "x$LINE" != x ; then
3770 eval "DEFAULT_$LINE"
3771 else
3772 no_cache=1
3773 fi
3774
3775 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3776
3777fi
3778
3779
3780 eval "$ac_cv_use_longlong"
3781 if test "$no_cache" != 1; then
3782 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3783 fi
3784
3785 if test "$wxUSE_LONGLONG" = yes; then
3786 echo "$ac_t""yes" 1>&6
3787 else
3788 echo "$ac_t""no" 1>&6
3789 fi
3790
3791
3792 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3793echo "configure:3794: checking for --enable-geometry" >&5
3794 no_cache=0
3795 # Check whether --enable-geometry or --disable-geometry was given.
3796if test "${enable_geometry+set}" = set; then
3797 enableval="$enable_geometry"
3798
3799 if test "$enableval" = yes; then
3800 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3801 else
3802 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3803 fi
3804
3805else
3806
3807 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3808 if test "x$LINE" != x ; then
3809 eval "DEFAULT_$LINE"
3810 else
3811 no_cache=1
3812 fi
3813
3814 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3815
3816fi
3817
3818
3819 eval "$ac_cv_use_geometry"
3820 if test "$no_cache" != 1; then
3821 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3822 fi
3823
3824 if test "$wxUSE_GEOMETRY" = yes; then
3825 echo "$ac_t""yes" 1>&6
3826 else
3827 echo "$ac_t""no" 1>&6
3828 fi
3829
3830
3831 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3832echo "configure:3833: checking for --enable-log" >&5
3833 no_cache=0
3834 # Check whether --enable-log or --disable-log was given.
3835if test "${enable_log+set}" = set; then
3836 enableval="$enable_log"
3837
3838 if test "$enableval" = yes; then
3839 ac_cv_use_log='wxUSE_LOG=yes'
3840 else
3841 ac_cv_use_log='wxUSE_LOG=no'
3842 fi
3843
3844else
3845
3846 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3847 if test "x$LINE" != x ; then
3848 eval "DEFAULT_$LINE"
3849 else
3850 no_cache=1
3851 fi
3852
3853 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3854
3855fi
3856
3857
3858 eval "$ac_cv_use_log"
3859 if test "$no_cache" != 1; then
3860 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3861 fi
3862
3863 if test "$wxUSE_LOG" = yes; then
3864 echo "$ac_t""yes" 1>&6
3865 else
3866 echo "$ac_t""no" 1>&6
3867 fi
3868
3869
3870 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3871echo "configure:3872: checking for --enable-streams" >&5
3872 no_cache=0
3873 # Check whether --enable-streams or --disable-streams was given.
3874if test "${enable_streams+set}" = set; then
3875 enableval="$enable_streams"
3876
3877 if test "$enableval" = yes; then
3878 ac_cv_use_streams='wxUSE_STREAMS=yes'
3879 else
3880 ac_cv_use_streams='wxUSE_STREAMS=no'
3881 fi
3882
3883else
3884
3885 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3886 if test "x$LINE" != x ; then
3887 eval "DEFAULT_$LINE"
3888 else
3889 no_cache=1
3890 fi
3891
3892 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3893
3894fi
3895
3896
3897 eval "$ac_cv_use_streams"
3898 if test "$no_cache" != 1; then
3899 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3900 fi
3901
3902 if test "$wxUSE_STREAMS" = yes; then
3903 echo "$ac_t""yes" 1>&6
3904 else
3905 echo "$ac_t""no" 1>&6
3906 fi
3907
3908
3909 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3910echo "configure:3911: checking for --enable-file" >&5
3911 no_cache=0
3912 # Check whether --enable-file or --disable-file was given.
3913if test "${enable_file+set}" = set; then
3914 enableval="$enable_file"
3915
3916 if test "$enableval" = yes; then
3917 ac_cv_use_file='wxUSE_FILE=yes'
3918 else
3919 ac_cv_use_file='wxUSE_FILE=no'
3920 fi
3921
3922else
3923
3924 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3925 if test "x$LINE" != x ; then
3926 eval "DEFAULT_$LINE"
3927 else
3928 no_cache=1
3929 fi
3930
3931 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3932
3933fi
3934
3935
3936 eval "$ac_cv_use_file"
3937 if test "$no_cache" != 1; then
3938 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3939 fi
3940
3941 if test "$wxUSE_FILE" = yes; then
3942 echo "$ac_t""yes" 1>&6
3943 else
3944 echo "$ac_t""no" 1>&6
3945 fi
3946
3947
3948 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3949echo "configure:3950: checking for --enable-ffile" >&5
3950 no_cache=0
3951 # Check whether --enable-ffile or --disable-ffile was given.
3952if test "${enable_ffile+set}" = set; then
3953 enableval="$enable_ffile"
3954
3955 if test "$enableval" = yes; then
3956 ac_cv_use_ffile='wxUSE_FFILE=yes'
3957 else
3958 ac_cv_use_ffile='wxUSE_FFILE=no'
3959 fi
3960
3961else
3962
3963 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3964 if test "x$LINE" != x ; then
3965 eval "DEFAULT_$LINE"
3966 else
3967 no_cache=1
3968 fi
3969
3970 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3971
3972fi
3973
3974
3975 eval "$ac_cv_use_ffile"
3976 if test "$no_cache" != 1; then
3977 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3978 fi
3979
3980 if test "$wxUSE_FFILE" = yes; then
3981 echo "$ac_t""yes" 1>&6
3982 else
3983 echo "$ac_t""no" 1>&6
3984 fi
3985
3986
3987 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
3988echo "configure:3989: checking for --enable-textbuf" >&5
3989 no_cache=0
3990 # Check whether --enable-textbuf or --disable-textbuf was given.
3991if test "${enable_textbuf+set}" = set; then
3992 enableval="$enable_textbuf"
3993
3994 if test "$enableval" = yes; then
3995 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3996 else
3997 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
3998 fi
3999
4000else
4001
4002 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4003 if test "x$LINE" != x ; then
4004 eval "DEFAULT_$LINE"
4005 else
4006 no_cache=1
4007 fi
4008
4009 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4010
4011fi
4012
4013
4014 eval "$ac_cv_use_textbuf"
4015 if test "$no_cache" != 1; then
4016 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4017 fi
4018
4019 if test "$wxUSE_TEXTBUFFER" = yes; then
4020 echo "$ac_t""yes" 1>&6
4021 else
4022 echo "$ac_t""no" 1>&6
4023 fi
4024
4025
4026 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
4027echo "configure:4028: checking for --enable-textfile" >&5
4028 no_cache=0
4029 # Check whether --enable-textfile or --disable-textfile was given.
4030if test "${enable_textfile+set}" = set; then
4031 enableval="$enable_textfile"
4032
4033 if test "$enableval" = yes; then
4034 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4035 else
4036 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4037 fi
4038
4039else
4040
4041 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4042 if test "x$LINE" != x ; then
4043 eval "DEFAULT_$LINE"
4044 else
4045 no_cache=1
4046 fi
4047
4048 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4049
4050fi
4051
4052
4053 eval "$ac_cv_use_textfile"
4054 if test "$no_cache" != 1; then
4055 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4056 fi
4057
4058 if test "$wxUSE_TEXTFILE" = yes; then
4059 echo "$ac_t""yes" 1>&6
4060 else
4061 echo "$ac_t""no" 1>&6
4062 fi
4063
4064
4065 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
4066echo "configure:4067: checking for --enable-fontmap" >&5
4067 no_cache=0
4068 # Check whether --enable-fontmap or --disable-fontmap was given.
4069if test "${enable_fontmap+set}" = set; then
4070 enableval="$enable_fontmap"
4071
4072 if test "$enableval" = yes; then
4073 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4074 else
4075 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4076 fi
4077
4078else
4079
4080 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4081 if test "x$LINE" != x ; then
4082 eval "DEFAULT_$LINE"
4083 else
4084 no_cache=1
4085 fi
4086
4087 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4088
4089fi
4090
4091
4092 eval "$ac_cv_use_fontmap"
4093 if test "$no_cache" != 1; then
4094 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4095 fi
4096
4097 if test "$wxUSE_FONTMAP" = yes; then
4098 echo "$ac_t""yes" 1>&6
4099 else
4100 echo "$ac_t""no" 1>&6
4101 fi
4102
4103
4104 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
4105echo "configure:4106: checking for --enable-unicode" >&5
4106 no_cache=0
4107 # Check whether --enable-unicode or --disable-unicode was given.
4108if test "${enable_unicode+set}" = set; then
4109 enableval="$enable_unicode"
4110
4111 if test "$enableval" = yes; then
4112 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4113 else
4114 ac_cv_use_unicode='wxUSE_UNICODE=no'
4115 fi
4116
4117else
4118
4119 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4120 if test "x$LINE" != x ; then
4121 eval "DEFAULT_$LINE"
4122 else
4123 no_cache=1
4124 fi
4125
4126 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4127
4128fi
4129
4130
4131 eval "$ac_cv_use_unicode"
4132 if test "$no_cache" != 1; then
4133 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4134 fi
4135
4136 if test "$wxUSE_UNICODE" = yes; then
4137 echo "$ac_t""yes" 1>&6
4138 else
4139 echo "$ac_t""no" 1>&6
4140 fi
4141
4142
4143 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
4144echo "configure:4145: checking for --enable-mslu" >&5
4145 no_cache=0
4146 # Check whether --enable-mslu or --disable-mslu was given.
4147if test "${enable_mslu+set}" = set; then
4148 enableval="$enable_mslu"
4149
4150 if test "$enableval" = yes; then
4151 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4152 else
4153 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4154 fi
4155
4156else
4157
4158 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4159 if test "x$LINE" != x ; then
4160 eval "DEFAULT_$LINE"
4161 else
4162 no_cache=1
4163 fi
4164
4165 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4166
4167fi
4168
4169
4170 eval "$ac_cv_use_mslu"
4171 if test "$no_cache" != 1; then
4172 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4173 fi
4174
4175 if test "$wxUSE_UNICODE_MSLU" = yes; then
4176 echo "$ac_t""yes" 1>&6
4177 else
4178 echo "$ac_t""no" 1>&6
4179 fi
4180
4181
4182 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
4183echo "configure:4184: checking for --enable-wxprintfv" >&5
4184 no_cache=0
4185 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4186if test "${enable_wxprintfv+set}" = set; then
4187 enableval="$enable_wxprintfv"
4188
4189 if test "$enableval" = yes; then
4190 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4191 else
4192 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4193 fi
4194
4195else
4196
4197 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4198 if test "x$LINE" != x ; then
4199 eval "DEFAULT_$LINE"
4200 else
4201 no_cache=1
4202 fi
4203
4204 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4205
4206fi
4207
4208
4209 eval "$ac_cv_use_wxprintfv"
4210 if test "$no_cache" != 1; then
4211 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4212 fi
4213
4214 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4215 echo "$ac_t""yes" 1>&6
4216 else
4217 echo "$ac_t""no" 1>&6
4218 fi
4219
4220
4221 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
4222echo "configure:4223: checking for --enable-std_iostreams" >&5
4223 no_cache=0
4224 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4225if test "${enable_std_iostreams+set}" = set; then
4226 enableval="$enable_std_iostreams"
4227
4228 if test "$enableval" = yes; then
4229 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4230 else
4231 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4232 fi
4233
4234else
4235
4236 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4237 if test "x$LINE" != x ; then
4238 eval "DEFAULT_$LINE"
4239 else
4240 no_cache=1
4241 fi
4242
4243 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4244
4245fi
4246
4247
4248 eval "$ac_cv_use_std_iostreams"
4249 if test "$no_cache" != 1; then
4250 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4251 fi
4252
4253 if test "$wxUSE_STD_IOSTREAM" = yes; then
4254 echo "$ac_t""yes" 1>&6
4255 else
4256 echo "$ac_t""no" 1>&6
4257 fi
4258
4259
4260 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
4261echo "configure:4262: checking for --enable-filesystem" >&5
4262 no_cache=0
4263 # Check whether --enable-filesystem or --disable-filesystem was given.
4264if test "${enable_filesystem+set}" = set; then
4265 enableval="$enable_filesystem"
4266
4267 if test "$enableval" = yes; then
4268 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4269 else
4270 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4271 fi
4272
4273else
4274
4275 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4276 if test "x$LINE" != x ; then
4277 eval "DEFAULT_$LINE"
4278 else
4279 no_cache=1
4280 fi
4281
4282 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4283
4284fi
4285
4286
4287 eval "$ac_cv_use_filesystem"
4288 if test "$no_cache" != 1; then
4289 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4290 fi
4291
4292 if test "$wxUSE_FILESYSTEM" = yes; then
4293 echo "$ac_t""yes" 1>&6
4294 else
4295 echo "$ac_t""no" 1>&6
4296 fi
4297
4298
4299 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4300echo "configure:4301: checking for --enable-fs_inet" >&5
4301 no_cache=0
4302 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4303if test "${enable_fs_inet+set}" = set; then
4304 enableval="$enable_fs_inet"
4305
4306 if test "$enableval" = yes; then
4307 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4308 else
4309 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4310 fi
4311
4312else
4313
4314 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4315 if test "x$LINE" != x ; then
4316 eval "DEFAULT_$LINE"
4317 else
4318 no_cache=1
4319 fi
4320
4321 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4322
4323fi
4324
4325
4326 eval "$ac_cv_use_fs_inet"
4327 if test "$no_cache" != 1; then
4328 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4329 fi
4330
4331 if test "$wxUSE_FS_INET" = yes; then
4332 echo "$ac_t""yes" 1>&6
4333 else
4334 echo "$ac_t""no" 1>&6
4335 fi
4336
4337
4338 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4339echo "configure:4340: checking for --enable-fs_zip" >&5
4340 no_cache=0
4341 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4342if test "${enable_fs_zip+set}" = set; then
4343 enableval="$enable_fs_zip"
4344
4345 if test "$enableval" = yes; then
4346 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4347 else
4348 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4349 fi
4350
4351else
4352
4353 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4354 if test "x$LINE" != x ; then
4355 eval "DEFAULT_$LINE"
4356 else
4357 no_cache=1
4358 fi
4359
4360 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4361
4362fi
4363
4364
4365 eval "$ac_cv_use_fs_zip"
4366 if test "$no_cache" != 1; then
4367 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4368 fi
4369
4370 if test "$wxUSE_FS_ZIP" = yes; then
4371 echo "$ac_t""yes" 1>&6
4372 else
4373 echo "$ac_t""no" 1>&6
4374 fi
4375
4376
4377 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4378echo "configure:4379: checking for --enable-zipstream" >&5
4379 no_cache=0
4380 # Check whether --enable-zipstream or --disable-zipstream was given.
4381if test "${enable_zipstream+set}" = set; then
4382 enableval="$enable_zipstream"
4383
4384 if test "$enableval" = yes; then
4385 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4386 else
4387 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4388 fi
4389
4390else
4391
4392 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4393 if test "x$LINE" != x ; then
4394 eval "DEFAULT_$LINE"
4395 else
4396 no_cache=1
4397 fi
4398
4399 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4400
4401fi
4402
4403
4404 eval "$ac_cv_use_zipstream"
4405 if test "$no_cache" != 1; then
4406 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4407 fi
4408
4409 if test "$wxUSE_ZIPSTREAM" = yes; then
4410 echo "$ac_t""yes" 1>&6
4411 else
4412 echo "$ac_t""no" 1>&6
4413 fi
4414
4415
4416
4417 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4418echo "configure:4419: checking for --enable-catch_segvs" >&5
4419 no_cache=0
4420 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4421if test "${enable_catch_segvs+set}" = set; then
4422 enableval="$enable_catch_segvs"
4423
4424 if test "$enableval" = yes; then
4425 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4426 else
4427 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4428 fi
4429
4430else
4431
4432 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4433 if test "x$LINE" != x ; then
4434 eval "DEFAULT_$LINE"
4435 else
4436 no_cache=1
4437 fi
4438
4439 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4440
4441fi
4442
4443
4444 eval "$ac_cv_use_catch_segvs"
4445 if test "$no_cache" != 1; then
4446 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4447 fi
4448
4449 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4450 echo "$ac_t""yes" 1>&6
4451 else
4452 echo "$ac_t""no" 1>&6
4453 fi
4454
4455
4456 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4457echo "configure:4458: checking for --enable-snglinst" >&5
4458 no_cache=0
4459 # Check whether --enable-snglinst or --disable-snglinst was given.
4460if test "${enable_snglinst+set}" = set; then
4461 enableval="$enable_snglinst"
4462
4463 if test "$enableval" = yes; then
4464 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4465 else
4466 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4467 fi
4468
4469else
4470
4471 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4472 if test "x$LINE" != x ; then
4473 eval "DEFAULT_$LINE"
4474 else
4475 no_cache=1
4476 fi
4477
4478 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4479
4480fi
4481
4482
4483 eval "$ac_cv_use_snglinst"
4484 if test "$no_cache" != 1; then
4485 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4486 fi
4487
4488 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4489 echo "$ac_t""yes" 1>&6
4490 else
4491 echo "$ac_t""no" 1>&6
4492 fi
4493
4494
4495
4496 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4497echo "configure:4498: checking for --enable-mimetype" >&5
4498 no_cache=0
4499 # Check whether --enable-mimetype or --disable-mimetype was given.
4500if test "${enable_mimetype+set}" = set; then
4501 enableval="$enable_mimetype"
4502
4503 if test "$enableval" = yes; then
4504 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4505 else
4506 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4507 fi
4508
4509else
4510
4511 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4512 if test "x$LINE" != x ; then
4513 eval "DEFAULT_$LINE"
4514 else
4515 no_cache=1
4516 fi
4517
4518 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4519
4520fi
4521
4522
4523 eval "$ac_cv_use_mimetype"
4524 if test "$no_cache" != 1; then
4525 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4526 fi
4527
4528 if test "$wxUSE_MIMETYPE" = yes; then
4529 echo "$ac_t""yes" 1>&6
4530 else
4531 echo "$ac_t""no" 1>&6
4532 fi
4533
4534
4535 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4536echo "configure:4537: checking for --enable-system_options" >&5
4537 no_cache=0
4538 # Check whether --enable-system_options or --disable-system_options was given.
4539if test "${enable_system_options+set}" = set; then
4540 enableval="$enable_system_options"
4541
4542 if test "$enableval" = yes; then
4543 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4544 else
4545 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4546 fi
4547
4548else
4549
4550 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4551 if test "x$LINE" != x ; then
4552 eval "DEFAULT_$LINE"
4553 else
4554 no_cache=1
4555 fi
4556
4557 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4558
4559fi
4560
4561
4562 eval "$ac_cv_use_system_options"
4563 if test "$no_cache" != 1; then
4564 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4565 fi
4566
4567 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4568 echo "$ac_t""yes" 1>&6
4569 else
4570 echo "$ac_t""no" 1>&6
4571 fi
4572
4573
4574
4575 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
4576echo "configure:4577: checking for --enable-url" >&5
4577 no_cache=0
4578 # Check whether --enable-url or --disable-url was given.
4579if test "${enable_url+set}" = set; then
4580 enableval="$enable_url"
4581
4582 if test "$enableval" = yes; then
4583 ac_cv_use_url='wxUSE_URL=yes'
4584 else
4585 ac_cv_use_url='wxUSE_URL=no'
4586 fi
4587
4588else
4589
4590 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4591 if test "x$LINE" != x ; then
4592 eval "DEFAULT_$LINE"
4593 else
4594 no_cache=1
4595 fi
4596
4597 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4598
4599fi
4600
4601
4602 eval "$ac_cv_use_url"
4603 if test "$no_cache" != 1; then
4604 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4605 fi
4606
4607 if test "$wxUSE_URL" = yes; then
4608 echo "$ac_t""yes" 1>&6
4609 else
4610 echo "$ac_t""no" 1>&6
4611 fi
4612
4613
4614 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
4615echo "configure:4616: checking for --enable-protocol" >&5
4616 no_cache=0
4617 # Check whether --enable-protocol or --disable-protocol was given.
4618if test "${enable_protocol+set}" = set; then
4619 enableval="$enable_protocol"
4620
4621 if test "$enableval" = yes; then
4622 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4623 else
4624 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4625 fi
4626
4627else
4628
4629 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4630 if test "x$LINE" != x ; then
4631 eval "DEFAULT_$LINE"
4632 else
4633 no_cache=1
4634 fi
4635
4636 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4637
4638fi
4639
4640
4641 eval "$ac_cv_use_protocol"
4642 if test "$no_cache" != 1; then
4643 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4644 fi
4645
4646 if test "$wxUSE_PROTOCOL" = yes; then
4647 echo "$ac_t""yes" 1>&6
4648 else
4649 echo "$ac_t""no" 1>&6
4650 fi
4651
4652
4653 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
4654echo "configure:4655: checking for --enable-protocol_http" >&5
4655 no_cache=0
4656 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4657if test "${enable_protocol_http+set}" = set; then
4658 enableval="$enable_protocol_http"
4659
4660 if test "$enableval" = yes; then
4661 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4662 else
4663 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4664 fi
4665
4666else
4667
4668 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4669 if test "x$LINE" != x ; then
4670 eval "DEFAULT_$LINE"
4671 else
4672 no_cache=1
4673 fi
4674
4675 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4676
4677fi
4678
4679
4680 eval "$ac_cv_use_protocol_http"
4681 if test "$no_cache" != 1; then
4682 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4683 fi
4684
4685 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4686 echo "$ac_t""yes" 1>&6
4687 else
4688 echo "$ac_t""no" 1>&6
4689 fi
4690
4691
4692 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
4693echo "configure:4694: checking for --enable-protocol_ftp" >&5
4694 no_cache=0
4695 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4696if test "${enable_protocol_ftp+set}" = set; then
4697 enableval="$enable_protocol_ftp"
4698
4699 if test "$enableval" = yes; then
4700 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4701 else
4702 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4703 fi
4704
4705else
4706
4707 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4708 if test "x$LINE" != x ; then
4709 eval "DEFAULT_$LINE"
4710 else
4711 no_cache=1
4712 fi
4713
4714 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4715
4716fi
4717
4718
4719 eval "$ac_cv_use_protocol_ftp"
4720 if test "$no_cache" != 1; then
4721 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4722 fi
4723
4724 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4725 echo "$ac_t""yes" 1>&6
4726 else
4727 echo "$ac_t""no" 1>&6
4728 fi
4729
4730
4731 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
4732echo "configure:4733: checking for --enable-protocol_file" >&5
4733 no_cache=0
4734 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4735if test "${enable_protocol_file+set}" = set; then
4736 enableval="$enable_protocol_file"
4737
4738 if test "$enableval" = yes; then
4739 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4740 else
4741 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4742 fi
4743
4744else
4745
4746 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4747 if test "x$LINE" != x ; then
4748 eval "DEFAULT_$LINE"
4749 else
4750 no_cache=1
4751 fi
4752
4753 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4754
4755fi
4756
4757
4758 eval "$ac_cv_use_protocol_file"
4759 if test "$no_cache" != 1; then
4760 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4761 fi
4762
4763 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4764 echo "$ac_t""yes" 1>&6
4765 else
4766 echo "$ac_t""no" 1>&6
4767 fi
4768
4769
4770
4771
4772
4773 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4774echo "configure:4775: checking for --enable-threads" >&5
4775 no_cache=0
4776 # Check whether --enable-threads or --disable-threads was given.
4777if test "${enable_threads+set}" = set; then
4778 enableval="$enable_threads"
4779
4780 if test "$enableval" = yes; then
4781 ac_cv_use_threads='wxUSE_THREADS=yes'
4782 else
4783 ac_cv_use_threads='wxUSE_THREADS=no'
4784 fi
4785
4786else
4787
4788 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4789 if test "x$LINE" != x ; then
4790 eval "DEFAULT_$LINE"
4791 else
4792 no_cache=1
4793 fi
4794
4795 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4796
4797fi
4798
4799
4800 eval "$ac_cv_use_threads"
4801 if test "$no_cache" != 1; then
4802 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4803 fi
4804
4805 if test "$wxUSE_THREADS" = yes; then
4806 echo "$ac_t""yes" 1>&6
4807 else
4808 echo "$ac_t""no" 1>&6
4809 fi
4810
4811
4812if test "$wxUSE_GUI" = "yes"; then
4813
4814
4815
4816 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4817echo "configure:4818: checking for --enable-docview" >&5
4818 no_cache=0
4819 # Check whether --enable-docview or --disable-docview was given.
4820if test "${enable_docview+set}" = set; then
4821 enableval="$enable_docview"
4822
4823 if test "$enableval" = yes; then
4824 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4825 else
4826 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4827 fi
4828
4829else
4830
4831 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4832 if test "x$LINE" != x ; then
4833 eval "DEFAULT_$LINE"
4834 else
4835 no_cache=1
4836 fi
4837
4838 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4839
4840fi
4841
4842
4843 eval "$ac_cv_use_docview"
4844 if test "$no_cache" != 1; then
4845 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4846 fi
4847
4848 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4849 echo "$ac_t""yes" 1>&6
4850 else
4851 echo "$ac_t""no" 1>&6
4852 fi
4853
4854
4855 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4856echo "configure:4857: checking for --enable-help" >&5
4857 no_cache=0
4858 # Check whether --enable-help or --disable-help was given.
4859if test "${enable_help+set}" = set; then
4860 enableval="$enable_help"
4861
4862 if test "$enableval" = yes; then
4863 ac_cv_use_help='wxUSE_HELP=yes'
4864 else
4865 ac_cv_use_help='wxUSE_HELP=no'
4866 fi
4867
4868else
4869
4870 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4871 if test "x$LINE" != x ; then
4872 eval "DEFAULT_$LINE"
4873 else
4874 no_cache=1
4875 fi
4876
4877 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4878
4879fi
4880
4881
4882 eval "$ac_cv_use_help"
4883 if test "$no_cache" != 1; then
4884 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4885 fi
4886
4887 if test "$wxUSE_HELP" = yes; then
4888 echo "$ac_t""yes" 1>&6
4889 else
4890 echo "$ac_t""no" 1>&6
4891 fi
4892
4893
4894 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4895echo "configure:4896: checking for --enable-mshtmlhelp" >&5
4896 no_cache=0
4897 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4898if test "${enable_mshtmlhelp+set}" = set; then
4899 enableval="$enable_mshtmlhelp"
4900
4901 if test "$enableval" = yes; then
4902 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4903 else
4904 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4905 fi
4906
4907else
4908
4909 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4910 if test "x$LINE" != x ; then
4911 eval "DEFAULT_$LINE"
4912 else
4913 no_cache=1
4914 fi
4915
4916 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4917
4918fi
4919
4920
4921 eval "$ac_cv_use_mshtmlhelp"
4922 if test "$no_cache" != 1; then
4923 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4924 fi
4925
4926 if test "$wxUSE_MS_HTML_HELP" = yes; then
4927 echo "$ac_t""yes" 1>&6
4928 else
4929 echo "$ac_t""no" 1>&6
4930 fi
4931
4932
4933 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4934echo "configure:4935: checking for --enable-html" >&5
4935 no_cache=0
4936 # Check whether --enable-html or --disable-html was given.
4937if test "${enable_html+set}" = set; then
4938 enableval="$enable_html"
4939
4940 if test "$enableval" = yes; then
4941 ac_cv_use_html='wxUSE_HTML=yes'
4942 else
4943 ac_cv_use_html='wxUSE_HTML=no'
4944 fi
4945
4946else
4947
4948 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4949 if test "x$LINE" != x ; then
4950 eval "DEFAULT_$LINE"
4951 else
4952 no_cache=1
4953 fi
4954
4955 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4956
4957fi
4958
4959
4960 eval "$ac_cv_use_html"
4961 if test "$no_cache" != 1; then
4962 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4963 fi
4964
4965 if test "$wxUSE_HTML" = yes; then
4966 echo "$ac_t""yes" 1>&6
4967 else
4968 echo "$ac_t""no" 1>&6
4969 fi
4970
4971
4972 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4973echo "configure:4974: checking for --enable-htmlhelp" >&5
4974 no_cache=0
4975 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4976if test "${enable_htmlhelp+set}" = set; then
4977 enableval="$enable_htmlhelp"
4978
4979 if test "$enableval" = yes; then
4980 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4981 else
4982 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4983 fi
4984
4985else
4986
4987 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4988 if test "x$LINE" != x ; then
4989 eval "DEFAULT_$LINE"
4990 else
4991 no_cache=1
4992 fi
4993
4994 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4995
4996fi
4997
4998
4999 eval "$ac_cv_use_htmlhelp"
5000 if test "$no_cache" != 1; then
5001 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5002 fi
5003
5004 if test "$wxUSE_WXHTML_HELP" = yes; then
5005 echo "$ac_t""yes" 1>&6
5006 else
5007 echo "$ac_t""no" 1>&6
5008 fi
5009
5010
5011 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
5012echo "configure:5013: checking for --enable-constraints" >&5
5013 no_cache=0
5014 # Check whether --enable-constraints or --disable-constraints was given.
5015if test "${enable_constraints+set}" = set; then
5016 enableval="$enable_constraints"
5017
5018 if test "$enableval" = yes; then
5019 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5020 else
5021 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5022 fi
5023
5024else
5025
5026 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5027 if test "x$LINE" != x ; then
5028 eval "DEFAULT_$LINE"
5029 else
5030 no_cache=1
5031 fi
5032
5033 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5034
5035fi
5036
5037
5038 eval "$ac_cv_use_constraints"
5039 if test "$no_cache" != 1; then
5040 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5041 fi
5042
5043 if test "$wxUSE_CONSTRAINTS" = yes; then
5044 echo "$ac_t""yes" 1>&6
5045 else
5046 echo "$ac_t""no" 1>&6
5047 fi
5048
5049
5050 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
5051echo "configure:5052: checking for --enable-printarch" >&5
5052 no_cache=0
5053 # Check whether --enable-printarch or --disable-printarch was given.
5054if test "${enable_printarch+set}" = set; then
5055 enableval="$enable_printarch"
5056
5057 if test "$enableval" = yes; then
5058 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5059 else
5060 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5061 fi
5062
5063else
5064
5065 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5066 if test "x$LINE" != x ; then
5067 eval "DEFAULT_$LINE"
5068 else
5069 no_cache=1
5070 fi
5071
5072 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5073
5074fi
5075
5076
5077 eval "$ac_cv_use_printarch"
5078 if test "$no_cache" != 1; then
5079 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5080 fi
5081
5082 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5083 echo "$ac_t""yes" 1>&6
5084 else
5085 echo "$ac_t""no" 1>&6
5086 fi
5087
5088
5089 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
5090echo "configure:5091: checking for --enable-mdi" >&5
5091 no_cache=0
5092 # Check whether --enable-mdi or --disable-mdi was given.
5093if test "${enable_mdi+set}" = set; then
5094 enableval="$enable_mdi"
5095
5096 if test "$enableval" = yes; then
5097 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5098 else
5099 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5100 fi
5101
5102else
5103
5104 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5105 if test "x$LINE" != x ; then
5106 eval "DEFAULT_$LINE"
5107 else
5108 no_cache=1
5109 fi
5110
5111 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5112
5113fi
5114
5115
5116 eval "$ac_cv_use_mdi"
5117 if test "$no_cache" != 1; then
5118 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5119 fi
5120
5121 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5122 echo "$ac_t""yes" 1>&6
5123 else
5124 echo "$ac_t""no" 1>&6
5125 fi
5126
5127
5128 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
5129echo "configure:5130: checking for --enable-loggui" >&5
5130 no_cache=0
5131 # Check whether --enable-loggui or --disable-loggui was given.
5132if test "${enable_loggui+set}" = set; then
5133 enableval="$enable_loggui"
5134
5135 if test "$enableval" = yes; then
5136 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5137 else
5138 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5139 fi
5140
5141else
5142
5143 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5144 if test "x$LINE" != x ; then
5145 eval "DEFAULT_$LINE"
5146 else
5147 no_cache=1
5148 fi
5149
5150 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5151
5152fi
5153
5154
5155 eval "$ac_cv_use_loggui"
5156 if test "$no_cache" != 1; then
5157 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5158 fi
5159
5160 if test "$wxUSE_LOGGUI" = yes; then
5161 echo "$ac_t""yes" 1>&6
5162 else
5163 echo "$ac_t""no" 1>&6
5164 fi
5165
5166
5167 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
5168echo "configure:5169: checking for --enable-logwin" >&5
5169 no_cache=0
5170 # Check whether --enable-logwin or --disable-logwin was given.
5171if test "${enable_logwin+set}" = set; then
5172 enableval="$enable_logwin"
5173
5174 if test "$enableval" = yes; then
5175 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5176 else
5177 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5178 fi
5179
5180else
5181
5182 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5183 if test "x$LINE" != x ; then
5184 eval "DEFAULT_$LINE"
5185 else
5186 no_cache=1
5187 fi
5188
5189 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5190
5191fi
5192
5193
5194 eval "$ac_cv_use_logwin"
5195 if test "$no_cache" != 1; then
5196 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5197 fi
5198
5199 if test "$wxUSE_LOGWINDOW" = yes; then
5200 echo "$ac_t""yes" 1>&6
5201 else
5202 echo "$ac_t""no" 1>&6
5203 fi
5204
5205
5206 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
5207echo "configure:5208: checking for --enable-logdialog" >&5
5208 no_cache=0
5209 # Check whether --enable-logdialog or --disable-logdialog was given.
5210if test "${enable_logdialog+set}" = set; then
5211 enableval="$enable_logdialog"
5212
5213 if test "$enableval" = yes; then
5214 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5215 else
5216 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5217 fi
5218
5219else
5220
5221 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5222 if test "x$LINE" != x ; then
5223 eval "DEFAULT_$LINE"
5224 else
5225 no_cache=1
5226 fi
5227
5228 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5229
5230fi
5231
5232
5233 eval "$ac_cv_use_logdialog"
5234 if test "$no_cache" != 1; then
5235 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5236 fi
5237
5238 if test "$wxUSE_LOGDIALOG" = yes; then
5239 echo "$ac_t""yes" 1>&6
5240 else
5241 echo "$ac_t""no" 1>&6
5242 fi
5243
5244
5245
5246 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
5247echo "configure:5248: checking for --enable-postscript" >&5
5248 no_cache=0
5249 # Check whether --enable-postscript or --disable-postscript was given.
5250if test "${enable_postscript+set}" = set; then
5251 enableval="$enable_postscript"
5252
5253 if test "$enableval" = yes; then
5254 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5255 else
5256 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5257 fi
5258
5259else
5260
5261 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5262 if test "x$LINE" != x ; then
5263 eval "DEFAULT_$LINE"
5264 else
5265 no_cache=1
5266 fi
5267
5268 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5269
5270fi
5271
5272
5273 eval "$ac_cv_use_postscript"
5274 if test "$no_cache" != 1; then
5275 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5276 fi
5277
5278 if test "$wxUSE_POSTSCRIPT" = yes; then
5279 echo "$ac_t""yes" 1>&6
5280 else
5281 echo "$ac_t""no" 1>&6
5282 fi
5283
5284
5285
5286
5287
5288 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
5289echo "configure:5290: checking for --enable-prologio" >&5
5290 no_cache=0
5291 # Check whether --enable-prologio or --disable-prologio was given.
5292if test "${enable_prologio+set}" = set; then
5293 enableval="$enable_prologio"
5294
5295 if test "$enableval" = yes; then
5296 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5297 else
5298 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5299 fi
5300
5301else
5302
5303 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5304 if test "x$LINE" != x ; then
5305 eval "DEFAULT_$LINE"
5306 else
5307 no_cache=1
5308 fi
5309
5310 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5311
5312fi
5313
5314
5315 eval "$ac_cv_use_prologio"
5316 if test "$no_cache" != 1; then
5317 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5318 fi
5319
5320 if test "$wxUSE_PROLOGIO" = yes; then
5321 echo "$ac_t""yes" 1>&6
5322 else
5323 echo "$ac_t""no" 1>&6
5324 fi
5325
5326
5327 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
5328echo "configure:5329: checking for --enable-resources" >&5
5329 no_cache=0
5330 # Check whether --enable-resources or --disable-resources was given.
5331if test "${enable_resources+set}" = set; then
5332 enableval="$enable_resources"
5333
5334 if test "$enableval" = yes; then
5335 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5336 else
5337 ac_cv_use_resources='wxUSE_RESOURCES=no'
5338 fi
5339
5340else
5341
5342 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5343 if test "x$LINE" != x ; then
5344 eval "DEFAULT_$LINE"
5345 else
5346 no_cache=1
5347 fi
5348
5349 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5350
5351fi
5352
5353
5354 eval "$ac_cv_use_resources"
5355 if test "$no_cache" != 1; then
5356 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5357 fi
5358
5359 if test "$wxUSE_RESOURCES" = yes; then
5360 echo "$ac_t""yes" 1>&6
5361 else
5362 echo "$ac_t""no" 1>&6
5363 fi
5364
5365
5366
5367 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
5368echo "configure:5369: checking for --enable-xresources" >&5
5369 no_cache=0
5370 # Check whether --enable-xresources or --disable-xresources was given.
5371if test "${enable_xresources+set}" = set; then
5372 enableval="$enable_xresources"
5373
5374 if test "$enableval" = yes; then
5375 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5376 else
5377 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5378 fi
5379
5380else
5381
5382 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5383 if test "x$LINE" != x ; then
5384 eval "DEFAULT_$LINE"
5385 else
5386 no_cache=1
5387 fi
5388
5389 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5390
5391fi
5392
5393
5394 eval "$ac_cv_use_xresources"
5395 if test "$no_cache" != 1; then
5396 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5397 fi
5398
5399 if test "$wxUSE_X_RESOURCES" = yes; then
5400 echo "$ac_t""yes" 1>&6
5401 else
5402 echo "$ac_t""no" 1>&6
5403 fi
5404
5405
5406
5407
5408 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
5409echo "configure:5410: checking for --enable-clipboard" >&5
5410 no_cache=0
5411 # Check whether --enable-clipboard or --disable-clipboard was given.
5412if test "${enable_clipboard+set}" = set; then
5413 enableval="$enable_clipboard"
5414
5415 if test "$enableval" = yes; then
5416 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5417 else
5418 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5419 fi
5420
5421else
5422
5423 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5424 if test "x$LINE" != x ; then
5425 eval "DEFAULT_$LINE"
5426 else
5427 no_cache=1
5428 fi
5429
5430 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5431
5432fi
5433
5434
5435 eval "$ac_cv_use_clipboard"
5436 if test "$no_cache" != 1; then
5437 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5438 fi
5439
5440 if test "$wxUSE_CLIPBOARD" = yes; then
5441 echo "$ac_t""yes" 1>&6
5442 else
5443 echo "$ac_t""no" 1>&6
5444 fi
5445
5446
5447 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
5448echo "configure:5449: checking for --enable-dnd" >&5
5449 no_cache=0
5450 # Check whether --enable-dnd or --disable-dnd was given.
5451if test "${enable_dnd+set}" = set; then
5452 enableval="$enable_dnd"
5453
5454 if test "$enableval" = yes; then
5455 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5456 else
5457 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5458 fi
5459
5460else
5461
5462 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5463 if test "x$LINE" != x ; then
5464 eval "DEFAULT_$LINE"
5465 else
5466 no_cache=1
5467 fi
5468
5469 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5470
5471fi
5472
5473
5474 eval "$ac_cv_use_dnd"
5475 if test "$no_cache" != 1; then
5476 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5477 fi
5478
5479 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5480 echo "$ac_t""yes" 1>&6
5481 else
5482 echo "$ac_t""no" 1>&6
5483 fi
5484
5485
5486 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
5487echo "configure:5488: checking for --enable-metafile" >&5
5488 no_cache=0
5489 # Check whether --enable-metafile or --disable-metafile was given.
5490if test "${enable_metafile+set}" = set; then
5491 enableval="$enable_metafile"
5492
5493 if test "$enableval" = yes; then
5494 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5495 else
5496 ac_cv_use_metafile='wxUSE_METAFILE=no'
5497 fi
5498
5499else
5500
5501 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5502 if test "x$LINE" != x ; then
5503 eval "DEFAULT_$LINE"
5504 else
5505 no_cache=1
5506 fi
5507
5508 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5509
5510fi
5511
5512
5513 eval "$ac_cv_use_metafile"
5514 if test "$no_cache" != 1; then
5515 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5516 fi
5517
5518 if test "$wxUSE_METAFILE" = yes; then
5519 echo "$ac_t""yes" 1>&6
5520 else
5521 echo "$ac_t""no" 1>&6
5522 fi
5523
5524
5525
5526 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5527echo "configure:5528: checking for --enable-treelayout" >&5
5528 no_cache=0
5529 # Check whether --enable-treelayout or --disable-treelayout was given.
5530if test "${enable_treelayout+set}" = set; then
5531 enableval="$enable_treelayout"
5532
5533 if test "$enableval" = yes; then
5534 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5535 else
5536 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5537 fi
5538
5539else
5540
5541 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5542 if test "x$LINE" != x ; then
5543 eval "DEFAULT_$LINE"
5544 else
5545 no_cache=1
5546 fi
5547
5548 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5549
5550fi
5551
5552
5553 eval "$ac_cv_use_treelayout"
5554 if test "$no_cache" != 1; then
5555 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5556 fi
5557
5558 if test "$wxUSE_TREELAYOUT" = yes; then
5559 echo "$ac_t""yes" 1>&6
5560 else
5561 echo "$ac_t""no" 1>&6
5562 fi
5563
5564
5565
5566
5567 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5568echo "configure:5569: checking for --enable-controls" >&5
5569 no_cache=0
5570 # Check whether --enable-controls or --disable-controls was given.
5571if test "${enable_controls+set}" = set; then
5572 enableval="$enable_controls"
5573
5574 if test "$enableval" = yes; then
5575 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5576 else
5577 ac_cv_use_controls='wxUSE_CONTROLS=no'
5578 fi
5579
5580else
5581
5582 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5583 if test "x$LINE" != x ; then
5584 eval "DEFAULT_$LINE"
5585 else
5586 no_cache=1
5587 fi
5588
5589 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5590
5591fi
5592
5593
5594 eval "$ac_cv_use_controls"
5595 if test "$no_cache" != 1; then
5596 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5597 fi
5598
5599 if test "$wxUSE_CONTROLS" = yes; then
5600 echo "$ac_t""yes" 1>&6
5601 else
5602 echo "$ac_t""no" 1>&6
5603 fi
5604
5605
5606if test "$wxUSE_CONTROLS" = "yes"; then
5607 DEFAULT_wxUSE_ACCEL=yes
5608 DEFAULT_wxUSE_BMPBUTTON=yes
5609 DEFAULT_wxUSE_BUTTON=yes
5610 DEFAULT_wxUSE_CALCTRL=no
5611 DEFAULT_wxUSE_CARET=yes
5612 DEFAULT_wxUSE_COMBOBOX=yes
5613 DEFAULT_wxUSE_CHECKBOX=yes
5614 DEFAULT_wxUSE_CHECKLISTBOX=yes
5615 DEFAULT_wxUSE_CHOICE=yes
5616 DEFAULT_wxUSE_GAUGE=yes
5617 DEFAULT_wxUSE_GRID=yes
5618 DEFAULT_wxUSE_NEW_GRID=yes
5619 DEFAULT_wxUSE_IMAGLIST=yes
5620 DEFAULT_wxUSE_LISTBOX=yes
5621 DEFAULT_wxUSE_LISTCTRL=yes
5622 DEFAULT_wxUSE_NOTEBOOK=yes
5623 DEFAULT_wxUSE_PROPSHEET=yes
5624 DEFAULT_wxUSE_RADIOBOX=yes
5625 DEFAULT_wxUSE_RADIOBTN=yes
5626 DEFAULT_wxUSE_SASH=yes
5627 DEFAULT_wxUSE_SCROLLBAR=yes
5628 DEFAULT_wxUSE_SLIDER=yes
5629 DEFAULT_wxUSE_SPINBTN=yes
5630 DEFAULT_wxUSE_SPINCTRL=yes
5631 DEFAULT_wxUSE_SPLITTER=yes
5632 DEFAULT_wxUSE_STATBMP=yes
5633 DEFAULT_wxUSE_STATBOX=yes
5634 DEFAULT_wxUSE_STATLINE=yes
5635 DEFAULT_wxUSE_STATUSBAR=yes
5636 DEFAULT_wxUSE_TAB_DIALOG=yes
5637 DEFAULT_wxUSE_TOGGLEBTN=yes
5638 DEFAULT_wxUSE_TOOLBAR=yes
5639 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5640 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5641 DEFAULT_wxUSE_TOOLTIPS=yes
5642 DEFAULT_wxUSE_TREECTRL=yes
5643 DEFAULT_wxUSE_POPUPWIN=yes
5644 DEFAULT_wxUSE_TIPWINDOW=yes
5645elif test "$wxUSE_CONTROLS" = "no"; then
5646 DEFAULT_wxUSE_ACCEL=no
5647 DEFAULT_wxUSE_BMPBUTTON=no
5648 DEFAULT_wxUSE_BUTTON=no
5649 DEFAULT_wxUSE_CALCTRL=no
5650 DEFAULT_wxUSE_CARET=no
5651 DEFAULT_wxUSE_COMBOBOX=no
5652 DEFAULT_wxUSE_CHECKBOX=no
5653 DEFAULT_wxUSE_CHECKLISTBOX=no
5654 DEFAULT_wxUSE_CHOICE=no
5655 DEFAULT_wxUSE_GAUGE=no
5656 DEFAULT_wxUSE_GRID=no
5657 DEFAULT_wxUSE_NEW_GRID=no
5658 DEFAULT_wxUSE_IMAGLIST=no
5659 DEFAULT_wxUSE_LISTBOX=no
5660 DEFAULT_wxUSE_LISTCTRL=no
5661 DEFAULT_wxUSE_NOTEBOOK=no
5662 DEFAULT_wxUSE_PROPSHEET=no
5663 DEFAULT_wxUSE_RADIOBOX=no
5664 DEFAULT_wxUSE_RADIOBTN=no
5665 DEFAULT_wxUSE_SASH=no
5666 DEFAULT_wxUSE_SCROLLBAR=no
5667 DEFAULT_wxUSE_SLIDER=no
5668 DEFAULT_wxUSE_SPINBTN=no
5669 DEFAULT_wxUSE_SPINCTRL=no
5670 DEFAULT_wxUSE_SPLITTER=no
5671 DEFAULT_wxUSE_STATBMP=no
5672 DEFAULT_wxUSE_STATBOX=no
5673 DEFAULT_wxUSE_STATLINE=no
5674 DEFAULT_wxUSE_STATUSBAR=no
5675 DEFAULT_wxUSE_TAB_DIALOG=no
5676 DEFAULT_wxUSE_TOGGLEBTN=no
5677 DEFAULT_wxUSE_TOOLBAR=no
5678 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5679 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5680 DEFAULT_wxUSE_TOOLTIPS=no
5681 DEFAULT_wxUSE_TREECTRL=no
5682 DEFAULT_wxUSE_POPUPWIN=no
5683 DEFAULT_wxUSE_TIPWINDOW=no
5684fi
5685
5686
5687 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5688echo "configure:5689: checking for --enable-accel" >&5
5689 no_cache=0
5690 # Check whether --enable-accel or --disable-accel was given.
5691if test "${enable_accel+set}" = set; then
5692 enableval="$enable_accel"
5693
5694 if test "$enableval" = yes; then
5695 ac_cv_use_accel='wxUSE_ACCEL=yes'
5696 else
5697 ac_cv_use_accel='wxUSE_ACCEL=no'
5698 fi
5699
5700else
5701
5702 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5703 if test "x$LINE" != x ; then
5704 eval "DEFAULT_$LINE"
5705 else
5706 no_cache=1
5707 fi
5708
5709 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5710
5711fi
5712
5713
5714 eval "$ac_cv_use_accel"
5715 if test "$no_cache" != 1; then
5716 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5717 fi
5718
5719 if test "$wxUSE_ACCEL" = yes; then
5720 echo "$ac_t""yes" 1>&6
5721 else
5722 echo "$ac_t""no" 1>&6
5723 fi
5724
5725
5726 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5727echo "configure:5728: checking for --enable-button" >&5
5728 no_cache=0
5729 # Check whether --enable-button or --disable-button was given.
5730if test "${enable_button+set}" = set; then
5731 enableval="$enable_button"
5732
5733 if test "$enableval" = yes; then
5734 ac_cv_use_button='wxUSE_BUTTON=yes'
5735 else
5736 ac_cv_use_button='wxUSE_BUTTON=no'
5737 fi
5738
5739else
5740
5741 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5742 if test "x$LINE" != x ; then
5743 eval "DEFAULT_$LINE"
5744 else
5745 no_cache=1
5746 fi
5747
5748 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5749
5750fi
5751
5752
5753 eval "$ac_cv_use_button"
5754 if test "$no_cache" != 1; then
5755 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5756 fi
5757
5758 if test "$wxUSE_BUTTON" = yes; then
5759 echo "$ac_t""yes" 1>&6
5760 else
5761 echo "$ac_t""no" 1>&6
5762 fi
5763
5764
5765 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5766echo "configure:5767: checking for --enable-bmpbutton" >&5
5767 no_cache=0
5768 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5769if test "${enable_bmpbutton+set}" = set; then
5770 enableval="$enable_bmpbutton"
5771
5772 if test "$enableval" = yes; then
5773 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5774 else
5775 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5776 fi
5777
5778else
5779
5780 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5781 if test "x$LINE" != x ; then
5782 eval "DEFAULT_$LINE"
5783 else
5784 no_cache=1
5785 fi
5786
5787 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5788
5789fi
5790
5791
5792 eval "$ac_cv_use_bmpbutton"
5793 if test "$no_cache" != 1; then
5794 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5795 fi
5796
5797 if test "$wxUSE_BMPBUTTON" = yes; then
5798 echo "$ac_t""yes" 1>&6
5799 else
5800 echo "$ac_t""no" 1>&6
5801 fi
5802
5803
5804 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5805echo "configure:5806: checking for --enable-calendar" >&5
5806 no_cache=0
5807 # Check whether --enable-calendar or --disable-calendar was given.
5808if test "${enable_calendar+set}" = set; then
5809 enableval="$enable_calendar"
5810
5811 if test "$enableval" = yes; then
5812 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5813 else
5814 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5815 fi
5816
5817else
5818
5819 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5820 if test "x$LINE" != x ; then
5821 eval "DEFAULT_$LINE"
5822 else
5823 no_cache=1
5824 fi
5825
5826 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5827
5828fi
5829
5830
5831 eval "$ac_cv_use_calendar"
5832 if test "$no_cache" != 1; then
5833 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5834 fi
5835
5836 if test "$wxUSE_CALCTRL" = yes; then
5837 echo "$ac_t""yes" 1>&6
5838 else
5839 echo "$ac_t""no" 1>&6
5840 fi
5841
5842
5843 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5844echo "configure:5845: checking for --enable-caret" >&5
5845 no_cache=0
5846 # Check whether --enable-caret or --disable-caret was given.
5847if test "${enable_caret+set}" = set; then
5848 enableval="$enable_caret"
5849
5850 if test "$enableval" = yes; then
5851 ac_cv_use_caret='wxUSE_CARET=yes'
5852 else
5853 ac_cv_use_caret='wxUSE_CARET=no'
5854 fi
5855
5856else
5857
5858 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5859 if test "x$LINE" != x ; then
5860 eval "DEFAULT_$LINE"
5861 else
5862 no_cache=1
5863 fi
5864
5865 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5866
5867fi
5868
5869
5870 eval "$ac_cv_use_caret"
5871 if test "$no_cache" != 1; then
5872 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5873 fi
5874
5875 if test "$wxUSE_CARET" = yes; then
5876 echo "$ac_t""yes" 1>&6
5877 else
5878 echo "$ac_t""no" 1>&6
5879 fi
5880
5881
5882 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5883echo "configure:5884: checking for --enable-checkbox" >&5
5884 no_cache=0
5885 # Check whether --enable-checkbox or --disable-checkbox was given.
5886if test "${enable_checkbox+set}" = set; then
5887 enableval="$enable_checkbox"
5888
5889 if test "$enableval" = yes; then
5890 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5891 else
5892 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5893 fi
5894
5895else
5896
5897 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5898 if test "x$LINE" != x ; then
5899 eval "DEFAULT_$LINE"
5900 else
5901 no_cache=1
5902 fi
5903
5904 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5905
5906fi
5907
5908
5909 eval "$ac_cv_use_checkbox"
5910 if test "$no_cache" != 1; then
5911 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5912 fi
5913
5914 if test "$wxUSE_CHECKBOX" = yes; then
5915 echo "$ac_t""yes" 1>&6
5916 else
5917 echo "$ac_t""no" 1>&6
5918 fi
5919
5920
5921 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5922echo "configure:5923: checking for --enable-checklst" >&5
5923 no_cache=0
5924 # Check whether --enable-checklst or --disable-checklst was given.
5925if test "${enable_checklst+set}" = set; then
5926 enableval="$enable_checklst"
5927
5928 if test "$enableval" = yes; then
5929 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5930 else
5931 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5932 fi
5933
5934else
5935
5936 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5937 if test "x$LINE" != x ; then
5938 eval "DEFAULT_$LINE"
5939 else
5940 no_cache=1
5941 fi
5942
5943 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5944
5945fi
5946
5947
5948 eval "$ac_cv_use_checklst"
5949 if test "$no_cache" != 1; then
5950 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5951 fi
5952
5953 if test "$wxUSE_CHECKLST" = yes; then
5954 echo "$ac_t""yes" 1>&6
5955 else
5956 echo "$ac_t""no" 1>&6
5957 fi
5958
5959
5960 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5961echo "configure:5962: checking for --enable-choice" >&5
5962 no_cache=0
5963 # Check whether --enable-choice or --disable-choice was given.
5964if test "${enable_choice+set}" = set; then
5965 enableval="$enable_choice"
5966
5967 if test "$enableval" = yes; then
5968 ac_cv_use_choice='wxUSE_CHOICE=yes'
5969 else
5970 ac_cv_use_choice='wxUSE_CHOICE=no'
5971 fi
5972
5973else
5974
5975 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5976 if test "x$LINE" != x ; then
5977 eval "DEFAULT_$LINE"
5978 else
5979 no_cache=1
5980 fi
5981
5982 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5983
5984fi
5985
5986
5987 eval "$ac_cv_use_choice"
5988 if test "$no_cache" != 1; then
5989 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5990 fi
5991
5992 if test "$wxUSE_CHOICE" = yes; then
5993 echo "$ac_t""yes" 1>&6
5994 else
5995 echo "$ac_t""no" 1>&6
5996 fi
5997
5998
5999 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
6000echo "configure:6001: checking for --enable-combobox" >&5
6001 no_cache=0
6002 # Check whether --enable-combobox or --disable-combobox was given.
6003if test "${enable_combobox+set}" = set; then
6004 enableval="$enable_combobox"
6005
6006 if test "$enableval" = yes; then
6007 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6008 else
6009 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6010 fi
6011
6012else
6013
6014 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6015 if test "x$LINE" != x ; then
6016 eval "DEFAULT_$LINE"
6017 else
6018 no_cache=1
6019 fi
6020
6021 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6022
6023fi
6024
6025
6026 eval "$ac_cv_use_combobox"
6027 if test "$no_cache" != 1; then
6028 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6029 fi
6030
6031 if test "$wxUSE_COMBOBOX" = yes; then
6032 echo "$ac_t""yes" 1>&6
6033 else
6034 echo "$ac_t""no" 1>&6
6035 fi
6036
6037
6038 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
6039echo "configure:6040: checking for --enable-gauge" >&5
6040 no_cache=0
6041 # Check whether --enable-gauge or --disable-gauge was given.
6042if test "${enable_gauge+set}" = set; then
6043 enableval="$enable_gauge"
6044
6045 if test "$enableval" = yes; then
6046 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6047 else
6048 ac_cv_use_gauge='wxUSE_GAUGE=no'
6049 fi
6050
6051else
6052
6053 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6054 if test "x$LINE" != x ; then
6055 eval "DEFAULT_$LINE"
6056 else
6057 no_cache=1
6058 fi
6059
6060 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6061
6062fi
6063
6064
6065 eval "$ac_cv_use_gauge"
6066 if test "$no_cache" != 1; then
6067 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6068 fi
6069
6070 if test "$wxUSE_GAUGE" = yes; then
6071 echo "$ac_t""yes" 1>&6
6072 else
6073 echo "$ac_t""no" 1>&6
6074 fi
6075
6076
6077 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
6078echo "configure:6079: checking for --enable-grid" >&5
6079 no_cache=0
6080 # Check whether --enable-grid or --disable-grid was given.
6081if test "${enable_grid+set}" = set; then
6082 enableval="$enable_grid"
6083
6084 if test "$enableval" = yes; then
6085 ac_cv_use_grid='wxUSE_GRID=yes'
6086 else
6087 ac_cv_use_grid='wxUSE_GRID=no'
6088 fi
6089
6090else
6091
6092 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6093 if test "x$LINE" != x ; then
6094 eval "DEFAULT_$LINE"
6095 else
6096 no_cache=1
6097 fi
6098
6099 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6100
6101fi
6102
6103
6104 eval "$ac_cv_use_grid"
6105 if test "$no_cache" != 1; then
6106 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6107 fi
6108
6109 if test "$wxUSE_GRID" = yes; then
6110 echo "$ac_t""yes" 1>&6
6111 else
6112 echo "$ac_t""no" 1>&6
6113 fi
6114
6115
6116 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
6117echo "configure:6118: checking for --enable-newgrid" >&5
6118 no_cache=0
6119 # Check whether --enable-newgrid or --disable-newgrid was given.
6120if test "${enable_newgrid+set}" = set; then
6121 enableval="$enable_newgrid"
6122
6123 if test "$enableval" = yes; then
6124 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6125 else
6126 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6127 fi
6128
6129else
6130
6131 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6132 if test "x$LINE" != x ; then
6133 eval "DEFAULT_$LINE"
6134 else
6135 no_cache=1
6136 fi
6137
6138 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6139
6140fi
6141
6142
6143 eval "$ac_cv_use_newgrid"
6144 if test "$no_cache" != 1; then
6145 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6146 fi
6147
6148 if test "$wxUSE_NEW_GRID" = yes; then
6149 echo "$ac_t""yes" 1>&6
6150 else
6151 echo "$ac_t""no" 1>&6
6152 fi
6153
6154
6155 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
6156echo "configure:6157: checking for --enable-imaglist" >&5
6157 no_cache=0
6158 # Check whether --enable-imaglist or --disable-imaglist was given.
6159if test "${enable_imaglist+set}" = set; then
6160 enableval="$enable_imaglist"
6161
6162 if test "$enableval" = yes; then
6163 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6164 else
6165 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6166 fi
6167
6168else
6169
6170 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6171 if test "x$LINE" != x ; then
6172 eval "DEFAULT_$LINE"
6173 else
6174 no_cache=1
6175 fi
6176
6177 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6178
6179fi
6180
6181
6182 eval "$ac_cv_use_imaglist"
6183 if test "$no_cache" != 1; then
6184 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6185 fi
6186
6187 if test "$wxUSE_IMAGLIST" = yes; then
6188 echo "$ac_t""yes" 1>&6
6189 else
6190 echo "$ac_t""no" 1>&6
6191 fi
6192
6193
6194 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
6195echo "configure:6196: checking for --enable-listbox" >&5
6196 no_cache=0
6197 # Check whether --enable-listbox or --disable-listbox was given.
6198if test "${enable_listbox+set}" = set; then
6199 enableval="$enable_listbox"
6200
6201 if test "$enableval" = yes; then
6202 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6203 else
6204 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6205 fi
6206
6207else
6208
6209 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6210 if test "x$LINE" != x ; then
6211 eval "DEFAULT_$LINE"
6212 else
6213 no_cache=1
6214 fi
6215
6216 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6217
6218fi
6219
6220
6221 eval "$ac_cv_use_listbox"
6222 if test "$no_cache" != 1; then
6223 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6224 fi
6225
6226 if test "$wxUSE_LISTBOX" = yes; then
6227 echo "$ac_t""yes" 1>&6
6228 else
6229 echo "$ac_t""no" 1>&6
6230 fi
6231
6232
6233 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
6234echo "configure:6235: checking for --enable-listctrl" >&5
6235 no_cache=0
6236 # Check whether --enable-listctrl or --disable-listctrl was given.
6237if test "${enable_listctrl+set}" = set; then
6238 enableval="$enable_listctrl"
6239
6240 if test "$enableval" = yes; then
6241 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6242 else
6243 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6244 fi
6245
6246else
6247
6248 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6249 if test "x$LINE" != x ; then
6250 eval "DEFAULT_$LINE"
6251 else
6252 no_cache=1
6253 fi
6254
6255 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6256
6257fi
6258
6259
6260 eval "$ac_cv_use_listctrl"
6261 if test "$no_cache" != 1; then
6262 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6263 fi
6264
6265 if test "$wxUSE_LISTCTRL" = yes; then
6266 echo "$ac_t""yes" 1>&6
6267 else
6268 echo "$ac_t""no" 1>&6
6269 fi
6270
6271
6272 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
6273echo "configure:6274: checking for --enable-notebook" >&5
6274 no_cache=0
6275 # Check whether --enable-notebook or --disable-notebook was given.
6276if test "${enable_notebook+set}" = set; then
6277 enableval="$enable_notebook"
6278
6279 if test "$enableval" = yes; then
6280 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6281 else
6282 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6283 fi
6284
6285else
6286
6287 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6288 if test "x$LINE" != x ; then
6289 eval "DEFAULT_$LINE"
6290 else
6291 no_cache=1
6292 fi
6293
6294 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6295
6296fi
6297
6298
6299 eval "$ac_cv_use_notebook"
6300 if test "$no_cache" != 1; then
6301 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6302 fi
6303
6304 if test "$wxUSE_NOTEBOOK" = yes; then
6305 echo "$ac_t""yes" 1>&6
6306 else
6307 echo "$ac_t""no" 1>&6
6308 fi
6309
6310
6311 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
6312echo "configure:6313: checking for --enable-propsheet" >&5
6313 no_cache=0
6314 # Check whether --enable-propsheet or --disable-propsheet was given.
6315if test "${enable_propsheet+set}" = set; then
6316 enableval="$enable_propsheet"
6317
6318 if test "$enableval" = yes; then
6319 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6320 else
6321 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6322 fi
6323
6324else
6325
6326 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6327 if test "x$LINE" != x ; then
6328 eval "DEFAULT_$LINE"
6329 else
6330 no_cache=1
6331 fi
6332
6333 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6334
6335fi
6336
6337
6338 eval "$ac_cv_use_propsheet"
6339 if test "$no_cache" != 1; then
6340 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6341 fi
6342
6343 if test "$wxUSE_PROPSHEET" = yes; then
6344 echo "$ac_t""yes" 1>&6
6345 else
6346 echo "$ac_t""no" 1>&6
6347 fi
6348
6349
6350 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
6351echo "configure:6352: checking for --enable-radiobox" >&5
6352 no_cache=0
6353 # Check whether --enable-radiobox or --disable-radiobox was given.
6354if test "${enable_radiobox+set}" = set; then
6355 enableval="$enable_radiobox"
6356
6357 if test "$enableval" = yes; then
6358 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6359 else
6360 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6361 fi
6362
6363else
6364
6365 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6366 if test "x$LINE" != x ; then
6367 eval "DEFAULT_$LINE"
6368 else
6369 no_cache=1
6370 fi
6371
6372 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6373
6374fi
6375
6376
6377 eval "$ac_cv_use_radiobox"
6378 if test "$no_cache" != 1; then
6379 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6380 fi
6381
6382 if test "$wxUSE_RADIOBOX" = yes; then
6383 echo "$ac_t""yes" 1>&6
6384 else
6385 echo "$ac_t""no" 1>&6
6386 fi
6387
6388
6389 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
6390echo "configure:6391: checking for --enable-radiobtn" >&5
6391 no_cache=0
6392 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6393if test "${enable_radiobtn+set}" = set; then
6394 enableval="$enable_radiobtn"
6395
6396 if test "$enableval" = yes; then
6397 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6398 else
6399 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6400 fi
6401
6402else
6403
6404 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6405 if test "x$LINE" != x ; then
6406 eval "DEFAULT_$LINE"
6407 else
6408 no_cache=1
6409 fi
6410
6411 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6412
6413fi
6414
6415
6416 eval "$ac_cv_use_radiobtn"
6417 if test "$no_cache" != 1; then
6418 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6419 fi
6420
6421 if test "$wxUSE_RADIOBTN" = yes; then
6422 echo "$ac_t""yes" 1>&6
6423 else
6424 echo "$ac_t""no" 1>&6
6425 fi
6426
6427
6428 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
6429echo "configure:6430: checking for --enable-sash" >&5
6430 no_cache=0
6431 # Check whether --enable-sash or --disable-sash was given.
6432if test "${enable_sash+set}" = set; then
6433 enableval="$enable_sash"
6434
6435 if test "$enableval" = yes; then
6436 ac_cv_use_sash='wxUSE_SASH=yes'
6437 else
6438 ac_cv_use_sash='wxUSE_SASH=no'
6439 fi
6440
6441else
6442
6443 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6444 if test "x$LINE" != x ; then
6445 eval "DEFAULT_$LINE"
6446 else
6447 no_cache=1
6448 fi
6449
6450 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6451
6452fi
6453
6454
6455 eval "$ac_cv_use_sash"
6456 if test "$no_cache" != 1; then
6457 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6458 fi
6459
6460 if test "$wxUSE_SASH" = yes; then
6461 echo "$ac_t""yes" 1>&6
6462 else
6463 echo "$ac_t""no" 1>&6
6464 fi
6465
6466
6467 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
6468echo "configure:6469: checking for --enable-scrollbar" >&5
6469 no_cache=0
6470 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6471if test "${enable_scrollbar+set}" = set; then
6472 enableval="$enable_scrollbar"
6473
6474 if test "$enableval" = yes; then
6475 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6476 else
6477 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6478 fi
6479
6480else
6481
6482 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6483 if test "x$LINE" != x ; then
6484 eval "DEFAULT_$LINE"
6485 else
6486 no_cache=1
6487 fi
6488
6489 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6490
6491fi
6492
6493
6494 eval "$ac_cv_use_scrollbar"
6495 if test "$no_cache" != 1; then
6496 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6497 fi
6498
6499 if test "$wxUSE_SCROLLBAR" = yes; then
6500 echo "$ac_t""yes" 1>&6
6501 else
6502 echo "$ac_t""no" 1>&6
6503 fi
6504
6505
6506 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
6507echo "configure:6508: checking for --enable-slider" >&5
6508 no_cache=0
6509 # Check whether --enable-slider or --disable-slider was given.
6510if test "${enable_slider+set}" = set; then
6511 enableval="$enable_slider"
6512
6513 if test "$enableval" = yes; then
6514 ac_cv_use_slider='wxUSE_SLIDER=yes'
6515 else
6516 ac_cv_use_slider='wxUSE_SLIDER=no'
6517 fi
6518
6519else
6520
6521 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6522 if test "x$LINE" != x ; then
6523 eval "DEFAULT_$LINE"
6524 else
6525 no_cache=1
6526 fi
6527
6528 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6529
6530fi
6531
6532
6533 eval "$ac_cv_use_slider"
6534 if test "$no_cache" != 1; then
6535 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6536 fi
6537
6538 if test "$wxUSE_SLIDER" = yes; then
6539 echo "$ac_t""yes" 1>&6
6540 else
6541 echo "$ac_t""no" 1>&6
6542 fi
6543
6544
6545 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6546echo "configure:6547: checking for --enable-spinbtn" >&5
6547 no_cache=0
6548 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6549if test "${enable_spinbtn+set}" = set; then
6550 enableval="$enable_spinbtn"
6551
6552 if test "$enableval" = yes; then
6553 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6554 else
6555 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6556 fi
6557
6558else
6559
6560 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6561 if test "x$LINE" != x ; then
6562 eval "DEFAULT_$LINE"
6563 else
6564 no_cache=1
6565 fi
6566
6567 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6568
6569fi
6570
6571
6572 eval "$ac_cv_use_spinbtn"
6573 if test "$no_cache" != 1; then
6574 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6575 fi
6576
6577 if test "$wxUSE_SPINBTN" = yes; then
6578 echo "$ac_t""yes" 1>&6
6579 else
6580 echo "$ac_t""no" 1>&6
6581 fi
6582
6583
6584 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6585echo "configure:6586: checking for --enable-spinctrl" >&5
6586 no_cache=0
6587 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6588if test "${enable_spinctrl+set}" = set; then
6589 enableval="$enable_spinctrl"
6590
6591 if test "$enableval" = yes; then
6592 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6593 else
6594 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6595 fi
6596
6597else
6598
6599 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6600 if test "x$LINE" != x ; then
6601 eval "DEFAULT_$LINE"
6602 else
6603 no_cache=1
6604 fi
6605
6606 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6607
6608fi
6609
6610
6611 eval "$ac_cv_use_spinctrl"
6612 if test "$no_cache" != 1; then
6613 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6614 fi
6615
6616 if test "$wxUSE_SPINCTRL" = yes; then
6617 echo "$ac_t""yes" 1>&6
6618 else
6619 echo "$ac_t""no" 1>&6
6620 fi
6621
6622
6623 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6624echo "configure:6625: checking for --enable-splitter" >&5
6625 no_cache=0
6626 # Check whether --enable-splitter or --disable-splitter was given.
6627if test "${enable_splitter+set}" = set; then
6628 enableval="$enable_splitter"
6629
6630 if test "$enableval" = yes; then
6631 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6632 else
6633 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6634 fi
6635
6636else
6637
6638 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6639 if test "x$LINE" != x ; then
6640 eval "DEFAULT_$LINE"
6641 else
6642 no_cache=1
6643 fi
6644
6645 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6646
6647fi
6648
6649
6650 eval "$ac_cv_use_splitter"
6651 if test "$no_cache" != 1; then
6652 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6653 fi
6654
6655 if test "$wxUSE_SPLITTER" = yes; then
6656 echo "$ac_t""yes" 1>&6
6657 else
6658 echo "$ac_t""no" 1>&6
6659 fi
6660
6661
6662 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6663echo "configure:6664: checking for --enable-statbmp" >&5
6664 no_cache=0
6665 # Check whether --enable-statbmp or --disable-statbmp was given.
6666if test "${enable_statbmp+set}" = set; then
6667 enableval="$enable_statbmp"
6668
6669 if test "$enableval" = yes; then
6670 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6671 else
6672 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6673 fi
6674
6675else
6676
6677 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6678 if test "x$LINE" != x ; then
6679 eval "DEFAULT_$LINE"
6680 else
6681 no_cache=1
6682 fi
6683
6684 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6685
6686fi
6687
6688
6689 eval "$ac_cv_use_statbmp"
6690 if test "$no_cache" != 1; then
6691 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6692 fi
6693
6694 if test "$wxUSE_STATBMP" = yes; then
6695 echo "$ac_t""yes" 1>&6
6696 else
6697 echo "$ac_t""no" 1>&6
6698 fi
6699
6700
6701 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6702echo "configure:6703: checking for --enable-statbox" >&5
6703 no_cache=0
6704 # Check whether --enable-statbox or --disable-statbox was given.
6705if test "${enable_statbox+set}" = set; then
6706 enableval="$enable_statbox"
6707
6708 if test "$enableval" = yes; then
6709 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6710 else
6711 ac_cv_use_statbox='wxUSE_STATBOX=no'
6712 fi
6713
6714else
6715
6716 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6717 if test "x$LINE" != x ; then
6718 eval "DEFAULT_$LINE"
6719 else
6720 no_cache=1
6721 fi
6722
6723 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6724
6725fi
6726
6727
6728 eval "$ac_cv_use_statbox"
6729 if test "$no_cache" != 1; then
6730 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6731 fi
6732
6733 if test "$wxUSE_STATBOX" = yes; then
6734 echo "$ac_t""yes" 1>&6
6735 else
6736 echo "$ac_t""no" 1>&6
6737 fi
6738
6739
6740 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6741echo "configure:6742: checking for --enable-statline" >&5
6742 no_cache=0
6743 # Check whether --enable-statline or --disable-statline was given.
6744if test "${enable_statline+set}" = set; then
6745 enableval="$enable_statline"
6746
6747 if test "$enableval" = yes; then
6748 ac_cv_use_statline='wxUSE_STATLINE=yes'
6749 else
6750 ac_cv_use_statline='wxUSE_STATLINE=no'
6751 fi
6752
6753else
6754
6755 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6756 if test "x$LINE" != x ; then
6757 eval "DEFAULT_$LINE"
6758 else
6759 no_cache=1
6760 fi
6761
6762 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6763
6764fi
6765
6766
6767 eval "$ac_cv_use_statline"
6768 if test "$no_cache" != 1; then
6769 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6770 fi
6771
6772 if test "$wxUSE_STATLINE" = yes; then
6773 echo "$ac_t""yes" 1>&6
6774 else
6775 echo "$ac_t""no" 1>&6
6776 fi
6777
6778
6779 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6780echo "configure:6781: checking for --enable-stattext" >&5
6781 no_cache=0
6782 # Check whether --enable-stattext or --disable-stattext was given.
6783if test "${enable_stattext+set}" = set; then
6784 enableval="$enable_stattext"
6785
6786 if test "$enableval" = yes; then
6787 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6788 else
6789 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6790 fi
6791
6792else
6793
6794 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6795 if test "x$LINE" != x ; then
6796 eval "DEFAULT_$LINE"
6797 else
6798 no_cache=1
6799 fi
6800
6801 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6802
6803fi
6804
6805
6806 eval "$ac_cv_use_stattext"
6807 if test "$no_cache" != 1; then
6808 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6809 fi
6810
6811 if test "$wxUSE_STATTEXT" = yes; then
6812 echo "$ac_t""yes" 1>&6
6813 else
6814 echo "$ac_t""no" 1>&6
6815 fi
6816
6817
6818 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6819echo "configure:6820: checking for --enable-statusbar" >&5
6820 no_cache=0
6821 # Check whether --enable-statusbar or --disable-statusbar was given.
6822if test "${enable_statusbar+set}" = set; then
6823 enableval="$enable_statusbar"
6824
6825 if test "$enableval" = yes; then
6826 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6827 else
6828 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6829 fi
6830
6831else
6832
6833 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6834 if test "x$LINE" != x ; then
6835 eval "DEFAULT_$LINE"
6836 else
6837 no_cache=1
6838 fi
6839
6840 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6841
6842fi
6843
6844
6845 eval "$ac_cv_use_statusbar"
6846 if test "$no_cache" != 1; then
6847 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6848 fi
6849
6850 if test "$wxUSE_STATUSBAR" = yes; then
6851 echo "$ac_t""yes" 1>&6
6852 else
6853 echo "$ac_t""no" 1>&6
6854 fi
6855
6856
6857 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6858echo "configure:6859: checking for --enable-tabdialog" >&5
6859 no_cache=0
6860 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6861if test "${enable_tabdialog+set}" = set; then
6862 enableval="$enable_tabdialog"
6863
6864 if test "$enableval" = yes; then
6865 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6866 else
6867 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6868 fi
6869
6870else
6871
6872 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6873 if test "x$LINE" != x ; then
6874 eval "DEFAULT_$LINE"
6875 else
6876 no_cache=1
6877 fi
6878
6879 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6880
6881fi
6882
6883
6884 eval "$ac_cv_use_tabdialog"
6885 if test "$no_cache" != 1; then
6886 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6887 fi
6888
6889 if test "$wxUSE_TABDIALOG" = yes; then
6890 echo "$ac_t""yes" 1>&6
6891 else
6892 echo "$ac_t""no" 1>&6
6893 fi
6894
6895
6896 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6897echo "configure:6898: checking for --enable-textctrl" >&5
6898 no_cache=0
6899 # Check whether --enable-textctrl or --disable-textctrl was given.
6900if test "${enable_textctrl+set}" = set; then
6901 enableval="$enable_textctrl"
6902
6903 if test "$enableval" = yes; then
6904 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6905 else
6906 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6907 fi
6908
6909else
6910
6911 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6912 if test "x$LINE" != x ; then
6913 eval "DEFAULT_$LINE"
6914 else
6915 no_cache=1
6916 fi
6917
6918 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6919
6920fi
6921
6922
6923 eval "$ac_cv_use_textctrl"
6924 if test "$no_cache" != 1; then
6925 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6926 fi
6927
6928 if test "$wxUSE_TEXTCTRL" = yes; then
6929 echo "$ac_t""yes" 1>&6
6930 else
6931 echo "$ac_t""no" 1>&6
6932 fi
6933
6934
6935 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6936echo "configure:6937: checking for --enable-togglebtn" >&5
6937 no_cache=0
6938 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6939if test "${enable_togglebtn+set}" = set; then
6940 enableval="$enable_togglebtn"
6941
6942 if test "$enableval" = yes; then
6943 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6944 else
6945 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6946 fi
6947
6948else
6949
6950 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6951 if test "x$LINE" != x ; then
6952 eval "DEFAULT_$LINE"
6953 else
6954 no_cache=1
6955 fi
6956
6957 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6958
6959fi
6960
6961
6962 eval "$ac_cv_use_togglebtn"
6963 if test "$no_cache" != 1; then
6964 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6965 fi
6966
6967 if test "$wxUSE_TOGGLEBTN" = yes; then
6968 echo "$ac_t""yes" 1>&6
6969 else
6970 echo "$ac_t""no" 1>&6
6971 fi
6972
6973
6974 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6975echo "configure:6976: checking for --enable-toolbar" >&5
6976 no_cache=0
6977 # Check whether --enable-toolbar or --disable-toolbar was given.
6978if test "${enable_toolbar+set}" = set; then
6979 enableval="$enable_toolbar"
6980
6981 if test "$enableval" = yes; then
6982 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6983 else
6984 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6985 fi
6986
6987else
6988
6989 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6990 if test "x$LINE" != x ; then
6991 eval "DEFAULT_$LINE"
6992 else
6993 no_cache=1
6994 fi
6995
6996 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6997
6998fi
6999
7000
7001 eval "$ac_cv_use_toolbar"
7002 if test "$no_cache" != 1; then
7003 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7004 fi
7005
7006 if test "$wxUSE_TOOLBAR" = yes; then
7007 echo "$ac_t""yes" 1>&6
7008 else
7009 echo "$ac_t""no" 1>&6
7010 fi
7011
7012
7013 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
7014echo "configure:7015: checking for --enable-tbarnative" >&5
7015 no_cache=0
7016 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7017if test "${enable_tbarnative+set}" = set; then
7018 enableval="$enable_tbarnative"
7019
7020 if test "$enableval" = yes; then
7021 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7022 else
7023 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7024 fi
7025
7026else
7027
7028 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7029 if test "x$LINE" != x ; then
7030 eval "DEFAULT_$LINE"
7031 else
7032 no_cache=1
7033 fi
7034
7035 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7036
7037fi
7038
7039
7040 eval "$ac_cv_use_tbarnative"
7041 if test "$no_cache" != 1; then
7042 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7043 fi
7044
7045 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7046 echo "$ac_t""yes" 1>&6
7047 else
7048 echo "$ac_t""no" 1>&6
7049 fi
7050
7051
7052 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
7053echo "configure:7054: checking for --enable-tbarsmpl" >&5
7054 no_cache=0
7055 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7056if test "${enable_tbarsmpl+set}" = set; then
7057 enableval="$enable_tbarsmpl"
7058
7059 if test "$enableval" = yes; then
7060 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7061 else
7062 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7063 fi
7064
7065else
7066
7067 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7068 if test "x$LINE" != x ; then
7069 eval "DEFAULT_$LINE"
7070 else
7071 no_cache=1
7072 fi
7073
7074 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7075
7076fi
7077
7078
7079 eval "$ac_cv_use_tbarsmpl"
7080 if test "$no_cache" != 1; then
7081 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7082 fi
7083
7084 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7085 echo "$ac_t""yes" 1>&6
7086 else
7087 echo "$ac_t""no" 1>&6
7088 fi
7089
7090
7091 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
7092echo "configure:7093: checking for --enable-treectrl" >&5
7093 no_cache=0
7094 # Check whether --enable-treectrl or --disable-treectrl was given.
7095if test "${enable_treectrl+set}" = set; then
7096 enableval="$enable_treectrl"
7097
7098 if test "$enableval" = yes; then
7099 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7100 else
7101 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7102 fi
7103
7104else
7105
7106 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7107 if test "x$LINE" != x ; then
7108 eval "DEFAULT_$LINE"
7109 else
7110 no_cache=1
7111 fi
7112
7113 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7114
7115fi
7116
7117
7118 eval "$ac_cv_use_treectrl"
7119 if test "$no_cache" != 1; then
7120 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7121 fi
7122
7123 if test "$wxUSE_TREECTRL" = yes; then
7124 echo "$ac_t""yes" 1>&6
7125 else
7126 echo "$ac_t""no" 1>&6
7127 fi
7128
7129
7130 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
7131echo "configure:7132: checking for --enable-tipwindow" >&5
7132 no_cache=0
7133 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7134if test "${enable_tipwindow+set}" = set; then
7135 enableval="$enable_tipwindow"
7136
7137 if test "$enableval" = yes; then
7138 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7139 else
7140 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7141 fi
7142
7143else
7144
7145 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7146 if test "x$LINE" != x ; then
7147 eval "DEFAULT_$LINE"
7148 else
7149 no_cache=1
7150 fi
7151
7152 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7153
7154fi
7155
7156
7157 eval "$ac_cv_use_tipwindow"
7158 if test "$no_cache" != 1; then
7159 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7160 fi
7161
7162 if test "$wxUSE_TIPWINDOW" = yes; then
7163 echo "$ac_t""yes" 1>&6
7164 else
7165 echo "$ac_t""no" 1>&6
7166 fi
7167
7168
7169 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
7170echo "configure:7171: checking for --enable-popupwin" >&5
7171 no_cache=0
7172 # Check whether --enable-popupwin or --disable-popupwin was given.
7173if test "${enable_popupwin+set}" = set; then
7174 enableval="$enable_popupwin"
7175
7176 if test "$enableval" = yes; then
7177 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7178 else
7179 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7180 fi
7181
7182else
7183
7184 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7185 if test "x$LINE" != x ; then
7186 eval "DEFAULT_$LINE"
7187 else
7188 no_cache=1
7189 fi
7190
7191 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7192
7193fi
7194
7195
7196 eval "$ac_cv_use_popupwin"
7197 if test "$no_cache" != 1; then
7198 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7199 fi
7200
7201 if test "$wxUSE_POPUPWIN" = yes; then
7202 echo "$ac_t""yes" 1>&6
7203 else
7204 echo "$ac_t""no" 1>&6
7205 fi
7206
7207
7208
7209
7210 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
7211echo "configure:7212: checking for --enable-commondlg" >&5
7212 no_cache=0
7213 # Check whether --enable-commondlg or --disable-commondlg was given.
7214if test "${enable_commondlg+set}" = set; then
7215 enableval="$enable_commondlg"
7216
7217 if test "$enableval" = yes; then
7218 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7219 else
7220 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7221 fi
7222
7223else
7224
7225 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7226 if test "x$LINE" != x ; then
7227 eval "DEFAULT_$LINE"
7228 else
7229 no_cache=1
7230 fi
7231
7232 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7233
7234fi
7235
7236
7237 eval "$ac_cv_use_commondlg"
7238 if test "$no_cache" != 1; then
7239 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7240 fi
7241
7242 if test "$wxUSE_COMMONDLGS" = yes; then
7243 echo "$ac_t""yes" 1>&6
7244 else
7245 echo "$ac_t""no" 1>&6
7246 fi
7247
7248
7249 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
7250echo "configure:7251: checking for --enable-choicedlg" >&5
7251 no_cache=0
7252 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7253if test "${enable_choicedlg+set}" = set; then
7254 enableval="$enable_choicedlg"
7255
7256 if test "$enableval" = yes; then
7257 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7258 else
7259 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7260 fi
7261
7262else
7263
7264 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7265 if test "x$LINE" != x ; then
7266 eval "DEFAULT_$LINE"
7267 else
7268 no_cache=1
7269 fi
7270
7271 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7272
7273fi
7274
7275
7276 eval "$ac_cv_use_choicedlg"
7277 if test "$no_cache" != 1; then
7278 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7279 fi
7280
7281 if test "$wxUSE_CHOICEDLG" = yes; then
7282 echo "$ac_t""yes" 1>&6
7283 else
7284 echo "$ac_t""no" 1>&6
7285 fi
7286
7287
7288 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
7289echo "configure:7290: checking for --enable-coldlg" >&5
7290 no_cache=0
7291 # Check whether --enable-coldlg or --disable-coldlg was given.
7292if test "${enable_coldlg+set}" = set; then
7293 enableval="$enable_coldlg"
7294
7295 if test "$enableval" = yes; then
7296 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7297 else
7298 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7299 fi
7300
7301else
7302
7303 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7304 if test "x$LINE" != x ; then
7305 eval "DEFAULT_$LINE"
7306 else
7307 no_cache=1
7308 fi
7309
7310 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7311
7312fi
7313
7314
7315 eval "$ac_cv_use_coldlg"
7316 if test "$no_cache" != 1; then
7317 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7318 fi
7319
7320 if test "$wxUSE_COLOURDLG" = yes; then
7321 echo "$ac_t""yes" 1>&6
7322 else
7323 echo "$ac_t""no" 1>&6
7324 fi
7325
7326
7327 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
7328echo "configure:7329: checking for --enable-filedlg" >&5
7329 no_cache=0
7330 # Check whether --enable-filedlg or --disable-filedlg was given.
7331if test "${enable_filedlg+set}" = set; then
7332 enableval="$enable_filedlg"
7333
7334 if test "$enableval" = yes; then
7335 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7336 else
7337 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7338 fi
7339
7340else
7341
7342 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7343 if test "x$LINE" != x ; then
7344 eval "DEFAULT_$LINE"
7345 else
7346 no_cache=1
7347 fi
7348
7349 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7350
7351fi
7352
7353
7354 eval "$ac_cv_use_filedlg"
7355 if test "$no_cache" != 1; then
7356 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7357 fi
7358
7359 if test "$wxUSE_FILEDLG" = yes; then
7360 echo "$ac_t""yes" 1>&6
7361 else
7362 echo "$ac_t""no" 1>&6
7363 fi
7364
7365
7366 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
7367echo "configure:7368: checking for --enable-finddlg" >&5
7368 no_cache=0
7369 # Check whether --enable-finddlg or --disable-finddlg was given.
7370if test "${enable_finddlg+set}" = set; then
7371 enableval="$enable_finddlg"
7372
7373 if test "$enableval" = yes; then
7374 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7375 else
7376 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7377 fi
7378
7379else
7380
7381 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7382 if test "x$LINE" != x ; then
7383 eval "DEFAULT_$LINE"
7384 else
7385 no_cache=1
7386 fi
7387
7388 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7389
7390fi
7391
7392
7393 eval "$ac_cv_use_finddlg"
7394 if test "$no_cache" != 1; then
7395 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7396 fi
7397
7398 if test "$wxUSE_FINDREPLDLG" = yes; then
7399 echo "$ac_t""yes" 1>&6
7400 else
7401 echo "$ac_t""no" 1>&6
7402 fi
7403
7404
7405 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
7406echo "configure:7407: checking for --enable-fontdlg" >&5
7407 no_cache=0
7408 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7409if test "${enable_fontdlg+set}" = set; then
7410 enableval="$enable_fontdlg"
7411
7412 if test "$enableval" = yes; then
7413 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7414 else
7415 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7416 fi
7417
7418else
7419
7420 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7421 if test "x$LINE" != x ; then
7422 eval "DEFAULT_$LINE"
7423 else
7424 no_cache=1
7425 fi
7426
7427 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7428
7429fi
7430
7431
7432 eval "$ac_cv_use_fontdlg"
7433 if test "$no_cache" != 1; then
7434 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7435 fi
7436
7437 if test "$wxUSE_FONTDLG" = yes; then
7438 echo "$ac_t""yes" 1>&6
7439 else
7440 echo "$ac_t""no" 1>&6
7441 fi
7442
7443
7444 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
7445echo "configure:7446: checking for --enable-dirdlg" >&5
7446 no_cache=0
7447 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7448if test "${enable_dirdlg+set}" = set; then
7449 enableval="$enable_dirdlg"
7450
7451 if test "$enableval" = yes; then
7452 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7453 else
7454 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7455 fi
7456
7457else
7458
7459 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7460 if test "x$LINE" != x ; then
7461 eval "DEFAULT_$LINE"
7462 else
7463 no_cache=1
7464 fi
7465
7466 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7467
7468fi
7469
7470
7471 eval "$ac_cv_use_dirdlg"
7472 if test "$no_cache" != 1; then
7473 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7474 fi
7475
7476 if test "$wxUSE_DIRDLG" = yes; then
7477 echo "$ac_t""yes" 1>&6
7478 else
7479 echo "$ac_t""no" 1>&6
7480 fi
7481
7482
7483 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
7484echo "configure:7485: checking for --enable-msgdlg" >&5
7485 no_cache=0
7486 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7487if test "${enable_msgdlg+set}" = set; then
7488 enableval="$enable_msgdlg"
7489
7490 if test "$enableval" = yes; then
7491 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7492 else
7493 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7494 fi
7495
7496else
7497
7498 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7499 if test "x$LINE" != x ; then
7500 eval "DEFAULT_$LINE"
7501 else
7502 no_cache=1
7503 fi
7504
7505 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7506
7507fi
7508
7509
7510 eval "$ac_cv_use_msgdlg"
7511 if test "$no_cache" != 1; then
7512 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7513 fi
7514
7515 if test "$wxUSE_MSGDLG" = yes; then
7516 echo "$ac_t""yes" 1>&6
7517 else
7518 echo "$ac_t""no" 1>&6
7519 fi
7520
7521
7522 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
7523echo "configure:7524: checking for --enable-numberdlg" >&5
7524 no_cache=0
7525 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7526if test "${enable_numberdlg+set}" = set; then
7527 enableval="$enable_numberdlg"
7528
7529 if test "$enableval" = yes; then
7530 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7531 else
7532 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7533 fi
7534
7535else
7536
7537 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7538 if test "x$LINE" != x ; then
7539 eval "DEFAULT_$LINE"
7540 else
7541 no_cache=1
7542 fi
7543
7544 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7545
7546fi
7547
7548
7549 eval "$ac_cv_use_numberdlg"
7550 if test "$no_cache" != 1; then
7551 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7552 fi
7553
7554 if test "$wxUSE_NUMBERDLG" = yes; then
7555 echo "$ac_t""yes" 1>&6
7556 else
7557 echo "$ac_t""no" 1>&6
7558 fi
7559
7560
7561 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7562echo "configure:7563: checking for --enable-splash" >&5
7563 no_cache=0
7564 # Check whether --enable-splash or --disable-splash was given.
7565if test "${enable_splash+set}" = set; then
7566 enableval="$enable_splash"
7567
7568 if test "$enableval" = yes; then
7569 ac_cv_use_splash='wxUSE_SPLASH=yes'
7570 else
7571 ac_cv_use_splash='wxUSE_SPLASH=no'
7572 fi
7573
7574else
7575
7576 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7577 if test "x$LINE" != x ; then
7578 eval "DEFAULT_$LINE"
7579 else
7580 no_cache=1
7581 fi
7582
7583 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7584
7585fi
7586
7587
7588 eval "$ac_cv_use_splash"
7589 if test "$no_cache" != 1; then
7590 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7591 fi
7592
7593 if test "$wxUSE_SPLASH" = yes; then
7594 echo "$ac_t""yes" 1>&6
7595 else
7596 echo "$ac_t""no" 1>&6
7597 fi
7598
7599
7600 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7601echo "configure:7602: checking for --enable-textdlg" >&5
7602 no_cache=0
7603 # Check whether --enable-textdlg or --disable-textdlg was given.
7604if test "${enable_textdlg+set}" = set; then
7605 enableval="$enable_textdlg"
7606
7607 if test "$enableval" = yes; then
7608 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7609 else
7610 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7611 fi
7612
7613else
7614
7615 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7616 if test "x$LINE" != x ; then
7617 eval "DEFAULT_$LINE"
7618 else
7619 no_cache=1
7620 fi
7621
7622 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7623
7624fi
7625
7626
7627 eval "$ac_cv_use_textdlg"
7628 if test "$no_cache" != 1; then
7629 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7630 fi
7631
7632 if test "$wxUSE_TEXTDLG" = yes; then
7633 echo "$ac_t""yes" 1>&6
7634 else
7635 echo "$ac_t""no" 1>&6
7636 fi
7637
7638
7639 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7640echo "configure:7641: checking for --enable-tipdlg" >&5
7641 no_cache=0
7642 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7643if test "${enable_tipdlg+set}" = set; then
7644 enableval="$enable_tipdlg"
7645
7646 if test "$enableval" = yes; then
7647 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7648 else
7649 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7650 fi
7651
7652else
7653
7654 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7655 if test "x$LINE" != x ; then
7656 eval "DEFAULT_$LINE"
7657 else
7658 no_cache=1
7659 fi
7660
7661 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7662
7663fi
7664
7665
7666 eval "$ac_cv_use_tipdlg"
7667 if test "$no_cache" != 1; then
7668 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7669 fi
7670
7671 if test "$wxUSE_STARTUP_TIPS" = yes; then
7672 echo "$ac_t""yes" 1>&6
7673 else
7674 echo "$ac_t""no" 1>&6
7675 fi
7676
7677
7678 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7679echo "configure:7680: checking for --enable-progressdlg" >&5
7680 no_cache=0
7681 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7682if test "${enable_progressdlg+set}" = set; then
7683 enableval="$enable_progressdlg"
7684
7685 if test "$enableval" = yes; then
7686 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7687 else
7688 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7689 fi
7690
7691else
7692
7693 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7694 if test "x$LINE" != x ; then
7695 eval "DEFAULT_$LINE"
7696 else
7697 no_cache=1
7698 fi
7699
7700 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7701
7702fi
7703
7704
7705 eval "$ac_cv_use_progressdlg"
7706 if test "$no_cache" != 1; then
7707 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7708 fi
7709
7710 if test "$wxUSE_PROGRESSDLG" = yes; then
7711 echo "$ac_t""yes" 1>&6
7712 else
7713 echo "$ac_t""no" 1>&6
7714 fi
7715
7716
7717 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7718echo "configure:7719: checking for --enable-wizarddlg" >&5
7719 no_cache=0
7720 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7721if test "${enable_wizarddlg+set}" = set; then
7722 enableval="$enable_wizarddlg"
7723
7724 if test "$enableval" = yes; then
7725 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7726 else
7727 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7728 fi
7729
7730else
7731
7732 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7733 if test "x$LINE" != x ; then
7734 eval "DEFAULT_$LINE"
7735 else
7736 no_cache=1
7737 fi
7738
7739 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7740
7741fi
7742
7743
7744 eval "$ac_cv_use_wizarddlg"
7745 if test "$no_cache" != 1; then
7746 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7747 fi
7748
7749 if test "$wxUSE_WIZARDDLG" = yes; then
7750 echo "$ac_t""yes" 1>&6
7751 else
7752 echo "$ac_t""no" 1>&6
7753 fi
7754
7755
7756
7757
7758 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7759echo "configure:7760: checking for --enable-menus" >&5
7760 no_cache=0
7761 # Check whether --enable-menus or --disable-menus was given.
7762if test "${enable_menus+set}" = set; then
7763 enableval="$enable_menus"
7764
7765 if test "$enableval" = yes; then
7766 ac_cv_use_menus='wxUSE_MENUS=yes'
7767 else
7768 ac_cv_use_menus='wxUSE_MENUS=no'
7769 fi
7770
7771else
7772
7773 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7774 if test "x$LINE" != x ; then
7775 eval "DEFAULT_$LINE"
7776 else
7777 no_cache=1
7778 fi
7779
7780 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7781
7782fi
7783
7784
7785 eval "$ac_cv_use_menus"
7786 if test "$no_cache" != 1; then
7787 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7788 fi
7789
7790 if test "$wxUSE_MENUS" = yes; then
7791 echo "$ac_t""yes" 1>&6
7792 else
7793 echo "$ac_t""no" 1>&6
7794 fi
7795
7796
7797 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7798echo "configure:7799: checking for --enable-miniframe" >&5
7799 no_cache=0
7800 # Check whether --enable-miniframe or --disable-miniframe was given.
7801if test "${enable_miniframe+set}" = set; then
7802 enableval="$enable_miniframe"
7803
7804 if test "$enableval" = yes; then
7805 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7806 else
7807 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7808 fi
7809
7810else
7811
7812 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7813 if test "x$LINE" != x ; then
7814 eval "DEFAULT_$LINE"
7815 else
7816 no_cache=1
7817 fi
7818
7819 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7820
7821fi
7822
7823
7824 eval "$ac_cv_use_miniframe"
7825 if test "$no_cache" != 1; then
7826 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7827 fi
7828
7829 if test "$wxUSE_MINIFRAME" = yes; then
7830 echo "$ac_t""yes" 1>&6
7831 else
7832 echo "$ac_t""no" 1>&6
7833 fi
7834
7835
7836 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7837echo "configure:7838: checking for --enable-tooltips" >&5
7838 no_cache=0
7839 # Check whether --enable-tooltips or --disable-tooltips was given.
7840if test "${enable_tooltips+set}" = set; then
7841 enableval="$enable_tooltips"
7842
7843 if test "$enableval" = yes; then
7844 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7845 else
7846 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7847 fi
7848
7849else
7850
7851 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7852 if test "x$LINE" != x ; then
7853 eval "DEFAULT_$LINE"
7854 else
7855 no_cache=1
7856 fi
7857
7858 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7859
7860fi
7861
7862
7863 eval "$ac_cv_use_tooltips"
7864 if test "$no_cache" != 1; then
7865 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7866 fi
7867
7868 if test "$wxUSE_TOOLTIPS" = yes; then
7869 echo "$ac_t""yes" 1>&6
7870 else
7871 echo "$ac_t""no" 1>&6
7872 fi
7873
7874
7875 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7876echo "configure:7877: checking for --enable-splines" >&5
7877 no_cache=0
7878 # Check whether --enable-splines or --disable-splines was given.
7879if test "${enable_splines+set}" = set; then
7880 enableval="$enable_splines"
7881
7882 if test "$enableval" = yes; then
7883 ac_cv_use_splines='wxUSE_SPLINES=yes'
7884 else
7885 ac_cv_use_splines='wxUSE_SPLINES=no'
7886 fi
7887
7888else
7889
7890 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7891 if test "x$LINE" != x ; then
7892 eval "DEFAULT_$LINE"
7893 else
7894 no_cache=1
7895 fi
7896
7897 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7898
7899fi
7900
7901
7902 eval "$ac_cv_use_splines"
7903 if test "$no_cache" != 1; then
7904 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7905 fi
7906
7907 if test "$wxUSE_SPLINES" = yes; then
7908 echo "$ac_t""yes" 1>&6
7909 else
7910 echo "$ac_t""no" 1>&6
7911 fi
7912
7913
7914 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7915echo "configure:7916: checking for --enable-validators" >&5
7916 no_cache=0
7917 # Check whether --enable-validators or --disable-validators was given.
7918if test "${enable_validators+set}" = set; then
7919 enableval="$enable_validators"
7920
7921 if test "$enableval" = yes; then
7922 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7923 else
7924 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7925 fi
7926
7927else
7928
7929 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7930 if test "x$LINE" != x ; then
7931 eval "DEFAULT_$LINE"
7932 else
7933 no_cache=1
7934 fi
7935
7936 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7937
7938fi
7939
7940
7941 eval "$ac_cv_use_validators"
7942 if test "$no_cache" != 1; then
7943 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7944 fi
7945
7946 if test "$wxUSE_VALIDATORS" = yes; then
7947 echo "$ac_t""yes" 1>&6
7948 else
7949 echo "$ac_t""no" 1>&6
7950 fi
7951
7952
7953 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7954echo "configure:7955: checking for --enable-busyinfo" >&5
7955 no_cache=0
7956 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7957if test "${enable_busyinfo+set}" = set; then
7958 enableval="$enable_busyinfo"
7959
7960 if test "$enableval" = yes; then
7961 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7962 else
7963 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7964 fi
7965
7966else
7967
7968 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7969 if test "x$LINE" != x ; then
7970 eval "DEFAULT_$LINE"
7971 else
7972 no_cache=1
7973 fi
7974
7975 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7976
7977fi
7978
7979
7980 eval "$ac_cv_use_busyinfo"
7981 if test "$no_cache" != 1; then
7982 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7983 fi
7984
7985 if test "$wxUSE_BUSYINFO" = yes; then
7986 echo "$ac_t""yes" 1>&6
7987 else
7988 echo "$ac_t""no" 1>&6
7989 fi
7990
7991
7992 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7993echo "configure:7994: checking for --enable-joystick" >&5
7994 no_cache=0
7995 # Check whether --enable-joystick or --disable-joystick was given.
7996if test "${enable_joystick+set}" = set; then
7997 enableval="$enable_joystick"
7998
7999 if test "$enableval" = yes; then
8000 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8001 else
8002 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8003 fi
8004
8005else
8006
8007 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8008 if test "x$LINE" != x ; then
8009 eval "DEFAULT_$LINE"
8010 else
8011 no_cache=1
8012 fi
8013
8014 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8015
8016fi
8017
8018
8019 eval "$ac_cv_use_joystick"
8020 if test "$no_cache" != 1; then
8021 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8022 fi
8023
8024 if test "$wxUSE_JOYSTICK" = yes; then
8025 echo "$ac_t""yes" 1>&6
8026 else
8027 echo "$ac_t""no" 1>&6
8028 fi
8029
8030
8031 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
8032echo "configure:8033: checking for --enable-metafile" >&5
8033 no_cache=0
8034 # Check whether --enable-metafile or --disable-metafile was given.
8035if test "${enable_metafile+set}" = set; then
8036 enableval="$enable_metafile"
8037
8038 if test "$enableval" = yes; then
8039 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8040 else
8041 ac_cv_use_metafile='wxUSE_METAFILE=no'
8042 fi
8043
8044else
8045
8046 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8047 if test "x$LINE" != x ; then
8048 eval "DEFAULT_$LINE"
8049 else
8050 no_cache=1
8051 fi
8052
8053 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8054
8055fi
8056
8057
8058 eval "$ac_cv_use_metafile"
8059 if test "$no_cache" != 1; then
8060 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8061 fi
8062
8063 if test "$wxUSE_METAFILE" = yes; then
8064 echo "$ac_t""yes" 1>&6
8065 else
8066 echo "$ac_t""no" 1>&6
8067 fi
8068
8069
8070 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
8071echo "configure:8072: checking for --enable-dragimage" >&5
8072 no_cache=0
8073 # Check whether --enable-dragimage or --disable-dragimage was given.
8074if test "${enable_dragimage+set}" = set; then
8075 enableval="$enable_dragimage"
8076
8077 if test "$enableval" = yes; then
8078 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8079 else
8080 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8081 fi
8082
8083else
8084
8085 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8086 if test "x$LINE" != x ; then
8087 eval "DEFAULT_$LINE"
8088 else
8089 no_cache=1
8090 fi
8091
8092 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8093
8094fi
8095
8096
8097 eval "$ac_cv_use_dragimage"
8098 if test "$no_cache" != 1; then
8099 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8100 fi
8101
8102 if test "$wxUSE_DRAGIMAGE" = yes; then
8103 echo "$ac_t""yes" 1>&6
8104 else
8105 echo "$ac_t""no" 1>&6
8106 fi
8107
8108
8109
8110
8111 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
8112echo "configure:8113: checking for --enable-palette" >&5
8113 no_cache=0
8114 # Check whether --enable-palette or --disable-palette was given.
8115if test "${enable_palette+set}" = set; then
8116 enableval="$enable_palette"
8117
8118 if test "$enableval" = yes; then
8119 ac_cv_use_palette='wxUSE_PALETTE=yes'
8120 else
8121 ac_cv_use_palette='wxUSE_PALETTE=no'
8122 fi
8123
8124else
8125
8126 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8127 if test "x$LINE" != x ; then
8128 eval "DEFAULT_$LINE"
8129 else
8130 no_cache=1
8131 fi
8132
8133 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8134
8135fi
8136
8137
8138 eval "$ac_cv_use_palette"
8139 if test "$no_cache" != 1; then
8140 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8141 fi
8142
8143 if test "$wxUSE_PALETTE" = yes; then
8144 echo "$ac_t""yes" 1>&6
8145 else
8146 echo "$ac_t""no" 1>&6
8147 fi
8148
8149
8150 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
8151echo "configure:8152: checking for --enable-image" >&5
8152 no_cache=0
8153 # Check whether --enable-image or --disable-image was given.
8154if test "${enable_image+set}" = set; then
8155 enableval="$enable_image"
8156
8157 if test "$enableval" = yes; then
8158 ac_cv_use_image='wxUSE_IMAGE=yes'
8159 else
8160 ac_cv_use_image='wxUSE_IMAGE=no'
8161 fi
8162
8163else
8164
8165 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8166 if test "x$LINE" != x ; then
8167 eval "DEFAULT_$LINE"
8168 else
8169 no_cache=1
8170 fi
8171
8172 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8173
8174fi
8175
8176
8177 eval "$ac_cv_use_image"
8178 if test "$no_cache" != 1; then
8179 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8180 fi
8181
8182 if test "$wxUSE_IMAGE" = yes; then
8183 echo "$ac_t""yes" 1>&6
8184 else
8185 echo "$ac_t""no" 1>&6
8186 fi
8187
8188
8189 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
8190echo "configure:8191: checking for --enable-gif" >&5
8191 no_cache=0
8192 # Check whether --enable-gif or --disable-gif was given.
8193if test "${enable_gif+set}" = set; then
8194 enableval="$enable_gif"
8195
8196 if test "$enableval" = yes; then
8197 ac_cv_use_gif='wxUSE_GIF=yes'
8198 else
8199 ac_cv_use_gif='wxUSE_GIF=no'
8200 fi
8201
8202else
8203
8204 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8205 if test "x$LINE" != x ; then
8206 eval "DEFAULT_$LINE"
8207 else
8208 no_cache=1
8209 fi
8210
8211 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8212
8213fi
8214
8215
8216 eval "$ac_cv_use_gif"
8217 if test "$no_cache" != 1; then
8218 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8219 fi
8220
8221 if test "$wxUSE_GIF" = yes; then
8222 echo "$ac_t""yes" 1>&6
8223 else
8224 echo "$ac_t""no" 1>&6
8225 fi
8226
8227
8228 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
8229echo "configure:8230: checking for --enable-pcx" >&5
8230 no_cache=0
8231 # Check whether --enable-pcx or --disable-pcx was given.
8232if test "${enable_pcx+set}" = set; then
8233 enableval="$enable_pcx"
8234
8235 if test "$enableval" = yes; then
8236 ac_cv_use_pcx='wxUSE_PCX=yes'
8237 else
8238 ac_cv_use_pcx='wxUSE_PCX=no'
8239 fi
8240
8241else
8242
8243 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8244 if test "x$LINE" != x ; then
8245 eval "DEFAULT_$LINE"
8246 else
8247 no_cache=1
8248 fi
8249
8250 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8251
8252fi
8253
8254
8255 eval "$ac_cv_use_pcx"
8256 if test "$no_cache" != 1; then
8257 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8258 fi
8259
8260 if test "$wxUSE_PCX" = yes; then
8261 echo "$ac_t""yes" 1>&6
8262 else
8263 echo "$ac_t""no" 1>&6
8264 fi
8265
8266
8267 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
8268echo "configure:8269: checking for --enable-iff" >&5
8269 no_cache=0
8270 # Check whether --enable-iff or --disable-iff was given.
8271if test "${enable_iff+set}" = set; then
8272 enableval="$enable_iff"
8273
8274 if test "$enableval" = yes; then
8275 ac_cv_use_iff='wxUSE_IFF=yes'
8276 else
8277 ac_cv_use_iff='wxUSE_IFF=no'
8278 fi
8279
8280else
8281
8282 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8283 if test "x$LINE" != x ; then
8284 eval "DEFAULT_$LINE"
8285 else
8286 no_cache=1
8287 fi
8288
8289 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8290
8291fi
8292
8293
8294 eval "$ac_cv_use_iff"
8295 if test "$no_cache" != 1; then
8296 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8297 fi
8298
8299 if test "$wxUSE_IFF" = yes; then
8300 echo "$ac_t""yes" 1>&6
8301 else
8302 echo "$ac_t""no" 1>&6
8303 fi
8304
8305
8306 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
8307echo "configure:8308: checking for --enable-pnm" >&5
8308 no_cache=0
8309 # Check whether --enable-pnm or --disable-pnm was given.
8310if test "${enable_pnm+set}" = set; then
8311 enableval="$enable_pnm"
8312
8313 if test "$enableval" = yes; then
8314 ac_cv_use_pnm='wxUSE_PNM=yes'
8315 else
8316 ac_cv_use_pnm='wxUSE_PNM=no'
8317 fi
8318
8319else
8320
8321 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8322 if test "x$LINE" != x ; then
8323 eval "DEFAULT_$LINE"
8324 else
8325 no_cache=1
8326 fi
8327
8328 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8329
8330fi
8331
8332
8333 eval "$ac_cv_use_pnm"
8334 if test "$no_cache" != 1; then
8335 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8336 fi
8337
8338 if test "$wxUSE_PNM" = yes; then
8339 echo "$ac_t""yes" 1>&6
8340 else
8341 echo "$ac_t""no" 1>&6
8342 fi
8343
8344
8345 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
8346echo "configure:8347: checking for --enable-xpm" >&5
8347 no_cache=0
8348 # Check whether --enable-xpm or --disable-xpm was given.
8349if test "${enable_xpm+set}" = set; then
8350 enableval="$enable_xpm"
8351
8352 if test "$enableval" = yes; then
8353 ac_cv_use_xpm='wxUSE_XPM=yes'
8354 else
8355 ac_cv_use_xpm='wxUSE_XPM=no'
8356 fi
8357
8358else
8359
8360 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8361 if test "x$LINE" != x ; then
8362 eval "DEFAULT_$LINE"
8363 else
8364 no_cache=1
8365 fi
8366
8367 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8368
8369fi
8370
8371
8372 eval "$ac_cv_use_xpm"
8373 if test "$no_cache" != 1; then
8374 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8375 fi
8376
8377 if test "$wxUSE_XPM" = yes; then
8378 echo "$ac_t""yes" 1>&6
8379 else
8380 echo "$ac_t""no" 1>&6
8381 fi
8382
8383
8384 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
8385echo "configure:8386: checking for --enable-ico_cur" >&5
8386 no_cache=0
8387 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8388if test "${enable_ico_cur+set}" = set; then
8389 enableval="$enable_ico_cur"
8390
8391 if test "$enableval" = yes; then
8392 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8393 else
8394 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8395 fi
8396
8397else
8398
8399 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8400 if test "x$LINE" != x ; then
8401 eval "DEFAULT_$LINE"
8402 else
8403 no_cache=1
8404 fi
8405
8406 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8407
8408fi
8409
8410
8411 eval "$ac_cv_use_ico_cur"
8412 if test "$no_cache" != 1; then
8413 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8414 fi
8415
8416 if test "$wxUSE_ICO_CUR" = yes; then
8417 echo "$ac_t""yes" 1>&6
8418 else
8419 echo "$ac_t""no" 1>&6
8420 fi
8421
8422
8423fi
8424
8425
8426 echo "saving argument cache $wx_arg_cache_file"
8427 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8428
8429
8430
8431echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8432echo "configure:8433: checking for toolkit" >&5
8433
8434if test "$wxUSE_GUI" = "yes"; then
8435
8436 if test "$USE_BEOS" = 1; then
8437 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8438 fi
8439
8440 if test "$TOOLKIT_GIVEN" = 1; then
8441 for toolkit in `echo $ALL_TOOLKITS`; do
8442 var=wxUSE_$toolkit
8443 eval "value=\$${var}"
8444 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8445 done
8446 else
8447 for toolkit in `echo $ALL_TOOLKITS`; do
8448 if test "$has_toolkit_in_cache" != 1; then
8449 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8450 else
8451 var=DEFAULT_wxUSE_$toolkit
8452 fi
8453 eval "wxUSE_$toolkit=\$${var}"
8454 done
8455 fi
8456
8457 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
8458 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
8459
8460 case "${host}" in
8461 *-pc-os2_emx | *-pc-os2-emx )
8462 # PATH_IFS is autodetected by OS/2's configure (usually ';')
8463 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8464 LEX_STEM="lexyy"
8465 ;;
8466 *)
8467 PATH_IFS=':'
8468 LEX_STEM="lex.yy"
8469 ;;
8470 esac
8471
8472 case "$NUM_TOOLKITS" in
8473 1)
8474 ;;
8475 0)
8476 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8477 ;;
8478 *)
8479 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8480 esac
8481
8482 for toolkit in `echo $ALL_TOOLKITS`; do
8483 var=wxUSE_$toolkit
8484 eval "value=\$${var}"
8485 if test "x$value" != x; then
8486 cache_var=CACHE_$toolkit
8487 eval "cache=\$${cache_var}"
8488 if test "$cache" = 1; then
8489 echo "$var=$value" >> ${wx_arg_cache_file}
8490 fi
8491 if test "$value" = 1; then
8492 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8493 echo "$ac_t""$toolkit_echo" 1>&6
8494 fi
8495 fi
8496 done
8497else
8498 PATH_IFS=':'
8499 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8500fi
8501
8502
8503cat > confcache <<\EOF
8504# This file is a shell script that caches the results of configure
8505# tests run on this system so they can be shared between configure
8506# scripts and configure runs. It is not useful on other systems.
8507# If it contains results you don't want to keep, you may remove or edit it.
8508#
8509# By default, configure uses ./config.cache as the cache file,
8510# creating it if it does not exist already. You can give configure
8511# the --cache-file=FILE option to use a different cache file; that is
8512# what configure does when it calls configure scripts in
8513# subdirectories, so they share the cache.
8514# Giving --cache-file=/dev/null disables caching, for debugging configure.
8515# config.status only pays attention to the cache file if you give it the
8516# --recheck option to rerun configure.
8517#
8518EOF
8519# The following way of writing the cache mishandles newlines in values,
8520# but we know of no workaround that is simple, portable, and efficient.
8521# So, don't put newlines in cache variables' values.
8522# Ultrix sh set writes to stderr and can't be redirected directly,
8523# and sets the high bit in the cache file unless we assign to the vars.
8524(set) 2>&1 |
8525 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8526 *ac_space=\ *)
8527 # `set' does not quote correctly, so add quotes (double-quote substitution
8528 # turns \\\\ into \\, and sed turns \\ into \).
8529 sed -n \
8530 -e "s/'/'\\\\''/g" \
8531 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8532 ;;
8533 *)
8534 # `set' quotes correctly as required by POSIX, so do not add quotes.
8535 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8536 ;;
8537 esac >> confcache
8538if cmp -s $cache_file confcache; then
8539 :
8540else
8541 if test -w $cache_file; then
8542 echo "updating cache $cache_file"
8543 cat confcache > $cache_file
8544 else
8545 echo "not updating unwritable cache $cache_file"
8546 fi
8547fi
8548rm -f confcache
8549
8550
8551if test "$build" != "$host" ; then
8552 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then
8553 CC=$host_alias-gcc
8554 CXX=$host_alias-c++
8555 AR=$host_alias-ar
8556 RANLIB=$host_alias-ranlib
8557 DLLTOOL=$host_alias-dlltool
8558 RESCOMP=$host_alias-windres
8559 LD=$host_alias-ld
8560 NM=$host_alias-nm
8561 STRIP=$host_alias-strip
8562 else
8563 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8564 fi
8565fi
8566
8567# Extract the first word of "gcc", so it can be a program name with args.
8568set dummy gcc; ac_word=$2
8569echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8570echo "configure:8571: checking for $ac_word" >&5
8571if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8572 echo $ac_n "(cached) $ac_c" 1>&6
8573else
8574 if test -n "$CC"; then
8575 ac_cv_prog_CC="$CC" # Let the user override the test.
8576else
8577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8578 ac_dummy="$PATH"
8579 for ac_dir in $ac_dummy; do
8580 test -z "$ac_dir" && ac_dir=.
8581 if test -f $ac_dir/$ac_word; then
8582 ac_cv_prog_CC="gcc"
8583 break
8584 fi
8585 done
8586 IFS="$ac_save_ifs"
8587fi
8588fi
8589CC="$ac_cv_prog_CC"
8590if test -n "$CC"; then
8591 echo "$ac_t""$CC" 1>&6
8592else
8593 echo "$ac_t""no" 1>&6
8594fi
8595
8596if test -z "$CC"; then
8597 # Extract the first word of "cc", so it can be a program name with args.
8598set dummy cc; ac_word=$2
8599echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8600echo "configure:8601: checking for $ac_word" >&5
8601if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8602 echo $ac_n "(cached) $ac_c" 1>&6
8603else
8604 if test -n "$CC"; then
8605 ac_cv_prog_CC="$CC" # Let the user override the test.
8606else
8607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8608 ac_prog_rejected=no
8609 ac_dummy="$PATH"
8610 for ac_dir in $ac_dummy; do
8611 test -z "$ac_dir" && ac_dir=.
8612 if test -f $ac_dir/$ac_word; then
8613 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8614 ac_prog_rejected=yes
8615 continue
8616 fi
8617 ac_cv_prog_CC="cc"
8618 break
8619 fi
8620 done
8621 IFS="$ac_save_ifs"
8622if test $ac_prog_rejected = yes; then
8623 # We found a bogon in the path, so make sure we never use it.
8624 set dummy $ac_cv_prog_CC
8625 shift
8626 if test $# -gt 0; then
8627 # We chose a different compiler from the bogus one.
8628 # However, it has the same basename, so the bogon will be chosen
8629 # first if we set CC to just the basename; use the full file name.
8630 shift
8631 set dummy "$ac_dir/$ac_word" "$@"
8632 shift
8633 ac_cv_prog_CC="$@"
8634 fi
8635fi
8636fi
8637fi
8638CC="$ac_cv_prog_CC"
8639if test -n "$CC"; then
8640 echo "$ac_t""$CC" 1>&6
8641else
8642 echo "$ac_t""no" 1>&6
8643fi
8644
8645 if test -z "$CC"; then
8646 case "`uname -s`" in
8647 *win32* | *WIN32*)
8648 # Extract the first word of "cl", so it can be a program name with args.
8649set dummy cl; ac_word=$2
8650echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8651echo "configure:8652: checking for $ac_word" >&5
8652if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8653 echo $ac_n "(cached) $ac_c" 1>&6
8654else
8655 if test -n "$CC"; then
8656 ac_cv_prog_CC="$CC" # Let the user override the test.
8657else
8658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8659 ac_dummy="$PATH"
8660 for ac_dir in $ac_dummy; do
8661 test -z "$ac_dir" && ac_dir=.
8662 if test -f $ac_dir/$ac_word; then
8663 ac_cv_prog_CC="cl"
8664 break
8665 fi
8666 done
8667 IFS="$ac_save_ifs"
8668fi
8669fi
8670CC="$ac_cv_prog_CC"
8671if test -n "$CC"; then
8672 echo "$ac_t""$CC" 1>&6
8673else
8674 echo "$ac_t""no" 1>&6
8675fi
8676 ;;
8677 esac
8678 fi
8679 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8680fi
8681
8682echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8683echo "configure:8684: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8684
8685ac_ext=c
8686# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8687ac_cpp='$CPP $CPPFLAGS'
8688ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8689ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8690cross_compiling=$ac_cv_prog_cc_cross
8691
8692cat > conftest.$ac_ext << EOF
8693
8694#line 8695 "configure"
8695#include "confdefs.h"
8696
8697main(){return(0);}
8698EOF
8699if { (eval echo configure:8700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8700 ac_cv_prog_cc_works=yes
8701 # If we can't run a trivial program, we are probably using a cross compiler.
8702 if (./conftest; exit) 2>/dev/null; then
8703 ac_cv_prog_cc_cross=no
8704 else
8705 ac_cv_prog_cc_cross=yes
8706 fi
8707else
8708 echo "configure: failed program was:" >&5
8709 cat conftest.$ac_ext >&5
8710 ac_cv_prog_cc_works=no
8711fi
8712rm -fr conftest*
8713ac_ext=c
8714# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8715ac_cpp='$CPP $CPPFLAGS'
8716ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8717ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8718cross_compiling=$ac_cv_prog_cc_cross
8719
8720echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8721if test $ac_cv_prog_cc_works = no; then
8722 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8723fi
8724echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8725echo "configure:8726: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8726echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8727cross_compiling=$ac_cv_prog_cc_cross
8728
8729echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8730echo "configure:8731: checking whether we are using GNU C" >&5
8731if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8732 echo $ac_n "(cached) $ac_c" 1>&6
8733else
8734 cat > conftest.c <<EOF
8735#ifdef __GNUC__
8736 yes;
8737#endif
8738EOF
8739if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8740 ac_cv_prog_gcc=yes
8741else
8742 ac_cv_prog_gcc=no
8743fi
8744fi
8745
8746echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8747
8748if test $ac_cv_prog_gcc = yes; then
8749 GCC=yes
8750else
8751 GCC=
8752fi
8753
8754ac_test_CFLAGS="${CFLAGS+set}"
8755ac_save_CFLAGS="$CFLAGS"
8756CFLAGS=
8757echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8758echo "configure:8759: checking whether ${CC-cc} accepts -g" >&5
8759if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8760 echo $ac_n "(cached) $ac_c" 1>&6
8761else
8762 echo 'void f(){}' > conftest.c
8763if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8764 ac_cv_prog_cc_g=yes
8765else
8766 ac_cv_prog_cc_g=no
8767fi
8768rm -f conftest*
8769
8770fi
8771
8772echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8773if test "$ac_test_CFLAGS" = set; then
8774 CFLAGS="$ac_save_CFLAGS"
8775elif test $ac_cv_prog_cc_g = yes; then
8776 if test "$GCC" = yes; then
8777 CFLAGS="-g -O2"
8778 else
8779 CFLAGS="-g"
8780 fi
8781else
8782 if test "$GCC" = yes; then
8783 CFLAGS="-O2"
8784 else
8785 CFLAGS=
8786 fi
8787fi
8788
8789
8790CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8791
8792echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8793echo "configure:8794: checking how to run the C preprocessor" >&5
8794# On Suns, sometimes $CPP names a directory.
8795if test -n "$CPP" && test -d "$CPP"; then
8796 CPP=
8797fi
8798if test -z "$CPP"; then
8799if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8800 echo $ac_n "(cached) $ac_c" 1>&6
8801else
8802 # This must be in double quotes, not single quotes, because CPP may get
8803 # substituted into the Makefile and "${CC-cc}" will confuse make.
8804 CPP="${CC-cc} -E"
8805 # On the NeXT, cc -E runs the code through the compiler's parser,
8806 # not just through cpp.
8807 cat > conftest.$ac_ext <<EOF
8808#line 8809 "configure"
8809#include "confdefs.h"
8810#include <assert.h>
8811Syntax Error
8812EOF
8813ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8814{ (eval echo configure:8815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8815ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8816if test -z "$ac_err"; then
8817 :
8818else
8819 echo "$ac_err" >&5
8820 echo "configure: failed program was:" >&5
8821 cat conftest.$ac_ext >&5
8822 rm -rf conftest*
8823 CPP="${CC-cc} -E -traditional-cpp"
8824 cat > conftest.$ac_ext <<EOF
8825#line 8826 "configure"
8826#include "confdefs.h"
8827#include <assert.h>
8828Syntax Error
8829EOF
8830ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8831{ (eval echo configure:8832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8832ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8833if test -z "$ac_err"; then
8834 :
8835else
8836 echo "$ac_err" >&5
8837 echo "configure: failed program was:" >&5
8838 cat conftest.$ac_ext >&5
8839 rm -rf conftest*
8840 CPP="${CC-cc} -nologo -E"
8841 cat > conftest.$ac_ext <<EOF
8842#line 8843 "configure"
8843#include "confdefs.h"
8844#include <assert.h>
8845Syntax Error
8846EOF
8847ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8848{ (eval echo configure:8849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8849ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8850if test -z "$ac_err"; then
8851 :
8852else
8853 echo "$ac_err" >&5
8854 echo "configure: failed program was:" >&5
8855 cat conftest.$ac_ext >&5
8856 rm -rf conftest*
8857 CPP=/lib/cpp
8858fi
8859rm -f conftest*
8860fi
8861rm -f conftest*
8862fi
8863rm -f conftest*
8864 ac_cv_prog_CPP="$CPP"
8865fi
8866 CPP="$ac_cv_prog_CPP"
8867else
8868 ac_cv_prog_CPP="$CPP"
8869fi
8870echo "$ac_t""$CPP" 1>&6
8871
8872if test $ac_cv_prog_gcc = yes; then
8873 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8874echo "configure:8875: checking whether ${CC-cc} needs -traditional" >&5
8875if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8876 echo $ac_n "(cached) $ac_c" 1>&6
8877else
8878 ac_pattern="Autoconf.*'x'"
8879 cat > conftest.$ac_ext <<EOF
8880#line 8881 "configure"
8881#include "confdefs.h"
8882#include <sgtty.h>
8883Autoconf TIOCGETP
8884EOF
8885if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8886 egrep "$ac_pattern" >/dev/null 2>&1; then
8887 rm -rf conftest*
8888 ac_cv_prog_gcc_traditional=yes
8889else
8890 rm -rf conftest*
8891 ac_cv_prog_gcc_traditional=no
8892fi
8893rm -f conftest*
8894
8895
8896 if test $ac_cv_prog_gcc_traditional = no; then
8897 cat > conftest.$ac_ext <<EOF
8898#line 8899 "configure"
8899#include "confdefs.h"
8900#include <termio.h>
8901Autoconf TCGETA
8902EOF
8903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8904 egrep "$ac_pattern" >/dev/null 2>&1; then
8905 rm -rf conftest*
8906 ac_cv_prog_gcc_traditional=yes
8907fi
8908rm -f conftest*
8909
8910 fi
8911fi
8912
8913echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8914 if test $ac_cv_prog_gcc_traditional = yes; then
8915 CC="$CC -traditional"
8916 fi
8917fi
8918
8919
8920
8921ac_ext=C
8922# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8923ac_cpp='$CXXCPP $CPPFLAGS'
8924ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8925ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8926cross_compiling=$ac_cv_prog_cxx_cross
8927
8928
8929for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8930do
8931# Extract the first word of "$ac_prog", so it can be a program name with args.
8932set dummy $ac_prog; ac_word=$2
8933echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8934echo "configure:8935: checking for $ac_word" >&5
8935if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8936 echo $ac_n "(cached) $ac_c" 1>&6
8937else
8938 if test -n "$CXX"; then
8939 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8940else
8941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8942 ac_dummy="$PATH"
8943 for ac_dir in $ac_dummy; do
8944 test -z "$ac_dir" && ac_dir=.
8945 if test -f $ac_dir/$ac_word; then
8946 ac_cv_prog_CXX="$ac_prog"
8947 break
8948 fi
8949 done
8950 IFS="$ac_save_ifs"
8951fi
8952fi
8953CXX="$ac_cv_prog_CXX"
8954if test -n "$CXX"; then
8955 echo "$ac_t""$CXX" 1>&6
8956else
8957 echo "$ac_t""no" 1>&6
8958fi
8959
8960test -n "$CXX" && break
8961done
8962test -n "$CXX" || CXX="gcc"
8963
8964
8965echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8966echo "configure:8967: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8967
8968ac_ext=C
8969# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8970ac_cpp='$CXXCPP $CPPFLAGS'
8971ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8972ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8973cross_compiling=$ac_cv_prog_cxx_cross
8974
8975cat > conftest.$ac_ext << EOF
8976
8977#line 8978 "configure"
8978#include "confdefs.h"
8979
8980int main(){return(0);}
8981EOF
8982if { (eval echo configure:8983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8983 ac_cv_prog_cxx_works=yes
8984 # If we can't run a trivial program, we are probably using a cross compiler.
8985 if (./conftest; exit) 2>/dev/null; then
8986 ac_cv_prog_cxx_cross=no
8987 else
8988 ac_cv_prog_cxx_cross=yes
8989 fi
8990else
8991 echo "configure: failed program was:" >&5
8992 cat conftest.$ac_ext >&5
8993 ac_cv_prog_cxx_works=no
8994fi
8995rm -fr conftest*
8996ac_ext=C
8997# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8998ac_cpp='$CXXCPP $CPPFLAGS'
8999ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9000ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9001cross_compiling=$ac_cv_prog_cxx_cross
9002
9003echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9004if test $ac_cv_prog_cxx_works = no; then
9005 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9006fi
9007echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9008echo "configure:9009: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9009echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9010cross_compiling=$ac_cv_prog_cxx_cross
9011
9012echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9013echo "configure:9014: checking whether we are using GNU C++" >&5
9014if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9015 echo $ac_n "(cached) $ac_c" 1>&6
9016else
9017 cat > conftest.C <<EOF
9018#ifdef __GNUC__
9019 yes;
9020#endif
9021EOF
9022if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9023 ac_cv_prog_gxx=yes
9024else
9025 ac_cv_prog_gxx=no
9026fi
9027fi
9028
9029echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9030
9031if test $ac_cv_prog_gxx = yes; then
9032 GXX=yes
9033else
9034 GXX=
9035fi
9036
9037ac_test_CXXFLAGS="${CXXFLAGS+set}"
9038ac_save_CXXFLAGS="$CXXFLAGS"
9039CXXFLAGS=
9040echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9041echo "configure:9042: checking whether ${CXX-g++} accepts -g" >&5
9042if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9043 echo $ac_n "(cached) $ac_c" 1>&6
9044else
9045 echo 'void f(){}' > conftest.cc
9046if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9047 ac_cv_prog_cxx_g=yes
9048else
9049 ac_cv_prog_cxx_g=no
9050fi
9051rm -f conftest*
9052
9053fi
9054
9055echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9056if test "$ac_test_CXXFLAGS" = set; then
9057 CXXFLAGS="$ac_save_CXXFLAGS"
9058elif test $ac_cv_prog_cxx_g = yes; then
9059 if test "$GXX" = yes; then
9060 CXXFLAGS="-g -O2"
9061 else
9062 CXXFLAGS="-g"
9063 fi
9064else
9065 if test "$GXX" = yes; then
9066 CXXFLAGS="-O2"
9067 else
9068 CXXFLAGS=
9069 fi
9070fi
9071
9072
9073CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
9074
9075ac_ext=c
9076# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9077ac_cpp='$CPP $CPPFLAGS'
9078ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9079ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9080cross_compiling=$ac_cv_prog_cc_cross
9081
9082
9083# Extract the first word of "ranlib", so it can be a program name with args.
9084set dummy ranlib; ac_word=$2
9085echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9086echo "configure:9087: checking for $ac_word" >&5
9087if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9088 echo $ac_n "(cached) $ac_c" 1>&6
9089else
9090 if test -n "$RANLIB"; then
9091 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9092else
9093 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9094 ac_dummy="$PATH"
9095 for ac_dir in $ac_dummy; do
9096 test -z "$ac_dir" && ac_dir=.
9097 if test -f $ac_dir/$ac_word; then
9098 ac_cv_prog_RANLIB="ranlib"
9099 break
9100 fi
9101 done
9102 IFS="$ac_save_ifs"
9103 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9104fi
9105fi
9106RANLIB="$ac_cv_prog_RANLIB"
9107if test -n "$RANLIB"; then
9108 echo "$ac_t""$RANLIB" 1>&6
9109else
9110 echo "$ac_t""no" 1>&6
9111fi
9112
9113
9114# Extract the first word of "ar", so it can be a program name with args.
9115set dummy ar; ac_word=$2
9116echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9117echo "configure:9118: checking for $ac_word" >&5
9118if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9119 echo $ac_n "(cached) $ac_c" 1>&6
9120else
9121 if test -n "$AR"; then
9122 ac_cv_prog_AR="$AR" # Let the user override the test.
9123else
9124 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9125 ac_dummy="$PATH"
9126 for ac_dir in $ac_dummy; do
9127 test -z "$ac_dir" && ac_dir=.
9128 if test -f $ac_dir/$ac_word; then
9129 ac_cv_prog_AR="ar"
9130 break
9131 fi
9132 done
9133 IFS="$ac_save_ifs"
9134 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9135fi
9136fi
9137AR="$ac_cv_prog_AR"
9138if test -n "$AR"; then
9139 echo "$ac_t""$AR" 1>&6
9140else
9141 echo "$ac_t""no" 1>&6
9142fi
9143
9144
9145# Find a good install program. We prefer a C program (faster),
9146# so one script is as good as another. But avoid the broken or
9147# incompatible versions:
9148# SysV /etc/install, /usr/sbin/install
9149# SunOS /usr/etc/install
9150# IRIX /sbin/install
9151# AIX /bin/install
9152# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9153# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9154# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9155# ./install, which can be erroneously created by make from ./install.sh.
9156echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9157echo "configure:9158: checking for a BSD compatible install" >&5
9158if test -z "$INSTALL"; then
9159if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9160 echo $ac_n "(cached) $ac_c" 1>&6
9161else
9162 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9163 for ac_dir in $PATH; do
9164 # Account for people who put trailing slashes in PATH elements.
9165 case "$ac_dir/" in
9166 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9167 *)
9168 # OSF1 and SCO ODT 3.0 have their own names for install.
9169 # Don't use installbsd from OSF since it installs stuff as root
9170 # by default.
9171 for ac_prog in ginstall scoinst install; do
9172 if test -f $ac_dir/$ac_prog; then
9173 if test $ac_prog = install &&
9174 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9175 # AIX install. It has an incompatible calling convention.
9176 :
9177 else
9178 ac_cv_path_install="$ac_dir/$ac_prog -c"
9179 break 2
9180 fi
9181 fi
9182 done
9183 ;;
9184 esac
9185 done
9186 IFS="$ac_save_IFS"
9187
9188fi
9189 if test "${ac_cv_path_install+set}" = set; then
9190 INSTALL="$ac_cv_path_install"
9191 else
9192 # As a last resort, use the slow shell script. We don't cache a
9193 # path for INSTALL within a source directory, because that will
9194 # break other packages using the cache if that directory is
9195 # removed, or if the path is relative.
9196 INSTALL="$ac_install_sh"
9197 fi
9198fi
9199echo "$ac_t""$INSTALL" 1>&6
9200
9201# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9202# It thinks the first close brace ends the variable substitution.
9203test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9204
9205test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9206
9207test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9208
9209case "${host}" in
9210
9211 powerpc-*-darwin* )
9212 INSTALL_PROGRAM="cp -fp"
9213 INSTALL_DATA="cp -fp"
9214 ;;
9215 *)
9216 ;;
9217esac
9218
9219# Extract the first word of "strip", so it can be a program name with args.
9220set dummy strip; ac_word=$2
9221echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9222echo "configure:9223: checking for $ac_word" >&5
9223if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9224 echo $ac_n "(cached) $ac_c" 1>&6
9225else
9226 if test -n "$STRIP"; then
9227 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9228else
9229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9230 ac_dummy="$PATH"
9231 for ac_dir in $ac_dummy; do
9232 test -z "$ac_dir" && ac_dir=.
9233 if test -f $ac_dir/$ac_word; then
9234 ac_cv_prog_STRIP="strip"
9235 break
9236 fi
9237 done
9238 IFS="$ac_save_ifs"
9239 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9240fi
9241fi
9242STRIP="$ac_cv_prog_STRIP"
9243if test -n "$STRIP"; then
9244 echo "$ac_t""$STRIP" 1>&6
9245else
9246 echo "$ac_t""no" 1>&6
9247fi
9248
9249
9250echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9251echo "configure:9252: checking if make is GNU make" >&5
9252if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9253 echo $ac_n "(cached) $ac_c" 1>&6
9254else
9255
9256 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9257 egrep -s GNU); then
9258 wx_cv_prog_makeisgnu="yes"
9259 else
9260 wx_cv_prog_makeisgnu="no"
9261 fi
9262
9263fi
9264
9265echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9266
9267if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9268 IF_GNU_MAKE=""
9269else
9270 IF_GNU_MAKE="#"
9271fi
9272
9273
9274
9275if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9276echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9277echo "configure:9278: checking if make supports VPATH" >&5
9278if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9279 echo $ac_n "(cached) $ac_c" 1>&6
9280else
9281
9282cat - << EOF > confMake
9283check : file
9284 cp \$? \$@
9285 cp \$? final_file
9286EOF
9287
9288if test ! -d sub ; then
9289 mkdir sub
9290fi
9291echo dummy > sub/file
9292${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9293RESULT=$?
9294rm -f sub/file check final_file confMake
9295rmdir sub
9296if test "$RESULT" = 0; then
9297 wx_cv_prog_makevpath="yes"
9298else
9299 wx_cv_prog_makevpath="no"
9300fi
9301
9302fi
9303
9304echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9305
9306if test "x$wx_cv_prog_makevpath" != "xyes"; then
9307{ echo "configure: error:
9308You need a make-utility that is able to use the variable
9309VPATH correctly.
9310If your version of make does not support VPATH correctly,
9311please install GNU-make (possibly as gmake), and start
9312configure with the following command:
9313export MAKE=gmake; ./configure for sh-type shells
9314setenv MAKE gmake; ./configure for csh-type shells
9315Also please do remember to use gmake in this case every time
9316you are trying to compile.
9317" 1>&2; exit 1; }
9318fi fi
9319for ac_prog in 'bison -y' byacc
9320do
9321# Extract the first word of "$ac_prog", so it can be a program name with args.
9322set dummy $ac_prog; ac_word=$2
9323echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9324echo "configure:9325: checking for $ac_word" >&5
9325if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9326 echo $ac_n "(cached) $ac_c" 1>&6
9327else
9328 if test -n "$YACC"; then
9329 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9330else
9331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9332 ac_dummy="$PATH"
9333 for ac_dir in $ac_dummy; do
9334 test -z "$ac_dir" && ac_dir=.
9335 if test -f $ac_dir/$ac_word; then
9336 ac_cv_prog_YACC="$ac_prog"
9337 break
9338 fi
9339 done
9340 IFS="$ac_save_ifs"
9341fi
9342fi
9343YACC="$ac_cv_prog_YACC"
9344if test -n "$YACC"; then
9345 echo "$ac_t""$YACC" 1>&6
9346else
9347 echo "$ac_t""no" 1>&6
9348fi
9349
9350test -n "$YACC" && break
9351done
9352test -n "$YACC" || YACC="yacc"
9353
9354
9355# Extract the first word of "flex", so it can be a program name with args.
9356set dummy flex; ac_word=$2
9357echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9358echo "configure:9359: checking for $ac_word" >&5
9359if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9360 echo $ac_n "(cached) $ac_c" 1>&6
9361else
9362 if test -n "$LEX"; then
9363 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9364else
9365 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9366 ac_dummy="$PATH"
9367 for ac_dir in $ac_dummy; do
9368 test -z "$ac_dir" && ac_dir=.
9369 if test -f $ac_dir/$ac_word; then
9370 ac_cv_prog_LEX="flex"
9371 break
9372 fi
9373 done
9374 IFS="$ac_save_ifs"
9375 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9376fi
9377fi
9378LEX="$ac_cv_prog_LEX"
9379if test -n "$LEX"; then
9380 echo "$ac_t""$LEX" 1>&6
9381else
9382 echo "$ac_t""no" 1>&6
9383fi
9384
9385if test -z "$LEXLIB"
9386then
9387 case "$LEX" in
9388 flex*) ac_lib=fl ;;
9389 *) ac_lib=l ;;
9390 esac
9391 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9392echo "configure:9393: checking for yywrap in -l$ac_lib" >&5
9393ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9394if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9395 echo $ac_n "(cached) $ac_c" 1>&6
9396else
9397 ac_save_LIBS="$LIBS"
9398LIBS="-l$ac_lib $LIBS"
9399cat > conftest.$ac_ext <<EOF
9400#line 9401 "configure"
9401#include "confdefs.h"
9402/* Override any gcc2 internal prototype to avoid an error. */
9403/* We use char because int might match the return type of a gcc2
9404 builtin and then its argument prototype would still apply. */
9405char yywrap();
9406
9407int main() {
9408yywrap()
9409; return 0; }
9410EOF
9411if { (eval echo configure:9412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9412 rm -rf conftest*
9413 eval "ac_cv_lib_$ac_lib_var=yes"
9414else
9415 echo "configure: failed program was:" >&5
9416 cat conftest.$ac_ext >&5
9417 rm -rf conftest*
9418 eval "ac_cv_lib_$ac_lib_var=no"
9419fi
9420rm -f conftest*
9421LIBS="$ac_save_LIBS"
9422
9423fi
9424if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9425 echo "$ac_t""yes" 1>&6
9426 LEXLIB="-l$ac_lib"
9427else
9428 echo "$ac_t""no" 1>&6
9429fi
9430
9431fi
9432
9433
9434echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9435echo "configure:9436: checking whether ln -s works" >&5
9436if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9437 echo $ac_n "(cached) $ac_c" 1>&6
9438else
9439 rm -f conftestdata
9440if ln -s X conftestdata 2>/dev/null
9441then
9442 rm -f conftestdata
9443 ac_cv_prog_LN_S="ln -s"
9444else
9445 ac_cv_prog_LN_S=ln
9446fi
9447fi
9448LN_S="$ac_cv_prog_LN_S"
9449if test "$ac_cv_prog_LN_S" = "ln -s"; then
9450 echo "$ac_t""yes" 1>&6
9451else
9452 echo "$ac_t""no" 1>&6
9453fi
9454
9455
9456
9457SEARCH_INCLUDE="\
9458 /usr/local/include \
9459 \
9460 /usr/Motif-1.2/include \
9461 /usr/Motif-2.1/include \
9462 \
9463 /usr/include/Motif1.2 \
9464 /opt/xpm/include/X11 \
9465 /opt/GBxpm/include/ \
9466 /opt/GBxpm/X11/include/ \
9467 \
9468 /usr/Motif1.2/include \
9469 /usr/dt/include \
9470 /usr/openwin/include \
9471 \
9472 /usr/include/Xm \
9473 \
9474 /usr/X11R6/include \
9475 /usr/X11R6.4/include \
9476 /usr/X11R5/include \
9477 /usr/X11R4/include \
9478 \
9479 /usr/include/X11R6 \
9480 /usr/include/X11R5 \
9481 /usr/include/X11R4 \
9482 \
9483 /usr/local/X11R6/include \
9484 /usr/local/X11R5/include \
9485 /usr/local/X11R4/include \
9486 \
9487 /usr/local/include/X11R6 \
9488 /usr/local/include/X11R5 \
9489 /usr/local/include/X11R4 \
9490 \
9491 /usr/X11/include \
9492 /usr/include/X11 \
9493 /usr/local/X11/include \
9494 /usr/local/include/X11 \
9495 \
9496 /usr/X386/include \
9497 /usr/x386/include \
9498 /usr/XFree86/include/X11 \
9499 \
9500 X:/XFree86/include \
9501 X:/XFree86/include/X11 \
9502 \
9503 /usr/include/gtk \
9504 /usr/local/include/gtk \
9505 /usr/include/glib \
9506 /usr/local/include/glib \
9507 \
9508 /usr/include/qt \
9509 /usr/local/include/qt \
9510 \
9511 /usr/include/windows \
9512 /usr/include/wine \
9513 /usr/local/include/wine \
9514 \
9515 /usr/unsupported/include \
9516 /usr/athena/include \
9517 /usr/local/x11r5/include \
9518 /usr/lpp/Xamples/include \
9519 \
9520 /usr/openwin/share/include \
9521 \
9522 /usr/include"
9523
9524SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
9525
9526
9527cat > confcache <<\EOF
9528# This file is a shell script that caches the results of configure
9529# tests run on this system so they can be shared between configure
9530# scripts and configure runs. It is not useful on other systems.
9531# If it contains results you don't want to keep, you may remove or edit it.
9532#
9533# By default, configure uses ./config.cache as the cache file,
9534# creating it if it does not exist already. You can give configure
9535# the --cache-file=FILE option to use a different cache file; that is
9536# what configure does when it calls configure scripts in
9537# subdirectories, so they share the cache.
9538# Giving --cache-file=/dev/null disables caching, for debugging configure.
9539# config.status only pays attention to the cache file if you give it the
9540# --recheck option to rerun configure.
9541#
9542EOF
9543# The following way of writing the cache mishandles newlines in values,
9544# but we know of no workaround that is simple, portable, and efficient.
9545# So, don't put newlines in cache variables' values.
9546# Ultrix sh set writes to stderr and can't be redirected directly,
9547# and sets the high bit in the cache file unless we assign to the vars.
9548(set) 2>&1 |
9549 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9550 *ac_space=\ *)
9551 # `set' does not quote correctly, so add quotes (double-quote substitution
9552 # turns \\\\ into \\, and sed turns \\ into \).
9553 sed -n \
9554 -e "s/'/'\\\\''/g" \
9555 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9556 ;;
9557 *)
9558 # `set' quotes correctly as required by POSIX, so do not add quotes.
9559 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9560 ;;
9561 esac >> confcache
9562if cmp -s $cache_file confcache; then
9563 :
9564else
9565 if test -w $cache_file; then
9566 echo "updating cache $cache_file"
9567 cat confcache > $cache_file
9568 else
9569 echo "not updating unwritable cache $cache_file"
9570 fi
9571fi
9572rm -f confcache
9573
9574
9575
9576
9577REGEX_INCLUDE=
9578if test "$wxUSE_REGEX" != "no"; then
9579 cat >> confdefs.h <<\EOF
9580#define wxUSE_REGEX 1
9581EOF
9582
9583
9584 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
9585 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
9586echo $ac_n "checking for regex.h""... $ac_c" 1>&6
9587echo "configure:9588: checking for regex.h" >&5
9588if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9589 echo $ac_n "(cached) $ac_c" 1>&6
9590else
9591 cat > conftest.$ac_ext <<EOF
9592#line 9593 "configure"
9593#include "confdefs.h"
9594#include <regex.h>
9595EOF
9596ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9597{ (eval echo configure:9598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9598ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9599if test -z "$ac_err"; then
9600 rm -rf conftest*
9601 eval "ac_cv_header_$ac_safe=yes"
9602else
9603 echo "$ac_err" >&5
9604 echo "configure: failed program was:" >&5
9605 cat conftest.$ac_ext >&5
9606 rm -rf conftest*
9607 eval "ac_cv_header_$ac_safe=no"
9608fi
9609rm -f conftest*
9610fi
9611if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9612 echo "$ac_t""yes" 1>&6
9613 for ac_func in regcomp
9614do
9615echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9616echo "configure:9617: checking for $ac_func" >&5
9617if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9618 echo $ac_n "(cached) $ac_c" 1>&6
9619else
9620 cat > conftest.$ac_ext <<EOF
9621#line 9622 "configure"
9622#include "confdefs.h"
9623/* System header to define __stub macros and hopefully few prototypes,
9624 which can conflict with char $ac_func(); below. */
9625#include <assert.h>
9626/* Override any gcc2 internal prototype to avoid an error. */
9627/* We use char because int might match the return type of a gcc2
9628 builtin and then its argument prototype would still apply. */
9629char $ac_func();
9630
9631int main() {
9632
9633/* The GNU C library defines this for functions which it implements
9634 to always fail with ENOSYS. Some functions are actually named
9635 something starting with __ and the normal name is an alias. */
9636#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9637choke me
9638#else
9639$ac_func();
9640#endif
9641
9642; return 0; }
9643EOF
9644if { (eval echo configure:9645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9645 rm -rf conftest*
9646 eval "ac_cv_func_$ac_func=yes"
9647else
9648 echo "configure: failed program was:" >&5
9649 cat conftest.$ac_ext >&5
9650 rm -rf conftest*
9651 eval "ac_cv_func_$ac_func=no"
9652fi
9653rm -f conftest*
9654fi
9655
9656if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9657 echo "$ac_t""yes" 1>&6
9658 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9659 cat >> confdefs.h <<EOF
9660#define $ac_tr_func 1
9661EOF
9662
9663else
9664 echo "$ac_t""no" 1>&6
9665fi
9666done
9667
9668else
9669 echo "$ac_t""no" 1>&6
9670fi
9671
9672
9673 if test "x$ac_cv_func_regcomp" != "xyes"; then
9674 if test "$wxUSE_REGEX" = "sys" ; then
9675 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9676 else
9677 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
9678 wxUSE_REGEX=builtin
9679 fi
9680 else
9681 wxUSE_REGEX=sys
9682 fi
9683 fi
9684
9685 if test "$wxUSE_REGEX" = "builtin" ; then
9686 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9687 fi
9688fi
9689
9690
9691ZLIB_INCLUDE=
9692ZLIB_LINK=
9693if test "$wxUSE_ZLIB" != "no" ; then
9694 cat >> confdefs.h <<\EOF
9695#define wxUSE_ZLIB 1
9696EOF
9697
9698
9699 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9700 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9701echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
9702echo "configure:9703: checking for zlib.h" >&5
9703if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9704 echo $ac_n "(cached) $ac_c" 1>&6
9705else
9706 cat > conftest.$ac_ext <<EOF
9707#line 9708 "configure"
9708#include "confdefs.h"
9709#include <zlib.h>
9710EOF
9711ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9712{ (eval echo configure:9713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9713ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9714if test -z "$ac_err"; then
9715 rm -rf conftest*
9716 eval "ac_cv_header_$ac_safe=yes"
9717else
9718 echo "$ac_err" >&5
9719 echo "configure: failed program was:" >&5
9720 cat conftest.$ac_ext >&5
9721 rm -rf conftest*
9722 eval "ac_cv_header_$ac_safe=no"
9723fi
9724rm -f conftest*
9725fi
9726if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9727 echo "$ac_t""yes" 1>&6
9728 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
9729echo "configure:9730: checking for deflate in -lz" >&5
9730ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9731if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9732 echo $ac_n "(cached) $ac_c" 1>&6
9733else
9734 ac_save_LIBS="$LIBS"
9735LIBS="-lz $LIBS"
9736cat > conftest.$ac_ext <<EOF
9737#line 9738 "configure"
9738#include "confdefs.h"
9739/* Override any gcc2 internal prototype to avoid an error. */
9740/* We use char because int might match the return type of a gcc2
9741 builtin and then its argument prototype would still apply. */
9742char deflate();
9743
9744int main() {
9745deflate()
9746; return 0; }
9747EOF
9748if { (eval echo configure:9749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9749 rm -rf conftest*
9750 eval "ac_cv_lib_$ac_lib_var=yes"
9751else
9752 echo "configure: failed program was:" >&5
9753 cat conftest.$ac_ext >&5
9754 rm -rf conftest*
9755 eval "ac_cv_lib_$ac_lib_var=no"
9756fi
9757rm -f conftest*
9758LIBS="$ac_save_LIBS"
9759
9760fi
9761if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9762 echo "$ac_t""yes" 1>&6
9763 ZLIB_LINK=" -lz"
9764else
9765 echo "$ac_t""no" 1>&6
9766fi
9767
9768else
9769 echo "$ac_t""no" 1>&6
9770fi
9771
9772
9773 if test "x$ZLIB_LINK" = "x" ; then
9774 if test "$wxUSE_ZLIB" = "sys" ; then
9775 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9776 else
9777 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
9778 wxUSE_ZLIB=builtin
9779 fi
9780 else
9781 wxUSE_ZLIB=sys
9782 fi
9783 fi
9784
9785 if test "$wxUSE_ZLIB" = "builtin" ; then
9786 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9787 fi
9788fi
9789
9790
9791PNG_INCLUDE=
9792PNG_LINK=
9793if test "$wxUSE_LIBPNG" != "no" ; then
9794 cat >> confdefs.h <<\EOF
9795#define wxUSE_LIBPNG 1
9796EOF
9797
9798
9799 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
9800 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
9801 wxUSE_LIBPNG=sys
9802 fi
9803
9804 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
9805 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
9806 wxUSE_LIBPNG=builtin
9807 fi
9808
9809 if test "$wxUSE_MGL" != 1 ; then
9810 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9811 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9812echo $ac_n "checking for png.h""... $ac_c" 1>&6
9813echo "configure:9814: checking for png.h" >&5
9814if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9815 echo $ac_n "(cached) $ac_c" 1>&6
9816else
9817 cat > conftest.$ac_ext <<EOF
9818#line 9819 "configure"
9819#include "confdefs.h"
9820#include <png.h>
9821EOF
9822ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9823{ (eval echo configure:9824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9824ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9825if test -z "$ac_err"; then
9826 rm -rf conftest*
9827 eval "ac_cv_header_$ac_safe=yes"
9828else
9829 echo "$ac_err" >&5
9830 echo "configure: failed program was:" >&5
9831 cat conftest.$ac_ext >&5
9832 rm -rf conftest*
9833 eval "ac_cv_header_$ac_safe=no"
9834fi
9835rm -f conftest*
9836fi
9837if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9838 echo "$ac_t""yes" 1>&6
9839 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
9840echo "configure:9841: checking for png_check_sig in -lpng" >&5
9841ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9842if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9843 echo $ac_n "(cached) $ac_c" 1>&6
9844else
9845 ac_save_LIBS="$LIBS"
9846LIBS="-lpng -lz -lm $LIBS"
9847cat > conftest.$ac_ext <<EOF
9848#line 9849 "configure"
9849#include "confdefs.h"
9850/* Override any gcc2 internal prototype to avoid an error. */
9851/* We use char because int might match the return type of a gcc2
9852 builtin and then its argument prototype would still apply. */
9853char png_check_sig();
9854
9855int main() {
9856png_check_sig()
9857; return 0; }
9858EOF
9859if { (eval echo configure:9860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9860 rm -rf conftest*
9861 eval "ac_cv_lib_$ac_lib_var=yes"
9862else
9863 echo "configure: failed program was:" >&5
9864 cat conftest.$ac_ext >&5
9865 rm -rf conftest*
9866 eval "ac_cv_lib_$ac_lib_var=no"
9867fi
9868rm -f conftest*
9869LIBS="$ac_save_LIBS"
9870
9871fi
9872if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9873 echo "$ac_t""yes" 1>&6
9874 PNG_LINK=" -lpng"
9875else
9876 echo "$ac_t""no" 1>&6
9877fi
9878
9879
9880else
9881 echo "$ac_t""no" 1>&6
9882fi
9883
9884
9885 if test "x$PNG_LINK" = "x" ; then
9886 if test "$wxUSE_LIBPNG" = "sys" ; then
9887 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9888 else
9889 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
9890 wxUSE_LIBPNG=builtin
9891 fi
9892 else
9893 wxUSE_LIBPNG=yes
9894 fi
9895 fi
9896 fi
9897
9898 if test "$wxUSE_LIBPNG" = "builtin" ; then
9899 PNG_INCLUDE="-I\${top_srcdir}/src/png"
9900 fi
9901
9902 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
9903fi
9904
9905
9906JPEG_INCLUDE=
9907JPEG_LINK=
9908if test "$wxUSE_LIBJPEG" != "no" ; then
9909 cat >> confdefs.h <<\EOF
9910#define wxUSE_LIBJPEG 1
9911EOF
9912
9913
9914 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
9915 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
9916 wxUSE_LIBJPEG=sys
9917 fi
9918
9919 if test "$wxUSE_MGL" != 1 ; then
9920 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9921 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
9922echo "configure:9923: checking for jpeglib.h" >&5
9923 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
9924 echo $ac_n "(cached) $ac_c" 1>&6
9925else
9926 cat > conftest.$ac_ext <<EOF
9927#line 9928 "configure"
9928#include "confdefs.h"
9929
9930 #undef HAVE_STDLIB_H
9931 #include <stdio.h>
9932 #include <jpeglib.h>
9933
9934int main() {
9935
9936
9937; return 0; }
9938EOF
9939if { (eval echo configure:9940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9940 rm -rf conftest*
9941 ac_cv_header_jpeglib_h=yes
9942else
9943 echo "configure: failed program was:" >&5
9944 cat conftest.$ac_ext >&5
9945 rm -rf conftest*
9946 ac_cv_header_jpeglib_h=no
9947
9948fi
9949rm -f conftest*
9950
9951fi
9952
9953 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
9954
9955 if test "$ac_cv_header_jpeglib_h" = "yes"; then
9956 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
9957echo "configure:9958: checking for jpeg_read_header in -ljpeg" >&5
9958ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
9959if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9960 echo $ac_n "(cached) $ac_c" 1>&6
9961else
9962 ac_save_LIBS="$LIBS"
9963LIBS="-ljpeg $LIBS"
9964cat > conftest.$ac_ext <<EOF
9965#line 9966 "configure"
9966#include "confdefs.h"
9967/* Override any gcc2 internal prototype to avoid an error. */
9968/* We use char because int might match the return type of a gcc2
9969 builtin and then its argument prototype would still apply. */
9970char jpeg_read_header();
9971
9972int main() {
9973jpeg_read_header()
9974; return 0; }
9975EOF
9976if { (eval echo configure:9977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9977 rm -rf conftest*
9978 eval "ac_cv_lib_$ac_lib_var=yes"
9979else
9980 echo "configure: failed program was:" >&5
9981 cat conftest.$ac_ext >&5
9982 rm -rf conftest*
9983 eval "ac_cv_lib_$ac_lib_var=no"
9984fi
9985rm -f conftest*
9986LIBS="$ac_save_LIBS"
9987
9988fi
9989if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9990 echo "$ac_t""yes" 1>&6
9991 JPEG_LINK=" -ljpeg"
9992else
9993 echo "$ac_t""no" 1>&6
9994fi
9995
9996 fi
9997
9998 if test "x$JPEG_LINK" = "x" ; then
9999 if test "$wxUSE_LIBJPEG" = "sys" ; then
10000 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
10001 else
10002 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
10003 wxUSE_LIBJPEG=builtin
10004 fi
10005 else
10006 wxUSE_LIBJPEG=sys
10007 fi
10008 fi
10009 fi
10010
10011 if test "$wxUSE_LIBJPEG" = "builtin" ; then
10012 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
10013 fi
10014fi
10015
10016
10017TIFF_INCLUDE=
10018TIFF_LINK=
10019if test "$wxUSE_LIBTIFF" != "no" ; then
10020 cat >> confdefs.h <<\EOF
10021#define wxUSE_LIBTIFF 1
10022EOF
10023
10024
10025 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
10026 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
10027echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
10028echo "configure:10029: checking for tiffio.h" >&5
10029if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10030 echo $ac_n "(cached) $ac_c" 1>&6
10031else
10032 cat > conftest.$ac_ext <<EOF
10033#line 10034 "configure"
10034#include "confdefs.h"
10035#include <tiffio.h>
10036EOF
10037ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10038{ (eval echo configure:10039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10039ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10040if test -z "$ac_err"; then
10041 rm -rf conftest*
10042 eval "ac_cv_header_$ac_safe=yes"
10043else
10044 echo "$ac_err" >&5
10045 echo "configure: failed program was:" >&5
10046 cat conftest.$ac_ext >&5
10047 rm -rf conftest*
10048 eval "ac_cv_header_$ac_safe=no"
10049fi
10050rm -f conftest*
10051fi
10052if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10053 echo "$ac_t""yes" 1>&6
10054 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
10055echo "configure:10056: checking for TIFFError in -ltiff" >&5
10056ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
10057if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10058 echo $ac_n "(cached) $ac_c" 1>&6
10059else
10060 ac_save_LIBS="$LIBS"
10061LIBS="-ltiff -lm $LIBS"
10062cat > conftest.$ac_ext <<EOF
10063#line 10064 "configure"
10064#include "confdefs.h"
10065/* Override any gcc2 internal prototype to avoid an error. */
10066/* We use char because int might match the return type of a gcc2
10067 builtin and then its argument prototype would still apply. */
10068char TIFFError();
10069
10070int main() {
10071TIFFError()
10072; return 0; }
10073EOF
10074if { (eval echo configure:10075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10075 rm -rf conftest*
10076 eval "ac_cv_lib_$ac_lib_var=yes"
10077else
10078 echo "configure: failed program was:" >&5
10079 cat conftest.$ac_ext >&5
10080 rm -rf conftest*
10081 eval "ac_cv_lib_$ac_lib_var=no"
10082fi
10083rm -f conftest*
10084LIBS="$ac_save_LIBS"
10085
10086fi
10087if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10088 echo "$ac_t""yes" 1>&6
10089 TIFF_LINK=" -ltiff"
10090else
10091 echo "$ac_t""no" 1>&6
10092fi
10093
10094
10095else
10096 echo "$ac_t""no" 1>&6
10097fi
10098
10099
10100 if test "x$TIFF_LINK" = "x" ; then
10101 if test "$wxUSE_LIBTIFF" = "sys" ; then
10102 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
10103 else
10104 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
10105 wxUSE_LIBTIFF=builtin
10106 fi
10107 else
10108 wxUSE_LIBTIFF=sys
10109 fi
10110 fi
10111
10112 if test "$wxUSE_LIBTIFF" = "builtin" ; then
10113 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
10114 fi
10115fi
10116
10117
10118AFMINSTALL=
10119
10120TOOLKIT=
10121TOOLKIT_INCLUDE=
10122WIDGET_SET=
10123
10124if test "$USE_WIN32" = 1 ; then
10125 for ac_hdr in w32api.h
10126do
10127ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10128echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10129echo "configure:10130: checking for $ac_hdr" >&5
10130if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10131 echo $ac_n "(cached) $ac_c" 1>&6
10132else
10133 cat > conftest.$ac_ext <<EOF
10134#line 10135 "configure"
10135#include "confdefs.h"
10136#include <$ac_hdr>
10137EOF
10138ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10139{ (eval echo configure:10140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10140ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10141if test -z "$ac_err"; then
10142 rm -rf conftest*
10143 eval "ac_cv_header_$ac_safe=yes"
10144else
10145 echo "$ac_err" >&5
10146 echo "configure: failed program was:" >&5
10147 cat conftest.$ac_ext >&5
10148 rm -rf conftest*
10149 eval "ac_cv_header_$ac_safe=no"
10150fi
10151rm -f conftest*
10152fi
10153if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10154 echo "$ac_t""yes" 1>&6
10155 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10156 cat >> confdefs.h <<EOF
10157#define $ac_tr_hdr 1
10158EOF
10159
10160else
10161 echo "$ac_t""no" 1>&6
10162fi
10163done
10164
10165 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10166echo $ac_n "checking for windows.h""... $ac_c" 1>&6
10167echo "configure:10168: checking for windows.h" >&5
10168if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10169 echo $ac_n "(cached) $ac_c" 1>&6
10170else
10171 cat > conftest.$ac_ext <<EOF
10172#line 10173 "configure"
10173#include "confdefs.h"
10174#include <windows.h>
10175EOF
10176ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10177{ (eval echo configure:10178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10178ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10179if test -z "$ac_err"; then
10180 rm -rf conftest*
10181 eval "ac_cv_header_$ac_safe=yes"
10182else
10183 echo "$ac_err" >&5
10184 echo "configure: failed program was:" >&5
10185 cat conftest.$ac_ext >&5
10186 rm -rf conftest*
10187 eval "ac_cv_header_$ac_safe=no"
10188fi
10189rm -f conftest*
10190fi
10191if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10192 echo "$ac_t""yes" 1>&6
10193 :
10194else
10195 echo "$ac_t""no" 1>&6
10196
10197 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
10198
10199fi
10200
10201
10202 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
10203echo "configure:10204: checking if w32api has good enough MSIE support" >&5
10204if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
10205 echo $ac_n "(cached) $ac_c" 1>&6
10206else
10207
10208 cat > conftest.$ac_ext <<EOF
10209#line 10210 "configure"
10210#include "confdefs.h"
10211#include <w32api.h>
10212int main() {
10213
10214 #define wxCHECK_W32API_VERSION( major, minor ) \
10215 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
10216 && ( ( __W32API_MAJOR_VERSION > (major) ) \
10217 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
10218
10219 #if !wxCHECK_W32API_VERSION(1,1)
10220 #error You need w32api 1.1 or newer
10221 #endif
10222
10223; return 0; }
10224EOF
10225if { (eval echo configure:10226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10226 rm -rf conftest*
10227
10228 wx_cv_w32api_win32_ie=yes
10229
10230else
10231 echo "configure: failed program was:" >&5
10232 cat conftest.$ac_ext >&5
10233 rm -rf conftest*
10234
10235 wx_cv_w32api_win32_ie=no
10236
10237fi
10238rm -f conftest*
10239
10240fi
10241
10242echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
10243 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
10244 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
10245 fi
10246
10247 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
10248
10249 case "${host}" in
10250 *-*-cygwin* )
10251 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
10252 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
10253 esac
10254
10255 if test "$wxUSE_ODBC" = "yes" ; then
10256 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
10257 fi
10258
10259 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
10260 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
10261fi
10262
10263if test "$wxUSE_GUI" = "yes"; then
10264 USE_GUI=1
10265
10266 GUI_TK_LIBRARY=
10267
10268 WXGTK12=
10269 WXGTK127=
10270 WXGTK20=
10271
10272 if test "$wxUSE_MSW" = 1 ; then
10273 TOOLKIT=MSW
10274 GUIDIST=MSW_DIST
10275
10276 case "${host}" in
10277 *-*-mingw32* )
10278 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
10279 esac
10280 fi
10281
10282 if test "$wxUSE_GTK" = 1; then
10283 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
10284echo "configure:10285: checking for GTK+ version" >&5
10285
10286 gtk_version_cached=1
10287 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
10288 echo $ac_n "(cached) $ac_c" 1>&6
10289else
10290
10291 gtk_version_cached=0
10292 echo "$ac_t""" 1>&6
10293
10294 GTK_MODULES=
10295 if test "$wxUSE_THREADS" = "yes"; then
10296 GTK_MODULES=gthread
10297 fi
10298
10299 wx_cv_lib_gtk=
10300 if test "x$wxUSE_GTK2" = "xyes"; then
10301 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10302if test "${with_gtk_prefix+set}" = set; then
10303 withval="$with_gtk_prefix"
10304 gtk_config_prefix="$withval"
10305else
10306 gtk_config_prefix=""
10307fi
10308
10309# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10310if test "${with_gtk_exec_prefix+set}" = set; then
10311 withval="$with_gtk_exec_prefix"
10312 gtk_config_exec_prefix="$withval"
10313else
10314 gtk_config_exec_prefix=""
10315fi
10316
10317# Check whether --enable-gtktest or --disable-gtktest was given.
10318if test "${enable_gtktest+set}" = set; then
10319 enableval="$enable_gtktest"
10320 :
10321else
10322 enable_gtktest=yes
10323fi
10324
10325
10326 for module in . $GTK_MODULES
10327 do
10328 case "$module" in
10329 gthread)
10330 gtk_config_args="$gtk_config_args gthread"
10331 ;;
10332 esac
10333 done
10334
10335 if test x$gtk_config_exec_prefix != x ; then
10336 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10337 if test x${GTK_CONFIG_2_0+set} != xset ; then
10338 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
10339 fi
10340 fi
10341 if test x$gtk_config_prefix != x ; then
10342 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10343 if test x${GTK_CONFIG_2_0+set} != xset ; then
10344 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
10345 fi
10346 fi
10347
10348 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
10349set dummy gtk-config-2.0; ac_word=$2
10350echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10351echo "configure:10352: checking for $ac_word" >&5
10352if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
10353 echo $ac_n "(cached) $ac_c" 1>&6
10354else
10355 case "$GTK_CONFIG_2_0" in
10356 /*)
10357 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
10358 ;;
10359 ?:/*)
10360 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
10361 ;;
10362 *)
10363 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10364 ac_dummy="$PATH"
10365 for ac_dir in $ac_dummy; do
10366 test -z "$ac_dir" && ac_dir=.
10367 if test -f $ac_dir/$ac_word; then
10368 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
10369 break
10370 fi
10371 done
10372 IFS="$ac_save_ifs"
10373 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
10374 ;;
10375esac
10376fi
10377GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
10378if test -n "$GTK_CONFIG_2_0"; then
10379 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
10380else
10381 echo "$ac_t""no" 1>&6
10382fi
10383
10384 min_gtk_version=1.3.1
10385 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10386echo "configure:10387: checking for GTK - version >= $min_gtk_version" >&5
10387 no_gtk=""
10388 if test "$GTK_CONFIG_2_0" = "no" ; then
10389 no_gtk=yes
10390 else
10391 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
10392 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
10393 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10394 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10395 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10396 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10397 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10398 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10399 if test "x$enable_gtktest" = "xyes" ; then
10400 ac_save_CFLAGS="$CFLAGS"
10401 ac_save_LIBS="$LIBS"
10402 CFLAGS="$CFLAGS $GTK_CFLAGS"
10403 LIBS="$GTK_LIBS $LIBS"
10404 rm -f conf.gtktest
10405 if test "$cross_compiling" = yes; then
10406 echo $ac_n "cross compiling; assumed OK... $ac_c"
10407else
10408 cat > conftest.$ac_ext <<EOF
10409#line 10410 "configure"
10410#include "confdefs.h"
10411
10412#include <gtk/gtk.h>
10413#include <stdio.h>
10414#include <stdlib.h>
10415
10416int
10417main ()
10418{
10419 int major, minor, micro;
10420 char *tmp_version;
10421
10422 system ("touch conf.gtktest");
10423
10424 /* HP/UX 9 (%@#!) writes to sscanf strings */
10425 tmp_version = g_strdup("$min_gtk_version");
10426 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10427 printf("%s, bad version string\n", "$min_gtk_version");
10428 exit(1);
10429 }
10430
10431 if ((gtk_major_version != $gtk_config_major_version) ||
10432 (gtk_minor_version != $gtk_config_minor_version) ||
10433 (gtk_micro_version != $gtk_config_micro_version))
10434 {
10435 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10436 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10437 gtk_major_version, gtk_minor_version, gtk_micro_version);
10438 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
10439 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10440 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10441 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10442 printf("*** required on your system.\n");
10443 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
10444 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
10445 printf("*** before re-running configure\n");
10446 }
10447#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10448 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10449 (gtk_minor_version != GTK_MINOR_VERSION) ||
10450 (gtk_micro_version != GTK_MICRO_VERSION))
10451 {
10452 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10453 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10454 printf("*** library (version %d.%d.%d)\n",
10455 gtk_major_version, gtk_minor_version, gtk_micro_version);
10456 }
10457#endif /* defined (GTK_MAJOR_VERSION) ... */
10458 else
10459 {
10460 if ((gtk_major_version > major) ||
10461 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10462 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10463 {
10464 return 0;
10465 }
10466 else
10467 {
10468 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10469 gtk_major_version, gtk_minor_version, gtk_micro_version);
10470 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10471 major, minor, micro);
10472 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10473 printf("***\n");
10474 printf("*** If you have already installed a sufficiently new version, this error\n");
10475 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
10476 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10477 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
10478 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
10479 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10480 printf("*** so that the correct libraries are found at run-time))\n");
10481 }
10482 }
10483 return 1;
10484}
10485
10486EOF
10487if { (eval echo configure:10488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10488then
10489 :
10490else
10491 echo "configure: failed program was:" >&5
10492 cat conftest.$ac_ext >&5
10493 rm -fr conftest*
10494 no_gtk=yes
10495fi
10496rm -fr conftest*
10497fi
10498
10499 CFLAGS="$ac_save_CFLAGS"
10500 LIBS="$ac_save_LIBS"
10501 fi
10502 fi
10503 if test "x$no_gtk" = x ; then
10504 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
10505 wx_cv_lib_gtk=2.0
10506 else
10507 echo "$ac_t""no" 1>&6
10508 if test "$GTK_CONFIG_2_0" = "no" ; then
10509 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
10510 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10511 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
10512 echo "*** full path to gtk-config-2.0."
10513 else
10514 if test -f conf.gtktest ; then
10515 :
10516 else
10517 echo "*** Could not run GTK test program, checking why..."
10518 CFLAGS="$CFLAGS $GTK_CFLAGS"
10519 LIBS="$LIBS $GTK_LIBS"
10520 cat > conftest.$ac_ext <<EOF
10521#line 10522 "configure"
10522#include "confdefs.h"
10523
10524#include <gtk/gtk.h>
10525#include <stdio.h>
10526
10527int main() {
10528 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10529; return 0; }
10530EOF
10531if { (eval echo configure:10532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10532 rm -rf conftest*
10533 echo "*** The test program compiled, but did not run. This usually means"
10534 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10535 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10536 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10537 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10538 echo "*** is required on your system"
10539 echo "***"
10540 echo "*** If you have an old version installed, it is best to remove it, although"
10541 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10542 echo "***"
10543 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10544 echo "*** came with the system with the command"
10545 echo "***"
10546 echo "*** rpm --erase --nodeps gtk gtk-devel"
10547else
10548 echo "configure: failed program was:" >&5
10549 cat conftest.$ac_ext >&5
10550 rm -rf conftest*
10551 echo "*** The test program failed to compile or link. See the file config.log for the"
10552 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10553 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10554 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
10555fi
10556rm -f conftest*
10557 CFLAGS="$ac_save_CFLAGS"
10558 LIBS="$ac_save_LIBS"
10559 fi
10560 fi
10561 GTK_CFLAGS=""
10562 GTK_LIBS=""
10563 :
10564 fi
10565
10566
10567 rm -f conf.gtktest
10568
10569 fi
10570
10571 if test -z "$wx_cv_lib_gtk"; then
10572 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10573if test "${with_gtk_prefix+set}" = set; then
10574 withval="$with_gtk_prefix"
10575 gtk_config_prefix="$withval"
10576else
10577 gtk_config_prefix=""
10578fi
10579
10580# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10581if test "${with_gtk_exec_prefix+set}" = set; then
10582 withval="$with_gtk_exec_prefix"
10583 gtk_config_exec_prefix="$withval"
10584else
10585 gtk_config_exec_prefix=""
10586fi
10587
10588# Check whether --enable-gtktest or --disable-gtktest was given.
10589if test "${enable_gtktest+set}" = set; then
10590 enableval="$enable_gtktest"
10591 :
10592else
10593 enable_gtktest=yes
10594fi
10595
10596
10597 for module in . $GTK_MODULES
10598 do
10599 case "$module" in
10600 gthread)
10601 gtk_config_args="$gtk_config_args gthread"
10602 ;;
10603 esac
10604 done
10605
10606 if test x$gtk_config_exec_prefix != x ; then
10607 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10608 if test x${GTK_CONFIG+set} != xset ; then
10609 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10610 fi
10611 fi
10612 if test x$gtk_config_prefix != x ; then
10613 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10614 if test x${GTK_CONFIG+set} != xset ; then
10615 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10616 fi
10617 fi
10618
10619 # Extract the first word of "gtk-config", so it can be a program name with args.
10620set dummy gtk-config; ac_word=$2
10621echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10622echo "configure:10623: checking for $ac_word" >&5
10623if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10624 echo $ac_n "(cached) $ac_c" 1>&6
10625else
10626 case "$GTK_CONFIG" in
10627 /*)
10628 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10629 ;;
10630 ?:/*)
10631 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10632 ;;
10633 *)
10634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10635 ac_dummy="$PATH"
10636 for ac_dir in $ac_dummy; do
10637 test -z "$ac_dir" && ac_dir=.
10638 if test -f $ac_dir/$ac_word; then
10639 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10640 break
10641 fi
10642 done
10643 IFS="$ac_save_ifs"
10644 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10645 ;;
10646esac
10647fi
10648GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10649if test -n "$GTK_CONFIG"; then
10650 echo "$ac_t""$GTK_CONFIG" 1>&6
10651else
10652 echo "$ac_t""no" 1>&6
10653fi
10654
10655 min_gtk_version=1.2.7
10656 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10657echo "configure:10658: checking for GTK - version >= $min_gtk_version" >&5
10658 no_gtk=""
10659 if test "$GTK_CONFIG" = "no" ; then
10660 no_gtk=yes
10661 else
10662 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10663 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10664 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10665 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10666 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10667 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10668 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10669 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10670 if test "x$enable_gtktest" = "xyes" ; then
10671 ac_save_CFLAGS="$CFLAGS"
10672 ac_save_LIBS="$LIBS"
10673 CFLAGS="$CFLAGS $GTK_CFLAGS"
10674 LIBS="$GTK_LIBS $LIBS"
10675 rm -f conf.gtktest
10676 if test "$cross_compiling" = yes; then
10677 echo $ac_n "cross compiling; assumed OK... $ac_c"
10678else
10679 cat > conftest.$ac_ext <<EOF
10680#line 10681 "configure"
10681#include "confdefs.h"
10682
10683#include <gtk/gtk.h>
10684#include <stdio.h>
10685#include <stdlib.h>
10686
10687int
10688main ()
10689{
10690 int major, minor, micro;
10691 char *tmp_version;
10692
10693 system ("touch conf.gtktest");
10694
10695 /* HP/UX 9 (%@#!) writes to sscanf strings */
10696 tmp_version = g_strdup("$min_gtk_version");
10697 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10698 printf("%s, bad version string\n", "$min_gtk_version");
10699 exit(1);
10700 }
10701
10702 if ((gtk_major_version != $gtk_config_major_version) ||
10703 (gtk_minor_version != $gtk_config_minor_version) ||
10704 (gtk_micro_version != $gtk_config_micro_version))
10705 {
10706 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10707 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10708 gtk_major_version, gtk_minor_version, gtk_micro_version);
10709 printf ("*** was found! If gtk-config was correct, then it is best\n");
10710 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10711 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10712 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10713 printf("*** required on your system.\n");
10714 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10715 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10716 printf("*** before re-running configure\n");
10717 }
10718#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10719 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10720 (gtk_minor_version != GTK_MINOR_VERSION) ||
10721 (gtk_micro_version != GTK_MICRO_VERSION))
10722 {
10723 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10724 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10725 printf("*** library (version %d.%d.%d)\n",
10726 gtk_major_version, gtk_minor_version, gtk_micro_version);
10727 }
10728#endif /* defined (GTK_MAJOR_VERSION) ... */
10729 else
10730 {
10731 if ((gtk_major_version > major) ||
10732 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10733 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10734 {
10735 return 0;
10736 }
10737 else
10738 {
10739 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10740 gtk_major_version, gtk_minor_version, gtk_micro_version);
10741 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10742 major, minor, micro);
10743 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10744 printf("***\n");
10745 printf("*** If you have already installed a sufficiently new version, this error\n");
10746 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10747 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10748 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10749 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10750 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10751 printf("*** so that the correct libraries are found at run-time))\n");
10752 }
10753 }
10754 return 1;
10755}
10756
10757EOF
10758if { (eval echo configure:10759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10759then
10760 :
10761else
10762 echo "configure: failed program was:" >&5
10763 cat conftest.$ac_ext >&5
10764 rm -fr conftest*
10765 no_gtk=yes
10766fi
10767rm -fr conftest*
10768fi
10769
10770 CFLAGS="$ac_save_CFLAGS"
10771 LIBS="$ac_save_LIBS"
10772 fi
10773 fi
10774 if test "x$no_gtk" = x ; then
10775 echo "$ac_t""yes" 1>&6
10776 wx_cv_lib_gtk=1.2.7
10777 else
10778 echo "$ac_t""no" 1>&6
10779 if test "$GTK_CONFIG" = "no" ; then
10780 echo "*** The gtk-config script installed by GTK could not be found"
10781 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10782 echo "*** your path, or set the GTK_CONFIG environment variable to the"
10783 echo "*** full path to gtk-config."
10784 else
10785 if test -f conf.gtktest ; then
10786 :
10787 else
10788 echo "*** Could not run GTK test program, checking why..."
10789 CFLAGS="$CFLAGS $GTK_CFLAGS"
10790 LIBS="$LIBS $GTK_LIBS"
10791 cat > conftest.$ac_ext <<EOF
10792#line 10793 "configure"
10793#include "confdefs.h"
10794
10795#include <gtk/gtk.h>
10796#include <stdio.h>
10797
10798int main() {
10799 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10800; return 0; }
10801EOF
10802if { (eval echo configure:10803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10803 rm -rf conftest*
10804 echo "*** The test program compiled, but did not run. This usually means"
10805 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10806 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10807 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10808 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10809 echo "*** is required on your system"
10810 echo "***"
10811 echo "*** If you have an old version installed, it is best to remove it, although"
10812 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10813 echo "***"
10814 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10815 echo "*** came with the system with the command"
10816 echo "***"
10817 echo "*** rpm --erase --nodeps gtk gtk-devel"
10818else
10819 echo "configure: failed program was:" >&5
10820 cat conftest.$ac_ext >&5
10821 rm -rf conftest*
10822 echo "*** The test program failed to compile or link. See the file config.log for the"
10823 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10824 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10825 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
10826fi
10827rm -f conftest*
10828 CFLAGS="$ac_save_CFLAGS"
10829 LIBS="$ac_save_LIBS"
10830 fi
10831 fi
10832 GTK_CFLAGS=""
10833 GTK_LIBS=""
10834 :
10835 fi
10836
10837
10838 rm -f conf.gtktest
10839
10840 fi
10841
10842 if test -z "$wx_cv_lib_gtk"; then
10843 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10844if test "${with_gtk_prefix+set}" = set; then
10845 withval="$with_gtk_prefix"
10846 gtk_config_prefix="$withval"
10847else
10848 gtk_config_prefix=""
10849fi
10850
10851# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10852if test "${with_gtk_exec_prefix+set}" = set; then
10853 withval="$with_gtk_exec_prefix"
10854 gtk_config_exec_prefix="$withval"
10855else
10856 gtk_config_exec_prefix=""
10857fi
10858
10859# Check whether --enable-gtktest or --disable-gtktest was given.
10860if test "${enable_gtktest+set}" = set; then
10861 enableval="$enable_gtktest"
10862 :
10863else
10864 enable_gtktest=yes
10865fi
10866
10867
10868 for module in . $GTK_MODULES
10869 do
10870 case "$module" in
10871 gthread)
10872 gtk_config_args="$gtk_config_args gthread"
10873 ;;
10874 esac
10875 done
10876
10877 if test x$gtk_config_exec_prefix != x ; then
10878 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10879 if test x${GTK_CONFIG+set} != xset ; then
10880 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10881 fi
10882 fi
10883 if test x$gtk_config_prefix != x ; then
10884 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10885 if test x${GTK_CONFIG+set} != xset ; then
10886 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10887 fi
10888 fi
10889
10890 # Extract the first word of "gtk-config", so it can be a program name with args.
10891set dummy gtk-config; ac_word=$2
10892echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10893echo "configure:10894: checking for $ac_word" >&5
10894if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10895 echo $ac_n "(cached) $ac_c" 1>&6
10896else
10897 case "$GTK_CONFIG" in
10898 /*)
10899 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10900 ;;
10901 ?:/*)
10902 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10903 ;;
10904 *)
10905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10906 ac_dummy="$PATH"
10907 for ac_dir in $ac_dummy; do
10908 test -z "$ac_dir" && ac_dir=.
10909 if test -f $ac_dir/$ac_word; then
10910 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10911 break
10912 fi
10913 done
10914 IFS="$ac_save_ifs"
10915 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10916 ;;
10917esac
10918fi
10919GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10920if test -n "$GTK_CONFIG"; then
10921 echo "$ac_t""$GTK_CONFIG" 1>&6
10922else
10923 echo "$ac_t""no" 1>&6
10924fi
10925
10926 min_gtk_version=1.2.3
10927 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10928echo "configure:10929: checking for GTK - version >= $min_gtk_version" >&5
10929 no_gtk=""
10930 if test "$GTK_CONFIG" = "no" ; then
10931 no_gtk=yes
10932 else
10933 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10934 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10935 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10936 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10937 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10938 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10939 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10940 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10941 if test "x$enable_gtktest" = "xyes" ; then
10942 ac_save_CFLAGS="$CFLAGS"
10943 ac_save_LIBS="$LIBS"
10944 CFLAGS="$CFLAGS $GTK_CFLAGS"
10945 LIBS="$GTK_LIBS $LIBS"
10946 rm -f conf.gtktest
10947 if test "$cross_compiling" = yes; then
10948 echo $ac_n "cross compiling; assumed OK... $ac_c"
10949else
10950 cat > conftest.$ac_ext <<EOF
10951#line 10952 "configure"
10952#include "confdefs.h"
10953
10954#include <gtk/gtk.h>
10955#include <stdio.h>
10956#include <stdlib.h>
10957
10958int
10959main ()
10960{
10961 int major, minor, micro;
10962 char *tmp_version;
10963
10964 system ("touch conf.gtktest");
10965
10966 /* HP/UX 9 (%@#!) writes to sscanf strings */
10967 tmp_version = g_strdup("$min_gtk_version");
10968 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10969 printf("%s, bad version string\n", "$min_gtk_version");
10970 exit(1);
10971 }
10972
10973 if ((gtk_major_version != $gtk_config_major_version) ||
10974 (gtk_minor_version != $gtk_config_minor_version) ||
10975 (gtk_micro_version != $gtk_config_micro_version))
10976 {
10977 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10978 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10979 gtk_major_version, gtk_minor_version, gtk_micro_version);
10980 printf ("*** was found! If gtk-config was correct, then it is best\n");
10981 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10982 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10983 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10984 printf("*** required on your system.\n");
10985 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10986 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10987 printf("*** before re-running configure\n");
10988 }
10989#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10990 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10991 (gtk_minor_version != GTK_MINOR_VERSION) ||
10992 (gtk_micro_version != GTK_MICRO_VERSION))
10993 {
10994 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10995 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10996 printf("*** library (version %d.%d.%d)\n",
10997 gtk_major_version, gtk_minor_version, gtk_micro_version);
10998 }
10999#endif /* defined (GTK_MAJOR_VERSION) ... */
11000 else
11001 {
11002 if ((gtk_major_version > major) ||
11003 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11004 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11005 {
11006 return 0;
11007 }
11008 else
11009 {
11010 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11011 gtk_major_version, gtk_minor_version, gtk_micro_version);
11012 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11013 major, minor, micro);
11014 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11015 printf("***\n");
11016 printf("*** If you have already installed a sufficiently new version, this error\n");
11017 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
11018 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11019 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
11020 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
11021 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11022 printf("*** so that the correct libraries are found at run-time))\n");
11023 }
11024 }
11025 return 1;
11026}
11027
11028EOF
11029if { (eval echo configure:11030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11030then
11031 :
11032else
11033 echo "configure: failed program was:" >&5
11034 cat conftest.$ac_ext >&5
11035 rm -fr conftest*
11036 no_gtk=yes
11037fi
11038rm -fr conftest*
11039fi
11040
11041 CFLAGS="$ac_save_CFLAGS"
11042 LIBS="$ac_save_LIBS"
11043 fi
11044 fi
11045 if test "x$no_gtk" = x ; then
11046 echo "$ac_t""yes" 1>&6
11047 wx_cv_lib_gtk=1.2.3
11048 else
11049 echo "$ac_t""no" 1>&6
11050 if test "$GTK_CONFIG" = "no" ; then
11051 echo "*** The gtk-config script installed by GTK could not be found"
11052 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
11053 echo "*** your path, or set the GTK_CONFIG environment variable to the"
11054 echo "*** full path to gtk-config."
11055 else
11056 if test -f conf.gtktest ; then
11057 :
11058 else
11059 echo "*** Could not run GTK test program, checking why..."
11060 CFLAGS="$CFLAGS $GTK_CFLAGS"
11061 LIBS="$LIBS $GTK_LIBS"
11062 cat > conftest.$ac_ext <<EOF
11063#line 11064 "configure"
11064#include "confdefs.h"
11065
11066#include <gtk/gtk.h>
11067#include <stdio.h>
11068
11069int main() {
11070 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
11071; return 0; }
11072EOF
11073if { (eval echo configure:11074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11074 rm -rf conftest*
11075 echo "*** The test program compiled, but did not run. This usually means"
11076 echo "*** that the run-time linker is not finding GTK or finding the wrong"
11077 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
11078 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11079 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11080 echo "*** is required on your system"
11081 echo "***"
11082 echo "*** If you have an old version installed, it is best to remove it, although"
11083 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11084 echo "***"
11085 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
11086 echo "*** came with the system with the command"
11087 echo "***"
11088 echo "*** rpm --erase --nodeps gtk gtk-devel"
11089else
11090 echo "configure: failed program was:" >&5
11091 cat conftest.$ac_ext >&5
11092 rm -rf conftest*
11093 echo "*** The test program failed to compile or link. See the file config.log for the"
11094 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
11095 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
11096 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
11097fi
11098rm -f conftest*
11099 CFLAGS="$ac_save_CFLAGS"
11100 LIBS="$ac_save_LIBS"
11101 fi
11102 fi
11103 GTK_CFLAGS=""
11104 GTK_LIBS=""
11105 :
11106 fi
11107
11108
11109 rm -f conf.gtktest
11110
11111 fi
11112
11113 if test -z "$wx_cv_lib_gtk"; then
11114 wx_cv_lib_gtk=none
11115 else
11116 wx_cv_cflags_gtk=$GTK_CFLAGS
11117 wx_cv_libs_gtk=$GTK_LIBS
11118 fi
11119
11120
11121fi
11122
11123
11124 if test "$gtk_version_cached" = 1; then
11125 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
11126 fi
11127
11128 case "$wx_cv_lib_gtk" in
11129 2.0) WXGTK20=1
11130 ;;
11131 1.2.7) WXGTK127=1
11132 WXGTK12=1
11133 ;;
11134 1.2.3) WXGTK12=1
11135 ;;
11136 *) { echo "configure: error:
11137Please check that gtk-config is in path, the directory
11138where GTK+ libraries are installed (returned by
11139'gtk-config --libs' command) is in LD_LIBRARY_PATH or
11140equivalent variable and GTK+ is version 1.2.3 or above.
11141 " 1>&2; exit 1; }
11142 ;;
11143 esac
11144
11145 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11146 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
11147
11148 AFMINSTALL=afminstall
11149 TOOLKIT=GTK
11150 GUIDIST=GTK_DIST
11151
11152 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
11153echo "configure:11154: checking for gdk_im_open in -lgdk" >&5
11154ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
11155if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11156 echo $ac_n "(cached) $ac_c" 1>&6
11157else
11158 ac_save_LIBS="$LIBS"
11159LIBS="-lgdk $LIBS"
11160cat > conftest.$ac_ext <<EOF
11161#line 11162 "configure"
11162#include "confdefs.h"
11163/* Override any gcc2 internal prototype to avoid an error. */
11164/* We use char because int might match the return type of a gcc2
11165 builtin and then its argument prototype would still apply. */
11166char gdk_im_open();
11167
11168int main() {
11169gdk_im_open()
11170; return 0; }
11171EOF
11172if { (eval echo configure:11173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11173 rm -rf conftest*
11174 eval "ac_cv_lib_$ac_lib_var=yes"
11175else
11176 echo "configure: failed program was:" >&5
11177 cat conftest.$ac_ext >&5
11178 rm -rf conftest*
11179 eval "ac_cv_lib_$ac_lib_var=no"
11180fi
11181rm -f conftest*
11182LIBS="$ac_save_LIBS"
11183
11184fi
11185if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11186 echo "$ac_t""yes" 1>&6
11187 cat >> confdefs.h <<\EOF
11188#define HAVE_XIM 1
11189EOF
11190
11191else
11192 echo "$ac_t""no" 1>&6
11193fi
11194
11195 fi
11196
11197 if test "$wxUSE_MGL" = 1; then
11198 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
11199echo "configure:11200: checking for SciTech MGL library" >&5
11200 if test "x$MGL_ROOT" = x ; then
11201 echo "$ac_t""not found" 1>&6
11202 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
11203 else
11204 echo "$ac_t""$MGL_ROOT" 1>&6
11205 fi
11206
11207 case "${host}" in
11208 *-*-linux* )
11209 mgl_os=linux/gcc/glibc
11210 ;;
11211 *-pc-msdosdjgpp )
11212 mgl_os=dos32/dj2
11213 ;;
11214 *)
11215 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
11216 esac
11217
11218 mgl_lib_type=""
11219
11220 if test "$wxUSE_DEBUG_FLAG" = yes ; then
11221 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
11222 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
11223 mgl_lib_type=debug
11224 fi
11225 fi
11226 if test "x$mgl_lib_type" = x ; then
11227 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
11228 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
11229 mgl_lib_type=release
11230 else
11231 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
11232 fi
11233 fi
11234
11235 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
11236 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
11237
11238 AFMINSTALL=afminstall
11239 TOOLKIT=MGL
11240 GUIDIST=MGL_DIST
11241 fi
11242
11243 if test "$wxUSE_MICROWIN" = 1; then
11244 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
11245echo "configure:11246: checking for MicroWindows" >&5
11246 if test "x$MICROWINDOWS" = x ; then
11247 echo "$ac_t""not found" 1>&6
11248 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
11249 else
11250 echo "$ac_t""$MICROWINDOWS" 1>&6
11251 fi
11252
11253 if test -f $MICROWINDOWS/lib/libmwin.a; then
11254 echo "$ac_t""MicroWindows' libraries found." 1>&6
11255 else
11256 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
11257 fi
11258
11259 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
11260 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
11261
11262 AFMINSTALL=afminstall
11263 TOOLKIT=MICROWIN
11264 GUIDIST=MICROWIN_DIST
11265
11266 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
11267 fi
11268
11269 if test "$wxUSE_X11" = 1; then
11270 # If we find X, set shell vars x_includes and x_libraries to the
11271# paths, otherwise set no_x=yes.
11272# Uses ac_ vars as temps to allow command line to override cache and checks.
11273# --without-x overrides everything else, but does not touch the cache.
11274echo $ac_n "checking for X""... $ac_c" 1>&6
11275echo "configure:11276: checking for X" >&5
11276
11277# Check whether --with-x or --without-x was given.
11278if test "${with_x+set}" = set; then
11279 withval="$with_x"
11280 :
11281fi
11282
11283# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11284if test "x$with_x" = xno; then
11285 # The user explicitly disabled X.
11286 have_x=disabled
11287else
11288 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11289 # Both variables are already set.
11290 have_x=yes
11291 else
11292if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
11293 echo $ac_n "(cached) $ac_c" 1>&6
11294else
11295 # One or both of the vars are not set, and there is no cached value.
11296ac_x_includes=NO ac_x_libraries=NO
11297rm -fr conftestdir
11298if mkdir conftestdir; then
11299 cd conftestdir
11300 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
11301 cat > Imakefile <<'EOF'
11302acfindx:
11303 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11304EOF
11305 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11306 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11307 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11308 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11309 for ac_extension in a so sl; do
11310 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
11311 test -f $ac_im_libdir/libX11.$ac_extension; then
11312 ac_im_usrlibdir=$ac_im_libdir; break
11313 fi
11314 done
11315 # Screen out bogus values from the imake configuration. They are
11316 # bogus both because they are the default anyway, and because
11317 # using them would break gcc on systems where it needs fixed includes.
11318 case "$ac_im_incroot" in
11319 /usr/include) ;;
11320 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
11321 esac
11322 case "$ac_im_usrlibdir" in
11323 /usr/lib | /lib) ;;
11324 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
11325 esac
11326 fi
11327 cd ..
11328 rm -fr conftestdir
11329fi
11330
11331if test "$ac_x_includes" = NO; then
11332 # Guess where to find include files, by looking for this one X11 .h file.
11333 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
11334
11335 # First, try using that file with no special directory specified.
11336cat > conftest.$ac_ext <<EOF
11337#line 11338 "configure"
11338#include "confdefs.h"
11339#include <$x_direct_test_include>
11340EOF
11341ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11342{ (eval echo configure:11343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11343ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11344if test -z "$ac_err"; then
11345 rm -rf conftest*
11346 # We can compile using X headers with no special include directory.
11347ac_x_includes=
11348else
11349 echo "$ac_err" >&5
11350 echo "configure: failed program was:" >&5
11351 cat conftest.$ac_ext >&5
11352 rm -rf conftest*
11353 # Look for the header file in a standard set of common directories.
11354# Check X11 before X11Rn because it is often a symlink to the current release.
11355 for ac_dir in \
11356 /usr/X11/include \
11357 /usr/X11R6/include \
11358 /usr/X11R5/include \
11359 /usr/X11R4/include \
11360 \
11361 /usr/include/X11 \
11362 /usr/include/X11R6 \
11363 /usr/include/X11R5 \
11364 /usr/include/X11R4 \
11365 \
11366 /usr/local/X11/include \
11367 /usr/local/X11R6/include \
11368 /usr/local/X11R5/include \
11369 /usr/local/X11R4/include \
11370 \
11371 /usr/local/include/X11 \
11372 /usr/local/include/X11R6 \
11373 /usr/local/include/X11R5 \
11374 /usr/local/include/X11R4 \
11375 \
11376 /usr/X386/include \
11377 /usr/x386/include \
11378 /usr/XFree86/include/X11 \
11379 \
11380 /usr/include \
11381 /usr/local/include \
11382 /usr/unsupported/include \
11383 /usr/athena/include \
11384 /usr/local/x11r5/include \
11385 /usr/lpp/Xamples/include \
11386 \
11387 /usr/openwin/include \
11388 /usr/openwin/share/include \
11389 ; \
11390 do
11391 if test -r "$ac_dir/$x_direct_test_include"; then
11392 ac_x_includes=$ac_dir
11393 break
11394 fi
11395 done
11396fi
11397rm -f conftest*
11398fi # $ac_x_includes = NO
11399
11400if test "$ac_x_libraries" = NO; then
11401 # Check for the libraries.
11402
11403 test -z "$x_direct_test_library" && x_direct_test_library=Xt
11404 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
11405
11406 # See if we find them without any special options.
11407 # Don't add to $LIBS permanently.
11408 ac_save_LIBS="$LIBS"
11409 LIBS="-l$x_direct_test_library $LIBS"
11410cat > conftest.$ac_ext <<EOF
11411#line 11412 "configure"
11412#include "confdefs.h"
11413
11414int main() {
11415${x_direct_test_function}()
11416; return 0; }
11417EOF
11418if { (eval echo configure:11419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11419 rm -rf conftest*
11420 LIBS="$ac_save_LIBS"
11421# We can link X programs with no special library path.
11422ac_x_libraries=
11423else
11424 echo "configure: failed program was:" >&5
11425 cat conftest.$ac_ext >&5
11426 rm -rf conftest*
11427 LIBS="$ac_save_LIBS"
11428# First see if replacing the include by lib works.
11429# Check X11 before X11Rn because it is often a symlink to the current release.
11430for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
11431 /usr/X11/lib \
11432 /usr/X11R6/lib \
11433 /usr/X11R5/lib \
11434 /usr/X11R4/lib \
11435 \
11436 /usr/lib/X11 \
11437 /usr/lib/X11R6 \
11438 /usr/lib/X11R5 \
11439 /usr/lib/X11R4 \
11440 \
11441 /usr/local/X11/lib \
11442 /usr/local/X11R6/lib \
11443 /usr/local/X11R5/lib \
11444 /usr/local/X11R4/lib \
11445 \
11446 /usr/local/lib/X11 \
11447 /usr/local/lib/X11R6 \
11448 /usr/local/lib/X11R5 \
11449 /usr/local/lib/X11R4 \
11450 \
11451 /usr/X386/lib \
11452 /usr/x386/lib \
11453 /usr/XFree86/lib/X11 \
11454 \
11455 /usr/lib \
11456 /usr/local/lib \
11457 /usr/unsupported/lib \
11458 /usr/athena/lib \
11459 /usr/local/x11r5/lib \
11460 /usr/lpp/Xamples/lib \
11461 /lib/usr/lib/X11 \
11462 \
11463 /usr/openwin/lib \
11464 /usr/openwin/share/lib \
11465 ; \
11466do
11467 for ac_extension in a so sl; do
11468 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
11469 ac_x_libraries=$ac_dir
11470 break 2
11471 fi
11472 done
11473done
11474fi
11475rm -f conftest*
11476fi # $ac_x_libraries = NO
11477
11478if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
11479 # Didn't find X anywhere. Cache the known absence of X.
11480 ac_cv_have_x="have_x=no"
11481else
11482 # Record where we found X for the cache.
11483 ac_cv_have_x="have_x=yes \
11484 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11485fi
11486fi
11487 fi
11488 eval "$ac_cv_have_x"
11489fi # $with_x != no
11490
11491if test "$have_x" != yes; then
11492 echo "$ac_t""$have_x" 1>&6
11493 no_x=yes
11494else
11495 # If each of the values was on the command line, it overrides each guess.
11496 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11497 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11498 # Update the cache value to reflect the command line values.
11499 ac_cv_have_x="have_x=yes \
11500 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
11501 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
11502fi
11503
11504if test "$no_x" = yes; then
11505 # Not all programs may use this symbol, but it does not hurt to define it.
11506 cat >> confdefs.h <<\EOF
11507#define X_DISPLAY_MISSING 1
11508EOF
11509
11510 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11511else
11512 if test -n "$x_includes"; then
11513 X_CFLAGS="$X_CFLAGS -I$x_includes"
11514 fi
11515
11516 # It would also be nice to do this for all -L options, not just this one.
11517 if test -n "$x_libraries"; then
11518 X_LIBS="$X_LIBS -L$x_libraries"
11519 # For Solaris; some versions of Sun CC require a space after -R and
11520 # others require no space. Words are not sufficient . . . .
11521 case "`(uname -sr) 2>/dev/null`" in
11522 "SunOS 5"*)
11523 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
11524echo "configure:11525: checking whether -R must be followed by a space" >&5
11525 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
11526 cat > conftest.$ac_ext <<EOF
11527#line 11528 "configure"
11528#include "confdefs.h"
11529
11530int main() {
11531
11532; return 0; }
11533EOF
11534if { (eval echo configure:11535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11535 rm -rf conftest*
11536 ac_R_nospace=yes
11537else
11538 echo "configure: failed program was:" >&5
11539 cat conftest.$ac_ext >&5
11540 rm -rf conftest*
11541 ac_R_nospace=no
11542fi
11543rm -f conftest*
11544 if test $ac_R_nospace = yes; then
11545 echo "$ac_t""no" 1>&6
11546 X_LIBS="$X_LIBS -R$x_libraries"
11547 else
11548 LIBS="$ac_xsave_LIBS -R $x_libraries"
11549 cat > conftest.$ac_ext <<EOF
11550#line 11551 "configure"
11551#include "confdefs.h"
11552
11553int main() {
11554
11555; return 0; }
11556EOF
11557if { (eval echo configure:11558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11558 rm -rf conftest*
11559 ac_R_space=yes
11560else
11561 echo "configure: failed program was:" >&5
11562 cat conftest.$ac_ext >&5
11563 rm -rf conftest*
11564 ac_R_space=no
11565fi
11566rm -f conftest*
11567 if test $ac_R_space = yes; then
11568 echo "$ac_t""yes" 1>&6
11569 X_LIBS="$X_LIBS -R $x_libraries"
11570 else
11571 echo "$ac_t""neither works" 1>&6
11572 fi
11573 fi
11574 LIBS="$ac_xsave_LIBS"
11575 esac
11576 fi
11577
11578 # Check for system-dependent libraries X programs must link with.
11579 # Do this before checking for the system-independent R6 libraries
11580 # (-lICE), since we may need -lsocket or whatever for X linking.
11581
11582 if test "$ISC" = yes; then
11583 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11584 else
11585 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
11586 # libraries were built with DECnet support. And karl@cs.umb.edu says
11587 # the Alpha needs dnet_stub (dnet does not exist).
11588 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
11589echo "configure:11590: checking for dnet_ntoa in -ldnet" >&5
11590ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11591if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11592 echo $ac_n "(cached) $ac_c" 1>&6
11593else
11594 ac_save_LIBS="$LIBS"
11595LIBS="-ldnet $LIBS"
11596cat > conftest.$ac_ext <<EOF
11597#line 11598 "configure"
11598#include "confdefs.h"
11599/* Override any gcc2 internal prototype to avoid an error. */
11600/* We use char because int might match the return type of a gcc2
11601 builtin and then its argument prototype would still apply. */
11602char dnet_ntoa();
11603
11604int main() {
11605dnet_ntoa()
11606; return 0; }
11607EOF
11608if { (eval echo configure:11609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11609 rm -rf conftest*
11610 eval "ac_cv_lib_$ac_lib_var=yes"
11611else
11612 echo "configure: failed program was:" >&5
11613 cat conftest.$ac_ext >&5
11614 rm -rf conftest*
11615 eval "ac_cv_lib_$ac_lib_var=no"
11616fi
11617rm -f conftest*
11618LIBS="$ac_save_LIBS"
11619
11620fi
11621if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11622 echo "$ac_t""yes" 1>&6
11623 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11624else
11625 echo "$ac_t""no" 1>&6
11626fi
11627
11628 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11629 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
11630echo "configure:11631: checking for dnet_ntoa in -ldnet_stub" >&5
11631ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11632if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11633 echo $ac_n "(cached) $ac_c" 1>&6
11634else
11635 ac_save_LIBS="$LIBS"
11636LIBS="-ldnet_stub $LIBS"
11637cat > conftest.$ac_ext <<EOF
11638#line 11639 "configure"
11639#include "confdefs.h"
11640/* Override any gcc2 internal prototype to avoid an error. */
11641/* We use char because int might match the return type of a gcc2
11642 builtin and then its argument prototype would still apply. */
11643char dnet_ntoa();
11644
11645int main() {
11646dnet_ntoa()
11647; return 0; }
11648EOF
11649if { (eval echo configure:11650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11650 rm -rf conftest*
11651 eval "ac_cv_lib_$ac_lib_var=yes"
11652else
11653 echo "configure: failed program was:" >&5
11654 cat conftest.$ac_ext >&5
11655 rm -rf conftest*
11656 eval "ac_cv_lib_$ac_lib_var=no"
11657fi
11658rm -f conftest*
11659LIBS="$ac_save_LIBS"
11660
11661fi
11662if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11663 echo "$ac_t""yes" 1>&6
11664 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
11665else
11666 echo "$ac_t""no" 1>&6
11667fi
11668
11669 fi
11670
11671 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11672 # to get the SysV transport functions.
11673 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
11674 # needs -lnsl.
11675 # The nsl library prevents programs from opening the X display
11676 # on Irix 5.2, according to dickey@clark.net.
11677 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
11678echo "configure:11679: checking for gethostbyname" >&5
11679if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
11680 echo $ac_n "(cached) $ac_c" 1>&6
11681else
11682 cat > conftest.$ac_ext <<EOF
11683#line 11684 "configure"
11684#include "confdefs.h"
11685/* System header to define __stub macros and hopefully few prototypes,
11686 which can conflict with char gethostbyname(); below. */
11687#include <assert.h>
11688/* Override any gcc2 internal prototype to avoid an error. */
11689/* We use char because int might match the return type of a gcc2
11690 builtin and then its argument prototype would still apply. */
11691char gethostbyname();
11692
11693int main() {
11694
11695/* The GNU C library defines this for functions which it implements
11696 to always fail with ENOSYS. Some functions are actually named
11697 something starting with __ and the normal name is an alias. */
11698#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11699choke me
11700#else
11701gethostbyname();
11702#endif
11703
11704; return 0; }
11705EOF
11706if { (eval echo configure:11707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11707 rm -rf conftest*
11708 eval "ac_cv_func_gethostbyname=yes"
11709else
11710 echo "configure: failed program was:" >&5
11711 cat conftest.$ac_ext >&5
11712 rm -rf conftest*
11713 eval "ac_cv_func_gethostbyname=no"
11714fi
11715rm -f conftest*
11716fi
11717
11718if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
11719 echo "$ac_t""yes" 1>&6
11720 :
11721else
11722 echo "$ac_t""no" 1>&6
11723fi
11724
11725 if test $ac_cv_func_gethostbyname = no; then
11726 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
11727echo "configure:11728: checking for gethostbyname in -lnsl" >&5
11728ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
11729if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11730 echo $ac_n "(cached) $ac_c" 1>&6
11731else
11732 ac_save_LIBS="$LIBS"
11733LIBS="-lnsl $LIBS"
11734cat > conftest.$ac_ext <<EOF
11735#line 11736 "configure"
11736#include "confdefs.h"
11737/* Override any gcc2 internal prototype to avoid an error. */
11738/* We use char because int might match the return type of a gcc2
11739 builtin and then its argument prototype would still apply. */
11740char gethostbyname();
11741
11742int main() {
11743gethostbyname()
11744; return 0; }
11745EOF
11746if { (eval echo configure:11747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11747 rm -rf conftest*
11748 eval "ac_cv_lib_$ac_lib_var=yes"
11749else
11750 echo "configure: failed program was:" >&5
11751 cat conftest.$ac_ext >&5
11752 rm -rf conftest*
11753 eval "ac_cv_lib_$ac_lib_var=no"
11754fi
11755rm -f conftest*
11756LIBS="$ac_save_LIBS"
11757
11758fi
11759if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11760 echo "$ac_t""yes" 1>&6
11761 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11762else
11763 echo "$ac_t""no" 1>&6
11764fi
11765
11766 fi
11767
11768 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11769 # socket/setsockopt and other routines are undefined under SCO ODT
11770 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
11771 # on later versions), says simon@lia.di.epfl.ch: it contains
11772 # gethostby* variants that don't use the nameserver (or something).
11773 # -lsocket must be given before -lnsl if both are needed.
11774 # We assume that if connect needs -lnsl, so does gethostbyname.
11775 echo $ac_n "checking for connect""... $ac_c" 1>&6
11776echo "configure:11777: checking for connect" >&5
11777if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
11778 echo $ac_n "(cached) $ac_c" 1>&6
11779else
11780 cat > conftest.$ac_ext <<EOF
11781#line 11782 "configure"
11782#include "confdefs.h"
11783/* System header to define __stub macros and hopefully few prototypes,
11784 which can conflict with char connect(); below. */
11785#include <assert.h>
11786/* Override any gcc2 internal prototype to avoid an error. */
11787/* We use char because int might match the return type of a gcc2
11788 builtin and then its argument prototype would still apply. */
11789char connect();
11790
11791int main() {
11792
11793/* The GNU C library defines this for functions which it implements
11794 to always fail with ENOSYS. Some functions are actually named
11795 something starting with __ and the normal name is an alias. */
11796#if defined (__stub_connect) || defined (__stub___connect)
11797choke me
11798#else
11799connect();
11800#endif
11801
11802; return 0; }
11803EOF
11804if { (eval echo configure:11805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11805 rm -rf conftest*
11806 eval "ac_cv_func_connect=yes"
11807else
11808 echo "configure: failed program was:" >&5
11809 cat conftest.$ac_ext >&5
11810 rm -rf conftest*
11811 eval "ac_cv_func_connect=no"
11812fi
11813rm -f conftest*
11814fi
11815
11816if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
11817 echo "$ac_t""yes" 1>&6
11818 :
11819else
11820 echo "$ac_t""no" 1>&6
11821fi
11822
11823 if test $ac_cv_func_connect = no; then
11824 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
11825echo "configure:11826: checking for connect in -lsocket" >&5
11826ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
11827if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11828 echo $ac_n "(cached) $ac_c" 1>&6
11829else
11830 ac_save_LIBS="$LIBS"
11831LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
11832cat > conftest.$ac_ext <<EOF
11833#line 11834 "configure"
11834#include "confdefs.h"
11835/* Override any gcc2 internal prototype to avoid an error. */
11836/* We use char because int might match the return type of a gcc2
11837 builtin and then its argument prototype would still apply. */
11838char connect();
11839
11840int main() {
11841connect()
11842; return 0; }
11843EOF
11844if { (eval echo configure:11845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11845 rm -rf conftest*
11846 eval "ac_cv_lib_$ac_lib_var=yes"
11847else
11848 echo "configure: failed program was:" >&5
11849 cat conftest.$ac_ext >&5
11850 rm -rf conftest*
11851 eval "ac_cv_lib_$ac_lib_var=no"
11852fi
11853rm -f conftest*
11854LIBS="$ac_save_LIBS"
11855
11856fi
11857if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11858 echo "$ac_t""yes" 1>&6
11859 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
11860else
11861 echo "$ac_t""no" 1>&6
11862fi
11863
11864 fi
11865
11866 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
11867 echo $ac_n "checking for remove""... $ac_c" 1>&6
11868echo "configure:11869: checking for remove" >&5
11869if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
11870 echo $ac_n "(cached) $ac_c" 1>&6
11871else
11872 cat > conftest.$ac_ext <<EOF
11873#line 11874 "configure"
11874#include "confdefs.h"
11875/* System header to define __stub macros and hopefully few prototypes,
11876 which can conflict with char remove(); below. */
11877#include <assert.h>
11878/* Override any gcc2 internal prototype to avoid an error. */
11879/* We use char because int might match the return type of a gcc2
11880 builtin and then its argument prototype would still apply. */
11881char remove();
11882
11883int main() {
11884
11885/* The GNU C library defines this for functions which it implements
11886 to always fail with ENOSYS. Some functions are actually named
11887 something starting with __ and the normal name is an alias. */
11888#if defined (__stub_remove) || defined (__stub___remove)
11889choke me
11890#else
11891remove();
11892#endif
11893
11894; return 0; }
11895EOF
11896if { (eval echo configure:11897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11897 rm -rf conftest*
11898 eval "ac_cv_func_remove=yes"
11899else
11900 echo "configure: failed program was:" >&5
11901 cat conftest.$ac_ext >&5
11902 rm -rf conftest*
11903 eval "ac_cv_func_remove=no"
11904fi
11905rm -f conftest*
11906fi
11907
11908if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
11909 echo "$ac_t""yes" 1>&6
11910 :
11911else
11912 echo "$ac_t""no" 1>&6
11913fi
11914
11915 if test $ac_cv_func_remove = no; then
11916 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
11917echo "configure:11918: checking for remove in -lposix" >&5
11918ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
11919if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11920 echo $ac_n "(cached) $ac_c" 1>&6
11921else
11922 ac_save_LIBS="$LIBS"
11923LIBS="-lposix $LIBS"
11924cat > conftest.$ac_ext <<EOF
11925#line 11926 "configure"
11926#include "confdefs.h"
11927/* Override any gcc2 internal prototype to avoid an error. */
11928/* We use char because int might match the return type of a gcc2
11929 builtin and then its argument prototype would still apply. */
11930char remove();
11931
11932int main() {
11933remove()
11934; return 0; }
11935EOF
11936if { (eval echo configure:11937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11937 rm -rf conftest*
11938 eval "ac_cv_lib_$ac_lib_var=yes"
11939else
11940 echo "configure: failed program was:" >&5
11941 cat conftest.$ac_ext >&5
11942 rm -rf conftest*
11943 eval "ac_cv_lib_$ac_lib_var=no"
11944fi
11945rm -f conftest*
11946LIBS="$ac_save_LIBS"
11947
11948fi
11949if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11950 echo "$ac_t""yes" 1>&6
11951 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
11952else
11953 echo "$ac_t""no" 1>&6
11954fi
11955
11956 fi
11957
11958 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
11959 echo $ac_n "checking for shmat""... $ac_c" 1>&6
11960echo "configure:11961: checking for shmat" >&5
11961if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
11962 echo $ac_n "(cached) $ac_c" 1>&6
11963else
11964 cat > conftest.$ac_ext <<EOF
11965#line 11966 "configure"
11966#include "confdefs.h"
11967/* System header to define __stub macros and hopefully few prototypes,
11968 which can conflict with char shmat(); below. */
11969#include <assert.h>
11970/* Override any gcc2 internal prototype to avoid an error. */
11971/* We use char because int might match the return type of a gcc2
11972 builtin and then its argument prototype would still apply. */
11973char shmat();
11974
11975int main() {
11976
11977/* The GNU C library defines this for functions which it implements
11978 to always fail with ENOSYS. Some functions are actually named
11979 something starting with __ and the normal name is an alias. */
11980#if defined (__stub_shmat) || defined (__stub___shmat)
11981choke me
11982#else
11983shmat();
11984#endif
11985
11986; return 0; }
11987EOF
11988if { (eval echo configure:11989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11989 rm -rf conftest*
11990 eval "ac_cv_func_shmat=yes"
11991else
11992 echo "configure: failed program was:" >&5
11993 cat conftest.$ac_ext >&5
11994 rm -rf conftest*
11995 eval "ac_cv_func_shmat=no"
11996fi
11997rm -f conftest*
11998fi
11999
12000if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
12001 echo "$ac_t""yes" 1>&6
12002 :
12003else
12004 echo "$ac_t""no" 1>&6
12005fi
12006
12007 if test $ac_cv_func_shmat = no; then
12008 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
12009echo "configure:12010: checking for shmat in -lipc" >&5
12010ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
12011if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12012 echo $ac_n "(cached) $ac_c" 1>&6
12013else
12014 ac_save_LIBS="$LIBS"
12015LIBS="-lipc $LIBS"
12016cat > conftest.$ac_ext <<EOF
12017#line 12018 "configure"
12018#include "confdefs.h"
12019/* Override any gcc2 internal prototype to avoid an error. */
12020/* We use char because int might match the return type of a gcc2
12021 builtin and then its argument prototype would still apply. */
12022char shmat();
12023
12024int main() {
12025shmat()
12026; return 0; }
12027EOF
12028if { (eval echo configure:12029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12029 rm -rf conftest*
12030 eval "ac_cv_lib_$ac_lib_var=yes"
12031else
12032 echo "configure: failed program was:" >&5
12033 cat conftest.$ac_ext >&5
12034 rm -rf conftest*
12035 eval "ac_cv_lib_$ac_lib_var=no"
12036fi
12037rm -f conftest*
12038LIBS="$ac_save_LIBS"
12039
12040fi
12041if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12042 echo "$ac_t""yes" 1>&6
12043 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12044else
12045 echo "$ac_t""no" 1>&6
12046fi
12047
12048 fi
12049 fi
12050
12051 # Check for libraries that X11R6 Xt/Xaw programs need.
12052 ac_save_LDFLAGS="$LDFLAGS"
12053 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12054 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12055 # check for ICE first), but we must link in the order -lSM -lICE or
12056 # we get undefined symbols. So assume we have SM if we have ICE.
12057 # These have to be linked with before -lX11, unlike the other
12058 # libraries we check for below, so use a different variable.
12059 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
12060 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
12061echo "configure:12062: checking for IceConnectionNumber in -lICE" >&5
12062ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
12063if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12064 echo $ac_n "(cached) $ac_c" 1>&6
12065else
12066 ac_save_LIBS="$LIBS"
12067LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12068cat > conftest.$ac_ext <<EOF
12069#line 12070 "configure"
12070#include "confdefs.h"
12071/* Override any gcc2 internal prototype to avoid an error. */
12072/* We use char because int might match the return type of a gcc2
12073 builtin and then its argument prototype would still apply. */
12074char IceConnectionNumber();
12075
12076int main() {
12077IceConnectionNumber()
12078; return 0; }
12079EOF
12080if { (eval echo configure:12081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12081 rm -rf conftest*
12082 eval "ac_cv_lib_$ac_lib_var=yes"
12083else
12084 echo "configure: failed program was:" >&5
12085 cat conftest.$ac_ext >&5
12086 rm -rf conftest*
12087 eval "ac_cv_lib_$ac_lib_var=no"
12088fi
12089rm -f conftest*
12090LIBS="$ac_save_LIBS"
12091
12092fi
12093if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12094 echo "$ac_t""yes" 1>&6
12095 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12096else
12097 echo "$ac_t""no" 1>&6
12098fi
12099
12100 LDFLAGS="$ac_save_LDFLAGS"
12101
12102fi
12103
12104
12105 if test "$no_x" = "yes"; then
12106 { echo "configure: error: X11 not found" 1>&2; exit 1; }
12107 fi
12108
12109 GUI_TK_LIBRARY="$X_LIBS"
12110 TOOLKIT_INCLUDE="$X_CFLAGS"
12111 AFMINSTALL=afminstall
12112 COMPILED_X_PROGRAM=0
12113
12114 xpm_link=
12115 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
12116echo "configure:12117: checking for Xpm library" >&5
12117
12118ac_find_libraries=
12119for ac_dir in $SEARCH_LIB;
12120 do
12121 for ac_extension in a so sl dylib; do
12122 if test -f "$ac_dir/libXpm.$ac_extension"; then
12123 ac_find_libraries=$ac_dir
12124 break 2
12125 fi
12126 done
12127 done
12128
12129 if test "$ac_find_libraries" != "" ; then
12130
12131 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12132 result=$?
12133 if test $result = 0; then
12134 ac_path_to_link=""
12135 else
12136 ac_path_to_link=" -L$ac_find_libraries"
12137 fi
12138
12139 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
12140 xpm_link=" -lXpm"
12141 cat >> confdefs.h <<\EOF
12142#define wxHAVE_LIB_XPM 1
12143EOF
12144
12145 echo "$ac_t""found at $ac_find_libraries" 1>&6
12146 else
12147 cat > conftest.$ac_ext <<EOF
12148#line 12149 "configure"
12149#include "confdefs.h"
12150
12151 #include <X11/xpm.h>
12152
12153int main() {
12154
12155 int version;
12156 version = XpmLibraryVersion();
12157
12158; return 0; }
12159EOF
12160if { (eval echo configure:12161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12161 rm -rf conftest*
12162
12163 xpm_link=" -lXpm"
12164 cat >> confdefs.h <<\EOF
12165#define wxHAVE_LIB_XPM 1
12166EOF
12167
12168 echo "$ac_t""found in default search path" 1>&6
12169 COMPILED_X_PROGRAM=0
12170
12171else
12172 echo "configure: failed program was:" >&5
12173 cat conftest.$ac_ext >&5
12174 rm -rf conftest*
12175
12176 echo "$ac_t""no" 1>&6
12177 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12178
12179
12180fi
12181rm -f conftest*
12182 fi
12183
12184 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext -lXt -lX11"
12185 TOOLKIT_VPATH="\${top_srcdir}/src/x11 \${top_srcdir}/src/univ \${top_srcdir}/src/univ/themes"
12186 TOOLKIT=X11
12187 GUIDIST=X11_DIST
12188 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
12189 fi
12190
12191 if test "$wxUSE_WINE" = 1; then
12192 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12193echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12194echo "configure:12195: checking for windows.h" >&5
12195if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12196 echo $ac_n "(cached) $ac_c" 1>&6
12197else
12198 cat > conftest.$ac_ext <<EOF
12199#line 12200 "configure"
12200#include "confdefs.h"
12201#include <windows.h>
12202EOF
12203ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12204{ (eval echo configure:12205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12205ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12206if test -z "$ac_err"; then
12207 rm -rf conftest*
12208 eval "ac_cv_header_$ac_safe=yes"
12209else
12210 echo "$ac_err" >&5
12211 echo "configure: failed program was:" >&5
12212 cat conftest.$ac_ext >&5
12213 rm -rf conftest*
12214 eval "ac_cv_header_$ac_safe=no"
12215fi
12216rm -f conftest*
12217fi
12218if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12219 echo "$ac_t""yes" 1>&6
12220 :
12221else
12222 echo "$ac_t""no" 1>&6
12223
12224 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12225
12226fi
12227
12228
12229 xpm_link=
12230 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
12231echo "configure:12232: checking for Xpm library" >&5
12232
12233ac_find_libraries=
12234for ac_dir in $SEARCH_LIB;
12235 do
12236 for ac_extension in a so sl dylib; do
12237 if test -f "$ac_dir/libXpm.$ac_extension"; then
12238 ac_find_libraries=$ac_dir
12239 break 2
12240 fi
12241 done
12242 done
12243
12244 if test "$ac_find_libraries" != "" ; then
12245 GUI_TK_LIBRARY="-L$ac_find_libraries"
12246 xpm_link=" -lXpm"
12247 cat >> confdefs.h <<\EOF
12248#define wxHAVE_LIB_XPM 1
12249EOF
12250
12251 echo "$ac_t""found at $ac_find_libraries" 1>&6
12252 else
12253 echo "$ac_t""no" 1>&6
12254 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12255 fi
12256
12257 mesa_link=
12258 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
12259echo "configure:12260: checking for Mesa library" >&5
12260
12261ac_find_libraries=
12262for ac_dir in $SEARCH_LIB;
12263 do
12264 for ac_extension in a so sl dylib; do
12265 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
12266 ac_find_libraries=$ac_dir
12267 break 2
12268 fi
12269 done
12270 done
12271
12272 if test "$ac_find_libraries" != "" ; then
12273 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
12274 mesa_link=" -lMesaGL"
12275 echo "$ac_t""found at $ac_find_libraries" 1>&6
12276 else
12277 { echo "configure: error: no" 1>&2; exit 1; }
12278 fi
12279
12280 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
12281 TOOLKIT=MSW
12282 GUIDIST=MSW_DIST
12283 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
12284 fi
12285
12286 if test "$wxUSE_MOTIF" = 1; then
12287 if test "$no_x" = yes; then
12288 # Not all programs may use this symbol, but it does not hurt to define it.
12289 cat >> confdefs.h <<\EOF
12290#define X_DISPLAY_MISSING 1
12291EOF
12292
12293 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12294else
12295 if test -n "$x_includes"; then
12296 X_CFLAGS="$X_CFLAGS -I$x_includes"
12297 fi
12298
12299 # It would also be nice to do this for all -L options, not just this one.
12300 if test -n "$x_libraries"; then
12301 X_LIBS="$X_LIBS -L$x_libraries"
12302 # For Solaris; some versions of Sun CC require a space after -R and
12303 # others require no space. Words are not sufficient . . . .
12304 case "`(uname -sr) 2>/dev/null`" in
12305 "SunOS 5"*)
12306 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
12307echo "configure:12308: checking whether -R must be followed by a space" >&5
12308 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
12309 cat > conftest.$ac_ext <<EOF
12310#line 12311 "configure"
12311#include "confdefs.h"
12312
12313int main() {
12314
12315; return 0; }
12316EOF
12317if { (eval echo configure:12318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12318 rm -rf conftest*
12319 ac_R_nospace=yes
12320else
12321 echo "configure: failed program was:" >&5
12322 cat conftest.$ac_ext >&5
12323 rm -rf conftest*
12324 ac_R_nospace=no
12325fi
12326rm -f conftest*
12327 if test $ac_R_nospace = yes; then
12328 echo "$ac_t""no" 1>&6
12329 X_LIBS="$X_LIBS -R$x_libraries"
12330 else
12331 LIBS="$ac_xsave_LIBS -R $x_libraries"
12332 cat > conftest.$ac_ext <<EOF
12333#line 12334 "configure"
12334#include "confdefs.h"
12335
12336int main() {
12337
12338; return 0; }
12339EOF
12340if { (eval echo configure:12341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12341 rm -rf conftest*
12342 ac_R_space=yes
12343else
12344 echo "configure: failed program was:" >&5
12345 cat conftest.$ac_ext >&5
12346 rm -rf conftest*
12347 ac_R_space=no
12348fi
12349rm -f conftest*
12350 if test $ac_R_space = yes; then
12351 echo "$ac_t""yes" 1>&6
12352 X_LIBS="$X_LIBS -R $x_libraries"
12353 else
12354 echo "$ac_t""neither works" 1>&6
12355 fi
12356 fi
12357 LIBS="$ac_xsave_LIBS"
12358 esac
12359 fi
12360
12361 # Check for system-dependent libraries X programs must link with.
12362 # Do this before checking for the system-independent R6 libraries
12363 # (-lICE), since we may need -lsocket or whatever for X linking.
12364
12365 if test "$ISC" = yes; then
12366 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12367 else
12368 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
12369 # libraries were built with DECnet support. And karl@cs.umb.edu says
12370 # the Alpha needs dnet_stub (dnet does not exist).
12371 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
12372echo "configure:12373: checking for dnet_ntoa in -ldnet" >&5
12373ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
12374if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12375 echo $ac_n "(cached) $ac_c" 1>&6
12376else
12377 ac_save_LIBS="$LIBS"
12378LIBS="-ldnet $LIBS"
12379cat > conftest.$ac_ext <<EOF
12380#line 12381 "configure"
12381#include "confdefs.h"
12382/* Override any gcc2 internal prototype to avoid an error. */
12383/* We use char because int might match the return type of a gcc2
12384 builtin and then its argument prototype would still apply. */
12385char dnet_ntoa();
12386
12387int main() {
12388dnet_ntoa()
12389; return 0; }
12390EOF
12391if { (eval echo configure:12392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12392 rm -rf conftest*
12393 eval "ac_cv_lib_$ac_lib_var=yes"
12394else
12395 echo "configure: failed program was:" >&5
12396 cat conftest.$ac_ext >&5
12397 rm -rf conftest*
12398 eval "ac_cv_lib_$ac_lib_var=no"
12399fi
12400rm -f conftest*
12401LIBS="$ac_save_LIBS"
12402
12403fi
12404if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12405 echo "$ac_t""yes" 1>&6
12406 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12407else
12408 echo "$ac_t""no" 1>&6
12409fi
12410
12411 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12412 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
12413echo "configure:12414: checking for dnet_ntoa in -ldnet_stub" >&5
12414ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
12415if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12416 echo $ac_n "(cached) $ac_c" 1>&6
12417else
12418 ac_save_LIBS="$LIBS"
12419LIBS="-ldnet_stub $LIBS"
12420cat > conftest.$ac_ext <<EOF
12421#line 12422 "configure"
12422#include "confdefs.h"
12423/* Override any gcc2 internal prototype to avoid an error. */
12424/* We use char because int might match the return type of a gcc2
12425 builtin and then its argument prototype would still apply. */
12426char dnet_ntoa();
12427
12428int main() {
12429dnet_ntoa()
12430; return 0; }
12431EOF
12432if { (eval echo configure:12433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12433 rm -rf conftest*
12434 eval "ac_cv_lib_$ac_lib_var=yes"
12435else
12436 echo "configure: failed program was:" >&5
12437 cat conftest.$ac_ext >&5
12438 rm -rf conftest*
12439 eval "ac_cv_lib_$ac_lib_var=no"
12440fi
12441rm -f conftest*
12442LIBS="$ac_save_LIBS"
12443
12444fi
12445if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12446 echo "$ac_t""yes" 1>&6
12447 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12448else
12449 echo "$ac_t""no" 1>&6
12450fi
12451
12452 fi
12453
12454 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12455 # to get the SysV transport functions.
12456 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
12457 # needs -lnsl.
12458 # The nsl library prevents programs from opening the X display
12459 # on Irix 5.2, according to dickey@clark.net.
12460 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
12461echo "configure:12462: checking for gethostbyname" >&5
12462if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
12463 echo $ac_n "(cached) $ac_c" 1>&6
12464else
12465 cat > conftest.$ac_ext <<EOF
12466#line 12467 "configure"
12467#include "confdefs.h"
12468/* System header to define __stub macros and hopefully few prototypes,
12469 which can conflict with char gethostbyname(); below. */
12470#include <assert.h>
12471/* Override any gcc2 internal prototype to avoid an error. */
12472/* We use char because int might match the return type of a gcc2
12473 builtin and then its argument prototype would still apply. */
12474char gethostbyname();
12475
12476int main() {
12477
12478/* The GNU C library defines this for functions which it implements
12479 to always fail with ENOSYS. Some functions are actually named
12480 something starting with __ and the normal name is an alias. */
12481#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12482choke me
12483#else
12484gethostbyname();
12485#endif
12486
12487; return 0; }
12488EOF
12489if { (eval echo configure:12490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12490 rm -rf conftest*
12491 eval "ac_cv_func_gethostbyname=yes"
12492else
12493 echo "configure: failed program was:" >&5
12494 cat conftest.$ac_ext >&5
12495 rm -rf conftest*
12496 eval "ac_cv_func_gethostbyname=no"
12497fi
12498rm -f conftest*
12499fi
12500
12501if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
12502 echo "$ac_t""yes" 1>&6
12503 :
12504else
12505 echo "$ac_t""no" 1>&6
12506fi
12507
12508 if test $ac_cv_func_gethostbyname = no; then
12509 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
12510echo "configure:12511: checking for gethostbyname in -lnsl" >&5
12511ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
12512if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12513 echo $ac_n "(cached) $ac_c" 1>&6
12514else
12515 ac_save_LIBS="$LIBS"
12516LIBS="-lnsl $LIBS"
12517cat > conftest.$ac_ext <<EOF
12518#line 12519 "configure"
12519#include "confdefs.h"
12520/* Override any gcc2 internal prototype to avoid an error. */
12521/* We use char because int might match the return type of a gcc2
12522 builtin and then its argument prototype would still apply. */
12523char gethostbyname();
12524
12525int main() {
12526gethostbyname()
12527; return 0; }
12528EOF
12529if { (eval echo configure:12530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12530 rm -rf conftest*
12531 eval "ac_cv_lib_$ac_lib_var=yes"
12532else
12533 echo "configure: failed program was:" >&5
12534 cat conftest.$ac_ext >&5
12535 rm -rf conftest*
12536 eval "ac_cv_lib_$ac_lib_var=no"
12537fi
12538rm -f conftest*
12539LIBS="$ac_save_LIBS"
12540
12541fi
12542if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12543 echo "$ac_t""yes" 1>&6
12544 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12545else
12546 echo "$ac_t""no" 1>&6
12547fi
12548
12549 fi
12550
12551 # lieder@skyler.mavd.honeywell.com says without -lsocket,
12552 # socket/setsockopt and other routines are undefined under SCO ODT
12553 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12554 # on later versions), says simon@lia.di.epfl.ch: it contains
12555 # gethostby* variants that don't use the nameserver (or something).
12556 # -lsocket must be given before -lnsl if both are needed.
12557 # We assume that if connect needs -lnsl, so does gethostbyname.
12558 echo $ac_n "checking for connect""... $ac_c" 1>&6
12559echo "configure:12560: checking for connect" >&5
12560if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
12561 echo $ac_n "(cached) $ac_c" 1>&6
12562else
12563 cat > conftest.$ac_ext <<EOF
12564#line 12565 "configure"
12565#include "confdefs.h"
12566/* System header to define __stub macros and hopefully few prototypes,
12567 which can conflict with char connect(); below. */
12568#include <assert.h>
12569/* Override any gcc2 internal prototype to avoid an error. */
12570/* We use char because int might match the return type of a gcc2
12571 builtin and then its argument prototype would still apply. */
12572char connect();
12573
12574int main() {
12575
12576/* The GNU C library defines this for functions which it implements
12577 to always fail with ENOSYS. Some functions are actually named
12578 something starting with __ and the normal name is an alias. */
12579#if defined (__stub_connect) || defined (__stub___connect)
12580choke me
12581#else
12582connect();
12583#endif
12584
12585; return 0; }
12586EOF
12587if { (eval echo configure:12588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12588 rm -rf conftest*
12589 eval "ac_cv_func_connect=yes"
12590else
12591 echo "configure: failed program was:" >&5
12592 cat conftest.$ac_ext >&5
12593 rm -rf conftest*
12594 eval "ac_cv_func_connect=no"
12595fi
12596rm -f conftest*
12597fi
12598
12599if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
12600 echo "$ac_t""yes" 1>&6
12601 :
12602else
12603 echo "$ac_t""no" 1>&6
12604fi
12605
12606 if test $ac_cv_func_connect = no; then
12607 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
12608echo "configure:12609: checking for connect in -lsocket" >&5
12609ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
12610if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12611 echo $ac_n "(cached) $ac_c" 1>&6
12612else
12613 ac_save_LIBS="$LIBS"
12614LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12615cat > conftest.$ac_ext <<EOF
12616#line 12617 "configure"
12617#include "confdefs.h"
12618/* Override any gcc2 internal prototype to avoid an error. */
12619/* We use char because int might match the return type of a gcc2
12620 builtin and then its argument prototype would still apply. */
12621char connect();
12622
12623int main() {
12624connect()
12625; return 0; }
12626EOF
12627if { (eval echo configure:12628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12628 rm -rf conftest*
12629 eval "ac_cv_lib_$ac_lib_var=yes"
12630else
12631 echo "configure: failed program was:" >&5
12632 cat conftest.$ac_ext >&5
12633 rm -rf conftest*
12634 eval "ac_cv_lib_$ac_lib_var=no"
12635fi
12636rm -f conftest*
12637LIBS="$ac_save_LIBS"
12638
12639fi
12640if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12641 echo "$ac_t""yes" 1>&6
12642 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12643else
12644 echo "$ac_t""no" 1>&6
12645fi
12646
12647 fi
12648
12649 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
12650 echo $ac_n "checking for remove""... $ac_c" 1>&6
12651echo "configure:12652: checking for remove" >&5
12652if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
12653 echo $ac_n "(cached) $ac_c" 1>&6
12654else
12655 cat > conftest.$ac_ext <<EOF
12656#line 12657 "configure"
12657#include "confdefs.h"
12658/* System header to define __stub macros and hopefully few prototypes,
12659 which can conflict with char remove(); below. */
12660#include <assert.h>
12661/* Override any gcc2 internal prototype to avoid an error. */
12662/* We use char because int might match the return type of a gcc2
12663 builtin and then its argument prototype would still apply. */
12664char remove();
12665
12666int main() {
12667
12668/* The GNU C library defines this for functions which it implements
12669 to always fail with ENOSYS. Some functions are actually named
12670 something starting with __ and the normal name is an alias. */
12671#if defined (__stub_remove) || defined (__stub___remove)
12672choke me
12673#else
12674remove();
12675#endif
12676
12677; return 0; }
12678EOF
12679if { (eval echo configure:12680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12680 rm -rf conftest*
12681 eval "ac_cv_func_remove=yes"
12682else
12683 echo "configure: failed program was:" >&5
12684 cat conftest.$ac_ext >&5
12685 rm -rf conftest*
12686 eval "ac_cv_func_remove=no"
12687fi
12688rm -f conftest*
12689fi
12690
12691if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
12692 echo "$ac_t""yes" 1>&6
12693 :
12694else
12695 echo "$ac_t""no" 1>&6
12696fi
12697
12698 if test $ac_cv_func_remove = no; then
12699 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
12700echo "configure:12701: checking for remove in -lposix" >&5
12701ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
12702if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12703 echo $ac_n "(cached) $ac_c" 1>&6
12704else
12705 ac_save_LIBS="$LIBS"
12706LIBS="-lposix $LIBS"
12707cat > conftest.$ac_ext <<EOF
12708#line 12709 "configure"
12709#include "confdefs.h"
12710/* Override any gcc2 internal prototype to avoid an error. */
12711/* We use char because int might match the return type of a gcc2
12712 builtin and then its argument prototype would still apply. */
12713char remove();
12714
12715int main() {
12716remove()
12717; return 0; }
12718EOF
12719if { (eval echo configure:12720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12720 rm -rf conftest*
12721 eval "ac_cv_lib_$ac_lib_var=yes"
12722else
12723 echo "configure: failed program was:" >&5
12724 cat conftest.$ac_ext >&5
12725 rm -rf conftest*
12726 eval "ac_cv_lib_$ac_lib_var=no"
12727fi
12728rm -f conftest*
12729LIBS="$ac_save_LIBS"
12730
12731fi
12732if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12733 echo "$ac_t""yes" 1>&6
12734 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12735else
12736 echo "$ac_t""no" 1>&6
12737fi
12738
12739 fi
12740
12741 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12742 echo $ac_n "checking for shmat""... $ac_c" 1>&6
12743echo "configure:12744: checking for shmat" >&5
12744if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
12745 echo $ac_n "(cached) $ac_c" 1>&6
12746else
12747 cat > conftest.$ac_ext <<EOF
12748#line 12749 "configure"
12749#include "confdefs.h"
12750/* System header to define __stub macros and hopefully few prototypes,
12751 which can conflict with char shmat(); below. */
12752#include <assert.h>
12753/* Override any gcc2 internal prototype to avoid an error. */
12754/* We use char because int might match the return type of a gcc2
12755 builtin and then its argument prototype would still apply. */
12756char shmat();
12757
12758int main() {
12759
12760/* The GNU C library defines this for functions which it implements
12761 to always fail with ENOSYS. Some functions are actually named
12762 something starting with __ and the normal name is an alias. */
12763#if defined (__stub_shmat) || defined (__stub___shmat)
12764choke me
12765#else
12766shmat();
12767#endif
12768
12769; return 0; }
12770EOF
12771if { (eval echo configure:12772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12772 rm -rf conftest*
12773 eval "ac_cv_func_shmat=yes"
12774else
12775 echo "configure: failed program was:" >&5
12776 cat conftest.$ac_ext >&5
12777 rm -rf conftest*
12778 eval "ac_cv_func_shmat=no"
12779fi
12780rm -f conftest*
12781fi
12782
12783if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
12784 echo "$ac_t""yes" 1>&6
12785 :
12786else
12787 echo "$ac_t""no" 1>&6
12788fi
12789
12790 if test $ac_cv_func_shmat = no; then
12791 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
12792echo "configure:12793: checking for shmat in -lipc" >&5
12793ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
12794if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12795 echo $ac_n "(cached) $ac_c" 1>&6
12796else
12797 ac_save_LIBS="$LIBS"
12798LIBS="-lipc $LIBS"
12799cat > conftest.$ac_ext <<EOF
12800#line 12801 "configure"
12801#include "confdefs.h"
12802/* Override any gcc2 internal prototype to avoid an error. */
12803/* We use char because int might match the return type of a gcc2
12804 builtin and then its argument prototype would still apply. */
12805char shmat();
12806
12807int main() {
12808shmat()
12809; return 0; }
12810EOF
12811if { (eval echo configure:12812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12812 rm -rf conftest*
12813 eval "ac_cv_lib_$ac_lib_var=yes"
12814else
12815 echo "configure: failed program was:" >&5
12816 cat conftest.$ac_ext >&5
12817 rm -rf conftest*
12818 eval "ac_cv_lib_$ac_lib_var=no"
12819fi
12820rm -f conftest*
12821LIBS="$ac_save_LIBS"
12822
12823fi
12824if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12825 echo "$ac_t""yes" 1>&6
12826 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12827else
12828 echo "$ac_t""no" 1>&6
12829fi
12830
12831 fi
12832 fi
12833
12834 # Check for libraries that X11R6 Xt/Xaw programs need.
12835 ac_save_LDFLAGS="$LDFLAGS"
12836 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12837 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12838 # check for ICE first), but we must link in the order -lSM -lICE or
12839 # we get undefined symbols. So assume we have SM if we have ICE.
12840 # These have to be linked with before -lX11, unlike the other
12841 # libraries we check for below, so use a different variable.
12842 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
12843 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
12844echo "configure:12845: checking for IceConnectionNumber in -lICE" >&5
12845ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
12846if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12847 echo $ac_n "(cached) $ac_c" 1>&6
12848else
12849 ac_save_LIBS="$LIBS"
12850LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12851cat > conftest.$ac_ext <<EOF
12852#line 12853 "configure"
12853#include "confdefs.h"
12854/* Override any gcc2 internal prototype to avoid an error. */
12855/* We use char because int might match the return type of a gcc2
12856 builtin and then its argument prototype would still apply. */
12857char IceConnectionNumber();
12858
12859int main() {
12860IceConnectionNumber()
12861; return 0; }
12862EOF
12863if { (eval echo configure:12864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12864 rm -rf conftest*
12865 eval "ac_cv_lib_$ac_lib_var=yes"
12866else
12867 echo "configure: failed program was:" >&5
12868 cat conftest.$ac_ext >&5
12869 rm -rf conftest*
12870 eval "ac_cv_lib_$ac_lib_var=no"
12871fi
12872rm -f conftest*
12873LIBS="$ac_save_LIBS"
12874
12875fi
12876if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12877 echo "$ac_t""yes" 1>&6
12878 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12879else
12880 echo "$ac_t""no" 1>&6
12881fi
12882
12883 LDFLAGS="$ac_save_LDFLAGS"
12884
12885fi
12886
12887
12888 if test "$no_x" = "yes"; then
12889 { echo "configure: error: X11 not found" 1>&2; exit 1; }
12890 fi
12891
12892 GUI_TK_LIBRARY="$X_LIBS"
12893 TOOLKIT_INCLUDE="$X_CFLAGS"
12894 AFMINSTALL=afminstall
12895 COMPILED_X_PROGRAM=0
12896
12897 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
12898echo "configure:12899: checking for Motif/Lesstif headers" >&5
12899
12900ac_find_includes=
12901for ac_dir in $SEARCH_INCLUDE;
12902 do
12903 if test -f "$ac_dir/Xm/Xm.h"; then
12904 ac_find_includes=$ac_dir
12905 break
12906 fi
12907 done
12908
12909 if test "$ac_find_includes" != "" ; then
12910 echo "$ac_t""found $ac_find_includes" 1>&6
12911 else
12912 cat > conftest.$ac_ext <<EOF
12913#line 12914 "configure"
12914#include "confdefs.h"
12915
12916 #include <Xm/Xm.h>
12917
12918int main() {
12919
12920 int version;
12921 version = xmUseVersion;
12922
12923; return 0; }
12924EOF
12925if { (eval echo configure:12926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12926 rm -rf conftest*
12927
12928 echo "$ac_t""found in default search path" 1>&6
12929 COMPILED_X_PROGRAM=1
12930
12931else
12932 echo "configure: failed program was:" >&5
12933 cat conftest.$ac_ext >&5
12934 rm -rf conftest*
12935
12936 echo "$ac_t""no" 1>&6
12937 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
12938
12939
12940fi
12941rm -f conftest*
12942 fi
12943
12944 if test "$COMPILED_X_PROGRAM" = 0; then
12945 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
12946echo "configure:12947: checking for Motif/Lesstif library" >&5
12947
12948ac_find_libraries=
12949for ac_dir in $SEARCH_LIB;
12950 do
12951 for ac_extension in a so sl dylib; do
12952 if test -f "$ac_dir/libXm.$ac_extension"; then
12953 ac_find_libraries=$ac_dir
12954 break 2
12955 fi
12956 done
12957 done
12958
12959 if test "$ac_find_libraries" != "" ; then
12960
12961 ac_path_to_include=$ac_find_includes
12962 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
12963 result=$?
12964 if test $result = 0; then
12965 ac_path_to_include=""
12966 else
12967 ac_path_to_include=" -I$ac_find_includes"
12968 fi
12969
12970
12971 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12972 result=$?
12973 if test $result = 0; then
12974 ac_path_to_link=""
12975 else
12976 ac_path_to_link=" -L$ac_find_libraries"
12977 fi
12978
12979
12980 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
12981 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
12982 echo "$ac_t""found at $ac_find_libraries" 1>&6
12983 else
12984 cat > conftest.$ac_ext <<EOF
12985#line 12986 "configure"
12986#include "confdefs.h"
12987
12988 #include <Xm/Xm.h>
12989
12990int main() {
12991
12992 int version;
12993 version = xmUseVersion;
12994
12995; return 0; }
12996EOF
12997if { (eval echo configure:12998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12998 rm -rf conftest*
12999
13000 echo "$ac_t""found in default search path" 1>&6
13001 COMPILED_X_PROGRAM=1
13002
13003else
13004 echo "configure: failed program was:" >&5
13005 cat conftest.$ac_ext >&5
13006 rm -rf conftest*
13007
13008 echo "$ac_t""no" 1>&6
13009 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
13010
13011
13012fi
13013rm -f conftest*
13014 fi
13015 fi
13016
13017 xpm_link=
13018 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13019echo "configure:13020: checking for Xpm library" >&5
13020
13021ac_find_libraries=
13022for ac_dir in $SEARCH_LIB;
13023 do
13024 for ac_extension in a so sl dylib; do
13025 if test -f "$ac_dir/libXpm.$ac_extension"; then
13026 ac_find_libraries=$ac_dir
13027 break 2
13028 fi
13029 done
13030 done
13031
13032 if test "$ac_find_libraries" != "" ; then
13033
13034 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13035 result=$?
13036 if test $result = 0; then
13037 ac_path_to_link=""
13038 else
13039 ac_path_to_link=" -L$ac_find_libraries"
13040 fi
13041
13042 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13043 xpm_link=" -lXpm"
13044 cat >> confdefs.h <<\EOF
13045#define wxHAVE_LIB_XPM 1
13046EOF
13047
13048 echo "$ac_t""found at $ac_find_libraries" 1>&6
13049 else
13050 cat > conftest.$ac_ext <<EOF
13051#line 13052 "configure"
13052#include "confdefs.h"
13053
13054 #include <X11/xpm.h>
13055
13056int main() {
13057
13058 int version;
13059 version = XpmLibraryVersion();
13060
13061; return 0; }
13062EOF
13063if { (eval echo configure:13064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13064 rm -rf conftest*
13065
13066 xpm_link=" -lXpm"
13067 cat >> confdefs.h <<\EOF
13068#define wxHAVE_LIB_XPM 1
13069EOF
13070
13071 echo "$ac_t""found in default search path" 1>&6
13072 COMPILED_X_PROGRAM=0
13073
13074else
13075 echo "configure: failed program was:" >&5
13076 cat conftest.$ac_ext >&5
13077 rm -rf conftest*
13078
13079 echo "$ac_t""no" 1>&6
13080 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13081
13082
13083fi
13084rm -f conftest*
13085 fi
13086
13087 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
13088 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
13089 TOOLKIT=MOTIF
13090 GUIDIST=MOTIF_DIST
13091 fi
13092
13093 if test "$wxUSE_MAC" = 1; then
13094 if test "$wxUSE_PRECOMP" = "yes"; then
13095 CPPFLAGS="$CPPFLAGS -cpp-precomp"
13096 fi
13097 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
13098 CFLAGS="$CFLAGS -fpascal-strings"
13099 CXXFLAGS="$CXXFLAGS -fpascal-strings"
13100
13101 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
13102 TOOLKIT=MAC
13103 GUIDIST=MACX_DIST
13104 fi
13105
13106 if test "$wxUSE_PM" = 1; then
13107 TOOLKIT=PM
13108 GUIDIST=GTK_DIST
13109 fi
13110
13111 if test "$TOOLKIT" = "PM" ; then
13112 TOOLKIT_DIR="os2"
13113 else
13114 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
13115 fi
13116
13117 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
13118
13119 if test "$wxUSE_UNIVERSAL" = "yes"; then
13120 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
13121
13122 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
13123 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
13124
13125 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
13126 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
13127 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
13128 WIDGET_SET=univ
13129 else
13130 ALL_OBJECTS="\$(GUIOBJS)"
13131 ALL_SOURCES="\$(ALL_SOURCES)"
13132 ALL_HEADERS="\$(ALL_HEADERS)"
13133 fi
13134
13135 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
13136
13137 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
13138 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
13139 fi
13140
13141 if test "$wxUSE_HTML" = "yes"; then
13142 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
13143 fi
13144
13145 if test "$wxUSE_LIBJPEG" = "builtin" ; then
13146 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
13147 fi
13148 if test "$wxUSE_LIBTIFF" = "builtin" ; then
13149 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
13150 fi
13151 if test "$wxUSE_LIBPNG" = "builtin" ; then
13152 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
13153 fi
13154
13155 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
13156 DISTDIR="wx\$(TOOLKIT)"
13157else
13158 USE_GUI=0
13159
13160 TOOLKIT_DIR="base"
13161
13162 if test "$USE_WIN32" = 1 ; then
13163 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
13164 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
13165
13166 TOOLKIT="MSW"
13167 else
13168 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
13169 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
13170 fi
13171
13172 PORT_FILES="\${top_srcdir}/src/files.lst"
13173
13174 GUIDIST="BASE_DIST"
13175 DISTDIR="wxBase"
13176fi
13177
13178
13179if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
13180 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
13181fi
13182
13183if test "$wxUSE_REGEX" = "builtin" ; then
13184 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
13185fi
13186if test "$wxUSE_ZLIB" = "builtin" ; then
13187 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
13188fi
13189
13190if test "$wxUSE_OPENGL" = "yes"; then
13191 if test "$wxUSE_MAC" = 1; then
13192 OPENGL_LIBS="-framework OpenGL -framework AGL"
13193 else
13194
13195 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
13196echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
13197echo "configure:13198: checking for GL/gl.h" >&5
13198if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13199 echo $ac_n "(cached) $ac_c" 1>&6
13200else
13201 cat > conftest.$ac_ext <<EOF
13202#line 13203 "configure"
13203#include "confdefs.h"
13204#include <GL/gl.h>
13205EOF
13206ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13207{ (eval echo configure:13208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13208ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13209if test -z "$ac_err"; then
13210 rm -rf conftest*
13211 eval "ac_cv_header_$ac_safe=yes"
13212else
13213 echo "$ac_err" >&5
13214 echo "configure: failed program was:" >&5
13215 cat conftest.$ac_ext >&5
13216 rm -rf conftest*
13217 eval "ac_cv_header_$ac_safe=no"
13218fi
13219rm -f conftest*
13220fi
13221if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13222 echo "$ac_t""yes" 1>&6
13223
13224 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
13225echo "configure:13226: checking for -lGL" >&5
13226
13227ac_find_libraries=
13228for ac_dir in $SEARCH_LIB;
13229 do
13230 for ac_extension in a so sl dylib; do
13231 if test -f "$ac_dir/libGL.$ac_extension"; then
13232 ac_find_libraries=$ac_dir
13233 break 2
13234 fi
13235 done
13236 done
13237
13238 if test "$ac_find_libraries" != "" ; then
13239
13240 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
13241 result=$?
13242 if test $result = 0; then
13243 ac_path_to_link=""
13244 else
13245 ac_path_to_link=" -L$ac_find_libraries"
13246 fi
13247
13248 if test "$ac_path_to_link" = " -L/usr/lib" ; then
13249 LDFLAGS_GL="$LDFLAGS"
13250 else
13251 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
13252 fi
13253 OPENGL_LIBS="-lGL -lGLU"
13254 echo "$ac_t""yes" 1>&6
13255 else
13256 echo "$ac_t""no" 1>&6
13257 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
13258echo "configure:13259: checking for -lMesaGL" >&5
13259
13260ac_find_libraries=
13261for ac_dir in $SEARCH_LIB;
13262 do
13263 for ac_extension in a so sl dylib; do
13264 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
13265 ac_find_libraries=$ac_dir
13266 break 2
13267 fi
13268 done
13269 done
13270
13271 if test "$ac_find_libraries" != "" ; then
13272
13273 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
13274 result=$?
13275 if test $result = 0; then
13276 ac_path_to_link=""
13277 else
13278 ac_path_to_link=" -L$ac_find_libraries"
13279 fi
13280
13281 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
13282 OPENGL_LIBS="-lMesaGL -lMesaGLU"
13283 echo "$ac_t""yes" 1>&6
13284 else
13285 echo "$ac_t""no" 1>&6
13286 fi
13287 fi
13288
13289else
13290 echo "$ac_t""no" 1>&6
13291fi
13292
13293
13294
13295# AC_CHECK_HEADER(GL/gl.h,
13296# [
13297# AC_CHECK_LIB(GL, glFlush,
13298# [
13299# OPENGL_LIBS="-lGL -lGLU"
13300# ],
13301# [
13302# AC_CHECK_LIB(MesaGL, glFlush,
13303# [
13304# OPENGL_LIBS="-lMesaGL -lMesaGLU"
13305# ],
13306# [],
13307# [-lm])
13308# ],
13309# [-lm])
13310# ])
13311
13312 if test "x$OPENGL_LIBS" = "x"; then
13313 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
13314 fi
13315 fi
13316
13317 if test "$wxUSE_OPENGL" = "yes"; then
13318 cat >> confdefs.h <<\EOF
13319#define wxUSE_OPENGL 1
13320EOF
13321
13322 cat >> confdefs.h <<\EOF
13323#define wxUSE_GLCANVAS 1
13324EOF
13325
13326 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
13327 fi
13328fi
13329
13330if test -z "$TOOLKIT_VPATH" ; then
13331 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
13332fi
13333
13334if test -n "$TOOLKIT" ; then
13335 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
13336fi
13337
13338lib_unicode_suffix=
13339if test "$wxUSE_UNICODE" = "yes"; then
13340 lib_unicode_suffix=u
13341fi
13342
13343lib_debug_suffix=
13344if test "$wxUSE_DEBUG_FLAG" = "yes"; then
13345 lib_debug_suffix=d
13346fi
13347
13348TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
13349TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
13350
13351if test "$cross_compiling" = "yes"; then
13352 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
13353 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
13354fi
13355
13356WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
13357WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
13358
13359WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
13360WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
13361
13362WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
13363WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
13364WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
13365WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
13366
13367WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
13368WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
13369
13370case "${host}" in
13371 *-*-cygwin* | *-*-mingw32* )
13372
13373
13374
13375 if test "$cross_compiling" != "yes"; then
13376 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
13377 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
13378 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
13379 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
13380 else
13381 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
13382 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
13383 fi
13384
13385esac
13386
13387WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
13388WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
13389
13390WXCONFIG_LIBS="-l${WX_LIBRARY}"
13391WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
13392
13393if test "$wxUSE_OPENGL" = "yes"; then
13394 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
13395 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
13396fi
13397
13398
13399
13400if test "$wxUSE_SHARED" = "yes"; then
13401 case "${host}" in
13402 *-pc-os2_emx | *-pc-os2-emx | \
13403 *-pc-msdosdjgpp )
13404 wxUSE_SHARED=no
13405 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
13406 ;;
13407 esac
13408fi
13409
13410if test "$wxUSE_SHARED" = "yes"; then
13411
13412 if test "$wxUSE_OPENGL" = "yes"; then
13413 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
13414 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
13415 else
13416 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
13417 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
13418 fi
13419
13420 if test "$GCC" = "yes"; then
13421 PIC_FLAG="-fPIC"
13422 fi
13423
13424 SHARED_LD="${CXX} -shared -o"
13425
13426 case "${host}" in
13427 *-hp-hpux* )
13428 if test "$GCC" == "yes"; then
13429 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
13430 else
13431 LDFLAGS="$LDFLAGS -L/usr/lib"
13432
13433 SHARED_LD="${CXX} -b -o"
13434 PIC_FLAG="+Z"
13435 fi
13436
13437 if test "$wxUSE_OPENGL" = "yes"; then
13438 WX_ALL_INSTALLED="preinstall_gl"
13439 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
13440 else
13441 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
13442 fi
13443 ;;
13444
13445 *-*-linux* )
13446 if test "$GCC" != "yes"; then
13447 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
13448echo "configure:13449: checking for Intel compiler" >&5
13449if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
13450 echo $ac_n "(cached) $ac_c" 1>&6
13451else
13452
13453 cat > conftest.$ac_ext <<EOF
13454#line 13455 "configure"
13455#include "confdefs.h"
13456
13457int main() {
13458
13459 #ifndef __INTEL_COMPILER
13460 #error Not icc
13461 #endif
13462
13463; return 0; }
13464EOF
13465if { (eval echo configure:13466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13466 rm -rf conftest*
13467 wx_cv_prog_icc=yes
13468else
13469 echo "configure: failed program was:" >&5
13470 cat conftest.$ac_ext >&5
13471 rm -rf conftest*
13472 wx_cv_prog_icc=no
13473
13474fi
13475rm -f conftest*
13476
13477fi
13478
13479echo "$ac_t""$wx_cv_prog_icc" 1>&6
13480 if test "$wx_cv_prog_icc" = "yes"; then
13481 PIC_FLAG="-KPIC"
13482 fi
13483 fi
13484
13485 if test "$wxUSE_SONAME" = "yes" ; then
13486 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
13487 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
13488 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
13489 fi
13490 ;;
13491
13492 *-*-solaris2* )
13493 if test "$GCC" = yes ; then
13494 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
13495 else
13496 SHARED_LD="${CXX} -G -o"
13497 PIC_FLAG="-KPIC"
13498 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
13499 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
13500 fi
13501 ;;
13502
13503 *-*-darwin* )
13504 CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT"
13505 CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT"
13506 SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o"
13507 PIC_FLAG="-dynamic -fPIC"
13508 ;;
13509
13510 *-*-aix* )
13511 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
13512 ;;
13513
13514 *-*-cygwin* | *-*-mingw32* )
13515
13516 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
13517
13518 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
13519 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
13520
13521 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
13522
13523 if test "$wxUSE_OPENGL" = "yes"; then
13524 WX_ALL_INSTALLED="preinstall_gl"
13525 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
13526 else
13527 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
13528 fi
13529 ;;
13530
13531 *-*-beos* )
13532 SHARED_LD="${LD} -shared -o"
13533 ;;
13534
13535 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
13536 *-*-sunos4* | \
13537 *-*-irix5* | *-*-irix6* | \
13538 *-*-osf* | \
13539 *-*-dgux5* | \
13540 *-*-sysv5* )
13541 ;;
13542
13543 *)
13544 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
13545 esac
13546
13547 if test "x$WX_TARGET_LIBRARY" = "x"; then
13548 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
13549 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
13550 fi
13551
13552 WX_TARGET_LIBRARY_TYPE="so"
13553 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
13554fi
13555
13556if test "$wxUSE_SHARED" = "no"; then
13557
13558 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
13559 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
13560 fi
13561
13562 if test "$wxUSE_MAC" = 1; then
13563 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
13564 fi
13565
13566 if test "$wxUSE_OPENGL" = "yes"; then
13567 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
13568 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
13569 else
13570 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
13571 fi
13572
13573 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
13574 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
13575
13576 WX_TARGET_LIBRARY_TYPE="a"
13577 INSTALL_LIBRARY='$(INSTALL_DATA)'
13578fi
13579
13580if test "$wxUSE_MAC" = 1; then
13581 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
13582 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
13583 # Extract the first word of "Rez", so it can be a program name with args.
13584set dummy Rez; ac_word=$2
13585echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13586echo "configure:13587: checking for $ac_word" >&5
13587if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
13588 echo $ac_n "(cached) $ac_c" 1>&6
13589else
13590 if test -n "$RESCOMP"; then
13591 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
13592else
13593 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13594 ac_dummy="$PATH"
13595 for ac_dir in $ac_dummy; do
13596 test -z "$ac_dir" && ac_dir=.
13597 if test -f $ac_dir/$ac_word; then
13598 ac_cv_prog_RESCOMP="Rez"
13599 break
13600 fi
13601 done
13602 IFS="$ac_save_ifs"
13603 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
13604fi
13605fi
13606RESCOMP="$ac_cv_prog_RESCOMP"
13607if test -n "$RESCOMP"; then
13608 echo "$ac_t""$RESCOMP" 1>&6
13609else
13610 echo "$ac_t""no" 1>&6
13611fi
13612
13613 # Extract the first word of "DeRez", so it can be a program name with args.
13614set dummy DeRez; ac_word=$2
13615echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13616echo "configure:13617: checking for $ac_word" >&5
13617if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
13618 echo $ac_n "(cached) $ac_c" 1>&6
13619else
13620 if test -n "$DEREZ"; then
13621 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
13622else
13623 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13624 ac_dummy="$PATH"
13625 for ac_dir in $ac_dummy; do
13626 test -z "$ac_dir" && ac_dir=.
13627 if test -f $ac_dir/$ac_word; then
13628 ac_cv_prog_DEREZ="DeRez"
13629 break
13630 fi
13631 done
13632 IFS="$ac_save_ifs"
13633 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
13634fi
13635fi
13636DEREZ="$ac_cv_prog_DEREZ"
13637if test -n "$DEREZ"; then
13638 echo "$ac_t""$DEREZ" 1>&6
13639else
13640 echo "$ac_t""no" 1>&6
13641fi
13642
13643 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
13644 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
13645 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
13646fi
13647
13648
13649if test "$wxUSE_MAC" != 1; then
13650 for ac_hdr in strings.h
13651do
13652ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13653echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13654echo "configure:13655: checking for $ac_hdr" >&5
13655if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13656 echo $ac_n "(cached) $ac_c" 1>&6
13657else
13658 cat > conftest.$ac_ext <<EOF
13659#line 13660 "configure"
13660#include "confdefs.h"
13661#include <$ac_hdr>
13662EOF
13663ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13664{ (eval echo configure:13665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13665ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13666if test -z "$ac_err"; then
13667 rm -rf conftest*
13668 eval "ac_cv_header_$ac_safe=yes"
13669else
13670 echo "$ac_err" >&5
13671 echo "configure: failed program was:" >&5
13672 cat conftest.$ac_ext >&5
13673 rm -rf conftest*
13674 eval "ac_cv_header_$ac_safe=no"
13675fi
13676rm -f conftest*
13677fi
13678if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13679 echo "$ac_t""yes" 1>&6
13680 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13681 cat >> confdefs.h <<EOF
13682#define $ac_tr_hdr 1
13683EOF
13684
13685else
13686 echo "$ac_t""no" 1>&6
13687fi
13688done
13689
13690fi
13691
13692for ac_hdr in stdlib.h
13693do
13694ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13695echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13696echo "configure:13697: checking for $ac_hdr" >&5
13697if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13698 echo $ac_n "(cached) $ac_c" 1>&6
13699else
13700 cat > conftest.$ac_ext <<EOF
13701#line 13702 "configure"
13702#include "confdefs.h"
13703#include <$ac_hdr>
13704EOF
13705ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13706{ (eval echo configure:13707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13707ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13708if test -z "$ac_err"; then
13709 rm -rf conftest*
13710 eval "ac_cv_header_$ac_safe=yes"
13711else
13712 echo "$ac_err" >&5
13713 echo "configure: failed program was:" >&5
13714 cat conftest.$ac_ext >&5
13715 rm -rf conftest*
13716 eval "ac_cv_header_$ac_safe=no"
13717fi
13718rm -f conftest*
13719fi
13720if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13721 echo "$ac_t""yes" 1>&6
13722 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13723 cat >> confdefs.h <<EOF
13724#define $ac_tr_hdr 1
13725EOF
13726
13727else
13728 echo "$ac_t""no" 1>&6
13729fi
13730done
13731
13732for ac_hdr in malloc.h
13733do
13734ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13735echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13736echo "configure:13737: checking for $ac_hdr" >&5
13737if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13738 echo $ac_n "(cached) $ac_c" 1>&6
13739else
13740 cat > conftest.$ac_ext <<EOF
13741#line 13742 "configure"
13742#include "confdefs.h"
13743#include <$ac_hdr>
13744EOF
13745ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13746{ (eval echo configure:13747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13747ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13748if test -z "$ac_err"; then
13749 rm -rf conftest*
13750 eval "ac_cv_header_$ac_safe=yes"
13751else
13752 echo "$ac_err" >&5
13753 echo "configure: failed program was:" >&5
13754 cat conftest.$ac_ext >&5
13755 rm -rf conftest*
13756 eval "ac_cv_header_$ac_safe=no"
13757fi
13758rm -f conftest*
13759fi
13760if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13761 echo "$ac_t""yes" 1>&6
13762 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13763 cat >> confdefs.h <<EOF
13764#define $ac_tr_hdr 1
13765EOF
13766
13767else
13768 echo "$ac_t""no" 1>&6
13769fi
13770done
13771
13772for ac_hdr in unistd.h
13773do
13774ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13775echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13776echo "configure:13777: checking for $ac_hdr" >&5
13777if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13778 echo $ac_n "(cached) $ac_c" 1>&6
13779else
13780 cat > conftest.$ac_ext <<EOF
13781#line 13782 "configure"
13782#include "confdefs.h"
13783#include <$ac_hdr>
13784EOF
13785ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13786{ (eval echo configure:13787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13787ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13788if test -z "$ac_err"; then
13789 rm -rf conftest*
13790 eval "ac_cv_header_$ac_safe=yes"
13791else
13792 echo "$ac_err" >&5
13793 echo "configure: failed program was:" >&5
13794 cat conftest.$ac_ext >&5
13795 rm -rf conftest*
13796 eval "ac_cv_header_$ac_safe=no"
13797fi
13798rm -f conftest*
13799fi
13800if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13801 echo "$ac_t""yes" 1>&6
13802 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13803 cat >> confdefs.h <<EOF
13804#define $ac_tr_hdr 1
13805EOF
13806
13807else
13808 echo "$ac_t""no" 1>&6
13809fi
13810done
13811
13812for ac_hdr in wchar.h
13813do
13814ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13815echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13816echo "configure:13817: checking for $ac_hdr" >&5
13817if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13818 echo $ac_n "(cached) $ac_c" 1>&6
13819else
13820 cat > conftest.$ac_ext <<EOF
13821#line 13822 "configure"
13822#include "confdefs.h"
13823#include <$ac_hdr>
13824EOF
13825ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13826{ (eval echo configure:13827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13827ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13828if test -z "$ac_err"; then
13829 rm -rf conftest*
13830 eval "ac_cv_header_$ac_safe=yes"
13831else
13832 echo "$ac_err" >&5
13833 echo "configure: failed program was:" >&5
13834 cat conftest.$ac_ext >&5
13835 rm -rf conftest*
13836 eval "ac_cv_header_$ac_safe=no"
13837fi
13838rm -f conftest*
13839fi
13840if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13841 echo "$ac_t""yes" 1>&6
13842 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13843 cat >> confdefs.h <<EOF
13844#define $ac_tr_hdr 1
13845EOF
13846
13847else
13848 echo "$ac_t""no" 1>&6
13849fi
13850done
13851
13852for ac_hdr in wcstr.h
13853do
13854ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13855echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13856echo "configure:13857: checking for $ac_hdr" >&5
13857if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13858 echo $ac_n "(cached) $ac_c" 1>&6
13859else
13860 cat > conftest.$ac_ext <<EOF
13861#line 13862 "configure"
13862#include "confdefs.h"
13863#include <$ac_hdr>
13864EOF
13865ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13866{ (eval echo configure:13867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13867ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13868if test -z "$ac_err"; then
13869 rm -rf conftest*
13870 eval "ac_cv_header_$ac_safe=yes"
13871else
13872 echo "$ac_err" >&5
13873 echo "configure: failed program was:" >&5
13874 cat conftest.$ac_ext >&5
13875 rm -rf conftest*
13876 eval "ac_cv_header_$ac_safe=no"
13877fi
13878rm -f conftest*
13879fi
13880if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13881 echo "$ac_t""yes" 1>&6
13882 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13883 cat >> confdefs.h <<EOF
13884#define $ac_tr_hdr 1
13885EOF
13886
13887else
13888 echo "$ac_t""no" 1>&6
13889fi
13890done
13891
13892for ac_hdr in wctype.h
13893do
13894ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13895echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13896echo "configure:13897: checking for $ac_hdr" >&5
13897if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13898 echo $ac_n "(cached) $ac_c" 1>&6
13899else
13900 cat > conftest.$ac_ext <<EOF
13901#line 13902 "configure"
13902#include "confdefs.h"
13903#include <$ac_hdr>
13904EOF
13905ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13906{ (eval echo configure:13907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13907ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13908if test -z "$ac_err"; then
13909 rm -rf conftest*
13910 eval "ac_cv_header_$ac_safe=yes"
13911else
13912 echo "$ac_err" >&5
13913 echo "configure: failed program was:" >&5
13914 cat conftest.$ac_ext >&5
13915 rm -rf conftest*
13916 eval "ac_cv_header_$ac_safe=no"
13917fi
13918rm -f conftest*
13919fi
13920if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13921 echo "$ac_t""yes" 1>&6
13922 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13923 cat >> confdefs.h <<EOF
13924#define $ac_tr_hdr 1
13925EOF
13926
13927else
13928 echo "$ac_t""no" 1>&6
13929fi
13930done
13931
13932for ac_hdr in fnmatch.h
13933do
13934ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13935echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13936echo "configure:13937: checking for $ac_hdr" >&5
13937if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13938 echo $ac_n "(cached) $ac_c" 1>&6
13939else
13940 cat > conftest.$ac_ext <<EOF
13941#line 13942 "configure"
13942#include "confdefs.h"
13943#include <$ac_hdr>
13944EOF
13945ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13946{ (eval echo configure:13947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13947ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13948if test -z "$ac_err"; then
13949 rm -rf conftest*
13950 eval "ac_cv_header_$ac_safe=yes"
13951else
13952 echo "$ac_err" >&5
13953 echo "configure: failed program was:" >&5
13954 cat conftest.$ac_ext >&5
13955 rm -rf conftest*
13956 eval "ac_cv_header_$ac_safe=no"
13957fi
13958rm -f conftest*
13959fi
13960if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13961 echo "$ac_t""yes" 1>&6
13962 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13963 cat >> confdefs.h <<EOF
13964#define $ac_tr_hdr 1
13965EOF
13966
13967else
13968 echo "$ac_t""no" 1>&6
13969fi
13970done
13971
13972for ac_hdr in langinfo.h
13973do
13974ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13975echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13976echo "configure:13977: checking for $ac_hdr" >&5
13977if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13978 echo $ac_n "(cached) $ac_c" 1>&6
13979else
13980 cat > conftest.$ac_ext <<EOF
13981#line 13982 "configure"
13982#include "confdefs.h"
13983#include <$ac_hdr>
13984EOF
13985ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13986{ (eval echo configure:13987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13987ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13988if test -z "$ac_err"; then
13989 rm -rf conftest*
13990 eval "ac_cv_header_$ac_safe=yes"
13991else
13992 echo "$ac_err" >&5
13993 echo "configure: failed program was:" >&5
13994 cat conftest.$ac_ext >&5
13995 rm -rf conftest*
13996 eval "ac_cv_header_$ac_safe=no"
13997fi
13998rm -f conftest*
13999fi
14000if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14001 echo "$ac_t""yes" 1>&6
14002 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14003 cat >> confdefs.h <<EOF
14004#define $ac_tr_hdr 1
14005EOF
14006
14007else
14008 echo "$ac_t""no" 1>&6
14009fi
14010done
14011
14012
14013if test "$wxUSE_GUI" = "yes"; then
14014 if test "$wxUSE_UNIX" = "yes"; then
14015 for ac_hdr in X11/XKBlib.h
14016do
14017ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14018echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14019echo "configure:14020: checking for $ac_hdr" >&5
14020if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14021 echo $ac_n "(cached) $ac_c" 1>&6
14022else
14023 cat > conftest.$ac_ext <<EOF
14024#line 14025 "configure"
14025#include "confdefs.h"
14026#include <$ac_hdr>
14027EOF
14028ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14029{ (eval echo configure:14030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14030ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14031if test -z "$ac_err"; then
14032 rm -rf conftest*
14033 eval "ac_cv_header_$ac_safe=yes"
14034else
14035 echo "$ac_err" >&5
14036 echo "configure: failed program was:" >&5
14037 cat conftest.$ac_ext >&5
14038 rm -rf conftest*
14039 eval "ac_cv_header_$ac_safe=no"
14040fi
14041rm -f conftest*
14042fi
14043if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14044 echo "$ac_t""yes" 1>&6
14045 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14046 cat >> confdefs.h <<EOF
14047#define $ac_tr_hdr 1
14048EOF
14049
14050else
14051 echo "$ac_t""no" 1>&6
14052fi
14053done
14054
14055 fi
14056fi
14057
14058
14059echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
14060echo "configure:14061: checking for ANSI C header files" >&5
14061if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
14062 echo $ac_n "(cached) $ac_c" 1>&6
14063else
14064 cat > conftest.$ac_ext <<EOF
14065#line 14066 "configure"
14066#include "confdefs.h"
14067#include <stdlib.h>
14068#include <stdarg.h>
14069#include <string.h>
14070#include <float.h>
14071EOF
14072ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14073{ (eval echo configure:14074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14074ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14075if test -z "$ac_err"; then
14076 rm -rf conftest*
14077 ac_cv_header_stdc=yes
14078else
14079 echo "$ac_err" >&5
14080 echo "configure: failed program was:" >&5
14081 cat conftest.$ac_ext >&5
14082 rm -rf conftest*
14083 ac_cv_header_stdc=no
14084fi
14085rm -f conftest*
14086
14087if test $ac_cv_header_stdc = yes; then
14088 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14089cat > conftest.$ac_ext <<EOF
14090#line 14091 "configure"
14091#include "confdefs.h"
14092#include <string.h>
14093EOF
14094if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14095 egrep "memchr" >/dev/null 2>&1; then
14096 :
14097else
14098 rm -rf conftest*
14099 ac_cv_header_stdc=no
14100fi
14101rm -f conftest*
14102
14103fi
14104
14105if test $ac_cv_header_stdc = yes; then
14106 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14107cat > conftest.$ac_ext <<EOF
14108#line 14109 "configure"
14109#include "confdefs.h"
14110#include <stdlib.h>
14111EOF
14112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14113 egrep "free" >/dev/null 2>&1; then
14114 :
14115else
14116 rm -rf conftest*
14117 ac_cv_header_stdc=no
14118fi
14119rm -f conftest*
14120
14121fi
14122
14123if test $ac_cv_header_stdc = yes; then
14124 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14125if test "$cross_compiling" = yes; then
14126 :
14127else
14128 cat > conftest.$ac_ext <<EOF
14129#line 14130 "configure"
14130#include "confdefs.h"
14131#include <ctype.h>
14132#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14133#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14134#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14135int main () { int i; for (i = 0; i < 256; i++)
14136if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14137exit (0); }
14138
14139EOF
14140if { (eval echo configure:14141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14141then
14142 :
14143else
14144 echo "configure: failed program was:" >&5
14145 cat conftest.$ac_ext >&5
14146 rm -fr conftest*
14147 ac_cv_header_stdc=no
14148fi
14149rm -fr conftest*
14150fi
14151
14152fi
14153fi
14154
14155echo "$ac_t""$ac_cv_header_stdc" 1>&6
14156if test $ac_cv_header_stdc = yes; then
14157 cat >> confdefs.h <<\EOF
14158#define STDC_HEADERS 1
14159EOF
14160
14161fi
14162
14163echo $ac_n "checking for mode_t""... $ac_c" 1>&6
14164echo "configure:14165: checking for mode_t" >&5
14165if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
14166 echo $ac_n "(cached) $ac_c" 1>&6
14167else
14168 cat > conftest.$ac_ext <<EOF
14169#line 14170 "configure"
14170#include "confdefs.h"
14171#include <sys/types.h>
14172#if STDC_HEADERS
14173#include <stdlib.h>
14174#include <stddef.h>
14175#endif
14176EOF
14177if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14178 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14179 rm -rf conftest*
14180 ac_cv_type_mode_t=yes
14181else
14182 rm -rf conftest*
14183 ac_cv_type_mode_t=no
14184fi
14185rm -f conftest*
14186
14187fi
14188echo "$ac_t""$ac_cv_type_mode_t" 1>&6
14189if test $ac_cv_type_mode_t = no; then
14190 cat >> confdefs.h <<\EOF
14191#define mode_t int
14192EOF
14193
14194fi
14195
14196echo $ac_n "checking for off_t""... $ac_c" 1>&6
14197echo "configure:14198: checking for off_t" >&5
14198if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
14199 echo $ac_n "(cached) $ac_c" 1>&6
14200else
14201 cat > conftest.$ac_ext <<EOF
14202#line 14203 "configure"
14203#include "confdefs.h"
14204#include <sys/types.h>
14205#if STDC_HEADERS
14206#include <stdlib.h>
14207#include <stddef.h>
14208#endif
14209EOF
14210if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14211 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14212 rm -rf conftest*
14213 ac_cv_type_off_t=yes
14214else
14215 rm -rf conftest*
14216 ac_cv_type_off_t=no
14217fi
14218rm -f conftest*
14219
14220fi
14221echo "$ac_t""$ac_cv_type_off_t" 1>&6
14222if test $ac_cv_type_off_t = no; then
14223 cat >> confdefs.h <<\EOF
14224#define off_t long
14225EOF
14226
14227fi
14228
14229echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14230echo "configure:14231: checking for pid_t" >&5
14231if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
14232 echo $ac_n "(cached) $ac_c" 1>&6
14233else
14234 cat > conftest.$ac_ext <<EOF
14235#line 14236 "configure"
14236#include "confdefs.h"
14237#include <sys/types.h>
14238#if STDC_HEADERS
14239#include <stdlib.h>
14240#include <stddef.h>
14241#endif
14242EOF
14243if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14244 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14245 rm -rf conftest*
14246 ac_cv_type_pid_t=yes
14247else
14248 rm -rf conftest*
14249 ac_cv_type_pid_t=no
14250fi
14251rm -f conftest*
14252
14253fi
14254echo "$ac_t""$ac_cv_type_pid_t" 1>&6
14255if test $ac_cv_type_pid_t = no; then
14256 cat >> confdefs.h <<\EOF
14257#define pid_t int
14258EOF
14259
14260fi
14261
14262echo $ac_n "checking for size_t""... $ac_c" 1>&6
14263echo "configure:14264: checking for size_t" >&5
14264if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
14265 echo $ac_n "(cached) $ac_c" 1>&6
14266else
14267 cat > conftest.$ac_ext <<EOF
14268#line 14269 "configure"
14269#include "confdefs.h"
14270#include <sys/types.h>
14271#if STDC_HEADERS
14272#include <stdlib.h>
14273#include <stddef.h>
14274#endif
14275EOF
14276if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14277 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14278 rm -rf conftest*
14279 ac_cv_type_size_t=yes
14280else
14281 rm -rf conftest*
14282 ac_cv_type_size_t=no
14283fi
14284rm -f conftest*
14285
14286fi
14287echo "$ac_t""$ac_cv_type_size_t" 1>&6
14288if test $ac_cv_type_size_t = no; then
14289 cat >> confdefs.h <<\EOF
14290#define size_t unsigned
14291EOF
14292
14293fi
14294
14295echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14296echo "configure:14297: checking for uid_t in sys/types.h" >&5
14297if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
14298 echo $ac_n "(cached) $ac_c" 1>&6
14299else
14300 cat > conftest.$ac_ext <<EOF
14301#line 14302 "configure"
14302#include "confdefs.h"
14303#include <sys/types.h>
14304EOF
14305if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14306 egrep "uid_t" >/dev/null 2>&1; then
14307 rm -rf conftest*
14308 ac_cv_type_uid_t=yes
14309else
14310 rm -rf conftest*
14311 ac_cv_type_uid_t=no
14312fi
14313rm -f conftest*
14314
14315fi
14316
14317echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14318if test $ac_cv_type_uid_t = no; then
14319 cat >> confdefs.h <<\EOF
14320#define uid_t int
14321EOF
14322
14323 cat >> confdefs.h <<\EOF
14324#define gid_t int
14325EOF
14326
14327fi
14328
14329
14330echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
14331echo "configure:14332: checking for wchar_t" >&5
14332if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
14333 echo $ac_n "(cached) $ac_c" 1>&6
14334else
14335
14336 cat > conftest.$ac_ext <<EOF
14337#line 14338 "configure"
14338#include "confdefs.h"
14339
14340 #ifdef HAVE_WCHAR_H
14341 # ifdef __CYGWIN__
14342 # include <stddef.h>
14343 # endif
14344 # include <wchar.h>
14345 #endif
14346 #ifdef HAVE_STDLIB_H
14347 # include <stdlib.h>
14348 #endif
14349
14350int main() {
14351
14352 wchar_t wc, *ws;
14353 wc = L'a';
14354 ws = L"Hello, world!";
14355
14356; return 0; }
14357EOF
14358if { (eval echo configure:14359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14359 rm -rf conftest*
14360 wx_cv_type_wchar_t=yes
14361else
14362 echo "configure: failed program was:" >&5
14363 cat conftest.$ac_ext >&5
14364 rm -rf conftest*
14365 wx_cv_type_wchar_t=no
14366
14367fi
14368rm -f conftest*
14369
14370fi
14371
14372echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
14373
14374if test "$wx_cv_type_wchar_t" = "yes"; then
14375 cat >> confdefs.h <<\EOF
14376#define wxUSE_WCHAR_T 1
14377EOF
14378
14379fi
14380
14381
14382ac_ext=C
14383# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14384ac_cpp='$CXXCPP $CPPFLAGS'
14385ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14386ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14387cross_compiling=$ac_cv_prog_cxx_cross
14388
14389echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
14390echo "configure:14391: checking if size_t is unsigned int" >&5
14391if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
14392 echo $ac_n "(cached) $ac_c" 1>&6
14393else
14394 cat > conftest.$ac_ext <<EOF
14395#line 14396 "configure"
14396#include "confdefs.h"
14397#include <stddef.h>
14398int main() {
14399
14400 return 0; }
14401
14402 struct Foo { void foo(size_t); void foo(unsigned int); };
14403
14404 int bar() {
14405
14406; return 0; }
14407EOF
14408if { (eval echo configure:14409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14409 rm -rf conftest*
14410 wx_cv_size_t_is_uint=no
14411else
14412 echo "configure: failed program was:" >&5
14413 cat conftest.$ac_ext >&5
14414 rm -rf conftest*
14415 wx_cv_size_t_is_uint=yes
14416
14417fi
14418rm -f conftest*
14419
14420fi
14421
14422echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
14423
14424if test "$wx_cv_size_t_is_uint" = "yes"; then
14425 cat >> confdefs.h <<\EOF
14426#define wxSIZE_T_IS_UINT 1
14427EOF
14428
14429else
14430 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
14431echo "configure:14432: checking if size_t is unsigned long" >&5
14432if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
14433 echo $ac_n "(cached) $ac_c" 1>&6
14434else
14435 cat > conftest.$ac_ext <<EOF
14436#line 14437 "configure"
14437#include "confdefs.h"
14438#include <stddef.h>
14439int main() {
14440
14441 return 0; }
14442
14443 struct Foo { void foo(size_t); void foo(unsigned long); };
14444
14445 int bar() {
14446
14447; return 0; }
14448EOF
14449if { (eval echo configure:14450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14450 rm -rf conftest*
14451 wx_cv_size_t_is_ulong=no
14452else
14453 echo "configure: failed program was:" >&5
14454 cat conftest.$ac_ext >&5
14455 rm -rf conftest*
14456 wx_cv_size_t_is_ulong=yes
14457
14458fi
14459rm -f conftest*
14460
14461fi
14462
14463echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
14464
14465 if test "$wx_cv_size_t_is_ulong" = "yes"; then
14466 cat >> confdefs.h <<\EOF
14467#define wxSIZE_T_IS_ULONG 1
14468EOF
14469
14470 fi
14471fi
14472
14473ac_ext=c
14474# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14475ac_cpp='$CPP $CPPFLAGS'
14476ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14477ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14478cross_compiling=$ac_cv_prog_cc_cross
14479
14480
14481
14482echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
14483echo "configure:14484: checking for pw_gecos in struct passwd" >&5
14484if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
14485 echo $ac_n "(cached) $ac_c" 1>&6
14486else
14487
14488 cat > conftest.$ac_ext <<EOF
14489#line 14490 "configure"
14490#include "confdefs.h"
14491#include <pwd.h>
14492int main() {
14493
14494 char *p;
14495 struct passwd *pw;
14496 p = pw->pw_gecos;
14497
14498; return 0; }
14499EOF
14500if { (eval echo configure:14501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14501 rm -rf conftest*
14502
14503 wx_cv_struct_pw_gecos=yes
14504
14505else
14506 echo "configure: failed program was:" >&5
14507 cat conftest.$ac_ext >&5
14508 rm -rf conftest*
14509
14510 wx_cv_struct_pw_gecos=no
14511
14512
14513fi
14514rm -f conftest*
14515
14516
14517fi
14518
14519echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
14520
14521if test "$wx_cv_struct_pw_gecos" = "yes"; then
14522 cat >> confdefs.h <<\EOF
14523#define HAVE_PW_GECOS 1
14524EOF
14525
14526fi
14527
14528
14529echo $ac_n "checking for working const""... $ac_c" 1>&6
14530echo "configure:14531: checking for working const" >&5
14531if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
14532 echo $ac_n "(cached) $ac_c" 1>&6
14533else
14534 cat > conftest.$ac_ext <<EOF
14535#line 14536 "configure"
14536#include "confdefs.h"
14537
14538int main() {
14539
14540/* Ultrix mips cc rejects this. */
14541typedef int charset[2]; const charset x;
14542/* SunOS 4.1.1 cc rejects this. */
14543char const *const *ccp;
14544char **p;
14545/* NEC SVR4.0.2 mips cc rejects this. */
14546struct point {int x, y;};
14547static struct point const zero = {0,0};
14548/* AIX XL C 1.02.0.0 rejects this.
14549 It does not let you subtract one const X* pointer from another in an arm
14550 of an if-expression whose if-part is not a constant expression */
14551const char *g = "string";
14552ccp = &g + (g ? g-g : 0);
14553/* HPUX 7.0 cc rejects these. */
14554++ccp;
14555p = (char**) ccp;
14556ccp = (char const *const *) p;
14557{ /* SCO 3.2v4 cc rejects this. */
14558 char *t;
14559 char const *s = 0 ? (char *) 0 : (char const *) 0;
14560
14561 *t++ = 0;
14562}
14563{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14564 int x[] = {25, 17};
14565 const int *foo = &x[0];
14566 ++foo;
14567}
14568{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14569 typedef const int *iptr;
14570 iptr p = 0;
14571 ++p;
14572}
14573{ /* AIX XL C 1.02.0.0 rejects this saying
14574 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14575 struct s { int j; const int *ap[3]; };
14576 struct s *b; b->j = 5;
14577}
14578{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14579 const int foo = 10;
14580}
14581
14582; return 0; }
14583EOF
14584if { (eval echo configure:14585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14585 rm -rf conftest*
14586 ac_cv_c_const=yes
14587else
14588 echo "configure: failed program was:" >&5
14589 cat conftest.$ac_ext >&5
14590 rm -rf conftest*
14591 ac_cv_c_const=no
14592fi
14593rm -f conftest*
14594fi
14595
14596echo "$ac_t""$ac_cv_c_const" 1>&6
14597if test $ac_cv_c_const = no; then
14598 cat >> confdefs.h <<\EOF
14599#define const
14600EOF
14601
14602fi
14603
14604echo $ac_n "checking for inline""... $ac_c" 1>&6
14605echo "configure:14606: checking for inline" >&5
14606if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
14607 echo $ac_n "(cached) $ac_c" 1>&6
14608else
14609 ac_cv_c_inline=no
14610for ac_kw in inline __inline__ __inline; do
14611 cat > conftest.$ac_ext <<EOF
14612#line 14613 "configure"
14613#include "confdefs.h"
14614
14615int main() {
14616} $ac_kw foo() {
14617; return 0; }
14618EOF
14619if { (eval echo configure:14620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14620 rm -rf conftest*
14621 ac_cv_c_inline=$ac_kw; break
14622else
14623 echo "configure: failed program was:" >&5
14624 cat conftest.$ac_ext >&5
14625fi
14626rm -f conftest*
14627done
14628
14629fi
14630
14631echo "$ac_t""$ac_cv_c_inline" 1>&6
14632case "$ac_cv_c_inline" in
14633 inline | yes) ;;
14634 no) cat >> confdefs.h <<\EOF
14635#define inline
14636EOF
14637 ;;
14638 *) cat >> confdefs.h <<EOF
14639#define inline $ac_cv_c_inline
14640EOF
14641 ;;
14642esac
14643
14644
14645echo $ac_n "checking size of char""... $ac_c" 1>&6
14646echo "configure:14647: checking size of char" >&5
14647if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
14648 echo $ac_n "(cached) $ac_c" 1>&6
14649else
14650 if test "$cross_compiling" = yes; then
14651 ac_cv_sizeof_char=1
14652else
14653 cat > conftest.$ac_ext <<EOF
14654#line 14655 "configure"
14655#include "confdefs.h"
14656#include <stdio.h>
14657main()
14658{
14659 FILE *f=fopen("conftestval", "w");
14660 if (!f) exit(1);
14661 fprintf(f, "%d\n", sizeof(char));
14662 exit(0);
14663}
14664EOF
14665if { (eval echo configure:14666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14666then
14667 ac_cv_sizeof_char=`cat conftestval`
14668else
14669 echo "configure: failed program was:" >&5
14670 cat conftest.$ac_ext >&5
14671 rm -fr conftest*
14672 ac_cv_sizeof_char=0
14673fi
14674rm -fr conftest*
14675fi
14676
14677fi
14678echo "$ac_t""$ac_cv_sizeof_char" 1>&6
14679cat >> confdefs.h <<EOF
14680#define SIZEOF_CHAR $ac_cv_sizeof_char
14681EOF
14682
14683
14684echo $ac_n "checking size of short""... $ac_c" 1>&6
14685echo "configure:14686: checking size of short" >&5
14686if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
14687 echo $ac_n "(cached) $ac_c" 1>&6
14688else
14689 if test "$cross_compiling" = yes; then
14690 ac_cv_sizeof_short=2
14691else
14692 cat > conftest.$ac_ext <<EOF
14693#line 14694 "configure"
14694#include "confdefs.h"
14695#include <stdio.h>
14696main()
14697{
14698 FILE *f=fopen("conftestval", "w");
14699 if (!f) exit(1);
14700 fprintf(f, "%d\n", sizeof(short));
14701 exit(0);
14702}
14703EOF
14704if { (eval echo configure:14705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14705then
14706 ac_cv_sizeof_short=`cat conftestval`
14707else
14708 echo "configure: failed program was:" >&5
14709 cat conftest.$ac_ext >&5
14710 rm -fr conftest*
14711 ac_cv_sizeof_short=0
14712fi
14713rm -fr conftest*
14714fi
14715
14716fi
14717echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14718cat >> confdefs.h <<EOF
14719#define SIZEOF_SHORT $ac_cv_sizeof_short
14720EOF
14721
14722
14723echo $ac_n "checking size of int *""... $ac_c" 1>&6
14724echo "configure:14725: checking size of int *" >&5
14725if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
14726 echo $ac_n "(cached) $ac_c" 1>&6
14727else
14728 if test "$cross_compiling" = yes; then
14729 ac_cv_sizeof_int_p=4
14730else
14731 cat > conftest.$ac_ext <<EOF
14732#line 14733 "configure"
14733#include "confdefs.h"
14734#include <stdio.h>
14735main()
14736{
14737 FILE *f=fopen("conftestval", "w");
14738 if (!f) exit(1);
14739 fprintf(f, "%d\n", sizeof(int *));
14740 exit(0);
14741}
14742EOF
14743if { (eval echo configure:14744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14744then
14745 ac_cv_sizeof_int_p=`cat conftestval`
14746else
14747 echo "configure: failed program was:" >&5
14748 cat conftest.$ac_ext >&5
14749 rm -fr conftest*
14750 ac_cv_sizeof_int_p=0
14751fi
14752rm -fr conftest*
14753fi
14754
14755fi
14756echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
14757cat >> confdefs.h <<EOF
14758#define SIZEOF_INT_P $ac_cv_sizeof_int_p
14759EOF
14760
14761
14762echo $ac_n "checking size of int""... $ac_c" 1>&6
14763echo "configure:14764: checking size of int" >&5
14764if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
14765 echo $ac_n "(cached) $ac_c" 1>&6
14766else
14767 if test "$cross_compiling" = yes; then
14768 ac_cv_sizeof_int=4
14769else
14770 cat > conftest.$ac_ext <<EOF
14771#line 14772 "configure"
14772#include "confdefs.h"
14773#include <stdio.h>
14774main()
14775{
14776 FILE *f=fopen("conftestval", "w");
14777 if (!f) exit(1);
14778 fprintf(f, "%d\n", sizeof(int));
14779 exit(0);
14780}
14781EOF
14782if { (eval echo configure:14783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14783then
14784 ac_cv_sizeof_int=`cat conftestval`
14785else
14786 echo "configure: failed program was:" >&5
14787 cat conftest.$ac_ext >&5
14788 rm -fr conftest*
14789 ac_cv_sizeof_int=0
14790fi
14791rm -fr conftest*
14792fi
14793
14794fi
14795echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14796cat >> confdefs.h <<EOF
14797#define SIZEOF_INT $ac_cv_sizeof_int
14798EOF
14799
14800
14801echo $ac_n "checking size of long""... $ac_c" 1>&6
14802echo "configure:14803: checking size of long" >&5
14803if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
14804 echo $ac_n "(cached) $ac_c" 1>&6
14805else
14806 if test "$cross_compiling" = yes; then
14807 ac_cv_sizeof_long=4
14808else
14809 cat > conftest.$ac_ext <<EOF
14810#line 14811 "configure"
14811#include "confdefs.h"
14812#include <stdio.h>
14813main()
14814{
14815 FILE *f=fopen("conftestval", "w");
14816 if (!f) exit(1);
14817 fprintf(f, "%d\n", sizeof(long));
14818 exit(0);
14819}
14820EOF
14821if { (eval echo configure:14822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14822then
14823 ac_cv_sizeof_long=`cat conftestval`
14824else
14825 echo "configure: failed program was:" >&5
14826 cat conftest.$ac_ext >&5
14827 rm -fr conftest*
14828 ac_cv_sizeof_long=0
14829fi
14830rm -fr conftest*
14831fi
14832
14833fi
14834echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14835cat >> confdefs.h <<EOF
14836#define SIZEOF_LONG $ac_cv_sizeof_long
14837EOF
14838
14839
14840echo $ac_n "checking size of long long""... $ac_c" 1>&6
14841echo "configure:14842: checking size of long long" >&5
14842if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
14843 echo $ac_n "(cached) $ac_c" 1>&6
14844else
14845 if test "$cross_compiling" = yes; then
14846 ac_cv_sizeof_long_long=0
14847else
14848 cat > conftest.$ac_ext <<EOF
14849#line 14850 "configure"
14850#include "confdefs.h"
14851#include <stdio.h>
14852main()
14853{
14854 FILE *f=fopen("conftestval", "w");
14855 if (!f) exit(1);
14856 fprintf(f, "%d\n", sizeof(long long));
14857 exit(0);
14858}
14859EOF
14860if { (eval echo configure:14861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14861then
14862 ac_cv_sizeof_long_long=`cat conftestval`
14863else
14864 echo "configure: failed program was:" >&5
14865 cat conftest.$ac_ext >&5
14866 rm -fr conftest*
14867 ac_cv_sizeof_long_long=0
14868fi
14869rm -fr conftest*
14870fi
14871
14872fi
14873echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
14874cat >> confdefs.h <<EOF
14875#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14876EOF
14877
14878
14879
14880echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
14881echo "configure:14882: checking size of wchar_t" >&5
14882if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
14883 echo $ac_n "(cached) $ac_c" 1>&6
14884else
14885
14886 if test "$cross_compiling" = yes; then
14887 wx_cv_sizeof_wchar_t=4
14888
14889else
14890 cat > conftest.$ac_ext <<EOF
14891#line 14892 "configure"
14892#include "confdefs.h"
14893
14894 #ifdef HAVE_WCHAR_H
14895 # ifdef __CYGWIN__
14896 # include <stddef.h>
14897 # endif
14898 # include <wchar.h>
14899 #endif
14900 #ifdef HAVE_STDLIB_H
14901 # include <stdlib.h>
14902 #endif
14903 #include <stdio.h>
14904 int main()
14905 {
14906 FILE *f=fopen("conftestval", "w");
14907 if (!f) exit(1);
14908 fprintf(f, "%i", sizeof(wchar_t));
14909 exit(0);
14910 }
14911
14912EOF
14913if { (eval echo configure:14914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14914then
14915 wx_cv_sizeof_wchar_t=`cat conftestval`
14916else
14917 echo "configure: failed program was:" >&5
14918 cat conftest.$ac_ext >&5
14919 rm -fr conftest*
14920 wx_cv_sizeof_wchar_t=0
14921fi
14922rm -fr conftest*
14923fi
14924
14925
14926fi
14927
14928echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
14929
14930cat >> confdefs.h <<EOF
14931#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
14932EOF
14933
14934
14935echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14936echo "configure:14937: checking whether byte ordering is bigendian" >&5
14937if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
14938 echo $ac_n "(cached) $ac_c" 1>&6
14939else
14940 ac_cv_c_bigendian=unknown
14941# See if sys/param.h defines the BYTE_ORDER macro.
14942cat > conftest.$ac_ext <<EOF
14943#line 14944 "configure"
14944#include "confdefs.h"
14945#include <sys/types.h>
14946#include <sys/param.h>
14947int main() {
14948
14949#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14950 bogus endian macros
14951#endif
14952; return 0; }
14953EOF
14954if { (eval echo configure:14955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14955 rm -rf conftest*
14956 # It does; now see whether it defined to BIG_ENDIAN or not.
14957cat > conftest.$ac_ext <<EOF
14958#line 14959 "configure"
14959#include "confdefs.h"
14960#include <sys/types.h>
14961#include <sys/param.h>
14962int main() {
14963
14964#if BYTE_ORDER != BIG_ENDIAN
14965 not big endian
14966#endif
14967; return 0; }
14968EOF
14969if { (eval echo configure:14970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14970 rm -rf conftest*
14971 ac_cv_c_bigendian=yes
14972else
14973 echo "configure: failed program was:" >&5
14974 cat conftest.$ac_ext >&5
14975 rm -rf conftest*
14976 ac_cv_c_bigendian=no
14977fi
14978rm -f conftest*
14979else
14980 echo "configure: failed program was:" >&5
14981 cat conftest.$ac_ext >&5
14982fi
14983rm -f conftest*
14984if test $ac_cv_c_bigendian = unknown; then
14985if test "$cross_compiling" = yes; then
14986 ac_cv_c_bigendian=unknown
14987else
14988 cat > conftest.$ac_ext <<EOF
14989#line 14990 "configure"
14990#include "confdefs.h"
14991main () {
14992 /* Are we little or big endian? From Harbison&Steele. */
14993 union
14994 {
14995 long l;
14996 char c[sizeof (long)];
14997 } u;
14998 u.l = 1;
14999 exit (u.c[sizeof (long) - 1] == 1);
15000}
15001EOF
15002if { (eval echo configure:15003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15003then
15004 ac_cv_c_bigendian=no
15005else
15006 echo "configure: failed program was:" >&5
15007 cat conftest.$ac_ext >&5
15008 rm -fr conftest*
15009 ac_cv_c_bigendian=yes
15010fi
15011rm -fr conftest*
15012fi
15013
15014fi
15015fi
15016
15017echo "$ac_t""$ac_cv_c_bigendian" 1>&6
15018if test $ac_cv_c_bigendian = unknown; then
15019 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
15020fi
15021if test $ac_cv_c_bigendian = yes; then
15022 cat >> confdefs.h <<\EOF
15023#define WORDS_BIGENDIAN 1
15024EOF
15025
15026fi
15027
15028
15029echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
15030echo "configure:15031: checking how to run the C++ preprocessor" >&5
15031if test -z "$CXXCPP"; then
15032if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
15033 echo $ac_n "(cached) $ac_c" 1>&6
15034else
15035 ac_ext=C
15036# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15037ac_cpp='$CXXCPP $CPPFLAGS'
15038ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15039ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15040cross_compiling=$ac_cv_prog_cxx_cross
15041 CXXCPP="${CXX-g++} -E"
15042 cat > conftest.$ac_ext <<EOF
15043#line 15044 "configure"
15044#include "confdefs.h"
15045#include <stdlib.h>
15046EOF
15047ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15048{ (eval echo configure:15049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15049ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15050if test -z "$ac_err"; then
15051 :
15052else
15053 echo "$ac_err" >&5
15054 echo "configure: failed program was:" >&5
15055 cat conftest.$ac_ext >&5
15056 rm -rf conftest*
15057 CXXCPP=/lib/cpp
15058fi
15059rm -f conftest*
15060 ac_cv_prog_CXXCPP="$CXXCPP"
15061ac_ext=C
15062# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15063ac_cpp='$CXXCPP $CPPFLAGS'
15064ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15065ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15066cross_compiling=$ac_cv_prog_cxx_cross
15067fi
15068fi
15069CXXCPP="$ac_cv_prog_CXXCPP"
15070echo "$ac_t""$CXXCPP" 1>&6
15071
15072
15073 if test "$cross_compiling" = "yes"; then
15074 cat >> confdefs.h <<\EOF
15075#define wxUSE_IOSTREAMH 1
15076EOF
15077
15078 else
15079
15080 ac_ext=C
15081# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15082ac_cpp='$CXXCPP $CPPFLAGS'
15083ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15084ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15085cross_compiling=$ac_cv_prog_cxx_cross
15086
15087
15088 for ac_hdr in iostream
15089do
15090ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15091echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15092echo "configure:15093: checking for $ac_hdr" >&5
15093if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15094 echo $ac_n "(cached) $ac_c" 1>&6
15095else
15096 cat > conftest.$ac_ext <<EOF
15097#line 15098 "configure"
15098#include "confdefs.h"
15099#include <$ac_hdr>
15100EOF
15101ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15102{ (eval echo configure:15103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15103ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15104if test -z "$ac_err"; then
15105 rm -rf conftest*
15106 eval "ac_cv_header_$ac_safe=yes"
15107else
15108 echo "$ac_err" >&5
15109 echo "configure: failed program was:" >&5
15110 cat conftest.$ac_ext >&5
15111 rm -rf conftest*
15112 eval "ac_cv_header_$ac_safe=no"
15113fi
15114rm -f conftest*
15115fi
15116if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15117 echo "$ac_t""yes" 1>&6
15118 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15119 cat >> confdefs.h <<EOF
15120#define $ac_tr_hdr 1
15121EOF
15122
15123else
15124 echo "$ac_t""no" 1>&6
15125fi
15126done
15127
15128
15129 if test "$ac_cv_header_iostream" = "yes" ; then
15130 :
15131 else
15132 cat >> confdefs.h <<\EOF
15133#define wxUSE_IOSTREAMH 1
15134EOF
15135
15136 fi
15137
15138 ac_ext=c
15139# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15140ac_cpp='$CPP $CPPFLAGS'
15141ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15142ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15143cross_compiling=$ac_cv_prog_cc_cross
15144
15145 fi
15146
15147
15148
15149 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
15150echo "configure:15151: checking if C++ compiler supports bool" >&5
15151if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
15152 echo $ac_n "(cached) $ac_c" 1>&6
15153else
15154
15155
15156 ac_ext=C
15157# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15158ac_cpp='$CXXCPP $CPPFLAGS'
15159ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15160ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15161cross_compiling=$ac_cv_prog_cxx_cross
15162
15163
15164 cat > conftest.$ac_ext <<EOF
15165#line 15166 "configure"
15166#include "confdefs.h"
15167
15168
15169int main() {
15170
15171 bool b = true;
15172
15173 return 0;
15174
15175; return 0; }
15176EOF
15177if { (eval echo configure:15178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15178 rm -rf conftest*
15179
15180 wx_cv_cpp_bool=yes
15181
15182else
15183 echo "configure: failed program was:" >&5
15184 cat conftest.$ac_ext >&5
15185 rm -rf conftest*
15186
15187 wx_cv_cpp_bool=no
15188
15189
15190fi
15191rm -f conftest*
15192
15193 ac_ext=c
15194# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15195ac_cpp='$CPP $CPPFLAGS'
15196ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15197ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15198cross_compiling=$ac_cv_prog_cc_cross
15199
15200
15201fi
15202
15203echo "$ac_t""$wx_cv_cpp_bool" 1>&6
15204
15205 if test "$wx_cv_cpp_bool" = "yes"; then
15206 cat >> confdefs.h <<\EOF
15207#define HAVE_BOOL 1
15208EOF
15209
15210 fi
15211
15212
15213
15214echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
15215echo "configure:15216: checking for wcslen in -lc" >&5
15216ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
15217if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15218 echo $ac_n "(cached) $ac_c" 1>&6
15219else
15220 ac_save_LIBS="$LIBS"
15221LIBS="-lc $LIBS"
15222cat > conftest.$ac_ext <<EOF
15223#line 15224 "configure"
15224#include "confdefs.h"
15225/* Override any gcc2 internal prototype to avoid an error. */
15226/* We use char because int might match the return type of a gcc2
15227 builtin and then its argument prototype would still apply. */
15228char wcslen();
15229
15230int main() {
15231wcslen()
15232; return 0; }
15233EOF
15234if { (eval echo configure:15235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15235 rm -rf conftest*
15236 eval "ac_cv_lib_$ac_lib_var=yes"
15237else
15238 echo "configure: failed program was:" >&5
15239 cat conftest.$ac_ext >&5
15240 rm -rf conftest*
15241 eval "ac_cv_lib_$ac_lib_var=no"
15242fi
15243rm -f conftest*
15244LIBS="$ac_save_LIBS"
15245
15246fi
15247if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15248 echo "$ac_t""yes" 1>&6
15249
15250 cat >> confdefs.h <<\EOF
15251#define HAVE_WCSLEN 1
15252EOF
15253
15254 WCHAR_LINK=
15255
15256else
15257 echo "$ac_t""no" 1>&6
15258
15259 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
15260echo "configure:15261: checking for wcslen in -lw" >&5
15261ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
15262if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15263 echo $ac_n "(cached) $ac_c" 1>&6
15264else
15265 ac_save_LIBS="$LIBS"
15266LIBS="-lw $LIBS"
15267cat > conftest.$ac_ext <<EOF
15268#line 15269 "configure"
15269#include "confdefs.h"
15270/* Override any gcc2 internal prototype to avoid an error. */
15271/* We use char because int might match the return type of a gcc2
15272 builtin and then its argument prototype would still apply. */
15273char wcslen();
15274
15275int main() {
15276wcslen()
15277; return 0; }
15278EOF
15279if { (eval echo configure:15280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15280 rm -rf conftest*
15281 eval "ac_cv_lib_$ac_lib_var=yes"
15282else
15283 echo "configure: failed program was:" >&5
15284 cat conftest.$ac_ext >&5
15285 rm -rf conftest*
15286 eval "ac_cv_lib_$ac_lib_var=no"
15287fi
15288rm -f conftest*
15289LIBS="$ac_save_LIBS"
15290
15291fi
15292if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15293 echo "$ac_t""yes" 1>&6
15294
15295 cat >> confdefs.h <<\EOF
15296#define HAVE_WCSLEN 1
15297EOF
15298
15299 WCHAR_LINK=" -lw"
15300
15301else
15302 echo "$ac_t""no" 1>&6
15303
15304 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
15305echo "configure:15306: checking for wcslen in -lmsvcrt" >&5
15306ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
15307if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15308 echo $ac_n "(cached) $ac_c" 1>&6
15309else
15310 ac_save_LIBS="$LIBS"
15311LIBS="-lmsvcrt $LIBS"
15312cat > conftest.$ac_ext <<EOF
15313#line 15314 "configure"
15314#include "confdefs.h"
15315/* Override any gcc2 internal prototype to avoid an error. */
15316/* We use char because int might match the return type of a gcc2
15317 builtin and then its argument prototype would still apply. */
15318char wcslen();
15319
15320int main() {
15321wcslen()
15322; return 0; }
15323EOF
15324if { (eval echo configure:15325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15325 rm -rf conftest*
15326 eval "ac_cv_lib_$ac_lib_var=yes"
15327else
15328 echo "configure: failed program was:" >&5
15329 cat conftest.$ac_ext >&5
15330 rm -rf conftest*
15331 eval "ac_cv_lib_$ac_lib_var=no"
15332fi
15333rm -f conftest*
15334LIBS="$ac_save_LIBS"
15335
15336fi
15337if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15338 echo "$ac_t""yes" 1>&6
15339
15340 cat >> confdefs.h <<\EOF
15341#define HAVE_WCSLEN 1
15342EOF
15343
15344 WCHAR_LINK=
15345
15346else
15347 echo "$ac_t""no" 1>&6
15348fi
15349
15350
15351fi
15352
15353
15354fi
15355
15356
15357for ac_func in wcsrtombs
15358do
15359echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15360echo "configure:15361: checking for $ac_func" >&5
15361if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15362 echo $ac_n "(cached) $ac_c" 1>&6
15363else
15364 cat > conftest.$ac_ext <<EOF
15365#line 15366 "configure"
15366#include "confdefs.h"
15367/* System header to define __stub macros and hopefully few prototypes,
15368 which can conflict with char $ac_func(); below. */
15369#include <assert.h>
15370/* Override any gcc2 internal prototype to avoid an error. */
15371/* We use char because int might match the return type of a gcc2
15372 builtin and then its argument prototype would still apply. */
15373char $ac_func();
15374
15375int main() {
15376
15377/* The GNU C library defines this for functions which it implements
15378 to always fail with ENOSYS. Some functions are actually named
15379 something starting with __ and the normal name is an alias. */
15380#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15381choke me
15382#else
15383$ac_func();
15384#endif
15385
15386; return 0; }
15387EOF
15388if { (eval echo configure:15389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15389 rm -rf conftest*
15390 eval "ac_cv_func_$ac_func=yes"
15391else
15392 echo "configure: failed program was:" >&5
15393 cat conftest.$ac_ext >&5
15394 rm -rf conftest*
15395 eval "ac_cv_func_$ac_func=no"
15396fi
15397rm -f conftest*
15398fi
15399
15400if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15401 echo "$ac_t""yes" 1>&6
15402 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15403 cat >> confdefs.h <<EOF
15404#define $ac_tr_func 1
15405EOF
15406
15407else
15408 echo "$ac_t""no" 1>&6
15409fi
15410done
15411
15412
15413echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15414echo "configure:15415: checking for vprintf" >&5
15415if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
15416 echo $ac_n "(cached) $ac_c" 1>&6
15417else
15418 cat > conftest.$ac_ext <<EOF
15419#line 15420 "configure"
15420#include "confdefs.h"
15421/* System header to define __stub macros and hopefully few prototypes,
15422 which can conflict with char vprintf(); below. */
15423#include <assert.h>
15424/* Override any gcc2 internal prototype to avoid an error. */
15425/* We use char because int might match the return type of a gcc2
15426 builtin and then its argument prototype would still apply. */
15427char vprintf();
15428
15429int main() {
15430
15431/* The GNU C library defines this for functions which it implements
15432 to always fail with ENOSYS. Some functions are actually named
15433 something starting with __ and the normal name is an alias. */
15434#if defined (__stub_vprintf) || defined (__stub___vprintf)
15435choke me
15436#else
15437vprintf();
15438#endif
15439
15440; return 0; }
15441EOF
15442if { (eval echo configure:15443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15443 rm -rf conftest*
15444 eval "ac_cv_func_vprintf=yes"
15445else
15446 echo "configure: failed program was:" >&5
15447 cat conftest.$ac_ext >&5
15448 rm -rf conftest*
15449 eval "ac_cv_func_vprintf=no"
15450fi
15451rm -f conftest*
15452fi
15453
15454if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15455 echo "$ac_t""yes" 1>&6
15456 cat >> confdefs.h <<\EOF
15457#define HAVE_VPRINTF 1
15458EOF
15459
15460else
15461 echo "$ac_t""no" 1>&6
15462fi
15463
15464if test "$ac_cv_func_vprintf" != yes; then
15465echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15466echo "configure:15467: checking for _doprnt" >&5
15467if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
15468 echo $ac_n "(cached) $ac_c" 1>&6
15469else
15470 cat > conftest.$ac_ext <<EOF
15471#line 15472 "configure"
15472#include "confdefs.h"
15473/* System header to define __stub macros and hopefully few prototypes,
15474 which can conflict with char _doprnt(); below. */
15475#include <assert.h>
15476/* Override any gcc2 internal prototype to avoid an error. */
15477/* We use char because int might match the return type of a gcc2
15478 builtin and then its argument prototype would still apply. */
15479char _doprnt();
15480
15481int main() {
15482
15483/* The GNU C library defines this for functions which it implements
15484 to always fail with ENOSYS. Some functions are actually named
15485 something starting with __ and the normal name is an alias. */
15486#if defined (__stub__doprnt) || defined (__stub____doprnt)
15487choke me
15488#else
15489_doprnt();
15490#endif
15491
15492; return 0; }
15493EOF
15494if { (eval echo configure:15495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15495 rm -rf conftest*
15496 eval "ac_cv_func__doprnt=yes"
15497else
15498 echo "configure: failed program was:" >&5
15499 cat conftest.$ac_ext >&5
15500 rm -rf conftest*
15501 eval "ac_cv_func__doprnt=no"
15502fi
15503rm -f conftest*
15504fi
15505
15506if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15507 echo "$ac_t""yes" 1>&6
15508 cat >> confdefs.h <<\EOF
15509#define HAVE_DOPRNT 1
15510EOF
15511
15512else
15513 echo "$ac_t""no" 1>&6
15514fi
15515
15516fi
15517
15518
15519
15520
15521
15522
15523echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
15524echo "configure:15525: checking for vsnprintf" >&5
15525if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
15526 echo $ac_n "(cached) $ac_c" 1>&6
15527else
15528
15529 cat > conftest.$ac_ext <<EOF
15530#line 15531 "configure"
15531#include "confdefs.h"
15532
15533 #include <stdio.h>
15534 #include <stdarg.h>
15535
15536int main() {
15537
15538 int wx_test_vsnprintf(const char *, ...);
15539
15540 wx_test_vsnprintf("%s");
15541 return 0;
15542 }
15543
15544 int wx_test_vsnprintf(const char *fmt, ...)
15545 {
15546 char *s;
15547
15548 va_list argp;
15549 va_start(argp, fmt);
15550 vsnprintf(s, 42, fmt, argp);
15551 va_end(argp);
15552
15553; return 0; }
15554EOF
15555if { (eval echo configure:15556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15556 rm -rf conftest*
15557
15558 wx_cv_func_vsnprintf=yes
15559
15560else
15561 echo "configure: failed program was:" >&5
15562 cat conftest.$ac_ext >&5
15563 rm -rf conftest*
15564
15565 cat > conftest.$ac_ext <<EOF
15566#line 15567 "configure"
15567#include "confdefs.h"
15568
15569 #include <stdio.h>
15570 #include <stdarg.h>
15571
15572int main() {
15573
15574 int wx_test_vsnprintf(const char *, ...);
15575
15576 wx_test_vsnprintf("%s");
15577 return 0;
15578 }
15579
15580 int wx_test_vsnprintf(const char *fmt, ...)
15581 {
15582 char *s;
15583
15584 va_list argp;
15585 va_start(argp, fmt);
15586 _vsnprintf(s, 42, fmt, argp);
15587 va_end(argp);
15588
15589; return 0; }
15590EOF
15591if { (eval echo configure:15592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15592 rm -rf conftest*
15593
15594 wx_cv_func_vsnprintf=yes
15595
15596else
15597 echo "configure: failed program was:" >&5
15598 cat conftest.$ac_ext >&5
15599 rm -rf conftest*
15600
15601 wx_cv_func_vsnprintf=no
15602
15603fi
15604rm -f conftest*
15605
15606fi
15607rm -f conftest*
15608
15609fi
15610
15611echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
15612
15613if test "$wx_cv_func_vsnprintf" = yes; then
15614 cat >> confdefs.h <<\EOF
15615#define HAVE_VSNPRINTF 1
15616EOF
15617
15618else
15619 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
15620fi
15621
15622echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
15623echo "configure:15624: checking for vsscanf" >&5
15624if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
15625 echo $ac_n "(cached) $ac_c" 1>&6
15626else
15627
15628 cat > conftest.$ac_ext <<EOF
15629#line 15630 "configure"
15630#include "confdefs.h"
15631
15632 #include <stdio.h>
15633 #include <stdarg.h>
15634
15635int main() {
15636
15637 int wx_test_vsscanf(const char *, ...);
15638
15639 wx_test_vsscanf("%d");
15640 return 0;
15641 }
15642
15643 int wx_test_vsscanf(const char *fmt, ...)
15644 {
15645 va_list argp;
15646 va_start(argp, fmt);
15647 vsscanf("42", fmt, argp);
15648 va_end(argp);
15649
15650; return 0; }
15651EOF
15652if { (eval echo configure:15653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15653 rm -rf conftest*
15654
15655 wx_cv_func_vsscanf=yes
15656
15657else
15658 echo "configure: failed program was:" >&5
15659 cat conftest.$ac_ext >&5
15660 rm -rf conftest*
15661
15662 wx_cv_func_vsscanf=no
15663
15664fi
15665rm -f conftest*
15666
15667fi
15668
15669echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
15670
15671if test "$wx_cv_func_vsscanf" = yes; then
15672 cat >> confdefs.h <<\EOF
15673#define HAVE_VSSCANF 1
15674EOF
15675
15676fi
15677
15678if test "$TOOLKIT" != "MSW"; then
15679
15680
15681
15682ac_ext=C
15683# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15684ac_cpp='$CXXCPP $CPPFLAGS'
15685ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15686ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15687cross_compiling=$ac_cv_prog_cxx_cross
15688
15689
15690
15691 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15692if test "${with_libiconv_prefix+set}" = set; then
15693 withval="$with_libiconv_prefix"
15694
15695 for dir in `echo "$withval" | tr : ' '`; do
15696 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
15697 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
15698 done
15699
15700fi
15701
15702
15703 echo $ac_n "checking for iconv""... $ac_c" 1>&6
15704echo "configure:15705: checking for iconv" >&5
15705if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
15706 echo $ac_n "(cached) $ac_c" 1>&6
15707else
15708
15709 am_cv_func_iconv="no, consider installing GNU libiconv"
15710 am_cv_lib_iconv=no
15711 cat > conftest.$ac_ext <<EOF
15712#line 15713 "configure"
15713#include "confdefs.h"
15714#include <stdlib.h>
15715#include <iconv.h>
15716int main() {
15717iconv_t cd = iconv_open("","");
15718 iconv(cd,NULL,NULL,NULL,NULL);
15719 iconv_close(cd);
15720; return 0; }
15721EOF
15722if { (eval echo configure:15723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15723 rm -rf conftest*
15724 am_cv_func_iconv=yes
15725else
15726 echo "configure: failed program was:" >&5
15727 cat conftest.$ac_ext >&5
15728fi
15729rm -f conftest*
15730 if test "$am_cv_func_iconv" != yes; then
15731 am_save_LIBS="$LIBS"
15732 LIBS="$LIBS -liconv"
15733 cat > conftest.$ac_ext <<EOF
15734#line 15735 "configure"
15735#include "confdefs.h"
15736#include <stdlib.h>
15737#include <iconv.h>
15738int main() {
15739iconv_t cd = iconv_open("","");
15740 iconv(cd,NULL,NULL,NULL,NULL);
15741 iconv_close(cd);
15742; return 0; }
15743EOF
15744if { (eval echo configure:15745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15745 rm -rf conftest*
15746 am_cv_lib_iconv=yes
15747 am_cv_func_iconv=yes
15748else
15749 echo "configure: failed program was:" >&5
15750 cat conftest.$ac_ext >&5
15751fi
15752rm -f conftest*
15753 LIBS="$am_save_LIBS"
15754 fi
15755
15756fi
15757
15758echo "$ac_t""$am_cv_func_iconv" 1>&6
15759 if test "$am_cv_func_iconv" = yes; then
15760 cat >> confdefs.h <<\EOF
15761#define HAVE_ICONV 1
15762EOF
15763
15764 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
15765echo "configure:15766: checking if iconv needs const" >&5
15766if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
15767 echo $ac_n "(cached) $ac_c" 1>&6
15768else
15769 cat > conftest.$ac_ext <<EOF
15770#line 15771 "configure"
15771#include "confdefs.h"
15772
15773#include <stdlib.h>
15774#include <iconv.h>
15775extern
15776#ifdef __cplusplus
15777"C"
15778#endif
15779#if defined(__STDC__) || defined(__cplusplus)
15780size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15781#else
15782size_t iconv();
15783#endif
15784
15785int main() {
15786
15787; return 0; }
15788EOF
15789if { (eval echo configure:15790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15790 rm -rf conftest*
15791 wx_cv_func_iconv_const="no"
15792else
15793 echo "configure: failed program was:" >&5
15794 cat conftest.$ac_ext >&5
15795 rm -rf conftest*
15796 wx_cv_func_iconv_const="yes"
15797
15798fi
15799rm -f conftest*
15800
15801fi
15802
15803echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
15804
15805 iconv_const=
15806 if test "x$wx_cv_func_iconv_const" = "xyes"; then
15807 iconv_const="const"
15808 fi
15809
15810 cat >> confdefs.h <<EOF
15811#define ICONV_CONST $iconv_const
15812EOF
15813
15814 fi
15815 LIBICONV=
15816 if test "$am_cv_lib_iconv" = yes; then
15817 LIBICONV="-liconv"
15818 fi
15819
15820
15821LIBS="$LIBICONV $LIBS"
15822ac_ext=c
15823# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15824ac_cpp='$CPP $CPPFLAGS'
15825ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15826ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15827cross_compiling=$ac_cv_prog_cc_cross
15828
15829
15830if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
15831 for ac_func in sigaction
15832do
15833echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15834echo "configure:15835: checking for $ac_func" >&5
15835if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15836 echo $ac_n "(cached) $ac_c" 1>&6
15837else
15838 cat > conftest.$ac_ext <<EOF
15839#line 15840 "configure"
15840#include "confdefs.h"
15841/* System header to define __stub macros and hopefully few prototypes,
15842 which can conflict with char $ac_func(); below. */
15843#include <assert.h>
15844/* Override any gcc2 internal prototype to avoid an error. */
15845/* We use char because int might match the return type of a gcc2
15846 builtin and then its argument prototype would still apply. */
15847char $ac_func();
15848
15849int main() {
15850
15851/* The GNU C library defines this for functions which it implements
15852 to always fail with ENOSYS. Some functions are actually named
15853 something starting with __ and the normal name is an alias. */
15854#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15855choke me
15856#else
15857$ac_func();
15858#endif
15859
15860; return 0; }
15861EOF
15862if { (eval echo configure:15863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15863 rm -rf conftest*
15864 eval "ac_cv_func_$ac_func=yes"
15865else
15866 echo "configure: failed program was:" >&5
15867 cat conftest.$ac_ext >&5
15868 rm -rf conftest*
15869 eval "ac_cv_func_$ac_func=no"
15870fi
15871rm -f conftest*
15872fi
15873
15874if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15875 echo "$ac_t""yes" 1>&6
15876 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15877 cat >> confdefs.h <<EOF
15878#define $ac_tr_func 1
15879EOF
15880
15881else
15882 echo "$ac_t""no" 1>&6
15883fi
15884done
15885
15886
15887 if test "$ac_cv_func_sigaction" = "no"; then
15888 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
15889 wxUSE_ON_FATAL_EXCEPTION=no
15890 fi
15891
15892 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15893
15894 ac_ext=C
15895# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15896ac_cpp='$CXXCPP $CPPFLAGS'
15897ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15898ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15899cross_compiling=$ac_cv_prog_cxx_cross
15900
15901
15902 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
15903echo "configure:15904: checking for sa_handler type" >&5
15904if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
15905 echo $ac_n "(cached) $ac_c" 1>&6
15906else
15907
15908 cat > conftest.$ac_ext <<EOF
15909#line 15910 "configure"
15910#include "confdefs.h"
15911#include <signal.h>
15912int main() {
15913
15914 extern void testSigHandler(int);
15915
15916 struct sigaction sa;
15917 sa.sa_handler = testSigHandler;
15918
15919; return 0; }
15920EOF
15921if { (eval echo configure:15922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15922 rm -rf conftest*
15923
15924 wx_cv_type_sa_handler=int
15925
15926else
15927 echo "configure: failed program was:" >&5
15928 cat conftest.$ac_ext >&5
15929 rm -rf conftest*
15930
15931 wx_cv_type_sa_handler=void
15932
15933fi
15934rm -f conftest*
15935
15936fi
15937
15938echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
15939
15940 ac_ext=c
15941# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15942ac_cpp='$CPP $CPPFLAGS'
15943ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15944ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15945cross_compiling=$ac_cv_prog_cc_cross
15946
15947
15948 cat >> confdefs.h <<EOF
15949#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
15950EOF
15951
15952 fi
15953fi
15954
15955for ac_func in vfork
15956do
15957echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15958echo "configure:15959: checking for $ac_func" >&5
15959if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15960 echo $ac_n "(cached) $ac_c" 1>&6
15961else
15962 cat > conftest.$ac_ext <<EOF
15963#line 15964 "configure"
15964#include "confdefs.h"
15965/* System header to define __stub macros and hopefully few prototypes,
15966 which can conflict with char $ac_func(); below. */
15967#include <assert.h>
15968/* Override any gcc2 internal prototype to avoid an error. */
15969/* We use char because int might match the return type of a gcc2
15970 builtin and then its argument prototype would still apply. */
15971char $ac_func();
15972
15973int main() {
15974
15975/* The GNU C library defines this for functions which it implements
15976 to always fail with ENOSYS. Some functions are actually named
15977 something starting with __ and the normal name is an alias. */
15978#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15979choke me
15980#else
15981$ac_func();
15982#endif
15983
15984; return 0; }
15985EOF
15986if { (eval echo configure:15987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15987 rm -rf conftest*
15988 eval "ac_cv_func_$ac_func=yes"
15989else
15990 echo "configure: failed program was:" >&5
15991 cat conftest.$ac_ext >&5
15992 rm -rf conftest*
15993 eval "ac_cv_func_$ac_func=no"
15994fi
15995rm -f conftest*
15996fi
15997
15998if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15999 echo "$ac_t""yes" 1>&6
16000 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16001 cat >> confdefs.h <<EOF
16002#define $ac_tr_func 1
16003EOF
16004
16005else
16006 echo "$ac_t""no" 1>&6
16007fi
16008done
16009
16010
16011for ac_func in mkstemp mktemp
16012do
16013echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16014echo "configure:16015: checking for $ac_func" >&5
16015if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16016 echo $ac_n "(cached) $ac_c" 1>&6
16017else
16018 cat > conftest.$ac_ext <<EOF
16019#line 16020 "configure"
16020#include "confdefs.h"
16021/* System header to define __stub macros and hopefully few prototypes,
16022 which can conflict with char $ac_func(); below. */
16023#include <assert.h>
16024/* Override any gcc2 internal prototype to avoid an error. */
16025/* We use char because int might match the return type of a gcc2
16026 builtin and then its argument prototype would still apply. */
16027char $ac_func();
16028
16029int main() {
16030
16031/* The GNU C library defines this for functions which it implements
16032 to always fail with ENOSYS. Some functions are actually named
16033 something starting with __ and the normal name is an alias. */
16034#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16035choke me
16036#else
16037$ac_func();
16038#endif
16039
16040; return 0; }
16041EOF
16042if { (eval echo configure:16043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16043 rm -rf conftest*
16044 eval "ac_cv_func_$ac_func=yes"
16045else
16046 echo "configure: failed program was:" >&5
16047 cat conftest.$ac_ext >&5
16048 rm -rf conftest*
16049 eval "ac_cv_func_$ac_func=no"
16050fi
16051rm -f conftest*
16052fi
16053
16054if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16055 echo "$ac_t""yes" 1>&6
16056 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16057 cat >> confdefs.h <<EOF
16058#define $ac_tr_func 1
16059EOF
16060 break
16061else
16062 echo "$ac_t""no" 1>&6
16063fi
16064done
16065
16066
16067echo $ac_n "checking for statfs""... $ac_c" 1>&6
16068echo "configure:16069: checking for statfs" >&5
16069if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16070 echo $ac_n "(cached) $ac_c" 1>&6
16071else
16072 cat > conftest.$ac_ext <<EOF
16073#line 16074 "configure"
16074#include "confdefs.h"
16075
16076 #if defined(__BSD__)
16077 #include <sys/param.h>
16078 #include <sys/mount.h>
16079 #else
16080 #include <sys/vfs.h>
16081 #endif
16082
16083int main() {
16084
16085 long l;
16086 struct statfs fs;
16087 statfs("/", &fs);
16088 l = fs.f_bsize;
16089 l += fs.f_blocks;
16090 l += fs.f_bavail;
16091
16092; return 0; }
16093EOF
16094if { (eval echo configure:16095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16095 rm -rf conftest*
16096
16097 wx_cv_func_statfs=yes
16098
16099else
16100 echo "configure: failed program was:" >&5
16101 cat conftest.$ac_ext >&5
16102 rm -rf conftest*
16103
16104 wx_cv_func_statfs=no
16105
16106
16107fi
16108rm -f conftest*
16109
16110fi
16111
16112echo "$ac_t""$wx_cv_func_statfs" 1>&6
16113
16114if test "$wx_cv_func_statfs" = "yes"; then
16115 cat >> confdefs.h <<\EOF
16116#define HAVE_STATFS 1
16117EOF
16118
16119else
16120 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
16121echo "configure:16122: checking for statvfs" >&5
16122if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
16123 echo $ac_n "(cached) $ac_c" 1>&6
16124else
16125 cat > conftest.$ac_ext <<EOF
16126#line 16127 "configure"
16127#include "confdefs.h"
16128
16129 #include <sys/statvfs.h>
16130
16131int main() {
16132
16133 long l;
16134 struct statvfs fs;
16135 statvfs("/", &fs);
16136 l = fs.f_bsize;
16137 l += fs.f_blocks;
16138 l += fs.f_bavail;
16139
16140; return 0; }
16141EOF
16142if { (eval echo configure:16143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16143 rm -rf conftest*
16144
16145 wx_cv_func_statvfs=yes
16146
16147else
16148 echo "configure: failed program was:" >&5
16149 cat conftest.$ac_ext >&5
16150 rm -rf conftest*
16151
16152 wx_cv_func_statvfs=no
16153
16154
16155fi
16156rm -f conftest*
16157
16158fi
16159
16160echo "$ac_t""$wx_cv_func_statvfs" 1>&6
16161
16162 if test "$wx_cv_func_statvfs" = "yes"; then
16163 cat >> confdefs.h <<\EOF
16164#define HAVE_STATVFS 1
16165EOF
16166
16167 else
16168 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16169 fi
16170fi
16171
16172if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16173 for ac_func in fcntl flock
16174do
16175echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16176echo "configure:16177: checking for $ac_func" >&5
16177if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16178 echo $ac_n "(cached) $ac_c" 1>&6
16179else
16180 cat > conftest.$ac_ext <<EOF
16181#line 16182 "configure"
16182#include "confdefs.h"
16183/* System header to define __stub macros and hopefully few prototypes,
16184 which can conflict with char $ac_func(); below. */
16185#include <assert.h>
16186/* Override any gcc2 internal prototype to avoid an error. */
16187/* We use char because int might match the return type of a gcc2
16188 builtin and then its argument prototype would still apply. */
16189char $ac_func();
16190
16191int main() {
16192
16193/* The GNU C library defines this for functions which it implements
16194 to always fail with ENOSYS. Some functions are actually named
16195 something starting with __ and the normal name is an alias. */
16196#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16197choke me
16198#else
16199$ac_func();
16200#endif
16201
16202; return 0; }
16203EOF
16204if { (eval echo configure:16205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16205 rm -rf conftest*
16206 eval "ac_cv_func_$ac_func=yes"
16207else
16208 echo "configure: failed program was:" >&5
16209 cat conftest.$ac_ext >&5
16210 rm -rf conftest*
16211 eval "ac_cv_func_$ac_func=no"
16212fi
16213rm -f conftest*
16214fi
16215
16216if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16217 echo "$ac_t""yes" 1>&6
16218 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16219 cat >> confdefs.h <<EOF
16220#define $ac_tr_func 1
16221EOF
16222 break
16223else
16224 echo "$ac_t""no" 1>&6
16225fi
16226done
16227
16228
16229 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
16230 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
16231 wxUSE_SNGLINST_CHECKER=no
16232 fi
16233fi
16234
16235for ac_func in timegm
16236do
16237echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16238echo "configure:16239: checking for $ac_func" >&5
16239if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16240 echo $ac_n "(cached) $ac_c" 1>&6
16241else
16242 cat > conftest.$ac_ext <<EOF
16243#line 16244 "configure"
16244#include "confdefs.h"
16245/* System header to define __stub macros and hopefully few prototypes,
16246 which can conflict with char $ac_func(); below. */
16247#include <assert.h>
16248/* Override any gcc2 internal prototype to avoid an error. */
16249/* We use char because int might match the return type of a gcc2
16250 builtin and then its argument prototype would still apply. */
16251char $ac_func();
16252
16253int main() {
16254
16255/* The GNU C library defines this for functions which it implements
16256 to always fail with ENOSYS. Some functions are actually named
16257 something starting with __ and the normal name is an alias. */
16258#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16259choke me
16260#else
16261$ac_func();
16262#endif
16263
16264; return 0; }
16265EOF
16266if { (eval echo configure:16267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16267 rm -rf conftest*
16268 eval "ac_cv_func_$ac_func=yes"
16269else
16270 echo "configure: failed program was:" >&5
16271 cat conftest.$ac_ext >&5
16272 rm -rf conftest*
16273 eval "ac_cv_func_$ac_func=no"
16274fi
16275rm -f conftest*
16276fi
16277
16278if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16279 echo "$ac_t""yes" 1>&6
16280 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16281 cat >> confdefs.h <<EOF
16282#define $ac_tr_func 1
16283EOF
16284
16285else
16286 echo "$ac_t""no" 1>&6
16287fi
16288done
16289
16290
16291for ac_func in putenv setenv
16292do
16293echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16294echo "configure:16295: checking for $ac_func" >&5
16295if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16296 echo $ac_n "(cached) $ac_c" 1>&6
16297else
16298 cat > conftest.$ac_ext <<EOF
16299#line 16300 "configure"
16300#include "confdefs.h"
16301/* System header to define __stub macros and hopefully few prototypes,
16302 which can conflict with char $ac_func(); below. */
16303#include <assert.h>
16304/* Override any gcc2 internal prototype to avoid an error. */
16305/* We use char because int might match the return type of a gcc2
16306 builtin and then its argument prototype would still apply. */
16307char $ac_func();
16308
16309int main() {
16310
16311/* The GNU C library defines this for functions which it implements
16312 to always fail with ENOSYS. Some functions are actually named
16313 something starting with __ and the normal name is an alias. */
16314#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16315choke me
16316#else
16317$ac_func();
16318#endif
16319
16320; return 0; }
16321EOF
16322if { (eval echo configure:16323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16323 rm -rf conftest*
16324 eval "ac_cv_func_$ac_func=yes"
16325else
16326 echo "configure: failed program was:" >&5
16327 cat conftest.$ac_ext >&5
16328 rm -rf conftest*
16329 eval "ac_cv_func_$ac_func=no"
16330fi
16331rm -f conftest*
16332fi
16333
16334if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16335 echo "$ac_t""yes" 1>&6
16336 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16337 cat >> confdefs.h <<EOF
16338#define $ac_tr_func 1
16339EOF
16340 break
16341else
16342 echo "$ac_t""no" 1>&6
16343fi
16344done
16345
16346
16347HAVE_SOME_SLEEP_FUNC=0
16348if test "$USE_BEOS" = 1; then
16349 cat >> confdefs.h <<\EOF
16350#define HAVE_SLEEP 1
16351EOF
16352
16353 HAVE_SOME_SLEEP_FUNC=1
16354fi
16355
16356if test "$USE_DARWIN" = 1; then
16357 cat >> confdefs.h <<\EOF
16358#define HAVE_USLEEP 1
16359EOF
16360
16361 HAVE_SOME_SLEEP_FUNC=1
16362fi
16363
16364if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16365 POSIX4_LINK=
16366 for ac_func in nanosleep
16367do
16368echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16369echo "configure:16370: checking for $ac_func" >&5
16370if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16371 echo $ac_n "(cached) $ac_c" 1>&6
16372else
16373 cat > conftest.$ac_ext <<EOF
16374#line 16375 "configure"
16375#include "confdefs.h"
16376/* System header to define __stub macros and hopefully few prototypes,
16377 which can conflict with char $ac_func(); below. */
16378#include <assert.h>
16379/* Override any gcc2 internal prototype to avoid an error. */
16380/* We use char because int might match the return type of a gcc2
16381 builtin and then its argument prototype would still apply. */
16382char $ac_func();
16383
16384int main() {
16385
16386/* The GNU C library defines this for functions which it implements
16387 to always fail with ENOSYS. Some functions are actually named
16388 something starting with __ and the normal name is an alias. */
16389#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16390choke me
16391#else
16392$ac_func();
16393#endif
16394
16395; return 0; }
16396EOF
16397if { (eval echo configure:16398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16398 rm -rf conftest*
16399 eval "ac_cv_func_$ac_func=yes"
16400else
16401 echo "configure: failed program was:" >&5
16402 cat conftest.$ac_ext >&5
16403 rm -rf conftest*
16404 eval "ac_cv_func_$ac_func=no"
16405fi
16406rm -f conftest*
16407fi
16408
16409if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16410 echo "$ac_t""yes" 1>&6
16411 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16412 cat >> confdefs.h <<EOF
16413#define $ac_tr_func 1
16414EOF
16415 cat >> confdefs.h <<\EOF
16416#define HAVE_NANOSLEEP 1
16417EOF
16418
16419else
16420 echo "$ac_t""no" 1>&6
16421echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
16422echo "configure:16423: checking for nanosleep in -lposix4" >&5
16423ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
16424if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16425 echo $ac_n "(cached) $ac_c" 1>&6
16426else
16427 ac_save_LIBS="$LIBS"
16428LIBS="-lposix4 $LIBS"
16429cat > conftest.$ac_ext <<EOF
16430#line 16431 "configure"
16431#include "confdefs.h"
16432/* Override any gcc2 internal prototype to avoid an error. */
16433/* We use char because int might match the return type of a gcc2
16434 builtin and then its argument prototype would still apply. */
16435char nanosleep();
16436
16437int main() {
16438nanosleep()
16439; return 0; }
16440EOF
16441if { (eval echo configure:16442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16442 rm -rf conftest*
16443 eval "ac_cv_lib_$ac_lib_var=yes"
16444else
16445 echo "configure: failed program was:" >&5
16446 cat conftest.$ac_ext >&5
16447 rm -rf conftest*
16448 eval "ac_cv_lib_$ac_lib_var=no"
16449fi
16450rm -f conftest*
16451LIBS="$ac_save_LIBS"
16452
16453fi
16454if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16455 echo "$ac_t""yes" 1>&6
16456
16457 cat >> confdefs.h <<\EOF
16458#define HAVE_NANOSLEEP 1
16459EOF
16460
16461 POSIX4_LINK=" -lposix4"
16462
16463else
16464 echo "$ac_t""no" 1>&6
16465
16466 for ac_func in usleep
16467do
16468echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16469echo "configure:16470: checking for $ac_func" >&5
16470if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16471 echo $ac_n "(cached) $ac_c" 1>&6
16472else
16473 cat > conftest.$ac_ext <<EOF
16474#line 16475 "configure"
16475#include "confdefs.h"
16476/* System header to define __stub macros and hopefully few prototypes,
16477 which can conflict with char $ac_func(); below. */
16478#include <assert.h>
16479/* Override any gcc2 internal prototype to avoid an error. */
16480/* We use char because int might match the return type of a gcc2
16481 builtin and then its argument prototype would still apply. */
16482char $ac_func();
16483
16484int main() {
16485
16486/* The GNU C library defines this for functions which it implements
16487 to always fail with ENOSYS. Some functions are actually named
16488 something starting with __ and the normal name is an alias. */
16489#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16490choke me
16491#else
16492$ac_func();
16493#endif
16494
16495; return 0; }
16496EOF
16497if { (eval echo configure:16498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16498 rm -rf conftest*
16499 eval "ac_cv_func_$ac_func=yes"
16500else
16501 echo "configure: failed program was:" >&5
16502 cat conftest.$ac_ext >&5
16503 rm -rf conftest*
16504 eval "ac_cv_func_$ac_func=no"
16505fi
16506rm -f conftest*
16507fi
16508
16509if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16510 echo "$ac_t""yes" 1>&6
16511 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16512 cat >> confdefs.h <<EOF
16513#define $ac_tr_func 1
16514EOF
16515 cat >> confdefs.h <<\EOF
16516#define HAVE_USLEEP 1
16517EOF
16518
16519else
16520 echo "$ac_t""no" 1>&6
16521echo "configure: warning: wxSleep() function will not work" 1>&2
16522
16523fi
16524done
16525
16526
16527
16528fi
16529
16530
16531
16532fi
16533done
16534
16535fi
16536
16537for ac_func in uname gethostname
16538do
16539echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16540echo "configure:16541: checking for $ac_func" >&5
16541if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16542 echo $ac_n "(cached) $ac_c" 1>&6
16543else
16544 cat > conftest.$ac_ext <<EOF
16545#line 16546 "configure"
16546#include "confdefs.h"
16547/* System header to define __stub macros and hopefully few prototypes,
16548 which can conflict with char $ac_func(); below. */
16549#include <assert.h>
16550/* Override any gcc2 internal prototype to avoid an error. */
16551/* We use char because int might match the return type of a gcc2
16552 builtin and then its argument prototype would still apply. */
16553char $ac_func();
16554
16555int main() {
16556
16557/* The GNU C library defines this for functions which it implements
16558 to always fail with ENOSYS. Some functions are actually named
16559 something starting with __ and the normal name is an alias. */
16560#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16561choke me
16562#else
16563$ac_func();
16564#endif
16565
16566; return 0; }
16567EOF
16568if { (eval echo configure:16569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16569 rm -rf conftest*
16570 eval "ac_cv_func_$ac_func=yes"
16571else
16572 echo "configure: failed program was:" >&5
16573 cat conftest.$ac_ext >&5
16574 rm -rf conftest*
16575 eval "ac_cv_func_$ac_func=no"
16576fi
16577rm -f conftest*
16578fi
16579
16580if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16581 echo "$ac_t""yes" 1>&6
16582 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16583 cat >> confdefs.h <<EOF
16584#define $ac_tr_func 1
16585EOF
16586 break
16587else
16588 echo "$ac_t""no" 1>&6
16589fi
16590done
16591
16592
16593
16594ac_ext=C
16595# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16596ac_cpp='$CXXCPP $CPPFLAGS'
16597ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16598ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16599cross_compiling=$ac_cv_prog_cxx_cross
16600
16601
16602for ac_func in strtok_r
16603do
16604echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16605echo "configure:16606: checking for $ac_func" >&5
16606if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16607 echo $ac_n "(cached) $ac_c" 1>&6
16608else
16609 cat > conftest.$ac_ext <<EOF
16610#line 16611 "configure"
16611#include "confdefs.h"
16612/* System header to define __stub macros and hopefully few prototypes,
16613 which can conflict with char $ac_func(); below. */
16614#include <assert.h>
16615/* Override any gcc2 internal prototype to avoid an error. */
16616#ifdef __cplusplus
16617extern "C"
16618#endif
16619/* We use char because int might match the return type of a gcc2
16620 builtin and then its argument prototype would still apply. */
16621char $ac_func();
16622
16623int main() {
16624
16625/* The GNU C library defines this for functions which it implements
16626 to always fail with ENOSYS. Some functions are actually named
16627 something starting with __ and the normal name is an alias. */
16628#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16629choke me
16630#else
16631$ac_func();
16632#endif
16633
16634; return 0; }
16635EOF
16636if { (eval echo configure:16637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16637 rm -rf conftest*
16638 eval "ac_cv_func_$ac_func=yes"
16639else
16640 echo "configure: failed program was:" >&5
16641 cat conftest.$ac_ext >&5
16642 rm -rf conftest*
16643 eval "ac_cv_func_$ac_func=no"
16644fi
16645rm -f conftest*
16646fi
16647
16648if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16649 echo "$ac_t""yes" 1>&6
16650 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16651 cat >> confdefs.h <<EOF
16652#define $ac_tr_func 1
16653EOF
16654
16655else
16656 echo "$ac_t""no" 1>&6
16657fi
16658done
16659
16660
16661ac_ext=c
16662# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16663ac_cpp='$CPP $CPPFLAGS'
16664ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16665ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16666cross_compiling=$ac_cv_prog_cc_cross
16667
16668
16669INET_LINK=
16670for ac_func in inet_addr
16671do
16672echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16673echo "configure:16674: checking for $ac_func" >&5
16674if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16675 echo $ac_n "(cached) $ac_c" 1>&6
16676else
16677 cat > conftest.$ac_ext <<EOF
16678#line 16679 "configure"
16679#include "confdefs.h"
16680/* System header to define __stub macros and hopefully few prototypes,
16681 which can conflict with char $ac_func(); below. */
16682#include <assert.h>
16683/* Override any gcc2 internal prototype to avoid an error. */
16684/* We use char because int might match the return type of a gcc2
16685 builtin and then its argument prototype would still apply. */
16686char $ac_func();
16687
16688int main() {
16689
16690/* The GNU C library defines this for functions which it implements
16691 to always fail with ENOSYS. Some functions are actually named
16692 something starting with __ and the normal name is an alias. */
16693#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16694choke me
16695#else
16696$ac_func();
16697#endif
16698
16699; return 0; }
16700EOF
16701if { (eval echo configure:16702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16702 rm -rf conftest*
16703 eval "ac_cv_func_$ac_func=yes"
16704else
16705 echo "configure: failed program was:" >&5
16706 cat conftest.$ac_ext >&5
16707 rm -rf conftest*
16708 eval "ac_cv_func_$ac_func=no"
16709fi
16710rm -f conftest*
16711fi
16712
16713if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16714 echo "$ac_t""yes" 1>&6
16715 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16716 cat >> confdefs.h <<EOF
16717#define $ac_tr_func 1
16718EOF
16719 cat >> confdefs.h <<\EOF
16720#define HAVE_INET_ADDR 1
16721EOF
16722
16723else
16724 echo "$ac_t""no" 1>&6
16725echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
16726echo "configure:16727: checking for inet_addr in -lnsl" >&5
16727ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
16728if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16729 echo $ac_n "(cached) $ac_c" 1>&6
16730else
16731 ac_save_LIBS="$LIBS"
16732LIBS="-lnsl $LIBS"
16733cat > conftest.$ac_ext <<EOF
16734#line 16735 "configure"
16735#include "confdefs.h"
16736/* Override any gcc2 internal prototype to avoid an error. */
16737/* We use char because int might match the return type of a gcc2
16738 builtin and then its argument prototype would still apply. */
16739char inet_addr();
16740
16741int main() {
16742inet_addr()
16743; return 0; }
16744EOF
16745if { (eval echo configure:16746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16746 rm -rf conftest*
16747 eval "ac_cv_lib_$ac_lib_var=yes"
16748else
16749 echo "configure: failed program was:" >&5
16750 cat conftest.$ac_ext >&5
16751 rm -rf conftest*
16752 eval "ac_cv_lib_$ac_lib_var=no"
16753fi
16754rm -f conftest*
16755LIBS="$ac_save_LIBS"
16756
16757fi
16758if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16759 echo "$ac_t""yes" 1>&6
16760 INET_LINK="nsl"
16761else
16762 echo "$ac_t""no" 1>&6
16763echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
16764echo "configure:16765: checking for inet_addr in -lresolv" >&5
16765ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
16766if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16767 echo $ac_n "(cached) $ac_c" 1>&6
16768else
16769 ac_save_LIBS="$LIBS"
16770LIBS="-lresolv $LIBS"
16771cat > conftest.$ac_ext <<EOF
16772#line 16773 "configure"
16773#include "confdefs.h"
16774/* Override any gcc2 internal prototype to avoid an error. */
16775/* We use char because int might match the return type of a gcc2
16776 builtin and then its argument prototype would still apply. */
16777char inet_addr();
16778
16779int main() {
16780inet_addr()
16781; return 0; }
16782EOF
16783if { (eval echo configure:16784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16784 rm -rf conftest*
16785 eval "ac_cv_lib_$ac_lib_var=yes"
16786else
16787 echo "configure: failed program was:" >&5
16788 cat conftest.$ac_ext >&5
16789 rm -rf conftest*
16790 eval "ac_cv_lib_$ac_lib_var=no"
16791fi
16792rm -f conftest*
16793LIBS="$ac_save_LIBS"
16794
16795fi
16796if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16797 echo "$ac_t""yes" 1>&6
16798 INET_LINK="resolv"
16799
16800else
16801 echo "$ac_t""no" 1>&6
16802fi
16803
16804
16805fi
16806
16807
16808
16809fi
16810done
16811
16812
16813for ac_func in inet_aton
16814do
16815echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16816echo "configure:16817: checking for $ac_func" >&5
16817if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16818 echo $ac_n "(cached) $ac_c" 1>&6
16819else
16820 cat > conftest.$ac_ext <<EOF
16821#line 16822 "configure"
16822#include "confdefs.h"
16823/* System header to define __stub macros and hopefully few prototypes,
16824 which can conflict with char $ac_func(); below. */
16825#include <assert.h>
16826/* Override any gcc2 internal prototype to avoid an error. */
16827/* We use char because int might match the return type of a gcc2
16828 builtin and then its argument prototype would still apply. */
16829char $ac_func();
16830
16831int main() {
16832
16833/* The GNU C library defines this for functions which it implements
16834 to always fail with ENOSYS. Some functions are actually named
16835 something starting with __ and the normal name is an alias. */
16836#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16837choke me
16838#else
16839$ac_func();
16840#endif
16841
16842; return 0; }
16843EOF
16844if { (eval echo configure:16845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16845 rm -rf conftest*
16846 eval "ac_cv_func_$ac_func=yes"
16847else
16848 echo "configure: failed program was:" >&5
16849 cat conftest.$ac_ext >&5
16850 rm -rf conftest*
16851 eval "ac_cv_func_$ac_func=no"
16852fi
16853rm -f conftest*
16854fi
16855
16856if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16857 echo "$ac_t""yes" 1>&6
16858 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16859 cat >> confdefs.h <<EOF
16860#define $ac_tr_func 1
16861EOF
16862 cat >> confdefs.h <<\EOF
16863#define HAVE_INET_ATON 1
16864EOF
16865
16866else
16867 echo "$ac_t""no" 1>&6
16868 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
16869echo "configure:16870: checking for inet_aton in -l$INET_LINK" >&5
16870ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
16871if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16872 echo $ac_n "(cached) $ac_c" 1>&6
16873else
16874 ac_save_LIBS="$LIBS"
16875LIBS="-l$INET_LINK $LIBS"
16876cat > conftest.$ac_ext <<EOF
16877#line 16878 "configure"
16878#include "confdefs.h"
16879/* Override any gcc2 internal prototype to avoid an error. */
16880/* We use char because int might match the return type of a gcc2
16881 builtin and then its argument prototype would still apply. */
16882char inet_aton();
16883
16884int main() {
16885inet_aton()
16886; return 0; }
16887EOF
16888if { (eval echo configure:16889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16889 rm -rf conftest*
16890 eval "ac_cv_lib_$ac_lib_var=yes"
16891else
16892 echo "configure: failed program was:" >&5
16893 cat conftest.$ac_ext >&5
16894 rm -rf conftest*
16895 eval "ac_cv_lib_$ac_lib_var=no"
16896fi
16897rm -f conftest*
16898LIBS="$ac_save_LIBS"
16899
16900fi
16901if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16902 echo "$ac_t""yes" 1>&6
16903 cat >> confdefs.h <<\EOF
16904#define HAVE_INET_ATON 1
16905EOF
16906
16907else
16908 echo "$ac_t""no" 1>&6
16909fi
16910
16911
16912fi
16913done
16914
16915
16916if test "x$INET_LINK" != "x"; then
16917 cat >> confdefs.h <<\EOF
16918#define HAVE_INET_ADDR 1
16919EOF
16920
16921 INET_LINK=" -l$INET_LINK"
16922fi
16923
16924fi
16925
16926
16927cat > confcache <<\EOF
16928# This file is a shell script that caches the results of configure
16929# tests run on this system so they can be shared between configure
16930# scripts and configure runs. It is not useful on other systems.
16931# If it contains results you don't want to keep, you may remove or edit it.
16932#
16933# By default, configure uses ./config.cache as the cache file,
16934# creating it if it does not exist already. You can give configure
16935# the --cache-file=FILE option to use a different cache file; that is
16936# what configure does when it calls configure scripts in
16937# subdirectories, so they share the cache.
16938# Giving --cache-file=/dev/null disables caching, for debugging configure.
16939# config.status only pays attention to the cache file if you give it the
16940# --recheck option to rerun configure.
16941#
16942EOF
16943# The following way of writing the cache mishandles newlines in values,
16944# but we know of no workaround that is simple, portable, and efficient.
16945# So, don't put newlines in cache variables' values.
16946# Ultrix sh set writes to stderr and can't be redirected directly,
16947# and sets the high bit in the cache file unless we assign to the vars.
16948(set) 2>&1 |
16949 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16950 *ac_space=\ *)
16951 # `set' does not quote correctly, so add quotes (double-quote substitution
16952 # turns \\\\ into \\, and sed turns \\ into \).
16953 sed -n \
16954 -e "s/'/'\\\\''/g" \
16955 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16956 ;;
16957 *)
16958 # `set' quotes correctly as required by POSIX, so do not add quotes.
16959 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16960 ;;
16961 esac >> confcache
16962if cmp -s $cache_file confcache; then
16963 :
16964else
16965 if test -w $cache_file; then
16966 echo "updating cache $cache_file"
16967 cat confcache > $cache_file
16968 else
16969 echo "not updating unwritable cache $cache_file"
16970 fi
16971fi
16972rm -f confcache
16973
16974
16975
16976if test "$TOOLKIT" != "MSW"; then
16977
16978
16979 THREADS_LINK=
16980 THREADS_OBJ=
16981 CODE_GEN_FLAGS=
16982 CODE_GEN_FLAGS_CXX=
16983
16984 if test "$wxUSE_THREADS" = "yes" ; then
16985 if test "$wxUSE_WINE" = 1 ; then
16986 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
16987 wxUSE_THREADS="no"
16988 elif test "$USE_BEOS" = 1; then
16989 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
16990 wxUSE_THREADS="no"
16991 fi
16992 fi
16993
16994 if test "$wxUSE_THREADS" = "yes" ; then
16995
16996 if test "$USE_AIX" = 1; then
16997 THREADS_LIB=pthreads
16998 else
16999 THREADS_LIB=pthread
17000 fi
17001
17002 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
17003echo "configure:17004: checking for pthread_create in -l$THREADS_LIB" >&5
17004ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
17005if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17006 echo $ac_n "(cached) $ac_c" 1>&6
17007else
17008 ac_save_LIBS="$LIBS"
17009LIBS="-l$THREADS_LIB $LIBS"
17010cat > conftest.$ac_ext <<EOF
17011#line 17012 "configure"
17012#include "confdefs.h"
17013/* Override any gcc2 internal prototype to avoid an error. */
17014/* We use char because int might match the return type of a gcc2
17015 builtin and then its argument prototype would still apply. */
17016char pthread_create();
17017
17018int main() {
17019pthread_create()
17020; return 0; }
17021EOF
17022if { (eval echo configure:17023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17023 rm -rf conftest*
17024 eval "ac_cv_lib_$ac_lib_var=yes"
17025else
17026 echo "configure: failed program was:" >&5
17027 cat conftest.$ac_ext >&5
17028 rm -rf conftest*
17029 eval "ac_cv_lib_$ac_lib_var=no"
17030fi
17031rm -f conftest*
17032LIBS="$ac_save_LIBS"
17033
17034fi
17035if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17036 echo "$ac_t""yes" 1>&6
17037
17038 THREADS_OBJ="threadpsx.lo"
17039 THREADS_LINK=$THREADS_LIB
17040
17041else
17042 echo "$ac_t""no" 1>&6
17043
17044 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
17045echo "configure:17046: checking for pthread_create in -lc_r" >&5
17046ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
17047if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17048 echo $ac_n "(cached) $ac_c" 1>&6
17049else
17050 ac_save_LIBS="$LIBS"
17051LIBS="-lc_r $LIBS"
17052cat > conftest.$ac_ext <<EOF
17053#line 17054 "configure"
17054#include "confdefs.h"
17055/* Override any gcc2 internal prototype to avoid an error. */
17056/* We use char because int might match the return type of a gcc2
17057 builtin and then its argument prototype would still apply. */
17058char pthread_create();
17059
17060int main() {
17061pthread_create()
17062; return 0; }
17063EOF
17064if { (eval echo configure:17065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17065 rm -rf conftest*
17066 eval "ac_cv_lib_$ac_lib_var=yes"
17067else
17068 echo "configure: failed program was:" >&5
17069 cat conftest.$ac_ext >&5
17070 rm -rf conftest*
17071 eval "ac_cv_lib_$ac_lib_var=no"
17072fi
17073rm -f conftest*
17074LIBS="$ac_save_LIBS"
17075
17076fi
17077if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17078 echo "$ac_t""yes" 1>&6
17079
17080 THREADS_OBJ="threadpsx.lo"
17081 THREADS_LINK="c_r"
17082
17083else
17084 echo "$ac_t""no" 1>&6
17085
17086 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
17087echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
17088echo "configure:17089: checking for sys/prctl.h" >&5
17089if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17090 echo $ac_n "(cached) $ac_c" 1>&6
17091else
17092 cat > conftest.$ac_ext <<EOF
17093#line 17094 "configure"
17094#include "confdefs.h"
17095#include <sys/prctl.h>
17096EOF
17097ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17098{ (eval echo configure:17099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17099ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17100if test -z "$ac_err"; then
17101 rm -rf conftest*
17102 eval "ac_cv_header_$ac_safe=yes"
17103else
17104 echo "$ac_err" >&5
17105 echo "configure: failed program was:" >&5
17106 cat conftest.$ac_ext >&5
17107 rm -rf conftest*
17108 eval "ac_cv_header_$ac_safe=no"
17109fi
17110rm -f conftest*
17111fi
17112if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17113 echo "$ac_t""yes" 1>&6
17114
17115 THREADS_OBJ="threadsgi.lo"
17116
17117else
17118 echo "$ac_t""no" 1>&6
17119fi
17120
17121
17122fi
17123
17124
17125fi
17126
17127
17128 if test -z "$THREADS_OBJ" ; then
17129 wxUSE_THREADS=no
17130 echo "configure: warning: No thread support on this system... disabled" 1>&2
17131 fi
17132 fi
17133
17134 if test "$wxUSE_THREADS" = "yes" ; then
17135 for ac_func in thr_setconcurrency
17136do
17137echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17138echo "configure:17139: checking for $ac_func" >&5
17139if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17140 echo $ac_n "(cached) $ac_c" 1>&6
17141else
17142 cat > conftest.$ac_ext <<EOF
17143#line 17144 "configure"
17144#include "confdefs.h"
17145/* System header to define __stub macros and hopefully few prototypes,
17146 which can conflict with char $ac_func(); below. */
17147#include <assert.h>
17148/* Override any gcc2 internal prototype to avoid an error. */
17149/* We use char because int might match the return type of a gcc2
17150 builtin and then its argument prototype would still apply. */
17151char $ac_func();
17152
17153int main() {
17154
17155/* The GNU C library defines this for functions which it implements
17156 to always fail with ENOSYS. Some functions are actually named
17157 something starting with __ and the normal name is an alias. */
17158#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17159choke me
17160#else
17161$ac_func();
17162#endif
17163
17164; return 0; }
17165EOF
17166if { (eval echo configure:17167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17167 rm -rf conftest*
17168 eval "ac_cv_func_$ac_func=yes"
17169else
17170 echo "configure: failed program was:" >&5
17171 cat conftest.$ac_ext >&5
17172 rm -rf conftest*
17173 eval "ac_cv_func_$ac_func=no"
17174fi
17175rm -f conftest*
17176fi
17177
17178if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17179 echo "$ac_t""yes" 1>&6
17180 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17181 cat >> confdefs.h <<EOF
17182#define $ac_tr_func 1
17183EOF
17184
17185else
17186 echo "$ac_t""no" 1>&6
17187fi
17188done
17189
17190
17191
17192 for ac_hdr in sched.h
17193do
17194ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17195echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17196echo "configure:17197: checking for $ac_hdr" >&5
17197if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17198 echo $ac_n "(cached) $ac_c" 1>&6
17199else
17200 cat > conftest.$ac_ext <<EOF
17201#line 17202 "configure"
17202#include "confdefs.h"
17203#include <$ac_hdr>
17204EOF
17205ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17206{ (eval echo configure:17207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17207ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17208if test -z "$ac_err"; then
17209 rm -rf conftest*
17210 eval "ac_cv_header_$ac_safe=yes"
17211else
17212 echo "$ac_err" >&5
17213 echo "configure: failed program was:" >&5
17214 cat conftest.$ac_ext >&5
17215 rm -rf conftest*
17216 eval "ac_cv_header_$ac_safe=no"
17217fi
17218rm -f conftest*
17219fi
17220if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17221 echo "$ac_t""yes" 1>&6
17222 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17223 cat >> confdefs.h <<EOF
17224#define $ac_tr_hdr 1
17225EOF
17226
17227else
17228 echo "$ac_t""no" 1>&6
17229fi
17230done
17231
17232
17233 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
17234echo "configure:17235: checking for sched_yield in -l$THREADS_LINK" >&5
17235ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
17236if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17237 echo $ac_n "(cached) $ac_c" 1>&6
17238else
17239 ac_save_LIBS="$LIBS"
17240LIBS="-l$THREADS_LINK $LIBS"
17241cat > conftest.$ac_ext <<EOF
17242#line 17243 "configure"
17243#include "confdefs.h"
17244/* Override any gcc2 internal prototype to avoid an error. */
17245/* We use char because int might match the return type of a gcc2
17246 builtin and then its argument prototype would still apply. */
17247char sched_yield();
17248
17249int main() {
17250sched_yield()
17251; return 0; }
17252EOF
17253if { (eval echo configure:17254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17254 rm -rf conftest*
17255 eval "ac_cv_lib_$ac_lib_var=yes"
17256else
17257 echo "configure: failed program was:" >&5
17258 cat conftest.$ac_ext >&5
17259 rm -rf conftest*
17260 eval "ac_cv_lib_$ac_lib_var=no"
17261fi
17262rm -f conftest*
17263LIBS="$ac_save_LIBS"
17264
17265fi
17266if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17267 echo "$ac_t""yes" 1>&6
17268 cat >> confdefs.h <<\EOF
17269#define HAVE_SCHED_YIELD 1
17270EOF
17271
17272else
17273 echo "$ac_t""no" 1>&6
17274echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
17275echo "configure:17276: checking for sched_yield in -lposix4" >&5
17276ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17277if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17278 echo $ac_n "(cached) $ac_c" 1>&6
17279else
17280 ac_save_LIBS="$LIBS"
17281LIBS="-lposix4 $LIBS"
17282cat > conftest.$ac_ext <<EOF
17283#line 17284 "configure"
17284#include "confdefs.h"
17285/* Override any gcc2 internal prototype to avoid an error. */
17286/* We use char because int might match the return type of a gcc2
17287 builtin and then its argument prototype would still apply. */
17288char sched_yield();
17289
17290int main() {
17291sched_yield()
17292; return 0; }
17293EOF
17294if { (eval echo configure:17295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17295 rm -rf conftest*
17296 eval "ac_cv_lib_$ac_lib_var=yes"
17297else
17298 echo "configure: failed program was:" >&5
17299 cat conftest.$ac_ext >&5
17300 rm -rf conftest*
17301 eval "ac_cv_lib_$ac_lib_var=no"
17302fi
17303rm -f conftest*
17304LIBS="$ac_save_LIBS"
17305
17306fi
17307if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17308 echo "$ac_t""yes" 1>&6
17309 cat >> confdefs.h <<\EOF
17310#define HAVE_SCHED_YIELD 1
17311EOF
17312 POSIX4_LINK=" -lposix4"
17313else
17314 echo "$ac_t""no" 1>&6
17315echo "configure: warning: wxThread::Yield will not work properly" 1>&2
17316
17317fi
17318
17319
17320fi
17321
17322
17323 HAVE_PRIOR_FUNCS=0
17324 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
17325echo "configure:17326: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
17326ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
17327if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17328 echo $ac_n "(cached) $ac_c" 1>&6
17329else
17330 ac_save_LIBS="$LIBS"
17331LIBS="-l$THREADS_LINK $LIBS"
17332cat > conftest.$ac_ext <<EOF
17333#line 17334 "configure"
17334#include "confdefs.h"
17335/* Override any gcc2 internal prototype to avoid an error. */
17336/* We use char because int might match the return type of a gcc2
17337 builtin and then its argument prototype would still apply. */
17338char pthread_attr_getschedpolicy();
17339
17340int main() {
17341pthread_attr_getschedpolicy()
17342; return 0; }
17343EOF
17344if { (eval echo configure:17345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17345 rm -rf conftest*
17346 eval "ac_cv_lib_$ac_lib_var=yes"
17347else
17348 echo "configure: failed program was:" >&5
17349 cat conftest.$ac_ext >&5
17350 rm -rf conftest*
17351 eval "ac_cv_lib_$ac_lib_var=no"
17352fi
17353rm -f conftest*
17354LIBS="$ac_save_LIBS"
17355
17356fi
17357if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17358 echo "$ac_t""yes" 1>&6
17359 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
17360echo "configure:17361: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
17361ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
17362if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17363 echo $ac_n "(cached) $ac_c" 1>&6
17364else
17365 ac_save_LIBS="$LIBS"
17366LIBS="-l$THREADS_LINK $LIBS"
17367cat > conftest.$ac_ext <<EOF
17368#line 17369 "configure"
17369#include "confdefs.h"
17370/* Override any gcc2 internal prototype to avoid an error. */
17371/* We use char because int might match the return type of a gcc2
17372 builtin and then its argument prototype would still apply. */
17373char pthread_attr_setschedparam();
17374
17375int main() {
17376pthread_attr_setschedparam()
17377; return 0; }
17378EOF
17379if { (eval echo configure:17380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17380 rm -rf conftest*
17381 eval "ac_cv_lib_$ac_lib_var=yes"
17382else
17383 echo "configure: failed program was:" >&5
17384 cat conftest.$ac_ext >&5
17385 rm -rf conftest*
17386 eval "ac_cv_lib_$ac_lib_var=no"
17387fi
17388rm -f conftest*
17389LIBS="$ac_save_LIBS"
17390
17391fi
17392if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17393 echo "$ac_t""yes" 1>&6
17394 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
17395echo "configure:17396: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
17396ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
17397if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17398 echo $ac_n "(cached) $ac_c" 1>&6
17399else
17400 ac_save_LIBS="$LIBS"
17401LIBS="-l$THREADS_LINK $LIBS"
17402cat > conftest.$ac_ext <<EOF
17403#line 17404 "configure"
17404#include "confdefs.h"
17405/* Override any gcc2 internal prototype to avoid an error. */
17406/* We use char because int might match the return type of a gcc2
17407 builtin and then its argument prototype would still apply. */
17408char sched_get_priority_max();
17409
17410int main() {
17411sched_get_priority_max()
17412; return 0; }
17413EOF
17414if { (eval echo configure:17415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17415 rm -rf conftest*
17416 eval "ac_cv_lib_$ac_lib_var=yes"
17417else
17418 echo "configure: failed program was:" >&5
17419 cat conftest.$ac_ext >&5
17420 rm -rf conftest*
17421 eval "ac_cv_lib_$ac_lib_var=no"
17422fi
17423rm -f conftest*
17424LIBS="$ac_save_LIBS"
17425
17426fi
17427if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17428 echo "$ac_t""yes" 1>&6
17429 HAVE_PRIOR_FUNCS=1
17430else
17431 echo "$ac_t""no" 1>&6
17432echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
17433echo "configure:17434: checking for sched_get_priority_max in -lposix4" >&5
17434ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
17435if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17436 echo $ac_n "(cached) $ac_c" 1>&6
17437else
17438 ac_save_LIBS="$LIBS"
17439LIBS="-lposix4 $LIBS"
17440cat > conftest.$ac_ext <<EOF
17441#line 17442 "configure"
17442#include "confdefs.h"
17443/* Override any gcc2 internal prototype to avoid an error. */
17444/* We use char because int might match the return type of a gcc2
17445 builtin and then its argument prototype would still apply. */
17446char sched_get_priority_max();
17447
17448int main() {
17449sched_get_priority_max()
17450; return 0; }
17451EOF
17452if { (eval echo configure:17453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17453 rm -rf conftest*
17454 eval "ac_cv_lib_$ac_lib_var=yes"
17455else
17456 echo "configure: failed program was:" >&5
17457 cat conftest.$ac_ext >&5
17458 rm -rf conftest*
17459 eval "ac_cv_lib_$ac_lib_var=no"
17460fi
17461rm -f conftest*
17462LIBS="$ac_save_LIBS"
17463
17464fi
17465if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17466 echo "$ac_t""yes" 1>&6
17467
17468 HAVE_PRIOR_FUNCS=1
17469 POSIX4_LINK=" -lposix4"
17470
17471else
17472 echo "$ac_t""no" 1>&6
17473fi
17474
17475
17476fi
17477
17478
17479else
17480 echo "$ac_t""no" 1>&6
17481fi
17482
17483
17484else
17485 echo "$ac_t""no" 1>&6
17486fi
17487
17488
17489 if test "$HAVE_PRIOR_FUNCS" = 1; then
17490 cat >> confdefs.h <<\EOF
17491#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
17492EOF
17493
17494 else
17495 echo "configure: warning: Setting thread priority will not work" 1>&2
17496 fi
17497
17498 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
17499echo "configure:17500: checking for pthread_cancel in -l$THREADS_LINK" >&5
17500ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
17501if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17502 echo $ac_n "(cached) $ac_c" 1>&6
17503else
17504 ac_save_LIBS="$LIBS"
17505LIBS="-l$THREADS_LINK $LIBS"
17506cat > conftest.$ac_ext <<EOF
17507#line 17508 "configure"
17508#include "confdefs.h"
17509/* Override any gcc2 internal prototype to avoid an error. */
17510/* We use char because int might match the return type of a gcc2
17511 builtin and then its argument prototype would still apply. */
17512char pthread_cancel();
17513
17514int main() {
17515pthread_cancel()
17516; return 0; }
17517EOF
17518if { (eval echo configure:17519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17519 rm -rf conftest*
17520 eval "ac_cv_lib_$ac_lib_var=yes"
17521else
17522 echo "configure: failed program was:" >&5
17523 cat conftest.$ac_ext >&5
17524 rm -rf conftest*
17525 eval "ac_cv_lib_$ac_lib_var=no"
17526fi
17527rm -f conftest*
17528LIBS="$ac_save_LIBS"
17529
17530fi
17531if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17532 echo "$ac_t""yes" 1>&6
17533 cat >> confdefs.h <<\EOF
17534#define HAVE_PTHREAD_CANCEL 1
17535EOF
17536
17537else
17538 echo "$ac_t""no" 1>&6
17539echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
17540fi
17541
17542
17543 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
17544echo "configure:17545: checking for pthread_cleanup_push/pop" >&5
17545if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
17546 echo $ac_n "(cached) $ac_c" 1>&6
17547else
17548
17549 cat > conftest.$ac_ext <<EOF
17550#line 17551 "configure"
17551#include "confdefs.h"
17552#include <pthread.h>
17553int main() {
17554
17555 pthread_cleanup_push(NULL, NULL);
17556 pthread_cleanup_pop(0);
17557
17558; return 0; }
17559EOF
17560if { (eval echo configure:17561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17561 rm -rf conftest*
17562
17563 wx_cv_func_pthread_cleanup_push=yes
17564
17565else
17566 echo "configure: failed program was:" >&5
17567 cat conftest.$ac_ext >&5
17568 rm -rf conftest*
17569
17570 wx_cv_func_pthread_cleanup_push=no
17571
17572fi
17573rm -f conftest*
17574
17575fi
17576
17577echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
17578
17579 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
17580 cat >> confdefs.h <<\EOF
17581#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
17582EOF
17583
17584 fi
17585
17586
17587 if test "x$wx_lib_glibc21" = "xyes"; then
17588 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
17589 fi
17590
17591 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
17592echo "configure:17593: checking for pthread_mutexattr_t" >&5
17593if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
17594 echo $ac_n "(cached) $ac_c" 1>&6
17595else
17596
17597 cat > conftest.$ac_ext <<EOF
17598#line 17599 "configure"
17599#include "confdefs.h"
17600#include <pthread.h>
17601int main() {
17602
17603 pthread_mutexattr_t attr;
17604 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
17605
17606; return 0; }
17607EOF
17608if { (eval echo configure:17609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17609 rm -rf conftest*
17610
17611 wx_cv_type_pthread_mutexattr_t=yes
17612
17613else
17614 echo "configure: failed program was:" >&5
17615 cat conftest.$ac_ext >&5
17616 rm -rf conftest*
17617
17618 wx_cv_type_pthread_mutexattr_t=no
17619
17620
17621fi
17622rm -f conftest*
17623
17624fi
17625
17626echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
17627
17628 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
17629 cat >> confdefs.h <<\EOF
17630#define HAVE_PTHREAD_MUTEXATTR_T 1
17631EOF
17632
17633 else
17634 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
17635echo "configure:17636: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
17636if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
17637 echo $ac_n "(cached) $ac_c" 1>&6
17638else
17639
17640 cat > conftest.$ac_ext <<EOF
17641#line 17642 "configure"
17642#include "confdefs.h"
17643#include <pthread.h>
17644int main() {
17645
17646 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
17647
17648; return 0; }
17649EOF
17650if { (eval echo configure:17651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17651 rm -rf conftest*
17652
17653 wx_cv_type_pthread_rec_mutex_init=yes
17654
17655else
17656 echo "configure: failed program was:" >&5
17657 cat conftest.$ac_ext >&5
17658 rm -rf conftest*
17659
17660 wx_cv_type_pthread_rec_mutex_init=no
17661
17662
17663fi
17664rm -f conftest*
17665
17666fi
17667
17668echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
17669 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
17670 cat >> confdefs.h <<\EOF
17671#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
17672EOF
17673
17674 else
17675 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
17676 fi
17677 fi
17678
17679 THREADS_LINK=" -l$THREADS_LINK"
17680
17681 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
17682 CPPFLAGS="$CFLAGS -mt"
17683 CXXFLAGS="$CXXFLAGS -mt"
17684 LDFLAGS="$LDFLAGS -mt"
17685 fi
17686 fi
17687
17688fi
17689
17690if test "$wxUSE_THREADS" = "yes"; then
17691 cat >> confdefs.h <<\EOF
17692#define wxUSE_THREADS 1
17693EOF
17694
17695
17696 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG"
17697
17698 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
17699else
17700 if test "$ac_cv_func_strtok_r" = "yes"; then
17701 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
17702echo "configure:17703: checking if -D_REENTRANT is needed" >&5
17703 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
17704 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
17705 echo "$ac_t""yes" 1>&6
17706 else
17707 echo "$ac_t""no" 1>&6
17708 fi
17709 fi
17710fi
17711
17712if test "$WXGTK20" = 1 ; then
17713 cat >> confdefs.h <<EOF
17714#define __WXGTK20__ $WXGTK20
17715EOF
17716
17717 WXGTK12=1
17718fi
17719
17720if test "$WXGTK12" = 1 ; then
17721 cat >> confdefs.h <<EOF
17722#define __WXGTK12__ $WXGTK12
17723EOF
17724
17725fi
17726
17727if test "$WXGTK127" = 1 ; then
17728 cat >> confdefs.h <<EOF
17729#define __WXGTK127__ $WXGTK127
17730EOF
17731
17732fi
17733
17734WXDEBUG=
17735
17736if test "$wxUSE_DEBUG_INFO" = "yes" ; then
17737 WXDEBUG="-g"
17738 wxUSE_OPTIMISE=no
17739fi
17740
17741if test "$wxUSE_DEBUG_GDB" = "yes" ; then
17742 wxUSE_DEBUG_INFO=yes
17743 WXDEBUG="-ggdb"
17744fi
17745
17746if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
17747 cat >> confdefs.h <<\EOF
17748#define WXDEBUG 1
17749EOF
17750
17751 WXDEBUG_DEFINE="-D__WXDEBUG__"
17752else
17753 if test "$wxUSE_GTK" = 1 ; then
17754 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
17755 fi
17756fi
17757
17758if test "$wxUSE_MEM_TRACING" = "yes" ; then
17759 cat >> confdefs.h <<\EOF
17760#define wxUSE_MEMORY_TRACING 1
17761EOF
17762
17763 cat >> confdefs.h <<\EOF
17764#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
17765EOF
17766
17767 cat >> confdefs.h <<\EOF
17768#define wxUSE_DEBUG_NEW_ALWAYS 1
17769EOF
17770
17771 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
17772fi
17773
17774if test "$wxUSE_DMALLOC" = "yes" ; then
17775 DMALLOC_LIBS="-ldmalloc"
17776fi
17777
17778PROFILE=
17779if test "$wxUSE_PROFILE" = "yes" ; then
17780 PROFILE=" -pg"
17781fi
17782
17783if test "$GCC" = "yes" ; then
17784 if test "$wxUSE_NO_RTTI" = "yes" ; then
17785 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
17786 fi
17787 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
17788 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
17789 fi
17790 if test "$wxUSE_PERMISSIVE" = "yes" ; then
17791 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
17792 fi
17793 if test "$USE_WIN32" = 1 ; then
17794 # I'm not even really sure what this was ever added to solve,
17795 # but someone added it for mingw native builds, so I guess
17796 # they had a reason, right??
17797 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
17798 fi
17799fi
17800
17801
17802CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
17803CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
17804if test "$wxUSE_OPTIMISE" = "no" ; then
17805 OPTIMISE=
17806else
17807 if test "$GCC" = yes ; then
17808 OPTIMISE="-O2"
17809 case "${host}" in
17810 i586-*-*|i686-*-* )
17811 OPTIMISE="${OPTIMISE} "
17812 ;;
17813 esac
17814 else
17815 OPTIMISE="-O"
17816 fi
17817fi
17818
17819if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
17820 cat >> confdefs.h <<\EOF
17821#define WXWIN_COMPATIBILITY_2 1
17822EOF
17823
17824
17825 WXWIN_COMPATIBILITY_2_2="yes"
17826fi
17827
17828if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
17829 cat >> confdefs.h <<\EOF
17830#define WXWIN_COMPATIBILITY_2_2 1
17831EOF
17832
17833fi
17834
17835
17836if test "$wxUSE_GUI" = "yes"; then
17837 cat >> confdefs.h <<\EOF
17838#define wxUSE_GUI 1
17839EOF
17840
17841
17842 else
17843 cat >> confdefs.h <<\EOF
17844#define wxUSE_NOGUI 1
17845EOF
17846
17847fi
17848
17849
17850if test "$wxUSE_UNIX" = "yes"; then
17851 cat >> confdefs.h <<\EOF
17852#define wxUSE_UNIX 1
17853EOF
17854
17855fi
17856
17857
17858if test "$wxUSE_APPLE_IEEE" = "yes"; then
17859 cat >> confdefs.h <<\EOF
17860#define wxUSE_APPLE_IEEE 1
17861EOF
17862
17863fi
17864
17865if test "$wxUSE_TIMER" = "yes"; then
17866 cat >> confdefs.h <<\EOF
17867#define wxUSE_TIMER 1
17868EOF
17869
17870fi
17871
17872if test "$wxUSE_WAVE" = "yes"; then
17873 cat >> confdefs.h <<\EOF
17874#define wxUSE_WAVE 1
17875EOF
17876
17877fi
17878
17879if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
17880 cat >> confdefs.h <<\EOF
17881#define wxUSE_CMDLINE_PARSER 1
17882EOF
17883
17884fi
17885
17886if test "$wxUSE_STOPWATCH" = "yes"; then
17887 cat >> confdefs.h <<\EOF
17888#define wxUSE_STOPWATCH 1
17889EOF
17890
17891fi
17892
17893if test "$wxUSE_DATETIME" = "yes"; then
17894 cat >> confdefs.h <<\EOF
17895#define wxUSE_DATETIME 1
17896EOF
17897
17898fi
17899
17900if test "$wxUSE_TIMEDATE" = "yes"; then
17901 cat >> confdefs.h <<\EOF
17902#define wxUSE_TIMEDATE 1
17903EOF
17904
17905fi
17906
17907if test "$wxUSE_FILE" = "yes"; then
17908 cat >> confdefs.h <<\EOF
17909#define wxUSE_FILE 1
17910EOF
17911
17912fi
17913
17914if test "$wxUSE_FFILE" = "yes"; then
17915 cat >> confdefs.h <<\EOF
17916#define wxUSE_FFILE 1
17917EOF
17918
17919fi
17920
17921if test "$wxUSE_FILESYSTEM" = "yes"; then
17922 cat >> confdefs.h <<\EOF
17923#define wxUSE_FILESYSTEM 1
17924EOF
17925
17926fi
17927
17928if test "$wxUSE_FS_INET" = "yes"; then
17929 cat >> confdefs.h <<\EOF
17930#define wxUSE_FS_INET 1
17931EOF
17932
17933fi
17934
17935if test "$wxUSE_FS_ZIP" = "yes"; then
17936 cat >> confdefs.h <<\EOF
17937#define wxUSE_FS_ZIP 1
17938EOF
17939
17940fi
17941
17942if test "$wxUSE_ZIPSTREAM" = "yes"; then
17943 cat >> confdefs.h <<\EOF
17944#define wxUSE_ZIPSTREAM 1
17945EOF
17946
17947fi
17948
17949if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
17950 cat >> confdefs.h <<\EOF
17951#define wxUSE_ON_FATAL_EXCEPTION 1
17952EOF
17953
17954fi
17955
17956if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
17957 cat >> confdefs.h <<\EOF
17958#define wxUSE_SNGLINST_CHECKER 1
17959EOF
17960
17961fi
17962
17963if test "$wxUSE_BUSYINFO" = "yes"; then
17964 cat >> confdefs.h <<\EOF
17965#define wxUSE_BUSYINFO 1
17966EOF
17967
17968fi
17969
17970if test "$wxUSE_STD_IOSTREAM" = "yes"; then
17971 cat >> confdefs.h <<\EOF
17972#define wxUSE_STD_IOSTREAM 1
17973EOF
17974
17975fi
17976
17977if test "$wxUSE_TEXTBUFFER" = "yes"; then
17978 cat >> confdefs.h <<\EOF
17979#define wxUSE_TEXTBUFFER 1
17980EOF
17981
17982fi
17983
17984if test "$wxUSE_TEXTFILE" = "yes"; then
17985 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
17986 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
17987 else
17988 cat >> confdefs.h <<\EOF
17989#define wxUSE_TEXTFILE 1
17990EOF
17991
17992 fi
17993fi
17994
17995if test "$wxUSE_CONFIG" = "yes" ; then
17996 if test "$wxUSE_TEXTFILE" != "yes"; then
17997 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
17998 else
17999 cat >> confdefs.h <<\EOF
18000#define wxUSE_CONFIG 1
18001EOF
18002
18003 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18004 fi
18005fi
18006
18007if test "$wxUSE_INTL" = "yes" ; then
18008 if test "$wxUSE_FILE" != "yes"; then
18009 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
18010 else
18011 cat >> confdefs.h <<\EOF
18012#define wxUSE_INTL 1
18013EOF
18014
18015 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
18016 GUIDIST="$GUIDIST INTL_DIST"
18017 fi
18018fi
18019
18020if test "$wxUSE_LOG" = "yes"; then
18021 cat >> confdefs.h <<\EOF
18022#define wxUSE_LOG 1
18023EOF
18024
18025
18026 if test "$wxUSE_LOGGUI" = "yes"; then
18027 cat >> confdefs.h <<\EOF
18028#define wxUSE_LOGGUI 1
18029EOF
18030
18031 fi
18032
18033 if test "$wxUSE_LOGWINDOW" = "yes"; then
18034 cat >> confdefs.h <<\EOF
18035#define wxUSE_LOGWINDOW 1
18036EOF
18037
18038 fi
18039
18040 if test "$wxUSE_LOGDIALOG" = "yes"; then
18041 cat >> confdefs.h <<\EOF
18042#define wxUSE_LOG_DIALOG 1
18043EOF
18044
18045 fi
18046fi
18047
18048if test "$wxUSE_LONGLONG" = "yes"; then
18049 cat >> confdefs.h <<\EOF
18050#define wxUSE_LONGLONG 1
18051EOF
18052
18053fi
18054
18055if test "$wxUSE_GEOMETRY" = "yes"; then
18056 cat >> confdefs.h <<\EOF
18057#define wxUSE_GEOMETRY 1
18058EOF
18059
18060fi
18061
18062if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
18063 cat >> confdefs.h <<\EOF
18064#define wxUSE_DIALUP_MANAGER 1
18065EOF
18066
18067 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
18068fi
18069
18070if test "$wxUSE_STREAMS" = "yes" ; then
18071 cat >> confdefs.h <<\EOF
18072#define wxUSE_STREAMS 1
18073EOF
18074
18075fi
18076
18077
18078if test "$wxUSE_DATETIME" = "yes"; then
18079 for ac_func in strptime
18080do
18081echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18082echo "configure:18083: checking for $ac_func" >&5
18083if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18084 echo $ac_n "(cached) $ac_c" 1>&6
18085else
18086 cat > conftest.$ac_ext <<EOF
18087#line 18088 "configure"
18088#include "confdefs.h"
18089/* System header to define __stub macros and hopefully few prototypes,
18090 which can conflict with char $ac_func(); below. */
18091#include <assert.h>
18092/* Override any gcc2 internal prototype to avoid an error. */
18093/* We use char because int might match the return type of a gcc2
18094 builtin and then its argument prototype would still apply. */
18095char $ac_func();
18096
18097int main() {
18098
18099/* The GNU C library defines this for functions which it implements
18100 to always fail with ENOSYS. Some functions are actually named
18101 something starting with __ and the normal name is an alias. */
18102#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18103choke me
18104#else
18105$ac_func();
18106#endif
18107
18108; return 0; }
18109EOF
18110if { (eval echo configure:18111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18111 rm -rf conftest*
18112 eval "ac_cv_func_$ac_func=yes"
18113else
18114 echo "configure: failed program was:" >&5
18115 cat conftest.$ac_ext >&5
18116 rm -rf conftest*
18117 eval "ac_cv_func_$ac_func=no"
18118fi
18119rm -f conftest*
18120fi
18121
18122if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18123 echo "$ac_t""yes" 1>&6
18124 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18125 cat >> confdefs.h <<EOF
18126#define $ac_tr_func 1
18127EOF
18128
18129else
18130 echo "$ac_t""no" 1>&6
18131fi
18132done
18133
18134
18135 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
18136echo "configure:18137: checking for timezone variable in <time.h>" >&5
18137if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18138 echo $ac_n "(cached) $ac_c" 1>&6
18139else
18140
18141 cat > conftest.$ac_ext <<EOF
18142#line 18143 "configure"
18143#include "confdefs.h"
18144
18145 #include <time.h>
18146
18147int main() {
18148
18149 int tz;
18150 tz = timezone;
18151
18152; return 0; }
18153EOF
18154if { (eval echo configure:18155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18155 rm -rf conftest*
18156
18157 wx_cv_var_timezone=timezone
18158
18159else
18160 echo "configure: failed program was:" >&5
18161 cat conftest.$ac_ext >&5
18162 rm -rf conftest*
18163
18164 cat > conftest.$ac_ext <<EOF
18165#line 18166 "configure"
18166#include "confdefs.h"
18167
18168 #include <time.h>
18169
18170int main() {
18171
18172 int tz;
18173 tz = _timezone;
18174
18175; return 0; }
18176EOF
18177if { (eval echo configure:18178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18178 rm -rf conftest*
18179
18180 wx_cv_var_timezone=_timezone
18181
18182else
18183 echo "configure: failed program was:" >&5
18184 cat conftest.$ac_ext >&5
18185 rm -rf conftest*
18186
18187 cat > conftest.$ac_ext <<EOF
18188#line 18189 "configure"
18189#include "confdefs.h"
18190
18191 #include <time.h>
18192
18193int main() {
18194
18195 int tz;
18196 tz = __timezone;
18197
18198; return 0; }
18199EOF
18200if { (eval echo configure:18201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18201 rm -rf conftest*
18202
18203 wx_cv_var_timezone=__timezone
18204
18205else
18206 echo "configure: failed program was:" >&5
18207 cat conftest.$ac_ext >&5
18208 rm -rf conftest*
18209
18210 if test "$USE_DOS" = 0 ; then
18211 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
18212 fi
18213
18214
18215fi
18216rm -f conftest*
18217
18218
18219fi
18220rm -f conftest*
18221
18222
18223fi
18224rm -f conftest*
18225
18226
18227fi
18228
18229echo "$ac_t""$wx_cv_var_timezone" 1>&6
18230
18231 if test "x$wx_cv_var_timezone" != x ; then
18232 cat >> confdefs.h <<EOF
18233#define WX_TIMEZONE $wx_cv_var_timezone
18234EOF
18235
18236 fi
18237
18238 for ac_func in localtime
18239do
18240echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18241echo "configure:18242: checking for $ac_func" >&5
18242if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18243 echo $ac_n "(cached) $ac_c" 1>&6
18244else
18245 cat > conftest.$ac_ext <<EOF
18246#line 18247 "configure"
18247#include "confdefs.h"
18248/* System header to define __stub macros and hopefully few prototypes,
18249 which can conflict with char $ac_func(); below. */
18250#include <assert.h>
18251/* Override any gcc2 internal prototype to avoid an error. */
18252/* We use char because int might match the return type of a gcc2
18253 builtin and then its argument prototype would still apply. */
18254char $ac_func();
18255
18256int main() {
18257
18258/* The GNU C library defines this for functions which it implements
18259 to always fail with ENOSYS. Some functions are actually named
18260 something starting with __ and the normal name is an alias. */
18261#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18262choke me
18263#else
18264$ac_func();
18265#endif
18266
18267; return 0; }
18268EOF
18269if { (eval echo configure:18270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18270 rm -rf conftest*
18271 eval "ac_cv_func_$ac_func=yes"
18272else
18273 echo "configure: failed program was:" >&5
18274 cat conftest.$ac_ext >&5
18275 rm -rf conftest*
18276 eval "ac_cv_func_$ac_func=no"
18277fi
18278rm -f conftest*
18279fi
18280
18281if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18282 echo "$ac_t""yes" 1>&6
18283 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18284 cat >> confdefs.h <<EOF
18285#define $ac_tr_func 1
18286EOF
18287
18288else
18289 echo "$ac_t""no" 1>&6
18290fi
18291done
18292
18293
18294 if test "$ac_cv_func_localtime" = "yes"; then
18295 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
18296echo "configure:18297: checking for tm_gmtoff in struct tm" >&5
18297if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18298 echo $ac_n "(cached) $ac_c" 1>&6
18299else
18300
18301 cat > conftest.$ac_ext <<EOF
18302#line 18303 "configure"
18303#include "confdefs.h"
18304
18305 #include <time.h>
18306
18307int main() {
18308
18309 struct tm tm;
18310 tm.tm_gmtoff++;
18311
18312; return 0; }
18313EOF
18314if { (eval echo configure:18315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18315 rm -rf conftest*
18316
18317 wx_cv_struct_tm_has_gmtoff=yes
18318
18319else
18320 echo "configure: failed program was:" >&5
18321 cat conftest.$ac_ext >&5
18322 rm -rf conftest*
18323 wx_cv_struct_tm_has_gmtoff=no
18324
18325fi
18326rm -f conftest*
18327
18328fi
18329
18330echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
18331 fi
18332
18333 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
18334 cat >> confdefs.h <<\EOF
18335#define WX_GMTOFF_IN_TM 1
18336EOF
18337
18338 fi
18339
18340 for ac_func in gettimeofday ftime
18341do
18342echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18343echo "configure:18344: checking for $ac_func" >&5
18344if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18345 echo $ac_n "(cached) $ac_c" 1>&6
18346else
18347 cat > conftest.$ac_ext <<EOF
18348#line 18349 "configure"
18349#include "confdefs.h"
18350/* System header to define __stub macros and hopefully few prototypes,
18351 which can conflict with char $ac_func(); below. */
18352#include <assert.h>
18353/* Override any gcc2 internal prototype to avoid an error. */
18354/* We use char because int might match the return type of a gcc2
18355 builtin and then its argument prototype would still apply. */
18356char $ac_func();
18357
18358int main() {
18359
18360/* The GNU C library defines this for functions which it implements
18361 to always fail with ENOSYS. Some functions are actually named
18362 something starting with __ and the normal name is an alias. */
18363#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18364choke me
18365#else
18366$ac_func();
18367#endif
18368
18369; return 0; }
18370EOF
18371if { (eval echo configure:18372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18372 rm -rf conftest*
18373 eval "ac_cv_func_$ac_func=yes"
18374else
18375 echo "configure: failed program was:" >&5
18376 cat conftest.$ac_ext >&5
18377 rm -rf conftest*
18378 eval "ac_cv_func_$ac_func=no"
18379fi
18380rm -f conftest*
18381fi
18382
18383if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18384 echo "$ac_t""yes" 1>&6
18385 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18386 cat >> confdefs.h <<EOF
18387#define $ac_tr_func 1
18388EOF
18389 break
18390else
18391 echo "$ac_t""no" 1>&6
18392fi
18393done
18394
18395
18396 if test "$ac_cv_func_gettimeofday" = "yes"; then
18397 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
18398echo "configure:18399: checking whether gettimeofday takes two arguments" >&5
18399if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
18400 echo $ac_n "(cached) $ac_c" 1>&6
18401else
18402
18403
18404 ac_ext=C
18405# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18406ac_cpp='$CXXCPP $CPPFLAGS'
18407ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18408ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18409cross_compiling=$ac_cv_prog_cxx_cross
18410
18411
18412 cat > conftest.$ac_ext <<EOF
18413#line 18414 "configure"
18414#include "confdefs.h"
18415
18416 #include <sys/time.h>
18417 #include <unistd.h>
18418
18419int main() {
18420
18421 struct timeval tv;
18422 gettimeofday(&tv, NULL);
18423
18424; return 0; }
18425EOF
18426if { (eval echo configure:18427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18427 rm -rf conftest*
18428 wx_cv_func_gettimeofday_has_2_args=yes
18429else
18430 echo "configure: failed program was:" >&5
18431 cat conftest.$ac_ext >&5
18432 rm -rf conftest*
18433 cat > conftest.$ac_ext <<EOF
18434#line 18435 "configure"
18435#include "confdefs.h"
18436
18437 #include <sys/time.h>
18438 #include <unistd.h>
18439
18440int main() {
18441
18442 struct timeval tv;
18443 gettimeofday(&tv);
18444
18445; return 0; }
18446EOF
18447if { (eval echo configure:18448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18448 rm -rf conftest*
18449 wx_cv_func_gettimeofday_has_2_args=no
18450else
18451 echo "configure: failed program was:" >&5
18452 cat conftest.$ac_ext >&5
18453 rm -rf conftest*
18454
18455 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
18456 wx_cv_func_gettimeofday_has_2_args=unknown
18457
18458
18459fi
18460rm -f conftest*
18461
18462fi
18463rm -f conftest*
18464 ac_ext=c
18465# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18466ac_cpp='$CPP $CPPFLAGS'
18467ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18468ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18469cross_compiling=$ac_cv_prog_cc_cross
18470
18471
18472fi
18473
18474echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
18475
18476 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
18477 cat >> confdefs.h <<\EOF
18478#define WX_GETTIMEOFDAY_NO_TZ 1
18479EOF
18480
18481 fi
18482 fi
18483
18484 cat >> confdefs.h <<\EOF
18485#define wxUSE_TIMEDATE 1
18486EOF
18487
18488 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
18489fi
18490
18491
18492if test "$TOOLKIT" != "MSW"; then
18493
18494 if test "$wxUSE_SOCKETS" = "yes"; then
18495 echo $ac_n "checking for socket""... $ac_c" 1>&6
18496echo "configure:18497: checking for socket" >&5
18497if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
18498 echo $ac_n "(cached) $ac_c" 1>&6
18499else
18500 cat > conftest.$ac_ext <<EOF
18501#line 18502 "configure"
18502#include "confdefs.h"
18503/* System header to define __stub macros and hopefully few prototypes,
18504 which can conflict with char socket(); below. */
18505#include <assert.h>
18506/* Override any gcc2 internal prototype to avoid an error. */
18507/* We use char because int might match the return type of a gcc2
18508 builtin and then its argument prototype would still apply. */
18509char socket();
18510
18511int main() {
18512
18513/* The GNU C library defines this for functions which it implements
18514 to always fail with ENOSYS. Some functions are actually named
18515 something starting with __ and the normal name is an alias. */
18516#if defined (__stub_socket) || defined (__stub___socket)
18517choke me
18518#else
18519socket();
18520#endif
18521
18522; return 0; }
18523EOF
18524if { (eval echo configure:18525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18525 rm -rf conftest*
18526 eval "ac_cv_func_socket=yes"
18527else
18528 echo "configure: failed program was:" >&5
18529 cat conftest.$ac_ext >&5
18530 rm -rf conftest*
18531 eval "ac_cv_func_socket=no"
18532fi
18533rm -f conftest*
18534fi
18535
18536if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
18537 echo "$ac_t""yes" 1>&6
18538 :
18539else
18540 echo "$ac_t""no" 1>&6
18541echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
18542echo "configure:18543: checking for socket in -lsocket" >&5
18543ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
18544if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18545 echo $ac_n "(cached) $ac_c" 1>&6
18546else
18547 ac_save_LIBS="$LIBS"
18548LIBS="-lsocket $LIBS"
18549cat > conftest.$ac_ext <<EOF
18550#line 18551 "configure"
18551#include "confdefs.h"
18552/* Override any gcc2 internal prototype to avoid an error. */
18553/* We use char because int might match the return type of a gcc2
18554 builtin and then its argument prototype would still apply. */
18555char socket();
18556
18557int main() {
18558socket()
18559; return 0; }
18560EOF
18561if { (eval echo configure:18562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18562 rm -rf conftest*
18563 eval "ac_cv_lib_$ac_lib_var=yes"
18564else
18565 echo "configure: failed program was:" >&5
18566 cat conftest.$ac_ext >&5
18567 rm -rf conftest*
18568 eval "ac_cv_lib_$ac_lib_var=no"
18569fi
18570rm -f conftest*
18571LIBS="$ac_save_LIBS"
18572
18573fi
18574if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18575 echo "$ac_t""yes" 1>&6
18576 INET_LINK="$INET_LINK -lsocket"
18577else
18578 echo "$ac_t""no" 1>&6
18579
18580 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
18581 wxUSE_SOCKETS=no
18582
18583
18584fi
18585
18586
18587fi
18588
18589 fi
18590
18591
18592 if test "$wxUSE_SOCKETS" = "yes" ; then
18593 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
18594echo "configure:18595: checking what is the type of the third argument of getsockname" >&5
18595if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
18596 echo $ac_n "(cached) $ac_c" 1>&6
18597else
18598
18599
18600 ac_ext=C
18601# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18602ac_cpp='$CXXCPP $CPPFLAGS'
18603ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18604ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18605cross_compiling=$ac_cv_prog_cxx_cross
18606
18607
18608 cat > conftest.$ac_ext <<EOF
18609#line 18610 "configure"
18610#include "confdefs.h"
18611
18612 #include <sys/types.h>
18613 #include <sys/socket.h>
18614
18615int main() {
18616
18617 socklen_t len;
18618 getsockname(0, 0, &len);
18619
18620; return 0; }
18621EOF
18622if { (eval echo configure:18623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18623 rm -rf conftest*
18624 wx_cv_type_getsockname3=socklen_t
18625else
18626 echo "configure: failed program was:" >&5
18627 cat conftest.$ac_ext >&5
18628 rm -rf conftest*
18629 cat > conftest.$ac_ext <<EOF
18630#line 18631 "configure"
18631#include "confdefs.h"
18632
18633 #include <sys/types.h>
18634 #include <sys/socket.h>
18635
18636int main() {
18637
18638 size_t len;
18639 getsockname(0, 0, &len);
18640
18641; return 0; }
18642EOF
18643if { (eval echo configure:18644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18644 rm -rf conftest*
18645 wx_cv_type_getsockname3=size_t
18646else
18647 echo "configure: failed program was:" >&5
18648 cat conftest.$ac_ext >&5
18649 rm -rf conftest*
18650 cat > conftest.$ac_ext <<EOF
18651#line 18652 "configure"
18652#include "confdefs.h"
18653
18654 #include <sys/types.h>
18655 #include <sys/socket.h>
18656
18657int main() {
18658
18659 int len;
18660 getsockname(0, 0, &len);
18661
18662; return 0; }
18663EOF
18664if { (eval echo configure:18665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18665 rm -rf conftest*
18666 wx_cv_type_getsockname3=int
18667else
18668 echo "configure: failed program was:" >&5
18669 cat conftest.$ac_ext >&5
18670 rm -rf conftest*
18671 wx_cv_type_getsockname3=unknown
18672
18673fi
18674rm -f conftest*
18675
18676fi
18677rm -f conftest*
18678
18679fi
18680rm -f conftest*
18681
18682 ac_ext=c
18683# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18684ac_cpp='$CPP $CPPFLAGS'
18685ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18686ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18687cross_compiling=$ac_cv_prog_cc_cross
18688
18689
18690fi
18691
18692echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
18693
18694 if test "$wx_cv_type_getsockname3" = "unknown"; then
18695 wxUSE_SOCKETS=no
18696 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
18697 else
18698 cat >> confdefs.h <<EOF
18699#define SOCKLEN_T $wx_cv_type_getsockname3
18700EOF
18701
18702 fi
18703 fi
18704fi
18705
18706if test "$wxUSE_SOCKETS" = "yes" ; then
18707 cat >> confdefs.h <<\EOF
18708#define wxUSE_SOCKETS 1
18709EOF
18710
18711 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
18712fi
18713
18714
18715if test "$wxUSE_GUI" = "yes"; then
18716
18717 if test "$TOOLKIT" = "MAC"; then
18718 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
18719 wxUSE_JOYSTICK=no
18720 fi
18721 if test "$TOOLKIT" = "MOTIF"; then
18722 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
18723 wxUSE_JOYSTICK=no
18724 fi
18725 if test "$TOOLKIT" = "X11"; then
18726 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
18727 wxUSE_JOYSTICK=no
18728 fi
18729
18730 if test "$TOOLKIT" != "MSW"; then
18731 if test "$wxUSE_JOYSTICK" = "yes"; then
18732 for ac_hdr in linux/joystick.h
18733do
18734ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18735echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18736echo "configure:18737: checking for $ac_hdr" >&5
18737if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18738 echo $ac_n "(cached) $ac_c" 1>&6
18739else
18740 cat > conftest.$ac_ext <<EOF
18741#line 18742 "configure"
18742#include "confdefs.h"
18743#include <$ac_hdr>
18744EOF
18745ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18746{ (eval echo configure:18747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18747ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18748if test -z "$ac_err"; then
18749 rm -rf conftest*
18750 eval "ac_cv_header_$ac_safe=yes"
18751else
18752 echo "$ac_err" >&5
18753 echo "configure: failed program was:" >&5
18754 cat conftest.$ac_ext >&5
18755 rm -rf conftest*
18756 eval "ac_cv_header_$ac_safe=no"
18757fi
18758rm -f conftest*
18759fi
18760if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18761 echo "$ac_t""yes" 1>&6
18762 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18763 cat >> confdefs.h <<EOF
18764#define $ac_tr_hdr 1
18765EOF
18766
18767else
18768 echo "$ac_t""no" 1>&6
18769fi
18770done
18771
18772 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
18773 wxUSE_JOYSTICK=no
18774 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
18775 fi
18776 fi
18777 fi
18778
18779 if test "$wxUSE_JOYSTICK" = "yes"; then
18780 cat >> confdefs.h <<\EOF
18781#define wxUSE_JOYSTICK 1
18782EOF
18783
18784 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
18785 fi
18786fi
18787
18788
18789if test "$TOOLKIT" != "MSW"; then
18790
18791 HAVE_DL_FUNCS=0
18792 HAVE_SHL_FUNCS=0
18793 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
18794 if test "$USE_DARWIN" = 1; then
18795 HAVE_DL_FUNCS=1
18796 else
18797 for ac_func in dlopen
18798do
18799echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18800echo "configure:18801: checking for $ac_func" >&5
18801if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18802 echo $ac_n "(cached) $ac_c" 1>&6
18803else
18804 cat > conftest.$ac_ext <<EOF
18805#line 18806 "configure"
18806#include "confdefs.h"
18807/* System header to define __stub macros and hopefully few prototypes,
18808 which can conflict with char $ac_func(); below. */
18809#include <assert.h>
18810/* Override any gcc2 internal prototype to avoid an error. */
18811/* We use char because int might match the return type of a gcc2
18812 builtin and then its argument prototype would still apply. */
18813char $ac_func();
18814
18815int main() {
18816
18817/* The GNU C library defines this for functions which it implements
18818 to always fail with ENOSYS. Some functions are actually named
18819 something starting with __ and the normal name is an alias. */
18820#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18821choke me
18822#else
18823$ac_func();
18824#endif
18825
18826; return 0; }
18827EOF
18828if { (eval echo configure:18829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18829 rm -rf conftest*
18830 eval "ac_cv_func_$ac_func=yes"
18831else
18832 echo "configure: failed program was:" >&5
18833 cat conftest.$ac_ext >&5
18834 rm -rf conftest*
18835 eval "ac_cv_func_$ac_func=no"
18836fi
18837rm -f conftest*
18838fi
18839
18840if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18841 echo "$ac_t""yes" 1>&6
18842 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18843 cat >> confdefs.h <<EOF
18844#define $ac_tr_func 1
18845EOF
18846
18847 cat >> confdefs.h <<\EOF
18848#define HAVE_DLOPEN 1
18849EOF
18850
18851 HAVE_DL_FUNCS=1
18852
18853else
18854 echo "$ac_t""no" 1>&6
18855echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
18856echo "configure:18857: checking for dlopen in -ldl" >&5
18857ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
18858if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18859 echo $ac_n "(cached) $ac_c" 1>&6
18860else
18861 ac_save_LIBS="$LIBS"
18862LIBS="-ldl $LIBS"
18863cat > conftest.$ac_ext <<EOF
18864#line 18865 "configure"
18865#include "confdefs.h"
18866/* Override any gcc2 internal prototype to avoid an error. */
18867/* We use char because int might match the return type of a gcc2
18868 builtin and then its argument prototype would still apply. */
18869char dlopen();
18870
18871int main() {
18872dlopen()
18873; return 0; }
18874EOF
18875if { (eval echo configure:18876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18876 rm -rf conftest*
18877 eval "ac_cv_lib_$ac_lib_var=yes"
18878else
18879 echo "configure: failed program was:" >&5
18880 cat conftest.$ac_ext >&5
18881 rm -rf conftest*
18882 eval "ac_cv_lib_$ac_lib_var=no"
18883fi
18884rm -f conftest*
18885LIBS="$ac_save_LIBS"
18886
18887fi
18888if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18889 echo "$ac_t""yes" 1>&6
18890
18891 cat >> confdefs.h <<\EOF
18892#define HAVE_DLOPEN 1
18893EOF
18894
18895 HAVE_DL_FUNCS=1
18896 DL_LINK=" -ldl$DL_LINK"
18897
18898else
18899 echo "$ac_t""no" 1>&6
18900
18901 for ac_func in shl_load
18902do
18903echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18904echo "configure:18905: checking for $ac_func" >&5
18905if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18906 echo $ac_n "(cached) $ac_c" 1>&6
18907else
18908 cat > conftest.$ac_ext <<EOF
18909#line 18910 "configure"
18910#include "confdefs.h"
18911/* System header to define __stub macros and hopefully few prototypes,
18912 which can conflict with char $ac_func(); below. */
18913#include <assert.h>
18914/* Override any gcc2 internal prototype to avoid an error. */
18915/* We use char because int might match the return type of a gcc2
18916 builtin and then its argument prototype would still apply. */
18917char $ac_func();
18918
18919int main() {
18920
18921/* The GNU C library defines this for functions which it implements
18922 to always fail with ENOSYS. Some functions are actually named
18923 something starting with __ and the normal name is an alias. */
18924#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18925choke me
18926#else
18927$ac_func();
18928#endif
18929
18930; return 0; }
18931EOF
18932if { (eval echo configure:18933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18933 rm -rf conftest*
18934 eval "ac_cv_func_$ac_func=yes"
18935else
18936 echo "configure: failed program was:" >&5
18937 cat conftest.$ac_ext >&5
18938 rm -rf conftest*
18939 eval "ac_cv_func_$ac_func=no"
18940fi
18941rm -f conftest*
18942fi
18943
18944if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18945 echo "$ac_t""yes" 1>&6
18946 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18947 cat >> confdefs.h <<EOF
18948#define $ac_tr_func 1
18949EOF
18950
18951 cat >> confdefs.h <<\EOF
18952#define HAVE_SHL_LOAD 1
18953EOF
18954
18955 HAVE_SHL_FUNCS=1
18956
18957else
18958 echo "$ac_t""no" 1>&6
18959echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
18960echo "configure:18961: checking for dld in -lshl_load" >&5
18961ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
18962if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18963 echo $ac_n "(cached) $ac_c" 1>&6
18964else
18965 ac_save_LIBS="$LIBS"
18966LIBS="-lshl_load $LIBS"
18967cat > conftest.$ac_ext <<EOF
18968#line 18969 "configure"
18969#include "confdefs.h"
18970/* Override any gcc2 internal prototype to avoid an error. */
18971/* We use char because int might match the return type of a gcc2
18972 builtin and then its argument prototype would still apply. */
18973char dld();
18974
18975int main() {
18976dld()
18977; return 0; }
18978EOF
18979if { (eval echo configure:18980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18980 rm -rf conftest*
18981 eval "ac_cv_lib_$ac_lib_var=yes"
18982else
18983 echo "configure: failed program was:" >&5
18984 cat conftest.$ac_ext >&5
18985 rm -rf conftest*
18986 eval "ac_cv_lib_$ac_lib_var=no"
18987fi
18988rm -f conftest*
18989LIBS="$ac_save_LIBS"
18990
18991fi
18992if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18993 echo "$ac_t""yes" 1>&6
18994
18995 HAVE_SHL_FUNCS=1
18996 DL_LINK=" -ldld$DL_LINK"
18997
18998else
18999 echo "$ac_t""no" 1>&6
19000fi
19001
19002
19003fi
19004done
19005
19006
19007fi
19008
19009
19010fi
19011done
19012
19013
19014 if test "$HAVE_DL_FUNCS" = 1; then
19015 for ac_func in dlerror
19016do
19017echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19018echo "configure:19019: checking for $ac_func" >&5
19019if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19020 echo $ac_n "(cached) $ac_c" 1>&6
19021else
19022 cat > conftest.$ac_ext <<EOF
19023#line 19024 "configure"
19024#include "confdefs.h"
19025/* System header to define __stub macros and hopefully few prototypes,
19026 which can conflict with char $ac_func(); below. */
19027#include <assert.h>
19028/* Override any gcc2 internal prototype to avoid an error. */
19029/* We use char because int might match the return type of a gcc2
19030 builtin and then its argument prototype would still apply. */
19031char $ac_func();
19032
19033int main() {
19034
19035/* The GNU C library defines this for functions which it implements
19036 to always fail with ENOSYS. Some functions are actually named
19037 something starting with __ and the normal name is an alias. */
19038#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19039choke me
19040#else
19041$ac_func();
19042#endif
19043
19044; return 0; }
19045EOF
19046if { (eval echo configure:19047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19047 rm -rf conftest*
19048 eval "ac_cv_func_$ac_func=yes"
19049else
19050 echo "configure: failed program was:" >&5
19051 cat conftest.$ac_ext >&5
19052 rm -rf conftest*
19053 eval "ac_cv_func_$ac_func=no"
19054fi
19055rm -f conftest*
19056fi
19057
19058if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19059 echo "$ac_t""yes" 1>&6
19060 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19061 cat >> confdefs.h <<EOF
19062#define $ac_tr_func 1
19063EOF
19064 cat >> confdefs.h <<\EOF
19065#define HAVE_DLERROR 1
19066EOF
19067
19068else
19069 echo "$ac_t""no" 1>&6
19070echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
19071echo "configure:19072: checking for dlerror in -ldl" >&5
19072ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19073if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19074 echo $ac_n "(cached) $ac_c" 1>&6
19075else
19076 ac_save_LIBS="$LIBS"
19077LIBS="-ldl $LIBS"
19078cat > conftest.$ac_ext <<EOF
19079#line 19080 "configure"
19080#include "confdefs.h"
19081/* Override any gcc2 internal prototype to avoid an error. */
19082/* We use char because int might match the return type of a gcc2
19083 builtin and then its argument prototype would still apply. */
19084char dlerror();
19085
19086int main() {
19087dlerror()
19088; return 0; }
19089EOF
19090if { (eval echo configure:19091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19091 rm -rf conftest*
19092 eval "ac_cv_lib_$ac_lib_var=yes"
19093else
19094 echo "configure: failed program was:" >&5
19095 cat conftest.$ac_ext >&5
19096 rm -rf conftest*
19097 eval "ac_cv_lib_$ac_lib_var=no"
19098fi
19099rm -f conftest*
19100LIBS="$ac_save_LIBS"
19101
19102fi
19103if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19104 echo "$ac_t""yes" 1>&6
19105 cat >> confdefs.h <<\EOF
19106#define HAVE_DLERROR 1
19107EOF
19108
19109else
19110 echo "$ac_t""no" 1>&6
19111fi
19112
19113fi
19114done
19115
19116 fi
19117 fi
19118
19119 if test "$HAVE_DL_FUNCS" = 0; then
19120 if test "$HAVE_SHL_FUNCS" = 0; then
19121 if test "$USE_UNIX" = 1; then
19122 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
19123 wxUSE_DYNAMIC_LOADER=no
19124 wxUSE_DYNLIB_CLASS=no
19125 else
19126 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
19127 fi
19128 fi
19129 fi
19130 fi
19131fi
19132
19133if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
19134 cat >> confdefs.h <<\EOF
19135#define wxUSE_DYNAMIC_LOADER 1
19136EOF
19137
19138elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19139 cat >> confdefs.h <<\EOF
19140#define wxUSE_DYNLIB_CLASS 1
19141EOF
19142
19143fi
19144
19145
19146if test "$wxUSE_FONTMAP" = "yes" ; then
19147 cat >> confdefs.h <<\EOF
19148#define wxUSE_FONTMAP 1
19149EOF
19150
19151fi
19152
19153if test "$wxUSE_UNICODE" = "yes" ; then
19154 cat >> confdefs.h <<\EOF
19155#define wxUSE_UNICODE 1
19156EOF
19157
19158
19159 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
19160 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
19161echo "configure:19162: checking for main in -lunicows" >&5
19162ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19163if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19164 echo $ac_n "(cached) $ac_c" 1>&6
19165else
19166 ac_save_LIBS="$LIBS"
19167LIBS="-lunicows $LIBS"
19168cat > conftest.$ac_ext <<EOF
19169#line 19170 "configure"
19170#include "confdefs.h"
19171
19172int main() {
19173main()
19174; return 0; }
19175EOF
19176if { (eval echo configure:19177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19177 rm -rf conftest*
19178 eval "ac_cv_lib_$ac_lib_var=yes"
19179else
19180 echo "configure: failed program was:" >&5
19181 cat conftest.$ac_ext >&5
19182 rm -rf conftest*
19183 eval "ac_cv_lib_$ac_lib_var=no"
19184fi
19185rm -f conftest*
19186LIBS="$ac_save_LIBS"
19187
19188fi
19189if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19190 echo "$ac_t""yes" 1>&6
19191
19192 cat >> confdefs.h <<\EOF
19193#define wxUSE_UNICODE_MSLU 1
19194EOF
19195
19196
19197else
19198 echo "$ac_t""no" 1>&6
19199
19200 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19201 Applications will only run on Windows NT/2000/XP!" 1>&2
19202 wxUSE_UNICODE_MSLU=no
19203
19204fi
19205
19206 fi
19207fi
19208
19209if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
19210 cat >> confdefs.h <<\EOF
19211#define wxUSE_EXPERIMENTAL_PRINTF 1
19212EOF
19213
19214fi
19215
19216
19217
19218IODBC_C_SRC=""
19219if test "$wxUSE_ODBC" = "yes" ; then
19220 cat >> confdefs.h <<\EOF
19221#define wxUSE_ODBC 1
19222EOF
19223
19224 WXODBCFLAG="-D_IODBC_"
19225 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
19226fi
19227
19228
19229if test "$wxUSE_POSTSCRIPT" = "yes" ; then
19230 cat >> confdefs.h <<\EOF
19231#define wxUSE_POSTSCRIPT 1
19232EOF
19233
19234fi
19235
19236cat >> confdefs.h <<\EOF
19237#define wxUSE_AFM_FOR_POSTSCRIPT 1
19238EOF
19239
19240
19241cat >> confdefs.h <<\EOF
19242#define wxUSE_NORMALIZED_PS_FONTS 1
19243EOF
19244
19245
19246
19247if test "$wxUSE_CONSTRAINTS" = "yes"; then
19248 cat >> confdefs.h <<\EOF
19249#define wxUSE_CONSTRAINTS 1
19250EOF
19251
19252 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19253fi
19254
19255if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19256 if test "$wxUSE_UNIVERSAL" = "yes"; then
19257 echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2
19258 wxUSE_MDI_ARCHITECTURE=no
19259 fi
19260
19261 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19262 cat >> confdefs.h <<\EOF
19263#define wxUSE_MDI_ARCHITECTURE 1
19264EOF
19265
19266 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19267 fi
19268fi
19269
19270if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
19271 cat >> confdefs.h <<\EOF
19272#define wxUSE_DOC_VIEW_ARCHITECTURE 1
19273EOF
19274
19275 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19276 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19277 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19278 fi
19279fi
19280
19281if test "$wxUSE_HELP" = "yes"; then
19282 cat >> confdefs.h <<\EOF
19283#define wxUSE_HELP 1
19284EOF
19285
19286 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
19287
19288 if test "$wxUSE_MSW" = 1; then
19289 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
19290 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
19291echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
19292echo "configure:19293: checking for htmlhelp.h" >&5
19293if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19294 echo $ac_n "(cached) $ac_c" 1>&6
19295else
19296 cat > conftest.$ac_ext <<EOF
19297#line 19298 "configure"
19298#include "confdefs.h"
19299#include <htmlhelp.h>
19300EOF
19301ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19302{ (eval echo configure:19303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19303ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19304if test -z "$ac_err"; then
19305 rm -rf conftest*
19306 eval "ac_cv_header_$ac_safe=yes"
19307else
19308 echo "$ac_err" >&5
19309 echo "configure: failed program was:" >&5
19310 cat conftest.$ac_ext >&5
19311 rm -rf conftest*
19312 eval "ac_cv_header_$ac_safe=no"
19313fi
19314rm -f conftest*
19315fi
19316if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19317 echo "$ac_t""yes" 1>&6
19318
19319 cat >> confdefs.h <<\EOF
19320#define wxUSE_MS_HTML_HELP 1
19321EOF
19322
19323
19324else
19325 echo "$ac_t""no" 1>&6
19326
19327 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
19328 wxUSE_MS_HTML_HELP=no
19329
19330fi
19331
19332 fi
19333 fi
19334
19335 if test "$wxUSE_WXHTML_HELP" = "yes"; then
19336 if test "$wxUSE_HTML" = "yes"; then
19337 cat >> confdefs.h <<\EOF
19338#define wxUSE_WXHTML_HELP 1
19339EOF
19340
19341 else
19342 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
19343 wxUSE_WXHTML_HELP=no
19344 fi
19345 fi
19346fi
19347
19348if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19349 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19350 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
19351 else
19352 cat >> confdefs.h <<\EOF
19353#define wxUSE_PRINTING_ARCHITECTURE 1
19354EOF
19355
19356 fi
19357 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19358fi
19359
19360if test "$wxUSE_PROLOGIO" = "yes" ; then
19361 cat >> confdefs.h <<\EOF
19362#define wxUSE_PROLOGIO 1
19363EOF
19364
19365fi
19366
19367if test "$wxUSE_RESOURCES" = "yes" ; then
19368 cat >> confdefs.h <<\EOF
19369#define wxUSE_RESOURCES 1
19370EOF
19371
19372 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
19373fi
19374
19375if test "$wxUSE_X_RESOURCES" = "yes"; then
19376 cat >> confdefs.h <<\EOF
19377#define wxUSE_X_RESOURCES 1
19378EOF
19379
19380fi
19381
19382
19383if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
19384 -o "$wxUSE_CLIPBOARD" = "yes" \
19385 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
19386 for ac_hdr in ole2.h
19387do
19388ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19389echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19390echo "configure:19391: checking for $ac_hdr" >&5
19391if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19392 echo $ac_n "(cached) $ac_c" 1>&6
19393else
19394 cat > conftest.$ac_ext <<EOF
19395#line 19396 "configure"
19396#include "confdefs.h"
19397#include <$ac_hdr>
19398EOF
19399ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19400{ (eval echo configure:19401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19401ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19402if test -z "$ac_err"; then
19403 rm -rf conftest*
19404 eval "ac_cv_header_$ac_safe=yes"
19405else
19406 echo "$ac_err" >&5
19407 echo "configure: failed program was:" >&5
19408 cat conftest.$ac_ext >&5
19409 rm -rf conftest*
19410 eval "ac_cv_header_$ac_safe=no"
19411fi
19412rm -f conftest*
19413fi
19414if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19415 echo "$ac_t""yes" 1>&6
19416 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19417 cat >> confdefs.h <<EOF
19418#define $ac_tr_hdr 1
19419EOF
19420
19421else
19422 echo "$ac_t""no" 1>&6
19423fi
19424done
19425
19426
19427 if test "$ac_cv_header_ole2_h" = "yes" ; then
19428 if test "$GCC" = yes ; then
19429 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
19430 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
19431 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
19432 cat >> confdefs.h <<\EOF
19433#define wxUSE_OLE 1
19434EOF
19435
19436
19437 fi
19438
19439 cat >> confdefs.h <<\EOF
19440#define wxUSE_DATAOBJ 1
19441EOF
19442
19443 else
19444 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
19445
19446 wxUSE_CLIPBOARD=no
19447 wxUSE_DRAG_AND_DROP=no
19448 wxUSE_DATAOBJ=no
19449 fi
19450
19451 if test "$wxUSE_METAFILE" = "yes"; then
19452 cat >> confdefs.h <<\EOF
19453#define wxUSE_METAFILE 1
19454EOF
19455
19456
19457 cat >> confdefs.h <<\EOF
19458#define wxUSE_ENH_METAFILE 1
19459EOF
19460
19461 fi
19462fi
19463
19464if test "$wxUSE_IPC" = "yes"; then
19465 if test "$wxUSE_SOCKETS" != "yes"; then
19466 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
19467 fi
19468
19469 cat >> confdefs.h <<\EOF
19470#define wxUSE_IPC 1
19471EOF
19472
19473fi
19474
19475if test "$wxUSE_CLIPBOARD" = "yes"; then
19476 if test "$wxUSE_X11" = 1; then
19477 echo "configure: warning: Clipboard not yet supported under X11... disabled" 1>&2
19478 wxUSE_CLIPBOARD=no
19479 fi
19480
19481 if test "$wxUSE_CLIPBOARD" = "yes"; then
19482 cat >> confdefs.h <<\EOF
19483#define wxUSE_CLIPBOARD 1
19484EOF
19485
19486
19487 cat >> confdefs.h <<\EOF
19488#define wxUSE_DATAOBJ 1
19489EOF
19490
19491 fi
19492fi
19493
19494if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
19495 if test "$wxUSE_GTK" = 1; then
19496 if test "$WXGTK12" != 1; then
19497 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
19498 wxUSE_DRAG_AND_DROP=no
19499 fi
19500 fi
19501
19502 if test "$wxUSE_MOTIF" = 1; then
19503 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
19504 wxUSE_DRAG_AND_DROP=no
19505 fi
19506
19507 if test "$wxUSE_X11" = 1; then
19508 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
19509 wxUSE_DRAG_AND_DROP=no
19510 fi
19511
19512 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
19513 cat >> confdefs.h <<\EOF
19514#define wxUSE_DRAG_AND_DROP 1
19515EOF
19516
19517 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
19518 fi
19519
19520fi
19521
19522if test "$wxUSE_SPLINES" = "yes" ; then
19523 cat >> confdefs.h <<\EOF
19524#define wxUSE_SPLINES 1
19525EOF
19526
19527fi
19528
19529
19530USES_CONTROLS=0
19531if test "$wxUSE_CONTROLS" = "yes"; then
19532 USES_CONTROLS=1
19533fi
19534
19535if test "$wxUSE_ACCEL" = "yes"; then
19536 cat >> confdefs.h <<\EOF
19537#define wxUSE_ACCEL 1
19538EOF
19539
19540 USES_CONTROLS=1
19541fi
19542
19543if test "$wxUSE_BUTTON" = "yes"; then
19544 cat >> confdefs.h <<\EOF
19545#define wxUSE_BUTTON 1
19546EOF
19547
19548 USES_CONTROLS=1
19549fi
19550
19551if test "$wxUSE_BMPBUTTON" = "yes"; then
19552 cat >> confdefs.h <<\EOF
19553#define wxUSE_BMPBUTTON 1
19554EOF
19555
19556 USES_CONTROLS=1
19557fi
19558
19559if test "$wxUSE_CALCTRL" = "yes"; then
19560 cat >> confdefs.h <<\EOF
19561#define wxUSE_CALENDARCTRL 1
19562EOF
19563
19564 USES_CONTROLS=1
19565 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
19566fi
19567
19568if test "$wxUSE_CARET" = "yes"; then
19569 cat >> confdefs.h <<\EOF
19570#define wxUSE_CARET 1
19571EOF
19572
19573 USES_CONTROLS=1
19574 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
19575fi
19576
19577if test "$wxUSE_COMBOBOX" = "yes"; then
19578 cat >> confdefs.h <<\EOF
19579#define wxUSE_COMBOBOX 1
19580EOF
19581
19582 USES_CONTROLS=1
19583fi
19584
19585if test "$wxUSE_CHOICE" = "yes"; then
19586 cat >> confdefs.h <<\EOF
19587#define wxUSE_CHOICE 1
19588EOF
19589
19590 USES_CONTROLS=1
19591fi
19592
19593if test "$wxUSE_CHECKBOX" = "yes"; then
19594 cat >> confdefs.h <<\EOF
19595#define wxUSE_CHECKBOX 1
19596EOF
19597
19598 USES_CONTROLS=1
19599fi
19600
19601if test "$wxUSE_CHECKLST" = "yes"; then
19602 cat >> confdefs.h <<\EOF
19603#define wxUSE_CHECKLISTBOX 1
19604EOF
19605
19606 USES_CONTROLS=1
19607 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
19608fi
19609
19610if test "$wxUSE_GAUGE" = "yes"; then
19611 cat >> confdefs.h <<\EOF
19612#define wxUSE_GAUGE 1
19613EOF
19614
19615 USES_CONTROLS=1
19616fi
19617
19618if test "$wxUSE_NEW_GRID" = "yes"; then
19619 wxUSE_GRID="yes"
19620 cat >> confdefs.h <<\EOF
19621#define wxUSE_NEW_GRID 1
19622EOF
19623
19624 USES_CONTROLS=1
19625 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
19626fi
19627
19628if test "$wxUSE_GRID" = "yes"; then
19629 cat >> confdefs.h <<\EOF
19630#define wxUSE_GRID 1
19631EOF
19632
19633 USES_CONTROLS=1
19634 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
19635fi
19636
19637if test "$wxUSE_IMAGLIST" = "yes"; then
19638 cat >> confdefs.h <<\EOF
19639#define wxUSE_IMAGLIST 1
19640EOF
19641
19642fi
19643
19644if test "$wxUSE_LISTBOX" = "yes"; then
19645 cat >> confdefs.h <<\EOF
19646#define wxUSE_LISTBOX 1
19647EOF
19648
19649 USES_CONTROLS=1
19650fi
19651
19652if test "$wxUSE_LISTCTRL" = "yes"; then
19653 if test "$wxUSE_IMAGLIST" = "yes"; then
19654 cat >> confdefs.h <<\EOF
19655#define wxUSE_LISTCTRL 1
19656EOF
19657
19658 USES_CONTROLS=1
19659 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
19660 else
19661 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
19662 fi
19663fi
19664
19665if test "$wxUSE_NOTEBOOK" = "yes"; then
19666 cat >> confdefs.h <<\EOF
19667#define wxUSE_NOTEBOOK 1
19668EOF
19669
19670 USES_CONTROLS=1
19671 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
19672fi
19673
19674if test "$wxUSE_PROPSHEET" = "yes"; then
19675 cat >> confdefs.h <<\EOF
19676#define wxUSE_PROPSHEET 1
19677EOF
19678
19679 USES_CONTROLS=1
19680 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
19681fi
19682
19683if test "$wxUSE_RADIOBOX" = "yes"; then
19684 cat >> confdefs.h <<\EOF
19685#define wxUSE_RADIOBOX 1
19686EOF
19687
19688 USES_CONTROLS=1
19689fi
19690
19691if test "$wxUSE_RADIOBTN" = "yes"; then
19692 cat >> confdefs.h <<\EOF
19693#define wxUSE_RADIOBTN 1
19694EOF
19695
19696 USES_CONTROLS=1
19697fi
19698
19699if test "$wxUSE_SASH" = "yes"; then
19700 cat >> confdefs.h <<\EOF
19701#define wxUSE_SASH 1
19702EOF
19703
19704 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
19705fi
19706
19707if test "$wxUSE_SCROLLBAR" = "yes"; then
19708 cat >> confdefs.h <<\EOF
19709#define wxUSE_SCROLLBAR 1
19710EOF
19711
19712 USES_CONTROLS=1
19713 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
19714fi
19715
19716if test "$wxUSE_SLIDER" = "yes"; then
19717 cat >> confdefs.h <<\EOF
19718#define wxUSE_SLIDER 1
19719EOF
19720
19721 USES_CONTROLS=1
19722fi
19723
19724if test "$wxUSE_SPINBTN" = "yes"; then
19725 cat >> confdefs.h <<\EOF
19726#define wxUSE_SPINBTN 1
19727EOF
19728
19729 USES_CONTROLS=1
19730fi
19731
19732if test "$wxUSE_SPINCTRL" = "yes"; then
19733 cat >> confdefs.h <<\EOF
19734#define wxUSE_SPINCTRL 1
19735EOF
19736
19737 USES_CONTROLS=1
19738fi
19739
19740if test "$wxUSE_SPLITTER" = "yes"; then
19741 cat >> confdefs.h <<\EOF
19742#define wxUSE_SPLITTER 1
19743EOF
19744
19745 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
19746fi
19747
19748if test "$wxUSE_STATBMP" = "yes"; then
19749 cat >> confdefs.h <<\EOF
19750#define wxUSE_STATBMP 1
19751EOF
19752
19753 USES_CONTROLS=1
19754fi
19755
19756if test "$wxUSE_STATBOX" = "yes"; then
19757 cat >> confdefs.h <<\EOF
19758#define wxUSE_STATBOX 1
19759EOF
19760
19761 USES_CONTROLS=1
19762fi
19763
19764if test "$wxUSE_STATTEXT" = "yes"; then
19765 cat >> confdefs.h <<\EOF
19766#define wxUSE_STATTEXT 1
19767EOF
19768
19769 USES_CONTROLS=1
19770fi
19771
19772if test "$wxUSE_STATLINE" = "yes"; then
19773 if test "$wxUSE_WINE" = 1 ; then
19774 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
19775 else
19776 cat >> confdefs.h <<\EOF
19777#define wxUSE_STATLINE 1
19778EOF
19779
19780 USES_CONTROLS=1
19781 fi
19782fi
19783
19784if test "$wxUSE_STATUSBAR" = "yes"; then
19785 cat >> confdefs.h <<\EOF
19786#define wxUSE_STATUSBAR 1
19787EOF
19788
19789 USES_CONTROLS=1
19790
19791 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
19792fi
19793
19794if test "$wxUSE_TABDIALOG" = "yes"; then
19795 cat >> confdefs.h <<\EOF
19796#define wxUSE_TAB_DIALOG 1
19797EOF
19798
19799 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
19800fi
19801
19802if test "$wxUSE_TEXTCTRL" = "yes"; then
19803 cat >> confdefs.h <<\EOF
19804#define wxUSE_TEXTCTRL 1
19805EOF
19806
19807 USES_CONTROLS=1
19808 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
19809fi
19810
19811if test "$wxUSE_TOGGLEBTN" = "yes"; then
19812 if test "$wxUSE_MAC" = 1; then
19813 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
19814 wxUSE_TOGGLEBTN=no
19815 fi
19816 if test "$wxUSE_UNIVERSAL" = "yes"; then
19817 echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2
19818 wxUSE_TOGGLEBTN=no
19819 fi
19820
19821 if test "$wxUSE_TOGGLEBTN" = "yes"; then
19822 cat >> confdefs.h <<\EOF
19823#define wxUSE_TOGGLEBTN 1
19824EOF
19825
19826 USES_CONTROLS=1
19827 fi
19828fi
19829
19830if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
19831 cat >> confdefs.h <<\EOF
19832#define wxUSE_TOOLBAR_SIMPLE 1
19833EOF
19834
19835 wxUSE_TOOLBAR="yes"
19836 USES_CONTROLS=1
19837fi
19838
19839if test "$wxUSE_TOOLBAR" = "yes"; then
19840 cat >> confdefs.h <<\EOF
19841#define wxUSE_TOOLBAR 1
19842EOF
19843
19844 USES_CONTROLS=1
19845
19846 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
19847 wxUSE_TOOLBAR_NATIVE="yes"
19848 fi
19849
19850 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
19851 cat >> confdefs.h <<\EOF
19852#define wxUSE_TOOLBAR_NATIVE 1
19853EOF
19854
19855 USES_CONTROLS=1
19856 fi
19857
19858 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
19859fi
19860
19861if test "$wxUSE_TOOLTIPS" = "yes"; then
19862 if test "$wxUSE_MOTIF" = 1; then
19863 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
19864 else
19865 if test "$wxUSE_WINE" = 1; then
19866 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
19867 else
19868 if test "$wxUSE_UNIVERSAL" = "yes"; then
19869 echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2
19870 else
19871 if test "$wxUSE_X11" = "1"; then
19872 echo "configure: warning: wxTooltip not supported yet under X11... disabled" 1>&2
19873 else
19874 cat >> confdefs.h <<\EOF
19875#define wxUSE_TOOLTIPS 1
19876EOF
19877
19878 fi
19879 fi
19880 fi
19881 fi
19882fi
19883
19884if test "$wxUSE_TREECTRL" = "yes"; then
19885 if test "$wxUSE_IMAGLIST" = "yes"; then
19886 cat >> confdefs.h <<\EOF
19887#define wxUSE_TREECTRL 1
19888EOF
19889
19890 USES_CONTROLS=1
19891 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
19892 else
19893 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
19894 fi
19895fi
19896
19897if test "$wxUSE_POPUPWIN" = "yes"; then
19898 if test "$wxUSE_MAC" = 1; then
19899 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
19900 else
19901 if test "$wxUSE_MOTIF" = 1; then
19902 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
19903 else
19904 cat >> confdefs.h <<\EOF
19905#define wxUSE_POPUPWIN 1
19906EOF
19907
19908
19909 USES_CONTROLS=1
19910 fi
19911 fi
19912fi
19913
19914if test "$wxUSE_TIPWINDOW" = "yes"; then
19915 cat >> confdefs.h <<\EOF
19916#define wxUSE_TIPWINDOW 1
19917EOF
19918
19919fi
19920
19921if test "$USES_CONTROLS" = 1; then
19922 cat >> confdefs.h <<\EOF
19923#define wxUSE_CONTROLS 1
19924EOF
19925
19926fi
19927
19928
19929if test "$wxUSE_TREELAYOUT" = "yes"; then
19930 cat >> confdefs.h <<\EOF
19931#define wxUSE_TREELAYOUT 1
19932EOF
19933
19934 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
19935fi
19936
19937if test "$wxUSE_DRAGIMAGE" = "yes"; then
19938 cat >> confdefs.h <<\EOF
19939#define wxUSE_DRAGIMAGE 1
19940EOF
19941
19942 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
19943fi
19944
19945if test "$wxUSE_MENUS" = "yes"; then
19946 cat >> confdefs.h <<\EOF
19947#define wxUSE_MENUS 1
19948EOF
19949
19950 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
19951fi
19952
19953if test "$wxUSE_METAFILE" = "yes"; then
19954 cat >> confdefs.h <<\EOF
19955#define wxUSE_METAFILE 1
19956EOF
19957
19958fi
19959
19960if test "$wxUSE_MIMETYPE" = "yes"; then
19961 cat >> confdefs.h <<\EOF
19962#define wxUSE_MIMETYPE 1
19963EOF
19964
19965fi
19966
19967if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
19968 cat >> confdefs.h <<\EOF
19969#define wxUSE_SYSTEM_OPTIONS 1
19970EOF
19971
19972fi
19973
19974if test "$wxUSE_PROTOCOL" = "yes"; then
19975 if test "$wxUSE_SOCKETS" != "yes"; then
19976 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
19977 wxUSE_PROTOCOL=no
19978 fi
19979
19980 if test "$wxUSE_PROTOCOL" = "yes"; then
19981 cat >> confdefs.h <<\EOF
19982#define wxUSE_PROTOCOL 1
19983EOF
19984
19985
19986 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
19987 cat >> confdefs.h <<\EOF
19988#define wxUSE_PROTOCOL_HTTP 1
19989EOF
19990
19991 fi
19992 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
19993 cat >> confdefs.h <<\EOF
19994#define wxUSE_PROTOCOL_FTP 1
19995EOF
19996
19997 fi
19998 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
19999 cat >> confdefs.h <<\EOF
20000#define wxUSE_PROTOCOL_FILE 1
20001EOF
20002
20003 fi
20004 fi
20005fi
20006
20007if test "$wxUSE_URL" = "yes"; then
20008 if test "$wxUSE_PROTOCOL" != "yes"; then
20009 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
20010 wxUSE_URL=no
20011 fi
20012 if test "$wxUSE_URL" = "yes"; then
20013 cat >> confdefs.h <<\EOF
20014#define wxUSE_URL 1
20015EOF
20016
20017 fi
20018fi
20019
20020if test "$wxUSE_MINIFRAME" = "yes"; then
20021 cat >> confdefs.h <<\EOF
20022#define wxUSE_MINIFRAME 1
20023EOF
20024
20025 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20026fi
20027
20028if test "$wxUSE_HTML" = "yes"; then
20029 cat >> confdefs.h <<\EOF
20030#define wxUSE_HTML 1
20031EOF
20032
20033 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
20034fi
20035
20036if test "$wxUSE_VALIDATORS" = "yes"; then
20037 cat >> confdefs.h <<\EOF
20038#define wxUSE_VALIDATORS 1
20039EOF
20040
20041 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20042fi
20043
20044if test "$wxUSE_PALETTE" = "yes" ; then
20045 cat >> confdefs.h <<\EOF
20046#define wxUSE_PALETTE 1
20047EOF
20048
20049fi
20050
20051if test "$wxUSE_IMAGE" = "yes" ; then
20052 cat >> confdefs.h <<\EOF
20053#define wxUSE_IMAGE 1
20054EOF
20055
20056fi
20057
20058if test "$wxUSE_GIF" = "yes" ; then
20059 cat >> confdefs.h <<\EOF
20060#define wxUSE_GIF 1
20061EOF
20062
20063fi
20064
20065if test "$wxUSE_PCX" = "yes" ; then
20066 cat >> confdefs.h <<\EOF
20067#define wxUSE_PCX 1
20068EOF
20069
20070fi
20071
20072if test "$wxUSE_IFF" = "yes" ; then
20073 cat >> confdefs.h <<\EOF
20074#define wxUSE_IFF 1
20075EOF
20076
20077fi
20078
20079if test "$wxUSE_PNM" = "yes" ; then
20080 cat >> confdefs.h <<\EOF
20081#define wxUSE_PNM 1
20082EOF
20083
20084fi
20085
20086if test "$wxUSE_XPM" = "yes" ; then
20087 cat >> confdefs.h <<\EOF
20088#define wxUSE_XPM 1
20089EOF
20090
20091fi
20092
20093if test "$wxUSE_ICO_CUR" = "yes" ; then
20094 cat >> confdefs.h <<\EOF
20095#define wxUSE_ICO_CUR 1
20096EOF
20097
20098fi
20099
20100if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20101 LIBS=" -lunicows $LIBS"
20102fi
20103
20104
20105if test "$wxUSE_CHOICEDLG" = "yes"; then
20106 cat >> confdefs.h <<\EOF
20107#define wxUSE_CHOICEDLG 1
20108EOF
20109
20110fi
20111
20112if test "$wxUSE_COLOURDLG" = "yes"; then
20113 cat >> confdefs.h <<\EOF
20114#define wxUSE_COLOURDLG 1
20115EOF
20116
20117fi
20118
20119if test "$wxUSE_FILEDLG" = "yes"; then
20120 cat >> confdefs.h <<\EOF
20121#define wxUSE_FILEDLG 1
20122EOF
20123
20124fi
20125
20126if test "$wxUSE_FINDREPLDLG" = "yes"; then
20127 cat >> confdefs.h <<\EOF
20128#define wxUSE_FINDREPLDLG 1
20129EOF
20130
20131fi
20132
20133if test "$wxUSE_FONTDLG" = "yes"; then
20134 cat >> confdefs.h <<\EOF
20135#define wxUSE_FONTDLG 1
20136EOF
20137
20138fi
20139
20140if test "$wxUSE_DIRDLG" = "yes"; then
20141 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20142 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
20143 else
20144 if test "$wxUSE_TREECTRL" != "yes"; then
20145 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
20146 else
20147 cat >> confdefs.h <<\EOF
20148#define wxUSE_DIRDLG 1
20149EOF
20150
20151 fi
20152 fi
20153fi
20154
20155if test "$wxUSE_MSGDLG" = "yes"; then
20156 cat >> confdefs.h <<\EOF
20157#define wxUSE_MSGDLG 1
20158EOF
20159
20160fi
20161
20162if test "$wxUSE_NUMBERDLG" = "yes"; then
20163 cat >> confdefs.h <<\EOF
20164#define wxUSE_NUMBERDLG 1
20165EOF
20166
20167fi
20168
20169if test "$wxUSE_PROGRESSDLG" = "yes"; then
20170 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20171 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
20172 else
20173 cat >> confdefs.h <<\EOF
20174#define wxUSE_PROGRESSDLG 1
20175EOF
20176
20177 fi
20178fi
20179
20180if test "$wxUSE_SPLASH" = "yes"; then
20181 cat >> confdefs.h <<\EOF
20182#define wxUSE_SPLASH 1
20183EOF
20184
20185fi
20186
20187if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20188 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20189 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
20190 else
20191 cat >> confdefs.h <<\EOF
20192#define wxUSE_STARTUP_TIPS 1
20193EOF
20194
20195 fi
20196fi
20197
20198if test "$wxUSE_TEXTDLG" = "yes"; then
20199 cat >> confdefs.h <<\EOF
20200#define wxUSE_TEXTDLG 1
20201EOF
20202
20203fi
20204
20205if test "$wxUSE_WIZARDDLG" = "yes"; then
20206 cat >> confdefs.h <<\EOF
20207#define wxUSE_WIZARDDLG 1
20208EOF
20209
20210 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20211fi
20212
20213
20214if test "$cross_compiling" = "yes"; then
20215 OSINFO="\"$host\""
20216else
20217 OSINFO=`uname -s -r -m`
20218 OSINFO="\"$OSINFO\""
20219fi
20220
20221cat >> confdefs.h <<EOF
20222#define WXWIN_OS_DESCRIPTION $OSINFO
20223EOF
20224
20225
20226
20227if test "x$prefix" != "xNONE"; then
20228 wxPREFIX=$prefix
20229else
20230 wxPREFIX=$ac_default_prefix
20231fi
20232
20233cat >> confdefs.h <<EOF
20234#define wxINSTALL_PREFIX "$wxPREFIX"
20235EOF
20236
20237
20238
20239
20240
20241if test "$wxUSE_MAC" = 1 ; then
20242 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
20243fi
20244
20245
20246LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DL_LINK -lm $LIBS"
20247
20248if test "$wxUSE_GUI" = "yes"; then
20249
20250 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
20251
20252
20253 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
20254 drawing dynamic erase event exec font image \
20255 minimal richedit rotate widgets"
20256
20257 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20258else
20259 SAMPLES_SUBDIRS="console"
20260fi
20261
20262
20263INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
20264$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
20265
20266if test "$wxUSE_GTK" = 1; then
20267 WXCONFIG_INCLUDE=
20268else
20269 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20270fi
20271
20272if test "$GXX" = yes ; then
20273 CXXWARNINGS="-Wall"
20274
20275 if test "$wxUSE_NO_DEPS" = "no" ; then
20276 CFLAGS="-MMD $CFLAGS"
20277 CXXFLAGS="-MMD $CXXFLAGS"
20278 fi
20279fi
20280
20281EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
20282
20283CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20284CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
20285
20286LDFLAGS="$LDFLAGS$PROFILE"
20287
20288SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
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
20371
20372
20373
20374
20375
20376echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
20377echo "configure:20378: checking whether ${MAKE-make} sets \${MAKE}" >&5
20378set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
20379if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
20380 echo $ac_n "(cached) $ac_c" 1>&6
20381else
20382 cat > conftestmake <<\EOF
20383all:
20384 @echo 'ac_maketemp="${MAKE}"'
20385EOF
20386# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20387eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
20388if test -n "$ac_maketemp"; then
20389 eval ac_cv_prog_make_${ac_make}_set=yes
20390else
20391 eval ac_cv_prog_make_${ac_make}_set=no
20392fi
20393rm -f conftestmake
20394fi
20395if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20396 echo "$ac_t""yes" 1>&6
20397 SET_MAKE=
20398else
20399 echo "$ac_t""no" 1>&6
20400 SET_MAKE="MAKE=${MAKE-make}"
20401fi
20402
20403
20404if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
20405 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
20406fi
20407
20408
20409
20410if test "$wxUSE_GUI" = "yes"; then
20411 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
20412 wx_cv_if_gnu_make=$IF_GNU_MAKE
20413 wx_cv_path_ifs=$PATH_IFS
20414 wx_cv_program_ext=$PROGRAM_EXT
20415 wx_cv_target_library=$WX_TARGET_LIBRARY
20416 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
20417 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
20418 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
20419 wx_cv_path_ifs wx_cv_program_ext \
20420 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
20421 subdirs="demos samples utils contrib"
20422
20423fi
20424
20425trap '' 1 2 15
20426cat > confcache <<\EOF
20427# This file is a shell script that caches the results of configure
20428# tests run on this system so they can be shared between configure
20429# scripts and configure runs. It is not useful on other systems.
20430# If it contains results you don't want to keep, you may remove or edit it.
20431#
20432# By default, configure uses ./config.cache as the cache file,
20433# creating it if it does not exist already. You can give configure
20434# the --cache-file=FILE option to use a different cache file; that is
20435# what configure does when it calls configure scripts in
20436# subdirectories, so they share the cache.
20437# Giving --cache-file=/dev/null disables caching, for debugging configure.
20438# config.status only pays attention to the cache file if you give it the
20439# --recheck option to rerun configure.
20440#
20441EOF
20442# The following way of writing the cache mishandles newlines in values,
20443# but we know of no workaround that is simple, portable, and efficient.
20444# So, don't put newlines in cache variables' values.
20445# Ultrix sh set writes to stderr and can't be redirected directly,
20446# and sets the high bit in the cache file unless we assign to the vars.
20447(set) 2>&1 |
20448 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20449 *ac_space=\ *)
20450 # `set' does not quote correctly, so add quotes (double-quote substitution
20451 # turns \\\\ into \\, and sed turns \\ into \).
20452 sed -n \
20453 -e "s/'/'\\\\''/g" \
20454 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20455 ;;
20456 *)
20457 # `set' quotes correctly as required by POSIX, so do not add quotes.
20458 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20459 ;;
20460 esac >> confcache
20461if cmp -s $cache_file confcache; then
20462 :
20463else
20464 if test -w $cache_file; then
20465 echo "updating cache $cache_file"
20466 cat confcache > $cache_file
20467 else
20468 echo "not updating unwritable cache $cache_file"
20469 fi
20470fi
20471rm -f confcache
20472
20473trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
20474
20475test "x$prefix" = xNONE && prefix=$ac_default_prefix
20476# Let make expand exec_prefix.
20477test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20478
20479# Any assignment to VPATH causes Sun make to only execute
20480# the first set of double-colon rules, so remove it if not needed.
20481# If there is a colon in the path, we need to keep it.
20482if test "x$srcdir" = x.; then
20483 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
20484fi
20485
20486trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
20487
20488DEFS=-DHAVE_CONFIG_H
20489
20490# Without the "./", some shells look in PATH for config.status.
20491: ${CONFIG_STATUS=./config.status}
20492
20493echo creating $CONFIG_STATUS
20494rm -f $CONFIG_STATUS
20495cat > $CONFIG_STATUS <<EOF
20496#! /bin/sh
20497# Generated automatically by configure.
20498# Run this file to recreate the current configuration.
20499# This directory was configured as follows,
20500# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20501#
20502# $0 $ac_configure_args
20503#
20504# Compiler output produced by configure, useful for debugging
20505# configure, is in ./config.log if it exists.
20506
20507ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
20508for ac_option
20509do
20510 case "\$ac_option" in
20511 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20512 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
20513 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
20514 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
20515 echo "$CONFIG_STATUS generated by autoconf version 2.13"
20516 exit 0 ;;
20517 -help | --help | --hel | --he | --h)
20518 echo "\$ac_cs_usage"; exit 0 ;;
20519 *) echo "\$ac_cs_usage"; exit 1 ;;
20520 esac
20521done
20522
20523ac_given_srcdir=$srcdir
20524ac_given_INSTALL="$INSTALL"
20525
20526trap 'rm -fr `echo "
20527 wx-config
20528 src/make.env
20529 src/makeprog.env
20530 src/makelib.env
20531 Makefile
20532 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
20533EOF
20534cat >> $CONFIG_STATUS <<EOF
20535
20536# Protect against being on the right side of a sed subst in config.status.
20537sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
20538 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
20539$ac_vpsub
20540$extrasub
20541s%@SHELL@%$SHELL%g
20542s%@CFLAGS@%$CFLAGS%g
20543s%@CPPFLAGS@%$CPPFLAGS%g
20544s%@CXXFLAGS@%$CXXFLAGS%g
20545s%@FFLAGS@%$FFLAGS%g
20546s%@DEFS@%$DEFS%g
20547s%@LDFLAGS@%$LDFLAGS%g
20548s%@LIBS@%$LIBS%g
20549s%@exec_prefix@%$exec_prefix%g
20550s%@prefix@%$prefix%g
20551s%@program_transform_name@%$program_transform_name%g
20552s%@bindir@%$bindir%g
20553s%@sbindir@%$sbindir%g
20554s%@libexecdir@%$libexecdir%g
20555s%@datadir@%$datadir%g
20556s%@sysconfdir@%$sysconfdir%g
20557s%@sharedstatedir@%$sharedstatedir%g
20558s%@localstatedir@%$localstatedir%g
20559s%@libdir@%$libdir%g
20560s%@includedir@%$includedir%g
20561s%@oldincludedir@%$oldincludedir%g
20562s%@infodir@%$infodir%g
20563s%@mandir@%$mandir%g
20564s%@host@%$host%g
20565s%@host_alias@%$host_alias%g
20566s%@host_cpu@%$host_cpu%g
20567s%@host_vendor@%$host_vendor%g
20568s%@host_os@%$host_os%g
20569s%@target@%$target%g
20570s%@target_alias@%$target_alias%g
20571s%@target_cpu@%$target_cpu%g
20572s%@target_vendor@%$target_vendor%g
20573s%@target_os@%$target_os%g
20574s%@build@%$build%g
20575s%@build_alias@%$build_alias%g
20576s%@build_cpu@%$build_cpu%g
20577s%@build_vendor@%$build_vendor%g
20578s%@build_os@%$build_os%g
20579s%@CC@%$CC%g
20580s%@CPP@%$CPP%g
20581s%@CXX@%$CXX%g
20582s%@RANLIB@%$RANLIB%g
20583s%@AR@%$AR%g
20584s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
20585s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
20586s%@INSTALL_DATA@%$INSTALL_DATA%g
20587s%@STRIP@%$STRIP%g
20588s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
20589s%@YACC@%$YACC%g
20590s%@LEX@%$LEX%g
20591s%@LEXLIB@%$LEXLIB%g
20592s%@LN_S@%$LN_S%g
20593s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
20594s%@GTK_CFLAGS@%$GTK_CFLAGS%g
20595s%@GTK_LIBS@%$GTK_LIBS%g
20596s%@GTK_CONFIG@%$GTK_CONFIG%g
20597s%@X_CFLAGS@%$X_CFLAGS%g
20598s%@X_PRE_LIBS@%$X_PRE_LIBS%g
20599s%@X_LIBS@%$X_LIBS%g
20600s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
20601s%@RESCOMP@%$RESCOMP%g
20602s%@DEREZ@%$DEREZ%g
20603s%@CXXCPP@%$CXXCPP%g
20604s%@LIBICONV@%$LIBICONV%g
20605s%@LEX_STEM@%$LEX_STEM%g
20606s%@PATH_IFS@%$PATH_IFS%g
20607s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
20608s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
20609s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
20610s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
20611s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
20612s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
20613s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
20614s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
20615s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
20616s%@PROGRAM_EXT@%$PROGRAM_EXT%g
20617s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
20618s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
20619s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
20620s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
20621s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
20622s%@WX_ALL@%$WX_ALL%g
20623s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
20624s%@SHARED_LD@%$SHARED_LD%g
20625s%@PIC_FLAG@%$PIC_FLAG%g
20626s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
20627s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
20628s%@SONAME_FLAGS@%$SONAME_FLAGS%g
20629s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
20630s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
20631s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
20632s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
20633s%@USE_GUI@%$USE_GUI%g
20634s%@AFMINSTALL@%$AFMINSTALL%g
20635s%@TOOLKIT@%$TOOLKIT%g
20636s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
20637s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
20638s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
20639s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
20640s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
20641s%@cross_compiling@%$cross_compiling%g
20642s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
20643s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
20644s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
20645s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
20646s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
20647s%@ALL_OBJECTS@%$ALL_OBJECTS%g
20648s%@ALL_HEADERS@%$ALL_HEADERS%g
20649s%@ALL_SOURCES@%$ALL_SOURCES%g
20650s%@GUIDIST@%$GUIDIST%g
20651s%@PORT_FILES@%$PORT_FILES%g
20652s%@DISTDIR@%$DISTDIR%g
20653s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
20654s%@LDFLAGS_GL@%$LDFLAGS_GL%g
20655s%@OPENGL_LIBS@%$OPENGL_LIBS%g
20656s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
20657s%@EXTRADEFS@%$EXTRADEFS%g
20658s%@RESFLAGS@%$RESFLAGS%g
20659s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
20660s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
20661s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
20662s%@LIBWXMACRES@%$LIBWXMACRES%g
20663s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
20664s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
20665s%@DLLTOOL@%$DLLTOOL%g
20666s%@AS@%$AS%g
20667s%@NM@%$NM%g
20668s%@LD@%$LD%g
20669s%@MAKEINFO@%$MAKEINFO%g
20670s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
20671s%@SET_MAKE@%$SET_MAKE%g
20672s%@subdirs@%$subdirs%g
20673
20674CEOF
20675EOF
20676
20677cat >> $CONFIG_STATUS <<\EOF
20678
20679# Split the substitutions into bite-sized pieces for seds with
20680# small command number limits, like on Digital OSF/1 and HP-UX.
20681ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
20682ac_file=1 # Number of current file.
20683ac_beg=1 # First line for current file.
20684ac_end=$ac_max_sed_cmds # Line after last line for current file.
20685ac_more_lines=:
20686ac_sed_cmds=""
20687while $ac_more_lines; do
20688 if test $ac_beg -gt 1; then
20689 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
20690 else
20691 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
20692 fi
20693 if test ! -s conftest.s$ac_file; then
20694 ac_more_lines=false
20695 rm -f conftest.s$ac_file
20696 else
20697 if test -z "$ac_sed_cmds"; then
20698 ac_sed_cmds="sed -f conftest.s$ac_file"
20699 else
20700 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
20701 fi
20702 ac_file=`expr $ac_file + 1`
20703 ac_beg=$ac_end
20704 ac_end=`expr $ac_end + $ac_max_sed_cmds`
20705 fi
20706done
20707if test -z "$ac_sed_cmds"; then
20708 ac_sed_cmds=cat
20709fi
20710EOF
20711
20712cat >> $CONFIG_STATUS <<EOF
20713
20714CONFIG_FILES=\${CONFIG_FILES-"wx-config
20715 src/make.env
20716 src/makeprog.env
20717 src/makelib.env
20718 Makefile
20719 "}
20720EOF
20721cat >> $CONFIG_STATUS <<\EOF
20722for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
20723 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20724 case "$ac_file" in
20725 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20726 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20727 *) ac_file_in="${ac_file}.in" ;;
20728 esac
20729
20730 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
20731
20732 # Remove last slash and all that follows it. Not all systems have dirname.
20733 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20734 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20735 # The file is in a subdirectory.
20736 test ! -d "$ac_dir" && mkdir "$ac_dir"
20737 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
20738 # A "../" for each directory in $ac_dir_suffix.
20739 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
20740 else
20741 ac_dir_suffix= ac_dots=
20742 fi
20743
20744 case "$ac_given_srcdir" in
20745 .) srcdir=.
20746 if test -z "$ac_dots"; then top_srcdir=.
20747 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
20748 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
20749 *) # Relative path.
20750 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
20751 top_srcdir="$ac_dots$ac_given_srcdir" ;;
20752 esac
20753
20754 case "$ac_given_INSTALL" in
20755 [/$]*) INSTALL="$ac_given_INSTALL" ;;
20756 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
20757 esac
20758
20759 echo creating "$ac_file"
20760 rm -f "$ac_file"
20761 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
20762 case "$ac_file" in
20763 *Makefile*) ac_comsub="1i\\
20764# $configure_input" ;;
20765 *) ac_comsub= ;;
20766 esac
20767
20768 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20769 sed -e "$ac_comsub
20770s%@configure_input@%$configure_input%g
20771s%@srcdir@%$srcdir%g
20772s%@top_srcdir@%$top_srcdir%g
20773s%@INSTALL@%$INSTALL%g
20774" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
20775fi; done
20776rm -f conftest.s*
20777
20778# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20779# NAME is the cpp macro being defined and VALUE is the value it is being given.
20780#
20781# ac_d sets the value in "#define NAME VALUE" lines.
20782ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20783ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
20784ac_dC='\3'
20785ac_dD='%g'
20786# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
20787ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20788ac_uB='\([ ]\)%\1#\2define\3'
20789ac_uC=' '
20790ac_uD='\4%g'
20791# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20792ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20793ac_eB='$%\1#\2define\3'
20794ac_eC=' '
20795ac_eD='%g'
20796
20797if test "${CONFIG_HEADERS+set}" != set; then
20798EOF
20799cat >> $CONFIG_STATUS <<EOF
20800 CONFIG_HEADERS="setup.h:setup.h.in"
20801EOF
20802cat >> $CONFIG_STATUS <<\EOF
20803fi
20804for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
20805 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20806 case "$ac_file" in
20807 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20808 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20809 *) ac_file_in="${ac_file}.in" ;;
20810 esac
20811
20812 echo creating $ac_file
20813
20814 rm -f conftest.frag conftest.in conftest.out
20815 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20816 cat $ac_file_inputs > conftest.in
20817
20818EOF
20819
20820# Transform confdefs.h into a sed script conftest.vals that substitutes
20821# the proper values into config.h.in to produce config.h. And first:
20822# Protect against being on the right side of a sed subst in config.status.
20823# Protect against being in an unquoted here document in config.status.
20824rm -f conftest.vals
20825cat > conftest.hdr <<\EOF
20826s/[\\&%]/\\&/g
20827s%[\\$`]%\\&%g
20828s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
20829s%ac_d%ac_u%gp
20830s%ac_u%ac_e%gp
20831EOF
20832sed -n -f conftest.hdr confdefs.h > conftest.vals
20833rm -f conftest.hdr
20834
20835# This sed command replaces #undef with comments. This is necessary, for
20836# example, in the case of _POSIX_SOURCE, which is predefined and required
20837# on some systems where configure will not decide to define it.
20838cat >> conftest.vals <<\EOF
20839s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
20840EOF
20841
20842# Break up conftest.vals because some shells have a limit on
20843# the size of here documents, and old seds have small limits too.
20844
20845rm -f conftest.tail
20846while :
20847do
20848 ac_lines=`grep -c . conftest.vals`
20849 # grep -c gives empty output for an empty file on some AIX systems.
20850 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
20851 # Write a limited-size here document to conftest.frag.
20852 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
20853 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
20854 echo 'CEOF
20855 sed -f conftest.frag conftest.in > conftest.out
20856 rm -f conftest.in
20857 mv conftest.out conftest.in
20858' >> $CONFIG_STATUS
20859 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
20860 rm -f conftest.vals
20861 mv conftest.tail conftest.vals
20862done
20863rm -f conftest.vals
20864
20865cat >> $CONFIG_STATUS <<\EOF
20866 rm -f conftest.frag conftest.h
20867 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
20868 cat conftest.in >> conftest.h
20869 rm -f conftest.in
20870 if cmp -s $ac_file conftest.h 2>/dev/null; then
20871 echo "$ac_file is unchanged"
20872 rm -f conftest.h
20873 else
20874 # Remove last slash and all that follows it. Not all systems have dirname.
20875 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20876 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20877 # The file is in a subdirectory.
20878 test ! -d "$ac_dir" && mkdir "$ac_dir"
20879 fi
20880 rm -f $ac_file
20881 mv conftest.h $ac_file
20882 fi
20883fi; done
20884
20885EOF
20886cat >> $CONFIG_STATUS <<EOF
20887
20888 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
20889 LN_S="${LN_S}"
20890
20891
20892EOF
20893cat >> $CONFIG_STATUS <<\EOF
20894
20895 if test ! -h wx-config; then
20896 chmod +x wx-config
20897 mv wx-config wx${TOOLCHAIN_NAME}-config
20898 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
20899 fi
20900
20901 if test ! -d lib; then
20902 mkdir lib
20903 fi
20904 if test ! -d lib/wx; then
20905 mkdir lib/wx
20906 fi
20907 if test ! -d lib/wx/include; then
20908 mkdir lib/wx/include
20909 fi
20910 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
20911 mkdir lib/wx/include/${TOOLCHAIN_NAME}
20912 fi
20913 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
20914 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
20915 fi
20916 if test -f setup.h; then
20917 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
20918 fi
20919
20920exit 0
20921EOF
20922chmod +x $CONFIG_STATUS
20923rm -fr confdefs* $ac_clean_files
20924test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
20925
20926if test "$no_recursion" != yes; then
20927
20928 # Remove --cache-file and --srcdir arguments so they do not pile up.
20929 ac_sub_configure_args=
20930 ac_prev=
20931 for ac_arg in $ac_configure_args; do
20932 if test -n "$ac_prev"; then
20933 ac_prev=
20934 continue
20935 fi
20936 case "$ac_arg" in
20937 -cache-file | --cache-file | --cache-fil | --cache-fi \
20938 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20939 ac_prev=cache_file ;;
20940 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20941 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
20942 ;;
20943 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20944 ac_prev=srcdir ;;
20945 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20946 ;;
20947 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
20948 esac
20949 done
20950
20951 for ac_config_dir in demos samples utils contrib; do
20952
20953 # Do not complain, so a configure script can configure whichever
20954 # parts of a large source tree are present.
20955 if test ! -d $srcdir/$ac_config_dir; then
20956 continue
20957 fi
20958
20959 echo configuring in $ac_config_dir
20960
20961 case "$srcdir" in
20962 .) ;;
20963 *)
20964 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
20965 else
20966 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
20967 fi
20968 ;;
20969 esac
20970
20971 ac_popdir=`pwd`
20972 cd $ac_config_dir
20973
20974 # A "../" for each directory in /$ac_config_dir.
20975 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
20976
20977 case "$srcdir" in
20978 .) # No --srcdir option. We are building in place.
20979 ac_sub_srcdir=$srcdir ;;
20980 /*) # Absolute path.
20981 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
20982 *) # Relative path.
20983 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
20984 esac
20985
20986 # Check for guested configure; otherwise get Cygnus style configure.
20987 if test -f $ac_sub_srcdir/configure; then
20988 ac_sub_configure=$ac_sub_srcdir/configure
20989 elif test -f $ac_sub_srcdir/configure.in; then
20990 ac_sub_configure=$ac_configure
20991 else
20992 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
20993 ac_sub_configure=
20994 fi
20995
20996 # The recursion is here.
20997 if test -n "$ac_sub_configure"; then
20998
20999 # Make the cache file name correct relative to the subdirectory.
21000 case "$cache_file" in
21001 /*) ac_sub_cache_file=$cache_file ;;
21002 *) # Relative path.
21003 ac_sub_cache_file="$ac_dots$cache_file" ;;
21004 esac
21005 case "$ac_given_INSTALL" in
21006 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21007 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21008 esac
21009
21010 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
21011 # The eval makes quoting arguments work.
21012 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21013 then :
21014 else
21015 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21016 fi
21017 fi
21018
21019 cd $ac_popdir
21020 done
21021fi
21022
21023