]> git.saurik.com Git - wxWidgets.git/blame_incremental - configure
added wxEXPLICIT macro
[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
53
54
55
56
57
58
59# Configure paths for GTK+
60# Owen Taylor 1997-2001
61
62
63
64# Configure paths for GTK+
65# Owen Taylor 97-11-3
66
67
68
69# Guess values for system-dependent variables and create Makefiles.
70# Generated automatically using autoconf version 2.13
71# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
72#
73# This configure script is free software; the Free Software Foundation
74# gives unlimited permission to copy, distribute and modify it.
75
76# Defaults:
77ac_help=
78ac_default_prefix=/usr/local
79# Any additions from configure.in:
80ac_help="$ac_help
81 --enable-gui use GUI classes"
82ac_help="$ac_help
83 --enable-universal use wxWindows GUI controls instead of native ones"
84ac_help="$ac_help
85 --with-gtk use GTK+"
86ac_help="$ac_help
87 --with-motif use Motif/Lesstif"
88ac_help="$ac_help
89 --with-mac use Mac OS X"
90ac_help="$ac_help
91 --with-wine use WINE"
92ac_help="$ac_help
93 --with-msw use MS-Windows"
94ac_help="$ac_help
95 --with-pm use OS/2 Presentation Manager"
96ac_help="$ac_help
97 --with-mgl use SciTech MGL"
98ac_help="$ac_help
99 --with-microwin use MicroWindows"
100ac_help="$ac_help
101 --with-x11 use X11"
102ac_help="$ac_help
103 --enable-nanox use NanoX"
104ac_help="$ac_help
105 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
106ac_help="$ac_help
107 --with-libpng use libpng (PNG image format)"
108ac_help="$ac_help
109 --with-libjpeg use libjpeg (JPEG file format)"
110ac_help="$ac_help
111 --with-libtiff use libtiff (TIFF file format)"
112ac_help="$ac_help
113 --with-opengl use OpenGL (or Mesa)"
114ac_help="$ac_help
115 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
116ac_help="$ac_help
117 --with-regex enable support for wxRegEx class"
118ac_help="$ac_help
119 --with-zlib use zlib for LZW compression"
120ac_help="$ac_help
121 --with-odbc use the IODBC and wxODBC classes"
122ac_help="$ac_help
123 --enable-shared create shared library code"
124ac_help="$ac_help
125 --enable-soname set the DT_SONAME field in ELF shared libraries"
126ac_help="$ac_help
127 --enable-optimise create optimised code"
128ac_help="$ac_help
129 --enable-debug same as debug_flag and debug_info"
130ac_help="$ac_help
131 --enable-precomp enable use of precompiled headers (Mac OS X)"
132ac_help="$ac_help
133 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
134ac_help="$ac_help
135 --enable-debug_info create code with debugging information"
136ac_help="$ac_help
137 --enable-debug_gdb create code with extra GDB debugging information"
138ac_help="$ac_help
139 --enable-debug_cntxt use wxDebugContext"
140ac_help="$ac_help
141 --enable-mem_tracing create code with memory tracing"
142ac_help="$ac_help
143 --enable-profile create code with profiling information"
144ac_help="$ac_help
145 --enable-no_rtti create code without RTTI information"
146ac_help="$ac_help
147 --enable-no_exceptions create code without C++ exceptions handling"
148ac_help="$ac_help
149 --enable-permissive compile code disregarding strict ANSI"
150ac_help="$ac_help
151 --enable-no_deps create code without dependency information"
152ac_help="$ac_help
153 --enable-compat20 enable wxWindows 2.0 compatibility"
154ac_help="$ac_help
155 --disable-compat22 disable wxWindows 2.2 compatibility"
156ac_help="$ac_help
157 --enable-intl use internationalization system"
158ac_help="$ac_help
159 --enable-config use wxConfig (and derived) classes"
160ac_help="$ac_help
161 --enable-protocols use wxProtocol and derived classes"
162ac_help="$ac_help
163 --enable-ftp use wxFTP (requires wxProtocol"
164ac_help="$ac_help
165 --enable-http use wxHTTP (requires wxProtocol"
166ac_help="$ac_help
167 --enable-fileproto use wxFileProto class (requires wxProtocol"
168ac_help="$ac_help
169 --enable-sockets use socket/network classes"
170ac_help="$ac_help
171 --enable-ipc use interprocess communication (wxSocket etc.)"
172ac_help="$ac_help
173 --enable-cmdline use wxCmdLineParser class"
174ac_help="$ac_help
175 --enable-datetime use wxDateTime class"
176ac_help="$ac_help
177 --enable-timedate use obsolete wxDate/wxTime classes"
178ac_help="$ac_help
179 --enable-stopwatch use wxStopWatch class"
180ac_help="$ac_help
181 --enable-dialupman use dialup network classes"
182ac_help="$ac_help
183 --enable-apple_ieee use the Apple IEEE codec"
184ac_help="$ac_help
185 --enable-timer use wxTimer class"
186ac_help="$ac_help
187 --enable-wave use wxWave class"
188ac_help="$ac_help
189 --enable-fraction use wxFraction class"
190ac_help="$ac_help
191 --enable-dynlib use wxLibrary class for DLL loading"
192ac_help="$ac_help
193 --enable-dynamicloader use (new) wxDynamicLibrary class"
194ac_help="$ac_help
195 --enable-longlong use wxLongLong class"
196ac_help="$ac_help
197 --enable-geometry use geometry class"
198ac_help="$ac_help
199 --enable-log use logging system"
200ac_help="$ac_help
201 --enable-streams use wxStream etc classes"
202ac_help="$ac_help
203 --enable-file use wxFile classes"
204ac_help="$ac_help
205 --enable-ffile use wxFFile classes"
206ac_help="$ac_help
207 --enable-textbuf use wxTextBuffer class"
208ac_help="$ac_help
209 --enable-textfile use wxTextFile class"
210ac_help="$ac_help
211 --enable-fontmap use font encodings conversion classes"
212ac_help="$ac_help
213 --enable-unicode compile wxString with Unicode support"
214ac_help="$ac_help
215 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
216ac_help="$ac_help
217 --enable-wxprintfv use wxWindows implementation of vprintf()"
218ac_help="$ac_help
219 --enable-std_iostreams use standard C++ stream classes"
220ac_help="$ac_help
221 --enable-filesystem use virtual file systems classes"
222ac_help="$ac_help
223 --enable-fs_inet use virtual HTTP/FTP filesystems"
224ac_help="$ac_help
225 --enable-fs_zip use virtual ZIP filesystems"
226ac_help="$ac_help
227 --enable-zipstream use wxZipInputStream"
228ac_help="$ac_help
229 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
230ac_help="$ac_help
231 --enable-snglinst use wxSingleInstanceChecker class"
232ac_help="$ac_help
233 --enable-mimetype use wxMimeTypesManager"
234ac_help="$ac_help
235 --enable-sysoptions use wxSystemOptions"
236ac_help="$ac_help
237 --enable-url use wxURL class"
238ac_help="$ac_help
239 --enable-protocol use wxProtocol class"
240ac_help="$ac_help
241 --enable-protocol-http HTTP support in wxProtocol"
242ac_help="$ac_help
243 --enable-protocol-ftp FTP support in wxProtocol"
244ac_help="$ac_help
245 --enable-protocol-file FILE support in wxProtocol"
246ac_help="$ac_help
247 --enable-threads use threads"
248ac_help="$ac_help
249 --enable-docview use document view architecture"
250ac_help="$ac_help
251 --enable-help use help subsystem"
252ac_help="$ac_help
253 --enable-mshtmlhelp use MS HTML Help (win32)"
254ac_help="$ac_help
255 --enable-html use wxHTML sub-library"
256ac_help="$ac_help
257 --enable-htmlhelp use wxHTML-based help"
258ac_help="$ac_help
259 --enable-constraints use layout-constraints system"
260ac_help="$ac_help
261 --enable-printarch use printing architecture"
262ac_help="$ac_help
263 --enable-mdi use multiple document interface architecture"
264ac_help="$ac_help
265 --enable-loggui use standard GUI logger"
266ac_help="$ac_help
267 --enable-logwin use wxLogWindow"
268ac_help="$ac_help
269 --enable-logdialog use wxLogDialog"
270ac_help="$ac_help
271 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
272ac_help="$ac_help
273 --enable-prologio use Prolog IO library"
274ac_help="$ac_help
275 --enable-resources use wxWindows resources"
276ac_help="$ac_help
277 --enable-xresources use X resources for save (default for gtk+)"
278ac_help="$ac_help
279 --enable-clipboard use wxClipboard classes"
280ac_help="$ac_help
281 --enable-dnd use Drag'n'Drop classes"
282ac_help="$ac_help
283 --enable-metafile use win32 metafiles"
284ac_help="$ac_help
285 --enable-treelayout use wxTreeLayout classes"
286ac_help="$ac_help
287 --enable-controls use all usual controls"
288ac_help="$ac_help
289 --enable-accel use accelerators"
290ac_help="$ac_help
291 --enable-button use wxButton class"
292ac_help="$ac_help
293 --enable-bmpbutton use wxBitmapButton class"
294ac_help="$ac_help
295 --enable-calendar use wxCalendarCtrl class"
296ac_help="$ac_help
297 --enable-caret use wxCaret class"
298ac_help="$ac_help
299 --enable-checkbox use wxCheckBox class"
300ac_help="$ac_help
301 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
302ac_help="$ac_help
303 --enable-choice use wxChoice class"
304ac_help="$ac_help
305 --enable-combobox use wxComboBox classes"
306ac_help="$ac_help
307 --enable-gauge use wxGauge class"
308ac_help="$ac_help
309 --enable-grid use wxGrid class"
310ac_help="$ac_help
311 --enable-newgrid use new wxGrid class"
312ac_help="$ac_help
313 --enable-imaglist use wxImageList class"
314ac_help="$ac_help
315 --enable-listbox use wxListBox class"
316ac_help="$ac_help
317 --enable-listctrl use wxListCtrl class"
318ac_help="$ac_help
319 --enable-notebook use wxNotebook class"
320ac_help="$ac_help
321 --enable-propsheet use wxPropertySheet class"
322ac_help="$ac_help
323 --enable-radiobox use wxRadioBox class"
324ac_help="$ac_help
325 --enable-radiobtn use wxRadioButton class"
326ac_help="$ac_help
327 --enable-sash use wxSashWindow class"
328ac_help="$ac_help
329 --enable-scrollbar use wxScrollBar class and scrollable windows"
330ac_help="$ac_help
331 --enable-slider use wxSlider class"
332ac_help="$ac_help
333 --enable-spinbtn use wxSpinButton class"
334ac_help="$ac_help
335 --enable-spinctrl use wxSpinCtrl class"
336ac_help="$ac_help
337 --enable-splitter use wxSplitterWindow class"
338ac_help="$ac_help
339 --enable-statbmp use wxStaticBitmap class"
340ac_help="$ac_help
341 --enable-statbox use wxStaticBox class"
342ac_help="$ac_help
343 --enable-statline use wxStaticLine class"
344ac_help="$ac_help
345 --enable-stattext use wxStaticText class"
346ac_help="$ac_help
347 --enable-statusbar use wxStatusBar class"
348ac_help="$ac_help
349 --enable-tabdialog use wxTabControl class"
350ac_help="$ac_help
351 --enable-textctrl use wxTextCtrl class"
352ac_help="$ac_help
353 --enable-togglebtn use wxToggleButton class"
354ac_help="$ac_help
355 --enable-toolbar use wxToolBar class"
356ac_help="$ac_help
357 --enable-tbarnative use native wxToolBar class"
358ac_help="$ac_help
359 --enable-tbarsmpl use wxToolBarSimple class"
360ac_help="$ac_help
361 --enable-treectrl use wxTreeCtrl class"
362ac_help="$ac_help
363 --enable-tipwindow use wxTipWindow class"
364ac_help="$ac_help
365 --enable-popupwin use wxPopUpWindow class"
366ac_help="$ac_help
367 --enable-commondlg use all common dialogs"
368ac_help="$ac_help
369 --enable-choicedlg use wxChoiceDialog"
370ac_help="$ac_help
371 --enable-coldlg use wxColourDialog"
372ac_help="$ac_help
373 --enable-filedlg use wxFileDialog"
374ac_help="$ac_help
375 --enable-finddlg use wxFindReplaceDialog"
376ac_help="$ac_help
377 --enable-fontdlg use wxFontDialog"
378ac_help="$ac_help
379 --enable-dirdlg use wxDirDialog"
380ac_help="$ac_help
381 --enable-msgdlg use wxMessageDialog"
382ac_help="$ac_help
383 --enable-numberdlg use wxNumberEntryDialog"
384ac_help="$ac_help
385 --enable-splash use wxSplashScreen"
386ac_help="$ac_help
387 --enable-textdlg use wxTextDialog"
388ac_help="$ac_help
389 --enable-tipdlg use startup tips"
390ac_help="$ac_help
391 --enable-progressdlg use wxProgressDialog"
392ac_help="$ac_help
393 --enable-wizarddlg use wxWizard"
394ac_help="$ac_help
395 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
396ac_help="$ac_help
397 --enable-miniframe use wxMiniFrame class"
398ac_help="$ac_help
399 --enable-tooltips use wxToolTip class"
400ac_help="$ac_help
401 --enable-splines use spline drawing code"
402ac_help="$ac_help
403 --enable-validators use wxValidator and derived classes"
404ac_help="$ac_help
405 --enable-busyinfo use wxBusyInfo"
406ac_help="$ac_help
407 --enable-joystick use wxJoystick (Linux only)"
408ac_help="$ac_help
409 --enable-metafiles use wxMetaFile (Windows only)"
410ac_help="$ac_help
411 --enable-dragimage use wxDragImage"
412ac_help="$ac_help
413 --enable-palette use wxPalette class"
414ac_help="$ac_help
415 --enable-image use wxImage class"
416ac_help="$ac_help
417 --enable-gif use gif images (GIF file format)"
418ac_help="$ac_help
419 --enable-pcx use pcx images (PCX file format)"
420ac_help="$ac_help
421 --enable-iff use iff images (IFF file format)"
422ac_help="$ac_help
423 --enable-pnm use pnm images (PNM file format)"
424ac_help="$ac_help
425 --enable-xpm use xpm images (XPM file format)"
426ac_help="$ac_help
427 --enable-icocur use Windows ICO and CUR formats"
428ac_help="$ac_help
429 --disable-largefile omit support for large files"
430ac_help="$ac_help
431 --disable-gtktest do not try to compile and run a test GTK+ program"
432ac_help="$ac_help
433 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
434ac_help="$ac_help
435 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
436ac_help="$ac_help
437 --disable-gtktest Do not try to compile and run a test GTK program"
438ac_help="$ac_help
439 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
440ac_help="$ac_help
441 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
442ac_help="$ac_help
443 --disable-gtktest Do not try to compile and run a test GTK program"
444ac_help="$ac_help
445 --with-x use the X Window System"
446ac_help="$ac_help
447 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
448
449# Initialize some variables set by options.
450# The variables have the same names as the options, with
451# dashes changed to underlines.
452build=NONE
453cache_file=./config.cache
454exec_prefix=NONE
455host=NONE
456no_create=
457nonopt=NONE
458no_recursion=
459prefix=NONE
460program_prefix=NONE
461program_suffix=NONE
462program_transform_name=s,x,x,
463silent=
464site=
465srcdir=
466target=NONE
467verbose=
468x_includes=NONE
469x_libraries=NONE
470bindir='${exec_prefix}/bin'
471sbindir='${exec_prefix}/sbin'
472libexecdir='${exec_prefix}/libexec'
473datadir='${prefix}/share'
474sysconfdir='${prefix}/etc'
475sharedstatedir='${prefix}/com'
476localstatedir='${prefix}/var'
477libdir='${exec_prefix}/lib'
478includedir='${prefix}/include'
479oldincludedir='/usr/include'
480infodir='${prefix}/info'
481mandir='${prefix}/man'
482
483# Initialize some other variables.
484subdirs=
485MFLAGS= MAKEFLAGS=
486SHELL=${CONFIG_SHELL-/bin/sh}
487# Maximum number of lines to put in a shell here document.
488ac_max_here_lines=12
489
490ac_prev=
491for ac_option
492do
493
494 # If the previous option needs an argument, assign it.
495 if test -n "$ac_prev"; then
496 eval "$ac_prev=\$ac_option"
497 ac_prev=
498 continue
499 fi
500
501 case "$ac_option" in
502 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
503 *) ac_optarg= ;;
504 esac
505
506 # Accept the important Cygnus configure options, so we can diagnose typos.
507
508 case "$ac_option" in
509
510 -bindir | --bindir | --bindi | --bind | --bin | --bi)
511 ac_prev=bindir ;;
512 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
513 bindir="$ac_optarg" ;;
514
515 -build | --build | --buil | --bui | --bu)
516 ac_prev=build ;;
517 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
518 build="$ac_optarg" ;;
519
520 -cache-file | --cache-file | --cache-fil | --cache-fi \
521 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
522 ac_prev=cache_file ;;
523 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
524 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
525 cache_file="$ac_optarg" ;;
526
527 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
528 ac_prev=datadir ;;
529 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
530 | --da=*)
531 datadir="$ac_optarg" ;;
532
533 -disable-* | --disable-*)
534 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
535 # Reject names that are not valid shell variable names.
536 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
537 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
538 fi
539 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
540 eval "enable_${ac_feature}=no" ;;
541
542 -enable-* | --enable-*)
543 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
544 # Reject names that are not valid shell variable names.
545 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
546 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
547 fi
548 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
549 case "$ac_option" in
550 *=*) ;;
551 *) ac_optarg=yes ;;
552 esac
553 eval "enable_${ac_feature}='$ac_optarg'" ;;
554
555 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
556 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
557 | --exec | --exe | --ex)
558 ac_prev=exec_prefix ;;
559 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
560 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
561 | --exec=* | --exe=* | --ex=*)
562 exec_prefix="$ac_optarg" ;;
563
564 -gas | --gas | --ga | --g)
565 # Obsolete; use --with-gas.
566 with_gas=yes ;;
567
568 -help | --help | --hel | --he)
569 # Omit some internal or obsolete options to make the list less imposing.
570 # This message is too long to be a string in the A/UX 3.1 sh.
571 cat << EOF
572Usage: configure [options] [host]
573Options: [defaults in brackets after descriptions]
574Configuration:
575 --cache-file=FILE cache test results in FILE
576 --help print this message
577 --no-create do not create output files
578 --quiet, --silent do not print \`checking...' messages
579 --version print the version of autoconf that created configure
580Directory and file names:
581 --prefix=PREFIX install architecture-independent files in PREFIX
582 [$ac_default_prefix]
583 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
584 [same as prefix]
585 --bindir=DIR user executables in DIR [EPREFIX/bin]
586 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
587 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
588 --datadir=DIR read-only architecture-independent data in DIR
589 [PREFIX/share]
590 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
591 --sharedstatedir=DIR modifiable architecture-independent data in DIR
592 [PREFIX/com]
593 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
594 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
595 --includedir=DIR C header files in DIR [PREFIX/include]
596 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
597 --infodir=DIR info documentation in DIR [PREFIX/info]
598 --mandir=DIR man documentation in DIR [PREFIX/man]
599 --srcdir=DIR find the sources in DIR [configure dir or ..]
600 --program-prefix=PREFIX prepend PREFIX to installed program names
601 --program-suffix=SUFFIX append SUFFIX to installed program names
602 --program-transform-name=PROGRAM
603 run sed PROGRAM on installed program names
604EOF
605 cat << EOF
606Host type:
607 --build=BUILD configure for building on BUILD [BUILD=HOST]
608 --host=HOST configure for HOST [guessed]
609 --target=TARGET configure for TARGET [TARGET=HOST]
610Features and packages:
611 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
612 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
613 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
614 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
615 --x-includes=DIR X include files are in DIR
616 --x-libraries=DIR X library files are in DIR
617EOF
618 if test -n "$ac_help"; then
619 echo "--enable and --with options recognized:$ac_help"
620 fi
621 exit 0 ;;
622
623 -host | --host | --hos | --ho)
624 ac_prev=host ;;
625 -host=* | --host=* | --hos=* | --ho=*)
626 host="$ac_optarg" ;;
627
628 -includedir | --includedir | --includedi | --included | --include \
629 | --includ | --inclu | --incl | --inc)
630 ac_prev=includedir ;;
631 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
632 | --includ=* | --inclu=* | --incl=* | --inc=*)
633 includedir="$ac_optarg" ;;
634
635 -infodir | --infodir | --infodi | --infod | --info | --inf)
636 ac_prev=infodir ;;
637 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
638 infodir="$ac_optarg" ;;
639
640 -libdir | --libdir | --libdi | --libd)
641 ac_prev=libdir ;;
642 -libdir=* | --libdir=* | --libdi=* | --libd=*)
643 libdir="$ac_optarg" ;;
644
645 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
646 | --libexe | --libex | --libe)
647 ac_prev=libexecdir ;;
648 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
649 | --libexe=* | --libex=* | --libe=*)
650 libexecdir="$ac_optarg" ;;
651
652 -localstatedir | --localstatedir | --localstatedi | --localstated \
653 | --localstate | --localstat | --localsta | --localst \
654 | --locals | --local | --loca | --loc | --lo)
655 ac_prev=localstatedir ;;
656 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
657 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
658 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
659 localstatedir="$ac_optarg" ;;
660
661 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
662 ac_prev=mandir ;;
663 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
664 mandir="$ac_optarg" ;;
665
666 -nfp | --nfp | --nf)
667 # Obsolete; use --without-fp.
668 with_fp=no ;;
669
670 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
671 | --no-cr | --no-c)
672 no_create=yes ;;
673
674 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
675 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
676 no_recursion=yes ;;
677
678 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
679 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
680 | --oldin | --oldi | --old | --ol | --o)
681 ac_prev=oldincludedir ;;
682 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
683 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
684 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
685 oldincludedir="$ac_optarg" ;;
686
687 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
688 ac_prev=prefix ;;
689 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
690 prefix="$ac_optarg" ;;
691
692 -program-prefix | --program-prefix | --program-prefi | --program-pref \
693 | --program-pre | --program-pr | --program-p)
694 ac_prev=program_prefix ;;
695 -program-prefix=* | --program-prefix=* | --program-prefi=* \
696 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
697 program_prefix="$ac_optarg" ;;
698
699 -program-suffix | --program-suffix | --program-suffi | --program-suff \
700 | --program-suf | --program-su | --program-s)
701 ac_prev=program_suffix ;;
702 -program-suffix=* | --program-suffix=* | --program-suffi=* \
703 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
704 program_suffix="$ac_optarg" ;;
705
706 -program-transform-name | --program-transform-name \
707 | --program-transform-nam | --program-transform-na \
708 | --program-transform-n | --program-transform- \
709 | --program-transform | --program-transfor \
710 | --program-transfo | --program-transf \
711 | --program-trans | --program-tran \
712 | --progr-tra | --program-tr | --program-t)
713 ac_prev=program_transform_name ;;
714 -program-transform-name=* | --program-transform-name=* \
715 | --program-transform-nam=* | --program-transform-na=* \
716 | --program-transform-n=* | --program-transform-=* \
717 | --program-transform=* | --program-transfor=* \
718 | --program-transfo=* | --program-transf=* \
719 | --program-trans=* | --program-tran=* \
720 | --progr-tra=* | --program-tr=* | --program-t=*)
721 program_transform_name="$ac_optarg" ;;
722
723 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
724 | -silent | --silent | --silen | --sile | --sil)
725 silent=yes ;;
726
727 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
728 ac_prev=sbindir ;;
729 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
730 | --sbi=* | --sb=*)
731 sbindir="$ac_optarg" ;;
732
733 -sharedstatedir | --sharedstatedir | --sharedstatedi \
734 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
735 | --sharedst | --shareds | --shared | --share | --shar \
736 | --sha | --sh)
737 ac_prev=sharedstatedir ;;
738 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
739 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
740 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
741 | --sha=* | --sh=*)
742 sharedstatedir="$ac_optarg" ;;
743
744 -site | --site | --sit)
745 ac_prev=site ;;
746 -site=* | --site=* | --sit=*)
747 site="$ac_optarg" ;;
748
749 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
750 ac_prev=srcdir ;;
751 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
752 srcdir="$ac_optarg" ;;
753
754 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
755 | --syscon | --sysco | --sysc | --sys | --sy)
756 ac_prev=sysconfdir ;;
757 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
758 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
759 sysconfdir="$ac_optarg" ;;
760
761 -target | --target | --targe | --targ | --tar | --ta | --t)
762 ac_prev=target ;;
763 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
764 target="$ac_optarg" ;;
765
766 -v | -verbose | --verbose | --verbos | --verbo | --verb)
767 verbose=yes ;;
768
769 -version | --version | --versio | --versi | --vers)
770 echo "configure generated by autoconf version 2.13"
771 exit 0 ;;
772
773 -with-* | --with-*)
774 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
775 # Reject names that are not valid shell variable names.
776 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
777 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
778 fi
779 ac_package=`echo $ac_package| sed 's/-/_/g'`
780 case "$ac_option" in
781 *=*) ;;
782 *) ac_optarg=yes ;;
783 esac
784 eval "with_${ac_package}='$ac_optarg'" ;;
785
786 -without-* | --without-*)
787 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
788 # Reject names that are not valid shell variable names.
789 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
790 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
791 fi
792 ac_package=`echo $ac_package| sed 's/-/_/g'`
793 eval "with_${ac_package}=no" ;;
794
795 --x)
796 # Obsolete; use --with-x.
797 with_x=yes ;;
798
799 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
800 | --x-incl | --x-inc | --x-in | --x-i)
801 ac_prev=x_includes ;;
802 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
803 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
804 x_includes="$ac_optarg" ;;
805
806 -x-libraries | --x-libraries | --x-librarie | --x-librari \
807 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
808 ac_prev=x_libraries ;;
809 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
810 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
811 x_libraries="$ac_optarg" ;;
812
813 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
814 ;;
815
816 *)
817 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
818 echo "configure: warning: $ac_option: invalid host type" 1>&2
819 fi
820 if test "x$nonopt" != xNONE; then
821 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
822 fi
823 nonopt="$ac_option"
824 ;;
825
826 esac
827done
828
829if test -n "$ac_prev"; then
830 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
831fi
832
833trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
834
835# File descriptor usage:
836# 0 standard input
837# 1 file creation
838# 2 errors and warnings
839# 3 some systems may open it to /dev/tty
840# 4 used on the Kubota Titan
841# 6 checking for... messages and results
842# 5 compiler messages saved in config.log
843if test "$silent" = yes; then
844 exec 6>/dev/null
845else
846 exec 6>&1
847fi
848exec 5>./config.log
849
850echo "\
851This file contains any messages produced by compilers while
852running configure, to aid debugging if configure makes a mistake.
853" 1>&5
854
855# Strip out --no-create and --no-recursion so they do not pile up.
856# Also quote any args containing shell metacharacters.
857ac_configure_args=
858for ac_arg
859do
860 case "$ac_arg" in
861 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
862 | --no-cr | --no-c) ;;
863 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
864 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
865 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
866 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
867 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
868 esac
869done
870
871# NLS nuisances.
872# Only set these to C if already set. These must not be set unconditionally
873# because not all systems understand e.g. LANG=C (notably SCO).
874# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
875# Non-C LC_CTYPE values break the ctype check.
876if test "${LANG+set}" = set; then LANG=C; export LANG; fi
877if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
878if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
879if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
880
881# confdefs.h avoids OS command line length limits that DEFS can exceed.
882rm -rf conftest* confdefs.h
883# AIX cpp loses on an empty file, so make sure it contains at least a newline.
884echo > confdefs.h
885
886# A filename unique to this package, relative to the directory that
887# configure is in, which we can look for to find out if srcdir is correct.
888ac_unique_file=wx-config.in
889
890# Find the source files, if location was not specified.
891if test -z "$srcdir"; then
892 ac_srcdir_defaulted=yes
893 # Try the directory containing this script, then its parent.
894 ac_prog=$0
895 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
896 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
897 srcdir=$ac_confdir
898 if test ! -r $srcdir/$ac_unique_file; then
899 srcdir=..
900 fi
901else
902 ac_srcdir_defaulted=no
903fi
904if test ! -r $srcdir/$ac_unique_file; then
905 if test "$ac_srcdir_defaulted" = yes; then
906 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
907 else
908 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
909 fi
910fi
911srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
912
913# Prefer explicitly selected file to automatically selected ones.
914if test -z "$CONFIG_SITE"; then
915 if test "x$prefix" != xNONE; then
916 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
917 else
918 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
919 fi
920fi
921for ac_site_file in $CONFIG_SITE; do
922 if test -r "$ac_site_file"; then
923 echo "loading site script $ac_site_file"
924 . "$ac_site_file"
925 fi
926done
927
928if test -r "$cache_file"; then
929 echo "loading cache $cache_file"
930 . $cache_file
931else
932 echo "creating cache $cache_file"
933 > $cache_file
934fi
935
936ac_ext=c
937# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
938ac_cpp='$CPP $CPPFLAGS'
939ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
940ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
941cross_compiling=$ac_cv_prog_cc_cross
942
943ac_exeext=
944ac_objext=o
945if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
946 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
947 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
948 ac_n= ac_c='
949' ac_t=' '
950 else
951 ac_n=-n ac_c= ac_t=
952 fi
953else
954 ac_n= ac_c='\c' ac_t=
955fi
956
957
958
959ac_aux_dir=
960for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
961 if test -f $ac_dir/install-sh; then
962 ac_aux_dir=$ac_dir
963 ac_install_sh="$ac_aux_dir/install-sh -c"
964 break
965 elif test -f $ac_dir/install.sh; then
966 ac_aux_dir=$ac_dir
967 ac_install_sh="$ac_aux_dir/install.sh -c"
968 break
969 fi
970done
971if test -z "$ac_aux_dir"; then
972 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
973fi
974ac_config_guess=$ac_aux_dir/config.guess
975ac_config_sub=$ac_aux_dir/config.sub
976ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
977
978
979# Do some error checking and defaulting for the host and target type.
980# The inputs are:
981# configure --host=HOST --target=TARGET --build=BUILD NONOPT
982#
983# The rules are:
984# 1. You are not allowed to specify --host, --target, and nonopt at the
985# same time.
986# 2. Host defaults to nonopt.
987# 3. If nonopt is not specified, then host defaults to the current host,
988# as determined by config.guess.
989# 4. Target and build default to nonopt.
990# 5. If nonopt is not specified, then target and build default to host.
991
992# The aliases save the names the user supplied, while $host etc.
993# will get canonicalized.
994case $host---$target---$nonopt in
995NONE---*---* | *---NONE---* | *---*---NONE) ;;
996*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
997esac
998
999
1000# Make sure we can run config.sub.
1001if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1002else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1003fi
1004
1005echo $ac_n "checking host system type""... $ac_c" 1>&6
1006echo "configure:1007: checking host system type" >&5
1007
1008host_alias=$host
1009case "$host_alias" in
1010NONE)
1011 case $nonopt in
1012 NONE)
1013 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1014 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1015 fi ;;
1016 *) host_alias=$nonopt ;;
1017 esac ;;
1018esac
1019
1020host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1021host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1022host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1023host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1024echo "$ac_t""$host" 1>&6
1025
1026echo $ac_n "checking target system type""... $ac_c" 1>&6
1027echo "configure:1028: checking target system type" >&5
1028
1029target_alias=$target
1030case "$target_alias" in
1031NONE)
1032 case $nonopt in
1033 NONE) target_alias=$host_alias ;;
1034 *) target_alias=$nonopt ;;
1035 esac ;;
1036esac
1037
1038target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1039target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1040target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1041target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1042echo "$ac_t""$target" 1>&6
1043
1044echo $ac_n "checking build system type""... $ac_c" 1>&6
1045echo "configure:1046: checking build system type" >&5
1046
1047build_alias=$build
1048case "$build_alias" in
1049NONE)
1050 case $nonopt in
1051 NONE) build_alias=$host_alias ;;
1052 *) build_alias=$nonopt ;;
1053 esac ;;
1054esac
1055
1056build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1057build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1058build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1059build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1060echo "$ac_t""$build" 1>&6
1061
1062test "$host_alias" != "$target_alias" &&
1063 test "$program_prefix$program_suffix$program_transform_name" = \
1064 NONENONEs,x,x, &&
1065 program_prefix=${target_alias}-
1066
1067
1068
1069WX_MAJOR_VERSION_NUMBER=2
1070WX_MINOR_VERSION_NUMBER=3
1071WX_RELEASE_NUMBER=3
1072
1073WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1074WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1075
1076WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1077
1078WX_CURRENT=2
1079WX_REVISION=0
1080WX_AGE=0
1081
1082
1083
1084USE_UNIX=1
1085USE_WIN32=0
1086USE_DOS=0
1087USE_BEOS=0
1088USE_MAC=0
1089
1090USE_LINUX=
1091USE_SGI=
1092USE_HPUX=
1093USE_SYSV=
1094USE_SVR4=
1095USE_AIX=
1096USE_SUN=
1097USE_SOLARIS=
1098USE_SUNOS=
1099USE_ALPHA=
1100USE_OSF=
1101USE_BSD=
1102USE_DARWIN=
1103USE_FREEBSD=
1104USE_OPENBSD=
1105USE_NETBSD=
1106USE_VMS=
1107USE_ULTRIX=
1108USE_DATA_GENERAL=
1109
1110NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1111
1112ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
1113
1114DEFAULT_wxUSE_GTK=0
1115DEFAULT_wxUSE_MAC=0
1116DEFAULT_wxUSE_MGL=0
1117DEFAULT_wxUSE_MICROWIN=0
1118DEFAULT_wxUSE_MOTIF=0
1119DEFAULT_wxUSE_MSW=0
1120DEFAULT_wxUSE_PM=0
1121DEFAULT_wxUSE_WINE=0
1122DEFAULT_wxUSE_X11=0
1123
1124DEFAULT_DEFAULT_wxUSE_GTK=0
1125DEFAULT_DEFAULT_wxUSE_MAC=0
1126DEFAULT_DEFAULT_wxUSE_MGL=0
1127DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1128DEFAULT_DEFAULT_wxUSE_MOTIF=0
1129DEFAULT_DEFAULT_wxUSE_MSW=0
1130DEFAULT_DEFAULT_wxUSE_PM=0
1131DEFAULT_DEFAULT_wxUSE_WINE=0
1132DEFAULT_DEFAULT_wxUSE_X11=0
1133
1134PROGRAM_EXT=
1135SO_SUFFIX=so
1136
1137case "${host}" in
1138 *-hp-hpux* )
1139 USE_HPUX=1
1140 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1141 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1142 SO_SUFFIX=sl
1143 cat >> confdefs.h <<\EOF
1144#define __HPUX__ 1
1145EOF
1146
1147 ;;
1148 *-*-linux* )
1149 USE_LINUX=1
1150 cat >> confdefs.h <<\EOF
1151#define __LINUX__ 1
1152EOF
1153
1154 TMP=`uname -m`
1155 if test "x$TMP" = "xalpha"; then
1156 USE_ALPHA=1
1157 cat >> confdefs.h <<\EOF
1158#define __ALPHA__ 1
1159EOF
1160
1161 fi
1162 DEFAULT_DEFAULT_wxUSE_GTK=1
1163 ;;
1164 *-*-irix5* | *-*-irix6* )
1165 USE_SGI=1
1166 USE_SVR4=1
1167 cat >> confdefs.h <<\EOF
1168#define __SGI__ 1
1169EOF
1170
1171 cat >> confdefs.h <<\EOF
1172#define __SVR4__ 1
1173EOF
1174
1175 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1176 ;;
1177 *-*-solaris2* )
1178 USE_SUN=1
1179 USE_SOLARIS=1
1180 USE_SVR4=1
1181 cat >> confdefs.h <<\EOF
1182#define __SUN__ 1
1183EOF
1184
1185 cat >> confdefs.h <<\EOF
1186#define __SOLARIS__ 1
1187EOF
1188
1189 cat >> confdefs.h <<\EOF
1190#define __SVR4__ 1
1191EOF
1192
1193 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1194 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1195 ;;
1196 *-*-sunos4* )
1197 USE_SUN=1
1198 USE_SUNOS=1
1199 USE_BSD=1
1200 cat >> confdefs.h <<\EOF
1201#define __SUN__ 1
1202EOF
1203
1204 cat >> confdefs.h <<\EOF
1205#define __SUNOS__ 1
1206EOF
1207
1208 cat >> confdefs.h <<\EOF
1209#define __BSD__ 1
1210EOF
1211
1212 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1213 ;;
1214 *-*-freebsd*)
1215 USE_BSD=1
1216 USE_FREEBSD=1
1217 cat >> confdefs.h <<\EOF
1218#define __FREEBSD__ 1
1219EOF
1220
1221 cat >> confdefs.h <<\EOF
1222#define __BSD__ 1
1223EOF
1224
1225 DEFAULT_DEFAULT_wxUSE_GTK=1
1226 ;;
1227 *-*-openbsd*)
1228 USE_BSD=1
1229 USE_OPENBSD=1
1230 cat >> confdefs.h <<\EOF
1231#define __FREEBSD__ 1
1232EOF
1233
1234 cat >> confdefs.h <<\EOF
1235#define __OPENBSD__ 1
1236EOF
1237
1238 DEFAULT_DEFAULT_wxUSE_GTK=1
1239 ;;
1240 *-*-netbsd*)
1241 USE_BSD=1
1242 USE_NETBSD=1
1243 cat >> confdefs.h <<\EOF
1244#define __FREEBSD__ 1
1245EOF
1246
1247 cat >> confdefs.h <<\EOF
1248#define __NETBSD__ 1
1249EOF
1250
1251 DEFAULT_DEFAULT_wxUSE_GTK=1
1252 ;;
1253 *-*-osf* )
1254 USE_ALPHA=1
1255 USE_OSF=1
1256 cat >> confdefs.h <<\EOF
1257#define __ALPHA__ 1
1258EOF
1259
1260 cat >> confdefs.h <<\EOF
1261#define __OSF__ 1
1262EOF
1263
1264 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1265 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1266 ;;
1267 *-*-dgux5* )
1268 USE_ALPHA=1
1269 USE_SVR4=1
1270 cat >> confdefs.h <<\EOF
1271#define __ALPHA__ 1
1272EOF
1273
1274 cat >> confdefs.h <<\EOF
1275#define __SVR4__ 1
1276EOF
1277
1278 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1279 ;;
1280 *-*-sysv5* )
1281 USE_SYSV=1
1282 USE_SVR4=1
1283 cat >> confdefs.h <<\EOF
1284#define __SYSV__ 1
1285EOF
1286
1287 cat >> confdefs.h <<\EOF
1288#define __SVR4__ 1
1289EOF
1290
1291 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1292 ;;
1293 *-*-aix* )
1294 USE_AIX=1
1295 USE_SYSV=1
1296 USE_SVR4=1
1297 SO_SUFFIX=a
1298 cat >> confdefs.h <<\EOF
1299#define __AIX__ 1
1300EOF
1301
1302 cat >> confdefs.h <<\EOF
1303#define __SYSV__ 1
1304EOF
1305
1306 cat >> confdefs.h <<\EOF
1307#define __SVR4__ 1
1308EOF
1309
1310 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1311 ;;
1312
1313 *-*-cygwin* | *-*-mingw32* )
1314 USE_UNIX=0
1315 USE_WIN32=1
1316 SO_SUFFIX=dll
1317 cat >> confdefs.h <<\EOF
1318#define __WIN32__ 1
1319EOF
1320
1321 cat >> confdefs.h <<\EOF
1322#define __WIN95__ 1
1323EOF
1324
1325 cat >> confdefs.h <<\EOF
1326#define __WINDOWS__ 1
1327EOF
1328
1329 cat >> confdefs.h <<\EOF
1330#define __GNUWIN32__ 1
1331EOF
1332
1333 cat >> confdefs.h <<\EOF
1334#define STRICT 1
1335EOF
1336
1337 cat >> confdefs.h <<\EOF
1338#define WINVER 0x0400
1339EOF
1340
1341 PROGRAM_EXT=".exe"
1342 RESCOMP=windres
1343 DEFAULT_DEFAULT_wxUSE_MSW=1
1344 ;;
1345
1346 *-pc-msdosdjgpp )
1347 USE_UNIX=0
1348 USE_DOS=1
1349 cat >> confdefs.h <<\EOF
1350#define __DOS__ 1
1351EOF
1352
1353 PROGRAM_EXT=".exe"
1354 DEFAULT_DEFAULT_wxUSE_MGL=1
1355 ;;
1356
1357 *-pc-os2_emx | *-pc-os2-emx )
1358 cat >> confdefs.h <<\EOF
1359#define __EMX__ 1
1360EOF
1361
1362 PROGRAM_EXT=".exe"
1363 DEFAULT_DEFAULT_wxUSE_PM=1
1364 LIBS="$LIBS -lstdcpp"
1365 ;;
1366
1367 powerpc-*-darwin* )
1368 USE_BSD=1
1369 USE_DARWIN=1
1370 SO_SUFFIX=dylib
1371 cat >> confdefs.h <<\EOF
1372#define __BSD__ 1
1373EOF
1374
1375 cat >> confdefs.h <<\EOF
1376#define __DARWIN__ 1
1377EOF
1378
1379 cat >> confdefs.h <<\EOF
1380#define __POWERPC__ 1
1381EOF
1382
1383 DEFAULT_DEFAULT_wxUSE_MAC=1
1384 ;;
1385
1386 *-*-beos* )
1387 USE_BEOS=1
1388 cat >> confdefs.h <<\EOF
1389#define __BEOS__ 1
1390EOF
1391
1392 ;;
1393
1394 *)
1395 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1396esac
1397
1398if test "$USE_UNIX" = 1 ; then
1399 wxUSE_UNIX=yes
1400 cat >> confdefs.h <<\EOF
1401#define __UNIX__ 1
1402EOF
1403
1404fi
1405
1406
1407
1408
1409 wx_arg_cache_file="configarg.cache"
1410 echo "loading argument cache $wx_arg_cache_file"
1411 rm -f ${wx_arg_cache_file}.tmp
1412 touch ${wx_arg_cache_file}.tmp
1413 touch ${wx_arg_cache_file}
1414
1415
1416DEBUG_CONFIGURE=0
1417if test $DEBUG_CONFIGURE = 1; then
1418 DEFAULT_wxUSE_UNIVERSAL=no
1419
1420 DEFAULT_wxUSE_NANOX=no
1421
1422 DEFAULT_wxUSE_THREADS=yes
1423
1424 DEFAULT_wxUSE_SHARED=yes
1425 DEFAULT_wxUSE_SONAME=no
1426 DEFAULT_wxUSE_OPTIMISE=no
1427 DEFAULT_wxUSE_PROFILE=no
1428 DEFAULT_wxUSE_NO_DEPS=no
1429 DEFAULT_wxUSE_NO_RTTI=no
1430 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1431 DEFAULT_wxUSE_PERMISSIVE=no
1432 DEFAULT_wxUSE_DEBUG_FLAG=yes
1433 DEFAULT_wxUSE_DEBUG_INFO=yes
1434 DEFAULT_wxUSE_DEBUG_GDB=yes
1435 DEFAULT_wxUSE_MEM_TRACING=no
1436 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1437 DEFAULT_wxUSE_DMALLOC=no
1438 DEFAULT_wxUSE_PRECOMP=no
1439 DEFAULT_wxUSE_APPLE_IEEE=no
1440
1441 DEFAULT_wxUSE_LOG=yes
1442 DEFAULT_wxUSE_LOGWINDOW=no
1443 DEFAULT_wxUSE_LOGGUI=no
1444 DEFAULT_wxUSE_LOGDIALOG=no
1445
1446 DEFAULT_wxUSE_GUI=yes
1447 DEFAULT_wxUSE_CONTROLS=no
1448
1449 DEFAULT_wxUSE_REGEX=no
1450 DEFAULT_wxUSE_ZLIB=no
1451 DEFAULT_wxUSE_LIBPNG=no
1452 DEFAULT_wxUSE_LIBJPEG=no
1453 DEFAULT_wxUSE_LIBTIFF=no
1454 DEFAULT_wxUSE_ODBC=no
1455 DEFAULT_wxUSE_OPENGL=no
1456
1457 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1458 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1459 DEFAULT_wxUSE_STD_IOSTREAM=no
1460 DEFAULT_wxUSE_CMDLINE_PARSER=no
1461 DEFAULT_wxUSE_DATETIME=no
1462 DEFAULT_wxUSE_TIMEDATE=no
1463 DEFAULT_wxUSE_TIMER=no
1464 DEFAULT_wxUSE_STOPWATCH=no
1465 DEFAULT_wxUSE_FILE=no
1466 DEFAULT_wxUSE_FFILE=no
1467 DEFAULT_wxUSE_TEXTBUFFER=no
1468 DEFAULT_wxUSE_TEXTFILE=no
1469 DEFAULT_wxUSE_WAVE=no
1470 DEFAULT_wxUSE_INTL=no
1471 DEFAULT_wxUSE_CONFIG=no
1472 DEFAULT_wxUSE_FONTMAP=no
1473 DEFAULT_wxUSE_STREAMS=no
1474 DEFAULT_wxUSE_SOCKETS=no
1475 DEFAULT_wxUSE_DIALUP_MANAGER=no
1476 DEFAULT_wxUSE_JOYSTICK=no
1477 DEFAULT_wxUSE_DYNLIB_CLASS=no
1478 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1479 DEFAULT_wxUSE_LONGLONG=no
1480 DEFAULT_wxUSE_GEOMETRY=no
1481
1482 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1483 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1484 DEFAULT_wxUSE_POSTSCRIPT=no
1485
1486 DEFAULT_wxUSE_X_RESOURCES=no
1487 DEFAULT_wxUSE_CLIPBOARD=no
1488 DEFAULT_wxUSE_TOOLTIPS=no
1489 DEFAULT_wxUSE_DRAG_AND_DROP=no
1490 DEFAULT_wxUSE_DRAGIMAGE=no
1491 DEFAULT_wxUSE_SPLINES=no
1492
1493 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1494 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1495 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1496
1497 DEFAULT_wxUSE_PROLOGIO=no
1498 DEFAULT_wxUSE_RESOURCES=no
1499 DEFAULT_wxUSE_CONSTRAINTS=no
1500 DEFAULT_wxUSE_IPC=no
1501 DEFAULT_wxUSE_HELP=no
1502 DEFAULT_wxUSE_MS_HTML_HELP=no
1503 DEFAULT_wxUSE_WXHTML_HELP=no
1504 DEFAULT_wxUSE_TREELAYOUT=no
1505 DEFAULT_wxUSE_METAFILE=no
1506 DEFAULT_wxUSE_MIMETYPE=no
1507 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1508 DEFAULT_wxUSE_PROTOCOL=no
1509 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1510 DEFAULT_wxUSE_PROTOCOL_FTP=no
1511 DEFAULT_wxUSE_PROTOCOL_FILE=no
1512 DEFAULT_wxUSE_URL=no
1513
1514 DEFAULT_wxUSE_COMMONDLGS=no
1515 DEFAULT_wxUSE_CHOICEDLG=no
1516 DEFAULT_wxUSE_COLOURDLG=no
1517 DEFAULT_wxUSE_DIRDLG=no
1518 DEFAULT_wxUSE_FILEDLG=no
1519 DEFAULT_wxUSE_FINDREPLDLG=no
1520 DEFAULT_wxUSE_FONTDLG=no
1521 DEFAULT_wxUSE_MSGDLG=no
1522 DEFAULT_wxUSE_NUMBERDLG=no
1523 DEFAULT_wxUSE_TEXTDLG=no
1524 DEFAULT_wxUSE_SPLASH=no
1525 DEFAULT_wxUSE_STARTUP_TIPS=no
1526 DEFAULT_wxUSE_PROGRESSDLG=no
1527 DEFAULT_wxUSE_WIZARDDLG=no
1528
1529 DEFAULT_wxUSE_MENUS=no
1530 DEFAULT_wxUSE_MINIFRAME=no
1531 DEFAULT_wxUSE_HTML=no
1532 DEFAULT_wxUSE_FILESYSTEM=no
1533 DEFAULT_wxUSE_FS_INET=no
1534 DEFAULT_wxUSE_FS_ZIP=no
1535 DEFAULT_wxUSE_BUSYINFO=no
1536 DEFAULT_wxUSE_ZIPSTREAM=no
1537 DEFAULT_wxUSE_VALIDATORS=no
1538
1539 DEFAULT_wxUSE_ACCEL=no
1540 DEFAULT_wxUSE_BUTTON=no
1541 DEFAULT_wxUSE_BMPBUTTON=no
1542 DEFAULT_wxUSE_CALCTRL=no
1543 DEFAULT_wxUSE_CARET=no
1544 DEFAULT_wxUSE_CHECKBOX=no
1545 DEFAULT_wxUSE_CHECKLST=no
1546 DEFAULT_wxUSE_CHOICE=no
1547 DEFAULT_wxUSE_COMBOBOX=no
1548 DEFAULT_wxUSE_GAUGE=no
1549 DEFAULT_wxUSE_GRID=no
1550 DEFAULT_wxUSE_NEW_GRID=no
1551 DEFAULT_wxUSE_IMAGLIST=no
1552 DEFAULT_wxUSE_LISTBOX=no
1553 DEFAULT_wxUSE_LISTCTRL=no
1554 DEFAULT_wxUSE_NOTEBOOK=no
1555 DEFAULT_wxUSE_PROPSHEET=no
1556 DEFAULT_wxUSE_RADIOBOX=no
1557 DEFAULT_wxUSE_RADIOBTN=no
1558 DEFAULT_wxUSE_SASH=no
1559 DEFAULT_wxUSE_SCROLLBAR=no
1560 DEFAULT_wxUSE_SLIDER=no
1561 DEFAULT_wxUSE_SPINBTN=no
1562 DEFAULT_wxUSE_SPINCTRL=no
1563 DEFAULT_wxUSE_SPLITTER=no
1564 DEFAULT_wxUSE_STATBMP=no
1565 DEFAULT_wxUSE_STATBOX=no
1566 DEFAULT_wxUSE_STATLINE=no
1567 DEFAULT_wxUSE_STATTEXT=no
1568 DEFAULT_wxUSE_STATUSBAR=yes
1569 DEFAULT_wxUSE_TABDIALOG=no
1570 DEFAULT_wxUSE_TEXTCTRL=no
1571 DEFAULT_wxUSE_TOGGLEBTN=no
1572 DEFAULT_wxUSE_TOOLBAR=no
1573 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1574 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1575 DEFAULT_wxUSE_TREECTRL=no
1576 DEFAULT_wxUSE_POPUPWIN=no
1577 DEFAULT_wxUSE_TIPWINDOW=no
1578
1579 DEFAULT_wxUSE_UNICODE=no
1580 DEFAULT_wxUSE_UNICODE_MSLU=no
1581 DEFAULT_wxUSE_WCSRTOMBS=no
1582
1583 DEFAULT_wxUSE_PALETTE=no
1584 DEFAULT_wxUSE_IMAGE=no
1585 DEFAULT_wxUSE_GIF=no
1586 DEFAULT_wxUSE_PCX=no
1587 DEFAULT_wxUSE_PNM=no
1588 DEFAULT_wxUSE_IFF=no
1589 DEFAULT_wxUSE_XPM=no
1590 DEFAULT_wxUSE_ICO_CUR=no
1591else
1592 DEFAULT_wxUSE_UNIVERSAL=no
1593
1594 DEFAULT_wxUSE_NANOX=no
1595
1596 DEFAULT_wxUSE_THREADS=yes
1597
1598 DEFAULT_wxUSE_SHARED=yes
1599 DEFAULT_wxUSE_SONAME=no
1600 DEFAULT_wxUSE_OPTIMISE=yes
1601 DEFAULT_wxUSE_PROFILE=no
1602 DEFAULT_wxUSE_NO_DEPS=no
1603 DEFAULT_wxUSE_NO_RTTI=no
1604 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1605 DEFAULT_wxUSE_PERMISSIVE=no
1606 DEFAULT_wxUSE_DEBUG_FLAG=no
1607 DEFAULT_wxUSE_DEBUG_INFO=no
1608 DEFAULT_wxUSE_DEBUG_GDB=no
1609 DEFAULT_wxUSE_MEM_TRACING=no
1610 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1611 DEFAULT_wxUSE_DMALLOC=no
1612 DEFAULT_wxUSE_PRECOMP=no
1613 DEFAULT_wxUSE_APPLE_IEEE=yes
1614
1615 DEFAULT_wxUSE_LOG=yes
1616 DEFAULT_wxUSE_LOGWINDOW=yes
1617 DEFAULT_wxUSE_LOGGUI=yes
1618 DEFAULT_wxUSE_LOGDIALOG=yes
1619
1620 DEFAULT_wxUSE_GUI=yes
1621
1622 DEFAULT_wxUSE_REGEX=yes
1623 DEFAULT_wxUSE_ZLIB=yes
1624 DEFAULT_wxUSE_LIBPNG=yes
1625 DEFAULT_wxUSE_LIBJPEG=yes
1626 DEFAULT_wxUSE_LIBTIFF=yes
1627 DEFAULT_wxUSE_ODBC=no
1628 DEFAULT_wxUSE_OPENGL=no
1629
1630 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1631 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1632 DEFAULT_wxUSE_STD_IOSTREAM=no
1633 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1634 DEFAULT_wxUSE_DATETIME=yes
1635 DEFAULT_wxUSE_TIMEDATE=no
1636 DEFAULT_wxUSE_TIMER=yes
1637 DEFAULT_wxUSE_STOPWATCH=yes
1638 DEFAULT_wxUSE_FILE=yes
1639 DEFAULT_wxUSE_FFILE=yes
1640 DEFAULT_wxUSE_TEXTBUFFER=yes
1641 DEFAULT_wxUSE_TEXTFILE=yes
1642 DEFAULT_wxUSE_WAVE=no
1643 DEFAULT_wxUSE_INTL=yes
1644 DEFAULT_wxUSE_CONFIG=yes
1645 DEFAULT_wxUSE_FONTMAP=yes
1646 DEFAULT_wxUSE_STREAMS=yes
1647 DEFAULT_wxUSE_SOCKETS=yes
1648 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1649 DEFAULT_wxUSE_JOYSTICK=yes
1650 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1651 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1652 DEFAULT_wxUSE_LONGLONG=yes
1653 DEFAULT_wxUSE_GEOMETRY=yes
1654
1655 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1656 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1657 DEFAULT_wxUSE_POSTSCRIPT=yes
1658
1659 DEFAULT_wxUSE_X_RESOURCES=no
1660 DEFAULT_wxUSE_CLIPBOARD=yes
1661 DEFAULT_wxUSE_TOOLTIPS=yes
1662 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1663 DEFAULT_wxUSE_DRAGIMAGE=yes
1664 DEFAULT_wxUSE_SPLINES=yes
1665
1666 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1667 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1668 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1669
1670 DEFAULT_wxUSE_PROLOGIO=yes
1671 DEFAULT_wxUSE_RESOURCES=yes
1672 DEFAULT_wxUSE_CONSTRAINTS=yes
1673 DEFAULT_wxUSE_IPC=yes
1674 DEFAULT_wxUSE_HELP=yes
1675 DEFAULT_wxUSE_MS_HTML_HELP=yes
1676 DEFAULT_wxUSE_WXHTML_HELP=yes
1677 DEFAULT_wxUSE_TREELAYOUT=yes
1678 DEFAULT_wxUSE_METAFILE=yes
1679 DEFAULT_wxUSE_MIMETYPE=yes
1680 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1681 DEFAULT_wxUSE_PROTOCOL=yes
1682 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1683 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1684 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1685 DEFAULT_wxUSE_URL=yes
1686
1687 DEFAULT_wxUSE_COMMONDLGS=yes
1688 DEFAULT_wxUSE_CHOICEDLG=yes
1689 DEFAULT_wxUSE_COLOURDLG=yes
1690 DEFAULT_wxUSE_DIRDLG=yes
1691 DEFAULT_wxUSE_FILEDLG=yes
1692 DEFAULT_wxUSE_FINDREPLDLG=yes
1693 DEFAULT_wxUSE_FONTDLG=yes
1694 DEFAULT_wxUSE_MSGDLG=yes
1695 DEFAULT_wxUSE_NUMBERDLG=yes
1696 DEFAULT_wxUSE_TEXTDLG=yes
1697 DEFAULT_wxUSE_SPLASH=yes
1698 DEFAULT_wxUSE_STARTUP_TIPS=yes
1699 DEFAULT_wxUSE_PROGRESSDLG=yes
1700 DEFAULT_wxUSE_WIZARDDLG=yes
1701
1702 DEFAULT_wxUSE_MENUS=yes
1703 DEFAULT_wxUSE_MINIFRAME=yes
1704 DEFAULT_wxUSE_HTML=yes
1705 DEFAULT_wxUSE_FILESYSTEM=yes
1706 DEFAULT_wxUSE_FS_INET=yes
1707 DEFAULT_wxUSE_FS_ZIP=yes
1708 DEFAULT_wxUSE_BUSYINFO=yes
1709 DEFAULT_wxUSE_ZIPSTREAM=yes
1710 DEFAULT_wxUSE_VALIDATORS=yes
1711
1712 DEFAULT_wxUSE_ACCEL=yes
1713 DEFAULT_wxUSE_BUTTON=yes
1714 DEFAULT_wxUSE_BMPBUTTON=yes
1715 DEFAULT_wxUSE_CALCTRL=yes
1716 DEFAULT_wxUSE_CARET=yes
1717 DEFAULT_wxUSE_CHECKBOX=yes
1718 DEFAULT_wxUSE_CHECKLST=yes
1719 DEFAULT_wxUSE_CHOICE=yes
1720 DEFAULT_wxUSE_COMBOBOX=yes
1721 DEFAULT_wxUSE_GAUGE=yes
1722 DEFAULT_wxUSE_GRID=yes
1723 DEFAULT_wxUSE_NEW_GRID=yes
1724 DEFAULT_wxUSE_IMAGLIST=yes
1725 DEFAULT_wxUSE_LISTBOX=yes
1726 DEFAULT_wxUSE_LISTCTRL=yes
1727 DEFAULT_wxUSE_NOTEBOOK=yes
1728 DEFAULT_wxUSE_PROPSHEET=yes
1729 DEFAULT_wxUSE_RADIOBOX=yes
1730 DEFAULT_wxUSE_RADIOBTN=yes
1731 DEFAULT_wxUSE_SASH=yes
1732 DEFAULT_wxUSE_SCROLLBAR=yes
1733 DEFAULT_wxUSE_SLIDER=yes
1734 DEFAULT_wxUSE_SPINBTN=yes
1735 DEFAULT_wxUSE_SPINCTRL=yes
1736 DEFAULT_wxUSE_SPLITTER=yes
1737 DEFAULT_wxUSE_STATBMP=yes
1738 DEFAULT_wxUSE_STATBOX=yes
1739 DEFAULT_wxUSE_STATLINE=yes
1740 DEFAULT_wxUSE_STATTEXT=yes
1741 DEFAULT_wxUSE_STATUSBAR=yes
1742 DEFAULT_wxUSE_TABDIALOG=no
1743 DEFAULT_wxUSE_TEXTCTRL=yes
1744 DEFAULT_wxUSE_TOGGLEBTN=yes
1745 DEFAULT_wxUSE_TOOLBAR=yes
1746 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1747 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1748 DEFAULT_wxUSE_TREECTRL=yes
1749 DEFAULT_wxUSE_POPUPWIN=yes
1750 DEFAULT_wxUSE_TIPWINDOW=yes
1751
1752 DEFAULT_wxUSE_UNICODE=no
1753 DEFAULT_wxUSE_UNICODE_MSLU=yes
1754 DEFAULT_wxUSE_WCSRTOMBS=no
1755
1756 DEFAULT_wxUSE_PALETTE=yes
1757 DEFAULT_wxUSE_IMAGE=yes
1758 DEFAULT_wxUSE_GIF=yes
1759 DEFAULT_wxUSE_PCX=yes
1760 DEFAULT_wxUSE_IFF=no
1761 DEFAULT_wxUSE_PNM=yes
1762 DEFAULT_wxUSE_XPM=yes
1763 DEFAULT_wxUSE_ICO_CUR=yes
1764fi
1765
1766
1767
1768for toolkit in `echo $ALL_TOOLKITS`; do
1769 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1770 if test "x$LINE" != x ; then
1771 has_toolkit_in_cache=1
1772 eval "DEFAULT_$LINE"
1773 eval "CACHE_$toolkit=1"
1774 fi
1775done
1776
1777
1778
1779 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1780echo "configure:1781: checking for --enable-gui" >&5
1781 no_cache=0
1782 # Check whether --enable-gui or --disable-gui was given.
1783if test "${enable_gui+set}" = set; then
1784 enableval="$enable_gui"
1785
1786 if test "$enableval" = yes; then
1787 ac_cv_use_gui='wxUSE_GUI=yes'
1788 else
1789 ac_cv_use_gui='wxUSE_GUI=no'
1790 fi
1791
1792else
1793
1794 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1795 if test "x$LINE" != x ; then
1796 eval "DEFAULT_$LINE"
1797 else
1798 no_cache=1
1799 fi
1800
1801 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1802
1803fi
1804
1805
1806 eval "$ac_cv_use_gui"
1807 if test "$no_cache" != 1; then
1808 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1809 fi
1810
1811 if test "$wxUSE_GUI" = yes; then
1812 echo "$ac_t""yes" 1>&6
1813 else
1814 echo "$ac_t""no" 1>&6
1815 fi
1816
1817
1818if test "$wxUSE_GUI" = "yes"; then
1819
1820
1821 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1822echo "configure:1823: checking for --enable-universal" >&5
1823 no_cache=0
1824 # Check whether --enable-universal or --disable-universal was given.
1825if test "${enable_universal+set}" = set; then
1826 enableval="$enable_universal"
1827
1828 if test "$enableval" = yes; then
1829 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1830 else
1831 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1832 fi
1833
1834else
1835
1836 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1837 if test "x$LINE" != x ; then
1838 eval "DEFAULT_$LINE"
1839 else
1840 no_cache=1
1841 fi
1842
1843 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1844
1845fi
1846
1847
1848 eval "$ac_cv_use_universal"
1849 if test "$no_cache" != 1; then
1850 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1851 fi
1852
1853 if test "$wxUSE_UNIVERSAL" = yes; then
1854 echo "$ac_t""yes" 1>&6
1855 else
1856 echo "$ac_t""no" 1>&6
1857 fi
1858
1859# Check whether --with-gtk or --without-gtk was given.
1860if test "${with_gtk+set}" = set; then
1861 withval="$with_gtk"
1862 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1863fi
1864
1865# Check whether --with-motif or --without-motif was given.
1866if test "${with_motif+set}" = set; then
1867 withval="$with_motif"
1868 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1869fi
1870
1871# Check whether --with-mac or --without-mac was given.
1872if test "${with_mac+set}" = set; then
1873 withval="$with_mac"
1874 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1875fi
1876
1877# Check whether --with-wine or --without-wine was given.
1878if test "${with_wine+set}" = set; then
1879 withval="$with_wine"
1880 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1881fi
1882
1883# Check whether --with-msw or --without-msw was given.
1884if test "${with_msw+set}" = set; then
1885 withval="$with_msw"
1886 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1887fi
1888
1889# Check whether --with-pm or --without-pm was given.
1890if test "${with_pm+set}" = set; then
1891 withval="$with_pm"
1892 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1893fi
1894
1895# Check whether --with-mgl or --without-mgl was given.
1896if test "${with_mgl+set}" = set; then
1897 withval="$with_mgl"
1898 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1899fi
1900
1901# Check whether --with-microwin or --without-microwin was given.
1902if test "${with_microwin+set}" = set; then
1903 withval="$with_microwin"
1904 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1905fi
1906
1907# Check whether --with-x11 or --without-x11 was given.
1908if test "${with_x11+set}" = set; then
1909 withval="$with_x11"
1910 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1911fi
1912
1913
1914 echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6
1915echo "configure:1916: checking for --enable-nanox" >&5
1916 no_cache=0
1917 # Check whether --enable-nanox or --disable-nanox was given.
1918if test "${enable_nanox+set}" = set; then
1919 enableval="$enable_nanox"
1920
1921 if test "$enableval" = yes; then
1922 ac_cv_use_nanox='wxUSE_NANOX=yes'
1923 else
1924 ac_cv_use_nanox='wxUSE_NANOX=no'
1925 fi
1926
1927else
1928
1929 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1930 if test "x$LINE" != x ; then
1931 eval "DEFAULT_$LINE"
1932 else
1933 no_cache=1
1934 fi
1935
1936 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1937
1938fi
1939
1940
1941 eval "$ac_cv_use_nanox"
1942 if test "$no_cache" != 1; then
1943 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1944 fi
1945
1946 if test "$wxUSE_NANOX" = yes; then
1947 echo "$ac_t""yes" 1>&6
1948 else
1949 echo "$ac_t""no" 1>&6
1950 fi
1951
1952
1953# Check whether --enable-gtk2 or --disable-gtk2 was given.
1954if test "${enable_gtk2+set}" = set; then
1955 enableval="$enable_gtk2"
1956 wxUSE_GTK2="yes"
1957else
1958 wxUSE_GTK2="no"
1959fi
1960
1961
1962
1963 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1964echo "configure:1965: checking for --with-libpng" >&5
1965 no_cache=0
1966 # Check whether --with-libpng or --without-libpng was given.
1967if test "${with_libpng+set}" = set; then
1968 withval="$with_libpng"
1969
1970 if test "$withval" = yes; then
1971 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1972 elif test "$withval" = no; then
1973 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1974 elif test "$withval" = sys; then
1975 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1976 elif test "$withval" = builtin; then
1977 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1978 else
1979 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1980 fi
1981
1982else
1983
1984 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1985 if test "x$LINE" != x ; then
1986 eval "DEFAULT_$LINE"
1987 else
1988 no_cache=1
1989 fi
1990
1991 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1992
1993fi
1994
1995
1996 eval "$ac_cv_use_libpng"
1997 if test "$no_cache" != 1; then
1998 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1999 fi
2000
2001 if test "$wxUSE_LIBPNG" = yes; then
2002 echo "$ac_t""yes" 1>&6
2003 elif test "$wxUSE_LIBPNG" = no; then
2004 echo "$ac_t""no" 1>&6
2005 elif test "$wxUSE_LIBPNG" = sys; then
2006 echo "$ac_t""system version" 1>&6
2007 elif test "$wxUSE_LIBPNG" = builtin; then
2008 echo "$ac_t""builtin version" 1>&6
2009 else
2010 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2011 fi
2012
2013
2014 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2015echo "configure:2016: checking for --with-libjpeg" >&5
2016 no_cache=0
2017 # Check whether --with-libjpeg or --without-libjpeg was given.
2018if test "${with_libjpeg+set}" = set; then
2019 withval="$with_libjpeg"
2020
2021 if test "$withval" = yes; then
2022 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2023 elif test "$withval" = no; then
2024 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2025 elif test "$withval" = sys; then
2026 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2027 elif test "$withval" = builtin; then
2028 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2029 else
2030 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2031 fi
2032
2033else
2034
2035 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2036 if test "x$LINE" != x ; then
2037 eval "DEFAULT_$LINE"
2038 else
2039 no_cache=1
2040 fi
2041
2042 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2043
2044fi
2045
2046
2047 eval "$ac_cv_use_libjpeg"
2048 if test "$no_cache" != 1; then
2049 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2050 fi
2051
2052 if test "$wxUSE_LIBJPEG" = yes; then
2053 echo "$ac_t""yes" 1>&6
2054 elif test "$wxUSE_LIBJPEG" = no; then
2055 echo "$ac_t""no" 1>&6
2056 elif test "$wxUSE_LIBJPEG" = sys; then
2057 echo "$ac_t""system version" 1>&6
2058 elif test "$wxUSE_LIBJPEG" = builtin; then
2059 echo "$ac_t""builtin version" 1>&6
2060 else
2061 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2062 fi
2063
2064
2065 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2066echo "configure:2067: checking for --with-libtiff" >&5
2067 no_cache=0
2068 # Check whether --with-libtiff or --without-libtiff was given.
2069if test "${with_libtiff+set}" = set; then
2070 withval="$with_libtiff"
2071
2072 if test "$withval" = yes; then
2073 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2074 elif test "$withval" = no; then
2075 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2076 elif test "$withval" = sys; then
2077 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2078 elif test "$withval" = builtin; then
2079 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2080 else
2081 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2082 fi
2083
2084else
2085
2086 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2087 if test "x$LINE" != x ; then
2088 eval "DEFAULT_$LINE"
2089 else
2090 no_cache=1
2091 fi
2092
2093 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2094
2095fi
2096
2097
2098 eval "$ac_cv_use_libtiff"
2099 if test "$no_cache" != 1; then
2100 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2101 fi
2102
2103 if test "$wxUSE_LIBTIFF" = yes; then
2104 echo "$ac_t""yes" 1>&6
2105 elif test "$wxUSE_LIBTIFF" = no; then
2106 echo "$ac_t""no" 1>&6
2107 elif test "$wxUSE_LIBTIFF" = sys; then
2108 echo "$ac_t""system version" 1>&6
2109 elif test "$wxUSE_LIBTIFF" = builtin; then
2110 echo "$ac_t""builtin version" 1>&6
2111 else
2112 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2113 fi
2114
2115
2116 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2117echo "configure:2118: checking for --with-opengl" >&5
2118 no_cache=0
2119 # Check whether --with-opengl or --without-opengl was given.
2120if test "${with_opengl+set}" = set; then
2121 withval="$with_opengl"
2122
2123 if test "$withval" = yes; then
2124 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2125 else
2126 ac_cv_use_opengl='wxUSE_OPENGL=no'
2127 fi
2128
2129else
2130
2131 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2132 if test "x$LINE" != x ; then
2133 eval "DEFAULT_$LINE"
2134 else
2135 no_cache=1
2136 fi
2137
2138 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2139
2140fi
2141
2142
2143 eval "$ac_cv_use_opengl"
2144 if test "$no_cache" != 1; then
2145 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2146 fi
2147
2148 if test "$wxUSE_OPENGL" = yes; then
2149 echo "$ac_t""yes" 1>&6
2150 else
2151 echo "$ac_t""no" 1>&6
2152 fi
2153
2154
2155fi
2156
2157
2158 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2159echo "configure:2160: checking for --with-dmalloc" >&5
2160 no_cache=0
2161 # Check whether --with-dmalloc or --without-dmalloc was given.
2162if test "${with_dmalloc+set}" = set; then
2163 withval="$with_dmalloc"
2164
2165 if test "$withval" = yes; then
2166 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2167 else
2168 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2169 fi
2170
2171else
2172
2173 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2174 if test "x$LINE" != x ; then
2175 eval "DEFAULT_$LINE"
2176 else
2177 no_cache=1
2178 fi
2179
2180 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2181
2182fi
2183
2184
2185 eval "$ac_cv_use_dmalloc"
2186 if test "$no_cache" != 1; then
2187 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2188 fi
2189
2190 if test "$wxUSE_DMALLOC" = yes; then
2191 echo "$ac_t""yes" 1>&6
2192 else
2193 echo "$ac_t""no" 1>&6
2194 fi
2195
2196
2197 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2198echo "configure:2199: checking for --with-regex" >&5
2199 no_cache=0
2200 # Check whether --with-regex or --without-regex was given.
2201if test "${with_regex+set}" = set; then
2202 withval="$with_regex"
2203
2204 if test "$withval" = yes; then
2205 ac_cv_use_regex='wxUSE_REGEX=yes'
2206 elif test "$withval" = no; then
2207 ac_cv_use_regex='wxUSE_REGEX=no'
2208 elif test "$withval" = sys; then
2209 ac_cv_use_regex='wxUSE_REGEX=sys'
2210 elif test "$withval" = builtin; then
2211 ac_cv_use_regex='wxUSE_REGEX=builtin'
2212 else
2213 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2214 fi
2215
2216else
2217
2218 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2219 if test "x$LINE" != x ; then
2220 eval "DEFAULT_$LINE"
2221 else
2222 no_cache=1
2223 fi
2224
2225 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2226
2227fi
2228
2229
2230 eval "$ac_cv_use_regex"
2231 if test "$no_cache" != 1; then
2232 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2233 fi
2234
2235 if test "$wxUSE_REGEX" = yes; then
2236 echo "$ac_t""yes" 1>&6
2237 elif test "$wxUSE_REGEX" = no; then
2238 echo "$ac_t""no" 1>&6
2239 elif test "$wxUSE_REGEX" = sys; then
2240 echo "$ac_t""system version" 1>&6
2241 elif test "$wxUSE_REGEX" = builtin; then
2242 echo "$ac_t""builtin version" 1>&6
2243 else
2244 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2245 fi
2246
2247
2248 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2249echo "configure:2250: checking for --with-zlib" >&5
2250 no_cache=0
2251 # Check whether --with-zlib or --without-zlib was given.
2252if test "${with_zlib+set}" = set; then
2253 withval="$with_zlib"
2254
2255 if test "$withval" = yes; then
2256 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2257 elif test "$withval" = no; then
2258 ac_cv_use_zlib='wxUSE_ZLIB=no'
2259 elif test "$withval" = sys; then
2260 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2261 elif test "$withval" = builtin; then
2262 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2263 else
2264 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2265 fi
2266
2267else
2268
2269 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2270 if test "x$LINE" != x ; then
2271 eval "DEFAULT_$LINE"
2272 else
2273 no_cache=1
2274 fi
2275
2276 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2277
2278fi
2279
2280
2281 eval "$ac_cv_use_zlib"
2282 if test "$no_cache" != 1; then
2283 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2284 fi
2285
2286 if test "$wxUSE_ZLIB" = yes; then
2287 echo "$ac_t""yes" 1>&6
2288 elif test "$wxUSE_ZLIB" = no; then
2289 echo "$ac_t""no" 1>&6
2290 elif test "$wxUSE_ZLIB" = sys; then
2291 echo "$ac_t""system version" 1>&6
2292 elif test "$wxUSE_ZLIB" = builtin; then
2293 echo "$ac_t""builtin version" 1>&6
2294 else
2295 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2296 fi
2297
2298
2299 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2300echo "configure:2301: checking for --with-odbc" >&5
2301 no_cache=0
2302 # Check whether --with-odbc or --without-odbc was given.
2303if test "${with_odbc+set}" = set; then
2304 withval="$with_odbc"
2305
2306 if test "$withval" = yes; then
2307 ac_cv_use_odbc='wxUSE_ODBC=yes'
2308 else
2309 ac_cv_use_odbc='wxUSE_ODBC=no'
2310 fi
2311
2312else
2313
2314 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2315 if test "x$LINE" != x ; then
2316 eval "DEFAULT_$LINE"
2317 else
2318 no_cache=1
2319 fi
2320
2321 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2322
2323fi
2324
2325
2326 eval "$ac_cv_use_odbc"
2327 if test "$no_cache" != 1; then
2328 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2329 fi
2330
2331 if test "$wxUSE_ODBC" = yes; then
2332 echo "$ac_t""yes" 1>&6
2333 else
2334 echo "$ac_t""no" 1>&6
2335 fi
2336
2337
2338
2339
2340 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2341echo "configure:2342: checking for --enable-shared" >&5
2342 no_cache=0
2343 # Check whether --enable-shared or --disable-shared was given.
2344if test "${enable_shared+set}" = set; then
2345 enableval="$enable_shared"
2346
2347 if test "$enableval" = yes; then
2348 ac_cv_use_shared='wxUSE_SHARED=yes'
2349 else
2350 ac_cv_use_shared='wxUSE_SHARED=no'
2351 fi
2352
2353else
2354
2355 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2356 if test "x$LINE" != x ; then
2357 eval "DEFAULT_$LINE"
2358 else
2359 no_cache=1
2360 fi
2361
2362 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2363
2364fi
2365
2366
2367 eval "$ac_cv_use_shared"
2368 if test "$no_cache" != 1; then
2369 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2370 fi
2371
2372 if test "$wxUSE_SHARED" = yes; then
2373 echo "$ac_t""yes" 1>&6
2374 else
2375 echo "$ac_t""no" 1>&6
2376 fi
2377
2378
2379 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2380echo "configure:2381: checking for --enable-soname" >&5
2381 no_cache=0
2382 # Check whether --enable-soname or --disable-soname was given.
2383if test "${enable_soname+set}" = set; then
2384 enableval="$enable_soname"
2385
2386 if test "$enableval" = yes; then
2387 ac_cv_use_soname='wxUSE_SONAME=yes'
2388 else
2389 ac_cv_use_soname='wxUSE_SONAME=no'
2390 fi
2391
2392else
2393
2394 LINE=`grep "wxUSE_SONAME" ${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_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2402
2403fi
2404
2405
2406 eval "$ac_cv_use_soname"
2407 if test "$no_cache" != 1; then
2408 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2409 fi
2410
2411 if test "$wxUSE_SONAME" = 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-optimise""... $ac_c" 1>&6
2419echo "configure:2420: checking for --enable-optimise" >&5
2420 no_cache=0
2421 # Check whether --enable-optimise or --disable-optimise was given.
2422if test "${enable_optimise+set}" = set; then
2423 enableval="$enable_optimise"
2424
2425 if test "$enableval" = yes; then
2426 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2427 else
2428 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2429 fi
2430
2431else
2432
2433 LINE=`grep "wxUSE_OPTIMISE" ${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_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2441
2442fi
2443
2444
2445 eval "$ac_cv_use_optimise"
2446 if test "$no_cache" != 1; then
2447 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2448 fi
2449
2450 if test "$wxUSE_OPTIMISE" = 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-debug""... $ac_c" 1>&6
2458echo "configure:2459: checking for --enable-debug" >&5
2459 no_cache=0
2460 # Check whether --enable-debug or --disable-debug was given.
2461if test "${enable_debug+set}" = set; then
2462 enableval="$enable_debug"
2463
2464 if test "$enableval" = yes; then
2465 ac_cv_use_debug='wxUSE_DEBUG=yes'
2466 else
2467 ac_cv_use_debug='wxUSE_DEBUG=no'
2468 fi
2469
2470else
2471
2472 LINE=`grep "wxUSE_DEBUG" ${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_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2480
2481fi
2482
2483
2484 eval "$ac_cv_use_debug"
2485 if test "$no_cache" != 1; then
2486 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2487 fi
2488
2489 if test "$wxUSE_DEBUG" = yes; then
2490 echo "$ac_t""yes" 1>&6
2491 else
2492 echo "$ac_t""no" 1>&6
2493 fi
2494
2495
2496
2497 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2498echo "configure:2499: checking for --enable-precomp" >&5
2499 no_cache=0
2500 # Check whether --enable-precomp or --disable-precomp was given.
2501if test "${enable_precomp+set}" = set; then
2502 enableval="$enable_precomp"
2503
2504 if test "$enableval" = yes; then
2505 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2506 else
2507 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2508 fi
2509
2510else
2511
2512 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2513 if test "x$LINE" != x ; then
2514 eval "DEFAULT_$LINE"
2515 else
2516 no_cache=1
2517 fi
2518
2519 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2520
2521fi
2522
2523
2524 eval "$ac_cv_use_precomp"
2525 if test "$no_cache" != 1; then
2526 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2527 fi
2528
2529 if test "$wxUSE_PRECOMP" = yes; then
2530 echo "$ac_t""yes" 1>&6
2531 else
2532 echo "$ac_t""no" 1>&6
2533 fi
2534
2535
2536if test "$wxUSE_DEBUG" = "yes"; then
2537 DEFAULT_wxUSE_DEBUG_FLAG=yes
2538 DEFAULT_wxUSE_DEBUG_INFO=yes
2539elif test "$wxUSE_DEBUG" = "no"; then
2540 DEFAULT_wxUSE_DEBUG_FLAG=no
2541 DEFAULT_wxUSE_DEBUG_INFO=no
2542fi
2543
2544
2545 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2546echo "configure:2547: checking for --enable-debug_flag" >&5
2547 no_cache=0
2548 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2549if test "${enable_debug_flag+set}" = set; then
2550 enableval="$enable_debug_flag"
2551
2552 if test "$enableval" = yes; then
2553 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2554 else
2555 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2556 fi
2557
2558else
2559
2560 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2561 if test "x$LINE" != x ; then
2562 eval "DEFAULT_$LINE"
2563 else
2564 no_cache=1
2565 fi
2566
2567 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2568
2569fi
2570
2571
2572 eval "$ac_cv_use_debug_flag"
2573 if test "$no_cache" != 1; then
2574 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2575 fi
2576
2577 if test "$wxUSE_DEBUG_FLAG" = yes; then
2578 echo "$ac_t""yes" 1>&6
2579 else
2580 echo "$ac_t""no" 1>&6
2581 fi
2582
2583
2584 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2585echo "configure:2586: checking for --enable-debug_info" >&5
2586 no_cache=0
2587 # Check whether --enable-debug_info or --disable-debug_info was given.
2588if test "${enable_debug_info+set}" = set; then
2589 enableval="$enable_debug_info"
2590
2591 if test "$enableval" = yes; then
2592 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2593 else
2594 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2595 fi
2596
2597else
2598
2599 LINE=`grep "wxUSE_DEBUG_INFO" ${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_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2607
2608fi
2609
2610
2611 eval "$ac_cv_use_debug_info"
2612 if test "$no_cache" != 1; then
2613 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2614 fi
2615
2616 if test "$wxUSE_DEBUG_INFO" = 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_gdb""... $ac_c" 1>&6
2624echo "configure:2625: checking for --enable-debug_gdb" >&5
2625 no_cache=0
2626 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2627if test "${enable_debug_gdb+set}" = set; then
2628 enableval="$enable_debug_gdb"
2629
2630 if test "$enableval" = yes; then
2631 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2632 else
2633 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2634 fi
2635
2636else
2637
2638 LINE=`grep "wxUSE_DEBUG_GDB" ${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_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2646
2647fi
2648
2649
2650 eval "$ac_cv_use_debug_gdb"
2651 if test "$no_cache" != 1; then
2652 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2653 fi
2654
2655 if test "$wxUSE_DEBUG_GDB" = 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_cntxt""... $ac_c" 1>&6
2663echo "configure:2664: checking for --enable-debug_cntxt" >&5
2664 no_cache=0
2665 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2666if test "${enable_debug_cntxt+set}" = set; then
2667 enableval="$enable_debug_cntxt"
2668
2669 if test "$enableval" = yes; then
2670 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2671 else
2672 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2673 fi
2674
2675else
2676
2677 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${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_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2685
2686fi
2687
2688
2689 eval "$ac_cv_use_debug_cntxt"
2690 if test "$no_cache" != 1; then
2691 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2692 fi
2693
2694 if test "$wxUSE_DEBUG_CONTEXT" = 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-mem_tracing""... $ac_c" 1>&6
2702echo "configure:2703: checking for --enable-mem_tracing" >&5
2703 no_cache=0
2704 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2705if test "${enable_mem_tracing+set}" = set; then
2706 enableval="$enable_mem_tracing"
2707
2708 if test "$enableval" = yes; then
2709 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2710 else
2711 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2712 fi
2713
2714else
2715
2716 LINE=`grep "wxUSE_MEM_TRACING" ${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_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2724
2725fi
2726
2727
2728 eval "$ac_cv_use_mem_tracing"
2729 if test "$no_cache" != 1; then
2730 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2731 fi
2732
2733 if test "$wxUSE_MEM_TRACING" = 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-profile""... $ac_c" 1>&6
2741echo "configure:2742: checking for --enable-profile" >&5
2742 no_cache=0
2743 # Check whether --enable-profile or --disable-profile was given.
2744if test "${enable_profile+set}" = set; then
2745 enableval="$enable_profile"
2746
2747 if test "$enableval" = yes; then
2748 ac_cv_use_profile='wxUSE_PROFILE=yes'
2749 else
2750 ac_cv_use_profile='wxUSE_PROFILE=no'
2751 fi
2752
2753else
2754
2755 LINE=`grep "wxUSE_PROFILE" ${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_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2763
2764fi
2765
2766
2767 eval "$ac_cv_use_profile"
2768 if test "$no_cache" != 1; then
2769 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2770 fi
2771
2772 if test "$wxUSE_PROFILE" = 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-no_rtti""... $ac_c" 1>&6
2780echo "configure:2781: checking for --enable-no_rtti" >&5
2781 no_cache=0
2782 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2783if test "${enable_no_rtti+set}" = set; then
2784 enableval="$enable_no_rtti"
2785
2786 if test "$enableval" = yes; then
2787 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2788 else
2789 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2790 fi
2791
2792else
2793
2794 LINE=`grep "wxUSE_NO_RTTI" ${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_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2802
2803fi
2804
2805
2806 eval "$ac_cv_use_no_rtti"
2807 if test "$no_cache" != 1; then
2808 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2809 fi
2810
2811 if test "$wxUSE_NO_RTTI" = 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_exceptions""... $ac_c" 1>&6
2819echo "configure:2820: checking for --enable-no_exceptions" >&5
2820 no_cache=0
2821 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2822if test "${enable_no_exceptions+set}" = set; then
2823 enableval="$enable_no_exceptions"
2824
2825 if test "$enableval" = yes; then
2826 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2827 else
2828 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2829 fi
2830
2831else
2832
2833 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${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_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2841
2842fi
2843
2844
2845 eval "$ac_cv_use_no_exceptions"
2846 if test "$no_cache" != 1; then
2847 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2848 fi
2849
2850 if test "$wxUSE_NO_EXCEPTIONS" = 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-permissive""... $ac_c" 1>&6
2858echo "configure:2859: checking for --enable-permissive" >&5
2859 no_cache=0
2860 # Check whether --enable-permissive or --disable-permissive was given.
2861if test "${enable_permissive+set}" = set; then
2862 enableval="$enable_permissive"
2863
2864 if test "$enableval" = yes; then
2865 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2866 else
2867 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2868 fi
2869
2870else
2871
2872 LINE=`grep "wxUSE_PERMISSIVE" ${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_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2880
2881fi
2882
2883
2884 eval "$ac_cv_use_permissive"
2885 if test "$no_cache" != 1; then
2886 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2887 fi
2888
2889 if test "$wxUSE_PERMISSIVE" = 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-no_deps""... $ac_c" 1>&6
2897echo "configure:2898: checking for --enable-no_deps" >&5
2898 no_cache=0
2899 # Check whether --enable-no_deps or --disable-no_deps was given.
2900if test "${enable_no_deps+set}" = set; then
2901 enableval="$enable_no_deps"
2902
2903 if test "$enableval" = yes; then
2904 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2905 else
2906 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2907 fi
2908
2909else
2910
2911 LINE=`grep "wxUSE_NO_DEPS" ${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_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2919
2920fi
2921
2922
2923 eval "$ac_cv_use_no_deps"
2924 if test "$no_cache" != 1; then
2925 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2926 fi
2927
2928 if test "$wxUSE_NO_DEPS" = yes; then
2929 echo "$ac_t""yes" 1>&6
2930 else
2931 echo "$ac_t""no" 1>&6
2932 fi
2933
2934
2935
2936 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2937echo "configure:2938: checking for --enable-compat20" >&5
2938 no_cache=0
2939 # Check whether --enable-compat20 or --disable-compat20 was given.
2940if test "${enable_compat20+set}" = set; then
2941 enableval="$enable_compat20"
2942
2943 if test "$enableval" = yes; then
2944 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2945 else
2946 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2947 fi
2948
2949else
2950
2951 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2952 if test "x$LINE" != x ; then
2953 eval "DEFAULT_$LINE"
2954 else
2955 no_cache=1
2956 fi
2957
2958 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2959
2960fi
2961
2962
2963 eval "$ac_cv_use_compat20"
2964 if test "$no_cache" != 1; then
2965 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2966 fi
2967
2968 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2969 echo "$ac_t""yes" 1>&6
2970 else
2971 echo "$ac_t""no" 1>&6
2972 fi
2973
2974
2975 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2976echo "configure:2977: checking for --enable-compat22" >&5
2977 no_cache=0
2978 # Check whether --enable-compat22 or --disable-compat22 was given.
2979if test "${enable_compat22+set}" = set; then
2980 enableval="$enable_compat22"
2981
2982 if test "$enableval" = yes; then
2983 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2984 else
2985 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2986 fi
2987
2988else
2989
2990 LINE=`grep "WXWIN_COMPATIBILITY_2_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_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2998
2999fi
3000
3001
3002 eval "$ac_cv_use_compat22"
3003 if test "$no_cache" != 1; then
3004 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3005 fi
3006
3007 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3008 echo "$ac_t""yes" 1>&6
3009 else
3010 echo "$ac_t""no" 1>&6
3011 fi
3012
3013
3014
3015
3016 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
3017echo "configure:3018: checking for --enable-intl" >&5
3018 no_cache=0
3019 # Check whether --enable-intl or --disable-intl was given.
3020if test "${enable_intl+set}" = set; then
3021 enableval="$enable_intl"
3022
3023 if test "$enableval" = yes; then
3024 ac_cv_use_intl='wxUSE_INTL=yes'
3025 else
3026 ac_cv_use_intl='wxUSE_INTL=no'
3027 fi
3028
3029else
3030
3031 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3032 if test "x$LINE" != x ; then
3033 eval "DEFAULT_$LINE"
3034 else
3035 no_cache=1
3036 fi
3037
3038 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3039
3040fi
3041
3042
3043 eval "$ac_cv_use_intl"
3044 if test "$no_cache" != 1; then
3045 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3046 fi
3047
3048 if test "$wxUSE_INTL" = yes; then
3049 echo "$ac_t""yes" 1>&6
3050 else
3051 echo "$ac_t""no" 1>&6
3052 fi
3053
3054
3055 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3056echo "configure:3057: checking for --enable-config" >&5
3057 no_cache=0
3058 # Check whether --enable-config or --disable-config was given.
3059if test "${enable_config+set}" = set; then
3060 enableval="$enable_config"
3061
3062 if test "$enableval" = yes; then
3063 ac_cv_use_config='wxUSE_CONFIG=yes'
3064 else
3065 ac_cv_use_config='wxUSE_CONFIG=no'
3066 fi
3067
3068else
3069
3070 LINE=`grep "wxUSE_CONFIG" ${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_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3078
3079fi
3080
3081
3082 eval "$ac_cv_use_config"
3083 if test "$no_cache" != 1; then
3084 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3085 fi
3086
3087 if test "$wxUSE_CONFIG" = yes; then
3088 echo "$ac_t""yes" 1>&6
3089 else
3090 echo "$ac_t""no" 1>&6
3091 fi
3092
3093
3094
3095 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
3096echo "configure:3097: checking for --enable-protocols" >&5
3097 no_cache=0
3098 # Check whether --enable-protocols or --disable-protocols was given.
3099if test "${enable_protocols+set}" = set; then
3100 enableval="$enable_protocols"
3101
3102 if test "$enableval" = yes; then
3103 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3104 else
3105 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3106 fi
3107
3108else
3109
3110 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3111 if test "x$LINE" != x ; then
3112 eval "DEFAULT_$LINE"
3113 else
3114 no_cache=1
3115 fi
3116
3117 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3118
3119fi
3120
3121
3122 eval "$ac_cv_use_protocols"
3123 if test "$no_cache" != 1; then
3124 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3125 fi
3126
3127 if test "$wxUSE_PROTOCOL" = yes; then
3128 echo "$ac_t""yes" 1>&6
3129 else
3130 echo "$ac_t""no" 1>&6
3131 fi
3132
3133
3134 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
3135echo "configure:3136: checking for --enable-ftp" >&5
3136 no_cache=0
3137 # Check whether --enable-ftp or --disable-ftp was given.
3138if test "${enable_ftp+set}" = set; then
3139 enableval="$enable_ftp"
3140
3141 if test "$enableval" = yes; then
3142 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3143 else
3144 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3145 fi
3146
3147else
3148
3149 LINE=`grep "wxUSE_PROTOCOL_FTP" ${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_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3157
3158fi
3159
3160
3161 eval "$ac_cv_use_ftp"
3162 if test "$no_cache" != 1; then
3163 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3164 fi
3165
3166 if test "$wxUSE_PROTOCOL_FTP" = 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-http""... $ac_c" 1>&6
3174echo "configure:3175: checking for --enable-http" >&5
3175 no_cache=0
3176 # Check whether --enable-http or --disable-http was given.
3177if test "${enable_http+set}" = set; then
3178 enableval="$enable_http"
3179
3180 if test "$enableval" = yes; then
3181 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3182 else
3183 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3184 fi
3185
3186else
3187
3188 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${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_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3196
3197fi
3198
3199
3200 eval "$ac_cv_use_http"
3201 if test "$no_cache" != 1; then
3202 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3203 fi
3204
3205 if test "$wxUSE_PROTOCOL_HTTP" = 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-fileproto""... $ac_c" 1>&6
3213echo "configure:3214: checking for --enable-fileproto" >&5
3214 no_cache=0
3215 # Check whether --enable-fileproto or --disable-fileproto was given.
3216if test "${enable_fileproto+set}" = set; then
3217 enableval="$enable_fileproto"
3218
3219 if test "$enableval" = yes; then
3220 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3221 else
3222 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3223 fi
3224
3225else
3226
3227 LINE=`grep "wxUSE_PROTOCOL_FILE" ${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_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3235
3236fi
3237
3238
3239 eval "$ac_cv_use_fileproto"
3240 if test "$no_cache" != 1; then
3241 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3242 fi
3243
3244 if test "$wxUSE_PROTOCOL_FILE" = 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-sockets""... $ac_c" 1>&6
3252echo "configure:3253: checking for --enable-sockets" >&5
3253 no_cache=0
3254 # Check whether --enable-sockets or --disable-sockets was given.
3255if test "${enable_sockets+set}" = set; then
3256 enableval="$enable_sockets"
3257
3258 if test "$enableval" = yes; then
3259 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3260 else
3261 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3262 fi
3263
3264else
3265
3266 LINE=`grep "wxUSE_SOCKETS" ${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_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3274
3275fi
3276
3277
3278 eval "$ac_cv_use_sockets"
3279 if test "$no_cache" != 1; then
3280 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3281 fi
3282
3283 if test "$wxUSE_SOCKETS" = yes; then
3284 echo "$ac_t""yes" 1>&6
3285 else
3286 echo "$ac_t""no" 1>&6
3287 fi
3288
3289
3290
3291 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3292echo "configure:3293: checking for --enable-ipc" >&5
3293 no_cache=0
3294 # Check whether --enable-ipc or --disable-ipc was given.
3295if test "${enable_ipc+set}" = set; then
3296 enableval="$enable_ipc"
3297
3298 if test "$enableval" = yes; then
3299 ac_cv_use_ipc='wxUSE_IPC=yes'
3300 else
3301 ac_cv_use_ipc='wxUSE_IPC=no'
3302 fi
3303
3304else
3305
3306 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3307 if test "x$LINE" != x ; then
3308 eval "DEFAULT_$LINE"
3309 else
3310 no_cache=1
3311 fi
3312
3313 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3314
3315fi
3316
3317
3318 eval "$ac_cv_use_ipc"
3319 if test "$no_cache" != 1; then
3320 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3321 fi
3322
3323 if test "$wxUSE_IPC" = yes; then
3324 echo "$ac_t""yes" 1>&6
3325 else
3326 echo "$ac_t""no" 1>&6
3327 fi
3328
3329
3330
3331 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3332echo "configure:3333: checking for --enable-cmdline" >&5
3333 no_cache=0
3334 # Check whether --enable-cmdline or --disable-cmdline was given.
3335if test "${enable_cmdline+set}" = set; then
3336 enableval="$enable_cmdline"
3337
3338 if test "$enableval" = yes; then
3339 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3340 else
3341 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3342 fi
3343
3344else
3345
3346 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3347 if test "x$LINE" != x ; then
3348 eval "DEFAULT_$LINE"
3349 else
3350 no_cache=1
3351 fi
3352
3353 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3354
3355fi
3356
3357
3358 eval "$ac_cv_use_cmdline"
3359 if test "$no_cache" != 1; then
3360 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3361 fi
3362
3363 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3364 echo "$ac_t""yes" 1>&6
3365 else
3366 echo "$ac_t""no" 1>&6
3367 fi
3368
3369
3370 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3371echo "configure:3372: checking for --enable-datetime" >&5
3372 no_cache=0
3373 # Check whether --enable-datetime or --disable-datetime was given.
3374if test "${enable_datetime+set}" = set; then
3375 enableval="$enable_datetime"
3376
3377 if test "$enableval" = yes; then
3378 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3379 else
3380 ac_cv_use_datetime='wxUSE_DATETIME=no'
3381 fi
3382
3383else
3384
3385 LINE=`grep "wxUSE_DATETIME" ${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_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3393
3394fi
3395
3396
3397 eval "$ac_cv_use_datetime"
3398 if test "$no_cache" != 1; then
3399 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3400 fi
3401
3402 if test "$wxUSE_DATETIME" = 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-timedate""... $ac_c" 1>&6
3410echo "configure:3411: checking for --enable-timedate" >&5
3411 no_cache=0
3412 # Check whether --enable-timedate or --disable-timedate was given.
3413if test "${enable_timedate+set}" = set; then
3414 enableval="$enable_timedate"
3415
3416 if test "$enableval" = yes; then
3417 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3418 else
3419 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3420 fi
3421
3422else
3423
3424 LINE=`grep "wxUSE_TIMEDATE" ${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_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3432
3433fi
3434
3435
3436 eval "$ac_cv_use_timedate"
3437 if test "$no_cache" != 1; then
3438 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3439 fi
3440
3441 if test "$wxUSE_TIMEDATE" = 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-stopwatch""... $ac_c" 1>&6
3449echo "configure:3450: checking for --enable-stopwatch" >&5
3450 no_cache=0
3451 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3452if test "${enable_stopwatch+set}" = set; then
3453 enableval="$enable_stopwatch"
3454
3455 if test "$enableval" = yes; then
3456 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3457 else
3458 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3459 fi
3460
3461else
3462
3463 LINE=`grep "wxUSE_STOPWATCH" ${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_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3471
3472fi
3473
3474
3475 eval "$ac_cv_use_stopwatch"
3476 if test "$no_cache" != 1; then
3477 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3478 fi
3479
3480 if test "$wxUSE_STOPWATCH" = 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-dialupman""... $ac_c" 1>&6
3488echo "configure:3489: checking for --enable-dialupman" >&5
3489 no_cache=0
3490 # Check whether --enable-dialupman or --disable-dialupman was given.
3491if test "${enable_dialupman+set}" = set; then
3492 enableval="$enable_dialupman"
3493
3494 if test "$enableval" = yes; then
3495 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3496 else
3497 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3498 fi
3499
3500else
3501
3502 LINE=`grep "wxUSE_DIALUP_MANAGER" ${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_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3510
3511fi
3512
3513
3514 eval "$ac_cv_use_dialupman"
3515 if test "$no_cache" != 1; then
3516 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3517 fi
3518
3519 if test "$wxUSE_DIALUP_MANAGER" = 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-apple_ieee""... $ac_c" 1>&6
3527echo "configure:3528: checking for --enable-apple_ieee" >&5
3528 no_cache=0
3529 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3530if test "${enable_apple_ieee+set}" = set; then
3531 enableval="$enable_apple_ieee"
3532
3533 if test "$enableval" = yes; then
3534 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3535 else
3536 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3537 fi
3538
3539else
3540
3541 LINE=`grep "wxUSE_APPLE_IEEE" ${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_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3549
3550fi
3551
3552
3553 eval "$ac_cv_use_apple_ieee"
3554 if test "$no_cache" != 1; then
3555 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3556 fi
3557
3558 if test "$wxUSE_APPLE_IEEE" = 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-timer""... $ac_c" 1>&6
3566echo "configure:3567: checking for --enable-timer" >&5
3567 no_cache=0
3568 # Check whether --enable-timer or --disable-timer was given.
3569if test "${enable_timer+set}" = set; then
3570 enableval="$enable_timer"
3571
3572 if test "$enableval" = yes; then
3573 ac_cv_use_timer='wxUSE_TIMER=yes'
3574 else
3575 ac_cv_use_timer='wxUSE_TIMER=no'
3576 fi
3577
3578else
3579
3580 LINE=`grep "wxUSE_TIMER" ${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_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3588
3589fi
3590
3591
3592 eval "$ac_cv_use_timer"
3593 if test "$no_cache" != 1; then
3594 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3595 fi
3596
3597 if test "$wxUSE_TIMER" = 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-wave""... $ac_c" 1>&6
3605echo "configure:3606: checking for --enable-wave" >&5
3606 no_cache=0
3607 # Check whether --enable-wave or --disable-wave was given.
3608if test "${enable_wave+set}" = set; then
3609 enableval="$enable_wave"
3610
3611 if test "$enableval" = yes; then
3612 ac_cv_use_wave='wxUSE_WAVE=yes'
3613 else
3614 ac_cv_use_wave='wxUSE_WAVE=no'
3615 fi
3616
3617else
3618
3619 LINE=`grep "wxUSE_WAVE" ${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_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3627
3628fi
3629
3630
3631 eval "$ac_cv_use_wave"
3632 if test "$no_cache" != 1; then
3633 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3634 fi
3635
3636 if test "$wxUSE_WAVE" = 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-fraction""... $ac_c" 1>&6
3644echo "configure:3645: checking for --enable-fraction" >&5
3645 no_cache=0
3646 # Check whether --enable-fraction or --disable-fraction was given.
3647if test "${enable_fraction+set}" = set; then
3648 enableval="$enable_fraction"
3649
3650 if test "$enableval" = yes; then
3651 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3652 else
3653 ac_cv_use_fraction='wxUSE_FRACTION=no'
3654 fi
3655
3656else
3657
3658 LINE=`grep "wxUSE_FRACTION" ${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_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3666
3667fi
3668
3669
3670 eval "$ac_cv_use_fraction"
3671 if test "$no_cache" != 1; then
3672 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3673 fi
3674
3675 if test "$wxUSE_FRACTION" = 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-dynlib""... $ac_c" 1>&6
3683echo "configure:3684: checking for --enable-dynlib" >&5
3684 no_cache=0
3685 # Check whether --enable-dynlib or --disable-dynlib was given.
3686if test "${enable_dynlib+set}" = set; then
3687 enableval="$enable_dynlib"
3688
3689 if test "$enableval" = yes; then
3690 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3691 else
3692 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3693 fi
3694
3695else
3696
3697 LINE=`grep "wxUSE_DYNLIB_CLASS" ${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_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3705
3706fi
3707
3708
3709 eval "$ac_cv_use_dynlib"
3710 if test "$no_cache" != 1; then
3711 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3712 fi
3713
3714 if test "$wxUSE_DYNLIB_CLASS" = 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-dynamicloader""... $ac_c" 1>&6
3722echo "configure:3723: checking for --enable-dynamicloader" >&5
3723 no_cache=0
3724 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3725if test "${enable_dynamicloader+set}" = set; then
3726 enableval="$enable_dynamicloader"
3727
3728 if test "$enableval" = yes; then
3729 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3730 else
3731 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3732 fi
3733
3734else
3735
3736 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${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_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3744
3745fi
3746
3747
3748 eval "$ac_cv_use_dynamicloader"
3749 if test "$no_cache" != 1; then
3750 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3751 fi
3752
3753 if test "$wxUSE_DYNAMIC_LOADER" = 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-longlong""... $ac_c" 1>&6
3761echo "configure:3762: checking for --enable-longlong" >&5
3762 no_cache=0
3763 # Check whether --enable-longlong or --disable-longlong was given.
3764if test "${enable_longlong+set}" = set; then
3765 enableval="$enable_longlong"
3766
3767 if test "$enableval" = yes; then
3768 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3769 else
3770 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3771 fi
3772
3773else
3774
3775 LINE=`grep "wxUSE_LONGLONG" ${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_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3783
3784fi
3785
3786
3787 eval "$ac_cv_use_longlong"
3788 if test "$no_cache" != 1; then
3789 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3790 fi
3791
3792 if test "$wxUSE_LONGLONG" = 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-geometry""... $ac_c" 1>&6
3800echo "configure:3801: checking for --enable-geometry" >&5
3801 no_cache=0
3802 # Check whether --enable-geometry or --disable-geometry was given.
3803if test "${enable_geometry+set}" = set; then
3804 enableval="$enable_geometry"
3805
3806 if test "$enableval" = yes; then
3807 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3808 else
3809 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3810 fi
3811
3812else
3813
3814 LINE=`grep "wxUSE_GEOMETRY" ${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_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3822
3823fi
3824
3825
3826 eval "$ac_cv_use_geometry"
3827 if test "$no_cache" != 1; then
3828 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3829 fi
3830
3831 if test "$wxUSE_GEOMETRY" = 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-log""... $ac_c" 1>&6
3839echo "configure:3840: checking for --enable-log" >&5
3840 no_cache=0
3841 # Check whether --enable-log or --disable-log was given.
3842if test "${enable_log+set}" = set; then
3843 enableval="$enable_log"
3844
3845 if test "$enableval" = yes; then
3846 ac_cv_use_log='wxUSE_LOG=yes'
3847 else
3848 ac_cv_use_log='wxUSE_LOG=no'
3849 fi
3850
3851else
3852
3853 LINE=`grep "wxUSE_LOG" ${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_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3861
3862fi
3863
3864
3865 eval "$ac_cv_use_log"
3866 if test "$no_cache" != 1; then
3867 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3868 fi
3869
3870 if test "$wxUSE_LOG" = 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-streams""... $ac_c" 1>&6
3878echo "configure:3879: checking for --enable-streams" >&5
3879 no_cache=0
3880 # Check whether --enable-streams or --disable-streams was given.
3881if test "${enable_streams+set}" = set; then
3882 enableval="$enable_streams"
3883
3884 if test "$enableval" = yes; then
3885 ac_cv_use_streams='wxUSE_STREAMS=yes'
3886 else
3887 ac_cv_use_streams='wxUSE_STREAMS=no'
3888 fi
3889
3890else
3891
3892 LINE=`grep "wxUSE_STREAMS" ${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_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3900
3901fi
3902
3903
3904 eval "$ac_cv_use_streams"
3905 if test "$no_cache" != 1; then
3906 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3907 fi
3908
3909 if test "$wxUSE_STREAMS" = 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-file""... $ac_c" 1>&6
3917echo "configure:3918: checking for --enable-file" >&5
3918 no_cache=0
3919 # Check whether --enable-file or --disable-file was given.
3920if test "${enable_file+set}" = set; then
3921 enableval="$enable_file"
3922
3923 if test "$enableval" = yes; then
3924 ac_cv_use_file='wxUSE_FILE=yes'
3925 else
3926 ac_cv_use_file='wxUSE_FILE=no'
3927 fi
3928
3929else
3930
3931 LINE=`grep "wxUSE_FILE" ${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_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3939
3940fi
3941
3942
3943 eval "$ac_cv_use_file"
3944 if test "$no_cache" != 1; then
3945 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3946 fi
3947
3948 if test "$wxUSE_FILE" = 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-ffile""... $ac_c" 1>&6
3956echo "configure:3957: checking for --enable-ffile" >&5
3957 no_cache=0
3958 # Check whether --enable-ffile or --disable-ffile was given.
3959if test "${enable_ffile+set}" = set; then
3960 enableval="$enable_ffile"
3961
3962 if test "$enableval" = yes; then
3963 ac_cv_use_ffile='wxUSE_FFILE=yes'
3964 else
3965 ac_cv_use_ffile='wxUSE_FFILE=no'
3966 fi
3967
3968else
3969
3970 LINE=`grep "wxUSE_FFILE" ${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_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3978
3979fi
3980
3981
3982 eval "$ac_cv_use_ffile"
3983 if test "$no_cache" != 1; then
3984 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3985 fi
3986
3987 if test "$wxUSE_FFILE" = 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-textbuf""... $ac_c" 1>&6
3995echo "configure:3996: checking for --enable-textbuf" >&5
3996 no_cache=0
3997 # Check whether --enable-textbuf or --disable-textbuf was given.
3998if test "${enable_textbuf+set}" = set; then
3999 enableval="$enable_textbuf"
4000
4001 if test "$enableval" = yes; then
4002 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4003 else
4004 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4005 fi
4006
4007else
4008
4009 LINE=`grep "wxUSE_TEXTBUFFER" ${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_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4017
4018fi
4019
4020
4021 eval "$ac_cv_use_textbuf"
4022 if test "$no_cache" != 1; then
4023 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4024 fi
4025
4026 if test "$wxUSE_TEXTBUFFER" = 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-textfile""... $ac_c" 1>&6
4034echo "configure:4035: checking for --enable-textfile" >&5
4035 no_cache=0
4036 # Check whether --enable-textfile or --disable-textfile was given.
4037if test "${enable_textfile+set}" = set; then
4038 enableval="$enable_textfile"
4039
4040 if test "$enableval" = yes; then
4041 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4042 else
4043 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4044 fi
4045
4046else
4047
4048 LINE=`grep "wxUSE_TEXTFILE" ${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_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4056
4057fi
4058
4059
4060 eval "$ac_cv_use_textfile"
4061 if test "$no_cache" != 1; then
4062 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4063 fi
4064
4065 if test "$wxUSE_TEXTFILE" = 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-fontmap""... $ac_c" 1>&6
4073echo "configure:4074: checking for --enable-fontmap" >&5
4074 no_cache=0
4075 # Check whether --enable-fontmap or --disable-fontmap was given.
4076if test "${enable_fontmap+set}" = set; then
4077 enableval="$enable_fontmap"
4078
4079 if test "$enableval" = yes; then
4080 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4081 else
4082 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4083 fi
4084
4085else
4086
4087 LINE=`grep "wxUSE_FONTMAP" ${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_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4095
4096fi
4097
4098
4099 eval "$ac_cv_use_fontmap"
4100 if test "$no_cache" != 1; then
4101 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4102 fi
4103
4104 if test "$wxUSE_FONTMAP" = 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-unicode""... $ac_c" 1>&6
4112echo "configure:4113: checking for --enable-unicode" >&5
4113 no_cache=0
4114 # Check whether --enable-unicode or --disable-unicode was given.
4115if test "${enable_unicode+set}" = set; then
4116 enableval="$enable_unicode"
4117
4118 if test "$enableval" = yes; then
4119 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4120 else
4121 ac_cv_use_unicode='wxUSE_UNICODE=no'
4122 fi
4123
4124else
4125
4126 LINE=`grep "wxUSE_UNICODE" ${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_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4134
4135fi
4136
4137
4138 eval "$ac_cv_use_unicode"
4139 if test "$no_cache" != 1; then
4140 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4141 fi
4142
4143 if test "$wxUSE_UNICODE" = 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-mslu""... $ac_c" 1>&6
4151echo "configure:4152: checking for --enable-mslu" >&5
4152 no_cache=0
4153 # Check whether --enable-mslu or --disable-mslu was given.
4154if test "${enable_mslu+set}" = set; then
4155 enableval="$enable_mslu"
4156
4157 if test "$enableval" = yes; then
4158 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4159 else
4160 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4161 fi
4162
4163else
4164
4165 LINE=`grep "wxUSE_UNICODE_MSLU" ${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_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4173
4174fi
4175
4176
4177 eval "$ac_cv_use_mslu"
4178 if test "$no_cache" != 1; then
4179 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4180 fi
4181
4182 if test "$wxUSE_UNICODE_MSLU" = 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-wxprintfv""... $ac_c" 1>&6
4190echo "configure:4191: checking for --enable-wxprintfv" >&5
4191 no_cache=0
4192 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4193if test "${enable_wxprintfv+set}" = set; then
4194 enableval="$enable_wxprintfv"
4195
4196 if test "$enableval" = yes; then
4197 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4198 else
4199 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4200 fi
4201
4202else
4203
4204 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${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_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4212
4213fi
4214
4215
4216 eval "$ac_cv_use_wxprintfv"
4217 if test "$no_cache" != 1; then
4218 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4219 fi
4220
4221 if test "$wxUSE_EXPERIMENTAL_PRINTF" = 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-std_iostreams""... $ac_c" 1>&6
4229echo "configure:4230: checking for --enable-std_iostreams" >&5
4230 no_cache=0
4231 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4232if test "${enable_std_iostreams+set}" = set; then
4233 enableval="$enable_std_iostreams"
4234
4235 if test "$enableval" = yes; then
4236 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4237 else
4238 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4239 fi
4240
4241else
4242
4243 LINE=`grep "wxUSE_STD_IOSTREAM" ${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_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4251
4252fi
4253
4254
4255 eval "$ac_cv_use_std_iostreams"
4256 if test "$no_cache" != 1; then
4257 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4258 fi
4259
4260 if test "$wxUSE_STD_IOSTREAM" = 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-filesystem""... $ac_c" 1>&6
4268echo "configure:4269: checking for --enable-filesystem" >&5
4269 no_cache=0
4270 # Check whether --enable-filesystem or --disable-filesystem was given.
4271if test "${enable_filesystem+set}" = set; then
4272 enableval="$enable_filesystem"
4273
4274 if test "$enableval" = yes; then
4275 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4276 else
4277 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4278 fi
4279
4280else
4281
4282 LINE=`grep "wxUSE_FILESYSTEM" ${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_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4290
4291fi
4292
4293
4294 eval "$ac_cv_use_filesystem"
4295 if test "$no_cache" != 1; then
4296 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4297 fi
4298
4299 if test "$wxUSE_FILESYSTEM" = 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-fs_inet""... $ac_c" 1>&6
4307echo "configure:4308: checking for --enable-fs_inet" >&5
4308 no_cache=0
4309 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4310if test "${enable_fs_inet+set}" = set; then
4311 enableval="$enable_fs_inet"
4312
4313 if test "$enableval" = yes; then
4314 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4315 else
4316 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4317 fi
4318
4319else
4320
4321 LINE=`grep "wxUSE_FS_INET" ${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_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4329
4330fi
4331
4332
4333 eval "$ac_cv_use_fs_inet"
4334 if test "$no_cache" != 1; then
4335 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4336 fi
4337
4338 if test "$wxUSE_FS_INET" = 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_zip""... $ac_c" 1>&6
4346echo "configure:4347: checking for --enable-fs_zip" >&5
4347 no_cache=0
4348 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4349if test "${enable_fs_zip+set}" = set; then
4350 enableval="$enable_fs_zip"
4351
4352 if test "$enableval" = yes; then
4353 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4354 else
4355 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4356 fi
4357
4358else
4359
4360 LINE=`grep "wxUSE_FS_ZIP" ${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_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4368
4369fi
4370
4371
4372 eval "$ac_cv_use_fs_zip"
4373 if test "$no_cache" != 1; then
4374 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4375 fi
4376
4377 if test "$wxUSE_FS_ZIP" = 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-zipstream""... $ac_c" 1>&6
4385echo "configure:4386: checking for --enable-zipstream" >&5
4386 no_cache=0
4387 # Check whether --enable-zipstream or --disable-zipstream was given.
4388if test "${enable_zipstream+set}" = set; then
4389 enableval="$enable_zipstream"
4390
4391 if test "$enableval" = yes; then
4392 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4393 else
4394 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4395 fi
4396
4397else
4398
4399 LINE=`grep "wxUSE_ZIPSTREAM" ${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_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4407
4408fi
4409
4410
4411 eval "$ac_cv_use_zipstream"
4412 if test "$no_cache" != 1; then
4413 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4414 fi
4415
4416 if test "$wxUSE_ZIPSTREAM" = yes; then
4417 echo "$ac_t""yes" 1>&6
4418 else
4419 echo "$ac_t""no" 1>&6
4420 fi
4421
4422
4423
4424 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4425echo "configure:4426: checking for --enable-catch_segvs" >&5
4426 no_cache=0
4427 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4428if test "${enable_catch_segvs+set}" = set; then
4429 enableval="$enable_catch_segvs"
4430
4431 if test "$enableval" = yes; then
4432 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4433 else
4434 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4435 fi
4436
4437else
4438
4439 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4440 if test "x$LINE" != x ; then
4441 eval "DEFAULT_$LINE"
4442 else
4443 no_cache=1
4444 fi
4445
4446 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4447
4448fi
4449
4450
4451 eval "$ac_cv_use_catch_segvs"
4452 if test "$no_cache" != 1; then
4453 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4454 fi
4455
4456 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4457 echo "$ac_t""yes" 1>&6
4458 else
4459 echo "$ac_t""no" 1>&6
4460 fi
4461
4462
4463 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4464echo "configure:4465: checking for --enable-snglinst" >&5
4465 no_cache=0
4466 # Check whether --enable-snglinst or --disable-snglinst was given.
4467if test "${enable_snglinst+set}" = set; then
4468 enableval="$enable_snglinst"
4469
4470 if test "$enableval" = yes; then
4471 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4472 else
4473 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4474 fi
4475
4476else
4477
4478 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${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_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4486
4487fi
4488
4489
4490 eval "$ac_cv_use_snglinst"
4491 if test "$no_cache" != 1; then
4492 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4493 fi
4494
4495 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4496 echo "$ac_t""yes" 1>&6
4497 else
4498 echo "$ac_t""no" 1>&6
4499 fi
4500
4501
4502
4503 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4504echo "configure:4505: checking for --enable-mimetype" >&5
4505 no_cache=0
4506 # Check whether --enable-mimetype or --disable-mimetype was given.
4507if test "${enable_mimetype+set}" = set; then
4508 enableval="$enable_mimetype"
4509
4510 if test "$enableval" = yes; then
4511 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4512 else
4513 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4514 fi
4515
4516else
4517
4518 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4519 if test "x$LINE" != x ; then
4520 eval "DEFAULT_$LINE"
4521 else
4522 no_cache=1
4523 fi
4524
4525 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4526
4527fi
4528
4529
4530 eval "$ac_cv_use_mimetype"
4531 if test "$no_cache" != 1; then
4532 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4533 fi
4534
4535 if test "$wxUSE_MIMETYPE" = yes; then
4536 echo "$ac_t""yes" 1>&6
4537 else
4538 echo "$ac_t""no" 1>&6
4539 fi
4540
4541
4542 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4543echo "configure:4544: checking for --enable-system_options" >&5
4544 no_cache=0
4545 # Check whether --enable-system_options or --disable-system_options was given.
4546if test "${enable_system_options+set}" = set; then
4547 enableval="$enable_system_options"
4548
4549 if test "$enableval" = yes; then
4550 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4551 else
4552 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4553 fi
4554
4555else
4556
4557 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${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_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4565
4566fi
4567
4568
4569 eval "$ac_cv_use_system_options"
4570 if test "$no_cache" != 1; then
4571 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4572 fi
4573
4574 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4575 echo "$ac_t""yes" 1>&6
4576 else
4577 echo "$ac_t""no" 1>&6
4578 fi
4579
4580
4581
4582 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
4583echo "configure:4584: checking for --enable-url" >&5
4584 no_cache=0
4585 # Check whether --enable-url or --disable-url was given.
4586if test "${enable_url+set}" = set; then
4587 enableval="$enable_url"
4588
4589 if test "$enableval" = yes; then
4590 ac_cv_use_url='wxUSE_URL=yes'
4591 else
4592 ac_cv_use_url='wxUSE_URL=no'
4593 fi
4594
4595else
4596
4597 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4598 if test "x$LINE" != x ; then
4599 eval "DEFAULT_$LINE"
4600 else
4601 no_cache=1
4602 fi
4603
4604 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4605
4606fi
4607
4608
4609 eval "$ac_cv_use_url"
4610 if test "$no_cache" != 1; then
4611 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4612 fi
4613
4614 if test "$wxUSE_URL" = yes; then
4615 echo "$ac_t""yes" 1>&6
4616 else
4617 echo "$ac_t""no" 1>&6
4618 fi
4619
4620
4621 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
4622echo "configure:4623: checking for --enable-protocol" >&5
4623 no_cache=0
4624 # Check whether --enable-protocol or --disable-protocol was given.
4625if test "${enable_protocol+set}" = set; then
4626 enableval="$enable_protocol"
4627
4628 if test "$enableval" = yes; then
4629 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4630 else
4631 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4632 fi
4633
4634else
4635
4636 LINE=`grep "wxUSE_PROTOCOL" ${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_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4644
4645fi
4646
4647
4648 eval "$ac_cv_use_protocol"
4649 if test "$no_cache" != 1; then
4650 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4651 fi
4652
4653 if test "$wxUSE_PROTOCOL" = 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_http""... $ac_c" 1>&6
4661echo "configure:4662: checking for --enable-protocol_http" >&5
4662 no_cache=0
4663 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4664if test "${enable_protocol_http+set}" = set; then
4665 enableval="$enable_protocol_http"
4666
4667 if test "$enableval" = yes; then
4668 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4669 else
4670 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4671 fi
4672
4673else
4674
4675 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${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_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4683
4684fi
4685
4686
4687 eval "$ac_cv_use_protocol_http"
4688 if test "$no_cache" != 1; then
4689 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4690 fi
4691
4692 if test "$wxUSE_PROTOCOL_HTTP" = 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_ftp""... $ac_c" 1>&6
4700echo "configure:4701: checking for --enable-protocol_ftp" >&5
4701 no_cache=0
4702 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4703if test "${enable_protocol_ftp+set}" = set; then
4704 enableval="$enable_protocol_ftp"
4705
4706 if test "$enableval" = yes; then
4707 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4708 else
4709 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4710 fi
4711
4712else
4713
4714 LINE=`grep "wxUSE_PROTOCOL_FTP" ${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_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4722
4723fi
4724
4725
4726 eval "$ac_cv_use_protocol_ftp"
4727 if test "$no_cache" != 1; then
4728 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4729 fi
4730
4731 if test "$wxUSE_PROTOCOL_FTP" = 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_file""... $ac_c" 1>&6
4739echo "configure:4740: checking for --enable-protocol_file" >&5
4740 no_cache=0
4741 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4742if test "${enable_protocol_file+set}" = set; then
4743 enableval="$enable_protocol_file"
4744
4745 if test "$enableval" = yes; then
4746 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4747 else
4748 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4749 fi
4750
4751else
4752
4753 LINE=`grep "wxUSE_PROTOCOL_FILE" ${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_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4761
4762fi
4763
4764
4765 eval "$ac_cv_use_protocol_file"
4766 if test "$no_cache" != 1; then
4767 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4768 fi
4769
4770 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4771 echo "$ac_t""yes" 1>&6
4772 else
4773 echo "$ac_t""no" 1>&6
4774 fi
4775
4776
4777
4778
4779
4780 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4781echo "configure:4782: checking for --enable-threads" >&5
4782 no_cache=0
4783 # Check whether --enable-threads or --disable-threads was given.
4784if test "${enable_threads+set}" = set; then
4785 enableval="$enable_threads"
4786
4787 if test "$enableval" = yes; then
4788 ac_cv_use_threads='wxUSE_THREADS=yes'
4789 else
4790 ac_cv_use_threads='wxUSE_THREADS=no'
4791 fi
4792
4793else
4794
4795 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4796 if test "x$LINE" != x ; then
4797 eval "DEFAULT_$LINE"
4798 else
4799 no_cache=1
4800 fi
4801
4802 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4803
4804fi
4805
4806
4807 eval "$ac_cv_use_threads"
4808 if test "$no_cache" != 1; then
4809 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4810 fi
4811
4812 if test "$wxUSE_THREADS" = yes; then
4813 echo "$ac_t""yes" 1>&6
4814 else
4815 echo "$ac_t""no" 1>&6
4816 fi
4817
4818
4819if test "$wxUSE_GUI" = "yes"; then
4820
4821
4822
4823 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4824echo "configure:4825: checking for --enable-docview" >&5
4825 no_cache=0
4826 # Check whether --enable-docview or --disable-docview was given.
4827if test "${enable_docview+set}" = set; then
4828 enableval="$enable_docview"
4829
4830 if test "$enableval" = yes; then
4831 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4832 else
4833 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4834 fi
4835
4836else
4837
4838 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4839 if test "x$LINE" != x ; then
4840 eval "DEFAULT_$LINE"
4841 else
4842 no_cache=1
4843 fi
4844
4845 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4846
4847fi
4848
4849
4850 eval "$ac_cv_use_docview"
4851 if test "$no_cache" != 1; then
4852 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4853 fi
4854
4855 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4856 echo "$ac_t""yes" 1>&6
4857 else
4858 echo "$ac_t""no" 1>&6
4859 fi
4860
4861
4862 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4863echo "configure:4864: checking for --enable-help" >&5
4864 no_cache=0
4865 # Check whether --enable-help or --disable-help was given.
4866if test "${enable_help+set}" = set; then
4867 enableval="$enable_help"
4868
4869 if test "$enableval" = yes; then
4870 ac_cv_use_help='wxUSE_HELP=yes'
4871 else
4872 ac_cv_use_help='wxUSE_HELP=no'
4873 fi
4874
4875else
4876
4877 LINE=`grep "wxUSE_HELP" ${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_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4885
4886fi
4887
4888
4889 eval "$ac_cv_use_help"
4890 if test "$no_cache" != 1; then
4891 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4892 fi
4893
4894 if test "$wxUSE_HELP" = 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-mshtmlhelp""... $ac_c" 1>&6
4902echo "configure:4903: checking for --enable-mshtmlhelp" >&5
4903 no_cache=0
4904 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4905if test "${enable_mshtmlhelp+set}" = set; then
4906 enableval="$enable_mshtmlhelp"
4907
4908 if test "$enableval" = yes; then
4909 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4910 else
4911 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4912 fi
4913
4914else
4915
4916 LINE=`grep "wxUSE_MS_HTML_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_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4924
4925fi
4926
4927
4928 eval "$ac_cv_use_mshtmlhelp"
4929 if test "$no_cache" != 1; then
4930 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4931 fi
4932
4933 if test "$wxUSE_MS_HTML_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-html""... $ac_c" 1>&6
4941echo "configure:4942: checking for --enable-html" >&5
4942 no_cache=0
4943 # Check whether --enable-html or --disable-html was given.
4944if test "${enable_html+set}" = set; then
4945 enableval="$enable_html"
4946
4947 if test "$enableval" = yes; then
4948 ac_cv_use_html='wxUSE_HTML=yes'
4949 else
4950 ac_cv_use_html='wxUSE_HTML=no'
4951 fi
4952
4953else
4954
4955 LINE=`grep "wxUSE_HTML" ${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_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4963
4964fi
4965
4966
4967 eval "$ac_cv_use_html"
4968 if test "$no_cache" != 1; then
4969 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4970 fi
4971
4972 if test "$wxUSE_HTML" = 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-htmlhelp""... $ac_c" 1>&6
4980echo "configure:4981: checking for --enable-htmlhelp" >&5
4981 no_cache=0
4982 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4983if test "${enable_htmlhelp+set}" = set; then
4984 enableval="$enable_htmlhelp"
4985
4986 if test "$enableval" = yes; then
4987 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4988 else
4989 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4990 fi
4991
4992else
4993
4994 LINE=`grep "wxUSE_WXHTML_HELP" ${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_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5002
5003fi
5004
5005
5006 eval "$ac_cv_use_htmlhelp"
5007 if test "$no_cache" != 1; then
5008 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5009 fi
5010
5011 if test "$wxUSE_WXHTML_HELP" = 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-constraints""... $ac_c" 1>&6
5019echo "configure:5020: checking for --enable-constraints" >&5
5020 no_cache=0
5021 # Check whether --enable-constraints or --disable-constraints was given.
5022if test "${enable_constraints+set}" = set; then
5023 enableval="$enable_constraints"
5024
5025 if test "$enableval" = yes; then
5026 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5027 else
5028 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5029 fi
5030
5031else
5032
5033 LINE=`grep "wxUSE_CONSTRAINTS" ${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_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5041
5042fi
5043
5044
5045 eval "$ac_cv_use_constraints"
5046 if test "$no_cache" != 1; then
5047 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5048 fi
5049
5050 if test "$wxUSE_CONSTRAINTS" = 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-printarch""... $ac_c" 1>&6
5058echo "configure:5059: checking for --enable-printarch" >&5
5059 no_cache=0
5060 # Check whether --enable-printarch or --disable-printarch was given.
5061if test "${enable_printarch+set}" = set; then
5062 enableval="$enable_printarch"
5063
5064 if test "$enableval" = yes; then
5065 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5066 else
5067 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5068 fi
5069
5070else
5071
5072 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${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_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5080
5081fi
5082
5083
5084 eval "$ac_cv_use_printarch"
5085 if test "$no_cache" != 1; then
5086 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5087 fi
5088
5089 if test "$wxUSE_PRINTING_ARCHITECTURE" = 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-mdi""... $ac_c" 1>&6
5097echo "configure:5098: checking for --enable-mdi" >&5
5098 no_cache=0
5099 # Check whether --enable-mdi or --disable-mdi was given.
5100if test "${enable_mdi+set}" = set; then
5101 enableval="$enable_mdi"
5102
5103 if test "$enableval" = yes; then
5104 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5105 else
5106 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5107 fi
5108
5109else
5110
5111 LINE=`grep "wxUSE_MDI_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_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5119
5120fi
5121
5122
5123 eval "$ac_cv_use_mdi"
5124 if test "$no_cache" != 1; then
5125 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5126 fi
5127
5128 if test "$wxUSE_MDI_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-loggui""... $ac_c" 1>&6
5136echo "configure:5137: checking for --enable-loggui" >&5
5137 no_cache=0
5138 # Check whether --enable-loggui or --disable-loggui was given.
5139if test "${enable_loggui+set}" = set; then
5140 enableval="$enable_loggui"
5141
5142 if test "$enableval" = yes; then
5143 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5144 else
5145 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5146 fi
5147
5148else
5149
5150 LINE=`grep "wxUSE_LOGGUI" ${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_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5158
5159fi
5160
5161
5162 eval "$ac_cv_use_loggui"
5163 if test "$no_cache" != 1; then
5164 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5165 fi
5166
5167 if test "$wxUSE_LOGGUI" = 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-logwin""... $ac_c" 1>&6
5175echo "configure:5176: checking for --enable-logwin" >&5
5176 no_cache=0
5177 # Check whether --enable-logwin or --disable-logwin was given.
5178if test "${enable_logwin+set}" = set; then
5179 enableval="$enable_logwin"
5180
5181 if test "$enableval" = yes; then
5182 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5183 else
5184 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5185 fi
5186
5187else
5188
5189 LINE=`grep "wxUSE_LOGWINDOW" ${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_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5197
5198fi
5199
5200
5201 eval "$ac_cv_use_logwin"
5202 if test "$no_cache" != 1; then
5203 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5204 fi
5205
5206 if test "$wxUSE_LOGWINDOW" = 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-logdialog""... $ac_c" 1>&6
5214echo "configure:5215: checking for --enable-logdialog" >&5
5215 no_cache=0
5216 # Check whether --enable-logdialog or --disable-logdialog was given.
5217if test "${enable_logdialog+set}" = set; then
5218 enableval="$enable_logdialog"
5219
5220 if test "$enableval" = yes; then
5221 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5222 else
5223 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5224 fi
5225
5226else
5227
5228 LINE=`grep "wxUSE_LOGDIALOG" ${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_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5236
5237fi
5238
5239
5240 eval "$ac_cv_use_logdialog"
5241 if test "$no_cache" != 1; then
5242 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5243 fi
5244
5245 if test "$wxUSE_LOGDIALOG" = yes; then
5246 echo "$ac_t""yes" 1>&6
5247 else
5248 echo "$ac_t""no" 1>&6
5249 fi
5250
5251
5252
5253 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
5254echo "configure:5255: checking for --enable-postscript" >&5
5255 no_cache=0
5256 # Check whether --enable-postscript or --disable-postscript was given.
5257if test "${enable_postscript+set}" = set; then
5258 enableval="$enable_postscript"
5259
5260 if test "$enableval" = yes; then
5261 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5262 else
5263 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5264 fi
5265
5266else
5267
5268 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5269 if test "x$LINE" != x ; then
5270 eval "DEFAULT_$LINE"
5271 else
5272 no_cache=1
5273 fi
5274
5275 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5276
5277fi
5278
5279
5280 eval "$ac_cv_use_postscript"
5281 if test "$no_cache" != 1; then
5282 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5283 fi
5284
5285 if test "$wxUSE_POSTSCRIPT" = yes; then
5286 echo "$ac_t""yes" 1>&6
5287 else
5288 echo "$ac_t""no" 1>&6
5289 fi
5290
5291
5292
5293
5294
5295 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
5296echo "configure:5297: checking for --enable-prologio" >&5
5297 no_cache=0
5298 # Check whether --enable-prologio or --disable-prologio was given.
5299if test "${enable_prologio+set}" = set; then
5300 enableval="$enable_prologio"
5301
5302 if test "$enableval" = yes; then
5303 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5304 else
5305 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5306 fi
5307
5308else
5309
5310 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5311 if test "x$LINE" != x ; then
5312 eval "DEFAULT_$LINE"
5313 else
5314 no_cache=1
5315 fi
5316
5317 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5318
5319fi
5320
5321
5322 eval "$ac_cv_use_prologio"
5323 if test "$no_cache" != 1; then
5324 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5325 fi
5326
5327 if test "$wxUSE_PROLOGIO" = yes; then
5328 echo "$ac_t""yes" 1>&6
5329 else
5330 echo "$ac_t""no" 1>&6
5331 fi
5332
5333
5334 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
5335echo "configure:5336: checking for --enable-resources" >&5
5336 no_cache=0
5337 # Check whether --enable-resources or --disable-resources was given.
5338if test "${enable_resources+set}" = set; then
5339 enableval="$enable_resources"
5340
5341 if test "$enableval" = yes; then
5342 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5343 else
5344 ac_cv_use_resources='wxUSE_RESOURCES=no'
5345 fi
5346
5347else
5348
5349 LINE=`grep "wxUSE_RESOURCES" ${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_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5357
5358fi
5359
5360
5361 eval "$ac_cv_use_resources"
5362 if test "$no_cache" != 1; then
5363 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5364 fi
5365
5366 if test "$wxUSE_RESOURCES" = yes; then
5367 echo "$ac_t""yes" 1>&6
5368 else
5369 echo "$ac_t""no" 1>&6
5370 fi
5371
5372
5373
5374 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
5375echo "configure:5376: checking for --enable-xresources" >&5
5376 no_cache=0
5377 # Check whether --enable-xresources or --disable-xresources was given.
5378if test "${enable_xresources+set}" = set; then
5379 enableval="$enable_xresources"
5380
5381 if test "$enableval" = yes; then
5382 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5383 else
5384 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5385 fi
5386
5387else
5388
5389 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5390 if test "x$LINE" != x ; then
5391 eval "DEFAULT_$LINE"
5392 else
5393 no_cache=1
5394 fi
5395
5396 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5397
5398fi
5399
5400
5401 eval "$ac_cv_use_xresources"
5402 if test "$no_cache" != 1; then
5403 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5404 fi
5405
5406 if test "$wxUSE_X_RESOURCES" = yes; then
5407 echo "$ac_t""yes" 1>&6
5408 else
5409 echo "$ac_t""no" 1>&6
5410 fi
5411
5412
5413
5414
5415 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
5416echo "configure:5417: checking for --enable-clipboard" >&5
5417 no_cache=0
5418 # Check whether --enable-clipboard or --disable-clipboard was given.
5419if test "${enable_clipboard+set}" = set; then
5420 enableval="$enable_clipboard"
5421
5422 if test "$enableval" = yes; then
5423 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5424 else
5425 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5426 fi
5427
5428else
5429
5430 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5431 if test "x$LINE" != x ; then
5432 eval "DEFAULT_$LINE"
5433 else
5434 no_cache=1
5435 fi
5436
5437 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5438
5439fi
5440
5441
5442 eval "$ac_cv_use_clipboard"
5443 if test "$no_cache" != 1; then
5444 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5445 fi
5446
5447 if test "$wxUSE_CLIPBOARD" = yes; then
5448 echo "$ac_t""yes" 1>&6
5449 else
5450 echo "$ac_t""no" 1>&6
5451 fi
5452
5453
5454 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
5455echo "configure:5456: checking for --enable-dnd" >&5
5456 no_cache=0
5457 # Check whether --enable-dnd or --disable-dnd was given.
5458if test "${enable_dnd+set}" = set; then
5459 enableval="$enable_dnd"
5460
5461 if test "$enableval" = yes; then
5462 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5463 else
5464 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5465 fi
5466
5467else
5468
5469 LINE=`grep "wxUSE_DRAG_AND_DROP" ${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_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5477
5478fi
5479
5480
5481 eval "$ac_cv_use_dnd"
5482 if test "$no_cache" != 1; then
5483 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5484 fi
5485
5486 if test "$wxUSE_DRAG_AND_DROP" = 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-metafile""... $ac_c" 1>&6
5494echo "configure:5495: checking for --enable-metafile" >&5
5495 no_cache=0
5496 # Check whether --enable-metafile or --disable-metafile was given.
5497if test "${enable_metafile+set}" = set; then
5498 enableval="$enable_metafile"
5499
5500 if test "$enableval" = yes; then
5501 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5502 else
5503 ac_cv_use_metafile='wxUSE_METAFILE=no'
5504 fi
5505
5506else
5507
5508 LINE=`grep "wxUSE_METAFILE" ${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_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5516
5517fi
5518
5519
5520 eval "$ac_cv_use_metafile"
5521 if test "$no_cache" != 1; then
5522 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5523 fi
5524
5525 if test "$wxUSE_METAFILE" = yes; then
5526 echo "$ac_t""yes" 1>&6
5527 else
5528 echo "$ac_t""no" 1>&6
5529 fi
5530
5531
5532
5533 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5534echo "configure:5535: checking for --enable-treelayout" >&5
5535 no_cache=0
5536 # Check whether --enable-treelayout or --disable-treelayout was given.
5537if test "${enable_treelayout+set}" = set; then
5538 enableval="$enable_treelayout"
5539
5540 if test "$enableval" = yes; then
5541 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5542 else
5543 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5544 fi
5545
5546else
5547
5548 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5549 if test "x$LINE" != x ; then
5550 eval "DEFAULT_$LINE"
5551 else
5552 no_cache=1
5553 fi
5554
5555 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5556
5557fi
5558
5559
5560 eval "$ac_cv_use_treelayout"
5561 if test "$no_cache" != 1; then
5562 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5563 fi
5564
5565 if test "$wxUSE_TREELAYOUT" = yes; then
5566 echo "$ac_t""yes" 1>&6
5567 else
5568 echo "$ac_t""no" 1>&6
5569 fi
5570
5571
5572
5573
5574 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5575echo "configure:5576: checking for --enable-controls" >&5
5576 no_cache=0
5577 # Check whether --enable-controls or --disable-controls was given.
5578if test "${enable_controls+set}" = set; then
5579 enableval="$enable_controls"
5580
5581 if test "$enableval" = yes; then
5582 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5583 else
5584 ac_cv_use_controls='wxUSE_CONTROLS=no'
5585 fi
5586
5587else
5588
5589 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5590 if test "x$LINE" != x ; then
5591 eval "DEFAULT_$LINE"
5592 else
5593 no_cache=1
5594 fi
5595
5596 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5597
5598fi
5599
5600
5601 eval "$ac_cv_use_controls"
5602 if test "$no_cache" != 1; then
5603 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5604 fi
5605
5606 if test "$wxUSE_CONTROLS" = yes; then
5607 echo "$ac_t""yes" 1>&6
5608 else
5609 echo "$ac_t""no" 1>&6
5610 fi
5611
5612
5613if test "$wxUSE_CONTROLS" = "yes"; then
5614 DEFAULT_wxUSE_ACCEL=yes
5615 DEFAULT_wxUSE_BMPBUTTON=yes
5616 DEFAULT_wxUSE_BUTTON=yes
5617 DEFAULT_wxUSE_CALCTRL=no
5618 DEFAULT_wxUSE_CARET=yes
5619 DEFAULT_wxUSE_COMBOBOX=yes
5620 DEFAULT_wxUSE_CHECKBOX=yes
5621 DEFAULT_wxUSE_CHECKLISTBOX=yes
5622 DEFAULT_wxUSE_CHOICE=yes
5623 DEFAULT_wxUSE_GAUGE=yes
5624 DEFAULT_wxUSE_GRID=yes
5625 DEFAULT_wxUSE_NEW_GRID=yes
5626 DEFAULT_wxUSE_IMAGLIST=yes
5627 DEFAULT_wxUSE_LISTBOX=yes
5628 DEFAULT_wxUSE_LISTCTRL=yes
5629 DEFAULT_wxUSE_NOTEBOOK=yes
5630 DEFAULT_wxUSE_PROPSHEET=yes
5631 DEFAULT_wxUSE_RADIOBOX=yes
5632 DEFAULT_wxUSE_RADIOBTN=yes
5633 DEFAULT_wxUSE_SASH=yes
5634 DEFAULT_wxUSE_SCROLLBAR=yes
5635 DEFAULT_wxUSE_SLIDER=yes
5636 DEFAULT_wxUSE_SPINBTN=yes
5637 DEFAULT_wxUSE_SPINCTRL=yes
5638 DEFAULT_wxUSE_SPLITTER=yes
5639 DEFAULT_wxUSE_STATBMP=yes
5640 DEFAULT_wxUSE_STATBOX=yes
5641 DEFAULT_wxUSE_STATLINE=yes
5642 DEFAULT_wxUSE_STATUSBAR=yes
5643 DEFAULT_wxUSE_TAB_DIALOG=yes
5644 DEFAULT_wxUSE_TOGGLEBTN=yes
5645 DEFAULT_wxUSE_TOOLBAR=yes
5646 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5647 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5648 DEFAULT_wxUSE_TOOLTIPS=yes
5649 DEFAULT_wxUSE_TREECTRL=yes
5650 DEFAULT_wxUSE_POPUPWIN=yes
5651 DEFAULT_wxUSE_TIPWINDOW=yes
5652elif test "$wxUSE_CONTROLS" = "no"; then
5653 DEFAULT_wxUSE_ACCEL=no
5654 DEFAULT_wxUSE_BMPBUTTON=no
5655 DEFAULT_wxUSE_BUTTON=no
5656 DEFAULT_wxUSE_CALCTRL=no
5657 DEFAULT_wxUSE_CARET=no
5658 DEFAULT_wxUSE_COMBOBOX=no
5659 DEFAULT_wxUSE_CHECKBOX=no
5660 DEFAULT_wxUSE_CHECKLISTBOX=no
5661 DEFAULT_wxUSE_CHOICE=no
5662 DEFAULT_wxUSE_GAUGE=no
5663 DEFAULT_wxUSE_GRID=no
5664 DEFAULT_wxUSE_NEW_GRID=no
5665 DEFAULT_wxUSE_IMAGLIST=no
5666 DEFAULT_wxUSE_LISTBOX=no
5667 DEFAULT_wxUSE_LISTCTRL=no
5668 DEFAULT_wxUSE_NOTEBOOK=no
5669 DEFAULT_wxUSE_PROPSHEET=no
5670 DEFAULT_wxUSE_RADIOBOX=no
5671 DEFAULT_wxUSE_RADIOBTN=no
5672 DEFAULT_wxUSE_SASH=no
5673 DEFAULT_wxUSE_SCROLLBAR=no
5674 DEFAULT_wxUSE_SLIDER=no
5675 DEFAULT_wxUSE_SPINBTN=no
5676 DEFAULT_wxUSE_SPINCTRL=no
5677 DEFAULT_wxUSE_SPLITTER=no
5678 DEFAULT_wxUSE_STATBMP=no
5679 DEFAULT_wxUSE_STATBOX=no
5680 DEFAULT_wxUSE_STATLINE=no
5681 DEFAULT_wxUSE_STATUSBAR=no
5682 DEFAULT_wxUSE_TAB_DIALOG=no
5683 DEFAULT_wxUSE_TOGGLEBTN=no
5684 DEFAULT_wxUSE_TOOLBAR=no
5685 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5686 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5687 DEFAULT_wxUSE_TOOLTIPS=no
5688 DEFAULT_wxUSE_TREECTRL=no
5689 DEFAULT_wxUSE_POPUPWIN=no
5690 DEFAULT_wxUSE_TIPWINDOW=no
5691fi
5692
5693
5694 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5695echo "configure:5696: checking for --enable-accel" >&5
5696 no_cache=0
5697 # Check whether --enable-accel or --disable-accel was given.
5698if test "${enable_accel+set}" = set; then
5699 enableval="$enable_accel"
5700
5701 if test "$enableval" = yes; then
5702 ac_cv_use_accel='wxUSE_ACCEL=yes'
5703 else
5704 ac_cv_use_accel='wxUSE_ACCEL=no'
5705 fi
5706
5707else
5708
5709 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5710 if test "x$LINE" != x ; then
5711 eval "DEFAULT_$LINE"
5712 else
5713 no_cache=1
5714 fi
5715
5716 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5717
5718fi
5719
5720
5721 eval "$ac_cv_use_accel"
5722 if test "$no_cache" != 1; then
5723 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5724 fi
5725
5726 if test "$wxUSE_ACCEL" = yes; then
5727 echo "$ac_t""yes" 1>&6
5728 else
5729 echo "$ac_t""no" 1>&6
5730 fi
5731
5732
5733 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5734echo "configure:5735: checking for --enable-button" >&5
5735 no_cache=0
5736 # Check whether --enable-button or --disable-button was given.
5737if test "${enable_button+set}" = set; then
5738 enableval="$enable_button"
5739
5740 if test "$enableval" = yes; then
5741 ac_cv_use_button='wxUSE_BUTTON=yes'
5742 else
5743 ac_cv_use_button='wxUSE_BUTTON=no'
5744 fi
5745
5746else
5747
5748 LINE=`grep "wxUSE_BUTTON" ${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_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5756
5757fi
5758
5759
5760 eval "$ac_cv_use_button"
5761 if test "$no_cache" != 1; then
5762 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5763 fi
5764
5765 if test "$wxUSE_BUTTON" = 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-bmpbutton""... $ac_c" 1>&6
5773echo "configure:5774: checking for --enable-bmpbutton" >&5
5774 no_cache=0
5775 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5776if test "${enable_bmpbutton+set}" = set; then
5777 enableval="$enable_bmpbutton"
5778
5779 if test "$enableval" = yes; then
5780 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5781 else
5782 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5783 fi
5784
5785else
5786
5787 LINE=`grep "wxUSE_BMPBUTTON" ${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_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5795
5796fi
5797
5798
5799 eval "$ac_cv_use_bmpbutton"
5800 if test "$no_cache" != 1; then
5801 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5802 fi
5803
5804 if test "$wxUSE_BMPBUTTON" = 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-calendar""... $ac_c" 1>&6
5812echo "configure:5813: checking for --enable-calendar" >&5
5813 no_cache=0
5814 # Check whether --enable-calendar or --disable-calendar was given.
5815if test "${enable_calendar+set}" = set; then
5816 enableval="$enable_calendar"
5817
5818 if test "$enableval" = yes; then
5819 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5820 else
5821 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5822 fi
5823
5824else
5825
5826 LINE=`grep "wxUSE_CALCTRL" ${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_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5834
5835fi
5836
5837
5838 eval "$ac_cv_use_calendar"
5839 if test "$no_cache" != 1; then
5840 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5841 fi
5842
5843 if test "$wxUSE_CALCTRL" = 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-caret""... $ac_c" 1>&6
5851echo "configure:5852: checking for --enable-caret" >&5
5852 no_cache=0
5853 # Check whether --enable-caret or --disable-caret was given.
5854if test "${enable_caret+set}" = set; then
5855 enableval="$enable_caret"
5856
5857 if test "$enableval" = yes; then
5858 ac_cv_use_caret='wxUSE_CARET=yes'
5859 else
5860 ac_cv_use_caret='wxUSE_CARET=no'
5861 fi
5862
5863else
5864
5865 LINE=`grep "wxUSE_CARET" ${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_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5873
5874fi
5875
5876
5877 eval "$ac_cv_use_caret"
5878 if test "$no_cache" != 1; then
5879 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5880 fi
5881
5882 if test "$wxUSE_CARET" = 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-checkbox""... $ac_c" 1>&6
5890echo "configure:5891: checking for --enable-checkbox" >&5
5891 no_cache=0
5892 # Check whether --enable-checkbox or --disable-checkbox was given.
5893if test "${enable_checkbox+set}" = set; then
5894 enableval="$enable_checkbox"
5895
5896 if test "$enableval" = yes; then
5897 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5898 else
5899 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5900 fi
5901
5902else
5903
5904 LINE=`grep "wxUSE_CHECKBOX" ${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_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5912
5913fi
5914
5915
5916 eval "$ac_cv_use_checkbox"
5917 if test "$no_cache" != 1; then
5918 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5919 fi
5920
5921 if test "$wxUSE_CHECKBOX" = 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-checklst""... $ac_c" 1>&6
5929echo "configure:5930: checking for --enable-checklst" >&5
5930 no_cache=0
5931 # Check whether --enable-checklst or --disable-checklst was given.
5932if test "${enable_checklst+set}" = set; then
5933 enableval="$enable_checklst"
5934
5935 if test "$enableval" = yes; then
5936 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5937 else
5938 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5939 fi
5940
5941else
5942
5943 LINE=`grep "wxUSE_CHECKLST" ${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_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5951
5952fi
5953
5954
5955 eval "$ac_cv_use_checklst"
5956 if test "$no_cache" != 1; then
5957 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5958 fi
5959
5960 if test "$wxUSE_CHECKLST" = 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-choice""... $ac_c" 1>&6
5968echo "configure:5969: checking for --enable-choice" >&5
5969 no_cache=0
5970 # Check whether --enable-choice or --disable-choice was given.
5971if test "${enable_choice+set}" = set; then
5972 enableval="$enable_choice"
5973
5974 if test "$enableval" = yes; then
5975 ac_cv_use_choice='wxUSE_CHOICE=yes'
5976 else
5977 ac_cv_use_choice='wxUSE_CHOICE=no'
5978 fi
5979
5980else
5981
5982 LINE=`grep "wxUSE_CHOICE" ${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_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5990
5991fi
5992
5993
5994 eval "$ac_cv_use_choice"
5995 if test "$no_cache" != 1; then
5996 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5997 fi
5998
5999 if test "$wxUSE_CHOICE" = 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-combobox""... $ac_c" 1>&6
6007echo "configure:6008: checking for --enable-combobox" >&5
6008 no_cache=0
6009 # Check whether --enable-combobox or --disable-combobox was given.
6010if test "${enable_combobox+set}" = set; then
6011 enableval="$enable_combobox"
6012
6013 if test "$enableval" = yes; then
6014 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6015 else
6016 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6017 fi
6018
6019else
6020
6021 LINE=`grep "wxUSE_COMBOBOX" ${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_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6029
6030fi
6031
6032
6033 eval "$ac_cv_use_combobox"
6034 if test "$no_cache" != 1; then
6035 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6036 fi
6037
6038 if test "$wxUSE_COMBOBOX" = 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-gauge""... $ac_c" 1>&6
6046echo "configure:6047: checking for --enable-gauge" >&5
6047 no_cache=0
6048 # Check whether --enable-gauge or --disable-gauge was given.
6049if test "${enable_gauge+set}" = set; then
6050 enableval="$enable_gauge"
6051
6052 if test "$enableval" = yes; then
6053 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6054 else
6055 ac_cv_use_gauge='wxUSE_GAUGE=no'
6056 fi
6057
6058else
6059
6060 LINE=`grep "wxUSE_GAUGE" ${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_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6068
6069fi
6070
6071
6072 eval "$ac_cv_use_gauge"
6073 if test "$no_cache" != 1; then
6074 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6075 fi
6076
6077 if test "$wxUSE_GAUGE" = 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-grid""... $ac_c" 1>&6
6085echo "configure:6086: checking for --enable-grid" >&5
6086 no_cache=0
6087 # Check whether --enable-grid or --disable-grid was given.
6088if test "${enable_grid+set}" = set; then
6089 enableval="$enable_grid"
6090
6091 if test "$enableval" = yes; then
6092 ac_cv_use_grid='wxUSE_GRID=yes'
6093 else
6094 ac_cv_use_grid='wxUSE_GRID=no'
6095 fi
6096
6097else
6098
6099 LINE=`grep "wxUSE_GRID" ${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_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6107
6108fi
6109
6110
6111 eval "$ac_cv_use_grid"
6112 if test "$no_cache" != 1; then
6113 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6114 fi
6115
6116 if test "$wxUSE_GRID" = 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-newgrid""... $ac_c" 1>&6
6124echo "configure:6125: checking for --enable-newgrid" >&5
6125 no_cache=0
6126 # Check whether --enable-newgrid or --disable-newgrid was given.
6127if test "${enable_newgrid+set}" = set; then
6128 enableval="$enable_newgrid"
6129
6130 if test "$enableval" = yes; then
6131 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6132 else
6133 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6134 fi
6135
6136else
6137
6138 LINE=`grep "wxUSE_NEW_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_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6146
6147fi
6148
6149
6150 eval "$ac_cv_use_newgrid"
6151 if test "$no_cache" != 1; then
6152 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6153 fi
6154
6155 if test "$wxUSE_NEW_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-imaglist""... $ac_c" 1>&6
6163echo "configure:6164: checking for --enable-imaglist" >&5
6164 no_cache=0
6165 # Check whether --enable-imaglist or --disable-imaglist was given.
6166if test "${enable_imaglist+set}" = set; then
6167 enableval="$enable_imaglist"
6168
6169 if test "$enableval" = yes; then
6170 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6171 else
6172 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6173 fi
6174
6175else
6176
6177 LINE=`grep "wxUSE_IMAGLIST" ${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_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6185
6186fi
6187
6188
6189 eval "$ac_cv_use_imaglist"
6190 if test "$no_cache" != 1; then
6191 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6192 fi
6193
6194 if test "$wxUSE_IMAGLIST" = 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-listbox""... $ac_c" 1>&6
6202echo "configure:6203: checking for --enable-listbox" >&5
6203 no_cache=0
6204 # Check whether --enable-listbox or --disable-listbox was given.
6205if test "${enable_listbox+set}" = set; then
6206 enableval="$enable_listbox"
6207
6208 if test "$enableval" = yes; then
6209 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6210 else
6211 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6212 fi
6213
6214else
6215
6216 LINE=`grep "wxUSE_LISTBOX" ${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_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6224
6225fi
6226
6227
6228 eval "$ac_cv_use_listbox"
6229 if test "$no_cache" != 1; then
6230 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6231 fi
6232
6233 if test "$wxUSE_LISTBOX" = 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-listctrl""... $ac_c" 1>&6
6241echo "configure:6242: checking for --enable-listctrl" >&5
6242 no_cache=0
6243 # Check whether --enable-listctrl or --disable-listctrl was given.
6244if test "${enable_listctrl+set}" = set; then
6245 enableval="$enable_listctrl"
6246
6247 if test "$enableval" = yes; then
6248 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6249 else
6250 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6251 fi
6252
6253else
6254
6255 LINE=`grep "wxUSE_LISTCTRL" ${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_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6263
6264fi
6265
6266
6267 eval "$ac_cv_use_listctrl"
6268 if test "$no_cache" != 1; then
6269 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6270 fi
6271
6272 if test "$wxUSE_LISTCTRL" = 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-notebook""... $ac_c" 1>&6
6280echo "configure:6281: checking for --enable-notebook" >&5
6281 no_cache=0
6282 # Check whether --enable-notebook or --disable-notebook was given.
6283if test "${enable_notebook+set}" = set; then
6284 enableval="$enable_notebook"
6285
6286 if test "$enableval" = yes; then
6287 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6288 else
6289 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6290 fi
6291
6292else
6293
6294 LINE=`grep "wxUSE_NOTEBOOK" ${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_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6302
6303fi
6304
6305
6306 eval "$ac_cv_use_notebook"
6307 if test "$no_cache" != 1; then
6308 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6309 fi
6310
6311 if test "$wxUSE_NOTEBOOK" = 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-propsheet""... $ac_c" 1>&6
6319echo "configure:6320: checking for --enable-propsheet" >&5
6320 no_cache=0
6321 # Check whether --enable-propsheet or --disable-propsheet was given.
6322if test "${enable_propsheet+set}" = set; then
6323 enableval="$enable_propsheet"
6324
6325 if test "$enableval" = yes; then
6326 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6327 else
6328 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6329 fi
6330
6331else
6332
6333 LINE=`grep "wxUSE_PROPSHEET" ${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_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6341
6342fi
6343
6344
6345 eval "$ac_cv_use_propsheet"
6346 if test "$no_cache" != 1; then
6347 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6348 fi
6349
6350 if test "$wxUSE_PROPSHEET" = 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-radiobox""... $ac_c" 1>&6
6358echo "configure:6359: checking for --enable-radiobox" >&5
6359 no_cache=0
6360 # Check whether --enable-radiobox or --disable-radiobox was given.
6361if test "${enable_radiobox+set}" = set; then
6362 enableval="$enable_radiobox"
6363
6364 if test "$enableval" = yes; then
6365 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6366 else
6367 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6368 fi
6369
6370else
6371
6372 LINE=`grep "wxUSE_RADIOBOX" ${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_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6380
6381fi
6382
6383
6384 eval "$ac_cv_use_radiobox"
6385 if test "$no_cache" != 1; then
6386 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6387 fi
6388
6389 if test "$wxUSE_RADIOBOX" = 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-radiobtn""... $ac_c" 1>&6
6397echo "configure:6398: checking for --enable-radiobtn" >&5
6398 no_cache=0
6399 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6400if test "${enable_radiobtn+set}" = set; then
6401 enableval="$enable_radiobtn"
6402
6403 if test "$enableval" = yes; then
6404 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6405 else
6406 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6407 fi
6408
6409else
6410
6411 LINE=`grep "wxUSE_RADIOBTN" ${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_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6419
6420fi
6421
6422
6423 eval "$ac_cv_use_radiobtn"
6424 if test "$no_cache" != 1; then
6425 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6426 fi
6427
6428 if test "$wxUSE_RADIOBTN" = 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-sash""... $ac_c" 1>&6
6436echo "configure:6437: checking for --enable-sash" >&5
6437 no_cache=0
6438 # Check whether --enable-sash or --disable-sash was given.
6439if test "${enable_sash+set}" = set; then
6440 enableval="$enable_sash"
6441
6442 if test "$enableval" = yes; then
6443 ac_cv_use_sash='wxUSE_SASH=yes'
6444 else
6445 ac_cv_use_sash='wxUSE_SASH=no'
6446 fi
6447
6448else
6449
6450 LINE=`grep "wxUSE_SASH" ${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_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6458
6459fi
6460
6461
6462 eval "$ac_cv_use_sash"
6463 if test "$no_cache" != 1; then
6464 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6465 fi
6466
6467 if test "$wxUSE_SASH" = 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-scrollbar""... $ac_c" 1>&6
6475echo "configure:6476: checking for --enable-scrollbar" >&5
6476 no_cache=0
6477 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6478if test "${enable_scrollbar+set}" = set; then
6479 enableval="$enable_scrollbar"
6480
6481 if test "$enableval" = yes; then
6482 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6483 else
6484 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6485 fi
6486
6487else
6488
6489 LINE=`grep "wxUSE_SCROLLBAR" ${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_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6497
6498fi
6499
6500
6501 eval "$ac_cv_use_scrollbar"
6502 if test "$no_cache" != 1; then
6503 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6504 fi
6505
6506 if test "$wxUSE_SCROLLBAR" = 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-slider""... $ac_c" 1>&6
6514echo "configure:6515: checking for --enable-slider" >&5
6515 no_cache=0
6516 # Check whether --enable-slider or --disable-slider was given.
6517if test "${enable_slider+set}" = set; then
6518 enableval="$enable_slider"
6519
6520 if test "$enableval" = yes; then
6521 ac_cv_use_slider='wxUSE_SLIDER=yes'
6522 else
6523 ac_cv_use_slider='wxUSE_SLIDER=no'
6524 fi
6525
6526else
6527
6528 LINE=`grep "wxUSE_SLIDER" ${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_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6536
6537fi
6538
6539
6540 eval "$ac_cv_use_slider"
6541 if test "$no_cache" != 1; then
6542 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6543 fi
6544
6545 if test "$wxUSE_SLIDER" = 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-spinbtn""... $ac_c" 1>&6
6553echo "configure:6554: checking for --enable-spinbtn" >&5
6554 no_cache=0
6555 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6556if test "${enable_spinbtn+set}" = set; then
6557 enableval="$enable_spinbtn"
6558
6559 if test "$enableval" = yes; then
6560 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6561 else
6562 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6563 fi
6564
6565else
6566
6567 LINE=`grep "wxUSE_SPINBTN" ${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_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6575
6576fi
6577
6578
6579 eval "$ac_cv_use_spinbtn"
6580 if test "$no_cache" != 1; then
6581 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6582 fi
6583
6584 if test "$wxUSE_SPINBTN" = 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-spinctrl""... $ac_c" 1>&6
6592echo "configure:6593: checking for --enable-spinctrl" >&5
6593 no_cache=0
6594 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6595if test "${enable_spinctrl+set}" = set; then
6596 enableval="$enable_spinctrl"
6597
6598 if test "$enableval" = yes; then
6599 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6600 else
6601 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6602 fi
6603
6604else
6605
6606 LINE=`grep "wxUSE_SPINCTRL" ${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_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6614
6615fi
6616
6617
6618 eval "$ac_cv_use_spinctrl"
6619 if test "$no_cache" != 1; then
6620 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6621 fi
6622
6623 if test "$wxUSE_SPINCTRL" = 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-splitter""... $ac_c" 1>&6
6631echo "configure:6632: checking for --enable-splitter" >&5
6632 no_cache=0
6633 # Check whether --enable-splitter or --disable-splitter was given.
6634if test "${enable_splitter+set}" = set; then
6635 enableval="$enable_splitter"
6636
6637 if test "$enableval" = yes; then
6638 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6639 else
6640 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6641 fi
6642
6643else
6644
6645 LINE=`grep "wxUSE_SPLITTER" ${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_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6653
6654fi
6655
6656
6657 eval "$ac_cv_use_splitter"
6658 if test "$no_cache" != 1; then
6659 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6660 fi
6661
6662 if test "$wxUSE_SPLITTER" = 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-statbmp""... $ac_c" 1>&6
6670echo "configure:6671: checking for --enable-statbmp" >&5
6671 no_cache=0
6672 # Check whether --enable-statbmp or --disable-statbmp was given.
6673if test "${enable_statbmp+set}" = set; then
6674 enableval="$enable_statbmp"
6675
6676 if test "$enableval" = yes; then
6677 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6678 else
6679 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6680 fi
6681
6682else
6683
6684 LINE=`grep "wxUSE_STATBMP" ${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_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6692
6693fi
6694
6695
6696 eval "$ac_cv_use_statbmp"
6697 if test "$no_cache" != 1; then
6698 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6699 fi
6700
6701 if test "$wxUSE_STATBMP" = 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-statbox""... $ac_c" 1>&6
6709echo "configure:6710: checking for --enable-statbox" >&5
6710 no_cache=0
6711 # Check whether --enable-statbox or --disable-statbox was given.
6712if test "${enable_statbox+set}" = set; then
6713 enableval="$enable_statbox"
6714
6715 if test "$enableval" = yes; then
6716 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6717 else
6718 ac_cv_use_statbox='wxUSE_STATBOX=no'
6719 fi
6720
6721else
6722
6723 LINE=`grep "wxUSE_STATBOX" ${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_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6731
6732fi
6733
6734
6735 eval "$ac_cv_use_statbox"
6736 if test "$no_cache" != 1; then
6737 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6738 fi
6739
6740 if test "$wxUSE_STATBOX" = 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-statline""... $ac_c" 1>&6
6748echo "configure:6749: checking for --enable-statline" >&5
6749 no_cache=0
6750 # Check whether --enable-statline or --disable-statline was given.
6751if test "${enable_statline+set}" = set; then
6752 enableval="$enable_statline"
6753
6754 if test "$enableval" = yes; then
6755 ac_cv_use_statline='wxUSE_STATLINE=yes'
6756 else
6757 ac_cv_use_statline='wxUSE_STATLINE=no'
6758 fi
6759
6760else
6761
6762 LINE=`grep "wxUSE_STATLINE" ${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_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6770
6771fi
6772
6773
6774 eval "$ac_cv_use_statline"
6775 if test "$no_cache" != 1; then
6776 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6777 fi
6778
6779 if test "$wxUSE_STATLINE" = 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-stattext""... $ac_c" 1>&6
6787echo "configure:6788: checking for --enable-stattext" >&5
6788 no_cache=0
6789 # Check whether --enable-stattext or --disable-stattext was given.
6790if test "${enable_stattext+set}" = set; then
6791 enableval="$enable_stattext"
6792
6793 if test "$enableval" = yes; then
6794 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6795 else
6796 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6797 fi
6798
6799else
6800
6801 LINE=`grep "wxUSE_STATTEXT" ${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_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6809
6810fi
6811
6812
6813 eval "$ac_cv_use_stattext"
6814 if test "$no_cache" != 1; then
6815 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6816 fi
6817
6818 if test "$wxUSE_STATTEXT" = 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-statusbar""... $ac_c" 1>&6
6826echo "configure:6827: checking for --enable-statusbar" >&5
6827 no_cache=0
6828 # Check whether --enable-statusbar or --disable-statusbar was given.
6829if test "${enable_statusbar+set}" = set; then
6830 enableval="$enable_statusbar"
6831
6832 if test "$enableval" = yes; then
6833 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6834 else
6835 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6836 fi
6837
6838else
6839
6840 LINE=`grep "wxUSE_STATUSBAR" ${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_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6848
6849fi
6850
6851
6852 eval "$ac_cv_use_statusbar"
6853 if test "$no_cache" != 1; then
6854 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6855 fi
6856
6857 if test "$wxUSE_STATUSBAR" = 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-tabdialog""... $ac_c" 1>&6
6865echo "configure:6866: checking for --enable-tabdialog" >&5
6866 no_cache=0
6867 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6868if test "${enable_tabdialog+set}" = set; then
6869 enableval="$enable_tabdialog"
6870
6871 if test "$enableval" = yes; then
6872 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6873 else
6874 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6875 fi
6876
6877else
6878
6879 LINE=`grep "wxUSE_TABDIALOG" ${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_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6887
6888fi
6889
6890
6891 eval "$ac_cv_use_tabdialog"
6892 if test "$no_cache" != 1; then
6893 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6894 fi
6895
6896 if test "$wxUSE_TABDIALOG" = 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-textctrl""... $ac_c" 1>&6
6904echo "configure:6905: checking for --enable-textctrl" >&5
6905 no_cache=0
6906 # Check whether --enable-textctrl or --disable-textctrl was given.
6907if test "${enable_textctrl+set}" = set; then
6908 enableval="$enable_textctrl"
6909
6910 if test "$enableval" = yes; then
6911 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6912 else
6913 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6914 fi
6915
6916else
6917
6918 LINE=`grep "wxUSE_TEXTCTRL" ${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_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6926
6927fi
6928
6929
6930 eval "$ac_cv_use_textctrl"
6931 if test "$no_cache" != 1; then
6932 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6933 fi
6934
6935 if test "$wxUSE_TEXTCTRL" = 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-togglebtn""... $ac_c" 1>&6
6943echo "configure:6944: checking for --enable-togglebtn" >&5
6944 no_cache=0
6945 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6946if test "${enable_togglebtn+set}" = set; then
6947 enableval="$enable_togglebtn"
6948
6949 if test "$enableval" = yes; then
6950 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6951 else
6952 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6953 fi
6954
6955else
6956
6957 LINE=`grep "wxUSE_TOGGLEBTN" ${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_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6965
6966fi
6967
6968
6969 eval "$ac_cv_use_togglebtn"
6970 if test "$no_cache" != 1; then
6971 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6972 fi
6973
6974 if test "$wxUSE_TOGGLEBTN" = 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-toolbar""... $ac_c" 1>&6
6982echo "configure:6983: checking for --enable-toolbar" >&5
6983 no_cache=0
6984 # Check whether --enable-toolbar or --disable-toolbar was given.
6985if test "${enable_toolbar+set}" = set; then
6986 enableval="$enable_toolbar"
6987
6988 if test "$enableval" = yes; then
6989 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6990 else
6991 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6992 fi
6993
6994else
6995
6996 LINE=`grep "wxUSE_TOOLBAR" ${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_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7004
7005fi
7006
7007
7008 eval "$ac_cv_use_toolbar"
7009 if test "$no_cache" != 1; then
7010 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7011 fi
7012
7013 if test "$wxUSE_TOOLBAR" = 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-tbarnative""... $ac_c" 1>&6
7021echo "configure:7022: checking for --enable-tbarnative" >&5
7022 no_cache=0
7023 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7024if test "${enable_tbarnative+set}" = set; then
7025 enableval="$enable_tbarnative"
7026
7027 if test "$enableval" = yes; then
7028 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7029 else
7030 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7031 fi
7032
7033else
7034
7035 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${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_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7043
7044fi
7045
7046
7047 eval "$ac_cv_use_tbarnative"
7048 if test "$no_cache" != 1; then
7049 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7050 fi
7051
7052 if test "$wxUSE_TOOLBAR_NATIVE" = 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-tbarsmpl""... $ac_c" 1>&6
7060echo "configure:7061: checking for --enable-tbarsmpl" >&5
7061 no_cache=0
7062 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7063if test "${enable_tbarsmpl+set}" = set; then
7064 enableval="$enable_tbarsmpl"
7065
7066 if test "$enableval" = yes; then
7067 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7068 else
7069 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7070 fi
7071
7072else
7073
7074 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${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_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7082
7083fi
7084
7085
7086 eval "$ac_cv_use_tbarsmpl"
7087 if test "$no_cache" != 1; then
7088 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7089 fi
7090
7091 if test "$wxUSE_TOOLBAR_SIMPLE" = 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-treectrl""... $ac_c" 1>&6
7099echo "configure:7100: checking for --enable-treectrl" >&5
7100 no_cache=0
7101 # Check whether --enable-treectrl or --disable-treectrl was given.
7102if test "${enable_treectrl+set}" = set; then
7103 enableval="$enable_treectrl"
7104
7105 if test "$enableval" = yes; then
7106 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7107 else
7108 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7109 fi
7110
7111else
7112
7113 LINE=`grep "wxUSE_TREECTRL" ${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_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7121
7122fi
7123
7124
7125 eval "$ac_cv_use_treectrl"
7126 if test "$no_cache" != 1; then
7127 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7128 fi
7129
7130 if test "$wxUSE_TREECTRL" = 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-tipwindow""... $ac_c" 1>&6
7138echo "configure:7139: checking for --enable-tipwindow" >&5
7139 no_cache=0
7140 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7141if test "${enable_tipwindow+set}" = set; then
7142 enableval="$enable_tipwindow"
7143
7144 if test "$enableval" = yes; then
7145 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7146 else
7147 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7148 fi
7149
7150else
7151
7152 LINE=`grep "wxUSE_TIPWINDOW" ${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_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7160
7161fi
7162
7163
7164 eval "$ac_cv_use_tipwindow"
7165 if test "$no_cache" != 1; then
7166 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7167 fi
7168
7169 if test "$wxUSE_TIPWINDOW" = 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-popupwin""... $ac_c" 1>&6
7177echo "configure:7178: checking for --enable-popupwin" >&5
7178 no_cache=0
7179 # Check whether --enable-popupwin or --disable-popupwin was given.
7180if test "${enable_popupwin+set}" = set; then
7181 enableval="$enable_popupwin"
7182
7183 if test "$enableval" = yes; then
7184 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7185 else
7186 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7187 fi
7188
7189else
7190
7191 LINE=`grep "wxUSE_POPUPWIN" ${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_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7199
7200fi
7201
7202
7203 eval "$ac_cv_use_popupwin"
7204 if test "$no_cache" != 1; then
7205 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7206 fi
7207
7208 if test "$wxUSE_POPUPWIN" = yes; then
7209 echo "$ac_t""yes" 1>&6
7210 else
7211 echo "$ac_t""no" 1>&6
7212 fi
7213
7214
7215
7216
7217 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
7218echo "configure:7219: checking for --enable-commondlg" >&5
7219 no_cache=0
7220 # Check whether --enable-commondlg or --disable-commondlg was given.
7221if test "${enable_commondlg+set}" = set; then
7222 enableval="$enable_commondlg"
7223
7224 if test "$enableval" = yes; then
7225 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7226 else
7227 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7228 fi
7229
7230else
7231
7232 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7233 if test "x$LINE" != x ; then
7234 eval "DEFAULT_$LINE"
7235 else
7236 no_cache=1
7237 fi
7238
7239 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7240
7241fi
7242
7243
7244 eval "$ac_cv_use_commondlg"
7245 if test "$no_cache" != 1; then
7246 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7247 fi
7248
7249 if test "$wxUSE_COMMONDLGS" = yes; then
7250 echo "$ac_t""yes" 1>&6
7251 else
7252 echo "$ac_t""no" 1>&6
7253 fi
7254
7255
7256 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
7257echo "configure:7258: checking for --enable-choicedlg" >&5
7258 no_cache=0
7259 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7260if test "${enable_choicedlg+set}" = set; then
7261 enableval="$enable_choicedlg"
7262
7263 if test "$enableval" = yes; then
7264 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7265 else
7266 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7267 fi
7268
7269else
7270
7271 LINE=`grep "wxUSE_CHOICEDLG" ${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_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7279
7280fi
7281
7282
7283 eval "$ac_cv_use_choicedlg"
7284 if test "$no_cache" != 1; then
7285 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7286 fi
7287
7288 if test "$wxUSE_CHOICEDLG" = 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-coldlg""... $ac_c" 1>&6
7296echo "configure:7297: checking for --enable-coldlg" >&5
7297 no_cache=0
7298 # Check whether --enable-coldlg or --disable-coldlg was given.
7299if test "${enable_coldlg+set}" = set; then
7300 enableval="$enable_coldlg"
7301
7302 if test "$enableval" = yes; then
7303 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7304 else
7305 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7306 fi
7307
7308else
7309
7310 LINE=`grep "wxUSE_COLOURDLG" ${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_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7318
7319fi
7320
7321
7322 eval "$ac_cv_use_coldlg"
7323 if test "$no_cache" != 1; then
7324 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7325 fi
7326
7327 if test "$wxUSE_COLOURDLG" = 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-filedlg""... $ac_c" 1>&6
7335echo "configure:7336: checking for --enable-filedlg" >&5
7336 no_cache=0
7337 # Check whether --enable-filedlg or --disable-filedlg was given.
7338if test "${enable_filedlg+set}" = set; then
7339 enableval="$enable_filedlg"
7340
7341 if test "$enableval" = yes; then
7342 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7343 else
7344 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7345 fi
7346
7347else
7348
7349 LINE=`grep "wxUSE_FILEDLG" ${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_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7357
7358fi
7359
7360
7361 eval "$ac_cv_use_filedlg"
7362 if test "$no_cache" != 1; then
7363 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7364 fi
7365
7366 if test "$wxUSE_FILEDLG" = 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-finddlg""... $ac_c" 1>&6
7374echo "configure:7375: checking for --enable-finddlg" >&5
7375 no_cache=0
7376 # Check whether --enable-finddlg or --disable-finddlg was given.
7377if test "${enable_finddlg+set}" = set; then
7378 enableval="$enable_finddlg"
7379
7380 if test "$enableval" = yes; then
7381 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7382 else
7383 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7384 fi
7385
7386else
7387
7388 LINE=`grep "wxUSE_FINDREPLDLG" ${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_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7396
7397fi
7398
7399
7400 eval "$ac_cv_use_finddlg"
7401 if test "$no_cache" != 1; then
7402 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7403 fi
7404
7405 if test "$wxUSE_FINDREPLDLG" = 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-fontdlg""... $ac_c" 1>&6
7413echo "configure:7414: checking for --enable-fontdlg" >&5
7414 no_cache=0
7415 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7416if test "${enable_fontdlg+set}" = set; then
7417 enableval="$enable_fontdlg"
7418
7419 if test "$enableval" = yes; then
7420 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7421 else
7422 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7423 fi
7424
7425else
7426
7427 LINE=`grep "wxUSE_FONTDLG" ${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_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7435
7436fi
7437
7438
7439 eval "$ac_cv_use_fontdlg"
7440 if test "$no_cache" != 1; then
7441 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7442 fi
7443
7444 if test "$wxUSE_FONTDLG" = 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-dirdlg""... $ac_c" 1>&6
7452echo "configure:7453: checking for --enable-dirdlg" >&5
7453 no_cache=0
7454 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7455if test "${enable_dirdlg+set}" = set; then
7456 enableval="$enable_dirdlg"
7457
7458 if test "$enableval" = yes; then
7459 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7460 else
7461 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7462 fi
7463
7464else
7465
7466 LINE=`grep "wxUSE_DIRDLG" ${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_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7474
7475fi
7476
7477
7478 eval "$ac_cv_use_dirdlg"
7479 if test "$no_cache" != 1; then
7480 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7481 fi
7482
7483 if test "$wxUSE_DIRDLG" = 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-msgdlg""... $ac_c" 1>&6
7491echo "configure:7492: checking for --enable-msgdlg" >&5
7492 no_cache=0
7493 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7494if test "${enable_msgdlg+set}" = set; then
7495 enableval="$enable_msgdlg"
7496
7497 if test "$enableval" = yes; then
7498 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7499 else
7500 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7501 fi
7502
7503else
7504
7505 LINE=`grep "wxUSE_MSGDLG" ${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_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7513
7514fi
7515
7516
7517 eval "$ac_cv_use_msgdlg"
7518 if test "$no_cache" != 1; then
7519 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7520 fi
7521
7522 if test "$wxUSE_MSGDLG" = 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-numberdlg""... $ac_c" 1>&6
7530echo "configure:7531: checking for --enable-numberdlg" >&5
7531 no_cache=0
7532 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7533if test "${enable_numberdlg+set}" = set; then
7534 enableval="$enable_numberdlg"
7535
7536 if test "$enableval" = yes; then
7537 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7538 else
7539 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7540 fi
7541
7542else
7543
7544 LINE=`grep "wxUSE_NUMBERDLG" ${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_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7552
7553fi
7554
7555
7556 eval "$ac_cv_use_numberdlg"
7557 if test "$no_cache" != 1; then
7558 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7559 fi
7560
7561 if test "$wxUSE_NUMBERDLG" = 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-splash""... $ac_c" 1>&6
7569echo "configure:7570: checking for --enable-splash" >&5
7570 no_cache=0
7571 # Check whether --enable-splash or --disable-splash was given.
7572if test "${enable_splash+set}" = set; then
7573 enableval="$enable_splash"
7574
7575 if test "$enableval" = yes; then
7576 ac_cv_use_splash='wxUSE_SPLASH=yes'
7577 else
7578 ac_cv_use_splash='wxUSE_SPLASH=no'
7579 fi
7580
7581else
7582
7583 LINE=`grep "wxUSE_SPLASH" ${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_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7591
7592fi
7593
7594
7595 eval "$ac_cv_use_splash"
7596 if test "$no_cache" != 1; then
7597 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7598 fi
7599
7600 if test "$wxUSE_SPLASH" = 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-textdlg""... $ac_c" 1>&6
7608echo "configure:7609: checking for --enable-textdlg" >&5
7609 no_cache=0
7610 # Check whether --enable-textdlg or --disable-textdlg was given.
7611if test "${enable_textdlg+set}" = set; then
7612 enableval="$enable_textdlg"
7613
7614 if test "$enableval" = yes; then
7615 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7616 else
7617 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7618 fi
7619
7620else
7621
7622 LINE=`grep "wxUSE_TEXTDLG" ${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_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7630
7631fi
7632
7633
7634 eval "$ac_cv_use_textdlg"
7635 if test "$no_cache" != 1; then
7636 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7637 fi
7638
7639 if test "$wxUSE_TEXTDLG" = 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-tipdlg""... $ac_c" 1>&6
7647echo "configure:7648: checking for --enable-tipdlg" >&5
7648 no_cache=0
7649 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7650if test "${enable_tipdlg+set}" = set; then
7651 enableval="$enable_tipdlg"
7652
7653 if test "$enableval" = yes; then
7654 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7655 else
7656 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7657 fi
7658
7659else
7660
7661 LINE=`grep "wxUSE_STARTUP_TIPS" ${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_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7669
7670fi
7671
7672
7673 eval "$ac_cv_use_tipdlg"
7674 if test "$no_cache" != 1; then
7675 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7676 fi
7677
7678 if test "$wxUSE_STARTUP_TIPS" = 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-progressdlg""... $ac_c" 1>&6
7686echo "configure:7687: checking for --enable-progressdlg" >&5
7687 no_cache=0
7688 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7689if test "${enable_progressdlg+set}" = set; then
7690 enableval="$enable_progressdlg"
7691
7692 if test "$enableval" = yes; then
7693 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7694 else
7695 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7696 fi
7697
7698else
7699
7700 LINE=`grep "wxUSE_PROGRESSDLG" ${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_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7708
7709fi
7710
7711
7712 eval "$ac_cv_use_progressdlg"
7713 if test "$no_cache" != 1; then
7714 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7715 fi
7716
7717 if test "$wxUSE_PROGRESSDLG" = 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-wizarddlg""... $ac_c" 1>&6
7725echo "configure:7726: checking for --enable-wizarddlg" >&5
7726 no_cache=0
7727 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7728if test "${enable_wizarddlg+set}" = set; then
7729 enableval="$enable_wizarddlg"
7730
7731 if test "$enableval" = yes; then
7732 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7733 else
7734 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7735 fi
7736
7737else
7738
7739 LINE=`grep "wxUSE_WIZARDDLG" ${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_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7747
7748fi
7749
7750
7751 eval "$ac_cv_use_wizarddlg"
7752 if test "$no_cache" != 1; then
7753 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7754 fi
7755
7756 if test "$wxUSE_WIZARDDLG" = yes; then
7757 echo "$ac_t""yes" 1>&6
7758 else
7759 echo "$ac_t""no" 1>&6
7760 fi
7761
7762
7763
7764
7765 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7766echo "configure:7767: checking for --enable-menus" >&5
7767 no_cache=0
7768 # Check whether --enable-menus or --disable-menus was given.
7769if test "${enable_menus+set}" = set; then
7770 enableval="$enable_menus"
7771
7772 if test "$enableval" = yes; then
7773 ac_cv_use_menus='wxUSE_MENUS=yes'
7774 else
7775 ac_cv_use_menus='wxUSE_MENUS=no'
7776 fi
7777
7778else
7779
7780 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7781 if test "x$LINE" != x ; then
7782 eval "DEFAULT_$LINE"
7783 else
7784 no_cache=1
7785 fi
7786
7787 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7788
7789fi
7790
7791
7792 eval "$ac_cv_use_menus"
7793 if test "$no_cache" != 1; then
7794 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7795 fi
7796
7797 if test "$wxUSE_MENUS" = yes; then
7798 echo "$ac_t""yes" 1>&6
7799 else
7800 echo "$ac_t""no" 1>&6
7801 fi
7802
7803
7804 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7805echo "configure:7806: checking for --enable-miniframe" >&5
7806 no_cache=0
7807 # Check whether --enable-miniframe or --disable-miniframe was given.
7808if test "${enable_miniframe+set}" = set; then
7809 enableval="$enable_miniframe"
7810
7811 if test "$enableval" = yes; then
7812 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7813 else
7814 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7815 fi
7816
7817else
7818
7819 LINE=`grep "wxUSE_MINIFRAME" ${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_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7827
7828fi
7829
7830
7831 eval "$ac_cv_use_miniframe"
7832 if test "$no_cache" != 1; then
7833 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7834 fi
7835
7836 if test "$wxUSE_MINIFRAME" = 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-tooltips""... $ac_c" 1>&6
7844echo "configure:7845: checking for --enable-tooltips" >&5
7845 no_cache=0
7846 # Check whether --enable-tooltips or --disable-tooltips was given.
7847if test "${enable_tooltips+set}" = set; then
7848 enableval="$enable_tooltips"
7849
7850 if test "$enableval" = yes; then
7851 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7852 else
7853 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7854 fi
7855
7856else
7857
7858 LINE=`grep "wxUSE_TOOLTIPS" ${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_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7866
7867fi
7868
7869
7870 eval "$ac_cv_use_tooltips"
7871 if test "$no_cache" != 1; then
7872 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7873 fi
7874
7875 if test "$wxUSE_TOOLTIPS" = 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-splines""... $ac_c" 1>&6
7883echo "configure:7884: checking for --enable-splines" >&5
7884 no_cache=0
7885 # Check whether --enable-splines or --disable-splines was given.
7886if test "${enable_splines+set}" = set; then
7887 enableval="$enable_splines"
7888
7889 if test "$enableval" = yes; then
7890 ac_cv_use_splines='wxUSE_SPLINES=yes'
7891 else
7892 ac_cv_use_splines='wxUSE_SPLINES=no'
7893 fi
7894
7895else
7896
7897 LINE=`grep "wxUSE_SPLINES" ${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_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7905
7906fi
7907
7908
7909 eval "$ac_cv_use_splines"
7910 if test "$no_cache" != 1; then
7911 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7912 fi
7913
7914 if test "$wxUSE_SPLINES" = 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-validators""... $ac_c" 1>&6
7922echo "configure:7923: checking for --enable-validators" >&5
7923 no_cache=0
7924 # Check whether --enable-validators or --disable-validators was given.
7925if test "${enable_validators+set}" = set; then
7926 enableval="$enable_validators"
7927
7928 if test "$enableval" = yes; then
7929 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7930 else
7931 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7932 fi
7933
7934else
7935
7936 LINE=`grep "wxUSE_VALIDATORS" ${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_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7944
7945fi
7946
7947
7948 eval "$ac_cv_use_validators"
7949 if test "$no_cache" != 1; then
7950 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7951 fi
7952
7953 if test "$wxUSE_VALIDATORS" = 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-busyinfo""... $ac_c" 1>&6
7961echo "configure:7962: checking for --enable-busyinfo" >&5
7962 no_cache=0
7963 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7964if test "${enable_busyinfo+set}" = set; then
7965 enableval="$enable_busyinfo"
7966
7967 if test "$enableval" = yes; then
7968 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7969 else
7970 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7971 fi
7972
7973else
7974
7975 LINE=`grep "wxUSE_BUSYINFO" ${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_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7983
7984fi
7985
7986
7987 eval "$ac_cv_use_busyinfo"
7988 if test "$no_cache" != 1; then
7989 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7990 fi
7991
7992 if test "$wxUSE_BUSYINFO" = 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-joystick""... $ac_c" 1>&6
8000echo "configure:8001: checking for --enable-joystick" >&5
8001 no_cache=0
8002 # Check whether --enable-joystick or --disable-joystick was given.
8003if test "${enable_joystick+set}" = set; then
8004 enableval="$enable_joystick"
8005
8006 if test "$enableval" = yes; then
8007 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8008 else
8009 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8010 fi
8011
8012else
8013
8014 LINE=`grep "wxUSE_JOYSTICK" ${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_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8022
8023fi
8024
8025
8026 eval "$ac_cv_use_joystick"
8027 if test "$no_cache" != 1; then
8028 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8029 fi
8030
8031 if test "$wxUSE_JOYSTICK" = 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-metafile""... $ac_c" 1>&6
8039echo "configure:8040: checking for --enable-metafile" >&5
8040 no_cache=0
8041 # Check whether --enable-metafile or --disable-metafile was given.
8042if test "${enable_metafile+set}" = set; then
8043 enableval="$enable_metafile"
8044
8045 if test "$enableval" = yes; then
8046 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8047 else
8048 ac_cv_use_metafile='wxUSE_METAFILE=no'
8049 fi
8050
8051else
8052
8053 LINE=`grep "wxUSE_METAFILE" ${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_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8061
8062fi
8063
8064
8065 eval "$ac_cv_use_metafile"
8066 if test "$no_cache" != 1; then
8067 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8068 fi
8069
8070 if test "$wxUSE_METAFILE" = 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-dragimage""... $ac_c" 1>&6
8078echo "configure:8079: checking for --enable-dragimage" >&5
8079 no_cache=0
8080 # Check whether --enable-dragimage or --disable-dragimage was given.
8081if test "${enable_dragimage+set}" = set; then
8082 enableval="$enable_dragimage"
8083
8084 if test "$enableval" = yes; then
8085 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8086 else
8087 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8088 fi
8089
8090else
8091
8092 LINE=`grep "wxUSE_DRAGIMAGE" ${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_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8100
8101fi
8102
8103
8104 eval "$ac_cv_use_dragimage"
8105 if test "$no_cache" != 1; then
8106 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8107 fi
8108
8109 if test "$wxUSE_DRAGIMAGE" = yes; then
8110 echo "$ac_t""yes" 1>&6
8111 else
8112 echo "$ac_t""no" 1>&6
8113 fi
8114
8115
8116
8117
8118 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
8119echo "configure:8120: checking for --enable-palette" >&5
8120 no_cache=0
8121 # Check whether --enable-palette or --disable-palette was given.
8122if test "${enable_palette+set}" = set; then
8123 enableval="$enable_palette"
8124
8125 if test "$enableval" = yes; then
8126 ac_cv_use_palette='wxUSE_PALETTE=yes'
8127 else
8128 ac_cv_use_palette='wxUSE_PALETTE=no'
8129 fi
8130
8131else
8132
8133 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8134 if test "x$LINE" != x ; then
8135 eval "DEFAULT_$LINE"
8136 else
8137 no_cache=1
8138 fi
8139
8140 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8141
8142fi
8143
8144
8145 eval "$ac_cv_use_palette"
8146 if test "$no_cache" != 1; then
8147 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8148 fi
8149
8150 if test "$wxUSE_PALETTE" = yes; then
8151 echo "$ac_t""yes" 1>&6
8152 else
8153 echo "$ac_t""no" 1>&6
8154 fi
8155
8156
8157 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
8158echo "configure:8159: checking for --enable-image" >&5
8159 no_cache=0
8160 # Check whether --enable-image or --disable-image was given.
8161if test "${enable_image+set}" = set; then
8162 enableval="$enable_image"
8163
8164 if test "$enableval" = yes; then
8165 ac_cv_use_image='wxUSE_IMAGE=yes'
8166 else
8167 ac_cv_use_image='wxUSE_IMAGE=no'
8168 fi
8169
8170else
8171
8172 LINE=`grep "wxUSE_IMAGE" ${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_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8180
8181fi
8182
8183
8184 eval "$ac_cv_use_image"
8185 if test "$no_cache" != 1; then
8186 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8187 fi
8188
8189 if test "$wxUSE_IMAGE" = 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-gif""... $ac_c" 1>&6
8197echo "configure:8198: checking for --enable-gif" >&5
8198 no_cache=0
8199 # Check whether --enable-gif or --disable-gif was given.
8200if test "${enable_gif+set}" = set; then
8201 enableval="$enable_gif"
8202
8203 if test "$enableval" = yes; then
8204 ac_cv_use_gif='wxUSE_GIF=yes'
8205 else
8206 ac_cv_use_gif='wxUSE_GIF=no'
8207 fi
8208
8209else
8210
8211 LINE=`grep "wxUSE_GIF" ${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_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8219
8220fi
8221
8222
8223 eval "$ac_cv_use_gif"
8224 if test "$no_cache" != 1; then
8225 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8226 fi
8227
8228 if test "$wxUSE_GIF" = 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-pcx""... $ac_c" 1>&6
8236echo "configure:8237: checking for --enable-pcx" >&5
8237 no_cache=0
8238 # Check whether --enable-pcx or --disable-pcx was given.
8239if test "${enable_pcx+set}" = set; then
8240 enableval="$enable_pcx"
8241
8242 if test "$enableval" = yes; then
8243 ac_cv_use_pcx='wxUSE_PCX=yes'
8244 else
8245 ac_cv_use_pcx='wxUSE_PCX=no'
8246 fi
8247
8248else
8249
8250 LINE=`grep "wxUSE_PCX" ${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_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8258
8259fi
8260
8261
8262 eval "$ac_cv_use_pcx"
8263 if test "$no_cache" != 1; then
8264 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8265 fi
8266
8267 if test "$wxUSE_PCX" = 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-iff""... $ac_c" 1>&6
8275echo "configure:8276: checking for --enable-iff" >&5
8276 no_cache=0
8277 # Check whether --enable-iff or --disable-iff was given.
8278if test "${enable_iff+set}" = set; then
8279 enableval="$enable_iff"
8280
8281 if test "$enableval" = yes; then
8282 ac_cv_use_iff='wxUSE_IFF=yes'
8283 else
8284 ac_cv_use_iff='wxUSE_IFF=no'
8285 fi
8286
8287else
8288
8289 LINE=`grep "wxUSE_IFF" ${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_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8297
8298fi
8299
8300
8301 eval "$ac_cv_use_iff"
8302 if test "$no_cache" != 1; then
8303 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8304 fi
8305
8306 if test "$wxUSE_IFF" = 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-pnm""... $ac_c" 1>&6
8314echo "configure:8315: checking for --enable-pnm" >&5
8315 no_cache=0
8316 # Check whether --enable-pnm or --disable-pnm was given.
8317if test "${enable_pnm+set}" = set; then
8318 enableval="$enable_pnm"
8319
8320 if test "$enableval" = yes; then
8321 ac_cv_use_pnm='wxUSE_PNM=yes'
8322 else
8323 ac_cv_use_pnm='wxUSE_PNM=no'
8324 fi
8325
8326else
8327
8328 LINE=`grep "wxUSE_PNM" ${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_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8336
8337fi
8338
8339
8340 eval "$ac_cv_use_pnm"
8341 if test "$no_cache" != 1; then
8342 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8343 fi
8344
8345 if test "$wxUSE_PNM" = 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-xpm""... $ac_c" 1>&6
8353echo "configure:8354: checking for --enable-xpm" >&5
8354 no_cache=0
8355 # Check whether --enable-xpm or --disable-xpm was given.
8356if test "${enable_xpm+set}" = set; then
8357 enableval="$enable_xpm"
8358
8359 if test "$enableval" = yes; then
8360 ac_cv_use_xpm='wxUSE_XPM=yes'
8361 else
8362 ac_cv_use_xpm='wxUSE_XPM=no'
8363 fi
8364
8365else
8366
8367 LINE=`grep "wxUSE_XPM" ${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_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8375
8376fi
8377
8378
8379 eval "$ac_cv_use_xpm"
8380 if test "$no_cache" != 1; then
8381 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8382 fi
8383
8384 if test "$wxUSE_XPM" = 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-ico_cur""... $ac_c" 1>&6
8392echo "configure:8393: checking for --enable-ico_cur" >&5
8393 no_cache=0
8394 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8395if test "${enable_ico_cur+set}" = set; then
8396 enableval="$enable_ico_cur"
8397
8398 if test "$enableval" = yes; then
8399 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8400 else
8401 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8402 fi
8403
8404else
8405
8406 LINE=`grep "wxUSE_ICO_CUR" ${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_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8414
8415fi
8416
8417
8418 eval "$ac_cv_use_ico_cur"
8419 if test "$no_cache" != 1; then
8420 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8421 fi
8422
8423 if test "$wxUSE_ICO_CUR" = yes; then
8424 echo "$ac_t""yes" 1>&6
8425 else
8426 echo "$ac_t""no" 1>&6
8427 fi
8428
8429
8430fi
8431
8432case "${host}" in
8433 *-pc-os2_emx | *-pc-os2-emx )
8434 LEX_STEM="lexyy"
8435 ;;
8436 *)
8437 PATH_IFS=':'
8438 LEX_STEM="lex.yy"
8439 ;;
8440esac
8441
8442
8443
8444 echo "saving argument cache $wx_arg_cache_file"
8445 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8446
8447
8448
8449echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8450echo "configure:8451: checking for toolkit" >&5
8451
8452if test "$wxUSE_GUI" = "yes"; then
8453
8454 if test "$USE_BEOS" = 1; then
8455 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8456 fi
8457
8458 if test "$TOOLKIT_GIVEN" = 1; then
8459 for toolkit in `echo $ALL_TOOLKITS`; do
8460 var=wxUSE_$toolkit
8461 eval "value=\$${var}"
8462 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8463 done
8464 else
8465 for toolkit in `echo $ALL_TOOLKITS`; do
8466 if test "$has_toolkit_in_cache" != 1; then
8467 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8468 else
8469 var=DEFAULT_wxUSE_$toolkit
8470 fi
8471 eval "wxUSE_$toolkit=\$${var}"
8472 done
8473 fi
8474
8475 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
8476 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
8477
8478 case "${host}" in
8479 *-pc-os2_emx | *-pc-os2-emx )
8480 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8481 esac
8482
8483 case "$NUM_TOOLKITS" in
8484 1)
8485 ;;
8486 0)
8487 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8488 ;;
8489 *)
8490 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8491 esac
8492
8493 for toolkit in `echo $ALL_TOOLKITS`; do
8494 var=wxUSE_$toolkit
8495 eval "value=\$${var}"
8496 if test "x$value" != x; then
8497 cache_var=CACHE_$toolkit
8498 eval "cache=\$${cache_var}"
8499 if test "$cache" = 1; then
8500 echo "$var=$value" >> ${wx_arg_cache_file}
8501 fi
8502 if test "$value" = 1; then
8503 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8504 echo "$ac_t""$toolkit_echo" 1>&6
8505 fi
8506 fi
8507 done
8508else
8509 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8510fi
8511
8512
8513cat > confcache <<\EOF
8514# This file is a shell script that caches the results of configure
8515# tests run on this system so they can be shared between configure
8516# scripts and configure runs. It is not useful on other systems.
8517# If it contains results you don't want to keep, you may remove or edit it.
8518#
8519# By default, configure uses ./config.cache as the cache file,
8520# creating it if it does not exist already. You can give configure
8521# the --cache-file=FILE option to use a different cache file; that is
8522# what configure does when it calls configure scripts in
8523# subdirectories, so they share the cache.
8524# Giving --cache-file=/dev/null disables caching, for debugging configure.
8525# config.status only pays attention to the cache file if you give it the
8526# --recheck option to rerun configure.
8527#
8528EOF
8529# The following way of writing the cache mishandles newlines in values,
8530# but we know of no workaround that is simple, portable, and efficient.
8531# So, don't put newlines in cache variables' values.
8532# Ultrix sh set writes to stderr and can't be redirected directly,
8533# and sets the high bit in the cache file unless we assign to the vars.
8534(set) 2>&1 |
8535 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8536 *ac_space=\ *)
8537 # `set' does not quote correctly, so add quotes (double-quote substitution
8538 # turns \\\\ into \\, and sed turns \\ into \).
8539 sed -n \
8540 -e "s/'/'\\\\''/g" \
8541 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8542 ;;
8543 *)
8544 # `set' quotes correctly as required by POSIX, so do not add quotes.
8545 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8546 ;;
8547 esac >> confcache
8548if cmp -s $cache_file confcache; then
8549 :
8550else
8551 if test -w $cache_file; then
8552 echo "updating cache $cache_file"
8553 cat confcache > $cache_file
8554 else
8555 echo "not updating unwritable cache $cache_file"
8556 fi
8557fi
8558rm -f confcache
8559
8560
8561if test "$build" != "$host" ; then
8562 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8563 CC=$host_alias-gcc
8564 CXX=$host_alias-c++
8565 AR=$host_alias-ar
8566 RANLIB=$host_alias-ranlib
8567 DLLTOOL=$host_alias-dlltool
8568 RESCOMP=$host_alias-windres
8569 LD=$host_alias-ld
8570 NM=$host_alias-nm
8571 STRIP=$host_alias-strip
8572 else
8573 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8574 fi
8575fi
8576
8577CFLAGS=${CFLAGS:=}
8578# Extract the first word of "gcc", so it can be a program name with args.
8579set dummy gcc; ac_word=$2
8580echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8581echo "configure:8582: checking for $ac_word" >&5
8582if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8583 echo $ac_n "(cached) $ac_c" 1>&6
8584else
8585 if test -n "$CC"; then
8586 ac_cv_prog_CC="$CC" # Let the user override the test.
8587else
8588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8589 ac_dummy="$PATH"
8590 for ac_dir in $ac_dummy; do
8591 test -z "$ac_dir" && ac_dir=.
8592 if test -f $ac_dir/$ac_word; then
8593 ac_cv_prog_CC="gcc"
8594 break
8595 fi
8596 done
8597 IFS="$ac_save_ifs"
8598fi
8599fi
8600CC="$ac_cv_prog_CC"
8601if test -n "$CC"; then
8602 echo "$ac_t""$CC" 1>&6
8603else
8604 echo "$ac_t""no" 1>&6
8605fi
8606
8607if test -z "$CC"; then
8608 # Extract the first word of "cc", so it can be a program name with args.
8609set dummy cc; ac_word=$2
8610echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8611echo "configure:8612: checking for $ac_word" >&5
8612if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8613 echo $ac_n "(cached) $ac_c" 1>&6
8614else
8615 if test -n "$CC"; then
8616 ac_cv_prog_CC="$CC" # Let the user override the test.
8617else
8618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8619 ac_prog_rejected=no
8620 ac_dummy="$PATH"
8621 for ac_dir in $ac_dummy; do
8622 test -z "$ac_dir" && ac_dir=.
8623 if test -f $ac_dir/$ac_word; then
8624 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8625 ac_prog_rejected=yes
8626 continue
8627 fi
8628 ac_cv_prog_CC="cc"
8629 break
8630 fi
8631 done
8632 IFS="$ac_save_ifs"
8633if test $ac_prog_rejected = yes; then
8634 # We found a bogon in the path, so make sure we never use it.
8635 set dummy $ac_cv_prog_CC
8636 shift
8637 if test $# -gt 0; then
8638 # We chose a different compiler from the bogus one.
8639 # However, it has the same basename, so the bogon will be chosen
8640 # first if we set CC to just the basename; use the full file name.
8641 shift
8642 set dummy "$ac_dir/$ac_word" "$@"
8643 shift
8644 ac_cv_prog_CC="$@"
8645 fi
8646fi
8647fi
8648fi
8649CC="$ac_cv_prog_CC"
8650if test -n "$CC"; then
8651 echo "$ac_t""$CC" 1>&6
8652else
8653 echo "$ac_t""no" 1>&6
8654fi
8655
8656 if test -z "$CC"; then
8657 case "`uname -s`" in
8658 *win32* | *WIN32*)
8659 # Extract the first word of "cl", so it can be a program name with args.
8660set dummy cl; ac_word=$2
8661echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8662echo "configure:8663: checking for $ac_word" >&5
8663if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8664 echo $ac_n "(cached) $ac_c" 1>&6
8665else
8666 if test -n "$CC"; then
8667 ac_cv_prog_CC="$CC" # Let the user override the test.
8668else
8669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8670 ac_dummy="$PATH"
8671 for ac_dir in $ac_dummy; do
8672 test -z "$ac_dir" && ac_dir=.
8673 if test -f $ac_dir/$ac_word; then
8674 ac_cv_prog_CC="cl"
8675 break
8676 fi
8677 done
8678 IFS="$ac_save_ifs"
8679fi
8680fi
8681CC="$ac_cv_prog_CC"
8682if test -n "$CC"; then
8683 echo "$ac_t""$CC" 1>&6
8684else
8685 echo "$ac_t""no" 1>&6
8686fi
8687 ;;
8688 esac
8689 fi
8690 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8691fi
8692
8693echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8694echo "configure:8695: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8695
8696ac_ext=c
8697# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8698ac_cpp='$CPP $CPPFLAGS'
8699ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8700ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8701cross_compiling=$ac_cv_prog_cc_cross
8702
8703cat > conftest.$ac_ext << EOF
8704
8705#line 8706 "configure"
8706#include "confdefs.h"
8707
8708main(){return(0);}
8709EOF
8710if { (eval echo configure:8711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8711 ac_cv_prog_cc_works=yes
8712 # If we can't run a trivial program, we are probably using a cross compiler.
8713 if (./conftest; exit) 2>/dev/null; then
8714 ac_cv_prog_cc_cross=no
8715 else
8716 ac_cv_prog_cc_cross=yes
8717 fi
8718else
8719 echo "configure: failed program was:" >&5
8720 cat conftest.$ac_ext >&5
8721 ac_cv_prog_cc_works=no
8722fi
8723rm -fr conftest*
8724ac_ext=c
8725# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8726ac_cpp='$CPP $CPPFLAGS'
8727ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8728ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8729cross_compiling=$ac_cv_prog_cc_cross
8730
8731echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8732if test $ac_cv_prog_cc_works = no; then
8733 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8734fi
8735echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8736echo "configure:8737: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8737echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8738cross_compiling=$ac_cv_prog_cc_cross
8739
8740echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8741echo "configure:8742: checking whether we are using GNU C" >&5
8742if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8743 echo $ac_n "(cached) $ac_c" 1>&6
8744else
8745 cat > conftest.c <<EOF
8746#ifdef __GNUC__
8747 yes;
8748#endif
8749EOF
8750if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8751 ac_cv_prog_gcc=yes
8752else
8753 ac_cv_prog_gcc=no
8754fi
8755fi
8756
8757echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8758
8759if test $ac_cv_prog_gcc = yes; then
8760 GCC=yes
8761else
8762 GCC=
8763fi
8764
8765ac_test_CFLAGS="${CFLAGS+set}"
8766ac_save_CFLAGS="$CFLAGS"
8767CFLAGS=
8768echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8769echo "configure:8770: checking whether ${CC-cc} accepts -g" >&5
8770if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8771 echo $ac_n "(cached) $ac_c" 1>&6
8772else
8773 echo 'void f(){}' > conftest.c
8774if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8775 ac_cv_prog_cc_g=yes
8776else
8777 ac_cv_prog_cc_g=no
8778fi
8779rm -f conftest*
8780
8781fi
8782
8783echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8784if test "$ac_test_CFLAGS" = set; then
8785 CFLAGS="$ac_save_CFLAGS"
8786elif test $ac_cv_prog_cc_g = yes; then
8787 if test "$GCC" = yes; then
8788 CFLAGS="-g -O2"
8789 else
8790 CFLAGS="-g"
8791 fi
8792else
8793 if test "$GCC" = yes; then
8794 CFLAGS="-O2"
8795 else
8796 CFLAGS=
8797 fi
8798fi
8799
8800
8801echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8802echo "configure:8803: checking how to run the C preprocessor" >&5
8803# On Suns, sometimes $CPP names a directory.
8804if test -n "$CPP" && test -d "$CPP"; then
8805 CPP=
8806fi
8807if test -z "$CPP"; then
8808if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8809 echo $ac_n "(cached) $ac_c" 1>&6
8810else
8811 # This must be in double quotes, not single quotes, because CPP may get
8812 # substituted into the Makefile and "${CC-cc}" will confuse make.
8813 CPP="${CC-cc} -E"
8814 # On the NeXT, cc -E runs the code through the compiler's parser,
8815 # not just through cpp.
8816 cat > conftest.$ac_ext <<EOF
8817#line 8818 "configure"
8818#include "confdefs.h"
8819#include <assert.h>
8820Syntax Error
8821EOF
8822ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8823{ (eval echo configure:8824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8824ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8825if test -z "$ac_err"; then
8826 :
8827else
8828 echo "$ac_err" >&5
8829 echo "configure: failed program was:" >&5
8830 cat conftest.$ac_ext >&5
8831 rm -rf conftest*
8832 CPP="${CC-cc} -E -traditional-cpp"
8833 cat > conftest.$ac_ext <<EOF
8834#line 8835 "configure"
8835#include "confdefs.h"
8836#include <assert.h>
8837Syntax Error
8838EOF
8839ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8840{ (eval echo configure:8841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8841ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8842if test -z "$ac_err"; then
8843 :
8844else
8845 echo "$ac_err" >&5
8846 echo "configure: failed program was:" >&5
8847 cat conftest.$ac_ext >&5
8848 rm -rf conftest*
8849 CPP="${CC-cc} -nologo -E"
8850 cat > conftest.$ac_ext <<EOF
8851#line 8852 "configure"
8852#include "confdefs.h"
8853#include <assert.h>
8854Syntax Error
8855EOF
8856ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8857{ (eval echo configure:8858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8858ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8859if test -z "$ac_err"; then
8860 :
8861else
8862 echo "$ac_err" >&5
8863 echo "configure: failed program was:" >&5
8864 cat conftest.$ac_ext >&5
8865 rm -rf conftest*
8866 CPP=/lib/cpp
8867fi
8868rm -f conftest*
8869fi
8870rm -f conftest*
8871fi
8872rm -f conftest*
8873 ac_cv_prog_CPP="$CPP"
8874fi
8875 CPP="$ac_cv_prog_CPP"
8876else
8877 ac_cv_prog_CPP="$CPP"
8878fi
8879echo "$ac_t""$CPP" 1>&6
8880
8881if test $ac_cv_prog_gcc = yes; then
8882 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8883echo "configure:8884: checking whether ${CC-cc} needs -traditional" >&5
8884if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8885 echo $ac_n "(cached) $ac_c" 1>&6
8886else
8887 ac_pattern="Autoconf.*'x'"
8888 cat > conftest.$ac_ext <<EOF
8889#line 8890 "configure"
8890#include "confdefs.h"
8891#include <sgtty.h>
8892Autoconf TIOCGETP
8893EOF
8894if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8895 egrep "$ac_pattern" >/dev/null 2>&1; then
8896 rm -rf conftest*
8897 ac_cv_prog_gcc_traditional=yes
8898else
8899 rm -rf conftest*
8900 ac_cv_prog_gcc_traditional=no
8901fi
8902rm -f conftest*
8903
8904
8905 if test $ac_cv_prog_gcc_traditional = no; then
8906 cat > conftest.$ac_ext <<EOF
8907#line 8908 "configure"
8908#include "confdefs.h"
8909#include <termio.h>
8910Autoconf TCGETA
8911EOF
8912if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8913 egrep "$ac_pattern" >/dev/null 2>&1; then
8914 rm -rf conftest*
8915 ac_cv_prog_gcc_traditional=yes
8916fi
8917rm -f conftest*
8918
8919 fi
8920fi
8921
8922echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8923 if test $ac_cv_prog_gcc_traditional = yes; then
8924 CC="$CC -traditional"
8925 fi
8926fi
8927
8928
8929
8930ac_ext=C
8931# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8932ac_cpp='$CXXCPP $CPPFLAGS'
8933ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8934ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8935cross_compiling=$ac_cv_prog_cxx_cross
8936
8937
8938CXXFLAGS=${CXXFLAGS:=}
8939for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8940do
8941# Extract the first word of "$ac_prog", so it can be a program name with args.
8942set dummy $ac_prog; ac_word=$2
8943echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8944echo "configure:8945: checking for $ac_word" >&5
8945if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8946 echo $ac_n "(cached) $ac_c" 1>&6
8947else
8948 if test -n "$CXX"; then
8949 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8950else
8951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8952 ac_dummy="$PATH"
8953 for ac_dir in $ac_dummy; do
8954 test -z "$ac_dir" && ac_dir=.
8955 if test -f $ac_dir/$ac_word; then
8956 ac_cv_prog_CXX="$ac_prog"
8957 break
8958 fi
8959 done
8960 IFS="$ac_save_ifs"
8961fi
8962fi
8963CXX="$ac_cv_prog_CXX"
8964if test -n "$CXX"; then
8965 echo "$ac_t""$CXX" 1>&6
8966else
8967 echo "$ac_t""no" 1>&6
8968fi
8969
8970test -n "$CXX" && break
8971done
8972test -n "$CXX" || CXX="gcc"
8973
8974
8975echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8976echo "configure:8977: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8977
8978ac_ext=C
8979# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8980ac_cpp='$CXXCPP $CPPFLAGS'
8981ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8982ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8983cross_compiling=$ac_cv_prog_cxx_cross
8984
8985cat > conftest.$ac_ext << EOF
8986
8987#line 8988 "configure"
8988#include "confdefs.h"
8989
8990int main(){return(0);}
8991EOF
8992if { (eval echo configure:8993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8993 ac_cv_prog_cxx_works=yes
8994 # If we can't run a trivial program, we are probably using a cross compiler.
8995 if (./conftest; exit) 2>/dev/null; then
8996 ac_cv_prog_cxx_cross=no
8997 else
8998 ac_cv_prog_cxx_cross=yes
8999 fi
9000else
9001 echo "configure: failed program was:" >&5
9002 cat conftest.$ac_ext >&5
9003 ac_cv_prog_cxx_works=no
9004fi
9005rm -fr conftest*
9006ac_ext=C
9007# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9008ac_cpp='$CXXCPP $CPPFLAGS'
9009ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9010ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9011cross_compiling=$ac_cv_prog_cxx_cross
9012
9013echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9014if test $ac_cv_prog_cxx_works = no; then
9015 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9016fi
9017echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9018echo "configure:9019: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9019echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9020cross_compiling=$ac_cv_prog_cxx_cross
9021
9022echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9023echo "configure:9024: checking whether we are using GNU C++" >&5
9024if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9025 echo $ac_n "(cached) $ac_c" 1>&6
9026else
9027 cat > conftest.C <<EOF
9028#ifdef __GNUC__
9029 yes;
9030#endif
9031EOF
9032if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9033 ac_cv_prog_gxx=yes
9034else
9035 ac_cv_prog_gxx=no
9036fi
9037fi
9038
9039echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9040
9041if test $ac_cv_prog_gxx = yes; then
9042 GXX=yes
9043else
9044 GXX=
9045fi
9046
9047ac_test_CXXFLAGS="${CXXFLAGS+set}"
9048ac_save_CXXFLAGS="$CXXFLAGS"
9049CXXFLAGS=
9050echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9051echo "configure:9052: checking whether ${CXX-g++} accepts -g" >&5
9052if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9053 echo $ac_n "(cached) $ac_c" 1>&6
9054else
9055 echo 'void f(){}' > conftest.cc
9056if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9057 ac_cv_prog_cxx_g=yes
9058else
9059 ac_cv_prog_cxx_g=no
9060fi
9061rm -f conftest*
9062
9063fi
9064
9065echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9066if test "$ac_test_CXXFLAGS" = set; then
9067 CXXFLAGS="$ac_save_CXXFLAGS"
9068elif test $ac_cv_prog_cxx_g = yes; then
9069 if test "$GXX" = yes; then
9070 CXXFLAGS="-g -O2"
9071 else
9072 CXXFLAGS="-g"
9073 fi
9074else
9075 if test "$GXX" = yes; then
9076 CXXFLAGS="-O2"
9077 else
9078 CXXFLAGS=
9079 fi
9080fi
9081
9082
9083ac_ext=c
9084# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9085ac_cpp='$CPP $CPPFLAGS'
9086ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9087ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9088cross_compiling=$ac_cv_prog_cc_cross
9089
9090
9091# Extract the first word of "ranlib", so it can be a program name with args.
9092set dummy ranlib; ac_word=$2
9093echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9094echo "configure:9095: checking for $ac_word" >&5
9095if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9096 echo $ac_n "(cached) $ac_c" 1>&6
9097else
9098 if test -n "$RANLIB"; then
9099 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9100else
9101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9102 ac_dummy="$PATH"
9103 for ac_dir in $ac_dummy; do
9104 test -z "$ac_dir" && ac_dir=.
9105 if test -f $ac_dir/$ac_word; then
9106 ac_cv_prog_RANLIB="ranlib"
9107 break
9108 fi
9109 done
9110 IFS="$ac_save_ifs"
9111 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9112fi
9113fi
9114RANLIB="$ac_cv_prog_RANLIB"
9115if test -n "$RANLIB"; then
9116 echo "$ac_t""$RANLIB" 1>&6
9117else
9118 echo "$ac_t""no" 1>&6
9119fi
9120
9121
9122# Extract the first word of "ar", so it can be a program name with args.
9123set dummy ar; ac_word=$2
9124echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9125echo "configure:9126: checking for $ac_word" >&5
9126if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9127 echo $ac_n "(cached) $ac_c" 1>&6
9128else
9129 if test -n "$AR"; then
9130 ac_cv_prog_AR="$AR" # Let the user override the test.
9131else
9132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9133 ac_dummy="$PATH"
9134 for ac_dir in $ac_dummy; do
9135 test -z "$ac_dir" && ac_dir=.
9136 if test -f $ac_dir/$ac_word; then
9137 ac_cv_prog_AR="ar"
9138 break
9139 fi
9140 done
9141 IFS="$ac_save_ifs"
9142 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9143fi
9144fi
9145AR="$ac_cv_prog_AR"
9146if test -n "$AR"; then
9147 echo "$ac_t""$AR" 1>&6
9148else
9149 echo "$ac_t""no" 1>&6
9150fi
9151
9152
9153# Find a good install program. We prefer a C program (faster),
9154# so one script is as good as another. But avoid the broken or
9155# incompatible versions:
9156# SysV /etc/install, /usr/sbin/install
9157# SunOS /usr/etc/install
9158# IRIX /sbin/install
9159# AIX /bin/install
9160# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9161# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9162# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9163# ./install, which can be erroneously created by make from ./install.sh.
9164echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9165echo "configure:9166: checking for a BSD compatible install" >&5
9166if test -z "$INSTALL"; then
9167if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9168 echo $ac_n "(cached) $ac_c" 1>&6
9169else
9170 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9171 for ac_dir in $PATH; do
9172 # Account for people who put trailing slashes in PATH elements.
9173 case "$ac_dir/" in
9174 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9175 *)
9176 # OSF1 and SCO ODT 3.0 have their own names for install.
9177 # Don't use installbsd from OSF since it installs stuff as root
9178 # by default.
9179 for ac_prog in ginstall scoinst install; do
9180 if test -f $ac_dir/$ac_prog; then
9181 if test $ac_prog = install &&
9182 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9183 # AIX install. It has an incompatible calling convention.
9184 :
9185 else
9186 ac_cv_path_install="$ac_dir/$ac_prog -c"
9187 break 2
9188 fi
9189 fi
9190 done
9191 ;;
9192 esac
9193 done
9194 IFS="$ac_save_IFS"
9195
9196fi
9197 if test "${ac_cv_path_install+set}" = set; then
9198 INSTALL="$ac_cv_path_install"
9199 else
9200 # As a last resort, use the slow shell script. We don't cache a
9201 # path for INSTALL within a source directory, because that will
9202 # break other packages using the cache if that directory is
9203 # removed, or if the path is relative.
9204 INSTALL="$ac_install_sh"
9205 fi
9206fi
9207echo "$ac_t""$INSTALL" 1>&6
9208
9209# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9210# It thinks the first close brace ends the variable substitution.
9211test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9212
9213test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9214
9215test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9216
9217
9218case ${INSTALL} in
9219 /* ) # Absolute
9220 ;;
9221 *)
9222 INSTALL=`pwd`/${INSTALL} ;;
9223esac
9224
9225
9226case "${host}" in
9227
9228 powerpc-*-darwin* )
9229 INSTALL_PROGRAM="cp -fp"
9230 INSTALL_DATA="cp -fp"
9231 ;;
9232 *)
9233 ;;
9234esac
9235
9236# Extract the first word of "strip", so it can be a program name with args.
9237set dummy strip; ac_word=$2
9238echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9239echo "configure:9240: checking for $ac_word" >&5
9240if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9241 echo $ac_n "(cached) $ac_c" 1>&6
9242else
9243 if test -n "$STRIP"; then
9244 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9245else
9246 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9247 ac_dummy="$PATH"
9248 for ac_dir in $ac_dummy; do
9249 test -z "$ac_dir" && ac_dir=.
9250 if test -f $ac_dir/$ac_word; then
9251 ac_cv_prog_STRIP="strip"
9252 break
9253 fi
9254 done
9255 IFS="$ac_save_ifs"
9256 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9257fi
9258fi
9259STRIP="$ac_cv_prog_STRIP"
9260if test -n "$STRIP"; then
9261 echo "$ac_t""$STRIP" 1>&6
9262else
9263 echo "$ac_t""no" 1>&6
9264fi
9265
9266
9267echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9268echo "configure:9269: checking if make is GNU make" >&5
9269if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9270 echo $ac_n "(cached) $ac_c" 1>&6
9271else
9272
9273 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9274 egrep -s GNU > /dev/null); then
9275 wx_cv_prog_makeisgnu="yes"
9276 else
9277 wx_cv_prog_makeisgnu="no"
9278 fi
9279
9280fi
9281
9282echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9283
9284if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9285 IF_GNU_MAKE=""
9286else
9287 IF_GNU_MAKE="#"
9288fi
9289
9290
9291
9292if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9293echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9294echo "configure:9295: checking if make supports VPATH" >&5
9295if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9296 echo $ac_n "(cached) $ac_c" 1>&6
9297else
9298
9299cat - << EOF > confMake
9300check : file
9301 cp \$? \$@
9302 cp \$? final_file
9303EOF
9304
9305if test ! -d sub ; then
9306 mkdir sub
9307fi
9308echo dummy > sub/file
9309${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9310RESULT=$?
9311rm -f sub/file check final_file confMake
9312rmdir sub
9313if test "$RESULT" = 0; then
9314 wx_cv_prog_makevpath="yes"
9315else
9316 wx_cv_prog_makevpath="no"
9317fi
9318
9319fi
9320
9321echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9322
9323if test "x$wx_cv_prog_makevpath" != "xyes"; then
9324{ echo "configure: error:
9325You need a make-utility that is able to use the variable
9326VPATH correctly.
9327If your version of make does not support VPATH correctly,
9328please install GNU-make (possibly as gmake), and start
9329configure with the following command:
9330export MAKE=gmake; ./configure for sh-type shells
9331setenv MAKE gmake; ./configure for csh-type shells
9332Also please do remember to use gmake in this case every time
9333you are trying to compile.
9334" 1>&2; exit 1; }
9335fi fi
9336for ac_prog in 'bison -y' byacc
9337do
9338# Extract the first word of "$ac_prog", so it can be a program name with args.
9339set dummy $ac_prog; ac_word=$2
9340echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9341echo "configure:9342: checking for $ac_word" >&5
9342if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9343 echo $ac_n "(cached) $ac_c" 1>&6
9344else
9345 if test -n "$YACC"; then
9346 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9347else
9348 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9349 ac_dummy="$PATH"
9350 for ac_dir in $ac_dummy; do
9351 test -z "$ac_dir" && ac_dir=.
9352 if test -f $ac_dir/$ac_word; then
9353 ac_cv_prog_YACC="$ac_prog"
9354 break
9355 fi
9356 done
9357 IFS="$ac_save_ifs"
9358fi
9359fi
9360YACC="$ac_cv_prog_YACC"
9361if test -n "$YACC"; then
9362 echo "$ac_t""$YACC" 1>&6
9363else
9364 echo "$ac_t""no" 1>&6
9365fi
9366
9367test -n "$YACC" && break
9368done
9369test -n "$YACC" || YACC="yacc"
9370
9371
9372# Extract the first word of "flex", so it can be a program name with args.
9373set dummy flex; ac_word=$2
9374echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9375echo "configure:9376: checking for $ac_word" >&5
9376if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9377 echo $ac_n "(cached) $ac_c" 1>&6
9378else
9379 if test -n "$LEX"; then
9380 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9381else
9382 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9383 ac_dummy="$PATH"
9384 for ac_dir in $ac_dummy; do
9385 test -z "$ac_dir" && ac_dir=.
9386 if test -f $ac_dir/$ac_word; then
9387 ac_cv_prog_LEX="flex"
9388 break
9389 fi
9390 done
9391 IFS="$ac_save_ifs"
9392 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9393fi
9394fi
9395LEX="$ac_cv_prog_LEX"
9396if test -n "$LEX"; then
9397 echo "$ac_t""$LEX" 1>&6
9398else
9399 echo "$ac_t""no" 1>&6
9400fi
9401
9402if test -z "$LEXLIB"
9403then
9404 case "$LEX" in
9405 flex*) ac_lib=fl ;;
9406 *) ac_lib=l ;;
9407 esac
9408 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9409echo "configure:9410: checking for yywrap in -l$ac_lib" >&5
9410ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9411if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9412 echo $ac_n "(cached) $ac_c" 1>&6
9413else
9414 ac_save_LIBS="$LIBS"
9415LIBS="-l$ac_lib $LIBS"
9416cat > conftest.$ac_ext <<EOF
9417#line 9418 "configure"
9418#include "confdefs.h"
9419/* Override any gcc2 internal prototype to avoid an error. */
9420/* We use char because int might match the return type of a gcc2
9421 builtin and then its argument prototype would still apply. */
9422char yywrap();
9423
9424int main() {
9425yywrap()
9426; return 0; }
9427EOF
9428if { (eval echo configure:9429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9429 rm -rf conftest*
9430 eval "ac_cv_lib_$ac_lib_var=yes"
9431else
9432 echo "configure: failed program was:" >&5
9433 cat conftest.$ac_ext >&5
9434 rm -rf conftest*
9435 eval "ac_cv_lib_$ac_lib_var=no"
9436fi
9437rm -f conftest*
9438LIBS="$ac_save_LIBS"
9439
9440fi
9441if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9442 echo "$ac_t""yes" 1>&6
9443 LEXLIB="-l$ac_lib"
9444else
9445 echo "$ac_t""no" 1>&6
9446fi
9447
9448fi
9449
9450
9451echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9452echo "configure:9453: checking whether ln -s works" >&5
9453if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9454 echo $ac_n "(cached) $ac_c" 1>&6
9455else
9456 rm -f conftestdata
9457if ln -s X conftestdata 2>/dev/null
9458then
9459 rm -f conftestdata
9460 ac_cv_prog_LN_S="ln -s"
9461else
9462 ac_cv_prog_LN_S=ln
9463fi
9464fi
9465LN_S="$ac_cv_prog_LN_S"
9466if test "$ac_cv_prog_LN_S" = "ln -s"; then
9467 echo "$ac_t""yes" 1>&6
9468else
9469 echo "$ac_t""no" 1>&6
9470fi
9471
9472
9473
9474if test "$wxUSE_MAC" != 1; then
9475 for ac_hdr in strings.h
9476do
9477ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9478echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9479echo "configure:9480: checking for $ac_hdr" >&5
9480if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9481 echo $ac_n "(cached) $ac_c" 1>&6
9482else
9483 cat > conftest.$ac_ext <<EOF
9484#line 9485 "configure"
9485#include "confdefs.h"
9486#include <$ac_hdr>
9487EOF
9488ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9489{ (eval echo configure:9490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9490ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9491if test -z "$ac_err"; then
9492 rm -rf conftest*
9493 eval "ac_cv_header_$ac_safe=yes"
9494else
9495 echo "$ac_err" >&5
9496 echo "configure: failed program was:" >&5
9497 cat conftest.$ac_ext >&5
9498 rm -rf conftest*
9499 eval "ac_cv_header_$ac_safe=no"
9500fi
9501rm -f conftest*
9502fi
9503if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9504 echo "$ac_t""yes" 1>&6
9505 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9506 cat >> confdefs.h <<EOF
9507#define $ac_tr_hdr 1
9508EOF
9509
9510else
9511 echo "$ac_t""no" 1>&6
9512fi
9513done
9514
9515fi
9516
9517for ac_hdr in stdlib.h
9518do
9519ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9520echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9521echo "configure:9522: checking for $ac_hdr" >&5
9522if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9523 echo $ac_n "(cached) $ac_c" 1>&6
9524else
9525 cat > conftest.$ac_ext <<EOF
9526#line 9527 "configure"
9527#include "confdefs.h"
9528#include <$ac_hdr>
9529EOF
9530ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9531{ (eval echo configure:9532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9532ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9533if test -z "$ac_err"; then
9534 rm -rf conftest*
9535 eval "ac_cv_header_$ac_safe=yes"
9536else
9537 echo "$ac_err" >&5
9538 echo "configure: failed program was:" >&5
9539 cat conftest.$ac_ext >&5
9540 rm -rf conftest*
9541 eval "ac_cv_header_$ac_safe=no"
9542fi
9543rm -f conftest*
9544fi
9545if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9546 echo "$ac_t""yes" 1>&6
9547 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9548 cat >> confdefs.h <<EOF
9549#define $ac_tr_hdr 1
9550EOF
9551
9552else
9553 echo "$ac_t""no" 1>&6
9554fi
9555done
9556
9557for ac_hdr in malloc.h
9558do
9559ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9560echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9561echo "configure:9562: checking for $ac_hdr" >&5
9562if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9563 echo $ac_n "(cached) $ac_c" 1>&6
9564else
9565 cat > conftest.$ac_ext <<EOF
9566#line 9567 "configure"
9567#include "confdefs.h"
9568#include <$ac_hdr>
9569EOF
9570ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9571{ (eval echo configure:9572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9572ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9573if test -z "$ac_err"; then
9574 rm -rf conftest*
9575 eval "ac_cv_header_$ac_safe=yes"
9576else
9577 echo "$ac_err" >&5
9578 echo "configure: failed program was:" >&5
9579 cat conftest.$ac_ext >&5
9580 rm -rf conftest*
9581 eval "ac_cv_header_$ac_safe=no"
9582fi
9583rm -f conftest*
9584fi
9585if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9586 echo "$ac_t""yes" 1>&6
9587 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9588 cat >> confdefs.h <<EOF
9589#define $ac_tr_hdr 1
9590EOF
9591
9592else
9593 echo "$ac_t""no" 1>&6
9594fi
9595done
9596
9597for ac_hdr in unistd.h
9598do
9599ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9600echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9601echo "configure:9602: checking for $ac_hdr" >&5
9602if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9603 echo $ac_n "(cached) $ac_c" 1>&6
9604else
9605 cat > conftest.$ac_ext <<EOF
9606#line 9607 "configure"
9607#include "confdefs.h"
9608#include <$ac_hdr>
9609EOF
9610ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9611{ (eval echo configure:9612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9612ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9613if test -z "$ac_err"; then
9614 rm -rf conftest*
9615 eval "ac_cv_header_$ac_safe=yes"
9616else
9617 echo "$ac_err" >&5
9618 echo "configure: failed program was:" >&5
9619 cat conftest.$ac_ext >&5
9620 rm -rf conftest*
9621 eval "ac_cv_header_$ac_safe=no"
9622fi
9623rm -f conftest*
9624fi
9625if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9626 echo "$ac_t""yes" 1>&6
9627 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9628 cat >> confdefs.h <<EOF
9629#define $ac_tr_hdr 1
9630EOF
9631
9632else
9633 echo "$ac_t""no" 1>&6
9634fi
9635done
9636
9637for ac_hdr in wchar.h
9638do
9639ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9640echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9641echo "configure:9642: checking for $ac_hdr" >&5
9642if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9643 echo $ac_n "(cached) $ac_c" 1>&6
9644else
9645 cat > conftest.$ac_ext <<EOF
9646#line 9647 "configure"
9647#include "confdefs.h"
9648#include <$ac_hdr>
9649EOF
9650ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9651{ (eval echo configure:9652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9652ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9653if test -z "$ac_err"; then
9654 rm -rf conftest*
9655 eval "ac_cv_header_$ac_safe=yes"
9656else
9657 echo "$ac_err" >&5
9658 echo "configure: failed program was:" >&5
9659 cat conftest.$ac_ext >&5
9660 rm -rf conftest*
9661 eval "ac_cv_header_$ac_safe=no"
9662fi
9663rm -f conftest*
9664fi
9665if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9666 echo "$ac_t""yes" 1>&6
9667 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9668 cat >> confdefs.h <<EOF
9669#define $ac_tr_hdr 1
9670EOF
9671
9672else
9673 echo "$ac_t""no" 1>&6
9674fi
9675done
9676
9677
9678if test "$ac_cv_header_wchar_h" != "yes"; then
9679 for ac_hdr in wcstr.h
9680do
9681ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9682echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9683echo "configure:9684: checking for $ac_hdr" >&5
9684if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9685 echo $ac_n "(cached) $ac_c" 1>&6
9686else
9687 cat > conftest.$ac_ext <<EOF
9688#line 9689 "configure"
9689#include "confdefs.h"
9690#include <$ac_hdr>
9691EOF
9692ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9693{ (eval echo configure:9694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9694ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9695if test -z "$ac_err"; then
9696 rm -rf conftest*
9697 eval "ac_cv_header_$ac_safe=yes"
9698else
9699 echo "$ac_err" >&5
9700 echo "configure: failed program was:" >&5
9701 cat conftest.$ac_ext >&5
9702 rm -rf conftest*
9703 eval "ac_cv_header_$ac_safe=no"
9704fi
9705rm -f conftest*
9706fi
9707if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9708 echo "$ac_t""yes" 1>&6
9709 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9710 cat >> confdefs.h <<EOF
9711#define $ac_tr_hdr 1
9712EOF
9713
9714else
9715 echo "$ac_t""no" 1>&6
9716fi
9717done
9718
9719fi
9720
9721
9722for ac_hdr in fnmatch.h
9723do
9724ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9725echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9726echo "configure:9727: checking for $ac_hdr" >&5
9727if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9728 echo $ac_n "(cached) $ac_c" 1>&6
9729else
9730 cat > conftest.$ac_ext <<EOF
9731#line 9732 "configure"
9732#include "confdefs.h"
9733#include <$ac_hdr>
9734EOF
9735ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9736{ (eval echo configure:9737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9737ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9738if test -z "$ac_err"; then
9739 rm -rf conftest*
9740 eval "ac_cv_header_$ac_safe=yes"
9741else
9742 echo "$ac_err" >&5
9743 echo "configure: failed program was:" >&5
9744 cat conftest.$ac_ext >&5
9745 rm -rf conftest*
9746 eval "ac_cv_header_$ac_safe=no"
9747fi
9748rm -f conftest*
9749fi
9750if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9751 echo "$ac_t""yes" 1>&6
9752 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9753 cat >> confdefs.h <<EOF
9754#define $ac_tr_hdr 1
9755EOF
9756
9757else
9758 echo "$ac_t""no" 1>&6
9759fi
9760done
9761
9762
9763if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
9764 for ac_func in fnmatch
9765do
9766echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9767echo "configure:9768: checking for $ac_func" >&5
9768if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9769 echo $ac_n "(cached) $ac_c" 1>&6
9770else
9771 cat > conftest.$ac_ext <<EOF
9772#line 9773 "configure"
9773#include "confdefs.h"
9774/* System header to define __stub macros and hopefully few prototypes,
9775 which can conflict with char $ac_func(); below. */
9776#include <assert.h>
9777/* Override any gcc2 internal prototype to avoid an error. */
9778/* We use char because int might match the return type of a gcc2
9779 builtin and then its argument prototype would still apply. */
9780char $ac_func();
9781
9782int main() {
9783
9784/* The GNU C library defines this for functions which it implements
9785 to always fail with ENOSYS. Some functions are actually named
9786 something starting with __ and the normal name is an alias. */
9787#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9788choke me
9789#else
9790$ac_func();
9791#endif
9792
9793; return 0; }
9794EOF
9795if { (eval echo configure:9796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9796 rm -rf conftest*
9797 eval "ac_cv_func_$ac_func=yes"
9798else
9799 echo "configure: failed program was:" >&5
9800 cat conftest.$ac_ext >&5
9801 rm -rf conftest*
9802 eval "ac_cv_func_$ac_func=no"
9803fi
9804rm -f conftest*
9805fi
9806
9807if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9808 echo "$ac_t""yes" 1>&6
9809 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9810 cat >> confdefs.h <<EOF
9811#define $ac_tr_func 1
9812EOF
9813
9814else
9815 echo "$ac_t""no" 1>&6
9816fi
9817done
9818
9819fi
9820
9821for ac_hdr in langinfo.h
9822do
9823ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9824echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9825echo "configure:9826: checking for $ac_hdr" >&5
9826if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9827 echo $ac_n "(cached) $ac_c" 1>&6
9828else
9829 cat > conftest.$ac_ext <<EOF
9830#line 9831 "configure"
9831#include "confdefs.h"
9832#include <$ac_hdr>
9833EOF
9834ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9835{ (eval echo configure:9836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9836ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9837if test -z "$ac_err"; then
9838 rm -rf conftest*
9839 eval "ac_cv_header_$ac_safe=yes"
9840else
9841 echo "$ac_err" >&5
9842 echo "configure: failed program was:" >&5
9843 cat conftest.$ac_ext >&5
9844 rm -rf conftest*
9845 eval "ac_cv_header_$ac_safe=no"
9846fi
9847rm -f conftest*
9848fi
9849if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9850 echo "$ac_t""yes" 1>&6
9851 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9852 cat >> confdefs.h <<EOF
9853#define $ac_tr_hdr 1
9854EOF
9855
9856else
9857 echo "$ac_t""no" 1>&6
9858fi
9859done
9860
9861
9862if test "$wxUSE_GUI" = "yes"; then
9863 if test "$wxUSE_UNIX" = "yes"; then
9864 for ac_hdr in X11/XKBlib.h
9865do
9866ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9867echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9868echo "configure:9869: checking for $ac_hdr" >&5
9869if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9870 echo $ac_n "(cached) $ac_c" 1>&6
9871else
9872 cat > conftest.$ac_ext <<EOF
9873#line 9874 "configure"
9874#include "confdefs.h"
9875#include <$ac_hdr>
9876EOF
9877ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9878{ (eval echo configure:9879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9879ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9880if test -z "$ac_err"; then
9881 rm -rf conftest*
9882 eval "ac_cv_header_$ac_safe=yes"
9883else
9884 echo "$ac_err" >&5
9885 echo "configure: failed program was:" >&5
9886 cat conftest.$ac_ext >&5
9887 rm -rf conftest*
9888 eval "ac_cv_header_$ac_safe=no"
9889fi
9890rm -f conftest*
9891fi
9892if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9893 echo "$ac_t""yes" 1>&6
9894 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9895 cat >> confdefs.h <<EOF
9896#define $ac_tr_hdr 1
9897EOF
9898
9899else
9900 echo "$ac_t""no" 1>&6
9901fi
9902done
9903
9904 fi
9905fi
9906
9907
9908echo $ac_n "checking for working const""... $ac_c" 1>&6
9909echo "configure:9910: checking for working const" >&5
9910if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9911 echo $ac_n "(cached) $ac_c" 1>&6
9912else
9913 cat > conftest.$ac_ext <<EOF
9914#line 9915 "configure"
9915#include "confdefs.h"
9916
9917int main() {
9918
9919/* Ultrix mips cc rejects this. */
9920typedef int charset[2]; const charset x;
9921/* SunOS 4.1.1 cc rejects this. */
9922char const *const *ccp;
9923char **p;
9924/* NEC SVR4.0.2 mips cc rejects this. */
9925struct point {int x, y;};
9926static struct point const zero = {0,0};
9927/* AIX XL C 1.02.0.0 rejects this.
9928 It does not let you subtract one const X* pointer from another in an arm
9929 of an if-expression whose if-part is not a constant expression */
9930const char *g = "string";
9931ccp = &g + (g ? g-g : 0);
9932/* HPUX 7.0 cc rejects these. */
9933++ccp;
9934p = (char**) ccp;
9935ccp = (char const *const *) p;
9936{ /* SCO 3.2v4 cc rejects this. */
9937 char *t;
9938 char const *s = 0 ? (char *) 0 : (char const *) 0;
9939
9940 *t++ = 0;
9941}
9942{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9943 int x[] = {25, 17};
9944 const int *foo = &x[0];
9945 ++foo;
9946}
9947{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9948 typedef const int *iptr;
9949 iptr p = 0;
9950 ++p;
9951}
9952{ /* AIX XL C 1.02.0.0 rejects this saying
9953 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9954 struct s { int j; const int *ap[3]; };
9955 struct s *b; b->j = 5;
9956}
9957{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9958 const int foo = 10;
9959}
9960
9961; return 0; }
9962EOF
9963if { (eval echo configure:9964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9964 rm -rf conftest*
9965 ac_cv_c_const=yes
9966else
9967 echo "configure: failed program was:" >&5
9968 cat conftest.$ac_ext >&5
9969 rm -rf conftest*
9970 ac_cv_c_const=no
9971fi
9972rm -f conftest*
9973fi
9974
9975echo "$ac_t""$ac_cv_c_const" 1>&6
9976if test $ac_cv_c_const = no; then
9977 cat >> confdefs.h <<\EOF
9978#define const
9979EOF
9980
9981fi
9982
9983echo $ac_n "checking for inline""... $ac_c" 1>&6
9984echo "configure:9985: checking for inline" >&5
9985if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
9986 echo $ac_n "(cached) $ac_c" 1>&6
9987else
9988 ac_cv_c_inline=no
9989for ac_kw in inline __inline__ __inline; do
9990 cat > conftest.$ac_ext <<EOF
9991#line 9992 "configure"
9992#include "confdefs.h"
9993
9994int main() {
9995} $ac_kw foo() {
9996; return 0; }
9997EOF
9998if { (eval echo configure:9999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9999 rm -rf conftest*
10000 ac_cv_c_inline=$ac_kw; break
10001else
10002 echo "configure: failed program was:" >&5
10003 cat conftest.$ac_ext >&5
10004fi
10005rm -f conftest*
10006done
10007
10008fi
10009
10010echo "$ac_t""$ac_cv_c_inline" 1>&6
10011case "$ac_cv_c_inline" in
10012 inline | yes) ;;
10013 no) cat >> confdefs.h <<\EOF
10014#define inline
10015EOF
10016 ;;
10017 *) cat >> confdefs.h <<EOF
10018#define inline $ac_cv_c_inline
10019EOF
10020 ;;
10021esac
10022
10023
10024echo $ac_n "checking size of char""... $ac_c" 1>&6
10025echo "configure:10026: checking size of char" >&5
10026if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10027 echo $ac_n "(cached) $ac_c" 1>&6
10028else
10029 if test "$cross_compiling" = yes; then
10030 ac_cv_sizeof_char=1
10031else
10032 cat > conftest.$ac_ext <<EOF
10033#line 10034 "configure"
10034#include "confdefs.h"
10035#include <stdio.h>
10036main()
10037{
10038 FILE *f=fopen("conftestval", "w");
10039 if (!f) exit(1);
10040 fprintf(f, "%d\n", sizeof(char));
10041 exit(0);
10042}
10043EOF
10044if { (eval echo configure:10045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10045then
10046 ac_cv_sizeof_char=`cat conftestval`
10047else
10048 echo "configure: failed program was:" >&5
10049 cat conftest.$ac_ext >&5
10050 rm -fr conftest*
10051 ac_cv_sizeof_char=0
10052fi
10053rm -fr conftest*
10054fi
10055
10056fi
10057echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10058cat >> confdefs.h <<EOF
10059#define SIZEOF_CHAR $ac_cv_sizeof_char
10060EOF
10061
10062
10063echo $ac_n "checking size of short""... $ac_c" 1>&6
10064echo "configure:10065: checking size of short" >&5
10065if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10066 echo $ac_n "(cached) $ac_c" 1>&6
10067else
10068 if test "$cross_compiling" = yes; then
10069 ac_cv_sizeof_short=2
10070else
10071 cat > conftest.$ac_ext <<EOF
10072#line 10073 "configure"
10073#include "confdefs.h"
10074#include <stdio.h>
10075main()
10076{
10077 FILE *f=fopen("conftestval", "w");
10078 if (!f) exit(1);
10079 fprintf(f, "%d\n", sizeof(short));
10080 exit(0);
10081}
10082EOF
10083if { (eval echo configure:10084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10084then
10085 ac_cv_sizeof_short=`cat conftestval`
10086else
10087 echo "configure: failed program was:" >&5
10088 cat conftest.$ac_ext >&5
10089 rm -fr conftest*
10090 ac_cv_sizeof_short=0
10091fi
10092rm -fr conftest*
10093fi
10094
10095fi
10096echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10097cat >> confdefs.h <<EOF
10098#define SIZEOF_SHORT $ac_cv_sizeof_short
10099EOF
10100
10101
10102echo $ac_n "checking size of void *""... $ac_c" 1>&6
10103echo "configure:10104: checking size of void *" >&5
10104if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10105 echo $ac_n "(cached) $ac_c" 1>&6
10106else
10107 if test "$cross_compiling" = yes; then
10108 ac_cv_sizeof_void_p=4
10109else
10110 cat > conftest.$ac_ext <<EOF
10111#line 10112 "configure"
10112#include "confdefs.h"
10113#include <stdio.h>
10114main()
10115{
10116 FILE *f=fopen("conftestval", "w");
10117 if (!f) exit(1);
10118 fprintf(f, "%d\n", sizeof(void *));
10119 exit(0);
10120}
10121EOF
10122if { (eval echo configure:10123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10123then
10124 ac_cv_sizeof_void_p=`cat conftestval`
10125else
10126 echo "configure: failed program was:" >&5
10127 cat conftest.$ac_ext >&5
10128 rm -fr conftest*
10129 ac_cv_sizeof_void_p=0
10130fi
10131rm -fr conftest*
10132fi
10133
10134fi
10135echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10136cat >> confdefs.h <<EOF
10137#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10138EOF
10139
10140
10141echo $ac_n "checking size of int""... $ac_c" 1>&6
10142echo "configure:10143: checking size of int" >&5
10143if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10144 echo $ac_n "(cached) $ac_c" 1>&6
10145else
10146 if test "$cross_compiling" = yes; then
10147 ac_cv_sizeof_int=4
10148else
10149 cat > conftest.$ac_ext <<EOF
10150#line 10151 "configure"
10151#include "confdefs.h"
10152#include <stdio.h>
10153main()
10154{
10155 FILE *f=fopen("conftestval", "w");
10156 if (!f) exit(1);
10157 fprintf(f, "%d\n", sizeof(int));
10158 exit(0);
10159}
10160EOF
10161if { (eval echo configure:10162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10162then
10163 ac_cv_sizeof_int=`cat conftestval`
10164else
10165 echo "configure: failed program was:" >&5
10166 cat conftest.$ac_ext >&5
10167 rm -fr conftest*
10168 ac_cv_sizeof_int=0
10169fi
10170rm -fr conftest*
10171fi
10172
10173fi
10174echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10175cat >> confdefs.h <<EOF
10176#define SIZEOF_INT $ac_cv_sizeof_int
10177EOF
10178
10179
10180echo $ac_n "checking size of long""... $ac_c" 1>&6
10181echo "configure:10182: checking size of long" >&5
10182if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10183 echo $ac_n "(cached) $ac_c" 1>&6
10184else
10185 if test "$cross_compiling" = yes; then
10186 ac_cv_sizeof_long=4
10187else
10188 cat > conftest.$ac_ext <<EOF
10189#line 10190 "configure"
10190#include "confdefs.h"
10191#include <stdio.h>
10192main()
10193{
10194 FILE *f=fopen("conftestval", "w");
10195 if (!f) exit(1);
10196 fprintf(f, "%d\n", sizeof(long));
10197 exit(0);
10198}
10199EOF
10200if { (eval echo configure:10201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10201then
10202 ac_cv_sizeof_long=`cat conftestval`
10203else
10204 echo "configure: failed program was:" >&5
10205 cat conftest.$ac_ext >&5
10206 rm -fr conftest*
10207 ac_cv_sizeof_long=0
10208fi
10209rm -fr conftest*
10210fi
10211
10212fi
10213echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10214cat >> confdefs.h <<EOF
10215#define SIZEOF_LONG $ac_cv_sizeof_long
10216EOF
10217
10218
10219
10220case "${host}" in
10221 arm-*-linux* )
10222 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10223echo "configure:10224: checking size of long long" >&5
10224if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10225 echo $ac_n "(cached) $ac_c" 1>&6
10226else
10227 if test "$cross_compiling" = yes; then
10228 ac_cv_sizeof_long_long=8
10229else
10230 cat > conftest.$ac_ext <<EOF
10231#line 10232 "configure"
10232#include "confdefs.h"
10233#include <stdio.h>
10234main()
10235{
10236 FILE *f=fopen("conftestval", "w");
10237 if (!f) exit(1);
10238 fprintf(f, "%d\n", sizeof(long long));
10239 exit(0);
10240}
10241EOF
10242if { (eval echo configure:10243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10243then
10244 ac_cv_sizeof_long_long=`cat conftestval`
10245else
10246 echo "configure: failed program was:" >&5
10247 cat conftest.$ac_ext >&5
10248 rm -fr conftest*
10249 ac_cv_sizeof_long_long=0
10250fi
10251rm -fr conftest*
10252fi
10253
10254fi
10255echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10256cat >> confdefs.h <<EOF
10257#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10258EOF
10259
10260
10261 ;;
10262 * )
10263 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10264echo "configure:10265: checking size of long long" >&5
10265if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10266 echo $ac_n "(cached) $ac_c" 1>&6
10267else
10268 if test "$cross_compiling" = yes; then
10269 ac_cv_sizeof_long_long=0
10270else
10271 cat > conftest.$ac_ext <<EOF
10272#line 10273 "configure"
10273#include "confdefs.h"
10274#include <stdio.h>
10275main()
10276{
10277 FILE *f=fopen("conftestval", "w");
10278 if (!f) exit(1);
10279 fprintf(f, "%d\n", sizeof(long long));
10280 exit(0);
10281}
10282EOF
10283if { (eval echo configure:10284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10284then
10285 ac_cv_sizeof_long_long=`cat conftestval`
10286else
10287 echo "configure: failed program was:" >&5
10288 cat conftest.$ac_ext >&5
10289 rm -fr conftest*
10290 ac_cv_sizeof_long_long=0
10291fi
10292rm -fr conftest*
10293fi
10294
10295fi
10296echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10297cat >> confdefs.h <<EOF
10298#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10299EOF
10300
10301
10302esac
10303
10304echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10305echo "configure:10306: checking size of wchar_t" >&5
10306if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10307 echo $ac_n "(cached) $ac_c" 1>&6
10308else
10309
10310 if test "$cross_compiling" = yes; then
10311 wx_cv_sizeof_wchar_t=4
10312
10313else
10314 cat > conftest.$ac_ext <<EOF
10315#line 10316 "configure"
10316#include "confdefs.h"
10317
10318 #ifdef HAVE_WCHAR_H
10319 # ifdef __CYGWIN__
10320 # include <stddef.h>
10321 # endif
10322 # include <wchar.h>
10323 #endif
10324 #ifdef HAVE_STDLIB_H
10325 # include <stdlib.h>
10326 #endif
10327 #include <stdio.h>
10328 int main()
10329 {
10330 FILE *f=fopen("conftestval", "w");
10331 if (!f) exit(1);
10332 fprintf(f, "%i", sizeof(wchar_t));
10333 exit(0);
10334 }
10335
10336EOF
10337if { (eval echo configure:10338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10338then
10339 wx_cv_sizeof_wchar_t=`cat conftestval`
10340else
10341 echo "configure: failed program was:" >&5
10342 cat conftest.$ac_ext >&5
10343 rm -fr conftest*
10344 wx_cv_sizeof_wchar_t=0
10345fi
10346rm -fr conftest*
10347fi
10348
10349
10350fi
10351
10352echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10353
10354cat >> confdefs.h <<EOF
10355#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10356EOF
10357
10358
10359# Check whether --enable-largefile or --disable-largefile was given.
10360if test "${enable_largefile+set}" = set; then
10361 enableval="$enable_largefile"
10362 :
10363fi
10364
10365if test "$enable_largefile" != no; then
10366 wx_largefile=no
10367
10368 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10369echo "configure:10370: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10370if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10371 echo $ac_n "(cached) $ac_c" 1>&6
10372else
10373
10374 cat > conftest.$ac_ext <<EOF
10375#line 10376 "configure"
10376#include "confdefs.h"
10377#define _FILE_OFFSET_BITS 64
10378 #include <sys/types.h>
10379int main() {
10380typedef struct {
10381 unsigned int field: sizeof(off_t) == 8;
10382} wxlf;
10383
10384; return 0; }
10385EOF
10386if { (eval echo configure:10387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10387 rm -rf conftest*
10388 ac_cv_sys_file_offset_bits=64
10389else
10390 echo "configure: failed program was:" >&5
10391 cat conftest.$ac_ext >&5
10392 rm -rf conftest*
10393 ac_cv_sys_file_offset_bits=no
10394fi
10395rm -f conftest*
10396
10397
10398fi
10399
10400echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10401
10402 if test "$ac_cv_sys_file_offset_bits" != no; then
10403 wx_largefile=yes
10404 cat >> confdefs.h <<EOF
10405#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10406EOF
10407
10408 fi
10409
10410 if test "x$wx_largefile" != "xyes"; then
10411
10412 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10413echo "configure:10414: checking for _LARGE_FILES value needed for large files" >&5
10414if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10415 echo $ac_n "(cached) $ac_c" 1>&6
10416else
10417
10418 cat > conftest.$ac_ext <<EOF
10419#line 10420 "configure"
10420#include "confdefs.h"
10421#define _LARGE_FILES 1
10422 #include <sys/types.h>
10423int main() {
10424typedef struct {
10425 unsigned int field: sizeof(off_t) == 8;
10426} wxlf;
10427
10428; return 0; }
10429EOF
10430if { (eval echo configure:10431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10431 rm -rf conftest*
10432 ac_cv_sys_large_files=1
10433else
10434 echo "configure: failed program was:" >&5
10435 cat conftest.$ac_ext >&5
10436 rm -rf conftest*
10437 ac_cv_sys_large_files=no
10438fi
10439rm -f conftest*
10440
10441
10442fi
10443
10444echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10445
10446 if test "$ac_cv_sys_large_files" != no; then
10447 wx_largefile=yes
10448 cat >> confdefs.h <<EOF
10449#define _LARGE_FILES $ac_cv_sys_large_files
10450EOF
10451
10452 fi
10453
10454 fi
10455
10456 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10457echo "configure:10458: checking if large file support is available" >&5
10458 if test "x$wx_largefile" = "xyes"; then
10459 cat >> confdefs.h <<\EOF
10460#define HAVE_LARGEFILE_SUPPORT 1
10461EOF
10462
10463 fi
10464 echo "$ac_t""$wx_largefile" 1>&6
10465fi
10466
10467
10468echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10469echo "configure:10470: checking whether byte ordering is bigendian" >&5
10470if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10471 echo $ac_n "(cached) $ac_c" 1>&6
10472else
10473 ac_cv_c_bigendian=unknown
10474# See if sys/param.h defines the BYTE_ORDER macro.
10475cat > conftest.$ac_ext <<EOF
10476#line 10477 "configure"
10477#include "confdefs.h"
10478#include <sys/types.h>
10479#include <sys/param.h>
10480int main() {
10481
10482#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10483 bogus endian macros
10484#endif
10485; return 0; }
10486EOF
10487if { (eval echo configure:10488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10488 rm -rf conftest*
10489 # It does; now see whether it defined to BIG_ENDIAN or not.
10490cat > conftest.$ac_ext <<EOF
10491#line 10492 "configure"
10492#include "confdefs.h"
10493#include <sys/types.h>
10494#include <sys/param.h>
10495int main() {
10496
10497#if BYTE_ORDER != BIG_ENDIAN
10498 not big endian
10499#endif
10500; return 0; }
10501EOF
10502if { (eval echo configure:10503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10503 rm -rf conftest*
10504 ac_cv_c_bigendian=yes
10505else
10506 echo "configure: failed program was:" >&5
10507 cat conftest.$ac_ext >&5
10508 rm -rf conftest*
10509 ac_cv_c_bigendian=no
10510fi
10511rm -f conftest*
10512else
10513 echo "configure: failed program was:" >&5
10514 cat conftest.$ac_ext >&5
10515fi
10516rm -f conftest*
10517if test $ac_cv_c_bigendian = unknown; then
10518if test "$cross_compiling" = yes; then
10519 ac_cv_c_bigendian=unknown
10520else
10521 cat > conftest.$ac_ext <<EOF
10522#line 10523 "configure"
10523#include "confdefs.h"
10524main () {
10525 /* Are we little or big endian? From Harbison&Steele. */
10526 union
10527 {
10528 long l;
10529 char c[sizeof (long)];
10530 } u;
10531 u.l = 1;
10532 exit (u.c[sizeof (long) - 1] == 1);
10533}
10534EOF
10535if { (eval echo configure:10536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10536then
10537 ac_cv_c_bigendian=no
10538else
10539 echo "configure: failed program was:" >&5
10540 cat conftest.$ac_ext >&5
10541 rm -fr conftest*
10542 ac_cv_c_bigendian=yes
10543fi
10544rm -fr conftest*
10545fi
10546
10547fi
10548fi
10549
10550echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10551if test $ac_cv_c_bigendian = unknown; then
10552 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
10553fi
10554if test $ac_cv_c_bigendian = yes; then
10555 cat >> confdefs.h <<\EOF
10556#define WORDS_BIGENDIAN 1
10557EOF
10558
10559fi
10560
10561
10562echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
10563echo "configure:10564: checking how to run the C++ preprocessor" >&5
10564if test -z "$CXXCPP"; then
10565if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
10566 echo $ac_n "(cached) $ac_c" 1>&6
10567else
10568 ac_ext=C
10569# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10570ac_cpp='$CXXCPP $CPPFLAGS'
10571ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10572ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10573cross_compiling=$ac_cv_prog_cxx_cross
10574 CXXCPP="${CXX-g++} -E"
10575 cat > conftest.$ac_ext <<EOF
10576#line 10577 "configure"
10577#include "confdefs.h"
10578#include <stdlib.h>
10579EOF
10580ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10581{ (eval echo configure:10582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10582ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10583if test -z "$ac_err"; then
10584 :
10585else
10586 echo "$ac_err" >&5
10587 echo "configure: failed program was:" >&5
10588 cat conftest.$ac_ext >&5
10589 rm -rf conftest*
10590 CXXCPP=/lib/cpp
10591fi
10592rm -f conftest*
10593 ac_cv_prog_CXXCPP="$CXXCPP"
10594ac_ext=C
10595# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10596ac_cpp='$CXXCPP $CPPFLAGS'
10597ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10598ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10599cross_compiling=$ac_cv_prog_cxx_cross
10600fi
10601fi
10602CXXCPP="$ac_cv_prog_CXXCPP"
10603echo "$ac_t""$CXXCPP" 1>&6
10604
10605
10606 if test "$cross_compiling" = "yes"; then
10607 cat >> confdefs.h <<\EOF
10608#define wxUSE_IOSTREAMH 1
10609EOF
10610
10611 else
10612
10613 ac_ext=C
10614# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10615ac_cpp='$CXXCPP $CPPFLAGS'
10616ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10617ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10618cross_compiling=$ac_cv_prog_cxx_cross
10619
10620
10621 for ac_hdr in iostream
10622do
10623ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10624echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10625echo "configure:10626: checking for $ac_hdr" >&5
10626if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10627 echo $ac_n "(cached) $ac_c" 1>&6
10628else
10629 cat > conftest.$ac_ext <<EOF
10630#line 10631 "configure"
10631#include "confdefs.h"
10632#include <$ac_hdr>
10633EOF
10634ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10635{ (eval echo configure:10636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10636ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10637if test -z "$ac_err"; then
10638 rm -rf conftest*
10639 eval "ac_cv_header_$ac_safe=yes"
10640else
10641 echo "$ac_err" >&5
10642 echo "configure: failed program was:" >&5
10643 cat conftest.$ac_ext >&5
10644 rm -rf conftest*
10645 eval "ac_cv_header_$ac_safe=no"
10646fi
10647rm -f conftest*
10648fi
10649if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10650 echo "$ac_t""yes" 1>&6
10651 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10652 cat >> confdefs.h <<EOF
10653#define $ac_tr_hdr 1
10654EOF
10655
10656else
10657 echo "$ac_t""no" 1>&6
10658fi
10659done
10660
10661
10662 if test "$ac_cv_header_iostream" = "yes" ; then
10663 :
10664 else
10665 cat >> confdefs.h <<\EOF
10666#define wxUSE_IOSTREAMH 1
10667EOF
10668
10669 fi
10670
10671 ac_ext=c
10672# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10673ac_cpp='$CPP $CPPFLAGS'
10674ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10675ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10676cross_compiling=$ac_cv_prog_cc_cross
10677
10678 fi
10679
10680
10681
10682 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
10683echo "configure:10684: checking if C++ compiler supports bool" >&5
10684if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
10685 echo $ac_n "(cached) $ac_c" 1>&6
10686else
10687
10688
10689 ac_ext=C
10690# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10691ac_cpp='$CXXCPP $CPPFLAGS'
10692ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10693ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10694cross_compiling=$ac_cv_prog_cxx_cross
10695
10696
10697 cat > conftest.$ac_ext <<EOF
10698#line 10699 "configure"
10699#include "confdefs.h"
10700
10701
10702int main() {
10703
10704 bool b = true;
10705
10706 return 0;
10707
10708; return 0; }
10709EOF
10710if { (eval echo configure:10711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10711 rm -rf conftest*
10712
10713 wx_cv_cpp_bool=yes
10714
10715else
10716 echo "configure: failed program was:" >&5
10717 cat conftest.$ac_ext >&5
10718 rm -rf conftest*
10719
10720 wx_cv_cpp_bool=no
10721
10722
10723fi
10724rm -f conftest*
10725
10726 ac_ext=c
10727# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10728ac_cpp='$CPP $CPPFLAGS'
10729ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10730ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10731cross_compiling=$ac_cv_prog_cc_cross
10732
10733
10734fi
10735
10736echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10737
10738 if test "$wx_cv_cpp_bool" = "yes"; then
10739 cat >> confdefs.h <<\EOF
10740#define HAVE_BOOL 1
10741EOF
10742
10743 fi
10744
10745
10746
10747 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
10748echo "configure:10749: checking if C++ compiler supports the explicit keyword" >&5
10749if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
10750 echo $ac_n "(cached) $ac_c" 1>&6
10751else
10752
10753
10754 ac_ext=C
10755# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10756ac_cpp='$CXXCPP $CPPFLAGS'
10757ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10758ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10759cross_compiling=$ac_cv_prog_cxx_cross
10760
10761
10762 cat > conftest.$ac_ext <<EOF
10763#line 10764 "configure"
10764#include "confdefs.h"
10765
10766 class Foo { public: explicit Foo(int) {} };
10767
10768int main() {
10769
10770 return 0;
10771
10772; return 0; }
10773EOF
10774if { (eval echo configure:10775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10775 rm -rf conftest*
10776
10777 cat > conftest.$ac_ext <<EOF
10778#line 10779 "configure"
10779#include "confdefs.h"
10780
10781 class Foo { public: explicit Foo(int) {} };
10782 static void TakeFoo(const Foo& foo) { }
10783
10784int main() {
10785
10786 TakeFoo(17);
10787 return 0;
10788
10789; return 0; }
10790EOF
10791if { (eval echo configure:10792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10792 rm -rf conftest*
10793 wx_cv_explicit=no
10794else
10795 echo "configure: failed program was:" >&5
10796 cat conftest.$ac_ext >&5
10797 rm -rf conftest*
10798 wx_cv_explicit=yes
10799
10800fi
10801rm -f conftest*
10802
10803else
10804 echo "configure: failed program was:" >&5
10805 cat conftest.$ac_ext >&5
10806 rm -rf conftest*
10807 wx_cv_explicit=no
10808
10809fi
10810rm -f conftest*
10811
10812 ac_ext=c
10813# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10814ac_cpp='$CPP $CPPFLAGS'
10815ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10816ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10817cross_compiling=$ac_cv_prog_cc_cross
10818
10819
10820fi
10821
10822echo "$ac_t""$wx_cv_explicit" 1>&6
10823
10824 if test "$wx_cv_explicit" = "yes"; then
10825 cat >> confdefs.h <<\EOF
10826#define HAVE_EXPLICIT 1
10827EOF
10828
10829 fi
10830
10831
10832
10833SEARCH_INCLUDE="\
10834 /usr/local/include \
10835 \
10836 /usr/Motif-1.2/include \
10837 /usr/Motif-2.1/include \
10838 \
10839 /usr/include/Motif1.2 \
10840 /opt/xpm/include/X11 \
10841 /opt/GBxpm/include/ \
10842 /opt/GBxpm/X11/include/ \
10843 \
10844 /usr/Motif1.2/include \
10845 /usr/dt/include \
10846 /usr/openwin/include \
10847 \
10848 /usr/include/Xm \
10849 \
10850 /usr/X11R6/include \
10851 /usr/X11R6.4/include \
10852 /usr/X11R5/include \
10853 /usr/X11R4/include \
10854 \
10855 /usr/include/X11R6 \
10856 /usr/include/X11R5 \
10857 /usr/include/X11R4 \
10858 \
10859 /usr/local/X11R6/include \
10860 /usr/local/X11R5/include \
10861 /usr/local/X11R4/include \
10862 \
10863 /usr/local/include/X11R6 \
10864 /usr/local/include/X11R5 \
10865 /usr/local/include/X11R4 \
10866 \
10867 /usr/X11/include \
10868 /usr/include/X11 \
10869 /usr/local/X11/include \
10870 /usr/local/include/X11 \
10871 \
10872 /usr/X386/include \
10873 /usr/x386/include \
10874 /usr/XFree86/include/X11 \
10875 \
10876 X:/XFree86/include \
10877 X:/XFree86/include/X11 \
10878 \
10879 /usr/include/gtk \
10880 /usr/local/include/gtk \
10881 /usr/include/glib \
10882 /usr/local/include/glib \
10883 \
10884 /usr/include/qt \
10885 /usr/local/include/qt \
10886 \
10887 /usr/include/windows \
10888 /usr/include/wine \
10889 /usr/local/include/wine \
10890 \
10891 /usr/unsupported/include \
10892 /usr/athena/include \
10893 /usr/local/x11r5/include \
10894 /usr/lpp/Xamples/include \
10895 \
10896 /usr/openwin/share/include \
10897 \
10898 /usr/include"
10899
10900SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
10901
10902
10903cat > confcache <<\EOF
10904# This file is a shell script that caches the results of configure
10905# tests run on this system so they can be shared between configure
10906# scripts and configure runs. It is not useful on other systems.
10907# If it contains results you don't want to keep, you may remove or edit it.
10908#
10909# By default, configure uses ./config.cache as the cache file,
10910# creating it if it does not exist already. You can give configure
10911# the --cache-file=FILE option to use a different cache file; that is
10912# what configure does when it calls configure scripts in
10913# subdirectories, so they share the cache.
10914# Giving --cache-file=/dev/null disables caching, for debugging configure.
10915# config.status only pays attention to the cache file if you give it the
10916# --recheck option to rerun configure.
10917#
10918EOF
10919# The following way of writing the cache mishandles newlines in values,
10920# but we know of no workaround that is simple, portable, and efficient.
10921# So, don't put newlines in cache variables' values.
10922# Ultrix sh set writes to stderr and can't be redirected directly,
10923# and sets the high bit in the cache file unless we assign to the vars.
10924(set) 2>&1 |
10925 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10926 *ac_space=\ *)
10927 # `set' does not quote correctly, so add quotes (double-quote substitution
10928 # turns \\\\ into \\, and sed turns \\ into \).
10929 sed -n \
10930 -e "s/'/'\\\\''/g" \
10931 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10932 ;;
10933 *)
10934 # `set' quotes correctly as required by POSIX, so do not add quotes.
10935 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10936 ;;
10937 esac >> confcache
10938if cmp -s $cache_file confcache; then
10939 :
10940else
10941 if test -w $cache_file; then
10942 echo "updating cache $cache_file"
10943 cat confcache > $cache_file
10944 else
10945 echo "not updating unwritable cache $cache_file"
10946 fi
10947fi
10948rm -f confcache
10949
10950
10951if test "$USE_LINUX" = 1; then
10952 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
10953echo "configure:10954: checking for glibc 2.1 or later" >&5
10954if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
10955 echo $ac_n "(cached) $ac_c" 1>&6
10956else
10957
10958 cat > conftest.$ac_ext <<EOF
10959#line 10960 "configure"
10960#include "confdefs.h"
10961#include <features.h>
10962int main() {
10963
10964 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
10965 #error not glibc2.1
10966 #endif
10967
10968; return 0; }
10969EOF
10970if { (eval echo configure:10971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10971 rm -rf conftest*
10972
10973 wx_cv_lib_glibc21=yes
10974
10975else
10976 echo "configure: failed program was:" >&5
10977 cat conftest.$ac_ext >&5
10978 rm -rf conftest*
10979
10980 wx_cv_lib_glibc21=no
10981
10982
10983fi
10984rm -f conftest*
10985
10986fi
10987
10988echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
10989 if test "$wx_cv_lib_glibc21" = "yes"; then
10990 cat >> confdefs.h <<\EOF
10991#define wxHAVE_GLIBC2 1
10992EOF
10993
10994 fi
10995fi
10996
10997
10998
10999REGEX_INCLUDE=
11000if test "$wxUSE_REGEX" != "no"; then
11001 cat >> confdefs.h <<\EOF
11002#define wxUSE_REGEX 1
11003EOF
11004
11005
11006 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11007 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11008echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11009echo "configure:11010: checking for regex.h" >&5
11010if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11011 echo $ac_n "(cached) $ac_c" 1>&6
11012else
11013 cat > conftest.$ac_ext <<EOF
11014#line 11015 "configure"
11015#include "confdefs.h"
11016#include <regex.h>
11017EOF
11018ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11019{ (eval echo configure:11020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11020ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11021if test -z "$ac_err"; then
11022 rm -rf conftest*
11023 eval "ac_cv_header_$ac_safe=yes"
11024else
11025 echo "$ac_err" >&5
11026 echo "configure: failed program was:" >&5
11027 cat conftest.$ac_ext >&5
11028 rm -rf conftest*
11029 eval "ac_cv_header_$ac_safe=no"
11030fi
11031rm -f conftest*
11032fi
11033if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11034 echo "$ac_t""yes" 1>&6
11035 for ac_func in regcomp
11036do
11037echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11038echo "configure:11039: checking for $ac_func" >&5
11039if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11040 echo $ac_n "(cached) $ac_c" 1>&6
11041else
11042 cat > conftest.$ac_ext <<EOF
11043#line 11044 "configure"
11044#include "confdefs.h"
11045/* System header to define __stub macros and hopefully few prototypes,
11046 which can conflict with char $ac_func(); below. */
11047#include <assert.h>
11048/* Override any gcc2 internal prototype to avoid an error. */
11049/* We use char because int might match the return type of a gcc2
11050 builtin and then its argument prototype would still apply. */
11051char $ac_func();
11052
11053int main() {
11054
11055/* The GNU C library defines this for functions which it implements
11056 to always fail with ENOSYS. Some functions are actually named
11057 something starting with __ and the normal name is an alias. */
11058#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11059choke me
11060#else
11061$ac_func();
11062#endif
11063
11064; return 0; }
11065EOF
11066if { (eval echo configure:11067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11067 rm -rf conftest*
11068 eval "ac_cv_func_$ac_func=yes"
11069else
11070 echo "configure: failed program was:" >&5
11071 cat conftest.$ac_ext >&5
11072 rm -rf conftest*
11073 eval "ac_cv_func_$ac_func=no"
11074fi
11075rm -f conftest*
11076fi
11077
11078if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11079 echo "$ac_t""yes" 1>&6
11080 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11081 cat >> confdefs.h <<EOF
11082#define $ac_tr_func 1
11083EOF
11084
11085else
11086 echo "$ac_t""no" 1>&6
11087fi
11088done
11089
11090else
11091 echo "$ac_t""no" 1>&6
11092fi
11093
11094
11095 if test "x$ac_cv_func_regcomp" != "xyes"; then
11096 if test "$wxUSE_REGEX" = "sys" ; then
11097 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11098 else
11099 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11100 wxUSE_REGEX=builtin
11101 fi
11102 else
11103 wxUSE_REGEX=sys
11104 fi
11105 fi
11106
11107 if test "$wxUSE_REGEX" = "builtin" ; then
11108 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11109 fi
11110fi
11111
11112
11113ZLIB_INCLUDE=
11114ZLIB_LINK=
11115if test "$wxUSE_ZLIB" != "no" ; then
11116 cat >> confdefs.h <<\EOF
11117#define wxUSE_ZLIB 1
11118EOF
11119
11120
11121 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11122 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11123echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11124echo "configure:11125: checking for zlib.h" >&5
11125if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11126 echo $ac_n "(cached) $ac_c" 1>&6
11127else
11128 cat > conftest.$ac_ext <<EOF
11129#line 11130 "configure"
11130#include "confdefs.h"
11131#include <zlib.h>
11132EOF
11133ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11134{ (eval echo configure:11135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11135ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11136if test -z "$ac_err"; then
11137 rm -rf conftest*
11138 eval "ac_cv_header_$ac_safe=yes"
11139else
11140 echo "$ac_err" >&5
11141 echo "configure: failed program was:" >&5
11142 cat conftest.$ac_ext >&5
11143 rm -rf conftest*
11144 eval "ac_cv_header_$ac_safe=no"
11145fi
11146rm -f conftest*
11147fi
11148if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11149 echo "$ac_t""yes" 1>&6
11150 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11151echo "configure:11152: checking for deflate in -lz" >&5
11152ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11153if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11154 echo $ac_n "(cached) $ac_c" 1>&6
11155else
11156 ac_save_LIBS="$LIBS"
11157LIBS="-lz $LIBS"
11158cat > conftest.$ac_ext <<EOF
11159#line 11160 "configure"
11160#include "confdefs.h"
11161/* Override any gcc2 internal prototype to avoid an error. */
11162/* We use char because int might match the return type of a gcc2
11163 builtin and then its argument prototype would still apply. */
11164char deflate();
11165
11166int main() {
11167deflate()
11168; return 0; }
11169EOF
11170if { (eval echo configure:11171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11171 rm -rf conftest*
11172 eval "ac_cv_lib_$ac_lib_var=yes"
11173else
11174 echo "configure: failed program was:" >&5
11175 cat conftest.$ac_ext >&5
11176 rm -rf conftest*
11177 eval "ac_cv_lib_$ac_lib_var=no"
11178fi
11179rm -f conftest*
11180LIBS="$ac_save_LIBS"
11181
11182fi
11183if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11184 echo "$ac_t""yes" 1>&6
11185 ZLIB_LINK=" -lz"
11186else
11187 echo "$ac_t""no" 1>&6
11188fi
11189
11190else
11191 echo "$ac_t""no" 1>&6
11192fi
11193
11194
11195 if test "x$ZLIB_LINK" = "x" ; then
11196 if test "$wxUSE_ZLIB" = "sys" ; then
11197 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11198 else
11199 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
11200 wxUSE_ZLIB=builtin
11201 fi
11202 else
11203 wxUSE_ZLIB=sys
11204 fi
11205 fi
11206
11207 if test "$wxUSE_ZLIB" = "builtin" ; then
11208 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11209 fi
11210fi
11211
11212
11213PNG_INCLUDE=
11214PNG_LINK=
11215if test "$wxUSE_LIBPNG" != "no" ; then
11216 cat >> confdefs.h <<\EOF
11217#define wxUSE_LIBPNG 1
11218EOF
11219
11220
11221 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11222 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11223 wxUSE_LIBPNG=sys
11224 fi
11225
11226 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11227 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11228 wxUSE_LIBPNG=builtin
11229 fi
11230
11231 if test "$wxUSE_MGL" != 1 ; then
11232 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11233 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11234echo $ac_n "checking for png.h""... $ac_c" 1>&6
11235echo "configure:11236: checking for png.h" >&5
11236if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11237 echo $ac_n "(cached) $ac_c" 1>&6
11238else
11239 cat > conftest.$ac_ext <<EOF
11240#line 11241 "configure"
11241#include "confdefs.h"
11242#include <png.h>
11243EOF
11244ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11245{ (eval echo configure:11246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11246ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11247if test -z "$ac_err"; then
11248 rm -rf conftest*
11249 eval "ac_cv_header_$ac_safe=yes"
11250else
11251 echo "$ac_err" >&5
11252 echo "configure: failed program was:" >&5
11253 cat conftest.$ac_ext >&5
11254 rm -rf conftest*
11255 eval "ac_cv_header_$ac_safe=no"
11256fi
11257rm -f conftest*
11258fi
11259if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11260 echo "$ac_t""yes" 1>&6
11261 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11262echo "configure:11263: checking for png_check_sig in -lpng" >&5
11263ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11264if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11265 echo $ac_n "(cached) $ac_c" 1>&6
11266else
11267 ac_save_LIBS="$LIBS"
11268LIBS="-lpng -lz -lm $LIBS"
11269cat > conftest.$ac_ext <<EOF
11270#line 11271 "configure"
11271#include "confdefs.h"
11272/* Override any gcc2 internal prototype to avoid an error. */
11273/* We use char because int might match the return type of a gcc2
11274 builtin and then its argument prototype would still apply. */
11275char png_check_sig();
11276
11277int main() {
11278png_check_sig()
11279; return 0; }
11280EOF
11281if { (eval echo configure:11282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11282 rm -rf conftest*
11283 eval "ac_cv_lib_$ac_lib_var=yes"
11284else
11285 echo "configure: failed program was:" >&5
11286 cat conftest.$ac_ext >&5
11287 rm -rf conftest*
11288 eval "ac_cv_lib_$ac_lib_var=no"
11289fi
11290rm -f conftest*
11291LIBS="$ac_save_LIBS"
11292
11293fi
11294if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11295 echo "$ac_t""yes" 1>&6
11296 PNG_LINK=" -lpng"
11297else
11298 echo "$ac_t""no" 1>&6
11299fi
11300
11301
11302else
11303 echo "$ac_t""no" 1>&6
11304fi
11305
11306
11307 if test "x$PNG_LINK" = "x" ; then
11308 if test "$wxUSE_LIBPNG" = "sys" ; then
11309 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11310 else
11311 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
11312 wxUSE_LIBPNG=builtin
11313 fi
11314 else
11315 wxUSE_LIBPNG=yes
11316 fi
11317 fi
11318 fi
11319
11320 if test "$wxUSE_LIBPNG" = "builtin" ; then
11321 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11322 fi
11323
11324 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11325fi
11326
11327
11328JPEG_INCLUDE=
11329JPEG_LINK=
11330if test "$wxUSE_LIBJPEG" != "no" ; then
11331 cat >> confdefs.h <<\EOF
11332#define wxUSE_LIBJPEG 1
11333EOF
11334
11335
11336 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11337 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11338 wxUSE_LIBJPEG=sys
11339 fi
11340
11341 if test "$wxUSE_MGL" != 1 ; then
11342 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11343 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11344echo "configure:11345: checking for jpeglib.h" >&5
11345 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11346 echo $ac_n "(cached) $ac_c" 1>&6
11347else
11348 cat > conftest.$ac_ext <<EOF
11349#line 11350 "configure"
11350#include "confdefs.h"
11351
11352 #undef HAVE_STDLIB_H
11353 #include <stdio.h>
11354 #include <jpeglib.h>
11355
11356int main() {
11357
11358
11359; return 0; }
11360EOF
11361if { (eval echo configure:11362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11362 rm -rf conftest*
11363 ac_cv_header_jpeglib_h=yes
11364else
11365 echo "configure: failed program was:" >&5
11366 cat conftest.$ac_ext >&5
11367 rm -rf conftest*
11368 ac_cv_header_jpeglib_h=no
11369
11370fi
11371rm -f conftest*
11372
11373fi
11374
11375 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
11376
11377 if test "$ac_cv_header_jpeglib_h" = "yes"; then
11378 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11379echo "configure:11380: checking for jpeg_read_header in -ljpeg" >&5
11380ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11381if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11382 echo $ac_n "(cached) $ac_c" 1>&6
11383else
11384 ac_save_LIBS="$LIBS"
11385LIBS="-ljpeg $LIBS"
11386cat > conftest.$ac_ext <<EOF
11387#line 11388 "configure"
11388#include "confdefs.h"
11389/* Override any gcc2 internal prototype to avoid an error. */
11390/* We use char because int might match the return type of a gcc2
11391 builtin and then its argument prototype would still apply. */
11392char jpeg_read_header();
11393
11394int main() {
11395jpeg_read_header()
11396; return 0; }
11397EOF
11398if { (eval echo configure:11399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11399 rm -rf conftest*
11400 eval "ac_cv_lib_$ac_lib_var=yes"
11401else
11402 echo "configure: failed program was:" >&5
11403 cat conftest.$ac_ext >&5
11404 rm -rf conftest*
11405 eval "ac_cv_lib_$ac_lib_var=no"
11406fi
11407rm -f conftest*
11408LIBS="$ac_save_LIBS"
11409
11410fi
11411if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11412 echo "$ac_t""yes" 1>&6
11413 JPEG_LINK=" -ljpeg"
11414else
11415 echo "$ac_t""no" 1>&6
11416fi
11417
11418 fi
11419
11420 if test "x$JPEG_LINK" = "x" ; then
11421 if test "$wxUSE_LIBJPEG" = "sys" ; then
11422 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
11423 else
11424 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
11425 wxUSE_LIBJPEG=builtin
11426 fi
11427 else
11428 wxUSE_LIBJPEG=sys
11429 fi
11430 fi
11431 fi
11432
11433 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11434 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11435 fi
11436fi
11437
11438
11439TIFF_INCLUDE=
11440TIFF_LINK=
11441if test "$wxUSE_LIBTIFF" != "no" ; then
11442 cat >> confdefs.h <<\EOF
11443#define wxUSE_LIBTIFF 1
11444EOF
11445
11446
11447 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
11448 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
11449echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
11450echo "configure:11451: checking for tiffio.h" >&5
11451if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11452 echo $ac_n "(cached) $ac_c" 1>&6
11453else
11454 cat > conftest.$ac_ext <<EOF
11455#line 11456 "configure"
11456#include "confdefs.h"
11457#include <tiffio.h>
11458EOF
11459ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11460{ (eval echo configure:11461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11461ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11462if test -z "$ac_err"; then
11463 rm -rf conftest*
11464 eval "ac_cv_header_$ac_safe=yes"
11465else
11466 echo "$ac_err" >&5
11467 echo "configure: failed program was:" >&5
11468 cat conftest.$ac_ext >&5
11469 rm -rf conftest*
11470 eval "ac_cv_header_$ac_safe=no"
11471fi
11472rm -f conftest*
11473fi
11474if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11475 echo "$ac_t""yes" 1>&6
11476 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
11477echo "configure:11478: checking for TIFFError in -ltiff" >&5
11478ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
11479if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11480 echo $ac_n "(cached) $ac_c" 1>&6
11481else
11482 ac_save_LIBS="$LIBS"
11483LIBS="-ltiff -lm $LIBS"
11484cat > conftest.$ac_ext <<EOF
11485#line 11486 "configure"
11486#include "confdefs.h"
11487/* Override any gcc2 internal prototype to avoid an error. */
11488/* We use char because int might match the return type of a gcc2
11489 builtin and then its argument prototype would still apply. */
11490char TIFFError();
11491
11492int main() {
11493TIFFError()
11494; return 0; }
11495EOF
11496if { (eval echo configure:11497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11497 rm -rf conftest*
11498 eval "ac_cv_lib_$ac_lib_var=yes"
11499else
11500 echo "configure: failed program was:" >&5
11501 cat conftest.$ac_ext >&5
11502 rm -rf conftest*
11503 eval "ac_cv_lib_$ac_lib_var=no"
11504fi
11505rm -f conftest*
11506LIBS="$ac_save_LIBS"
11507
11508fi
11509if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11510 echo "$ac_t""yes" 1>&6
11511 TIFF_LINK=" -ltiff"
11512else
11513 echo "$ac_t""no" 1>&6
11514fi
11515
11516
11517else
11518 echo "$ac_t""no" 1>&6
11519fi
11520
11521
11522 if test "x$TIFF_LINK" = "x" ; then
11523 if test "$wxUSE_LIBTIFF" = "sys" ; then
11524 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
11525 else
11526 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
11527 wxUSE_LIBTIFF=builtin
11528 fi
11529 else
11530 wxUSE_LIBTIFF=sys
11531 fi
11532 fi
11533
11534 if test "$wxUSE_LIBTIFF" = "builtin" ; then
11535 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11536 fi
11537fi
11538
11539
11540AFMINSTALL=
11541
11542TOOLKIT=
11543TOOLKIT_INCLUDE=
11544WIDGET_SET=
11545
11546if test "$USE_WIN32" = 1 ; then
11547 for ac_hdr in w32api.h
11548do
11549ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11550echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11551echo "configure:11552: checking for $ac_hdr" >&5
11552if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11553 echo $ac_n "(cached) $ac_c" 1>&6
11554else
11555 cat > conftest.$ac_ext <<EOF
11556#line 11557 "configure"
11557#include "confdefs.h"
11558#include <$ac_hdr>
11559EOF
11560ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11561{ (eval echo configure:11562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11562ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11563if test -z "$ac_err"; then
11564 rm -rf conftest*
11565 eval "ac_cv_header_$ac_safe=yes"
11566else
11567 echo "$ac_err" >&5
11568 echo "configure: failed program was:" >&5
11569 cat conftest.$ac_ext >&5
11570 rm -rf conftest*
11571 eval "ac_cv_header_$ac_safe=no"
11572fi
11573rm -f conftest*
11574fi
11575if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11576 echo "$ac_t""yes" 1>&6
11577 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11578 cat >> confdefs.h <<EOF
11579#define $ac_tr_hdr 1
11580EOF
11581
11582else
11583 echo "$ac_t""no" 1>&6
11584fi
11585done
11586
11587 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11588echo $ac_n "checking for windows.h""... $ac_c" 1>&6
11589echo "configure:11590: checking for windows.h" >&5
11590if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11591 echo $ac_n "(cached) $ac_c" 1>&6
11592else
11593 cat > conftest.$ac_ext <<EOF
11594#line 11595 "configure"
11595#include "confdefs.h"
11596#include <windows.h>
11597EOF
11598ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11599{ (eval echo configure:11600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11600ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11601if test -z "$ac_err"; then
11602 rm -rf conftest*
11603 eval "ac_cv_header_$ac_safe=yes"
11604else
11605 echo "$ac_err" >&5
11606 echo "configure: failed program was:" >&5
11607 cat conftest.$ac_ext >&5
11608 rm -rf conftest*
11609 eval "ac_cv_header_$ac_safe=no"
11610fi
11611rm -f conftest*
11612fi
11613if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11614 echo "$ac_t""yes" 1>&6
11615 :
11616else
11617 echo "$ac_t""no" 1>&6
11618
11619 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
11620
11621fi
11622
11623
11624 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
11625echo "configure:11626: checking if w32api has good enough MSIE support" >&5
11626if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
11627 echo $ac_n "(cached) $ac_c" 1>&6
11628else
11629
11630 cat > conftest.$ac_ext <<EOF
11631#line 11632 "configure"
11632#include "confdefs.h"
11633#include <w32api.h>
11634int main() {
11635
11636 #define wxCHECK_W32API_VERSION( major, minor ) \
11637 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
11638 && ( ( __W32API_MAJOR_VERSION > (major) ) \
11639 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
11640
11641 #if !wxCHECK_W32API_VERSION(1,1)
11642 #error You need w32api 1.1 or newer
11643 #endif
11644
11645; return 0; }
11646EOF
11647if { (eval echo configure:11648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11648 rm -rf conftest*
11649
11650 wx_cv_w32api_win32_ie=yes
11651
11652else
11653 echo "configure: failed program was:" >&5
11654 cat conftest.$ac_ext >&5
11655 rm -rf conftest*
11656
11657 wx_cv_w32api_win32_ie=no
11658
11659fi
11660rm -f conftest*
11661
11662fi
11663
11664echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
11665 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
11666 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
11667 fi
11668
11669 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
11670
11671 case "${host}" in
11672 *-*-cygwin* )
11673 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
11674 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
11675 esac
11676
11677 if test "$wxUSE_ODBC" = "yes" ; then
11678 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
11679 fi
11680
11681 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
11682 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
11683fi
11684
11685if test "$wxUSE_GUI" = "yes"; then
11686 USE_GUI=1
11687
11688 GUI_TK_LIBRARY=
11689
11690 WXGTK12=
11691 WXGTK127=
11692 WXGTK20=
11693
11694 if test "$wxUSE_MSW" = 1 ; then
11695 TOOLKIT=MSW
11696 GUIDIST=MSW_DIST
11697
11698 case "${host}" in
11699 *-*-mingw32* )
11700 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
11701 esac
11702 fi
11703
11704 if test "$wxUSE_GTK" = 1; then
11705 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
11706echo "configure:11707: checking for GTK+ version" >&5
11707
11708 gtk_version_cached=1
11709 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
11710 echo $ac_n "(cached) $ac_c" 1>&6
11711else
11712
11713 gtk_version_cached=0
11714 echo "$ac_t""" 1>&6
11715
11716 GTK_MODULES=
11717 if test "$wxUSE_THREADS" = "yes"; then
11718 GTK_MODULES=gthread
11719 fi
11720
11721 wx_cv_lib_gtk=
11722 if test "x$wxUSE_GTK2" = "xyes"; then
11723 # Check whether --enable-gtktest or --disable-gtktest was given.
11724if test "${enable_gtktest+set}" = set; then
11725 enableval="$enable_gtktest"
11726 :
11727else
11728 enable_gtktest=yes
11729fi
11730
11731
11732 pkg_config_args=gtk+-2.0
11733 for module in . $GTK_MODULES
11734 do
11735 case "$module" in
11736 gthread)
11737 pkg_config_args="$pkg_config_args gthread-2.0"
11738 ;;
11739 esac
11740 done
11741
11742 no_gtk=""
11743
11744 # Extract the first word of "pkg-config", so it can be a program name with args.
11745set dummy pkg-config; ac_word=$2
11746echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11747echo "configure:11748: checking for $ac_word" >&5
11748if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
11749 echo $ac_n "(cached) $ac_c" 1>&6
11750else
11751 case "$PKG_CONFIG" in
11752 /*)
11753 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11754 ;;
11755 ?:/*)
11756 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
11757 ;;
11758 *)
11759 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11760 ac_dummy="$PATH"
11761 for ac_dir in $ac_dummy; do
11762 test -z "$ac_dir" && ac_dir=.
11763 if test -f $ac_dir/$ac_word; then
11764 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
11765 break
11766 fi
11767 done
11768 IFS="$ac_save_ifs"
11769 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11770 ;;
11771esac
11772fi
11773PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11774if test -n "$PKG_CONFIG"; then
11775 echo "$ac_t""$PKG_CONFIG" 1>&6
11776else
11777 echo "$ac_t""no" 1>&6
11778fi
11779
11780
11781 if test x$PKG_CONFIG != xno ; then
11782 if pkg-config --atleast-pkgconfig-version 0.7 ; then
11783 :
11784 else
11785 echo *** pkg-config too old; version 0.7 or better required.
11786 no_gtk=yes
11787 PKG_CONFIG=no
11788 fi
11789 else
11790 no_gtk=yes
11791 fi
11792
11793 min_gtk_version=2.0.0
11794 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
11795echo "configure:11796: checking for GTK+ - version >= $min_gtk_version" >&5
11796
11797 if test x$PKG_CONFIG != xno ; then
11798 ## don't try to run the test against uninstalled libtool libs
11799 if $PKG_CONFIG --uninstalled $pkg_config_args; then
11800 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
11801 enable_gtktest=no
11802 fi
11803
11804 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
11805 :
11806 else
11807 no_gtk=yes
11808 fi
11809 fi
11810
11811 if test x"$no_gtk" = x ; then
11812 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
11813 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
11814 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11815 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11816 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11817 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11818 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11819 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11820 if test "x$enable_gtktest" = "xyes" ; then
11821 ac_save_CFLAGS="$CFLAGS"
11822 ac_save_LIBS="$LIBS"
11823 CFLAGS="$CFLAGS $GTK_CFLAGS"
11824 LIBS="$GTK_LIBS $LIBS"
11825 rm -f conf.gtktest
11826 if test "$cross_compiling" = yes; then
11827 echo $ac_n "cross compiling; assumed OK... $ac_c"
11828else
11829 cat > conftest.$ac_ext <<EOF
11830#line 11831 "configure"
11831#include "confdefs.h"
11832
11833#include <gtk/gtk.h>
11834#include <stdio.h>
11835#include <stdlib.h>
11836
11837int
11838main ()
11839{
11840 int major, minor, micro;
11841 char *tmp_version;
11842
11843 system ("touch conf.gtktest");
11844
11845 /* HP/UX 9 (%@#!) writes to sscanf strings */
11846 tmp_version = g_strdup("$min_gtk_version");
11847 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11848 printf("%s, bad version string\n", "$min_gtk_version");
11849 exit(1);
11850 }
11851
11852 if ((gtk_major_version != $gtk_config_major_version) ||
11853 (gtk_minor_version != $gtk_config_minor_version) ||
11854 (gtk_micro_version != $gtk_config_micro_version))
11855 {
11856 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
11857 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11858 gtk_major_version, gtk_minor_version, gtk_micro_version);
11859 printf ("*** was found! If pkg-config was correct, then it is best\n");
11860 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11861 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11862 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11863 printf("*** required on your system.\n");
11864 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
11865 printf("*** to point to the correct configuration files\n");
11866 }
11867 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11868 (gtk_minor_version != GTK_MINOR_VERSION) ||
11869 (gtk_micro_version != GTK_MICRO_VERSION))
11870 {
11871 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11872 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11873 printf("*** library (version %d.%d.%d)\n",
11874 gtk_major_version, gtk_minor_version, gtk_micro_version);
11875 }
11876 else
11877 {
11878 if ((gtk_major_version > major) ||
11879 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11880 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11881 {
11882 return 0;
11883 }
11884 else
11885 {
11886 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11887 gtk_major_version, gtk_minor_version, gtk_micro_version);
11888 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11889 major, minor, micro);
11890 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11891 printf("***\n");
11892 printf("*** If you have already installed a sufficiently new version, this error\n");
11893 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
11894 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11895 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
11896 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
11897 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11898 printf("*** so that the correct libraries are found at run-time))\n");
11899 }
11900 }
11901 return 1;
11902}
11903
11904EOF
11905if { (eval echo configure:11906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11906then
11907 :
11908else
11909 echo "configure: failed program was:" >&5
11910 cat conftest.$ac_ext >&5
11911 rm -fr conftest*
11912 no_gtk=yes
11913fi
11914rm -fr conftest*
11915fi
11916
11917 CFLAGS="$ac_save_CFLAGS"
11918 LIBS="$ac_save_LIBS"
11919 fi
11920 fi
11921 if test "x$no_gtk" = x ; then
11922 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
11923 wx_cv_lib_gtk=2.0
11924 else
11925 echo "$ac_t""no" 1>&6
11926 if test "$PKG_CONFIG" = "no" ; then
11927 echo "*** A new enough version of pkg-config was not found."
11928 echo "*** See http://pkgconfig.sourceforge.net"
11929 else
11930 if test -f conf.gtktest ; then
11931 :
11932 else
11933 echo "*** Could not run GTK+ test program, checking why..."
11934 CFLAGS="$CFLAGS $GTK_CFLAGS"
11935 LIBS="$LIBS $GTK_LIBS"
11936 cat > conftest.$ac_ext <<EOF
11937#line 11938 "configure"
11938#include "confdefs.h"
11939
11940#include <gtk/gtk.h>
11941#include <stdio.h>
11942
11943int main() {
11944 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
11945; return 0; }
11946EOF
11947if { (eval echo configure:11948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11948 rm -rf conftest*
11949 echo "*** The test program compiled, but did not run. This usually means"
11950 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
11951 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
11952 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11953 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11954 echo "*** is required on your system"
11955 echo "***"
11956 echo "*** If you have an old version installed, it is best to remove it, although"
11957 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11958else
11959 echo "configure: failed program was:" >&5
11960 cat conftest.$ac_ext >&5
11961 rm -rf conftest*
11962 echo "*** The test program failed to compile or link. See the file config.log for the"
11963 echo "*** exact error that occured. This usually means GTK+ was incorrectly installed"
11964 echo "*** or that you have moved GTK+ since it was installed. In the latter case, you"
11965 echo "*** may want to edit the pkg-config script: $PKG_CONFIG"
11966fi
11967rm -f conftest*
11968 CFLAGS="$ac_save_CFLAGS"
11969 LIBS="$ac_save_LIBS"
11970 fi
11971 fi
11972 GTK_CFLAGS=""
11973 GTK_LIBS=""
11974 :
11975 fi
11976
11977
11978 rm -f conf.gtktest
11979
11980 fi
11981
11982 if test -z "$wx_cv_lib_gtk"; then
11983 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
11984if test "${with_gtk_prefix+set}" = set; then
11985 withval="$with_gtk_prefix"
11986 gtk_config_prefix="$withval"
11987else
11988 gtk_config_prefix=""
11989fi
11990
11991# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
11992if test "${with_gtk_exec_prefix+set}" = set; then
11993 withval="$with_gtk_exec_prefix"
11994 gtk_config_exec_prefix="$withval"
11995else
11996 gtk_config_exec_prefix=""
11997fi
11998
11999# Check whether --enable-gtktest or --disable-gtktest was given.
12000if test "${enable_gtktest+set}" = set; then
12001 enableval="$enable_gtktest"
12002 :
12003else
12004 enable_gtktest=yes
12005fi
12006
12007
12008 for module in . $GTK_MODULES
12009 do
12010 case "$module" in
12011 gthread)
12012 gtk_config_args="$gtk_config_args gthread"
12013 ;;
12014 esac
12015 done
12016
12017 if test x$gtk_config_exec_prefix != x ; then
12018 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12019 if test x${GTK_CONFIG+set} != xset ; then
12020 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12021 fi
12022 fi
12023 if test x$gtk_config_prefix != x ; then
12024 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12025 if test x${GTK_CONFIG+set} != xset ; then
12026 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12027 fi
12028 fi
12029
12030 # Extract the first word of "gtk-config", so it can be a program name with args.
12031set dummy gtk-config; ac_word=$2
12032echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12033echo "configure:12034: checking for $ac_word" >&5
12034if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12035 echo $ac_n "(cached) $ac_c" 1>&6
12036else
12037 case "$GTK_CONFIG" in
12038 /*)
12039 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12040 ;;
12041 ?:/*)
12042 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12043 ;;
12044 *)
12045 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12046 ac_dummy="$PATH"
12047 for ac_dir in $ac_dummy; do
12048 test -z "$ac_dir" && ac_dir=.
12049 if test -f $ac_dir/$ac_word; then
12050 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12051 break
12052 fi
12053 done
12054 IFS="$ac_save_ifs"
12055 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12056 ;;
12057esac
12058fi
12059GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12060if test -n "$GTK_CONFIG"; then
12061 echo "$ac_t""$GTK_CONFIG" 1>&6
12062else
12063 echo "$ac_t""no" 1>&6
12064fi
12065
12066 min_gtk_version=1.2.7
12067 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12068echo "configure:12069: checking for GTK - version >= $min_gtk_version" >&5
12069 no_gtk=""
12070 if test "$GTK_CONFIG" = "no" ; then
12071 no_gtk=yes
12072 else
12073 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12074 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12075 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12076 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12077 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12078 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12079 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12080 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12081 if test "x$enable_gtktest" = "xyes" ; then
12082 ac_save_CFLAGS="$CFLAGS"
12083 ac_save_LIBS="$LIBS"
12084 CFLAGS="$CFLAGS $GTK_CFLAGS"
12085 LIBS="$GTK_LIBS $LIBS"
12086 rm -f conf.gtktest
12087 if test "$cross_compiling" = yes; then
12088 echo $ac_n "cross compiling; assumed OK... $ac_c"
12089else
12090 cat > conftest.$ac_ext <<EOF
12091#line 12092 "configure"
12092#include "confdefs.h"
12093
12094#include <gtk/gtk.h>
12095#include <stdio.h>
12096#include <stdlib.h>
12097
12098int
12099main ()
12100{
12101 int major, minor, micro;
12102 char *tmp_version;
12103
12104 system ("touch conf.gtktest");
12105
12106 /* HP/UX 9 (%@#!) writes to sscanf strings */
12107 tmp_version = g_strdup("$min_gtk_version");
12108 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12109 printf("%s, bad version string\n", "$min_gtk_version");
12110 exit(1);
12111 }
12112
12113 if ((gtk_major_version != $gtk_config_major_version) ||
12114 (gtk_minor_version != $gtk_config_minor_version) ||
12115 (gtk_micro_version != $gtk_config_micro_version))
12116 {
12117 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12118 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12119 gtk_major_version, gtk_minor_version, gtk_micro_version);
12120 printf ("*** was found! If gtk-config was correct, then it is best\n");
12121 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12122 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12123 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12124 printf("*** required on your system.\n");
12125 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12126 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12127 printf("*** before re-running configure\n");
12128 }
12129#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12130 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12131 (gtk_minor_version != GTK_MINOR_VERSION) ||
12132 (gtk_micro_version != GTK_MICRO_VERSION))
12133 {
12134 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12135 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12136 printf("*** library (version %d.%d.%d)\n",
12137 gtk_major_version, gtk_minor_version, gtk_micro_version);
12138 }
12139#endif /* defined (GTK_MAJOR_VERSION) ... */
12140 else
12141 {
12142 if ((gtk_major_version > major) ||
12143 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12144 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12145 {
12146 return 0;
12147 }
12148 else
12149 {
12150 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12151 gtk_major_version, gtk_minor_version, gtk_micro_version);
12152 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12153 major, minor, micro);
12154 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12155 printf("***\n");
12156 printf("*** If you have already installed a sufficiently new version, this error\n");
12157 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12158 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12159 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12160 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12161 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12162 printf("*** so that the correct libraries are found at run-time))\n");
12163 }
12164 }
12165 return 1;
12166}
12167
12168EOF
12169if { (eval echo configure:12170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12170then
12171 :
12172else
12173 echo "configure: failed program was:" >&5
12174 cat conftest.$ac_ext >&5
12175 rm -fr conftest*
12176 no_gtk=yes
12177fi
12178rm -fr conftest*
12179fi
12180
12181 CFLAGS="$ac_save_CFLAGS"
12182 LIBS="$ac_save_LIBS"
12183 fi
12184 fi
12185 if test "x$no_gtk" = x ; then
12186 echo "$ac_t""yes" 1>&6
12187 wx_cv_lib_gtk=1.2.7
12188 else
12189 echo "$ac_t""no" 1>&6
12190 if test "$GTK_CONFIG" = "no" ; then
12191 echo "*** The gtk-config script installed by GTK could not be found"
12192 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12193 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12194 echo "*** full path to gtk-config."
12195 else
12196 if test -f conf.gtktest ; then
12197 :
12198 else
12199 echo "*** Could not run GTK test program, checking why..."
12200 CFLAGS="$CFLAGS $GTK_CFLAGS"
12201 LIBS="$LIBS $GTK_LIBS"
12202 cat > conftest.$ac_ext <<EOF
12203#line 12204 "configure"
12204#include "confdefs.h"
12205
12206#include <gtk/gtk.h>
12207#include <stdio.h>
12208
12209int main() {
12210 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12211; return 0; }
12212EOF
12213if { (eval echo configure:12214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12214 rm -rf conftest*
12215 echo "*** The test program compiled, but did not run. This usually means"
12216 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12217 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12218 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12219 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12220 echo "*** is required on your system"
12221 echo "***"
12222 echo "*** If you have an old version installed, it is best to remove it, although"
12223 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12224 echo "***"
12225 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12226 echo "*** came with the system with the command"
12227 echo "***"
12228 echo "*** rpm --erase --nodeps gtk gtk-devel"
12229else
12230 echo "configure: failed program was:" >&5
12231 cat conftest.$ac_ext >&5
12232 rm -rf conftest*
12233 echo "*** The test program failed to compile or link. See the file config.log for the"
12234 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12235 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12236 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12237fi
12238rm -f conftest*
12239 CFLAGS="$ac_save_CFLAGS"
12240 LIBS="$ac_save_LIBS"
12241 fi
12242 fi
12243 GTK_CFLAGS=""
12244 GTK_LIBS=""
12245 :
12246 fi
12247
12248
12249 rm -f conf.gtktest
12250
12251 fi
12252
12253 if test -z "$wx_cv_lib_gtk"; then
12254 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12255if test "${with_gtk_prefix+set}" = set; then
12256 withval="$with_gtk_prefix"
12257 gtk_config_prefix="$withval"
12258else
12259 gtk_config_prefix=""
12260fi
12261
12262# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12263if test "${with_gtk_exec_prefix+set}" = set; then
12264 withval="$with_gtk_exec_prefix"
12265 gtk_config_exec_prefix="$withval"
12266else
12267 gtk_config_exec_prefix=""
12268fi
12269
12270# Check whether --enable-gtktest or --disable-gtktest was given.
12271if test "${enable_gtktest+set}" = set; then
12272 enableval="$enable_gtktest"
12273 :
12274else
12275 enable_gtktest=yes
12276fi
12277
12278
12279 for module in . $GTK_MODULES
12280 do
12281 case "$module" in
12282 gthread)
12283 gtk_config_args="$gtk_config_args gthread"
12284 ;;
12285 esac
12286 done
12287
12288 if test x$gtk_config_exec_prefix != x ; then
12289 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12290 if test x${GTK_CONFIG+set} != xset ; then
12291 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12292 fi
12293 fi
12294 if test x$gtk_config_prefix != x ; then
12295 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12296 if test x${GTK_CONFIG+set} != xset ; then
12297 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12298 fi
12299 fi
12300
12301 # Extract the first word of "gtk-config", so it can be a program name with args.
12302set dummy gtk-config; ac_word=$2
12303echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12304echo "configure:12305: checking for $ac_word" >&5
12305if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12306 echo $ac_n "(cached) $ac_c" 1>&6
12307else
12308 case "$GTK_CONFIG" in
12309 /*)
12310 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12311 ;;
12312 ?:/*)
12313 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12314 ;;
12315 *)
12316 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12317 ac_dummy="$PATH"
12318 for ac_dir in $ac_dummy; do
12319 test -z "$ac_dir" && ac_dir=.
12320 if test -f $ac_dir/$ac_word; then
12321 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12322 break
12323 fi
12324 done
12325 IFS="$ac_save_ifs"
12326 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12327 ;;
12328esac
12329fi
12330GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12331if test -n "$GTK_CONFIG"; then
12332 echo "$ac_t""$GTK_CONFIG" 1>&6
12333else
12334 echo "$ac_t""no" 1>&6
12335fi
12336
12337 min_gtk_version=1.2.3
12338 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12339echo "configure:12340: checking for GTK - version >= $min_gtk_version" >&5
12340 no_gtk=""
12341 if test "$GTK_CONFIG" = "no" ; then
12342 no_gtk=yes
12343 else
12344 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12345 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12346 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12347 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12348 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12349 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12350 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12351 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12352 if test "x$enable_gtktest" = "xyes" ; then
12353 ac_save_CFLAGS="$CFLAGS"
12354 ac_save_LIBS="$LIBS"
12355 CFLAGS="$CFLAGS $GTK_CFLAGS"
12356 LIBS="$GTK_LIBS $LIBS"
12357 rm -f conf.gtktest
12358 if test "$cross_compiling" = yes; then
12359 echo $ac_n "cross compiling; assumed OK... $ac_c"
12360else
12361 cat > conftest.$ac_ext <<EOF
12362#line 12363 "configure"
12363#include "confdefs.h"
12364
12365#include <gtk/gtk.h>
12366#include <stdio.h>
12367#include <stdlib.h>
12368
12369int
12370main ()
12371{
12372 int major, minor, micro;
12373 char *tmp_version;
12374
12375 system ("touch conf.gtktest");
12376
12377 /* HP/UX 9 (%@#!) writes to sscanf strings */
12378 tmp_version = g_strdup("$min_gtk_version");
12379 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12380 printf("%s, bad version string\n", "$min_gtk_version");
12381 exit(1);
12382 }
12383
12384 if ((gtk_major_version != $gtk_config_major_version) ||
12385 (gtk_minor_version != $gtk_config_minor_version) ||
12386 (gtk_micro_version != $gtk_config_micro_version))
12387 {
12388 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12389 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12390 gtk_major_version, gtk_minor_version, gtk_micro_version);
12391 printf ("*** was found! If gtk-config was correct, then it is best\n");
12392 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12393 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12394 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12395 printf("*** required on your system.\n");
12396 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12397 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12398 printf("*** before re-running configure\n");
12399 }
12400#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12401 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12402 (gtk_minor_version != GTK_MINOR_VERSION) ||
12403 (gtk_micro_version != GTK_MICRO_VERSION))
12404 {
12405 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12406 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12407 printf("*** library (version %d.%d.%d)\n",
12408 gtk_major_version, gtk_minor_version, gtk_micro_version);
12409 }
12410#endif /* defined (GTK_MAJOR_VERSION) ... */
12411 else
12412 {
12413 if ((gtk_major_version > major) ||
12414 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12415 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12416 {
12417 return 0;
12418 }
12419 else
12420 {
12421 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12422 gtk_major_version, gtk_minor_version, gtk_micro_version);
12423 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12424 major, minor, micro);
12425 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12426 printf("***\n");
12427 printf("*** If you have already installed a sufficiently new version, this error\n");
12428 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12429 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12430 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12431 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12432 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12433 printf("*** so that the correct libraries are found at run-time))\n");
12434 }
12435 }
12436 return 1;
12437}
12438
12439EOF
12440if { (eval echo configure:12441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12441then
12442 :
12443else
12444 echo "configure: failed program was:" >&5
12445 cat conftest.$ac_ext >&5
12446 rm -fr conftest*
12447 no_gtk=yes
12448fi
12449rm -fr conftest*
12450fi
12451
12452 CFLAGS="$ac_save_CFLAGS"
12453 LIBS="$ac_save_LIBS"
12454 fi
12455 fi
12456 if test "x$no_gtk" = x ; then
12457 echo "$ac_t""yes" 1>&6
12458 wx_cv_lib_gtk=1.2.3
12459 else
12460 echo "$ac_t""no" 1>&6
12461 if test "$GTK_CONFIG" = "no" ; then
12462 echo "*** The gtk-config script installed by GTK could not be found"
12463 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12464 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12465 echo "*** full path to gtk-config."
12466 else
12467 if test -f conf.gtktest ; then
12468 :
12469 else
12470 echo "*** Could not run GTK test program, checking why..."
12471 CFLAGS="$CFLAGS $GTK_CFLAGS"
12472 LIBS="$LIBS $GTK_LIBS"
12473 cat > conftest.$ac_ext <<EOF
12474#line 12475 "configure"
12475#include "confdefs.h"
12476
12477#include <gtk/gtk.h>
12478#include <stdio.h>
12479
12480int main() {
12481 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12482; return 0; }
12483EOF
12484if { (eval echo configure:12485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12485 rm -rf conftest*
12486 echo "*** The test program compiled, but did not run. This usually means"
12487 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12488 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12489 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12490 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12491 echo "*** is required on your system"
12492 echo "***"
12493 echo "*** If you have an old version installed, it is best to remove it, although"
12494 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12495 echo "***"
12496 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12497 echo "*** came with the system with the command"
12498 echo "***"
12499 echo "*** rpm --erase --nodeps gtk gtk-devel"
12500else
12501 echo "configure: failed program was:" >&5
12502 cat conftest.$ac_ext >&5
12503 rm -rf conftest*
12504 echo "*** The test program failed to compile or link. See the file config.log for the"
12505 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12506 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12507 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12508fi
12509rm -f conftest*
12510 CFLAGS="$ac_save_CFLAGS"
12511 LIBS="$ac_save_LIBS"
12512 fi
12513 fi
12514 GTK_CFLAGS=""
12515 GTK_LIBS=""
12516 :
12517 fi
12518
12519
12520 rm -f conf.gtktest
12521
12522 fi
12523
12524 if test -z "$wx_cv_lib_gtk"; then
12525 wx_cv_lib_gtk=none
12526 else
12527 wx_cv_cflags_gtk=$GTK_CFLAGS
12528 wx_cv_libs_gtk=$GTK_LIBS
12529 fi
12530
12531
12532fi
12533
12534
12535 if test "$gtk_version_cached" = 1; then
12536 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
12537 fi
12538
12539 case "$wx_cv_lib_gtk" in
12540 2.0) WXGTK20=1
12541 ;;
12542 1.2.7) WXGTK127=1
12543 WXGTK12=1
12544 ;;
12545 1.2.3) WXGTK12=1
12546 ;;
12547 *) { echo "configure: error:
12548Please check that gtk-config is in path, the directory
12549where GTK+ libraries are installed (returned by
12550'gtk-config --libs' command) is in LD_LIBRARY_PATH or
12551equivalent variable and GTK+ is version 1.2.3 or above.
12552 " 1>&2; exit 1; }
12553 ;;
12554 esac
12555
12556 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
12557 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
12558
12559 AFMINSTALL=afminstall
12560 TOOLKIT=GTK
12561 GUIDIST=GTK_DIST
12562
12563 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
12564echo "configure:12565: checking for gdk_im_open in -lgdk" >&5
12565ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
12566if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12567 echo $ac_n "(cached) $ac_c" 1>&6
12568else
12569 ac_save_LIBS="$LIBS"
12570LIBS="-lgdk $LIBS"
12571cat > conftest.$ac_ext <<EOF
12572#line 12573 "configure"
12573#include "confdefs.h"
12574/* Override any gcc2 internal prototype to avoid an error. */
12575/* We use char because int might match the return type of a gcc2
12576 builtin and then its argument prototype would still apply. */
12577char gdk_im_open();
12578
12579int main() {
12580gdk_im_open()
12581; return 0; }
12582EOF
12583if { (eval echo configure:12584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12584 rm -rf conftest*
12585 eval "ac_cv_lib_$ac_lib_var=yes"
12586else
12587 echo "configure: failed program was:" >&5
12588 cat conftest.$ac_ext >&5
12589 rm -rf conftest*
12590 eval "ac_cv_lib_$ac_lib_var=no"
12591fi
12592rm -f conftest*
12593LIBS="$ac_save_LIBS"
12594
12595fi
12596if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12597 echo "$ac_t""yes" 1>&6
12598 cat >> confdefs.h <<\EOF
12599#define HAVE_XIM 1
12600EOF
12601
12602else
12603 echo "$ac_t""no" 1>&6
12604fi
12605
12606 fi
12607
12608 if test "$wxUSE_MGL" = 1; then
12609 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
12610echo "configure:12611: checking for SciTech MGL library" >&5
12611 if test "x$MGL_ROOT" = x ; then
12612 echo "$ac_t""not found" 1>&6
12613 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
12614 else
12615 echo "$ac_t""$MGL_ROOT" 1>&6
12616 fi
12617
12618 case "${host}" in
12619 *-*-linux* )
12620 mgl_os=linux/gcc/glibc
12621 ;;
12622 *-pc-msdosdjgpp )
12623 mgl_os=dos32/dj2
12624 ;;
12625 *)
12626 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
12627 esac
12628
12629 mgl_lib_type=""
12630
12631 if test "$wxUSE_DEBUG_FLAG" = yes ; then
12632 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
12633 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
12634 mgl_lib_type=debug
12635 fi
12636 fi
12637 if test "x$mgl_lib_type" = x ; then
12638 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
12639 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
12640 mgl_lib_type=release
12641 else
12642 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
12643 fi
12644 fi
12645
12646 wxUSE_UNIVERSAL="yes"
12647
12648 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
12649 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
12650
12651 AFMINSTALL=afminstall
12652 TOOLKIT=MGL
12653 GUIDIST=MGL_DIST
12654 fi
12655
12656 if test "$wxUSE_MICROWIN" = 1; then
12657 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
12658echo "configure:12659: checking for MicroWindows" >&5
12659 if test "x$MICROWINDOWS" = x ; then
12660 echo "$ac_t""not found" 1>&6
12661 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
12662 else
12663 echo "$ac_t""$MICROWINDOWS" 1>&6
12664 fi
12665
12666 if test -f $MICROWINDOWS/lib/libmwin.a; then
12667 echo "$ac_t""MicroWindows' libraries found." 1>&6
12668 else
12669 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
12670 fi
12671
12672 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
12673 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
12674
12675 wxUSE_UNIVERSAL="yes"
12676
12677 AFMINSTALL=afminstall
12678 TOOLKIT=MICROWIN
12679 GUIDIST=MICROWIN_DIST
12680
12681 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
12682 fi
12683
12684 if test "$wxUSE_X11" = 1; then
12685 # If we find X, set shell vars x_includes and x_libraries to the
12686# paths, otherwise set no_x=yes.
12687# Uses ac_ vars as temps to allow command line to override cache and checks.
12688# --without-x overrides everything else, but does not touch the cache.
12689echo $ac_n "checking for X""... $ac_c" 1>&6
12690echo "configure:12691: checking for X" >&5
12691
12692# Check whether --with-x or --without-x was given.
12693if test "${with_x+set}" = set; then
12694 withval="$with_x"
12695 :
12696fi
12697
12698# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12699if test "x$with_x" = xno; then
12700 # The user explicitly disabled X.
12701 have_x=disabled
12702else
12703 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
12704 # Both variables are already set.
12705 have_x=yes
12706 else
12707if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
12708 echo $ac_n "(cached) $ac_c" 1>&6
12709else
12710 # One or both of the vars are not set, and there is no cached value.
12711ac_x_includes=NO ac_x_libraries=NO
12712rm -fr conftestdir
12713if mkdir conftestdir; then
12714 cd conftestdir
12715 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
12716 cat > Imakefile <<'EOF'
12717acfindx:
12718 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
12719EOF
12720 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
12721 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12722 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
12723 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12724 for ac_extension in a so sl; do
12725 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
12726 test -f $ac_im_libdir/libX11.$ac_extension; then
12727 ac_im_usrlibdir=$ac_im_libdir; break
12728 fi
12729 done
12730 # Screen out bogus values from the imake configuration. They are
12731 # bogus both because they are the default anyway, and because
12732 # using them would break gcc on systems where it needs fixed includes.
12733 case "$ac_im_incroot" in
12734 /usr/include) ;;
12735 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
12736 esac
12737 case "$ac_im_usrlibdir" in
12738 /usr/lib | /lib) ;;
12739 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
12740 esac
12741 fi
12742 cd ..
12743 rm -fr conftestdir
12744fi
12745
12746if test "$ac_x_includes" = NO; then
12747 # Guess where to find include files, by looking for this one X11 .h file.
12748 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
12749
12750 # First, try using that file with no special directory specified.
12751cat > conftest.$ac_ext <<EOF
12752#line 12753 "configure"
12753#include "confdefs.h"
12754#include <$x_direct_test_include>
12755EOF
12756ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12757{ (eval echo configure:12758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12758ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12759if test -z "$ac_err"; then
12760 rm -rf conftest*
12761 # We can compile using X headers with no special include directory.
12762ac_x_includes=
12763else
12764 echo "$ac_err" >&5
12765 echo "configure: failed program was:" >&5
12766 cat conftest.$ac_ext >&5
12767 rm -rf conftest*
12768 # Look for the header file in a standard set of common directories.
12769# Check X11 before X11Rn because it is often a symlink to the current release.
12770 for ac_dir in \
12771 /usr/X11/include \
12772 /usr/X11R6/include \
12773 /usr/X11R5/include \
12774 /usr/X11R4/include \
12775 \
12776 /usr/include/X11 \
12777 /usr/include/X11R6 \
12778 /usr/include/X11R5 \
12779 /usr/include/X11R4 \
12780 \
12781 /usr/local/X11/include \
12782 /usr/local/X11R6/include \
12783 /usr/local/X11R5/include \
12784 /usr/local/X11R4/include \
12785 \
12786 /usr/local/include/X11 \
12787 /usr/local/include/X11R6 \
12788 /usr/local/include/X11R5 \
12789 /usr/local/include/X11R4 \
12790 \
12791 /usr/X386/include \
12792 /usr/x386/include \
12793 /usr/XFree86/include/X11 \
12794 \
12795 /usr/include \
12796 /usr/local/include \
12797 /usr/unsupported/include \
12798 /usr/athena/include \
12799 /usr/local/x11r5/include \
12800 /usr/lpp/Xamples/include \
12801 \
12802 /usr/openwin/include \
12803 /usr/openwin/share/include \
12804 ; \
12805 do
12806 if test -r "$ac_dir/$x_direct_test_include"; then
12807 ac_x_includes=$ac_dir
12808 break
12809 fi
12810 done
12811fi
12812rm -f conftest*
12813fi # $ac_x_includes = NO
12814
12815if test "$ac_x_libraries" = NO; then
12816 # Check for the libraries.
12817
12818 test -z "$x_direct_test_library" && x_direct_test_library=Xt
12819 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
12820
12821 # See if we find them without any special options.
12822 # Don't add to $LIBS permanently.
12823 ac_save_LIBS="$LIBS"
12824 LIBS="-l$x_direct_test_library $LIBS"
12825cat > conftest.$ac_ext <<EOF
12826#line 12827 "configure"
12827#include "confdefs.h"
12828
12829int main() {
12830${x_direct_test_function}()
12831; return 0; }
12832EOF
12833if { (eval echo configure:12834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12834 rm -rf conftest*
12835 LIBS="$ac_save_LIBS"
12836# We can link X programs with no special library path.
12837ac_x_libraries=
12838else
12839 echo "configure: failed program was:" >&5
12840 cat conftest.$ac_ext >&5
12841 rm -rf conftest*
12842 LIBS="$ac_save_LIBS"
12843# First see if replacing the include by lib works.
12844# Check X11 before X11Rn because it is often a symlink to the current release.
12845for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
12846 /usr/X11/lib \
12847 /usr/X11R6/lib \
12848 /usr/X11R5/lib \
12849 /usr/X11R4/lib \
12850 \
12851 /usr/lib/X11 \
12852 /usr/lib/X11R6 \
12853 /usr/lib/X11R5 \
12854 /usr/lib/X11R4 \
12855 \
12856 /usr/local/X11/lib \
12857 /usr/local/X11R6/lib \
12858 /usr/local/X11R5/lib \
12859 /usr/local/X11R4/lib \
12860 \
12861 /usr/local/lib/X11 \
12862 /usr/local/lib/X11R6 \
12863 /usr/local/lib/X11R5 \
12864 /usr/local/lib/X11R4 \
12865 \
12866 /usr/X386/lib \
12867 /usr/x386/lib \
12868 /usr/XFree86/lib/X11 \
12869 \
12870 /usr/lib \
12871 /usr/local/lib \
12872 /usr/unsupported/lib \
12873 /usr/athena/lib \
12874 /usr/local/x11r5/lib \
12875 /usr/lpp/Xamples/lib \
12876 /lib/usr/lib/X11 \
12877 \
12878 /usr/openwin/lib \
12879 /usr/openwin/share/lib \
12880 ; \
12881do
12882 for ac_extension in a so sl; do
12883 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
12884 ac_x_libraries=$ac_dir
12885 break 2
12886 fi
12887 done
12888done
12889fi
12890rm -f conftest*
12891fi # $ac_x_libraries = NO
12892
12893if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
12894 # Didn't find X anywhere. Cache the known absence of X.
12895 ac_cv_have_x="have_x=no"
12896else
12897 # Record where we found X for the cache.
12898 ac_cv_have_x="have_x=yes \
12899 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
12900fi
12901fi
12902 fi
12903 eval "$ac_cv_have_x"
12904fi # $with_x != no
12905
12906if test "$have_x" != yes; then
12907 echo "$ac_t""$have_x" 1>&6
12908 no_x=yes
12909else
12910 # If each of the values was on the command line, it overrides each guess.
12911 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12912 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12913 # Update the cache value to reflect the command line values.
12914 ac_cv_have_x="have_x=yes \
12915 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
12916 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
12917fi
12918
12919if test "$no_x" = yes; then
12920 # Not all programs may use this symbol, but it does not hurt to define it.
12921 cat >> confdefs.h <<\EOF
12922#define X_DISPLAY_MISSING 1
12923EOF
12924
12925 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12926else
12927 if test -n "$x_includes"; then
12928 X_CFLAGS="$X_CFLAGS -I$x_includes"
12929 fi
12930
12931 # It would also be nice to do this for all -L options, not just this one.
12932 if test -n "$x_libraries"; then
12933 X_LIBS="$X_LIBS -L$x_libraries"
12934 # For Solaris; some versions of Sun CC require a space after -R and
12935 # others require no space. Words are not sufficient . . . .
12936 case "`(uname -sr) 2>/dev/null`" in
12937 "SunOS 5"*)
12938 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
12939echo "configure:12940: checking whether -R must be followed by a space" >&5
12940 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
12941 cat > conftest.$ac_ext <<EOF
12942#line 12943 "configure"
12943#include "confdefs.h"
12944
12945int main() {
12946
12947; return 0; }
12948EOF
12949if { (eval echo configure:12950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12950 rm -rf conftest*
12951 ac_R_nospace=yes
12952else
12953 echo "configure: failed program was:" >&5
12954 cat conftest.$ac_ext >&5
12955 rm -rf conftest*
12956 ac_R_nospace=no
12957fi
12958rm -f conftest*
12959 if test $ac_R_nospace = yes; then
12960 echo "$ac_t""no" 1>&6
12961 X_LIBS="$X_LIBS -R$x_libraries"
12962 else
12963 LIBS="$ac_xsave_LIBS -R $x_libraries"
12964 cat > conftest.$ac_ext <<EOF
12965#line 12966 "configure"
12966#include "confdefs.h"
12967
12968int main() {
12969
12970; return 0; }
12971EOF
12972if { (eval echo configure:12973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12973 rm -rf conftest*
12974 ac_R_space=yes
12975else
12976 echo "configure: failed program was:" >&5
12977 cat conftest.$ac_ext >&5
12978 rm -rf conftest*
12979 ac_R_space=no
12980fi
12981rm -f conftest*
12982 if test $ac_R_space = yes; then
12983 echo "$ac_t""yes" 1>&6
12984 X_LIBS="$X_LIBS -R $x_libraries"
12985 else
12986 echo "$ac_t""neither works" 1>&6
12987 fi
12988 fi
12989 LIBS="$ac_xsave_LIBS"
12990 esac
12991 fi
12992
12993 # Check for system-dependent libraries X programs must link with.
12994 # Do this before checking for the system-independent R6 libraries
12995 # (-lICE), since we may need -lsocket or whatever for X linking.
12996
12997 if test "$ISC" = yes; then
12998 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12999 else
13000 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13001 # libraries were built with DECnet support. And karl@cs.umb.edu says
13002 # the Alpha needs dnet_stub (dnet does not exist).
13003 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13004echo "configure:13005: checking for dnet_ntoa in -ldnet" >&5
13005ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13006if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13007 echo $ac_n "(cached) $ac_c" 1>&6
13008else
13009 ac_save_LIBS="$LIBS"
13010LIBS="-ldnet $LIBS"
13011cat > conftest.$ac_ext <<EOF
13012#line 13013 "configure"
13013#include "confdefs.h"
13014/* Override any gcc2 internal prototype to avoid an error. */
13015/* We use char because int might match the return type of a gcc2
13016 builtin and then its argument prototype would still apply. */
13017char dnet_ntoa();
13018
13019int main() {
13020dnet_ntoa()
13021; return 0; }
13022EOF
13023if { (eval echo configure:13024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13024 rm -rf conftest*
13025 eval "ac_cv_lib_$ac_lib_var=yes"
13026else
13027 echo "configure: failed program was:" >&5
13028 cat conftest.$ac_ext >&5
13029 rm -rf conftest*
13030 eval "ac_cv_lib_$ac_lib_var=no"
13031fi
13032rm -f conftest*
13033LIBS="$ac_save_LIBS"
13034
13035fi
13036if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13037 echo "$ac_t""yes" 1>&6
13038 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13039else
13040 echo "$ac_t""no" 1>&6
13041fi
13042
13043 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13044 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13045echo "configure:13046: checking for dnet_ntoa in -ldnet_stub" >&5
13046ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13047if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13048 echo $ac_n "(cached) $ac_c" 1>&6
13049else
13050 ac_save_LIBS="$LIBS"
13051LIBS="-ldnet_stub $LIBS"
13052cat > conftest.$ac_ext <<EOF
13053#line 13054 "configure"
13054#include "confdefs.h"
13055/* Override any gcc2 internal prototype to avoid an error. */
13056/* We use char because int might match the return type of a gcc2
13057 builtin and then its argument prototype would still apply. */
13058char dnet_ntoa();
13059
13060int main() {
13061dnet_ntoa()
13062; return 0; }
13063EOF
13064if { (eval echo configure:13065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13065 rm -rf conftest*
13066 eval "ac_cv_lib_$ac_lib_var=yes"
13067else
13068 echo "configure: failed program was:" >&5
13069 cat conftest.$ac_ext >&5
13070 rm -rf conftest*
13071 eval "ac_cv_lib_$ac_lib_var=no"
13072fi
13073rm -f conftest*
13074LIBS="$ac_save_LIBS"
13075
13076fi
13077if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13078 echo "$ac_t""yes" 1>&6
13079 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13080else
13081 echo "$ac_t""no" 1>&6
13082fi
13083
13084 fi
13085
13086 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13087 # to get the SysV transport functions.
13088 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13089 # needs -lnsl.
13090 # The nsl library prevents programs from opening the X display
13091 # on Irix 5.2, according to dickey@clark.net.
13092 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13093echo "configure:13094: checking for gethostbyname" >&5
13094if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13095 echo $ac_n "(cached) $ac_c" 1>&6
13096else
13097 cat > conftest.$ac_ext <<EOF
13098#line 13099 "configure"
13099#include "confdefs.h"
13100/* System header to define __stub macros and hopefully few prototypes,
13101 which can conflict with char gethostbyname(); below. */
13102#include <assert.h>
13103/* Override any gcc2 internal prototype to avoid an error. */
13104/* We use char because int might match the return type of a gcc2
13105 builtin and then its argument prototype would still apply. */
13106char gethostbyname();
13107
13108int main() {
13109
13110/* The GNU C library defines this for functions which it implements
13111 to always fail with ENOSYS. Some functions are actually named
13112 something starting with __ and the normal name is an alias. */
13113#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13114choke me
13115#else
13116gethostbyname();
13117#endif
13118
13119; return 0; }
13120EOF
13121if { (eval echo configure:13122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13122 rm -rf conftest*
13123 eval "ac_cv_func_gethostbyname=yes"
13124else
13125 echo "configure: failed program was:" >&5
13126 cat conftest.$ac_ext >&5
13127 rm -rf conftest*
13128 eval "ac_cv_func_gethostbyname=no"
13129fi
13130rm -f conftest*
13131fi
13132
13133if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13134 echo "$ac_t""yes" 1>&6
13135 :
13136else
13137 echo "$ac_t""no" 1>&6
13138fi
13139
13140 if test $ac_cv_func_gethostbyname = no; then
13141 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13142echo "configure:13143: checking for gethostbyname in -lnsl" >&5
13143ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13144if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13145 echo $ac_n "(cached) $ac_c" 1>&6
13146else
13147 ac_save_LIBS="$LIBS"
13148LIBS="-lnsl $LIBS"
13149cat > conftest.$ac_ext <<EOF
13150#line 13151 "configure"
13151#include "confdefs.h"
13152/* Override any gcc2 internal prototype to avoid an error. */
13153/* We use char because int might match the return type of a gcc2
13154 builtin and then its argument prototype would still apply. */
13155char gethostbyname();
13156
13157int main() {
13158gethostbyname()
13159; return 0; }
13160EOF
13161if { (eval echo configure:13162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13162 rm -rf conftest*
13163 eval "ac_cv_lib_$ac_lib_var=yes"
13164else
13165 echo "configure: failed program was:" >&5
13166 cat conftest.$ac_ext >&5
13167 rm -rf conftest*
13168 eval "ac_cv_lib_$ac_lib_var=no"
13169fi
13170rm -f conftest*
13171LIBS="$ac_save_LIBS"
13172
13173fi
13174if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13175 echo "$ac_t""yes" 1>&6
13176 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13177else
13178 echo "$ac_t""no" 1>&6
13179fi
13180
13181 fi
13182
13183 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13184 # socket/setsockopt and other routines are undefined under SCO ODT
13185 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13186 # on later versions), says simon@lia.di.epfl.ch: it contains
13187 # gethostby* variants that don't use the nameserver (or something).
13188 # -lsocket must be given before -lnsl if both are needed.
13189 # We assume that if connect needs -lnsl, so does gethostbyname.
13190 echo $ac_n "checking for connect""... $ac_c" 1>&6
13191echo "configure:13192: checking for connect" >&5
13192if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13193 echo $ac_n "(cached) $ac_c" 1>&6
13194else
13195 cat > conftest.$ac_ext <<EOF
13196#line 13197 "configure"
13197#include "confdefs.h"
13198/* System header to define __stub macros and hopefully few prototypes,
13199 which can conflict with char connect(); below. */
13200#include <assert.h>
13201/* Override any gcc2 internal prototype to avoid an error. */
13202/* We use char because int might match the return type of a gcc2
13203 builtin and then its argument prototype would still apply. */
13204char connect();
13205
13206int main() {
13207
13208/* The GNU C library defines this for functions which it implements
13209 to always fail with ENOSYS. Some functions are actually named
13210 something starting with __ and the normal name is an alias. */
13211#if defined (__stub_connect) || defined (__stub___connect)
13212choke me
13213#else
13214connect();
13215#endif
13216
13217; return 0; }
13218EOF
13219if { (eval echo configure:13220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13220 rm -rf conftest*
13221 eval "ac_cv_func_connect=yes"
13222else
13223 echo "configure: failed program was:" >&5
13224 cat conftest.$ac_ext >&5
13225 rm -rf conftest*
13226 eval "ac_cv_func_connect=no"
13227fi
13228rm -f conftest*
13229fi
13230
13231if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13232 echo "$ac_t""yes" 1>&6
13233 :
13234else
13235 echo "$ac_t""no" 1>&6
13236fi
13237
13238 if test $ac_cv_func_connect = no; then
13239 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
13240echo "configure:13241: checking for connect in -lsocket" >&5
13241ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13242if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13243 echo $ac_n "(cached) $ac_c" 1>&6
13244else
13245 ac_save_LIBS="$LIBS"
13246LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13247cat > conftest.$ac_ext <<EOF
13248#line 13249 "configure"
13249#include "confdefs.h"
13250/* Override any gcc2 internal prototype to avoid an error. */
13251/* We use char because int might match the return type of a gcc2
13252 builtin and then its argument prototype would still apply. */
13253char connect();
13254
13255int main() {
13256connect()
13257; return 0; }
13258EOF
13259if { (eval echo configure:13260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13260 rm -rf conftest*
13261 eval "ac_cv_lib_$ac_lib_var=yes"
13262else
13263 echo "configure: failed program was:" >&5
13264 cat conftest.$ac_ext >&5
13265 rm -rf conftest*
13266 eval "ac_cv_lib_$ac_lib_var=no"
13267fi
13268rm -f conftest*
13269LIBS="$ac_save_LIBS"
13270
13271fi
13272if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13273 echo "$ac_t""yes" 1>&6
13274 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13275else
13276 echo "$ac_t""no" 1>&6
13277fi
13278
13279 fi
13280
13281 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
13282 echo $ac_n "checking for remove""... $ac_c" 1>&6
13283echo "configure:13284: checking for remove" >&5
13284if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
13285 echo $ac_n "(cached) $ac_c" 1>&6
13286else
13287 cat > conftest.$ac_ext <<EOF
13288#line 13289 "configure"
13289#include "confdefs.h"
13290/* System header to define __stub macros and hopefully few prototypes,
13291 which can conflict with char remove(); below. */
13292#include <assert.h>
13293/* Override any gcc2 internal prototype to avoid an error. */
13294/* We use char because int might match the return type of a gcc2
13295 builtin and then its argument prototype would still apply. */
13296char remove();
13297
13298int main() {
13299
13300/* The GNU C library defines this for functions which it implements
13301 to always fail with ENOSYS. Some functions are actually named
13302 something starting with __ and the normal name is an alias. */
13303#if defined (__stub_remove) || defined (__stub___remove)
13304choke me
13305#else
13306remove();
13307#endif
13308
13309; return 0; }
13310EOF
13311if { (eval echo configure:13312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13312 rm -rf conftest*
13313 eval "ac_cv_func_remove=yes"
13314else
13315 echo "configure: failed program was:" >&5
13316 cat conftest.$ac_ext >&5
13317 rm -rf conftest*
13318 eval "ac_cv_func_remove=no"
13319fi
13320rm -f conftest*
13321fi
13322
13323if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
13324 echo "$ac_t""yes" 1>&6
13325 :
13326else
13327 echo "$ac_t""no" 1>&6
13328fi
13329
13330 if test $ac_cv_func_remove = no; then
13331 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
13332echo "configure:13333: checking for remove in -lposix" >&5
13333ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
13334if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13335 echo $ac_n "(cached) $ac_c" 1>&6
13336else
13337 ac_save_LIBS="$LIBS"
13338LIBS="-lposix $LIBS"
13339cat > conftest.$ac_ext <<EOF
13340#line 13341 "configure"
13341#include "confdefs.h"
13342/* Override any gcc2 internal prototype to avoid an error. */
13343/* We use char because int might match the return type of a gcc2
13344 builtin and then its argument prototype would still apply. */
13345char remove();
13346
13347int main() {
13348remove()
13349; return 0; }
13350EOF
13351if { (eval echo configure:13352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13352 rm -rf conftest*
13353 eval "ac_cv_lib_$ac_lib_var=yes"
13354else
13355 echo "configure: failed program was:" >&5
13356 cat conftest.$ac_ext >&5
13357 rm -rf conftest*
13358 eval "ac_cv_lib_$ac_lib_var=no"
13359fi
13360rm -f conftest*
13361LIBS="$ac_save_LIBS"
13362
13363fi
13364if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13365 echo "$ac_t""yes" 1>&6
13366 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13367else
13368 echo "$ac_t""no" 1>&6
13369fi
13370
13371 fi
13372
13373 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13374 echo $ac_n "checking for shmat""... $ac_c" 1>&6
13375echo "configure:13376: checking for shmat" >&5
13376if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
13377 echo $ac_n "(cached) $ac_c" 1>&6
13378else
13379 cat > conftest.$ac_ext <<EOF
13380#line 13381 "configure"
13381#include "confdefs.h"
13382/* System header to define __stub macros and hopefully few prototypes,
13383 which can conflict with char shmat(); below. */
13384#include <assert.h>
13385/* Override any gcc2 internal prototype to avoid an error. */
13386/* We use char because int might match the return type of a gcc2
13387 builtin and then its argument prototype would still apply. */
13388char shmat();
13389
13390int main() {
13391
13392/* The GNU C library defines this for functions which it implements
13393 to always fail with ENOSYS. Some functions are actually named
13394 something starting with __ and the normal name is an alias. */
13395#if defined (__stub_shmat) || defined (__stub___shmat)
13396choke me
13397#else
13398shmat();
13399#endif
13400
13401; return 0; }
13402EOF
13403if { (eval echo configure:13404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13404 rm -rf conftest*
13405 eval "ac_cv_func_shmat=yes"
13406else
13407 echo "configure: failed program was:" >&5
13408 cat conftest.$ac_ext >&5
13409 rm -rf conftest*
13410 eval "ac_cv_func_shmat=no"
13411fi
13412rm -f conftest*
13413fi
13414
13415if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
13416 echo "$ac_t""yes" 1>&6
13417 :
13418else
13419 echo "$ac_t""no" 1>&6
13420fi
13421
13422 if test $ac_cv_func_shmat = no; then
13423 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
13424echo "configure:13425: checking for shmat in -lipc" >&5
13425ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
13426if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13427 echo $ac_n "(cached) $ac_c" 1>&6
13428else
13429 ac_save_LIBS="$LIBS"
13430LIBS="-lipc $LIBS"
13431cat > conftest.$ac_ext <<EOF
13432#line 13433 "configure"
13433#include "confdefs.h"
13434/* Override any gcc2 internal prototype to avoid an error. */
13435/* We use char because int might match the return type of a gcc2
13436 builtin and then its argument prototype would still apply. */
13437char shmat();
13438
13439int main() {
13440shmat()
13441; return 0; }
13442EOF
13443if { (eval echo configure:13444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13444 rm -rf conftest*
13445 eval "ac_cv_lib_$ac_lib_var=yes"
13446else
13447 echo "configure: failed program was:" >&5
13448 cat conftest.$ac_ext >&5
13449 rm -rf conftest*
13450 eval "ac_cv_lib_$ac_lib_var=no"
13451fi
13452rm -f conftest*
13453LIBS="$ac_save_LIBS"
13454
13455fi
13456if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13457 echo "$ac_t""yes" 1>&6
13458 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
13459else
13460 echo "$ac_t""no" 1>&6
13461fi
13462
13463 fi
13464 fi
13465
13466 # Check for libraries that X11R6 Xt/Xaw programs need.
13467 ac_save_LDFLAGS="$LDFLAGS"
13468 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13469 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13470 # check for ICE first), but we must link in the order -lSM -lICE or
13471 # we get undefined symbols. So assume we have SM if we have ICE.
13472 # These have to be linked with before -lX11, unlike the other
13473 # libraries we check for below, so use a different variable.
13474 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
13475 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
13476echo "configure:13477: checking for IceConnectionNumber in -lICE" >&5
13477ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
13478if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13479 echo $ac_n "(cached) $ac_c" 1>&6
13480else
13481 ac_save_LIBS="$LIBS"
13482LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13483cat > conftest.$ac_ext <<EOF
13484#line 13485 "configure"
13485#include "confdefs.h"
13486/* Override any gcc2 internal prototype to avoid an error. */
13487/* We use char because int might match the return type of a gcc2
13488 builtin and then its argument prototype would still apply. */
13489char IceConnectionNumber();
13490
13491int main() {
13492IceConnectionNumber()
13493; return 0; }
13494EOF
13495if { (eval echo configure:13496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13496 rm -rf conftest*
13497 eval "ac_cv_lib_$ac_lib_var=yes"
13498else
13499 echo "configure: failed program was:" >&5
13500 cat conftest.$ac_ext >&5
13501 rm -rf conftest*
13502 eval "ac_cv_lib_$ac_lib_var=no"
13503fi
13504rm -f conftest*
13505LIBS="$ac_save_LIBS"
13506
13507fi
13508if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13509 echo "$ac_t""yes" 1>&6
13510 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
13511else
13512 echo "$ac_t""no" 1>&6
13513fi
13514
13515 LDFLAGS="$ac_save_LDFLAGS"
13516
13517fi
13518
13519
13520 if test "$no_x" = "yes"; then
13521 { echo "configure: error: X11 not found" 1>&2; exit 1; }
13522 fi
13523
13524 GUI_TK_LIBRARY="$X_LIBS"
13525 TOOLKIT_INCLUDE="$X_CFLAGS"
13526 AFMINSTALL=afminstall
13527 COMPILED_X_PROGRAM=0
13528
13529 if test "$wxUSE_NANOX" = "yes"; then
13530 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
13531echo "configure:13532: checking for MicroWindows/NanoX distribution" >&5
13532 if test "x$MICROWIN" = x ; then
13533 echo "$ac_t""not found" 1>&6
13534 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
13535 else
13536 echo "$ac_t""$MICROWIN" 1>&6
13537 cat >> confdefs.h <<\EOF
13538#define wxUSE_NANOX 1
13539EOF
13540
13541 fi
13542 fi
13543
13544 xpm_link=
13545 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13546echo "configure:13547: checking for Xpm library" >&5
13547
13548ac_find_libraries=
13549for ac_dir in $SEARCH_LIB;
13550 do
13551 for ac_extension in a so sl dylib; do
13552 if test -f "$ac_dir/libXpm.$ac_extension"; then
13553 ac_find_libraries=$ac_dir
13554 break 2
13555 fi
13556 done
13557 done
13558
13559 if test "$ac_find_libraries" != "" ; then
13560
13561 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13562 result=$?
13563 if test $result = 0; then
13564 ac_path_to_link=""
13565 else
13566 ac_path_to_link=" -L$ac_find_libraries"
13567 fi
13568
13569 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13570 xpm_link=" -lXpm"
13571 cat >> confdefs.h <<\EOF
13572#define wxHAVE_LIB_XPM 1
13573EOF
13574
13575 echo "$ac_t""found at $ac_find_libraries" 1>&6
13576 else
13577 cat > conftest.$ac_ext <<EOF
13578#line 13579 "configure"
13579#include "confdefs.h"
13580
13581 #include <X11/xpm.h>
13582
13583int main() {
13584
13585 int version;
13586 version = XpmLibraryVersion();
13587
13588; return 0; }
13589EOF
13590if { (eval echo configure:13591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13591 rm -rf conftest*
13592
13593 xpm_link=" -lXpm"
13594 cat >> confdefs.h <<\EOF
13595#define wxHAVE_LIB_XPM 1
13596EOF
13597
13598 echo "$ac_t""found in default search path" 1>&6
13599 COMPILED_X_PROGRAM=0
13600
13601else
13602 echo "configure: failed program was:" >&5
13603 cat conftest.$ac_ext >&5
13604 rm -rf conftest*
13605
13606 echo "$ac_t""no" 1>&6
13607 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13608
13609
13610fi
13611rm -f conftest*
13612 fi
13613
13614 wxUSE_UNIVERSAL="yes"
13615
13616 if test "$wxUSE_NANOX" = "yes"; then
13617 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
13618 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1"
13619 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
13620 else
13621 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
13622 fi
13623
13624 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
13625 TOOLKIT=X11
13626 GUIDIST=X11_DIST
13627 fi
13628
13629 if test "$wxUSE_WINE" = 1; then
13630 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
13631echo $ac_n "checking for windows.h""... $ac_c" 1>&6
13632echo "configure:13633: checking for windows.h" >&5
13633if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13634 echo $ac_n "(cached) $ac_c" 1>&6
13635else
13636 cat > conftest.$ac_ext <<EOF
13637#line 13638 "configure"
13638#include "confdefs.h"
13639#include <windows.h>
13640EOF
13641ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13642{ (eval echo configure:13643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13643ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13644if test -z "$ac_err"; then
13645 rm -rf conftest*
13646 eval "ac_cv_header_$ac_safe=yes"
13647else
13648 echo "$ac_err" >&5
13649 echo "configure: failed program was:" >&5
13650 cat conftest.$ac_ext >&5
13651 rm -rf conftest*
13652 eval "ac_cv_header_$ac_safe=no"
13653fi
13654rm -f conftest*
13655fi
13656if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13657 echo "$ac_t""yes" 1>&6
13658 :
13659else
13660 echo "$ac_t""no" 1>&6
13661
13662 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
13663
13664fi
13665
13666
13667 xpm_link=
13668 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13669echo "configure:13670: checking for Xpm library" >&5
13670
13671ac_find_libraries=
13672for ac_dir in $SEARCH_LIB;
13673 do
13674 for ac_extension in a so sl dylib; do
13675 if test -f "$ac_dir/libXpm.$ac_extension"; then
13676 ac_find_libraries=$ac_dir
13677 break 2
13678 fi
13679 done
13680 done
13681
13682 if test "$ac_find_libraries" != "" ; then
13683 GUI_TK_LIBRARY="-L$ac_find_libraries"
13684 xpm_link=" -lXpm"
13685 cat >> confdefs.h <<\EOF
13686#define wxHAVE_LIB_XPM 1
13687EOF
13688
13689 echo "$ac_t""found at $ac_find_libraries" 1>&6
13690 else
13691 echo "$ac_t""no" 1>&6
13692 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13693 fi
13694
13695 mesa_link=
13696 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
13697echo "configure:13698: checking for Mesa library" >&5
13698
13699ac_find_libraries=
13700for ac_dir in $SEARCH_LIB;
13701 do
13702 for ac_extension in a so sl dylib; do
13703 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
13704 ac_find_libraries=$ac_dir
13705 break 2
13706 fi
13707 done
13708 done
13709
13710 if test "$ac_find_libraries" != "" ; then
13711 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
13712 mesa_link=" -lMesaGL"
13713 echo "$ac_t""found at $ac_find_libraries" 1>&6
13714 else
13715 { echo "configure: error: no" 1>&2; exit 1; }
13716 fi
13717
13718 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
13719 TOOLKIT=MSW
13720 GUIDIST=MSW_DIST
13721 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
13722 fi
13723
13724 if test "$wxUSE_MOTIF" = 1; then
13725 if test "$no_x" = yes; then
13726 # Not all programs may use this symbol, but it does not hurt to define it.
13727 cat >> confdefs.h <<\EOF
13728#define X_DISPLAY_MISSING 1
13729EOF
13730
13731 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13732else
13733 if test -n "$x_includes"; then
13734 X_CFLAGS="$X_CFLAGS -I$x_includes"
13735 fi
13736
13737 # It would also be nice to do this for all -L options, not just this one.
13738 if test -n "$x_libraries"; then
13739 X_LIBS="$X_LIBS -L$x_libraries"
13740 # For Solaris; some versions of Sun CC require a space after -R and
13741 # others require no space. Words are not sufficient . . . .
13742 case "`(uname -sr) 2>/dev/null`" in
13743 "SunOS 5"*)
13744 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13745echo "configure:13746: checking whether -R must be followed by a space" >&5
13746 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13747 cat > conftest.$ac_ext <<EOF
13748#line 13749 "configure"
13749#include "confdefs.h"
13750
13751int main() {
13752
13753; return 0; }
13754EOF
13755if { (eval echo configure:13756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13756 rm -rf conftest*
13757 ac_R_nospace=yes
13758else
13759 echo "configure: failed program was:" >&5
13760 cat conftest.$ac_ext >&5
13761 rm -rf conftest*
13762 ac_R_nospace=no
13763fi
13764rm -f conftest*
13765 if test $ac_R_nospace = yes; then
13766 echo "$ac_t""no" 1>&6
13767 X_LIBS="$X_LIBS -R$x_libraries"
13768 else
13769 LIBS="$ac_xsave_LIBS -R $x_libraries"
13770 cat > conftest.$ac_ext <<EOF
13771#line 13772 "configure"
13772#include "confdefs.h"
13773
13774int main() {
13775
13776; return 0; }
13777EOF
13778if { (eval echo configure:13779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13779 rm -rf conftest*
13780 ac_R_space=yes
13781else
13782 echo "configure: failed program was:" >&5
13783 cat conftest.$ac_ext >&5
13784 rm -rf conftest*
13785 ac_R_space=no
13786fi
13787rm -f conftest*
13788 if test $ac_R_space = yes; then
13789 echo "$ac_t""yes" 1>&6
13790 X_LIBS="$X_LIBS -R $x_libraries"
13791 else
13792 echo "$ac_t""neither works" 1>&6
13793 fi
13794 fi
13795 LIBS="$ac_xsave_LIBS"
13796 esac
13797 fi
13798
13799 # Check for system-dependent libraries X programs must link with.
13800 # Do this before checking for the system-independent R6 libraries
13801 # (-lICE), since we may need -lsocket or whatever for X linking.
13802
13803 if test "$ISC" = yes; then
13804 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13805 else
13806 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13807 # libraries were built with DECnet support. And karl@cs.umb.edu says
13808 # the Alpha needs dnet_stub (dnet does not exist).
13809 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13810echo "configure:13811: checking for dnet_ntoa in -ldnet" >&5
13811ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13812if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13813 echo $ac_n "(cached) $ac_c" 1>&6
13814else
13815 ac_save_LIBS="$LIBS"
13816LIBS="-ldnet $LIBS"
13817cat > conftest.$ac_ext <<EOF
13818#line 13819 "configure"
13819#include "confdefs.h"
13820/* Override any gcc2 internal prototype to avoid an error. */
13821/* We use char because int might match the return type of a gcc2
13822 builtin and then its argument prototype would still apply. */
13823char dnet_ntoa();
13824
13825int main() {
13826dnet_ntoa()
13827; return 0; }
13828EOF
13829if { (eval echo configure:13830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13830 rm -rf conftest*
13831 eval "ac_cv_lib_$ac_lib_var=yes"
13832else
13833 echo "configure: failed program was:" >&5
13834 cat conftest.$ac_ext >&5
13835 rm -rf conftest*
13836 eval "ac_cv_lib_$ac_lib_var=no"
13837fi
13838rm -f conftest*
13839LIBS="$ac_save_LIBS"
13840
13841fi
13842if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13843 echo "$ac_t""yes" 1>&6
13844 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13845else
13846 echo "$ac_t""no" 1>&6
13847fi
13848
13849 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13850 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13851echo "configure:13852: checking for dnet_ntoa in -ldnet_stub" >&5
13852ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13853if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13854 echo $ac_n "(cached) $ac_c" 1>&6
13855else
13856 ac_save_LIBS="$LIBS"
13857LIBS="-ldnet_stub $LIBS"
13858cat > conftest.$ac_ext <<EOF
13859#line 13860 "configure"
13860#include "confdefs.h"
13861/* Override any gcc2 internal prototype to avoid an error. */
13862/* We use char because int might match the return type of a gcc2
13863 builtin and then its argument prototype would still apply. */
13864char dnet_ntoa();
13865
13866int main() {
13867dnet_ntoa()
13868; return 0; }
13869EOF
13870if { (eval echo configure:13871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13871 rm -rf conftest*
13872 eval "ac_cv_lib_$ac_lib_var=yes"
13873else
13874 echo "configure: failed program was:" >&5
13875 cat conftest.$ac_ext >&5
13876 rm -rf conftest*
13877 eval "ac_cv_lib_$ac_lib_var=no"
13878fi
13879rm -f conftest*
13880LIBS="$ac_save_LIBS"
13881
13882fi
13883if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13884 echo "$ac_t""yes" 1>&6
13885 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13886else
13887 echo "$ac_t""no" 1>&6
13888fi
13889
13890 fi
13891
13892 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13893 # to get the SysV transport functions.
13894 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13895 # needs -lnsl.
13896 # The nsl library prevents programs from opening the X display
13897 # on Irix 5.2, according to dickey@clark.net.
13898 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13899echo "configure:13900: checking for gethostbyname" >&5
13900if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13901 echo $ac_n "(cached) $ac_c" 1>&6
13902else
13903 cat > conftest.$ac_ext <<EOF
13904#line 13905 "configure"
13905#include "confdefs.h"
13906/* System header to define __stub macros and hopefully few prototypes,
13907 which can conflict with char gethostbyname(); below. */
13908#include <assert.h>
13909/* Override any gcc2 internal prototype to avoid an error. */
13910/* We use char because int might match the return type of a gcc2
13911 builtin and then its argument prototype would still apply. */
13912char gethostbyname();
13913
13914int main() {
13915
13916/* The GNU C library defines this for functions which it implements
13917 to always fail with ENOSYS. Some functions are actually named
13918 something starting with __ and the normal name is an alias. */
13919#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13920choke me
13921#else
13922gethostbyname();
13923#endif
13924
13925; return 0; }
13926EOF
13927if { (eval echo configure:13928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13928 rm -rf conftest*
13929 eval "ac_cv_func_gethostbyname=yes"
13930else
13931 echo "configure: failed program was:" >&5
13932 cat conftest.$ac_ext >&5
13933 rm -rf conftest*
13934 eval "ac_cv_func_gethostbyname=no"
13935fi
13936rm -f conftest*
13937fi
13938
13939if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13940 echo "$ac_t""yes" 1>&6
13941 :
13942else
13943 echo "$ac_t""no" 1>&6
13944fi
13945
13946 if test $ac_cv_func_gethostbyname = no; then
13947 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13948echo "configure:13949: checking for gethostbyname in -lnsl" >&5
13949ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13950if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13951 echo $ac_n "(cached) $ac_c" 1>&6
13952else
13953 ac_save_LIBS="$LIBS"
13954LIBS="-lnsl $LIBS"
13955cat > conftest.$ac_ext <<EOF
13956#line 13957 "configure"
13957#include "confdefs.h"
13958/* Override any gcc2 internal prototype to avoid an error. */
13959/* We use char because int might match the return type of a gcc2
13960 builtin and then its argument prototype would still apply. */
13961char gethostbyname();
13962
13963int main() {
13964gethostbyname()
13965; return 0; }
13966EOF
13967if { (eval echo configure:13968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13968 rm -rf conftest*
13969 eval "ac_cv_lib_$ac_lib_var=yes"
13970else
13971 echo "configure: failed program was:" >&5
13972 cat conftest.$ac_ext >&5
13973 rm -rf conftest*
13974 eval "ac_cv_lib_$ac_lib_var=no"
13975fi
13976rm -f conftest*
13977LIBS="$ac_save_LIBS"
13978
13979fi
13980if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13981 echo "$ac_t""yes" 1>&6
13982 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13983else
13984 echo "$ac_t""no" 1>&6
13985fi
13986
13987 fi
13988
13989 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13990 # socket/setsockopt and other routines are undefined under SCO ODT
13991 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13992 # on later versions), says simon@lia.di.epfl.ch: it contains
13993 # gethostby* variants that don't use the nameserver (or something).
13994 # -lsocket must be given before -lnsl if both are needed.
13995 # We assume that if connect needs -lnsl, so does gethostbyname.
13996 echo $ac_n "checking for connect""... $ac_c" 1>&6
13997echo "configure:13998: checking for connect" >&5
13998if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13999 echo $ac_n "(cached) $ac_c" 1>&6
14000else
14001 cat > conftest.$ac_ext <<EOF
14002#line 14003 "configure"
14003#include "confdefs.h"
14004/* System header to define __stub macros and hopefully few prototypes,
14005 which can conflict with char connect(); below. */
14006#include <assert.h>
14007/* Override any gcc2 internal prototype to avoid an error. */
14008/* We use char because int might match the return type of a gcc2
14009 builtin and then its argument prototype would still apply. */
14010char connect();
14011
14012int main() {
14013
14014/* The GNU C library defines this for functions which it implements
14015 to always fail with ENOSYS. Some functions are actually named
14016 something starting with __ and the normal name is an alias. */
14017#if defined (__stub_connect) || defined (__stub___connect)
14018choke me
14019#else
14020connect();
14021#endif
14022
14023; return 0; }
14024EOF
14025if { (eval echo configure:14026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14026 rm -rf conftest*
14027 eval "ac_cv_func_connect=yes"
14028else
14029 echo "configure: failed program was:" >&5
14030 cat conftest.$ac_ext >&5
14031 rm -rf conftest*
14032 eval "ac_cv_func_connect=no"
14033fi
14034rm -f conftest*
14035fi
14036
14037if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14038 echo "$ac_t""yes" 1>&6
14039 :
14040else
14041 echo "$ac_t""no" 1>&6
14042fi
14043
14044 if test $ac_cv_func_connect = no; then
14045 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14046echo "configure:14047: checking for connect in -lsocket" >&5
14047ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14048if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14049 echo $ac_n "(cached) $ac_c" 1>&6
14050else
14051 ac_save_LIBS="$LIBS"
14052LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14053cat > conftest.$ac_ext <<EOF
14054#line 14055 "configure"
14055#include "confdefs.h"
14056/* Override any gcc2 internal prototype to avoid an error. */
14057/* We use char because int might match the return type of a gcc2
14058 builtin and then its argument prototype would still apply. */
14059char connect();
14060
14061int main() {
14062connect()
14063; return 0; }
14064EOF
14065if { (eval echo configure:14066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14066 rm -rf conftest*
14067 eval "ac_cv_lib_$ac_lib_var=yes"
14068else
14069 echo "configure: failed program was:" >&5
14070 cat conftest.$ac_ext >&5
14071 rm -rf conftest*
14072 eval "ac_cv_lib_$ac_lib_var=no"
14073fi
14074rm -f conftest*
14075LIBS="$ac_save_LIBS"
14076
14077fi
14078if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14079 echo "$ac_t""yes" 1>&6
14080 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14081else
14082 echo "$ac_t""no" 1>&6
14083fi
14084
14085 fi
14086
14087 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14088 echo $ac_n "checking for remove""... $ac_c" 1>&6
14089echo "configure:14090: checking for remove" >&5
14090if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14091 echo $ac_n "(cached) $ac_c" 1>&6
14092else
14093 cat > conftest.$ac_ext <<EOF
14094#line 14095 "configure"
14095#include "confdefs.h"
14096/* System header to define __stub macros and hopefully few prototypes,
14097 which can conflict with char remove(); below. */
14098#include <assert.h>
14099/* Override any gcc2 internal prototype to avoid an error. */
14100/* We use char because int might match the return type of a gcc2
14101 builtin and then its argument prototype would still apply. */
14102char remove();
14103
14104int main() {
14105
14106/* The GNU C library defines this for functions which it implements
14107 to always fail with ENOSYS. Some functions are actually named
14108 something starting with __ and the normal name is an alias. */
14109#if defined (__stub_remove) || defined (__stub___remove)
14110choke me
14111#else
14112remove();
14113#endif
14114
14115; return 0; }
14116EOF
14117if { (eval echo configure:14118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14118 rm -rf conftest*
14119 eval "ac_cv_func_remove=yes"
14120else
14121 echo "configure: failed program was:" >&5
14122 cat conftest.$ac_ext >&5
14123 rm -rf conftest*
14124 eval "ac_cv_func_remove=no"
14125fi
14126rm -f conftest*
14127fi
14128
14129if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14130 echo "$ac_t""yes" 1>&6
14131 :
14132else
14133 echo "$ac_t""no" 1>&6
14134fi
14135
14136 if test $ac_cv_func_remove = no; then
14137 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14138echo "configure:14139: checking for remove in -lposix" >&5
14139ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14140if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14141 echo $ac_n "(cached) $ac_c" 1>&6
14142else
14143 ac_save_LIBS="$LIBS"
14144LIBS="-lposix $LIBS"
14145cat > conftest.$ac_ext <<EOF
14146#line 14147 "configure"
14147#include "confdefs.h"
14148/* Override any gcc2 internal prototype to avoid an error. */
14149/* We use char because int might match the return type of a gcc2
14150 builtin and then its argument prototype would still apply. */
14151char remove();
14152
14153int main() {
14154remove()
14155; return 0; }
14156EOF
14157if { (eval echo configure:14158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14158 rm -rf conftest*
14159 eval "ac_cv_lib_$ac_lib_var=yes"
14160else
14161 echo "configure: failed program was:" >&5
14162 cat conftest.$ac_ext >&5
14163 rm -rf conftest*
14164 eval "ac_cv_lib_$ac_lib_var=no"
14165fi
14166rm -f conftest*
14167LIBS="$ac_save_LIBS"
14168
14169fi
14170if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14171 echo "$ac_t""yes" 1>&6
14172 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14173else
14174 echo "$ac_t""no" 1>&6
14175fi
14176
14177 fi
14178
14179 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14180 echo $ac_n "checking for shmat""... $ac_c" 1>&6
14181echo "configure:14182: checking for shmat" >&5
14182if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14183 echo $ac_n "(cached) $ac_c" 1>&6
14184else
14185 cat > conftest.$ac_ext <<EOF
14186#line 14187 "configure"
14187#include "confdefs.h"
14188/* System header to define __stub macros and hopefully few prototypes,
14189 which can conflict with char shmat(); below. */
14190#include <assert.h>
14191/* Override any gcc2 internal prototype to avoid an error. */
14192/* We use char because int might match the return type of a gcc2
14193 builtin and then its argument prototype would still apply. */
14194char shmat();
14195
14196int main() {
14197
14198/* The GNU C library defines this for functions which it implements
14199 to always fail with ENOSYS. Some functions are actually named
14200 something starting with __ and the normal name is an alias. */
14201#if defined (__stub_shmat) || defined (__stub___shmat)
14202choke me
14203#else
14204shmat();
14205#endif
14206
14207; return 0; }
14208EOF
14209if { (eval echo configure:14210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14210 rm -rf conftest*
14211 eval "ac_cv_func_shmat=yes"
14212else
14213 echo "configure: failed program was:" >&5
14214 cat conftest.$ac_ext >&5
14215 rm -rf conftest*
14216 eval "ac_cv_func_shmat=no"
14217fi
14218rm -f conftest*
14219fi
14220
14221if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14222 echo "$ac_t""yes" 1>&6
14223 :
14224else
14225 echo "$ac_t""no" 1>&6
14226fi
14227
14228 if test $ac_cv_func_shmat = no; then
14229 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14230echo "configure:14231: checking for shmat in -lipc" >&5
14231ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14232if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14233 echo $ac_n "(cached) $ac_c" 1>&6
14234else
14235 ac_save_LIBS="$LIBS"
14236LIBS="-lipc $LIBS"
14237cat > conftest.$ac_ext <<EOF
14238#line 14239 "configure"
14239#include "confdefs.h"
14240/* Override any gcc2 internal prototype to avoid an error. */
14241/* We use char because int might match the return type of a gcc2
14242 builtin and then its argument prototype would still apply. */
14243char shmat();
14244
14245int main() {
14246shmat()
14247; return 0; }
14248EOF
14249if { (eval echo configure:14250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14250 rm -rf conftest*
14251 eval "ac_cv_lib_$ac_lib_var=yes"
14252else
14253 echo "configure: failed program was:" >&5
14254 cat conftest.$ac_ext >&5
14255 rm -rf conftest*
14256 eval "ac_cv_lib_$ac_lib_var=no"
14257fi
14258rm -f conftest*
14259LIBS="$ac_save_LIBS"
14260
14261fi
14262if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14263 echo "$ac_t""yes" 1>&6
14264 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14265else
14266 echo "$ac_t""no" 1>&6
14267fi
14268
14269 fi
14270 fi
14271
14272 # Check for libraries that X11R6 Xt/Xaw programs need.
14273 ac_save_LDFLAGS="$LDFLAGS"
14274 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14275 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14276 # check for ICE first), but we must link in the order -lSM -lICE or
14277 # we get undefined symbols. So assume we have SM if we have ICE.
14278 # These have to be linked with before -lX11, unlike the other
14279 # libraries we check for below, so use a different variable.
14280 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14281 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14282echo "configure:14283: checking for IceConnectionNumber in -lICE" >&5
14283ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14284if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14285 echo $ac_n "(cached) $ac_c" 1>&6
14286else
14287 ac_save_LIBS="$LIBS"
14288LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14289cat > conftest.$ac_ext <<EOF
14290#line 14291 "configure"
14291#include "confdefs.h"
14292/* Override any gcc2 internal prototype to avoid an error. */
14293/* We use char because int might match the return type of a gcc2
14294 builtin and then its argument prototype would still apply. */
14295char IceConnectionNumber();
14296
14297int main() {
14298IceConnectionNumber()
14299; return 0; }
14300EOF
14301if { (eval echo configure:14302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14302 rm -rf conftest*
14303 eval "ac_cv_lib_$ac_lib_var=yes"
14304else
14305 echo "configure: failed program was:" >&5
14306 cat conftest.$ac_ext >&5
14307 rm -rf conftest*
14308 eval "ac_cv_lib_$ac_lib_var=no"
14309fi
14310rm -f conftest*
14311LIBS="$ac_save_LIBS"
14312
14313fi
14314if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14315 echo "$ac_t""yes" 1>&6
14316 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14317else
14318 echo "$ac_t""no" 1>&6
14319fi
14320
14321 LDFLAGS="$ac_save_LDFLAGS"
14322
14323fi
14324
14325
14326 if test "$no_x" = "yes"; then
14327 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14328 fi
14329
14330 GUI_TK_LIBRARY="$X_LIBS"
14331 TOOLKIT_INCLUDE="$X_CFLAGS"
14332 AFMINSTALL=afminstall
14333 COMPILED_X_PROGRAM=0
14334
14335 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
14336echo "configure:14337: checking for Motif/Lesstif headers" >&5
14337
14338ac_find_includes=
14339for ac_dir in $SEARCH_INCLUDE;
14340 do
14341 if test -f "$ac_dir/Xm/Xm.h"; then
14342 ac_find_includes=$ac_dir
14343 break
14344 fi
14345 done
14346
14347 if test "$ac_find_includes" != "" ; then
14348 echo "$ac_t""found $ac_find_includes" 1>&6
14349 else
14350 cat > conftest.$ac_ext <<EOF
14351#line 14352 "configure"
14352#include "confdefs.h"
14353
14354 #include <Xm/Xm.h>
14355
14356int main() {
14357
14358 int version;
14359 version = xmUseVersion;
14360
14361; return 0; }
14362EOF
14363if { (eval echo configure:14364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14364 rm -rf conftest*
14365
14366 echo "$ac_t""found in default search path" 1>&6
14367 COMPILED_X_PROGRAM=1
14368
14369else
14370 echo "configure: failed program was:" >&5
14371 cat conftest.$ac_ext >&5
14372 rm -rf conftest*
14373
14374 echo "$ac_t""no" 1>&6
14375 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
14376
14377
14378fi
14379rm -f conftest*
14380 fi
14381
14382 if test "$COMPILED_X_PROGRAM" = 0; then
14383 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
14384echo "configure:14385: checking for Motif/Lesstif library" >&5
14385
14386ac_find_libraries=
14387for ac_dir in $SEARCH_LIB;
14388 do
14389 for ac_extension in a so sl dylib; do
14390 if test -f "$ac_dir/libXm.$ac_extension"; then
14391 ac_find_libraries=$ac_dir
14392 break 2
14393 fi
14394 done
14395 done
14396
14397 if test "$ac_find_libraries" != "" ; then
14398
14399 ac_path_to_include=$ac_find_includes
14400 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
14401 result=$?
14402 if test $result = 0; then
14403 ac_path_to_include=""
14404 else
14405 ac_path_to_include=" -I$ac_find_includes"
14406 fi
14407
14408
14409 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14410 result=$?
14411 if test $result = 0; then
14412 ac_path_to_link=""
14413 else
14414 ac_path_to_link=" -L$ac_find_libraries"
14415 fi
14416
14417
14418 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14419 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
14420 echo "$ac_t""found at $ac_find_libraries" 1>&6
14421 else
14422 cat > conftest.$ac_ext <<EOF
14423#line 14424 "configure"
14424#include "confdefs.h"
14425
14426 #include <Xm/Xm.h>
14427
14428int main() {
14429
14430 int version;
14431 version = xmUseVersion;
14432
14433; return 0; }
14434EOF
14435if { (eval echo configure:14436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14436 rm -rf conftest*
14437
14438 echo "$ac_t""found in default search path" 1>&6
14439 COMPILED_X_PROGRAM=1
14440
14441else
14442 echo "configure: failed program was:" >&5
14443 cat conftest.$ac_ext >&5
14444 rm -rf conftest*
14445
14446 echo "$ac_t""no" 1>&6
14447 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
14448
14449
14450fi
14451rm -f conftest*
14452 fi
14453 fi
14454
14455 xpm_link=
14456 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14457echo "configure:14458: checking for Xpm library" >&5
14458
14459ac_find_libraries=
14460for ac_dir in $SEARCH_LIB;
14461 do
14462 for ac_extension in a so sl dylib; do
14463 if test -f "$ac_dir/libXpm.$ac_extension"; then
14464 ac_find_libraries=$ac_dir
14465 break 2
14466 fi
14467 done
14468 done
14469
14470 if test "$ac_find_libraries" != "" ; then
14471
14472 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14473 result=$?
14474 if test $result = 0; then
14475 ac_path_to_link=""
14476 else
14477 ac_path_to_link=" -L$ac_find_libraries"
14478 fi
14479
14480 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14481 xpm_link=" -lXpm"
14482 cat >> confdefs.h <<\EOF
14483#define wxHAVE_LIB_XPM 1
14484EOF
14485
14486 echo "$ac_t""found at $ac_find_libraries" 1>&6
14487 else
14488 cat > conftest.$ac_ext <<EOF
14489#line 14490 "configure"
14490#include "confdefs.h"
14491
14492 #include <X11/xpm.h>
14493
14494int main() {
14495
14496 int version;
14497 version = XpmLibraryVersion();
14498
14499; return 0; }
14500EOF
14501if { (eval echo configure:14502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14502 rm -rf conftest*
14503
14504 xpm_link=" -lXpm"
14505 cat >> confdefs.h <<\EOF
14506#define wxHAVE_LIB_XPM 1
14507EOF
14508
14509 echo "$ac_t""found in default search path" 1>&6
14510 COMPILED_X_PROGRAM=0
14511
14512else
14513 echo "configure: failed program was:" >&5
14514 cat conftest.$ac_ext >&5
14515 rm -rf conftest*
14516
14517 echo "$ac_t""no" 1>&6
14518 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14519
14520
14521fi
14522rm -f conftest*
14523 fi
14524
14525 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
14526 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
14527 TOOLKIT=MOTIF
14528 GUIDIST=MOTIF_DIST
14529 fi
14530
14531 if test "$wxUSE_MAC" = 1; then
14532 if test "$wxUSE_PRECOMP" = "yes"; then
14533 CPPFLAGS="$CPPFLAGS -cpp-precomp"
14534 else
14535 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
14536 fi
14537 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
14538 CFLAGS="$CFLAGS -fpascal-strings"
14539 CXXFLAGS="$CXXFLAGS -fpascal-strings"
14540
14541 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
14542 TOOLKIT=MAC
14543 GUIDIST=MACX_DIST
14544 fi
14545
14546 if test "$wxUSE_PM" = 1; then
14547 TOOLKIT=PM
14548 GUIDIST=GTK_DIST
14549 fi
14550
14551 if test "$TOOLKIT" = "PM" ; then
14552 TOOLKIT_DIR="os2"
14553 else
14554 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
14555 fi
14556
14557 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
14558
14559 if test "$wxUSE_UNIVERSAL" = "yes"; then
14560 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
14561
14562 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
14563 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
14564
14565 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
14566 if test "$wxUSE_X11" = 1; then
14567 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
14568 else
14569 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
14570 fi
14571 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
14572 WIDGET_SET=univ
14573 else
14574 ALL_OBJECTS="\$(GUIOBJS)"
14575 ALL_SOURCES="\$(ALL_SOURCES)"
14576 ALL_HEADERS="\$(ALL_HEADERS)"
14577 fi
14578
14579 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
14580
14581 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
14582 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
14583 fi
14584
14585 if test "$wxUSE_HTML" = "yes"; then
14586 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
14587 fi
14588
14589 if test "$wxUSE_LIBJPEG" = "builtin" ; then
14590 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
14591 fi
14592 if test "$wxUSE_LIBTIFF" = "builtin" ; then
14593 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
14594 fi
14595 if test "$wxUSE_LIBPNG" = "builtin" ; then
14596 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
14597 fi
14598
14599 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
14600 DISTDIR="wx\$(TOOLKIT)"
14601else
14602 USE_GUI=0
14603
14604 TOOLKIT_DIR="base"
14605
14606 if test "$USE_WIN32" = 1 ; then
14607 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
14608 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
14609
14610 TOOLKIT="MSW"
14611 else
14612 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
14613 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
14614 fi
14615
14616 ALL_SOURCES="\$(ALL_SOURCES)"
14617 ALL_HEADERS="\$(ALL_HEADERS)"
14618
14619 PORT_FILES="\${top_srcdir}/src/files.lst"
14620
14621 GUIDIST="BASE_DIST"
14622 DISTDIR="wxBase"
14623fi
14624
14625
14626if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
14627 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
14628fi
14629
14630if test "$wxUSE_REGEX" = "builtin" ; then
14631 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
14632fi
14633if test "$wxUSE_ZLIB" = "builtin" ; then
14634 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
14635fi
14636
14637
14638if test "$wxUSE_OPENGL" = "yes"; then
14639 if test "$wxUSE_MAC" = 1; then
14640 OPENGL_LIBS="-framework OpenGL -framework AGL"
14641 elif test "$wxUSE_MSW" = 1; then
14642 OPENGL_LIBS="-lopengl32 -lglu32"
14643 else
14644 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
14645echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
14646echo "configure:14647: checking for GL/gl.h" >&5
14647if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14648 echo $ac_n "(cached) $ac_c" 1>&6
14649else
14650 cat > conftest.$ac_ext <<EOF
14651#line 14652 "configure"
14652#include "confdefs.h"
14653#include <GL/gl.h>
14654EOF
14655ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14656{ (eval echo configure:14657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14657ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14658if test -z "$ac_err"; then
14659 rm -rf conftest*
14660 eval "ac_cv_header_$ac_safe=yes"
14661else
14662 echo "$ac_err" >&5
14663 echo "configure: failed program was:" >&5
14664 cat conftest.$ac_ext >&5
14665 rm -rf conftest*
14666 eval "ac_cv_header_$ac_safe=no"
14667fi
14668rm -f conftest*
14669fi
14670if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14671 echo "$ac_t""yes" 1>&6
14672
14673 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
14674echo "configure:14675: checking for -lGL" >&5
14675
14676ac_find_libraries=
14677for ac_dir in $SEARCH_LIB;
14678 do
14679 for ac_extension in a so sl dylib; do
14680 if test -f "$ac_dir/libGL.$ac_extension"; then
14681 ac_find_libraries=$ac_dir
14682 break 2
14683 fi
14684 done
14685 done
14686
14687 if test "$ac_find_libraries" != "" ; then
14688
14689 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14690 result=$?
14691 if test $result = 0; then
14692 ac_path_to_link=""
14693 else
14694 ac_path_to_link=" -L$ac_find_libraries"
14695 fi
14696
14697 if test "$ac_path_to_link" = " -L/usr/lib" ; then
14698 LDFLAGS_GL="$LDFLAGS"
14699 else
14700 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14701 fi
14702 OPENGL_LIBS="-lGL -lGLU"
14703 echo "$ac_t""yes" 1>&6
14704 else
14705 echo "$ac_t""no" 1>&6
14706 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
14707echo "configure:14708: checking for -lMesaGL" >&5
14708
14709ac_find_libraries=
14710for ac_dir in $SEARCH_LIB;
14711 do
14712 for ac_extension in a so sl dylib; do
14713 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
14714 ac_find_libraries=$ac_dir
14715 break 2
14716 fi
14717 done
14718 done
14719
14720 if test "$ac_find_libraries" != "" ; then
14721
14722 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14723 result=$?
14724 if test $result = 0; then
14725 ac_path_to_link=""
14726 else
14727 ac_path_to_link=" -L$ac_find_libraries"
14728 fi
14729
14730 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14731 OPENGL_LIBS="-lMesaGL -lMesaGLU"
14732 echo "$ac_t""yes" 1>&6
14733 else
14734 echo "$ac_t""no" 1>&6
14735 fi
14736 fi
14737
14738else
14739 echo "$ac_t""no" 1>&6
14740fi
14741
14742
14743 if test "x$OPENGL_LIBS" = "x"; then
14744 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
14745 fi
14746 fi
14747
14748 if test "$wxUSE_OPENGL" = "yes"; then
14749 cat >> confdefs.h <<\EOF
14750#define wxUSE_OPENGL 1
14751EOF
14752
14753 cat >> confdefs.h <<\EOF
14754#define wxUSE_GLCANVAS 1
14755EOF
14756
14757 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
14758 fi
14759fi
14760
14761if test -z "$TOOLKIT_VPATH" ; then
14762 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
14763fi
14764
14765if test -n "$TOOLKIT" ; then
14766 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
14767fi
14768
14769lib_unicode_suffix=
14770if test "$wxUSE_UNICODE" = "yes"; then
14771 lib_unicode_suffix=u
14772fi
14773
14774lib_debug_suffix=
14775if test "$wxUSE_DEBUG_FLAG" = "yes"; then
14776 lib_debug_suffix=d
14777fi
14778
14779TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
14780TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
14781
14782if test "$cross_compiling" = "yes"; then
14783 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
14784 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
14785fi
14786
14787WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
14788WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
14789
14790WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14791WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14792
14793WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
14794WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
14795WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
14796WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
14797
14798case "${host}" in
14799 *-*-cygwin* | *-*-mingw32* )
14800
14801
14802
14803 if test "$cross_compiling" != "yes"; then
14804 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
14805 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
14806 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
14807 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
14808 else
14809 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
14810 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
14811 fi
14812 ;;
14813
14814 *-*-darwin* )
14815 if test "$wxUSE_MAC" = 1; then
14816 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
14817 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
14818 fi
14819 ;;
14820esac
14821
14822WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
14823WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
14824
14825WXCONFIG_LIBS="-l${WX_LIBRARY}"
14826WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
14827
14828if test "$wxUSE_OPENGL" = "yes"; then
14829 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
14830 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
14831fi
14832
14833
14834
14835if test "$wxUSE_SHARED" = "yes"; then
14836 case "${host}" in
14837 *-pc-os2_emx | *-pc-os2-emx | \
14838 *-pc-msdosdjgpp )
14839 wxUSE_SHARED=no
14840 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
14841 ;;
14842 esac
14843fi
14844
14845if test "$wxUSE_SHARED" = "yes"; then
14846
14847 if test "$wxUSE_OPENGL" = "yes"; then
14848 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
14849 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
14850 else
14851 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
14852 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
14853 fi
14854
14855 if test "$GCC" = "yes"; then
14856 PIC_FLAG="-fPIC"
14857 fi
14858
14859 SHARED_LD="${CXX} -shared -o"
14860
14861 case "${host}" in
14862 *-hp-hpux* )
14863 if test "$GCC" == "yes"; then
14864 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
14865 else
14866 LDFLAGS="$LDFLAGS -L/usr/lib"
14867
14868 SHARED_LD="${CXX} -b -o"
14869 PIC_FLAG="+Z"
14870 fi
14871
14872 if test "$wxUSE_OPENGL" = "yes"; then
14873 WX_ALL_INSTALLED="preinstall_gl"
14874 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
14875 else
14876 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
14877 fi
14878 ;;
14879
14880 *-*-linux* )
14881 if test "$GCC" != "yes"; then
14882 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
14883echo "configure:14884: checking for Intel compiler" >&5
14884if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
14885 echo $ac_n "(cached) $ac_c" 1>&6
14886else
14887
14888 cat > conftest.$ac_ext <<EOF
14889#line 14890 "configure"
14890#include "confdefs.h"
14891
14892int main() {
14893
14894 #ifndef __INTEL_COMPILER
14895 #error Not icc
14896 #endif
14897
14898; return 0; }
14899EOF
14900if { (eval echo configure:14901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14901 rm -rf conftest*
14902 wx_cv_prog_icc=yes
14903else
14904 echo "configure: failed program was:" >&5
14905 cat conftest.$ac_ext >&5
14906 rm -rf conftest*
14907 wx_cv_prog_icc=no
14908
14909fi
14910rm -f conftest*
14911
14912fi
14913
14914echo "$ac_t""$wx_cv_prog_icc" 1>&6
14915 if test "$wx_cv_prog_icc" = "yes"; then
14916 PIC_FLAG="-KPIC"
14917 fi
14918 fi
14919
14920 if test "$wxUSE_SONAME" = "yes" ; then
14921 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
14922 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
14923 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
14924 fi
14925 ;;
14926
14927 *-*-solaris2* )
14928 if test "$GCC" = yes ; then
14929 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
14930 else
14931 SHARED_LD="${CXX} -G -o"
14932 PIC_FLAG="-KPIC"
14933 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
14934 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
14935 fi
14936 ;;
14937
14938 *-*-darwin* )
14939 CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL"
14940 CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL"
14941 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
14942 PIC_FLAG="-dynamic -fPIC"
14943 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
14944 SONAME_FLAGS_GL=${SONAME_FLAGS}
14945 ;;
14946
14947 *-*-aix* )
14948 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
14949set dummy makeC++SharedLib; ac_word=$2
14950echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14951echo "configure:14952: checking for $ac_word" >&5
14952if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
14953 echo $ac_n "(cached) $ac_c" 1>&6
14954else
14955 if test -n "$AIX_CXX_LD"; then
14956 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
14957else
14958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14959 ac_dummy="$PATH"
14960 for ac_dir in $ac_dummy; do
14961 test -z "$ac_dir" && ac_dir=.
14962 if test -f $ac_dir/$ac_word; then
14963 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
14964 break
14965 fi
14966 done
14967 IFS="$ac_save_ifs"
14968 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
14969fi
14970fi
14971AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
14972if test -n "$AIX_CXX_LD"; then
14973 echo "$ac_t""$AIX_CXX_LD" 1>&6
14974else
14975 echo "$ac_t""no" 1>&6
14976fi
14977
14978
14979 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
14980 ;;
14981
14982 *-*-cygwin* | *-*-mingw32* )
14983
14984 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
14985
14986 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
14987 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
14988
14989 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
14990
14991 if test "$wxUSE_OPENGL" = "yes"; then
14992 WX_ALL_INSTALLED="preinstall_gl"
14993 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
14994 else
14995 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
14996 fi
14997 ;;
14998
14999 *-*-beos* )
15000 SHARED_LD="${LD} -shared -o"
15001 ;;
15002
15003 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
15004 *-*-sunos4* | \
15005 *-*-irix5* | *-*-irix6* | \
15006 *-*-osf* | \
15007 *-*-dgux5* | \
15008 *-*-sysv5* )
15009 ;;
15010
15011 *)
15012 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
15013 esac
15014
15015 if test "x$WX_TARGET_LIBRARY" = "x"; then
15016 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
15017 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
15018 fi
15019
15020 WX_TARGET_LIBRARY_TYPE="so"
15021 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
15022fi
15023
15024if test "$wxUSE_SHARED" = "no"; then
15025
15026 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
15027 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15028 fi
15029
15030 if test "$wxUSE_MAC" = 1; then
15031 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15032 fi
15033
15034 if test "$wxUSE_OPENGL" = "yes"; then
15035 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
15036 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
15037 else
15038 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
15039 fi
15040
15041 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
15042 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
15043
15044 WX_TARGET_LIBRARY_TYPE="a"
15045 INSTALL_LIBRARY='$(INSTALL_DATA)'
15046fi
15047
15048if test "$wxUSE_MAC" = 1; then
15049 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
15050 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
15051 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
15052 # Extract the first word of "Rez", so it can be a program name with args.
15053set dummy Rez; ac_word=$2
15054echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15055echo "configure:15056: checking for $ac_word" >&5
15056if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
15057 echo $ac_n "(cached) $ac_c" 1>&6
15058else
15059 if test -n "$RESCOMP"; then
15060 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
15061else
15062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15063 ac_dummy="$PATH"
15064 for ac_dir in $ac_dummy; do
15065 test -z "$ac_dir" && ac_dir=.
15066 if test -f $ac_dir/$ac_word; then
15067 ac_cv_prog_RESCOMP="Rez"
15068 break
15069 fi
15070 done
15071 IFS="$ac_save_ifs"
15072 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
15073fi
15074fi
15075RESCOMP="$ac_cv_prog_RESCOMP"
15076if test -n "$RESCOMP"; then
15077 echo "$ac_t""$RESCOMP" 1>&6
15078else
15079 echo "$ac_t""no" 1>&6
15080fi
15081
15082 # Extract the first word of "DeRez", so it can be a program name with args.
15083set dummy DeRez; ac_word=$2
15084echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15085echo "configure:15086: checking for $ac_word" >&5
15086if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
15087 echo $ac_n "(cached) $ac_c" 1>&6
15088else
15089 if test -n "$DEREZ"; then
15090 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
15091else
15092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15093 ac_dummy="$PATH"
15094 for ac_dir in $ac_dummy; do
15095 test -z "$ac_dir" && ac_dir=.
15096 if test -f $ac_dir/$ac_word; then
15097 ac_cv_prog_DEREZ="DeRez"
15098 break
15099 fi
15100 done
15101 IFS="$ac_save_ifs"
15102 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
15103fi
15104fi
15105DEREZ="$ac_cv_prog_DEREZ"
15106if test -n "$DEREZ"; then
15107 echo "$ac_t""$DEREZ" 1>&6
15108else
15109 echo "$ac_t""no" 1>&6
15110fi
15111
15112 MACOSX_BUNDLE="bundle"
15113 if test "$wxUSE_SHARED" = "yes"; then
15114 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)"
15115 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o"
15116 else
15117 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
15118 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
15119 fi
15120else
15121 if test "$wxUSE_PM" = 1; then
15122 LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
15123 fi
15124fi
15125
15126
15127echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
15128echo "configure:15129: checking for ANSI C header files" >&5
15129if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
15130 echo $ac_n "(cached) $ac_c" 1>&6
15131else
15132 cat > conftest.$ac_ext <<EOF
15133#line 15134 "configure"
15134#include "confdefs.h"
15135#include <stdlib.h>
15136#include <stdarg.h>
15137#include <string.h>
15138#include <float.h>
15139EOF
15140ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15141{ (eval echo configure:15142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15142ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15143if test -z "$ac_err"; then
15144 rm -rf conftest*
15145 ac_cv_header_stdc=yes
15146else
15147 echo "$ac_err" >&5
15148 echo "configure: failed program was:" >&5
15149 cat conftest.$ac_ext >&5
15150 rm -rf conftest*
15151 ac_cv_header_stdc=no
15152fi
15153rm -f conftest*
15154
15155if test $ac_cv_header_stdc = yes; then
15156 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15157cat > conftest.$ac_ext <<EOF
15158#line 15159 "configure"
15159#include "confdefs.h"
15160#include <string.h>
15161EOF
15162if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15163 egrep "memchr" >/dev/null 2>&1; then
15164 :
15165else
15166 rm -rf conftest*
15167 ac_cv_header_stdc=no
15168fi
15169rm -f conftest*
15170
15171fi
15172
15173if test $ac_cv_header_stdc = yes; then
15174 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15175cat > conftest.$ac_ext <<EOF
15176#line 15177 "configure"
15177#include "confdefs.h"
15178#include <stdlib.h>
15179EOF
15180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15181 egrep "free" >/dev/null 2>&1; then
15182 :
15183else
15184 rm -rf conftest*
15185 ac_cv_header_stdc=no
15186fi
15187rm -f conftest*
15188
15189fi
15190
15191if test $ac_cv_header_stdc = yes; then
15192 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15193if test "$cross_compiling" = yes; then
15194 :
15195else
15196 cat > conftest.$ac_ext <<EOF
15197#line 15198 "configure"
15198#include "confdefs.h"
15199#include <ctype.h>
15200#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15201#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15202#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15203int main () { int i; for (i = 0; i < 256; i++)
15204if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15205exit (0); }
15206
15207EOF
15208if { (eval echo configure:15209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15209then
15210 :
15211else
15212 echo "configure: failed program was:" >&5
15213 cat conftest.$ac_ext >&5
15214 rm -fr conftest*
15215 ac_cv_header_stdc=no
15216fi
15217rm -fr conftest*
15218fi
15219
15220fi
15221fi
15222
15223echo "$ac_t""$ac_cv_header_stdc" 1>&6
15224if test $ac_cv_header_stdc = yes; then
15225 cat >> confdefs.h <<\EOF
15226#define STDC_HEADERS 1
15227EOF
15228
15229fi
15230
15231echo $ac_n "checking for mode_t""... $ac_c" 1>&6
15232echo "configure:15233: checking for mode_t" >&5
15233if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
15234 echo $ac_n "(cached) $ac_c" 1>&6
15235else
15236 cat > conftest.$ac_ext <<EOF
15237#line 15238 "configure"
15238#include "confdefs.h"
15239#include <sys/types.h>
15240#if STDC_HEADERS
15241#include <stdlib.h>
15242#include <stddef.h>
15243#endif
15244EOF
15245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15246 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15247 rm -rf conftest*
15248 ac_cv_type_mode_t=yes
15249else
15250 rm -rf conftest*
15251 ac_cv_type_mode_t=no
15252fi
15253rm -f conftest*
15254
15255fi
15256echo "$ac_t""$ac_cv_type_mode_t" 1>&6
15257if test $ac_cv_type_mode_t = no; then
15258 cat >> confdefs.h <<\EOF
15259#define mode_t int
15260EOF
15261
15262fi
15263
15264echo $ac_n "checking for off_t""... $ac_c" 1>&6
15265echo "configure:15266: checking for off_t" >&5
15266if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
15267 echo $ac_n "(cached) $ac_c" 1>&6
15268else
15269 cat > conftest.$ac_ext <<EOF
15270#line 15271 "configure"
15271#include "confdefs.h"
15272#include <sys/types.h>
15273#if STDC_HEADERS
15274#include <stdlib.h>
15275#include <stddef.h>
15276#endif
15277EOF
15278if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15279 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15280 rm -rf conftest*
15281 ac_cv_type_off_t=yes
15282else
15283 rm -rf conftest*
15284 ac_cv_type_off_t=no
15285fi
15286rm -f conftest*
15287
15288fi
15289echo "$ac_t""$ac_cv_type_off_t" 1>&6
15290if test $ac_cv_type_off_t = no; then
15291 cat >> confdefs.h <<\EOF
15292#define off_t long
15293EOF
15294
15295fi
15296
15297echo $ac_n "checking for pid_t""... $ac_c" 1>&6
15298echo "configure:15299: checking for pid_t" >&5
15299if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
15300 echo $ac_n "(cached) $ac_c" 1>&6
15301else
15302 cat > conftest.$ac_ext <<EOF
15303#line 15304 "configure"
15304#include "confdefs.h"
15305#include <sys/types.h>
15306#if STDC_HEADERS
15307#include <stdlib.h>
15308#include <stddef.h>
15309#endif
15310EOF
15311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15312 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15313 rm -rf conftest*
15314 ac_cv_type_pid_t=yes
15315else
15316 rm -rf conftest*
15317 ac_cv_type_pid_t=no
15318fi
15319rm -f conftest*
15320
15321fi
15322echo "$ac_t""$ac_cv_type_pid_t" 1>&6
15323if test $ac_cv_type_pid_t = no; then
15324 cat >> confdefs.h <<\EOF
15325#define pid_t int
15326EOF
15327
15328fi
15329
15330echo $ac_n "checking for size_t""... $ac_c" 1>&6
15331echo "configure:15332: checking for size_t" >&5
15332if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
15333 echo $ac_n "(cached) $ac_c" 1>&6
15334else
15335 cat > conftest.$ac_ext <<EOF
15336#line 15337 "configure"
15337#include "confdefs.h"
15338#include <sys/types.h>
15339#if STDC_HEADERS
15340#include <stdlib.h>
15341#include <stddef.h>
15342#endif
15343EOF
15344if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15345 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15346 rm -rf conftest*
15347 ac_cv_type_size_t=yes
15348else
15349 rm -rf conftest*
15350 ac_cv_type_size_t=no
15351fi
15352rm -f conftest*
15353
15354fi
15355echo "$ac_t""$ac_cv_type_size_t" 1>&6
15356if test $ac_cv_type_size_t = no; then
15357 cat >> confdefs.h <<\EOF
15358#define size_t unsigned
15359EOF
15360
15361fi
15362
15363echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
15364echo "configure:15365: checking for uid_t in sys/types.h" >&5
15365if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
15366 echo $ac_n "(cached) $ac_c" 1>&6
15367else
15368 cat > conftest.$ac_ext <<EOF
15369#line 15370 "configure"
15370#include "confdefs.h"
15371#include <sys/types.h>
15372EOF
15373if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15374 egrep "uid_t" >/dev/null 2>&1; then
15375 rm -rf conftest*
15376 ac_cv_type_uid_t=yes
15377else
15378 rm -rf conftest*
15379 ac_cv_type_uid_t=no
15380fi
15381rm -f conftest*
15382
15383fi
15384
15385echo "$ac_t""$ac_cv_type_uid_t" 1>&6
15386if test $ac_cv_type_uid_t = no; then
15387 cat >> confdefs.h <<\EOF
15388#define uid_t int
15389EOF
15390
15391 cat >> confdefs.h <<\EOF
15392#define gid_t int
15393EOF
15394
15395fi
15396
15397
15398
15399ac_ext=C
15400# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15401ac_cpp='$CXXCPP $CPPFLAGS'
15402ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15403ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15404cross_compiling=$ac_cv_prog_cxx_cross
15405
15406echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
15407echo "configure:15408: checking if size_t is unsigned int" >&5
15408if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
15409 echo $ac_n "(cached) $ac_c" 1>&6
15410else
15411 cat > conftest.$ac_ext <<EOF
15412#line 15413 "configure"
15413#include "confdefs.h"
15414#include <stddef.h>
15415int main() {
15416
15417 return 0; }
15418
15419 struct Foo { void foo(size_t); void foo(unsigned int); };
15420
15421 int bar() {
15422
15423; return 0; }
15424EOF
15425if { (eval echo configure:15426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15426 rm -rf conftest*
15427 wx_cv_size_t_is_uint=no
15428else
15429 echo "configure: failed program was:" >&5
15430 cat conftest.$ac_ext >&5
15431 rm -rf conftest*
15432 wx_cv_size_t_is_uint=yes
15433
15434fi
15435rm -f conftest*
15436
15437fi
15438
15439echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
15440
15441if test "$wx_cv_size_t_is_uint" = "yes"; then
15442 cat >> confdefs.h <<\EOF
15443#define wxSIZE_T_IS_UINT 1
15444EOF
15445
15446else
15447 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
15448echo "configure:15449: checking if size_t is unsigned long" >&5
15449if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+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#include <stddef.h>
15456int main() {
15457
15458 return 0; }
15459
15460 struct Foo { void foo(size_t); void foo(unsigned long); };
15461
15462 int bar() {
15463
15464; return 0; }
15465EOF
15466if { (eval echo configure:15467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15467 rm -rf conftest*
15468 wx_cv_size_t_is_ulong=no
15469else
15470 echo "configure: failed program was:" >&5
15471 cat conftest.$ac_ext >&5
15472 rm -rf conftest*
15473 wx_cv_size_t_is_ulong=yes
15474
15475fi
15476rm -f conftest*
15477
15478fi
15479
15480echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
15481
15482 if test "$wx_cv_size_t_is_ulong" = "yes"; then
15483 cat >> confdefs.h <<\EOF
15484#define wxSIZE_T_IS_ULONG 1
15485EOF
15486
15487 fi
15488fi
15489
15490ac_ext=c
15491# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15492ac_cpp='$CPP $CPPFLAGS'
15493ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15494ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15495cross_compiling=$ac_cv_prog_cc_cross
15496
15497
15498
15499echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
15500echo "configure:15501: checking for pw_gecos in struct passwd" >&5
15501if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
15502 echo $ac_n "(cached) $ac_c" 1>&6
15503else
15504
15505 cat > conftest.$ac_ext <<EOF
15506#line 15507 "configure"
15507#include "confdefs.h"
15508#include <pwd.h>
15509int main() {
15510
15511 char *p;
15512 struct passwd *pw;
15513 p = pw->pw_gecos;
15514
15515; return 0; }
15516EOF
15517if { (eval echo configure:15518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15518 rm -rf conftest*
15519
15520 wx_cv_struct_pw_gecos=yes
15521
15522else
15523 echo "configure: failed program was:" >&5
15524 cat conftest.$ac_ext >&5
15525 rm -rf conftest*
15526
15527 wx_cv_struct_pw_gecos=no
15528
15529
15530fi
15531rm -f conftest*
15532
15533
15534fi
15535
15536echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
15537
15538if test "$wx_cv_struct_pw_gecos" = "yes"; then
15539 cat >> confdefs.h <<\EOF
15540#define HAVE_PW_GECOS 1
15541EOF
15542
15543fi
15544
15545
15546WCHAR_OK=0
15547if test "$wx_cv_sizeof_wchar_t" != "0"; then
15548 WCHAR_LINK=
15549 for ac_func in wcslen
15550do
15551echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15552echo "configure:15553: checking for $ac_func" >&5
15553if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15554 echo $ac_n "(cached) $ac_c" 1>&6
15555else
15556 cat > conftest.$ac_ext <<EOF
15557#line 15558 "configure"
15558#include "confdefs.h"
15559/* System header to define __stub macros and hopefully few prototypes,
15560 which can conflict with char $ac_func(); below. */
15561#include <assert.h>
15562/* Override any gcc2 internal prototype to avoid an error. */
15563/* We use char because int might match the return type of a gcc2
15564 builtin and then its argument prototype would still apply. */
15565char $ac_func();
15566
15567int main() {
15568
15569/* The GNU C library defines this for functions which it implements
15570 to always fail with ENOSYS. Some functions are actually named
15571 something starting with __ and the normal name is an alias. */
15572#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15573choke me
15574#else
15575$ac_func();
15576#endif
15577
15578; return 0; }
15579EOF
15580if { (eval echo configure:15581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15581 rm -rf conftest*
15582 eval "ac_cv_func_$ac_func=yes"
15583else
15584 echo "configure: failed program was:" >&5
15585 cat conftest.$ac_ext >&5
15586 rm -rf conftest*
15587 eval "ac_cv_func_$ac_func=no"
15588fi
15589rm -f conftest*
15590fi
15591
15592if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15593 echo "$ac_t""yes" 1>&6
15594 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15595 cat >> confdefs.h <<EOF
15596#define $ac_tr_func 1
15597EOF
15598
15599 cat >> confdefs.h <<\EOF
15600#define HAVE_WCSLEN 1
15601EOF
15602
15603 WCHAR_OK=1
15604
15605else
15606 echo "$ac_t""no" 1>&6
15607fi
15608done
15609
15610
15611 if test "$WCHAR_OK" = 0; then
15612 if test "$TOOLKIT" = "MSW"; then
15613 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
15614echo "configure:15615: checking for wcslen in -lmsvcrt" >&5
15615ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
15616if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15617 echo $ac_n "(cached) $ac_c" 1>&6
15618else
15619 ac_save_LIBS="$LIBS"
15620LIBS="-lmsvcrt $LIBS"
15621cat > conftest.$ac_ext <<EOF
15622#line 15623 "configure"
15623#include "confdefs.h"
15624/* Override any gcc2 internal prototype to avoid an error. */
15625/* We use char because int might match the return type of a gcc2
15626 builtin and then its argument prototype would still apply. */
15627char wcslen();
15628
15629int main() {
15630wcslen()
15631; return 0; }
15632EOF
15633if { (eval echo configure:15634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15634 rm -rf conftest*
15635 eval "ac_cv_lib_$ac_lib_var=yes"
15636else
15637 echo "configure: failed program was:" >&5
15638 cat conftest.$ac_ext >&5
15639 rm -rf conftest*
15640 eval "ac_cv_lib_$ac_lib_var=no"
15641fi
15642rm -f conftest*
15643LIBS="$ac_save_LIBS"
15644
15645fi
15646if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15647 echo "$ac_t""yes" 1>&6
15648
15649 cat >> confdefs.h <<\EOF
15650#define HAVE_WCSLEN 1
15651EOF
15652
15653 WCHAR_OK=1
15654
15655else
15656 echo "$ac_t""no" 1>&6
15657fi
15658
15659 else
15660 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
15661echo "configure:15662: checking for wcslen in -lw" >&5
15662ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
15663if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15664 echo $ac_n "(cached) $ac_c" 1>&6
15665else
15666 ac_save_LIBS="$LIBS"
15667LIBS="-lw $LIBS"
15668cat > conftest.$ac_ext <<EOF
15669#line 15670 "configure"
15670#include "confdefs.h"
15671/* Override any gcc2 internal prototype to avoid an error. */
15672/* We use char because int might match the return type of a gcc2
15673 builtin and then its argument prototype would still apply. */
15674char wcslen();
15675
15676int main() {
15677wcslen()
15678; return 0; }
15679EOF
15680if { (eval echo configure:15681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15681 rm -rf conftest*
15682 eval "ac_cv_lib_$ac_lib_var=yes"
15683else
15684 echo "configure: failed program was:" >&5
15685 cat conftest.$ac_ext >&5
15686 rm -rf conftest*
15687 eval "ac_cv_lib_$ac_lib_var=no"
15688fi
15689rm -f conftest*
15690LIBS="$ac_save_LIBS"
15691
15692fi
15693if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15694 echo "$ac_t""yes" 1>&6
15695
15696 cat >> confdefs.h <<\EOF
15697#define HAVE_WCSLEN 1
15698EOF
15699
15700 WCHAR_LINK=" -lw"
15701 WCHAR_OK=1
15702
15703else
15704 echo "$ac_t""no" 1>&6
15705fi
15706
15707 fi
15708 fi
15709fi
15710
15711if test "$WCHAR_OK" = 1; then
15712 cat >> confdefs.h <<\EOF
15713#define wxUSE_WCHAR_T 1
15714EOF
15715
15716
15717 for ac_func in wcsrtombs
15718do
15719echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15720echo "configure:15721: checking for $ac_func" >&5
15721if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15722 echo $ac_n "(cached) $ac_c" 1>&6
15723else
15724 cat > conftest.$ac_ext <<EOF
15725#line 15726 "configure"
15726#include "confdefs.h"
15727/* System header to define __stub macros and hopefully few prototypes,
15728 which can conflict with char $ac_func(); below. */
15729#include <assert.h>
15730/* Override any gcc2 internal prototype to avoid an error. */
15731/* We use char because int might match the return type of a gcc2
15732 builtin and then its argument prototype would still apply. */
15733char $ac_func();
15734
15735int main() {
15736
15737/* The GNU C library defines this for functions which it implements
15738 to always fail with ENOSYS. Some functions are actually named
15739 something starting with __ and the normal name is an alias. */
15740#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15741choke me
15742#else
15743$ac_func();
15744#endif
15745
15746; return 0; }
15747EOF
15748if { (eval echo configure:15749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15749 rm -rf conftest*
15750 eval "ac_cv_func_$ac_func=yes"
15751else
15752 echo "configure: failed program was:" >&5
15753 cat conftest.$ac_ext >&5
15754 rm -rf conftest*
15755 eval "ac_cv_func_$ac_func=no"
15756fi
15757rm -f conftest*
15758fi
15759
15760if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15761 echo "$ac_t""yes" 1>&6
15762 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15763 cat >> confdefs.h <<EOF
15764#define $ac_tr_func 1
15765EOF
15766
15767else
15768 echo "$ac_t""no" 1>&6
15769fi
15770done
15771
15772else
15773 if test "$USE_DARWIN" = 1; then
15774 cat >> confdefs.h <<\EOF
15775#define wxUSE_WCHAR_T 1
15776EOF
15777
15778 else
15779 echo "configure: warning: Wide character support is unavailable" 1>&2
15780 fi
15781fi
15782
15783echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15784echo "configure:15785: checking for vprintf" >&5
15785if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
15786 echo $ac_n "(cached) $ac_c" 1>&6
15787else
15788 cat > conftest.$ac_ext <<EOF
15789#line 15790 "configure"
15790#include "confdefs.h"
15791/* System header to define __stub macros and hopefully few prototypes,
15792 which can conflict with char vprintf(); below. */
15793#include <assert.h>
15794/* Override any gcc2 internal prototype to avoid an error. */
15795/* We use char because int might match the return type of a gcc2
15796 builtin and then its argument prototype would still apply. */
15797char vprintf();
15798
15799int main() {
15800
15801/* The GNU C library defines this for functions which it implements
15802 to always fail with ENOSYS. Some functions are actually named
15803 something starting with __ and the normal name is an alias. */
15804#if defined (__stub_vprintf) || defined (__stub___vprintf)
15805choke me
15806#else
15807vprintf();
15808#endif
15809
15810; return 0; }
15811EOF
15812if { (eval echo configure:15813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15813 rm -rf conftest*
15814 eval "ac_cv_func_vprintf=yes"
15815else
15816 echo "configure: failed program was:" >&5
15817 cat conftest.$ac_ext >&5
15818 rm -rf conftest*
15819 eval "ac_cv_func_vprintf=no"
15820fi
15821rm -f conftest*
15822fi
15823
15824if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15825 echo "$ac_t""yes" 1>&6
15826 cat >> confdefs.h <<\EOF
15827#define HAVE_VPRINTF 1
15828EOF
15829
15830else
15831 echo "$ac_t""no" 1>&6
15832fi
15833
15834if test "$ac_cv_func_vprintf" != yes; then
15835echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15836echo "configure:15837: checking for _doprnt" >&5
15837if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
15838 echo $ac_n "(cached) $ac_c" 1>&6
15839else
15840 cat > conftest.$ac_ext <<EOF
15841#line 15842 "configure"
15842#include "confdefs.h"
15843/* System header to define __stub macros and hopefully few prototypes,
15844 which can conflict with char _doprnt(); below. */
15845#include <assert.h>
15846/* Override any gcc2 internal prototype to avoid an error. */
15847/* We use char because int might match the return type of a gcc2
15848 builtin and then its argument prototype would still apply. */
15849char _doprnt();
15850
15851int main() {
15852
15853/* The GNU C library defines this for functions which it implements
15854 to always fail with ENOSYS. Some functions are actually named
15855 something starting with __ and the normal name is an alias. */
15856#if defined (__stub__doprnt) || defined (__stub____doprnt)
15857choke me
15858#else
15859_doprnt();
15860#endif
15861
15862; return 0; }
15863EOF
15864if { (eval echo configure:15865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15865 rm -rf conftest*
15866 eval "ac_cv_func__doprnt=yes"
15867else
15868 echo "configure: failed program was:" >&5
15869 cat conftest.$ac_ext >&5
15870 rm -rf conftest*
15871 eval "ac_cv_func__doprnt=no"
15872fi
15873rm -f conftest*
15874fi
15875
15876if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15877 echo "$ac_t""yes" 1>&6
15878 cat >> confdefs.h <<\EOF
15879#define HAVE_DOPRNT 1
15880EOF
15881
15882else
15883 echo "$ac_t""no" 1>&6
15884fi
15885
15886fi
15887
15888
15889
15890
15891
15892
15893echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
15894echo "configure:15895: checking for vsnprintf" >&5
15895if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
15896 echo $ac_n "(cached) $ac_c" 1>&6
15897else
15898
15899 cat > conftest.$ac_ext <<EOF
15900#line 15901 "configure"
15901#include "confdefs.h"
15902
15903 #include <stdio.h>
15904 #include <stdarg.h>
15905
15906int main() {
15907
15908 int wx_test_vsnprintf(const char *, ...);
15909
15910 wx_test_vsnprintf("%s");
15911 return 0;
15912 }
15913
15914 int wx_test_vsnprintf(const char *fmt, ...)
15915 {
15916 char *s;
15917
15918 va_list argp;
15919 va_start(argp, fmt);
15920 vsnprintf(s, 42, fmt, argp);
15921 va_end(argp);
15922
15923; return 0; }
15924EOF
15925if { (eval echo configure:15926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15926 rm -rf conftest*
15927
15928 wx_cv_func_vsnprintf=yes
15929
15930else
15931 echo "configure: failed program was:" >&5
15932 cat conftest.$ac_ext >&5
15933 rm -rf conftest*
15934
15935 cat > conftest.$ac_ext <<EOF
15936#line 15937 "configure"
15937#include "confdefs.h"
15938
15939 #include <stdio.h>
15940 #include <stdarg.h>
15941
15942int main() {
15943
15944 int wx_test_vsnprintf(const char *, ...);
15945
15946 wx_test_vsnprintf("%s");
15947 return 0;
15948 }
15949
15950 int wx_test_vsnprintf(const char *fmt, ...)
15951 {
15952 char *s;
15953
15954 va_list argp;
15955 va_start(argp, fmt);
15956 _vsnprintf(s, 42, fmt, argp);
15957 va_end(argp);
15958
15959; return 0; }
15960EOF
15961if { (eval echo configure:15962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15962 rm -rf conftest*
15963
15964 wx_cv_func_vsnprintf=yes
15965
15966else
15967 echo "configure: failed program was:" >&5
15968 cat conftest.$ac_ext >&5
15969 rm -rf conftest*
15970
15971 wx_cv_func_vsnprintf=no
15972
15973fi
15974rm -f conftest*
15975
15976fi
15977rm -f conftest*
15978
15979fi
15980
15981echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
15982
15983if test "$wx_cv_func_vsnprintf" = yes; then
15984 cat >> confdefs.h <<\EOF
15985#define HAVE_VSNPRINTF 1
15986EOF
15987
15988else
15989 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
15990fi
15991
15992echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
15993echo "configure:15994: checking for vsscanf" >&5
15994if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
15995 echo $ac_n "(cached) $ac_c" 1>&6
15996else
15997
15998 cat > conftest.$ac_ext <<EOF
15999#line 16000 "configure"
16000#include "confdefs.h"
16001
16002 #include <stdio.h>
16003 #include <stdarg.h>
16004
16005int main() {
16006
16007 int wx_test_vsscanf(const char *, ...);
16008
16009 wx_test_vsscanf("%d");
16010 return 0;
16011 }
16012
16013 int wx_test_vsscanf(const char *fmt, ...)
16014 {
16015 va_list argp;
16016 va_start(argp, fmt);
16017 vsscanf("42", fmt, argp);
16018 va_end(argp);
16019
16020; return 0; }
16021EOF
16022if { (eval echo configure:16023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16023 rm -rf conftest*
16024
16025 wx_cv_func_vsscanf=yes
16026
16027else
16028 echo "configure: failed program was:" >&5
16029 cat conftest.$ac_ext >&5
16030 rm -rf conftest*
16031
16032 wx_cv_func_vsscanf=no
16033
16034fi
16035rm -f conftest*
16036
16037fi
16038
16039echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
16040
16041if test "$wx_cv_func_vsscanf" = yes; then
16042 cat >> confdefs.h <<\EOF
16043#define HAVE_VSSCANF 1
16044EOF
16045
16046fi
16047
16048if test "$TOOLKIT" != "MSW"; then
16049
16050
16051
16052ac_ext=C
16053# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16054ac_cpp='$CXXCPP $CPPFLAGS'
16055ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16056ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16057cross_compiling=$ac_cv_prog_cxx_cross
16058
16059
16060
16061 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16062if test "${with_libiconv_prefix+set}" = set; then
16063 withval="$with_libiconv_prefix"
16064
16065 for dir in `echo "$withval" | tr : ' '`; do
16066 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
16067 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
16068 done
16069
16070fi
16071
16072
16073 echo $ac_n "checking for iconv""... $ac_c" 1>&6
16074echo "configure:16075: checking for iconv" >&5
16075if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
16076 echo $ac_n "(cached) $ac_c" 1>&6
16077else
16078
16079 am_cv_func_iconv="no, consider installing GNU libiconv"
16080 am_cv_lib_iconv=no
16081 cat > conftest.$ac_ext <<EOF
16082#line 16083 "configure"
16083#include "confdefs.h"
16084#include <stdlib.h>
16085#include <iconv.h>
16086int main() {
16087iconv_t cd = iconv_open("","");
16088 iconv(cd,NULL,NULL,NULL,NULL);
16089 iconv_close(cd);
16090; return 0; }
16091EOF
16092if { (eval echo configure:16093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16093 rm -rf conftest*
16094 am_cv_func_iconv=yes
16095else
16096 echo "configure: failed program was:" >&5
16097 cat conftest.$ac_ext >&5
16098fi
16099rm -f conftest*
16100 if test "$am_cv_func_iconv" != yes; then
16101 am_save_LIBS="$LIBS"
16102 LIBS="$LIBS -liconv"
16103 cat > conftest.$ac_ext <<EOF
16104#line 16105 "configure"
16105#include "confdefs.h"
16106#include <stdlib.h>
16107#include <iconv.h>
16108int main() {
16109iconv_t cd = iconv_open("","");
16110 iconv(cd,NULL,NULL,NULL,NULL);
16111 iconv_close(cd);
16112; return 0; }
16113EOF
16114if { (eval echo configure:16115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16115 rm -rf conftest*
16116 am_cv_lib_iconv=yes
16117 am_cv_func_iconv=yes
16118else
16119 echo "configure: failed program was:" >&5
16120 cat conftest.$ac_ext >&5
16121fi
16122rm -f conftest*
16123 LIBS="$am_save_LIBS"
16124 fi
16125
16126fi
16127
16128echo "$ac_t""$am_cv_func_iconv" 1>&6
16129 if test "$am_cv_func_iconv" = yes; then
16130 cat >> confdefs.h <<\EOF
16131#define HAVE_ICONV 1
16132EOF
16133
16134 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
16135echo "configure:16136: checking if iconv needs const" >&5
16136if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
16137 echo $ac_n "(cached) $ac_c" 1>&6
16138else
16139 cat > conftest.$ac_ext <<EOF
16140#line 16141 "configure"
16141#include "confdefs.h"
16142
16143#include <stdlib.h>
16144#include <iconv.h>
16145extern
16146#ifdef __cplusplus
16147"C"
16148#endif
16149#if defined(__STDC__) || defined(__cplusplus)
16150size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16151#else
16152size_t iconv();
16153#endif
16154
16155int main() {
16156
16157; return 0; }
16158EOF
16159if { (eval echo configure:16160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16160 rm -rf conftest*
16161 wx_cv_func_iconv_const="no"
16162else
16163 echo "configure: failed program was:" >&5
16164 cat conftest.$ac_ext >&5
16165 rm -rf conftest*
16166 wx_cv_func_iconv_const="yes"
16167
16168fi
16169rm -f conftest*
16170
16171fi
16172
16173echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
16174
16175 iconv_const=
16176 if test "x$wx_cv_func_iconv_const" = "xyes"; then
16177 iconv_const="const"
16178 fi
16179
16180 cat >> confdefs.h <<EOF
16181#define ICONV_CONST $iconv_const
16182EOF
16183
16184 fi
16185 LIBICONV=
16186 if test "$am_cv_lib_iconv" = yes; then
16187 LIBICONV="-liconv"
16188 fi
16189
16190
16191LIBS="$LIBICONV $LIBS"
16192ac_ext=c
16193# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16194ac_cpp='$CPP $CPPFLAGS'
16195ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16196ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16197cross_compiling=$ac_cv_prog_cc_cross
16198
16199
16200if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
16201 for ac_func in sigaction
16202do
16203echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16204echo "configure:16205: checking for $ac_func" >&5
16205if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16206 echo $ac_n "(cached) $ac_c" 1>&6
16207else
16208 cat > conftest.$ac_ext <<EOF
16209#line 16210 "configure"
16210#include "confdefs.h"
16211/* System header to define __stub macros and hopefully few prototypes,
16212 which can conflict with char $ac_func(); below. */
16213#include <assert.h>
16214/* Override any gcc2 internal prototype to avoid an error. */
16215/* We use char because int might match the return type of a gcc2
16216 builtin and then its argument prototype would still apply. */
16217char $ac_func();
16218
16219int main() {
16220
16221/* The GNU C library defines this for functions which it implements
16222 to always fail with ENOSYS. Some functions are actually named
16223 something starting with __ and the normal name is an alias. */
16224#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16225choke me
16226#else
16227$ac_func();
16228#endif
16229
16230; return 0; }
16231EOF
16232if { (eval echo configure:16233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16233 rm -rf conftest*
16234 eval "ac_cv_func_$ac_func=yes"
16235else
16236 echo "configure: failed program was:" >&5
16237 cat conftest.$ac_ext >&5
16238 rm -rf conftest*
16239 eval "ac_cv_func_$ac_func=no"
16240fi
16241rm -f conftest*
16242fi
16243
16244if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16245 echo "$ac_t""yes" 1>&6
16246 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16247 cat >> confdefs.h <<EOF
16248#define $ac_tr_func 1
16249EOF
16250
16251else
16252 echo "$ac_t""no" 1>&6
16253fi
16254done
16255
16256
16257 if test "$ac_cv_func_sigaction" = "no"; then
16258 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
16259 wxUSE_ON_FATAL_EXCEPTION=no
16260 fi
16261
16262 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16263
16264 ac_ext=C
16265# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16266ac_cpp='$CXXCPP $CPPFLAGS'
16267ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16268ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16269cross_compiling=$ac_cv_prog_cxx_cross
16270
16271
16272 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
16273echo "configure:16274: checking for sa_handler type" >&5
16274if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
16275 echo $ac_n "(cached) $ac_c" 1>&6
16276else
16277
16278 cat > conftest.$ac_ext <<EOF
16279#line 16280 "configure"
16280#include "confdefs.h"
16281#include <signal.h>
16282int main() {
16283
16284 extern void testSigHandler(int);
16285
16286 struct sigaction sa;
16287 sa.sa_handler = testSigHandler;
16288
16289; return 0; }
16290EOF
16291if { (eval echo configure:16292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16292 rm -rf conftest*
16293
16294 wx_cv_type_sa_handler=int
16295
16296else
16297 echo "configure: failed program was:" >&5
16298 cat conftest.$ac_ext >&5
16299 rm -rf conftest*
16300
16301 wx_cv_type_sa_handler=void
16302
16303fi
16304rm -f conftest*
16305
16306fi
16307
16308echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
16309
16310 ac_ext=c
16311# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16312ac_cpp='$CPP $CPPFLAGS'
16313ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16314ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16315cross_compiling=$ac_cv_prog_cc_cross
16316
16317
16318 cat >> confdefs.h <<EOF
16319#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
16320EOF
16321
16322 fi
16323fi
16324
16325for ac_func in vfork
16326do
16327echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16328echo "configure:16329: checking for $ac_func" >&5
16329if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16330 echo $ac_n "(cached) $ac_c" 1>&6
16331else
16332 cat > conftest.$ac_ext <<EOF
16333#line 16334 "configure"
16334#include "confdefs.h"
16335/* System header to define __stub macros and hopefully few prototypes,
16336 which can conflict with char $ac_func(); below. */
16337#include <assert.h>
16338/* Override any gcc2 internal prototype to avoid an error. */
16339/* We use char because int might match the return type of a gcc2
16340 builtin and then its argument prototype would still apply. */
16341char $ac_func();
16342
16343int main() {
16344
16345/* The GNU C library defines this for functions which it implements
16346 to always fail with ENOSYS. Some functions are actually named
16347 something starting with __ and the normal name is an alias. */
16348#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16349choke me
16350#else
16351$ac_func();
16352#endif
16353
16354; return 0; }
16355EOF
16356if { (eval echo configure:16357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16357 rm -rf conftest*
16358 eval "ac_cv_func_$ac_func=yes"
16359else
16360 echo "configure: failed program was:" >&5
16361 cat conftest.$ac_ext >&5
16362 rm -rf conftest*
16363 eval "ac_cv_func_$ac_func=no"
16364fi
16365rm -f conftest*
16366fi
16367
16368if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16369 echo "$ac_t""yes" 1>&6
16370 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16371 cat >> confdefs.h <<EOF
16372#define $ac_tr_func 1
16373EOF
16374
16375else
16376 echo "$ac_t""no" 1>&6
16377fi
16378done
16379
16380
16381for ac_func in mkstemp mktemp
16382do
16383echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16384echo "configure:16385: checking for $ac_func" >&5
16385if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16386 echo $ac_n "(cached) $ac_c" 1>&6
16387else
16388 cat > conftest.$ac_ext <<EOF
16389#line 16390 "configure"
16390#include "confdefs.h"
16391/* System header to define __stub macros and hopefully few prototypes,
16392 which can conflict with char $ac_func(); below. */
16393#include <assert.h>
16394/* Override any gcc2 internal prototype to avoid an error. */
16395/* We use char because int might match the return type of a gcc2
16396 builtin and then its argument prototype would still apply. */
16397char $ac_func();
16398
16399int main() {
16400
16401/* The GNU C library defines this for functions which it implements
16402 to always fail with ENOSYS. Some functions are actually named
16403 something starting with __ and the normal name is an alias. */
16404#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16405choke me
16406#else
16407$ac_func();
16408#endif
16409
16410; return 0; }
16411EOF
16412if { (eval echo configure:16413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16413 rm -rf conftest*
16414 eval "ac_cv_func_$ac_func=yes"
16415else
16416 echo "configure: failed program was:" >&5
16417 cat conftest.$ac_ext >&5
16418 rm -rf conftest*
16419 eval "ac_cv_func_$ac_func=no"
16420fi
16421rm -f conftest*
16422fi
16423
16424if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16425 echo "$ac_t""yes" 1>&6
16426 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16427 cat >> confdefs.h <<EOF
16428#define $ac_tr_func 1
16429EOF
16430 break
16431else
16432 echo "$ac_t""no" 1>&6
16433fi
16434done
16435
16436
16437echo $ac_n "checking for statfs""... $ac_c" 1>&6
16438echo "configure:16439: checking for statfs" >&5
16439if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16440 echo $ac_n "(cached) $ac_c" 1>&6
16441else
16442 cat > conftest.$ac_ext <<EOF
16443#line 16444 "configure"
16444#include "confdefs.h"
16445
16446 #if defined(__BSD__)
16447 #include <sys/param.h>
16448 #include <sys/mount.h>
16449 #else
16450 #include <sys/vfs.h>
16451 #endif
16452
16453int main() {
16454
16455 long l;
16456 struct statfs fs;
16457 statfs("/", &fs);
16458 l = fs.f_bsize;
16459 l += fs.f_blocks;
16460 l += fs.f_bavail;
16461
16462; return 0; }
16463EOF
16464if { (eval echo configure:16465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16465 rm -rf conftest*
16466
16467 wx_cv_func_statfs=yes
16468
16469else
16470 echo "configure: failed program was:" >&5
16471 cat conftest.$ac_ext >&5
16472 rm -rf conftest*
16473
16474 wx_cv_func_statfs=no
16475
16476
16477fi
16478rm -f conftest*
16479
16480fi
16481
16482echo "$ac_t""$wx_cv_func_statfs" 1>&6
16483
16484if test "$wx_cv_func_statfs" = "yes"; then
16485 cat >> confdefs.h <<\EOF
16486#define HAVE_STATFS 1
16487EOF
16488
16489else
16490 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
16491echo "configure:16492: checking for statvfs" >&5
16492if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
16493 echo $ac_n "(cached) $ac_c" 1>&6
16494else
16495 cat > conftest.$ac_ext <<EOF
16496#line 16497 "configure"
16497#include "confdefs.h"
16498
16499 #include <sys/statvfs.h>
16500
16501int main() {
16502
16503 long l;
16504 struct statvfs fs;
16505 statvfs("/", &fs);
16506 l = fs.f_bsize;
16507 l += fs.f_blocks;
16508 l += fs.f_bavail;
16509
16510; return 0; }
16511EOF
16512if { (eval echo configure:16513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16513 rm -rf conftest*
16514
16515 wx_cv_func_statvfs=yes
16516
16517else
16518 echo "configure: failed program was:" >&5
16519 cat conftest.$ac_ext >&5
16520 rm -rf conftest*
16521
16522 wx_cv_func_statvfs=no
16523
16524
16525fi
16526rm -f conftest*
16527
16528fi
16529
16530echo "$ac_t""$wx_cv_func_statvfs" 1>&6
16531
16532 if test "$wx_cv_func_statvfs" = "yes"; then
16533 cat >> confdefs.h <<\EOF
16534#define HAVE_STATVFS 1
16535EOF
16536
16537 else
16538 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16539 fi
16540fi
16541
16542if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16543 for ac_func in fcntl flock
16544do
16545echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16546echo "configure:16547: checking for $ac_func" >&5
16547if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16548 echo $ac_n "(cached) $ac_c" 1>&6
16549else
16550 cat > conftest.$ac_ext <<EOF
16551#line 16552 "configure"
16552#include "confdefs.h"
16553/* System header to define __stub macros and hopefully few prototypes,
16554 which can conflict with char $ac_func(); below. */
16555#include <assert.h>
16556/* Override any gcc2 internal prototype to avoid an error. */
16557/* We use char because int might match the return type of a gcc2
16558 builtin and then its argument prototype would still apply. */
16559char $ac_func();
16560
16561int main() {
16562
16563/* The GNU C library defines this for functions which it implements
16564 to always fail with ENOSYS. Some functions are actually named
16565 something starting with __ and the normal name is an alias. */
16566#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16567choke me
16568#else
16569$ac_func();
16570#endif
16571
16572; return 0; }
16573EOF
16574if { (eval echo configure:16575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16575 rm -rf conftest*
16576 eval "ac_cv_func_$ac_func=yes"
16577else
16578 echo "configure: failed program was:" >&5
16579 cat conftest.$ac_ext >&5
16580 rm -rf conftest*
16581 eval "ac_cv_func_$ac_func=no"
16582fi
16583rm -f conftest*
16584fi
16585
16586if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16587 echo "$ac_t""yes" 1>&6
16588 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16589 cat >> confdefs.h <<EOF
16590#define $ac_tr_func 1
16591EOF
16592 break
16593else
16594 echo "$ac_t""no" 1>&6
16595fi
16596done
16597
16598
16599 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
16600 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
16601 wxUSE_SNGLINST_CHECKER=no
16602 fi
16603fi
16604
16605for ac_func in timegm
16606do
16607echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16608echo "configure:16609: checking for $ac_func" >&5
16609if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16610 echo $ac_n "(cached) $ac_c" 1>&6
16611else
16612 cat > conftest.$ac_ext <<EOF
16613#line 16614 "configure"
16614#include "confdefs.h"
16615/* System header to define __stub macros and hopefully few prototypes,
16616 which can conflict with char $ac_func(); below. */
16617#include <assert.h>
16618/* Override any gcc2 internal prototype to avoid an error. */
16619/* We use char because int might match the return type of a gcc2
16620 builtin and then its argument prototype would still apply. */
16621char $ac_func();
16622
16623int main() {
16624
16625/* The GNU C library defines this for functions which it implements
16626 to always fail with ENOSYS. Some functions are actually named
16627 something starting with __ and the normal name is an alias. */
16628#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16629choke me
16630#else
16631$ac_func();
16632#endif
16633
16634; return 0; }
16635EOF
16636if { (eval echo configure:16637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16637 rm -rf conftest*
16638 eval "ac_cv_func_$ac_func=yes"
16639else
16640 echo "configure: failed program was:" >&5
16641 cat conftest.$ac_ext >&5
16642 rm -rf conftest*
16643 eval "ac_cv_func_$ac_func=no"
16644fi
16645rm -f conftest*
16646fi
16647
16648if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16649 echo "$ac_t""yes" 1>&6
16650 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16651 cat >> confdefs.h <<EOF
16652#define $ac_tr_func 1
16653EOF
16654
16655else
16656 echo "$ac_t""no" 1>&6
16657fi
16658done
16659
16660
16661for ac_func in putenv setenv
16662do
16663echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16664echo "configure:16665: checking for $ac_func" >&5
16665if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16666 echo $ac_n "(cached) $ac_c" 1>&6
16667else
16668 cat > conftest.$ac_ext <<EOF
16669#line 16670 "configure"
16670#include "confdefs.h"
16671/* System header to define __stub macros and hopefully few prototypes,
16672 which can conflict with char $ac_func(); below. */
16673#include <assert.h>
16674/* Override any gcc2 internal prototype to avoid an error. */
16675/* We use char because int might match the return type of a gcc2
16676 builtin and then its argument prototype would still apply. */
16677char $ac_func();
16678
16679int main() {
16680
16681/* The GNU C library defines this for functions which it implements
16682 to always fail with ENOSYS. Some functions are actually named
16683 something starting with __ and the normal name is an alias. */
16684#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16685choke me
16686#else
16687$ac_func();
16688#endif
16689
16690; return 0; }
16691EOF
16692if { (eval echo configure:16693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16693 rm -rf conftest*
16694 eval "ac_cv_func_$ac_func=yes"
16695else
16696 echo "configure: failed program was:" >&5
16697 cat conftest.$ac_ext >&5
16698 rm -rf conftest*
16699 eval "ac_cv_func_$ac_func=no"
16700fi
16701rm -f conftest*
16702fi
16703
16704if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16705 echo "$ac_t""yes" 1>&6
16706 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16707 cat >> confdefs.h <<EOF
16708#define $ac_tr_func 1
16709EOF
16710 break
16711else
16712 echo "$ac_t""no" 1>&6
16713fi
16714done
16715
16716
16717HAVE_SOME_SLEEP_FUNC=0
16718if test "$USE_BEOS" = 1; then
16719 cat >> confdefs.h <<\EOF
16720#define HAVE_SLEEP 1
16721EOF
16722
16723 HAVE_SOME_SLEEP_FUNC=1
16724fi
16725
16726if test "$USE_DARWIN" = 1; then
16727 cat >> confdefs.h <<\EOF
16728#define HAVE_USLEEP 1
16729EOF
16730
16731 HAVE_SOME_SLEEP_FUNC=1
16732fi
16733
16734if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16735 POSIX4_LINK=
16736 for ac_func in nanosleep
16737do
16738echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16739echo "configure:16740: checking for $ac_func" >&5
16740if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16741 echo $ac_n "(cached) $ac_c" 1>&6
16742else
16743 cat > conftest.$ac_ext <<EOF
16744#line 16745 "configure"
16745#include "confdefs.h"
16746/* System header to define __stub macros and hopefully few prototypes,
16747 which can conflict with char $ac_func(); below. */
16748#include <assert.h>
16749/* Override any gcc2 internal prototype to avoid an error. */
16750/* We use char because int might match the return type of a gcc2
16751 builtin and then its argument prototype would still apply. */
16752char $ac_func();
16753
16754int main() {
16755
16756/* The GNU C library defines this for functions which it implements
16757 to always fail with ENOSYS. Some functions are actually named
16758 something starting with __ and the normal name is an alias. */
16759#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16760choke me
16761#else
16762$ac_func();
16763#endif
16764
16765; return 0; }
16766EOF
16767if { (eval echo configure:16768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16768 rm -rf conftest*
16769 eval "ac_cv_func_$ac_func=yes"
16770else
16771 echo "configure: failed program was:" >&5
16772 cat conftest.$ac_ext >&5
16773 rm -rf conftest*
16774 eval "ac_cv_func_$ac_func=no"
16775fi
16776rm -f conftest*
16777fi
16778
16779if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16780 echo "$ac_t""yes" 1>&6
16781 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16782 cat >> confdefs.h <<EOF
16783#define $ac_tr_func 1
16784EOF
16785 cat >> confdefs.h <<\EOF
16786#define HAVE_NANOSLEEP 1
16787EOF
16788
16789else
16790 echo "$ac_t""no" 1>&6
16791echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
16792echo "configure:16793: checking for nanosleep in -lposix4" >&5
16793ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
16794if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16795 echo $ac_n "(cached) $ac_c" 1>&6
16796else
16797 ac_save_LIBS="$LIBS"
16798LIBS="-lposix4 $LIBS"
16799cat > conftest.$ac_ext <<EOF
16800#line 16801 "configure"
16801#include "confdefs.h"
16802/* Override any gcc2 internal prototype to avoid an error. */
16803/* We use char because int might match the return type of a gcc2
16804 builtin and then its argument prototype would still apply. */
16805char nanosleep();
16806
16807int main() {
16808nanosleep()
16809; return 0; }
16810EOF
16811if { (eval echo configure:16812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16812 rm -rf conftest*
16813 eval "ac_cv_lib_$ac_lib_var=yes"
16814else
16815 echo "configure: failed program was:" >&5
16816 cat conftest.$ac_ext >&5
16817 rm -rf conftest*
16818 eval "ac_cv_lib_$ac_lib_var=no"
16819fi
16820rm -f conftest*
16821LIBS="$ac_save_LIBS"
16822
16823fi
16824if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16825 echo "$ac_t""yes" 1>&6
16826
16827 cat >> confdefs.h <<\EOF
16828#define HAVE_NANOSLEEP 1
16829EOF
16830
16831 POSIX4_LINK=" -lposix4"
16832
16833else
16834 echo "$ac_t""no" 1>&6
16835
16836 for ac_func in usleep
16837do
16838echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16839echo "configure:16840: checking for $ac_func" >&5
16840if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16841 echo $ac_n "(cached) $ac_c" 1>&6
16842else
16843 cat > conftest.$ac_ext <<EOF
16844#line 16845 "configure"
16845#include "confdefs.h"
16846/* System header to define __stub macros and hopefully few prototypes,
16847 which can conflict with char $ac_func(); below. */
16848#include <assert.h>
16849/* Override any gcc2 internal prototype to avoid an error. */
16850/* We use char because int might match the return type of a gcc2
16851 builtin and then its argument prototype would still apply. */
16852char $ac_func();
16853
16854int main() {
16855
16856/* The GNU C library defines this for functions which it implements
16857 to always fail with ENOSYS. Some functions are actually named
16858 something starting with __ and the normal name is an alias. */
16859#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16860choke me
16861#else
16862$ac_func();
16863#endif
16864
16865; return 0; }
16866EOF
16867if { (eval echo configure:16868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16868 rm -rf conftest*
16869 eval "ac_cv_func_$ac_func=yes"
16870else
16871 echo "configure: failed program was:" >&5
16872 cat conftest.$ac_ext >&5
16873 rm -rf conftest*
16874 eval "ac_cv_func_$ac_func=no"
16875fi
16876rm -f conftest*
16877fi
16878
16879if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16880 echo "$ac_t""yes" 1>&6
16881 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16882 cat >> confdefs.h <<EOF
16883#define $ac_tr_func 1
16884EOF
16885 cat >> confdefs.h <<\EOF
16886#define HAVE_USLEEP 1
16887EOF
16888
16889else
16890 echo "$ac_t""no" 1>&6
16891echo "configure: warning: wxSleep() function will not work" 1>&2
16892
16893fi
16894done
16895
16896
16897
16898fi
16899
16900
16901
16902fi
16903done
16904
16905fi
16906
16907for ac_func in uname gethostname
16908do
16909echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16910echo "configure:16911: checking for $ac_func" >&5
16911if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16912 echo $ac_n "(cached) $ac_c" 1>&6
16913else
16914 cat > conftest.$ac_ext <<EOF
16915#line 16916 "configure"
16916#include "confdefs.h"
16917/* System header to define __stub macros and hopefully few prototypes,
16918 which can conflict with char $ac_func(); below. */
16919#include <assert.h>
16920/* Override any gcc2 internal prototype to avoid an error. */
16921/* We use char because int might match the return type of a gcc2
16922 builtin and then its argument prototype would still apply. */
16923char $ac_func();
16924
16925int main() {
16926
16927/* The GNU C library defines this for functions which it implements
16928 to always fail with ENOSYS. Some functions are actually named
16929 something starting with __ and the normal name is an alias. */
16930#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16931choke me
16932#else
16933$ac_func();
16934#endif
16935
16936; return 0; }
16937EOF
16938if { (eval echo configure:16939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16939 rm -rf conftest*
16940 eval "ac_cv_func_$ac_func=yes"
16941else
16942 echo "configure: failed program was:" >&5
16943 cat conftest.$ac_ext >&5
16944 rm -rf conftest*
16945 eval "ac_cv_func_$ac_func=no"
16946fi
16947rm -f conftest*
16948fi
16949
16950if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16951 echo "$ac_t""yes" 1>&6
16952 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16953 cat >> confdefs.h <<EOF
16954#define $ac_tr_func 1
16955EOF
16956 break
16957else
16958 echo "$ac_t""no" 1>&6
16959fi
16960done
16961
16962
16963
16964ac_ext=C
16965# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16966ac_cpp='$CXXCPP $CPPFLAGS'
16967ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16968ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16969cross_compiling=$ac_cv_prog_cxx_cross
16970
16971
16972for ac_func in strtok_r
16973do
16974echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16975echo "configure:16976: checking for $ac_func" >&5
16976if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16977 echo $ac_n "(cached) $ac_c" 1>&6
16978else
16979 cat > conftest.$ac_ext <<EOF
16980#line 16981 "configure"
16981#include "confdefs.h"
16982/* System header to define __stub macros and hopefully few prototypes,
16983 which can conflict with char $ac_func(); below. */
16984#include <assert.h>
16985/* Override any gcc2 internal prototype to avoid an error. */
16986#ifdef __cplusplus
16987extern "C"
16988#endif
16989/* We use char because int might match the return type of a gcc2
16990 builtin and then its argument prototype would still apply. */
16991char $ac_func();
16992
16993int main() {
16994
16995/* The GNU C library defines this for functions which it implements
16996 to always fail with ENOSYS. Some functions are actually named
16997 something starting with __ and the normal name is an alias. */
16998#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16999choke me
17000#else
17001$ac_func();
17002#endif
17003
17004; return 0; }
17005EOF
17006if { (eval echo configure:17007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17007 rm -rf conftest*
17008 eval "ac_cv_func_$ac_func=yes"
17009else
17010 echo "configure: failed program was:" >&5
17011 cat conftest.$ac_ext >&5
17012 rm -rf conftest*
17013 eval "ac_cv_func_$ac_func=no"
17014fi
17015rm -f conftest*
17016fi
17017
17018if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17019 echo "$ac_t""yes" 1>&6
17020 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17021 cat >> confdefs.h <<EOF
17022#define $ac_tr_func 1
17023EOF
17024
17025else
17026 echo "$ac_t""no" 1>&6
17027fi
17028done
17029
17030
17031ac_ext=c
17032# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17033ac_cpp='$CPP $CPPFLAGS'
17034ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17035ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17036cross_compiling=$ac_cv_prog_cc_cross
17037
17038
17039INET_LINK=
17040for ac_func in inet_addr
17041do
17042echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17043echo "configure:17044: checking for $ac_func" >&5
17044if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17045 echo $ac_n "(cached) $ac_c" 1>&6
17046else
17047 cat > conftest.$ac_ext <<EOF
17048#line 17049 "configure"
17049#include "confdefs.h"
17050/* System header to define __stub macros and hopefully few prototypes,
17051 which can conflict with char $ac_func(); below. */
17052#include <assert.h>
17053/* Override any gcc2 internal prototype to avoid an error. */
17054/* We use char because int might match the return type of a gcc2
17055 builtin and then its argument prototype would still apply. */
17056char $ac_func();
17057
17058int main() {
17059
17060/* The GNU C library defines this for functions which it implements
17061 to always fail with ENOSYS. Some functions are actually named
17062 something starting with __ and the normal name is an alias. */
17063#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17064choke me
17065#else
17066$ac_func();
17067#endif
17068
17069; return 0; }
17070EOF
17071if { (eval echo configure:17072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17072 rm -rf conftest*
17073 eval "ac_cv_func_$ac_func=yes"
17074else
17075 echo "configure: failed program was:" >&5
17076 cat conftest.$ac_ext >&5
17077 rm -rf conftest*
17078 eval "ac_cv_func_$ac_func=no"
17079fi
17080rm -f conftest*
17081fi
17082
17083if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17084 echo "$ac_t""yes" 1>&6
17085 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17086 cat >> confdefs.h <<EOF
17087#define $ac_tr_func 1
17088EOF
17089 cat >> confdefs.h <<\EOF
17090#define HAVE_INET_ADDR 1
17091EOF
17092
17093else
17094 echo "$ac_t""no" 1>&6
17095echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
17096echo "configure:17097: checking for inet_addr in -lnsl" >&5
17097ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
17098if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17099 echo $ac_n "(cached) $ac_c" 1>&6
17100else
17101 ac_save_LIBS="$LIBS"
17102LIBS="-lnsl $LIBS"
17103cat > conftest.$ac_ext <<EOF
17104#line 17105 "configure"
17105#include "confdefs.h"
17106/* Override any gcc2 internal prototype to avoid an error. */
17107/* We use char because int might match the return type of a gcc2
17108 builtin and then its argument prototype would still apply. */
17109char inet_addr();
17110
17111int main() {
17112inet_addr()
17113; return 0; }
17114EOF
17115if { (eval echo configure:17116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17116 rm -rf conftest*
17117 eval "ac_cv_lib_$ac_lib_var=yes"
17118else
17119 echo "configure: failed program was:" >&5
17120 cat conftest.$ac_ext >&5
17121 rm -rf conftest*
17122 eval "ac_cv_lib_$ac_lib_var=no"
17123fi
17124rm -f conftest*
17125LIBS="$ac_save_LIBS"
17126
17127fi
17128if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17129 echo "$ac_t""yes" 1>&6
17130 INET_LINK="nsl"
17131else
17132 echo "$ac_t""no" 1>&6
17133echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
17134echo "configure:17135: checking for inet_addr in -lresolv" >&5
17135ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
17136if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17137 echo $ac_n "(cached) $ac_c" 1>&6
17138else
17139 ac_save_LIBS="$LIBS"
17140LIBS="-lresolv $LIBS"
17141cat > conftest.$ac_ext <<EOF
17142#line 17143 "configure"
17143#include "confdefs.h"
17144/* Override any gcc2 internal prototype to avoid an error. */
17145/* We use char because int might match the return type of a gcc2
17146 builtin and then its argument prototype would still apply. */
17147char inet_addr();
17148
17149int main() {
17150inet_addr()
17151; return 0; }
17152EOF
17153if { (eval echo configure:17154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17154 rm -rf conftest*
17155 eval "ac_cv_lib_$ac_lib_var=yes"
17156else
17157 echo "configure: failed program was:" >&5
17158 cat conftest.$ac_ext >&5
17159 rm -rf conftest*
17160 eval "ac_cv_lib_$ac_lib_var=no"
17161fi
17162rm -f conftest*
17163LIBS="$ac_save_LIBS"
17164
17165fi
17166if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17167 echo "$ac_t""yes" 1>&6
17168 INET_LINK="resolv"
17169else
17170 echo "$ac_t""no" 1>&6
17171echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
17172echo "configure:17173: checking for inet_addr in -lsocket" >&5
17173ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
17174if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17175 echo $ac_n "(cached) $ac_c" 1>&6
17176else
17177 ac_save_LIBS="$LIBS"
17178LIBS="-lsocket $LIBS"
17179cat > conftest.$ac_ext <<EOF
17180#line 17181 "configure"
17181#include "confdefs.h"
17182/* Override any gcc2 internal prototype to avoid an error. */
17183/* We use char because int might match the return type of a gcc2
17184 builtin and then its argument prototype would still apply. */
17185char inet_addr();
17186
17187int main() {
17188inet_addr()
17189; return 0; }
17190EOF
17191if { (eval echo configure:17192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17192 rm -rf conftest*
17193 eval "ac_cv_lib_$ac_lib_var=yes"
17194else
17195 echo "configure: failed program was:" >&5
17196 cat conftest.$ac_ext >&5
17197 rm -rf conftest*
17198 eval "ac_cv_lib_$ac_lib_var=no"
17199fi
17200rm -f conftest*
17201LIBS="$ac_save_LIBS"
17202
17203fi
17204if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17205 echo "$ac_t""yes" 1>&6
17206 INET_LINK="socket"
17207
17208else
17209 echo "$ac_t""no" 1>&6
17210fi
17211
17212
17213fi
17214
17215
17216fi
17217
17218
17219
17220fi
17221done
17222
17223
17224for ac_func in inet_aton
17225do
17226echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17227echo "configure:17228: checking for $ac_func" >&5
17228if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17229 echo $ac_n "(cached) $ac_c" 1>&6
17230else
17231 cat > conftest.$ac_ext <<EOF
17232#line 17233 "configure"
17233#include "confdefs.h"
17234/* System header to define __stub macros and hopefully few prototypes,
17235 which can conflict with char $ac_func(); below. */
17236#include <assert.h>
17237/* Override any gcc2 internal prototype to avoid an error. */
17238/* We use char because int might match the return type of a gcc2
17239 builtin and then its argument prototype would still apply. */
17240char $ac_func();
17241
17242int main() {
17243
17244/* The GNU C library defines this for functions which it implements
17245 to always fail with ENOSYS. Some functions are actually named
17246 something starting with __ and the normal name is an alias. */
17247#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17248choke me
17249#else
17250$ac_func();
17251#endif
17252
17253; return 0; }
17254EOF
17255if { (eval echo configure:17256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17256 rm -rf conftest*
17257 eval "ac_cv_func_$ac_func=yes"
17258else
17259 echo "configure: failed program was:" >&5
17260 cat conftest.$ac_ext >&5
17261 rm -rf conftest*
17262 eval "ac_cv_func_$ac_func=no"
17263fi
17264rm -f conftest*
17265fi
17266
17267if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17268 echo "$ac_t""yes" 1>&6
17269 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17270 cat >> confdefs.h <<EOF
17271#define $ac_tr_func 1
17272EOF
17273 cat >> confdefs.h <<\EOF
17274#define HAVE_INET_ATON 1
17275EOF
17276
17277else
17278 echo "$ac_t""no" 1>&6
17279 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
17280echo "configure:17281: checking for inet_aton in -l$INET_LINK" >&5
17281ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
17282if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17283 echo $ac_n "(cached) $ac_c" 1>&6
17284else
17285 ac_save_LIBS="$LIBS"
17286LIBS="-l$INET_LINK $LIBS"
17287cat > conftest.$ac_ext <<EOF
17288#line 17289 "configure"
17289#include "confdefs.h"
17290/* Override any gcc2 internal prototype to avoid an error. */
17291/* We use char because int might match the return type of a gcc2
17292 builtin and then its argument prototype would still apply. */
17293char inet_aton();
17294
17295int main() {
17296inet_aton()
17297; return 0; }
17298EOF
17299if { (eval echo configure:17300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17300 rm -rf conftest*
17301 eval "ac_cv_lib_$ac_lib_var=yes"
17302else
17303 echo "configure: failed program was:" >&5
17304 cat conftest.$ac_ext >&5
17305 rm -rf conftest*
17306 eval "ac_cv_lib_$ac_lib_var=no"
17307fi
17308rm -f conftest*
17309LIBS="$ac_save_LIBS"
17310
17311fi
17312if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17313 echo "$ac_t""yes" 1>&6
17314 cat >> confdefs.h <<\EOF
17315#define HAVE_INET_ATON 1
17316EOF
17317
17318else
17319 echo "$ac_t""no" 1>&6
17320fi
17321
17322
17323fi
17324done
17325
17326
17327if test "x$INET_LINK" != "x"; then
17328 cat >> confdefs.h <<\EOF
17329#define HAVE_INET_ADDR 1
17330EOF
17331
17332 INET_LINK=" -l$INET_LINK"
17333fi
17334
17335fi
17336
17337
17338cat > confcache <<\EOF
17339# This file is a shell script that caches the results of configure
17340# tests run on this system so they can be shared between configure
17341# scripts and configure runs. It is not useful on other systems.
17342# If it contains results you don't want to keep, you may remove or edit it.
17343#
17344# By default, configure uses ./config.cache as the cache file,
17345# creating it if it does not exist already. You can give configure
17346# the --cache-file=FILE option to use a different cache file; that is
17347# what configure does when it calls configure scripts in
17348# subdirectories, so they share the cache.
17349# Giving --cache-file=/dev/null disables caching, for debugging configure.
17350# config.status only pays attention to the cache file if you give it the
17351# --recheck option to rerun configure.
17352#
17353EOF
17354# The following way of writing the cache mishandles newlines in values,
17355# but we know of no workaround that is simple, portable, and efficient.
17356# So, don't put newlines in cache variables' values.
17357# Ultrix sh set writes to stderr and can't be redirected directly,
17358# and sets the high bit in the cache file unless we assign to the vars.
17359(set) 2>&1 |
17360 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17361 *ac_space=\ *)
17362 # `set' does not quote correctly, so add quotes (double-quote substitution
17363 # turns \\\\ into \\, and sed turns \\ into \).
17364 sed -n \
17365 -e "s/'/'\\\\''/g" \
17366 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17367 ;;
17368 *)
17369 # `set' quotes correctly as required by POSIX, so do not add quotes.
17370 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17371 ;;
17372 esac >> confcache
17373if cmp -s $cache_file confcache; then
17374 :
17375else
17376 if test -w $cache_file; then
17377 echo "updating cache $cache_file"
17378 cat confcache > $cache_file
17379 else
17380 echo "not updating unwritable cache $cache_file"
17381 fi
17382fi
17383rm -f confcache
17384
17385
17386
17387CPP_MT_FLAG=
17388if test "$TOOLKIT" != "MSW"; then
17389
17390
17391 THREADS_LINK=
17392 THREADS_CFLAGS=
17393
17394 if test "$wxUSE_THREADS" = "yes" ; then
17395 if test "$wxUSE_WINE" = 1 ; then
17396 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
17397 wxUSE_THREADS="no"
17398 elif test "$USE_BEOS" = 1; then
17399 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
17400 wxUSE_THREADS="no"
17401 fi
17402 fi
17403
17404 if test "$wxUSE_THREADS" = "yes" ; then
17405
17406
17407 THREAD_OPTS="-pthread"
17408 case "${host}" in
17409 *-*-solaris2* | *-*-sunos4* )
17410 if test "x$GCC" = "xyes"; then
17411 THREAD_OPTS="-pthreads $THREAD_OPTS"
17412 else
17413 THREAD_OPTS="-mt $THREAD_OPTS"
17414 fi
17415 ;;
17416 *-*-freebsd*)
17417 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
17418 ;;
17419 *-*-darwin*)
17420 THREAD_OPTS=""
17421 ;;
17422 *-*-aix*)
17423 THREAD_OPTS="pthreads"
17424 ;;
17425 esac
17426
17427 THREAD_OPTS="$THREAD_OPTS pthread none"
17428
17429 THREADS_OK=no
17430 for flag in $THREAD_OPTS; do
17431 case $flag in
17432 none)
17433 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
17434echo "configure:17435: checking whether pthreads work without any flags" >&5
17435 ;;
17436
17437 -*)
17438 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
17439echo "configure:17440: checking whether pthreads work with $flag" >&5
17440 THREADS_CFLAGS="$flag"
17441 ;;
17442
17443 *)
17444 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
17445echo "configure:17446: checking for the pthreads library -l$flag" >&5
17446 THREADS_LINK="-l$flag"
17447 ;;
17448 esac
17449
17450 save_LIBS="$LIBS"
17451 save_CFLAGS="$CFLAGS"
17452 LIBS="$THREADS_LINK $LIBS"
17453 CFLAGS="$THREADS_CFLAGS $CFLAGS"
17454
17455 cat > conftest.$ac_ext <<EOF
17456#line 17457 "configure"
17457#include "confdefs.h"
17458#include <pthread.h>
17459int main() {
17460pthread_create(0,0,0,0);
17461; return 0; }
17462EOF
17463if { (eval echo configure:17464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17464 rm -rf conftest*
17465 THREADS_OK=yes
17466else
17467 echo "configure: failed program was:" >&5
17468 cat conftest.$ac_ext >&5
17469fi
17470rm -f conftest*
17471
17472 LIBS="$save_LIBS"
17473 CFLAGS="$save_CFLAGS"
17474
17475 echo "$ac_t""$THREADS_OK" 1>&6
17476 if test "x$THREADS_OK" = "xyes"; then
17477 break;
17478 fi
17479
17480 THREADS_LINK=""
17481 THREADS_CFLAGS=""
17482 done
17483
17484 if test "x$THREADS_OK" != "xyes"; then
17485 wxUSE_THREADS=no
17486 echo "configure: warning: No thread support on this system... disabled" 1>&2
17487 else
17488 LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS"
17489
17490 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
17491echo "configure:17492: checking if more special flags are required for pthreads" >&5
17492 flag=no
17493 case "${host}" in
17494 *-aix* | *-freebsd*)
17495 flag="-D_THREAD_SAFE"
17496 ;;
17497 *solaris* | alpha*-osf*)
17498 flag="-D_REENTRANT"
17499 ;;
17500 esac
17501 echo "$ac_t""${flag}" 1>&6
17502 if test "x$flag" != xno; then
17503 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
17504 fi
17505
17506 if test "x$THREADS_CFLAGS" != "x"; then
17507 CFLAGS="$CFLAGS $THREADS_CFLAGS"
17508 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
17509 fi
17510 fi
17511 fi
17512
17513 if test "$wxUSE_THREADS" = "yes" ; then
17514 for ac_func in thr_setconcurrency
17515do
17516echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17517echo "configure:17518: checking for $ac_func" >&5
17518if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17519 echo $ac_n "(cached) $ac_c" 1>&6
17520else
17521 cat > conftest.$ac_ext <<EOF
17522#line 17523 "configure"
17523#include "confdefs.h"
17524/* System header to define __stub macros and hopefully few prototypes,
17525 which can conflict with char $ac_func(); below. */
17526#include <assert.h>
17527/* Override any gcc2 internal prototype to avoid an error. */
17528/* We use char because int might match the return type of a gcc2
17529 builtin and then its argument prototype would still apply. */
17530char $ac_func();
17531
17532int main() {
17533
17534/* The GNU C library defines this for functions which it implements
17535 to always fail with ENOSYS. Some functions are actually named
17536 something starting with __ and the normal name is an alias. */
17537#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17538choke me
17539#else
17540$ac_func();
17541#endif
17542
17543; return 0; }
17544EOF
17545if { (eval echo configure:17546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17546 rm -rf conftest*
17547 eval "ac_cv_func_$ac_func=yes"
17548else
17549 echo "configure: failed program was:" >&5
17550 cat conftest.$ac_ext >&5
17551 rm -rf conftest*
17552 eval "ac_cv_func_$ac_func=no"
17553fi
17554rm -f conftest*
17555fi
17556
17557if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17558 echo "$ac_t""yes" 1>&6
17559 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17560 cat >> confdefs.h <<EOF
17561#define $ac_tr_func 1
17562EOF
17563
17564else
17565 echo "$ac_t""no" 1>&6
17566fi
17567done
17568
17569
17570 for ac_hdr in sched.h
17571do
17572ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17573echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17574echo "configure:17575: checking for $ac_hdr" >&5
17575if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17576 echo $ac_n "(cached) $ac_c" 1>&6
17577else
17578 cat > conftest.$ac_ext <<EOF
17579#line 17580 "configure"
17580#include "confdefs.h"
17581#include <$ac_hdr>
17582EOF
17583ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17584{ (eval echo configure:17585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17585ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17586if test -z "$ac_err"; then
17587 rm -rf conftest*
17588 eval "ac_cv_header_$ac_safe=yes"
17589else
17590 echo "$ac_err" >&5
17591 echo "configure: failed program was:" >&5
17592 cat conftest.$ac_ext >&5
17593 rm -rf conftest*
17594 eval "ac_cv_header_$ac_safe=no"
17595fi
17596rm -f conftest*
17597fi
17598if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17599 echo "$ac_t""yes" 1>&6
17600 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17601 cat >> confdefs.h <<EOF
17602#define $ac_tr_hdr 1
17603EOF
17604
17605else
17606 echo "$ac_t""no" 1>&6
17607fi
17608done
17609
17610 if test "$ac_cv_header_sched_h" = "yes"; then
17611 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
17612echo "configure:17613: checking for sched_yield" >&5
17613if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
17614 echo $ac_n "(cached) $ac_c" 1>&6
17615else
17616 cat > conftest.$ac_ext <<EOF
17617#line 17618 "configure"
17618#include "confdefs.h"
17619/* System header to define __stub macros and hopefully few prototypes,
17620 which can conflict with char sched_yield(); below. */
17621#include <assert.h>
17622/* Override any gcc2 internal prototype to avoid an error. */
17623/* We use char because int might match the return type of a gcc2
17624 builtin and then its argument prototype would still apply. */
17625char sched_yield();
17626
17627int main() {
17628
17629/* The GNU C library defines this for functions which it implements
17630 to always fail with ENOSYS. Some functions are actually named
17631 something starting with __ and the normal name is an alias. */
17632#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
17633choke me
17634#else
17635sched_yield();
17636#endif
17637
17638; return 0; }
17639EOF
17640if { (eval echo configure:17641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17641 rm -rf conftest*
17642 eval "ac_cv_func_sched_yield=yes"
17643else
17644 echo "configure: failed program was:" >&5
17645 cat conftest.$ac_ext >&5
17646 rm -rf conftest*
17647 eval "ac_cv_func_sched_yield=no"
17648fi
17649rm -f conftest*
17650fi
17651
17652if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
17653 echo "$ac_t""yes" 1>&6
17654 cat >> confdefs.h <<\EOF
17655#define HAVE_SCHED_YIELD 1
17656EOF
17657
17658else
17659 echo "$ac_t""no" 1>&6
17660
17661 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
17662echo "configure:17663: checking for sched_yield in -lposix4" >&5
17663ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17664if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17665 echo $ac_n "(cached) $ac_c" 1>&6
17666else
17667 ac_save_LIBS="$LIBS"
17668LIBS="-lposix4 $LIBS"
17669cat > conftest.$ac_ext <<EOF
17670#line 17671 "configure"
17671#include "confdefs.h"
17672/* Override any gcc2 internal prototype to avoid an error. */
17673/* We use char because int might match the return type of a gcc2
17674 builtin and then its argument prototype would still apply. */
17675char sched_yield();
17676
17677int main() {
17678sched_yield()
17679; return 0; }
17680EOF
17681if { (eval echo configure:17682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17682 rm -rf conftest*
17683 eval "ac_cv_lib_$ac_lib_var=yes"
17684else
17685 echo "configure: failed program was:" >&5
17686 cat conftest.$ac_ext >&5
17687 rm -rf conftest*
17688 eval "ac_cv_lib_$ac_lib_var=no"
17689fi
17690rm -f conftest*
17691LIBS="$ac_save_LIBS"
17692
17693fi
17694if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17695 echo "$ac_t""yes" 1>&6
17696 cat >> confdefs.h <<\EOF
17697#define HAVE_SCHED_YIELD 1
17698EOF
17699 POSIX4_LINK=" -lposix4"
17700else
17701 echo "$ac_t""no" 1>&6
17702echo "configure: warning: wxThread::Yield will not work properly" 1>&2
17703
17704fi
17705
17706
17707
17708fi
17709
17710 fi
17711
17712 HAVE_PRIOR_FUNCS=0
17713 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
17714echo "configure:17715: checking for pthread_attr_getschedpolicy" >&5
17715if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
17716 echo $ac_n "(cached) $ac_c" 1>&6
17717else
17718 cat > conftest.$ac_ext <<EOF
17719#line 17720 "configure"
17720#include "confdefs.h"
17721/* System header to define __stub macros and hopefully few prototypes,
17722 which can conflict with char pthread_attr_getschedpolicy(); below. */
17723#include <assert.h>
17724/* Override any gcc2 internal prototype to avoid an error. */
17725/* We use char because int might match the return type of a gcc2
17726 builtin and then its argument prototype would still apply. */
17727char pthread_attr_getschedpolicy();
17728
17729int main() {
17730
17731/* The GNU C library defines this for functions which it implements
17732 to always fail with ENOSYS. Some functions are actually named
17733 something starting with __ and the normal name is an alias. */
17734#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
17735choke me
17736#else
17737pthread_attr_getschedpolicy();
17738#endif
17739
17740; return 0; }
17741EOF
17742if { (eval echo configure:17743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17743 rm -rf conftest*
17744 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
17745else
17746 echo "configure: failed program was:" >&5
17747 cat conftest.$ac_ext >&5
17748 rm -rf conftest*
17749 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
17750fi
17751rm -f conftest*
17752fi
17753
17754if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
17755 echo "$ac_t""yes" 1>&6
17756 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
17757echo "configure:17758: checking for pthread_attr_setschedparam" >&5
17758if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
17759 echo $ac_n "(cached) $ac_c" 1>&6
17760else
17761 cat > conftest.$ac_ext <<EOF
17762#line 17763 "configure"
17763#include "confdefs.h"
17764/* System header to define __stub macros and hopefully few prototypes,
17765 which can conflict with char pthread_attr_setschedparam(); below. */
17766#include <assert.h>
17767/* Override any gcc2 internal prototype to avoid an error. */
17768/* We use char because int might match the return type of a gcc2
17769 builtin and then its argument prototype would still apply. */
17770char pthread_attr_setschedparam();
17771
17772int main() {
17773
17774/* The GNU C library defines this for functions which it implements
17775 to always fail with ENOSYS. Some functions are actually named
17776 something starting with __ and the normal name is an alias. */
17777#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
17778choke me
17779#else
17780pthread_attr_setschedparam();
17781#endif
17782
17783; return 0; }
17784EOF
17785if { (eval echo configure:17786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17786 rm -rf conftest*
17787 eval "ac_cv_func_pthread_attr_setschedparam=yes"
17788else
17789 echo "configure: failed program was:" >&5
17790 cat conftest.$ac_ext >&5
17791 rm -rf conftest*
17792 eval "ac_cv_func_pthread_attr_setschedparam=no"
17793fi
17794rm -f conftest*
17795fi
17796
17797if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
17798 echo "$ac_t""yes" 1>&6
17799 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
17800echo "configure:17801: checking for sched_get_priority_max" >&5
17801if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
17802 echo $ac_n "(cached) $ac_c" 1>&6
17803else
17804 cat > conftest.$ac_ext <<EOF
17805#line 17806 "configure"
17806#include "confdefs.h"
17807/* System header to define __stub macros and hopefully few prototypes
17808else
17809 echo "$ac_t""no" 1>&6
17810which can conflict with char sched_get_priority_max(); below. */
17811#include <assert.h>
17812/* Override any gcc2 internal prototype to avoid an error. */
17813/* We use char because int might match the return type of a gcc2
17814 builtin and then its argument prototype would still apply. */
17815char sched_get_priority_max();
17816
17817int main() {
17818
17819/* The GNU C library defines this for functions which it implements
17820 to always fail with ENOSYS. Some functions are actually named
17821 something starting with __ and the normal name is an alias. */
17822#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
17823choke me
17824#else
17825sched_get_priority_max();
17826#endif
17827
17828; return 0; }
17829EOF
17830if { (eval echo configure:17831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17831 rm -rf conftest*
17832 eval "ac_cv_func_sched_get_priority_max=yes"
17833else
17834 echo "configure: failed program was:" >&5
17835 cat conftest.$ac_ext >&5
17836 rm -rf conftest*
17837 eval "ac_cv_func_sched_get_priority_max=no"
17838fi
17839rm -f conftest*
17840fi
17841
17842if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
17843 echo "$ac_t""yes" 1>&6
17844 HAVE_PRIOR_FUNCS=1
17845else
17846 echo "$ac_t""no" 1>&6
17847echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
17848echo "configure:17849: checking for sched_get_priority_max in -lposix4" >&5
17849ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
17850if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17851 echo $ac_n "(cached) $ac_c" 1>&6
17852else
17853 ac_save_LIBS="$LIBS"
17854LIBS="-lposix4 $LIBS"
17855cat > conftest.$ac_ext <<EOF
17856#line 17857 "configure"
17857#include "confdefs.h"
17858/* Override any gcc2 internal prototype to avoid an error. */
17859/* We use char because int might match the return type of a gcc2
17860 builtin and then its argument prototype would still apply. */
17861char sched_get_priority_max();
17862
17863int main() {
17864sched_get_priority_max()
17865; return 0; }
17866EOF
17867if { (eval echo configure:17868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17868 rm -rf conftest*
17869 eval "ac_cv_lib_$ac_lib_var=yes"
17870else
17871 echo "configure: failed program was:" >&5
17872 cat conftest.$ac_ext >&5
17873 rm -rf conftest*
17874 eval "ac_cv_lib_$ac_lib_var=no"
17875fi
17876rm -f conftest*
17877LIBS="$ac_save_LIBS"
17878
17879fi
17880if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17881 echo "$ac_t""yes" 1>&6
17882
17883 HAVE_PRIOR_FUNCS=1
17884 POSIX4_LINK=" -lposix4"
17885
17886else
17887 echo "$ac_t""no" 1>&6
17888fi
17889
17890
17891fi
17892
17893
17894else
17895 echo "$ac_t""no" 1>&6
17896fi
17897
17898
17899fi
17900
17901
17902 if test "$HAVE_PRIOR_FUNCS" = 1; then
17903 cat >> confdefs.h <<\EOF
17904#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
17905EOF
17906
17907 else
17908 echo "configure: warning: Setting thread priority will not work" 1>&2
17909 fi
17910
17911 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
17912echo "configure:17913: checking for pthread_cancel" >&5
17913if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
17914 echo $ac_n "(cached) $ac_c" 1>&6
17915else
17916 cat > conftest.$ac_ext <<EOF
17917#line 17918 "configure"
17918#include "confdefs.h"
17919/* System header to define __stub macros and hopefully few prototypes,
17920 which can conflict with char pthread_cancel(); below. */
17921#include <assert.h>
17922/* Override any gcc2 internal prototype to avoid an error. */
17923/* We use char because int might match the return type of a gcc2
17924 builtin and then its argument prototype would still apply. */
17925char pthread_cancel();
17926
17927int main() {
17928
17929/* The GNU C library defines this for functions which it implements
17930 to always fail with ENOSYS. Some functions are actually named
17931 something starting with __ and the normal name is an alias. */
17932#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
17933choke me
17934#else
17935pthread_cancel();
17936#endif
17937
17938; return 0; }
17939EOF
17940if { (eval echo configure:17941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17941 rm -rf conftest*
17942 eval "ac_cv_func_pthread_cancel=yes"
17943else
17944 echo "configure: failed program was:" >&5
17945 cat conftest.$ac_ext >&5
17946 rm -rf conftest*
17947 eval "ac_cv_func_pthread_cancel=no"
17948fi
17949rm -f conftest*
17950fi
17951
17952if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
17953 echo "$ac_t""yes" 1>&6
17954 cat >> confdefs.h <<\EOF
17955#define HAVE_PTHREAD_CANCEL 1
17956EOF
17957
17958else
17959 echo "$ac_t""no" 1>&6
17960echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
17961fi
17962
17963
17964 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
17965echo "configure:17966: checking for pthread_cleanup_push/pop" >&5
17966if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
17967 echo $ac_n "(cached) $ac_c" 1>&6
17968else
17969
17970 cat > conftest.$ac_ext <<EOF
17971#line 17972 "configure"
17972#include "confdefs.h"
17973#include <pthread.h>
17974int main() {
17975
17976 pthread_cleanup_push(NULL, NULL);
17977 pthread_cleanup_pop(0);
17978
17979; return 0; }
17980EOF
17981if { (eval echo configure:17982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17982 rm -rf conftest*
17983
17984 wx_cv_func_pthread_cleanup_push=yes
17985
17986else
17987 echo "configure: failed program was:" >&5
17988 cat conftest.$ac_ext >&5
17989 rm -rf conftest*
17990
17991 wx_cv_func_pthread_cleanup_push=no
17992
17993fi
17994rm -f conftest*
17995
17996fi
17997
17998echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
17999
18000 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
18001 cat >> confdefs.h <<\EOF
18002#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
18003EOF
18004
18005 fi
18006
18007
18008 if test "x$wx_cv_lib_glibc21" = "xyes"; then
18009 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
18010 fi
18011
18012 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
18013echo "configure:18014: checking for pthread_mutexattr_t" >&5
18014if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
18015 echo $ac_n "(cached) $ac_c" 1>&6
18016else
18017
18018 cat > conftest.$ac_ext <<EOF
18019#line 18020 "configure"
18020#include "confdefs.h"
18021#include <pthread.h>
18022int main() {
18023
18024 pthread_mutexattr_t attr;
18025 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
18026
18027; return 0; }
18028EOF
18029if { (eval echo configure:18030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18030 rm -rf conftest*
18031
18032 wx_cv_type_pthread_mutexattr_t=yes
18033
18034else
18035 echo "configure: failed program was:" >&5
18036 cat conftest.$ac_ext >&5
18037 rm -rf conftest*
18038
18039 wx_cv_type_pthread_mutexattr_t=no
18040
18041
18042fi
18043rm -f conftest*
18044
18045fi
18046
18047echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
18048
18049 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
18050 cat >> confdefs.h <<\EOF
18051#define HAVE_PTHREAD_MUTEXATTR_T 1
18052EOF
18053
18054 else
18055 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
18056echo "configure:18057: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
18057if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
18058 echo $ac_n "(cached) $ac_c" 1>&6
18059else
18060
18061 cat > conftest.$ac_ext <<EOF
18062#line 18063 "configure"
18063#include "confdefs.h"
18064#include <pthread.h>
18065int main() {
18066
18067 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
18068
18069; return 0; }
18070EOF
18071if { (eval echo configure:18072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18072 rm -rf conftest*
18073
18074 wx_cv_type_pthread_rec_mutex_init=yes
18075
18076else
18077 echo "configure: failed program was:" >&5
18078 cat conftest.$ac_ext >&5
18079 rm -rf conftest*
18080
18081 wx_cv_type_pthread_rec_mutex_init=no
18082
18083
18084fi
18085rm -f conftest*
18086
18087fi
18088
18089echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
18090 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
18091 cat >> confdefs.h <<\EOF
18092#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
18093EOF
18094
18095 else
18096 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
18097 fi
18098 fi
18099 fi
18100
18101fi
18102
18103if test "$wxUSE_THREADS" = "yes"; then
18104 cat >> confdefs.h <<\EOF
18105#define wxUSE_THREADS 1
18106EOF
18107
18108
18109 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
18110else
18111 if test "$ac_cv_func_strtok_r" = "yes"; then
18112 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
18113echo "configure:18114: checking if -D_REENTRANT is needed" >&5
18114 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
18115 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
18116 echo "$ac_t""yes" 1>&6
18117 else
18118 echo "$ac_t""no" 1>&6
18119 fi
18120 fi
18121fi
18122
18123if test "$WXGTK20" = 1 ; then
18124 cat >> confdefs.h <<EOF
18125#define __WXGTK20__ $WXGTK20
18126EOF
18127
18128 WXGTK12=1
18129fi
18130
18131if test "$WXGTK12" = 1 ; then
18132 cat >> confdefs.h <<EOF
18133#define __WXGTK12__ $WXGTK12
18134EOF
18135
18136fi
18137
18138if test "$WXGTK127" = 1 ; then
18139 cat >> confdefs.h <<EOF
18140#define __WXGTK127__ $WXGTK127
18141EOF
18142
18143fi
18144
18145WXDEBUG=
18146
18147if test "$wxUSE_DEBUG_INFO" = "yes" ; then
18148 WXDEBUG="-g"
18149 wxUSE_OPTIMISE=no
18150fi
18151
18152if test "$wxUSE_DEBUG_GDB" = "yes" ; then
18153 wxUSE_DEBUG_INFO=yes
18154 WXDEBUG="-ggdb"
18155fi
18156
18157if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
18158 cat >> confdefs.h <<\EOF
18159#define WXDEBUG 1
18160EOF
18161
18162 WXDEBUG_DEFINE="-D__WXDEBUG__"
18163else
18164 if test "$wxUSE_GTK" = 1 ; then
18165 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
18166 fi
18167fi
18168
18169if test "$wxUSE_MEM_TRACING" = "yes" ; then
18170 cat >> confdefs.h <<\EOF
18171#define wxUSE_MEMORY_TRACING 1
18172EOF
18173
18174 cat >> confdefs.h <<\EOF
18175#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
18176EOF
18177
18178 cat >> confdefs.h <<\EOF
18179#define wxUSE_DEBUG_NEW_ALWAYS 1
18180EOF
18181
18182 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
18183fi
18184
18185if test "$wxUSE_DMALLOC" = "yes" ; then
18186 DMALLOC_LIBS="-ldmalloc"
18187fi
18188
18189PROFILE=
18190if test "$wxUSE_PROFILE" = "yes" ; then
18191 PROFILE=" -pg"
18192fi
18193
18194CODE_GEN_FLAGS=
18195CODE_GEN_FLAGS_CXX=
18196if test "$GCC" = "yes" ; then
18197 if test "$wxUSE_NO_RTTI" = "yes" ; then
18198 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
18199 fi
18200 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
18201 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
18202 fi
18203 if test "$wxUSE_PERMISSIVE" = "yes" ; then
18204 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
18205 fi
18206 if test "$USE_WIN32" = 1 ; then
18207 # I'm not even really sure what this was ever added to solve,
18208 # but someone added it for mingw native builds, so I guess
18209 # they had a reason, right??
18210 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
18211 fi
18212
18213 case "${host}" in
18214 powerpc*-*-aix* )
18215 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
18216 ;;
18217 esac
18218fi
18219
18220if test "$wxUSE_OPTIMISE" = "no" ; then
18221 OPTIMISE=
18222else
18223 if test "$GCC" = yes ; then
18224 OPTIMISE="-O2"
18225 case "${host}" in
18226 i586-*-*|i686-*-* )
18227 OPTIMISE="${OPTIMISE} "
18228 ;;
18229 esac
18230 else
18231 OPTIMISE="-O"
18232 fi
18233fi
18234
18235if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
18236 cat >> confdefs.h <<\EOF
18237#define WXWIN_COMPATIBILITY_2 1
18238EOF
18239
18240
18241 WXWIN_COMPATIBILITY_2_2="yes"
18242fi
18243
18244if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
18245 cat >> confdefs.h <<\EOF
18246#define WXWIN_COMPATIBILITY_2_2 1
18247EOF
18248
18249fi
18250
18251
18252if test "$wxUSE_GUI" = "yes"; then
18253 cat >> confdefs.h <<\EOF
18254#define wxUSE_GUI 1
18255EOF
18256
18257
18258 else
18259 cat >> confdefs.h <<\EOF
18260#define wxUSE_NOGUI 1
18261EOF
18262
18263fi
18264
18265
18266if test "$wxUSE_UNIX" = "yes"; then
18267 cat >> confdefs.h <<\EOF
18268#define wxUSE_UNIX 1
18269EOF
18270
18271fi
18272
18273
18274if test "$wxUSE_APPLE_IEEE" = "yes"; then
18275 cat >> confdefs.h <<\EOF
18276#define wxUSE_APPLE_IEEE 1
18277EOF
18278
18279fi
18280
18281if test "$wxUSE_TIMER" = "yes"; then
18282 cat >> confdefs.h <<\EOF
18283#define wxUSE_TIMER 1
18284EOF
18285
18286fi
18287
18288if test "$wxUSE_WAVE" = "yes"; then
18289 cat >> confdefs.h <<\EOF
18290#define wxUSE_WAVE 1
18291EOF
18292
18293fi
18294
18295if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
18296 cat >> confdefs.h <<\EOF
18297#define wxUSE_CMDLINE_PARSER 1
18298EOF
18299
18300fi
18301
18302if test "$wxUSE_STOPWATCH" = "yes"; then
18303 cat >> confdefs.h <<\EOF
18304#define wxUSE_STOPWATCH 1
18305EOF
18306
18307fi
18308
18309if test "$wxUSE_DATETIME" = "yes"; then
18310 cat >> confdefs.h <<\EOF
18311#define wxUSE_DATETIME 1
18312EOF
18313
18314fi
18315
18316if test "$wxUSE_TIMEDATE" = "yes"; then
18317 cat >> confdefs.h <<\EOF
18318#define wxUSE_TIMEDATE 1
18319EOF
18320
18321fi
18322
18323if test "$wxUSE_FILE" = "yes"; then
18324 cat >> confdefs.h <<\EOF
18325#define wxUSE_FILE 1
18326EOF
18327
18328fi
18329
18330if test "$wxUSE_FFILE" = "yes"; then
18331 cat >> confdefs.h <<\EOF
18332#define wxUSE_FFILE 1
18333EOF
18334
18335fi
18336
18337if test "$wxUSE_FILESYSTEM" = "yes"; then
18338 cat >> confdefs.h <<\EOF
18339#define wxUSE_FILESYSTEM 1
18340EOF
18341
18342fi
18343
18344if test "$wxUSE_FS_INET" = "yes"; then
18345 cat >> confdefs.h <<\EOF
18346#define wxUSE_FS_INET 1
18347EOF
18348
18349fi
18350
18351if test "$wxUSE_FS_ZIP" = "yes"; then
18352 cat >> confdefs.h <<\EOF
18353#define wxUSE_FS_ZIP 1
18354EOF
18355
18356fi
18357
18358if test "$wxUSE_ZIPSTREAM" = "yes"; then
18359 cat >> confdefs.h <<\EOF
18360#define wxUSE_ZIPSTREAM 1
18361EOF
18362
18363fi
18364
18365if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18366 cat >> confdefs.h <<\EOF
18367#define wxUSE_ON_FATAL_EXCEPTION 1
18368EOF
18369
18370fi
18371
18372if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
18373 cat >> confdefs.h <<\EOF
18374#define wxUSE_SNGLINST_CHECKER 1
18375EOF
18376
18377fi
18378
18379if test "$wxUSE_BUSYINFO" = "yes"; then
18380 cat >> confdefs.h <<\EOF
18381#define wxUSE_BUSYINFO 1
18382EOF
18383
18384fi
18385
18386if test "$wxUSE_STD_IOSTREAM" = "yes"; then
18387 cat >> confdefs.h <<\EOF
18388#define wxUSE_STD_IOSTREAM 1
18389EOF
18390
18391fi
18392
18393if test "$wxUSE_TEXTBUFFER" = "yes"; then
18394 cat >> confdefs.h <<\EOF
18395#define wxUSE_TEXTBUFFER 1
18396EOF
18397
18398fi
18399
18400if test "$wxUSE_TEXTFILE" = "yes"; then
18401 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
18402 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
18403 else
18404 cat >> confdefs.h <<\EOF
18405#define wxUSE_TEXTFILE 1
18406EOF
18407
18408 fi
18409fi
18410
18411if test "$wxUSE_CONFIG" = "yes" ; then
18412 if test "$wxUSE_TEXTFILE" != "yes"; then
18413 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
18414 else
18415 cat >> confdefs.h <<\EOF
18416#define wxUSE_CONFIG 1
18417EOF
18418
18419 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18420 fi
18421fi
18422
18423if test "$wxUSE_INTL" = "yes" ; then
18424 if test "$wxUSE_FILE" != "yes"; then
18425 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
18426 else
18427 cat >> confdefs.h <<\EOF
18428#define wxUSE_INTL 1
18429EOF
18430
18431 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
18432 GUIDIST="$GUIDIST INTL_DIST"
18433 fi
18434fi
18435
18436if test "$wxUSE_LOG" = "yes"; then
18437 cat >> confdefs.h <<\EOF
18438#define wxUSE_LOG 1
18439EOF
18440
18441
18442 if test "$wxUSE_LOGGUI" = "yes"; then
18443 cat >> confdefs.h <<\EOF
18444#define wxUSE_LOGGUI 1
18445EOF
18446
18447 fi
18448
18449 if test "$wxUSE_LOGWINDOW" = "yes"; then
18450 cat >> confdefs.h <<\EOF
18451#define wxUSE_LOGWINDOW 1
18452EOF
18453
18454 fi
18455
18456 if test "$wxUSE_LOGDIALOG" = "yes"; then
18457 cat >> confdefs.h <<\EOF
18458#define wxUSE_LOG_DIALOG 1
18459EOF
18460
18461 fi
18462fi
18463
18464if test "$wxUSE_LONGLONG" = "yes"; then
18465 cat >> confdefs.h <<\EOF
18466#define wxUSE_LONGLONG 1
18467EOF
18468
18469fi
18470
18471if test "$wxUSE_GEOMETRY" = "yes"; then
18472 cat >> confdefs.h <<\EOF
18473#define wxUSE_GEOMETRY 1
18474EOF
18475
18476fi
18477
18478if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
18479 cat >> confdefs.h <<\EOF
18480#define wxUSE_DIALUP_MANAGER 1
18481EOF
18482
18483 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
18484fi
18485
18486if test "$wxUSE_STREAMS" = "yes" ; then
18487 cat >> confdefs.h <<\EOF
18488#define wxUSE_STREAMS 1
18489EOF
18490
18491fi
18492
18493
18494if test "$wxUSE_DATETIME" = "yes"; then
18495 for ac_func in strptime
18496do
18497echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18498echo "configure:18499: checking for $ac_func" >&5
18499if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18500 echo $ac_n "(cached) $ac_c" 1>&6
18501else
18502 cat > conftest.$ac_ext <<EOF
18503#line 18504 "configure"
18504#include "confdefs.h"
18505/* System header to define __stub macros and hopefully few prototypes,
18506 which can conflict with char $ac_func(); below. */
18507#include <assert.h>
18508/* Override any gcc2 internal prototype to avoid an error. */
18509/* We use char because int might match the return type of a gcc2
18510 builtin and then its argument prototype would still apply. */
18511char $ac_func();
18512
18513int main() {
18514
18515/* The GNU C library defines this for functions which it implements
18516 to always fail with ENOSYS. Some functions are actually named
18517 something starting with __ and the normal name is an alias. */
18518#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18519choke me
18520#else
18521$ac_func();
18522#endif
18523
18524; return 0; }
18525EOF
18526if { (eval echo configure:18527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18527 rm -rf conftest*
18528 eval "ac_cv_func_$ac_func=yes"
18529else
18530 echo "configure: failed program was:" >&5
18531 cat conftest.$ac_ext >&5
18532 rm -rf conftest*
18533 eval "ac_cv_func_$ac_func=no"
18534fi
18535rm -f conftest*
18536fi
18537
18538if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18539 echo "$ac_t""yes" 1>&6
18540 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18541 cat >> confdefs.h <<EOF
18542#define $ac_tr_func 1
18543EOF
18544
18545else
18546 echo "$ac_t""no" 1>&6
18547fi
18548done
18549
18550
18551 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
18552echo "configure:18553: checking for timezone variable in <time.h>" >&5
18553if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18554 echo $ac_n "(cached) $ac_c" 1>&6
18555else
18556
18557 cat > conftest.$ac_ext <<EOF
18558#line 18559 "configure"
18559#include "confdefs.h"
18560
18561 #include <time.h>
18562
18563int main() {
18564
18565 int tz;
18566 tz = timezone;
18567
18568; return 0; }
18569EOF
18570if { (eval echo configure:18571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18571 rm -rf conftest*
18572
18573 wx_cv_var_timezone=timezone
18574
18575else
18576 echo "configure: failed program was:" >&5
18577 cat conftest.$ac_ext >&5
18578 rm -rf conftest*
18579
18580 cat > conftest.$ac_ext <<EOF
18581#line 18582 "configure"
18582#include "confdefs.h"
18583
18584 #include <time.h>
18585
18586int main() {
18587
18588 int tz;
18589 tz = _timezone;
18590
18591; return 0; }
18592EOF
18593if { (eval echo configure:18594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18594 rm -rf conftest*
18595
18596 wx_cv_var_timezone=_timezone
18597
18598else
18599 echo "configure: failed program was:" >&5
18600 cat conftest.$ac_ext >&5
18601 rm -rf conftest*
18602
18603 cat > conftest.$ac_ext <<EOF
18604#line 18605 "configure"
18605#include "confdefs.h"
18606
18607 #include <time.h>
18608
18609int main() {
18610
18611 int tz;
18612 tz = __timezone;
18613
18614; return 0; }
18615EOF
18616if { (eval echo configure:18617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18617 rm -rf conftest*
18618
18619 wx_cv_var_timezone=__timezone
18620
18621else
18622 echo "configure: failed program was:" >&5
18623 cat conftest.$ac_ext >&5
18624 rm -rf conftest*
18625
18626 if test "$USE_DOS" = 0 ; then
18627 echo "configure: warning: no timezone variable" 1>&2
18628 fi
18629
18630
18631fi
18632rm -f conftest*
18633
18634
18635fi
18636rm -f conftest*
18637
18638
18639fi
18640rm -f conftest*
18641
18642
18643fi
18644
18645echo "$ac_t""$wx_cv_var_timezone" 1>&6
18646
18647 if test "x$wx_cv_var_timezone" != x ; then
18648 cat >> confdefs.h <<EOF
18649#define WX_TIMEZONE $wx_cv_var_timezone
18650EOF
18651
18652 fi
18653
18654 for ac_func in localtime
18655do
18656echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18657echo "configure:18658: checking for $ac_func" >&5
18658if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18659 echo $ac_n "(cached) $ac_c" 1>&6
18660else
18661 cat > conftest.$ac_ext <<EOF
18662#line 18663 "configure"
18663#include "confdefs.h"
18664/* System header to define __stub macros and hopefully few prototypes,
18665 which can conflict with char $ac_func(); below. */
18666#include <assert.h>
18667/* Override any gcc2 internal prototype to avoid an error. */
18668/* We use char because int might match the return type of a gcc2
18669 builtin and then its argument prototype would still apply. */
18670char $ac_func();
18671
18672int main() {
18673
18674/* The GNU C library defines this for functions which it implements
18675 to always fail with ENOSYS. Some functions are actually named
18676 something starting with __ and the normal name is an alias. */
18677#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18678choke me
18679#else
18680$ac_func();
18681#endif
18682
18683; return 0; }
18684EOF
18685if { (eval echo configure:18686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18686 rm -rf conftest*
18687 eval "ac_cv_func_$ac_func=yes"
18688else
18689 echo "configure: failed program was:" >&5
18690 cat conftest.$ac_ext >&5
18691 rm -rf conftest*
18692 eval "ac_cv_func_$ac_func=no"
18693fi
18694rm -f conftest*
18695fi
18696
18697if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18698 echo "$ac_t""yes" 1>&6
18699 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18700 cat >> confdefs.h <<EOF
18701#define $ac_tr_func 1
18702EOF
18703
18704else
18705 echo "$ac_t""no" 1>&6
18706fi
18707done
18708
18709
18710 if test "$ac_cv_func_localtime" = "yes"; then
18711 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
18712echo "configure:18713: checking for tm_gmtoff in struct tm" >&5
18713if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18714 echo $ac_n "(cached) $ac_c" 1>&6
18715else
18716
18717 cat > conftest.$ac_ext <<EOF
18718#line 18719 "configure"
18719#include "confdefs.h"
18720
18721 #include <time.h>
18722
18723int main() {
18724
18725 struct tm tm;
18726 tm.tm_gmtoff++;
18727
18728; return 0; }
18729EOF
18730if { (eval echo configure:18731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18731 rm -rf conftest*
18732
18733 wx_cv_struct_tm_has_gmtoff=yes
18734
18735else
18736 echo "configure: failed program was:" >&5
18737 cat conftest.$ac_ext >&5
18738 rm -rf conftest*
18739 wx_cv_struct_tm_has_gmtoff=no
18740
18741fi
18742rm -f conftest*
18743
18744fi
18745
18746echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
18747 fi
18748
18749 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
18750 cat >> confdefs.h <<\EOF
18751#define WX_GMTOFF_IN_TM 1
18752EOF
18753
18754 fi
18755
18756 for ac_func in gettimeofday ftime
18757do
18758echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18759echo "configure:18760: checking for $ac_func" >&5
18760if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18761 echo $ac_n "(cached) $ac_c" 1>&6
18762else
18763 cat > conftest.$ac_ext <<EOF
18764#line 18765 "configure"
18765#include "confdefs.h"
18766/* System header to define __stub macros and hopefully few prototypes,
18767 which can conflict with char $ac_func(); below. */
18768#include <assert.h>
18769/* Override any gcc2 internal prototype to avoid an error. */
18770/* We use char because int might match the return type of a gcc2
18771 builtin and then its argument prototype would still apply. */
18772char $ac_func();
18773
18774int main() {
18775
18776/* The GNU C library defines this for functions which it implements
18777 to always fail with ENOSYS. Some functions are actually named
18778 something starting with __ and the normal name is an alias. */
18779#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18780choke me
18781#else
18782$ac_func();
18783#endif
18784
18785; return 0; }
18786EOF
18787if { (eval echo configure:18788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18788 rm -rf conftest*
18789 eval "ac_cv_func_$ac_func=yes"
18790else
18791 echo "configure: failed program was:" >&5
18792 cat conftest.$ac_ext >&5
18793 rm -rf conftest*
18794 eval "ac_cv_func_$ac_func=no"
18795fi
18796rm -f conftest*
18797fi
18798
18799if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18800 echo "$ac_t""yes" 1>&6
18801 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18802 cat >> confdefs.h <<EOF
18803#define $ac_tr_func 1
18804EOF
18805 break
18806else
18807 echo "$ac_t""no" 1>&6
18808fi
18809done
18810
18811
18812 if test "$ac_cv_func_gettimeofday" = "yes"; then
18813 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
18814echo "configure:18815: checking whether gettimeofday takes two arguments" >&5
18815if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
18816 echo $ac_n "(cached) $ac_c" 1>&6
18817else
18818
18819
18820 ac_ext=C
18821# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18822ac_cpp='$CXXCPP $CPPFLAGS'
18823ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18824ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18825cross_compiling=$ac_cv_prog_cxx_cross
18826
18827
18828 cat > conftest.$ac_ext <<EOF
18829#line 18830 "configure"
18830#include "confdefs.h"
18831
18832 #include <sys/time.h>
18833 #include <unistd.h>
18834
18835int main() {
18836
18837 struct timeval tv;
18838 gettimeofday(&tv, NULL);
18839
18840; return 0; }
18841EOF
18842if { (eval echo configure:18843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18843 rm -rf conftest*
18844 wx_cv_func_gettimeofday_has_2_args=yes
18845else
18846 echo "configure: failed program was:" >&5
18847 cat conftest.$ac_ext >&5
18848 rm -rf conftest*
18849 cat > conftest.$ac_ext <<EOF
18850#line 18851 "configure"
18851#include "confdefs.h"
18852
18853 #include <sys/time.h>
18854 #include <unistd.h>
18855
18856int main() {
18857
18858 struct timeval tv;
18859 gettimeofday(&tv);
18860
18861; return 0; }
18862EOF
18863if { (eval echo configure:18864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18864 rm -rf conftest*
18865 wx_cv_func_gettimeofday_has_2_args=no
18866else
18867 echo "configure: failed program was:" >&5
18868 cat conftest.$ac_ext >&5
18869 rm -rf conftest*
18870
18871 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
18872 wx_cv_func_gettimeofday_has_2_args=unknown
18873
18874
18875fi
18876rm -f conftest*
18877
18878fi
18879rm -f conftest*
18880 ac_ext=c
18881# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18882ac_cpp='$CPP $CPPFLAGS'
18883ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18884ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18885cross_compiling=$ac_cv_prog_cc_cross
18886
18887
18888fi
18889
18890echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
18891
18892 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
18893 cat >> confdefs.h <<\EOF
18894#define WX_GETTIMEOFDAY_NO_TZ 1
18895EOF
18896
18897 fi
18898 fi
18899
18900 cat >> confdefs.h <<\EOF
18901#define wxUSE_TIMEDATE 1
18902EOF
18903
18904 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
18905fi
18906
18907
18908if test "$wxUSE_SOCKETS" = "yes"; then
18909 if test "$wxUSE_X11" = "1"; then
18910 echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2
18911 wxUSE_SOCKETS="no"
18912 fi
18913
18914 if test "$wxUSE_MGL" = "1"; then
18915 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
18916 wxUSE_SOCKETS="no"
18917 fi
18918fi
18919
18920if test "$wxUSE_SOCKETS" = "yes"; then
18921 if test "$TOOLKIT" != "MSW"; then
18922 echo $ac_n "checking for socket""... $ac_c" 1>&6
18923echo "configure:18924: checking for socket" >&5
18924if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
18925 echo $ac_n "(cached) $ac_c" 1>&6
18926else
18927 cat > conftest.$ac_ext <<EOF
18928#line 18929 "configure"
18929#include "confdefs.h"
18930/* System header to define __stub macros and hopefully few prototypes,
18931 which can conflict with char socket(); below. */
18932#include <assert.h>
18933/* Override any gcc2 internal prototype to avoid an error. */
18934/* We use char because int might match the return type of a gcc2
18935 builtin and then its argument prototype would still apply. */
18936char socket();
18937
18938int main() {
18939
18940/* The GNU C library defines this for functions which it implements
18941 to always fail with ENOSYS. Some functions are actually named
18942 something starting with __ and the normal name is an alias. */
18943#if defined (__stub_socket) || defined (__stub___socket)
18944choke me
18945#else
18946socket();
18947#endif
18948
18949; return 0; }
18950EOF
18951if { (eval echo configure:18952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18952 rm -rf conftest*
18953 eval "ac_cv_func_socket=yes"
18954else
18955 echo "configure: failed program was:" >&5
18956 cat conftest.$ac_ext >&5
18957 rm -rf conftest*
18958 eval "ac_cv_func_socket=no"
18959fi
18960rm -f conftest*
18961fi
18962
18963if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
18964 echo "$ac_t""yes" 1>&6
18965 :
18966else
18967 echo "$ac_t""no" 1>&6
18968echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
18969echo "configure:18970: checking for socket in -lsocket" >&5
18970ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
18971if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18972 echo $ac_n "(cached) $ac_c" 1>&6
18973else
18974 ac_save_LIBS="$LIBS"
18975LIBS="-lsocket $LIBS"
18976cat > conftest.$ac_ext <<EOF
18977#line 18978 "configure"
18978#include "confdefs.h"
18979/* Override any gcc2 internal prototype to avoid an error. */
18980/* We use char because int might match the return type of a gcc2
18981 builtin and then its argument prototype would still apply. */
18982char socket();
18983
18984int main() {
18985socket()
18986; return 0; }
18987EOF
18988if { (eval echo configure:18989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18989 rm -rf conftest*
18990 eval "ac_cv_lib_$ac_lib_var=yes"
18991else
18992 echo "configure: failed program was:" >&5
18993 cat conftest.$ac_ext >&5
18994 rm -rf conftest*
18995 eval "ac_cv_lib_$ac_lib_var=no"
18996fi
18997rm -f conftest*
18998LIBS="$ac_save_LIBS"
18999
19000fi
19001if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19002 echo "$ac_t""yes" 1>&6
19003 if test "$INET_LINK" != " -lsocket"; then
19004 INET_LINK="$INET_LINK -lsocket"
19005 fi
19006else
19007 echo "$ac_t""no" 1>&6
19008
19009 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
19010 wxUSE_SOCKETS=no
19011
19012
19013fi
19014
19015
19016fi
19017
19018 fi
19019fi
19020
19021if test "$wxUSE_SOCKETS" = "yes" ; then
19022 if test "$TOOLKIT" != "MSW"; then
19023 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
19024echo "configure:19025: checking what is the type of the third argument of getsockname" >&5
19025if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
19026 echo $ac_n "(cached) $ac_c" 1>&6
19027else
19028
19029
19030 ac_ext=C
19031# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19032ac_cpp='$CXXCPP $CPPFLAGS'
19033ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19034ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19035cross_compiling=$ac_cv_prog_cxx_cross
19036
19037
19038 cat > conftest.$ac_ext <<EOF
19039#line 19040 "configure"
19040#include "confdefs.h"
19041
19042 #include <sys/types.h>
19043 #include <sys/socket.h>
19044
19045int main() {
19046
19047 socklen_t len;
19048 getsockname(0, 0, &len);
19049
19050; return 0; }
19051EOF
19052if { (eval echo configure:19053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19053 rm -rf conftest*
19054 wx_cv_type_getsockname3=socklen_t
19055else
19056 echo "configure: failed program was:" >&5
19057 cat conftest.$ac_ext >&5
19058 rm -rf conftest*
19059 cat > conftest.$ac_ext <<EOF
19060#line 19061 "configure"
19061#include "confdefs.h"
19062
19063 #include <sys/types.h>
19064 #include <sys/socket.h>
19065
19066int main() {
19067
19068 size_t len;
19069 getsockname(0, 0, &len);
19070
19071; return 0; }
19072EOF
19073if { (eval echo configure:19074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19074 rm -rf conftest*
19075 wx_cv_type_getsockname3=size_t
19076else
19077 echo "configure: failed program was:" >&5
19078 cat conftest.$ac_ext >&5
19079 rm -rf conftest*
19080 cat > conftest.$ac_ext <<EOF
19081#line 19082 "configure"
19082#include "confdefs.h"
19083
19084 #include <sys/types.h>
19085 #include <sys/socket.h>
19086
19087int main() {
19088
19089 int len;
19090 getsockname(0, 0, &len);
19091
19092; return 0; }
19093EOF
19094if { (eval echo configure:19095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19095 rm -rf conftest*
19096 wx_cv_type_getsockname3=int
19097else
19098 echo "configure: failed program was:" >&5
19099 cat conftest.$ac_ext >&5
19100 rm -rf conftest*
19101 wx_cv_type_getsockname3=unknown
19102
19103fi
19104rm -f conftest*
19105
19106fi
19107rm -f conftest*
19108
19109fi
19110rm -f conftest*
19111
19112 ac_ext=c
19113# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19114ac_cpp='$CPP $CPPFLAGS'
19115ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19116ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19117cross_compiling=$ac_cv_prog_cc_cross
19118
19119
19120fi
19121
19122echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
19123
19124 if test "$wx_cv_type_getsockname3" = "unknown"; then
19125 wxUSE_SOCKETS=no
19126 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
19127 else
19128 cat >> confdefs.h <<EOF
19129#define SOCKLEN_T $wx_cv_type_getsockname3
19130EOF
19131
19132 fi
19133 fi
19134fi
19135
19136if test "$wxUSE_SOCKETS" = "yes" ; then
19137 cat >> confdefs.h <<\EOF
19138#define wxUSE_SOCKETS 1
19139EOF
19140
19141 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
19142fi
19143
19144
19145if test "$wxUSE_GUI" = "yes"; then
19146
19147 if test "$TOOLKIT" = "MAC"; then
19148 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
19149 wxUSE_JOYSTICK=no
19150 fi
19151 if test "$TOOLKIT" = "MOTIF"; then
19152 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
19153 wxUSE_JOYSTICK=no
19154 fi
19155 if test "$TOOLKIT" = "X11"; then
19156 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
19157 wxUSE_JOYSTICK=no
19158 fi
19159
19160 if test "$TOOLKIT" != "MSW"; then
19161 if test "$wxUSE_JOYSTICK" = "yes"; then
19162 for ac_hdr in linux/joystick.h
19163do
19164ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19165echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19166echo "configure:19167: checking for $ac_hdr" >&5
19167if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19168 echo $ac_n "(cached) $ac_c" 1>&6
19169else
19170 cat > conftest.$ac_ext <<EOF
19171#line 19172 "configure"
19172#include "confdefs.h"
19173#include <$ac_hdr>
19174EOF
19175ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19176{ (eval echo configure:19177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19177ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19178if test -z "$ac_err"; then
19179 rm -rf conftest*
19180 eval "ac_cv_header_$ac_safe=yes"
19181else
19182 echo "$ac_err" >&5
19183 echo "configure: failed program was:" >&5
19184 cat conftest.$ac_ext >&5
19185 rm -rf conftest*
19186 eval "ac_cv_header_$ac_safe=no"
19187fi
19188rm -f conftest*
19189fi
19190if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19191 echo "$ac_t""yes" 1>&6
19192 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19193 cat >> confdefs.h <<EOF
19194#define $ac_tr_hdr 1
19195EOF
19196
19197else
19198 echo "$ac_t""no" 1>&6
19199fi
19200done
19201
19202 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
19203 wxUSE_JOYSTICK=no
19204 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
19205 fi
19206 fi
19207 fi
19208
19209 if test "$wxUSE_JOYSTICK" = "yes"; then
19210 cat >> confdefs.h <<\EOF
19211#define wxUSE_JOYSTICK 1
19212EOF
19213
19214 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
19215 fi
19216fi
19217
19218
19219if test "$TOOLKIT" != "MSW"; then
19220
19221 HAVE_DL_FUNCS=0
19222 HAVE_SHL_FUNCS=0
19223 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19224 if test "$USE_DARWIN" = 1; then
19225 HAVE_DL_FUNCS=1
19226 else
19227 for ac_func in dlopen
19228do
19229echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19230echo "configure:19231: checking for $ac_func" >&5
19231if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19232 echo $ac_n "(cached) $ac_c" 1>&6
19233else
19234 cat > conftest.$ac_ext <<EOF
19235#line 19236 "configure"
19236#include "confdefs.h"
19237/* System header to define __stub macros and hopefully few prototypes,
19238 which can conflict with char $ac_func(); below. */
19239#include <assert.h>
19240/* Override any gcc2 internal prototype to avoid an error. */
19241/* We use char because int might match the return type of a gcc2
19242 builtin and then its argument prototype would still apply. */
19243char $ac_func();
19244
19245int main() {
19246
19247/* The GNU C library defines this for functions which it implements
19248 to always fail with ENOSYS. Some functions are actually named
19249 something starting with __ and the normal name is an alias. */
19250#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19251choke me
19252#else
19253$ac_func();
19254#endif
19255
19256; return 0; }
19257EOF
19258if { (eval echo configure:19259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19259 rm -rf conftest*
19260 eval "ac_cv_func_$ac_func=yes"
19261else
19262 echo "configure: failed program was:" >&5
19263 cat conftest.$ac_ext >&5
19264 rm -rf conftest*
19265 eval "ac_cv_func_$ac_func=no"
19266fi
19267rm -f conftest*
19268fi
19269
19270if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19271 echo "$ac_t""yes" 1>&6
19272 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19273 cat >> confdefs.h <<EOF
19274#define $ac_tr_func 1
19275EOF
19276
19277 cat >> confdefs.h <<\EOF
19278#define HAVE_DLOPEN 1
19279EOF
19280
19281 HAVE_DL_FUNCS=1
19282
19283else
19284 echo "$ac_t""no" 1>&6
19285echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
19286echo "configure:19287: checking for dlopen in -ldl" >&5
19287ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
19288if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19289 echo $ac_n "(cached) $ac_c" 1>&6
19290else
19291 ac_save_LIBS="$LIBS"
19292LIBS="-ldl $LIBS"
19293cat > conftest.$ac_ext <<EOF
19294#line 19295 "configure"
19295#include "confdefs.h"
19296/* Override any gcc2 internal prototype to avoid an error. */
19297/* We use char because int might match the return type of a gcc2
19298 builtin and then its argument prototype would still apply. */
19299char dlopen();
19300
19301int main() {
19302dlopen()
19303; return 0; }
19304EOF
19305if { (eval echo configure:19306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19306 rm -rf conftest*
19307 eval "ac_cv_lib_$ac_lib_var=yes"
19308else
19309 echo "configure: failed program was:" >&5
19310 cat conftest.$ac_ext >&5
19311 rm -rf conftest*
19312 eval "ac_cv_lib_$ac_lib_var=no"
19313fi
19314rm -f conftest*
19315LIBS="$ac_save_LIBS"
19316
19317fi
19318if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19319 echo "$ac_t""yes" 1>&6
19320
19321 cat >> confdefs.h <<\EOF
19322#define HAVE_DLOPEN 1
19323EOF
19324
19325 HAVE_DL_FUNCS=1
19326 DL_LINK=" -ldl$DL_LINK"
19327
19328else
19329 echo "$ac_t""no" 1>&6
19330
19331 for ac_func in shl_load
19332do
19333echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19334echo "configure:19335: checking for $ac_func" >&5
19335if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19336 echo $ac_n "(cached) $ac_c" 1>&6
19337else
19338 cat > conftest.$ac_ext <<EOF
19339#line 19340 "configure"
19340#include "confdefs.h"
19341/* System header to define __stub macros and hopefully few prototypes,
19342 which can conflict with char $ac_func(); below. */
19343#include <assert.h>
19344/* Override any gcc2 internal prototype to avoid an error. */
19345/* We use char because int might match the return type of a gcc2
19346 builtin and then its argument prototype would still apply. */
19347char $ac_func();
19348
19349int main() {
19350
19351/* The GNU C library defines this for functions which it implements
19352 to always fail with ENOSYS. Some functions are actually named
19353 something starting with __ and the normal name is an alias. */
19354#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19355choke me
19356#else
19357$ac_func();
19358#endif
19359
19360; return 0; }
19361EOF
19362if { (eval echo configure:19363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19363 rm -rf conftest*
19364 eval "ac_cv_func_$ac_func=yes"
19365else
19366 echo "configure: failed program was:" >&5
19367 cat conftest.$ac_ext >&5
19368 rm -rf conftest*
19369 eval "ac_cv_func_$ac_func=no"
19370fi
19371rm -f conftest*
19372fi
19373
19374if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19375 echo "$ac_t""yes" 1>&6
19376 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19377 cat >> confdefs.h <<EOF
19378#define $ac_tr_func 1
19379EOF
19380
19381 cat >> confdefs.h <<\EOF
19382#define HAVE_SHL_LOAD 1
19383EOF
19384
19385 HAVE_SHL_FUNCS=1
19386
19387else
19388 echo "$ac_t""no" 1>&6
19389echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
19390echo "configure:19391: checking for dld in -lshl_load" >&5
19391ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
19392if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19393 echo $ac_n "(cached) $ac_c" 1>&6
19394else
19395 ac_save_LIBS="$LIBS"
19396LIBS="-lshl_load $LIBS"
19397cat > conftest.$ac_ext <<EOF
19398#line 19399 "configure"
19399#include "confdefs.h"
19400/* Override any gcc2 internal prototype to avoid an error. */
19401/* We use char because int might match the return type of a gcc2
19402 builtin and then its argument prototype would still apply. */
19403char dld();
19404
19405int main() {
19406dld()
19407; return 0; }
19408EOF
19409if { (eval echo configure:19410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19410 rm -rf conftest*
19411 eval "ac_cv_lib_$ac_lib_var=yes"
19412else
19413 echo "configure: failed program was:" >&5
19414 cat conftest.$ac_ext >&5
19415 rm -rf conftest*
19416 eval "ac_cv_lib_$ac_lib_var=no"
19417fi
19418rm -f conftest*
19419LIBS="$ac_save_LIBS"
19420
19421fi
19422if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19423 echo "$ac_t""yes" 1>&6
19424
19425 HAVE_SHL_FUNCS=1
19426 DL_LINK=" -ldld$DL_LINK"
19427
19428else
19429 echo "$ac_t""no" 1>&6
19430fi
19431
19432
19433fi
19434done
19435
19436
19437fi
19438
19439
19440fi
19441done
19442
19443
19444 if test "$HAVE_DL_FUNCS" = 1; then
19445 for ac_func in dlerror
19446do
19447echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19448echo "configure:19449: checking for $ac_func" >&5
19449if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19450 echo $ac_n "(cached) $ac_c" 1>&6
19451else
19452 cat > conftest.$ac_ext <<EOF
19453#line 19454 "configure"
19454#include "confdefs.h"
19455/* System header to define __stub macros and hopefully few prototypes,
19456 which can conflict with char $ac_func(); below. */
19457#include <assert.h>
19458/* Override any gcc2 internal prototype to avoid an error. */
19459/* We use char because int might match the return type of a gcc2
19460 builtin and then its argument prototype would still apply. */
19461char $ac_func();
19462
19463int main() {
19464
19465/* The GNU C library defines this for functions which it implements
19466 to always fail with ENOSYS. Some functions are actually named
19467 something starting with __ and the normal name is an alias. */
19468#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19469choke me
19470#else
19471$ac_func();
19472#endif
19473
19474; return 0; }
19475EOF
19476if { (eval echo configure:19477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19477 rm -rf conftest*
19478 eval "ac_cv_func_$ac_func=yes"
19479else
19480 echo "configure: failed program was:" >&5
19481 cat conftest.$ac_ext >&5
19482 rm -rf conftest*
19483 eval "ac_cv_func_$ac_func=no"
19484fi
19485rm -f conftest*
19486fi
19487
19488if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19489 echo "$ac_t""yes" 1>&6
19490 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19491 cat >> confdefs.h <<EOF
19492#define $ac_tr_func 1
19493EOF
19494 cat >> confdefs.h <<\EOF
19495#define HAVE_DLERROR 1
19496EOF
19497
19498else
19499 echo "$ac_t""no" 1>&6
19500echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
19501echo "configure:19502: checking for dlerror in -ldl" >&5
19502ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19503if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19504 echo $ac_n "(cached) $ac_c" 1>&6
19505else
19506 ac_save_LIBS="$LIBS"
19507LIBS="-ldl $LIBS"
19508cat > conftest.$ac_ext <<EOF
19509#line 19510 "configure"
19510#include "confdefs.h"
19511/* Override any gcc2 internal prototype to avoid an error. */
19512/* We use char because int might match the return type of a gcc2
19513 builtin and then its argument prototype would still apply. */
19514char dlerror();
19515
19516int main() {
19517dlerror()
19518; return 0; }
19519EOF
19520if { (eval echo configure:19521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19521 rm -rf conftest*
19522 eval "ac_cv_lib_$ac_lib_var=yes"
19523else
19524 echo "configure: failed program was:" >&5
19525 cat conftest.$ac_ext >&5
19526 rm -rf conftest*
19527 eval "ac_cv_lib_$ac_lib_var=no"
19528fi
19529rm -f conftest*
19530LIBS="$ac_save_LIBS"
19531
19532fi
19533if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19534 echo "$ac_t""yes" 1>&6
19535 cat >> confdefs.h <<\EOF
19536#define HAVE_DLERROR 1
19537EOF
19538
19539else
19540 echo "$ac_t""no" 1>&6
19541fi
19542
19543fi
19544done
19545
19546 fi
19547 fi
19548
19549 if test "$HAVE_DL_FUNCS" = 0; then
19550 if test "$HAVE_SHL_FUNCS" = 0; then
19551 if test "$USE_UNIX" = 1; then
19552 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
19553 wxUSE_DYNAMIC_LOADER=no
19554 wxUSE_DYNLIB_CLASS=no
19555 else
19556 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
19557 fi
19558 fi
19559 fi
19560 fi
19561fi
19562
19563if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
19564 cat >> confdefs.h <<\EOF
19565#define wxUSE_DYNAMIC_LOADER 1
19566EOF
19567
19568elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19569 cat >> confdefs.h <<\EOF
19570#define wxUSE_DYNLIB_CLASS 1
19571EOF
19572
19573fi
19574
19575
19576if test "$wxUSE_FONTMAP" = "yes" ; then
19577 cat >> confdefs.h <<\EOF
19578#define wxUSE_FONTMAP 1
19579EOF
19580
19581fi
19582
19583if test "$wxUSE_UNICODE" = "yes" ; then
19584 cat >> confdefs.h <<\EOF
19585#define wxUSE_UNICODE 1
19586EOF
19587
19588
19589 if test "$wxUSE_MSW" != 1; then
19590 wxUSE_UNICODE_MSLU=no
19591 fi
19592
19593 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
19594 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
19595echo "configure:19596: checking for main in -lunicows" >&5
19596ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19597if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19598 echo $ac_n "(cached) $ac_c" 1>&6
19599else
19600 ac_save_LIBS="$LIBS"
19601LIBS="-lunicows $LIBS"
19602cat > conftest.$ac_ext <<EOF
19603#line 19604 "configure"
19604#include "confdefs.h"
19605
19606int main() {
19607main()
19608; return 0; }
19609EOF
19610if { (eval echo configure:19611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19611 rm -rf conftest*
19612 eval "ac_cv_lib_$ac_lib_var=yes"
19613else
19614 echo "configure: failed program was:" >&5
19615 cat conftest.$ac_ext >&5
19616 rm -rf conftest*
19617 eval "ac_cv_lib_$ac_lib_var=no"
19618fi
19619rm -f conftest*
19620LIBS="$ac_save_LIBS"
19621
19622fi
19623if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19624 echo "$ac_t""yes" 1>&6
19625
19626 cat >> confdefs.h <<\EOF
19627#define wxUSE_UNICODE_MSLU 1
19628EOF
19629
19630
19631else
19632 echo "$ac_t""no" 1>&6
19633
19634 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19635 Applications will only run on Windows NT/2000/XP!" 1>&2
19636 wxUSE_UNICODE_MSLU=no
19637
19638fi
19639
19640 fi
19641fi
19642
19643if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
19644 cat >> confdefs.h <<\EOF
19645#define wxUSE_EXPERIMENTAL_PRINTF 1
19646EOF
19647
19648fi
19649
19650
19651
19652IODBC_C_SRC=""
19653if test "$wxUSE_ODBC" = "yes" ; then
19654 cat >> confdefs.h <<\EOF
19655#define wxUSE_ODBC 1
19656EOF
19657
19658 WXODBCFLAG="-D_IODBC_"
19659 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
19660fi
19661
19662
19663if test "$wxUSE_POSTSCRIPT" = "yes" ; then
19664 cat >> confdefs.h <<\EOF
19665#define wxUSE_POSTSCRIPT 1
19666EOF
19667
19668fi
19669
19670cat >> confdefs.h <<\EOF
19671#define wxUSE_AFM_FOR_POSTSCRIPT 1
19672EOF
19673
19674
19675cat >> confdefs.h <<\EOF
19676#define wxUSE_NORMALIZED_PS_FONTS 1
19677EOF
19678
19679
19680
19681if test "$wxUSE_CONSTRAINTS" = "yes"; then
19682 cat >> confdefs.h <<\EOF
19683#define wxUSE_CONSTRAINTS 1
19684EOF
19685
19686 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19687fi
19688
19689if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19690 if test "$wxUSE_UNIVERSAL" = "yes"; then
19691 echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2
19692 wxUSE_MDI_ARCHITECTURE=no
19693 fi
19694
19695 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19696 cat >> confdefs.h <<\EOF
19697#define wxUSE_MDI_ARCHITECTURE 1
19698EOF
19699
19700 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19701 fi
19702fi
19703
19704if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
19705 cat >> confdefs.h <<\EOF
19706#define wxUSE_DOC_VIEW_ARCHITECTURE 1
19707EOF
19708
19709 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19710 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19711 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19712 fi
19713fi
19714
19715if test "$wxUSE_HELP" = "yes"; then
19716 cat >> confdefs.h <<\EOF
19717#define wxUSE_HELP 1
19718EOF
19719
19720 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
19721
19722 if test "$wxUSE_MSW" = 1; then
19723 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
19724 cat >> confdefs.h <<\EOF
19725#define wxUSE_MS_HTML_HELP 1
19726EOF
19727
19728 fi
19729 fi
19730
19731 if test "$wxUSE_WXHTML_HELP" = "yes"; then
19732 if test "$wxUSE_HTML" = "yes"; then
19733 cat >> confdefs.h <<\EOF
19734#define wxUSE_WXHTML_HELP 1
19735EOF
19736
19737 else
19738 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
19739 wxUSE_WXHTML_HELP=no
19740 fi
19741 fi
19742fi
19743
19744if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19745 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19746 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
19747 else
19748 cat >> confdefs.h <<\EOF
19749#define wxUSE_PRINTING_ARCHITECTURE 1
19750EOF
19751
19752 fi
19753 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19754fi
19755
19756if test "$wxUSE_PROLOGIO" = "yes" ; then
19757 cat >> confdefs.h <<\EOF
19758#define wxUSE_PROLOGIO 1
19759EOF
19760
19761fi
19762
19763if test "$wxUSE_RESOURCES" = "yes" ; then
19764 if test "$wxUSE_NANOX" = "yes"; then
19765 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
19766 else
19767 cat >> confdefs.h <<\EOF
19768#define wxUSE_RESOURCES 1
19769EOF
19770
19771 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
19772 fi
19773fi
19774
19775if test "$wxUSE_X_RESOURCES" = "yes"; then
19776 cat >> confdefs.h <<\EOF
19777#define wxUSE_X_RESOURCES 1
19778EOF
19779
19780fi
19781
19782
19783if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
19784 -o "$wxUSE_CLIPBOARD" = "yes" \
19785 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
19786 for ac_hdr in ole2.h
19787do
19788ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19789echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19790echo "configure:19791: checking for $ac_hdr" >&5
19791if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19792 echo $ac_n "(cached) $ac_c" 1>&6
19793else
19794 cat > conftest.$ac_ext <<EOF
19795#line 19796 "configure"
19796#include "confdefs.h"
19797#include <$ac_hdr>
19798EOF
19799ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19800{ (eval echo configure:19801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19801ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19802if test -z "$ac_err"; then
19803 rm -rf conftest*
19804 eval "ac_cv_header_$ac_safe=yes"
19805else
19806 echo "$ac_err" >&5
19807 echo "configure: failed program was:" >&5
19808 cat conftest.$ac_ext >&5
19809 rm -rf conftest*
19810 eval "ac_cv_header_$ac_safe=no"
19811fi
19812rm -f conftest*
19813fi
19814if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19815 echo "$ac_t""yes" 1>&6
19816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19817 cat >> confdefs.h <<EOF
19818#define $ac_tr_hdr 1
19819EOF
19820
19821else
19822 echo "$ac_t""no" 1>&6
19823fi
19824done
19825
19826
19827 if test "$ac_cv_header_ole2_h" = "yes" ; then
19828 if test "$GCC" = yes ; then
19829 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
19830 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
19831 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
19832 cat >> confdefs.h <<\EOF
19833#define wxUSE_OLE 1
19834EOF
19835
19836
19837 fi
19838
19839 cat >> confdefs.h <<\EOF
19840#define wxUSE_DATAOBJ 1
19841EOF
19842
19843 else
19844 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
19845
19846 wxUSE_CLIPBOARD=no
19847 wxUSE_DRAG_AND_DROP=no
19848 wxUSE_DATAOBJ=no
19849 fi
19850
19851 if test "$wxUSE_METAFILE" = "yes"; then
19852 cat >> confdefs.h <<\EOF
19853#define wxUSE_METAFILE 1
19854EOF
19855
19856
19857 cat >> confdefs.h <<\EOF
19858#define wxUSE_ENH_METAFILE 1
19859EOF
19860
19861 fi
19862fi
19863
19864if test "$wxUSE_IPC" = "yes"; then
19865 if test "$wxUSE_SOCKETS" != "yes"; then
19866 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
19867 fi
19868
19869 cat >> confdefs.h <<\EOF
19870#define wxUSE_IPC 1
19871EOF
19872
19873fi
19874
19875if test "$wxUSE_CLIPBOARD" = "yes"; then
19876 if test "$wxUSE_MGL" = 1; then
19877 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
19878 wxUSE_CLIPBOARD=no
19879 fi
19880
19881 if test "$wxUSE_CLIPBOARD" = "yes"; then
19882 cat >> confdefs.h <<\EOF
19883#define wxUSE_CLIPBOARD 1
19884EOF
19885
19886
19887 cat >> confdefs.h <<\EOF
19888#define wxUSE_DATAOBJ 1
19889EOF
19890
19891 fi
19892fi
19893
19894if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
19895 if test "$wxUSE_GTK" = 1; then
19896 if test "$WXGTK12" != 1; then
19897 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
19898 wxUSE_DRAG_AND_DROP=no
19899 fi
19900 fi
19901
19902 if test "$wxUSE_MOTIF" = 1; then
19903 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
19904 wxUSE_DRAG_AND_DROP=no
19905 fi
19906
19907 if test "$wxUSE_X11" = 1; then
19908 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
19909 wxUSE_DRAG_AND_DROP=no
19910 fi
19911
19912 if test "$wxUSE_MGL" = 1; then
19913 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
19914 wxUSE_DRAG_AND_DROP=no
19915 fi
19916
19917 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
19918 cat >> confdefs.h <<\EOF
19919#define wxUSE_DRAG_AND_DROP 1
19920EOF
19921
19922 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
19923 fi
19924
19925fi
19926
19927if test "$wxUSE_SPLINES" = "yes" ; then
19928 cat >> confdefs.h <<\EOF
19929#define wxUSE_SPLINES 1
19930EOF
19931
19932fi
19933
19934
19935USES_CONTROLS=0
19936if test "$wxUSE_CONTROLS" = "yes"; then
19937 USES_CONTROLS=1
19938fi
19939
19940if test "$wxUSE_ACCEL" = "yes"; then
19941 cat >> confdefs.h <<\EOF
19942#define wxUSE_ACCEL 1
19943EOF
19944
19945 USES_CONTROLS=1
19946fi
19947
19948if test "$wxUSE_BUTTON" = "yes"; then
19949 cat >> confdefs.h <<\EOF
19950#define wxUSE_BUTTON 1
19951EOF
19952
19953 USES_CONTROLS=1
19954fi
19955
19956if test "$wxUSE_BMPBUTTON" = "yes"; then
19957 cat >> confdefs.h <<\EOF
19958#define wxUSE_BMPBUTTON 1
19959EOF
19960
19961 USES_CONTROLS=1
19962fi
19963
19964if test "$wxUSE_CALCTRL" = "yes"; then
19965 cat >> confdefs.h <<\EOF
19966#define wxUSE_CALENDARCTRL 1
19967EOF
19968
19969 USES_CONTROLS=1
19970 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
19971fi
19972
19973if test "$wxUSE_CARET" = "yes"; then
19974 cat >> confdefs.h <<\EOF
19975#define wxUSE_CARET 1
19976EOF
19977
19978 USES_CONTROLS=1
19979 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
19980fi
19981
19982if test "$wxUSE_COMBOBOX" = "yes"; then
19983 cat >> confdefs.h <<\EOF
19984#define wxUSE_COMBOBOX 1
19985EOF
19986
19987 USES_CONTROLS=1
19988fi
19989
19990if test "$wxUSE_CHOICE" = "yes"; then
19991 cat >> confdefs.h <<\EOF
19992#define wxUSE_CHOICE 1
19993EOF
19994
19995 USES_CONTROLS=1
19996fi
19997
19998if test "$wxUSE_CHECKBOX" = "yes"; then
19999 cat >> confdefs.h <<\EOF
20000#define wxUSE_CHECKBOX 1
20001EOF
20002
20003 USES_CONTROLS=1
20004fi
20005
20006if test "$wxUSE_CHECKLST" = "yes"; then
20007 cat >> confdefs.h <<\EOF
20008#define wxUSE_CHECKLISTBOX 1
20009EOF
20010
20011 USES_CONTROLS=1
20012 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
20013fi
20014
20015if test "$wxUSE_GAUGE" = "yes"; then
20016 cat >> confdefs.h <<\EOF
20017#define wxUSE_GAUGE 1
20018EOF
20019
20020 USES_CONTROLS=1
20021fi
20022
20023if test "$wxUSE_NEW_GRID" = "yes"; then
20024 wxUSE_GRID="yes"
20025 cat >> confdefs.h <<\EOF
20026#define wxUSE_NEW_GRID 1
20027EOF
20028
20029 USES_CONTROLS=1
20030 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
20031fi
20032
20033if test "$wxUSE_GRID" = "yes"; then
20034 cat >> confdefs.h <<\EOF
20035#define wxUSE_GRID 1
20036EOF
20037
20038 USES_CONTROLS=1
20039 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
20040fi
20041
20042if test "$wxUSE_IMAGLIST" = "yes"; then
20043 cat >> confdefs.h <<\EOF
20044#define wxUSE_IMAGLIST 1
20045EOF
20046
20047fi
20048
20049if test "$wxUSE_LISTBOX" = "yes"; then
20050 cat >> confdefs.h <<\EOF
20051#define wxUSE_LISTBOX 1
20052EOF
20053
20054 USES_CONTROLS=1
20055fi
20056
20057if test "$wxUSE_LISTCTRL" = "yes"; then
20058 if test "$wxUSE_IMAGLIST" = "yes"; then
20059 cat >> confdefs.h <<\EOF
20060#define wxUSE_LISTCTRL 1
20061EOF
20062
20063 USES_CONTROLS=1
20064 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
20065 else
20066 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
20067 fi
20068fi
20069
20070if test "$wxUSE_NOTEBOOK" = "yes"; then
20071 cat >> confdefs.h <<\EOF
20072#define wxUSE_NOTEBOOK 1
20073EOF
20074
20075 USES_CONTROLS=1
20076 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
20077fi
20078
20079if test "$wxUSE_PROPSHEET" = "yes"; then
20080 cat >> confdefs.h <<\EOF
20081#define wxUSE_PROPSHEET 1
20082EOF
20083
20084 USES_CONTROLS=1
20085 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
20086fi
20087
20088if test "$wxUSE_RADIOBOX" = "yes"; then
20089 cat >> confdefs.h <<\EOF
20090#define wxUSE_RADIOBOX 1
20091EOF
20092
20093 USES_CONTROLS=1
20094fi
20095
20096if test "$wxUSE_RADIOBTN" = "yes"; then
20097 cat >> confdefs.h <<\EOF
20098#define wxUSE_RADIOBTN 1
20099EOF
20100
20101 USES_CONTROLS=1
20102fi
20103
20104if test "$wxUSE_SASH" = "yes"; then
20105 cat >> confdefs.h <<\EOF
20106#define wxUSE_SASH 1
20107EOF
20108
20109 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
20110fi
20111
20112if test "$wxUSE_SCROLLBAR" = "yes"; then
20113 cat >> confdefs.h <<\EOF
20114#define wxUSE_SCROLLBAR 1
20115EOF
20116
20117 USES_CONTROLS=1
20118 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
20119fi
20120
20121if test "$wxUSE_SLIDER" = "yes"; then
20122 cat >> confdefs.h <<\EOF
20123#define wxUSE_SLIDER 1
20124EOF
20125
20126 USES_CONTROLS=1
20127fi
20128
20129if test "$wxUSE_SPINBTN" = "yes"; then
20130 cat >> confdefs.h <<\EOF
20131#define wxUSE_SPINBTN 1
20132EOF
20133
20134 USES_CONTROLS=1
20135fi
20136
20137if test "$wxUSE_SPINCTRL" = "yes"; then
20138 cat >> confdefs.h <<\EOF
20139#define wxUSE_SPINCTRL 1
20140EOF
20141
20142 USES_CONTROLS=1
20143fi
20144
20145if test "$wxUSE_SPLITTER" = "yes"; then
20146 cat >> confdefs.h <<\EOF
20147#define wxUSE_SPLITTER 1
20148EOF
20149
20150 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
20151fi
20152
20153if test "$wxUSE_STATBMP" = "yes"; then
20154 cat >> confdefs.h <<\EOF
20155#define wxUSE_STATBMP 1
20156EOF
20157
20158 USES_CONTROLS=1
20159fi
20160
20161if test "$wxUSE_STATBOX" = "yes"; then
20162 cat >> confdefs.h <<\EOF
20163#define wxUSE_STATBOX 1
20164EOF
20165
20166 USES_CONTROLS=1
20167fi
20168
20169if test "$wxUSE_STATTEXT" = "yes"; then
20170 cat >> confdefs.h <<\EOF
20171#define wxUSE_STATTEXT 1
20172EOF
20173
20174 USES_CONTROLS=1
20175fi
20176
20177if test "$wxUSE_STATLINE" = "yes"; then
20178 if test "$wxUSE_WINE" = 1 ; then
20179 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
20180 else
20181 cat >> confdefs.h <<\EOF
20182#define wxUSE_STATLINE 1
20183EOF
20184
20185 USES_CONTROLS=1
20186 fi
20187fi
20188
20189if test "$wxUSE_STATUSBAR" = "yes"; then
20190 cat >> confdefs.h <<\EOF
20191#define wxUSE_STATUSBAR 1
20192EOF
20193
20194 USES_CONTROLS=1
20195
20196 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
20197fi
20198
20199if test "$wxUSE_TABDIALOG" = "yes"; then
20200 cat >> confdefs.h <<\EOF
20201#define wxUSE_TAB_DIALOG 1
20202EOF
20203
20204 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
20205fi
20206
20207if test "$wxUSE_TEXTCTRL" = "yes"; then
20208 cat >> confdefs.h <<\EOF
20209#define wxUSE_TEXTCTRL 1
20210EOF
20211
20212 USES_CONTROLS=1
20213 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
20214fi
20215
20216if test "$wxUSE_TOGGLEBTN" = "yes"; then
20217 if test "$wxUSE_MAC" = 1; then
20218 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
20219 wxUSE_TOGGLEBTN=no
20220 fi
20221 if test "$wxUSE_UNIVERSAL" = "yes"; then
20222 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
20223 wxUSE_TOGGLEBTN=no
20224 fi
20225
20226 if test "$wxUSE_TOGGLEBTN" = "yes"; then
20227 cat >> confdefs.h <<\EOF
20228#define wxUSE_TOGGLEBTN 1
20229EOF
20230
20231 USES_CONTROLS=1
20232 fi
20233fi
20234
20235if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
20236 cat >> confdefs.h <<\EOF
20237#define wxUSE_TOOLBAR_SIMPLE 1
20238EOF
20239
20240 wxUSE_TOOLBAR="yes"
20241 USES_CONTROLS=1
20242fi
20243
20244if test "$wxUSE_TOOLBAR" = "yes"; then
20245 cat >> confdefs.h <<\EOF
20246#define wxUSE_TOOLBAR 1
20247EOF
20248
20249 USES_CONTROLS=1
20250
20251 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
20252 wxUSE_TOOLBAR_NATIVE="yes"
20253 fi
20254
20255 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
20256 cat >> confdefs.h <<\EOF
20257#define wxUSE_TOOLBAR_NATIVE 1
20258EOF
20259
20260 USES_CONTROLS=1
20261 fi
20262
20263 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
20264fi
20265
20266if test "$wxUSE_TOOLTIPS" = "yes"; then
20267 if test "$wxUSE_MOTIF" = 1; then
20268 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
20269 else
20270 if test "$wxUSE_WINE" = 1; then
20271 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
20272 else
20273 if test "$wxUSE_UNIVERSAL" = "yes"; then
20274 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
20275 else
20276 cat >> confdefs.h <<\EOF
20277#define wxUSE_TOOLTIPS 1
20278EOF
20279
20280 fi
20281 fi
20282 fi
20283fi
20284
20285if test "$wxUSE_TREECTRL" = "yes"; then
20286 if test "$wxUSE_IMAGLIST" = "yes"; then
20287 cat >> confdefs.h <<\EOF
20288#define wxUSE_TREECTRL 1
20289EOF
20290
20291 USES_CONTROLS=1
20292 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
20293 else
20294 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
20295 fi
20296fi
20297
20298if test "$wxUSE_POPUPWIN" = "yes"; then
20299 if test "$wxUSE_MAC" = 1; then
20300 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
20301 else
20302 if test "$wxUSE_MOTIF" = 1; then
20303 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
20304 else
20305 if test "$wxUSE_PM" = 1; then
20306 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
20307 else
20308 cat >> confdefs.h <<\EOF
20309#define wxUSE_POPUPWIN 1
20310EOF
20311
20312
20313 USES_CONTROLS=1
20314 fi
20315 fi
20316 fi
20317fi
20318
20319if test "$wxUSE_TIPWINDOW" = "yes"; then
20320 if test "$wxUSE_PM" = 1; then
20321 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
20322 else
20323 cat >> confdefs.h <<\EOF
20324#define wxUSE_TIPWINDOW 1
20325EOF
20326
20327 fi
20328fi
20329
20330if test "$USES_CONTROLS" = 1; then
20331 cat >> confdefs.h <<\EOF
20332#define wxUSE_CONTROLS 1
20333EOF
20334
20335fi
20336
20337
20338if test "$wxUSE_TREELAYOUT" = "yes"; then
20339 cat >> confdefs.h <<\EOF
20340#define wxUSE_TREELAYOUT 1
20341EOF
20342
20343 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
20344fi
20345
20346if test "$wxUSE_DRAGIMAGE" = "yes"; then
20347 cat >> confdefs.h <<\EOF
20348#define wxUSE_DRAGIMAGE 1
20349EOF
20350
20351 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
20352fi
20353
20354if test "$wxUSE_MENUS" = "yes"; then
20355 cat >> confdefs.h <<\EOF
20356#define wxUSE_MENUS 1
20357EOF
20358
20359 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
20360fi
20361
20362if test "$wxUSE_METAFILE" = "yes"; then
20363 cat >> confdefs.h <<\EOF
20364#define wxUSE_METAFILE 1
20365EOF
20366
20367fi
20368
20369if test "$wxUSE_MIMETYPE" = "yes"; then
20370 cat >> confdefs.h <<\EOF
20371#define wxUSE_MIMETYPE 1
20372EOF
20373
20374fi
20375
20376if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
20377 cat >> confdefs.h <<\EOF
20378#define wxUSE_SYSTEM_OPTIONS 1
20379EOF
20380
20381if test "$TOOLKIT" = "MSW"; then
20382 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
20383fi
20384
20385fi
20386
20387if test "$wxUSE_PROTOCOL" = "yes"; then
20388 if test "$wxUSE_SOCKETS" != "yes"; then
20389 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
20390 wxUSE_PROTOCOL=no
20391 fi
20392
20393 if test "$wxUSE_PROTOCOL" = "yes"; then
20394 cat >> confdefs.h <<\EOF
20395#define wxUSE_PROTOCOL 1
20396EOF
20397
20398
20399 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
20400 cat >> confdefs.h <<\EOF
20401#define wxUSE_PROTOCOL_HTTP 1
20402EOF
20403
20404 fi
20405 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
20406 cat >> confdefs.h <<\EOF
20407#define wxUSE_PROTOCOL_FTP 1
20408EOF
20409
20410 fi
20411 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
20412 cat >> confdefs.h <<\EOF
20413#define wxUSE_PROTOCOL_FILE 1
20414EOF
20415
20416 fi
20417 fi
20418fi
20419
20420if test "$wxUSE_URL" = "yes"; then
20421 if test "$wxUSE_PROTOCOL" != "yes"; then
20422 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
20423 wxUSE_URL=no
20424 fi
20425 if test "$wxUSE_URL" = "yes"; then
20426 cat >> confdefs.h <<\EOF
20427#define wxUSE_URL 1
20428EOF
20429
20430 fi
20431fi
20432
20433if test "$wxUSE_MINIFRAME" = "yes"; then
20434 cat >> confdefs.h <<\EOF
20435#define wxUSE_MINIFRAME 1
20436EOF
20437
20438 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20439fi
20440
20441if test "$wxUSE_HTML" = "yes"; then
20442 cat >> confdefs.h <<\EOF
20443#define wxUSE_HTML 1
20444EOF
20445
20446 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
20447fi
20448
20449if test "$wxUSE_VALIDATORS" = "yes"; then
20450 cat >> confdefs.h <<\EOF
20451#define wxUSE_VALIDATORS 1
20452EOF
20453
20454 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20455fi
20456
20457if test "$wxUSE_PALETTE" = "yes" ; then
20458 cat >> confdefs.h <<\EOF
20459#define wxUSE_PALETTE 1
20460EOF
20461
20462fi
20463
20464if test "$wxUSE_IMAGE" = "yes" ; then
20465 cat >> confdefs.h <<\EOF
20466#define wxUSE_IMAGE 1
20467EOF
20468
20469fi
20470
20471if test "$wxUSE_GIF" = "yes" ; then
20472 cat >> confdefs.h <<\EOF
20473#define wxUSE_GIF 1
20474EOF
20475
20476fi
20477
20478if test "$wxUSE_PCX" = "yes" ; then
20479 cat >> confdefs.h <<\EOF
20480#define wxUSE_PCX 1
20481EOF
20482
20483fi
20484
20485if test "$wxUSE_IFF" = "yes" ; then
20486 cat >> confdefs.h <<\EOF
20487#define wxUSE_IFF 1
20488EOF
20489
20490fi
20491
20492if test "$wxUSE_PNM" = "yes" ; then
20493 cat >> confdefs.h <<\EOF
20494#define wxUSE_PNM 1
20495EOF
20496
20497fi
20498
20499if test "$wxUSE_XPM" = "yes" ; then
20500 cat >> confdefs.h <<\EOF
20501#define wxUSE_XPM 1
20502EOF
20503
20504fi
20505
20506if test "$wxUSE_ICO_CUR" = "yes" ; then
20507 cat >> confdefs.h <<\EOF
20508#define wxUSE_ICO_CUR 1
20509EOF
20510
20511fi
20512
20513if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20514 LIBS=" -lunicows $LIBS"
20515fi
20516
20517
20518if test "$wxUSE_CHOICEDLG" = "yes"; then
20519 cat >> confdefs.h <<\EOF
20520#define wxUSE_CHOICEDLG 1
20521EOF
20522
20523fi
20524
20525if test "$wxUSE_COLOURDLG" = "yes"; then
20526 cat >> confdefs.h <<\EOF
20527#define wxUSE_COLOURDLG 1
20528EOF
20529
20530fi
20531
20532if test "$wxUSE_FILEDLG" = "yes"; then
20533 cat >> confdefs.h <<\EOF
20534#define wxUSE_FILEDLG 1
20535EOF
20536
20537fi
20538
20539if test "$wxUSE_FINDREPLDLG" = "yes"; then
20540 cat >> confdefs.h <<\EOF
20541#define wxUSE_FINDREPLDLG 1
20542EOF
20543
20544fi
20545
20546if test "$wxUSE_FONTDLG" = "yes"; then
20547 cat >> confdefs.h <<\EOF
20548#define wxUSE_FONTDLG 1
20549EOF
20550
20551fi
20552
20553if test "$wxUSE_DIRDLG" = "yes"; then
20554 if test "$wxUSE_TREECTRL" != "yes"; then
20555 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
20556 else
20557 cat >> confdefs.h <<\EOF
20558#define wxUSE_DIRDLG 1
20559EOF
20560
20561 fi
20562fi
20563
20564if test "$wxUSE_MSGDLG" = "yes"; then
20565 cat >> confdefs.h <<\EOF
20566#define wxUSE_MSGDLG 1
20567EOF
20568
20569fi
20570
20571if test "$wxUSE_NUMBERDLG" = "yes"; then
20572 cat >> confdefs.h <<\EOF
20573#define wxUSE_NUMBERDLG 1
20574EOF
20575
20576fi
20577
20578if test "$wxUSE_PROGRESSDLG" = "yes"; then
20579 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20580 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
20581 else
20582 cat >> confdefs.h <<\EOF
20583#define wxUSE_PROGRESSDLG 1
20584EOF
20585
20586 fi
20587fi
20588
20589if test "$wxUSE_SPLASH" = "yes"; then
20590 cat >> confdefs.h <<\EOF
20591#define wxUSE_SPLASH 1
20592EOF
20593
20594fi
20595
20596if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20597 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20598 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
20599 else
20600 cat >> confdefs.h <<\EOF
20601#define wxUSE_STARTUP_TIPS 1
20602EOF
20603
20604 fi
20605fi
20606
20607if test "$wxUSE_TEXTDLG" = "yes"; then
20608 cat >> confdefs.h <<\EOF
20609#define wxUSE_TEXTDLG 1
20610EOF
20611
20612fi
20613
20614if test "$wxUSE_WIZARDDLG" = "yes"; then
20615 cat >> confdefs.h <<\EOF
20616#define wxUSE_WIZARDDLG 1
20617EOF
20618
20619 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20620fi
20621
20622
20623if test "$cross_compiling" = "yes"; then
20624 OSINFO="\"$host\""
20625else
20626 OSINFO=`uname -s -r -m`
20627 OSINFO="\"$OSINFO\""
20628fi
20629
20630cat >> confdefs.h <<EOF
20631#define WXWIN_OS_DESCRIPTION $OSINFO
20632EOF
20633
20634
20635
20636if test "x$prefix" != "xNONE"; then
20637 wxPREFIX=$prefix
20638else
20639 wxPREFIX=$ac_default_prefix
20640fi
20641
20642cat >> confdefs.h <<EOF
20643#define wxINSTALL_PREFIX "$wxPREFIX"
20644EOF
20645
20646
20647
20648
20649
20650if test "$wxUSE_MAC" = 1 ; then
20651 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
20652fi
20653
20654
20655LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS"
20656
20657if test "$wxUSE_GUI" = "yes"; then
20658
20659 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
20660
20661
20662 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
20663 drawing dynamic erase event exec font image \
20664 minimal richedit rotate widgets"
20665
20666 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20667else
20668 SAMPLES_SUBDIRS="console"
20669fi
20670
20671
20672INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
20673-I\${top_srcdir}/include \
20674$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
20675$TOOLKIT_INCLUDE"
20676
20677if test "$wxUSE_GTK" = 1; then
20678 WXCONFIG_INCLUDE=
20679else
20680 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20681fi
20682
20683if test "$GXX" = yes ; then
20684 CXXWARNINGS="-Wall"
20685
20686 if test "$wxUSE_NO_DEPS" = "no" ; then
20687 CFLAGS="-MMD $CFLAGS"
20688 CXXFLAGS="-MMD $CXXFLAGS"
20689 fi
20690fi
20691
20692EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
20693
20694CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20695CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
20696LIBS=`echo $LIBS | sed 's/ \+/ /g'`
20697
20698LDFLAGS="$LDFLAGS $PROFILE"
20699
20700SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
20791echo "configure:20792: checking whether ${MAKE-make} sets \${MAKE}" >&5
20792set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
20793if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
20794 echo $ac_n "(cached) $ac_c" 1>&6
20795else
20796 cat > conftestmake <<\EOF
20797all:
20798 @echo 'ac_maketemp="${MAKE}"'
20799EOF
20800# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20801eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
20802if test -n "$ac_maketemp"; then
20803 eval ac_cv_prog_make_${ac_make}_set=yes
20804else
20805 eval ac_cv_prog_make_${ac_make}_set=no
20806fi
20807rm -f conftestmake
20808fi
20809if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20810 echo "$ac_t""yes" 1>&6
20811 SET_MAKE=
20812else
20813 echo "$ac_t""no" 1>&6
20814 SET_MAKE="MAKE=${MAKE-make}"
20815fi
20816
20817
20818if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
20819 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
20820fi
20821
20822
20823
20824wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
20825wx_cv_if_gnu_make=$IF_GNU_MAKE
20826wx_cv_path_ifs=$PATH_IFS
20827wx_cv_program_ext=$PROGRAM_EXT
20828wx_cv_target_library=$WX_TARGET_LIBRARY
20829wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
20830wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
20831export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
20832 wx_cv_path_ifs wx_cv_program_ext \
20833 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
20834
20835subdirs="demos samples utils contrib"
20836
20837
20838trap '' 1 2 15
20839cat > confcache <<\EOF
20840# This file is a shell script that caches the results of configure
20841# tests run on this system so they can be shared between configure
20842# scripts and configure runs. It is not useful on other systems.
20843# If it contains results you don't want to keep, you may remove or edit it.
20844#
20845# By default, configure uses ./config.cache as the cache file,
20846# creating it if it does not exist already. You can give configure
20847# the --cache-file=FILE option to use a different cache file; that is
20848# what configure does when it calls configure scripts in
20849# subdirectories, so they share the cache.
20850# Giving --cache-file=/dev/null disables caching, for debugging configure.
20851# config.status only pays attention to the cache file if you give it the
20852# --recheck option to rerun configure.
20853#
20854EOF
20855# The following way of writing the cache mishandles newlines in values,
20856# but we know of no workaround that is simple, portable, and efficient.
20857# So, don't put newlines in cache variables' values.
20858# Ultrix sh set writes to stderr and can't be redirected directly,
20859# and sets the high bit in the cache file unless we assign to the vars.
20860(set) 2>&1 |
20861 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20862 *ac_space=\ *)
20863 # `set' does not quote correctly, so add quotes (double-quote substitution
20864 # turns \\\\ into \\, and sed turns \\ into \).
20865 sed -n \
20866 -e "s/'/'\\\\''/g" \
20867 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20868 ;;
20869 *)
20870 # `set' quotes correctly as required by POSIX, so do not add quotes.
20871 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20872 ;;
20873 esac >> confcache
20874if cmp -s $cache_file confcache; then
20875 :
20876else
20877 if test -w $cache_file; then
20878 echo "updating cache $cache_file"
20879 cat confcache > $cache_file
20880 else
20881 echo "not updating unwritable cache $cache_file"
20882 fi
20883fi
20884rm -f confcache
20885
20886trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
20887
20888test "x$prefix" = xNONE && prefix=$ac_default_prefix
20889# Let make expand exec_prefix.
20890test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20891
20892# Any assignment to VPATH causes Sun make to only execute
20893# the first set of double-colon rules, so remove it if not needed.
20894# If there is a colon in the path, we need to keep it.
20895if test "x$srcdir" = x.; then
20896 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
20897fi
20898
20899trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
20900
20901DEFS=-DHAVE_CONFIG_H
20902
20903# Without the "./", some shells look in PATH for config.status.
20904: ${CONFIG_STATUS=./config.status}
20905
20906echo creating $CONFIG_STATUS
20907rm -f $CONFIG_STATUS
20908cat > $CONFIG_STATUS <<EOF
20909#! /bin/sh
20910# Generated automatically by configure.
20911# Run this file to recreate the current configuration.
20912# This directory was configured as follows,
20913# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20914#
20915# $0 $ac_configure_args
20916#
20917# Compiler output produced by configure, useful for debugging
20918# configure, is in ./config.log if it exists.
20919
20920ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
20921for ac_option
20922do
20923 case "\$ac_option" in
20924 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20925 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
20926 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
20927 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
20928 echo "$CONFIG_STATUS generated by autoconf version 2.13"
20929 exit 0 ;;
20930 -help | --help | --hel | --he | --h)
20931 echo "\$ac_cs_usage"; exit 0 ;;
20932 *) echo "\$ac_cs_usage"; exit 1 ;;
20933 esac
20934done
20935
20936ac_given_srcdir=$srcdir
20937ac_given_INSTALL="$INSTALL"
20938
20939trap 'rm -fr `echo "
20940 wx-config
20941 src/make.env
20942 src/makeprog.env
20943 src/makelib.env
20944 Makefile
20945 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
20946EOF
20947cat >> $CONFIG_STATUS <<EOF
20948
20949# Protect against being on the right side of a sed subst in config.status.
20950sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
20951 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
20952$ac_vpsub
20953$extrasub
20954s%@SHELL@%$SHELL%g
20955s%@CFLAGS@%$CFLAGS%g
20956s%@CPPFLAGS@%$CPPFLAGS%g
20957s%@CXXFLAGS@%$CXXFLAGS%g
20958s%@FFLAGS@%$FFLAGS%g
20959s%@DEFS@%$DEFS%g
20960s%@LDFLAGS@%$LDFLAGS%g
20961s%@LIBS@%$LIBS%g
20962s%@exec_prefix@%$exec_prefix%g
20963s%@prefix@%$prefix%g
20964s%@program_transform_name@%$program_transform_name%g
20965s%@bindir@%$bindir%g
20966s%@sbindir@%$sbindir%g
20967s%@libexecdir@%$libexecdir%g
20968s%@datadir@%$datadir%g
20969s%@sysconfdir@%$sysconfdir%g
20970s%@sharedstatedir@%$sharedstatedir%g
20971s%@localstatedir@%$localstatedir%g
20972s%@libdir@%$libdir%g
20973s%@includedir@%$includedir%g
20974s%@oldincludedir@%$oldincludedir%g
20975s%@infodir@%$infodir%g
20976s%@mandir@%$mandir%g
20977s%@host@%$host%g
20978s%@host_alias@%$host_alias%g
20979s%@host_cpu@%$host_cpu%g
20980s%@host_vendor@%$host_vendor%g
20981s%@host_os@%$host_os%g
20982s%@target@%$target%g
20983s%@target_alias@%$target_alias%g
20984s%@target_cpu@%$target_cpu%g
20985s%@target_vendor@%$target_vendor%g
20986s%@target_os@%$target_os%g
20987s%@build@%$build%g
20988s%@build_alias@%$build_alias%g
20989s%@build_cpu@%$build_cpu%g
20990s%@build_vendor@%$build_vendor%g
20991s%@build_os@%$build_os%g
20992s%@CC@%$CC%g
20993s%@CPP@%$CPP%g
20994s%@CXX@%$CXX%g
20995s%@RANLIB@%$RANLIB%g
20996s%@AR@%$AR%g
20997s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
20998s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
20999s%@INSTALL_DATA@%$INSTALL_DATA%g
21000s%@STRIP@%$STRIP%g
21001s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
21002s%@YACC@%$YACC%g
21003s%@LEX@%$LEX%g
21004s%@LEXLIB@%$LEXLIB%g
21005s%@LN_S@%$LN_S%g
21006s%@CXXCPP@%$CXXCPP%g
21007s%@PKG_CONFIG@%$PKG_CONFIG%g
21008s%@GTK_CFLAGS@%$GTK_CFLAGS%g
21009s%@GTK_LIBS@%$GTK_LIBS%g
21010s%@GTK_CONFIG@%$GTK_CONFIG%g
21011s%@X_CFLAGS@%$X_CFLAGS%g
21012s%@X_PRE_LIBS@%$X_PRE_LIBS%g
21013s%@X_LIBS@%$X_LIBS%g
21014s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
21015s%@AIX_CXX_LD@%$AIX_CXX_LD%g
21016s%@RESCOMP@%$RESCOMP%g
21017s%@DEREZ@%$DEREZ%g
21018s%@LIBICONV@%$LIBICONV%g
21019s%@LEX_STEM@%$LEX_STEM%g
21020s%@PATH_IFS@%$PATH_IFS%g
21021s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
21022s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
21023s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
21024s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
21025s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
21026s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
21027s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
21028s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
21029s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
21030s%@PROGRAM_EXT@%$PROGRAM_EXT%g
21031s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
21032s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
21033s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
21034s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
21035s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
21036s%@WX_ALL@%$WX_ALL%g
21037s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
21038s%@SHARED_LD@%$SHARED_LD%g
21039s%@PIC_FLAG@%$PIC_FLAG%g
21040s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
21041s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
21042s%@SONAME_FLAGS@%$SONAME_FLAGS%g
21043s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
21044s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
21045s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
21046s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
21047s%@USE_GUI@%$USE_GUI%g
21048s%@AFMINSTALL@%$AFMINSTALL%g
21049s%@TOOLKIT@%$TOOLKIT%g
21050s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
21051s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
21052s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
21053s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
21054s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
21055s%@cross_compiling@%$cross_compiling%g
21056s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
21057s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
21058s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
21059s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
21060s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
21061s%@ALL_OBJECTS@%$ALL_OBJECTS%g
21062s%@ALL_HEADERS@%$ALL_HEADERS%g
21063s%@ALL_SOURCES@%$ALL_SOURCES%g
21064s%@GUIDIST@%$GUIDIST%g
21065s%@PORT_FILES@%$PORT_FILES%g
21066s%@DISTDIR@%$DISTDIR%g
21067s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
21068s%@LDFLAGS_GL@%$LDFLAGS_GL%g
21069s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
21070s%@OPENGL_LIBS@%$OPENGL_LIBS%g
21071s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
21072s%@EXTRADEFS@%$EXTRADEFS%g
21073s%@RESFLAGS@%$RESFLAGS%g
21074s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
21075s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
21076s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
21077s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
21078s%@LIBWXMACRES@%$LIBWXMACRES%g
21079s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
21080s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
21081s%@DLLTOOL@%$DLLTOOL%g
21082s%@AS@%$AS%g
21083s%@NM@%$NM%g
21084s%@LD@%$LD%g
21085s%@MAKEINFO@%$MAKEINFO%g
21086s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
21087s%@SET_MAKE@%$SET_MAKE%g
21088s%@subdirs@%$subdirs%g
21089
21090CEOF
21091EOF
21092
21093cat >> $CONFIG_STATUS <<\EOF
21094
21095# Split the substitutions into bite-sized pieces for seds with
21096# small command number limits, like on Digital OSF/1 and HP-UX.
21097ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
21098ac_file=1 # Number of current file.
21099ac_beg=1 # First line for current file.
21100ac_end=$ac_max_sed_cmds # Line after last line for current file.
21101ac_more_lines=:
21102ac_sed_cmds=""
21103while $ac_more_lines; do
21104 if test $ac_beg -gt 1; then
21105 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
21106 else
21107 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
21108 fi
21109 if test ! -s conftest.s$ac_file; then
21110 ac_more_lines=false
21111 rm -f conftest.s$ac_file
21112 else
21113 if test -z "$ac_sed_cmds"; then
21114 ac_sed_cmds="sed -f conftest.s$ac_file"
21115 else
21116 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
21117 fi
21118 ac_file=`expr $ac_file + 1`
21119 ac_beg=$ac_end
21120 ac_end=`expr $ac_end + $ac_max_sed_cmds`
21121 fi
21122done
21123if test -z "$ac_sed_cmds"; then
21124 ac_sed_cmds=cat
21125fi
21126EOF
21127
21128cat >> $CONFIG_STATUS <<EOF
21129
21130CONFIG_FILES=\${CONFIG_FILES-"wx-config
21131 src/make.env
21132 src/makeprog.env
21133 src/makelib.env
21134 Makefile
21135 "}
21136EOF
21137cat >> $CONFIG_STATUS <<\EOF
21138for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
21139 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21140 case "$ac_file" in
21141 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21142 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21143 *) ac_file_in="${ac_file}.in" ;;
21144 esac
21145
21146 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
21147
21148 # Remove last slash and all that follows it. Not all systems have dirname.
21149 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21150 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21151 # The file is in a subdirectory.
21152 test ! -d "$ac_dir" && mkdir "$ac_dir"
21153 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
21154 # A "../" for each directory in $ac_dir_suffix.
21155 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
21156 else
21157 ac_dir_suffix= ac_dots=
21158 fi
21159
21160 case "$ac_given_srcdir" in
21161 .) srcdir=.
21162 if test -z "$ac_dots"; then top_srcdir=.
21163 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
21164 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
21165 *) # Relative path.
21166 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
21167 top_srcdir="$ac_dots$ac_given_srcdir" ;;
21168 esac
21169
21170 case "$ac_given_INSTALL" in
21171 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21172 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21173 esac
21174
21175 echo creating "$ac_file"
21176 rm -f "$ac_file"
21177 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
21178 case "$ac_file" in
21179 *Makefile*) ac_comsub="1i\\
21180# $configure_input" ;;
21181 *) ac_comsub= ;;
21182 esac
21183
21184 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21185 sed -e "$ac_comsub
21186s%@configure_input@%$configure_input%g
21187s%@srcdir@%$srcdir%g
21188s%@top_srcdir@%$top_srcdir%g
21189s%@INSTALL@%$INSTALL%g
21190" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
21191fi; done
21192rm -f conftest.s*
21193
21194# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21195# NAME is the cpp macro being defined and VALUE is the value it is being given.
21196#
21197# ac_d sets the value in "#define NAME VALUE" lines.
21198ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21199ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
21200ac_dC='\3'
21201ac_dD='%g'
21202# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21203ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21204ac_uB='\([ ]\)%\1#\2define\3'
21205ac_uC=' '
21206ac_uD='\4%g'
21207# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21208ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21209ac_eB='$%\1#\2define\3'
21210ac_eC=' '
21211ac_eD='%g'
21212
21213if test "${CONFIG_HEADERS+set}" != set; then
21214EOF
21215cat >> $CONFIG_STATUS <<EOF
21216 CONFIG_HEADERS="setup.h:setup.h.in"
21217EOF
21218cat >> $CONFIG_STATUS <<\EOF
21219fi
21220for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
21221 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21222 case "$ac_file" in
21223 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21224 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21225 *) ac_file_in="${ac_file}.in" ;;
21226 esac
21227
21228 echo creating $ac_file
21229
21230 rm -f conftest.frag conftest.in conftest.out
21231 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21232 cat $ac_file_inputs > conftest.in
21233
21234EOF
21235
21236# Transform confdefs.h into a sed script conftest.vals that substitutes
21237# the proper values into config.h.in to produce config.h. And first:
21238# Protect against being on the right side of a sed subst in config.status.
21239# Protect against being in an unquoted here document in config.status.
21240rm -f conftest.vals
21241cat > conftest.hdr <<\EOF
21242s/[\\&%]/\\&/g
21243s%[\\$`]%\\&%g
21244s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21245s%ac_d%ac_u%gp
21246s%ac_u%ac_e%gp
21247EOF
21248sed -n -f conftest.hdr confdefs.h > conftest.vals
21249rm -f conftest.hdr
21250
21251# This sed command replaces #undef with comments. This is necessary, for
21252# example, in the case of _POSIX_SOURCE, which is predefined and required
21253# on some systems where configure will not decide to define it.
21254cat >> conftest.vals <<\EOF
21255s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
21256EOF
21257
21258# Break up conftest.vals because some shells have a limit on
21259# the size of here documents, and old seds have small limits too.
21260
21261rm -f conftest.tail
21262while :
21263do
21264 ac_lines=`grep -c . conftest.vals`
21265 # grep -c gives empty output for an empty file on some AIX systems.
21266 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21267 # Write a limited-size here document to conftest.frag.
21268 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21269 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
21270 echo 'CEOF
21271 sed -f conftest.frag conftest.in > conftest.out
21272 rm -f conftest.in
21273 mv conftest.out conftest.in
21274' >> $CONFIG_STATUS
21275 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21276 rm -f conftest.vals
21277 mv conftest.tail conftest.vals
21278done
21279rm -f conftest.vals
21280
21281cat >> $CONFIG_STATUS <<\EOF
21282 rm -f conftest.frag conftest.h
21283 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
21284 cat conftest.in >> conftest.h
21285 rm -f conftest.in
21286 if cmp -s $ac_file conftest.h 2>/dev/null; then
21287 echo "$ac_file is unchanged"
21288 rm -f conftest.h
21289 else
21290 # Remove last slash and all that follows it. Not all systems have dirname.
21291 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21292 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21293 # The file is in a subdirectory.
21294 test ! -d "$ac_dir" && mkdir "$ac_dir"
21295 fi
21296 rm -f $ac_file
21297 mv conftest.h $ac_file
21298 fi
21299fi; done
21300
21301EOF
21302cat >> $CONFIG_STATUS <<EOF
21303
21304 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
21305 LN_S="${LN_S}"
21306
21307
21308EOF
21309cat >> $CONFIG_STATUS <<\EOF
21310
21311 if test ! -h wx-config; then
21312 chmod +x wx-config
21313 mv wx-config wx${TOOLCHAIN_NAME}-config
21314 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
21315 fi
21316
21317 if test ! -d lib; then
21318 mkdir lib
21319 fi
21320 if test ! -d lib/wx; then
21321 mkdir lib/wx
21322 fi
21323 if test ! -d lib/wx/include; then
21324 mkdir lib/wx/include
21325 fi
21326 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
21327 mkdir lib/wx/include/${TOOLCHAIN_NAME}
21328 fi
21329 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
21330 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
21331 fi
21332 if test -f setup.h; then
21333 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
21334 fi
21335
21336exit 0
21337EOF
21338chmod +x $CONFIG_STATUS
21339rm -fr confdefs* $ac_clean_files
21340test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
21341
21342if test "$no_recursion" != yes; then
21343
21344 # Remove --cache-file and --srcdir arguments so they do not pile up.
21345 ac_sub_configure_args=
21346 ac_prev=
21347 for ac_arg in $ac_configure_args; do
21348 if test -n "$ac_prev"; then
21349 ac_prev=
21350 continue
21351 fi
21352 case "$ac_arg" in
21353 -cache-file | --cache-file | --cache-fil | --cache-fi \
21354 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21355 ac_prev=cache_file ;;
21356 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21357 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
21358 ;;
21359 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21360 ac_prev=srcdir ;;
21361 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21362 ;;
21363 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
21364 esac
21365 done
21366
21367 for ac_config_dir in demos samples utils contrib; do
21368
21369 # Do not complain, so a configure script can configure whichever
21370 # parts of a large source tree are present.
21371 if test ! -d $srcdir/$ac_config_dir; then
21372 continue
21373 fi
21374
21375 echo configuring in $ac_config_dir
21376
21377 case "$srcdir" in
21378 .) ;;
21379 *)
21380 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
21381 else
21382 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
21383 fi
21384 ;;
21385 esac
21386
21387 ac_popdir=`pwd`
21388 cd $ac_config_dir
21389
21390 # A "../" for each directory in /$ac_config_dir.
21391 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
21392
21393 case "$srcdir" in
21394 .) # No --srcdir option. We are building in place.
21395 ac_sub_srcdir=$srcdir ;;
21396 /*) # Absolute path.
21397 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
21398 *) # Relative path.
21399 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
21400 esac
21401
21402 # Check for guested configure; otherwise get Cygnus style configure.
21403 if test -f $ac_sub_srcdir/configure; then
21404 ac_sub_configure=$ac_sub_srcdir/configure
21405 elif test -f $ac_sub_srcdir/configure.in; then
21406 ac_sub_configure=$ac_configure
21407 else
21408 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
21409 ac_sub_configure=
21410 fi
21411
21412 # The recursion is here.
21413 if test -n "$ac_sub_configure"; then
21414
21415 # Make the cache file name correct relative to the subdirectory.
21416 case "$cache_file" in
21417 /*) ac_sub_cache_file=$cache_file ;;
21418 *) # Relative path.
21419 ac_sub_cache_file="$ac_dots$cache_file" ;;
21420 esac
21421 case "$ac_given_INSTALL" in
21422 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21423 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21424 esac
21425
21426 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
21427 # The eval makes quoting arguments work.
21428 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21429 then :
21430 else
21431 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21432 fi
21433 fi
21434
21435 cd $ac_popdir
21436 done
21437fi
21438
21439