]> git.saurik.com Git - wxWidgets.git/blame_incremental - configure
changes to allow making samples/demos with non GNU make as well
[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 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
90ac_help="$ac_help
91 --with-libpng use libpng (PNG image format)"
92ac_help="$ac_help
93 --with-libjpeg use libjpeg (JPEG file format)"
94ac_help="$ac_help
95 --with-libtiff use libtiff (TIFF file format)"
96ac_help="$ac_help
97 --with-freetype use freetype (font rasterizer)"
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"
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
1112
1113DEFAULT_DEFAULT_wxUSE_GTK=0
1114DEFAULT_DEFAULT_wxUSE_MAC=0
1115DEFAULT_DEFAULT_wxUSE_MGL=0
1116DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1117DEFAULT_DEFAULT_wxUSE_MOTIF=0
1118DEFAULT_DEFAULT_wxUSE_MSW=0
1119DEFAULT_DEFAULT_wxUSE_PM=0
1120DEFAULT_DEFAULT_wxUSE_WINE=0
1121
1122PROGRAM_EXT=
1123SO_SUFFIX=so
1124
1125case "${host}" in
1126 *-hp-hpux* )
1127 USE_HPUX=1
1128 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1129 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1130 SO_SUFFIX=sl
1131 cat >> confdefs.h <<\EOF
1132#define __HPUX__ 1
1133EOF
1134
1135 ;;
1136 *-*-linux* )
1137 USE_LINUX=1
1138 cat >> confdefs.h <<\EOF
1139#define __LINUX__ 1
1140EOF
1141
1142 TMP=`uname -m`
1143 if test "x$TMP" = "xalpha"; then
1144 USE_ALPHA=1
1145 cat >> confdefs.h <<\EOF
1146#define __ALPHA__ 1
1147EOF
1148
1149 fi
1150 DEFAULT_DEFAULT_wxUSE_GTK=1
1151 ;;
1152 *-*-irix5* | *-*-irix6* )
1153 USE_SGI=1
1154 USE_SVR4=1
1155 cat >> confdefs.h <<\EOF
1156#define __SGI__ 1
1157EOF
1158
1159 cat >> confdefs.h <<\EOF
1160#define __SVR4__ 1
1161EOF
1162
1163 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1164 ;;
1165 *-*-solaris2* )
1166 USE_SUN=1
1167 USE_SOLARIS=1
1168 USE_SVR4=1
1169 cat >> confdefs.h <<\EOF
1170#define __SUN__ 1
1171EOF
1172
1173 cat >> confdefs.h <<\EOF
1174#define __SOLARIS__ 1
1175EOF
1176
1177 cat >> confdefs.h <<\EOF
1178#define __SVR4__ 1
1179EOF
1180
1181 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1182 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1183 ;;
1184 *-*-sunos4* )
1185 USE_SUN=1
1186 USE_SUNOS=1
1187 USE_BSD=1
1188 cat >> confdefs.h <<\EOF
1189#define __SUN__ 1
1190EOF
1191
1192 cat >> confdefs.h <<\EOF
1193#define __SUNOS__ 1
1194EOF
1195
1196 cat >> confdefs.h <<\EOF
1197#define __BSD__ 1
1198EOF
1199
1200 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1201 ;;
1202 *-*-freebsd*)
1203 USE_BSD=1
1204 USE_FREEBSD=1
1205 CPP_MT_FLAG=-D_THREAD_SAFE
1206 cat >> confdefs.h <<\EOF
1207#define __FREEBSD__ 1
1208EOF
1209
1210 cat >> confdefs.h <<\EOF
1211#define __BSD__ 1
1212EOF
1213
1214 DEFAULT_DEFAULT_wxUSE_GTK=1
1215 ;;
1216 *-*-openbsd*)
1217 USE_BSD=1
1218 USE_OPENBSD=1
1219 cat >> confdefs.h <<\EOF
1220#define __FREEBSD__ 1
1221EOF
1222
1223 cat >> confdefs.h <<\EOF
1224#define __OPENBSD__ 1
1225EOF
1226
1227 DEFAULT_DEFAULT_wxUSE_GTK=1
1228 ;;
1229 *-*-netbsd*)
1230 USE_BSD=1
1231 USE_NETBSD=1
1232 cat >> confdefs.h <<\EOF
1233#define __FREEBSD__ 1
1234EOF
1235
1236 cat >> confdefs.h <<\EOF
1237#define __NETBSD__ 1
1238EOF
1239
1240 DEFAULT_DEFAULT_wxUSE_GTK=1
1241 ;;
1242 *-*-osf* )
1243 USE_ALPHA=1
1244 USE_OSF=1
1245 cat >> confdefs.h <<\EOF
1246#define __ALPHA__ 1
1247EOF
1248
1249 cat >> confdefs.h <<\EOF
1250#define __OSF__ 1
1251EOF
1252
1253 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1254 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1255 ;;
1256 *-*-dgux5* )
1257 USE_ALPHA=1
1258 USE_SVR4=1
1259 cat >> confdefs.h <<\EOF
1260#define __ALPHA__ 1
1261EOF
1262
1263 cat >> confdefs.h <<\EOF
1264#define __SVR4__ 1
1265EOF
1266
1267 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1268 ;;
1269 *-*-sysv5* )
1270 USE_SYSV=1
1271 USE_SVR4=1
1272 cat >> confdefs.h <<\EOF
1273#define __SYSV__ 1
1274EOF
1275
1276 cat >> confdefs.h <<\EOF
1277#define __SVR4__ 1
1278EOF
1279
1280 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1281 ;;
1282 *-*-aix* )
1283 USE_AIX=1
1284 USE_SYSV=1
1285 USE_SVR4=1
1286 cat >> confdefs.h <<\EOF
1287#define __AIX__ 1
1288EOF
1289
1290 cat >> confdefs.h <<\EOF
1291#define __SYSV__ 1
1292EOF
1293
1294 cat >> confdefs.h <<\EOF
1295#define __SVR4__ 1
1296EOF
1297
1298 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1299 ;;
1300
1301 *-*-cygwin* | *-*-mingw32* )
1302 USE_UNIX=0
1303 USE_WIN32=1
1304 SO_SUFFIX=dll
1305 cat >> confdefs.h <<\EOF
1306#define __WIN32__ 1
1307EOF
1308
1309 cat >> confdefs.h <<\EOF
1310#define __WIN95__ 1
1311EOF
1312
1313 cat >> confdefs.h <<\EOF
1314#define __WINDOWS__ 1
1315EOF
1316
1317 cat >> confdefs.h <<\EOF
1318#define __GNUWIN32__ 1
1319EOF
1320
1321 cat >> confdefs.h <<\EOF
1322#define STRICT 1
1323EOF
1324
1325 cat >> confdefs.h <<\EOF
1326#define WINVER 0x0400
1327EOF
1328
1329 PROGRAM_EXT=".exe"
1330 RESCOMP=windres
1331 DEFAULT_DEFAULT_wxUSE_MSW=1
1332 ;;
1333
1334 *-pc-msdosdjgpp )
1335 USE_UNIX=0
1336 USE_DOS=1
1337 cat >> confdefs.h <<\EOF
1338#define __DOS__ 1
1339EOF
1340
1341 PROGRAM_EXT=".exe"
1342 DEFAULT_DEFAULT_wxUSE_MGL=1
1343 DEFAULT_DEFAULT_wxUSE_SHARED=0
1344 ;;
1345
1346 *-pc-os2_emx | *-pc-os2-emx )
1347 cat >> confdefs.h <<\EOF
1348#define __EMX__ 1
1349EOF
1350
1351 PROGRAM_EXT=".exe"
1352 DEFAULT_DEFAULT_wxUSE_PM=1
1353 ;;
1354
1355 powerpc-*-darwin* )
1356 USE_BSD=1
1357 USE_DARWIN=1
1358 CPP_MT_FLAG=
1359 SO_SUFFIX=dylib
1360 cat >> confdefs.h <<\EOF
1361#define __BSD__ 1
1362EOF
1363
1364 cat >> confdefs.h <<\EOF
1365#define __DARWIN__ 1
1366EOF
1367
1368 cat >> confdefs.h <<\EOF
1369#define __POWERPC__ 1
1370EOF
1371
1372 DEFAULT_DEFAULT_wxUSE_MAC=1
1373 ;;
1374
1375 *-*-beos* )
1376 USE_BEOS=1
1377 cat >> confdefs.h <<\EOF
1378#define __BEOS__ 1
1379EOF
1380
1381 ;;
1382
1383 *)
1384 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1385esac
1386
1387if test "$USE_UNIX" = 1 ; then
1388 wxUSE_UNIX=yes
1389 cat >> confdefs.h <<\EOF
1390#define __UNIX__ 1
1391EOF
1392
1393fi
1394
1395if test "$USE_LINUX" = 1; then
1396 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
1397echo "configure:1398: checking for glibc 2.1 or later" >&5
1398if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1400else
1401
1402 cat > conftest.$ac_ext <<EOF
1403#line 1404 "configure"
1404#include "confdefs.h"
1405#include <features.h>
1406int main() {
1407
1408 #if !__GLIBC_PREREQ(2, 1)
1409 #error not glibc2.1
1410 #endif
1411
1412; return 0; }
1413EOF
1414if { (eval echo configure:1415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1415 rm -rf conftest*
1416
1417 wx_lib_glibc21=yes
1418
1419else
1420 echo "configure: failed program was:" >&5
1421 cat conftest.$ac_ext >&5
1422 rm -rf conftest*
1423
1424 wx_lib_glibc21=no
1425
1426
1427fi
1428rm -f conftest*
1429
1430fi
1431
1432echo "$ac_t""$wx_lib_glibc21" 1>&6
1433 if test "$wx_lib_glibc21" = "yes"; then
1434 cat >> confdefs.h <<\EOF
1435#define wxHAVE_GLIBC2 1
1436EOF
1437
1438 fi
1439fi
1440
1441
1442
1443
1444 wx_arg_cache_file="configarg.cache"
1445 echo "loading argument cache $wx_arg_cache_file"
1446 rm -f ${wx_arg_cache_file}.tmp
1447 touch ${wx_arg_cache_file}.tmp
1448 touch ${wx_arg_cache_file}
1449
1450
1451DEBUG_CONFIGURE=0
1452if test $DEBUG_CONFIGURE = 1; then
1453 DEFAULT_wxUSE_UNIVERSAL=no
1454
1455 DEFAULT_wxUSE_THREADS=yes
1456
1457 DEFAULT_wxUSE_SHARED=yes
1458 DEFAULT_wxUSE_SONAME=no
1459 DEFAULT_wxUSE_OPTIMISE=no
1460 DEFAULT_wxUSE_PROFILE=no
1461 DEFAULT_wxUSE_NO_DEPS=no
1462 DEFAULT_wxUSE_NO_RTTI=yes
1463 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1464 DEFAULT_wxUSE_PERMISSIVE=no
1465 DEFAULT_wxUSE_DEBUG_FLAG=yes
1466 DEFAULT_wxUSE_DEBUG_INFO=yes
1467 DEFAULT_wxUSE_DEBUG_GDB=yes
1468 DEFAULT_wxUSE_MEM_TRACING=no
1469 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1470 DEFAULT_wxUSE_DMALLOC=no
1471 DEFAULT_wxUSE_PRECOMP=no
1472 DEFAULT_wxUSE_APPLE_IEEE=no
1473
1474 DEFAULT_wxUSE_LOG=yes
1475 DEFAULT_wxUSE_LOGWINDOW=no
1476 DEFAULT_wxUSE_LOGGUI=no
1477 DEFAULT_wxUSE_LOGDIALOG=no
1478
1479 DEFAULT_wxUSE_GUI=yes
1480 DEFAULT_wxUSE_CONTROLS=no
1481
1482 DEFAULT_wxUSE_REGEX=no
1483 DEFAULT_wxUSE_ZLIB=no
1484 DEFAULT_wxUSE_LIBPNG=no
1485 DEFAULT_wxUSE_LIBJPEG=no
1486 DEFAULT_wxUSE_LIBTIFF=no
1487 DEFAULT_wxUSE_ODBC=no
1488 DEFAULT_wxUSE_FREETYPE=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_FREETYPE=no
1661 DEFAULT_wxUSE_OPENGL=no
1662
1663 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1664 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1665 DEFAULT_wxUSE_STD_IOSTREAM=no
1666 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1667 DEFAULT_wxUSE_DATETIME=yes
1668 DEFAULT_wxUSE_TIMEDATE=no
1669 DEFAULT_wxUSE_TIMER=yes
1670 DEFAULT_wxUSE_STOPWATCH=yes
1671 DEFAULT_wxUSE_FILE=yes
1672 DEFAULT_wxUSE_FFILE=yes
1673 DEFAULT_wxUSE_TEXTBUFFER=yes
1674 DEFAULT_wxUSE_TEXTFILE=yes
1675 DEFAULT_wxUSE_WAVE=no
1676 DEFAULT_wxUSE_INTL=yes
1677 DEFAULT_wxUSE_CONFIG=yes
1678 DEFAULT_wxUSE_FONTMAP=yes
1679 DEFAULT_wxUSE_STREAMS=yes
1680 DEFAULT_wxUSE_SOCKETS=yes
1681 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1682 DEFAULT_wxUSE_JOYSTICK=yes
1683 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1684 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1685 DEFAULT_wxUSE_LONGLONG=yes
1686 DEFAULT_wxUSE_GEOMETRY=yes
1687
1688 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1689 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1690 DEFAULT_wxUSE_POSTSCRIPT=yes
1691
1692 DEFAULT_wxUSE_X_RESOURCES=no
1693 DEFAULT_wxUSE_CLIPBOARD=yes
1694 DEFAULT_wxUSE_TOOLTIPS=yes
1695 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1696 DEFAULT_wxUSE_DRAGIMAGE=yes
1697 DEFAULT_wxUSE_SPLINES=yes
1698
1699 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1700 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1701 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1702
1703 DEFAULT_wxUSE_PROLOGIO=yes
1704 DEFAULT_wxUSE_RESOURCES=yes
1705 DEFAULT_wxUSE_CONSTRAINTS=yes
1706 DEFAULT_wxUSE_IPC=yes
1707 DEFAULT_wxUSE_HELP=yes
1708 DEFAULT_wxUSE_MS_HTML_HELP=yes
1709 DEFAULT_wxUSE_WXHTML_HELP=yes
1710 DEFAULT_wxUSE_TREELAYOUT=yes
1711 DEFAULT_wxUSE_METAFILE=yes
1712 DEFAULT_wxUSE_MIMETYPE=yes
1713 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1714 DEFAULT_wxUSE_PROTOCOL=yes
1715 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1716 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1717 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1718 DEFAULT_wxUSE_URL=yes
1719
1720 DEFAULT_wxUSE_COMMONDLGS=yes
1721 DEFAULT_wxUSE_CHOICEDLG=yes
1722 DEFAULT_wxUSE_COLOURDLG=yes
1723 DEFAULT_wxUSE_DIRDLG=yes
1724 DEFAULT_wxUSE_FILEDLG=yes
1725 DEFAULT_wxUSE_FINDREPLDLG=yes
1726 DEFAULT_wxUSE_FONTDLG=yes
1727 DEFAULT_wxUSE_MSGDLG=yes
1728 DEFAULT_wxUSE_NUMBERDLG=yes
1729 DEFAULT_wxUSE_TEXTDLG=yes
1730 DEFAULT_wxUSE_SPLASH=yes
1731 DEFAULT_wxUSE_STARTUP_TIPS=yes
1732 DEFAULT_wxUSE_PROGRESSDLG=yes
1733 DEFAULT_wxUSE_WIZARDDLG=yes
1734
1735 DEFAULT_wxUSE_MENUS=yes
1736 DEFAULT_wxUSE_MINIFRAME=yes
1737 DEFAULT_wxUSE_HTML=yes
1738 DEFAULT_wxUSE_FILESYSTEM=yes
1739 DEFAULT_wxUSE_FS_INET=yes
1740 DEFAULT_wxUSE_FS_ZIP=yes
1741 DEFAULT_wxUSE_BUSYINFO=yes
1742 DEFAULT_wxUSE_ZIPSTREAM=yes
1743 DEFAULT_wxUSE_VALIDATORS=yes
1744
1745 DEFAULT_wxUSE_ACCEL=yes
1746 DEFAULT_wxUSE_BUTTON=yes
1747 DEFAULT_wxUSE_BMPBUTTON=yes
1748 DEFAULT_wxUSE_CALCTRL=yes
1749 DEFAULT_wxUSE_CARET=yes
1750 DEFAULT_wxUSE_CHECKBOX=yes
1751 DEFAULT_wxUSE_CHECKLST=yes
1752 DEFAULT_wxUSE_CHOICE=yes
1753 DEFAULT_wxUSE_COMBOBOX=yes
1754 DEFAULT_wxUSE_GAUGE=yes
1755 DEFAULT_wxUSE_GRID=yes
1756 DEFAULT_wxUSE_NEW_GRID=yes
1757 DEFAULT_wxUSE_IMAGLIST=yes
1758 DEFAULT_wxUSE_LISTBOX=yes
1759 DEFAULT_wxUSE_LISTCTRL=yes
1760 DEFAULT_wxUSE_NOTEBOOK=yes
1761 DEFAULT_wxUSE_PROPSHEET=yes
1762 DEFAULT_wxUSE_RADIOBOX=yes
1763 DEFAULT_wxUSE_RADIOBTN=yes
1764 DEFAULT_wxUSE_SASH=yes
1765 DEFAULT_wxUSE_SCROLLBAR=yes
1766 DEFAULT_wxUSE_SLIDER=yes
1767 DEFAULT_wxUSE_SPINBTN=yes
1768 DEFAULT_wxUSE_SPINCTRL=yes
1769 DEFAULT_wxUSE_SPLITTER=yes
1770 DEFAULT_wxUSE_STATBMP=yes
1771 DEFAULT_wxUSE_STATBOX=yes
1772 DEFAULT_wxUSE_STATLINE=yes
1773 DEFAULT_wxUSE_STATTEXT=yes
1774 DEFAULT_wxUSE_STATUSBAR=yes
1775 DEFAULT_wxUSE_TABDIALOG=no
1776 DEFAULT_wxUSE_TEXTCTRL=yes
1777 DEFAULT_wxUSE_TOGGLEBTN=yes
1778 DEFAULT_wxUSE_TOOLBAR=yes
1779 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1780 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1781 DEFAULT_wxUSE_TREECTRL=yes
1782 DEFAULT_wxUSE_POPUPWIN=yes
1783 DEFAULT_wxUSE_TIPWINDOW=yes
1784
1785 DEFAULT_wxUSE_UNICODE=no
1786 DEFAULT_wxUSE_UNICODE_MSLU=yes
1787 DEFAULT_wxUSE_WCSRTOMBS=no
1788
1789 DEFAULT_wxUSE_PALETTE=yes
1790 DEFAULT_wxUSE_IMAGE=yes
1791 DEFAULT_wxUSE_GIF=yes
1792 DEFAULT_wxUSE_PCX=yes
1793 DEFAULT_wxUSE_IFF=no
1794 DEFAULT_wxUSE_PNM=yes
1795 DEFAULT_wxUSE_XPM=yes
1796 DEFAULT_wxUSE_ICO_CUR=yes
1797fi
1798
1799
1800
1801for toolkit in `echo $ALL_TOOLKITS`; do
1802 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1803 if test "x$LINE" != x ; then
1804 has_toolkit_in_cache=1
1805 eval "DEFAULT_$LINE"
1806 eval "CACHE_$toolkit=1"
1807 fi
1808done
1809
1810
1811
1812 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1813echo "configure:1814: checking for --enable-gui" >&5
1814 no_cache=0
1815 # Check whether --enable-gui or --disable-gui was given.
1816if test "${enable_gui+set}" = set; then
1817 enableval="$enable_gui"
1818
1819 if test "$enableval" = yes; then
1820 ac_cv_use_gui='wxUSE_GUI=yes'
1821 else
1822 ac_cv_use_gui='wxUSE_GUI=no'
1823 fi
1824
1825else
1826
1827 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1828 if test "x$LINE" != x ; then
1829 eval "DEFAULT_$LINE"
1830 else
1831 no_cache=1
1832 fi
1833
1834 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1835
1836fi
1837
1838
1839 eval "$ac_cv_use_gui"
1840 if test "$no_cache" != 1; then
1841 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1842 fi
1843
1844 if test "$wxUSE_GUI" = yes; then
1845 echo "$ac_t""yes" 1>&6
1846 else
1847 echo "$ac_t""no" 1>&6
1848 fi
1849
1850
1851if test "$wxUSE_GUI" = "yes"; then
1852
1853
1854 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1855echo "configure:1856: checking for --enable-universal" >&5
1856 no_cache=0
1857 # Check whether --enable-universal or --disable-universal was given.
1858if test "${enable_universal+set}" = set; then
1859 enableval="$enable_universal"
1860
1861 if test "$enableval" = yes; then
1862 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1863 else
1864 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1865 fi
1866
1867else
1868
1869 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1870 if test "x$LINE" != x ; then
1871 eval "DEFAULT_$LINE"
1872 else
1873 no_cache=1
1874 fi
1875
1876 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1877
1878fi
1879
1880
1881 eval "$ac_cv_use_universal"
1882 if test "$no_cache" != 1; then
1883 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1884 fi
1885
1886 if test "$wxUSE_UNIVERSAL" = yes; then
1887 echo "$ac_t""yes" 1>&6
1888 else
1889 echo "$ac_t""no" 1>&6
1890 fi
1891
1892# Check whether --with-gtk or --without-gtk was given.
1893if test "${with_gtk+set}" = set; then
1894 withval="$with_gtk"
1895 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1896fi
1897
1898# Check whether --with-motif or --without-motif was given.
1899if test "${with_motif+set}" = set; then
1900 withval="$with_motif"
1901 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1902fi
1903
1904# Check whether --with-mac or --without-mac was given.
1905if test "${with_mac+set}" = set; then
1906 withval="$with_mac"
1907 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1908fi
1909
1910# Check whether --with-wine or --without-wine was given.
1911if test "${with_wine+set}" = set; then
1912 withval="$with_wine"
1913 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1914fi
1915
1916# Check whether --with-msw or --without-msw was given.
1917if test "${with_msw+set}" = set; then
1918 withval="$with_msw"
1919 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
1920fi
1921
1922# Check whether --with-pm or --without-pm was given.
1923if test "${with_pm+set}" = set; then
1924 withval="$with_pm"
1925 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1926fi
1927
1928# Check whether --with-mgl or --without-mgl was given.
1929if test "${with_mgl+set}" = set; then
1930 withval="$with_mgl"
1931 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1932fi
1933
1934# Check whether --with-microwin or --without-microwin was given.
1935if test "${with_microwin+set}" = set; then
1936 withval="$with_microwin"
1937 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1938fi
1939
1940
1941# Check whether --enable-gtk2 or --disable-gtk2 was given.
1942if test "${enable_gtk2+set}" = set; then
1943 enableval="$enable_gtk2"
1944 wxUSE_GTK2=1
1945else
1946 wxUSE_GTK2=0
1947fi
1948
1949
1950
1951 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1952echo "configure:1953: checking for --with-libpng" >&5
1953 no_cache=0
1954 # Check whether --with-libpng or --without-libpng was given.
1955if test "${with_libpng+set}" = set; then
1956 withval="$with_libpng"
1957
1958 if test "$withval" = yes; then
1959 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1960 elif test "$withval" = no; then
1961 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1962 elif test "$withval" = sys; then
1963 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1964 elif test "$withval" = builtin; then
1965 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1966 else
1967 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1968 fi
1969
1970else
1971
1972 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1973 if test "x$LINE" != x ; then
1974 eval "DEFAULT_$LINE"
1975 else
1976 no_cache=1
1977 fi
1978
1979 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1980
1981fi
1982
1983
1984 eval "$ac_cv_use_libpng"
1985 if test "$no_cache" != 1; then
1986 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1987 fi
1988
1989 if test "$wxUSE_LIBPNG" = yes; then
1990 echo "$ac_t""yes" 1>&6
1991 elif test "$wxUSE_LIBPNG" = no; then
1992 echo "$ac_t""no" 1>&6
1993 elif test "$wxUSE_LIBPNG" = sys; then
1994 echo "$ac_t""system version" 1>&6
1995 elif test "$wxUSE_LIBPNG" = builtin; then
1996 echo "$ac_t""builtin version" 1>&6
1997 else
1998 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1999 fi
2000
2001
2002 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2003echo "configure:2004: checking for --with-libjpeg" >&5
2004 no_cache=0
2005 # Check whether --with-libjpeg or --without-libjpeg was given.
2006if test "${with_libjpeg+set}" = set; then
2007 withval="$with_libjpeg"
2008
2009 if test "$withval" = yes; then
2010 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2011 elif test "$withval" = no; then
2012 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2013 elif test "$withval" = sys; then
2014 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2015 elif test "$withval" = builtin; then
2016 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2017 else
2018 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2019 fi
2020
2021else
2022
2023 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2024 if test "x$LINE" != x ; then
2025 eval "DEFAULT_$LINE"
2026 else
2027 no_cache=1
2028 fi
2029
2030 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2031
2032fi
2033
2034
2035 eval "$ac_cv_use_libjpeg"
2036 if test "$no_cache" != 1; then
2037 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2038 fi
2039
2040 if test "$wxUSE_LIBJPEG" = yes; then
2041 echo "$ac_t""yes" 1>&6
2042 elif test "$wxUSE_LIBJPEG" = no; then
2043 echo "$ac_t""no" 1>&6
2044 elif test "$wxUSE_LIBJPEG" = sys; then
2045 echo "$ac_t""system version" 1>&6
2046 elif test "$wxUSE_LIBJPEG" = builtin; then
2047 echo "$ac_t""builtin version" 1>&6
2048 else
2049 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2050 fi
2051
2052
2053 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2054echo "configure:2055: checking for --with-libtiff" >&5
2055 no_cache=0
2056 # Check whether --with-libtiff or --without-libtiff was given.
2057if test "${with_libtiff+set}" = set; then
2058 withval="$with_libtiff"
2059
2060 if test "$withval" = yes; then
2061 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2062 elif test "$withval" = no; then
2063 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2064 elif test "$withval" = sys; then
2065 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2066 elif test "$withval" = builtin; then
2067 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2068 else
2069 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2070 fi
2071
2072else
2073
2074 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2075 if test "x$LINE" != x ; then
2076 eval "DEFAULT_$LINE"
2077 else
2078 no_cache=1
2079 fi
2080
2081 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2082
2083fi
2084
2085
2086 eval "$ac_cv_use_libtiff"
2087 if test "$no_cache" != 1; then
2088 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2089 fi
2090
2091 if test "$wxUSE_LIBTIFF" = yes; then
2092 echo "$ac_t""yes" 1>&6
2093 elif test "$wxUSE_LIBTIFF" = no; then
2094 echo "$ac_t""no" 1>&6
2095 elif test "$wxUSE_LIBTIFF" = sys; then
2096 echo "$ac_t""system version" 1>&6
2097 elif test "$wxUSE_LIBTIFF" = builtin; then
2098 echo "$ac_t""builtin version" 1>&6
2099 else
2100 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2101 fi
2102
2103
2104 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
2105echo "configure:2106: checking for --with-freetype" >&5
2106 no_cache=0
2107 # Check whether --with-freetype or --without-freetype was given.
2108if test "${with_freetype+set}" = set; then
2109 withval="$with_freetype"
2110
2111 if test "$withval" = yes; then
2112 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2113 elif test "$withval" = no; then
2114 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2115 elif test "$withval" = sys; then
2116 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
2117 elif test "$withval" = builtin; then
2118 ac_cv_use_freetype='wxUSE_FREETYPE=builtin'
2119 else
2120 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2121 fi
2122
2123else
2124
2125 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2126 if test "x$LINE" != x ; then
2127 eval "DEFAULT_$LINE"
2128 else
2129 no_cache=1
2130 fi
2131
2132 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
2133
2134fi
2135
2136
2137 eval "$ac_cv_use_freetype"
2138 if test "$no_cache" != 1; then
2139 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2140 fi
2141
2142 if test "$wxUSE_FREETYPE" = yes; then
2143 echo "$ac_t""yes" 1>&6
2144 elif test "$wxUSE_FREETYPE" = no; then
2145 echo "$ac_t""no" 1>&6
2146 elif test "$wxUSE_FREETYPE" = sys; then
2147 echo "$ac_t""system version" 1>&6
2148 elif test "$wxUSE_FREETYPE" = builtin; then
2149 echo "$ac_t""builtin version" 1>&6
2150 else
2151 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2152 fi
2153
2154
2155 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2156echo "configure:2157: checking for --with-opengl" >&5
2157 no_cache=0
2158 # Check whether --with-opengl or --without-opengl was given.
2159if test "${with_opengl+set}" = set; then
2160 withval="$with_opengl"
2161
2162 if test "$withval" = yes; then
2163 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2164 else
2165 ac_cv_use_opengl='wxUSE_OPENGL=no'
2166 fi
2167
2168else
2169
2170 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2171 if test "x$LINE" != x ; then
2172 eval "DEFAULT_$LINE"
2173 else
2174 no_cache=1
2175 fi
2176
2177 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2178
2179fi
2180
2181
2182 eval "$ac_cv_use_opengl"
2183 if test "$no_cache" != 1; then
2184 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2185 fi
2186
2187 if test "$wxUSE_OPENGL" = yes; then
2188 echo "$ac_t""yes" 1>&6
2189 else
2190 echo "$ac_t""no" 1>&6
2191 fi
2192
2193
2194fi
2195
2196
2197 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2198echo "configure:2199: checking for --with-dmalloc" >&5
2199 no_cache=0
2200 # Check whether --with-dmalloc or --without-dmalloc was given.
2201if test "${with_dmalloc+set}" = set; then
2202 withval="$with_dmalloc"
2203
2204 if test "$withval" = yes; then
2205 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2206 else
2207 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2208 fi
2209
2210else
2211
2212 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2213 if test "x$LINE" != x ; then
2214 eval "DEFAULT_$LINE"
2215 else
2216 no_cache=1
2217 fi
2218
2219 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2220
2221fi
2222
2223
2224 eval "$ac_cv_use_dmalloc"
2225 if test "$no_cache" != 1; then
2226 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2227 fi
2228
2229 if test "$wxUSE_DMALLOC" = yes; then
2230 echo "$ac_t""yes" 1>&6
2231 else
2232 echo "$ac_t""no" 1>&6
2233 fi
2234
2235
2236 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2237echo "configure:2238: checking for --with-regex" >&5
2238 no_cache=0
2239 # Check whether --with-regex or --without-regex was given.
2240if test "${with_regex+set}" = set; then
2241 withval="$with_regex"
2242
2243 if test "$withval" = yes; then
2244 ac_cv_use_regex='wxUSE_REGEX=yes'
2245 elif test "$withval" = no; then
2246 ac_cv_use_regex='wxUSE_REGEX=no'
2247 elif test "$withval" = sys; then
2248 ac_cv_use_regex='wxUSE_REGEX=sys'
2249 elif test "$withval" = builtin; then
2250 ac_cv_use_regex='wxUSE_REGEX=builtin'
2251 else
2252 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2253 fi
2254
2255else
2256
2257 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2258 if test "x$LINE" != x ; then
2259 eval "DEFAULT_$LINE"
2260 else
2261 no_cache=1
2262 fi
2263
2264 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2265
2266fi
2267
2268
2269 eval "$ac_cv_use_regex"
2270 if test "$no_cache" != 1; then
2271 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2272 fi
2273
2274 if test "$wxUSE_REGEX" = yes; then
2275 echo "$ac_t""yes" 1>&6
2276 elif test "$wxUSE_REGEX" = no; then
2277 echo "$ac_t""no" 1>&6
2278 elif test "$wxUSE_REGEX" = sys; then
2279 echo "$ac_t""system version" 1>&6
2280 elif test "$wxUSE_REGEX" = builtin; then
2281 echo "$ac_t""builtin version" 1>&6
2282 else
2283 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2284 fi
2285
2286
2287 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2288echo "configure:2289: checking for --with-zlib" >&5
2289 no_cache=0
2290 # Check whether --with-zlib or --without-zlib was given.
2291if test "${with_zlib+set}" = set; then
2292 withval="$with_zlib"
2293
2294 if test "$withval" = yes; then
2295 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2296 elif test "$withval" = no; then
2297 ac_cv_use_zlib='wxUSE_ZLIB=no'
2298 elif test "$withval" = sys; then
2299 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2300 elif test "$withval" = builtin; then
2301 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2302 else
2303 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2304 fi
2305
2306else
2307
2308 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2309 if test "x$LINE" != x ; then
2310 eval "DEFAULT_$LINE"
2311 else
2312 no_cache=1
2313 fi
2314
2315 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2316
2317fi
2318
2319
2320 eval "$ac_cv_use_zlib"
2321 if test "$no_cache" != 1; then
2322 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2323 fi
2324
2325 if test "$wxUSE_ZLIB" = yes; then
2326 echo "$ac_t""yes" 1>&6
2327 elif test "$wxUSE_ZLIB" = no; then
2328 echo "$ac_t""no" 1>&6
2329 elif test "$wxUSE_ZLIB" = sys; then
2330 echo "$ac_t""system version" 1>&6
2331 elif test "$wxUSE_ZLIB" = builtin; then
2332 echo "$ac_t""builtin version" 1>&6
2333 else
2334 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2335 fi
2336
2337
2338 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2339echo "configure:2340: checking for --with-odbc" >&5
2340 no_cache=0
2341 # Check whether --with-odbc or --without-odbc was given.
2342if test "${with_odbc+set}" = set; then
2343 withval="$with_odbc"
2344
2345 if test "$withval" = yes; then
2346 ac_cv_use_odbc='wxUSE_ODBC=yes'
2347 else
2348 ac_cv_use_odbc='wxUSE_ODBC=no'
2349 fi
2350
2351else
2352
2353 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2354 if test "x$LINE" != x ; then
2355 eval "DEFAULT_$LINE"
2356 else
2357 no_cache=1
2358 fi
2359
2360 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2361
2362fi
2363
2364
2365 eval "$ac_cv_use_odbc"
2366 if test "$no_cache" != 1; then
2367 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2368 fi
2369
2370 if test "$wxUSE_ODBC" = yes; then
2371 echo "$ac_t""yes" 1>&6
2372 else
2373 echo "$ac_t""no" 1>&6
2374 fi
2375
2376
2377
2378
2379 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2380echo "configure:2381: checking for --enable-shared" >&5
2381 no_cache=0
2382 # Check whether --enable-shared or --disable-shared was given.
2383if test "${enable_shared+set}" = set; then
2384 enableval="$enable_shared"
2385
2386 if test "$enableval" = yes; then
2387 ac_cv_use_shared='wxUSE_SHARED=yes'
2388 else
2389 ac_cv_use_shared='wxUSE_SHARED=no'
2390 fi
2391
2392else
2393
2394 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2395 if test "x$LINE" != x ; then
2396 eval "DEFAULT_$LINE"
2397 else
2398 no_cache=1
2399 fi
2400
2401 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2402
2403fi
2404
2405
2406 eval "$ac_cv_use_shared"
2407 if test "$no_cache" != 1; then
2408 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2409 fi
2410
2411 if test "$wxUSE_SHARED" = yes; then
2412 echo "$ac_t""yes" 1>&6
2413 else
2414 echo "$ac_t""no" 1>&6
2415 fi
2416
2417
2418 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2419echo "configure:2420: checking for --enable-soname" >&5
2420 no_cache=0
2421 # Check whether --enable-soname or --disable-soname was given.
2422if test "${enable_soname+set}" = set; then
2423 enableval="$enable_soname"
2424
2425 if test "$enableval" = yes; then
2426 ac_cv_use_soname='wxUSE_SONAME=yes'
2427 else
2428 ac_cv_use_soname='wxUSE_SONAME=no'
2429 fi
2430
2431else
2432
2433 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2434 if test "x$LINE" != x ; then
2435 eval "DEFAULT_$LINE"
2436 else
2437 no_cache=1
2438 fi
2439
2440 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2441
2442fi
2443
2444
2445 eval "$ac_cv_use_soname"
2446 if test "$no_cache" != 1; then
2447 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2448 fi
2449
2450 if test "$wxUSE_SONAME" = yes; then
2451 echo "$ac_t""yes" 1>&6
2452 else
2453 echo "$ac_t""no" 1>&6
2454 fi
2455
2456
2457 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2458echo "configure:2459: checking for --enable-optimise" >&5
2459 no_cache=0
2460 # Check whether --enable-optimise or --disable-optimise was given.
2461if test "${enable_optimise+set}" = set; then
2462 enableval="$enable_optimise"
2463
2464 if test "$enableval" = yes; then
2465 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2466 else
2467 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2468 fi
2469
2470else
2471
2472 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2473 if test "x$LINE" != x ; then
2474 eval "DEFAULT_$LINE"
2475 else
2476 no_cache=1
2477 fi
2478
2479 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2480
2481fi
2482
2483
2484 eval "$ac_cv_use_optimise"
2485 if test "$no_cache" != 1; then
2486 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2487 fi
2488
2489 if test "$wxUSE_OPTIMISE" = yes; then
2490 echo "$ac_t""yes" 1>&6
2491 else
2492 echo "$ac_t""no" 1>&6
2493 fi
2494
2495
2496 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2497echo "configure:2498: checking for --enable-debug" >&5
2498 no_cache=0
2499 # Check whether --enable-debug or --disable-debug was given.
2500if test "${enable_debug+set}" = set; then
2501 enableval="$enable_debug"
2502
2503 if test "$enableval" = yes; then
2504 ac_cv_use_debug='wxUSE_DEBUG=yes'
2505 else
2506 ac_cv_use_debug='wxUSE_DEBUG=no'
2507 fi
2508
2509else
2510
2511 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2512 if test "x$LINE" != x ; then
2513 eval "DEFAULT_$LINE"
2514 else
2515 no_cache=1
2516 fi
2517
2518 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2519
2520fi
2521
2522
2523 eval "$ac_cv_use_debug"
2524 if test "$no_cache" != 1; then
2525 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2526 fi
2527
2528 if test "$wxUSE_DEBUG" = yes; then
2529 echo "$ac_t""yes" 1>&6
2530 else
2531 echo "$ac_t""no" 1>&6
2532 fi
2533
2534
2535
2536 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2537echo "configure:2538: checking for --enable-precomp" >&5
2538 no_cache=0
2539 # Check whether --enable-precomp or --disable-precomp was given.
2540if test "${enable_precomp+set}" = set; then
2541 enableval="$enable_precomp"
2542
2543 if test "$enableval" = yes; then
2544 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2545 else
2546 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2547 fi
2548
2549else
2550
2551 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2552 if test "x$LINE" != x ; then
2553 eval "DEFAULT_$LINE"
2554 else
2555 no_cache=1
2556 fi
2557
2558 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2559
2560fi
2561
2562
2563 eval "$ac_cv_use_precomp"
2564 if test "$no_cache" != 1; then
2565 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2566 fi
2567
2568 if test "$wxUSE_PRECOMP" = yes; then
2569 echo "$ac_t""yes" 1>&6
2570 else
2571 echo "$ac_t""no" 1>&6
2572 fi
2573
2574
2575if test "$wxUSE_DEBUG" = "yes"; then
2576 DEFAULT_wxUSE_DEBUG_FLAG=yes
2577 DEFAULT_wxUSE_DEBUG_INFO=yes
2578elif test "$wxUSE_DEBUG" = "no"; then
2579 DEFAULT_wxUSE_DEBUG_FLAG=no
2580 DEFAULT_wxUSE_DEBUG_INFO=no
2581fi
2582
2583
2584 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2585echo "configure:2586: checking for --enable-debug_flag" >&5
2586 no_cache=0
2587 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2588if test "${enable_debug_flag+set}" = set; then
2589 enableval="$enable_debug_flag"
2590
2591 if test "$enableval" = yes; then
2592 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2593 else
2594 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2595 fi
2596
2597else
2598
2599 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2600 if test "x$LINE" != x ; then
2601 eval "DEFAULT_$LINE"
2602 else
2603 no_cache=1
2604 fi
2605
2606 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2607
2608fi
2609
2610
2611 eval "$ac_cv_use_debug_flag"
2612 if test "$no_cache" != 1; then
2613 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2614 fi
2615
2616 if test "$wxUSE_DEBUG_FLAG" = yes; then
2617 echo "$ac_t""yes" 1>&6
2618 else
2619 echo "$ac_t""no" 1>&6
2620 fi
2621
2622
2623 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2624echo "configure:2625: checking for --enable-debug_info" >&5
2625 no_cache=0
2626 # Check whether --enable-debug_info or --disable-debug_info was given.
2627if test "${enable_debug_info+set}" = set; then
2628 enableval="$enable_debug_info"
2629
2630 if test "$enableval" = yes; then
2631 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2632 else
2633 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2634 fi
2635
2636else
2637
2638 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2639 if test "x$LINE" != x ; then
2640 eval "DEFAULT_$LINE"
2641 else
2642 no_cache=1
2643 fi
2644
2645 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2646
2647fi
2648
2649
2650 eval "$ac_cv_use_debug_info"
2651 if test "$no_cache" != 1; then
2652 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2653 fi
2654
2655 if test "$wxUSE_DEBUG_INFO" = yes; then
2656 echo "$ac_t""yes" 1>&6
2657 else
2658 echo "$ac_t""no" 1>&6
2659 fi
2660
2661
2662 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2663echo "configure:2664: checking for --enable-debug_gdb" >&5
2664 no_cache=0
2665 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2666if test "${enable_debug_gdb+set}" = set; then
2667 enableval="$enable_debug_gdb"
2668
2669 if test "$enableval" = yes; then
2670 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2671 else
2672 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2673 fi
2674
2675else
2676
2677 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2678 if test "x$LINE" != x ; then
2679 eval "DEFAULT_$LINE"
2680 else
2681 no_cache=1
2682 fi
2683
2684 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2685
2686fi
2687
2688
2689 eval "$ac_cv_use_debug_gdb"
2690 if test "$no_cache" != 1; then
2691 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2692 fi
2693
2694 if test "$wxUSE_DEBUG_GDB" = yes; then
2695 echo "$ac_t""yes" 1>&6
2696 else
2697 echo "$ac_t""no" 1>&6
2698 fi
2699
2700
2701 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2702echo "configure:2703: checking for --enable-debug_cntxt" >&5
2703 no_cache=0
2704 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2705if test "${enable_debug_cntxt+set}" = set; then
2706 enableval="$enable_debug_cntxt"
2707
2708 if test "$enableval" = yes; then
2709 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2710 else
2711 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2712 fi
2713
2714else
2715
2716 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2717 if test "x$LINE" != x ; then
2718 eval "DEFAULT_$LINE"
2719 else
2720 no_cache=1
2721 fi
2722
2723 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2724
2725fi
2726
2727
2728 eval "$ac_cv_use_debug_cntxt"
2729 if test "$no_cache" != 1; then
2730 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2731 fi
2732
2733 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2734 echo "$ac_t""yes" 1>&6
2735 else
2736 echo "$ac_t""no" 1>&6
2737 fi
2738
2739
2740 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2741echo "configure:2742: checking for --enable-mem_tracing" >&5
2742 no_cache=0
2743 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2744if test "${enable_mem_tracing+set}" = set; then
2745 enableval="$enable_mem_tracing"
2746
2747 if test "$enableval" = yes; then
2748 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2749 else
2750 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2751 fi
2752
2753else
2754
2755 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2756 if test "x$LINE" != x ; then
2757 eval "DEFAULT_$LINE"
2758 else
2759 no_cache=1
2760 fi
2761
2762 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2763
2764fi
2765
2766
2767 eval "$ac_cv_use_mem_tracing"
2768 if test "$no_cache" != 1; then
2769 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2770 fi
2771
2772 if test "$wxUSE_MEM_TRACING" = yes; then
2773 echo "$ac_t""yes" 1>&6
2774 else
2775 echo "$ac_t""no" 1>&6
2776 fi
2777
2778
2779 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2780echo "configure:2781: checking for --enable-profile" >&5
2781 no_cache=0
2782 # Check whether --enable-profile or --disable-profile was given.
2783if test "${enable_profile+set}" = set; then
2784 enableval="$enable_profile"
2785
2786 if test "$enableval" = yes; then
2787 ac_cv_use_profile='wxUSE_PROFILE=yes'
2788 else
2789 ac_cv_use_profile='wxUSE_PROFILE=no'
2790 fi
2791
2792else
2793
2794 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2795 if test "x$LINE" != x ; then
2796 eval "DEFAULT_$LINE"
2797 else
2798 no_cache=1
2799 fi
2800
2801 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2802
2803fi
2804
2805
2806 eval "$ac_cv_use_profile"
2807 if test "$no_cache" != 1; then
2808 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2809 fi
2810
2811 if test "$wxUSE_PROFILE" = yes; then
2812 echo "$ac_t""yes" 1>&6
2813 else
2814 echo "$ac_t""no" 1>&6
2815 fi
2816
2817
2818 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2819echo "configure:2820: checking for --enable-no_rtti" >&5
2820 no_cache=0
2821 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2822if test "${enable_no_rtti+set}" = set; then
2823 enableval="$enable_no_rtti"
2824
2825 if test "$enableval" = yes; then
2826 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2827 else
2828 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2829 fi
2830
2831else
2832
2833 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2834 if test "x$LINE" != x ; then
2835 eval "DEFAULT_$LINE"
2836 else
2837 no_cache=1
2838 fi
2839
2840 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2841
2842fi
2843
2844
2845 eval "$ac_cv_use_no_rtti"
2846 if test "$no_cache" != 1; then
2847 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2848 fi
2849
2850 if test "$wxUSE_NO_RTTI" = yes; then
2851 echo "$ac_t""yes" 1>&6
2852 else
2853 echo "$ac_t""no" 1>&6
2854 fi
2855
2856
2857 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2858echo "configure:2859: checking for --enable-no_exceptions" >&5
2859 no_cache=0
2860 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2861if test "${enable_no_exceptions+set}" = set; then
2862 enableval="$enable_no_exceptions"
2863
2864 if test "$enableval" = yes; then
2865 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2866 else
2867 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2868 fi
2869
2870else
2871
2872 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2873 if test "x$LINE" != x ; then
2874 eval "DEFAULT_$LINE"
2875 else
2876 no_cache=1
2877 fi
2878
2879 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2880
2881fi
2882
2883
2884 eval "$ac_cv_use_no_exceptions"
2885 if test "$no_cache" != 1; then
2886 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2887 fi
2888
2889 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2890 echo "$ac_t""yes" 1>&6
2891 else
2892 echo "$ac_t""no" 1>&6
2893 fi
2894
2895
2896 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2897echo "configure:2898: checking for --enable-permissive" >&5
2898 no_cache=0
2899 # Check whether --enable-permissive or --disable-permissive was given.
2900if test "${enable_permissive+set}" = set; then
2901 enableval="$enable_permissive"
2902
2903 if test "$enableval" = yes; then
2904 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2905 else
2906 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2907 fi
2908
2909else
2910
2911 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2912 if test "x$LINE" != x ; then
2913 eval "DEFAULT_$LINE"
2914 else
2915 no_cache=1
2916 fi
2917
2918 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2919
2920fi
2921
2922
2923 eval "$ac_cv_use_permissive"
2924 if test "$no_cache" != 1; then
2925 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2926 fi
2927
2928 if test "$wxUSE_PERMISSIVE" = yes; then
2929 echo "$ac_t""yes" 1>&6
2930 else
2931 echo "$ac_t""no" 1>&6
2932 fi
2933
2934
2935 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2936echo "configure:2937: checking for --enable-no_deps" >&5
2937 no_cache=0
2938 # Check whether --enable-no_deps or --disable-no_deps was given.
2939if test "${enable_no_deps+set}" = set; then
2940 enableval="$enable_no_deps"
2941
2942 if test "$enableval" = yes; then
2943 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2944 else
2945 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2946 fi
2947
2948else
2949
2950 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2951 if test "x$LINE" != x ; then
2952 eval "DEFAULT_$LINE"
2953 else
2954 no_cache=1
2955 fi
2956
2957 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2958
2959fi
2960
2961
2962 eval "$ac_cv_use_no_deps"
2963 if test "$no_cache" != 1; then
2964 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2965 fi
2966
2967 if test "$wxUSE_NO_DEPS" = yes; then
2968 echo "$ac_t""yes" 1>&6
2969 else
2970 echo "$ac_t""no" 1>&6
2971 fi
2972
2973
2974
2975 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2976echo "configure:2977: checking for --enable-compat20" >&5
2977 no_cache=0
2978 # Check whether --enable-compat20 or --disable-compat20 was given.
2979if test "${enable_compat20+set}" = set; then
2980 enableval="$enable_compat20"
2981
2982 if test "$enableval" = yes; then
2983 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2984 else
2985 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2986 fi
2987
2988else
2989
2990 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2991 if test "x$LINE" != x ; then
2992 eval "DEFAULT_$LINE"
2993 else
2994 no_cache=1
2995 fi
2996
2997 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2998
2999fi
3000
3001
3002 eval "$ac_cv_use_compat20"
3003 if test "$no_cache" != 1; then
3004 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3005 fi
3006
3007 if test "$WXWIN_COMPATIBILITY_2" = yes; then
3008 echo "$ac_t""yes" 1>&6
3009 else
3010 echo "$ac_t""no" 1>&6
3011 fi
3012
3013
3014 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
3015echo "configure:3016: checking for --enable-compat22" >&5
3016 no_cache=0
3017 # Check whether --enable-compat22 or --disable-compat22 was given.
3018if test "${enable_compat22+set}" = set; then
3019 enableval="$enable_compat22"
3020
3021 if test "$enableval" = yes; then
3022 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3023 else
3024 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3025 fi
3026
3027else
3028
3029 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3030 if test "x$LINE" != x ; then
3031 eval "DEFAULT_$LINE"
3032 else
3033 no_cache=1
3034 fi
3035
3036 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3037
3038fi
3039
3040
3041 eval "$ac_cv_use_compat22"
3042 if test "$no_cache" != 1; then
3043 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3044 fi
3045
3046 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3047 echo "$ac_t""yes" 1>&6
3048 else
3049 echo "$ac_t""no" 1>&6
3050 fi
3051
3052
3053
3054
3055 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
3056echo "configure:3057: checking for --enable-intl" >&5
3057 no_cache=0
3058 # Check whether --enable-intl or --disable-intl was given.
3059if test "${enable_intl+set}" = set; then
3060 enableval="$enable_intl"
3061
3062 if test "$enableval" = yes; then
3063 ac_cv_use_intl='wxUSE_INTL=yes'
3064 else
3065 ac_cv_use_intl='wxUSE_INTL=no'
3066 fi
3067
3068else
3069
3070 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3071 if test "x$LINE" != x ; then
3072 eval "DEFAULT_$LINE"
3073 else
3074 no_cache=1
3075 fi
3076
3077 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3078
3079fi
3080
3081
3082 eval "$ac_cv_use_intl"
3083 if test "$no_cache" != 1; then
3084 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3085 fi
3086
3087 if test "$wxUSE_INTL" = yes; then
3088 echo "$ac_t""yes" 1>&6
3089 else
3090 echo "$ac_t""no" 1>&6
3091 fi
3092
3093
3094 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3095echo "configure:3096: checking for --enable-config" >&5
3096 no_cache=0
3097 # Check whether --enable-config or --disable-config was given.
3098if test "${enable_config+set}" = set; then
3099 enableval="$enable_config"
3100
3101 if test "$enableval" = yes; then
3102 ac_cv_use_config='wxUSE_CONFIG=yes'
3103 else
3104 ac_cv_use_config='wxUSE_CONFIG=no'
3105 fi
3106
3107else
3108
3109 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3110 if test "x$LINE" != x ; then
3111 eval "DEFAULT_$LINE"
3112 else
3113 no_cache=1
3114 fi
3115
3116 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3117
3118fi
3119
3120
3121 eval "$ac_cv_use_config"
3122 if test "$no_cache" != 1; then
3123 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3124 fi
3125
3126 if test "$wxUSE_CONFIG" = yes; then
3127 echo "$ac_t""yes" 1>&6
3128 else
3129 echo "$ac_t""no" 1>&6
3130 fi
3131
3132
3133
3134 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
3135echo "configure:3136: checking for --enable-protocols" >&5
3136 no_cache=0
3137 # Check whether --enable-protocols or --disable-protocols was given.
3138if test "${enable_protocols+set}" = set; then
3139 enableval="$enable_protocols"
3140
3141 if test "$enableval" = yes; then
3142 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3143 else
3144 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3145 fi
3146
3147else
3148
3149 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3150 if test "x$LINE" != x ; then
3151 eval "DEFAULT_$LINE"
3152 else
3153 no_cache=1
3154 fi
3155
3156 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3157
3158fi
3159
3160
3161 eval "$ac_cv_use_protocols"
3162 if test "$no_cache" != 1; then
3163 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3164 fi
3165
3166 if test "$wxUSE_PROTOCOL" = yes; then
3167 echo "$ac_t""yes" 1>&6
3168 else
3169 echo "$ac_t""no" 1>&6
3170 fi
3171
3172
3173 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
3174echo "configure:3175: checking for --enable-ftp" >&5
3175 no_cache=0
3176 # Check whether --enable-ftp or --disable-ftp was given.
3177if test "${enable_ftp+set}" = set; then
3178 enableval="$enable_ftp"
3179
3180 if test "$enableval" = yes; then
3181 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3182 else
3183 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3184 fi
3185
3186else
3187
3188 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3189 if test "x$LINE" != x ; then
3190 eval "DEFAULT_$LINE"
3191 else
3192 no_cache=1
3193 fi
3194
3195 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3196
3197fi
3198
3199
3200 eval "$ac_cv_use_ftp"
3201 if test "$no_cache" != 1; then
3202 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3203 fi
3204
3205 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3206 echo "$ac_t""yes" 1>&6
3207 else
3208 echo "$ac_t""no" 1>&6
3209 fi
3210
3211
3212 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
3213echo "configure:3214: checking for --enable-http" >&5
3214 no_cache=0
3215 # Check whether --enable-http or --disable-http was given.
3216if test "${enable_http+set}" = set; then
3217 enableval="$enable_http"
3218
3219 if test "$enableval" = yes; then
3220 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3221 else
3222 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3223 fi
3224
3225else
3226
3227 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3228 if test "x$LINE" != x ; then
3229 eval "DEFAULT_$LINE"
3230 else
3231 no_cache=1
3232 fi
3233
3234 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3235
3236fi
3237
3238
3239 eval "$ac_cv_use_http"
3240 if test "$no_cache" != 1; then
3241 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3242 fi
3243
3244 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3245 echo "$ac_t""yes" 1>&6
3246 else
3247 echo "$ac_t""no" 1>&6
3248 fi
3249
3250
3251 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
3252echo "configure:3253: checking for --enable-fileproto" >&5
3253 no_cache=0
3254 # Check whether --enable-fileproto or --disable-fileproto was given.
3255if test "${enable_fileproto+set}" = set; then
3256 enableval="$enable_fileproto"
3257
3258 if test "$enableval" = yes; then
3259 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3260 else
3261 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3262 fi
3263
3264else
3265
3266 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3267 if test "x$LINE" != x ; then
3268 eval "DEFAULT_$LINE"
3269 else
3270 no_cache=1
3271 fi
3272
3273 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3274
3275fi
3276
3277
3278 eval "$ac_cv_use_fileproto"
3279 if test "$no_cache" != 1; then
3280 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3281 fi
3282
3283 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3284 echo "$ac_t""yes" 1>&6
3285 else
3286 echo "$ac_t""no" 1>&6
3287 fi
3288
3289
3290 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3291echo "configure:3292: checking for --enable-sockets" >&5
3292 no_cache=0
3293 # Check whether --enable-sockets or --disable-sockets was given.
3294if test "${enable_sockets+set}" = set; then
3295 enableval="$enable_sockets"
3296
3297 if test "$enableval" = yes; then
3298 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3299 else
3300 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3301 fi
3302
3303else
3304
3305 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3306 if test "x$LINE" != x ; then
3307 eval "DEFAULT_$LINE"
3308 else
3309 no_cache=1
3310 fi
3311
3312 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3313
3314fi
3315
3316
3317 eval "$ac_cv_use_sockets"
3318 if test "$no_cache" != 1; then
3319 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3320 fi
3321
3322 if test "$wxUSE_SOCKETS" = yes; then
3323 echo "$ac_t""yes" 1>&6
3324 else
3325 echo "$ac_t""no" 1>&6
3326 fi
3327
3328
3329
3330 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3331echo "configure:3332: checking for --enable-ipc" >&5
3332 no_cache=0
3333 # Check whether --enable-ipc or --disable-ipc was given.
3334if test "${enable_ipc+set}" = set; then
3335 enableval="$enable_ipc"
3336
3337 if test "$enableval" = yes; then
3338 ac_cv_use_ipc='wxUSE_IPC=yes'
3339 else
3340 ac_cv_use_ipc='wxUSE_IPC=no'
3341 fi
3342
3343else
3344
3345 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3346 if test "x$LINE" != x ; then
3347 eval "DEFAULT_$LINE"
3348 else
3349 no_cache=1
3350 fi
3351
3352 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3353
3354fi
3355
3356
3357 eval "$ac_cv_use_ipc"
3358 if test "$no_cache" != 1; then
3359 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3360 fi
3361
3362 if test "$wxUSE_IPC" = yes; then
3363 echo "$ac_t""yes" 1>&6
3364 else
3365 echo "$ac_t""no" 1>&6
3366 fi
3367
3368
3369
3370 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3371echo "configure:3372: checking for --enable-cmdline" >&5
3372 no_cache=0
3373 # Check whether --enable-cmdline or --disable-cmdline was given.
3374if test "${enable_cmdline+set}" = set; then
3375 enableval="$enable_cmdline"
3376
3377 if test "$enableval" = yes; then
3378 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3379 else
3380 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3381 fi
3382
3383else
3384
3385 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3386 if test "x$LINE" != x ; then
3387 eval "DEFAULT_$LINE"
3388 else
3389 no_cache=1
3390 fi
3391
3392 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3393
3394fi
3395
3396
3397 eval "$ac_cv_use_cmdline"
3398 if test "$no_cache" != 1; then
3399 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3400 fi
3401
3402 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3403 echo "$ac_t""yes" 1>&6
3404 else
3405 echo "$ac_t""no" 1>&6
3406 fi
3407
3408
3409 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3410echo "configure:3411: checking for --enable-datetime" >&5
3411 no_cache=0
3412 # Check whether --enable-datetime or --disable-datetime was given.
3413if test "${enable_datetime+set}" = set; then
3414 enableval="$enable_datetime"
3415
3416 if test "$enableval" = yes; then
3417 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3418 else
3419 ac_cv_use_datetime='wxUSE_DATETIME=no'
3420 fi
3421
3422else
3423
3424 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3425 if test "x$LINE" != x ; then
3426 eval "DEFAULT_$LINE"
3427 else
3428 no_cache=1
3429 fi
3430
3431 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3432
3433fi
3434
3435
3436 eval "$ac_cv_use_datetime"
3437 if test "$no_cache" != 1; then
3438 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3439 fi
3440
3441 if test "$wxUSE_DATETIME" = yes; then
3442 echo "$ac_t""yes" 1>&6
3443 else
3444 echo "$ac_t""no" 1>&6
3445 fi
3446
3447
3448 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3449echo "configure:3450: checking for --enable-timedate" >&5
3450 no_cache=0
3451 # Check whether --enable-timedate or --disable-timedate was given.
3452if test "${enable_timedate+set}" = set; then
3453 enableval="$enable_timedate"
3454
3455 if test "$enableval" = yes; then
3456 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3457 else
3458 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3459 fi
3460
3461else
3462
3463 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3464 if test "x$LINE" != x ; then
3465 eval "DEFAULT_$LINE"
3466 else
3467 no_cache=1
3468 fi
3469
3470 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3471
3472fi
3473
3474
3475 eval "$ac_cv_use_timedate"
3476 if test "$no_cache" != 1; then
3477 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3478 fi
3479
3480 if test "$wxUSE_TIMEDATE" = yes; then
3481 echo "$ac_t""yes" 1>&6
3482 else
3483 echo "$ac_t""no" 1>&6
3484 fi
3485
3486
3487 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3488echo "configure:3489: checking for --enable-stopwatch" >&5
3489 no_cache=0
3490 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3491if test "${enable_stopwatch+set}" = set; then
3492 enableval="$enable_stopwatch"
3493
3494 if test "$enableval" = yes; then
3495 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3496 else
3497 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3498 fi
3499
3500else
3501
3502 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3503 if test "x$LINE" != x ; then
3504 eval "DEFAULT_$LINE"
3505 else
3506 no_cache=1
3507 fi
3508
3509 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3510
3511fi
3512
3513
3514 eval "$ac_cv_use_stopwatch"
3515 if test "$no_cache" != 1; then
3516 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3517 fi
3518
3519 if test "$wxUSE_STOPWATCH" = yes; then
3520 echo "$ac_t""yes" 1>&6
3521 else
3522 echo "$ac_t""no" 1>&6
3523 fi
3524
3525
3526 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3527echo "configure:3528: checking for --enable-dialupman" >&5
3528 no_cache=0
3529 # Check whether --enable-dialupman or --disable-dialupman was given.
3530if test "${enable_dialupman+set}" = set; then
3531 enableval="$enable_dialupman"
3532
3533 if test "$enableval" = yes; then
3534 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3535 else
3536 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3537 fi
3538
3539else
3540
3541 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3542 if test "x$LINE" != x ; then
3543 eval "DEFAULT_$LINE"
3544 else
3545 no_cache=1
3546 fi
3547
3548 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3549
3550fi
3551
3552
3553 eval "$ac_cv_use_dialupman"
3554 if test "$no_cache" != 1; then
3555 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3556 fi
3557
3558 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3559 echo "$ac_t""yes" 1>&6
3560 else
3561 echo "$ac_t""no" 1>&6
3562 fi
3563
3564
3565 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3566echo "configure:3567: checking for --enable-apple_ieee" >&5
3567 no_cache=0
3568 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3569if test "${enable_apple_ieee+set}" = set; then
3570 enableval="$enable_apple_ieee"
3571
3572 if test "$enableval" = yes; then
3573 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3574 else
3575 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3576 fi
3577
3578else
3579
3580 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3581 if test "x$LINE" != x ; then
3582 eval "DEFAULT_$LINE"
3583 else
3584 no_cache=1
3585 fi
3586
3587 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3588
3589fi
3590
3591
3592 eval "$ac_cv_use_apple_ieee"
3593 if test "$no_cache" != 1; then
3594 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3595 fi
3596
3597 if test "$wxUSE_APPLE_IEEE" = yes; then
3598 echo "$ac_t""yes" 1>&6
3599 else
3600 echo "$ac_t""no" 1>&6
3601 fi
3602
3603
3604 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3605echo "configure:3606: checking for --enable-timer" >&5
3606 no_cache=0
3607 # Check whether --enable-timer or --disable-timer was given.
3608if test "${enable_timer+set}" = set; then
3609 enableval="$enable_timer"
3610
3611 if test "$enableval" = yes; then
3612 ac_cv_use_timer='wxUSE_TIMER=yes'
3613 else
3614 ac_cv_use_timer='wxUSE_TIMER=no'
3615 fi
3616
3617else
3618
3619 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3620 if test "x$LINE" != x ; then
3621 eval "DEFAULT_$LINE"
3622 else
3623 no_cache=1
3624 fi
3625
3626 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3627
3628fi
3629
3630
3631 eval "$ac_cv_use_timer"
3632 if test "$no_cache" != 1; then
3633 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3634 fi
3635
3636 if test "$wxUSE_TIMER" = yes; then
3637 echo "$ac_t""yes" 1>&6
3638 else
3639 echo "$ac_t""no" 1>&6
3640 fi
3641
3642
3643 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3644echo "configure:3645: checking for --enable-wave" >&5
3645 no_cache=0
3646 # Check whether --enable-wave or --disable-wave was given.
3647if test "${enable_wave+set}" = set; then
3648 enableval="$enable_wave"
3649
3650 if test "$enableval" = yes; then
3651 ac_cv_use_wave='wxUSE_WAVE=yes'
3652 else
3653 ac_cv_use_wave='wxUSE_WAVE=no'
3654 fi
3655
3656else
3657
3658 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3659 if test "x$LINE" != x ; then
3660 eval "DEFAULT_$LINE"
3661 else
3662 no_cache=1
3663 fi
3664
3665 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3666
3667fi
3668
3669
3670 eval "$ac_cv_use_wave"
3671 if test "$no_cache" != 1; then
3672 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3673 fi
3674
3675 if test "$wxUSE_WAVE" = yes; then
3676 echo "$ac_t""yes" 1>&6
3677 else
3678 echo "$ac_t""no" 1>&6
3679 fi
3680
3681
3682 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3683echo "configure:3684: checking for --enable-fraction" >&5
3684 no_cache=0
3685 # Check whether --enable-fraction or --disable-fraction was given.
3686if test "${enable_fraction+set}" = set; then
3687 enableval="$enable_fraction"
3688
3689 if test "$enableval" = yes; then
3690 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3691 else
3692 ac_cv_use_fraction='wxUSE_FRACTION=no'
3693 fi
3694
3695else
3696
3697 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3698 if test "x$LINE" != x ; then
3699 eval "DEFAULT_$LINE"
3700 else
3701 no_cache=1
3702 fi
3703
3704 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3705
3706fi
3707
3708
3709 eval "$ac_cv_use_fraction"
3710 if test "$no_cache" != 1; then
3711 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3712 fi
3713
3714 if test "$wxUSE_FRACTION" = yes; then
3715 echo "$ac_t""yes" 1>&6
3716 else
3717 echo "$ac_t""no" 1>&6
3718 fi
3719
3720
3721 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3722echo "configure:3723: checking for --enable-dynlib" >&5
3723 no_cache=0
3724 # Check whether --enable-dynlib or --disable-dynlib was given.
3725if test "${enable_dynlib+set}" = set; then
3726 enableval="$enable_dynlib"
3727
3728 if test "$enableval" = yes; then
3729 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3730 else
3731 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3732 fi
3733
3734else
3735
3736 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3737 if test "x$LINE" != x ; then
3738 eval "DEFAULT_$LINE"
3739 else
3740 no_cache=1
3741 fi
3742
3743 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3744
3745fi
3746
3747
3748 eval "$ac_cv_use_dynlib"
3749 if test "$no_cache" != 1; then
3750 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3751 fi
3752
3753 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3754 echo "$ac_t""yes" 1>&6
3755 else
3756 echo "$ac_t""no" 1>&6
3757 fi
3758
3759
3760 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3761echo "configure:3762: checking for --enable-dynamicloader" >&5
3762 no_cache=0
3763 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3764if test "${enable_dynamicloader+set}" = set; then
3765 enableval="$enable_dynamicloader"
3766
3767 if test "$enableval" = yes; then
3768 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3769 else
3770 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3771 fi
3772
3773else
3774
3775 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3776 if test "x$LINE" != x ; then
3777 eval "DEFAULT_$LINE"
3778 else
3779 no_cache=1
3780 fi
3781
3782 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3783
3784fi
3785
3786
3787 eval "$ac_cv_use_dynamicloader"
3788 if test "$no_cache" != 1; then
3789 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3790 fi
3791
3792 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3793 echo "$ac_t""yes" 1>&6
3794 else
3795 echo "$ac_t""no" 1>&6
3796 fi
3797
3798
3799 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3800echo "configure:3801: checking for --enable-longlong" >&5
3801 no_cache=0
3802 # Check whether --enable-longlong or --disable-longlong was given.
3803if test "${enable_longlong+set}" = set; then
3804 enableval="$enable_longlong"
3805
3806 if test "$enableval" = yes; then
3807 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3808 else
3809 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3810 fi
3811
3812else
3813
3814 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3815 if test "x$LINE" != x ; then
3816 eval "DEFAULT_$LINE"
3817 else
3818 no_cache=1
3819 fi
3820
3821 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3822
3823fi
3824
3825
3826 eval "$ac_cv_use_longlong"
3827 if test "$no_cache" != 1; then
3828 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3829 fi
3830
3831 if test "$wxUSE_LONGLONG" = yes; then
3832 echo "$ac_t""yes" 1>&6
3833 else
3834 echo "$ac_t""no" 1>&6
3835 fi
3836
3837
3838 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3839echo "configure:3840: checking for --enable-geometry" >&5
3840 no_cache=0
3841 # Check whether --enable-geometry or --disable-geometry was given.
3842if test "${enable_geometry+set}" = set; then
3843 enableval="$enable_geometry"
3844
3845 if test "$enableval" = yes; then
3846 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3847 else
3848 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3849 fi
3850
3851else
3852
3853 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3854 if test "x$LINE" != x ; then
3855 eval "DEFAULT_$LINE"
3856 else
3857 no_cache=1
3858 fi
3859
3860 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3861
3862fi
3863
3864
3865 eval "$ac_cv_use_geometry"
3866 if test "$no_cache" != 1; then
3867 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3868 fi
3869
3870 if test "$wxUSE_GEOMETRY" = yes; then
3871 echo "$ac_t""yes" 1>&6
3872 else
3873 echo "$ac_t""no" 1>&6
3874 fi
3875
3876
3877 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3878echo "configure:3879: checking for --enable-log" >&5
3879 no_cache=0
3880 # Check whether --enable-log or --disable-log was given.
3881if test "${enable_log+set}" = set; then
3882 enableval="$enable_log"
3883
3884 if test "$enableval" = yes; then
3885 ac_cv_use_log='wxUSE_LOG=yes'
3886 else
3887 ac_cv_use_log='wxUSE_LOG=no'
3888 fi
3889
3890else
3891
3892 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3893 if test "x$LINE" != x ; then
3894 eval "DEFAULT_$LINE"
3895 else
3896 no_cache=1
3897 fi
3898
3899 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3900
3901fi
3902
3903
3904 eval "$ac_cv_use_log"
3905 if test "$no_cache" != 1; then
3906 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3907 fi
3908
3909 if test "$wxUSE_LOG" = yes; then
3910 echo "$ac_t""yes" 1>&6
3911 else
3912 echo "$ac_t""no" 1>&6
3913 fi
3914
3915
3916 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3917echo "configure:3918: checking for --enable-streams" >&5
3918 no_cache=0
3919 # Check whether --enable-streams or --disable-streams was given.
3920if test "${enable_streams+set}" = set; then
3921 enableval="$enable_streams"
3922
3923 if test "$enableval" = yes; then
3924 ac_cv_use_streams='wxUSE_STREAMS=yes'
3925 else
3926 ac_cv_use_streams='wxUSE_STREAMS=no'
3927 fi
3928
3929else
3930
3931 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3932 if test "x$LINE" != x ; then
3933 eval "DEFAULT_$LINE"
3934 else
3935 no_cache=1
3936 fi
3937
3938 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3939
3940fi
3941
3942
3943 eval "$ac_cv_use_streams"
3944 if test "$no_cache" != 1; then
3945 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3946 fi
3947
3948 if test "$wxUSE_STREAMS" = yes; then
3949 echo "$ac_t""yes" 1>&6
3950 else
3951 echo "$ac_t""no" 1>&6
3952 fi
3953
3954
3955 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3956echo "configure:3957: checking for --enable-file" >&5
3957 no_cache=0
3958 # Check whether --enable-file or --disable-file was given.
3959if test "${enable_file+set}" = set; then
3960 enableval="$enable_file"
3961
3962 if test "$enableval" = yes; then
3963 ac_cv_use_file='wxUSE_FILE=yes'
3964 else
3965 ac_cv_use_file='wxUSE_FILE=no'
3966 fi
3967
3968else
3969
3970 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3971 if test "x$LINE" != x ; then
3972 eval "DEFAULT_$LINE"
3973 else
3974 no_cache=1
3975 fi
3976
3977 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3978
3979fi
3980
3981
3982 eval "$ac_cv_use_file"
3983 if test "$no_cache" != 1; then
3984 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3985 fi
3986
3987 if test "$wxUSE_FILE" = yes; then
3988 echo "$ac_t""yes" 1>&6
3989 else
3990 echo "$ac_t""no" 1>&6
3991 fi
3992
3993
3994 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3995echo "configure:3996: checking for --enable-ffile" >&5
3996 no_cache=0
3997 # Check whether --enable-ffile or --disable-ffile was given.
3998if test "${enable_ffile+set}" = set; then
3999 enableval="$enable_ffile"
4000
4001 if test "$enableval" = yes; then
4002 ac_cv_use_ffile='wxUSE_FFILE=yes'
4003 else
4004 ac_cv_use_ffile='wxUSE_FFILE=no'
4005 fi
4006
4007else
4008
4009 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4010 if test "x$LINE" != x ; then
4011 eval "DEFAULT_$LINE"
4012 else
4013 no_cache=1
4014 fi
4015
4016 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4017
4018fi
4019
4020
4021 eval "$ac_cv_use_ffile"
4022 if test "$no_cache" != 1; then
4023 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4024 fi
4025
4026 if test "$wxUSE_FFILE" = yes; then
4027 echo "$ac_t""yes" 1>&6
4028 else
4029 echo "$ac_t""no" 1>&6
4030 fi
4031
4032
4033 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
4034echo "configure:4035: checking for --enable-textbuf" >&5
4035 no_cache=0
4036 # Check whether --enable-textbuf or --disable-textbuf was given.
4037if test "${enable_textbuf+set}" = set; then
4038 enableval="$enable_textbuf"
4039
4040 if test "$enableval" = yes; then
4041 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4042 else
4043 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4044 fi
4045
4046else
4047
4048 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4049 if test "x$LINE" != x ; then
4050 eval "DEFAULT_$LINE"
4051 else
4052 no_cache=1
4053 fi
4054
4055 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4056
4057fi
4058
4059
4060 eval "$ac_cv_use_textbuf"
4061 if test "$no_cache" != 1; then
4062 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4063 fi
4064
4065 if test "$wxUSE_TEXTBUFFER" = yes; then
4066 echo "$ac_t""yes" 1>&6
4067 else
4068 echo "$ac_t""no" 1>&6
4069 fi
4070
4071
4072 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
4073echo "configure:4074: checking for --enable-textfile" >&5
4074 no_cache=0
4075 # Check whether --enable-textfile or --disable-textfile was given.
4076if test "${enable_textfile+set}" = set; then
4077 enableval="$enable_textfile"
4078
4079 if test "$enableval" = yes; then
4080 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4081 else
4082 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4083 fi
4084
4085else
4086
4087 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4088 if test "x$LINE" != x ; then
4089 eval "DEFAULT_$LINE"
4090 else
4091 no_cache=1
4092 fi
4093
4094 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4095
4096fi
4097
4098
4099 eval "$ac_cv_use_textfile"
4100 if test "$no_cache" != 1; then
4101 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4102 fi
4103
4104 if test "$wxUSE_TEXTFILE" = yes; then
4105 echo "$ac_t""yes" 1>&6
4106 else
4107 echo "$ac_t""no" 1>&6
4108 fi
4109
4110
4111 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
4112echo "configure:4113: checking for --enable-fontmap" >&5
4113 no_cache=0
4114 # Check whether --enable-fontmap or --disable-fontmap was given.
4115if test "${enable_fontmap+set}" = set; then
4116 enableval="$enable_fontmap"
4117
4118 if test "$enableval" = yes; then
4119 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4120 else
4121 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4122 fi
4123
4124else
4125
4126 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4127 if test "x$LINE" != x ; then
4128 eval "DEFAULT_$LINE"
4129 else
4130 no_cache=1
4131 fi
4132
4133 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4134
4135fi
4136
4137
4138 eval "$ac_cv_use_fontmap"
4139 if test "$no_cache" != 1; then
4140 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4141 fi
4142
4143 if test "$wxUSE_FONTMAP" = yes; then
4144 echo "$ac_t""yes" 1>&6
4145 else
4146 echo "$ac_t""no" 1>&6
4147 fi
4148
4149
4150 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
4151echo "configure:4152: checking for --enable-unicode" >&5
4152 no_cache=0
4153 # Check whether --enable-unicode or --disable-unicode was given.
4154if test "${enable_unicode+set}" = set; then
4155 enableval="$enable_unicode"
4156
4157 if test "$enableval" = yes; then
4158 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4159 else
4160 ac_cv_use_unicode='wxUSE_UNICODE=no'
4161 fi
4162
4163else
4164
4165 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4166 if test "x$LINE" != x ; then
4167 eval "DEFAULT_$LINE"
4168 else
4169 no_cache=1
4170 fi
4171
4172 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4173
4174fi
4175
4176
4177 eval "$ac_cv_use_unicode"
4178 if test "$no_cache" != 1; then
4179 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4180 fi
4181
4182 if test "$wxUSE_UNICODE" = yes; then
4183 echo "$ac_t""yes" 1>&6
4184 else
4185 echo "$ac_t""no" 1>&6
4186 fi
4187
4188
4189 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
4190echo "configure:4191: checking for --enable-mslu" >&5
4191 no_cache=0
4192 # Check whether --enable-mslu or --disable-mslu was given.
4193if test "${enable_mslu+set}" = set; then
4194 enableval="$enable_mslu"
4195
4196 if test "$enableval" = yes; then
4197 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4198 else
4199 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4200 fi
4201
4202else
4203
4204 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4205 if test "x$LINE" != x ; then
4206 eval "DEFAULT_$LINE"
4207 else
4208 no_cache=1
4209 fi
4210
4211 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4212
4213fi
4214
4215
4216 eval "$ac_cv_use_mslu"
4217 if test "$no_cache" != 1; then
4218 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4219 fi
4220
4221 if test "$wxUSE_UNICODE_MSLU" = yes; then
4222 echo "$ac_t""yes" 1>&6
4223 else
4224 echo "$ac_t""no" 1>&6
4225 fi
4226
4227
4228 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
4229echo "configure:4230: checking for --enable-wxprintfv" >&5
4230 no_cache=0
4231 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4232if test "${enable_wxprintfv+set}" = set; then
4233 enableval="$enable_wxprintfv"
4234
4235 if test "$enableval" = yes; then
4236 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4237 else
4238 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4239 fi
4240
4241else
4242
4243 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4244 if test "x$LINE" != x ; then
4245 eval "DEFAULT_$LINE"
4246 else
4247 no_cache=1
4248 fi
4249
4250 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4251
4252fi
4253
4254
4255 eval "$ac_cv_use_wxprintfv"
4256 if test "$no_cache" != 1; then
4257 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4258 fi
4259
4260 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4261 echo "$ac_t""yes" 1>&6
4262 else
4263 echo "$ac_t""no" 1>&6
4264 fi
4265
4266
4267 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
4268echo "configure:4269: checking for --enable-std_iostreams" >&5
4269 no_cache=0
4270 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4271if test "${enable_std_iostreams+set}" = set; then
4272 enableval="$enable_std_iostreams"
4273
4274 if test "$enableval" = yes; then
4275 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4276 else
4277 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4278 fi
4279
4280else
4281
4282 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4283 if test "x$LINE" != x ; then
4284 eval "DEFAULT_$LINE"
4285 else
4286 no_cache=1
4287 fi
4288
4289 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4290
4291fi
4292
4293
4294 eval "$ac_cv_use_std_iostreams"
4295 if test "$no_cache" != 1; then
4296 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4297 fi
4298
4299 if test "$wxUSE_STD_IOSTREAM" = yes; then
4300 echo "$ac_t""yes" 1>&6
4301 else
4302 echo "$ac_t""no" 1>&6
4303 fi
4304
4305
4306 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
4307echo "configure:4308: checking for --enable-filesystem" >&5
4308 no_cache=0
4309 # Check whether --enable-filesystem or --disable-filesystem was given.
4310if test "${enable_filesystem+set}" = set; then
4311 enableval="$enable_filesystem"
4312
4313 if test "$enableval" = yes; then
4314 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4315 else
4316 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4317 fi
4318
4319else
4320
4321 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4322 if test "x$LINE" != x ; then
4323 eval "DEFAULT_$LINE"
4324 else
4325 no_cache=1
4326 fi
4327
4328 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4329
4330fi
4331
4332
4333 eval "$ac_cv_use_filesystem"
4334 if test "$no_cache" != 1; then
4335 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4336 fi
4337
4338 if test "$wxUSE_FILESYSTEM" = yes; then
4339 echo "$ac_t""yes" 1>&6
4340 else
4341 echo "$ac_t""no" 1>&6
4342 fi
4343
4344
4345 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4346echo "configure:4347: checking for --enable-fs_inet" >&5
4347 no_cache=0
4348 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4349if test "${enable_fs_inet+set}" = set; then
4350 enableval="$enable_fs_inet"
4351
4352 if test "$enableval" = yes; then
4353 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4354 else
4355 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4356 fi
4357
4358else
4359
4360 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4361 if test "x$LINE" != x ; then
4362 eval "DEFAULT_$LINE"
4363 else
4364 no_cache=1
4365 fi
4366
4367 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4368
4369fi
4370
4371
4372 eval "$ac_cv_use_fs_inet"
4373 if test "$no_cache" != 1; then
4374 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4375 fi
4376
4377 if test "$wxUSE_FS_INET" = yes; then
4378 echo "$ac_t""yes" 1>&6
4379 else
4380 echo "$ac_t""no" 1>&6
4381 fi
4382
4383
4384 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4385echo "configure:4386: checking for --enable-fs_zip" >&5
4386 no_cache=0
4387 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4388if test "${enable_fs_zip+set}" = set; then
4389 enableval="$enable_fs_zip"
4390
4391 if test "$enableval" = yes; then
4392 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4393 else
4394 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4395 fi
4396
4397else
4398
4399 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4400 if test "x$LINE" != x ; then
4401 eval "DEFAULT_$LINE"
4402 else
4403 no_cache=1
4404 fi
4405
4406 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4407
4408fi
4409
4410
4411 eval "$ac_cv_use_fs_zip"
4412 if test "$no_cache" != 1; then
4413 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4414 fi
4415
4416 if test "$wxUSE_FS_ZIP" = yes; then
4417 echo "$ac_t""yes" 1>&6
4418 else
4419 echo "$ac_t""no" 1>&6
4420 fi
4421
4422
4423 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4424echo "configure:4425: checking for --enable-zipstream" >&5
4425 no_cache=0
4426 # Check whether --enable-zipstream or --disable-zipstream was given.
4427if test "${enable_zipstream+set}" = set; then
4428 enableval="$enable_zipstream"
4429
4430 if test "$enableval" = yes; then
4431 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4432 else
4433 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4434 fi
4435
4436else
4437
4438 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4439 if test "x$LINE" != x ; then
4440 eval "DEFAULT_$LINE"
4441 else
4442 no_cache=1
4443 fi
4444
4445 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4446
4447fi
4448
4449
4450 eval "$ac_cv_use_zipstream"
4451 if test "$no_cache" != 1; then
4452 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4453 fi
4454
4455 if test "$wxUSE_ZIPSTREAM" = yes; then
4456 echo "$ac_t""yes" 1>&6
4457 else
4458 echo "$ac_t""no" 1>&6
4459 fi
4460
4461
4462
4463 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4464echo "configure:4465: checking for --enable-catch_segvs" >&5
4465 no_cache=0
4466 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4467if test "${enable_catch_segvs+set}" = set; then
4468 enableval="$enable_catch_segvs"
4469
4470 if test "$enableval" = yes; then
4471 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4472 else
4473 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4474 fi
4475
4476else
4477
4478 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4479 if test "x$LINE" != x ; then
4480 eval "DEFAULT_$LINE"
4481 else
4482 no_cache=1
4483 fi
4484
4485 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4486
4487fi
4488
4489
4490 eval "$ac_cv_use_catch_segvs"
4491 if test "$no_cache" != 1; then
4492 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4493 fi
4494
4495 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4496 echo "$ac_t""yes" 1>&6
4497 else
4498 echo "$ac_t""no" 1>&6
4499 fi
4500
4501
4502 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4503echo "configure:4504: checking for --enable-snglinst" >&5
4504 no_cache=0
4505 # Check whether --enable-snglinst or --disable-snglinst was given.
4506if test "${enable_snglinst+set}" = set; then
4507 enableval="$enable_snglinst"
4508
4509 if test "$enableval" = yes; then
4510 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4511 else
4512 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4513 fi
4514
4515else
4516
4517 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4518 if test "x$LINE" != x ; then
4519 eval "DEFAULT_$LINE"
4520 else
4521 no_cache=1
4522 fi
4523
4524 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4525
4526fi
4527
4528
4529 eval "$ac_cv_use_snglinst"
4530 if test "$no_cache" != 1; then
4531 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4532 fi
4533
4534 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4535 echo "$ac_t""yes" 1>&6
4536 else
4537 echo "$ac_t""no" 1>&6
4538 fi
4539
4540
4541
4542 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4543echo "configure:4544: checking for --enable-mimetype" >&5
4544 no_cache=0
4545 # Check whether --enable-mimetype or --disable-mimetype was given.
4546if test "${enable_mimetype+set}" = set; then
4547 enableval="$enable_mimetype"
4548
4549 if test "$enableval" = yes; then
4550 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4551 else
4552 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4553 fi
4554
4555else
4556
4557 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4558 if test "x$LINE" != x ; then
4559 eval "DEFAULT_$LINE"
4560 else
4561 no_cache=1
4562 fi
4563
4564 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4565
4566fi
4567
4568
4569 eval "$ac_cv_use_mimetype"
4570 if test "$no_cache" != 1; then
4571 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4572 fi
4573
4574 if test "$wxUSE_MIMETYPE" = yes; then
4575 echo "$ac_t""yes" 1>&6
4576 else
4577 echo "$ac_t""no" 1>&6
4578 fi
4579
4580
4581 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4582echo "configure:4583: checking for --enable-system_options" >&5
4583 no_cache=0
4584 # Check whether --enable-system_options or --disable-system_options was given.
4585if test "${enable_system_options+set}" = set; then
4586 enableval="$enable_system_options"
4587
4588 if test "$enableval" = yes; then
4589 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4590 else
4591 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4592 fi
4593
4594else
4595
4596 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4597 if test "x$LINE" != x ; then
4598 eval "DEFAULT_$LINE"
4599 else
4600 no_cache=1
4601 fi
4602
4603 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4604
4605fi
4606
4607
4608 eval "$ac_cv_use_system_options"
4609 if test "$no_cache" != 1; then
4610 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4611 fi
4612
4613 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4614 echo "$ac_t""yes" 1>&6
4615 else
4616 echo "$ac_t""no" 1>&6
4617 fi
4618
4619
4620
4621 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
4622echo "configure:4623: checking for --enable-url" >&5
4623 no_cache=0
4624 # Check whether --enable-url or --disable-url was given.
4625if test "${enable_url+set}" = set; then
4626 enableval="$enable_url"
4627
4628 if test "$enableval" = yes; then
4629 ac_cv_use_url='wxUSE_URL=yes'
4630 else
4631 ac_cv_use_url='wxUSE_URL=no'
4632 fi
4633
4634else
4635
4636 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4637 if test "x$LINE" != x ; then
4638 eval "DEFAULT_$LINE"
4639 else
4640 no_cache=1
4641 fi
4642
4643 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4644
4645fi
4646
4647
4648 eval "$ac_cv_use_url"
4649 if test "$no_cache" != 1; then
4650 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4651 fi
4652
4653 if test "$wxUSE_URL" = yes; then
4654 echo "$ac_t""yes" 1>&6
4655 else
4656 echo "$ac_t""no" 1>&6
4657 fi
4658
4659
4660 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
4661echo "configure:4662: checking for --enable-protocol" >&5
4662 no_cache=0
4663 # Check whether --enable-protocol or --disable-protocol was given.
4664if test "${enable_protocol+set}" = set; then
4665 enableval="$enable_protocol"
4666
4667 if test "$enableval" = yes; then
4668 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4669 else
4670 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4671 fi
4672
4673else
4674
4675 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4676 if test "x$LINE" != x ; then
4677 eval "DEFAULT_$LINE"
4678 else
4679 no_cache=1
4680 fi
4681
4682 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4683
4684fi
4685
4686
4687 eval "$ac_cv_use_protocol"
4688 if test "$no_cache" != 1; then
4689 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4690 fi
4691
4692 if test "$wxUSE_PROTOCOL" = yes; then
4693 echo "$ac_t""yes" 1>&6
4694 else
4695 echo "$ac_t""no" 1>&6
4696 fi
4697
4698
4699 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
4700echo "configure:4701: checking for --enable-protocol_http" >&5
4701 no_cache=0
4702 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4703if test "${enable_protocol_http+set}" = set; then
4704 enableval="$enable_protocol_http"
4705
4706 if test "$enableval" = yes; then
4707 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4708 else
4709 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4710 fi
4711
4712else
4713
4714 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4715 if test "x$LINE" != x ; then
4716 eval "DEFAULT_$LINE"
4717 else
4718 no_cache=1
4719 fi
4720
4721 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4722
4723fi
4724
4725
4726 eval "$ac_cv_use_protocol_http"
4727 if test "$no_cache" != 1; then
4728 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4729 fi
4730
4731 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4732 echo "$ac_t""yes" 1>&6
4733 else
4734 echo "$ac_t""no" 1>&6
4735 fi
4736
4737
4738 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
4739echo "configure:4740: checking for --enable-protocol_ftp" >&5
4740 no_cache=0
4741 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4742if test "${enable_protocol_ftp+set}" = set; then
4743 enableval="$enable_protocol_ftp"
4744
4745 if test "$enableval" = yes; then
4746 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4747 else
4748 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4749 fi
4750
4751else
4752
4753 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4754 if test "x$LINE" != x ; then
4755 eval "DEFAULT_$LINE"
4756 else
4757 no_cache=1
4758 fi
4759
4760 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4761
4762fi
4763
4764
4765 eval "$ac_cv_use_protocol_ftp"
4766 if test "$no_cache" != 1; then
4767 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4768 fi
4769
4770 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4771 echo "$ac_t""yes" 1>&6
4772 else
4773 echo "$ac_t""no" 1>&6
4774 fi
4775
4776
4777 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
4778echo "configure:4779: checking for --enable-protocol_file" >&5
4779 no_cache=0
4780 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4781if test "${enable_protocol_file+set}" = set; then
4782 enableval="$enable_protocol_file"
4783
4784 if test "$enableval" = yes; then
4785 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4786 else
4787 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4788 fi
4789
4790else
4791
4792 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4793 if test "x$LINE" != x ; then
4794 eval "DEFAULT_$LINE"
4795 else
4796 no_cache=1
4797 fi
4798
4799 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4800
4801fi
4802
4803
4804 eval "$ac_cv_use_protocol_file"
4805 if test "$no_cache" != 1; then
4806 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4807 fi
4808
4809 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4810 echo "$ac_t""yes" 1>&6
4811 else
4812 echo "$ac_t""no" 1>&6
4813 fi
4814
4815
4816
4817
4818
4819 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4820echo "configure:4821: checking for --enable-threads" >&5
4821 no_cache=0
4822 # Check whether --enable-threads or --disable-threads was given.
4823if test "${enable_threads+set}" = set; then
4824 enableval="$enable_threads"
4825
4826 if test "$enableval" = yes; then
4827 ac_cv_use_threads='wxUSE_THREADS=yes'
4828 else
4829 ac_cv_use_threads='wxUSE_THREADS=no'
4830 fi
4831
4832else
4833
4834 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4835 if test "x$LINE" != x ; then
4836 eval "DEFAULT_$LINE"
4837 else
4838 no_cache=1
4839 fi
4840
4841 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4842
4843fi
4844
4845
4846 eval "$ac_cv_use_threads"
4847 if test "$no_cache" != 1; then
4848 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4849 fi
4850
4851 if test "$wxUSE_THREADS" = yes; then
4852 echo "$ac_t""yes" 1>&6
4853 else
4854 echo "$ac_t""no" 1>&6
4855 fi
4856
4857
4858if test "$wxUSE_GUI" = "yes"; then
4859
4860
4861
4862 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4863echo "configure:4864: checking for --enable-docview" >&5
4864 no_cache=0
4865 # Check whether --enable-docview or --disable-docview was given.
4866if test "${enable_docview+set}" = set; then
4867 enableval="$enable_docview"
4868
4869 if test "$enableval" = yes; then
4870 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4871 else
4872 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4873 fi
4874
4875else
4876
4877 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4878 if test "x$LINE" != x ; then
4879 eval "DEFAULT_$LINE"
4880 else
4881 no_cache=1
4882 fi
4883
4884 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4885
4886fi
4887
4888
4889 eval "$ac_cv_use_docview"
4890 if test "$no_cache" != 1; then
4891 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4892 fi
4893
4894 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4895 echo "$ac_t""yes" 1>&6
4896 else
4897 echo "$ac_t""no" 1>&6
4898 fi
4899
4900
4901 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4902echo "configure:4903: checking for --enable-help" >&5
4903 no_cache=0
4904 # Check whether --enable-help or --disable-help was given.
4905if test "${enable_help+set}" = set; then
4906 enableval="$enable_help"
4907
4908 if test "$enableval" = yes; then
4909 ac_cv_use_help='wxUSE_HELP=yes'
4910 else
4911 ac_cv_use_help='wxUSE_HELP=no'
4912 fi
4913
4914else
4915
4916 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4917 if test "x$LINE" != x ; then
4918 eval "DEFAULT_$LINE"
4919 else
4920 no_cache=1
4921 fi
4922
4923 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4924
4925fi
4926
4927
4928 eval "$ac_cv_use_help"
4929 if test "$no_cache" != 1; then
4930 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4931 fi
4932
4933 if test "$wxUSE_HELP" = yes; then
4934 echo "$ac_t""yes" 1>&6
4935 else
4936 echo "$ac_t""no" 1>&6
4937 fi
4938
4939
4940 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4941echo "configure:4942: checking for --enable-mshtmlhelp" >&5
4942 no_cache=0
4943 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4944if test "${enable_mshtmlhelp+set}" = set; then
4945 enableval="$enable_mshtmlhelp"
4946
4947 if test "$enableval" = yes; then
4948 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4949 else
4950 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4951 fi
4952
4953else
4954
4955 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4956 if test "x$LINE" != x ; then
4957 eval "DEFAULT_$LINE"
4958 else
4959 no_cache=1
4960 fi
4961
4962 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4963
4964fi
4965
4966
4967 eval "$ac_cv_use_mshtmlhelp"
4968 if test "$no_cache" != 1; then
4969 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4970 fi
4971
4972 if test "$wxUSE_MS_HTML_HELP" = yes; then
4973 echo "$ac_t""yes" 1>&6
4974 else
4975 echo "$ac_t""no" 1>&6
4976 fi
4977
4978
4979 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4980echo "configure:4981: checking for --enable-html" >&5
4981 no_cache=0
4982 # Check whether --enable-html or --disable-html was given.
4983if test "${enable_html+set}" = set; then
4984 enableval="$enable_html"
4985
4986 if test "$enableval" = yes; then
4987 ac_cv_use_html='wxUSE_HTML=yes'
4988 else
4989 ac_cv_use_html='wxUSE_HTML=no'
4990 fi
4991
4992else
4993
4994 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4995 if test "x$LINE" != x ; then
4996 eval "DEFAULT_$LINE"
4997 else
4998 no_cache=1
4999 fi
5000
5001 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5002
5003fi
5004
5005
5006 eval "$ac_cv_use_html"
5007 if test "$no_cache" != 1; then
5008 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5009 fi
5010
5011 if test "$wxUSE_HTML" = yes; then
5012 echo "$ac_t""yes" 1>&6
5013 else
5014 echo "$ac_t""no" 1>&6
5015 fi
5016
5017
5018 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
5019echo "configure:5020: checking for --enable-htmlhelp" >&5
5020 no_cache=0
5021 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5022if test "${enable_htmlhelp+set}" = set; then
5023 enableval="$enable_htmlhelp"
5024
5025 if test "$enableval" = yes; then
5026 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5027 else
5028 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5029 fi
5030
5031else
5032
5033 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5034 if test "x$LINE" != x ; then
5035 eval "DEFAULT_$LINE"
5036 else
5037 no_cache=1
5038 fi
5039
5040 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5041
5042fi
5043
5044
5045 eval "$ac_cv_use_htmlhelp"
5046 if test "$no_cache" != 1; then
5047 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5048 fi
5049
5050 if test "$wxUSE_WXHTML_HELP" = yes; then
5051 echo "$ac_t""yes" 1>&6
5052 else
5053 echo "$ac_t""no" 1>&6
5054 fi
5055
5056
5057 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
5058echo "configure:5059: checking for --enable-constraints" >&5
5059 no_cache=0
5060 # Check whether --enable-constraints or --disable-constraints was given.
5061if test "${enable_constraints+set}" = set; then
5062 enableval="$enable_constraints"
5063
5064 if test "$enableval" = yes; then
5065 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5066 else
5067 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5068 fi
5069
5070else
5071
5072 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5073 if test "x$LINE" != x ; then
5074 eval "DEFAULT_$LINE"
5075 else
5076 no_cache=1
5077 fi
5078
5079 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5080
5081fi
5082
5083
5084 eval "$ac_cv_use_constraints"
5085 if test "$no_cache" != 1; then
5086 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5087 fi
5088
5089 if test "$wxUSE_CONSTRAINTS" = yes; then
5090 echo "$ac_t""yes" 1>&6
5091 else
5092 echo "$ac_t""no" 1>&6
5093 fi
5094
5095
5096 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
5097echo "configure:5098: checking for --enable-printarch" >&5
5098 no_cache=0
5099 # Check whether --enable-printarch or --disable-printarch was given.
5100if test "${enable_printarch+set}" = set; then
5101 enableval="$enable_printarch"
5102
5103 if test "$enableval" = yes; then
5104 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5105 else
5106 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5107 fi
5108
5109else
5110
5111 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5112 if test "x$LINE" != x ; then
5113 eval "DEFAULT_$LINE"
5114 else
5115 no_cache=1
5116 fi
5117
5118 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5119
5120fi
5121
5122
5123 eval "$ac_cv_use_printarch"
5124 if test "$no_cache" != 1; then
5125 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5126 fi
5127
5128 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5129 echo "$ac_t""yes" 1>&6
5130 else
5131 echo "$ac_t""no" 1>&6
5132 fi
5133
5134
5135 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
5136echo "configure:5137: checking for --enable-mdi" >&5
5137 no_cache=0
5138 # Check whether --enable-mdi or --disable-mdi was given.
5139if test "${enable_mdi+set}" = set; then
5140 enableval="$enable_mdi"
5141
5142 if test "$enableval" = yes; then
5143 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5144 else
5145 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5146 fi
5147
5148else
5149
5150 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5151 if test "x$LINE" != x ; then
5152 eval "DEFAULT_$LINE"
5153 else
5154 no_cache=1
5155 fi
5156
5157 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5158
5159fi
5160
5161
5162 eval "$ac_cv_use_mdi"
5163 if test "$no_cache" != 1; then
5164 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5165 fi
5166
5167 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5168 echo "$ac_t""yes" 1>&6
5169 else
5170 echo "$ac_t""no" 1>&6
5171 fi
5172
5173
5174 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
5175echo "configure:5176: checking for --enable-loggui" >&5
5176 no_cache=0
5177 # Check whether --enable-loggui or --disable-loggui was given.
5178if test "${enable_loggui+set}" = set; then
5179 enableval="$enable_loggui"
5180
5181 if test "$enableval" = yes; then
5182 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5183 else
5184 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5185 fi
5186
5187else
5188
5189 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5190 if test "x$LINE" != x ; then
5191 eval "DEFAULT_$LINE"
5192 else
5193 no_cache=1
5194 fi
5195
5196 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5197
5198fi
5199
5200
5201 eval "$ac_cv_use_loggui"
5202 if test "$no_cache" != 1; then
5203 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5204 fi
5205
5206 if test "$wxUSE_LOGGUI" = yes; then
5207 echo "$ac_t""yes" 1>&6
5208 else
5209 echo "$ac_t""no" 1>&6
5210 fi
5211
5212
5213 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
5214echo "configure:5215: checking for --enable-logwin" >&5
5215 no_cache=0
5216 # Check whether --enable-logwin or --disable-logwin was given.
5217if test "${enable_logwin+set}" = set; then
5218 enableval="$enable_logwin"
5219
5220 if test "$enableval" = yes; then
5221 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5222 else
5223 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5224 fi
5225
5226else
5227
5228 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5229 if test "x$LINE" != x ; then
5230 eval "DEFAULT_$LINE"
5231 else
5232 no_cache=1
5233 fi
5234
5235 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5236
5237fi
5238
5239
5240 eval "$ac_cv_use_logwin"
5241 if test "$no_cache" != 1; then
5242 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5243 fi
5244
5245 if test "$wxUSE_LOGWINDOW" = yes; then
5246 echo "$ac_t""yes" 1>&6
5247 else
5248 echo "$ac_t""no" 1>&6
5249 fi
5250
5251
5252 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
5253echo "configure:5254: checking for --enable-logdialog" >&5
5254 no_cache=0
5255 # Check whether --enable-logdialog or --disable-logdialog was given.
5256if test "${enable_logdialog+set}" = set; then
5257 enableval="$enable_logdialog"
5258
5259 if test "$enableval" = yes; then
5260 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5261 else
5262 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5263 fi
5264
5265else
5266
5267 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5268 if test "x$LINE" != x ; then
5269 eval "DEFAULT_$LINE"
5270 else
5271 no_cache=1
5272 fi
5273
5274 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5275
5276fi
5277
5278
5279 eval "$ac_cv_use_logdialog"
5280 if test "$no_cache" != 1; then
5281 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5282 fi
5283
5284 if test "$wxUSE_LOGDIALOG" = yes; then
5285 echo "$ac_t""yes" 1>&6
5286 else
5287 echo "$ac_t""no" 1>&6
5288 fi
5289
5290
5291
5292 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
5293echo "configure:5294: checking for --enable-postscript" >&5
5294 no_cache=0
5295 # Check whether --enable-postscript or --disable-postscript was given.
5296if test "${enable_postscript+set}" = set; then
5297 enableval="$enable_postscript"
5298
5299 if test "$enableval" = yes; then
5300 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5301 else
5302 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5303 fi
5304
5305else
5306
5307 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5308 if test "x$LINE" != x ; then
5309 eval "DEFAULT_$LINE"
5310 else
5311 no_cache=1
5312 fi
5313
5314 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5315
5316fi
5317
5318
5319 eval "$ac_cv_use_postscript"
5320 if test "$no_cache" != 1; then
5321 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5322 fi
5323
5324 if test "$wxUSE_POSTSCRIPT" = yes; then
5325 echo "$ac_t""yes" 1>&6
5326 else
5327 echo "$ac_t""no" 1>&6
5328 fi
5329
5330
5331
5332
5333
5334 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
5335echo "configure:5336: checking for --enable-prologio" >&5
5336 no_cache=0
5337 # Check whether --enable-prologio or --disable-prologio was given.
5338if test "${enable_prologio+set}" = set; then
5339 enableval="$enable_prologio"
5340
5341 if test "$enableval" = yes; then
5342 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5343 else
5344 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5345 fi
5346
5347else
5348
5349 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5350 if test "x$LINE" != x ; then
5351 eval "DEFAULT_$LINE"
5352 else
5353 no_cache=1
5354 fi
5355
5356 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5357
5358fi
5359
5360
5361 eval "$ac_cv_use_prologio"
5362 if test "$no_cache" != 1; then
5363 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5364 fi
5365
5366 if test "$wxUSE_PROLOGIO" = yes; then
5367 echo "$ac_t""yes" 1>&6
5368 else
5369 echo "$ac_t""no" 1>&6
5370 fi
5371
5372
5373 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
5374echo "configure:5375: checking for --enable-resources" >&5
5375 no_cache=0
5376 # Check whether --enable-resources or --disable-resources was given.
5377if test "${enable_resources+set}" = set; then
5378 enableval="$enable_resources"
5379
5380 if test "$enableval" = yes; then
5381 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5382 else
5383 ac_cv_use_resources='wxUSE_RESOURCES=no'
5384 fi
5385
5386else
5387
5388 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5389 if test "x$LINE" != x ; then
5390 eval "DEFAULT_$LINE"
5391 else
5392 no_cache=1
5393 fi
5394
5395 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5396
5397fi
5398
5399
5400 eval "$ac_cv_use_resources"
5401 if test "$no_cache" != 1; then
5402 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5403 fi
5404
5405 if test "$wxUSE_RESOURCES" = yes; then
5406 echo "$ac_t""yes" 1>&6
5407 else
5408 echo "$ac_t""no" 1>&6
5409 fi
5410
5411
5412
5413 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
5414echo "configure:5415: checking for --enable-xresources" >&5
5415 no_cache=0
5416 # Check whether --enable-xresources or --disable-xresources was given.
5417if test "${enable_xresources+set}" = set; then
5418 enableval="$enable_xresources"
5419
5420 if test "$enableval" = yes; then
5421 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5422 else
5423 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5424 fi
5425
5426else
5427
5428 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5429 if test "x$LINE" != x ; then
5430 eval "DEFAULT_$LINE"
5431 else
5432 no_cache=1
5433 fi
5434
5435 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5436
5437fi
5438
5439
5440 eval "$ac_cv_use_xresources"
5441 if test "$no_cache" != 1; then
5442 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5443 fi
5444
5445 if test "$wxUSE_X_RESOURCES" = yes; then
5446 echo "$ac_t""yes" 1>&6
5447 else
5448 echo "$ac_t""no" 1>&6
5449 fi
5450
5451
5452
5453
5454 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
5455echo "configure:5456: checking for --enable-clipboard" >&5
5456 no_cache=0
5457 # Check whether --enable-clipboard or --disable-clipboard was given.
5458if test "${enable_clipboard+set}" = set; then
5459 enableval="$enable_clipboard"
5460
5461 if test "$enableval" = yes; then
5462 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5463 else
5464 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5465 fi
5466
5467else
5468
5469 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5470 if test "x$LINE" != x ; then
5471 eval "DEFAULT_$LINE"
5472 else
5473 no_cache=1
5474 fi
5475
5476 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5477
5478fi
5479
5480
5481 eval "$ac_cv_use_clipboard"
5482 if test "$no_cache" != 1; then
5483 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5484 fi
5485
5486 if test "$wxUSE_CLIPBOARD" = yes; then
5487 echo "$ac_t""yes" 1>&6
5488 else
5489 echo "$ac_t""no" 1>&6
5490 fi
5491
5492
5493 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
5494echo "configure:5495: checking for --enable-dnd" >&5
5495 no_cache=0
5496 # Check whether --enable-dnd or --disable-dnd was given.
5497if test "${enable_dnd+set}" = set; then
5498 enableval="$enable_dnd"
5499
5500 if test "$enableval" = yes; then
5501 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5502 else
5503 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5504 fi
5505
5506else
5507
5508 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5509 if test "x$LINE" != x ; then
5510 eval "DEFAULT_$LINE"
5511 else
5512 no_cache=1
5513 fi
5514
5515 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5516
5517fi
5518
5519
5520 eval "$ac_cv_use_dnd"
5521 if test "$no_cache" != 1; then
5522 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5523 fi
5524
5525 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5526 echo "$ac_t""yes" 1>&6
5527 else
5528 echo "$ac_t""no" 1>&6
5529 fi
5530
5531
5532 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
5533echo "configure:5534: checking for --enable-metafile" >&5
5534 no_cache=0
5535 # Check whether --enable-metafile or --disable-metafile was given.
5536if test "${enable_metafile+set}" = set; then
5537 enableval="$enable_metafile"
5538
5539 if test "$enableval" = yes; then
5540 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5541 else
5542 ac_cv_use_metafile='wxUSE_METAFILE=no'
5543 fi
5544
5545else
5546
5547 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5548 if test "x$LINE" != x ; then
5549 eval "DEFAULT_$LINE"
5550 else
5551 no_cache=1
5552 fi
5553
5554 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5555
5556fi
5557
5558
5559 eval "$ac_cv_use_metafile"
5560 if test "$no_cache" != 1; then
5561 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5562 fi
5563
5564 if test "$wxUSE_METAFILE" = yes; then
5565 echo "$ac_t""yes" 1>&6
5566 else
5567 echo "$ac_t""no" 1>&6
5568 fi
5569
5570
5571
5572 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5573echo "configure:5574: checking for --enable-treelayout" >&5
5574 no_cache=0
5575 # Check whether --enable-treelayout or --disable-treelayout was given.
5576if test "${enable_treelayout+set}" = set; then
5577 enableval="$enable_treelayout"
5578
5579 if test "$enableval" = yes; then
5580 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5581 else
5582 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5583 fi
5584
5585else
5586
5587 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5588 if test "x$LINE" != x ; then
5589 eval "DEFAULT_$LINE"
5590 else
5591 no_cache=1
5592 fi
5593
5594 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5595
5596fi
5597
5598
5599 eval "$ac_cv_use_treelayout"
5600 if test "$no_cache" != 1; then
5601 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5602 fi
5603
5604 if test "$wxUSE_TREELAYOUT" = yes; then
5605 echo "$ac_t""yes" 1>&6
5606 else
5607 echo "$ac_t""no" 1>&6
5608 fi
5609
5610
5611
5612
5613 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5614echo "configure:5615: checking for --enable-controls" >&5
5615 no_cache=0
5616 # Check whether --enable-controls or --disable-controls was given.
5617if test "${enable_controls+set}" = set; then
5618 enableval="$enable_controls"
5619
5620 if test "$enableval" = yes; then
5621 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5622 else
5623 ac_cv_use_controls='wxUSE_CONTROLS=no'
5624 fi
5625
5626else
5627
5628 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5629 if test "x$LINE" != x ; then
5630 eval "DEFAULT_$LINE"
5631 else
5632 no_cache=1
5633 fi
5634
5635 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5636
5637fi
5638
5639
5640 eval "$ac_cv_use_controls"
5641 if test "$no_cache" != 1; then
5642 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5643 fi
5644
5645 if test "$wxUSE_CONTROLS" = yes; then
5646 echo "$ac_t""yes" 1>&6
5647 else
5648 echo "$ac_t""no" 1>&6
5649 fi
5650
5651
5652if test "$wxUSE_CONTROLS" = "yes"; then
5653 DEFAULT_wxUSE_ACCEL=yes
5654 DEFAULT_wxUSE_BMPBUTTON=yes
5655 DEFAULT_wxUSE_BUTTON=yes
5656 DEFAULT_wxUSE_CALCTRL=no
5657 DEFAULT_wxUSE_CARET=yes
5658 DEFAULT_wxUSE_COMBOBOX=yes
5659 DEFAULT_wxUSE_CHECKBOX=yes
5660 DEFAULT_wxUSE_CHECKLISTBOX=yes
5661 DEFAULT_wxUSE_CHOICE=yes
5662 DEFAULT_wxUSE_GAUGE=yes
5663 DEFAULT_wxUSE_GRID=yes
5664 DEFAULT_wxUSE_NEW_GRID=yes
5665 DEFAULT_wxUSE_IMAGLIST=yes
5666 DEFAULT_wxUSE_LISTBOX=yes
5667 DEFAULT_wxUSE_LISTCTRL=yes
5668 DEFAULT_wxUSE_NOTEBOOK=yes
5669 DEFAULT_wxUSE_PROPSHEET=yes
5670 DEFAULT_wxUSE_RADIOBOX=yes
5671 DEFAULT_wxUSE_RADIOBTN=yes
5672 DEFAULT_wxUSE_SASH=yes
5673 DEFAULT_wxUSE_SCROLLBAR=yes
5674 DEFAULT_wxUSE_SLIDER=yes
5675 DEFAULT_wxUSE_SPINBTN=yes
5676 DEFAULT_wxUSE_SPINCTRL=yes
5677 DEFAULT_wxUSE_SPLITTER=yes
5678 DEFAULT_wxUSE_STATBMP=yes
5679 DEFAULT_wxUSE_STATBOX=yes
5680 DEFAULT_wxUSE_STATLINE=yes
5681 DEFAULT_wxUSE_STATUSBAR=yes
5682 DEFAULT_wxUSE_TAB_DIALOG=yes
5683 DEFAULT_wxUSE_TOGGLEBTN=yes
5684 DEFAULT_wxUSE_TOOLBAR=yes
5685 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5686 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5687 DEFAULT_wxUSE_TOOLTIPS=yes
5688 DEFAULT_wxUSE_TREECTRL=yes
5689 DEFAULT_wxUSE_POPUPWIN=yes
5690 DEFAULT_wxUSE_TIPWINDOW=yes
5691elif test "$wxUSE_CONTROLS" = "no"; then
5692 DEFAULT_wxUSE_ACCEL=no
5693 DEFAULT_wxUSE_BMPBUTTON=no
5694 DEFAULT_wxUSE_BUTTON=no
5695 DEFAULT_wxUSE_CALCTRL=no
5696 DEFAULT_wxUSE_CARET=no
5697 DEFAULT_wxUSE_COMBOBOX=no
5698 DEFAULT_wxUSE_CHECKBOX=no
5699 DEFAULT_wxUSE_CHECKLISTBOX=no
5700 DEFAULT_wxUSE_CHOICE=no
5701 DEFAULT_wxUSE_GAUGE=no
5702 DEFAULT_wxUSE_GRID=no
5703 DEFAULT_wxUSE_NEW_GRID=no
5704 DEFAULT_wxUSE_IMAGLIST=no
5705 DEFAULT_wxUSE_LISTBOX=no
5706 DEFAULT_wxUSE_LISTCTRL=no
5707 DEFAULT_wxUSE_NOTEBOOK=no
5708 DEFAULT_wxUSE_PROPSHEET=no
5709 DEFAULT_wxUSE_RADIOBOX=no
5710 DEFAULT_wxUSE_RADIOBTN=no
5711 DEFAULT_wxUSE_SASH=no
5712 DEFAULT_wxUSE_SCROLLBAR=no
5713 DEFAULT_wxUSE_SLIDER=no
5714 DEFAULT_wxUSE_SPINBTN=no
5715 DEFAULT_wxUSE_SPINCTRL=no
5716 DEFAULT_wxUSE_SPLITTER=no
5717 DEFAULT_wxUSE_STATBMP=no
5718 DEFAULT_wxUSE_STATBOX=no
5719 DEFAULT_wxUSE_STATLINE=no
5720 DEFAULT_wxUSE_STATUSBAR=no
5721 DEFAULT_wxUSE_TAB_DIALOG=no
5722 DEFAULT_wxUSE_TOGGLEBTN=no
5723 DEFAULT_wxUSE_TOOLBAR=no
5724 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5725 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5726 DEFAULT_wxUSE_TOOLTIPS=no
5727 DEFAULT_wxUSE_TREECTRL=no
5728 DEFAULT_wxUSE_POPUPWIN=no
5729 DEFAULT_wxUSE_TIPWINDOW=no
5730fi
5731
5732
5733 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5734echo "configure:5735: checking for --enable-accel" >&5
5735 no_cache=0
5736 # Check whether --enable-accel or --disable-accel was given.
5737if test "${enable_accel+set}" = set; then
5738 enableval="$enable_accel"
5739
5740 if test "$enableval" = yes; then
5741 ac_cv_use_accel='wxUSE_ACCEL=yes'
5742 else
5743 ac_cv_use_accel='wxUSE_ACCEL=no'
5744 fi
5745
5746else
5747
5748 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5749 if test "x$LINE" != x ; then
5750 eval "DEFAULT_$LINE"
5751 else
5752 no_cache=1
5753 fi
5754
5755 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5756
5757fi
5758
5759
5760 eval "$ac_cv_use_accel"
5761 if test "$no_cache" != 1; then
5762 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5763 fi
5764
5765 if test "$wxUSE_ACCEL" = yes; then
5766 echo "$ac_t""yes" 1>&6
5767 else
5768 echo "$ac_t""no" 1>&6
5769 fi
5770
5771
5772 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5773echo "configure:5774: checking for --enable-button" >&5
5774 no_cache=0
5775 # Check whether --enable-button or --disable-button was given.
5776if test "${enable_button+set}" = set; then
5777 enableval="$enable_button"
5778
5779 if test "$enableval" = yes; then
5780 ac_cv_use_button='wxUSE_BUTTON=yes'
5781 else
5782 ac_cv_use_button='wxUSE_BUTTON=no'
5783 fi
5784
5785else
5786
5787 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5788 if test "x$LINE" != x ; then
5789 eval "DEFAULT_$LINE"
5790 else
5791 no_cache=1
5792 fi
5793
5794 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5795
5796fi
5797
5798
5799 eval "$ac_cv_use_button"
5800 if test "$no_cache" != 1; then
5801 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5802 fi
5803
5804 if test "$wxUSE_BUTTON" = yes; then
5805 echo "$ac_t""yes" 1>&6
5806 else
5807 echo "$ac_t""no" 1>&6
5808 fi
5809
5810
5811 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5812echo "configure:5813: checking for --enable-bmpbutton" >&5
5813 no_cache=0
5814 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5815if test "${enable_bmpbutton+set}" = set; then
5816 enableval="$enable_bmpbutton"
5817
5818 if test "$enableval" = yes; then
5819 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5820 else
5821 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5822 fi
5823
5824else
5825
5826 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5827 if test "x$LINE" != x ; then
5828 eval "DEFAULT_$LINE"
5829 else
5830 no_cache=1
5831 fi
5832
5833 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5834
5835fi
5836
5837
5838 eval "$ac_cv_use_bmpbutton"
5839 if test "$no_cache" != 1; then
5840 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5841 fi
5842
5843 if test "$wxUSE_BMPBUTTON" = yes; then
5844 echo "$ac_t""yes" 1>&6
5845 else
5846 echo "$ac_t""no" 1>&6
5847 fi
5848
5849
5850 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5851echo "configure:5852: checking for --enable-calendar" >&5
5852 no_cache=0
5853 # Check whether --enable-calendar or --disable-calendar was given.
5854if test "${enable_calendar+set}" = set; then
5855 enableval="$enable_calendar"
5856
5857 if test "$enableval" = yes; then
5858 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5859 else
5860 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5861 fi
5862
5863else
5864
5865 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5866 if test "x$LINE" != x ; then
5867 eval "DEFAULT_$LINE"
5868 else
5869 no_cache=1
5870 fi
5871
5872 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5873
5874fi
5875
5876
5877 eval "$ac_cv_use_calendar"
5878 if test "$no_cache" != 1; then
5879 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5880 fi
5881
5882 if test "$wxUSE_CALCTRL" = yes; then
5883 echo "$ac_t""yes" 1>&6
5884 else
5885 echo "$ac_t""no" 1>&6
5886 fi
5887
5888
5889 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5890echo "configure:5891: checking for --enable-caret" >&5
5891 no_cache=0
5892 # Check whether --enable-caret or --disable-caret was given.
5893if test "${enable_caret+set}" = set; then
5894 enableval="$enable_caret"
5895
5896 if test "$enableval" = yes; then
5897 ac_cv_use_caret='wxUSE_CARET=yes'
5898 else
5899 ac_cv_use_caret='wxUSE_CARET=no'
5900 fi
5901
5902else
5903
5904 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5905 if test "x$LINE" != x ; then
5906 eval "DEFAULT_$LINE"
5907 else
5908 no_cache=1
5909 fi
5910
5911 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5912
5913fi
5914
5915
5916 eval "$ac_cv_use_caret"
5917 if test "$no_cache" != 1; then
5918 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5919 fi
5920
5921 if test "$wxUSE_CARET" = yes; then
5922 echo "$ac_t""yes" 1>&6
5923 else
5924 echo "$ac_t""no" 1>&6
5925 fi
5926
5927
5928 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5929echo "configure:5930: checking for --enable-checkbox" >&5
5930 no_cache=0
5931 # Check whether --enable-checkbox or --disable-checkbox was given.
5932if test "${enable_checkbox+set}" = set; then
5933 enableval="$enable_checkbox"
5934
5935 if test "$enableval" = yes; then
5936 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5937 else
5938 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5939 fi
5940
5941else
5942
5943 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5944 if test "x$LINE" != x ; then
5945 eval "DEFAULT_$LINE"
5946 else
5947 no_cache=1
5948 fi
5949
5950 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5951
5952fi
5953
5954
5955 eval "$ac_cv_use_checkbox"
5956 if test "$no_cache" != 1; then
5957 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5958 fi
5959
5960 if test "$wxUSE_CHECKBOX" = yes; then
5961 echo "$ac_t""yes" 1>&6
5962 else
5963 echo "$ac_t""no" 1>&6
5964 fi
5965
5966
5967 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5968echo "configure:5969: checking for --enable-checklst" >&5
5969 no_cache=0
5970 # Check whether --enable-checklst or --disable-checklst was given.
5971if test "${enable_checklst+set}" = set; then
5972 enableval="$enable_checklst"
5973
5974 if test "$enableval" = yes; then
5975 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5976 else
5977 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5978 fi
5979
5980else
5981
5982 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5983 if test "x$LINE" != x ; then
5984 eval "DEFAULT_$LINE"
5985 else
5986 no_cache=1
5987 fi
5988
5989 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5990
5991fi
5992
5993
5994 eval "$ac_cv_use_checklst"
5995 if test "$no_cache" != 1; then
5996 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5997 fi
5998
5999 if test "$wxUSE_CHECKLST" = yes; then
6000 echo "$ac_t""yes" 1>&6
6001 else
6002 echo "$ac_t""no" 1>&6
6003 fi
6004
6005
6006 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
6007echo "configure:6008: checking for --enable-choice" >&5
6008 no_cache=0
6009 # Check whether --enable-choice or --disable-choice was given.
6010if test "${enable_choice+set}" = set; then
6011 enableval="$enable_choice"
6012
6013 if test "$enableval" = yes; then
6014 ac_cv_use_choice='wxUSE_CHOICE=yes'
6015 else
6016 ac_cv_use_choice='wxUSE_CHOICE=no'
6017 fi
6018
6019else
6020
6021 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6022 if test "x$LINE" != x ; then
6023 eval "DEFAULT_$LINE"
6024 else
6025 no_cache=1
6026 fi
6027
6028 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6029
6030fi
6031
6032
6033 eval "$ac_cv_use_choice"
6034 if test "$no_cache" != 1; then
6035 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6036 fi
6037
6038 if test "$wxUSE_CHOICE" = yes; then
6039 echo "$ac_t""yes" 1>&6
6040 else
6041 echo "$ac_t""no" 1>&6
6042 fi
6043
6044
6045 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
6046echo "configure:6047: checking for --enable-combobox" >&5
6047 no_cache=0
6048 # Check whether --enable-combobox or --disable-combobox was given.
6049if test "${enable_combobox+set}" = set; then
6050 enableval="$enable_combobox"
6051
6052 if test "$enableval" = yes; then
6053 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6054 else
6055 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6056 fi
6057
6058else
6059
6060 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6061 if test "x$LINE" != x ; then
6062 eval "DEFAULT_$LINE"
6063 else
6064 no_cache=1
6065 fi
6066
6067 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6068
6069fi
6070
6071
6072 eval "$ac_cv_use_combobox"
6073 if test "$no_cache" != 1; then
6074 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6075 fi
6076
6077 if test "$wxUSE_COMBOBOX" = yes; then
6078 echo "$ac_t""yes" 1>&6
6079 else
6080 echo "$ac_t""no" 1>&6
6081 fi
6082
6083
6084 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
6085echo "configure:6086: checking for --enable-gauge" >&5
6086 no_cache=0
6087 # Check whether --enable-gauge or --disable-gauge was given.
6088if test "${enable_gauge+set}" = set; then
6089 enableval="$enable_gauge"
6090
6091 if test "$enableval" = yes; then
6092 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6093 else
6094 ac_cv_use_gauge='wxUSE_GAUGE=no'
6095 fi
6096
6097else
6098
6099 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6100 if test "x$LINE" != x ; then
6101 eval "DEFAULT_$LINE"
6102 else
6103 no_cache=1
6104 fi
6105
6106 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6107
6108fi
6109
6110
6111 eval "$ac_cv_use_gauge"
6112 if test "$no_cache" != 1; then
6113 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6114 fi
6115
6116 if test "$wxUSE_GAUGE" = yes; then
6117 echo "$ac_t""yes" 1>&6
6118 else
6119 echo "$ac_t""no" 1>&6
6120 fi
6121
6122
6123 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
6124echo "configure:6125: checking for --enable-grid" >&5
6125 no_cache=0
6126 # Check whether --enable-grid or --disable-grid was given.
6127if test "${enable_grid+set}" = set; then
6128 enableval="$enable_grid"
6129
6130 if test "$enableval" = yes; then
6131 ac_cv_use_grid='wxUSE_GRID=yes'
6132 else
6133 ac_cv_use_grid='wxUSE_GRID=no'
6134 fi
6135
6136else
6137
6138 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6139 if test "x$LINE" != x ; then
6140 eval "DEFAULT_$LINE"
6141 else
6142 no_cache=1
6143 fi
6144
6145 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6146
6147fi
6148
6149
6150 eval "$ac_cv_use_grid"
6151 if test "$no_cache" != 1; then
6152 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6153 fi
6154
6155 if test "$wxUSE_GRID" = yes; then
6156 echo "$ac_t""yes" 1>&6
6157 else
6158 echo "$ac_t""no" 1>&6
6159 fi
6160
6161
6162 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
6163echo "configure:6164: checking for --enable-newgrid" >&5
6164 no_cache=0
6165 # Check whether --enable-newgrid or --disable-newgrid was given.
6166if test "${enable_newgrid+set}" = set; then
6167 enableval="$enable_newgrid"
6168
6169 if test "$enableval" = yes; then
6170 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6171 else
6172 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6173 fi
6174
6175else
6176
6177 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6178 if test "x$LINE" != x ; then
6179 eval "DEFAULT_$LINE"
6180 else
6181 no_cache=1
6182 fi
6183
6184 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6185
6186fi
6187
6188
6189 eval "$ac_cv_use_newgrid"
6190 if test "$no_cache" != 1; then
6191 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6192 fi
6193
6194 if test "$wxUSE_NEW_GRID" = yes; then
6195 echo "$ac_t""yes" 1>&6
6196 else
6197 echo "$ac_t""no" 1>&6
6198 fi
6199
6200
6201 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
6202echo "configure:6203: checking for --enable-imaglist" >&5
6203 no_cache=0
6204 # Check whether --enable-imaglist or --disable-imaglist was given.
6205if test "${enable_imaglist+set}" = set; then
6206 enableval="$enable_imaglist"
6207
6208 if test "$enableval" = yes; then
6209 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6210 else
6211 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6212 fi
6213
6214else
6215
6216 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6217 if test "x$LINE" != x ; then
6218 eval "DEFAULT_$LINE"
6219 else
6220 no_cache=1
6221 fi
6222
6223 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6224
6225fi
6226
6227
6228 eval "$ac_cv_use_imaglist"
6229 if test "$no_cache" != 1; then
6230 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6231 fi
6232
6233 if test "$wxUSE_IMAGLIST" = yes; then
6234 echo "$ac_t""yes" 1>&6
6235 else
6236 echo "$ac_t""no" 1>&6
6237 fi
6238
6239
6240 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
6241echo "configure:6242: checking for --enable-listbox" >&5
6242 no_cache=0
6243 # Check whether --enable-listbox or --disable-listbox was given.
6244if test "${enable_listbox+set}" = set; then
6245 enableval="$enable_listbox"
6246
6247 if test "$enableval" = yes; then
6248 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6249 else
6250 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6251 fi
6252
6253else
6254
6255 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6256 if test "x$LINE" != x ; then
6257 eval "DEFAULT_$LINE"
6258 else
6259 no_cache=1
6260 fi
6261
6262 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6263
6264fi
6265
6266
6267 eval "$ac_cv_use_listbox"
6268 if test "$no_cache" != 1; then
6269 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6270 fi
6271
6272 if test "$wxUSE_LISTBOX" = yes; then
6273 echo "$ac_t""yes" 1>&6
6274 else
6275 echo "$ac_t""no" 1>&6
6276 fi
6277
6278
6279 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
6280echo "configure:6281: checking for --enable-listctrl" >&5
6281 no_cache=0
6282 # Check whether --enable-listctrl or --disable-listctrl was given.
6283if test "${enable_listctrl+set}" = set; then
6284 enableval="$enable_listctrl"
6285
6286 if test "$enableval" = yes; then
6287 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6288 else
6289 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6290 fi
6291
6292else
6293
6294 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6295 if test "x$LINE" != x ; then
6296 eval "DEFAULT_$LINE"
6297 else
6298 no_cache=1
6299 fi
6300
6301 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6302
6303fi
6304
6305
6306 eval "$ac_cv_use_listctrl"
6307 if test "$no_cache" != 1; then
6308 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6309 fi
6310
6311 if test "$wxUSE_LISTCTRL" = yes; then
6312 echo "$ac_t""yes" 1>&6
6313 else
6314 echo "$ac_t""no" 1>&6
6315 fi
6316
6317
6318 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
6319echo "configure:6320: checking for --enable-notebook" >&5
6320 no_cache=0
6321 # Check whether --enable-notebook or --disable-notebook was given.
6322if test "${enable_notebook+set}" = set; then
6323 enableval="$enable_notebook"
6324
6325 if test "$enableval" = yes; then
6326 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6327 else
6328 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6329 fi
6330
6331else
6332
6333 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6334 if test "x$LINE" != x ; then
6335 eval "DEFAULT_$LINE"
6336 else
6337 no_cache=1
6338 fi
6339
6340 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6341
6342fi
6343
6344
6345 eval "$ac_cv_use_notebook"
6346 if test "$no_cache" != 1; then
6347 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6348 fi
6349
6350 if test "$wxUSE_NOTEBOOK" = yes; then
6351 echo "$ac_t""yes" 1>&6
6352 else
6353 echo "$ac_t""no" 1>&6
6354 fi
6355
6356
6357 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
6358echo "configure:6359: checking for --enable-propsheet" >&5
6359 no_cache=0
6360 # Check whether --enable-propsheet or --disable-propsheet was given.
6361if test "${enable_propsheet+set}" = set; then
6362 enableval="$enable_propsheet"
6363
6364 if test "$enableval" = yes; then
6365 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6366 else
6367 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6368 fi
6369
6370else
6371
6372 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6373 if test "x$LINE" != x ; then
6374 eval "DEFAULT_$LINE"
6375 else
6376 no_cache=1
6377 fi
6378
6379 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6380
6381fi
6382
6383
6384 eval "$ac_cv_use_propsheet"
6385 if test "$no_cache" != 1; then
6386 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6387 fi
6388
6389 if test "$wxUSE_PROPSHEET" = yes; then
6390 echo "$ac_t""yes" 1>&6
6391 else
6392 echo "$ac_t""no" 1>&6
6393 fi
6394
6395
6396 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
6397echo "configure:6398: checking for --enable-radiobox" >&5
6398 no_cache=0
6399 # Check whether --enable-radiobox or --disable-radiobox was given.
6400if test "${enable_radiobox+set}" = set; then
6401 enableval="$enable_radiobox"
6402
6403 if test "$enableval" = yes; then
6404 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6405 else
6406 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6407 fi
6408
6409else
6410
6411 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6412 if test "x$LINE" != x ; then
6413 eval "DEFAULT_$LINE"
6414 else
6415 no_cache=1
6416 fi
6417
6418 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6419
6420fi
6421
6422
6423 eval "$ac_cv_use_radiobox"
6424 if test "$no_cache" != 1; then
6425 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6426 fi
6427
6428 if test "$wxUSE_RADIOBOX" = yes; then
6429 echo "$ac_t""yes" 1>&6
6430 else
6431 echo "$ac_t""no" 1>&6
6432 fi
6433
6434
6435 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
6436echo "configure:6437: checking for --enable-radiobtn" >&5
6437 no_cache=0
6438 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6439if test "${enable_radiobtn+set}" = set; then
6440 enableval="$enable_radiobtn"
6441
6442 if test "$enableval" = yes; then
6443 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6444 else
6445 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6446 fi
6447
6448else
6449
6450 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6451 if test "x$LINE" != x ; then
6452 eval "DEFAULT_$LINE"
6453 else
6454 no_cache=1
6455 fi
6456
6457 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6458
6459fi
6460
6461
6462 eval "$ac_cv_use_radiobtn"
6463 if test "$no_cache" != 1; then
6464 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6465 fi
6466
6467 if test "$wxUSE_RADIOBTN" = yes; then
6468 echo "$ac_t""yes" 1>&6
6469 else
6470 echo "$ac_t""no" 1>&6
6471 fi
6472
6473
6474 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
6475echo "configure:6476: checking for --enable-sash" >&5
6476 no_cache=0
6477 # Check whether --enable-sash or --disable-sash was given.
6478if test "${enable_sash+set}" = set; then
6479 enableval="$enable_sash"
6480
6481 if test "$enableval" = yes; then
6482 ac_cv_use_sash='wxUSE_SASH=yes'
6483 else
6484 ac_cv_use_sash='wxUSE_SASH=no'
6485 fi
6486
6487else
6488
6489 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6490 if test "x$LINE" != x ; then
6491 eval "DEFAULT_$LINE"
6492 else
6493 no_cache=1
6494 fi
6495
6496 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6497
6498fi
6499
6500
6501 eval "$ac_cv_use_sash"
6502 if test "$no_cache" != 1; then
6503 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6504 fi
6505
6506 if test "$wxUSE_SASH" = yes; then
6507 echo "$ac_t""yes" 1>&6
6508 else
6509 echo "$ac_t""no" 1>&6
6510 fi
6511
6512
6513 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
6514echo "configure:6515: checking for --enable-scrollbar" >&5
6515 no_cache=0
6516 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6517if test "${enable_scrollbar+set}" = set; then
6518 enableval="$enable_scrollbar"
6519
6520 if test "$enableval" = yes; then
6521 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6522 else
6523 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6524 fi
6525
6526else
6527
6528 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6529 if test "x$LINE" != x ; then
6530 eval "DEFAULT_$LINE"
6531 else
6532 no_cache=1
6533 fi
6534
6535 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6536
6537fi
6538
6539
6540 eval "$ac_cv_use_scrollbar"
6541 if test "$no_cache" != 1; then
6542 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6543 fi
6544
6545 if test "$wxUSE_SCROLLBAR" = yes; then
6546 echo "$ac_t""yes" 1>&6
6547 else
6548 echo "$ac_t""no" 1>&6
6549 fi
6550
6551
6552 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
6553echo "configure:6554: checking for --enable-slider" >&5
6554 no_cache=0
6555 # Check whether --enable-slider or --disable-slider was given.
6556if test "${enable_slider+set}" = set; then
6557 enableval="$enable_slider"
6558
6559 if test "$enableval" = yes; then
6560 ac_cv_use_slider='wxUSE_SLIDER=yes'
6561 else
6562 ac_cv_use_slider='wxUSE_SLIDER=no'
6563 fi
6564
6565else
6566
6567 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6568 if test "x$LINE" != x ; then
6569 eval "DEFAULT_$LINE"
6570 else
6571 no_cache=1
6572 fi
6573
6574 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6575
6576fi
6577
6578
6579 eval "$ac_cv_use_slider"
6580 if test "$no_cache" != 1; then
6581 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6582 fi
6583
6584 if test "$wxUSE_SLIDER" = yes; then
6585 echo "$ac_t""yes" 1>&6
6586 else
6587 echo "$ac_t""no" 1>&6
6588 fi
6589
6590
6591 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6592echo "configure:6593: checking for --enable-spinbtn" >&5
6593 no_cache=0
6594 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6595if test "${enable_spinbtn+set}" = set; then
6596 enableval="$enable_spinbtn"
6597
6598 if test "$enableval" = yes; then
6599 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6600 else
6601 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6602 fi
6603
6604else
6605
6606 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6607 if test "x$LINE" != x ; then
6608 eval "DEFAULT_$LINE"
6609 else
6610 no_cache=1
6611 fi
6612
6613 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6614
6615fi
6616
6617
6618 eval "$ac_cv_use_spinbtn"
6619 if test "$no_cache" != 1; then
6620 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6621 fi
6622
6623 if test "$wxUSE_SPINBTN" = yes; then
6624 echo "$ac_t""yes" 1>&6
6625 else
6626 echo "$ac_t""no" 1>&6
6627 fi
6628
6629
6630 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6631echo "configure:6632: checking for --enable-spinctrl" >&5
6632 no_cache=0
6633 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6634if test "${enable_spinctrl+set}" = set; then
6635 enableval="$enable_spinctrl"
6636
6637 if test "$enableval" = yes; then
6638 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6639 else
6640 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6641 fi
6642
6643else
6644
6645 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6646 if test "x$LINE" != x ; then
6647 eval "DEFAULT_$LINE"
6648 else
6649 no_cache=1
6650 fi
6651
6652 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6653
6654fi
6655
6656
6657 eval "$ac_cv_use_spinctrl"
6658 if test "$no_cache" != 1; then
6659 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6660 fi
6661
6662 if test "$wxUSE_SPINCTRL" = yes; then
6663 echo "$ac_t""yes" 1>&6
6664 else
6665 echo "$ac_t""no" 1>&6
6666 fi
6667
6668
6669 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6670echo "configure:6671: checking for --enable-splitter" >&5
6671 no_cache=0
6672 # Check whether --enable-splitter or --disable-splitter was given.
6673if test "${enable_splitter+set}" = set; then
6674 enableval="$enable_splitter"
6675
6676 if test "$enableval" = yes; then
6677 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6678 else
6679 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6680 fi
6681
6682else
6683
6684 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6685 if test "x$LINE" != x ; then
6686 eval "DEFAULT_$LINE"
6687 else
6688 no_cache=1
6689 fi
6690
6691 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6692
6693fi
6694
6695
6696 eval "$ac_cv_use_splitter"
6697 if test "$no_cache" != 1; then
6698 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6699 fi
6700
6701 if test "$wxUSE_SPLITTER" = yes; then
6702 echo "$ac_t""yes" 1>&6
6703 else
6704 echo "$ac_t""no" 1>&6
6705 fi
6706
6707
6708 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6709echo "configure:6710: checking for --enable-statbmp" >&5
6710 no_cache=0
6711 # Check whether --enable-statbmp or --disable-statbmp was given.
6712if test "${enable_statbmp+set}" = set; then
6713 enableval="$enable_statbmp"
6714
6715 if test "$enableval" = yes; then
6716 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6717 else
6718 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6719 fi
6720
6721else
6722
6723 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6724 if test "x$LINE" != x ; then
6725 eval "DEFAULT_$LINE"
6726 else
6727 no_cache=1
6728 fi
6729
6730 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6731
6732fi
6733
6734
6735 eval "$ac_cv_use_statbmp"
6736 if test "$no_cache" != 1; then
6737 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6738 fi
6739
6740 if test "$wxUSE_STATBMP" = yes; then
6741 echo "$ac_t""yes" 1>&6
6742 else
6743 echo "$ac_t""no" 1>&6
6744 fi
6745
6746
6747 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6748echo "configure:6749: checking for --enable-statbox" >&5
6749 no_cache=0
6750 # Check whether --enable-statbox or --disable-statbox was given.
6751if test "${enable_statbox+set}" = set; then
6752 enableval="$enable_statbox"
6753
6754 if test "$enableval" = yes; then
6755 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6756 else
6757 ac_cv_use_statbox='wxUSE_STATBOX=no'
6758 fi
6759
6760else
6761
6762 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6763 if test "x$LINE" != x ; then
6764 eval "DEFAULT_$LINE"
6765 else
6766 no_cache=1
6767 fi
6768
6769 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6770
6771fi
6772
6773
6774 eval "$ac_cv_use_statbox"
6775 if test "$no_cache" != 1; then
6776 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6777 fi
6778
6779 if test "$wxUSE_STATBOX" = yes; then
6780 echo "$ac_t""yes" 1>&6
6781 else
6782 echo "$ac_t""no" 1>&6
6783 fi
6784
6785
6786 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6787echo "configure:6788: checking for --enable-statline" >&5
6788 no_cache=0
6789 # Check whether --enable-statline or --disable-statline was given.
6790if test "${enable_statline+set}" = set; then
6791 enableval="$enable_statline"
6792
6793 if test "$enableval" = yes; then
6794 ac_cv_use_statline='wxUSE_STATLINE=yes'
6795 else
6796 ac_cv_use_statline='wxUSE_STATLINE=no'
6797 fi
6798
6799else
6800
6801 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6802 if test "x$LINE" != x ; then
6803 eval "DEFAULT_$LINE"
6804 else
6805 no_cache=1
6806 fi
6807
6808 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6809
6810fi
6811
6812
6813 eval "$ac_cv_use_statline"
6814 if test "$no_cache" != 1; then
6815 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6816 fi
6817
6818 if test "$wxUSE_STATLINE" = yes; then
6819 echo "$ac_t""yes" 1>&6
6820 else
6821 echo "$ac_t""no" 1>&6
6822 fi
6823
6824
6825 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6826echo "configure:6827: checking for --enable-stattext" >&5
6827 no_cache=0
6828 # Check whether --enable-stattext or --disable-stattext was given.
6829if test "${enable_stattext+set}" = set; then
6830 enableval="$enable_stattext"
6831
6832 if test "$enableval" = yes; then
6833 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6834 else
6835 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6836 fi
6837
6838else
6839
6840 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6841 if test "x$LINE" != x ; then
6842 eval "DEFAULT_$LINE"
6843 else
6844 no_cache=1
6845 fi
6846
6847 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6848
6849fi
6850
6851
6852 eval "$ac_cv_use_stattext"
6853 if test "$no_cache" != 1; then
6854 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6855 fi
6856
6857 if test "$wxUSE_STATTEXT" = yes; then
6858 echo "$ac_t""yes" 1>&6
6859 else
6860 echo "$ac_t""no" 1>&6
6861 fi
6862
6863
6864 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6865echo "configure:6866: checking for --enable-statusbar" >&5
6866 no_cache=0
6867 # Check whether --enable-statusbar or --disable-statusbar was given.
6868if test "${enable_statusbar+set}" = set; then
6869 enableval="$enable_statusbar"
6870
6871 if test "$enableval" = yes; then
6872 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6873 else
6874 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6875 fi
6876
6877else
6878
6879 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6880 if test "x$LINE" != x ; then
6881 eval "DEFAULT_$LINE"
6882 else
6883 no_cache=1
6884 fi
6885
6886 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6887
6888fi
6889
6890
6891 eval "$ac_cv_use_statusbar"
6892 if test "$no_cache" != 1; then
6893 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6894 fi
6895
6896 if test "$wxUSE_STATUSBAR" = yes; then
6897 echo "$ac_t""yes" 1>&6
6898 else
6899 echo "$ac_t""no" 1>&6
6900 fi
6901
6902
6903 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6904echo "configure:6905: checking for --enable-tabdialog" >&5
6905 no_cache=0
6906 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6907if test "${enable_tabdialog+set}" = set; then
6908 enableval="$enable_tabdialog"
6909
6910 if test "$enableval" = yes; then
6911 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6912 else
6913 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6914 fi
6915
6916else
6917
6918 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6919 if test "x$LINE" != x ; then
6920 eval "DEFAULT_$LINE"
6921 else
6922 no_cache=1
6923 fi
6924
6925 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6926
6927fi
6928
6929
6930 eval "$ac_cv_use_tabdialog"
6931 if test "$no_cache" != 1; then
6932 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6933 fi
6934
6935 if test "$wxUSE_TABDIALOG" = yes; then
6936 echo "$ac_t""yes" 1>&6
6937 else
6938 echo "$ac_t""no" 1>&6
6939 fi
6940
6941
6942 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6943echo "configure:6944: checking for --enable-textctrl" >&5
6944 no_cache=0
6945 # Check whether --enable-textctrl or --disable-textctrl was given.
6946if test "${enable_textctrl+set}" = set; then
6947 enableval="$enable_textctrl"
6948
6949 if test "$enableval" = yes; then
6950 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6951 else
6952 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6953 fi
6954
6955else
6956
6957 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6958 if test "x$LINE" != x ; then
6959 eval "DEFAULT_$LINE"
6960 else
6961 no_cache=1
6962 fi
6963
6964 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6965
6966fi
6967
6968
6969 eval "$ac_cv_use_textctrl"
6970 if test "$no_cache" != 1; then
6971 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6972 fi
6973
6974 if test "$wxUSE_TEXTCTRL" = yes; then
6975 echo "$ac_t""yes" 1>&6
6976 else
6977 echo "$ac_t""no" 1>&6
6978 fi
6979
6980
6981 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6982echo "configure:6983: checking for --enable-togglebtn" >&5
6983 no_cache=0
6984 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6985if test "${enable_togglebtn+set}" = set; then
6986 enableval="$enable_togglebtn"
6987
6988 if test "$enableval" = yes; then
6989 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6990 else
6991 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6992 fi
6993
6994else
6995
6996 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6997 if test "x$LINE" != x ; then
6998 eval "DEFAULT_$LINE"
6999 else
7000 no_cache=1
7001 fi
7002
7003 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7004
7005fi
7006
7007
7008 eval "$ac_cv_use_togglebtn"
7009 if test "$no_cache" != 1; then
7010 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7011 fi
7012
7013 if test "$wxUSE_TOGGLEBTN" = yes; then
7014 echo "$ac_t""yes" 1>&6
7015 else
7016 echo "$ac_t""no" 1>&6
7017 fi
7018
7019
7020 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
7021echo "configure:7022: checking for --enable-toolbar" >&5
7022 no_cache=0
7023 # Check whether --enable-toolbar or --disable-toolbar was given.
7024if test "${enable_toolbar+set}" = set; then
7025 enableval="$enable_toolbar"
7026
7027 if test "$enableval" = yes; then
7028 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7029 else
7030 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7031 fi
7032
7033else
7034
7035 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7036 if test "x$LINE" != x ; then
7037 eval "DEFAULT_$LINE"
7038 else
7039 no_cache=1
7040 fi
7041
7042 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7043
7044fi
7045
7046
7047 eval "$ac_cv_use_toolbar"
7048 if test "$no_cache" != 1; then
7049 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7050 fi
7051
7052 if test "$wxUSE_TOOLBAR" = yes; then
7053 echo "$ac_t""yes" 1>&6
7054 else
7055 echo "$ac_t""no" 1>&6
7056 fi
7057
7058
7059 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
7060echo "configure:7061: checking for --enable-tbarnative" >&5
7061 no_cache=0
7062 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7063if test "${enable_tbarnative+set}" = set; then
7064 enableval="$enable_tbarnative"
7065
7066 if test "$enableval" = yes; then
7067 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7068 else
7069 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7070 fi
7071
7072else
7073
7074 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7075 if test "x$LINE" != x ; then
7076 eval "DEFAULT_$LINE"
7077 else
7078 no_cache=1
7079 fi
7080
7081 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7082
7083fi
7084
7085
7086 eval "$ac_cv_use_tbarnative"
7087 if test "$no_cache" != 1; then
7088 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7089 fi
7090
7091 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7092 echo "$ac_t""yes" 1>&6
7093 else
7094 echo "$ac_t""no" 1>&6
7095 fi
7096
7097
7098 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
7099echo "configure:7100: checking for --enable-tbarsmpl" >&5
7100 no_cache=0
7101 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7102if test "${enable_tbarsmpl+set}" = set; then
7103 enableval="$enable_tbarsmpl"
7104
7105 if test "$enableval" = yes; then
7106 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7107 else
7108 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7109 fi
7110
7111else
7112
7113 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7114 if test "x$LINE" != x ; then
7115 eval "DEFAULT_$LINE"
7116 else
7117 no_cache=1
7118 fi
7119
7120 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7121
7122fi
7123
7124
7125 eval "$ac_cv_use_tbarsmpl"
7126 if test "$no_cache" != 1; then
7127 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7128 fi
7129
7130 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7131 echo "$ac_t""yes" 1>&6
7132 else
7133 echo "$ac_t""no" 1>&6
7134 fi
7135
7136
7137 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
7138echo "configure:7139: checking for --enable-treectrl" >&5
7139 no_cache=0
7140 # Check whether --enable-treectrl or --disable-treectrl was given.
7141if test "${enable_treectrl+set}" = set; then
7142 enableval="$enable_treectrl"
7143
7144 if test "$enableval" = yes; then
7145 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7146 else
7147 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7148 fi
7149
7150else
7151
7152 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7153 if test "x$LINE" != x ; then
7154 eval "DEFAULT_$LINE"
7155 else
7156 no_cache=1
7157 fi
7158
7159 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7160
7161fi
7162
7163
7164 eval "$ac_cv_use_treectrl"
7165 if test "$no_cache" != 1; then
7166 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7167 fi
7168
7169 if test "$wxUSE_TREECTRL" = yes; then
7170 echo "$ac_t""yes" 1>&6
7171 else
7172 echo "$ac_t""no" 1>&6
7173 fi
7174
7175
7176 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
7177echo "configure:7178: checking for --enable-tipwindow" >&5
7178 no_cache=0
7179 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7180if test "${enable_tipwindow+set}" = set; then
7181 enableval="$enable_tipwindow"
7182
7183 if test "$enableval" = yes; then
7184 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7185 else
7186 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7187 fi
7188
7189else
7190
7191 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7192 if test "x$LINE" != x ; then
7193 eval "DEFAULT_$LINE"
7194 else
7195 no_cache=1
7196 fi
7197
7198 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7199
7200fi
7201
7202
7203 eval "$ac_cv_use_tipwindow"
7204 if test "$no_cache" != 1; then
7205 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7206 fi
7207
7208 if test "$wxUSE_TIPWINDOW" = yes; then
7209 echo "$ac_t""yes" 1>&6
7210 else
7211 echo "$ac_t""no" 1>&6
7212 fi
7213
7214
7215 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
7216echo "configure:7217: checking for --enable-popupwin" >&5
7217 no_cache=0
7218 # Check whether --enable-popupwin or --disable-popupwin was given.
7219if test "${enable_popupwin+set}" = set; then
7220 enableval="$enable_popupwin"
7221
7222 if test "$enableval" = yes; then
7223 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7224 else
7225 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7226 fi
7227
7228else
7229
7230 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7231 if test "x$LINE" != x ; then
7232 eval "DEFAULT_$LINE"
7233 else
7234 no_cache=1
7235 fi
7236
7237 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7238
7239fi
7240
7241
7242 eval "$ac_cv_use_popupwin"
7243 if test "$no_cache" != 1; then
7244 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7245 fi
7246
7247 if test "$wxUSE_POPUPWIN" = yes; then
7248 echo "$ac_t""yes" 1>&6
7249 else
7250 echo "$ac_t""no" 1>&6
7251 fi
7252
7253
7254
7255
7256 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
7257echo "configure:7258: checking for --enable-commondlg" >&5
7258 no_cache=0
7259 # Check whether --enable-commondlg or --disable-commondlg was given.
7260if test "${enable_commondlg+set}" = set; then
7261 enableval="$enable_commondlg"
7262
7263 if test "$enableval" = yes; then
7264 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7265 else
7266 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7267 fi
7268
7269else
7270
7271 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7272 if test "x$LINE" != x ; then
7273 eval "DEFAULT_$LINE"
7274 else
7275 no_cache=1
7276 fi
7277
7278 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7279
7280fi
7281
7282
7283 eval "$ac_cv_use_commondlg"
7284 if test "$no_cache" != 1; then
7285 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7286 fi
7287
7288 if test "$wxUSE_COMMONDLGS" = yes; then
7289 echo "$ac_t""yes" 1>&6
7290 else
7291 echo "$ac_t""no" 1>&6
7292 fi
7293
7294
7295 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
7296echo "configure:7297: checking for --enable-choicedlg" >&5
7297 no_cache=0
7298 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7299if test "${enable_choicedlg+set}" = set; then
7300 enableval="$enable_choicedlg"
7301
7302 if test "$enableval" = yes; then
7303 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7304 else
7305 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7306 fi
7307
7308else
7309
7310 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7311 if test "x$LINE" != x ; then
7312 eval "DEFAULT_$LINE"
7313 else
7314 no_cache=1
7315 fi
7316
7317 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7318
7319fi
7320
7321
7322 eval "$ac_cv_use_choicedlg"
7323 if test "$no_cache" != 1; then
7324 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7325 fi
7326
7327 if test "$wxUSE_CHOICEDLG" = yes; then
7328 echo "$ac_t""yes" 1>&6
7329 else
7330 echo "$ac_t""no" 1>&6
7331 fi
7332
7333
7334 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
7335echo "configure:7336: checking for --enable-coldlg" >&5
7336 no_cache=0
7337 # Check whether --enable-coldlg or --disable-coldlg was given.
7338if test "${enable_coldlg+set}" = set; then
7339 enableval="$enable_coldlg"
7340
7341 if test "$enableval" = yes; then
7342 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7343 else
7344 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7345 fi
7346
7347else
7348
7349 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7350 if test "x$LINE" != x ; then
7351 eval "DEFAULT_$LINE"
7352 else
7353 no_cache=1
7354 fi
7355
7356 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7357
7358fi
7359
7360
7361 eval "$ac_cv_use_coldlg"
7362 if test "$no_cache" != 1; then
7363 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7364 fi
7365
7366 if test "$wxUSE_COLOURDLG" = yes; then
7367 echo "$ac_t""yes" 1>&6
7368 else
7369 echo "$ac_t""no" 1>&6
7370 fi
7371
7372
7373 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
7374echo "configure:7375: checking for --enable-filedlg" >&5
7375 no_cache=0
7376 # Check whether --enable-filedlg or --disable-filedlg was given.
7377if test "${enable_filedlg+set}" = set; then
7378 enableval="$enable_filedlg"
7379
7380 if test "$enableval" = yes; then
7381 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7382 else
7383 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7384 fi
7385
7386else
7387
7388 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7389 if test "x$LINE" != x ; then
7390 eval "DEFAULT_$LINE"
7391 else
7392 no_cache=1
7393 fi
7394
7395 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7396
7397fi
7398
7399
7400 eval "$ac_cv_use_filedlg"
7401 if test "$no_cache" != 1; then
7402 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7403 fi
7404
7405 if test "$wxUSE_FILEDLG" = yes; then
7406 echo "$ac_t""yes" 1>&6
7407 else
7408 echo "$ac_t""no" 1>&6
7409 fi
7410
7411
7412 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
7413echo "configure:7414: checking for --enable-finddlg" >&5
7414 no_cache=0
7415 # Check whether --enable-finddlg or --disable-finddlg was given.
7416if test "${enable_finddlg+set}" = set; then
7417 enableval="$enable_finddlg"
7418
7419 if test "$enableval" = yes; then
7420 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7421 else
7422 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7423 fi
7424
7425else
7426
7427 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7428 if test "x$LINE" != x ; then
7429 eval "DEFAULT_$LINE"
7430 else
7431 no_cache=1
7432 fi
7433
7434 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7435
7436fi
7437
7438
7439 eval "$ac_cv_use_finddlg"
7440 if test "$no_cache" != 1; then
7441 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7442 fi
7443
7444 if test "$wxUSE_FINDREPLDLG" = yes; then
7445 echo "$ac_t""yes" 1>&6
7446 else
7447 echo "$ac_t""no" 1>&6
7448 fi
7449
7450
7451 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
7452echo "configure:7453: checking for --enable-fontdlg" >&5
7453 no_cache=0
7454 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7455if test "${enable_fontdlg+set}" = set; then
7456 enableval="$enable_fontdlg"
7457
7458 if test "$enableval" = yes; then
7459 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7460 else
7461 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7462 fi
7463
7464else
7465
7466 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7467 if test "x$LINE" != x ; then
7468 eval "DEFAULT_$LINE"
7469 else
7470 no_cache=1
7471 fi
7472
7473 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7474
7475fi
7476
7477
7478 eval "$ac_cv_use_fontdlg"
7479 if test "$no_cache" != 1; then
7480 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7481 fi
7482
7483 if test "$wxUSE_FONTDLG" = yes; then
7484 echo "$ac_t""yes" 1>&6
7485 else
7486 echo "$ac_t""no" 1>&6
7487 fi
7488
7489
7490 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
7491echo "configure:7492: checking for --enable-dirdlg" >&5
7492 no_cache=0
7493 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7494if test "${enable_dirdlg+set}" = set; then
7495 enableval="$enable_dirdlg"
7496
7497 if test "$enableval" = yes; then
7498 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7499 else
7500 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7501 fi
7502
7503else
7504
7505 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7506 if test "x$LINE" != x ; then
7507 eval "DEFAULT_$LINE"
7508 else
7509 no_cache=1
7510 fi
7511
7512 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7513
7514fi
7515
7516
7517 eval "$ac_cv_use_dirdlg"
7518 if test "$no_cache" != 1; then
7519 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7520 fi
7521
7522 if test "$wxUSE_DIRDLG" = yes; then
7523 echo "$ac_t""yes" 1>&6
7524 else
7525 echo "$ac_t""no" 1>&6
7526 fi
7527
7528
7529 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
7530echo "configure:7531: checking for --enable-msgdlg" >&5
7531 no_cache=0
7532 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7533if test "${enable_msgdlg+set}" = set; then
7534 enableval="$enable_msgdlg"
7535
7536 if test "$enableval" = yes; then
7537 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7538 else
7539 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7540 fi
7541
7542else
7543
7544 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7545 if test "x$LINE" != x ; then
7546 eval "DEFAULT_$LINE"
7547 else
7548 no_cache=1
7549 fi
7550
7551 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7552
7553fi
7554
7555
7556 eval "$ac_cv_use_msgdlg"
7557 if test "$no_cache" != 1; then
7558 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7559 fi
7560
7561 if test "$wxUSE_MSGDLG" = yes; then
7562 echo "$ac_t""yes" 1>&6
7563 else
7564 echo "$ac_t""no" 1>&6
7565 fi
7566
7567
7568 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
7569echo "configure:7570: checking for --enable-numberdlg" >&5
7570 no_cache=0
7571 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7572if test "${enable_numberdlg+set}" = set; then
7573 enableval="$enable_numberdlg"
7574
7575 if test "$enableval" = yes; then
7576 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7577 else
7578 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7579 fi
7580
7581else
7582
7583 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7584 if test "x$LINE" != x ; then
7585 eval "DEFAULT_$LINE"
7586 else
7587 no_cache=1
7588 fi
7589
7590 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7591
7592fi
7593
7594
7595 eval "$ac_cv_use_numberdlg"
7596 if test "$no_cache" != 1; then
7597 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7598 fi
7599
7600 if test "$wxUSE_NUMBERDLG" = yes; then
7601 echo "$ac_t""yes" 1>&6
7602 else
7603 echo "$ac_t""no" 1>&6
7604 fi
7605
7606
7607 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7608echo "configure:7609: checking for --enable-splash" >&5
7609 no_cache=0
7610 # Check whether --enable-splash or --disable-splash was given.
7611if test "${enable_splash+set}" = set; then
7612 enableval="$enable_splash"
7613
7614 if test "$enableval" = yes; then
7615 ac_cv_use_splash='wxUSE_SPLASH=yes'
7616 else
7617 ac_cv_use_splash='wxUSE_SPLASH=no'
7618 fi
7619
7620else
7621
7622 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7623 if test "x$LINE" != x ; then
7624 eval "DEFAULT_$LINE"
7625 else
7626 no_cache=1
7627 fi
7628
7629 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7630
7631fi
7632
7633
7634 eval "$ac_cv_use_splash"
7635 if test "$no_cache" != 1; then
7636 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7637 fi
7638
7639 if test "$wxUSE_SPLASH" = yes; then
7640 echo "$ac_t""yes" 1>&6
7641 else
7642 echo "$ac_t""no" 1>&6
7643 fi
7644
7645
7646 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7647echo "configure:7648: checking for --enable-textdlg" >&5
7648 no_cache=0
7649 # Check whether --enable-textdlg or --disable-textdlg was given.
7650if test "${enable_textdlg+set}" = set; then
7651 enableval="$enable_textdlg"
7652
7653 if test "$enableval" = yes; then
7654 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7655 else
7656 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7657 fi
7658
7659else
7660
7661 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7662 if test "x$LINE" != x ; then
7663 eval "DEFAULT_$LINE"
7664 else
7665 no_cache=1
7666 fi
7667
7668 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7669
7670fi
7671
7672
7673 eval "$ac_cv_use_textdlg"
7674 if test "$no_cache" != 1; then
7675 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7676 fi
7677
7678 if test "$wxUSE_TEXTDLG" = yes; then
7679 echo "$ac_t""yes" 1>&6
7680 else
7681 echo "$ac_t""no" 1>&6
7682 fi
7683
7684
7685 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7686echo "configure:7687: checking for --enable-tipdlg" >&5
7687 no_cache=0
7688 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7689if test "${enable_tipdlg+set}" = set; then
7690 enableval="$enable_tipdlg"
7691
7692 if test "$enableval" = yes; then
7693 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7694 else
7695 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7696 fi
7697
7698else
7699
7700 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7701 if test "x$LINE" != x ; then
7702 eval "DEFAULT_$LINE"
7703 else
7704 no_cache=1
7705 fi
7706
7707 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7708
7709fi
7710
7711
7712 eval "$ac_cv_use_tipdlg"
7713 if test "$no_cache" != 1; then
7714 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7715 fi
7716
7717 if test "$wxUSE_STARTUP_TIPS" = yes; then
7718 echo "$ac_t""yes" 1>&6
7719 else
7720 echo "$ac_t""no" 1>&6
7721 fi
7722
7723
7724 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7725echo "configure:7726: checking for --enable-progressdlg" >&5
7726 no_cache=0
7727 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7728if test "${enable_progressdlg+set}" = set; then
7729 enableval="$enable_progressdlg"
7730
7731 if test "$enableval" = yes; then
7732 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7733 else
7734 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7735 fi
7736
7737else
7738
7739 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7740 if test "x$LINE" != x ; then
7741 eval "DEFAULT_$LINE"
7742 else
7743 no_cache=1
7744 fi
7745
7746 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7747
7748fi
7749
7750
7751 eval "$ac_cv_use_progressdlg"
7752 if test "$no_cache" != 1; then
7753 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7754 fi
7755
7756 if test "$wxUSE_PROGRESSDLG" = yes; then
7757 echo "$ac_t""yes" 1>&6
7758 else
7759 echo "$ac_t""no" 1>&6
7760 fi
7761
7762
7763 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7764echo "configure:7765: checking for --enable-wizarddlg" >&5
7765 no_cache=0
7766 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7767if test "${enable_wizarddlg+set}" = set; then
7768 enableval="$enable_wizarddlg"
7769
7770 if test "$enableval" = yes; then
7771 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7772 else
7773 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7774 fi
7775
7776else
7777
7778 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7779 if test "x$LINE" != x ; then
7780 eval "DEFAULT_$LINE"
7781 else
7782 no_cache=1
7783 fi
7784
7785 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7786
7787fi
7788
7789
7790 eval "$ac_cv_use_wizarddlg"
7791 if test "$no_cache" != 1; then
7792 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7793 fi
7794
7795 if test "$wxUSE_WIZARDDLG" = yes; then
7796 echo "$ac_t""yes" 1>&6
7797 else
7798 echo "$ac_t""no" 1>&6
7799 fi
7800
7801
7802
7803
7804 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7805echo "configure:7806: checking for --enable-menus" >&5
7806 no_cache=0
7807 # Check whether --enable-menus or --disable-menus was given.
7808if test "${enable_menus+set}" = set; then
7809 enableval="$enable_menus"
7810
7811 if test "$enableval" = yes; then
7812 ac_cv_use_menus='wxUSE_MENUS=yes'
7813 else
7814 ac_cv_use_menus='wxUSE_MENUS=no'
7815 fi
7816
7817else
7818
7819 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7820 if test "x$LINE" != x ; then
7821 eval "DEFAULT_$LINE"
7822 else
7823 no_cache=1
7824 fi
7825
7826 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7827
7828fi
7829
7830
7831 eval "$ac_cv_use_menus"
7832 if test "$no_cache" != 1; then
7833 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7834 fi
7835
7836 if test "$wxUSE_MENUS" = yes; then
7837 echo "$ac_t""yes" 1>&6
7838 else
7839 echo "$ac_t""no" 1>&6
7840 fi
7841
7842
7843 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7844echo "configure:7845: checking for --enable-miniframe" >&5
7845 no_cache=0
7846 # Check whether --enable-miniframe or --disable-miniframe was given.
7847if test "${enable_miniframe+set}" = set; then
7848 enableval="$enable_miniframe"
7849
7850 if test "$enableval" = yes; then
7851 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7852 else
7853 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7854 fi
7855
7856else
7857
7858 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7859 if test "x$LINE" != x ; then
7860 eval "DEFAULT_$LINE"
7861 else
7862 no_cache=1
7863 fi
7864
7865 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7866
7867fi
7868
7869
7870 eval "$ac_cv_use_miniframe"
7871 if test "$no_cache" != 1; then
7872 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7873 fi
7874
7875 if test "$wxUSE_MINIFRAME" = yes; then
7876 echo "$ac_t""yes" 1>&6
7877 else
7878 echo "$ac_t""no" 1>&6
7879 fi
7880
7881
7882 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7883echo "configure:7884: checking for --enable-tooltips" >&5
7884 no_cache=0
7885 # Check whether --enable-tooltips or --disable-tooltips was given.
7886if test "${enable_tooltips+set}" = set; then
7887 enableval="$enable_tooltips"
7888
7889 if test "$enableval" = yes; then
7890 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7891 else
7892 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7893 fi
7894
7895else
7896
7897 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7898 if test "x$LINE" != x ; then
7899 eval "DEFAULT_$LINE"
7900 else
7901 no_cache=1
7902 fi
7903
7904 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7905
7906fi
7907
7908
7909 eval "$ac_cv_use_tooltips"
7910 if test "$no_cache" != 1; then
7911 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7912 fi
7913
7914 if test "$wxUSE_TOOLTIPS" = yes; then
7915 echo "$ac_t""yes" 1>&6
7916 else
7917 echo "$ac_t""no" 1>&6
7918 fi
7919
7920
7921 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7922echo "configure:7923: checking for --enable-splines" >&5
7923 no_cache=0
7924 # Check whether --enable-splines or --disable-splines was given.
7925if test "${enable_splines+set}" = set; then
7926 enableval="$enable_splines"
7927
7928 if test "$enableval" = yes; then
7929 ac_cv_use_splines='wxUSE_SPLINES=yes'
7930 else
7931 ac_cv_use_splines='wxUSE_SPLINES=no'
7932 fi
7933
7934else
7935
7936 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7937 if test "x$LINE" != x ; then
7938 eval "DEFAULT_$LINE"
7939 else
7940 no_cache=1
7941 fi
7942
7943 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7944
7945fi
7946
7947
7948 eval "$ac_cv_use_splines"
7949 if test "$no_cache" != 1; then
7950 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7951 fi
7952
7953 if test "$wxUSE_SPLINES" = yes; then
7954 echo "$ac_t""yes" 1>&6
7955 else
7956 echo "$ac_t""no" 1>&6
7957 fi
7958
7959
7960 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7961echo "configure:7962: checking for --enable-validators" >&5
7962 no_cache=0
7963 # Check whether --enable-validators or --disable-validators was given.
7964if test "${enable_validators+set}" = set; then
7965 enableval="$enable_validators"
7966
7967 if test "$enableval" = yes; then
7968 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7969 else
7970 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7971 fi
7972
7973else
7974
7975 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7976 if test "x$LINE" != x ; then
7977 eval "DEFAULT_$LINE"
7978 else
7979 no_cache=1
7980 fi
7981
7982 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7983
7984fi
7985
7986
7987 eval "$ac_cv_use_validators"
7988 if test "$no_cache" != 1; then
7989 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7990 fi
7991
7992 if test "$wxUSE_VALIDATORS" = yes; then
7993 echo "$ac_t""yes" 1>&6
7994 else
7995 echo "$ac_t""no" 1>&6
7996 fi
7997
7998
7999 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
8000echo "configure:8001: checking for --enable-busyinfo" >&5
8001 no_cache=0
8002 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8003if test "${enable_busyinfo+set}" = set; then
8004 enableval="$enable_busyinfo"
8005
8006 if test "$enableval" = yes; then
8007 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8008 else
8009 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8010 fi
8011
8012else
8013
8014 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8015 if test "x$LINE" != x ; then
8016 eval "DEFAULT_$LINE"
8017 else
8018 no_cache=1
8019 fi
8020
8021 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8022
8023fi
8024
8025
8026 eval "$ac_cv_use_busyinfo"
8027 if test "$no_cache" != 1; then
8028 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8029 fi
8030
8031 if test "$wxUSE_BUSYINFO" = yes; then
8032 echo "$ac_t""yes" 1>&6
8033 else
8034 echo "$ac_t""no" 1>&6
8035 fi
8036
8037
8038 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
8039echo "configure:8040: checking for --enable-joystick" >&5
8040 no_cache=0
8041 # Check whether --enable-joystick or --disable-joystick was given.
8042if test "${enable_joystick+set}" = set; then
8043 enableval="$enable_joystick"
8044
8045 if test "$enableval" = yes; then
8046 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8047 else
8048 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8049 fi
8050
8051else
8052
8053 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8054 if test "x$LINE" != x ; then
8055 eval "DEFAULT_$LINE"
8056 else
8057 no_cache=1
8058 fi
8059
8060 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8061
8062fi
8063
8064
8065 eval "$ac_cv_use_joystick"
8066 if test "$no_cache" != 1; then
8067 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8068 fi
8069
8070 if test "$wxUSE_JOYSTICK" = yes; then
8071 echo "$ac_t""yes" 1>&6
8072 else
8073 echo "$ac_t""no" 1>&6
8074 fi
8075
8076
8077 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
8078echo "configure:8079: checking for --enable-metafile" >&5
8079 no_cache=0
8080 # Check whether --enable-metafile or --disable-metafile was given.
8081if test "${enable_metafile+set}" = set; then
8082 enableval="$enable_metafile"
8083
8084 if test "$enableval" = yes; then
8085 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8086 else
8087 ac_cv_use_metafile='wxUSE_METAFILE=no'
8088 fi
8089
8090else
8091
8092 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8093 if test "x$LINE" != x ; then
8094 eval "DEFAULT_$LINE"
8095 else
8096 no_cache=1
8097 fi
8098
8099 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8100
8101fi
8102
8103
8104 eval "$ac_cv_use_metafile"
8105 if test "$no_cache" != 1; then
8106 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8107 fi
8108
8109 if test "$wxUSE_METAFILE" = yes; then
8110 echo "$ac_t""yes" 1>&6
8111 else
8112 echo "$ac_t""no" 1>&6
8113 fi
8114
8115
8116 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
8117echo "configure:8118: checking for --enable-dragimage" >&5
8118 no_cache=0
8119 # Check whether --enable-dragimage or --disable-dragimage was given.
8120if test "${enable_dragimage+set}" = set; then
8121 enableval="$enable_dragimage"
8122
8123 if test "$enableval" = yes; then
8124 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8125 else
8126 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8127 fi
8128
8129else
8130
8131 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8132 if test "x$LINE" != x ; then
8133 eval "DEFAULT_$LINE"
8134 else
8135 no_cache=1
8136 fi
8137
8138 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8139
8140fi
8141
8142
8143 eval "$ac_cv_use_dragimage"
8144 if test "$no_cache" != 1; then
8145 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8146 fi
8147
8148 if test "$wxUSE_DRAGIMAGE" = yes; then
8149 echo "$ac_t""yes" 1>&6
8150 else
8151 echo "$ac_t""no" 1>&6
8152 fi
8153
8154
8155
8156
8157 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
8158echo "configure:8159: checking for --enable-palette" >&5
8159 no_cache=0
8160 # Check whether --enable-palette or --disable-palette was given.
8161if test "${enable_palette+set}" = set; then
8162 enableval="$enable_palette"
8163
8164 if test "$enableval" = yes; then
8165 ac_cv_use_palette='wxUSE_PALETTE=yes'
8166 else
8167 ac_cv_use_palette='wxUSE_PALETTE=no'
8168 fi
8169
8170else
8171
8172 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8173 if test "x$LINE" != x ; then
8174 eval "DEFAULT_$LINE"
8175 else
8176 no_cache=1
8177 fi
8178
8179 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8180
8181fi
8182
8183
8184 eval "$ac_cv_use_palette"
8185 if test "$no_cache" != 1; then
8186 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8187 fi
8188
8189 if test "$wxUSE_PALETTE" = yes; then
8190 echo "$ac_t""yes" 1>&6
8191 else
8192 echo "$ac_t""no" 1>&6
8193 fi
8194
8195
8196 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
8197echo "configure:8198: checking for --enable-image" >&5
8198 no_cache=0
8199 # Check whether --enable-image or --disable-image was given.
8200if test "${enable_image+set}" = set; then
8201 enableval="$enable_image"
8202
8203 if test "$enableval" = yes; then
8204 ac_cv_use_image='wxUSE_IMAGE=yes'
8205 else
8206 ac_cv_use_image='wxUSE_IMAGE=no'
8207 fi
8208
8209else
8210
8211 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8212 if test "x$LINE" != x ; then
8213 eval "DEFAULT_$LINE"
8214 else
8215 no_cache=1
8216 fi
8217
8218 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8219
8220fi
8221
8222
8223 eval "$ac_cv_use_image"
8224 if test "$no_cache" != 1; then
8225 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8226 fi
8227
8228 if test "$wxUSE_IMAGE" = yes; then
8229 echo "$ac_t""yes" 1>&6
8230 else
8231 echo "$ac_t""no" 1>&6
8232 fi
8233
8234
8235 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
8236echo "configure:8237: checking for --enable-gif" >&5
8237 no_cache=0
8238 # Check whether --enable-gif or --disable-gif was given.
8239if test "${enable_gif+set}" = set; then
8240 enableval="$enable_gif"
8241
8242 if test "$enableval" = yes; then
8243 ac_cv_use_gif='wxUSE_GIF=yes'
8244 else
8245 ac_cv_use_gif='wxUSE_GIF=no'
8246 fi
8247
8248else
8249
8250 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8251 if test "x$LINE" != x ; then
8252 eval "DEFAULT_$LINE"
8253 else
8254 no_cache=1
8255 fi
8256
8257 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8258
8259fi
8260
8261
8262 eval "$ac_cv_use_gif"
8263 if test "$no_cache" != 1; then
8264 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8265 fi
8266
8267 if test "$wxUSE_GIF" = yes; then
8268 echo "$ac_t""yes" 1>&6
8269 else
8270 echo "$ac_t""no" 1>&6
8271 fi
8272
8273
8274 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
8275echo "configure:8276: checking for --enable-pcx" >&5
8276 no_cache=0
8277 # Check whether --enable-pcx or --disable-pcx was given.
8278if test "${enable_pcx+set}" = set; then
8279 enableval="$enable_pcx"
8280
8281 if test "$enableval" = yes; then
8282 ac_cv_use_pcx='wxUSE_PCX=yes'
8283 else
8284 ac_cv_use_pcx='wxUSE_PCX=no'
8285 fi
8286
8287else
8288
8289 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8290 if test "x$LINE" != x ; then
8291 eval "DEFAULT_$LINE"
8292 else
8293 no_cache=1
8294 fi
8295
8296 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8297
8298fi
8299
8300
8301 eval "$ac_cv_use_pcx"
8302 if test "$no_cache" != 1; then
8303 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8304 fi
8305
8306 if test "$wxUSE_PCX" = yes; then
8307 echo "$ac_t""yes" 1>&6
8308 else
8309 echo "$ac_t""no" 1>&6
8310 fi
8311
8312
8313 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
8314echo "configure:8315: checking for --enable-iff" >&5
8315 no_cache=0
8316 # Check whether --enable-iff or --disable-iff was given.
8317if test "${enable_iff+set}" = set; then
8318 enableval="$enable_iff"
8319
8320 if test "$enableval" = yes; then
8321 ac_cv_use_iff='wxUSE_IFF=yes'
8322 else
8323 ac_cv_use_iff='wxUSE_IFF=no'
8324 fi
8325
8326else
8327
8328 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8329 if test "x$LINE" != x ; then
8330 eval "DEFAULT_$LINE"
8331 else
8332 no_cache=1
8333 fi
8334
8335 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8336
8337fi
8338
8339
8340 eval "$ac_cv_use_iff"
8341 if test "$no_cache" != 1; then
8342 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8343 fi
8344
8345 if test "$wxUSE_IFF" = yes; then
8346 echo "$ac_t""yes" 1>&6
8347 else
8348 echo "$ac_t""no" 1>&6
8349 fi
8350
8351
8352 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
8353echo "configure:8354: checking for --enable-pnm" >&5
8354 no_cache=0
8355 # Check whether --enable-pnm or --disable-pnm was given.
8356if test "${enable_pnm+set}" = set; then
8357 enableval="$enable_pnm"
8358
8359 if test "$enableval" = yes; then
8360 ac_cv_use_pnm='wxUSE_PNM=yes'
8361 else
8362 ac_cv_use_pnm='wxUSE_PNM=no'
8363 fi
8364
8365else
8366
8367 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8368 if test "x$LINE" != x ; then
8369 eval "DEFAULT_$LINE"
8370 else
8371 no_cache=1
8372 fi
8373
8374 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8375
8376fi
8377
8378
8379 eval "$ac_cv_use_pnm"
8380 if test "$no_cache" != 1; then
8381 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8382 fi
8383
8384 if test "$wxUSE_PNM" = yes; then
8385 echo "$ac_t""yes" 1>&6
8386 else
8387 echo "$ac_t""no" 1>&6
8388 fi
8389
8390
8391 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
8392echo "configure:8393: checking for --enable-xpm" >&5
8393 no_cache=0
8394 # Check whether --enable-xpm or --disable-xpm was given.
8395if test "${enable_xpm+set}" = set; then
8396 enableval="$enable_xpm"
8397
8398 if test "$enableval" = yes; then
8399 ac_cv_use_xpm='wxUSE_XPM=yes'
8400 else
8401 ac_cv_use_xpm='wxUSE_XPM=no'
8402 fi
8403
8404else
8405
8406 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8407 if test "x$LINE" != x ; then
8408 eval "DEFAULT_$LINE"
8409 else
8410 no_cache=1
8411 fi
8412
8413 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8414
8415fi
8416
8417
8418 eval "$ac_cv_use_xpm"
8419 if test "$no_cache" != 1; then
8420 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8421 fi
8422
8423 if test "$wxUSE_XPM" = yes; then
8424 echo "$ac_t""yes" 1>&6
8425 else
8426 echo "$ac_t""no" 1>&6
8427 fi
8428
8429
8430 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
8431echo "configure:8432: checking for --enable-ico_cur" >&5
8432 no_cache=0
8433 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8434if test "${enable_ico_cur+set}" = set; then
8435 enableval="$enable_ico_cur"
8436
8437 if test "$enableval" = yes; then
8438 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8439 else
8440 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8441 fi
8442
8443else
8444
8445 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8446 if test "x$LINE" != x ; then
8447 eval "DEFAULT_$LINE"
8448 else
8449 no_cache=1
8450 fi
8451
8452 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8453
8454fi
8455
8456
8457 eval "$ac_cv_use_ico_cur"
8458 if test "$no_cache" != 1; then
8459 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8460 fi
8461
8462 if test "$wxUSE_ICO_CUR" = yes; then
8463 echo "$ac_t""yes" 1>&6
8464 else
8465 echo "$ac_t""no" 1>&6
8466 fi
8467
8468
8469fi
8470
8471
8472 echo "saving argument cache $wx_arg_cache_file"
8473 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8474
8475
8476
8477echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8478echo "configure:8479: checking for toolkit" >&5
8479
8480if test "$wxUSE_GUI" = "yes"; then
8481
8482 if test "$USE_BEOS" = 1; then
8483 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8484 fi
8485
8486 if test "$TOOLKIT_GIVEN" = 1; then
8487 for toolkit in `echo $ALL_TOOLKITS`; do
8488 var=wxUSE_$toolkit
8489 eval "value=\$${var}"
8490 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8491 done
8492 else
8493 for toolkit in `echo $ALL_TOOLKITS`; do
8494 if test "$has_toolkit_in_cache" != 1; then
8495 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8496 else
8497 var=DEFAULT_wxUSE_$toolkit
8498 fi
8499 eval "wxUSE_$toolkit=\$${var}"
8500 done
8501 fi
8502
8503 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
8504 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0}`
8505
8506 case "${host}" in
8507 *-pc-os2_emx | *-pc-os2-emx )
8508 # PATH_IFS is autodetected by OS/2's configure (usually ';')
8509 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8510 LEX_STEM="lexyy"
8511 ;;
8512 *)
8513 PATH_IFS=':'
8514 LEX_STEM="lex.yy"
8515 ;;
8516 esac
8517
8518 case "$NUM_TOOLKITS" in
8519 1)
8520 ;;
8521 0)
8522 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8523 ;;
8524 *)
8525 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8526 esac
8527
8528 for toolkit in `echo $ALL_TOOLKITS`; do
8529 var=wxUSE_$toolkit
8530 eval "value=\$${var}"
8531 if test "x$value" != x; then
8532 cache_var=CACHE_$toolkit
8533 eval "cache=\$${cache_var}"
8534 if test "$cache" = 1; then
8535 echo "$var=$value" >> ${wx_arg_cache_file}
8536 fi
8537 if test "$value" = 1; then
8538 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8539 echo "$ac_t""$toolkit_echo" 1>&6
8540 fi
8541 fi
8542 done
8543else
8544 PATH_IFS=':'
8545 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8546fi
8547
8548
8549cat > confcache <<\EOF
8550# This file is a shell script that caches the results of configure
8551# tests run on this system so they can be shared between configure
8552# scripts and configure runs. It is not useful on other systems.
8553# If it contains results you don't want to keep, you may remove or edit it.
8554#
8555# By default, configure uses ./config.cache as the cache file,
8556# creating it if it does not exist already. You can give configure
8557# the --cache-file=FILE option to use a different cache file; that is
8558# what configure does when it calls configure scripts in
8559# subdirectories, so they share the cache.
8560# Giving --cache-file=/dev/null disables caching, for debugging configure.
8561# config.status only pays attention to the cache file if you give it the
8562# --recheck option to rerun configure.
8563#
8564EOF
8565# The following way of writing the cache mishandles newlines in values,
8566# but we know of no workaround that is simple, portable, and efficient.
8567# So, don't put newlines in cache variables' values.
8568# Ultrix sh set writes to stderr and can't be redirected directly,
8569# and sets the high bit in the cache file unless we assign to the vars.
8570(set) 2>&1 |
8571 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8572 *ac_space=\ *)
8573 # `set' does not quote correctly, so add quotes (double-quote substitution
8574 # turns \\\\ into \\, and sed turns \\ into \).
8575 sed -n \
8576 -e "s/'/'\\\\''/g" \
8577 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8578 ;;
8579 *)
8580 # `set' quotes correctly as required by POSIX, so do not add quotes.
8581 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8582 ;;
8583 esac >> confcache
8584if cmp -s $cache_file confcache; then
8585 :
8586else
8587 if test -w $cache_file; then
8588 echo "updating cache $cache_file"
8589 cat confcache > $cache_file
8590 else
8591 echo "not updating unwritable cache $cache_file"
8592 fi
8593fi
8594rm -f confcache
8595
8596
8597if test "$build" != "$host" ; then
8598 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then
8599 CC=$host_alias-gcc
8600 CXX=$host_alias-c++
8601 AR=$host_alias-ar
8602 RANLIB=$host_alias-ranlib
8603 DLLTOOL=$host_alias-dlltool
8604 RESCOMP=$host_alias-windres
8605 LD=$host_alias-ld
8606 NM=$host_alias-nm
8607 STRIP=$host_alias-strip
8608 else
8609 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8610 fi
8611fi
8612
8613# Extract the first word of "gcc", so it can be a program name with args.
8614set dummy gcc; ac_word=$2
8615echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8616echo "configure:8617: checking for $ac_word" >&5
8617if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8618 echo $ac_n "(cached) $ac_c" 1>&6
8619else
8620 if test -n "$CC"; then
8621 ac_cv_prog_CC="$CC" # Let the user override the test.
8622else
8623 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8624 ac_dummy="$PATH"
8625 for ac_dir in $ac_dummy; do
8626 test -z "$ac_dir" && ac_dir=.
8627 if test -f $ac_dir/$ac_word; then
8628 ac_cv_prog_CC="gcc"
8629 break
8630 fi
8631 done
8632 IFS="$ac_save_ifs"
8633fi
8634fi
8635CC="$ac_cv_prog_CC"
8636if test -n "$CC"; then
8637 echo "$ac_t""$CC" 1>&6
8638else
8639 echo "$ac_t""no" 1>&6
8640fi
8641
8642if test -z "$CC"; then
8643 # Extract the first word of "cc", so it can be a program name with args.
8644set dummy cc; ac_word=$2
8645echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8646echo "configure:8647: checking for $ac_word" >&5
8647if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8648 echo $ac_n "(cached) $ac_c" 1>&6
8649else
8650 if test -n "$CC"; then
8651 ac_cv_prog_CC="$CC" # Let the user override the test.
8652else
8653 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8654 ac_prog_rejected=no
8655 ac_dummy="$PATH"
8656 for ac_dir in $ac_dummy; do
8657 test -z "$ac_dir" && ac_dir=.
8658 if test -f $ac_dir/$ac_word; then
8659 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8660 ac_prog_rejected=yes
8661 continue
8662 fi
8663 ac_cv_prog_CC="cc"
8664 break
8665 fi
8666 done
8667 IFS="$ac_save_ifs"
8668if test $ac_prog_rejected = yes; then
8669 # We found a bogon in the path, so make sure we never use it.
8670 set dummy $ac_cv_prog_CC
8671 shift
8672 if test $# -gt 0; then
8673 # We chose a different compiler from the bogus one.
8674 # However, it has the same basename, so the bogon will be chosen
8675 # first if we set CC to just the basename; use the full file name.
8676 shift
8677 set dummy "$ac_dir/$ac_word" "$@"
8678 shift
8679 ac_cv_prog_CC="$@"
8680 fi
8681fi
8682fi
8683fi
8684CC="$ac_cv_prog_CC"
8685if test -n "$CC"; then
8686 echo "$ac_t""$CC" 1>&6
8687else
8688 echo "$ac_t""no" 1>&6
8689fi
8690
8691 if test -z "$CC"; then
8692 case "`uname -s`" in
8693 *win32* | *WIN32*)
8694 # Extract the first word of "cl", so it can be a program name with args.
8695set dummy cl; ac_word=$2
8696echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8697echo "configure:8698: checking for $ac_word" >&5
8698if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8699 echo $ac_n "(cached) $ac_c" 1>&6
8700else
8701 if test -n "$CC"; then
8702 ac_cv_prog_CC="$CC" # Let the user override the test.
8703else
8704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8705 ac_dummy="$PATH"
8706 for ac_dir in $ac_dummy; do
8707 test -z "$ac_dir" && ac_dir=.
8708 if test -f $ac_dir/$ac_word; then
8709 ac_cv_prog_CC="cl"
8710 break
8711 fi
8712 done
8713 IFS="$ac_save_ifs"
8714fi
8715fi
8716CC="$ac_cv_prog_CC"
8717if test -n "$CC"; then
8718 echo "$ac_t""$CC" 1>&6
8719else
8720 echo "$ac_t""no" 1>&6
8721fi
8722 ;;
8723 esac
8724 fi
8725 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8726fi
8727
8728echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8729echo "configure:8730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8730
8731ac_ext=c
8732# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8733ac_cpp='$CPP $CPPFLAGS'
8734ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8735ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8736cross_compiling=$ac_cv_prog_cc_cross
8737
8738cat > conftest.$ac_ext << EOF
8739
8740#line 8741 "configure"
8741#include "confdefs.h"
8742
8743main(){return(0);}
8744EOF
8745if { (eval echo configure:8746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8746 ac_cv_prog_cc_works=yes
8747 # If we can't run a trivial program, we are probably using a cross compiler.
8748 if (./conftest; exit) 2>/dev/null; then
8749 ac_cv_prog_cc_cross=no
8750 else
8751 ac_cv_prog_cc_cross=yes
8752 fi
8753else
8754 echo "configure: failed program was:" >&5
8755 cat conftest.$ac_ext >&5
8756 ac_cv_prog_cc_works=no
8757fi
8758rm -fr conftest*
8759ac_ext=c
8760# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8761ac_cpp='$CPP $CPPFLAGS'
8762ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8763ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8764cross_compiling=$ac_cv_prog_cc_cross
8765
8766echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8767if test $ac_cv_prog_cc_works = no; then
8768 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8769fi
8770echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8771echo "configure:8772: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8772echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8773cross_compiling=$ac_cv_prog_cc_cross
8774
8775echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8776echo "configure:8777: checking whether we are using GNU C" >&5
8777if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8778 echo $ac_n "(cached) $ac_c" 1>&6
8779else
8780 cat > conftest.c <<EOF
8781#ifdef __GNUC__
8782 yes;
8783#endif
8784EOF
8785if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8786 ac_cv_prog_gcc=yes
8787else
8788 ac_cv_prog_gcc=no
8789fi
8790fi
8791
8792echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8793
8794if test $ac_cv_prog_gcc = yes; then
8795 GCC=yes
8796else
8797 GCC=
8798fi
8799
8800ac_test_CFLAGS="${CFLAGS+set}"
8801ac_save_CFLAGS="$CFLAGS"
8802CFLAGS=
8803echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8804echo "configure:8805: checking whether ${CC-cc} accepts -g" >&5
8805if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8806 echo $ac_n "(cached) $ac_c" 1>&6
8807else
8808 echo 'void f(){}' > conftest.c
8809if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8810 ac_cv_prog_cc_g=yes
8811else
8812 ac_cv_prog_cc_g=no
8813fi
8814rm -f conftest*
8815
8816fi
8817
8818echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8819if test "$ac_test_CFLAGS" = set; then
8820 CFLAGS="$ac_save_CFLAGS"
8821elif test $ac_cv_prog_cc_g = yes; then
8822 if test "$GCC" = yes; then
8823 CFLAGS="-g -O2"
8824 else
8825 CFLAGS="-g"
8826 fi
8827else
8828 if test "$GCC" = yes; then
8829 CFLAGS="-O2"
8830 else
8831 CFLAGS=
8832 fi
8833fi
8834
8835
8836CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8837
8838echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8839echo "configure:8840: checking how to run the C preprocessor" >&5
8840# On Suns, sometimes $CPP names a directory.
8841if test -n "$CPP" && test -d "$CPP"; then
8842 CPP=
8843fi
8844if test -z "$CPP"; then
8845if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8846 echo $ac_n "(cached) $ac_c" 1>&6
8847else
8848 # This must be in double quotes, not single quotes, because CPP may get
8849 # substituted into the Makefile and "${CC-cc}" will confuse make.
8850 CPP="${CC-cc} -E"
8851 # On the NeXT, cc -E runs the code through the compiler's parser,
8852 # not just through cpp.
8853 cat > conftest.$ac_ext <<EOF
8854#line 8855 "configure"
8855#include "confdefs.h"
8856#include <assert.h>
8857Syntax Error
8858EOF
8859ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8860{ (eval echo configure:8861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8861ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8862if test -z "$ac_err"; then
8863 :
8864else
8865 echo "$ac_err" >&5
8866 echo "configure: failed program was:" >&5
8867 cat conftest.$ac_ext >&5
8868 rm -rf conftest*
8869 CPP="${CC-cc} -E -traditional-cpp"
8870 cat > conftest.$ac_ext <<EOF
8871#line 8872 "configure"
8872#include "confdefs.h"
8873#include <assert.h>
8874Syntax Error
8875EOF
8876ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8877{ (eval echo configure:8878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8878ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8879if test -z "$ac_err"; then
8880 :
8881else
8882 echo "$ac_err" >&5
8883 echo "configure: failed program was:" >&5
8884 cat conftest.$ac_ext >&5
8885 rm -rf conftest*
8886 CPP="${CC-cc} -nologo -E"
8887 cat > conftest.$ac_ext <<EOF
8888#line 8889 "configure"
8889#include "confdefs.h"
8890#include <assert.h>
8891Syntax Error
8892EOF
8893ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8894{ (eval echo configure:8895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8895ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8896if test -z "$ac_err"; then
8897 :
8898else
8899 echo "$ac_err" >&5
8900 echo "configure: failed program was:" >&5
8901 cat conftest.$ac_ext >&5
8902 rm -rf conftest*
8903 CPP=/lib/cpp
8904fi
8905rm -f conftest*
8906fi
8907rm -f conftest*
8908fi
8909rm -f conftest*
8910 ac_cv_prog_CPP="$CPP"
8911fi
8912 CPP="$ac_cv_prog_CPP"
8913else
8914 ac_cv_prog_CPP="$CPP"
8915fi
8916echo "$ac_t""$CPP" 1>&6
8917
8918if test $ac_cv_prog_gcc = yes; then
8919 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8920echo "configure:8921: checking whether ${CC-cc} needs -traditional" >&5
8921if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8922 echo $ac_n "(cached) $ac_c" 1>&6
8923else
8924 ac_pattern="Autoconf.*'x'"
8925 cat > conftest.$ac_ext <<EOF
8926#line 8927 "configure"
8927#include "confdefs.h"
8928#include <sgtty.h>
8929Autoconf TIOCGETP
8930EOF
8931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8932 egrep "$ac_pattern" >/dev/null 2>&1; then
8933 rm -rf conftest*
8934 ac_cv_prog_gcc_traditional=yes
8935else
8936 rm -rf conftest*
8937 ac_cv_prog_gcc_traditional=no
8938fi
8939rm -f conftest*
8940
8941
8942 if test $ac_cv_prog_gcc_traditional = no; then
8943 cat > conftest.$ac_ext <<EOF
8944#line 8945 "configure"
8945#include "confdefs.h"
8946#include <termio.h>
8947Autoconf TCGETA
8948EOF
8949if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8950 egrep "$ac_pattern" >/dev/null 2>&1; then
8951 rm -rf conftest*
8952 ac_cv_prog_gcc_traditional=yes
8953fi
8954rm -f conftest*
8955
8956 fi
8957fi
8958
8959echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8960 if test $ac_cv_prog_gcc_traditional = yes; then
8961 CC="$CC -traditional"
8962 fi
8963fi
8964
8965
8966
8967ac_ext=C
8968# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8969ac_cpp='$CXXCPP $CPPFLAGS'
8970ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8971ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8972cross_compiling=$ac_cv_prog_cxx_cross
8973
8974
8975for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8976do
8977# Extract the first word of "$ac_prog", so it can be a program name with args.
8978set dummy $ac_prog; ac_word=$2
8979echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8980echo "configure:8981: checking for $ac_word" >&5
8981if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8982 echo $ac_n "(cached) $ac_c" 1>&6
8983else
8984 if test -n "$CXX"; then
8985 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8986else
8987 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8988 ac_dummy="$PATH"
8989 for ac_dir in $ac_dummy; do
8990 test -z "$ac_dir" && ac_dir=.
8991 if test -f $ac_dir/$ac_word; then
8992 ac_cv_prog_CXX="$ac_prog"
8993 break
8994 fi
8995 done
8996 IFS="$ac_save_ifs"
8997fi
8998fi
8999CXX="$ac_cv_prog_CXX"
9000if test -n "$CXX"; then
9001 echo "$ac_t""$CXX" 1>&6
9002else
9003 echo "$ac_t""no" 1>&6
9004fi
9005
9006test -n "$CXX" && break
9007done
9008test -n "$CXX" || CXX="gcc"
9009
9010
9011echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9012echo "configure:9013: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9013
9014ac_ext=C
9015# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9016ac_cpp='$CXXCPP $CPPFLAGS'
9017ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9018ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9019cross_compiling=$ac_cv_prog_cxx_cross
9020
9021cat > conftest.$ac_ext << EOF
9022
9023#line 9024 "configure"
9024#include "confdefs.h"
9025
9026int main(){return(0);}
9027EOF
9028if { (eval echo configure:9029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9029 ac_cv_prog_cxx_works=yes
9030 # If we can't run a trivial program, we are probably using a cross compiler.
9031 if (./conftest; exit) 2>/dev/null; then
9032 ac_cv_prog_cxx_cross=no
9033 else
9034 ac_cv_prog_cxx_cross=yes
9035 fi
9036else
9037 echo "configure: failed program was:" >&5
9038 cat conftest.$ac_ext >&5
9039 ac_cv_prog_cxx_works=no
9040fi
9041rm -fr conftest*
9042ac_ext=C
9043# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9044ac_cpp='$CXXCPP $CPPFLAGS'
9045ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9046ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9047cross_compiling=$ac_cv_prog_cxx_cross
9048
9049echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9050if test $ac_cv_prog_cxx_works = no; then
9051 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9052fi
9053echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9054echo "configure:9055: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9055echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9056cross_compiling=$ac_cv_prog_cxx_cross
9057
9058echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9059echo "configure:9060: checking whether we are using GNU C++" >&5
9060if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9061 echo $ac_n "(cached) $ac_c" 1>&6
9062else
9063 cat > conftest.C <<EOF
9064#ifdef __GNUC__
9065 yes;
9066#endif
9067EOF
9068if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9069 ac_cv_prog_gxx=yes
9070else
9071 ac_cv_prog_gxx=no
9072fi
9073fi
9074
9075echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9076
9077if test $ac_cv_prog_gxx = yes; then
9078 GXX=yes
9079else
9080 GXX=
9081fi
9082
9083ac_test_CXXFLAGS="${CXXFLAGS+set}"
9084ac_save_CXXFLAGS="$CXXFLAGS"
9085CXXFLAGS=
9086echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9087echo "configure:9088: checking whether ${CXX-g++} accepts -g" >&5
9088if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9089 echo $ac_n "(cached) $ac_c" 1>&6
9090else
9091 echo 'void f(){}' > conftest.cc
9092if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9093 ac_cv_prog_cxx_g=yes
9094else
9095 ac_cv_prog_cxx_g=no
9096fi
9097rm -f conftest*
9098
9099fi
9100
9101echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9102if test "$ac_test_CXXFLAGS" = set; then
9103 CXXFLAGS="$ac_save_CXXFLAGS"
9104elif test $ac_cv_prog_cxx_g = yes; then
9105 if test "$GXX" = yes; then
9106 CXXFLAGS="-g -O2"
9107 else
9108 CXXFLAGS="-g"
9109 fi
9110else
9111 if test "$GXX" = yes; then
9112 CXXFLAGS="-O2"
9113 else
9114 CXXFLAGS=
9115 fi
9116fi
9117
9118
9119CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
9120
9121ac_ext=c
9122# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9123ac_cpp='$CPP $CPPFLAGS'
9124ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9125ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9126cross_compiling=$ac_cv_prog_cc_cross
9127
9128
9129# Extract the first word of "ranlib", so it can be a program name with args.
9130set dummy ranlib; ac_word=$2
9131echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9132echo "configure:9133: checking for $ac_word" >&5
9133if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9134 echo $ac_n "(cached) $ac_c" 1>&6
9135else
9136 if test -n "$RANLIB"; then
9137 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9138else
9139 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9140 ac_dummy="$PATH"
9141 for ac_dir in $ac_dummy; do
9142 test -z "$ac_dir" && ac_dir=.
9143 if test -f $ac_dir/$ac_word; then
9144 ac_cv_prog_RANLIB="ranlib"
9145 break
9146 fi
9147 done
9148 IFS="$ac_save_ifs"
9149 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9150fi
9151fi
9152RANLIB="$ac_cv_prog_RANLIB"
9153if test -n "$RANLIB"; then
9154 echo "$ac_t""$RANLIB" 1>&6
9155else
9156 echo "$ac_t""no" 1>&6
9157fi
9158
9159
9160# Extract the first word of "ar", so it can be a program name with args.
9161set dummy ar; ac_word=$2
9162echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9163echo "configure:9164: checking for $ac_word" >&5
9164if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9165 echo $ac_n "(cached) $ac_c" 1>&6
9166else
9167 if test -n "$AR"; then
9168 ac_cv_prog_AR="$AR" # Let the user override the test.
9169else
9170 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9171 ac_dummy="$PATH"
9172 for ac_dir in $ac_dummy; do
9173 test -z "$ac_dir" && ac_dir=.
9174 if test -f $ac_dir/$ac_word; then
9175 ac_cv_prog_AR="ar"
9176 break
9177 fi
9178 done
9179 IFS="$ac_save_ifs"
9180 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9181fi
9182fi
9183AR="$ac_cv_prog_AR"
9184if test -n "$AR"; then
9185 echo "$ac_t""$AR" 1>&6
9186else
9187 echo "$ac_t""no" 1>&6
9188fi
9189
9190
9191# Find a good install program. We prefer a C program (faster),
9192# so one script is as good as another. But avoid the broken or
9193# incompatible versions:
9194# SysV /etc/install, /usr/sbin/install
9195# SunOS /usr/etc/install
9196# IRIX /sbin/install
9197# AIX /bin/install
9198# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9199# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9200# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9201# ./install, which can be erroneously created by make from ./install.sh.
9202echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9203echo "configure:9204: checking for a BSD compatible install" >&5
9204if test -z "$INSTALL"; then
9205if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9206 echo $ac_n "(cached) $ac_c" 1>&6
9207else
9208 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9209 for ac_dir in $PATH; do
9210 # Account for people who put trailing slashes in PATH elements.
9211 case "$ac_dir/" in
9212 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9213 *)
9214 # OSF1 and SCO ODT 3.0 have their own names for install.
9215 # Don't use installbsd from OSF since it installs stuff as root
9216 # by default.
9217 for ac_prog in ginstall scoinst install; do
9218 if test -f $ac_dir/$ac_prog; then
9219 if test $ac_prog = install &&
9220 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9221 # AIX install. It has an incompatible calling convention.
9222 :
9223 else
9224 ac_cv_path_install="$ac_dir/$ac_prog -c"
9225 break 2
9226 fi
9227 fi
9228 done
9229 ;;
9230 esac
9231 done
9232 IFS="$ac_save_IFS"
9233
9234fi
9235 if test "${ac_cv_path_install+set}" = set; then
9236 INSTALL="$ac_cv_path_install"
9237 else
9238 # As a last resort, use the slow shell script. We don't cache a
9239 # path for INSTALL within a source directory, because that will
9240 # break other packages using the cache if that directory is
9241 # removed, or if the path is relative.
9242 INSTALL="$ac_install_sh"
9243 fi
9244fi
9245echo "$ac_t""$INSTALL" 1>&6
9246
9247# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9248# It thinks the first close brace ends the variable substitution.
9249test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9250
9251test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9252
9253test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9254
9255case "${host}" in
9256
9257 powerpc-*-darwin* )
9258 INSTALL_PROGRAM="cp -fp"
9259 INSTALL_DATA="cp -fp"
9260 ;;
9261 *)
9262 ;;
9263esac
9264
9265# Extract the first word of "strip", so it can be a program name with args.
9266set dummy strip; ac_word=$2
9267echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9268echo "configure:9269: checking for $ac_word" >&5
9269if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9270 echo $ac_n "(cached) $ac_c" 1>&6
9271else
9272 if test -n "$STRIP"; then
9273 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9274else
9275 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9276 ac_dummy="$PATH"
9277 for ac_dir in $ac_dummy; do
9278 test -z "$ac_dir" && ac_dir=.
9279 if test -f $ac_dir/$ac_word; then
9280 ac_cv_prog_STRIP="strip"
9281 break
9282 fi
9283 done
9284 IFS="$ac_save_ifs"
9285 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9286fi
9287fi
9288STRIP="$ac_cv_prog_STRIP"
9289if test -n "$STRIP"; then
9290 echo "$ac_t""$STRIP" 1>&6
9291else
9292 echo "$ac_t""no" 1>&6
9293fi
9294
9295
9296echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9297echo "configure:9298: checking if make is GNU make" >&5
9298if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9299 echo $ac_n "(cached) $ac_c" 1>&6
9300else
9301
9302 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9303 egrep -s GNU); then
9304 wx_cv_prog_makeisgnu="yes"
9305 else
9306 wx_cv_prog_makeisgnu="no"
9307 fi
9308
9309fi
9310
9311echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9312
9313if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9314 IF_GNU_MAKE=""
9315else
9316 IF_GNU_MAKE="#"
9317fi
9318
9319
9320
9321if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9322echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9323echo "configure:9324: checking if make supports VPATH" >&5
9324if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9325 echo $ac_n "(cached) $ac_c" 1>&6
9326else
9327
9328cat - << EOF > confMake
9329check : file
9330 cp \$? \$@
9331 cp \$? final_file
9332EOF
9333
9334if test ! -d sub ; then
9335 mkdir sub
9336fi
9337echo dummy > sub/file
9338${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9339RESULT=$?
9340rm -f sub/file check final_file confMake
9341rmdir sub
9342if test "$RESULT" = 0; then
9343 wx_cv_prog_makevpath="yes"
9344else
9345 wx_cv_prog_makevpath="no"
9346fi
9347
9348fi
9349
9350echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9351
9352if test "x$wx_cv_prog_makevpath" != "xyes"; then
9353{ echo "configure: error:
9354You need a make-utility that is able to use the variable
9355VPATH correctly.
9356If your version of make does not support VPATH correctly,
9357please install GNU-make (possibly as gmake), and start
9358configure with the following command:
9359export MAKE=gmake; ./configure for sh-type shells
9360setenv MAKE gmake; ./configure for csh-type shells
9361Also please do remember to use gmake in this case every time
9362you are trying to compile.
9363" 1>&2; exit 1; }
9364fi fi
9365for ac_prog in 'bison -y' byacc
9366do
9367# Extract the first word of "$ac_prog", so it can be a program name with args.
9368set dummy $ac_prog; ac_word=$2
9369echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9370echo "configure:9371: checking for $ac_word" >&5
9371if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9372 echo $ac_n "(cached) $ac_c" 1>&6
9373else
9374 if test -n "$YACC"; then
9375 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9376else
9377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9378 ac_dummy="$PATH"
9379 for ac_dir in $ac_dummy; do
9380 test -z "$ac_dir" && ac_dir=.
9381 if test -f $ac_dir/$ac_word; then
9382 ac_cv_prog_YACC="$ac_prog"
9383 break
9384 fi
9385 done
9386 IFS="$ac_save_ifs"
9387fi
9388fi
9389YACC="$ac_cv_prog_YACC"
9390if test -n "$YACC"; then
9391 echo "$ac_t""$YACC" 1>&6
9392else
9393 echo "$ac_t""no" 1>&6
9394fi
9395
9396test -n "$YACC" && break
9397done
9398test -n "$YACC" || YACC="yacc"
9399
9400
9401# Extract the first word of "flex", so it can be a program name with args.
9402set dummy flex; ac_word=$2
9403echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9404echo "configure:9405: checking for $ac_word" >&5
9405if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9406 echo $ac_n "(cached) $ac_c" 1>&6
9407else
9408 if test -n "$LEX"; then
9409 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9410else
9411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9412 ac_dummy="$PATH"
9413 for ac_dir in $ac_dummy; do
9414 test -z "$ac_dir" && ac_dir=.
9415 if test -f $ac_dir/$ac_word; then
9416 ac_cv_prog_LEX="flex"
9417 break
9418 fi
9419 done
9420 IFS="$ac_save_ifs"
9421 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9422fi
9423fi
9424LEX="$ac_cv_prog_LEX"
9425if test -n "$LEX"; then
9426 echo "$ac_t""$LEX" 1>&6
9427else
9428 echo "$ac_t""no" 1>&6
9429fi
9430
9431if test -z "$LEXLIB"
9432then
9433 case "$LEX" in
9434 flex*) ac_lib=fl ;;
9435 *) ac_lib=l ;;
9436 esac
9437 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9438echo "configure:9439: checking for yywrap in -l$ac_lib" >&5
9439ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9440if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9441 echo $ac_n "(cached) $ac_c" 1>&6
9442else
9443 ac_save_LIBS="$LIBS"
9444LIBS="-l$ac_lib $LIBS"
9445cat > conftest.$ac_ext <<EOF
9446#line 9447 "configure"
9447#include "confdefs.h"
9448/* Override any gcc2 internal prototype to avoid an error. */
9449/* We use char because int might match the return type of a gcc2
9450 builtin and then its argument prototype would still apply. */
9451char yywrap();
9452
9453int main() {
9454yywrap()
9455; return 0; }
9456EOF
9457if { (eval echo configure:9458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9458 rm -rf conftest*
9459 eval "ac_cv_lib_$ac_lib_var=yes"
9460else
9461 echo "configure: failed program was:" >&5
9462 cat conftest.$ac_ext >&5
9463 rm -rf conftest*
9464 eval "ac_cv_lib_$ac_lib_var=no"
9465fi
9466rm -f conftest*
9467LIBS="$ac_save_LIBS"
9468
9469fi
9470if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9471 echo "$ac_t""yes" 1>&6
9472 LEXLIB="-l$ac_lib"
9473else
9474 echo "$ac_t""no" 1>&6
9475fi
9476
9477fi
9478
9479
9480echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9481echo "configure:9482: checking whether ln -s works" >&5
9482if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9483 echo $ac_n "(cached) $ac_c" 1>&6
9484else
9485 rm -f conftestdata
9486if ln -s X conftestdata 2>/dev/null
9487then
9488 rm -f conftestdata
9489 ac_cv_prog_LN_S="ln -s"
9490else
9491 ac_cv_prog_LN_S=ln
9492fi
9493fi
9494LN_S="$ac_cv_prog_LN_S"
9495if test "$ac_cv_prog_LN_S" = "ln -s"; then
9496 echo "$ac_t""yes" 1>&6
9497else
9498 echo "$ac_t""no" 1>&6
9499fi
9500
9501
9502
9503SEARCH_INCLUDE="\
9504 /usr/local/include \
9505 \
9506 /usr/Motif-1.2/include \
9507 /usr/Motif-2.1/include \
9508 \
9509 /usr/include/Motif1.2 \
9510 /opt/xpm/include/X11 \
9511 /opt/GBxpm/include/ \
9512 /opt/GBxpm/X11/include/ \
9513 \
9514 /usr/Motif1.2/include \
9515 /usr/dt/include \
9516 /usr/openwin/include \
9517 \
9518 /usr/include/Xm \
9519 \
9520 /usr/X11R6/include \
9521 /usr/X11R6.4/include \
9522 /usr/X11R5/include \
9523 /usr/X11R4/include \
9524 \
9525 /usr/include/X11R6 \
9526 /usr/include/X11R5 \
9527 /usr/include/X11R4 \
9528 \
9529 /usr/local/X11R6/include \
9530 /usr/local/X11R5/include \
9531 /usr/local/X11R4/include \
9532 \
9533 /usr/local/include/X11R6 \
9534 /usr/local/include/X11R5 \
9535 /usr/local/include/X11R4 \
9536 \
9537 /usr/X11/include \
9538 /usr/include/X11 \
9539 /usr/local/X11/include \
9540 /usr/local/include/X11 \
9541 \
9542 /usr/X386/include \
9543 /usr/x386/include \
9544 /usr/XFree86/include/X11 \
9545 \
9546 X:/XFree86/include \
9547 X:/XFree86/include/X11 \
9548 \
9549 /usr/include/gtk \
9550 /usr/local/include/gtk \
9551 /usr/include/glib \
9552 /usr/local/include/glib \
9553 \
9554 /usr/include/qt \
9555 /usr/local/include/qt \
9556 \
9557 /usr/include/windows \
9558 /usr/include/wine \
9559 /usr/local/include/wine \
9560 \
9561 /usr/unsupported/include \
9562 /usr/athena/include \
9563 /usr/local/x11r5/include \
9564 /usr/lpp/Xamples/include \
9565 \
9566 /usr/openwin/share/include \
9567 \
9568 /usr/include"
9569
9570SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
9571
9572
9573cat > confcache <<\EOF
9574# This file is a shell script that caches the results of configure
9575# tests run on this system so they can be shared between configure
9576# scripts and configure runs. It is not useful on other systems.
9577# If it contains results you don't want to keep, you may remove or edit it.
9578#
9579# By default, configure uses ./config.cache as the cache file,
9580# creating it if it does not exist already. You can give configure
9581# the --cache-file=FILE option to use a different cache file; that is
9582# what configure does when it calls configure scripts in
9583# subdirectories, so they share the cache.
9584# Giving --cache-file=/dev/null disables caching, for debugging configure.
9585# config.status only pays attention to the cache file if you give it the
9586# --recheck option to rerun configure.
9587#
9588EOF
9589# The following way of writing the cache mishandles newlines in values,
9590# but we know of no workaround that is simple, portable, and efficient.
9591# So, don't put newlines in cache variables' values.
9592# Ultrix sh set writes to stderr and can't be redirected directly,
9593# and sets the high bit in the cache file unless we assign to the vars.
9594(set) 2>&1 |
9595 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9596 *ac_space=\ *)
9597 # `set' does not quote correctly, so add quotes (double-quote substitution
9598 # turns \\\\ into \\, and sed turns \\ into \).
9599 sed -n \
9600 -e "s/'/'\\\\''/g" \
9601 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9602 ;;
9603 *)
9604 # `set' quotes correctly as required by POSIX, so do not add quotes.
9605 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9606 ;;
9607 esac >> confcache
9608if cmp -s $cache_file confcache; then
9609 :
9610else
9611 if test -w $cache_file; then
9612 echo "updating cache $cache_file"
9613 cat confcache > $cache_file
9614 else
9615 echo "not updating unwritable cache $cache_file"
9616 fi
9617fi
9618rm -f confcache
9619
9620
9621
9622
9623REGEX_INCLUDE=
9624if test "$wxUSE_REGEX" != "no"; then
9625 cat >> confdefs.h <<\EOF
9626#define wxUSE_REGEX 1
9627EOF
9628
9629
9630 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
9631 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
9632echo $ac_n "checking for regex.h""... $ac_c" 1>&6
9633echo "configure:9634: checking for regex.h" >&5
9634if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9635 echo $ac_n "(cached) $ac_c" 1>&6
9636else
9637 cat > conftest.$ac_ext <<EOF
9638#line 9639 "configure"
9639#include "confdefs.h"
9640#include <regex.h>
9641EOF
9642ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9643{ (eval echo configure:9644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9644ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9645if test -z "$ac_err"; then
9646 rm -rf conftest*
9647 eval "ac_cv_header_$ac_safe=yes"
9648else
9649 echo "$ac_err" >&5
9650 echo "configure: failed program was:" >&5
9651 cat conftest.$ac_ext >&5
9652 rm -rf conftest*
9653 eval "ac_cv_header_$ac_safe=no"
9654fi
9655rm -f conftest*
9656fi
9657if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9658 echo "$ac_t""yes" 1>&6
9659 for ac_func in regcomp
9660do
9661echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9662echo "configure:9663: checking for $ac_func" >&5
9663if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9664 echo $ac_n "(cached) $ac_c" 1>&6
9665else
9666 cat > conftest.$ac_ext <<EOF
9667#line 9668 "configure"
9668#include "confdefs.h"
9669/* System header to define __stub macros and hopefully few prototypes,
9670 which can conflict with char $ac_func(); below. */
9671#include <assert.h>
9672/* Override any gcc2 internal prototype to avoid an error. */
9673/* We use char because int might match the return type of a gcc2
9674 builtin and then its argument prototype would still apply. */
9675char $ac_func();
9676
9677int main() {
9678
9679/* The GNU C library defines this for functions which it implements
9680 to always fail with ENOSYS. Some functions are actually named
9681 something starting with __ and the normal name is an alias. */
9682#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9683choke me
9684#else
9685$ac_func();
9686#endif
9687
9688; return 0; }
9689EOF
9690if { (eval echo configure:9691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9691 rm -rf conftest*
9692 eval "ac_cv_func_$ac_func=yes"
9693else
9694 echo "configure: failed program was:" >&5
9695 cat conftest.$ac_ext >&5
9696 rm -rf conftest*
9697 eval "ac_cv_func_$ac_func=no"
9698fi
9699rm -f conftest*
9700fi
9701
9702if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9703 echo "$ac_t""yes" 1>&6
9704 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9705 cat >> confdefs.h <<EOF
9706#define $ac_tr_func 1
9707EOF
9708
9709else
9710 echo "$ac_t""no" 1>&6
9711fi
9712done
9713
9714else
9715 echo "$ac_t""no" 1>&6
9716fi
9717
9718
9719 if test "x$ac_cv_func_regcomp" != "xyes"; then
9720 if test "$wxUSE_REGEX" = "sys" ; then
9721 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9722 else
9723 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
9724 wxUSE_REGEX=builtin
9725 fi
9726 else
9727 wxUSE_REGEX=sys
9728 fi
9729 fi
9730
9731 if test "$wxUSE_REGEX" = "builtin" ; then
9732 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9733 fi
9734fi
9735
9736
9737ZLIB_INCLUDE=
9738ZLIB_LINK=
9739if test "$wxUSE_ZLIB" != "no" ; then
9740 cat >> confdefs.h <<\EOF
9741#define wxUSE_ZLIB 1
9742EOF
9743
9744
9745 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9746 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9747echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
9748echo "configure:9749: checking for zlib.h" >&5
9749if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9750 echo $ac_n "(cached) $ac_c" 1>&6
9751else
9752 cat > conftest.$ac_ext <<EOF
9753#line 9754 "configure"
9754#include "confdefs.h"
9755#include <zlib.h>
9756EOF
9757ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9758{ (eval echo configure:9759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9759ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9760if test -z "$ac_err"; then
9761 rm -rf conftest*
9762 eval "ac_cv_header_$ac_safe=yes"
9763else
9764 echo "$ac_err" >&5
9765 echo "configure: failed program was:" >&5
9766 cat conftest.$ac_ext >&5
9767 rm -rf conftest*
9768 eval "ac_cv_header_$ac_safe=no"
9769fi
9770rm -f conftest*
9771fi
9772if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9773 echo "$ac_t""yes" 1>&6
9774 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
9775echo "configure:9776: checking for deflate in -lz" >&5
9776ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9777if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9778 echo $ac_n "(cached) $ac_c" 1>&6
9779else
9780 ac_save_LIBS="$LIBS"
9781LIBS="-lz $LIBS"
9782cat > conftest.$ac_ext <<EOF
9783#line 9784 "configure"
9784#include "confdefs.h"
9785/* Override any gcc2 internal prototype to avoid an error. */
9786/* We use char because int might match the return type of a gcc2
9787 builtin and then its argument prototype would still apply. */
9788char deflate();
9789
9790int main() {
9791deflate()
9792; return 0; }
9793EOF
9794if { (eval echo configure:9795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9795 rm -rf conftest*
9796 eval "ac_cv_lib_$ac_lib_var=yes"
9797else
9798 echo "configure: failed program was:" >&5
9799 cat conftest.$ac_ext >&5
9800 rm -rf conftest*
9801 eval "ac_cv_lib_$ac_lib_var=no"
9802fi
9803rm -f conftest*
9804LIBS="$ac_save_LIBS"
9805
9806fi
9807if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9808 echo "$ac_t""yes" 1>&6
9809 ZLIB_LINK=" -lz"
9810else
9811 echo "$ac_t""no" 1>&6
9812fi
9813
9814else
9815 echo "$ac_t""no" 1>&6
9816fi
9817
9818
9819 if test "x$ZLIB_LINK" = "x" ; then
9820 if test "$wxUSE_ZLIB" = "sys" ; then
9821 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9822 else
9823 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
9824 wxUSE_ZLIB=builtin
9825 fi
9826 else
9827 wxUSE_ZLIB=sys
9828 fi
9829 fi
9830
9831 if test "$wxUSE_ZLIB" = "builtin" ; then
9832 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9833 fi
9834fi
9835
9836
9837PNG_INCLUDE=
9838PNG_LINK=
9839if test "$wxUSE_LIBPNG" != "no" ; then
9840 cat >> confdefs.h <<\EOF
9841#define wxUSE_LIBPNG 1
9842EOF
9843
9844
9845 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
9846 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
9847 wxUSE_LIBPNG=builtin
9848 fi
9849
9850 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9851 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9852echo $ac_n "checking for png.h""... $ac_c" 1>&6
9853echo "configure:9854: checking for png.h" >&5
9854if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9855 echo $ac_n "(cached) $ac_c" 1>&6
9856else
9857 cat > conftest.$ac_ext <<EOF
9858#line 9859 "configure"
9859#include "confdefs.h"
9860#include <png.h>
9861EOF
9862ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9863{ (eval echo configure:9864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9864ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9865if test -z "$ac_err"; then
9866 rm -rf conftest*
9867 eval "ac_cv_header_$ac_safe=yes"
9868else
9869 echo "$ac_err" >&5
9870 echo "configure: failed program was:" >&5
9871 cat conftest.$ac_ext >&5
9872 rm -rf conftest*
9873 eval "ac_cv_header_$ac_safe=no"
9874fi
9875rm -f conftest*
9876fi
9877if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9878 echo "$ac_t""yes" 1>&6
9879 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
9880echo "configure:9881: checking for png_check_sig in -lpng" >&5
9881ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9882if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9883 echo $ac_n "(cached) $ac_c" 1>&6
9884else
9885 ac_save_LIBS="$LIBS"
9886LIBS="-lpng -lz -lm $LIBS"
9887cat > conftest.$ac_ext <<EOF
9888#line 9889 "configure"
9889#include "confdefs.h"
9890/* Override any gcc2 internal prototype to avoid an error. */
9891/* We use char because int might match the return type of a gcc2
9892 builtin and then its argument prototype would still apply. */
9893char png_check_sig();
9894
9895int main() {
9896png_check_sig()
9897; return 0; }
9898EOF
9899if { (eval echo configure:9900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9900 rm -rf conftest*
9901 eval "ac_cv_lib_$ac_lib_var=yes"
9902else
9903 echo "configure: failed program was:" >&5
9904 cat conftest.$ac_ext >&5
9905 rm -rf conftest*
9906 eval "ac_cv_lib_$ac_lib_var=no"
9907fi
9908rm -f conftest*
9909LIBS="$ac_save_LIBS"
9910
9911fi
9912if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9913 echo "$ac_t""yes" 1>&6
9914 PNG_LINK=" -lpng"
9915else
9916 echo "$ac_t""no" 1>&6
9917fi
9918
9919
9920else
9921 echo "$ac_t""no" 1>&6
9922fi
9923
9924
9925 if test "x$PNG_LINK" = "x" ; then
9926 if test "$wxUSE_LIBPNG" = "sys" ; then
9927 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9928 else
9929 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
9930 wxUSE_LIBPNG=builtin
9931 fi
9932 else
9933 wxUSE_LIBPNG=yes
9934 fi
9935 fi
9936
9937 if test "$wxUSE_LIBPNG" = "builtin" ; then
9938 PNG_INCLUDE="-I\${top_srcdir}/src/png"
9939 fi
9940
9941 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
9942fi
9943
9944
9945JPEG_INCLUDE=
9946JPEG_LINK=
9947if test "$wxUSE_LIBJPEG" != "no" ; then
9948 cat >> confdefs.h <<\EOF
9949#define wxUSE_LIBJPEG 1
9950EOF
9951
9952
9953 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9954 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
9955echo "configure:9956: checking for jpeglib.h" >&5
9956 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
9957 echo $ac_n "(cached) $ac_c" 1>&6
9958else
9959 cat > conftest.$ac_ext <<EOF
9960#line 9961 "configure"
9961#include "confdefs.h"
9962
9963 #undef HAVE_STDLIB_H
9964 #include <stdio.h>
9965 #include <jpeglib.h>
9966
9967int main() {
9968
9969
9970; return 0; }
9971EOF
9972if { (eval echo configure:9973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9973 rm -rf conftest*
9974 ac_cv_header_jpeglib_h=yes
9975else
9976 echo "configure: failed program was:" >&5
9977 cat conftest.$ac_ext >&5
9978 rm -rf conftest*
9979 ac_cv_header_jpeglib_h=no
9980
9981fi
9982rm -f conftest*
9983
9984fi
9985
9986 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
9987
9988 if test "$ac_cv_header_jpeglib_h" = "yes"; then
9989 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
9990echo "configure:9991: checking for jpeg_read_header in -ljpeg" >&5
9991ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
9992if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9993 echo $ac_n "(cached) $ac_c" 1>&6
9994else
9995 ac_save_LIBS="$LIBS"
9996LIBS="-ljpeg $LIBS"
9997cat > conftest.$ac_ext <<EOF
9998#line 9999 "configure"
9999#include "confdefs.h"
10000/* Override any gcc2 internal prototype to avoid an error. */
10001/* We use char because int might match the return type of a gcc2
10002 builtin and then its argument prototype would still apply. */
10003char jpeg_read_header();
10004
10005int main() {
10006jpeg_read_header()
10007; return 0; }
10008EOF
10009if { (eval echo configure:10010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10010 rm -rf conftest*
10011 eval "ac_cv_lib_$ac_lib_var=yes"
10012else
10013 echo "configure: failed program was:" >&5
10014 cat conftest.$ac_ext >&5
10015 rm -rf conftest*
10016 eval "ac_cv_lib_$ac_lib_var=no"
10017fi
10018rm -f conftest*
10019LIBS="$ac_save_LIBS"
10020
10021fi
10022if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10023 echo "$ac_t""yes" 1>&6
10024 JPEG_LINK=" -ljpeg"
10025else
10026 echo "$ac_t""no" 1>&6
10027fi
10028
10029 fi
10030
10031 if test "x$JPEG_LINK" = "x" ; then
10032 if test "$wxUSE_LIBJPEG" = "sys" ; then
10033 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
10034 else
10035 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
10036 wxUSE_LIBJPEG=builtin
10037 fi
10038 else
10039 wxUSE_LIBJPEG=sys
10040 fi
10041 fi
10042
10043 if test "$wxUSE_LIBJPEG" = "builtin" ; then
10044 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
10045 fi
10046fi
10047
10048
10049TIFF_INCLUDE=
10050TIFF_LINK=
10051if test "$wxUSE_LIBTIFF" != "no" ; then
10052 cat >> confdefs.h <<\EOF
10053#define wxUSE_LIBTIFF 1
10054EOF
10055
10056
10057 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
10058 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
10059echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
10060echo "configure:10061: checking for tiffio.h" >&5
10061if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10062 echo $ac_n "(cached) $ac_c" 1>&6
10063else
10064 cat > conftest.$ac_ext <<EOF
10065#line 10066 "configure"
10066#include "confdefs.h"
10067#include <tiffio.h>
10068EOF
10069ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10070{ (eval echo configure:10071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10071ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10072if test -z "$ac_err"; then
10073 rm -rf conftest*
10074 eval "ac_cv_header_$ac_safe=yes"
10075else
10076 echo "$ac_err" >&5
10077 echo "configure: failed program was:" >&5
10078 cat conftest.$ac_ext >&5
10079 rm -rf conftest*
10080 eval "ac_cv_header_$ac_safe=no"
10081fi
10082rm -f conftest*
10083fi
10084if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10085 echo "$ac_t""yes" 1>&6
10086 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
10087echo "configure:10088: checking for TIFFError in -ltiff" >&5
10088ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
10089if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10090 echo $ac_n "(cached) $ac_c" 1>&6
10091else
10092 ac_save_LIBS="$LIBS"
10093LIBS="-ltiff -lm $LIBS"
10094cat > conftest.$ac_ext <<EOF
10095#line 10096 "configure"
10096#include "confdefs.h"
10097/* Override any gcc2 internal prototype to avoid an error. */
10098/* We use char because int might match the return type of a gcc2
10099 builtin and then its argument prototype would still apply. */
10100char TIFFError();
10101
10102int main() {
10103TIFFError()
10104; return 0; }
10105EOF
10106if { (eval echo configure:10107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10107 rm -rf conftest*
10108 eval "ac_cv_lib_$ac_lib_var=yes"
10109else
10110 echo "configure: failed program was:" >&5
10111 cat conftest.$ac_ext >&5
10112 rm -rf conftest*
10113 eval "ac_cv_lib_$ac_lib_var=no"
10114fi
10115rm -f conftest*
10116LIBS="$ac_save_LIBS"
10117
10118fi
10119if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10120 echo "$ac_t""yes" 1>&6
10121 TIFF_LINK=" -ltiff"
10122else
10123 echo "$ac_t""no" 1>&6
10124fi
10125
10126
10127else
10128 echo "$ac_t""no" 1>&6
10129fi
10130
10131
10132 if test "x$TIFF_LINK" = "x" ; then
10133 if test "$wxUSE_LIBTIFF" = "sys" ; then
10134 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
10135 else
10136 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
10137 wxUSE_LIBTIFF=builtin
10138 fi
10139 else
10140 wxUSE_LIBTIFF=sys
10141 fi
10142 fi
10143
10144 if test "$wxUSE_LIBTIFF" = "builtin" ; then
10145 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
10146 fi
10147fi
10148
10149
10150FREETYPE_INCLUDE=
10151FREETYPE_LINK=
10152if test "$wxUSE_FREETYPE" != "no" ; then
10153 cat >> confdefs.h <<\EOF
10154#define wxUSE_FREETYPE 1
10155EOF
10156
10157
10158 if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then
10159 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
10160echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
10161echo "configure:10162: checking for freetype.h" >&5
10162if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10163 echo $ac_n "(cached) $ac_c" 1>&6
10164else
10165 cat > conftest.$ac_ext <<EOF
10166#line 10167 "configure"
10167#include "confdefs.h"
10168#include <freetype.h>
10169EOF
10170ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10171{ (eval echo configure:10172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10172ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10173if test -z "$ac_err"; then
10174 rm -rf conftest*
10175 eval "ac_cv_header_$ac_safe=yes"
10176else
10177 echo "$ac_err" >&5
10178 echo "configure: failed program was:" >&5
10179 cat conftest.$ac_ext >&5
10180 rm -rf conftest*
10181 eval "ac_cv_header_$ac_safe=no"
10182fi
10183rm -f conftest*
10184fi
10185if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10186 echo "$ac_t""yes" 1>&6
10187 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
10188echo "configure:10189: checking for FT_Render_Glyph in -lfreetype" >&5
10189ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
10190if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10191 echo $ac_n "(cached) $ac_c" 1>&6
10192else
10193 ac_save_LIBS="$LIBS"
10194LIBS="-lfreetype -lm $LIBS"
10195cat > conftest.$ac_ext <<EOF
10196#line 10197 "configure"
10197#include "confdefs.h"
10198/* Override any gcc2 internal prototype to avoid an error. */
10199/* We use char because int might match the return type of a gcc2
10200 builtin and then its argument prototype would still apply. */
10201char FT_Render_Glyph();
10202
10203int main() {
10204FT_Render_Glyph()
10205; return 0; }
10206EOF
10207if { (eval echo configure:10208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10208 rm -rf conftest*
10209 eval "ac_cv_lib_$ac_lib_var=yes"
10210else
10211 echo "configure: failed program was:" >&5
10212 cat conftest.$ac_ext >&5
10213 rm -rf conftest*
10214 eval "ac_cv_lib_$ac_lib_var=no"
10215fi
10216rm -f conftest*
10217LIBS="$ac_save_LIBS"
10218
10219fi
10220if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10221 echo "$ac_t""yes" 1>&6
10222 FREETYPE_LINK=" -lfreetype"
10223else
10224 echo "$ac_t""no" 1>&6
10225fi
10226
10227
10228else
10229 echo "$ac_t""no" 1>&6
10230fi
10231
10232
10233 if test "x$FREETYPE_LINK" = "x" ; then
10234 if test "$wxUSE_FREETYPE" = "sys" ; then
10235 { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; }
10236 else
10237 echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2
10238 wxUSE_FREETYPE=builtin
10239 fi
10240 else
10241 wxUSE_FREETYPE=sys
10242 fi
10243 fi
10244
10245 if test "$wxUSE_FREETYPE" = "builtin" ; then
10246 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
10247 fi
10248fi
10249
10250
10251AFMINSTALL=
10252
10253TOOLKIT=
10254TOOLKIT_INCLUDE=
10255WIDGET_SET=
10256
10257if test "$USE_WIN32" = 1 ; then
10258 for ac_hdr in w32api.h
10259do
10260ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10261echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10262echo "configure:10263: checking for $ac_hdr" >&5
10263if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10264 echo $ac_n "(cached) $ac_c" 1>&6
10265else
10266 cat > conftest.$ac_ext <<EOF
10267#line 10268 "configure"
10268#include "confdefs.h"
10269#include <$ac_hdr>
10270EOF
10271ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10272{ (eval echo configure:10273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10273ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10274if test -z "$ac_err"; then
10275 rm -rf conftest*
10276 eval "ac_cv_header_$ac_safe=yes"
10277else
10278 echo "$ac_err" >&5
10279 echo "configure: failed program was:" >&5
10280 cat conftest.$ac_ext >&5
10281 rm -rf conftest*
10282 eval "ac_cv_header_$ac_safe=no"
10283fi
10284rm -f conftest*
10285fi
10286if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10287 echo "$ac_t""yes" 1>&6
10288 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10289 cat >> confdefs.h <<EOF
10290#define $ac_tr_hdr 1
10291EOF
10292
10293else
10294 echo "$ac_t""no" 1>&6
10295fi
10296done
10297
10298 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10299echo $ac_n "checking for windows.h""... $ac_c" 1>&6
10300echo "configure:10301: checking for windows.h" >&5
10301if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10302 echo $ac_n "(cached) $ac_c" 1>&6
10303else
10304 cat > conftest.$ac_ext <<EOF
10305#line 10306 "configure"
10306#include "confdefs.h"
10307#include <windows.h>
10308EOF
10309ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10310{ (eval echo configure:10311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10311ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10312if test -z "$ac_err"; then
10313 rm -rf conftest*
10314 eval "ac_cv_header_$ac_safe=yes"
10315else
10316 echo "$ac_err" >&5
10317 echo "configure: failed program was:" >&5
10318 cat conftest.$ac_ext >&5
10319 rm -rf conftest*
10320 eval "ac_cv_header_$ac_safe=no"
10321fi
10322rm -f conftest*
10323fi
10324if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10325 echo "$ac_t""yes" 1>&6
10326 :
10327else
10328 echo "$ac_t""no" 1>&6
10329
10330 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
10331
10332fi
10333
10334
10335 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
10336echo "configure:10337: checking if w32api has good enough MSIE support" >&5
10337if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
10338 echo $ac_n "(cached) $ac_c" 1>&6
10339else
10340
10341 cat > conftest.$ac_ext <<EOF
10342#line 10343 "configure"
10343#include "confdefs.h"
10344#include <w32api.h>
10345int main() {
10346
10347 #define wxCHECK_W32API_VERSION( major, minor ) \
10348 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
10349 && ( ( __W32API_MAJOR_VERSION > (major) ) \
10350 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
10351
10352 #if !wxCHECK_W32API_VERSION(1,1)
10353 #error You need w32api 1.1 or newer
10354 #endif
10355
10356; return 0; }
10357EOF
10358if { (eval echo configure:10359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10359 rm -rf conftest*
10360
10361 wx_cv_w32api_win32_ie=yes
10362
10363else
10364 echo "configure: failed program was:" >&5
10365 cat conftest.$ac_ext >&5
10366 rm -rf conftest*
10367
10368 wx_cv_w32api_win32_ie=no
10369
10370fi
10371rm -f conftest*
10372
10373fi
10374
10375echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
10376 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
10377 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
10378 fi
10379
10380 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
10381
10382 case "${host}" in
10383 *-*-cygwin* )
10384 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
10385 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
10386 esac
10387
10388 if test "$wxUSE_ODBC" = "yes" ; then
10389 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
10390 fi
10391
10392 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
10393 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
10394fi
10395
10396if test "$wxUSE_GUI" = "yes"; then
10397 USE_GUI=1
10398
10399 GUI_TK_LIBRARY=
10400
10401 WXGTK12=
10402 WXGTK127=
10403 WXGTK20=
10404
10405 if test "$wxUSE_MSW" = 1 ; then
10406 TOOLKIT=MSW
10407 GUIDIST=MSW_DIST
10408
10409 case "${host}" in
10410 *-*-mingw32* )
10411 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
10412 esac
10413 fi
10414
10415 if test "$wxUSE_GTK" = 1; then
10416 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
10417echo "configure:10418: checking for GTK+ version" >&5
10418
10419 gtk_version_cached=1
10420 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
10421 echo $ac_n "(cached) $ac_c" 1>&6
10422else
10423
10424 gtk_version_cached=0
10425 echo "$ac_t""" 1>&6
10426
10427 GTK_MODULES=
10428 if test "$wxUSE_THREADS" = "yes"; then
10429 GTK_MODULES=gthread
10430 fi
10431
10432 wx_cv_lib_gtk=
10433 if test "x$wxUSE_GTK2" = "xyes"; then
10434 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10435if test "${with_gtk_prefix+set}" = set; then
10436 withval="$with_gtk_prefix"
10437 gtk_config_prefix="$withval"
10438else
10439 gtk_config_prefix=""
10440fi
10441
10442# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10443if test "${with_gtk_exec_prefix+set}" = set; then
10444 withval="$with_gtk_exec_prefix"
10445 gtk_config_exec_prefix="$withval"
10446else
10447 gtk_config_exec_prefix=""
10448fi
10449
10450# Check whether --enable-gtktest or --disable-gtktest was given.
10451if test "${enable_gtktest+set}" = set; then
10452 enableval="$enable_gtktest"
10453 :
10454else
10455 enable_gtktest=yes
10456fi
10457
10458
10459 for module in . $GTK_MODULES
10460 do
10461 case "$module" in
10462 gthread)
10463 gtk_config_args="$gtk_config_args gthread"
10464 ;;
10465 esac
10466 done
10467
10468 if test x$gtk_config_exec_prefix != x ; then
10469 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10470 if test x${GTK_CONFIG_2_0+set} != xset ; then
10471 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
10472 fi
10473 fi
10474 if test x$gtk_config_prefix != x ; then
10475 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10476 if test x${GTK_CONFIG_2_0+set} != xset ; then
10477 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
10478 fi
10479 fi
10480
10481 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
10482set dummy gtk-config-2.0; ac_word=$2
10483echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10484echo "configure:10485: checking for $ac_word" >&5
10485if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
10486 echo $ac_n "(cached) $ac_c" 1>&6
10487else
10488 case "$GTK_CONFIG_2_0" in
10489 /*)
10490 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
10491 ;;
10492 ?:/*)
10493 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
10494 ;;
10495 *)
10496 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10497 ac_dummy="$PATH"
10498 for ac_dir in $ac_dummy; do
10499 test -z "$ac_dir" && ac_dir=.
10500 if test -f $ac_dir/$ac_word; then
10501 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
10502 break
10503 fi
10504 done
10505 IFS="$ac_save_ifs"
10506 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
10507 ;;
10508esac
10509fi
10510GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
10511if test -n "$GTK_CONFIG_2_0"; then
10512 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
10513else
10514 echo "$ac_t""no" 1>&6
10515fi
10516
10517 min_gtk_version=1.3.1
10518 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10519echo "configure:10520: checking for GTK - version >= $min_gtk_version" >&5
10520 no_gtk=""
10521 if test "$GTK_CONFIG_2_0" = "no" ; then
10522 no_gtk=yes
10523 else
10524 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
10525 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
10526 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10527 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10528 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10529 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10530 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10531 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10532 if test "x$enable_gtktest" = "xyes" ; then
10533 ac_save_CFLAGS="$CFLAGS"
10534 ac_save_LIBS="$LIBS"
10535 CFLAGS="$CFLAGS $GTK_CFLAGS"
10536 LIBS="$GTK_LIBS $LIBS"
10537 rm -f conf.gtktest
10538 if test "$cross_compiling" = yes; then
10539 echo $ac_n "cross compiling; assumed OK... $ac_c"
10540else
10541 cat > conftest.$ac_ext <<EOF
10542#line 10543 "configure"
10543#include "confdefs.h"
10544
10545#include <gtk/gtk.h>
10546#include <stdio.h>
10547#include <stdlib.h>
10548
10549int
10550main ()
10551{
10552 int major, minor, micro;
10553 char *tmp_version;
10554
10555 system ("touch conf.gtktest");
10556
10557 /* HP/UX 9 (%@#!) writes to sscanf strings */
10558 tmp_version = g_strdup("$min_gtk_version");
10559 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10560 printf("%s, bad version string\n", "$min_gtk_version");
10561 exit(1);
10562 }
10563
10564 if ((gtk_major_version != $gtk_config_major_version) ||
10565 (gtk_minor_version != $gtk_config_minor_version) ||
10566 (gtk_micro_version != $gtk_config_micro_version))
10567 {
10568 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10569 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10570 gtk_major_version, gtk_minor_version, gtk_micro_version);
10571 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
10572 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10573 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10574 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10575 printf("*** required on your system.\n");
10576 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
10577 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
10578 printf("*** before re-running configure\n");
10579 }
10580#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10581 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10582 (gtk_minor_version != GTK_MINOR_VERSION) ||
10583 (gtk_micro_version != GTK_MICRO_VERSION))
10584 {
10585 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10586 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10587 printf("*** library (version %d.%d.%d)\n",
10588 gtk_major_version, gtk_minor_version, gtk_micro_version);
10589 }
10590#endif /* defined (GTK_MAJOR_VERSION) ... */
10591 else
10592 {
10593 if ((gtk_major_version > major) ||
10594 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10595 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10596 {
10597 return 0;
10598 }
10599 else
10600 {
10601 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10602 gtk_major_version, gtk_minor_version, gtk_micro_version);
10603 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10604 major, minor, micro);
10605 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10606 printf("***\n");
10607 printf("*** If you have already installed a sufficiently new version, this error\n");
10608 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
10609 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10610 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
10611 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
10612 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10613 printf("*** so that the correct libraries are found at run-time))\n");
10614 }
10615 }
10616 return 1;
10617}
10618
10619EOF
10620if { (eval echo configure:10621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10621then
10622 :
10623else
10624 echo "configure: failed program was:" >&5
10625 cat conftest.$ac_ext >&5
10626 rm -fr conftest*
10627 no_gtk=yes
10628fi
10629rm -fr conftest*
10630fi
10631
10632 CFLAGS="$ac_save_CFLAGS"
10633 LIBS="$ac_save_LIBS"
10634 fi
10635 fi
10636 if test "x$no_gtk" = x ; then
10637 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
10638 wx_cv_lib_gtk=2.0
10639 else
10640 echo "$ac_t""no" 1>&6
10641 if test "$GTK_CONFIG_2_0" = "no" ; then
10642 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
10643 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10644 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
10645 echo "*** full path to gtk-config-2.0."
10646 else
10647 if test -f conf.gtktest ; then
10648 :
10649 else
10650 echo "*** Could not run GTK test program, checking why..."
10651 CFLAGS="$CFLAGS $GTK_CFLAGS"
10652 LIBS="$LIBS $GTK_LIBS"
10653 cat > conftest.$ac_ext <<EOF
10654#line 10655 "configure"
10655#include "confdefs.h"
10656
10657#include <gtk/gtk.h>
10658#include <stdio.h>
10659
10660int main() {
10661 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10662; return 0; }
10663EOF
10664if { (eval echo configure:10665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10665 rm -rf conftest*
10666 echo "*** The test program compiled, but did not run. This usually means"
10667 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10668 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10669 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10670 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10671 echo "*** is required on your system"
10672 echo "***"
10673 echo "*** If you have an old version installed, it is best to remove it, although"
10674 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10675 echo "***"
10676 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10677 echo "*** came with the system with the command"
10678 echo "***"
10679 echo "*** rpm --erase --nodeps gtk gtk-devel"
10680else
10681 echo "configure: failed program was:" >&5
10682 cat conftest.$ac_ext >&5
10683 rm -rf conftest*
10684 echo "*** The test program failed to compile or link. See the file config.log for the"
10685 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10686 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10687 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
10688fi
10689rm -f conftest*
10690 CFLAGS="$ac_save_CFLAGS"
10691 LIBS="$ac_save_LIBS"
10692 fi
10693 fi
10694 GTK_CFLAGS=""
10695 GTK_LIBS=""
10696 :
10697 fi
10698
10699
10700 rm -f conf.gtktest
10701
10702 fi
10703
10704 if test -z "$wx_cv_lib_gtk"; then
10705 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10706if test "${with_gtk_prefix+set}" = set; then
10707 withval="$with_gtk_prefix"
10708 gtk_config_prefix="$withval"
10709else
10710 gtk_config_prefix=""
10711fi
10712
10713# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10714if test "${with_gtk_exec_prefix+set}" = set; then
10715 withval="$with_gtk_exec_prefix"
10716 gtk_config_exec_prefix="$withval"
10717else
10718 gtk_config_exec_prefix=""
10719fi
10720
10721# Check whether --enable-gtktest or --disable-gtktest was given.
10722if test "${enable_gtktest+set}" = set; then
10723 enableval="$enable_gtktest"
10724 :
10725else
10726 enable_gtktest=yes
10727fi
10728
10729
10730 for module in . $GTK_MODULES
10731 do
10732 case "$module" in
10733 gthread)
10734 gtk_config_args="$gtk_config_args gthread"
10735 ;;
10736 esac
10737 done
10738
10739 if test x$gtk_config_exec_prefix != x ; then
10740 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10741 if test x${GTK_CONFIG+set} != xset ; then
10742 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10743 fi
10744 fi
10745 if test x$gtk_config_prefix != x ; then
10746 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10747 if test x${GTK_CONFIG+set} != xset ; then
10748 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10749 fi
10750 fi
10751
10752 # Extract the first word of "gtk-config", so it can be a program name with args.
10753set dummy gtk-config; ac_word=$2
10754echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10755echo "configure:10756: checking for $ac_word" >&5
10756if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10757 echo $ac_n "(cached) $ac_c" 1>&6
10758else
10759 case "$GTK_CONFIG" in
10760 /*)
10761 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10762 ;;
10763 ?:/*)
10764 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10765 ;;
10766 *)
10767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10768 ac_dummy="$PATH"
10769 for ac_dir in $ac_dummy; do
10770 test -z "$ac_dir" && ac_dir=.
10771 if test -f $ac_dir/$ac_word; then
10772 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10773 break
10774 fi
10775 done
10776 IFS="$ac_save_ifs"
10777 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10778 ;;
10779esac
10780fi
10781GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10782if test -n "$GTK_CONFIG"; then
10783 echo "$ac_t""$GTK_CONFIG" 1>&6
10784else
10785 echo "$ac_t""no" 1>&6
10786fi
10787
10788 min_gtk_version=1.2.7
10789 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10790echo "configure:10791: checking for GTK - version >= $min_gtk_version" >&5
10791 no_gtk=""
10792 if test "$GTK_CONFIG" = "no" ; then
10793 no_gtk=yes
10794 else
10795 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10796 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10797 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10798 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10799 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10800 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10801 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10802 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10803 if test "x$enable_gtktest" = "xyes" ; then
10804 ac_save_CFLAGS="$CFLAGS"
10805 ac_save_LIBS="$LIBS"
10806 CFLAGS="$CFLAGS $GTK_CFLAGS"
10807 LIBS="$GTK_LIBS $LIBS"
10808 rm -f conf.gtktest
10809 if test "$cross_compiling" = yes; then
10810 echo $ac_n "cross compiling; assumed OK... $ac_c"
10811else
10812 cat > conftest.$ac_ext <<EOF
10813#line 10814 "configure"
10814#include "confdefs.h"
10815
10816#include <gtk/gtk.h>
10817#include <stdio.h>
10818#include <stdlib.h>
10819
10820int
10821main ()
10822{
10823 int major, minor, micro;
10824 char *tmp_version;
10825
10826 system ("touch conf.gtktest");
10827
10828 /* HP/UX 9 (%@#!) writes to sscanf strings */
10829 tmp_version = g_strdup("$min_gtk_version");
10830 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10831 printf("%s, bad version string\n", "$min_gtk_version");
10832 exit(1);
10833 }
10834
10835 if ((gtk_major_version != $gtk_config_major_version) ||
10836 (gtk_minor_version != $gtk_config_minor_version) ||
10837 (gtk_micro_version != $gtk_config_micro_version))
10838 {
10839 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10840 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10841 gtk_major_version, gtk_minor_version, gtk_micro_version);
10842 printf ("*** was found! If gtk-config was correct, then it is best\n");
10843 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10844 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10845 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10846 printf("*** required on your system.\n");
10847 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10848 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10849 printf("*** before re-running configure\n");
10850 }
10851#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10852 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10853 (gtk_minor_version != GTK_MINOR_VERSION) ||
10854 (gtk_micro_version != GTK_MICRO_VERSION))
10855 {
10856 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10857 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10858 printf("*** library (version %d.%d.%d)\n",
10859 gtk_major_version, gtk_minor_version, gtk_micro_version);
10860 }
10861#endif /* defined (GTK_MAJOR_VERSION) ... */
10862 else
10863 {
10864 if ((gtk_major_version > major) ||
10865 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10866 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10867 {
10868 return 0;
10869 }
10870 else
10871 {
10872 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10873 gtk_major_version, gtk_minor_version, gtk_micro_version);
10874 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10875 major, minor, micro);
10876 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10877 printf("***\n");
10878 printf("*** If you have already installed a sufficiently new version, this error\n");
10879 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10880 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10881 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10882 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10883 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10884 printf("*** so that the correct libraries are found at run-time))\n");
10885 }
10886 }
10887 return 1;
10888}
10889
10890EOF
10891if { (eval echo configure:10892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10892then
10893 :
10894else
10895 echo "configure: failed program was:" >&5
10896 cat conftest.$ac_ext >&5
10897 rm -fr conftest*
10898 no_gtk=yes
10899fi
10900rm -fr conftest*
10901fi
10902
10903 CFLAGS="$ac_save_CFLAGS"
10904 LIBS="$ac_save_LIBS"
10905 fi
10906 fi
10907 if test "x$no_gtk" = x ; then
10908 echo "$ac_t""yes" 1>&6
10909 wx_cv_lib_gtk=1.2.7
10910 else
10911 echo "$ac_t""no" 1>&6
10912 if test "$GTK_CONFIG" = "no" ; then
10913 echo "*** The gtk-config script installed by GTK could not be found"
10914 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10915 echo "*** your path, or set the GTK_CONFIG environment variable to the"
10916 echo "*** full path to gtk-config."
10917 else
10918 if test -f conf.gtktest ; then
10919 :
10920 else
10921 echo "*** Could not run GTK test program, checking why..."
10922 CFLAGS="$CFLAGS $GTK_CFLAGS"
10923 LIBS="$LIBS $GTK_LIBS"
10924 cat > conftest.$ac_ext <<EOF
10925#line 10926 "configure"
10926#include "confdefs.h"
10927
10928#include <gtk/gtk.h>
10929#include <stdio.h>
10930
10931int main() {
10932 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10933; return 0; }
10934EOF
10935if { (eval echo configure:10936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10936 rm -rf conftest*
10937 echo "*** The test program compiled, but did not run. This usually means"
10938 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10939 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10940 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10941 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10942 echo "*** is required on your system"
10943 echo "***"
10944 echo "*** If you have an old version installed, it is best to remove it, although"
10945 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10946 echo "***"
10947 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10948 echo "*** came with the system with the command"
10949 echo "***"
10950 echo "*** rpm --erase --nodeps gtk gtk-devel"
10951else
10952 echo "configure: failed program was:" >&5
10953 cat conftest.$ac_ext >&5
10954 rm -rf conftest*
10955 echo "*** The test program failed to compile or link. See the file config.log for the"
10956 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10957 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10958 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
10959fi
10960rm -f conftest*
10961 CFLAGS="$ac_save_CFLAGS"
10962 LIBS="$ac_save_LIBS"
10963 fi
10964 fi
10965 GTK_CFLAGS=""
10966 GTK_LIBS=""
10967 :
10968 fi
10969
10970
10971 rm -f conf.gtktest
10972
10973 fi
10974
10975 if test -z "$wx_cv_lib_gtk"; then
10976 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10977if test "${with_gtk_prefix+set}" = set; then
10978 withval="$with_gtk_prefix"
10979 gtk_config_prefix="$withval"
10980else
10981 gtk_config_prefix=""
10982fi
10983
10984# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10985if test "${with_gtk_exec_prefix+set}" = set; then
10986 withval="$with_gtk_exec_prefix"
10987 gtk_config_exec_prefix="$withval"
10988else
10989 gtk_config_exec_prefix=""
10990fi
10991
10992# Check whether --enable-gtktest or --disable-gtktest was given.
10993if test "${enable_gtktest+set}" = set; then
10994 enableval="$enable_gtktest"
10995 :
10996else
10997 enable_gtktest=yes
10998fi
10999
11000
11001 for module in . $GTK_MODULES
11002 do
11003 case "$module" in
11004 gthread)
11005 gtk_config_args="$gtk_config_args gthread"
11006 ;;
11007 esac
11008 done
11009
11010 if test x$gtk_config_exec_prefix != x ; then
11011 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
11012 if test x${GTK_CONFIG+set} != xset ; then
11013 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
11014 fi
11015 fi
11016 if test x$gtk_config_prefix != x ; then
11017 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
11018 if test x${GTK_CONFIG+set} != xset ; then
11019 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
11020 fi
11021 fi
11022
11023 # Extract the first word of "gtk-config", so it can be a program name with args.
11024set dummy gtk-config; ac_word=$2
11025echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11026echo "configure:11027: checking for $ac_word" >&5
11027if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
11028 echo $ac_n "(cached) $ac_c" 1>&6
11029else
11030 case "$GTK_CONFIG" in
11031 /*)
11032 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
11033 ;;
11034 ?:/*)
11035 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
11036 ;;
11037 *)
11038 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11039 ac_dummy="$PATH"
11040 for ac_dir in $ac_dummy; do
11041 test -z "$ac_dir" && ac_dir=.
11042 if test -f $ac_dir/$ac_word; then
11043 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
11044 break
11045 fi
11046 done
11047 IFS="$ac_save_ifs"
11048 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
11049 ;;
11050esac
11051fi
11052GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
11053if test -n "$GTK_CONFIG"; then
11054 echo "$ac_t""$GTK_CONFIG" 1>&6
11055else
11056 echo "$ac_t""no" 1>&6
11057fi
11058
11059 min_gtk_version=1.2.3
11060 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
11061echo "configure:11062: checking for GTK - version >= $min_gtk_version" >&5
11062 no_gtk=""
11063 if test "$GTK_CONFIG" = "no" ; then
11064 no_gtk=yes
11065 else
11066 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
11067 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
11068 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
11069 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11070 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
11071 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11072 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
11073 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11074 if test "x$enable_gtktest" = "xyes" ; then
11075 ac_save_CFLAGS="$CFLAGS"
11076 ac_save_LIBS="$LIBS"
11077 CFLAGS="$CFLAGS $GTK_CFLAGS"
11078 LIBS="$GTK_LIBS $LIBS"
11079 rm -f conf.gtktest
11080 if test "$cross_compiling" = yes; then
11081 echo $ac_n "cross compiling; assumed OK... $ac_c"
11082else
11083 cat > conftest.$ac_ext <<EOF
11084#line 11085 "configure"
11085#include "confdefs.h"
11086
11087#include <gtk/gtk.h>
11088#include <stdio.h>
11089#include <stdlib.h>
11090
11091int
11092main ()
11093{
11094 int major, minor, micro;
11095 char *tmp_version;
11096
11097 system ("touch conf.gtktest");
11098
11099 /* HP/UX 9 (%@#!) writes to sscanf strings */
11100 tmp_version = g_strdup("$min_gtk_version");
11101 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11102 printf("%s, bad version string\n", "$min_gtk_version");
11103 exit(1);
11104 }
11105
11106 if ((gtk_major_version != $gtk_config_major_version) ||
11107 (gtk_minor_version != $gtk_config_minor_version) ||
11108 (gtk_micro_version != $gtk_config_micro_version))
11109 {
11110 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
11111 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11112 gtk_major_version, gtk_minor_version, gtk_micro_version);
11113 printf ("*** was found! If gtk-config was correct, then it is best\n");
11114 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11115 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11116 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11117 printf("*** required on your system.\n");
11118 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
11119 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
11120 printf("*** before re-running configure\n");
11121 }
11122#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
11123 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11124 (gtk_minor_version != GTK_MINOR_VERSION) ||
11125 (gtk_micro_version != GTK_MICRO_VERSION))
11126 {
11127 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11128 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11129 printf("*** library (version %d.%d.%d)\n",
11130 gtk_major_version, gtk_minor_version, gtk_micro_version);
11131 }
11132#endif /* defined (GTK_MAJOR_VERSION) ... */
11133 else
11134 {
11135 if ((gtk_major_version > major) ||
11136 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11137 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11138 {
11139 return 0;
11140 }
11141 else
11142 {
11143 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11144 gtk_major_version, gtk_minor_version, gtk_micro_version);
11145 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11146 major, minor, micro);
11147 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11148 printf("***\n");
11149 printf("*** If you have already installed a sufficiently new version, this error\n");
11150 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
11151 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11152 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
11153 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
11154 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11155 printf("*** so that the correct libraries are found at run-time))\n");
11156 }
11157 }
11158 return 1;
11159}
11160
11161EOF
11162if { (eval echo configure:11163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11163then
11164 :
11165else
11166 echo "configure: failed program was:" >&5
11167 cat conftest.$ac_ext >&5
11168 rm -fr conftest*
11169 no_gtk=yes
11170fi
11171rm -fr conftest*
11172fi
11173
11174 CFLAGS="$ac_save_CFLAGS"
11175 LIBS="$ac_save_LIBS"
11176 fi
11177 fi
11178 if test "x$no_gtk" = x ; then
11179 echo "$ac_t""yes" 1>&6
11180 wx_cv_lib_gtk=1.2.3
11181 else
11182 echo "$ac_t""no" 1>&6
11183 if test "$GTK_CONFIG" = "no" ; then
11184 echo "*** The gtk-config script installed by GTK could not be found"
11185 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
11186 echo "*** your path, or set the GTK_CONFIG environment variable to the"
11187 echo "*** full path to gtk-config."
11188 else
11189 if test -f conf.gtktest ; then
11190 :
11191 else
11192 echo "*** Could not run GTK test program, checking why..."
11193 CFLAGS="$CFLAGS $GTK_CFLAGS"
11194 LIBS="$LIBS $GTK_LIBS"
11195 cat > conftest.$ac_ext <<EOF
11196#line 11197 "configure"
11197#include "confdefs.h"
11198
11199#include <gtk/gtk.h>
11200#include <stdio.h>
11201
11202int main() {
11203 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
11204; return 0; }
11205EOF
11206if { (eval echo configure:11207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11207 rm -rf conftest*
11208 echo "*** The test program compiled, but did not run. This usually means"
11209 echo "*** that the run-time linker is not finding GTK or finding the wrong"
11210 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
11211 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11212 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11213 echo "*** is required on your system"
11214 echo "***"
11215 echo "*** If you have an old version installed, it is best to remove it, although"
11216 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11217 echo "***"
11218 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
11219 echo "*** came with the system with the command"
11220 echo "***"
11221 echo "*** rpm --erase --nodeps gtk gtk-devel"
11222else
11223 echo "configure: failed program was:" >&5
11224 cat conftest.$ac_ext >&5
11225 rm -rf conftest*
11226 echo "*** The test program failed to compile or link. See the file config.log for the"
11227 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
11228 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
11229 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
11230fi
11231rm -f conftest*
11232 CFLAGS="$ac_save_CFLAGS"
11233 LIBS="$ac_save_LIBS"
11234 fi
11235 fi
11236 GTK_CFLAGS=""
11237 GTK_LIBS=""
11238 :
11239 fi
11240
11241
11242 rm -f conf.gtktest
11243
11244 fi
11245
11246 if test -z "$wx_cv_lib_gtk"; then
11247 wx_cv_lib_gtk=none
11248 else
11249 wx_cv_cflags_gtk=$GTK_CFLAGS
11250 wx_cv_libs_gtk=$GTK_LIBS
11251 fi
11252
11253
11254fi
11255
11256
11257 if test "$gtk_version_cached" = 1; then
11258 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
11259 fi
11260
11261 case "$wx_cv_lib_gtk" in
11262 2.0) WXGTK20=1
11263 ;;
11264 1.2.7) WXGTK127=1
11265 WXGTK12=1
11266 ;;
11267 1.2.3) WXGTK12=1
11268 ;;
11269 *) { echo "configure: error:
11270Please check that gtk-config is in path, the directory
11271where GTK+ libraries are installed (returned by
11272'gtk-config --libs' command) is in LD_LIBRARY_PATH or
11273equivalent variable and GTK+ is version 1.2.3 or above.
11274 " 1>&2; exit 1; }
11275 ;;
11276 esac
11277
11278 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11279 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
11280
11281 AFMINSTALL=afminstall
11282 TOOLKIT=GTK
11283 GUIDIST=GTK_DIST
11284
11285 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
11286echo "configure:11287: checking for gdk_im_open in -lgdk" >&5
11287ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
11288if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11289 echo $ac_n "(cached) $ac_c" 1>&6
11290else
11291 ac_save_LIBS="$LIBS"
11292LIBS="-lgdk $LIBS"
11293cat > conftest.$ac_ext <<EOF
11294#line 11295 "configure"
11295#include "confdefs.h"
11296/* Override any gcc2 internal prototype to avoid an error. */
11297/* We use char because int might match the return type of a gcc2
11298 builtin and then its argument prototype would still apply. */
11299char gdk_im_open();
11300
11301int main() {
11302gdk_im_open()
11303; return 0; }
11304EOF
11305if { (eval echo configure:11306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11306 rm -rf conftest*
11307 eval "ac_cv_lib_$ac_lib_var=yes"
11308else
11309 echo "configure: failed program was:" >&5
11310 cat conftest.$ac_ext >&5
11311 rm -rf conftest*
11312 eval "ac_cv_lib_$ac_lib_var=no"
11313fi
11314rm -f conftest*
11315LIBS="$ac_save_LIBS"
11316
11317fi
11318if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11319 echo "$ac_t""yes" 1>&6
11320 cat >> confdefs.h <<\EOF
11321#define HAVE_XIM 1
11322EOF
11323
11324else
11325 echo "$ac_t""no" 1>&6
11326fi
11327
11328 fi
11329
11330 if test "$wxUSE_MGL" = 1; then
11331 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
11332echo "configure:11333: checking for SciTech MGL library" >&5
11333 if test "x$MGL_ROOT" = x ; then
11334 echo "$ac_t""not found" 1>&6
11335 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
11336 else
11337 echo "$ac_t""$MGL_ROOT" 1>&6
11338 fi
11339
11340 case "${host}" in
11341 *-*-linux* )
11342 mgl_os=linux/gcc/glibc
11343 ;;
11344 *-pc-msdosdjgpp )
11345 mgl_os=dos32/dj2
11346 ;;
11347 *)
11348 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
11349 esac
11350
11351 mgl_lib_type=""
11352
11353 if test "$wxUSE_DEBUG_FLAG" = yes ; then
11354 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
11355 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
11356 mgl_lib_type=debug
11357 fi
11358 fi
11359 if test "x$mgl_lib_type" = x ; then
11360 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
11361 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
11362 mgl_lib_type=release
11363 else
11364 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
11365 fi
11366 fi
11367
11368 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
11369 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
11370
11371 AFMINSTALL=afminstall
11372 TOOLKIT=MGL
11373 GUIDIST=MGL_DIST
11374 fi
11375
11376 if test "$wxUSE_MICROWIN" = 1; then
11377 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
11378echo "configure:11379: checking for MicroWindows" >&5
11379 if test "x$MICROWINDOWS" = x ; then
11380 echo "$ac_t""not found" 1>&6
11381 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
11382 else
11383 echo "$ac_t""$MICROWINDOWS" 1>&6
11384 fi
11385
11386 if test -f $MICROWINDOWS/lib/libmwin.a; then
11387 echo "$ac_t""MicroWindows' libraries found." 1>&6
11388 else
11389 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
11390 fi
11391
11392 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
11393 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
11394
11395 AFMINSTALL=afminstall
11396 TOOLKIT=MICROWIN
11397 GUIDIST=MICROWIN_DIST
11398
11399 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
11400 fi
11401
11402 if test "$wxUSE_WINE" = 1; then
11403 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11404echo $ac_n "checking for windows.h""... $ac_c" 1>&6
11405echo "configure:11406: checking for windows.h" >&5
11406if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11407 echo $ac_n "(cached) $ac_c" 1>&6
11408else
11409 cat > conftest.$ac_ext <<EOF
11410#line 11411 "configure"
11411#include "confdefs.h"
11412#include <windows.h>
11413EOF
11414ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11415{ (eval echo configure:11416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11416ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11417if test -z "$ac_err"; then
11418 rm -rf conftest*
11419 eval "ac_cv_header_$ac_safe=yes"
11420else
11421 echo "$ac_err" >&5
11422 echo "configure: failed program was:" >&5
11423 cat conftest.$ac_ext >&5
11424 rm -rf conftest*
11425 eval "ac_cv_header_$ac_safe=no"
11426fi
11427rm -f conftest*
11428fi
11429if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11430 echo "$ac_t""yes" 1>&6
11431 :
11432else
11433 echo "$ac_t""no" 1>&6
11434
11435 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
11436
11437fi
11438
11439
11440 xpm_link=
11441 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
11442echo "configure:11443: checking for Xpm library" >&5
11443
11444ac_find_libraries=
11445for ac_dir in $SEARCH_LIB;
11446 do
11447 for ac_extension in a so sl dylib; do
11448 if test -f "$ac_dir/libXpm.$ac_extension"; then
11449 ac_find_libraries=$ac_dir
11450 break 2
11451 fi
11452 done
11453 done
11454
11455 if test "$ac_find_libraries" != "" ; then
11456 GUI_TK_LIBRARY="-L$ac_find_libraries"
11457 xpm_link=" -lXpm"
11458 cat >> confdefs.h <<\EOF
11459#define wxHAVE_LIB_XPM 1
11460EOF
11461
11462 echo "$ac_t""found at $ac_find_libraries" 1>&6
11463 else
11464 echo "$ac_t""no" 1>&6
11465 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
11466 fi
11467
11468 mesa_link=
11469 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
11470echo "configure:11471: checking for Mesa library" >&5
11471
11472ac_find_libraries=
11473for ac_dir in $SEARCH_LIB;
11474 do
11475 for ac_extension in a so sl dylib; do
11476 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
11477 ac_find_libraries=$ac_dir
11478 break 2
11479 fi
11480 done
11481 done
11482
11483 if test "$ac_find_libraries" != "" ; then
11484 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
11485 mesa_link=" -lMesaGL"
11486 echo "$ac_t""found at $ac_find_libraries" 1>&6
11487 else
11488 { echo "configure: error: no" 1>&2; exit 1; }
11489 fi
11490
11491 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
11492 TOOLKIT=MSW
11493 GUIDIST=MSW_DIST
11494 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
11495 fi
11496
11497 if test "$wxUSE_MOTIF" = 1; then
11498 # If we find X, set shell vars x_includes and x_libraries to the
11499# paths, otherwise set no_x=yes.
11500# Uses ac_ vars as temps to allow command line to override cache and checks.
11501# --without-x overrides everything else, but does not touch the cache.
11502echo $ac_n "checking for X""... $ac_c" 1>&6
11503echo "configure:11504: checking for X" >&5
11504
11505# Check whether --with-x or --without-x was given.
11506if test "${with_x+set}" = set; then
11507 withval="$with_x"
11508 :
11509fi
11510
11511# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11512if test "x$with_x" = xno; then
11513 # The user explicitly disabled X.
11514 have_x=disabled
11515else
11516 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11517 # Both variables are already set.
11518 have_x=yes
11519 else
11520if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
11521 echo $ac_n "(cached) $ac_c" 1>&6
11522else
11523 # One or both of the vars are not set, and there is no cached value.
11524ac_x_includes=NO ac_x_libraries=NO
11525rm -fr conftestdir
11526if mkdir conftestdir; then
11527 cd conftestdir
11528 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
11529 cat > Imakefile <<'EOF'
11530acfindx:
11531 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11532EOF
11533 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11534 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11535 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11536 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11537 for ac_extension in a so sl; do
11538 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
11539 test -f $ac_im_libdir/libX11.$ac_extension; then
11540 ac_im_usrlibdir=$ac_im_libdir; break
11541 fi
11542 done
11543 # Screen out bogus values from the imake configuration. They are
11544 # bogus both because they are the default anyway, and because
11545 # using them would break gcc on systems where it needs fixed includes.
11546 case "$ac_im_incroot" in
11547 /usr/include) ;;
11548 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
11549 esac
11550 case "$ac_im_usrlibdir" in
11551 /usr/lib | /lib) ;;
11552 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
11553 esac
11554 fi
11555 cd ..
11556 rm -fr conftestdir
11557fi
11558
11559if test "$ac_x_includes" = NO; then
11560 # Guess where to find include files, by looking for this one X11 .h file.
11561 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
11562
11563 # First, try using that file with no special directory specified.
11564cat > conftest.$ac_ext <<EOF
11565#line 11566 "configure"
11566#include "confdefs.h"
11567#include <$x_direct_test_include>
11568EOF
11569ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11570{ (eval echo configure:11571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11571ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11572if test -z "$ac_err"; then
11573 rm -rf conftest*
11574 # We can compile using X headers with no special include directory.
11575ac_x_includes=
11576else
11577 echo "$ac_err" >&5
11578 echo "configure: failed program was:" >&5
11579 cat conftest.$ac_ext >&5
11580 rm -rf conftest*
11581 # Look for the header file in a standard set of common directories.
11582# Check X11 before X11Rn because it is often a symlink to the current release.
11583 for ac_dir in \
11584 /usr/X11/include \
11585 /usr/X11R6/include \
11586 /usr/X11R5/include \
11587 /usr/X11R4/include \
11588 \
11589 /usr/include/X11 \
11590 /usr/include/X11R6 \
11591 /usr/include/X11R5 \
11592 /usr/include/X11R4 \
11593 \
11594 /usr/local/X11/include \
11595 /usr/local/X11R6/include \
11596 /usr/local/X11R5/include \
11597 /usr/local/X11R4/include \
11598 \
11599 /usr/local/include/X11 \
11600 /usr/local/include/X11R6 \
11601 /usr/local/include/X11R5 \
11602 /usr/local/include/X11R4 \
11603 \
11604 /usr/X386/include \
11605 /usr/x386/include \
11606 /usr/XFree86/include/X11 \
11607 \
11608 /usr/include \
11609 /usr/local/include \
11610 /usr/unsupported/include \
11611 /usr/athena/include \
11612 /usr/local/x11r5/include \
11613 /usr/lpp/Xamples/include \
11614 \
11615 /usr/openwin/include \
11616 /usr/openwin/share/include \
11617 ; \
11618 do
11619 if test -r "$ac_dir/$x_direct_test_include"; then
11620 ac_x_includes=$ac_dir
11621 break
11622 fi
11623 done
11624fi
11625rm -f conftest*
11626fi # $ac_x_includes = NO
11627
11628if test "$ac_x_libraries" = NO; then
11629 # Check for the libraries.
11630
11631 test -z "$x_direct_test_library" && x_direct_test_library=Xt
11632 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
11633
11634 # See if we find them without any special options.
11635 # Don't add to $LIBS permanently.
11636 ac_save_LIBS="$LIBS"
11637 LIBS="-l$x_direct_test_library $LIBS"
11638cat > conftest.$ac_ext <<EOF
11639#line 11640 "configure"
11640#include "confdefs.h"
11641
11642int main() {
11643${x_direct_test_function}()
11644; return 0; }
11645EOF
11646if { (eval echo configure:11647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11647 rm -rf conftest*
11648 LIBS="$ac_save_LIBS"
11649# We can link X programs with no special library path.
11650ac_x_libraries=
11651else
11652 echo "configure: failed program was:" >&5
11653 cat conftest.$ac_ext >&5
11654 rm -rf conftest*
11655 LIBS="$ac_save_LIBS"
11656# First see if replacing the include by lib works.
11657# Check X11 before X11Rn because it is often a symlink to the current release.
11658for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
11659 /usr/X11/lib \
11660 /usr/X11R6/lib \
11661 /usr/X11R5/lib \
11662 /usr/X11R4/lib \
11663 \
11664 /usr/lib/X11 \
11665 /usr/lib/X11R6 \
11666 /usr/lib/X11R5 \
11667 /usr/lib/X11R4 \
11668 \
11669 /usr/local/X11/lib \
11670 /usr/local/X11R6/lib \
11671 /usr/local/X11R5/lib \
11672 /usr/local/X11R4/lib \
11673 \
11674 /usr/local/lib/X11 \
11675 /usr/local/lib/X11R6 \
11676 /usr/local/lib/X11R5 \
11677 /usr/local/lib/X11R4 \
11678 \
11679 /usr/X386/lib \
11680 /usr/x386/lib \
11681 /usr/XFree86/lib/X11 \
11682 \
11683 /usr/lib \
11684 /usr/local/lib \
11685 /usr/unsupported/lib \
11686 /usr/athena/lib \
11687 /usr/local/x11r5/lib \
11688 /usr/lpp/Xamples/lib \
11689 /lib/usr/lib/X11 \
11690 \
11691 /usr/openwin/lib \
11692 /usr/openwin/share/lib \
11693 ; \
11694do
11695 for ac_extension in a so sl; do
11696 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
11697 ac_x_libraries=$ac_dir
11698 break 2
11699 fi
11700 done
11701done
11702fi
11703rm -f conftest*
11704fi # $ac_x_libraries = NO
11705
11706if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
11707 # Didn't find X anywhere. Cache the known absence of X.
11708 ac_cv_have_x="have_x=no"
11709else
11710 # Record where we found X for the cache.
11711 ac_cv_have_x="have_x=yes \
11712 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11713fi
11714fi
11715 fi
11716 eval "$ac_cv_have_x"
11717fi # $with_x != no
11718
11719if test "$have_x" != yes; then
11720 echo "$ac_t""$have_x" 1>&6
11721 no_x=yes
11722else
11723 # If each of the values was on the command line, it overrides each guess.
11724 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11725 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11726 # Update the cache value to reflect the command line values.
11727 ac_cv_have_x="have_x=yes \
11728 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
11729 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
11730fi
11731
11732if test "$no_x" = yes; then
11733 # Not all programs may use this symbol, but it does not hurt to define it.
11734 cat >> confdefs.h <<\EOF
11735#define X_DISPLAY_MISSING 1
11736EOF
11737
11738 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11739else
11740 if test -n "$x_includes"; then
11741 X_CFLAGS="$X_CFLAGS -I$x_includes"
11742 fi
11743
11744 # It would also be nice to do this for all -L options, not just this one.
11745 if test -n "$x_libraries"; then
11746 X_LIBS="$X_LIBS -L$x_libraries"
11747 # For Solaris; some versions of Sun CC require a space after -R and
11748 # others require no space. Words are not sufficient . . . .
11749 case "`(uname -sr) 2>/dev/null`" in
11750 "SunOS 5"*)
11751 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
11752echo "configure:11753: checking whether -R must be followed by a space" >&5
11753 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
11754 cat > conftest.$ac_ext <<EOF
11755#line 11756 "configure"
11756#include "confdefs.h"
11757
11758int main() {
11759
11760; return 0; }
11761EOF
11762if { (eval echo configure:11763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11763 rm -rf conftest*
11764 ac_R_nospace=yes
11765else
11766 echo "configure: failed program was:" >&5
11767 cat conftest.$ac_ext >&5
11768 rm -rf conftest*
11769 ac_R_nospace=no
11770fi
11771rm -f conftest*
11772 if test $ac_R_nospace = yes; then
11773 echo "$ac_t""no" 1>&6
11774 X_LIBS="$X_LIBS -R$x_libraries"
11775 else
11776 LIBS="$ac_xsave_LIBS -R $x_libraries"
11777 cat > conftest.$ac_ext <<EOF
11778#line 11779 "configure"
11779#include "confdefs.h"
11780
11781int main() {
11782
11783; return 0; }
11784EOF
11785if { (eval echo configure:11786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11786 rm -rf conftest*
11787 ac_R_space=yes
11788else
11789 echo "configure: failed program was:" >&5
11790 cat conftest.$ac_ext >&5
11791 rm -rf conftest*
11792 ac_R_space=no
11793fi
11794rm -f conftest*
11795 if test $ac_R_space = yes; then
11796 echo "$ac_t""yes" 1>&6
11797 X_LIBS="$X_LIBS -R $x_libraries"
11798 else
11799 echo "$ac_t""neither works" 1>&6
11800 fi
11801 fi
11802 LIBS="$ac_xsave_LIBS"
11803 esac
11804 fi
11805
11806 # Check for system-dependent libraries X programs must link with.
11807 # Do this before checking for the system-independent R6 libraries
11808 # (-lICE), since we may need -lsocket or whatever for X linking.
11809
11810 if test "$ISC" = yes; then
11811 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11812 else
11813 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
11814 # libraries were built with DECnet support. And karl@cs.umb.edu says
11815 # the Alpha needs dnet_stub (dnet does not exist).
11816 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
11817echo "configure:11818: checking for dnet_ntoa in -ldnet" >&5
11818ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11819if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11820 echo $ac_n "(cached) $ac_c" 1>&6
11821else
11822 ac_save_LIBS="$LIBS"
11823LIBS="-ldnet $LIBS"
11824cat > conftest.$ac_ext <<EOF
11825#line 11826 "configure"
11826#include "confdefs.h"
11827/* Override any gcc2 internal prototype to avoid an error. */
11828/* We use char because int might match the return type of a gcc2
11829 builtin and then its argument prototype would still apply. */
11830char dnet_ntoa();
11831
11832int main() {
11833dnet_ntoa()
11834; return 0; }
11835EOF
11836if { (eval echo configure:11837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11837 rm -rf conftest*
11838 eval "ac_cv_lib_$ac_lib_var=yes"
11839else
11840 echo "configure: failed program was:" >&5
11841 cat conftest.$ac_ext >&5
11842 rm -rf conftest*
11843 eval "ac_cv_lib_$ac_lib_var=no"
11844fi
11845rm -f conftest*
11846LIBS="$ac_save_LIBS"
11847
11848fi
11849if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11850 echo "$ac_t""yes" 1>&6
11851 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11852else
11853 echo "$ac_t""no" 1>&6
11854fi
11855
11856 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11857 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
11858echo "configure:11859: checking for dnet_ntoa in -ldnet_stub" >&5
11859ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11860if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11861 echo $ac_n "(cached) $ac_c" 1>&6
11862else
11863 ac_save_LIBS="$LIBS"
11864LIBS="-ldnet_stub $LIBS"
11865cat > conftest.$ac_ext <<EOF
11866#line 11867 "configure"
11867#include "confdefs.h"
11868/* Override any gcc2 internal prototype to avoid an error. */
11869/* We use char because int might match the return type of a gcc2
11870 builtin and then its argument prototype would still apply. */
11871char dnet_ntoa();
11872
11873int main() {
11874dnet_ntoa()
11875; return 0; }
11876EOF
11877if { (eval echo configure:11878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11878 rm -rf conftest*
11879 eval "ac_cv_lib_$ac_lib_var=yes"
11880else
11881 echo "configure: failed program was:" >&5
11882 cat conftest.$ac_ext >&5
11883 rm -rf conftest*
11884 eval "ac_cv_lib_$ac_lib_var=no"
11885fi
11886rm -f conftest*
11887LIBS="$ac_save_LIBS"
11888
11889fi
11890if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11891 echo "$ac_t""yes" 1>&6
11892 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
11893else
11894 echo "$ac_t""no" 1>&6
11895fi
11896
11897 fi
11898
11899 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11900 # to get the SysV transport functions.
11901 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
11902 # needs -lnsl.
11903 # The nsl library prevents programs from opening the X display
11904 # on Irix 5.2, according to dickey@clark.net.
11905 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
11906echo "configure:11907: checking for gethostbyname" >&5
11907if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
11908 echo $ac_n "(cached) $ac_c" 1>&6
11909else
11910 cat > conftest.$ac_ext <<EOF
11911#line 11912 "configure"
11912#include "confdefs.h"
11913/* System header to define __stub macros and hopefully few prototypes,
11914 which can conflict with char gethostbyname(); below. */
11915#include <assert.h>
11916/* Override any gcc2 internal prototype to avoid an error. */
11917/* We use char because int might match the return type of a gcc2
11918 builtin and then its argument prototype would still apply. */
11919char gethostbyname();
11920
11921int main() {
11922
11923/* The GNU C library defines this for functions which it implements
11924 to always fail with ENOSYS. Some functions are actually named
11925 something starting with __ and the normal name is an alias. */
11926#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11927choke me
11928#else
11929gethostbyname();
11930#endif
11931
11932; return 0; }
11933EOF
11934if { (eval echo configure:11935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11935 rm -rf conftest*
11936 eval "ac_cv_func_gethostbyname=yes"
11937else
11938 echo "configure: failed program was:" >&5
11939 cat conftest.$ac_ext >&5
11940 rm -rf conftest*
11941 eval "ac_cv_func_gethostbyname=no"
11942fi
11943rm -f conftest*
11944fi
11945
11946if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
11947 echo "$ac_t""yes" 1>&6
11948 :
11949else
11950 echo "$ac_t""no" 1>&6
11951fi
11952
11953 if test $ac_cv_func_gethostbyname = no; then
11954 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
11955echo "configure:11956: checking for gethostbyname in -lnsl" >&5
11956ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
11957if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11958 echo $ac_n "(cached) $ac_c" 1>&6
11959else
11960 ac_save_LIBS="$LIBS"
11961LIBS="-lnsl $LIBS"
11962cat > conftest.$ac_ext <<EOF
11963#line 11964 "configure"
11964#include "confdefs.h"
11965/* Override any gcc2 internal prototype to avoid an error. */
11966/* We use char because int might match the return type of a gcc2
11967 builtin and then its argument prototype would still apply. */
11968char gethostbyname();
11969
11970int main() {
11971gethostbyname()
11972; return 0; }
11973EOF
11974if { (eval echo configure:11975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11975 rm -rf conftest*
11976 eval "ac_cv_lib_$ac_lib_var=yes"
11977else
11978 echo "configure: failed program was:" >&5
11979 cat conftest.$ac_ext >&5
11980 rm -rf conftest*
11981 eval "ac_cv_lib_$ac_lib_var=no"
11982fi
11983rm -f conftest*
11984LIBS="$ac_save_LIBS"
11985
11986fi
11987if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11988 echo "$ac_t""yes" 1>&6
11989 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11990else
11991 echo "$ac_t""no" 1>&6
11992fi
11993
11994 fi
11995
11996 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11997 # socket/setsockopt and other routines are undefined under SCO ODT
11998 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
11999 # on later versions), says simon@lia.di.epfl.ch: it contains
12000 # gethostby* variants that don't use the nameserver (or something).
12001 # -lsocket must be given before -lnsl if both are needed.
12002 # We assume that if connect needs -lnsl, so does gethostbyname.
12003 echo $ac_n "checking for connect""... $ac_c" 1>&6
12004echo "configure:12005: checking for connect" >&5
12005if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
12006 echo $ac_n "(cached) $ac_c" 1>&6
12007else
12008 cat > conftest.$ac_ext <<EOF
12009#line 12010 "configure"
12010#include "confdefs.h"
12011/* System header to define __stub macros and hopefully few prototypes,
12012 which can conflict with char connect(); below. */
12013#include <assert.h>
12014/* Override any gcc2 internal prototype to avoid an error. */
12015/* We use char because int might match the return type of a gcc2
12016 builtin and then its argument prototype would still apply. */
12017char connect();
12018
12019int main() {
12020
12021/* The GNU C library defines this for functions which it implements
12022 to always fail with ENOSYS. Some functions are actually named
12023 something starting with __ and the normal name is an alias. */
12024#if defined (__stub_connect) || defined (__stub___connect)
12025choke me
12026#else
12027connect();
12028#endif
12029
12030; return 0; }
12031EOF
12032if { (eval echo configure:12033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12033 rm -rf conftest*
12034 eval "ac_cv_func_connect=yes"
12035else
12036 echo "configure: failed program was:" >&5
12037 cat conftest.$ac_ext >&5
12038 rm -rf conftest*
12039 eval "ac_cv_func_connect=no"
12040fi
12041rm -f conftest*
12042fi
12043
12044if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
12045 echo "$ac_t""yes" 1>&6
12046 :
12047else
12048 echo "$ac_t""no" 1>&6
12049fi
12050
12051 if test $ac_cv_func_connect = no; then
12052 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
12053echo "configure:12054: checking for connect in -lsocket" >&5
12054ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
12055if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12056 echo $ac_n "(cached) $ac_c" 1>&6
12057else
12058 ac_save_LIBS="$LIBS"
12059LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12060cat > conftest.$ac_ext <<EOF
12061#line 12062 "configure"
12062#include "confdefs.h"
12063/* Override any gcc2 internal prototype to avoid an error. */
12064/* We use char because int might match the return type of a gcc2
12065 builtin and then its argument prototype would still apply. */
12066char connect();
12067
12068int main() {
12069connect()
12070; return 0; }
12071EOF
12072if { (eval echo configure:12073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12073 rm -rf conftest*
12074 eval "ac_cv_lib_$ac_lib_var=yes"
12075else
12076 echo "configure: failed program was:" >&5
12077 cat conftest.$ac_ext >&5
12078 rm -rf conftest*
12079 eval "ac_cv_lib_$ac_lib_var=no"
12080fi
12081rm -f conftest*
12082LIBS="$ac_save_LIBS"
12083
12084fi
12085if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12086 echo "$ac_t""yes" 1>&6
12087 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12088else
12089 echo "$ac_t""no" 1>&6
12090fi
12091
12092 fi
12093
12094 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
12095 echo $ac_n "checking for remove""... $ac_c" 1>&6
12096echo "configure:12097: checking for remove" >&5
12097if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
12098 echo $ac_n "(cached) $ac_c" 1>&6
12099else
12100 cat > conftest.$ac_ext <<EOF
12101#line 12102 "configure"
12102#include "confdefs.h"
12103/* System header to define __stub macros and hopefully few prototypes,
12104 which can conflict with char remove(); below. */
12105#include <assert.h>
12106/* Override any gcc2 internal prototype to avoid an error. */
12107/* We use char because int might match the return type of a gcc2
12108 builtin and then its argument prototype would still apply. */
12109char remove();
12110
12111int main() {
12112
12113/* The GNU C library defines this for functions which it implements
12114 to always fail with ENOSYS. Some functions are actually named
12115 something starting with __ and the normal name is an alias. */
12116#if defined (__stub_remove) || defined (__stub___remove)
12117choke me
12118#else
12119remove();
12120#endif
12121
12122; return 0; }
12123EOF
12124if { (eval echo configure:12125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12125 rm -rf conftest*
12126 eval "ac_cv_func_remove=yes"
12127else
12128 echo "configure: failed program was:" >&5
12129 cat conftest.$ac_ext >&5
12130 rm -rf conftest*
12131 eval "ac_cv_func_remove=no"
12132fi
12133rm -f conftest*
12134fi
12135
12136if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
12137 echo "$ac_t""yes" 1>&6
12138 :
12139else
12140 echo "$ac_t""no" 1>&6
12141fi
12142
12143 if test $ac_cv_func_remove = no; then
12144 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
12145echo "configure:12146: checking for remove in -lposix" >&5
12146ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
12147if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12148 echo $ac_n "(cached) $ac_c" 1>&6
12149else
12150 ac_save_LIBS="$LIBS"
12151LIBS="-lposix $LIBS"
12152cat > conftest.$ac_ext <<EOF
12153#line 12154 "configure"
12154#include "confdefs.h"
12155/* Override any gcc2 internal prototype to avoid an error. */
12156/* We use char because int might match the return type of a gcc2
12157 builtin and then its argument prototype would still apply. */
12158char remove();
12159
12160int main() {
12161remove()
12162; return 0; }
12163EOF
12164if { (eval echo configure:12165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12165 rm -rf conftest*
12166 eval "ac_cv_lib_$ac_lib_var=yes"
12167else
12168 echo "configure: failed program was:" >&5
12169 cat conftest.$ac_ext >&5
12170 rm -rf conftest*
12171 eval "ac_cv_lib_$ac_lib_var=no"
12172fi
12173rm -f conftest*
12174LIBS="$ac_save_LIBS"
12175
12176fi
12177if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12178 echo "$ac_t""yes" 1>&6
12179 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12180else
12181 echo "$ac_t""no" 1>&6
12182fi
12183
12184 fi
12185
12186 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12187 echo $ac_n "checking for shmat""... $ac_c" 1>&6
12188echo "configure:12189: checking for shmat" >&5
12189if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
12190 echo $ac_n "(cached) $ac_c" 1>&6
12191else
12192 cat > conftest.$ac_ext <<EOF
12193#line 12194 "configure"
12194#include "confdefs.h"
12195/* System header to define __stub macros and hopefully few prototypes,
12196 which can conflict with char shmat(); below. */
12197#include <assert.h>
12198/* Override any gcc2 internal prototype to avoid an error. */
12199/* We use char because int might match the return type of a gcc2
12200 builtin and then its argument prototype would still apply. */
12201char shmat();
12202
12203int main() {
12204
12205/* The GNU C library defines this for functions which it implements
12206 to always fail with ENOSYS. Some functions are actually named
12207 something starting with __ and the normal name is an alias. */
12208#if defined (__stub_shmat) || defined (__stub___shmat)
12209choke me
12210#else
12211shmat();
12212#endif
12213
12214; return 0; }
12215EOF
12216if { (eval echo configure:12217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12217 rm -rf conftest*
12218 eval "ac_cv_func_shmat=yes"
12219else
12220 echo "configure: failed program was:" >&5
12221 cat conftest.$ac_ext >&5
12222 rm -rf conftest*
12223 eval "ac_cv_func_shmat=no"
12224fi
12225rm -f conftest*
12226fi
12227
12228if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
12229 echo "$ac_t""yes" 1>&6
12230 :
12231else
12232 echo "$ac_t""no" 1>&6
12233fi
12234
12235 if test $ac_cv_func_shmat = no; then
12236 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
12237echo "configure:12238: checking for shmat in -lipc" >&5
12238ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
12239if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12240 echo $ac_n "(cached) $ac_c" 1>&6
12241else
12242 ac_save_LIBS="$LIBS"
12243LIBS="-lipc $LIBS"
12244cat > conftest.$ac_ext <<EOF
12245#line 12246 "configure"
12246#include "confdefs.h"
12247/* Override any gcc2 internal prototype to avoid an error. */
12248/* We use char because int might match the return type of a gcc2
12249 builtin and then its argument prototype would still apply. */
12250char shmat();
12251
12252int main() {
12253shmat()
12254; return 0; }
12255EOF
12256if { (eval echo configure:12257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12257 rm -rf conftest*
12258 eval "ac_cv_lib_$ac_lib_var=yes"
12259else
12260 echo "configure: failed program was:" >&5
12261 cat conftest.$ac_ext >&5
12262 rm -rf conftest*
12263 eval "ac_cv_lib_$ac_lib_var=no"
12264fi
12265rm -f conftest*
12266LIBS="$ac_save_LIBS"
12267
12268fi
12269if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12270 echo "$ac_t""yes" 1>&6
12271 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12272else
12273 echo "$ac_t""no" 1>&6
12274fi
12275
12276 fi
12277 fi
12278
12279 # Check for libraries that X11R6 Xt/Xaw programs need.
12280 ac_save_LDFLAGS="$LDFLAGS"
12281 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12282 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12283 # check for ICE first), but we must link in the order -lSM -lICE or
12284 # we get undefined symbols. So assume we have SM if we have ICE.
12285 # These have to be linked with before -lX11, unlike the other
12286 # libraries we check for below, so use a different variable.
12287 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
12288 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
12289echo "configure:12290: checking for IceConnectionNumber in -lICE" >&5
12290ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
12291if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12292 echo $ac_n "(cached) $ac_c" 1>&6
12293else
12294 ac_save_LIBS="$LIBS"
12295LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12296cat > conftest.$ac_ext <<EOF
12297#line 12298 "configure"
12298#include "confdefs.h"
12299/* Override any gcc2 internal prototype to avoid an error. */
12300/* We use char because int might match the return type of a gcc2
12301 builtin and then its argument prototype would still apply. */
12302char IceConnectionNumber();
12303
12304int main() {
12305IceConnectionNumber()
12306; return 0; }
12307EOF
12308if { (eval echo configure:12309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12309 rm -rf conftest*
12310 eval "ac_cv_lib_$ac_lib_var=yes"
12311else
12312 echo "configure: failed program was:" >&5
12313 cat conftest.$ac_ext >&5
12314 rm -rf conftest*
12315 eval "ac_cv_lib_$ac_lib_var=no"
12316fi
12317rm -f conftest*
12318LIBS="$ac_save_LIBS"
12319
12320fi
12321if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12322 echo "$ac_t""yes" 1>&6
12323 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12324else
12325 echo "$ac_t""no" 1>&6
12326fi
12327
12328 LDFLAGS="$ac_save_LDFLAGS"
12329
12330fi
12331
12332
12333 if test "$no_x" = "yes"; then
12334 { echo "configure: error: X11 not found" 1>&2; exit 1; }
12335 fi
12336
12337 GUI_TK_LIBRARY="$X_LIBS"
12338 TOOLKIT_INCLUDE="$X_CFLAGS"
12339 AFMINSTALL=afminstall
12340 COMPILED_X_PROGRAM=0
12341
12342 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
12343echo "configure:12344: checking for Motif/Lesstif headers" >&5
12344
12345ac_find_includes=
12346for ac_dir in $SEARCH_INCLUDE;
12347 do
12348 if test -f "$ac_dir/Xm/Xm.h"; then
12349 ac_find_includes=$ac_dir
12350 break
12351 fi
12352 done
12353
12354 if test "$ac_find_includes" != "" ; then
12355 echo "$ac_t""found $ac_find_includes" 1>&6
12356 else
12357 cat > conftest.$ac_ext <<EOF
12358#line 12359 "configure"
12359#include "confdefs.h"
12360
12361 #include <Xm/Xm.h>
12362
12363int main() {
12364
12365 int version;
12366 version = xmUseVersion;
12367
12368; return 0; }
12369EOF
12370if { (eval echo configure:12371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12371 rm -rf conftest*
12372
12373 echo "$ac_t""found in default search path" 1>&6
12374 COMPILED_X_PROGRAM=1
12375
12376else
12377 echo "configure: failed program was:" >&5
12378 cat conftest.$ac_ext >&5
12379 rm -rf conftest*
12380
12381 echo "$ac_t""no" 1>&6
12382 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
12383
12384
12385fi
12386rm -f conftest*
12387 fi
12388
12389 if test "$COMPILED_X_PROGRAM" = 0; then
12390 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
12391echo "configure:12392: checking for Motif/Lesstif library" >&5
12392
12393ac_find_libraries=
12394for ac_dir in $SEARCH_LIB;
12395 do
12396 for ac_extension in a so sl dylib; do
12397 if test -f "$ac_dir/libXm.$ac_extension"; then
12398 ac_find_libraries=$ac_dir
12399 break 2
12400 fi
12401 done
12402 done
12403
12404 if test "$ac_find_libraries" != "" ; then
12405
12406 ac_path_to_include=$ac_find_includes
12407 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
12408 result=$?
12409 if test $result = 0; then
12410 ac_path_to_include=""
12411 else
12412 ac_path_to_include=" -I$ac_find_includes"
12413 fi
12414
12415
12416 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12417 result=$?
12418 if test $result = 0; then
12419 ac_path_to_link=""
12420 else
12421 ac_path_to_link=" -L$ac_find_libraries"
12422 fi
12423
12424
12425 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
12426 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
12427 echo "$ac_t""found at $ac_find_libraries" 1>&6
12428 else
12429 cat > conftest.$ac_ext <<EOF
12430#line 12431 "configure"
12431#include "confdefs.h"
12432
12433 #include <Xm/Xm.h>
12434
12435int main() {
12436
12437 int version;
12438 version = xmUseVersion;
12439
12440; return 0; }
12441EOF
12442if { (eval echo configure:12443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12443 rm -rf conftest*
12444
12445 echo "$ac_t""found in default search path" 1>&6
12446 COMPILED_X_PROGRAM=1
12447
12448else
12449 echo "configure: failed program was:" >&5
12450 cat conftest.$ac_ext >&5
12451 rm -rf conftest*
12452
12453 echo "$ac_t""no" 1>&6
12454 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
12455
12456
12457fi
12458rm -f conftest*
12459 fi
12460 fi
12461
12462 xpm_link=
12463 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
12464echo "configure:12465: checking for Xpm library" >&5
12465
12466ac_find_libraries=
12467for ac_dir in $SEARCH_LIB;
12468 do
12469 for ac_extension in a so sl dylib; do
12470 if test -f "$ac_dir/libXpm.$ac_extension"; then
12471 ac_find_libraries=$ac_dir
12472 break 2
12473 fi
12474 done
12475 done
12476
12477 if test "$ac_find_libraries" != "" ; then
12478
12479 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12480 result=$?
12481 if test $result = 0; then
12482 ac_path_to_link=""
12483 else
12484 ac_path_to_link=" -L$ac_find_libraries"
12485 fi
12486
12487 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
12488 xpm_link=" -lXpm"
12489 cat >> confdefs.h <<\EOF
12490#define wxHAVE_LIB_XPM 1
12491EOF
12492
12493 echo "$ac_t""found at $ac_find_libraries" 1>&6
12494 else
12495 cat > conftest.$ac_ext <<EOF
12496#line 12497 "configure"
12497#include "confdefs.h"
12498
12499 #include <X11/xpm.h>
12500
12501int main() {
12502
12503 int version;
12504 version = XpmLibraryVersion();
12505
12506; return 0; }
12507EOF
12508if { (eval echo configure:12509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12509 rm -rf conftest*
12510
12511 xpm_link=" -lXpm"
12512 cat >> confdefs.h <<\EOF
12513#define wxHAVE_LIB_XPM 1
12514EOF
12515
12516 echo "$ac_t""found in default search path" 1>&6
12517 COMPILED_X_PROGRAM=0
12518
12519else
12520 echo "configure: failed program was:" >&5
12521 cat conftest.$ac_ext >&5
12522 rm -rf conftest*
12523
12524 echo "$ac_t""no" 1>&6
12525 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12526
12527
12528fi
12529rm -f conftest*
12530 fi
12531
12532 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
12533 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
12534 TOOLKIT=MOTIF
12535 GUIDIST=MOTIF_DIST
12536 fi
12537
12538 if test "$wxUSE_MAC" = 1; then
12539 if test "$wxUSE_PRECOMP" = "yes"; then
12540 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12541 fi
12542 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
12543 CFLAGS="$CFLAGS -fpascal-strings"
12544 CXXFLAGS="$CXXFLAGS -fpascal-strings"
12545
12546 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
12547 TOOLKIT=MAC
12548 GUIDIST=MACX_DIST
12549 fi
12550
12551 if test "$wxUSE_PM" = 1; then
12552 TOOLKIT=PM
12553 GUIDIST=GTK_DIST
12554 fi
12555
12556 if test "$TOOLKIT" = "PM" ; then
12557 TOOLKIT_DIR="os2"
12558 else
12559 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
12560 fi
12561
12562 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
12563
12564 if test "$wxUSE_UNIVERSAL" = "yes"; then
12565 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
12566 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
12567 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
12568 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
12569 WIDGET_SET=univ
12570 else
12571 ALL_OBJECTS="\$(GUIOBJS)"
12572 fi
12573
12574 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
12575
12576 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
12577 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
12578 fi
12579
12580 if test "$wxUSE_HTML" = "yes"; then
12581 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
12582 fi
12583
12584 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
12585 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
12586 fi
12587 if test "$wxUSE_LIBJPEG" = "builtin" ; then
12588 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
12589 fi
12590 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12591 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
12592 fi
12593 if test "$wxUSE_LIBPNG" = "builtin" ; then
12594 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
12595 fi
12596 if test "$wxUSE_FREETYPE" = "builtin" ; then
12597 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
12598 fi
12599
12600 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
12601 DISTDIR="wx\$(TOOLKIT)"
12602else
12603 USE_GUI=0
12604
12605 TOOLKIT_DIR="base"
12606
12607 if test "$USE_WIN32" = 1 ; then
12608 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
12609 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
12610
12611 TOOLKIT="MSW"
12612 else
12613 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
12614 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
12615 fi
12616
12617 PORT_FILES="\${top_srcdir}/src/files.lst"
12618
12619 GUIDIST="BASE_DIST"
12620 DISTDIR="wxBase"
12621fi
12622
12623if test "$wxUSE_REGEX" = "builtin" ; then
12624 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
12625fi
12626if test "$wxUSE_ZLIB" = "builtin" ; then
12627 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
12628fi
12629
12630if test "$wxUSE_OPENGL" = "yes"; then
12631 if test "$wxUSE_MAC" = 1; then
12632 OPENGL_LIBS="-framework OpenGL -framework AGL"
12633 else
12634
12635 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
12636echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
12637echo "configure:12638: checking for GL/gl.h" >&5
12638if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12639 echo $ac_n "(cached) $ac_c" 1>&6
12640else
12641 cat > conftest.$ac_ext <<EOF
12642#line 12643 "configure"
12643#include "confdefs.h"
12644#include <GL/gl.h>
12645EOF
12646ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12647{ (eval echo configure:12648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12648ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12649if test -z "$ac_err"; then
12650 rm -rf conftest*
12651 eval "ac_cv_header_$ac_safe=yes"
12652else
12653 echo "$ac_err" >&5
12654 echo "configure: failed program was:" >&5
12655 cat conftest.$ac_ext >&5
12656 rm -rf conftest*
12657 eval "ac_cv_header_$ac_safe=no"
12658fi
12659rm -f conftest*
12660fi
12661if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12662 echo "$ac_t""yes" 1>&6
12663
12664 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
12665echo "configure:12666: checking for -lGL" >&5
12666
12667ac_find_libraries=
12668for ac_dir in $SEARCH_LIB;
12669 do
12670 for ac_extension in a so sl dylib; do
12671 if test -f "$ac_dir/libGL.$ac_extension"; then
12672 ac_find_libraries=$ac_dir
12673 break 2
12674 fi
12675 done
12676 done
12677
12678 if test "$ac_find_libraries" != "" ; then
12679
12680 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
12681 result=$?
12682 if test $result = 0; then
12683 ac_path_to_link=""
12684 else
12685 ac_path_to_link=" -L$ac_find_libraries"
12686 fi
12687
12688 if test "$ac_path_to_link" = " -L/usr/lib" ; then
12689 LDFLAGS_GL="$LDFLAGS"
12690 else
12691 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
12692 fi
12693 OPENGL_LIBS="-lGL -lGLU"
12694 echo "$ac_t""yes" 1>&6
12695 else
12696 echo "$ac_t""no" 1>&6
12697 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
12698echo "configure:12699: checking for -lMesaGL" >&5
12699
12700ac_find_libraries=
12701for ac_dir in $SEARCH_LIB;
12702 do
12703 for ac_extension in a so sl dylib; do
12704 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
12705 ac_find_libraries=$ac_dir
12706 break 2
12707 fi
12708 done
12709 done
12710
12711 if test "$ac_find_libraries" != "" ; then
12712
12713 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
12714 result=$?
12715 if test $result = 0; then
12716 ac_path_to_link=""
12717 else
12718 ac_path_to_link=" -L$ac_find_libraries"
12719 fi
12720
12721 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
12722 OPENGL_LIBS="-lMesaGL -lMesaGLU"
12723 echo "$ac_t""yes" 1>&6
12724 else
12725 echo "$ac_t""no" 1>&6
12726 fi
12727 fi
12728
12729else
12730 echo "$ac_t""no" 1>&6
12731fi
12732
12733
12734
12735# AC_CHECK_HEADER(GL/gl.h,
12736# [
12737# AC_CHECK_LIB(GL, glFlush,
12738# [
12739# OPENGL_LIBS="-lGL -lGLU"
12740# ],
12741# [
12742# AC_CHECK_LIB(MesaGL, glFlush,
12743# [
12744# OPENGL_LIBS="-lMesaGL -lMesaGLU"
12745# ],
12746# [],
12747# [-lm])
12748# ],
12749# [-lm])
12750# ])
12751
12752 if test "x$OPENGL_LIBS" = "x"; then
12753 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
12754 fi
12755 fi
12756
12757 if test "$wxUSE_OPENGL" = "yes"; then
12758 cat >> confdefs.h <<\EOF
12759#define wxUSE_OPENGL 1
12760EOF
12761
12762 cat >> confdefs.h <<\EOF
12763#define wxUSE_GLCANVAS 1
12764EOF
12765
12766 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
12767 fi
12768fi
12769
12770if test -z "$TOOLKIT_VPATH" ; then
12771 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
12772fi
12773
12774if test -n "$TOOLKIT" ; then
12775 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
12776fi
12777
12778lib_unicode_suffix=
12779if test "$wxUSE_UNICODE" = "yes"; then
12780 lib_unicode_suffix=u
12781fi
12782
12783lib_debug_suffix=
12784if test "$wxUSE_DEBUG_FLAG" = "yes"; then
12785 lib_debug_suffix=d
12786fi
12787
12788TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
12789TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
12790
12791if test "$cross_compiling" = "yes"; then
12792 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
12793 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
12794fi
12795
12796WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
12797WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
12798
12799WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
12800WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
12801
12802WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
12803WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
12804WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
12805WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
12806
12807WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
12808WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
12809
12810case "${host}" in
12811 *-*-cygwin* | *-*-mingw32* )
12812
12813
12814
12815 if test "$cross_compiling" != "yes"; then
12816 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
12817 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
12818 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
12819 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
12820 else
12821 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
12822 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
12823 fi
12824
12825esac
12826
12827WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
12828WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
12829
12830WXCONFIG_LIBS="-l${WX_LIBRARY}"
12831WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
12832
12833if test "$wxUSE_OPENGL" = "yes"; then
12834 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
12835 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
12836fi
12837
12838
12839
12840if test "$wxUSE_SHARED" = "yes"; then
12841
12842 if test "$wxUSE_OPENGL" = "yes"; then
12843 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
12844 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
12845 else
12846 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
12847 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
12848 fi
12849
12850 if test "$GCC" = "yes"; then
12851 PIC_FLAG="-fPIC"
12852 fi
12853
12854 SHARED_LD="${CXX} -shared -o"
12855
12856 case "${host}" in
12857 *-hp-hpux* )
12858 if test "$GCC" == "yes"; then
12859 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
12860 else
12861 LDFLAGS="$LDFLAGS -L/usr/lib"
12862
12863 SHARED_LD="${CXX} -b -o"
12864 PIC_FLAG="+Z"
12865 fi
12866
12867 if test "$wxUSE_OPENGL" = "yes"; then
12868 WX_ALL_INSTALLED="preinstall_gl"
12869 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
12870 else
12871 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
12872 fi
12873 ;;
12874
12875 *-*-linux* )
12876 if test "$GCC" != "yes"; then
12877 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
12878echo "configure:12879: checking for Intel compiler" >&5
12879if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
12880 echo $ac_n "(cached) $ac_c" 1>&6
12881else
12882
12883 cat > conftest.$ac_ext <<EOF
12884#line 12885 "configure"
12885#include "confdefs.h"
12886
12887int main() {
12888
12889 #ifndef __INTEL_COMPILER
12890 #error Not icc
12891 #endif
12892
12893; return 0; }
12894EOF
12895if { (eval echo configure:12896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12896 rm -rf conftest*
12897 wx_cv_prog_icc=yes
12898else
12899 echo "configure: failed program was:" >&5
12900 cat conftest.$ac_ext >&5
12901 rm -rf conftest*
12902 wx_cv_prog_icc=no
12903
12904fi
12905rm -f conftest*
12906
12907fi
12908
12909echo "$ac_t""$wx_cv_prog_icc" 1>&6
12910 if test "$wx_cv_prog_icc" = "yes"; then
12911 PIC_FLAG="-KPIC"
12912 fi
12913 fi
12914
12915 if test "$wxUSE_SONAME" = "yes" ; then
12916 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
12917 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
12918 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
12919 fi
12920 ;;
12921
12922 *-*-solaris2* )
12923 if test "$GCC" = yes ; then
12924 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
12925 else
12926 SHARED_LD="${CXX} -G -o"
12927 PIC_FLAG="-KPIC"
12928 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
12929 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
12930 fi
12931 ;;
12932
12933 *-*-darwin* )
12934 CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT"
12935 CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT"
12936 SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o"
12937 PIC_FLAG="-dynamic -fPIC"
12938 ;;
12939
12940 *-*-aix* )
12941 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
12942 ;;
12943
12944 *-*-cygwin* | *-*-mingw32* )
12945
12946 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
12947
12948 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
12949 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
12950
12951 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
12952
12953 if test "$wxUSE_OPENGL" = "yes"; then
12954 WX_ALL_INSTALLED="preinstall_gl"
12955 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
12956 else
12957 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
12958 fi
12959 ;;
12960
12961 *-pc-os2_emx | *-pc-os2-emx )
12962 wxUSE_SHARED=no
12963 ;;
12964
12965 *-*-beos* )
12966 SHARED_LD="${LD} -shared -o"
12967 ;;
12968
12969 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
12970 *-*-sunos4* | \
12971 *-*-irix5* | *-*-irix6* | \
12972 *-*-osf* | \
12973 *-*-dgux5* | \
12974 *-*-sysv5* )
12975 ;;
12976
12977 *)
12978 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
12979 esac
12980
12981 if test "x$WX_TARGET_LIBRARY" = "x"; then
12982 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
12983 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
12984 fi
12985
12986 WX_TARGET_LIBRARY_TYPE="so"
12987 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
12988fi
12989
12990if test "$wxUSE_SHARED" = "no"; then
12991
12992 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
12993 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12994 fi
12995
12996 if test "$wxUSE_MAC" = 1; then
12997 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12998 fi
12999
13000 if test "$wxUSE_OPENGL" = "yes"; then
13001 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
13002 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
13003 else
13004 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
13005 fi
13006
13007 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
13008 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
13009
13010 WX_TARGET_LIBRARY_TYPE="a"
13011 INSTALL_LIBRARY='$(INSTALL_DATA)'
13012fi
13013
13014if test "$wxUSE_MAC" = 1; then
13015 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
13016 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
13017 # Extract the first word of "Rez", so it can be a program name with args.
13018set dummy Rez; ac_word=$2
13019echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13020echo "configure:13021: checking for $ac_word" >&5
13021if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
13022 echo $ac_n "(cached) $ac_c" 1>&6
13023else
13024 if test -n "$RESCOMP"; then
13025 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
13026else
13027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13028 ac_dummy="$PATH"
13029 for ac_dir in $ac_dummy; do
13030 test -z "$ac_dir" && ac_dir=.
13031 if test -f $ac_dir/$ac_word; then
13032 ac_cv_prog_RESCOMP="Rez"
13033 break
13034 fi
13035 done
13036 IFS="$ac_save_ifs"
13037 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
13038fi
13039fi
13040RESCOMP="$ac_cv_prog_RESCOMP"
13041if test -n "$RESCOMP"; then
13042 echo "$ac_t""$RESCOMP" 1>&6
13043else
13044 echo "$ac_t""no" 1>&6
13045fi
13046
13047 # Extract the first word of "DeRez", so it can be a program name with args.
13048set dummy DeRez; ac_word=$2
13049echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13050echo "configure:13051: checking for $ac_word" >&5
13051if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
13052 echo $ac_n "(cached) $ac_c" 1>&6
13053else
13054 if test -n "$DEREZ"; then
13055 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
13056else
13057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13058 ac_dummy="$PATH"
13059 for ac_dir in $ac_dummy; do
13060 test -z "$ac_dir" && ac_dir=.
13061 if test -f $ac_dir/$ac_word; then
13062 ac_cv_prog_DEREZ="DeRez"
13063 break
13064 fi
13065 done
13066 IFS="$ac_save_ifs"
13067 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
13068fi
13069fi
13070DEREZ="$ac_cv_prog_DEREZ"
13071if test -n "$DEREZ"; then
13072 echo "$ac_t""$DEREZ" 1>&6
13073else
13074 echo "$ac_t""no" 1>&6
13075fi
13076
13077 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
13078 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
13079 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
13080fi
13081
13082
13083if test "$wxUSE_MAC" != 1; then
13084 for ac_hdr in strings.h
13085do
13086ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13087echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13088echo "configure:13089: checking for $ac_hdr" >&5
13089if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13090 echo $ac_n "(cached) $ac_c" 1>&6
13091else
13092 cat > conftest.$ac_ext <<EOF
13093#line 13094 "configure"
13094#include "confdefs.h"
13095#include <$ac_hdr>
13096EOF
13097ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13098{ (eval echo configure:13099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13099ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13100if test -z "$ac_err"; then
13101 rm -rf conftest*
13102 eval "ac_cv_header_$ac_safe=yes"
13103else
13104 echo "$ac_err" >&5
13105 echo "configure: failed program was:" >&5
13106 cat conftest.$ac_ext >&5
13107 rm -rf conftest*
13108 eval "ac_cv_header_$ac_safe=no"
13109fi
13110rm -f conftest*
13111fi
13112if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13113 echo "$ac_t""yes" 1>&6
13114 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13115 cat >> confdefs.h <<EOF
13116#define $ac_tr_hdr 1
13117EOF
13118
13119else
13120 echo "$ac_t""no" 1>&6
13121fi
13122done
13123
13124fi
13125
13126for ac_hdr in stdlib.h
13127do
13128ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13129echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13130echo "configure:13131: checking for $ac_hdr" >&5
13131if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13132 echo $ac_n "(cached) $ac_c" 1>&6
13133else
13134 cat > conftest.$ac_ext <<EOF
13135#line 13136 "configure"
13136#include "confdefs.h"
13137#include <$ac_hdr>
13138EOF
13139ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13140{ (eval echo configure:13141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13141ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13142if test -z "$ac_err"; then
13143 rm -rf conftest*
13144 eval "ac_cv_header_$ac_safe=yes"
13145else
13146 echo "$ac_err" >&5
13147 echo "configure: failed program was:" >&5
13148 cat conftest.$ac_ext >&5
13149 rm -rf conftest*
13150 eval "ac_cv_header_$ac_safe=no"
13151fi
13152rm -f conftest*
13153fi
13154if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13155 echo "$ac_t""yes" 1>&6
13156 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13157 cat >> confdefs.h <<EOF
13158#define $ac_tr_hdr 1
13159EOF
13160
13161else
13162 echo "$ac_t""no" 1>&6
13163fi
13164done
13165
13166for ac_hdr in malloc.h
13167do
13168ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13169echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13170echo "configure:13171: checking for $ac_hdr" >&5
13171if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13172 echo $ac_n "(cached) $ac_c" 1>&6
13173else
13174 cat > conftest.$ac_ext <<EOF
13175#line 13176 "configure"
13176#include "confdefs.h"
13177#include <$ac_hdr>
13178EOF
13179ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13180{ (eval echo configure:13181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13181ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13182if test -z "$ac_err"; then
13183 rm -rf conftest*
13184 eval "ac_cv_header_$ac_safe=yes"
13185else
13186 echo "$ac_err" >&5
13187 echo "configure: failed program was:" >&5
13188 cat conftest.$ac_ext >&5
13189 rm -rf conftest*
13190 eval "ac_cv_header_$ac_safe=no"
13191fi
13192rm -f conftest*
13193fi
13194if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13195 echo "$ac_t""yes" 1>&6
13196 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13197 cat >> confdefs.h <<EOF
13198#define $ac_tr_hdr 1
13199EOF
13200
13201else
13202 echo "$ac_t""no" 1>&6
13203fi
13204done
13205
13206for ac_hdr in unistd.h
13207do
13208ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13209echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13210echo "configure:13211: checking for $ac_hdr" >&5
13211if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13212 echo $ac_n "(cached) $ac_c" 1>&6
13213else
13214 cat > conftest.$ac_ext <<EOF
13215#line 13216 "configure"
13216#include "confdefs.h"
13217#include <$ac_hdr>
13218EOF
13219ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13220{ (eval echo configure:13221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13221ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13222if test -z "$ac_err"; then
13223 rm -rf conftest*
13224 eval "ac_cv_header_$ac_safe=yes"
13225else
13226 echo "$ac_err" >&5
13227 echo "configure: failed program was:" >&5
13228 cat conftest.$ac_ext >&5
13229 rm -rf conftest*
13230 eval "ac_cv_header_$ac_safe=no"
13231fi
13232rm -f conftest*
13233fi
13234if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13235 echo "$ac_t""yes" 1>&6
13236 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13237 cat >> confdefs.h <<EOF
13238#define $ac_tr_hdr 1
13239EOF
13240
13241else
13242 echo "$ac_t""no" 1>&6
13243fi
13244done
13245
13246for ac_hdr in wchar.h
13247do
13248ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13249echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13250echo "configure:13251: checking for $ac_hdr" >&5
13251if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13252 echo $ac_n "(cached) $ac_c" 1>&6
13253else
13254 cat > conftest.$ac_ext <<EOF
13255#line 13256 "configure"
13256#include "confdefs.h"
13257#include <$ac_hdr>
13258EOF
13259ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13260{ (eval echo configure:13261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13261ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13262if test -z "$ac_err"; then
13263 rm -rf conftest*
13264 eval "ac_cv_header_$ac_safe=yes"
13265else
13266 echo "$ac_err" >&5
13267 echo "configure: failed program was:" >&5
13268 cat conftest.$ac_ext >&5
13269 rm -rf conftest*
13270 eval "ac_cv_header_$ac_safe=no"
13271fi
13272rm -f conftest*
13273fi
13274if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13275 echo "$ac_t""yes" 1>&6
13276 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13277 cat >> confdefs.h <<EOF
13278#define $ac_tr_hdr 1
13279EOF
13280
13281else
13282 echo "$ac_t""no" 1>&6
13283fi
13284done
13285
13286for ac_hdr in wcstr.h
13287do
13288ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13289echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13290echo "configure:13291: checking for $ac_hdr" >&5
13291if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13292 echo $ac_n "(cached) $ac_c" 1>&6
13293else
13294 cat > conftest.$ac_ext <<EOF
13295#line 13296 "configure"
13296#include "confdefs.h"
13297#include <$ac_hdr>
13298EOF
13299ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13300{ (eval echo configure:13301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13301ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13302if test -z "$ac_err"; then
13303 rm -rf conftest*
13304 eval "ac_cv_header_$ac_safe=yes"
13305else
13306 echo "$ac_err" >&5
13307 echo "configure: failed program was:" >&5
13308 cat conftest.$ac_ext >&5
13309 rm -rf conftest*
13310 eval "ac_cv_header_$ac_safe=no"
13311fi
13312rm -f conftest*
13313fi
13314if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13315 echo "$ac_t""yes" 1>&6
13316 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13317 cat >> confdefs.h <<EOF
13318#define $ac_tr_hdr 1
13319EOF
13320
13321else
13322 echo "$ac_t""no" 1>&6
13323fi
13324done
13325
13326for ac_hdr in wctype.h
13327do
13328ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13329echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13330echo "configure:13331: checking for $ac_hdr" >&5
13331if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13332 echo $ac_n "(cached) $ac_c" 1>&6
13333else
13334 cat > conftest.$ac_ext <<EOF
13335#line 13336 "configure"
13336#include "confdefs.h"
13337#include <$ac_hdr>
13338EOF
13339ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13340{ (eval echo configure:13341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13341ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13342if test -z "$ac_err"; then
13343 rm -rf conftest*
13344 eval "ac_cv_header_$ac_safe=yes"
13345else
13346 echo "$ac_err" >&5
13347 echo "configure: failed program was:" >&5
13348 cat conftest.$ac_ext >&5
13349 rm -rf conftest*
13350 eval "ac_cv_header_$ac_safe=no"
13351fi
13352rm -f conftest*
13353fi
13354if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13355 echo "$ac_t""yes" 1>&6
13356 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13357 cat >> confdefs.h <<EOF
13358#define $ac_tr_hdr 1
13359EOF
13360
13361else
13362 echo "$ac_t""no" 1>&6
13363fi
13364done
13365
13366for ac_hdr in fnmatch.h
13367do
13368ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13369echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13370echo "configure:13371: checking for $ac_hdr" >&5
13371if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13372 echo $ac_n "(cached) $ac_c" 1>&6
13373else
13374 cat > conftest.$ac_ext <<EOF
13375#line 13376 "configure"
13376#include "confdefs.h"
13377#include <$ac_hdr>
13378EOF
13379ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13380{ (eval echo configure:13381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13381ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13382if test -z "$ac_err"; then
13383 rm -rf conftest*
13384 eval "ac_cv_header_$ac_safe=yes"
13385else
13386 echo "$ac_err" >&5
13387 echo "configure: failed program was:" >&5
13388 cat conftest.$ac_ext >&5
13389 rm -rf conftest*
13390 eval "ac_cv_header_$ac_safe=no"
13391fi
13392rm -f conftest*
13393fi
13394if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13395 echo "$ac_t""yes" 1>&6
13396 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13397 cat >> confdefs.h <<EOF
13398#define $ac_tr_hdr 1
13399EOF
13400
13401else
13402 echo "$ac_t""no" 1>&6
13403fi
13404done
13405
13406for ac_hdr in langinfo.h
13407do
13408ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13409echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13410echo "configure:13411: checking for $ac_hdr" >&5
13411if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13412 echo $ac_n "(cached) $ac_c" 1>&6
13413else
13414 cat > conftest.$ac_ext <<EOF
13415#line 13416 "configure"
13416#include "confdefs.h"
13417#include <$ac_hdr>
13418EOF
13419ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13420{ (eval echo configure:13421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13421ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13422if test -z "$ac_err"; then
13423 rm -rf conftest*
13424 eval "ac_cv_header_$ac_safe=yes"
13425else
13426 echo "$ac_err" >&5
13427 echo "configure: failed program was:" >&5
13428 cat conftest.$ac_ext >&5
13429 rm -rf conftest*
13430 eval "ac_cv_header_$ac_safe=no"
13431fi
13432rm -f conftest*
13433fi
13434if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13435 echo "$ac_t""yes" 1>&6
13436 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13437 cat >> confdefs.h <<EOF
13438#define $ac_tr_hdr 1
13439EOF
13440
13441else
13442 echo "$ac_t""no" 1>&6
13443fi
13444done
13445
13446
13447if test "$wxUSE_GUI" = "yes"; then
13448 if test "$wxUSE_UNIX" = "yes"; then
13449 for ac_hdr in X11/XKBlib.h
13450do
13451ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13452echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13453echo "configure:13454: checking for $ac_hdr" >&5
13454if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13455 echo $ac_n "(cached) $ac_c" 1>&6
13456else
13457 cat > conftest.$ac_ext <<EOF
13458#line 13459 "configure"
13459#include "confdefs.h"
13460#include <$ac_hdr>
13461EOF
13462ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13463{ (eval echo configure:13464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13464ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13465if test -z "$ac_err"; then
13466 rm -rf conftest*
13467 eval "ac_cv_header_$ac_safe=yes"
13468else
13469 echo "$ac_err" >&5
13470 echo "configure: failed program was:" >&5
13471 cat conftest.$ac_ext >&5
13472 rm -rf conftest*
13473 eval "ac_cv_header_$ac_safe=no"
13474fi
13475rm -f conftest*
13476fi
13477if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13478 echo "$ac_t""yes" 1>&6
13479 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13480 cat >> confdefs.h <<EOF
13481#define $ac_tr_hdr 1
13482EOF
13483
13484else
13485 echo "$ac_t""no" 1>&6
13486fi
13487done
13488
13489 fi
13490fi
13491
13492
13493echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13494echo "configure:13495: checking for ANSI C header files" >&5
13495if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
13496 echo $ac_n "(cached) $ac_c" 1>&6
13497else
13498 cat > conftest.$ac_ext <<EOF
13499#line 13500 "configure"
13500#include "confdefs.h"
13501#include <stdlib.h>
13502#include <stdarg.h>
13503#include <string.h>
13504#include <float.h>
13505EOF
13506ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13507{ (eval echo configure:13508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13508ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13509if test -z "$ac_err"; then
13510 rm -rf conftest*
13511 ac_cv_header_stdc=yes
13512else
13513 echo "$ac_err" >&5
13514 echo "configure: failed program was:" >&5
13515 cat conftest.$ac_ext >&5
13516 rm -rf conftest*
13517 ac_cv_header_stdc=no
13518fi
13519rm -f conftest*
13520
13521if test $ac_cv_header_stdc = yes; then
13522 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13523cat > conftest.$ac_ext <<EOF
13524#line 13525 "configure"
13525#include "confdefs.h"
13526#include <string.h>
13527EOF
13528if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13529 egrep "memchr" >/dev/null 2>&1; then
13530 :
13531else
13532 rm -rf conftest*
13533 ac_cv_header_stdc=no
13534fi
13535rm -f conftest*
13536
13537fi
13538
13539if test $ac_cv_header_stdc = yes; then
13540 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13541cat > conftest.$ac_ext <<EOF
13542#line 13543 "configure"
13543#include "confdefs.h"
13544#include <stdlib.h>
13545EOF
13546if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13547 egrep "free" >/dev/null 2>&1; then
13548 :
13549else
13550 rm -rf conftest*
13551 ac_cv_header_stdc=no
13552fi
13553rm -f conftest*
13554
13555fi
13556
13557if test $ac_cv_header_stdc = yes; then
13558 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13559if test "$cross_compiling" = yes; then
13560 :
13561else
13562 cat > conftest.$ac_ext <<EOF
13563#line 13564 "configure"
13564#include "confdefs.h"
13565#include <ctype.h>
13566#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13567#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13568#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13569int main () { int i; for (i = 0; i < 256; i++)
13570if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13571exit (0); }
13572
13573EOF
13574if { (eval echo configure:13575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13575then
13576 :
13577else
13578 echo "configure: failed program was:" >&5
13579 cat conftest.$ac_ext >&5
13580 rm -fr conftest*
13581 ac_cv_header_stdc=no
13582fi
13583rm -fr conftest*
13584fi
13585
13586fi
13587fi
13588
13589echo "$ac_t""$ac_cv_header_stdc" 1>&6
13590if test $ac_cv_header_stdc = yes; then
13591 cat >> confdefs.h <<\EOF
13592#define STDC_HEADERS 1
13593EOF
13594
13595fi
13596
13597echo $ac_n "checking for mode_t""... $ac_c" 1>&6
13598echo "configure:13599: checking for mode_t" >&5
13599if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
13600 echo $ac_n "(cached) $ac_c" 1>&6
13601else
13602 cat > conftest.$ac_ext <<EOF
13603#line 13604 "configure"
13604#include "confdefs.h"
13605#include <sys/types.h>
13606#if STDC_HEADERS
13607#include <stdlib.h>
13608#include <stddef.h>
13609#endif
13610EOF
13611if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13612 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13613 rm -rf conftest*
13614 ac_cv_type_mode_t=yes
13615else
13616 rm -rf conftest*
13617 ac_cv_type_mode_t=no
13618fi
13619rm -f conftest*
13620
13621fi
13622echo "$ac_t""$ac_cv_type_mode_t" 1>&6
13623if test $ac_cv_type_mode_t = no; then
13624 cat >> confdefs.h <<\EOF
13625#define mode_t int
13626EOF
13627
13628fi
13629
13630echo $ac_n "checking for off_t""... $ac_c" 1>&6
13631echo "configure:13632: checking for off_t" >&5
13632if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
13633 echo $ac_n "(cached) $ac_c" 1>&6
13634else
13635 cat > conftest.$ac_ext <<EOF
13636#line 13637 "configure"
13637#include "confdefs.h"
13638#include <sys/types.h>
13639#if STDC_HEADERS
13640#include <stdlib.h>
13641#include <stddef.h>
13642#endif
13643EOF
13644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13645 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13646 rm -rf conftest*
13647 ac_cv_type_off_t=yes
13648else
13649 rm -rf conftest*
13650 ac_cv_type_off_t=no
13651fi
13652rm -f conftest*
13653
13654fi
13655echo "$ac_t""$ac_cv_type_off_t" 1>&6
13656if test $ac_cv_type_off_t = no; then
13657 cat >> confdefs.h <<\EOF
13658#define off_t long
13659EOF
13660
13661fi
13662
13663echo $ac_n "checking for pid_t""... $ac_c" 1>&6
13664echo "configure:13665: checking for pid_t" >&5
13665if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
13666 echo $ac_n "(cached) $ac_c" 1>&6
13667else
13668 cat > conftest.$ac_ext <<EOF
13669#line 13670 "configure"
13670#include "confdefs.h"
13671#include <sys/types.h>
13672#if STDC_HEADERS
13673#include <stdlib.h>
13674#include <stddef.h>
13675#endif
13676EOF
13677if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13678 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13679 rm -rf conftest*
13680 ac_cv_type_pid_t=yes
13681else
13682 rm -rf conftest*
13683 ac_cv_type_pid_t=no
13684fi
13685rm -f conftest*
13686
13687fi
13688echo "$ac_t""$ac_cv_type_pid_t" 1>&6
13689if test $ac_cv_type_pid_t = no; then
13690 cat >> confdefs.h <<\EOF
13691#define pid_t int
13692EOF
13693
13694fi
13695
13696echo $ac_n "checking for size_t""... $ac_c" 1>&6
13697echo "configure:13698: checking for size_t" >&5
13698if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
13699 echo $ac_n "(cached) $ac_c" 1>&6
13700else
13701 cat > conftest.$ac_ext <<EOF
13702#line 13703 "configure"
13703#include "confdefs.h"
13704#include <sys/types.h>
13705#if STDC_HEADERS
13706#include <stdlib.h>
13707#include <stddef.h>
13708#endif
13709EOF
13710if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13711 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13712 rm -rf conftest*
13713 ac_cv_type_size_t=yes
13714else
13715 rm -rf conftest*
13716 ac_cv_type_size_t=no
13717fi
13718rm -f conftest*
13719
13720fi
13721echo "$ac_t""$ac_cv_type_size_t" 1>&6
13722if test $ac_cv_type_size_t = no; then
13723 cat >> confdefs.h <<\EOF
13724#define size_t unsigned
13725EOF
13726
13727fi
13728
13729echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
13730echo "configure:13731: checking for uid_t in sys/types.h" >&5
13731if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
13732 echo $ac_n "(cached) $ac_c" 1>&6
13733else
13734 cat > conftest.$ac_ext <<EOF
13735#line 13736 "configure"
13736#include "confdefs.h"
13737#include <sys/types.h>
13738EOF
13739if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13740 egrep "uid_t" >/dev/null 2>&1; then
13741 rm -rf conftest*
13742 ac_cv_type_uid_t=yes
13743else
13744 rm -rf conftest*
13745 ac_cv_type_uid_t=no
13746fi
13747rm -f conftest*
13748
13749fi
13750
13751echo "$ac_t""$ac_cv_type_uid_t" 1>&6
13752if test $ac_cv_type_uid_t = no; then
13753 cat >> confdefs.h <<\EOF
13754#define uid_t int
13755EOF
13756
13757 cat >> confdefs.h <<\EOF
13758#define gid_t int
13759EOF
13760
13761fi
13762
13763
13764echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
13765echo "configure:13766: checking for wchar_t" >&5
13766if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
13767 echo $ac_n "(cached) $ac_c" 1>&6
13768else
13769
13770 cat > conftest.$ac_ext <<EOF
13771#line 13772 "configure"
13772#include "confdefs.h"
13773
13774 #ifdef HAVE_WCHAR_H
13775 # ifdef __CYGWIN__
13776 # include <stddef.h>
13777 # endif
13778 # include <wchar.h>
13779 #endif
13780 #ifdef HAVE_STDLIB_H
13781 # include <stdlib.h>
13782 #endif
13783
13784int main() {
13785
13786 wchar_t wc, *ws;
13787 wc = L'a';
13788 ws = L"Hello, world!";
13789
13790; return 0; }
13791EOF
13792if { (eval echo configure:13793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13793 rm -rf conftest*
13794 wx_cv_type_wchar_t=yes
13795else
13796 echo "configure: failed program was:" >&5
13797 cat conftest.$ac_ext >&5
13798 rm -rf conftest*
13799 wx_cv_type_wchar_t=no
13800
13801fi
13802rm -f conftest*
13803
13804fi
13805
13806echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
13807
13808if test "$wx_cv_type_wchar_t" = "yes"; then
13809 cat >> confdefs.h <<\EOF
13810#define wxUSE_WCHAR_T 1
13811EOF
13812
13813fi
13814
13815
13816ac_ext=C
13817# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13818ac_cpp='$CXXCPP $CPPFLAGS'
13819ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13820ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13821cross_compiling=$ac_cv_prog_cxx_cross
13822
13823echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
13824echo "configure:13825: checking if size_t is unsigned int" >&5
13825if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
13826 echo $ac_n "(cached) $ac_c" 1>&6
13827else
13828 cat > conftest.$ac_ext <<EOF
13829#line 13830 "configure"
13830#include "confdefs.h"
13831#include <stddef.h>
13832int main() {
13833
13834 return 0; }
13835
13836 struct Foo { void foo(size_t); void foo(unsigned int); };
13837
13838 int bar() {
13839
13840; return 0; }
13841EOF
13842if { (eval echo configure:13843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13843 rm -rf conftest*
13844 wx_cv_size_t_is_uint=no
13845else
13846 echo "configure: failed program was:" >&5
13847 cat conftest.$ac_ext >&5
13848 rm -rf conftest*
13849 wx_cv_size_t_is_uint=yes
13850
13851fi
13852rm -f conftest*
13853
13854fi
13855
13856echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
13857
13858if test "$wx_cv_size_t_is_uint" = "yes"; then
13859 cat >> confdefs.h <<\EOF
13860#define wxSIZE_T_IS_UINT 1
13861EOF
13862
13863else
13864 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
13865echo "configure:13866: checking if size_t is unsigned long" >&5
13866if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
13867 echo $ac_n "(cached) $ac_c" 1>&6
13868else
13869 cat > conftest.$ac_ext <<EOF
13870#line 13871 "configure"
13871#include "confdefs.h"
13872#include <stddef.h>
13873int main() {
13874
13875 return 0; }
13876
13877 struct Foo { void foo(size_t); void foo(unsigned long); };
13878
13879 int bar() {
13880
13881; return 0; }
13882EOF
13883if { (eval echo configure:13884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13884 rm -rf conftest*
13885 wx_cv_size_t_is_ulong=no
13886else
13887 echo "configure: failed program was:" >&5
13888 cat conftest.$ac_ext >&5
13889 rm -rf conftest*
13890 wx_cv_size_t_is_ulong=yes
13891
13892fi
13893rm -f conftest*
13894
13895fi
13896
13897echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
13898
13899 if test "$wx_cv_size_t_is_ulong" = "yes"; then
13900 cat >> confdefs.h <<\EOF
13901#define wxSIZE_T_IS_ULONG 1
13902EOF
13903
13904 fi
13905fi
13906
13907ac_ext=c
13908# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13909ac_cpp='$CPP $CPPFLAGS'
13910ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13911ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13912cross_compiling=$ac_cv_prog_cc_cross
13913
13914
13915
13916echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
13917echo "configure:13918: checking for pw_gecos in struct passwd" >&5
13918if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
13919 echo $ac_n "(cached) $ac_c" 1>&6
13920else
13921
13922 cat > conftest.$ac_ext <<EOF
13923#line 13924 "configure"
13924#include "confdefs.h"
13925#include <pwd.h>
13926int main() {
13927
13928 char *p;
13929 struct passwd *pw;
13930 p = pw->pw_gecos;
13931
13932; return 0; }
13933EOF
13934if { (eval echo configure:13935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13935 rm -rf conftest*
13936
13937 wx_cv_struct_pw_gecos=yes
13938
13939else
13940 echo "configure: failed program was:" >&5
13941 cat conftest.$ac_ext >&5
13942 rm -rf conftest*
13943
13944 wx_cv_struct_pw_gecos=no
13945
13946
13947fi
13948rm -f conftest*
13949
13950
13951fi
13952
13953echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
13954
13955if test "$wx_cv_struct_pw_gecos" = "yes"; then
13956 cat >> confdefs.h <<\EOF
13957#define HAVE_PW_GECOS 1
13958EOF
13959
13960fi
13961
13962
13963echo $ac_n "checking for working const""... $ac_c" 1>&6
13964echo "configure:13965: checking for working const" >&5
13965if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
13966 echo $ac_n "(cached) $ac_c" 1>&6
13967else
13968 cat > conftest.$ac_ext <<EOF
13969#line 13970 "configure"
13970#include "confdefs.h"
13971
13972int main() {
13973
13974/* Ultrix mips cc rejects this. */
13975typedef int charset[2]; const charset x;
13976/* SunOS 4.1.1 cc rejects this. */
13977char const *const *ccp;
13978char **p;
13979/* NEC SVR4.0.2 mips cc rejects this. */
13980struct point {int x, y;};
13981static struct point const zero = {0,0};
13982/* AIX XL C 1.02.0.0 rejects this.
13983 It does not let you subtract one const X* pointer from another in an arm
13984 of an if-expression whose if-part is not a constant expression */
13985const char *g = "string";
13986ccp = &g + (g ? g-g : 0);
13987/* HPUX 7.0 cc rejects these. */
13988++ccp;
13989p = (char**) ccp;
13990ccp = (char const *const *) p;
13991{ /* SCO 3.2v4 cc rejects this. */
13992 char *t;
13993 char const *s = 0 ? (char *) 0 : (char const *) 0;
13994
13995 *t++ = 0;
13996}
13997{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13998 int x[] = {25, 17};
13999 const int *foo = &x[0];
14000 ++foo;
14001}
14002{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14003 typedef const int *iptr;
14004 iptr p = 0;
14005 ++p;
14006}
14007{ /* AIX XL C 1.02.0.0 rejects this saying
14008 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14009 struct s { int j; const int *ap[3]; };
14010 struct s *b; b->j = 5;
14011}
14012{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14013 const int foo = 10;
14014}
14015
14016; return 0; }
14017EOF
14018if { (eval echo configure:14019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14019 rm -rf conftest*
14020 ac_cv_c_const=yes
14021else
14022 echo "configure: failed program was:" >&5
14023 cat conftest.$ac_ext >&5
14024 rm -rf conftest*
14025 ac_cv_c_const=no
14026fi
14027rm -f conftest*
14028fi
14029
14030echo "$ac_t""$ac_cv_c_const" 1>&6
14031if test $ac_cv_c_const = no; then
14032 cat >> confdefs.h <<\EOF
14033#define const
14034EOF
14035
14036fi
14037
14038echo $ac_n "checking for inline""... $ac_c" 1>&6
14039echo "configure:14040: checking for inline" >&5
14040if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
14041 echo $ac_n "(cached) $ac_c" 1>&6
14042else
14043 ac_cv_c_inline=no
14044for ac_kw in inline __inline__ __inline; do
14045 cat > conftest.$ac_ext <<EOF
14046#line 14047 "configure"
14047#include "confdefs.h"
14048
14049int main() {
14050} $ac_kw foo() {
14051; return 0; }
14052EOF
14053if { (eval echo configure:14054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14054 rm -rf conftest*
14055 ac_cv_c_inline=$ac_kw; break
14056else
14057 echo "configure: failed program was:" >&5
14058 cat conftest.$ac_ext >&5
14059fi
14060rm -f conftest*
14061done
14062
14063fi
14064
14065echo "$ac_t""$ac_cv_c_inline" 1>&6
14066case "$ac_cv_c_inline" in
14067 inline | yes) ;;
14068 no) cat >> confdefs.h <<\EOF
14069#define inline
14070EOF
14071 ;;
14072 *) cat >> confdefs.h <<EOF
14073#define inline $ac_cv_c_inline
14074EOF
14075 ;;
14076esac
14077
14078
14079echo $ac_n "checking size of char""... $ac_c" 1>&6
14080echo "configure:14081: checking size of char" >&5
14081if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
14082 echo $ac_n "(cached) $ac_c" 1>&6
14083else
14084 if test "$cross_compiling" = yes; then
14085 ac_cv_sizeof_char=1
14086else
14087 cat > conftest.$ac_ext <<EOF
14088#line 14089 "configure"
14089#include "confdefs.h"
14090#include <stdio.h>
14091main()
14092{
14093 FILE *f=fopen("conftestval", "w");
14094 if (!f) exit(1);
14095 fprintf(f, "%d\n", sizeof(char));
14096 exit(0);
14097}
14098EOF
14099if { (eval echo configure:14100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14100then
14101 ac_cv_sizeof_char=`cat conftestval`
14102else
14103 echo "configure: failed program was:" >&5
14104 cat conftest.$ac_ext >&5
14105 rm -fr conftest*
14106 ac_cv_sizeof_char=0
14107fi
14108rm -fr conftest*
14109fi
14110
14111fi
14112echo "$ac_t""$ac_cv_sizeof_char" 1>&6
14113cat >> confdefs.h <<EOF
14114#define SIZEOF_CHAR $ac_cv_sizeof_char
14115EOF
14116
14117
14118echo $ac_n "checking size of short""... $ac_c" 1>&6
14119echo "configure:14120: checking size of short" >&5
14120if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
14121 echo $ac_n "(cached) $ac_c" 1>&6
14122else
14123 if test "$cross_compiling" = yes; then
14124 ac_cv_sizeof_short=2
14125else
14126 cat > conftest.$ac_ext <<EOF
14127#line 14128 "configure"
14128#include "confdefs.h"
14129#include <stdio.h>
14130main()
14131{
14132 FILE *f=fopen("conftestval", "w");
14133 if (!f) exit(1);
14134 fprintf(f, "%d\n", sizeof(short));
14135 exit(0);
14136}
14137EOF
14138if { (eval echo configure:14139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14139then
14140 ac_cv_sizeof_short=`cat conftestval`
14141else
14142 echo "configure: failed program was:" >&5
14143 cat conftest.$ac_ext >&5
14144 rm -fr conftest*
14145 ac_cv_sizeof_short=0
14146fi
14147rm -fr conftest*
14148fi
14149
14150fi
14151echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14152cat >> confdefs.h <<EOF
14153#define SIZEOF_SHORT $ac_cv_sizeof_short
14154EOF
14155
14156
14157echo $ac_n "checking size of int *""... $ac_c" 1>&6
14158echo "configure:14159: checking size of int *" >&5
14159if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
14160 echo $ac_n "(cached) $ac_c" 1>&6
14161else
14162 if test "$cross_compiling" = yes; then
14163 ac_cv_sizeof_int_p=4
14164else
14165 cat > conftest.$ac_ext <<EOF
14166#line 14167 "configure"
14167#include "confdefs.h"
14168#include <stdio.h>
14169main()
14170{
14171 FILE *f=fopen("conftestval", "w");
14172 if (!f) exit(1);
14173 fprintf(f, "%d\n", sizeof(int *));
14174 exit(0);
14175}
14176EOF
14177if { (eval echo configure:14178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14178then
14179 ac_cv_sizeof_int_p=`cat conftestval`
14180else
14181 echo "configure: failed program was:" >&5
14182 cat conftest.$ac_ext >&5
14183 rm -fr conftest*
14184 ac_cv_sizeof_int_p=0
14185fi
14186rm -fr conftest*
14187fi
14188
14189fi
14190echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
14191cat >> confdefs.h <<EOF
14192#define SIZEOF_INT_P $ac_cv_sizeof_int_p
14193EOF
14194
14195
14196echo $ac_n "checking size of int""... $ac_c" 1>&6
14197echo "configure:14198: checking size of int" >&5
14198if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
14199 echo $ac_n "(cached) $ac_c" 1>&6
14200else
14201 if test "$cross_compiling" = yes; then
14202 ac_cv_sizeof_int=4
14203else
14204 cat > conftest.$ac_ext <<EOF
14205#line 14206 "configure"
14206#include "confdefs.h"
14207#include <stdio.h>
14208main()
14209{
14210 FILE *f=fopen("conftestval", "w");
14211 if (!f) exit(1);
14212 fprintf(f, "%d\n", sizeof(int));
14213 exit(0);
14214}
14215EOF
14216if { (eval echo configure:14217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14217then
14218 ac_cv_sizeof_int=`cat conftestval`
14219else
14220 echo "configure: failed program was:" >&5
14221 cat conftest.$ac_ext >&5
14222 rm -fr conftest*
14223 ac_cv_sizeof_int=0
14224fi
14225rm -fr conftest*
14226fi
14227
14228fi
14229echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14230cat >> confdefs.h <<EOF
14231#define SIZEOF_INT $ac_cv_sizeof_int
14232EOF
14233
14234
14235echo $ac_n "checking size of long""... $ac_c" 1>&6
14236echo "configure:14237: checking size of long" >&5
14237if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
14238 echo $ac_n "(cached) $ac_c" 1>&6
14239else
14240 if test "$cross_compiling" = yes; then
14241 ac_cv_sizeof_long=4
14242else
14243 cat > conftest.$ac_ext <<EOF
14244#line 14245 "configure"
14245#include "confdefs.h"
14246#include <stdio.h>
14247main()
14248{
14249 FILE *f=fopen("conftestval", "w");
14250 if (!f) exit(1);
14251 fprintf(f, "%d\n", sizeof(long));
14252 exit(0);
14253}
14254EOF
14255if { (eval echo configure:14256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14256then
14257 ac_cv_sizeof_long=`cat conftestval`
14258else
14259 echo "configure: failed program was:" >&5
14260 cat conftest.$ac_ext >&5
14261 rm -fr conftest*
14262 ac_cv_sizeof_long=0
14263fi
14264rm -fr conftest*
14265fi
14266
14267fi
14268echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14269cat >> confdefs.h <<EOF
14270#define SIZEOF_LONG $ac_cv_sizeof_long
14271EOF
14272
14273
14274echo $ac_n "checking size of long long""... $ac_c" 1>&6
14275echo "configure:14276: checking size of long long" >&5
14276if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
14277 echo $ac_n "(cached) $ac_c" 1>&6
14278else
14279 if test "$cross_compiling" = yes; then
14280 ac_cv_sizeof_long_long=0
14281else
14282 cat > conftest.$ac_ext <<EOF
14283#line 14284 "configure"
14284#include "confdefs.h"
14285#include <stdio.h>
14286main()
14287{
14288 FILE *f=fopen("conftestval", "w");
14289 if (!f) exit(1);
14290 fprintf(f, "%d\n", sizeof(long long));
14291 exit(0);
14292}
14293EOF
14294if { (eval echo configure:14295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14295then
14296 ac_cv_sizeof_long_long=`cat conftestval`
14297else
14298 echo "configure: failed program was:" >&5
14299 cat conftest.$ac_ext >&5
14300 rm -fr conftest*
14301 ac_cv_sizeof_long_long=0
14302fi
14303rm -fr conftest*
14304fi
14305
14306fi
14307echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
14308cat >> confdefs.h <<EOF
14309#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14310EOF
14311
14312
14313
14314echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
14315echo "configure:14316: checking size of wchar_t" >&5
14316if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
14317 echo $ac_n "(cached) $ac_c" 1>&6
14318else
14319
14320 if test "$cross_compiling" = yes; then
14321 wx_cv_sizeof_wchar_t=4
14322
14323else
14324 cat > conftest.$ac_ext <<EOF
14325#line 14326 "configure"
14326#include "confdefs.h"
14327
14328 #ifdef HAVE_WCHAR_H
14329 # ifdef __CYGWIN__
14330 # include <stddef.h>
14331 # endif
14332 # include <wchar.h>
14333 #endif
14334 #ifdef HAVE_STDLIB_H
14335 # include <stdlib.h>
14336 #endif
14337 #include <stdio.h>
14338 int main()
14339 {
14340 FILE *f=fopen("conftestval", "w");
14341 if (!f) exit(1);
14342 fprintf(f, "%i", sizeof(wchar_t));
14343 exit(0);
14344 }
14345
14346EOF
14347if { (eval echo configure:14348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14348then
14349 wx_cv_sizeof_wchar_t=`cat conftestval`
14350else
14351 echo "configure: failed program was:" >&5
14352 cat conftest.$ac_ext >&5
14353 rm -fr conftest*
14354 wx_cv_sizeof_wchar_t=0
14355fi
14356rm -fr conftest*
14357fi
14358
14359
14360fi
14361
14362echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
14363
14364cat >> confdefs.h <<EOF
14365#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
14366EOF
14367
14368
14369echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14370echo "configure:14371: checking whether byte ordering is bigendian" >&5
14371if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
14372 echo $ac_n "(cached) $ac_c" 1>&6
14373else
14374 ac_cv_c_bigendian=unknown
14375# See if sys/param.h defines the BYTE_ORDER macro.
14376cat > conftest.$ac_ext <<EOF
14377#line 14378 "configure"
14378#include "confdefs.h"
14379#include <sys/types.h>
14380#include <sys/param.h>
14381int main() {
14382
14383#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14384 bogus endian macros
14385#endif
14386; return 0; }
14387EOF
14388if { (eval echo configure:14389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14389 rm -rf conftest*
14390 # It does; now see whether it defined to BIG_ENDIAN or not.
14391cat > conftest.$ac_ext <<EOF
14392#line 14393 "configure"
14393#include "confdefs.h"
14394#include <sys/types.h>
14395#include <sys/param.h>
14396int main() {
14397
14398#if BYTE_ORDER != BIG_ENDIAN
14399 not big endian
14400#endif
14401; return 0; }
14402EOF
14403if { (eval echo configure:14404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14404 rm -rf conftest*
14405 ac_cv_c_bigendian=yes
14406else
14407 echo "configure: failed program was:" >&5
14408 cat conftest.$ac_ext >&5
14409 rm -rf conftest*
14410 ac_cv_c_bigendian=no
14411fi
14412rm -f conftest*
14413else
14414 echo "configure: failed program was:" >&5
14415 cat conftest.$ac_ext >&5
14416fi
14417rm -f conftest*
14418if test $ac_cv_c_bigendian = unknown; then
14419if test "$cross_compiling" = yes; then
14420 ac_cv_c_bigendian=unknown
14421else
14422 cat > conftest.$ac_ext <<EOF
14423#line 14424 "configure"
14424#include "confdefs.h"
14425main () {
14426 /* Are we little or big endian? From Harbison&Steele. */
14427 union
14428 {
14429 long l;
14430 char c[sizeof (long)];
14431 } u;
14432 u.l = 1;
14433 exit (u.c[sizeof (long) - 1] == 1);
14434}
14435EOF
14436if { (eval echo configure:14437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14437then
14438 ac_cv_c_bigendian=no
14439else
14440 echo "configure: failed program was:" >&5
14441 cat conftest.$ac_ext >&5
14442 rm -fr conftest*
14443 ac_cv_c_bigendian=yes
14444fi
14445rm -fr conftest*
14446fi
14447
14448fi
14449fi
14450
14451echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14452if test $ac_cv_c_bigendian = unknown; then
14453 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
14454fi
14455if test $ac_cv_c_bigendian = yes; then
14456 cat >> confdefs.h <<\EOF
14457#define WORDS_BIGENDIAN 1
14458EOF
14459
14460fi
14461
14462
14463echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
14464echo "configure:14465: checking how to run the C++ preprocessor" >&5
14465if test -z "$CXXCPP"; then
14466if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
14467 echo $ac_n "(cached) $ac_c" 1>&6
14468else
14469 ac_ext=C
14470# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14471ac_cpp='$CXXCPP $CPPFLAGS'
14472ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14473ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14474cross_compiling=$ac_cv_prog_cxx_cross
14475 CXXCPP="${CXX-g++} -E"
14476 cat > conftest.$ac_ext <<EOF
14477#line 14478 "configure"
14478#include "confdefs.h"
14479#include <stdlib.h>
14480EOF
14481ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14482{ (eval echo configure:14483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14483ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14484if test -z "$ac_err"; then
14485 :
14486else
14487 echo "$ac_err" >&5
14488 echo "configure: failed program was:" >&5
14489 cat conftest.$ac_ext >&5
14490 rm -rf conftest*
14491 CXXCPP=/lib/cpp
14492fi
14493rm -f conftest*
14494 ac_cv_prog_CXXCPP="$CXXCPP"
14495ac_ext=C
14496# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14497ac_cpp='$CXXCPP $CPPFLAGS'
14498ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14499ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14500cross_compiling=$ac_cv_prog_cxx_cross
14501fi
14502fi
14503CXXCPP="$ac_cv_prog_CXXCPP"
14504echo "$ac_t""$CXXCPP" 1>&6
14505
14506
14507 if test "$cross_compiling" = "yes"; then
14508 cat >> confdefs.h <<\EOF
14509#define wxUSE_IOSTREAMH 1
14510EOF
14511
14512 else
14513
14514 ac_ext=C
14515# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14516ac_cpp='$CXXCPP $CPPFLAGS'
14517ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14518ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14519cross_compiling=$ac_cv_prog_cxx_cross
14520
14521
14522 for ac_hdr in iostream
14523do
14524ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14525echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14526echo "configure:14527: checking for $ac_hdr" >&5
14527if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14528 echo $ac_n "(cached) $ac_c" 1>&6
14529else
14530 cat > conftest.$ac_ext <<EOF
14531#line 14532 "configure"
14532#include "confdefs.h"
14533#include <$ac_hdr>
14534EOF
14535ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14536{ (eval echo configure:14537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14537ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14538if test -z "$ac_err"; then
14539 rm -rf conftest*
14540 eval "ac_cv_header_$ac_safe=yes"
14541else
14542 echo "$ac_err" >&5
14543 echo "configure: failed program was:" >&5
14544 cat conftest.$ac_ext >&5
14545 rm -rf conftest*
14546 eval "ac_cv_header_$ac_safe=no"
14547fi
14548rm -f conftest*
14549fi
14550if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14551 echo "$ac_t""yes" 1>&6
14552 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14553 cat >> confdefs.h <<EOF
14554#define $ac_tr_hdr 1
14555EOF
14556
14557else
14558 echo "$ac_t""no" 1>&6
14559fi
14560done
14561
14562
14563 if test "$ac_cv_header_iostream" = "yes" ; then
14564 :
14565 else
14566 cat >> confdefs.h <<\EOF
14567#define wxUSE_IOSTREAMH 1
14568EOF
14569
14570 fi
14571
14572 ac_ext=c
14573# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14574ac_cpp='$CPP $CPPFLAGS'
14575ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14576ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14577cross_compiling=$ac_cv_prog_cc_cross
14578
14579 fi
14580
14581
14582
14583 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
14584echo "configure:14585: checking if C++ compiler supports bool" >&5
14585if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
14586 echo $ac_n "(cached) $ac_c" 1>&6
14587else
14588
14589
14590 ac_ext=C
14591# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14592ac_cpp='$CXXCPP $CPPFLAGS'
14593ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14594ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14595cross_compiling=$ac_cv_prog_cxx_cross
14596
14597
14598 cat > conftest.$ac_ext <<EOF
14599#line 14600 "configure"
14600#include "confdefs.h"
14601
14602
14603int main() {
14604
14605 bool b = true;
14606
14607 return 0;
14608
14609; return 0; }
14610EOF
14611if { (eval echo configure:14612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14612 rm -rf conftest*
14613
14614 wx_cv_cpp_bool=yes
14615
14616else
14617 echo "configure: failed program was:" >&5
14618 cat conftest.$ac_ext >&5
14619 rm -rf conftest*
14620
14621 wx_cv_cpp_bool=no
14622
14623
14624fi
14625rm -f conftest*
14626
14627 ac_ext=c
14628# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14629ac_cpp='$CPP $CPPFLAGS'
14630ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14631ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14632cross_compiling=$ac_cv_prog_cc_cross
14633
14634
14635fi
14636
14637echo "$ac_t""$wx_cv_cpp_bool" 1>&6
14638
14639 if test "$wx_cv_cpp_bool" = "yes"; then
14640 cat >> confdefs.h <<\EOF
14641#define HAVE_BOOL 1
14642EOF
14643
14644 fi
14645
14646
14647
14648echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
14649echo "configure:14650: checking for wcslen in -lc" >&5
14650ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
14651if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14652 echo $ac_n "(cached) $ac_c" 1>&6
14653else
14654 ac_save_LIBS="$LIBS"
14655LIBS="-lc $LIBS"
14656cat > conftest.$ac_ext <<EOF
14657#line 14658 "configure"
14658#include "confdefs.h"
14659/* Override any gcc2 internal prototype to avoid an error. */
14660/* We use char because int might match the return type of a gcc2
14661 builtin and then its argument prototype would still apply. */
14662char wcslen();
14663
14664int main() {
14665wcslen()
14666; return 0; }
14667EOF
14668if { (eval echo configure:14669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14669 rm -rf conftest*
14670 eval "ac_cv_lib_$ac_lib_var=yes"
14671else
14672 echo "configure: failed program was:" >&5
14673 cat conftest.$ac_ext >&5
14674 rm -rf conftest*
14675 eval "ac_cv_lib_$ac_lib_var=no"
14676fi
14677rm -f conftest*
14678LIBS="$ac_save_LIBS"
14679
14680fi
14681if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14682 echo "$ac_t""yes" 1>&6
14683
14684 cat >> confdefs.h <<\EOF
14685#define HAVE_WCSLEN 1
14686EOF
14687
14688 WCHAR_LINK=
14689
14690else
14691 echo "$ac_t""no" 1>&6
14692
14693 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
14694echo "configure:14695: checking for wcslen in -lw" >&5
14695ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
14696if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14697 echo $ac_n "(cached) $ac_c" 1>&6
14698else
14699 ac_save_LIBS="$LIBS"
14700LIBS="-lw $LIBS"
14701cat > conftest.$ac_ext <<EOF
14702#line 14703 "configure"
14703#include "confdefs.h"
14704/* Override any gcc2 internal prototype to avoid an error. */
14705/* We use char because int might match the return type of a gcc2
14706 builtin and then its argument prototype would still apply. */
14707char wcslen();
14708
14709int main() {
14710wcslen()
14711; return 0; }
14712EOF
14713if { (eval echo configure:14714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14714 rm -rf conftest*
14715 eval "ac_cv_lib_$ac_lib_var=yes"
14716else
14717 echo "configure: failed program was:" >&5
14718 cat conftest.$ac_ext >&5
14719 rm -rf conftest*
14720 eval "ac_cv_lib_$ac_lib_var=no"
14721fi
14722rm -f conftest*
14723LIBS="$ac_save_LIBS"
14724
14725fi
14726if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14727 echo "$ac_t""yes" 1>&6
14728
14729 cat >> confdefs.h <<\EOF
14730#define HAVE_WCSLEN 1
14731EOF
14732
14733 WCHAR_LINK=" -lw"
14734
14735else
14736 echo "$ac_t""no" 1>&6
14737
14738 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
14739echo "configure:14740: checking for wcslen in -lmsvcrt" >&5
14740ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
14741if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14742 echo $ac_n "(cached) $ac_c" 1>&6
14743else
14744 ac_save_LIBS="$LIBS"
14745LIBS="-lmsvcrt $LIBS"
14746cat > conftest.$ac_ext <<EOF
14747#line 14748 "configure"
14748#include "confdefs.h"
14749/* Override any gcc2 internal prototype to avoid an error. */
14750/* We use char because int might match the return type of a gcc2
14751 builtin and then its argument prototype would still apply. */
14752char wcslen();
14753
14754int main() {
14755wcslen()
14756; return 0; }
14757EOF
14758if { (eval echo configure:14759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14759 rm -rf conftest*
14760 eval "ac_cv_lib_$ac_lib_var=yes"
14761else
14762 echo "configure: failed program was:" >&5
14763 cat conftest.$ac_ext >&5
14764 rm -rf conftest*
14765 eval "ac_cv_lib_$ac_lib_var=no"
14766fi
14767rm -f conftest*
14768LIBS="$ac_save_LIBS"
14769
14770fi
14771if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14772 echo "$ac_t""yes" 1>&6
14773
14774 cat >> confdefs.h <<\EOF
14775#define HAVE_WCSLEN 1
14776EOF
14777
14778 WCHAR_LINK=
14779
14780else
14781 echo "$ac_t""no" 1>&6
14782fi
14783
14784
14785fi
14786
14787
14788fi
14789
14790
14791for ac_func in wcsrtombs
14792do
14793echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14794echo "configure:14795: checking for $ac_func" >&5
14795if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14796 echo $ac_n "(cached) $ac_c" 1>&6
14797else
14798 cat > conftest.$ac_ext <<EOF
14799#line 14800 "configure"
14800#include "confdefs.h"
14801/* System header to define __stub macros and hopefully few prototypes,
14802 which can conflict with char $ac_func(); below. */
14803#include <assert.h>
14804/* Override any gcc2 internal prototype to avoid an error. */
14805/* We use char because int might match the return type of a gcc2
14806 builtin and then its argument prototype would still apply. */
14807char $ac_func();
14808
14809int main() {
14810
14811/* The GNU C library defines this for functions which it implements
14812 to always fail with ENOSYS. Some functions are actually named
14813 something starting with __ and the normal name is an alias. */
14814#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14815choke me
14816#else
14817$ac_func();
14818#endif
14819
14820; return 0; }
14821EOF
14822if { (eval echo configure:14823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14823 rm -rf conftest*
14824 eval "ac_cv_func_$ac_func=yes"
14825else
14826 echo "configure: failed program was:" >&5
14827 cat conftest.$ac_ext >&5
14828 rm -rf conftest*
14829 eval "ac_cv_func_$ac_func=no"
14830fi
14831rm -f conftest*
14832fi
14833
14834if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14835 echo "$ac_t""yes" 1>&6
14836 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14837 cat >> confdefs.h <<EOF
14838#define $ac_tr_func 1
14839EOF
14840
14841else
14842 echo "$ac_t""no" 1>&6
14843fi
14844done
14845
14846
14847echo $ac_n "checking for vprintf""... $ac_c" 1>&6
14848echo "configure:14849: checking for vprintf" >&5
14849if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
14850 echo $ac_n "(cached) $ac_c" 1>&6
14851else
14852 cat > conftest.$ac_ext <<EOF
14853#line 14854 "configure"
14854#include "confdefs.h"
14855/* System header to define __stub macros and hopefully few prototypes,
14856 which can conflict with char vprintf(); below. */
14857#include <assert.h>
14858/* Override any gcc2 internal prototype to avoid an error. */
14859/* We use char because int might match the return type of a gcc2
14860 builtin and then its argument prototype would still apply. */
14861char vprintf();
14862
14863int main() {
14864
14865/* The GNU C library defines this for functions which it implements
14866 to always fail with ENOSYS. Some functions are actually named
14867 something starting with __ and the normal name is an alias. */
14868#if defined (__stub_vprintf) || defined (__stub___vprintf)
14869choke me
14870#else
14871vprintf();
14872#endif
14873
14874; return 0; }
14875EOF
14876if { (eval echo configure:14877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14877 rm -rf conftest*
14878 eval "ac_cv_func_vprintf=yes"
14879else
14880 echo "configure: failed program was:" >&5
14881 cat conftest.$ac_ext >&5
14882 rm -rf conftest*
14883 eval "ac_cv_func_vprintf=no"
14884fi
14885rm -f conftest*
14886fi
14887
14888if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
14889 echo "$ac_t""yes" 1>&6
14890 cat >> confdefs.h <<\EOF
14891#define HAVE_VPRINTF 1
14892EOF
14893
14894else
14895 echo "$ac_t""no" 1>&6
14896fi
14897
14898if test "$ac_cv_func_vprintf" != yes; then
14899echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
14900echo "configure:14901: checking for _doprnt" >&5
14901if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
14902 echo $ac_n "(cached) $ac_c" 1>&6
14903else
14904 cat > conftest.$ac_ext <<EOF
14905#line 14906 "configure"
14906#include "confdefs.h"
14907/* System header to define __stub macros and hopefully few prototypes,
14908 which can conflict with char _doprnt(); below. */
14909#include <assert.h>
14910/* Override any gcc2 internal prototype to avoid an error. */
14911/* We use char because int might match the return type of a gcc2
14912 builtin and then its argument prototype would still apply. */
14913char _doprnt();
14914
14915int main() {
14916
14917/* The GNU C library defines this for functions which it implements
14918 to always fail with ENOSYS. Some functions are actually named
14919 something starting with __ and the normal name is an alias. */
14920#if defined (__stub__doprnt) || defined (__stub____doprnt)
14921choke me
14922#else
14923_doprnt();
14924#endif
14925
14926; return 0; }
14927EOF
14928if { (eval echo configure:14929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14929 rm -rf conftest*
14930 eval "ac_cv_func__doprnt=yes"
14931else
14932 echo "configure: failed program was:" >&5
14933 cat conftest.$ac_ext >&5
14934 rm -rf conftest*
14935 eval "ac_cv_func__doprnt=no"
14936fi
14937rm -f conftest*
14938fi
14939
14940if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
14941 echo "$ac_t""yes" 1>&6
14942 cat >> confdefs.h <<\EOF
14943#define HAVE_DOPRNT 1
14944EOF
14945
14946else
14947 echo "$ac_t""no" 1>&6
14948fi
14949
14950fi
14951
14952
14953
14954
14955
14956
14957echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
14958echo "configure:14959: checking for vsnprintf" >&5
14959if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
14960 echo $ac_n "(cached) $ac_c" 1>&6
14961else
14962
14963 cat > conftest.$ac_ext <<EOF
14964#line 14965 "configure"
14965#include "confdefs.h"
14966
14967 #include <stdio.h>
14968 #include <stdarg.h>
14969
14970int main() {
14971
14972 int wx_test_vsnprintf(const char *, ...);
14973
14974 wx_test_vsnprintf("%s");
14975 return 0;
14976 }
14977
14978 int wx_test_vsnprintf(const char *fmt, ...)
14979 {
14980 char *s;
14981
14982 va_list argp;
14983 va_start(argp, fmt);
14984 vsnprintf(s, 42, fmt, argp);
14985 va_end(argp);
14986
14987; return 0; }
14988EOF
14989if { (eval echo configure:14990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14990 rm -rf conftest*
14991
14992 wx_cv_func_vsnprintf=yes
14993
14994else
14995 echo "configure: failed program was:" >&5
14996 cat conftest.$ac_ext >&5
14997 rm -rf conftest*
14998
14999 cat > conftest.$ac_ext <<EOF
15000#line 15001 "configure"
15001#include "confdefs.h"
15002
15003 #include <stdio.h>
15004 #include <stdarg.h>
15005
15006int main() {
15007
15008 int wx_test_vsnprintf(const char *, ...);
15009
15010 wx_test_vsnprintf("%s");
15011 return 0;
15012 }
15013
15014 int wx_test_vsnprintf(const char *fmt, ...)
15015 {
15016 char *s;
15017
15018 va_list argp;
15019 va_start(argp, fmt);
15020 _vsnprintf(s, 42, fmt, argp);
15021 va_end(argp);
15022
15023; return 0; }
15024EOF
15025if { (eval echo configure:15026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15026 rm -rf conftest*
15027
15028 wx_cv_func_vsnprintf=yes
15029
15030else
15031 echo "configure: failed program was:" >&5
15032 cat conftest.$ac_ext >&5
15033 rm -rf conftest*
15034
15035 wx_cv_func_vsnprintf=no
15036
15037fi
15038rm -f conftest*
15039
15040fi
15041rm -f conftest*
15042
15043fi
15044
15045echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
15046
15047if test "$wx_cv_func_vsnprintf" = yes; then
15048 cat >> confdefs.h <<\EOF
15049#define HAVE_VSNPRINTF 1
15050EOF
15051
15052else
15053 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
15054fi
15055
15056echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
15057echo "configure:15058: checking for vsscanf" >&5
15058if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
15059 echo $ac_n "(cached) $ac_c" 1>&6
15060else
15061
15062 cat > conftest.$ac_ext <<EOF
15063#line 15064 "configure"
15064#include "confdefs.h"
15065
15066 #include <stdio.h>
15067 #include <stdarg.h>
15068
15069int main() {
15070
15071 int wx_test_vsscanf(const char *, ...);
15072
15073 wx_test_vsscanf("%d");
15074 return 0;
15075 }
15076
15077 int wx_test_vsscanf(const char *fmt, ...)
15078 {
15079 va_list argp;
15080 va_start(argp, fmt);
15081 vsscanf("42", fmt, argp);
15082 va_end(argp);
15083
15084; return 0; }
15085EOF
15086if { (eval echo configure:15087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15087 rm -rf conftest*
15088
15089 wx_cv_func_vsscanf=yes
15090
15091else
15092 echo "configure: failed program was:" >&5
15093 cat conftest.$ac_ext >&5
15094 rm -rf conftest*
15095
15096 wx_cv_func_vsscanf=no
15097
15098fi
15099rm -f conftest*
15100
15101fi
15102
15103echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
15104
15105if test "$wx_cv_func_vsscanf" = yes; then
15106 cat >> confdefs.h <<\EOF
15107#define HAVE_VSSCANF 1
15108EOF
15109
15110fi
15111
15112if test "$TOOLKIT" != "MSW"; then
15113
15114
15115
15116ac_ext=C
15117# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15118ac_cpp='$CXXCPP $CPPFLAGS'
15119ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15120ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15121cross_compiling=$ac_cv_prog_cxx_cross
15122
15123
15124
15125 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15126if test "${with_libiconv_prefix+set}" = set; then
15127 withval="$with_libiconv_prefix"
15128
15129 for dir in `echo "$withval" | tr : ' '`; do
15130 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
15131 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
15132 done
15133
15134fi
15135
15136
15137 echo $ac_n "checking for iconv""... $ac_c" 1>&6
15138echo "configure:15139: checking for iconv" >&5
15139if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
15140 echo $ac_n "(cached) $ac_c" 1>&6
15141else
15142
15143 am_cv_func_iconv="no, consider installing GNU libiconv"
15144 am_cv_lib_iconv=no
15145 cat > conftest.$ac_ext <<EOF
15146#line 15147 "configure"
15147#include "confdefs.h"
15148#include <stdlib.h>
15149#include <iconv.h>
15150int main() {
15151iconv_t cd = iconv_open("","");
15152 iconv(cd,NULL,NULL,NULL,NULL);
15153 iconv_close(cd);
15154; return 0; }
15155EOF
15156if { (eval echo configure:15157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15157 rm -rf conftest*
15158 am_cv_func_iconv=yes
15159else
15160 echo "configure: failed program was:" >&5
15161 cat conftest.$ac_ext >&5
15162fi
15163rm -f conftest*
15164 if test "$am_cv_func_iconv" != yes; then
15165 am_save_LIBS="$LIBS"
15166 LIBS="$LIBS -liconv"
15167 cat > conftest.$ac_ext <<EOF
15168#line 15169 "configure"
15169#include "confdefs.h"
15170#include <stdlib.h>
15171#include <iconv.h>
15172int main() {
15173iconv_t cd = iconv_open("","");
15174 iconv(cd,NULL,NULL,NULL,NULL);
15175 iconv_close(cd);
15176; return 0; }
15177EOF
15178if { (eval echo configure:15179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15179 rm -rf conftest*
15180 am_cv_lib_iconv=yes
15181 am_cv_func_iconv=yes
15182else
15183 echo "configure: failed program was:" >&5
15184 cat conftest.$ac_ext >&5
15185fi
15186rm -f conftest*
15187 LIBS="$am_save_LIBS"
15188 fi
15189
15190fi
15191
15192echo "$ac_t""$am_cv_func_iconv" 1>&6
15193 if test "$am_cv_func_iconv" = yes; then
15194 cat >> confdefs.h <<\EOF
15195#define HAVE_ICONV 1
15196EOF
15197
15198 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
15199echo "configure:15200: checking if iconv needs const" >&5
15200if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
15201 echo $ac_n "(cached) $ac_c" 1>&6
15202else
15203 cat > conftest.$ac_ext <<EOF
15204#line 15205 "configure"
15205#include "confdefs.h"
15206
15207#include <stdlib.h>
15208#include <iconv.h>
15209extern
15210#ifdef __cplusplus
15211"C"
15212#endif
15213#if defined(__STDC__) || defined(__cplusplus)
15214size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15215#else
15216size_t iconv();
15217#endif
15218
15219int main() {
15220
15221; return 0; }
15222EOF
15223if { (eval echo configure:15224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15224 rm -rf conftest*
15225 wx_cv_func_iconv_const="no"
15226else
15227 echo "configure: failed program was:" >&5
15228 cat conftest.$ac_ext >&5
15229 rm -rf conftest*
15230 wx_cv_func_iconv_const="yes"
15231
15232fi
15233rm -f conftest*
15234
15235fi
15236
15237echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
15238
15239 iconv_const=
15240 if test "x$wx_cv_func_iconv_const" != "xyes"; then
15241 iconv_const="const"
15242 fi
15243
15244 cat >> confdefs.h <<EOF
15245#define ICONV_CONST $iconv_const
15246EOF
15247
15248 fi
15249 LIBICONV=
15250 if test "$am_cv_lib_iconv" = yes; then
15251 LIBICONV="-liconv"
15252 fi
15253
15254
15255LIBS="$LIBICONV $LIBS"
15256ac_ext=c
15257# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15258ac_cpp='$CPP $CPPFLAGS'
15259ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15260ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15261cross_compiling=$ac_cv_prog_cc_cross
15262
15263
15264if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
15265 for ac_func in sigaction
15266do
15267echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15268echo "configure:15269: checking for $ac_func" >&5
15269if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15270 echo $ac_n "(cached) $ac_c" 1>&6
15271else
15272 cat > conftest.$ac_ext <<EOF
15273#line 15274 "configure"
15274#include "confdefs.h"
15275/* System header to define __stub macros and hopefully few prototypes,
15276 which can conflict with char $ac_func(); below. */
15277#include <assert.h>
15278/* Override any gcc2 internal prototype to avoid an error. */
15279/* We use char because int might match the return type of a gcc2
15280 builtin and then its argument prototype would still apply. */
15281char $ac_func();
15282
15283int main() {
15284
15285/* The GNU C library defines this for functions which it implements
15286 to always fail with ENOSYS. Some functions are actually named
15287 something starting with __ and the normal name is an alias. */
15288#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15289choke me
15290#else
15291$ac_func();
15292#endif
15293
15294; return 0; }
15295EOF
15296if { (eval echo configure:15297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15297 rm -rf conftest*
15298 eval "ac_cv_func_$ac_func=yes"
15299else
15300 echo "configure: failed program was:" >&5
15301 cat conftest.$ac_ext >&5
15302 rm -rf conftest*
15303 eval "ac_cv_func_$ac_func=no"
15304fi
15305rm -f conftest*
15306fi
15307
15308if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15309 echo "$ac_t""yes" 1>&6
15310 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15311 cat >> confdefs.h <<EOF
15312#define $ac_tr_func 1
15313EOF
15314
15315else
15316 echo "$ac_t""no" 1>&6
15317fi
15318done
15319
15320
15321 if test "$ac_cv_func_sigaction" = "no"; then
15322 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
15323 wxUSE_ON_FATAL_EXCEPTION=no
15324 fi
15325
15326 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15327
15328 ac_ext=C
15329# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15330ac_cpp='$CXXCPP $CPPFLAGS'
15331ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15332ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15333cross_compiling=$ac_cv_prog_cxx_cross
15334
15335
15336 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
15337echo "configure:15338: checking for sa_handler type" >&5
15338if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
15339 echo $ac_n "(cached) $ac_c" 1>&6
15340else
15341
15342 cat > conftest.$ac_ext <<EOF
15343#line 15344 "configure"
15344#include "confdefs.h"
15345#include <signal.h>
15346int main() {
15347
15348 extern void testSigHandler(int);
15349
15350 struct sigaction sa;
15351 sa.sa_handler = testSigHandler;
15352
15353; return 0; }
15354EOF
15355if { (eval echo configure:15356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15356 rm -rf conftest*
15357
15358 wx_cv_type_sa_handler=int
15359
15360else
15361 echo "configure: failed program was:" >&5
15362 cat conftest.$ac_ext >&5
15363 rm -rf conftest*
15364
15365 wx_cv_type_sa_handler=void
15366
15367fi
15368rm -f conftest*
15369
15370fi
15371
15372echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
15373
15374 ac_ext=c
15375# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15376ac_cpp='$CPP $CPPFLAGS'
15377ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15378ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15379cross_compiling=$ac_cv_prog_cc_cross
15380
15381
15382 cat >> confdefs.h <<EOF
15383#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
15384EOF
15385
15386 fi
15387fi
15388
15389for ac_func in vfork
15390do
15391echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15392echo "configure:15393: checking for $ac_func" >&5
15393if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15394 echo $ac_n "(cached) $ac_c" 1>&6
15395else
15396 cat > conftest.$ac_ext <<EOF
15397#line 15398 "configure"
15398#include "confdefs.h"
15399/* System header to define __stub macros and hopefully few prototypes,
15400 which can conflict with char $ac_func(); below. */
15401#include <assert.h>
15402/* Override any gcc2 internal prototype to avoid an error. */
15403/* We use char because int might match the return type of a gcc2
15404 builtin and then its argument prototype would still apply. */
15405char $ac_func();
15406
15407int main() {
15408
15409/* The GNU C library defines this for functions which it implements
15410 to always fail with ENOSYS. Some functions are actually named
15411 something starting with __ and the normal name is an alias. */
15412#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15413choke me
15414#else
15415$ac_func();
15416#endif
15417
15418; return 0; }
15419EOF
15420if { (eval echo configure:15421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15421 rm -rf conftest*
15422 eval "ac_cv_func_$ac_func=yes"
15423else
15424 echo "configure: failed program was:" >&5
15425 cat conftest.$ac_ext >&5
15426 rm -rf conftest*
15427 eval "ac_cv_func_$ac_func=no"
15428fi
15429rm -f conftest*
15430fi
15431
15432if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15433 echo "$ac_t""yes" 1>&6
15434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15435 cat >> confdefs.h <<EOF
15436#define $ac_tr_func 1
15437EOF
15438
15439else
15440 echo "$ac_t""no" 1>&6
15441fi
15442done
15443
15444
15445for ac_func in mkstemp mktemp
15446do
15447echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15448echo "configure:15449: checking for $ac_func" >&5
15449if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15450 echo $ac_n "(cached) $ac_c" 1>&6
15451else
15452 cat > conftest.$ac_ext <<EOF
15453#line 15454 "configure"
15454#include "confdefs.h"
15455/* System header to define __stub macros and hopefully few prototypes,
15456 which can conflict with char $ac_func(); below. */
15457#include <assert.h>
15458/* Override any gcc2 internal prototype to avoid an error. */
15459/* We use char because int might match the return type of a gcc2
15460 builtin and then its argument prototype would still apply. */
15461char $ac_func();
15462
15463int main() {
15464
15465/* The GNU C library defines this for functions which it implements
15466 to always fail with ENOSYS. Some functions are actually named
15467 something starting with __ and the normal name is an alias. */
15468#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15469choke me
15470#else
15471$ac_func();
15472#endif
15473
15474; return 0; }
15475EOF
15476if { (eval echo configure:15477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15477 rm -rf conftest*
15478 eval "ac_cv_func_$ac_func=yes"
15479else
15480 echo "configure: failed program was:" >&5
15481 cat conftest.$ac_ext >&5
15482 rm -rf conftest*
15483 eval "ac_cv_func_$ac_func=no"
15484fi
15485rm -f conftest*
15486fi
15487
15488if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15489 echo "$ac_t""yes" 1>&6
15490 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15491 cat >> confdefs.h <<EOF
15492#define $ac_tr_func 1
15493EOF
15494 break
15495else
15496 echo "$ac_t""no" 1>&6
15497fi
15498done
15499
15500
15501echo $ac_n "checking for statfs""... $ac_c" 1>&6
15502echo "configure:15503: checking for statfs" >&5
15503if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
15504 echo $ac_n "(cached) $ac_c" 1>&6
15505else
15506 cat > conftest.$ac_ext <<EOF
15507#line 15508 "configure"
15508#include "confdefs.h"
15509
15510 #if defined(__BSD__)
15511 #include <sys/param.h>
15512 #include <sys/mount.h>
15513 #else
15514 #include <sys/vfs.h>
15515 #endif
15516
15517int main() {
15518
15519 long l;
15520 struct statfs fs;
15521 statfs("/", &fs);
15522 l = fs.f_bsize;
15523 l += fs.f_blocks;
15524 l += fs.f_bavail;
15525
15526; return 0; }
15527EOF
15528if { (eval echo configure:15529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15529 rm -rf conftest*
15530
15531 wx_cv_func_statfs=yes
15532
15533else
15534 echo "configure: failed program was:" >&5
15535 cat conftest.$ac_ext >&5
15536 rm -rf conftest*
15537
15538 wx_cv_func_statfs=no
15539
15540
15541fi
15542rm -f conftest*
15543
15544fi
15545
15546echo "$ac_t""$wx_cv_func_statfs" 1>&6
15547
15548if test "$wx_cv_func_statfs" = "yes"; then
15549 cat >> confdefs.h <<\EOF
15550#define HAVE_STATFS 1
15551EOF
15552
15553else
15554 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
15555echo "configure:15556: checking for statvfs" >&5
15556if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
15557 echo $ac_n "(cached) $ac_c" 1>&6
15558else
15559 cat > conftest.$ac_ext <<EOF
15560#line 15561 "configure"
15561#include "confdefs.h"
15562
15563 #include <sys/statvfs.h>
15564
15565int main() {
15566
15567 long l;
15568 struct statvfs fs;
15569 statvfs("/", &fs);
15570 l = fs.f_bsize;
15571 l += fs.f_blocks;
15572 l += fs.f_bavail;
15573
15574; return 0; }
15575EOF
15576if { (eval echo configure:15577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15577 rm -rf conftest*
15578
15579 wx_cv_func_statvfs=yes
15580
15581else
15582 echo "configure: failed program was:" >&5
15583 cat conftest.$ac_ext >&5
15584 rm -rf conftest*
15585
15586 wx_cv_func_statvfs=no
15587
15588
15589fi
15590rm -f conftest*
15591
15592fi
15593
15594echo "$ac_t""$wx_cv_func_statvfs" 1>&6
15595
15596 if test "$wx_cv_func_statvfs" = "yes"; then
15597 cat >> confdefs.h <<\EOF
15598#define HAVE_STATVFS 1
15599EOF
15600
15601 else
15602 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
15603 fi
15604fi
15605
15606if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15607 for ac_func in fcntl flock
15608do
15609echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15610echo "configure:15611: checking for $ac_func" >&5
15611if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15612 echo $ac_n "(cached) $ac_c" 1>&6
15613else
15614 cat > conftest.$ac_ext <<EOF
15615#line 15616 "configure"
15616#include "confdefs.h"
15617/* System header to define __stub macros and hopefully few prototypes,
15618 which can conflict with char $ac_func(); below. */
15619#include <assert.h>
15620/* Override any gcc2 internal prototype to avoid an error. */
15621/* We use char because int might match the return type of a gcc2
15622 builtin and then its argument prototype would still apply. */
15623char $ac_func();
15624
15625int main() {
15626
15627/* The GNU C library defines this for functions which it implements
15628 to always fail with ENOSYS. Some functions are actually named
15629 something starting with __ and the normal name is an alias. */
15630#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15631choke me
15632#else
15633$ac_func();
15634#endif
15635
15636; return 0; }
15637EOF
15638if { (eval echo configure:15639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15639 rm -rf conftest*
15640 eval "ac_cv_func_$ac_func=yes"
15641else
15642 echo "configure: failed program was:" >&5
15643 cat conftest.$ac_ext >&5
15644 rm -rf conftest*
15645 eval "ac_cv_func_$ac_func=no"
15646fi
15647rm -f conftest*
15648fi
15649
15650if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15651 echo "$ac_t""yes" 1>&6
15652 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15653 cat >> confdefs.h <<EOF
15654#define $ac_tr_func 1
15655EOF
15656 break
15657else
15658 echo "$ac_t""no" 1>&6
15659fi
15660done
15661
15662
15663 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
15664 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
15665 wxUSE_SNGLINST_CHECKER=no
15666 fi
15667fi
15668
15669for ac_func in timegm
15670do
15671echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15672echo "configure:15673: checking for $ac_func" >&5
15673if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15674 echo $ac_n "(cached) $ac_c" 1>&6
15675else
15676 cat > conftest.$ac_ext <<EOF
15677#line 15678 "configure"
15678#include "confdefs.h"
15679/* System header to define __stub macros and hopefully few prototypes,
15680 which can conflict with char $ac_func(); below. */
15681#include <assert.h>
15682/* Override any gcc2 internal prototype to avoid an error. */
15683/* We use char because int might match the return type of a gcc2
15684 builtin and then its argument prototype would still apply. */
15685char $ac_func();
15686
15687int main() {
15688
15689/* The GNU C library defines this for functions which it implements
15690 to always fail with ENOSYS. Some functions are actually named
15691 something starting with __ and the normal name is an alias. */
15692#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15693choke me
15694#else
15695$ac_func();
15696#endif
15697
15698; return 0; }
15699EOF
15700if { (eval echo configure:15701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15701 rm -rf conftest*
15702 eval "ac_cv_func_$ac_func=yes"
15703else
15704 echo "configure: failed program was:" >&5
15705 cat conftest.$ac_ext >&5
15706 rm -rf conftest*
15707 eval "ac_cv_func_$ac_func=no"
15708fi
15709rm -f conftest*
15710fi
15711
15712if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15713 echo "$ac_t""yes" 1>&6
15714 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15715 cat >> confdefs.h <<EOF
15716#define $ac_tr_func 1
15717EOF
15718
15719else
15720 echo "$ac_t""no" 1>&6
15721fi
15722done
15723
15724
15725for ac_func in putenv setenv
15726do
15727echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15728echo "configure:15729: checking for $ac_func" >&5
15729if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15730 echo $ac_n "(cached) $ac_c" 1>&6
15731else
15732 cat > conftest.$ac_ext <<EOF
15733#line 15734 "configure"
15734#include "confdefs.h"
15735/* System header to define __stub macros and hopefully few prototypes,
15736 which can conflict with char $ac_func(); below. */
15737#include <assert.h>
15738/* Override any gcc2 internal prototype to avoid an error. */
15739/* We use char because int might match the return type of a gcc2
15740 builtin and then its argument prototype would still apply. */
15741char $ac_func();
15742
15743int main() {
15744
15745/* The GNU C library defines this for functions which it implements
15746 to always fail with ENOSYS. Some functions are actually named
15747 something starting with __ and the normal name is an alias. */
15748#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15749choke me
15750#else
15751$ac_func();
15752#endif
15753
15754; return 0; }
15755EOF
15756if { (eval echo configure:15757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15757 rm -rf conftest*
15758 eval "ac_cv_func_$ac_func=yes"
15759else
15760 echo "configure: failed program was:" >&5
15761 cat conftest.$ac_ext >&5
15762 rm -rf conftest*
15763 eval "ac_cv_func_$ac_func=no"
15764fi
15765rm -f conftest*
15766fi
15767
15768if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15769 echo "$ac_t""yes" 1>&6
15770 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15771 cat >> confdefs.h <<EOF
15772#define $ac_tr_func 1
15773EOF
15774 break
15775else
15776 echo "$ac_t""no" 1>&6
15777fi
15778done
15779
15780
15781HAVE_SOME_SLEEP_FUNC=0
15782if test "$USE_BEOS" = 1; then
15783 cat >> confdefs.h <<\EOF
15784#define HAVE_SLEEP 1
15785EOF
15786
15787 HAVE_SOME_SLEEP_FUNC=1
15788fi
15789
15790if test "$USE_DARWIN" = 1; then
15791 cat >> confdefs.h <<\EOF
15792#define HAVE_USLEEP 1
15793EOF
15794
15795 HAVE_SOME_SLEEP_FUNC=1
15796fi
15797
15798if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
15799 POSIX4_LINK=
15800 for ac_func in nanosleep
15801do
15802echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15803echo "configure:15804: checking for $ac_func" >&5
15804if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15805 echo $ac_n "(cached) $ac_c" 1>&6
15806else
15807 cat > conftest.$ac_ext <<EOF
15808#line 15809 "configure"
15809#include "confdefs.h"
15810/* System header to define __stub macros and hopefully few prototypes,
15811 which can conflict with char $ac_func(); below. */
15812#include <assert.h>
15813/* Override any gcc2 internal prototype to avoid an error. */
15814/* We use char because int might match the return type of a gcc2
15815 builtin and then its argument prototype would still apply. */
15816char $ac_func();
15817
15818int main() {
15819
15820/* The GNU C library defines this for functions which it implements
15821 to always fail with ENOSYS. Some functions are actually named
15822 something starting with __ and the normal name is an alias. */
15823#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15824choke me
15825#else
15826$ac_func();
15827#endif
15828
15829; return 0; }
15830EOF
15831if { (eval echo configure:15832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15832 rm -rf conftest*
15833 eval "ac_cv_func_$ac_func=yes"
15834else
15835 echo "configure: failed program was:" >&5
15836 cat conftest.$ac_ext >&5
15837 rm -rf conftest*
15838 eval "ac_cv_func_$ac_func=no"
15839fi
15840rm -f conftest*
15841fi
15842
15843if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15844 echo "$ac_t""yes" 1>&6
15845 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15846 cat >> confdefs.h <<EOF
15847#define $ac_tr_func 1
15848EOF
15849 cat >> confdefs.h <<\EOF
15850#define HAVE_NANOSLEEP 1
15851EOF
15852
15853else
15854 echo "$ac_t""no" 1>&6
15855echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
15856echo "configure:15857: checking for nanosleep in -lposix4" >&5
15857ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
15858if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15859 echo $ac_n "(cached) $ac_c" 1>&6
15860else
15861 ac_save_LIBS="$LIBS"
15862LIBS="-lposix4 $LIBS"
15863cat > conftest.$ac_ext <<EOF
15864#line 15865 "configure"
15865#include "confdefs.h"
15866/* Override any gcc2 internal prototype to avoid an error. */
15867/* We use char because int might match the return type of a gcc2
15868 builtin and then its argument prototype would still apply. */
15869char nanosleep();
15870
15871int main() {
15872nanosleep()
15873; return 0; }
15874EOF
15875if { (eval echo configure:15876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15876 rm -rf conftest*
15877 eval "ac_cv_lib_$ac_lib_var=yes"
15878else
15879 echo "configure: failed program was:" >&5
15880 cat conftest.$ac_ext >&5
15881 rm -rf conftest*
15882 eval "ac_cv_lib_$ac_lib_var=no"
15883fi
15884rm -f conftest*
15885LIBS="$ac_save_LIBS"
15886
15887fi
15888if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15889 echo "$ac_t""yes" 1>&6
15890
15891 cat >> confdefs.h <<\EOF
15892#define HAVE_NANOSLEEP 1
15893EOF
15894
15895 POSIX4_LINK=" -lposix4"
15896
15897else
15898 echo "$ac_t""no" 1>&6
15899
15900 for ac_func in usleep
15901do
15902echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15903echo "configure:15904: checking for $ac_func" >&5
15904if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15905 echo $ac_n "(cached) $ac_c" 1>&6
15906else
15907 cat > conftest.$ac_ext <<EOF
15908#line 15909 "configure"
15909#include "confdefs.h"
15910/* System header to define __stub macros and hopefully few prototypes,
15911 which can conflict with char $ac_func(); below. */
15912#include <assert.h>
15913/* Override any gcc2 internal prototype to avoid an error. */
15914/* We use char because int might match the return type of a gcc2
15915 builtin and then its argument prototype would still apply. */
15916char $ac_func();
15917
15918int main() {
15919
15920/* The GNU C library defines this for functions which it implements
15921 to always fail with ENOSYS. Some functions are actually named
15922 something starting with __ and the normal name is an alias. */
15923#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15924choke me
15925#else
15926$ac_func();
15927#endif
15928
15929; return 0; }
15930EOF
15931if { (eval echo configure:15932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15932 rm -rf conftest*
15933 eval "ac_cv_func_$ac_func=yes"
15934else
15935 echo "configure: failed program was:" >&5
15936 cat conftest.$ac_ext >&5
15937 rm -rf conftest*
15938 eval "ac_cv_func_$ac_func=no"
15939fi
15940rm -f conftest*
15941fi
15942
15943if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15944 echo "$ac_t""yes" 1>&6
15945 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15946 cat >> confdefs.h <<EOF
15947#define $ac_tr_func 1
15948EOF
15949 cat >> confdefs.h <<\EOF
15950#define HAVE_USLEEP 1
15951EOF
15952
15953else
15954 echo "$ac_t""no" 1>&6
15955echo "configure: warning: wxSleep() function will not work" 1>&2
15956
15957fi
15958done
15959
15960
15961
15962fi
15963
15964
15965
15966fi
15967done
15968
15969fi
15970
15971for ac_func in uname gethostname
15972do
15973echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15974echo "configure:15975: checking for $ac_func" >&5
15975if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15976 echo $ac_n "(cached) $ac_c" 1>&6
15977else
15978 cat > conftest.$ac_ext <<EOF
15979#line 15980 "configure"
15980#include "confdefs.h"
15981/* System header to define __stub macros and hopefully few prototypes,
15982 which can conflict with char $ac_func(); below. */
15983#include <assert.h>
15984/* Override any gcc2 internal prototype to avoid an error. */
15985/* We use char because int might match the return type of a gcc2
15986 builtin and then its argument prototype would still apply. */
15987char $ac_func();
15988
15989int main() {
15990
15991/* The GNU C library defines this for functions which it implements
15992 to always fail with ENOSYS. Some functions are actually named
15993 something starting with __ and the normal name is an alias. */
15994#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15995choke me
15996#else
15997$ac_func();
15998#endif
15999
16000; return 0; }
16001EOF
16002if { (eval echo configure:16003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16003 rm -rf conftest*
16004 eval "ac_cv_func_$ac_func=yes"
16005else
16006 echo "configure: failed program was:" >&5
16007 cat conftest.$ac_ext >&5
16008 rm -rf conftest*
16009 eval "ac_cv_func_$ac_func=no"
16010fi
16011rm -f conftest*
16012fi
16013
16014if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16015 echo "$ac_t""yes" 1>&6
16016 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16017 cat >> confdefs.h <<EOF
16018#define $ac_tr_func 1
16019EOF
16020 break
16021else
16022 echo "$ac_t""no" 1>&6
16023fi
16024done
16025
16026
16027
16028ac_ext=C
16029# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16030ac_cpp='$CXXCPP $CPPFLAGS'
16031ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16032ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16033cross_compiling=$ac_cv_prog_cxx_cross
16034
16035
16036for ac_func in strtok_r
16037do
16038echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16039echo "configure:16040: checking for $ac_func" >&5
16040if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16041 echo $ac_n "(cached) $ac_c" 1>&6
16042else
16043 cat > conftest.$ac_ext <<EOF
16044#line 16045 "configure"
16045#include "confdefs.h"
16046/* System header to define __stub macros and hopefully few prototypes,
16047 which can conflict with char $ac_func(); below. */
16048#include <assert.h>
16049/* Override any gcc2 internal prototype to avoid an error. */
16050#ifdef __cplusplus
16051extern "C"
16052#endif
16053/* We use char because int might match the return type of a gcc2
16054 builtin and then its argument prototype would still apply. */
16055char $ac_func();
16056
16057int main() {
16058
16059/* The GNU C library defines this for functions which it implements
16060 to always fail with ENOSYS. Some functions are actually named
16061 something starting with __ and the normal name is an alias. */
16062#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16063choke me
16064#else
16065$ac_func();
16066#endif
16067
16068; return 0; }
16069EOF
16070if { (eval echo configure:16071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16071 rm -rf conftest*
16072 eval "ac_cv_func_$ac_func=yes"
16073else
16074 echo "configure: failed program was:" >&5
16075 cat conftest.$ac_ext >&5
16076 rm -rf conftest*
16077 eval "ac_cv_func_$ac_func=no"
16078fi
16079rm -f conftest*
16080fi
16081
16082if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16083 echo "$ac_t""yes" 1>&6
16084 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16085 cat >> confdefs.h <<EOF
16086#define $ac_tr_func 1
16087EOF
16088
16089else
16090 echo "$ac_t""no" 1>&6
16091fi
16092done
16093
16094
16095ac_ext=c
16096# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16097ac_cpp='$CPP $CPPFLAGS'
16098ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16099ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16100cross_compiling=$ac_cv_prog_cc_cross
16101
16102
16103INET_LINK=
16104for ac_func in inet_addr
16105do
16106echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16107echo "configure:16108: checking for $ac_func" >&5
16108if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16109 echo $ac_n "(cached) $ac_c" 1>&6
16110else
16111 cat > conftest.$ac_ext <<EOF
16112#line 16113 "configure"
16113#include "confdefs.h"
16114/* System header to define __stub macros and hopefully few prototypes,
16115 which can conflict with char $ac_func(); below. */
16116#include <assert.h>
16117/* Override any gcc2 internal prototype to avoid an error. */
16118/* We use char because int might match the return type of a gcc2
16119 builtin and then its argument prototype would still apply. */
16120char $ac_func();
16121
16122int main() {
16123
16124/* The GNU C library defines this for functions which it implements
16125 to always fail with ENOSYS. Some functions are actually named
16126 something starting with __ and the normal name is an alias. */
16127#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16128choke me
16129#else
16130$ac_func();
16131#endif
16132
16133; return 0; }
16134EOF
16135if { (eval echo configure:16136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16136 rm -rf conftest*
16137 eval "ac_cv_func_$ac_func=yes"
16138else
16139 echo "configure: failed program was:" >&5
16140 cat conftest.$ac_ext >&5
16141 rm -rf conftest*
16142 eval "ac_cv_func_$ac_func=no"
16143fi
16144rm -f conftest*
16145fi
16146
16147if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16148 echo "$ac_t""yes" 1>&6
16149 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16150 cat >> confdefs.h <<EOF
16151#define $ac_tr_func 1
16152EOF
16153 cat >> confdefs.h <<\EOF
16154#define HAVE_INET_ADDR 1
16155EOF
16156
16157else
16158 echo "$ac_t""no" 1>&6
16159echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
16160echo "configure:16161: checking for inet_addr in -lnsl" >&5
16161ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
16162if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16163 echo $ac_n "(cached) $ac_c" 1>&6
16164else
16165 ac_save_LIBS="$LIBS"
16166LIBS="-lnsl $LIBS"
16167cat > conftest.$ac_ext <<EOF
16168#line 16169 "configure"
16169#include "confdefs.h"
16170/* Override any gcc2 internal prototype to avoid an error. */
16171/* We use char because int might match the return type of a gcc2
16172 builtin and then its argument prototype would still apply. */
16173char inet_addr();
16174
16175int main() {
16176inet_addr()
16177; return 0; }
16178EOF
16179if { (eval echo configure:16180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16180 rm -rf conftest*
16181 eval "ac_cv_lib_$ac_lib_var=yes"
16182else
16183 echo "configure: failed program was:" >&5
16184 cat conftest.$ac_ext >&5
16185 rm -rf conftest*
16186 eval "ac_cv_lib_$ac_lib_var=no"
16187fi
16188rm -f conftest*
16189LIBS="$ac_save_LIBS"
16190
16191fi
16192if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16193 echo "$ac_t""yes" 1>&6
16194 INET_LINK="nsl"
16195else
16196 echo "$ac_t""no" 1>&6
16197echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
16198echo "configure:16199: checking for inet_addr in -lresolv" >&5
16199ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
16200if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16201 echo $ac_n "(cached) $ac_c" 1>&6
16202else
16203 ac_save_LIBS="$LIBS"
16204LIBS="-lresolv $LIBS"
16205cat > conftest.$ac_ext <<EOF
16206#line 16207 "configure"
16207#include "confdefs.h"
16208/* Override any gcc2 internal prototype to avoid an error. */
16209/* We use char because int might match the return type of a gcc2
16210 builtin and then its argument prototype would still apply. */
16211char inet_addr();
16212
16213int main() {
16214inet_addr()
16215; return 0; }
16216EOF
16217if { (eval echo configure:16218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16218 rm -rf conftest*
16219 eval "ac_cv_lib_$ac_lib_var=yes"
16220else
16221 echo "configure: failed program was:" >&5
16222 cat conftest.$ac_ext >&5
16223 rm -rf conftest*
16224 eval "ac_cv_lib_$ac_lib_var=no"
16225fi
16226rm -f conftest*
16227LIBS="$ac_save_LIBS"
16228
16229fi
16230if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16231 echo "$ac_t""yes" 1>&6
16232 INET_LINK="resolv"
16233
16234else
16235 echo "$ac_t""no" 1>&6
16236fi
16237
16238
16239fi
16240
16241
16242
16243fi
16244done
16245
16246
16247for ac_func in inet_aton
16248do
16249echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16250echo "configure:16251: checking for $ac_func" >&5
16251if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16252 echo $ac_n "(cached) $ac_c" 1>&6
16253else
16254 cat > conftest.$ac_ext <<EOF
16255#line 16256 "configure"
16256#include "confdefs.h"
16257/* System header to define __stub macros and hopefully few prototypes,
16258 which can conflict with char $ac_func(); below. */
16259#include <assert.h>
16260/* Override any gcc2 internal prototype to avoid an error. */
16261/* We use char because int might match the return type of a gcc2
16262 builtin and then its argument prototype would still apply. */
16263char $ac_func();
16264
16265int main() {
16266
16267/* The GNU C library defines this for functions which it implements
16268 to always fail with ENOSYS. Some functions are actually named
16269 something starting with __ and the normal name is an alias. */
16270#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16271choke me
16272#else
16273$ac_func();
16274#endif
16275
16276; return 0; }
16277EOF
16278if { (eval echo configure:16279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16279 rm -rf conftest*
16280 eval "ac_cv_func_$ac_func=yes"
16281else
16282 echo "configure: failed program was:" >&5
16283 cat conftest.$ac_ext >&5
16284 rm -rf conftest*
16285 eval "ac_cv_func_$ac_func=no"
16286fi
16287rm -f conftest*
16288fi
16289
16290if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16291 echo "$ac_t""yes" 1>&6
16292 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16293 cat >> confdefs.h <<EOF
16294#define $ac_tr_func 1
16295EOF
16296 cat >> confdefs.h <<\EOF
16297#define HAVE_INET_ATON 1
16298EOF
16299
16300else
16301 echo "$ac_t""no" 1>&6
16302 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
16303echo "configure:16304: checking for inet_aton in -l$INET_LINK" >&5
16304ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
16305if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16306 echo $ac_n "(cached) $ac_c" 1>&6
16307else
16308 ac_save_LIBS="$LIBS"
16309LIBS="-l$INET_LINK $LIBS"
16310cat > conftest.$ac_ext <<EOF
16311#line 16312 "configure"
16312#include "confdefs.h"
16313/* Override any gcc2 internal prototype to avoid an error. */
16314/* We use char because int might match the return type of a gcc2
16315 builtin and then its argument prototype would still apply. */
16316char inet_aton();
16317
16318int main() {
16319inet_aton()
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_lib_$ac_lib_var=yes"
16325else
16326 echo "configure: failed program was:" >&5
16327 cat conftest.$ac_ext >&5
16328 rm -rf conftest*
16329 eval "ac_cv_lib_$ac_lib_var=no"
16330fi
16331rm -f conftest*
16332LIBS="$ac_save_LIBS"
16333
16334fi
16335if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16336 echo "$ac_t""yes" 1>&6
16337 cat >> confdefs.h <<\EOF
16338#define HAVE_INET_ATON 1
16339EOF
16340
16341else
16342 echo "$ac_t""no" 1>&6
16343fi
16344
16345
16346fi
16347done
16348
16349
16350if test "x$INET_LINK" != "x"; then
16351 cat >> confdefs.h <<\EOF
16352#define HAVE_INET_ADDR 1
16353EOF
16354
16355 INET_LINK=" -l$INET_LINK"
16356fi
16357
16358fi
16359
16360
16361cat > confcache <<\EOF
16362# This file is a shell script that caches the results of configure
16363# tests run on this system so they can be shared between configure
16364# scripts and configure runs. It is not useful on other systems.
16365# If it contains results you don't want to keep, you may remove or edit it.
16366#
16367# By default, configure uses ./config.cache as the cache file,
16368# creating it if it does not exist already. You can give configure
16369# the --cache-file=FILE option to use a different cache file; that is
16370# what configure does when it calls configure scripts in
16371# subdirectories, so they share the cache.
16372# Giving --cache-file=/dev/null disables caching, for debugging configure.
16373# config.status only pays attention to the cache file if you give it the
16374# --recheck option to rerun configure.
16375#
16376EOF
16377# The following way of writing the cache mishandles newlines in values,
16378# but we know of no workaround that is simple, portable, and efficient.
16379# So, don't put newlines in cache variables' values.
16380# Ultrix sh set writes to stderr and can't be redirected directly,
16381# and sets the high bit in the cache file unless we assign to the vars.
16382(set) 2>&1 |
16383 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16384 *ac_space=\ *)
16385 # `set' does not quote correctly, so add quotes (double-quote substitution
16386 # turns \\\\ into \\, and sed turns \\ into \).
16387 sed -n \
16388 -e "s/'/'\\\\''/g" \
16389 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16390 ;;
16391 *)
16392 # `set' quotes correctly as required by POSIX, so do not add quotes.
16393 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16394 ;;
16395 esac >> confcache
16396if cmp -s $cache_file confcache; then
16397 :
16398else
16399 if test -w $cache_file; then
16400 echo "updating cache $cache_file"
16401 cat confcache > $cache_file
16402 else
16403 echo "not updating unwritable cache $cache_file"
16404 fi
16405fi
16406rm -f confcache
16407
16408
16409
16410if test "$TOOLKIT" != "MSW"; then
16411
16412
16413 THREADS_LINK=
16414 THREADS_OBJ=
16415 CODE_GEN_FLAGS=
16416 CODE_GEN_FLAGS_CXX=
16417
16418 if test "$wxUSE_THREADS" = "yes" ; then
16419 if test "$wxUSE_WINE" = 1 ; then
16420 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
16421 wxUSE_THREADS="no"
16422 elif test "$USE_BEOS" = 1; then
16423 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
16424 wxUSE_THREADS="no"
16425 fi
16426 fi
16427
16428 if test "$wxUSE_THREADS" = "yes" ; then
16429
16430 if test "$USE_AIX" = 1; then
16431 THREADS_LIB=pthreads
16432 else
16433 THREADS_LIB=pthread
16434 fi
16435
16436 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
16437echo "configure:16438: checking for pthread_create in -l$THREADS_LIB" >&5
16438ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
16439if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16440 echo $ac_n "(cached) $ac_c" 1>&6
16441else
16442 ac_save_LIBS="$LIBS"
16443LIBS="-l$THREADS_LIB $LIBS"
16444cat > conftest.$ac_ext <<EOF
16445#line 16446 "configure"
16446#include "confdefs.h"
16447/* Override any gcc2 internal prototype to avoid an error. */
16448/* We use char because int might match the return type of a gcc2
16449 builtin and then its argument prototype would still apply. */
16450char pthread_create();
16451
16452int main() {
16453pthread_create()
16454; return 0; }
16455EOF
16456if { (eval echo configure:16457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16457 rm -rf conftest*
16458 eval "ac_cv_lib_$ac_lib_var=yes"
16459else
16460 echo "configure: failed program was:" >&5
16461 cat conftest.$ac_ext >&5
16462 rm -rf conftest*
16463 eval "ac_cv_lib_$ac_lib_var=no"
16464fi
16465rm -f conftest*
16466LIBS="$ac_save_LIBS"
16467
16468fi
16469if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16470 echo "$ac_t""yes" 1>&6
16471
16472 THREADS_OBJ="threadpsx.lo"
16473 THREADS_LINK=$THREADS_LIB
16474
16475else
16476 echo "$ac_t""no" 1>&6
16477
16478 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
16479echo "configure:16480: checking for pthread_create in -lc_r" >&5
16480ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
16481if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16482 echo $ac_n "(cached) $ac_c" 1>&6
16483else
16484 ac_save_LIBS="$LIBS"
16485LIBS="-lc_r $LIBS"
16486cat > conftest.$ac_ext <<EOF
16487#line 16488 "configure"
16488#include "confdefs.h"
16489/* Override any gcc2 internal prototype to avoid an error. */
16490/* We use char because int might match the return type of a gcc2
16491 builtin and then its argument prototype would still apply. */
16492char pthread_create();
16493
16494int main() {
16495pthread_create()
16496; return 0; }
16497EOF
16498if { (eval echo configure:16499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16499 rm -rf conftest*
16500 eval "ac_cv_lib_$ac_lib_var=yes"
16501else
16502 echo "configure: failed program was:" >&5
16503 cat conftest.$ac_ext >&5
16504 rm -rf conftest*
16505 eval "ac_cv_lib_$ac_lib_var=no"
16506fi
16507rm -f conftest*
16508LIBS="$ac_save_LIBS"
16509
16510fi
16511if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16512 echo "$ac_t""yes" 1>&6
16513
16514 THREADS_OBJ="threadpsx.lo"
16515 THREADS_LINK="c_r"
16516
16517else
16518 echo "$ac_t""no" 1>&6
16519
16520 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
16521echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
16522echo "configure:16523: checking for sys/prctl.h" >&5
16523if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16524 echo $ac_n "(cached) $ac_c" 1>&6
16525else
16526 cat > conftest.$ac_ext <<EOF
16527#line 16528 "configure"
16528#include "confdefs.h"
16529#include <sys/prctl.h>
16530EOF
16531ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16532{ (eval echo configure:16533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16533ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16534if test -z "$ac_err"; then
16535 rm -rf conftest*
16536 eval "ac_cv_header_$ac_safe=yes"
16537else
16538 echo "$ac_err" >&5
16539 echo "configure: failed program was:" >&5
16540 cat conftest.$ac_ext >&5
16541 rm -rf conftest*
16542 eval "ac_cv_header_$ac_safe=no"
16543fi
16544rm -f conftest*
16545fi
16546if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16547 echo "$ac_t""yes" 1>&6
16548
16549 THREADS_OBJ="threadsgi.lo"
16550
16551else
16552 echo "$ac_t""no" 1>&6
16553fi
16554
16555
16556fi
16557
16558
16559fi
16560
16561
16562 if test -z "$THREADS_OBJ" ; then
16563 wxUSE_THREADS=no
16564 echo "configure: warning: No thread support on this system... disabled" 1>&2
16565 fi
16566 fi
16567
16568 if test "$wxUSE_THREADS" = "yes" ; then
16569 for ac_func in thr_setconcurrency
16570do
16571echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16572echo "configure:16573: checking for $ac_func" >&5
16573if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16574 echo $ac_n "(cached) $ac_c" 1>&6
16575else
16576 cat > conftest.$ac_ext <<EOF
16577#line 16578 "configure"
16578#include "confdefs.h"
16579/* System header to define __stub macros and hopefully few prototypes,
16580 which can conflict with char $ac_func(); below. */
16581#include <assert.h>
16582/* Override any gcc2 internal prototype to avoid an error. */
16583/* We use char because int might match the return type of a gcc2
16584 builtin and then its argument prototype would still apply. */
16585char $ac_func();
16586
16587int main() {
16588
16589/* The GNU C library defines this for functions which it implements
16590 to always fail with ENOSYS. Some functions are actually named
16591 something starting with __ and the normal name is an alias. */
16592#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16593choke me
16594#else
16595$ac_func();
16596#endif
16597
16598; return 0; }
16599EOF
16600if { (eval echo configure:16601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16601 rm -rf conftest*
16602 eval "ac_cv_func_$ac_func=yes"
16603else
16604 echo "configure: failed program was:" >&5
16605 cat conftest.$ac_ext >&5
16606 rm -rf conftest*
16607 eval "ac_cv_func_$ac_func=no"
16608fi
16609rm -f conftest*
16610fi
16611
16612if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16613 echo "$ac_t""yes" 1>&6
16614 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16615 cat >> confdefs.h <<EOF
16616#define $ac_tr_func 1
16617EOF
16618
16619else
16620 echo "$ac_t""no" 1>&6
16621fi
16622done
16623
16624
16625
16626 for ac_hdr in sched.h
16627do
16628ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16629echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16630echo "configure:16631: checking for $ac_hdr" >&5
16631if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16632 echo $ac_n "(cached) $ac_c" 1>&6
16633else
16634 cat > conftest.$ac_ext <<EOF
16635#line 16636 "configure"
16636#include "confdefs.h"
16637#include <$ac_hdr>
16638EOF
16639ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16640{ (eval echo configure:16641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16641ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16642if test -z "$ac_err"; then
16643 rm -rf conftest*
16644 eval "ac_cv_header_$ac_safe=yes"
16645else
16646 echo "$ac_err" >&5
16647 echo "configure: failed program was:" >&5
16648 cat conftest.$ac_ext >&5
16649 rm -rf conftest*
16650 eval "ac_cv_header_$ac_safe=no"
16651fi
16652rm -f conftest*
16653fi
16654if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16655 echo "$ac_t""yes" 1>&6
16656 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16657 cat >> confdefs.h <<EOF
16658#define $ac_tr_hdr 1
16659EOF
16660
16661else
16662 echo "$ac_t""no" 1>&6
16663fi
16664done
16665
16666
16667 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
16668echo "configure:16669: checking for sched_yield in -l$THREADS_LINK" >&5
16669ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
16670if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16671 echo $ac_n "(cached) $ac_c" 1>&6
16672else
16673 ac_save_LIBS="$LIBS"
16674LIBS="-l$THREADS_LINK $LIBS"
16675cat > conftest.$ac_ext <<EOF
16676#line 16677 "configure"
16677#include "confdefs.h"
16678/* Override any gcc2 internal prototype to avoid an error. */
16679/* We use char because int might match the return type of a gcc2
16680 builtin and then its argument prototype would still apply. */
16681char sched_yield();
16682
16683int main() {
16684sched_yield()
16685; return 0; }
16686EOF
16687if { (eval echo configure:16688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16688 rm -rf conftest*
16689 eval "ac_cv_lib_$ac_lib_var=yes"
16690else
16691 echo "configure: failed program was:" >&5
16692 cat conftest.$ac_ext >&5
16693 rm -rf conftest*
16694 eval "ac_cv_lib_$ac_lib_var=no"
16695fi
16696rm -f conftest*
16697LIBS="$ac_save_LIBS"
16698
16699fi
16700if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16701 echo "$ac_t""yes" 1>&6
16702 cat >> confdefs.h <<\EOF
16703#define HAVE_SCHED_YIELD 1
16704EOF
16705
16706else
16707 echo "$ac_t""no" 1>&6
16708echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
16709echo "configure:16710: checking for sched_yield in -lposix4" >&5
16710ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
16711if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16712 echo $ac_n "(cached) $ac_c" 1>&6
16713else
16714 ac_save_LIBS="$LIBS"
16715LIBS="-lposix4 $LIBS"
16716cat > conftest.$ac_ext <<EOF
16717#line 16718 "configure"
16718#include "confdefs.h"
16719/* Override any gcc2 internal prototype to avoid an error. */
16720/* We use char because int might match the return type of a gcc2
16721 builtin and then its argument prototype would still apply. */
16722char sched_yield();
16723
16724int main() {
16725sched_yield()
16726; return 0; }
16727EOF
16728if { (eval echo configure:16729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16729 rm -rf conftest*
16730 eval "ac_cv_lib_$ac_lib_var=yes"
16731else
16732 echo "configure: failed program was:" >&5
16733 cat conftest.$ac_ext >&5
16734 rm -rf conftest*
16735 eval "ac_cv_lib_$ac_lib_var=no"
16736fi
16737rm -f conftest*
16738LIBS="$ac_save_LIBS"
16739
16740fi
16741if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16742 echo "$ac_t""yes" 1>&6
16743 cat >> confdefs.h <<\EOF
16744#define HAVE_SCHED_YIELD 1
16745EOF
16746 POSIX4_LINK=" -lposix4"
16747else
16748 echo "$ac_t""no" 1>&6
16749echo "configure: warning: wxThread::Yield will not work properly" 1>&2
16750
16751fi
16752
16753
16754fi
16755
16756
16757 HAVE_PRIOR_FUNCS=0
16758 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
16759echo "configure:16760: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
16760ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
16761if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16762 echo $ac_n "(cached) $ac_c" 1>&6
16763else
16764 ac_save_LIBS="$LIBS"
16765LIBS="-l$THREADS_LINK $LIBS"
16766cat > conftest.$ac_ext <<EOF
16767#line 16768 "configure"
16768#include "confdefs.h"
16769/* Override any gcc2 internal prototype to avoid an error. */
16770/* We use char because int might match the return type of a gcc2
16771 builtin and then its argument prototype would still apply. */
16772char pthread_attr_getschedpolicy();
16773
16774int main() {
16775pthread_attr_getschedpolicy()
16776; return 0; }
16777EOF
16778if { (eval echo configure:16779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16779 rm -rf conftest*
16780 eval "ac_cv_lib_$ac_lib_var=yes"
16781else
16782 echo "configure: failed program was:" >&5
16783 cat conftest.$ac_ext >&5
16784 rm -rf conftest*
16785 eval "ac_cv_lib_$ac_lib_var=no"
16786fi
16787rm -f conftest*
16788LIBS="$ac_save_LIBS"
16789
16790fi
16791if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16792 echo "$ac_t""yes" 1>&6
16793 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
16794echo "configure:16795: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
16795ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
16796if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16797 echo $ac_n "(cached) $ac_c" 1>&6
16798else
16799 ac_save_LIBS="$LIBS"
16800LIBS="-l$THREADS_LINK $LIBS"
16801cat > conftest.$ac_ext <<EOF
16802#line 16803 "configure"
16803#include "confdefs.h"
16804/* Override any gcc2 internal prototype to avoid an error. */
16805/* We use char because int might match the return type of a gcc2
16806 builtin and then its argument prototype would still apply. */
16807char pthread_attr_setschedparam();
16808
16809int main() {
16810pthread_attr_setschedparam()
16811; return 0; }
16812EOF
16813if { (eval echo configure:16814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16814 rm -rf conftest*
16815 eval "ac_cv_lib_$ac_lib_var=yes"
16816else
16817 echo "configure: failed program was:" >&5
16818 cat conftest.$ac_ext >&5
16819 rm -rf conftest*
16820 eval "ac_cv_lib_$ac_lib_var=no"
16821fi
16822rm -f conftest*
16823LIBS="$ac_save_LIBS"
16824
16825fi
16826if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16827 echo "$ac_t""yes" 1>&6
16828 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
16829echo "configure:16830: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
16830ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
16831if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16832 echo $ac_n "(cached) $ac_c" 1>&6
16833else
16834 ac_save_LIBS="$LIBS"
16835LIBS="-l$THREADS_LINK $LIBS"
16836cat > conftest.$ac_ext <<EOF
16837#line 16838 "configure"
16838#include "confdefs.h"
16839/* Override any gcc2 internal prototype to avoid an error. */
16840/* We use char because int might match the return type of a gcc2
16841 builtin and then its argument prototype would still apply. */
16842char sched_get_priority_max();
16843
16844int main() {
16845sched_get_priority_max()
16846; return 0; }
16847EOF
16848if { (eval echo configure:16849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16849 rm -rf conftest*
16850 eval "ac_cv_lib_$ac_lib_var=yes"
16851else
16852 echo "configure: failed program was:" >&5
16853 cat conftest.$ac_ext >&5
16854 rm -rf conftest*
16855 eval "ac_cv_lib_$ac_lib_var=no"
16856fi
16857rm -f conftest*
16858LIBS="$ac_save_LIBS"
16859
16860fi
16861if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16862 echo "$ac_t""yes" 1>&6
16863 HAVE_PRIOR_FUNCS=1
16864else
16865 echo "$ac_t""no" 1>&6
16866echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
16867echo "configure:16868: checking for sched_get_priority_max in -lposix4" >&5
16868ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
16869if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16870 echo $ac_n "(cached) $ac_c" 1>&6
16871else
16872 ac_save_LIBS="$LIBS"
16873LIBS="-lposix4 $LIBS"
16874cat > conftest.$ac_ext <<EOF
16875#line 16876 "configure"
16876#include "confdefs.h"
16877/* Override any gcc2 internal prototype to avoid an error. */
16878/* We use char because int might match the return type of a gcc2
16879 builtin and then its argument prototype would still apply. */
16880char sched_get_priority_max();
16881
16882int main() {
16883sched_get_priority_max()
16884; return 0; }
16885EOF
16886if { (eval echo configure:16887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16887 rm -rf conftest*
16888 eval "ac_cv_lib_$ac_lib_var=yes"
16889else
16890 echo "configure: failed program was:" >&5
16891 cat conftest.$ac_ext >&5
16892 rm -rf conftest*
16893 eval "ac_cv_lib_$ac_lib_var=no"
16894fi
16895rm -f conftest*
16896LIBS="$ac_save_LIBS"
16897
16898fi
16899if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16900 echo "$ac_t""yes" 1>&6
16901
16902 HAVE_PRIOR_FUNCS=1
16903 POSIX4_LINK=" -lposix4"
16904
16905else
16906 echo "$ac_t""no" 1>&6
16907fi
16908
16909
16910fi
16911
16912
16913else
16914 echo "$ac_t""no" 1>&6
16915fi
16916
16917
16918else
16919 echo "$ac_t""no" 1>&6
16920fi
16921
16922
16923 if test "$HAVE_PRIOR_FUNCS" = 1; then
16924 cat >> confdefs.h <<\EOF
16925#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
16926EOF
16927
16928 else
16929 echo "configure: warning: Setting thread priority will not work" 1>&2
16930 fi
16931
16932 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
16933echo "configure:16934: checking for pthread_cancel in -l$THREADS_LINK" >&5
16934ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
16935if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16936 echo $ac_n "(cached) $ac_c" 1>&6
16937else
16938 ac_save_LIBS="$LIBS"
16939LIBS="-l$THREADS_LINK $LIBS"
16940cat > conftest.$ac_ext <<EOF
16941#line 16942 "configure"
16942#include "confdefs.h"
16943/* Override any gcc2 internal prototype to avoid an error. */
16944/* We use char because int might match the return type of a gcc2
16945 builtin and then its argument prototype would still apply. */
16946char pthread_cancel();
16947
16948int main() {
16949pthread_cancel()
16950; return 0; }
16951EOF
16952if { (eval echo configure:16953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16953 rm -rf conftest*
16954 eval "ac_cv_lib_$ac_lib_var=yes"
16955else
16956 echo "configure: failed program was:" >&5
16957 cat conftest.$ac_ext >&5
16958 rm -rf conftest*
16959 eval "ac_cv_lib_$ac_lib_var=no"
16960fi
16961rm -f conftest*
16962LIBS="$ac_save_LIBS"
16963
16964fi
16965if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16966 echo "$ac_t""yes" 1>&6
16967 cat >> confdefs.h <<\EOF
16968#define HAVE_PTHREAD_CANCEL 1
16969EOF
16970
16971else
16972 echo "$ac_t""no" 1>&6
16973echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
16974fi
16975
16976
16977 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
16978echo "configure:16979: checking for pthread_cleanup_push/pop" >&5
16979if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
16980 echo $ac_n "(cached) $ac_c" 1>&6
16981else
16982
16983 cat > conftest.$ac_ext <<EOF
16984#line 16985 "configure"
16985#include "confdefs.h"
16986#include <pthread.h>
16987int main() {
16988
16989 pthread_cleanup_push(NULL, NULL);
16990 pthread_cleanup_pop(0);
16991
16992; return 0; }
16993EOF
16994if { (eval echo configure:16995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16995 rm -rf conftest*
16996
16997 wx_cv_func_pthread_cleanup_push=yes
16998
16999else
17000 echo "configure: failed program was:" >&5
17001 cat conftest.$ac_ext >&5
17002 rm -rf conftest*
17003
17004 wx_cv_func_pthread_cleanup_push=no
17005
17006fi
17007rm -f conftest*
17008
17009fi
17010
17011echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
17012
17013 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
17014 cat >> confdefs.h <<\EOF
17015#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
17016EOF
17017
17018 fi
17019
17020
17021 if test "x$wx_lib_glibc21" = "xyes"; then
17022 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
17023 fi
17024
17025 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
17026echo "configure:17027: checking for pthread_mutexattr_t" >&5
17027if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
17028 echo $ac_n "(cached) $ac_c" 1>&6
17029else
17030
17031 cat > conftest.$ac_ext <<EOF
17032#line 17033 "configure"
17033#include "confdefs.h"
17034#include <pthread.h>
17035int main() {
17036
17037 pthread_mutexattr_t attr;
17038 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
17039
17040; return 0; }
17041EOF
17042if { (eval echo configure:17043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17043 rm -rf conftest*
17044
17045 wx_cv_type_pthread_mutexattr_t=yes
17046
17047else
17048 echo "configure: failed program was:" >&5
17049 cat conftest.$ac_ext >&5
17050 rm -rf conftest*
17051
17052 wx_cv_type_pthread_mutexattr_t=no
17053
17054
17055fi
17056rm -f conftest*
17057
17058fi
17059
17060echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
17061
17062 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
17063 cat >> confdefs.h <<\EOF
17064#define HAVE_PTHREAD_MUTEXATTR_T 1
17065EOF
17066
17067 else
17068 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
17069echo "configure:17070: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
17070if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
17071 echo $ac_n "(cached) $ac_c" 1>&6
17072else
17073
17074 cat > conftest.$ac_ext <<EOF
17075#line 17076 "configure"
17076#include "confdefs.h"
17077#include <pthread.h>
17078int main() {
17079
17080 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
17081
17082; return 0; }
17083EOF
17084if { (eval echo configure:17085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17085 rm -rf conftest*
17086
17087 wx_cv_type_pthread_rec_mutex_init=yes
17088
17089else
17090 echo "configure: failed program was:" >&5
17091 cat conftest.$ac_ext >&5
17092 rm -rf conftest*
17093
17094 wx_cv_type_pthread_rec_mutex_init=no
17095
17096
17097fi
17098rm -f conftest*
17099
17100fi
17101
17102echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
17103 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
17104 cat >> confdefs.h <<\EOF
17105#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
17106EOF
17107
17108 else
17109 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
17110 fi
17111 fi
17112
17113 THREADS_LINK=" -l$THREADS_LINK"
17114
17115 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
17116 CPPFLAGS="$CFLAGS -mt"
17117 CXXFLAGS="$CXXFLAGS -mt"
17118 LDFLAGS="$LDFLAGS -mt"
17119 fi
17120 fi
17121
17122fi
17123
17124if test "$wxUSE_THREADS" = "yes"; then
17125 cat >> confdefs.h <<\EOF
17126#define wxUSE_THREADS 1
17127EOF
17128
17129
17130 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG"
17131
17132 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
17133else
17134 if test "$ac_cv_func_strtok_r" = "yes"; then
17135 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
17136echo "configure:17137: checking if -D_REENTRANT is needed" >&5
17137 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
17138 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
17139 echo "$ac_t""yes" 1>&6
17140 else
17141 echo "$ac_t""no" 1>&6
17142 fi
17143 fi
17144fi
17145
17146if test "$WXGTK20" = 1 ; then
17147 cat >> confdefs.h <<EOF
17148#define __WXGTK20__ $WXGTK20
17149EOF
17150
17151 WXGTK12=1
17152fi
17153
17154if test "$WXGTK12" = 1 ; then
17155 cat >> confdefs.h <<EOF
17156#define __WXGTK12__ $WXGTK12
17157EOF
17158
17159fi
17160
17161if test "$WXGTK127" = 1 ; then
17162 cat >> confdefs.h <<EOF
17163#define __WXGTK127__ $WXGTK127
17164EOF
17165
17166fi
17167
17168WXDEBUG=
17169
17170if test "$wxUSE_DEBUG_INFO" = "yes" ; then
17171 WXDEBUG="-g"
17172 wxUSE_OPTIMISE=no
17173fi
17174
17175if test "$wxUSE_DEBUG_GDB" = "yes" ; then
17176 wxUSE_DEBUG_INFO=yes
17177 WXDEBUG="-ggdb"
17178fi
17179
17180if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
17181 cat >> confdefs.h <<\EOF
17182#define WXDEBUG 1
17183EOF
17184
17185 WXDEBUG_DEFINE="-D__WXDEBUG__"
17186else
17187 if test "$wxUSE_GTK" = 1 ; then
17188 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
17189 fi
17190fi
17191
17192if test "$wxUSE_MEM_TRACING" = "yes" ; then
17193 cat >> confdefs.h <<\EOF
17194#define wxUSE_MEMORY_TRACING 1
17195EOF
17196
17197 cat >> confdefs.h <<\EOF
17198#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
17199EOF
17200
17201 cat >> confdefs.h <<\EOF
17202#define wxUSE_DEBUG_NEW_ALWAYS 1
17203EOF
17204
17205 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
17206fi
17207
17208if test "$wxUSE_DMALLOC" = "yes" ; then
17209 DMALLOC_LIBS="-ldmalloc"
17210fi
17211
17212PROFILE=
17213if test "$wxUSE_PROFILE" = "yes" ; then
17214 PROFILE=" -pg"
17215fi
17216
17217if test "$GCC" = "yes" ; then
17218 if test "$wxUSE_NO_RTTI" = "yes" ; then
17219 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
17220 fi
17221 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
17222 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
17223 fi
17224 if test "$wxUSE_PERMISSIVE" = "yes" ; then
17225 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
17226 fi
17227 if test "$USE_WIN32" = 1 ; then
17228 # I'm not even really sure what this was ever added to solve,
17229 # but someone added it for mingw native builds, so I guess
17230 # they had a reason, right??
17231 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
17232 fi
17233fi
17234
17235
17236CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
17237CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
17238if test "$wxUSE_OPTIMISE" = "no" ; then
17239 OPTIMISE=
17240else
17241 if test "$GCC" = yes ; then
17242 OPTIMISE="-O2"
17243 case "${host}" in
17244 i586-*-*|i686-*-* )
17245 OPTIMISE="${OPTIMISE} "
17246 ;;
17247 esac
17248 else
17249 OPTIMISE="-O"
17250 fi
17251fi
17252
17253if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
17254 cat >> confdefs.h <<\EOF
17255#define WXWIN_COMPATIBILITY_2 1
17256EOF
17257
17258
17259 WXWIN_COMPATIBILITY_2_2="yes"
17260fi
17261
17262if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
17263 cat >> confdefs.h <<\EOF
17264#define WXWIN_COMPATIBILITY_2_2 1
17265EOF
17266
17267fi
17268
17269
17270if test "$wxUSE_GUI" = "yes"; then
17271 cat >> confdefs.h <<\EOF
17272#define wxUSE_GUI 1
17273EOF
17274
17275
17276 else
17277 cat >> confdefs.h <<\EOF
17278#define wxUSE_NOGUI 1
17279EOF
17280
17281fi
17282
17283
17284if test "$wxUSE_UNIX" = "yes"; then
17285 cat >> confdefs.h <<\EOF
17286#define wxUSE_UNIX 1
17287EOF
17288
17289fi
17290
17291
17292if test "$wxUSE_APPLE_IEEE" = "yes"; then
17293 cat >> confdefs.h <<\EOF
17294#define wxUSE_APPLE_IEEE 1
17295EOF
17296
17297fi
17298
17299if test "$wxUSE_TIMER" = "yes"; then
17300 cat >> confdefs.h <<\EOF
17301#define wxUSE_TIMER 1
17302EOF
17303
17304fi
17305
17306if test "$wxUSE_WAVE" = "yes"; then
17307 cat >> confdefs.h <<\EOF
17308#define wxUSE_WAVE 1
17309EOF
17310
17311fi
17312
17313if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
17314 cat >> confdefs.h <<\EOF
17315#define wxUSE_CMDLINE_PARSER 1
17316EOF
17317
17318fi
17319
17320if test "$wxUSE_STOPWATCH" = "yes"; then
17321 cat >> confdefs.h <<\EOF
17322#define wxUSE_STOPWATCH 1
17323EOF
17324
17325fi
17326
17327if test "$wxUSE_DATETIME" = "yes"; then
17328 cat >> confdefs.h <<\EOF
17329#define wxUSE_DATETIME 1
17330EOF
17331
17332fi
17333
17334if test "$wxUSE_TIMEDATE" = "yes"; then
17335 cat >> confdefs.h <<\EOF
17336#define wxUSE_TIMEDATE 1
17337EOF
17338
17339fi
17340
17341if test "$wxUSE_FILE" = "yes"; then
17342 cat >> confdefs.h <<\EOF
17343#define wxUSE_FILE 1
17344EOF
17345
17346fi
17347
17348if test "$wxUSE_FFILE" = "yes"; then
17349 cat >> confdefs.h <<\EOF
17350#define wxUSE_FFILE 1
17351EOF
17352
17353fi
17354
17355if test "$wxUSE_FILESYSTEM" = "yes"; then
17356 cat >> confdefs.h <<\EOF
17357#define wxUSE_FILESYSTEM 1
17358EOF
17359
17360fi
17361
17362if test "$wxUSE_FS_INET" = "yes"; then
17363 cat >> confdefs.h <<\EOF
17364#define wxUSE_FS_INET 1
17365EOF
17366
17367fi
17368
17369if test "$wxUSE_FS_ZIP" = "yes"; then
17370 cat >> confdefs.h <<\EOF
17371#define wxUSE_FS_ZIP 1
17372EOF
17373
17374fi
17375
17376if test "$wxUSE_ZIPSTREAM" = "yes"; then
17377 cat >> confdefs.h <<\EOF
17378#define wxUSE_ZIPSTREAM 1
17379EOF
17380
17381fi
17382
17383if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
17384 cat >> confdefs.h <<\EOF
17385#define wxUSE_ON_FATAL_EXCEPTION 1
17386EOF
17387
17388fi
17389
17390if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
17391 cat >> confdefs.h <<\EOF
17392#define wxUSE_SNGLINST_CHECKER 1
17393EOF
17394
17395fi
17396
17397if test "$wxUSE_BUSYINFO" = "yes"; then
17398 cat >> confdefs.h <<\EOF
17399#define wxUSE_BUSYINFO 1
17400EOF
17401
17402fi
17403
17404if test "$wxUSE_STD_IOSTREAM" = "yes"; then
17405 cat >> confdefs.h <<\EOF
17406#define wxUSE_STD_IOSTREAM 1
17407EOF
17408
17409fi
17410
17411if test "$wxUSE_TEXTBUFFER" = "yes"; then
17412 cat >> confdefs.h <<\EOF
17413#define wxUSE_TEXTBUFFER 1
17414EOF
17415
17416fi
17417
17418if test "$wxUSE_TEXTFILE" = "yes"; then
17419 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
17420 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
17421 else
17422 cat >> confdefs.h <<\EOF
17423#define wxUSE_TEXTFILE 1
17424EOF
17425
17426 fi
17427fi
17428
17429if test "$wxUSE_CONFIG" = "yes" ; then
17430 if test "$wxUSE_TEXTFILE" != "yes"; then
17431 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
17432 else
17433 cat >> confdefs.h <<\EOF
17434#define wxUSE_CONFIG 1
17435EOF
17436
17437 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
17438 fi
17439fi
17440
17441if test "$wxUSE_INTL" = "yes" ; then
17442 if test "$wxUSE_FILE" != "yes"; then
17443 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
17444 else
17445 cat >> confdefs.h <<\EOF
17446#define wxUSE_INTL 1
17447EOF
17448
17449 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
17450 GUIDIST="$GUIDIST INTL_DIST"
17451 fi
17452fi
17453
17454if test "$wxUSE_LOG" = "yes"; then
17455 cat >> confdefs.h <<\EOF
17456#define wxUSE_LOG 1
17457EOF
17458
17459
17460 if test "$wxUSE_LOGGUI" = "yes"; then
17461 cat >> confdefs.h <<\EOF
17462#define wxUSE_LOGGUI 1
17463EOF
17464
17465 fi
17466
17467 if test "$wxUSE_LOGWINDOW" = "yes"; then
17468 cat >> confdefs.h <<\EOF
17469#define wxUSE_LOGWINDOW 1
17470EOF
17471
17472 fi
17473
17474 if test "$wxUSE_LOGDIALOG" = "yes"; then
17475 cat >> confdefs.h <<\EOF
17476#define wxUSE_LOG_DIALOG 1
17477EOF
17478
17479 fi
17480fi
17481
17482if test "$wxUSE_LONGLONG" = "yes"; then
17483 cat >> confdefs.h <<\EOF
17484#define wxUSE_LONGLONG 1
17485EOF
17486
17487fi
17488
17489if test "$wxUSE_GEOMETRY" = "yes"; then
17490 cat >> confdefs.h <<\EOF
17491#define wxUSE_GEOMETRY 1
17492EOF
17493
17494fi
17495
17496if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
17497 cat >> confdefs.h <<\EOF
17498#define wxUSE_DIALUP_MANAGER 1
17499EOF
17500
17501 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
17502fi
17503
17504if test "$wxUSE_STREAMS" = "yes" ; then
17505 cat >> confdefs.h <<\EOF
17506#define wxUSE_STREAMS 1
17507EOF
17508
17509fi
17510
17511
17512if test "$wxUSE_DATETIME" = "yes"; then
17513 for ac_func in strptime
17514do
17515echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17516echo "configure:17517: checking for $ac_func" >&5
17517if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17518 echo $ac_n "(cached) $ac_c" 1>&6
17519else
17520 cat > conftest.$ac_ext <<EOF
17521#line 17522 "configure"
17522#include "confdefs.h"
17523/* System header to define __stub macros and hopefully few prototypes,
17524 which can conflict with char $ac_func(); below. */
17525#include <assert.h>
17526/* Override any gcc2 internal prototype to avoid an error. */
17527/* We use char because int might match the return type of a gcc2
17528 builtin and then its argument prototype would still apply. */
17529char $ac_func();
17530
17531int main() {
17532
17533/* The GNU C library defines this for functions which it implements
17534 to always fail with ENOSYS. Some functions are actually named
17535 something starting with __ and the normal name is an alias. */
17536#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17537choke me
17538#else
17539$ac_func();
17540#endif
17541
17542; return 0; }
17543EOF
17544if { (eval echo configure:17545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17545 rm -rf conftest*
17546 eval "ac_cv_func_$ac_func=yes"
17547else
17548 echo "configure: failed program was:" >&5
17549 cat conftest.$ac_ext >&5
17550 rm -rf conftest*
17551 eval "ac_cv_func_$ac_func=no"
17552fi
17553rm -f conftest*
17554fi
17555
17556if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17557 echo "$ac_t""yes" 1>&6
17558 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17559 cat >> confdefs.h <<EOF
17560#define $ac_tr_func 1
17561EOF
17562
17563else
17564 echo "$ac_t""no" 1>&6
17565fi
17566done
17567
17568
17569 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
17570echo "configure:17571: checking for timezone variable in <time.h>" >&5
17571if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
17572 echo $ac_n "(cached) $ac_c" 1>&6
17573else
17574
17575 cat > conftest.$ac_ext <<EOF
17576#line 17577 "configure"
17577#include "confdefs.h"
17578
17579 #include <time.h>
17580
17581int main() {
17582
17583 int tz;
17584 tz = timezone;
17585
17586; return 0; }
17587EOF
17588if { (eval echo configure:17589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17589 rm -rf conftest*
17590
17591 wx_cv_var_timezone=timezone
17592
17593else
17594 echo "configure: failed program was:" >&5
17595 cat conftest.$ac_ext >&5
17596 rm -rf conftest*
17597
17598 cat > conftest.$ac_ext <<EOF
17599#line 17600 "configure"
17600#include "confdefs.h"
17601
17602 #include <time.h>
17603
17604int main() {
17605
17606 int tz;
17607 tz = _timezone;
17608
17609; return 0; }
17610EOF
17611if { (eval echo configure:17612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17612 rm -rf conftest*
17613
17614 wx_cv_var_timezone=_timezone
17615
17616else
17617 echo "configure: failed program was:" >&5
17618 cat conftest.$ac_ext >&5
17619 rm -rf conftest*
17620
17621 cat > conftest.$ac_ext <<EOF
17622#line 17623 "configure"
17623#include "confdefs.h"
17624
17625 #include <time.h>
17626
17627int main() {
17628
17629 int tz;
17630 tz = __timezone;
17631
17632; return 0; }
17633EOF
17634if { (eval echo configure:17635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17635 rm -rf conftest*
17636
17637 wx_cv_var_timezone=__timezone
17638
17639else
17640 echo "configure: failed program was:" >&5
17641 cat conftest.$ac_ext >&5
17642 rm -rf conftest*
17643
17644 if test "$USE_DOS" = 0 ; then
17645 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
17646 fi
17647
17648
17649fi
17650rm -f conftest*
17651
17652
17653fi
17654rm -f conftest*
17655
17656
17657fi
17658rm -f conftest*
17659
17660
17661fi
17662
17663echo "$ac_t""$wx_cv_var_timezone" 1>&6
17664
17665 if test "x$wx_cv_var_timezone" != x ; then
17666 cat >> confdefs.h <<EOF
17667#define WX_TIMEZONE $wx_cv_var_timezone
17668EOF
17669
17670 fi
17671
17672 for ac_func in localtime
17673do
17674echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17675echo "configure:17676: checking for $ac_func" >&5
17676if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17677 echo $ac_n "(cached) $ac_c" 1>&6
17678else
17679 cat > conftest.$ac_ext <<EOF
17680#line 17681 "configure"
17681#include "confdefs.h"
17682/* System header to define __stub macros and hopefully few prototypes,
17683 which can conflict with char $ac_func(); below. */
17684#include <assert.h>
17685/* Override any gcc2 internal prototype to avoid an error. */
17686/* We use char because int might match the return type of a gcc2
17687 builtin and then its argument prototype would still apply. */
17688char $ac_func();
17689
17690int main() {
17691
17692/* The GNU C library defines this for functions which it implements
17693 to always fail with ENOSYS. Some functions are actually named
17694 something starting with __ and the normal name is an alias. */
17695#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17696choke me
17697#else
17698$ac_func();
17699#endif
17700
17701; return 0; }
17702EOF
17703if { (eval echo configure:17704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17704 rm -rf conftest*
17705 eval "ac_cv_func_$ac_func=yes"
17706else
17707 echo "configure: failed program was:" >&5
17708 cat conftest.$ac_ext >&5
17709 rm -rf conftest*
17710 eval "ac_cv_func_$ac_func=no"
17711fi
17712rm -f conftest*
17713fi
17714
17715if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17716 echo "$ac_t""yes" 1>&6
17717 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17718 cat >> confdefs.h <<EOF
17719#define $ac_tr_func 1
17720EOF
17721
17722else
17723 echo "$ac_t""no" 1>&6
17724fi
17725done
17726
17727
17728 if test "$ac_cv_func_localtime" = "yes"; then
17729 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
17730echo "configure:17731: checking for tm_gmtoff in struct tm" >&5
17731if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
17732 echo $ac_n "(cached) $ac_c" 1>&6
17733else
17734
17735 cat > conftest.$ac_ext <<EOF
17736#line 17737 "configure"
17737#include "confdefs.h"
17738
17739 #include <time.h>
17740
17741int main() {
17742
17743 struct tm tm;
17744 tm.tm_gmtoff++;
17745
17746; return 0; }
17747EOF
17748if { (eval echo configure:17749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17749 rm -rf conftest*
17750
17751 wx_cv_struct_tm_has_gmtoff=yes
17752
17753else
17754 echo "configure: failed program was:" >&5
17755 cat conftest.$ac_ext >&5
17756 rm -rf conftest*
17757 wx_cv_struct_tm_has_gmtoff=no
17758
17759fi
17760rm -f conftest*
17761
17762fi
17763
17764echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
17765 fi
17766
17767 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
17768 cat >> confdefs.h <<\EOF
17769#define WX_GMTOFF_IN_TM 1
17770EOF
17771
17772 fi
17773
17774 for ac_func in gettimeofday ftime
17775do
17776echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17777echo "configure:17778: checking for $ac_func" >&5
17778if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17779 echo $ac_n "(cached) $ac_c" 1>&6
17780else
17781 cat > conftest.$ac_ext <<EOF
17782#line 17783 "configure"
17783#include "confdefs.h"
17784/* System header to define __stub macros and hopefully few prototypes,
17785 which can conflict with char $ac_func(); below. */
17786#include <assert.h>
17787/* Override any gcc2 internal prototype to avoid an error. */
17788/* We use char because int might match the return type of a gcc2
17789 builtin and then its argument prototype would still apply. */
17790char $ac_func();
17791
17792int main() {
17793
17794/* The GNU C library defines this for functions which it implements
17795 to always fail with ENOSYS. Some functions are actually named
17796 something starting with __ and the normal name is an alias. */
17797#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17798choke me
17799#else
17800$ac_func();
17801#endif
17802
17803; return 0; }
17804EOF
17805if { (eval echo configure:17806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17806 rm -rf conftest*
17807 eval "ac_cv_func_$ac_func=yes"
17808else
17809 echo "configure: failed program was:" >&5
17810 cat conftest.$ac_ext >&5
17811 rm -rf conftest*
17812 eval "ac_cv_func_$ac_func=no"
17813fi
17814rm -f conftest*
17815fi
17816
17817if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17818 echo "$ac_t""yes" 1>&6
17819 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17820 cat >> confdefs.h <<EOF
17821#define $ac_tr_func 1
17822EOF
17823 break
17824else
17825 echo "$ac_t""no" 1>&6
17826fi
17827done
17828
17829
17830 if test "$ac_cv_func_gettimeofday" = "yes"; then
17831 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
17832echo "configure:17833: checking whether gettimeofday takes two arguments" >&5
17833if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
17834 echo $ac_n "(cached) $ac_c" 1>&6
17835else
17836
17837
17838 ac_ext=C
17839# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17840ac_cpp='$CXXCPP $CPPFLAGS'
17841ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17842ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17843cross_compiling=$ac_cv_prog_cxx_cross
17844
17845
17846 cat > conftest.$ac_ext <<EOF
17847#line 17848 "configure"
17848#include "confdefs.h"
17849
17850 #include <sys/time.h>
17851 #include <unistd.h>
17852
17853int main() {
17854
17855 struct timeval tv;
17856 gettimeofday(&tv, NULL);
17857
17858; return 0; }
17859EOF
17860if { (eval echo configure:17861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17861 rm -rf conftest*
17862 wx_cv_func_gettimeofday_has_2_args=yes
17863else
17864 echo "configure: failed program was:" >&5
17865 cat conftest.$ac_ext >&5
17866 rm -rf conftest*
17867 cat > conftest.$ac_ext <<EOF
17868#line 17869 "configure"
17869#include "confdefs.h"
17870
17871 #include <sys/time.h>
17872 #include <unistd.h>
17873
17874int main() {
17875
17876 struct timeval tv;
17877 gettimeofday(&tv);
17878
17879; return 0; }
17880EOF
17881if { (eval echo configure:17882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17882 rm -rf conftest*
17883 wx_cv_func_gettimeofday_has_2_args=no
17884else
17885 echo "configure: failed program was:" >&5
17886 cat conftest.$ac_ext >&5
17887 rm -rf conftest*
17888
17889 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
17890 wx_cv_func_gettimeofday_has_2_args=unknown
17891
17892
17893fi
17894rm -f conftest*
17895
17896fi
17897rm -f conftest*
17898 ac_ext=c
17899# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17900ac_cpp='$CPP $CPPFLAGS'
17901ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17902ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17903cross_compiling=$ac_cv_prog_cc_cross
17904
17905
17906fi
17907
17908echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
17909
17910 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
17911 cat >> confdefs.h <<\EOF
17912#define WX_GETTIMEOFDAY_NO_TZ 1
17913EOF
17914
17915 fi
17916 fi
17917
17918 cat >> confdefs.h <<\EOF
17919#define wxUSE_TIMEDATE 1
17920EOF
17921
17922 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
17923fi
17924
17925
17926if test "$TOOLKIT" != "MSW"; then
17927
17928 if test "$wxUSE_SOCKETS" = "yes"; then
17929 echo $ac_n "checking for socket""... $ac_c" 1>&6
17930echo "configure:17931: checking for socket" >&5
17931if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
17932 echo $ac_n "(cached) $ac_c" 1>&6
17933else
17934 cat > conftest.$ac_ext <<EOF
17935#line 17936 "configure"
17936#include "confdefs.h"
17937/* System header to define __stub macros and hopefully few prototypes,
17938 which can conflict with char socket(); below. */
17939#include <assert.h>
17940/* Override any gcc2 internal prototype to avoid an error. */
17941/* We use char because int might match the return type of a gcc2
17942 builtin and then its argument prototype would still apply. */
17943char socket();
17944
17945int main() {
17946
17947/* The GNU C library defines this for functions which it implements
17948 to always fail with ENOSYS. Some functions are actually named
17949 something starting with __ and the normal name is an alias. */
17950#if defined (__stub_socket) || defined (__stub___socket)
17951choke me
17952#else
17953socket();
17954#endif
17955
17956; return 0; }
17957EOF
17958if { (eval echo configure:17959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17959 rm -rf conftest*
17960 eval "ac_cv_func_socket=yes"
17961else
17962 echo "configure: failed program was:" >&5
17963 cat conftest.$ac_ext >&5
17964 rm -rf conftest*
17965 eval "ac_cv_func_socket=no"
17966fi
17967rm -f conftest*
17968fi
17969
17970if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
17971 echo "$ac_t""yes" 1>&6
17972 :
17973else
17974 echo "$ac_t""no" 1>&6
17975echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
17976echo "configure:17977: checking for socket in -lsocket" >&5
17977ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
17978if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17979 echo $ac_n "(cached) $ac_c" 1>&6
17980else
17981 ac_save_LIBS="$LIBS"
17982LIBS="-lsocket $LIBS"
17983cat > conftest.$ac_ext <<EOF
17984#line 17985 "configure"
17985#include "confdefs.h"
17986/* Override any gcc2 internal prototype to avoid an error. */
17987/* We use char because int might match the return type of a gcc2
17988 builtin and then its argument prototype would still apply. */
17989char socket();
17990
17991int main() {
17992socket()
17993; return 0; }
17994EOF
17995if { (eval echo configure:17996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17996 rm -rf conftest*
17997 eval "ac_cv_lib_$ac_lib_var=yes"
17998else
17999 echo "configure: failed program was:" >&5
18000 cat conftest.$ac_ext >&5
18001 rm -rf conftest*
18002 eval "ac_cv_lib_$ac_lib_var=no"
18003fi
18004rm -f conftest*
18005LIBS="$ac_save_LIBS"
18006
18007fi
18008if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18009 echo "$ac_t""yes" 1>&6
18010 INET_LINK="$INET_LINK -lsocket"
18011else
18012 echo "$ac_t""no" 1>&6
18013
18014 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
18015 wxUSE_SOCKETS=no
18016
18017
18018fi
18019
18020
18021fi
18022
18023 fi
18024
18025
18026 if test "$wxUSE_SOCKETS" = "yes" ; then
18027 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
18028echo "configure:18029: checking what is the type of the third argument of getsockname" >&5
18029if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
18030 echo $ac_n "(cached) $ac_c" 1>&6
18031else
18032
18033
18034 ac_ext=C
18035# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18036ac_cpp='$CXXCPP $CPPFLAGS'
18037ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18038ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18039cross_compiling=$ac_cv_prog_cxx_cross
18040
18041
18042 cat > conftest.$ac_ext <<EOF
18043#line 18044 "configure"
18044#include "confdefs.h"
18045
18046 #include <sys/types.h>
18047 #include <sys/socket.h>
18048
18049int main() {
18050
18051 socklen_t len;
18052 getsockname(0, 0, &len);
18053
18054; return 0; }
18055EOF
18056if { (eval echo configure:18057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18057 rm -rf conftest*
18058 wx_cv_type_getsockname3=socklen_t
18059else
18060 echo "configure: failed program was:" >&5
18061 cat conftest.$ac_ext >&5
18062 rm -rf conftest*
18063 cat > conftest.$ac_ext <<EOF
18064#line 18065 "configure"
18065#include "confdefs.h"
18066
18067 #include <sys/types.h>
18068 #include <sys/socket.h>
18069
18070int main() {
18071
18072 size_t len;
18073 getsockname(0, 0, &len);
18074
18075; return 0; }
18076EOF
18077if { (eval echo configure:18078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18078 rm -rf conftest*
18079 wx_cv_type_getsockname3=size_t
18080else
18081 echo "configure: failed program was:" >&5
18082 cat conftest.$ac_ext >&5
18083 rm -rf conftest*
18084 cat > conftest.$ac_ext <<EOF
18085#line 18086 "configure"
18086#include "confdefs.h"
18087
18088 #include <sys/types.h>
18089 #include <sys/socket.h>
18090
18091int main() {
18092
18093 int len;
18094 getsockname(0, 0, &len);
18095
18096; return 0; }
18097EOF
18098if { (eval echo configure:18099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18099 rm -rf conftest*
18100 wx_cv_type_getsockname3=int
18101else
18102 echo "configure: failed program was:" >&5
18103 cat conftest.$ac_ext >&5
18104 rm -rf conftest*
18105 wx_cv_type_getsockname3=unknown
18106
18107fi
18108rm -f conftest*
18109
18110fi
18111rm -f conftest*
18112
18113fi
18114rm -f conftest*
18115
18116 ac_ext=c
18117# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18118ac_cpp='$CPP $CPPFLAGS'
18119ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18120ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18121cross_compiling=$ac_cv_prog_cc_cross
18122
18123
18124fi
18125
18126echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
18127
18128 if test "$wx_cv_type_getsockname3" = "unknown"; then
18129 wxUSE_SOCKETS=no
18130 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
18131 else
18132 cat >> confdefs.h <<EOF
18133#define SOCKLEN_T $wx_cv_type_getsockname3
18134EOF
18135
18136 fi
18137 fi
18138fi
18139
18140if test "$wxUSE_SOCKETS" = "yes" ; then
18141 cat >> confdefs.h <<\EOF
18142#define wxUSE_SOCKETS 1
18143EOF
18144
18145 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
18146fi
18147
18148
18149if test "$wxUSE_GUI" = "yes"; then
18150
18151 if test "$TOOLKIT" = "MAC"; then
18152 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
18153 wxUSE_JOYSTICK=no
18154 fi
18155 if test "$TOOLKIT" = "MOTIF"; then
18156 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
18157 wxUSE_JOYSTICK=no
18158 fi
18159
18160 if test "$TOOLKIT" != "MSW"; then
18161 if test "$wxUSE_JOYSTICK" = "yes"; then
18162 for ac_hdr in linux/joystick.h
18163do
18164ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18165echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18166echo "configure:18167: checking for $ac_hdr" >&5
18167if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18168 echo $ac_n "(cached) $ac_c" 1>&6
18169else
18170 cat > conftest.$ac_ext <<EOF
18171#line 18172 "configure"
18172#include "confdefs.h"
18173#include <$ac_hdr>
18174EOF
18175ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18176{ (eval echo configure:18177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18177ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18178if test -z "$ac_err"; then
18179 rm -rf conftest*
18180 eval "ac_cv_header_$ac_safe=yes"
18181else
18182 echo "$ac_err" >&5
18183 echo "configure: failed program was:" >&5
18184 cat conftest.$ac_ext >&5
18185 rm -rf conftest*
18186 eval "ac_cv_header_$ac_safe=no"
18187fi
18188rm -f conftest*
18189fi
18190if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18191 echo "$ac_t""yes" 1>&6
18192 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18193 cat >> confdefs.h <<EOF
18194#define $ac_tr_hdr 1
18195EOF
18196
18197else
18198 echo "$ac_t""no" 1>&6
18199fi
18200done
18201
18202 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
18203 wxUSE_JOYSTICK=no
18204 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
18205 fi
18206 fi
18207 fi
18208
18209 if test "$wxUSE_JOYSTICK" = "yes"; then
18210 cat >> confdefs.h <<\EOF
18211#define wxUSE_JOYSTICK 1
18212EOF
18213
18214 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
18215 fi
18216fi
18217
18218
18219if test "$TOOLKIT" != "MSW"; then
18220
18221 HAVE_DL_FUNCS=0
18222 HAVE_SHL_FUNCS=0
18223 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
18224 if test "$USE_DARWIN" = 1; then
18225 HAVE_DL_FUNCS=1
18226 else
18227 for ac_func in dlopen
18228do
18229echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18230echo "configure:18231: checking for $ac_func" >&5
18231if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18232 echo $ac_n "(cached) $ac_c" 1>&6
18233else
18234 cat > conftest.$ac_ext <<EOF
18235#line 18236 "configure"
18236#include "confdefs.h"
18237/* System header to define __stub macros and hopefully few prototypes,
18238 which can conflict with char $ac_func(); below. */
18239#include <assert.h>
18240/* Override any gcc2 internal prototype to avoid an error. */
18241/* We use char because int might match the return type of a gcc2
18242 builtin and then its argument prototype would still apply. */
18243char $ac_func();
18244
18245int main() {
18246
18247/* The GNU C library defines this for functions which it implements
18248 to always fail with ENOSYS. Some functions are actually named
18249 something starting with __ and the normal name is an alias. */
18250#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18251choke me
18252#else
18253$ac_func();
18254#endif
18255
18256; return 0; }
18257EOF
18258if { (eval echo configure:18259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18259 rm -rf conftest*
18260 eval "ac_cv_func_$ac_func=yes"
18261else
18262 echo "configure: failed program was:" >&5
18263 cat conftest.$ac_ext >&5
18264 rm -rf conftest*
18265 eval "ac_cv_func_$ac_func=no"
18266fi
18267rm -f conftest*
18268fi
18269
18270if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18271 echo "$ac_t""yes" 1>&6
18272 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18273 cat >> confdefs.h <<EOF
18274#define $ac_tr_func 1
18275EOF
18276
18277 cat >> confdefs.h <<\EOF
18278#define HAVE_DLOPEN 1
18279EOF
18280
18281 HAVE_DL_FUNCS=1
18282
18283else
18284 echo "$ac_t""no" 1>&6
18285echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
18286echo "configure:18287: checking for dlopen in -ldl" >&5
18287ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
18288if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18289 echo $ac_n "(cached) $ac_c" 1>&6
18290else
18291 ac_save_LIBS="$LIBS"
18292LIBS="-ldl $LIBS"
18293cat > conftest.$ac_ext <<EOF
18294#line 18295 "configure"
18295#include "confdefs.h"
18296/* Override any gcc2 internal prototype to avoid an error. */
18297/* We use char because int might match the return type of a gcc2
18298 builtin and then its argument prototype would still apply. */
18299char dlopen();
18300
18301int main() {
18302dlopen()
18303; return 0; }
18304EOF
18305if { (eval echo configure:18306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18306 rm -rf conftest*
18307 eval "ac_cv_lib_$ac_lib_var=yes"
18308else
18309 echo "configure: failed program was:" >&5
18310 cat conftest.$ac_ext >&5
18311 rm -rf conftest*
18312 eval "ac_cv_lib_$ac_lib_var=no"
18313fi
18314rm -f conftest*
18315LIBS="$ac_save_LIBS"
18316
18317fi
18318if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18319 echo "$ac_t""yes" 1>&6
18320
18321 cat >> confdefs.h <<\EOF
18322#define HAVE_DLOPEN 1
18323EOF
18324
18325 HAVE_DL_FUNCS=1
18326 DL_LINK=" -ldl$DL_LINK"
18327
18328else
18329 echo "$ac_t""no" 1>&6
18330
18331 for ac_func in shl_load
18332do
18333echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18334echo "configure:18335: checking for $ac_func" >&5
18335if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18336 echo $ac_n "(cached) $ac_c" 1>&6
18337else
18338 cat > conftest.$ac_ext <<EOF
18339#line 18340 "configure"
18340#include "confdefs.h"
18341/* System header to define __stub macros and hopefully few prototypes,
18342 which can conflict with char $ac_func(); below. */
18343#include <assert.h>
18344/* Override any gcc2 internal prototype to avoid an error. */
18345/* We use char because int might match the return type of a gcc2
18346 builtin and then its argument prototype would still apply. */
18347char $ac_func();
18348
18349int main() {
18350
18351/* The GNU C library defines this for functions which it implements
18352 to always fail with ENOSYS. Some functions are actually named
18353 something starting with __ and the normal name is an alias. */
18354#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18355choke me
18356#else
18357$ac_func();
18358#endif
18359
18360; return 0; }
18361EOF
18362if { (eval echo configure:18363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18363 rm -rf conftest*
18364 eval "ac_cv_func_$ac_func=yes"
18365else
18366 echo "configure: failed program was:" >&5
18367 cat conftest.$ac_ext >&5
18368 rm -rf conftest*
18369 eval "ac_cv_func_$ac_func=no"
18370fi
18371rm -f conftest*
18372fi
18373
18374if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18375 echo "$ac_t""yes" 1>&6
18376 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18377 cat >> confdefs.h <<EOF
18378#define $ac_tr_func 1
18379EOF
18380
18381 cat >> confdefs.h <<\EOF
18382#define HAVE_SHL_LOAD 1
18383EOF
18384
18385 HAVE_SHL_FUNCS=1
18386
18387else
18388 echo "$ac_t""no" 1>&6
18389echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
18390echo "configure:18391: checking for dld in -lshl_load" >&5
18391ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
18392if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18393 echo $ac_n "(cached) $ac_c" 1>&6
18394else
18395 ac_save_LIBS="$LIBS"
18396LIBS="-lshl_load $LIBS"
18397cat > conftest.$ac_ext <<EOF
18398#line 18399 "configure"
18399#include "confdefs.h"
18400/* Override any gcc2 internal prototype to avoid an error. */
18401/* We use char because int might match the return type of a gcc2
18402 builtin and then its argument prototype would still apply. */
18403char dld();
18404
18405int main() {
18406dld()
18407; return 0; }
18408EOF
18409if { (eval echo configure:18410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18410 rm -rf conftest*
18411 eval "ac_cv_lib_$ac_lib_var=yes"
18412else
18413 echo "configure: failed program was:" >&5
18414 cat conftest.$ac_ext >&5
18415 rm -rf conftest*
18416 eval "ac_cv_lib_$ac_lib_var=no"
18417fi
18418rm -f conftest*
18419LIBS="$ac_save_LIBS"
18420
18421fi
18422if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18423 echo "$ac_t""yes" 1>&6
18424
18425 HAVE_SHL_FUNCS=1
18426 DL_LINK=" -ldld$DL_LINK"
18427
18428else
18429 echo "$ac_t""no" 1>&6
18430fi
18431
18432
18433fi
18434done
18435
18436
18437fi
18438
18439
18440fi
18441done
18442
18443
18444 if test "$HAVE_DL_FUNCS" = 1; then
18445 for ac_func in dlerror
18446do
18447echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18448echo "configure:18449: checking for $ac_func" >&5
18449if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18450 echo $ac_n "(cached) $ac_c" 1>&6
18451else
18452 cat > conftest.$ac_ext <<EOF
18453#line 18454 "configure"
18454#include "confdefs.h"
18455/* System header to define __stub macros and hopefully few prototypes,
18456 which can conflict with char $ac_func(); below. */
18457#include <assert.h>
18458/* Override any gcc2 internal prototype to avoid an error. */
18459/* We use char because int might match the return type of a gcc2
18460 builtin and then its argument prototype would still apply. */
18461char $ac_func();
18462
18463int main() {
18464
18465/* The GNU C library defines this for functions which it implements
18466 to always fail with ENOSYS. Some functions are actually named
18467 something starting with __ and the normal name is an alias. */
18468#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18469choke me
18470#else
18471$ac_func();
18472#endif
18473
18474; return 0; }
18475EOF
18476if { (eval echo configure:18477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18477 rm -rf conftest*
18478 eval "ac_cv_func_$ac_func=yes"
18479else
18480 echo "configure: failed program was:" >&5
18481 cat conftest.$ac_ext >&5
18482 rm -rf conftest*
18483 eval "ac_cv_func_$ac_func=no"
18484fi
18485rm -f conftest*
18486fi
18487
18488if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18489 echo "$ac_t""yes" 1>&6
18490 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18491 cat >> confdefs.h <<EOF
18492#define $ac_tr_func 1
18493EOF
18494 cat >> confdefs.h <<\EOF
18495#define HAVE_DLERROR 1
18496EOF
18497
18498else
18499 echo "$ac_t""no" 1>&6
18500echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
18501echo "configure:18502: checking for dlerror in -ldl" >&5
18502ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
18503if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18504 echo $ac_n "(cached) $ac_c" 1>&6
18505else
18506 ac_save_LIBS="$LIBS"
18507LIBS="-ldl $LIBS"
18508cat > conftest.$ac_ext <<EOF
18509#line 18510 "configure"
18510#include "confdefs.h"
18511/* Override any gcc2 internal prototype to avoid an error. */
18512/* We use char because int might match the return type of a gcc2
18513 builtin and then its argument prototype would still apply. */
18514char dlerror();
18515
18516int main() {
18517dlerror()
18518; return 0; }
18519EOF
18520if { (eval echo configure:18521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18521 rm -rf conftest*
18522 eval "ac_cv_lib_$ac_lib_var=yes"
18523else
18524 echo "configure: failed program was:" >&5
18525 cat conftest.$ac_ext >&5
18526 rm -rf conftest*
18527 eval "ac_cv_lib_$ac_lib_var=no"
18528fi
18529rm -f conftest*
18530LIBS="$ac_save_LIBS"
18531
18532fi
18533if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18534 echo "$ac_t""yes" 1>&6
18535 cat >> confdefs.h <<\EOF
18536#define HAVE_DLERROR 1
18537EOF
18538
18539else
18540 echo "$ac_t""no" 1>&6
18541fi
18542
18543fi
18544done
18545
18546 fi
18547 fi
18548
18549 if test "$HAVE_DL_FUNCS" = 0; then
18550 if test "$HAVE_SHL_FUNCS" = 0; then
18551 if test "$USE_UNIX" = 1; then
18552 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
18553 wxUSE_DYNAMIC_LOADER=no
18554 wxUSE_DYNLIB_CLASS=no
18555 else
18556 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
18557 fi
18558 fi
18559 fi
18560 fi
18561fi
18562
18563if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
18564 cat >> confdefs.h <<\EOF
18565#define wxUSE_DYNAMIC_LOADER 1
18566EOF
18567
18568elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
18569 cat >> confdefs.h <<\EOF
18570#define wxUSE_DYNLIB_CLASS 1
18571EOF
18572
18573fi
18574
18575
18576if test "$wxUSE_FONTMAP" = "yes" ; then
18577 cat >> confdefs.h <<\EOF
18578#define wxUSE_FONTMAP 1
18579EOF
18580
18581fi
18582
18583if test "$wxUSE_UNICODE" = "yes" ; then
18584 cat >> confdefs.h <<\EOF
18585#define wxUSE_UNICODE 1
18586EOF
18587
18588
18589 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
18590 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
18591echo "configure:18592: checking for main in -lunicows" >&5
18592ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
18593if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18594 echo $ac_n "(cached) $ac_c" 1>&6
18595else
18596 ac_save_LIBS="$LIBS"
18597LIBS="-lunicows $LIBS"
18598cat > conftest.$ac_ext <<EOF
18599#line 18600 "configure"
18600#include "confdefs.h"
18601
18602int main() {
18603main()
18604; return 0; }
18605EOF
18606if { (eval echo configure:18607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18607 rm -rf conftest*
18608 eval "ac_cv_lib_$ac_lib_var=yes"
18609else
18610 echo "configure: failed program was:" >&5
18611 cat conftest.$ac_ext >&5
18612 rm -rf conftest*
18613 eval "ac_cv_lib_$ac_lib_var=no"
18614fi
18615rm -f conftest*
18616LIBS="$ac_save_LIBS"
18617
18618fi
18619if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18620 echo "$ac_t""yes" 1>&6
18621
18622 cat >> confdefs.h <<\EOF
18623#define wxUSE_UNICODE_MSLU 1
18624EOF
18625
18626
18627else
18628 echo "$ac_t""no" 1>&6
18629
18630 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
18631 Applications will only run on Windows NT/2000/XP!" 1>&2
18632 wxUSE_UNICODE_MSLU=no
18633
18634fi
18635
18636 fi
18637fi
18638
18639if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
18640 cat >> confdefs.h <<\EOF
18641#define wxUSE_EXPERIMENTAL_PRINTF 1
18642EOF
18643
18644fi
18645
18646
18647
18648IODBC_C_SRC=""
18649if test "$wxUSE_ODBC" = "yes" ; then
18650 cat >> confdefs.h <<\EOF
18651#define wxUSE_ODBC 1
18652EOF
18653
18654 WXODBCFLAG="-D_IODBC_"
18655 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
18656fi
18657
18658
18659if test "$wxUSE_POSTSCRIPT" = "yes" ; then
18660 cat >> confdefs.h <<\EOF
18661#define wxUSE_POSTSCRIPT 1
18662EOF
18663
18664fi
18665
18666cat >> confdefs.h <<\EOF
18667#define wxUSE_AFM_FOR_POSTSCRIPT 1
18668EOF
18669
18670
18671cat >> confdefs.h <<\EOF
18672#define wxUSE_NORMALIZED_PS_FONTS 1
18673EOF
18674
18675
18676
18677if test "$wxUSE_CONSTRAINTS" = "yes"; then
18678 cat >> confdefs.h <<\EOF
18679#define wxUSE_CONSTRAINTS 1
18680EOF
18681
18682 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
18683fi
18684
18685if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18686 if test "$wxUSE_UNIVERSAL" = "yes"; then
18687 echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2
18688 wxUSE_MDI_ARCHITECTURE=no
18689 fi
18690
18691 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18692 cat >> confdefs.h <<\EOF
18693#define wxUSE_MDI_ARCHITECTURE 1
18694EOF
18695
18696 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
18697 fi
18698fi
18699
18700if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
18701 cat >> confdefs.h <<\EOF
18702#define wxUSE_DOC_VIEW_ARCHITECTURE 1
18703EOF
18704
18705 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
18706 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18707 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
18708 fi
18709fi
18710
18711if test "$wxUSE_HELP" = "yes"; then
18712 cat >> confdefs.h <<\EOF
18713#define wxUSE_HELP 1
18714EOF
18715
18716 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
18717
18718 if test "$wxUSE_MSW" = 1; then
18719 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
18720 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
18721echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
18722echo "configure:18723: checking for htmlhelp.h" >&5
18723if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18724 echo $ac_n "(cached) $ac_c" 1>&6
18725else
18726 cat > conftest.$ac_ext <<EOF
18727#line 18728 "configure"
18728#include "confdefs.h"
18729#include <htmlhelp.h>
18730EOF
18731ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18732{ (eval echo configure:18733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18733ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18734if test -z "$ac_err"; then
18735 rm -rf conftest*
18736 eval "ac_cv_header_$ac_safe=yes"
18737else
18738 echo "$ac_err" >&5
18739 echo "configure: failed program was:" >&5
18740 cat conftest.$ac_ext >&5
18741 rm -rf conftest*
18742 eval "ac_cv_header_$ac_safe=no"
18743fi
18744rm -f conftest*
18745fi
18746if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18747 echo "$ac_t""yes" 1>&6
18748
18749 cat >> confdefs.h <<\EOF
18750#define wxUSE_MS_HTML_HELP 1
18751EOF
18752
18753
18754else
18755 echo "$ac_t""no" 1>&6
18756
18757 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
18758 wxUSE_MS_HTML_HELP=no
18759
18760fi
18761
18762 fi
18763 fi
18764
18765 if test "$wxUSE_WXHTML_HELP" = "yes"; then
18766 if test "$wxUSE_HTML" = "yes"; then
18767 cat >> confdefs.h <<\EOF
18768#define wxUSE_WXHTML_HELP 1
18769EOF
18770
18771 else
18772 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
18773 wxUSE_WXHTML_HELP=no
18774 fi
18775 fi
18776fi
18777
18778if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
18779 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18780 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
18781 else
18782 cat >> confdefs.h <<\EOF
18783#define wxUSE_PRINTING_ARCHITECTURE 1
18784EOF
18785
18786 fi
18787 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
18788fi
18789
18790if test "$wxUSE_PROLOGIO" = "yes" ; then
18791 cat >> confdefs.h <<\EOF
18792#define wxUSE_PROLOGIO 1
18793EOF
18794
18795fi
18796
18797if test "$wxUSE_RESOURCES" = "yes" ; then
18798 cat >> confdefs.h <<\EOF
18799#define wxUSE_RESOURCES 1
18800EOF
18801
18802 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
18803fi
18804
18805if test "$wxUSE_X_RESOURCES" = "yes"; then
18806 cat >> confdefs.h <<\EOF
18807#define wxUSE_X_RESOURCES 1
18808EOF
18809
18810fi
18811
18812
18813if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
18814 -o "$wxUSE_CLIPBOARD" = "yes" \
18815 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
18816 for ac_hdr in ole2.h
18817do
18818ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18819echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18820echo "configure:18821: checking for $ac_hdr" >&5
18821if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18822 echo $ac_n "(cached) $ac_c" 1>&6
18823else
18824 cat > conftest.$ac_ext <<EOF
18825#line 18826 "configure"
18826#include "confdefs.h"
18827#include <$ac_hdr>
18828EOF
18829ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18830{ (eval echo configure:18831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18831ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18832if test -z "$ac_err"; then
18833 rm -rf conftest*
18834 eval "ac_cv_header_$ac_safe=yes"
18835else
18836 echo "$ac_err" >&5
18837 echo "configure: failed program was:" >&5
18838 cat conftest.$ac_ext >&5
18839 rm -rf conftest*
18840 eval "ac_cv_header_$ac_safe=no"
18841fi
18842rm -f conftest*
18843fi
18844if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18845 echo "$ac_t""yes" 1>&6
18846 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18847 cat >> confdefs.h <<EOF
18848#define $ac_tr_hdr 1
18849EOF
18850
18851else
18852 echo "$ac_t""no" 1>&6
18853fi
18854done
18855
18856
18857 if test "$ac_cv_header_ole2_h" = "yes" ; then
18858 if test "$GCC" = yes ; then
18859 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
18860 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
18861 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
18862 cat >> confdefs.h <<\EOF
18863#define wxUSE_OLE 1
18864EOF
18865
18866
18867 fi
18868
18869 cat >> confdefs.h <<\EOF
18870#define wxUSE_DATAOBJ 1
18871EOF
18872
18873 else
18874 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
18875
18876 wxUSE_CLIPBOARD=no
18877 wxUSE_DRAG_AND_DROP=no
18878 wxUSE_DATAOBJ=no
18879 fi
18880
18881 if test "$wxUSE_METAFILE" = "yes"; then
18882 cat >> confdefs.h <<\EOF
18883#define wxUSE_METAFILE 1
18884EOF
18885
18886
18887 cat >> confdefs.h <<\EOF
18888#define wxUSE_ENH_METAFILE 1
18889EOF
18890
18891 fi
18892fi
18893
18894if test "$wxUSE_IPC" = "yes"; then
18895 if test "$wxUSE_SOCKETS" != "yes"; then
18896 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
18897 fi
18898
18899 cat >> confdefs.h <<\EOF
18900#define wxUSE_IPC 1
18901EOF
18902
18903fi
18904
18905if test "$wxUSE_CLIPBOARD" = "yes"; then
18906 cat >> confdefs.h <<\EOF
18907#define wxUSE_CLIPBOARD 1
18908EOF
18909
18910
18911 cat >> confdefs.h <<\EOF
18912#define wxUSE_DATAOBJ 1
18913EOF
18914
18915fi
18916
18917if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
18918 if test "$wxUSE_GTK" = 1; then
18919 if test "$WXGTK12" != 1; then
18920 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
18921 wxUSE_DRAG_AND_DROP=no
18922 fi
18923 fi
18924
18925 if test "$wxUSE_MOTIF" = 1; then
18926 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
18927 wxUSE_DRAG_AND_DROP=no
18928 fi
18929
18930 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
18931 cat >> confdefs.h <<\EOF
18932#define wxUSE_DRAG_AND_DROP 1
18933EOF
18934
18935 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
18936 fi
18937
18938fi
18939
18940if test "$wxUSE_SPLINES" = "yes" ; then
18941 cat >> confdefs.h <<\EOF
18942#define wxUSE_SPLINES 1
18943EOF
18944
18945fi
18946
18947
18948USES_CONTROLS=0
18949if test "$wxUSE_CONTROLS" = "yes"; then
18950 USES_CONTROLS=1
18951fi
18952
18953if test "$wxUSE_ACCEL" = "yes"; then
18954 cat >> confdefs.h <<\EOF
18955#define wxUSE_ACCEL 1
18956EOF
18957
18958 USES_CONTROLS=1
18959fi
18960
18961if test "$wxUSE_BUTTON" = "yes"; then
18962 cat >> confdefs.h <<\EOF
18963#define wxUSE_BUTTON 1
18964EOF
18965
18966 USES_CONTROLS=1
18967fi
18968
18969if test "$wxUSE_BMPBUTTON" = "yes"; then
18970 cat >> confdefs.h <<\EOF
18971#define wxUSE_BMPBUTTON 1
18972EOF
18973
18974 USES_CONTROLS=1
18975fi
18976
18977if test "$wxUSE_CALCTRL" = "yes"; then
18978 cat >> confdefs.h <<\EOF
18979#define wxUSE_CALENDARCTRL 1
18980EOF
18981
18982 USES_CONTROLS=1
18983 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
18984fi
18985
18986if test "$wxUSE_CARET" = "yes"; then
18987 cat >> confdefs.h <<\EOF
18988#define wxUSE_CARET 1
18989EOF
18990
18991 USES_CONTROLS=1
18992 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
18993fi
18994
18995if test "$wxUSE_COMBOBOX" = "yes"; then
18996 cat >> confdefs.h <<\EOF
18997#define wxUSE_COMBOBOX 1
18998EOF
18999
19000 USES_CONTROLS=1
19001fi
19002
19003if test "$wxUSE_CHOICE" = "yes"; then
19004 cat >> confdefs.h <<\EOF
19005#define wxUSE_CHOICE 1
19006EOF
19007
19008 USES_CONTROLS=1
19009fi
19010
19011if test "$wxUSE_CHECKBOX" = "yes"; then
19012 cat >> confdefs.h <<\EOF
19013#define wxUSE_CHECKBOX 1
19014EOF
19015
19016 USES_CONTROLS=1
19017fi
19018
19019if test "$wxUSE_CHECKLST" = "yes"; then
19020 cat >> confdefs.h <<\EOF
19021#define wxUSE_CHECKLISTBOX 1
19022EOF
19023
19024 USES_CONTROLS=1
19025 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
19026fi
19027
19028if test "$wxUSE_GAUGE" = "yes"; then
19029 cat >> confdefs.h <<\EOF
19030#define wxUSE_GAUGE 1
19031EOF
19032
19033 USES_CONTROLS=1
19034fi
19035
19036if test "$wxUSE_NEW_GRID" = "yes"; then
19037 wxUSE_GRID="yes"
19038 cat >> confdefs.h <<\EOF
19039#define wxUSE_NEW_GRID 1
19040EOF
19041
19042 USES_CONTROLS=1
19043 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
19044fi
19045
19046if test "$wxUSE_GRID" = "yes"; then
19047 cat >> confdefs.h <<\EOF
19048#define wxUSE_GRID 1
19049EOF
19050
19051 USES_CONTROLS=1
19052 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
19053fi
19054
19055if test "$wxUSE_IMAGLIST" = "yes"; then
19056 cat >> confdefs.h <<\EOF
19057#define wxUSE_IMAGLIST 1
19058EOF
19059
19060fi
19061
19062if test "$wxUSE_LISTBOX" = "yes"; then
19063 cat >> confdefs.h <<\EOF
19064#define wxUSE_LISTBOX 1
19065EOF
19066
19067 USES_CONTROLS=1
19068fi
19069
19070if test "$wxUSE_LISTCTRL" = "yes"; then
19071 if test "$wxUSE_IMAGLIST" = "yes"; then
19072 cat >> confdefs.h <<\EOF
19073#define wxUSE_LISTCTRL 1
19074EOF
19075
19076 USES_CONTROLS=1
19077 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
19078 else
19079 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
19080 fi
19081fi
19082
19083if test "$wxUSE_NOTEBOOK" = "yes"; then
19084 cat >> confdefs.h <<\EOF
19085#define wxUSE_NOTEBOOK 1
19086EOF
19087
19088 USES_CONTROLS=1
19089 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
19090fi
19091
19092if test "$wxUSE_PROPSHEET" = "yes"; then
19093 cat >> confdefs.h <<\EOF
19094#define wxUSE_PROPSHEET 1
19095EOF
19096
19097 USES_CONTROLS=1
19098 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
19099fi
19100
19101if test "$wxUSE_RADIOBOX" = "yes"; then
19102 cat >> confdefs.h <<\EOF
19103#define wxUSE_RADIOBOX 1
19104EOF
19105
19106 USES_CONTROLS=1
19107fi
19108
19109if test "$wxUSE_RADIOBTN" = "yes"; then
19110 cat >> confdefs.h <<\EOF
19111#define wxUSE_RADIOBTN 1
19112EOF
19113
19114 USES_CONTROLS=1
19115fi
19116
19117if test "$wxUSE_SASH" = "yes"; then
19118 cat >> confdefs.h <<\EOF
19119#define wxUSE_SASH 1
19120EOF
19121
19122 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
19123fi
19124
19125if test "$wxUSE_SCROLLBAR" = "yes"; then
19126 cat >> confdefs.h <<\EOF
19127#define wxUSE_SCROLLBAR 1
19128EOF
19129
19130 USES_CONTROLS=1
19131 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
19132fi
19133
19134if test "$wxUSE_SLIDER" = "yes"; then
19135 cat >> confdefs.h <<\EOF
19136#define wxUSE_SLIDER 1
19137EOF
19138
19139 USES_CONTROLS=1
19140fi
19141
19142if test "$wxUSE_SPINBTN" = "yes"; then
19143 cat >> confdefs.h <<\EOF
19144#define wxUSE_SPINBTN 1
19145EOF
19146
19147 USES_CONTROLS=1
19148fi
19149
19150if test "$wxUSE_SPINCTRL" = "yes"; then
19151 cat >> confdefs.h <<\EOF
19152#define wxUSE_SPINCTRL 1
19153EOF
19154
19155 USES_CONTROLS=1
19156fi
19157
19158if test "$wxUSE_SPLITTER" = "yes"; then
19159 cat >> confdefs.h <<\EOF
19160#define wxUSE_SPLITTER 1
19161EOF
19162
19163 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
19164fi
19165
19166if test "$wxUSE_STATBMP" = "yes"; then
19167 cat >> confdefs.h <<\EOF
19168#define wxUSE_STATBMP 1
19169EOF
19170
19171 USES_CONTROLS=1
19172fi
19173
19174if test "$wxUSE_STATBOX" = "yes"; then
19175 cat >> confdefs.h <<\EOF
19176#define wxUSE_STATBOX 1
19177EOF
19178
19179 USES_CONTROLS=1
19180fi
19181
19182if test "$wxUSE_STATTEXT" = "yes"; then
19183 cat >> confdefs.h <<\EOF
19184#define wxUSE_STATTEXT 1
19185EOF
19186
19187 USES_CONTROLS=1
19188fi
19189
19190if test "$wxUSE_STATLINE" = "yes"; then
19191 if test "$wxUSE_WINE" = 1 ; then
19192 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
19193 else
19194 cat >> confdefs.h <<\EOF
19195#define wxUSE_STATLINE 1
19196EOF
19197
19198 USES_CONTROLS=1
19199 fi
19200fi
19201
19202if test "$wxUSE_STATUSBAR" = "yes"; then
19203 cat >> confdefs.h <<\EOF
19204#define wxUSE_STATUSBAR 1
19205EOF
19206
19207 USES_CONTROLS=1
19208
19209 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
19210fi
19211
19212if test "$wxUSE_TABDIALOG" = "yes"; then
19213 cat >> confdefs.h <<\EOF
19214#define wxUSE_TAB_DIALOG 1
19215EOF
19216
19217 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
19218fi
19219
19220if test "$wxUSE_TEXTCTRL" = "yes"; then
19221 cat >> confdefs.h <<\EOF
19222#define wxUSE_TEXTCTRL 1
19223EOF
19224
19225 USES_CONTROLS=1
19226 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
19227fi
19228
19229if test "$wxUSE_TOGGLEBTN" = "yes"; then
19230 if test "$wxUSE_MAC" = 1; then
19231 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
19232 wxUSE_TOGGLEBTN=no
19233 fi
19234 if test "$wxUSE_UNIVERSAL" = "yes"; then
19235 echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2
19236 wxUSE_TOGGLEBTN=no
19237 fi
19238
19239 if test "$wxUSE_TOGGLEBTN" = "yes"; then
19240 cat >> confdefs.h <<\EOF
19241#define wxUSE_TOGGLEBTN 1
19242EOF
19243
19244 USES_CONTROLS=1
19245 fi
19246fi
19247
19248if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
19249 cat >> confdefs.h <<\EOF
19250#define wxUSE_TOOLBAR_SIMPLE 1
19251EOF
19252
19253 wxUSE_TOOLBAR="yes"
19254 USES_CONTROLS=1
19255fi
19256
19257if test "$wxUSE_TOOLBAR" = "yes"; then
19258 cat >> confdefs.h <<\EOF
19259#define wxUSE_TOOLBAR 1
19260EOF
19261
19262 USES_CONTROLS=1
19263
19264 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
19265 wxUSE_TOOLBAR_NATIVE="yes"
19266 fi
19267
19268 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
19269 cat >> confdefs.h <<\EOF
19270#define wxUSE_TOOLBAR_NATIVE 1
19271EOF
19272
19273 USES_CONTROLS=1
19274 fi
19275
19276 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
19277fi
19278
19279if test "$wxUSE_TOOLTIPS" = "yes"; then
19280 if test "$wxUSE_MOTIF" = 1; then
19281 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
19282 else
19283 if test "$wxUSE_WINE" = 1; then
19284 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
19285 else
19286 if test "$wxUSE_UNIVERSAL" = "yes"; then
19287 echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2
19288 else
19289 cat >> confdefs.h <<\EOF
19290#define wxUSE_TOOLTIPS 1
19291EOF
19292
19293 fi
19294 fi
19295 fi
19296fi
19297
19298if test "$wxUSE_TREECTRL" = "yes"; then
19299 if test "$wxUSE_IMAGLIST" = "yes"; then
19300 cat >> confdefs.h <<\EOF
19301#define wxUSE_TREECTRL 1
19302EOF
19303
19304 USES_CONTROLS=1
19305 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
19306 else
19307 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
19308 fi
19309fi
19310
19311if test "$wxUSE_POPUPWIN" = "yes"; then
19312 if test "$wxUSE_MAC" = 1; then
19313 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
19314 else
19315 if test "$wxUSE_MOTIF" = 1; then
19316 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
19317 else
19318 cat >> confdefs.h <<\EOF
19319#define wxUSE_POPUPWIN 1
19320EOF
19321
19322
19323 USES_CONTROLS=1
19324 fi
19325 fi
19326fi
19327
19328if test "$wxUSE_TIPWINDOW" = "yes"; then
19329 cat >> confdefs.h <<\EOF
19330#define wxUSE_TIPWINDOW 1
19331EOF
19332
19333fi
19334
19335if test "$USES_CONTROLS" = 1; then
19336 cat >> confdefs.h <<\EOF
19337#define wxUSE_CONTROLS 1
19338EOF
19339
19340fi
19341
19342
19343if test "$wxUSE_TREELAYOUT" = "yes"; then
19344 cat >> confdefs.h <<\EOF
19345#define wxUSE_TREELAYOUT 1
19346EOF
19347
19348 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
19349fi
19350
19351if test "$wxUSE_DRAGIMAGE" = "yes"; then
19352 cat >> confdefs.h <<\EOF
19353#define wxUSE_DRAGIMAGE 1
19354EOF
19355
19356 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
19357fi
19358
19359if test "$wxUSE_MENUS" = "yes"; then
19360 cat >> confdefs.h <<\EOF
19361#define wxUSE_MENUS 1
19362EOF
19363
19364 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
19365fi
19366
19367if test "$wxUSE_METAFILE" = "yes"; then
19368 cat >> confdefs.h <<\EOF
19369#define wxUSE_METAFILE 1
19370EOF
19371
19372fi
19373
19374if test "$wxUSE_MIMETYPE" = "yes"; then
19375 cat >> confdefs.h <<\EOF
19376#define wxUSE_MIMETYPE 1
19377EOF
19378
19379fi
19380
19381if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
19382 cat >> confdefs.h <<\EOF
19383#define wxUSE_SYSTEM_OPTIONS 1
19384EOF
19385
19386fi
19387
19388if test "$wxUSE_PROTOCOL" = "yes"; then
19389 if test "$wxUSE_SOCKETS" != "yes"; then
19390 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
19391 wxUSE_PROTOCOL=no
19392 fi
19393
19394 if test "$wxUSE_PROTOCOL" = "yes"; then
19395 cat >> confdefs.h <<\EOF
19396#define wxUSE_PROTOCOL 1
19397EOF
19398
19399
19400 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
19401 cat >> confdefs.h <<\EOF
19402#define wxUSE_PROTOCOL_HTTP 1
19403EOF
19404
19405 fi
19406 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
19407 cat >> confdefs.h <<\EOF
19408#define wxUSE_PROTOCOL_FTP 1
19409EOF
19410
19411 fi
19412 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
19413 cat >> confdefs.h <<\EOF
19414#define wxUSE_PROTOCOL_FILE 1
19415EOF
19416
19417 fi
19418 fi
19419fi
19420
19421if test "$wxUSE_URL" = "yes"; then
19422 if test "$wxUSE_PROTOCOL" != "yes"; then
19423 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
19424 wxUSE_URL=no
19425 fi
19426 if test "$wxUSE_URL" = "yes"; then
19427 cat >> confdefs.h <<\EOF
19428#define wxUSE_URL 1
19429EOF
19430
19431 fi
19432fi
19433
19434if test "$wxUSE_MINIFRAME" = "yes"; then
19435 cat >> confdefs.h <<\EOF
19436#define wxUSE_MINIFRAME 1
19437EOF
19438
19439 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
19440fi
19441
19442if test "$wxUSE_HTML" = "yes"; then
19443 cat >> confdefs.h <<\EOF
19444#define wxUSE_HTML 1
19445EOF
19446
19447 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
19448fi
19449
19450if test "$wxUSE_VALIDATORS" = "yes"; then
19451 cat >> confdefs.h <<\EOF
19452#define wxUSE_VALIDATORS 1
19453EOF
19454
19455 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
19456fi
19457
19458if test "$wxUSE_PALETTE" = "yes" ; then
19459 cat >> confdefs.h <<\EOF
19460#define wxUSE_PALETTE 1
19461EOF
19462
19463fi
19464
19465if test "$wxUSE_IMAGE" = "yes" ; then
19466 cat >> confdefs.h <<\EOF
19467#define wxUSE_IMAGE 1
19468EOF
19469
19470fi
19471
19472if test "$wxUSE_GIF" = "yes" ; then
19473 cat >> confdefs.h <<\EOF
19474#define wxUSE_GIF 1
19475EOF
19476
19477fi
19478
19479if test "$wxUSE_PCX" = "yes" ; then
19480 cat >> confdefs.h <<\EOF
19481#define wxUSE_PCX 1
19482EOF
19483
19484fi
19485
19486if test "$wxUSE_IFF" = "yes" ; then
19487 cat >> confdefs.h <<\EOF
19488#define wxUSE_IFF 1
19489EOF
19490
19491fi
19492
19493if test "$wxUSE_PNM" = "yes" ; then
19494 cat >> confdefs.h <<\EOF
19495#define wxUSE_PNM 1
19496EOF
19497
19498fi
19499
19500if test "$wxUSE_XPM" = "yes" ; then
19501 cat >> confdefs.h <<\EOF
19502#define wxUSE_XPM 1
19503EOF
19504
19505fi
19506
19507if test "$wxUSE_ICO_CUR" = "yes" ; then
19508 cat >> confdefs.h <<\EOF
19509#define wxUSE_ICO_CUR 1
19510EOF
19511
19512fi
19513
19514if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
19515 LIBS=" -lunicows $LIBS"
19516fi
19517
19518
19519if test "$wxUSE_CHOICEDLG" = "yes"; then
19520 cat >> confdefs.h <<\EOF
19521#define wxUSE_CHOICEDLG 1
19522EOF
19523
19524fi
19525
19526if test "$wxUSE_COLOURDLG" = "yes"; then
19527 cat >> confdefs.h <<\EOF
19528#define wxUSE_COLOURDLG 1
19529EOF
19530
19531fi
19532
19533if test "$wxUSE_FILEDLG" = "yes"; then
19534 cat >> confdefs.h <<\EOF
19535#define wxUSE_FILEDLG 1
19536EOF
19537
19538fi
19539
19540if test "$wxUSE_FINDREPLDLG" = "yes"; then
19541 cat >> confdefs.h <<\EOF
19542#define wxUSE_FINDREPLDLG 1
19543EOF
19544
19545fi
19546
19547if test "$wxUSE_FONTDLG" = "yes"; then
19548 cat >> confdefs.h <<\EOF
19549#define wxUSE_FONTDLG 1
19550EOF
19551
19552fi
19553
19554if test "$wxUSE_DIRDLG" = "yes"; then
19555 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19556 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
19557 else
19558 if test "$wxUSE_TREECTRL" != "yes"; then
19559 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
19560 else
19561 cat >> confdefs.h <<\EOF
19562#define wxUSE_DIRDLG 1
19563EOF
19564
19565 fi
19566 fi
19567fi
19568
19569if test "$wxUSE_MSGDLG" = "yes"; then
19570 cat >> confdefs.h <<\EOF
19571#define wxUSE_MSGDLG 1
19572EOF
19573
19574fi
19575
19576if test "$wxUSE_NUMBERDLG" = "yes"; then
19577 cat >> confdefs.h <<\EOF
19578#define wxUSE_NUMBERDLG 1
19579EOF
19580
19581fi
19582
19583if test "$wxUSE_PROGRESSDLG" = "yes"; then
19584 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19585 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
19586 else
19587 cat >> confdefs.h <<\EOF
19588#define wxUSE_PROGRESSDLG 1
19589EOF
19590
19591 fi
19592fi
19593
19594if test "$wxUSE_SPLASH" = "yes"; then
19595 cat >> confdefs.h <<\EOF
19596#define wxUSE_SPLASH 1
19597EOF
19598
19599fi
19600
19601if test "$wxUSE_STARTUP_TIPS" = "yes"; then
19602 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19603 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
19604 else
19605 cat >> confdefs.h <<\EOF
19606#define wxUSE_STARTUP_TIPS 1
19607EOF
19608
19609 fi
19610fi
19611
19612if test "$wxUSE_TEXTDLG" = "yes"; then
19613 cat >> confdefs.h <<\EOF
19614#define wxUSE_TEXTDLG 1
19615EOF
19616
19617fi
19618
19619if test "$wxUSE_WIZARDDLG" = "yes"; then
19620 cat >> confdefs.h <<\EOF
19621#define wxUSE_WIZARDDLG 1
19622EOF
19623
19624 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
19625fi
19626
19627
19628if test "$cross_compiling" = "yes"; then
19629 OSINFO="\"$host\""
19630else
19631 OSINFO=`uname -s -r -m`
19632 OSINFO="\"$OSINFO\""
19633fi
19634
19635cat >> confdefs.h <<EOF
19636#define WXWIN_OS_DESCRIPTION $OSINFO
19637EOF
19638
19639
19640
19641if test "x$prefix" != "xNONE"; then
19642 wxPREFIX=$prefix
19643else
19644 wxPREFIX=$ac_default_prefix
19645fi
19646
19647cat >> confdefs.h <<EOF
19648#define wxINSTALL_PREFIX "$wxPREFIX"
19649EOF
19650
19651
19652
19653
19654
19655if test "$wxUSE_MAC" = 1 ; then
19656 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
19657fi
19658
19659
19660LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS"
19661
19662if test "$wxUSE_GUI" = "yes"; then
19663
19664 LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS"
19665
19666
19667 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
19668 drawing dynamic erase event exec font image \
19669 minimal richedit rotate widgets"
19670
19671 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
19672else
19673 SAMPLES_SUBDIRS="console"
19674fi
19675
19676
19677INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
19678$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
19679$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
19680
19681if test "$wxUSE_GTK" = 1; then
19682 WXCONFIG_INCLUDE=
19683else
19684 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
19685fi
19686
19687if test "$GXX" = yes ; then
19688 CXXWARNINGS="-Wall"
19689
19690 if test "$wxUSE_NO_DEPS" = "no" ; then
19691 CFLAGS="-MMD $CFLAGS"
19692 CXXFLAGS="-MMD $CXXFLAGS"
19693 fi
19694fi
19695
19696EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
19697
19698CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
19699CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
19700
19701LDFLAGS="$LDFLAGS$PROFILE"
19702
19703SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
19790echo "configure:19791: checking whether ${MAKE-make} sets \${MAKE}" >&5
19791set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
19792if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
19793 echo $ac_n "(cached) $ac_c" 1>&6
19794else
19795 cat > conftestmake <<\EOF
19796all:
19797 @echo 'ac_maketemp="${MAKE}"'
19798EOF
19799# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19800eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
19801if test -n "$ac_maketemp"; then
19802 eval ac_cv_prog_make_${ac_make}_set=yes
19803else
19804 eval ac_cv_prog_make_${ac_make}_set=no
19805fi
19806rm -f conftestmake
19807fi
19808if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19809 echo "$ac_t""yes" 1>&6
19810 SET_MAKE=
19811else
19812 echo "$ac_t""no" 1>&6
19813 SET_MAKE="MAKE=${MAKE-make}"
19814fi
19815
19816
19817if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
19818 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
19819fi
19820
19821
19822
19823if test "$wxUSE_GUI" = "yes"; then
19824 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
19825 wx_cv_if_gnu_make=$IF_GNU_MAKE
19826 wx_cv_path_ifs=$PATH_IFS
19827 wx_cv_program_ext=$PROGRAM_EXT
19828 wx_cv_target_library=$WX_TARGET_LIBRARY
19829 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
19830 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
19831 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
19832 wx_cv_path_ifs wx_cv_program_ext \
19833 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
19834 subdirs="demos samples utils contrib"
19835
19836fi
19837
19838trap '' 1 2 15
19839cat > confcache <<\EOF
19840# This file is a shell script that caches the results of configure
19841# tests run on this system so they can be shared between configure
19842# scripts and configure runs. It is not useful on other systems.
19843# If it contains results you don't want to keep, you may remove or edit it.
19844#
19845# By default, configure uses ./config.cache as the cache file,
19846# creating it if it does not exist already. You can give configure
19847# the --cache-file=FILE option to use a different cache file; that is
19848# what configure does when it calls configure scripts in
19849# subdirectories, so they share the cache.
19850# Giving --cache-file=/dev/null disables caching, for debugging configure.
19851# config.status only pays attention to the cache file if you give it the
19852# --recheck option to rerun configure.
19853#
19854EOF
19855# The following way of writing the cache mishandles newlines in values,
19856# but we know of no workaround that is simple, portable, and efficient.
19857# So, don't put newlines in cache variables' values.
19858# Ultrix sh set writes to stderr and can't be redirected directly,
19859# and sets the high bit in the cache file unless we assign to the vars.
19860(set) 2>&1 |
19861 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19862 *ac_space=\ *)
19863 # `set' does not quote correctly, so add quotes (double-quote substitution
19864 # turns \\\\ into \\, and sed turns \\ into \).
19865 sed -n \
19866 -e "s/'/'\\\\''/g" \
19867 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19868 ;;
19869 *)
19870 # `set' quotes correctly as required by POSIX, so do not add quotes.
19871 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
19872 ;;
19873 esac >> confcache
19874if cmp -s $cache_file confcache; then
19875 :
19876else
19877 if test -w $cache_file; then
19878 echo "updating cache $cache_file"
19879 cat confcache > $cache_file
19880 else
19881 echo "not updating unwritable cache $cache_file"
19882 fi
19883fi
19884rm -f confcache
19885
19886trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
19887
19888test "x$prefix" = xNONE && prefix=$ac_default_prefix
19889# Let make expand exec_prefix.
19890test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19891
19892# Any assignment to VPATH causes Sun make to only execute
19893# the first set of double-colon rules, so remove it if not needed.
19894# If there is a colon in the path, we need to keep it.
19895if test "x$srcdir" = x.; then
19896 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
19897fi
19898
19899trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
19900
19901DEFS=-DHAVE_CONFIG_H
19902
19903# Without the "./", some shells look in PATH for config.status.
19904: ${CONFIG_STATUS=./config.status}
19905
19906echo creating $CONFIG_STATUS
19907rm -f $CONFIG_STATUS
19908cat > $CONFIG_STATUS <<EOF
19909#! /bin/sh
19910# Generated automatically by configure.
19911# Run this file to recreate the current configuration.
19912# This directory was configured as follows,
19913# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19914#
19915# $0 $ac_configure_args
19916#
19917# Compiler output produced by configure, useful for debugging
19918# configure, is in ./config.log if it exists.
19919
19920ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
19921for ac_option
19922do
19923 case "\$ac_option" in
19924 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19925 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
19926 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
19927 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
19928 echo "$CONFIG_STATUS generated by autoconf version 2.13"
19929 exit 0 ;;
19930 -help | --help | --hel | --he | --h)
19931 echo "\$ac_cs_usage"; exit 0 ;;
19932 *) echo "\$ac_cs_usage"; exit 1 ;;
19933 esac
19934done
19935
19936ac_given_srcdir=$srcdir
19937ac_given_INSTALL="$INSTALL"
19938
19939trap 'rm -fr `echo "
19940 wx-config
19941 src/make.env
19942 src/makeprog.env
19943 src/makelib.env
19944 Makefile
19945 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
19946EOF
19947cat >> $CONFIG_STATUS <<EOF
19948
19949# Protect against being on the right side of a sed subst in config.status.
19950sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
19951 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
19952$ac_vpsub
19953$extrasub
19954s%@SHELL@%$SHELL%g
19955s%@CFLAGS@%$CFLAGS%g
19956s%@CPPFLAGS@%$CPPFLAGS%g
19957s%@CXXFLAGS@%$CXXFLAGS%g
19958s%@FFLAGS@%$FFLAGS%g
19959s%@DEFS@%$DEFS%g
19960s%@LDFLAGS@%$LDFLAGS%g
19961s%@LIBS@%$LIBS%g
19962s%@exec_prefix@%$exec_prefix%g
19963s%@prefix@%$prefix%g
19964s%@program_transform_name@%$program_transform_name%g
19965s%@bindir@%$bindir%g
19966s%@sbindir@%$sbindir%g
19967s%@libexecdir@%$libexecdir%g
19968s%@datadir@%$datadir%g
19969s%@sysconfdir@%$sysconfdir%g
19970s%@sharedstatedir@%$sharedstatedir%g
19971s%@localstatedir@%$localstatedir%g
19972s%@libdir@%$libdir%g
19973s%@includedir@%$includedir%g
19974s%@oldincludedir@%$oldincludedir%g
19975s%@infodir@%$infodir%g
19976s%@mandir@%$mandir%g
19977s%@host@%$host%g
19978s%@host_alias@%$host_alias%g
19979s%@host_cpu@%$host_cpu%g
19980s%@host_vendor@%$host_vendor%g
19981s%@host_os@%$host_os%g
19982s%@target@%$target%g
19983s%@target_alias@%$target_alias%g
19984s%@target_cpu@%$target_cpu%g
19985s%@target_vendor@%$target_vendor%g
19986s%@target_os@%$target_os%g
19987s%@build@%$build%g
19988s%@build_alias@%$build_alias%g
19989s%@build_cpu@%$build_cpu%g
19990s%@build_vendor@%$build_vendor%g
19991s%@build_os@%$build_os%g
19992s%@CC@%$CC%g
19993s%@CPP@%$CPP%g
19994s%@CXX@%$CXX%g
19995s%@RANLIB@%$RANLIB%g
19996s%@AR@%$AR%g
19997s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
19998s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
19999s%@INSTALL_DATA@%$INSTALL_DATA%g
20000s%@STRIP@%$STRIP%g
20001s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
20002s%@YACC@%$YACC%g
20003s%@LEX@%$LEX%g
20004s%@LEXLIB@%$LEXLIB%g
20005s%@LN_S@%$LN_S%g
20006s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
20007s%@GTK_CFLAGS@%$GTK_CFLAGS%g
20008s%@GTK_LIBS@%$GTK_LIBS%g
20009s%@GTK_CONFIG@%$GTK_CONFIG%g
20010s%@X_CFLAGS@%$X_CFLAGS%g
20011s%@X_PRE_LIBS@%$X_PRE_LIBS%g
20012s%@X_LIBS@%$X_LIBS%g
20013s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
20014s%@RESCOMP@%$RESCOMP%g
20015s%@DEREZ@%$DEREZ%g
20016s%@CXXCPP@%$CXXCPP%g
20017s%@LIBICONV@%$LIBICONV%g
20018s%@LEX_STEM@%$LEX_STEM%g
20019s%@PATH_IFS@%$PATH_IFS%g
20020s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
20021s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
20022s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
20023s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
20024s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
20025s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
20026s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
20027s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
20028s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
20029s%@PROGRAM_EXT@%$PROGRAM_EXT%g
20030s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
20031s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
20032s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
20033s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
20034s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
20035s%@WX_ALL@%$WX_ALL%g
20036s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
20037s%@SHARED_LD@%$SHARED_LD%g
20038s%@PIC_FLAG@%$PIC_FLAG%g
20039s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
20040s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
20041s%@SONAME_FLAGS@%$SONAME_FLAGS%g
20042s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
20043s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
20044s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
20045s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
20046s%@USE_GUI@%$USE_GUI%g
20047s%@AFMINSTALL@%$AFMINSTALL%g
20048s%@TOOLKIT@%$TOOLKIT%g
20049s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
20050s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
20051s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
20052s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
20053s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
20054s%@cross_compiling@%$cross_compiling%g
20055s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
20056s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
20057s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
20058s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
20059s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
20060s%@ALL_OBJECTS@%$ALL_OBJECTS%g
20061s%@GUIDIST@%$GUIDIST%g
20062s%@PORT_FILES@%$PORT_FILES%g
20063s%@DISTDIR@%$DISTDIR%g
20064s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
20065s%@LDFLAGS_GL@%$LDFLAGS_GL%g
20066s%@OPENGL_LIBS@%$OPENGL_LIBS%g
20067s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
20068s%@EXTRADEFS@%$EXTRADEFS%g
20069s%@RESFLAGS@%$RESFLAGS%g
20070s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
20071s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
20072s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
20073s%@LIBWXMACRES@%$LIBWXMACRES%g
20074s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
20075s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
20076s%@DLLTOOL@%$DLLTOOL%g
20077s%@AS@%$AS%g
20078s%@NM@%$NM%g
20079s%@LD@%$LD%g
20080s%@MAKEINFO@%$MAKEINFO%g
20081s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
20082s%@SET_MAKE@%$SET_MAKE%g
20083s%@subdirs@%$subdirs%g
20084
20085CEOF
20086EOF
20087
20088cat >> $CONFIG_STATUS <<\EOF
20089
20090# Split the substitutions into bite-sized pieces for seds with
20091# small command number limits, like on Digital OSF/1 and HP-UX.
20092ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
20093ac_file=1 # Number of current file.
20094ac_beg=1 # First line for current file.
20095ac_end=$ac_max_sed_cmds # Line after last line for current file.
20096ac_more_lines=:
20097ac_sed_cmds=""
20098while $ac_more_lines; do
20099 if test $ac_beg -gt 1; then
20100 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
20101 else
20102 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
20103 fi
20104 if test ! -s conftest.s$ac_file; then
20105 ac_more_lines=false
20106 rm -f conftest.s$ac_file
20107 else
20108 if test -z "$ac_sed_cmds"; then
20109 ac_sed_cmds="sed -f conftest.s$ac_file"
20110 else
20111 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
20112 fi
20113 ac_file=`expr $ac_file + 1`
20114 ac_beg=$ac_end
20115 ac_end=`expr $ac_end + $ac_max_sed_cmds`
20116 fi
20117done
20118if test -z "$ac_sed_cmds"; then
20119 ac_sed_cmds=cat
20120fi
20121EOF
20122
20123cat >> $CONFIG_STATUS <<EOF
20124
20125CONFIG_FILES=\${CONFIG_FILES-"wx-config
20126 src/make.env
20127 src/makeprog.env
20128 src/makelib.env
20129 Makefile
20130 "}
20131EOF
20132cat >> $CONFIG_STATUS <<\EOF
20133for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
20134 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20135 case "$ac_file" in
20136 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20137 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20138 *) ac_file_in="${ac_file}.in" ;;
20139 esac
20140
20141 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
20142
20143 # Remove last slash and all that follows it. Not all systems have dirname.
20144 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20145 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20146 # The file is in a subdirectory.
20147 test ! -d "$ac_dir" && mkdir "$ac_dir"
20148 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
20149 # A "../" for each directory in $ac_dir_suffix.
20150 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
20151 else
20152 ac_dir_suffix= ac_dots=
20153 fi
20154
20155 case "$ac_given_srcdir" in
20156 .) srcdir=.
20157 if test -z "$ac_dots"; then top_srcdir=.
20158 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
20159 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
20160 *) # Relative path.
20161 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
20162 top_srcdir="$ac_dots$ac_given_srcdir" ;;
20163 esac
20164
20165 case "$ac_given_INSTALL" in
20166 [/$]*) INSTALL="$ac_given_INSTALL" ;;
20167 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
20168 esac
20169
20170 echo creating "$ac_file"
20171 rm -f "$ac_file"
20172 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
20173 case "$ac_file" in
20174 *Makefile*) ac_comsub="1i\\
20175# $configure_input" ;;
20176 *) ac_comsub= ;;
20177 esac
20178
20179 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20180 sed -e "$ac_comsub
20181s%@configure_input@%$configure_input%g
20182s%@srcdir@%$srcdir%g
20183s%@top_srcdir@%$top_srcdir%g
20184s%@INSTALL@%$INSTALL%g
20185" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
20186fi; done
20187rm -f conftest.s*
20188
20189# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20190# NAME is the cpp macro being defined and VALUE is the value it is being given.
20191#
20192# ac_d sets the value in "#define NAME VALUE" lines.
20193ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20194ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
20195ac_dC='\3'
20196ac_dD='%g'
20197# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
20198ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20199ac_uB='\([ ]\)%\1#\2define\3'
20200ac_uC=' '
20201ac_uD='\4%g'
20202# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20203ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20204ac_eB='$%\1#\2define\3'
20205ac_eC=' '
20206ac_eD='%g'
20207
20208if test "${CONFIG_HEADERS+set}" != set; then
20209EOF
20210cat >> $CONFIG_STATUS <<EOF
20211 CONFIG_HEADERS="setup.h:setup.h.in"
20212EOF
20213cat >> $CONFIG_STATUS <<\EOF
20214fi
20215for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
20216 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20217 case "$ac_file" in
20218 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20219 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20220 *) ac_file_in="${ac_file}.in" ;;
20221 esac
20222
20223 echo creating $ac_file
20224
20225 rm -f conftest.frag conftest.in conftest.out
20226 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20227 cat $ac_file_inputs > conftest.in
20228
20229EOF
20230
20231# Transform confdefs.h into a sed script conftest.vals that substitutes
20232# the proper values into config.h.in to produce config.h. And first:
20233# Protect against being on the right side of a sed subst in config.status.
20234# Protect against being in an unquoted here document in config.status.
20235rm -f conftest.vals
20236cat > conftest.hdr <<\EOF
20237s/[\\&%]/\\&/g
20238s%[\\$`]%\\&%g
20239s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
20240s%ac_d%ac_u%gp
20241s%ac_u%ac_e%gp
20242EOF
20243sed -n -f conftest.hdr confdefs.h > conftest.vals
20244rm -f conftest.hdr
20245
20246# This sed command replaces #undef with comments. This is necessary, for
20247# example, in the case of _POSIX_SOURCE, which is predefined and required
20248# on some systems where configure will not decide to define it.
20249cat >> conftest.vals <<\EOF
20250s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
20251EOF
20252
20253# Break up conftest.vals because some shells have a limit on
20254# the size of here documents, and old seds have small limits too.
20255
20256rm -f conftest.tail
20257while :
20258do
20259 ac_lines=`grep -c . conftest.vals`
20260 # grep -c gives empty output for an empty file on some AIX systems.
20261 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
20262 # Write a limited-size here document to conftest.frag.
20263 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
20264 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
20265 echo 'CEOF
20266 sed -f conftest.frag conftest.in > conftest.out
20267 rm -f conftest.in
20268 mv conftest.out conftest.in
20269' >> $CONFIG_STATUS
20270 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
20271 rm -f conftest.vals
20272 mv conftest.tail conftest.vals
20273done
20274rm -f conftest.vals
20275
20276cat >> $CONFIG_STATUS <<\EOF
20277 rm -f conftest.frag conftest.h
20278 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
20279 cat conftest.in >> conftest.h
20280 rm -f conftest.in
20281 if cmp -s $ac_file conftest.h 2>/dev/null; then
20282 echo "$ac_file is unchanged"
20283 rm -f conftest.h
20284 else
20285 # Remove last slash and all that follows it. Not all systems have dirname.
20286 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20287 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20288 # The file is in a subdirectory.
20289 test ! -d "$ac_dir" && mkdir "$ac_dir"
20290 fi
20291 rm -f $ac_file
20292 mv conftest.h $ac_file
20293 fi
20294fi; done
20295
20296EOF
20297cat >> $CONFIG_STATUS <<EOF
20298
20299 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
20300 LN_S="${LN_S}"
20301
20302
20303EOF
20304cat >> $CONFIG_STATUS <<\EOF
20305
20306 if test ! -h wx-config; then
20307 chmod +x wx-config
20308 mv wx-config wx${TOOLCHAIN_NAME}-config
20309 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
20310 fi
20311
20312 if test ! -d lib; then
20313 mkdir lib
20314 fi
20315 if test ! -d lib/wx; then
20316 mkdir lib/wx
20317 fi
20318 if test ! -d lib/wx/include; then
20319 mkdir lib/wx/include
20320 fi
20321 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
20322 mkdir lib/wx/include/${TOOLCHAIN_NAME}
20323 fi
20324 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
20325 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
20326 fi
20327 if test -f setup.h; then
20328 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
20329 fi
20330
20331exit 0
20332EOF
20333chmod +x $CONFIG_STATUS
20334rm -fr confdefs* $ac_clean_files
20335test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
20336
20337if test "$no_recursion" != yes; then
20338
20339 # Remove --cache-file and --srcdir arguments so they do not pile up.
20340 ac_sub_configure_args=
20341 ac_prev=
20342 for ac_arg in $ac_configure_args; do
20343 if test -n "$ac_prev"; then
20344 ac_prev=
20345 continue
20346 fi
20347 case "$ac_arg" in
20348 -cache-file | --cache-file | --cache-fil | --cache-fi \
20349 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20350 ac_prev=cache_file ;;
20351 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20352 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
20353 ;;
20354 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20355 ac_prev=srcdir ;;
20356 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20357 ;;
20358 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
20359 esac
20360 done
20361
20362 for ac_config_dir in demos samples utils contrib; do
20363
20364 # Do not complain, so a configure script can configure whichever
20365 # parts of a large source tree are present.
20366 if test ! -d $srcdir/$ac_config_dir; then
20367 continue
20368 fi
20369
20370 echo configuring in $ac_config_dir
20371
20372 case "$srcdir" in
20373 .) ;;
20374 *)
20375 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
20376 else
20377 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
20378 fi
20379 ;;
20380 esac
20381
20382 ac_popdir=`pwd`
20383 cd $ac_config_dir
20384
20385 # A "../" for each directory in /$ac_config_dir.
20386 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
20387
20388 case "$srcdir" in
20389 .) # No --srcdir option. We are building in place.
20390 ac_sub_srcdir=$srcdir ;;
20391 /*) # Absolute path.
20392 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
20393 *) # Relative path.
20394 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
20395 esac
20396
20397 # Check for guested configure; otherwise get Cygnus style configure.
20398 if test -f $ac_sub_srcdir/configure; then
20399 ac_sub_configure=$ac_sub_srcdir/configure
20400 elif test -f $ac_sub_srcdir/configure.in; then
20401 ac_sub_configure=$ac_configure
20402 else
20403 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
20404 ac_sub_configure=
20405 fi
20406
20407 # The recursion is here.
20408 if test -n "$ac_sub_configure"; then
20409
20410 # Make the cache file name correct relative to the subdirectory.
20411 case "$cache_file" in
20412 /*) ac_sub_cache_file=$cache_file ;;
20413 *) # Relative path.
20414 ac_sub_cache_file="$ac_dots$cache_file" ;;
20415 esac
20416 case "$ac_given_INSTALL" in
20417 [/$]*) INSTALL="$ac_given_INSTALL" ;;
20418 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
20419 esac
20420
20421 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
20422 # The eval makes quoting arguments work.
20423 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
20424 then :
20425 else
20426 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
20427 fi
20428 fi
20429
20430 cd $ac_popdir
20431 done
20432fi
20433
20434