]> git.saurik.com Git - wxWidgets.git/blame_incremental - configure
The last commit was too hasty.
[wxWidgets.git] / configure
... / ...
CommitLineData
1#! /bin/sh
2
3# From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52# Configure paths for GTK+
53# Owen Taylor 97-11-3
54
55
56
57# Guess values for system-dependent variables and create Makefiles.
58# Generated automatically using autoconf version 2.13
59# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
60#
61# This configure script is free software; the Free Software Foundation
62# gives unlimited permission to copy, distribute and modify it.
63
64# Defaults:
65ac_help=
66ac_default_prefix=/usr/local
67# Any additions from configure.in:
68ac_help="$ac_help
69 --enable-gui use GUI classes"
70ac_help="$ac_help
71 --enable-universal use wxWindows GUI controls instead of native ones"
72ac_help="$ac_help
73 --with-gtk use GTK+"
74ac_help="$ac_help
75 --with-motif use Motif/Lesstif"
76ac_help="$ac_help
77 --with-mac use Mac OS X"
78ac_help="$ac_help
79 --with-wine use WINE"
80ac_help="$ac_help
81 --with-msw use MS-Windows"
82ac_help="$ac_help
83 --with-pm use OS/2 Presentation Manager"
84ac_help="$ac_help
85 --with-mgl use SciTech MGL"
86ac_help="$ac_help
87 --with-microwin use MicroWindows"
88ac_help="$ac_help
89 --with-x11 use X11"
90ac_help="$ac_help
91 --enable-nanox use NanoX"
92ac_help="$ac_help
93 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
94ac_help="$ac_help
95 --with-libpng use libpng (PNG image format)"
96ac_help="$ac_help
97 --with-libjpeg use libjpeg (JPEG file format)"
98ac_help="$ac_help
99 --with-libtiff use libtiff (TIFF file format)"
100ac_help="$ac_help
101 --with-opengl use OpenGL (or Mesa)"
102ac_help="$ac_help
103 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
104ac_help="$ac_help
105 --with-regex enable support for wxRegEx class"
106ac_help="$ac_help
107 --with-zlib use zlib for LZW compression"
108ac_help="$ac_help
109 --with-odbc use the IODBC and wxODBC classes"
110ac_help="$ac_help
111 --enable-shared create shared library code"
112ac_help="$ac_help
113 --enable-soname set the DT_SONAME field in ELF shared libraries"
114ac_help="$ac_help
115 --enable-optimise create optimised code"
116ac_help="$ac_help
117 --enable-debug same as debug_flag and debug_info"
118ac_help="$ac_help
119 --enable-precomp enable use of precompiled headers (Mac OS X)"
120ac_help="$ac_help
121 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
122ac_help="$ac_help
123 --enable-debug_info create code with debugging information"
124ac_help="$ac_help
125 --enable-debug_gdb create code with extra GDB debugging information"
126ac_help="$ac_help
127 --enable-debug_cntxt use wxDebugContext"
128ac_help="$ac_help
129 --enable-mem_tracing create code with memory tracing"
130ac_help="$ac_help
131 --enable-profile create code with profiling information"
132ac_help="$ac_help
133 --enable-no_rtti create code without RTTI information"
134ac_help="$ac_help
135 --enable-no_exceptions create code without C++ exceptions handling"
136ac_help="$ac_help
137 --enable-permissive compile code disregarding strict ANSI"
138ac_help="$ac_help
139 --enable-no_deps create code without dependency information"
140ac_help="$ac_help
141 --enable-compat20 enable wxWindows 2.0 compatibility"
142ac_help="$ac_help
143 --enable-compat22 enable wxWindows 2.2 compatibility"
144ac_help="$ac_help
145 --enable-intl use internationalization system"
146ac_help="$ac_help
147 --enable-config use wxConfig (and derived) classes"
148ac_help="$ac_help
149 --enable-protocols use wxProtocol and derived classes"
150ac_help="$ac_help
151 --enable-ftp use wxFTP (requires wxProtocol"
152ac_help="$ac_help
153 --enable-http use wxHTTP (requires wxProtocol"
154ac_help="$ac_help
155 --enable-fileproto use wxFileProto class (requires wxProtocol"
156ac_help="$ac_help
157 --enable-sockets use socket/network classes"
158ac_help="$ac_help
159 --enable-ipc use interprocess communication (wxSocket etc.)"
160ac_help="$ac_help
161 --enable-cmdline use wxCmdLineParser class"
162ac_help="$ac_help
163 --enable-datetime use wxDateTime class"
164ac_help="$ac_help
165 --enable-timedate use obsolete wxDate/wxTime classes"
166ac_help="$ac_help
167 --enable-stopwatch use wxStopWatch class"
168ac_help="$ac_help
169 --enable-dialupman use dialup network classes"
170ac_help="$ac_help
171 --enable-apple_ieee use the Apple IEEE codec"
172ac_help="$ac_help
173 --enable-timer use wxTimer class"
174ac_help="$ac_help
175 --enable-wave use wxWave class"
176ac_help="$ac_help
177 --enable-fraction use wxFraction class"
178ac_help="$ac_help
179 --enable-dynlib use wxLibrary class for DLL loading"
180ac_help="$ac_help
181 --enable-dynamicloader use (new) wxDynamicLibrary class"
182ac_help="$ac_help
183 --enable-longlong use wxLongLong class"
184ac_help="$ac_help
185 --enable-geometry use geometry class"
186ac_help="$ac_help
187 --enable-log use logging system"
188ac_help="$ac_help
189 --enable-streams use wxStream etc classes"
190ac_help="$ac_help
191 --enable-file use wxFile classes"
192ac_help="$ac_help
193 --enable-ffile use wxFFile classes"
194ac_help="$ac_help
195 --enable-textbuf use wxTextBuffer class"
196ac_help="$ac_help
197 --enable-textfile use wxTextFile class"
198ac_help="$ac_help
199 --enable-fontmap use font encodings conversion classes"
200ac_help="$ac_help
201 --enable-unicode compile wxString with Unicode support"
202ac_help="$ac_help
203 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
204ac_help="$ac_help
205 --enable-wxprintfv use wxWindows implementation of vprintf()"
206ac_help="$ac_help
207 --enable-std_iostreams use standard C++ stream classes"
208ac_help="$ac_help
209 --enable-filesystem use virtual file systems classes"
210ac_help="$ac_help
211 --enable-fs_inet use virtual HTTP/FTP filesystems"
212ac_help="$ac_help
213 --enable-fs_zip use virtual ZIP filesystems"
214ac_help="$ac_help
215 --enable-zipstream use wxZipInputStream"
216ac_help="$ac_help
217 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
218ac_help="$ac_help
219 --enable-snglinst use wxSingleInstanceChecker class"
220ac_help="$ac_help
221 --enable-mimetype use wxMimeTypesManager"
222ac_help="$ac_help
223 --enable-sysoptions use wxSystemOptions"
224ac_help="$ac_help
225 --enable-url use wxURL class"
226ac_help="$ac_help
227 --enable-protocol use wxProtocol class"
228ac_help="$ac_help
229 --enable-protocol-http HTTP support in wxProtocol"
230ac_help="$ac_help
231 --enable-protocol-ftp FTP support in wxProtocol"
232ac_help="$ac_help
233 --enable-protocol-file FILE support in wxProtocol"
234ac_help="$ac_help
235 --enable-threads use threads"
236ac_help="$ac_help
237 --enable-docview use document view architecture"
238ac_help="$ac_help
239 --enable-help use help subsystem"
240ac_help="$ac_help
241 --enable-mshtmlhelp use MS HTML Help (win32)"
242ac_help="$ac_help
243 --enable-html use wxHTML sub-library"
244ac_help="$ac_help
245 --enable-htmlhelp use wxHTML-based help"
246ac_help="$ac_help
247 --enable-constraints use layout-constraints system"
248ac_help="$ac_help
249 --enable-printarch use printing architecture"
250ac_help="$ac_help
251 --enable-mdi use multiple document interface architecture"
252ac_help="$ac_help
253 --enable-loggui use standard GUI logger"
254ac_help="$ac_help
255 --enable-logwin use wxLogWindow"
256ac_help="$ac_help
257 --enable-logdialog use wxLogDialog"
258ac_help="$ac_help
259 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
260ac_help="$ac_help
261 --enable-prologio use Prolog IO library"
262ac_help="$ac_help
263 --enable-resources use wxWindows resources"
264ac_help="$ac_help
265 --enable-xresources use X resources for save (default for gtk+)"
266ac_help="$ac_help
267 --enable-clipboard use wxClipboard classes"
268ac_help="$ac_help
269 --enable-dnd use Drag'n'Drop classes"
270ac_help="$ac_help
271 --enable-metafile use win32 metafiles"
272ac_help="$ac_help
273 --enable-treelayout use wxTreeLayout classes"
274ac_help="$ac_help
275 --enable-controls use all usual controls"
276ac_help="$ac_help
277 --enable-accel use accelerators"
278ac_help="$ac_help
279 --enable-button use wxButton class"
280ac_help="$ac_help
281 --enable-bmpbutton use wxBitmapButton class"
282ac_help="$ac_help
283 --enable-calendar use wxCalendarCtrl class"
284ac_help="$ac_help
285 --enable-caret use wxCaret class"
286ac_help="$ac_help
287 --enable-checkbox use wxCheckBox class"
288ac_help="$ac_help
289 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
290ac_help="$ac_help
291 --enable-choice use wxChoice class"
292ac_help="$ac_help
293 --enable-combobox use wxComboBox classes"
294ac_help="$ac_help
295 --enable-gauge use wxGauge class"
296ac_help="$ac_help
297 --enable-grid use wxGrid class"
298ac_help="$ac_help
299 --enable-newgrid use new wxGrid class"
300ac_help="$ac_help
301 --enable-imaglist use wxImageList class"
302ac_help="$ac_help
303 --enable-listbox use wxListBox class"
304ac_help="$ac_help
305 --enable-listctrl use wxListCtrl class"
306ac_help="$ac_help
307 --enable-notebook use wxNotebook class"
308ac_help="$ac_help
309 --enable-propsheet use wxPropertySheet class"
310ac_help="$ac_help
311 --enable-radiobox use wxRadioBox class"
312ac_help="$ac_help
313 --enable-radiobtn use wxRadioButton class"
314ac_help="$ac_help
315 --enable-sash use wxSashWindow class"
316ac_help="$ac_help
317 --enable-scrollbar use wxScrollBar class and scrollable windows"
318ac_help="$ac_help
319 --enable-slider use wxSlider class"
320ac_help="$ac_help
321 --enable-spinbtn use wxSpinButton class"
322ac_help="$ac_help
323 --enable-spinctrl use wxSpinCtrl class"
324ac_help="$ac_help
325 --enable-splitter use wxSplitterWindow class"
326ac_help="$ac_help
327 --enable-statbmp use wxStaticBitmap class"
328ac_help="$ac_help
329 --enable-statbox use wxStaticBox class"
330ac_help="$ac_help
331 --enable-statline use wxStaticLine class"
332ac_help="$ac_help
333 --enable-stattext use wxStaticText class"
334ac_help="$ac_help
335 --enable-statusbar use wxStatusBar class"
336ac_help="$ac_help
337 --enable-tabdialog use wxTabControl class"
338ac_help="$ac_help
339 --enable-textctrl use wxTextCtrl class"
340ac_help="$ac_help
341 --enable-togglebtn use wxToggleButton class"
342ac_help="$ac_help
343 --enable-toolbar use wxToolBar class"
344ac_help="$ac_help
345 --enable-tbarnative use native wxToolBar class"
346ac_help="$ac_help
347 --enable-tbarsmpl use wxToolBarSimple class"
348ac_help="$ac_help
349 --enable-treectrl use wxTreeCtrl class"
350ac_help="$ac_help
351 --enable-tipwindow use wxTipWindow class"
352ac_help="$ac_help
353 --enable-popupwin use wxPopUpWindow class"
354ac_help="$ac_help
355 --enable-commondlg use all common dialogs"
356ac_help="$ac_help
357 --enable-choicedlg use wxChoiceDialog"
358ac_help="$ac_help
359 --enable-coldlg use wxColourDialog"
360ac_help="$ac_help
361 --enable-filedlg use wxFileDialog"
362ac_help="$ac_help
363 --enable-finddlg use wxFindReplaceDialog"
364ac_help="$ac_help
365 --enable-fontdlg use wxFontDialog"
366ac_help="$ac_help
367 --enable-dirdlg use wxDirDialog"
368ac_help="$ac_help
369 --enable-msgdlg use wxMessageDialog"
370ac_help="$ac_help
371 --enable-numberdlg use wxNumberEntryDialog"
372ac_help="$ac_help
373 --enable-splash use wxSplashScreen"
374ac_help="$ac_help
375 --enable-textdlg use wxTextDialog"
376ac_help="$ac_help
377 --enable-tipdlg use startup tips"
378ac_help="$ac_help
379 --enable-progressdlg use wxProgressDialog"
380ac_help="$ac_help
381 --enable-wizarddlg use wxWizard"
382ac_help="$ac_help
383 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
384ac_help="$ac_help
385 --enable-miniframe use wxMiniFrame class"
386ac_help="$ac_help
387 --enable-tooltips use wxToolTip class"
388ac_help="$ac_help
389 --enable-splines use spline drawing code"
390ac_help="$ac_help
391 --enable-validators use wxValidator and derived classes"
392ac_help="$ac_help
393 --enable-busyinfo use wxBusyInfo"
394ac_help="$ac_help
395 --enable-joystick use wxJoystick (Linux only)"
396ac_help="$ac_help
397 --enable-metafiles use wxMetaFile (Windows only)"
398ac_help="$ac_help
399 --enable-dragimage use wxDragImage"
400ac_help="$ac_help
401 --enable-palette use wxPalette class"
402ac_help="$ac_help
403 --enable-image use wxImage class"
404ac_help="$ac_help
405 --enable-gif use gif images (GIF file format)"
406ac_help="$ac_help
407 --enable-pcx use pcx images (PCX file format)"
408ac_help="$ac_help
409 --enable-iff use iff images (IFF file format)"
410ac_help="$ac_help
411 --enable-pnm use pnm images (PNM file format)"
412ac_help="$ac_help
413 --enable-xpm use xpm images (XPM file format)"
414ac_help="$ac_help
415 --enable-icocur use Windows ICO and CUR formats"
416ac_help="$ac_help
417 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
418ac_help="$ac_help
419 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
420ac_help="$ac_help
421 --disable-gtktest Do not try to compile and run a test GTK program"
422ac_help="$ac_help
423 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
424ac_help="$ac_help
425 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
426ac_help="$ac_help
427 --disable-gtktest Do not try to compile and run a test GTK program"
428ac_help="$ac_help
429 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
430ac_help="$ac_help
431 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
432ac_help="$ac_help
433 --disable-gtktest Do not try to compile and run a test GTK program"
434ac_help="$ac_help
435 --with-x use the X Window System"
436ac_help="$ac_help
437 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
438
439# Initialize some variables set by options.
440# The variables have the same names as the options, with
441# dashes changed to underlines.
442build=NONE
443cache_file=./config.cache
444exec_prefix=NONE
445host=NONE
446no_create=
447nonopt=NONE
448no_recursion=
449prefix=NONE
450program_prefix=NONE
451program_suffix=NONE
452program_transform_name=s,x,x,
453silent=
454site=
455srcdir=
456target=NONE
457verbose=
458x_includes=NONE
459x_libraries=NONE
460bindir='${exec_prefix}/bin'
461sbindir='${exec_prefix}/sbin'
462libexecdir='${exec_prefix}/libexec'
463datadir='${prefix}/share'
464sysconfdir='${prefix}/etc'
465sharedstatedir='${prefix}/com'
466localstatedir='${prefix}/var'
467libdir='${exec_prefix}/lib'
468includedir='${prefix}/include'
469oldincludedir='/usr/include'
470infodir='${prefix}/info'
471mandir='${prefix}/man'
472
473# Initialize some other variables.
474subdirs=
475MFLAGS= MAKEFLAGS=
476SHELL=${CONFIG_SHELL-/bin/sh}
477# Maximum number of lines to put in a shell here document.
478ac_max_here_lines=12
479
480ac_prev=
481for ac_option
482do
483
484 # If the previous option needs an argument, assign it.
485 if test -n "$ac_prev"; then
486 eval "$ac_prev=\$ac_option"
487 ac_prev=
488 continue
489 fi
490
491 case "$ac_option" in
492 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
493 *) ac_optarg= ;;
494 esac
495
496 # Accept the important Cygnus configure options, so we can diagnose typos.
497
498 case "$ac_option" in
499
500 -bindir | --bindir | --bindi | --bind | --bin | --bi)
501 ac_prev=bindir ;;
502 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
503 bindir="$ac_optarg" ;;
504
505 -build | --build | --buil | --bui | --bu)
506 ac_prev=build ;;
507 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
508 build="$ac_optarg" ;;
509
510 -cache-file | --cache-file | --cache-fil | --cache-fi \
511 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
512 ac_prev=cache_file ;;
513 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
514 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
515 cache_file="$ac_optarg" ;;
516
517 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
518 ac_prev=datadir ;;
519 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
520 | --da=*)
521 datadir="$ac_optarg" ;;
522
523 -disable-* | --disable-*)
524 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
525 # Reject names that are not valid shell variable names.
526 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
527 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
528 fi
529 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
530 eval "enable_${ac_feature}=no" ;;
531
532 -enable-* | --enable-*)
533 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
534 # Reject names that are not valid shell variable names.
535 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
536 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
537 fi
538 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
539 case "$ac_option" in
540 *=*) ;;
541 *) ac_optarg=yes ;;
542 esac
543 eval "enable_${ac_feature}='$ac_optarg'" ;;
544
545 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
546 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
547 | --exec | --exe | --ex)
548 ac_prev=exec_prefix ;;
549 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
550 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
551 | --exec=* | --exe=* | --ex=*)
552 exec_prefix="$ac_optarg" ;;
553
554 -gas | --gas | --ga | --g)
555 # Obsolete; use --with-gas.
556 with_gas=yes ;;
557
558 -help | --help | --hel | --he)
559 # Omit some internal or obsolete options to make the list less imposing.
560 # This message is too long to be a string in the A/UX 3.1 sh.
561 cat << EOF
562Usage: configure [options] [host]
563Options: [defaults in brackets after descriptions]
564Configuration:
565 --cache-file=FILE cache test results in FILE
566 --help print this message
567 --no-create do not create output files
568 --quiet, --silent do not print \`checking...' messages
569 --version print the version of autoconf that created configure
570Directory and file names:
571 --prefix=PREFIX install architecture-independent files in PREFIX
572 [$ac_default_prefix]
573 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
574 [same as prefix]
575 --bindir=DIR user executables in DIR [EPREFIX/bin]
576 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
577 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
578 --datadir=DIR read-only architecture-independent data in DIR
579 [PREFIX/share]
580 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
581 --sharedstatedir=DIR modifiable architecture-independent data in DIR
582 [PREFIX/com]
583 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
584 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
585 --includedir=DIR C header files in DIR [PREFIX/include]
586 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
587 --infodir=DIR info documentation in DIR [PREFIX/info]
588 --mandir=DIR man documentation in DIR [PREFIX/man]
589 --srcdir=DIR find the sources in DIR [configure dir or ..]
590 --program-prefix=PREFIX prepend PREFIX to installed program names
591 --program-suffix=SUFFIX append SUFFIX to installed program names
592 --program-transform-name=PROGRAM
593 run sed PROGRAM on installed program names
594EOF
595 cat << EOF
596Host type:
597 --build=BUILD configure for building on BUILD [BUILD=HOST]
598 --host=HOST configure for HOST [guessed]
599 --target=TARGET configure for TARGET [TARGET=HOST]
600Features and packages:
601 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
602 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
603 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
604 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
605 --x-includes=DIR X include files are in DIR
606 --x-libraries=DIR X library files are in DIR
607EOF
608 if test -n "$ac_help"; then
609 echo "--enable and --with options recognized:$ac_help"
610 fi
611 exit 0 ;;
612
613 -host | --host | --hos | --ho)
614 ac_prev=host ;;
615 -host=* | --host=* | --hos=* | --ho=*)
616 host="$ac_optarg" ;;
617
618 -includedir | --includedir | --includedi | --included | --include \
619 | --includ | --inclu | --incl | --inc)
620 ac_prev=includedir ;;
621 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
622 | --includ=* | --inclu=* | --incl=* | --inc=*)
623 includedir="$ac_optarg" ;;
624
625 -infodir | --infodir | --infodi | --infod | --info | --inf)
626 ac_prev=infodir ;;
627 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
628 infodir="$ac_optarg" ;;
629
630 -libdir | --libdir | --libdi | --libd)
631 ac_prev=libdir ;;
632 -libdir=* | --libdir=* | --libdi=* | --libd=*)
633 libdir="$ac_optarg" ;;
634
635 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
636 | --libexe | --libex | --libe)
637 ac_prev=libexecdir ;;
638 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
639 | --libexe=* | --libex=* | --libe=*)
640 libexecdir="$ac_optarg" ;;
641
642 -localstatedir | --localstatedir | --localstatedi | --localstated \
643 | --localstate | --localstat | --localsta | --localst \
644 | --locals | --local | --loca | --loc | --lo)
645 ac_prev=localstatedir ;;
646 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
647 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
648 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
649 localstatedir="$ac_optarg" ;;
650
651 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
652 ac_prev=mandir ;;
653 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
654 mandir="$ac_optarg" ;;
655
656 -nfp | --nfp | --nf)
657 # Obsolete; use --without-fp.
658 with_fp=no ;;
659
660 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
661 | --no-cr | --no-c)
662 no_create=yes ;;
663
664 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
665 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
666 no_recursion=yes ;;
667
668 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
669 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
670 | --oldin | --oldi | --old | --ol | --o)
671 ac_prev=oldincludedir ;;
672 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
673 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
674 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
675 oldincludedir="$ac_optarg" ;;
676
677 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
678 ac_prev=prefix ;;
679 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
680 prefix="$ac_optarg" ;;
681
682 -program-prefix | --program-prefix | --program-prefi | --program-pref \
683 | --program-pre | --program-pr | --program-p)
684 ac_prev=program_prefix ;;
685 -program-prefix=* | --program-prefix=* | --program-prefi=* \
686 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
687 program_prefix="$ac_optarg" ;;
688
689 -program-suffix | --program-suffix | --program-suffi | --program-suff \
690 | --program-suf | --program-su | --program-s)
691 ac_prev=program_suffix ;;
692 -program-suffix=* | --program-suffix=* | --program-suffi=* \
693 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
694 program_suffix="$ac_optarg" ;;
695
696 -program-transform-name | --program-transform-name \
697 | --program-transform-nam | --program-transform-na \
698 | --program-transform-n | --program-transform- \
699 | --program-transform | --program-transfor \
700 | --program-transfo | --program-transf \
701 | --program-trans | --program-tran \
702 | --progr-tra | --program-tr | --program-t)
703 ac_prev=program_transform_name ;;
704 -program-transform-name=* | --program-transform-name=* \
705 | --program-transform-nam=* | --program-transform-na=* \
706 | --program-transform-n=* | --program-transform-=* \
707 | --program-transform=* | --program-transfor=* \
708 | --program-transfo=* | --program-transf=* \
709 | --program-trans=* | --program-tran=* \
710 | --progr-tra=* | --program-tr=* | --program-t=*)
711 program_transform_name="$ac_optarg" ;;
712
713 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
714 | -silent | --silent | --silen | --sile | --sil)
715 silent=yes ;;
716
717 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
718 ac_prev=sbindir ;;
719 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
720 | --sbi=* | --sb=*)
721 sbindir="$ac_optarg" ;;
722
723 -sharedstatedir | --sharedstatedir | --sharedstatedi \
724 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
725 | --sharedst | --shareds | --shared | --share | --shar \
726 | --sha | --sh)
727 ac_prev=sharedstatedir ;;
728 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
729 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
730 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
731 | --sha=* | --sh=*)
732 sharedstatedir="$ac_optarg" ;;
733
734 -site | --site | --sit)
735 ac_prev=site ;;
736 -site=* | --site=* | --sit=*)
737 site="$ac_optarg" ;;
738
739 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
740 ac_prev=srcdir ;;
741 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
742 srcdir="$ac_optarg" ;;
743
744 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
745 | --syscon | --sysco | --sysc | --sys | --sy)
746 ac_prev=sysconfdir ;;
747 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
748 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
749 sysconfdir="$ac_optarg" ;;
750
751 -target | --target | --targe | --targ | --tar | --ta | --t)
752 ac_prev=target ;;
753 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
754 target="$ac_optarg" ;;
755
756 -v | -verbose | --verbose | --verbos | --verbo | --verb)
757 verbose=yes ;;
758
759 -version | --version | --versio | --versi | --vers)
760 echo "configure generated by autoconf version 2.13"
761 exit 0 ;;
762
763 -with-* | --with-*)
764 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
765 # Reject names that are not valid shell variable names.
766 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
767 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
768 fi
769 ac_package=`echo $ac_package| sed 's/-/_/g'`
770 case "$ac_option" in
771 *=*) ;;
772 *) ac_optarg=yes ;;
773 esac
774 eval "with_${ac_package}='$ac_optarg'" ;;
775
776 -without-* | --without-*)
777 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
778 # Reject names that are not valid shell variable names.
779 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
780 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
781 fi
782 ac_package=`echo $ac_package| sed 's/-/_/g'`
783 eval "with_${ac_package}=no" ;;
784
785 --x)
786 # Obsolete; use --with-x.
787 with_x=yes ;;
788
789 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
790 | --x-incl | --x-inc | --x-in | --x-i)
791 ac_prev=x_includes ;;
792 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
793 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
794 x_includes="$ac_optarg" ;;
795
796 -x-libraries | --x-libraries | --x-librarie | --x-librari \
797 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
798 ac_prev=x_libraries ;;
799 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
800 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
801 x_libraries="$ac_optarg" ;;
802
803 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
804 ;;
805
806 *)
807 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
808 echo "configure: warning: $ac_option: invalid host type" 1>&2
809 fi
810 if test "x$nonopt" != xNONE; then
811 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
812 fi
813 nonopt="$ac_option"
814 ;;
815
816 esac
817done
818
819if test -n "$ac_prev"; then
820 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
821fi
822
823trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
824
825# File descriptor usage:
826# 0 standard input
827# 1 file creation
828# 2 errors and warnings
829# 3 some systems may open it to /dev/tty
830# 4 used on the Kubota Titan
831# 6 checking for... messages and results
832# 5 compiler messages saved in config.log
833if test "$silent" = yes; then
834 exec 6>/dev/null
835else
836 exec 6>&1
837fi
838exec 5>./config.log
839
840echo "\
841This file contains any messages produced by compilers while
842running configure, to aid debugging if configure makes a mistake.
843" 1>&5
844
845# Strip out --no-create and --no-recursion so they do not pile up.
846# Also quote any args containing shell metacharacters.
847ac_configure_args=
848for ac_arg
849do
850 case "$ac_arg" in
851 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
852 | --no-cr | --no-c) ;;
853 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
854 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
855 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
856 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
857 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
858 esac
859done
860
861# NLS nuisances.
862# Only set these to C if already set. These must not be set unconditionally
863# because not all systems understand e.g. LANG=C (notably SCO).
864# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
865# Non-C LC_CTYPE values break the ctype check.
866if test "${LANG+set}" = set; then LANG=C; export LANG; fi
867if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
868if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
869if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
870
871# confdefs.h avoids OS command line length limits that DEFS can exceed.
872rm -rf conftest* confdefs.h
873# AIX cpp loses on an empty file, so make sure it contains at least a newline.
874echo > confdefs.h
875
876# A filename unique to this package, relative to the directory that
877# configure is in, which we can look for to find out if srcdir is correct.
878ac_unique_file=wx-config.in
879
880# Find the source files, if location was not specified.
881if test -z "$srcdir"; then
882 ac_srcdir_defaulted=yes
883 # Try the directory containing this script, then its parent.
884 ac_prog=$0
885 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
886 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
887 srcdir=$ac_confdir
888 if test ! -r $srcdir/$ac_unique_file; then
889 srcdir=..
890 fi
891else
892 ac_srcdir_defaulted=no
893fi
894if test ! -r $srcdir/$ac_unique_file; then
895 if test "$ac_srcdir_defaulted" = yes; then
896 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
897 else
898 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
899 fi
900fi
901srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
902
903# Prefer explicitly selected file to automatically selected ones.
904if test -z "$CONFIG_SITE"; then
905 if test "x$prefix" != xNONE; then
906 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
907 else
908 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
909 fi
910fi
911for ac_site_file in $CONFIG_SITE; do
912 if test -r "$ac_site_file"; then
913 echo "loading site script $ac_site_file"
914 . "$ac_site_file"
915 fi
916done
917
918if test -r "$cache_file"; then
919 echo "loading cache $cache_file"
920 . $cache_file
921else
922 echo "creating cache $cache_file"
923 > $cache_file
924fi
925
926ac_ext=c
927# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
928ac_cpp='$CPP $CPPFLAGS'
929ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
930ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
931cross_compiling=$ac_cv_prog_cc_cross
932
933ac_exeext=
934ac_objext=o
935if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
936 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
937 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
938 ac_n= ac_c='
939' ac_t=' '
940 else
941 ac_n=-n ac_c= ac_t=
942 fi
943else
944 ac_n= ac_c='\c' ac_t=
945fi
946
947
948
949ac_aux_dir=
950for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
951 if test -f $ac_dir/install-sh; then
952 ac_aux_dir=$ac_dir
953 ac_install_sh="$ac_aux_dir/install-sh -c"
954 break
955 elif test -f $ac_dir/install.sh; then
956 ac_aux_dir=$ac_dir
957 ac_install_sh="$ac_aux_dir/install.sh -c"
958 break
959 fi
960done
961if test -z "$ac_aux_dir"; then
962 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
963fi
964ac_config_guess=$ac_aux_dir/config.guess
965ac_config_sub=$ac_aux_dir/config.sub
966ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
967
968
969# Do some error checking and defaulting for the host and target type.
970# The inputs are:
971# configure --host=HOST --target=TARGET --build=BUILD NONOPT
972#
973# The rules are:
974# 1. You are not allowed to specify --host, --target, and nonopt at the
975# same time.
976# 2. Host defaults to nonopt.
977# 3. If nonopt is not specified, then host defaults to the current host,
978# as determined by config.guess.
979# 4. Target and build default to nonopt.
980# 5. If nonopt is not specified, then target and build default to host.
981
982# The aliases save the names the user supplied, while $host etc.
983# will get canonicalized.
984case $host---$target---$nonopt in
985NONE---*---* | *---NONE---* | *---*---NONE) ;;
986*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
987esac
988
989
990# Make sure we can run config.sub.
991if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
992else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
993fi
994
995echo $ac_n "checking host system type""... $ac_c" 1>&6
996echo "configure:997: checking host system type" >&5
997
998host_alias=$host
999case "$host_alias" in
1000NONE)
1001 case $nonopt in
1002 NONE)
1003 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1004 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1005 fi ;;
1006 *) host_alias=$nonopt ;;
1007 esac ;;
1008esac
1009
1010host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1011host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1012host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1013host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1014echo "$ac_t""$host" 1>&6
1015
1016echo $ac_n "checking target system type""... $ac_c" 1>&6
1017echo "configure:1018: checking target system type" >&5
1018
1019target_alias=$target
1020case "$target_alias" in
1021NONE)
1022 case $nonopt in
1023 NONE) target_alias=$host_alias ;;
1024 *) target_alias=$nonopt ;;
1025 esac ;;
1026esac
1027
1028target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1029target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1030target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1031target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1032echo "$ac_t""$target" 1>&6
1033
1034echo $ac_n "checking build system type""... $ac_c" 1>&6
1035echo "configure:1036: checking build system type" >&5
1036
1037build_alias=$build
1038case "$build_alias" in
1039NONE)
1040 case $nonopt in
1041 NONE) build_alias=$host_alias ;;
1042 *) build_alias=$nonopt ;;
1043 esac ;;
1044esac
1045
1046build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1047build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1048build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1049build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1050echo "$ac_t""$build" 1>&6
1051
1052test "$host_alias" != "$target_alias" &&
1053 test "$program_prefix$program_suffix$program_transform_name" = \
1054 NONENONEs,x,x, &&
1055 program_prefix=${target_alias}-
1056
1057
1058
1059WX_MAJOR_VERSION_NUMBER=2
1060WX_MINOR_VERSION_NUMBER=3
1061WX_RELEASE_NUMBER=3
1062
1063WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1064WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1065
1066WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1067
1068WX_CURRENT=2
1069WX_REVISION=0
1070WX_AGE=0
1071
1072
1073
1074USE_UNIX=1
1075USE_WIN32=0
1076USE_DOS=0
1077USE_BEOS=0
1078USE_MAC=0
1079
1080USE_LINUX=
1081USE_SGI=
1082USE_HPUX=
1083USE_SYSV=
1084USE_SVR4=
1085USE_AIX=
1086USE_SUN=
1087USE_SOLARIS=
1088USE_SUNOS=
1089USE_ALPHA=
1090USE_OSF=
1091USE_BSD=
1092USE_DARWIN=
1093USE_FREEBSD=
1094USE_OPENBSD=
1095USE_NETBSD=
1096USE_VMS=
1097USE_ULTRIX=
1098USE_DATA_GENERAL=
1099
1100NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1101
1102CPP_MT_FLAG=-D_REENTRANT
1103
1104ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
1105
1106DEFAULT_wxUSE_GTK=0
1107DEFAULT_wxUSE_MAC=0
1108DEFAULT_wxUSE_MGL=0
1109DEFAULT_wxUSE_MICROWIN=0
1110DEFAULT_wxUSE_MOTIF=0
1111DEFAULT_wxUSE_MSW=0
1112DEFAULT_wxUSE_PM=0
1113DEFAULT_wxUSE_WINE=0
1114DEFAULT_wxUSE_X11=0
1115
1116DEFAULT_DEFAULT_wxUSE_GTK=0
1117DEFAULT_DEFAULT_wxUSE_MAC=0
1118DEFAULT_DEFAULT_wxUSE_MGL=0
1119DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1120DEFAULT_DEFAULT_wxUSE_MOTIF=0
1121DEFAULT_DEFAULT_wxUSE_MSW=0
1122DEFAULT_DEFAULT_wxUSE_PM=0
1123DEFAULT_DEFAULT_wxUSE_WINE=0
1124DEFAULT_DEFAULT_wxUSE_X11=0
1125
1126PROGRAM_EXT=
1127SO_SUFFIX=so
1128
1129case "${host}" in
1130 *-hp-hpux* )
1131 USE_HPUX=1
1132 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1133 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1134 SO_SUFFIX=sl
1135 cat >> confdefs.h <<\EOF
1136#define __HPUX__ 1
1137EOF
1138
1139 ;;
1140 *-*-linux* )
1141 USE_LINUX=1
1142 cat >> confdefs.h <<\EOF
1143#define __LINUX__ 1
1144EOF
1145
1146 TMP=`uname -m`
1147 if test "x$TMP" = "xalpha"; then
1148 USE_ALPHA=1
1149 cat >> confdefs.h <<\EOF
1150#define __ALPHA__ 1
1151EOF
1152
1153 fi
1154 DEFAULT_DEFAULT_wxUSE_GTK=1
1155 ;;
1156 *-*-irix5* | *-*-irix6* )
1157 USE_SGI=1
1158 USE_SVR4=1
1159 cat >> confdefs.h <<\EOF
1160#define __SGI__ 1
1161EOF
1162
1163 cat >> confdefs.h <<\EOF
1164#define __SVR4__ 1
1165EOF
1166
1167 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1168 ;;
1169 *-*-solaris2* )
1170 USE_SUN=1
1171 USE_SOLARIS=1
1172 USE_SVR4=1
1173 cat >> confdefs.h <<\EOF
1174#define __SUN__ 1
1175EOF
1176
1177 cat >> confdefs.h <<\EOF
1178#define __SOLARIS__ 1
1179EOF
1180
1181 cat >> confdefs.h <<\EOF
1182#define __SVR4__ 1
1183EOF
1184
1185 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1186 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1187 ;;
1188 *-*-sunos4* )
1189 USE_SUN=1
1190 USE_SUNOS=1
1191 USE_BSD=1
1192 cat >> confdefs.h <<\EOF
1193#define __SUN__ 1
1194EOF
1195
1196 cat >> confdefs.h <<\EOF
1197#define __SUNOS__ 1
1198EOF
1199
1200 cat >> confdefs.h <<\EOF
1201#define __BSD__ 1
1202EOF
1203
1204 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1205 ;;
1206 *-*-freebsd*)
1207 USE_BSD=1
1208 USE_FREEBSD=1
1209 CPP_MT_FLAG=-D_THREAD_SAFE
1210 cat >> confdefs.h <<\EOF
1211#define __FREEBSD__ 1
1212EOF
1213
1214 cat >> confdefs.h <<\EOF
1215#define __BSD__ 1
1216EOF
1217
1218 DEFAULT_DEFAULT_wxUSE_GTK=1
1219 ;;
1220 *-*-openbsd*)
1221 USE_BSD=1
1222 USE_OPENBSD=1
1223 cat >> confdefs.h <<\EOF
1224#define __FREEBSD__ 1
1225EOF
1226
1227 cat >> confdefs.h <<\EOF
1228#define __OPENBSD__ 1
1229EOF
1230
1231 DEFAULT_DEFAULT_wxUSE_GTK=1
1232 ;;
1233 *-*-netbsd*)
1234 USE_BSD=1
1235 USE_NETBSD=1
1236 cat >> confdefs.h <<\EOF
1237#define __FREEBSD__ 1
1238EOF
1239
1240 cat >> confdefs.h <<\EOF
1241#define __NETBSD__ 1
1242EOF
1243
1244 DEFAULT_DEFAULT_wxUSE_GTK=1
1245 ;;
1246 *-*-osf* )
1247 USE_ALPHA=1
1248 USE_OSF=1
1249 cat >> confdefs.h <<\EOF
1250#define __ALPHA__ 1
1251EOF
1252
1253 cat >> confdefs.h <<\EOF
1254#define __OSF__ 1
1255EOF
1256
1257 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1258 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1259 ;;
1260 *-*-dgux5* )
1261 USE_ALPHA=1
1262 USE_SVR4=1
1263 cat >> confdefs.h <<\EOF
1264#define __ALPHA__ 1
1265EOF
1266
1267 cat >> confdefs.h <<\EOF
1268#define __SVR4__ 1
1269EOF
1270
1271 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1272 ;;
1273 *-*-sysv5* )
1274 USE_SYSV=1
1275 USE_SVR4=1
1276 cat >> confdefs.h <<\EOF
1277#define __SYSV__ 1
1278EOF
1279
1280 cat >> confdefs.h <<\EOF
1281#define __SVR4__ 1
1282EOF
1283
1284 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1285 ;;
1286 *-*-aix* )
1287 USE_AIX=1
1288 USE_SYSV=1
1289 USE_SVR4=1
1290 cat >> confdefs.h <<\EOF
1291#define __AIX__ 1
1292EOF
1293
1294 cat >> confdefs.h <<\EOF
1295#define __SYSV__ 1
1296EOF
1297
1298 cat >> confdefs.h <<\EOF
1299#define __SVR4__ 1
1300EOF
1301
1302 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1303 ;;
1304
1305 *-*-cygwin* | *-*-mingw32* )
1306 USE_UNIX=0
1307 USE_WIN32=1
1308 SO_SUFFIX=dll
1309 cat >> confdefs.h <<\EOF
1310#define __WIN32__ 1
1311EOF
1312
1313 cat >> confdefs.h <<\EOF
1314#define __WIN95__ 1
1315EOF
1316
1317 cat >> confdefs.h <<\EOF
1318#define __WINDOWS__ 1
1319EOF
1320
1321 cat >> confdefs.h <<\EOF
1322#define __GNUWIN32__ 1
1323EOF
1324
1325 cat >> confdefs.h <<\EOF
1326#define STRICT 1
1327EOF
1328
1329 cat >> confdefs.h <<\EOF
1330#define WINVER 0x0400
1331EOF
1332
1333 PROGRAM_EXT=".exe"
1334 RESCOMP=windres
1335 DEFAULT_DEFAULT_wxUSE_MSW=1
1336 ;;
1337
1338 *-pc-msdosdjgpp )
1339 USE_UNIX=0
1340 USE_DOS=1
1341 cat >> confdefs.h <<\EOF
1342#define __DOS__ 1
1343EOF
1344
1345 PROGRAM_EXT=".exe"
1346 DEFAULT_DEFAULT_wxUSE_MGL=1
1347 ;;
1348
1349 *-pc-os2_emx | *-pc-os2-emx )
1350 cat >> confdefs.h <<\EOF
1351#define __EMX__ 1
1352EOF
1353
1354 PROGRAM_EXT=".exe"
1355 DEFAULT_DEFAULT_wxUSE_PM=1
1356 ;;
1357
1358 powerpc-*-darwin* )
1359 USE_BSD=1
1360 USE_DARWIN=1
1361 CPP_MT_FLAG=
1362 SO_SUFFIX=dylib
1363 cat >> confdefs.h <<\EOF
1364#define __BSD__ 1
1365EOF
1366
1367 cat >> confdefs.h <<\EOF
1368#define __DARWIN__ 1
1369EOF
1370
1371 cat >> confdefs.h <<\EOF
1372#define __POWERPC__ 1
1373EOF
1374
1375 DEFAULT_DEFAULT_wxUSE_MAC=1
1376 ;;
1377
1378 *-*-beos* )
1379 USE_BEOS=1
1380 cat >> confdefs.h <<\EOF
1381#define __BEOS__ 1
1382EOF
1383
1384 ;;
1385
1386 *)
1387 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1388esac
1389
1390if test "$USE_UNIX" = 1 ; then
1391 wxUSE_UNIX=yes
1392 cat >> confdefs.h <<\EOF
1393#define __UNIX__ 1
1394EOF
1395
1396fi
1397
1398if test "$USE_LINUX" = 1; then
1399 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
1400echo "configure:1401: checking for glibc 2.1 or later" >&5
1401if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1403else
1404
1405 cat > conftest.$ac_ext <<EOF
1406#line 1407 "configure"
1407#include "confdefs.h"
1408#include <features.h>
1409int main() {
1410
1411 #if !__GLIBC_PREREQ(2, 1)
1412 #error not glibc2.1
1413 #endif
1414
1415; return 0; }
1416EOF
1417if { (eval echo configure:1418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1418 rm -rf conftest*
1419
1420 wx_lib_glibc21=yes
1421
1422else
1423 echo "configure: failed program was:" >&5
1424 cat conftest.$ac_ext >&5
1425 rm -rf conftest*
1426
1427 wx_lib_glibc21=no
1428
1429
1430fi
1431rm -f conftest*
1432
1433fi
1434
1435echo "$ac_t""$wx_lib_glibc21" 1>&6
1436 if test "$wx_lib_glibc21" = "yes"; then
1437 cat >> confdefs.h <<\EOF
1438#define wxHAVE_GLIBC2 1
1439EOF
1440
1441 fi
1442fi
1443
1444
1445
1446
1447 wx_arg_cache_file="configarg.cache"
1448 echo "loading argument cache $wx_arg_cache_file"
1449 rm -f ${wx_arg_cache_file}.tmp
1450 touch ${wx_arg_cache_file}.tmp
1451 touch ${wx_arg_cache_file}
1452
1453
1454DEBUG_CONFIGURE=0
1455if test $DEBUG_CONFIGURE = 1; then
1456 DEFAULT_wxUSE_UNIVERSAL=no
1457
1458 DEFAULT_wxUSE_NANOX=no
1459
1460 DEFAULT_wxUSE_THREADS=yes
1461
1462 DEFAULT_wxUSE_SHARED=yes
1463 DEFAULT_wxUSE_SONAME=no
1464 DEFAULT_wxUSE_OPTIMISE=no
1465 DEFAULT_wxUSE_PROFILE=no
1466 DEFAULT_wxUSE_NO_DEPS=no
1467 DEFAULT_wxUSE_NO_RTTI=yes
1468 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1469 DEFAULT_wxUSE_PERMISSIVE=no
1470 DEFAULT_wxUSE_DEBUG_FLAG=yes
1471 DEFAULT_wxUSE_DEBUG_INFO=yes
1472 DEFAULT_wxUSE_DEBUG_GDB=yes
1473 DEFAULT_wxUSE_MEM_TRACING=no
1474 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1475 DEFAULT_wxUSE_DMALLOC=no
1476 DEFAULT_wxUSE_PRECOMP=no
1477 DEFAULT_wxUSE_APPLE_IEEE=no
1478
1479 DEFAULT_wxUSE_LOG=yes
1480 DEFAULT_wxUSE_LOGWINDOW=no
1481 DEFAULT_wxUSE_LOGGUI=no
1482 DEFAULT_wxUSE_LOGDIALOG=no
1483
1484 DEFAULT_wxUSE_GUI=yes
1485 DEFAULT_wxUSE_CONTROLS=no
1486
1487 DEFAULT_wxUSE_REGEX=no
1488 DEFAULT_wxUSE_ZLIB=no
1489 DEFAULT_wxUSE_LIBPNG=no
1490 DEFAULT_wxUSE_LIBJPEG=no
1491 DEFAULT_wxUSE_LIBTIFF=no
1492 DEFAULT_wxUSE_ODBC=no
1493 DEFAULT_wxUSE_OPENGL=no
1494
1495 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1496 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1497 DEFAULT_wxUSE_STD_IOSTREAM=no
1498 DEFAULT_wxUSE_CMDLINE_PARSER=no
1499 DEFAULT_wxUSE_DATETIME=no
1500 DEFAULT_wxUSE_TIMEDATE=no
1501 DEFAULT_wxUSE_TIMER=no
1502 DEFAULT_wxUSE_STOPWATCH=no
1503 DEFAULT_wxUSE_FILE=no
1504 DEFAULT_wxUSE_FFILE=no
1505 DEFAULT_wxUSE_TEXTBUFFER=no
1506 DEFAULT_wxUSE_TEXTFILE=no
1507 DEFAULT_wxUSE_WAVE=no
1508 DEFAULT_wxUSE_INTL=no
1509 DEFAULT_wxUSE_CONFIG=no
1510 DEFAULT_wxUSE_FONTMAP=no
1511 DEFAULT_wxUSE_STREAMS=no
1512 DEFAULT_wxUSE_SOCKETS=no
1513 DEFAULT_wxUSE_DIALUP_MANAGER=no
1514 DEFAULT_wxUSE_JOYSTICK=no
1515 DEFAULT_wxUSE_DYNLIB_CLASS=no
1516 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1517 DEFAULT_wxUSE_LONGLONG=no
1518 DEFAULT_wxUSE_GEOMETRY=no
1519
1520 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1521 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1522 DEFAULT_wxUSE_POSTSCRIPT=no
1523
1524 DEFAULT_wxUSE_X_RESOURCES=no
1525 DEFAULT_wxUSE_CLIPBOARD=no
1526 DEFAULT_wxUSE_TOOLTIPS=no
1527 DEFAULT_wxUSE_DRAG_AND_DROP=no
1528 DEFAULT_wxUSE_DRAGIMAGE=no
1529 DEFAULT_wxUSE_SPLINES=no
1530
1531 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1532 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1533 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1534
1535 DEFAULT_wxUSE_PROLOGIO=no
1536 DEFAULT_wxUSE_RESOURCES=no
1537 DEFAULT_wxUSE_CONSTRAINTS=no
1538 DEFAULT_wxUSE_IPC=no
1539 DEFAULT_wxUSE_HELP=no
1540 DEFAULT_wxUSE_MS_HTML_HELP=no
1541 DEFAULT_wxUSE_WXHTML_HELP=no
1542 DEFAULT_wxUSE_TREELAYOUT=no
1543 DEFAULT_wxUSE_METAFILE=no
1544 DEFAULT_wxUSE_MIMETYPE=no
1545 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1546 DEFAULT_wxUSE_PROTOCOL=no
1547 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1548 DEFAULT_wxUSE_PROTOCOL_FTP=no
1549 DEFAULT_wxUSE_PROTOCOL_FILE=no
1550 DEFAULT_wxUSE_URL=no
1551
1552 DEFAULT_wxUSE_COMMONDLGS=no
1553 DEFAULT_wxUSE_CHOICEDLG=no
1554 DEFAULT_wxUSE_COLOURDLG=no
1555 DEFAULT_wxUSE_DIRDLG=no
1556 DEFAULT_wxUSE_FILEDLG=no
1557 DEFAULT_wxUSE_FINDREPLDLG=no
1558 DEFAULT_wxUSE_FONTDLG=no
1559 DEFAULT_wxUSE_MSGDLG=no
1560 DEFAULT_wxUSE_NUMBERDLG=no
1561 DEFAULT_wxUSE_TEXTDLG=no
1562 DEFAULT_wxUSE_SPLASH=no
1563 DEFAULT_wxUSE_STARTUP_TIPS=no
1564 DEFAULT_wxUSE_PROGRESSDLG=no
1565 DEFAULT_wxUSE_WIZARDDLG=no
1566
1567 DEFAULT_wxUSE_MENUS=no
1568 DEFAULT_wxUSE_MINIFRAME=no
1569 DEFAULT_wxUSE_HTML=no
1570 DEFAULT_wxUSE_FILESYSTEM=no
1571 DEFAULT_wxUSE_FS_INET=no
1572 DEFAULT_wxUSE_FS_ZIP=no
1573 DEFAULT_wxUSE_BUSYINFO=no
1574 DEFAULT_wxUSE_ZIPSTREAM=no
1575 DEFAULT_wxUSE_VALIDATORS=no
1576
1577 DEFAULT_wxUSE_ACCEL=no
1578 DEFAULT_wxUSE_BUTTON=no
1579 DEFAULT_wxUSE_BMPBUTTON=no
1580 DEFAULT_wxUSE_CALCTRL=no
1581 DEFAULT_wxUSE_CARET=no
1582 DEFAULT_wxUSE_CHECKBOX=no
1583 DEFAULT_wxUSE_CHECKLST=no
1584 DEFAULT_wxUSE_CHOICE=no
1585 DEFAULT_wxUSE_COMBOBOX=no
1586 DEFAULT_wxUSE_GAUGE=no
1587 DEFAULT_wxUSE_GRID=no
1588 DEFAULT_wxUSE_NEW_GRID=no
1589 DEFAULT_wxUSE_IMAGLIST=no
1590 DEFAULT_wxUSE_LISTBOX=no
1591 DEFAULT_wxUSE_LISTCTRL=no
1592 DEFAULT_wxUSE_NOTEBOOK=no
1593 DEFAULT_wxUSE_PROPSHEET=no
1594 DEFAULT_wxUSE_RADIOBOX=no
1595 DEFAULT_wxUSE_RADIOBTN=no
1596 DEFAULT_wxUSE_SASH=no
1597 DEFAULT_wxUSE_SCROLLBAR=no
1598 DEFAULT_wxUSE_SLIDER=no
1599 DEFAULT_wxUSE_SPINBTN=no
1600 DEFAULT_wxUSE_SPINCTRL=no
1601 DEFAULT_wxUSE_SPLITTER=no
1602 DEFAULT_wxUSE_STATBMP=no
1603 DEFAULT_wxUSE_STATBOX=no
1604 DEFAULT_wxUSE_STATLINE=no
1605 DEFAULT_wxUSE_STATTEXT=no
1606 DEFAULT_wxUSE_STATUSBAR=yes
1607 DEFAULT_wxUSE_TABDIALOG=no
1608 DEFAULT_wxUSE_TEXTCTRL=no
1609 DEFAULT_wxUSE_TOGGLEBTN=no
1610 DEFAULT_wxUSE_TOOLBAR=no
1611 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1612 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1613 DEFAULT_wxUSE_TREECTRL=no
1614 DEFAULT_wxUSE_POPUPWIN=no
1615 DEFAULT_wxUSE_TIPWINDOW=no
1616
1617 DEFAULT_wxUSE_UNICODE=no
1618 DEFAULT_wxUSE_UNICODE_MSLU=no
1619 DEFAULT_wxUSE_WCSRTOMBS=no
1620
1621 DEFAULT_wxUSE_PALETTE=no
1622 DEFAULT_wxUSE_IMAGE=no
1623 DEFAULT_wxUSE_GIF=no
1624 DEFAULT_wxUSE_PCX=no
1625 DEFAULT_wxUSE_PNM=no
1626 DEFAULT_wxUSE_IFF=no
1627 DEFAULT_wxUSE_XPM=no
1628 DEFAULT_wxUSE_ICO_CUR=no
1629else
1630 DEFAULT_wxUSE_UNIVERSAL=no
1631
1632 DEFAULT_wxUSE_NANOX=no
1633
1634 DEFAULT_wxUSE_THREADS=yes
1635
1636 DEFAULT_wxUSE_SHARED=yes
1637 DEFAULT_wxUSE_SONAME=no
1638 DEFAULT_wxUSE_OPTIMISE=yes
1639 DEFAULT_wxUSE_PROFILE=no
1640 DEFAULT_wxUSE_NO_DEPS=no
1641 DEFAULT_wxUSE_NO_RTTI=yes
1642 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1643 DEFAULT_wxUSE_PERMISSIVE=no
1644 DEFAULT_wxUSE_DEBUG_FLAG=no
1645 DEFAULT_wxUSE_DEBUG_INFO=no
1646 DEFAULT_wxUSE_DEBUG_GDB=no
1647 DEFAULT_wxUSE_MEM_TRACING=no
1648 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1649 DEFAULT_wxUSE_DMALLOC=no
1650 DEFAULT_wxUSE_PRECOMP=no
1651 DEFAULT_wxUSE_APPLE_IEEE=yes
1652
1653 DEFAULT_wxUSE_LOG=yes
1654 DEFAULT_wxUSE_LOGWINDOW=yes
1655 DEFAULT_wxUSE_LOGGUI=yes
1656 DEFAULT_wxUSE_LOGDIALOG=yes
1657
1658 DEFAULT_wxUSE_GUI=yes
1659
1660 DEFAULT_wxUSE_REGEX=yes
1661 DEFAULT_wxUSE_ZLIB=yes
1662 DEFAULT_wxUSE_LIBPNG=yes
1663 DEFAULT_wxUSE_LIBJPEG=yes
1664 DEFAULT_wxUSE_LIBTIFF=yes
1665 DEFAULT_wxUSE_ODBC=no
1666 DEFAULT_wxUSE_OPENGL=no
1667
1668 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1669 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1670 DEFAULT_wxUSE_STD_IOSTREAM=no
1671 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1672 DEFAULT_wxUSE_DATETIME=yes
1673 DEFAULT_wxUSE_TIMEDATE=no
1674 DEFAULT_wxUSE_TIMER=yes
1675 DEFAULT_wxUSE_STOPWATCH=yes
1676 DEFAULT_wxUSE_FILE=yes
1677 DEFAULT_wxUSE_FFILE=yes
1678 DEFAULT_wxUSE_TEXTBUFFER=yes
1679 DEFAULT_wxUSE_TEXTFILE=yes
1680 DEFAULT_wxUSE_WAVE=no
1681 DEFAULT_wxUSE_INTL=yes
1682 DEFAULT_wxUSE_CONFIG=yes
1683 DEFAULT_wxUSE_FONTMAP=yes
1684 DEFAULT_wxUSE_STREAMS=yes
1685 DEFAULT_wxUSE_SOCKETS=yes
1686 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1687 DEFAULT_wxUSE_JOYSTICK=yes
1688 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1689 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1690 DEFAULT_wxUSE_LONGLONG=yes
1691 DEFAULT_wxUSE_GEOMETRY=yes
1692
1693 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1694 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1695 DEFAULT_wxUSE_POSTSCRIPT=yes
1696
1697 DEFAULT_wxUSE_X_RESOURCES=no
1698 DEFAULT_wxUSE_CLIPBOARD=yes
1699 DEFAULT_wxUSE_TOOLTIPS=yes
1700 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1701 DEFAULT_wxUSE_DRAGIMAGE=yes
1702 DEFAULT_wxUSE_SPLINES=yes
1703
1704 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1705 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1706 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1707
1708 DEFAULT_wxUSE_PROLOGIO=yes
1709 DEFAULT_wxUSE_RESOURCES=yes
1710 DEFAULT_wxUSE_CONSTRAINTS=yes
1711 DEFAULT_wxUSE_IPC=yes
1712 DEFAULT_wxUSE_HELP=yes
1713 DEFAULT_wxUSE_MS_HTML_HELP=yes
1714 DEFAULT_wxUSE_WXHTML_HELP=yes
1715 DEFAULT_wxUSE_TREELAYOUT=yes
1716 DEFAULT_wxUSE_METAFILE=yes
1717 DEFAULT_wxUSE_MIMETYPE=yes
1718 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1719 DEFAULT_wxUSE_PROTOCOL=yes
1720 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1721 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1722 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1723 DEFAULT_wxUSE_URL=yes
1724
1725 DEFAULT_wxUSE_COMMONDLGS=yes
1726 DEFAULT_wxUSE_CHOICEDLG=yes
1727 DEFAULT_wxUSE_COLOURDLG=yes
1728 DEFAULT_wxUSE_DIRDLG=yes
1729 DEFAULT_wxUSE_FILEDLG=yes
1730 DEFAULT_wxUSE_FINDREPLDLG=yes
1731 DEFAULT_wxUSE_FONTDLG=yes
1732 DEFAULT_wxUSE_MSGDLG=yes
1733 DEFAULT_wxUSE_NUMBERDLG=yes
1734 DEFAULT_wxUSE_TEXTDLG=yes
1735 DEFAULT_wxUSE_SPLASH=yes
1736 DEFAULT_wxUSE_STARTUP_TIPS=yes
1737 DEFAULT_wxUSE_PROGRESSDLG=yes
1738 DEFAULT_wxUSE_WIZARDDLG=yes
1739
1740 DEFAULT_wxUSE_MENUS=yes
1741 DEFAULT_wxUSE_MINIFRAME=yes
1742 DEFAULT_wxUSE_HTML=yes
1743 DEFAULT_wxUSE_FILESYSTEM=yes
1744 DEFAULT_wxUSE_FS_INET=yes
1745 DEFAULT_wxUSE_FS_ZIP=yes
1746 DEFAULT_wxUSE_BUSYINFO=yes
1747 DEFAULT_wxUSE_ZIPSTREAM=yes
1748 DEFAULT_wxUSE_VALIDATORS=yes
1749
1750 DEFAULT_wxUSE_ACCEL=yes
1751 DEFAULT_wxUSE_BUTTON=yes
1752 DEFAULT_wxUSE_BMPBUTTON=yes
1753 DEFAULT_wxUSE_CALCTRL=yes
1754 DEFAULT_wxUSE_CARET=yes
1755 DEFAULT_wxUSE_CHECKBOX=yes
1756 DEFAULT_wxUSE_CHECKLST=yes
1757 DEFAULT_wxUSE_CHOICE=yes
1758 DEFAULT_wxUSE_COMBOBOX=yes
1759 DEFAULT_wxUSE_GAUGE=yes
1760 DEFAULT_wxUSE_GRID=yes
1761 DEFAULT_wxUSE_NEW_GRID=yes
1762 DEFAULT_wxUSE_IMAGLIST=yes
1763 DEFAULT_wxUSE_LISTBOX=yes
1764 DEFAULT_wxUSE_LISTCTRL=yes
1765 DEFAULT_wxUSE_NOTEBOOK=yes
1766 DEFAULT_wxUSE_PROPSHEET=yes
1767 DEFAULT_wxUSE_RADIOBOX=yes
1768 DEFAULT_wxUSE_RADIOBTN=yes
1769 DEFAULT_wxUSE_SASH=yes
1770 DEFAULT_wxUSE_SCROLLBAR=yes
1771 DEFAULT_wxUSE_SLIDER=yes
1772 DEFAULT_wxUSE_SPINBTN=yes
1773 DEFAULT_wxUSE_SPINCTRL=yes
1774 DEFAULT_wxUSE_SPLITTER=yes
1775 DEFAULT_wxUSE_STATBMP=yes
1776 DEFAULT_wxUSE_STATBOX=yes
1777 DEFAULT_wxUSE_STATLINE=yes
1778 DEFAULT_wxUSE_STATTEXT=yes
1779 DEFAULT_wxUSE_STATUSBAR=yes
1780 DEFAULT_wxUSE_TABDIALOG=no
1781 DEFAULT_wxUSE_TEXTCTRL=yes
1782 DEFAULT_wxUSE_TOGGLEBTN=yes
1783 DEFAULT_wxUSE_TOOLBAR=yes
1784 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1785 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1786 DEFAULT_wxUSE_TREECTRL=yes
1787 DEFAULT_wxUSE_POPUPWIN=yes
1788 DEFAULT_wxUSE_TIPWINDOW=yes
1789
1790 DEFAULT_wxUSE_UNICODE=no
1791 DEFAULT_wxUSE_UNICODE_MSLU=yes
1792 DEFAULT_wxUSE_WCSRTOMBS=no
1793
1794 DEFAULT_wxUSE_PALETTE=yes
1795 DEFAULT_wxUSE_IMAGE=yes
1796 DEFAULT_wxUSE_GIF=yes
1797 DEFAULT_wxUSE_PCX=yes
1798 DEFAULT_wxUSE_IFF=no
1799 DEFAULT_wxUSE_PNM=yes
1800 DEFAULT_wxUSE_XPM=yes
1801 DEFAULT_wxUSE_ICO_CUR=yes
1802fi
1803
1804
1805
1806for toolkit in `echo $ALL_TOOLKITS`; do
1807 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1808 if test "x$LINE" != x ; then
1809 has_toolkit_in_cache=1
1810 eval "DEFAULT_$LINE"
1811 eval "CACHE_$toolkit=1"
1812 fi
1813done
1814
1815
1816
1817 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1818echo "configure:1819: checking for --enable-gui" >&5
1819 no_cache=0
1820 # Check whether --enable-gui or --disable-gui was given.
1821if test "${enable_gui+set}" = set; then
1822 enableval="$enable_gui"
1823
1824 if test "$enableval" = yes; then
1825 ac_cv_use_gui='wxUSE_GUI=yes'
1826 else
1827 ac_cv_use_gui='wxUSE_GUI=no'
1828 fi
1829
1830else
1831
1832 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1833 if test "x$LINE" != x ; then
1834 eval "DEFAULT_$LINE"
1835 else
1836 no_cache=1
1837 fi
1838
1839 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1840
1841fi
1842
1843
1844 eval "$ac_cv_use_gui"
1845 if test "$no_cache" != 1; then
1846 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1847 fi
1848
1849 if test "$wxUSE_GUI" = yes; then
1850 echo "$ac_t""yes" 1>&6
1851 else
1852 echo "$ac_t""no" 1>&6
1853 fi
1854
1855
1856if test "$wxUSE_GUI" = "yes"; then
1857
1858
1859 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1860echo "configure:1861: checking for --enable-universal" >&5
1861 no_cache=0
1862 # Check whether --enable-universal or --disable-universal was given.
1863if test "${enable_universal+set}" = set; then
1864 enableval="$enable_universal"
1865
1866 if test "$enableval" = yes; then
1867 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1868 else
1869 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1870 fi
1871
1872else
1873
1874 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1875 if test "x$LINE" != x ; then
1876 eval "DEFAULT_$LINE"
1877 else
1878 no_cache=1
1879 fi
1880
1881 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1882
1883fi
1884
1885
1886 eval "$ac_cv_use_universal"
1887 if test "$no_cache" != 1; then
1888 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1889 fi
1890
1891 if test "$wxUSE_UNIVERSAL" = yes; then
1892 echo "$ac_t""yes" 1>&6
1893 else
1894 echo "$ac_t""no" 1>&6
1895 fi
1896
1897# Check whether --with-gtk or --without-gtk was given.
1898if test "${with_gtk+set}" = set; then
1899 withval="$with_gtk"
1900 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1901fi
1902
1903# Check whether --with-motif or --without-motif was given.
1904if test "${with_motif+set}" = set; then
1905 withval="$with_motif"
1906 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1907fi
1908
1909# Check whether --with-mac or --without-mac was given.
1910if test "${with_mac+set}" = set; then
1911 withval="$with_mac"
1912 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1913fi
1914
1915# Check whether --with-wine or --without-wine was given.
1916if test "${with_wine+set}" = set; then
1917 withval="$with_wine"
1918 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1919fi
1920
1921# Check whether --with-msw or --without-msw was given.
1922if test "${with_msw+set}" = set; then
1923 withval="$with_msw"
1924 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
1925fi
1926
1927# Check whether --with-pm or --without-pm was given.
1928if test "${with_pm+set}" = set; then
1929 withval="$with_pm"
1930 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1931fi
1932
1933# Check whether --with-mgl or --without-mgl was given.
1934if test "${with_mgl+set}" = set; then
1935 withval="$with_mgl"
1936 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1937fi
1938
1939# Check whether --with-microwin or --without-microwin was given.
1940if test "${with_microwin+set}" = set; then
1941 withval="$with_microwin"
1942 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1943fi
1944
1945# Check whether --with-x11 or --without-x11 was given.
1946if test "${with_x11+set}" = set; then
1947 withval="$with_x11"
1948 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1949fi
1950
1951
1952 echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6
1953echo "configure:1954: checking for --enable-nanox" >&5
1954 no_cache=0
1955 # Check whether --enable-nanox or --disable-nanox was given.
1956if test "${enable_nanox+set}" = set; then
1957 enableval="$enable_nanox"
1958
1959 if test "$enableval" = yes; then
1960 ac_cv_use_nanox='wxUSE_NANOX=yes'
1961 else
1962 ac_cv_use_nanox='wxUSE_NANOX=no'
1963 fi
1964
1965else
1966
1967 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1968 if test "x$LINE" != x ; then
1969 eval "DEFAULT_$LINE"
1970 else
1971 no_cache=1
1972 fi
1973
1974 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1975
1976fi
1977
1978
1979 eval "$ac_cv_use_nanox"
1980 if test "$no_cache" != 1; then
1981 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1982 fi
1983
1984 if test "$wxUSE_NANOX" = yes; then
1985 echo "$ac_t""yes" 1>&6
1986 else
1987 echo "$ac_t""no" 1>&6
1988 fi
1989
1990
1991# Check whether --enable-gtk2 or --disable-gtk2 was given.
1992if test "${enable_gtk2+set}" = set; then
1993 enableval="$enable_gtk2"
1994 wxUSE_GTK2=1
1995else
1996 wxUSE_GTK2=0
1997fi
1998
1999
2000
2001 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
2002echo "configure:2003: checking for --with-libpng" >&5
2003 no_cache=0
2004 # Check whether --with-libpng or --without-libpng was given.
2005if test "${with_libpng+set}" = set; then
2006 withval="$with_libpng"
2007
2008 if test "$withval" = yes; then
2009 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2010 elif test "$withval" = no; then
2011 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2012 elif test "$withval" = sys; then
2013 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2014 elif test "$withval" = builtin; then
2015 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2016 else
2017 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2018 fi
2019
2020else
2021
2022 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2023 if test "x$LINE" != x ; then
2024 eval "DEFAULT_$LINE"
2025 else
2026 no_cache=1
2027 fi
2028
2029 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2030
2031fi
2032
2033
2034 eval "$ac_cv_use_libpng"
2035 if test "$no_cache" != 1; then
2036 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2037 fi
2038
2039 if test "$wxUSE_LIBPNG" = yes; then
2040 echo "$ac_t""yes" 1>&6
2041 elif test "$wxUSE_LIBPNG" = no; then
2042 echo "$ac_t""no" 1>&6
2043 elif test "$wxUSE_LIBPNG" = sys; then
2044 echo "$ac_t""system version" 1>&6
2045 elif test "$wxUSE_LIBPNG" = builtin; then
2046 echo "$ac_t""builtin version" 1>&6
2047 else
2048 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2049 fi
2050
2051
2052 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2053echo "configure:2054: checking for --with-libjpeg" >&5
2054 no_cache=0
2055 # Check whether --with-libjpeg or --without-libjpeg was given.
2056if test "${with_libjpeg+set}" = set; then
2057 withval="$with_libjpeg"
2058
2059 if test "$withval" = yes; then
2060 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2061 elif test "$withval" = no; then
2062 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2063 elif test "$withval" = sys; then
2064 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2065 elif test "$withval" = builtin; then
2066 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2067 else
2068 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2069 fi
2070
2071else
2072
2073 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2074 if test "x$LINE" != x ; then
2075 eval "DEFAULT_$LINE"
2076 else
2077 no_cache=1
2078 fi
2079
2080 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2081
2082fi
2083
2084
2085 eval "$ac_cv_use_libjpeg"
2086 if test "$no_cache" != 1; then
2087 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2088 fi
2089
2090 if test "$wxUSE_LIBJPEG" = yes; then
2091 echo "$ac_t""yes" 1>&6
2092 elif test "$wxUSE_LIBJPEG" = no; then
2093 echo "$ac_t""no" 1>&6
2094 elif test "$wxUSE_LIBJPEG" = sys; then
2095 echo "$ac_t""system version" 1>&6
2096 elif test "$wxUSE_LIBJPEG" = builtin; then
2097 echo "$ac_t""builtin version" 1>&6
2098 else
2099 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2100 fi
2101
2102
2103 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2104echo "configure:2105: checking for --with-libtiff" >&5
2105 no_cache=0
2106 # Check whether --with-libtiff or --without-libtiff was given.
2107if test "${with_libtiff+set}" = set; then
2108 withval="$with_libtiff"
2109
2110 if test "$withval" = yes; then
2111 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2112 elif test "$withval" = no; then
2113 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2114 elif test "$withval" = sys; then
2115 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2116 elif test "$withval" = builtin; then
2117 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2118 else
2119 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2120 fi
2121
2122else
2123
2124 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2125 if test "x$LINE" != x ; then
2126 eval "DEFAULT_$LINE"
2127 else
2128 no_cache=1
2129 fi
2130
2131 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2132
2133fi
2134
2135
2136 eval "$ac_cv_use_libtiff"
2137 if test "$no_cache" != 1; then
2138 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2139 fi
2140
2141 if test "$wxUSE_LIBTIFF" = yes; then
2142 echo "$ac_t""yes" 1>&6
2143 elif test "$wxUSE_LIBTIFF" = no; then
2144 echo "$ac_t""no" 1>&6
2145 elif test "$wxUSE_LIBTIFF" = sys; then
2146 echo "$ac_t""system version" 1>&6
2147 elif test "$wxUSE_LIBTIFF" = builtin; then
2148 echo "$ac_t""builtin version" 1>&6
2149 else
2150 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2151 fi
2152
2153
2154 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2155echo "configure:2156: checking for --with-opengl" >&5
2156 no_cache=0
2157 # Check whether --with-opengl or --without-opengl was given.
2158if test "${with_opengl+set}" = set; then
2159 withval="$with_opengl"
2160
2161 if test "$withval" = yes; then
2162 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2163 else
2164 ac_cv_use_opengl='wxUSE_OPENGL=no'
2165 fi
2166
2167else
2168
2169 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2170 if test "x$LINE" != x ; then
2171 eval "DEFAULT_$LINE"
2172 else
2173 no_cache=1
2174 fi
2175
2176 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2177
2178fi
2179
2180
2181 eval "$ac_cv_use_opengl"
2182 if test "$no_cache" != 1; then
2183 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2184 fi
2185
2186 if test "$wxUSE_OPENGL" = yes; then
2187 echo "$ac_t""yes" 1>&6
2188 else
2189 echo "$ac_t""no" 1>&6
2190 fi
2191
2192
2193fi
2194
2195
2196 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2197echo "configure:2198: checking for --with-dmalloc" >&5
2198 no_cache=0
2199 # Check whether --with-dmalloc or --without-dmalloc was given.
2200if test "${with_dmalloc+set}" = set; then
2201 withval="$with_dmalloc"
2202
2203 if test "$withval" = yes; then
2204 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2205 else
2206 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2207 fi
2208
2209else
2210
2211 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2212 if test "x$LINE" != x ; then
2213 eval "DEFAULT_$LINE"
2214 else
2215 no_cache=1
2216 fi
2217
2218 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2219
2220fi
2221
2222
2223 eval "$ac_cv_use_dmalloc"
2224 if test "$no_cache" != 1; then
2225 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2226 fi
2227
2228 if test "$wxUSE_DMALLOC" = yes; then
2229 echo "$ac_t""yes" 1>&6
2230 else
2231 echo "$ac_t""no" 1>&6
2232 fi
2233
2234
2235 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2236echo "configure:2237: checking for --with-regex" >&5
2237 no_cache=0
2238 # Check whether --with-regex or --without-regex was given.
2239if test "${with_regex+set}" = set; then
2240 withval="$with_regex"
2241
2242 if test "$withval" = yes; then
2243 ac_cv_use_regex='wxUSE_REGEX=yes'
2244 elif test "$withval" = no; then
2245 ac_cv_use_regex='wxUSE_REGEX=no'
2246 elif test "$withval" = sys; then
2247 ac_cv_use_regex='wxUSE_REGEX=sys'
2248 elif test "$withval" = builtin; then
2249 ac_cv_use_regex='wxUSE_REGEX=builtin'
2250 else
2251 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2252 fi
2253
2254else
2255
2256 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2257 if test "x$LINE" != x ; then
2258 eval "DEFAULT_$LINE"
2259 else
2260 no_cache=1
2261 fi
2262
2263 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2264
2265fi
2266
2267
2268 eval "$ac_cv_use_regex"
2269 if test "$no_cache" != 1; then
2270 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2271 fi
2272
2273 if test "$wxUSE_REGEX" = yes; then
2274 echo "$ac_t""yes" 1>&6
2275 elif test "$wxUSE_REGEX" = no; then
2276 echo "$ac_t""no" 1>&6
2277 elif test "$wxUSE_REGEX" = sys; then
2278 echo "$ac_t""system version" 1>&6
2279 elif test "$wxUSE_REGEX" = builtin; then
2280 echo "$ac_t""builtin version" 1>&6
2281 else
2282 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2283 fi
2284
2285
2286 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2287echo "configure:2288: checking for --with-zlib" >&5
2288 no_cache=0
2289 # Check whether --with-zlib or --without-zlib was given.
2290if test "${with_zlib+set}" = set; then
2291 withval="$with_zlib"
2292
2293 if test "$withval" = yes; then
2294 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2295 elif test "$withval" = no; then
2296 ac_cv_use_zlib='wxUSE_ZLIB=no'
2297 elif test "$withval" = sys; then
2298 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2299 elif test "$withval" = builtin; then
2300 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2301 else
2302 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2303 fi
2304
2305else
2306
2307 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2308 if test "x$LINE" != x ; then
2309 eval "DEFAULT_$LINE"
2310 else
2311 no_cache=1
2312 fi
2313
2314 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2315
2316fi
2317
2318
2319 eval "$ac_cv_use_zlib"
2320 if test "$no_cache" != 1; then
2321 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2322 fi
2323
2324 if test "$wxUSE_ZLIB" = yes; then
2325 echo "$ac_t""yes" 1>&6
2326 elif test "$wxUSE_ZLIB" = no; then
2327 echo "$ac_t""no" 1>&6
2328 elif test "$wxUSE_ZLIB" = sys; then
2329 echo "$ac_t""system version" 1>&6
2330 elif test "$wxUSE_ZLIB" = builtin; then
2331 echo "$ac_t""builtin version" 1>&6
2332 else
2333 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2334 fi
2335
2336
2337 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2338echo "configure:2339: checking for --with-odbc" >&5
2339 no_cache=0
2340 # Check whether --with-odbc or --without-odbc was given.
2341if test "${with_odbc+set}" = set; then
2342 withval="$with_odbc"
2343
2344 if test "$withval" = yes; then
2345 ac_cv_use_odbc='wxUSE_ODBC=yes'
2346 else
2347 ac_cv_use_odbc='wxUSE_ODBC=no'
2348 fi
2349
2350else
2351
2352 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2353 if test "x$LINE" != x ; then
2354 eval "DEFAULT_$LINE"
2355 else
2356 no_cache=1
2357 fi
2358
2359 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2360
2361fi
2362
2363
2364 eval "$ac_cv_use_odbc"
2365 if test "$no_cache" != 1; then
2366 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2367 fi
2368
2369 if test "$wxUSE_ODBC" = yes; then
2370 echo "$ac_t""yes" 1>&6
2371 else
2372 echo "$ac_t""no" 1>&6
2373 fi
2374
2375
2376
2377
2378 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2379echo "configure:2380: checking for --enable-shared" >&5
2380 no_cache=0
2381 # Check whether --enable-shared or --disable-shared was given.
2382if test "${enable_shared+set}" = set; then
2383 enableval="$enable_shared"
2384
2385 if test "$enableval" = yes; then
2386 ac_cv_use_shared='wxUSE_SHARED=yes'
2387 else
2388 ac_cv_use_shared='wxUSE_SHARED=no'
2389 fi
2390
2391else
2392
2393 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2394 if test "x$LINE" != x ; then
2395 eval "DEFAULT_$LINE"
2396 else
2397 no_cache=1
2398 fi
2399
2400 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2401
2402fi
2403
2404
2405 eval "$ac_cv_use_shared"
2406 if test "$no_cache" != 1; then
2407 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2408 fi
2409
2410 if test "$wxUSE_SHARED" = yes; then
2411 echo "$ac_t""yes" 1>&6
2412 else
2413 echo "$ac_t""no" 1>&6
2414 fi
2415
2416
2417 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2418echo "configure:2419: checking for --enable-soname" >&5
2419 no_cache=0
2420 # Check whether --enable-soname or --disable-soname was given.
2421if test "${enable_soname+set}" = set; then
2422 enableval="$enable_soname"
2423
2424 if test "$enableval" = yes; then
2425 ac_cv_use_soname='wxUSE_SONAME=yes'
2426 else
2427 ac_cv_use_soname='wxUSE_SONAME=no'
2428 fi
2429
2430else
2431
2432 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2433 if test "x$LINE" != x ; then
2434 eval "DEFAULT_$LINE"
2435 else
2436 no_cache=1
2437 fi
2438
2439 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2440
2441fi
2442
2443
2444 eval "$ac_cv_use_soname"
2445 if test "$no_cache" != 1; then
2446 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2447 fi
2448
2449 if test "$wxUSE_SONAME" = yes; then
2450 echo "$ac_t""yes" 1>&6
2451 else
2452 echo "$ac_t""no" 1>&6
2453 fi
2454
2455
2456 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2457echo "configure:2458: checking for --enable-optimise" >&5
2458 no_cache=0
2459 # Check whether --enable-optimise or --disable-optimise was given.
2460if test "${enable_optimise+set}" = set; then
2461 enableval="$enable_optimise"
2462
2463 if test "$enableval" = yes; then
2464 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2465 else
2466 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2467 fi
2468
2469else
2470
2471 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2472 if test "x$LINE" != x ; then
2473 eval "DEFAULT_$LINE"
2474 else
2475 no_cache=1
2476 fi
2477
2478 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2479
2480fi
2481
2482
2483 eval "$ac_cv_use_optimise"
2484 if test "$no_cache" != 1; then
2485 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2486 fi
2487
2488 if test "$wxUSE_OPTIMISE" = yes; then
2489 echo "$ac_t""yes" 1>&6
2490 else
2491 echo "$ac_t""no" 1>&6
2492 fi
2493
2494
2495 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2496echo "configure:2497: checking for --enable-debug" >&5
2497 no_cache=0
2498 # Check whether --enable-debug or --disable-debug was given.
2499if test "${enable_debug+set}" = set; then
2500 enableval="$enable_debug"
2501
2502 if test "$enableval" = yes; then
2503 ac_cv_use_debug='wxUSE_DEBUG=yes'
2504 else
2505 ac_cv_use_debug='wxUSE_DEBUG=no'
2506 fi
2507
2508else
2509
2510 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2511 if test "x$LINE" != x ; then
2512 eval "DEFAULT_$LINE"
2513 else
2514 no_cache=1
2515 fi
2516
2517 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2518
2519fi
2520
2521
2522 eval "$ac_cv_use_debug"
2523 if test "$no_cache" != 1; then
2524 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2525 fi
2526
2527 if test "$wxUSE_DEBUG" = yes; then
2528 echo "$ac_t""yes" 1>&6
2529 else
2530 echo "$ac_t""no" 1>&6
2531 fi
2532
2533
2534
2535 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2536echo "configure:2537: checking for --enable-precomp" >&5
2537 no_cache=0
2538 # Check whether --enable-precomp or --disable-precomp was given.
2539if test "${enable_precomp+set}" = set; then
2540 enableval="$enable_precomp"
2541
2542 if test "$enableval" = yes; then
2543 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2544 else
2545 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2546 fi
2547
2548else
2549
2550 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2551 if test "x$LINE" != x ; then
2552 eval "DEFAULT_$LINE"
2553 else
2554 no_cache=1
2555 fi
2556
2557 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2558
2559fi
2560
2561
2562 eval "$ac_cv_use_precomp"
2563 if test "$no_cache" != 1; then
2564 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2565 fi
2566
2567 if test "$wxUSE_PRECOMP" = yes; then
2568 echo "$ac_t""yes" 1>&6
2569 else
2570 echo "$ac_t""no" 1>&6
2571 fi
2572
2573
2574if test "$wxUSE_DEBUG" = "yes"; then
2575 DEFAULT_wxUSE_DEBUG_FLAG=yes
2576 DEFAULT_wxUSE_DEBUG_INFO=yes
2577elif test "$wxUSE_DEBUG" = "no"; then
2578 DEFAULT_wxUSE_DEBUG_FLAG=no
2579 DEFAULT_wxUSE_DEBUG_INFO=no
2580fi
2581
2582
2583 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2584echo "configure:2585: checking for --enable-debug_flag" >&5
2585 no_cache=0
2586 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2587if test "${enable_debug_flag+set}" = set; then
2588 enableval="$enable_debug_flag"
2589
2590 if test "$enableval" = yes; then
2591 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2592 else
2593 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2594 fi
2595
2596else
2597
2598 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2599 if test "x$LINE" != x ; then
2600 eval "DEFAULT_$LINE"
2601 else
2602 no_cache=1
2603 fi
2604
2605 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2606
2607fi
2608
2609
2610 eval "$ac_cv_use_debug_flag"
2611 if test "$no_cache" != 1; then
2612 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2613 fi
2614
2615 if test "$wxUSE_DEBUG_FLAG" = yes; then
2616 echo "$ac_t""yes" 1>&6
2617 else
2618 echo "$ac_t""no" 1>&6
2619 fi
2620
2621
2622 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2623echo "configure:2624: checking for --enable-debug_info" >&5
2624 no_cache=0
2625 # Check whether --enable-debug_info or --disable-debug_info was given.
2626if test "${enable_debug_info+set}" = set; then
2627 enableval="$enable_debug_info"
2628
2629 if test "$enableval" = yes; then
2630 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2631 else
2632 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2633 fi
2634
2635else
2636
2637 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2638 if test "x$LINE" != x ; then
2639 eval "DEFAULT_$LINE"
2640 else
2641 no_cache=1
2642 fi
2643
2644 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2645
2646fi
2647
2648
2649 eval "$ac_cv_use_debug_info"
2650 if test "$no_cache" != 1; then
2651 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2652 fi
2653
2654 if test "$wxUSE_DEBUG_INFO" = yes; then
2655 echo "$ac_t""yes" 1>&6
2656 else
2657 echo "$ac_t""no" 1>&6
2658 fi
2659
2660
2661 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2662echo "configure:2663: checking for --enable-debug_gdb" >&5
2663 no_cache=0
2664 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2665if test "${enable_debug_gdb+set}" = set; then
2666 enableval="$enable_debug_gdb"
2667
2668 if test "$enableval" = yes; then
2669 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2670 else
2671 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2672 fi
2673
2674else
2675
2676 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2677 if test "x$LINE" != x ; then
2678 eval "DEFAULT_$LINE"
2679 else
2680 no_cache=1
2681 fi
2682
2683 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2684
2685fi
2686
2687
2688 eval "$ac_cv_use_debug_gdb"
2689 if test "$no_cache" != 1; then
2690 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2691 fi
2692
2693 if test "$wxUSE_DEBUG_GDB" = yes; then
2694 echo "$ac_t""yes" 1>&6
2695 else
2696 echo "$ac_t""no" 1>&6
2697 fi
2698
2699
2700 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2701echo "configure:2702: checking for --enable-debug_cntxt" >&5
2702 no_cache=0
2703 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2704if test "${enable_debug_cntxt+set}" = set; then
2705 enableval="$enable_debug_cntxt"
2706
2707 if test "$enableval" = yes; then
2708 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2709 else
2710 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2711 fi
2712
2713else
2714
2715 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2716 if test "x$LINE" != x ; then
2717 eval "DEFAULT_$LINE"
2718 else
2719 no_cache=1
2720 fi
2721
2722 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2723
2724fi
2725
2726
2727 eval "$ac_cv_use_debug_cntxt"
2728 if test "$no_cache" != 1; then
2729 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2730 fi
2731
2732 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2733 echo "$ac_t""yes" 1>&6
2734 else
2735 echo "$ac_t""no" 1>&6
2736 fi
2737
2738
2739 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2740echo "configure:2741: checking for --enable-mem_tracing" >&5
2741 no_cache=0
2742 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2743if test "${enable_mem_tracing+set}" = set; then
2744 enableval="$enable_mem_tracing"
2745
2746 if test "$enableval" = yes; then
2747 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2748 else
2749 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2750 fi
2751
2752else
2753
2754 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2755 if test "x$LINE" != x ; then
2756 eval "DEFAULT_$LINE"
2757 else
2758 no_cache=1
2759 fi
2760
2761 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2762
2763fi
2764
2765
2766 eval "$ac_cv_use_mem_tracing"
2767 if test "$no_cache" != 1; then
2768 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2769 fi
2770
2771 if test "$wxUSE_MEM_TRACING" = yes; then
2772 echo "$ac_t""yes" 1>&6
2773 else
2774 echo "$ac_t""no" 1>&6
2775 fi
2776
2777
2778 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2779echo "configure:2780: checking for --enable-profile" >&5
2780 no_cache=0
2781 # Check whether --enable-profile or --disable-profile was given.
2782if test "${enable_profile+set}" = set; then
2783 enableval="$enable_profile"
2784
2785 if test "$enableval" = yes; then
2786 ac_cv_use_profile='wxUSE_PROFILE=yes'
2787 else
2788 ac_cv_use_profile='wxUSE_PROFILE=no'
2789 fi
2790
2791else
2792
2793 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2794 if test "x$LINE" != x ; then
2795 eval "DEFAULT_$LINE"
2796 else
2797 no_cache=1
2798 fi
2799
2800 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2801
2802fi
2803
2804
2805 eval "$ac_cv_use_profile"
2806 if test "$no_cache" != 1; then
2807 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2808 fi
2809
2810 if test "$wxUSE_PROFILE" = yes; then
2811 echo "$ac_t""yes" 1>&6
2812 else
2813 echo "$ac_t""no" 1>&6
2814 fi
2815
2816
2817 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2818echo "configure:2819: checking for --enable-no_rtti" >&5
2819 no_cache=0
2820 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2821if test "${enable_no_rtti+set}" = set; then
2822 enableval="$enable_no_rtti"
2823
2824 if test "$enableval" = yes; then
2825 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2826 else
2827 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2828 fi
2829
2830else
2831
2832 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2833 if test "x$LINE" != x ; then
2834 eval "DEFAULT_$LINE"
2835 else
2836 no_cache=1
2837 fi
2838
2839 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2840
2841fi
2842
2843
2844 eval "$ac_cv_use_no_rtti"
2845 if test "$no_cache" != 1; then
2846 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2847 fi
2848
2849 if test "$wxUSE_NO_RTTI" = yes; then
2850 echo "$ac_t""yes" 1>&6
2851 else
2852 echo "$ac_t""no" 1>&6
2853 fi
2854
2855
2856 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2857echo "configure:2858: checking for --enable-no_exceptions" >&5
2858 no_cache=0
2859 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2860if test "${enable_no_exceptions+set}" = set; then
2861 enableval="$enable_no_exceptions"
2862
2863 if test "$enableval" = yes; then
2864 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2865 else
2866 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2867 fi
2868
2869else
2870
2871 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2872 if test "x$LINE" != x ; then
2873 eval "DEFAULT_$LINE"
2874 else
2875 no_cache=1
2876 fi
2877
2878 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2879
2880fi
2881
2882
2883 eval "$ac_cv_use_no_exceptions"
2884 if test "$no_cache" != 1; then
2885 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2886 fi
2887
2888 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2889 echo "$ac_t""yes" 1>&6
2890 else
2891 echo "$ac_t""no" 1>&6
2892 fi
2893
2894
2895 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2896echo "configure:2897: checking for --enable-permissive" >&5
2897 no_cache=0
2898 # Check whether --enable-permissive or --disable-permissive was given.
2899if test "${enable_permissive+set}" = set; then
2900 enableval="$enable_permissive"
2901
2902 if test "$enableval" = yes; then
2903 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2904 else
2905 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2906 fi
2907
2908else
2909
2910 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2911 if test "x$LINE" != x ; then
2912 eval "DEFAULT_$LINE"
2913 else
2914 no_cache=1
2915 fi
2916
2917 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2918
2919fi
2920
2921
2922 eval "$ac_cv_use_permissive"
2923 if test "$no_cache" != 1; then
2924 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2925 fi
2926
2927 if test "$wxUSE_PERMISSIVE" = yes; then
2928 echo "$ac_t""yes" 1>&6
2929 else
2930 echo "$ac_t""no" 1>&6
2931 fi
2932
2933
2934 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2935echo "configure:2936: checking for --enable-no_deps" >&5
2936 no_cache=0
2937 # Check whether --enable-no_deps or --disable-no_deps was given.
2938if test "${enable_no_deps+set}" = set; then
2939 enableval="$enable_no_deps"
2940
2941 if test "$enableval" = yes; then
2942 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2943 else
2944 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2945 fi
2946
2947else
2948
2949 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2950 if test "x$LINE" != x ; then
2951 eval "DEFAULT_$LINE"
2952 else
2953 no_cache=1
2954 fi
2955
2956 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2957
2958fi
2959
2960
2961 eval "$ac_cv_use_no_deps"
2962 if test "$no_cache" != 1; then
2963 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2964 fi
2965
2966 if test "$wxUSE_NO_DEPS" = yes; then
2967 echo "$ac_t""yes" 1>&6
2968 else
2969 echo "$ac_t""no" 1>&6
2970 fi
2971
2972
2973
2974 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2975echo "configure:2976: checking for --enable-compat20" >&5
2976 no_cache=0
2977 # Check whether --enable-compat20 or --disable-compat20 was given.
2978if test "${enable_compat20+set}" = set; then
2979 enableval="$enable_compat20"
2980
2981 if test "$enableval" = yes; then
2982 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2983 else
2984 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2985 fi
2986
2987else
2988
2989 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2990 if test "x$LINE" != x ; then
2991 eval "DEFAULT_$LINE"
2992 else
2993 no_cache=1
2994 fi
2995
2996 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2997
2998fi
2999
3000
3001 eval "$ac_cv_use_compat20"
3002 if test "$no_cache" != 1; then
3003 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3004 fi
3005
3006 if test "$WXWIN_COMPATIBILITY_2" = yes; then
3007 echo "$ac_t""yes" 1>&6
3008 else
3009 echo "$ac_t""no" 1>&6
3010 fi
3011
3012
3013 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
3014echo "configure:3015: checking for --enable-compat22" >&5
3015 no_cache=0
3016 # Check whether --enable-compat22 or --disable-compat22 was given.
3017if test "${enable_compat22+set}" = set; then
3018 enableval="$enable_compat22"
3019
3020 if test "$enableval" = yes; then
3021 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3022 else
3023 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3024 fi
3025
3026else
3027
3028 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3029 if test "x$LINE" != x ; then
3030 eval "DEFAULT_$LINE"
3031 else
3032 no_cache=1
3033 fi
3034
3035 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3036
3037fi
3038
3039
3040 eval "$ac_cv_use_compat22"
3041 if test "$no_cache" != 1; then
3042 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3043 fi
3044
3045 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3046 echo "$ac_t""yes" 1>&6
3047 else
3048 echo "$ac_t""no" 1>&6
3049 fi
3050
3051
3052
3053
3054 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
3055echo "configure:3056: checking for --enable-intl" >&5
3056 no_cache=0
3057 # Check whether --enable-intl or --disable-intl was given.
3058if test "${enable_intl+set}" = set; then
3059 enableval="$enable_intl"
3060
3061 if test "$enableval" = yes; then
3062 ac_cv_use_intl='wxUSE_INTL=yes'
3063 else
3064 ac_cv_use_intl='wxUSE_INTL=no'
3065 fi
3066
3067else
3068
3069 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3070 if test "x$LINE" != x ; then
3071 eval "DEFAULT_$LINE"
3072 else
3073 no_cache=1
3074 fi
3075
3076 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3077
3078fi
3079
3080
3081 eval "$ac_cv_use_intl"
3082 if test "$no_cache" != 1; then
3083 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3084 fi
3085
3086 if test "$wxUSE_INTL" = yes; then
3087 echo "$ac_t""yes" 1>&6
3088 else
3089 echo "$ac_t""no" 1>&6
3090 fi
3091
3092
3093 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3094echo "configure:3095: checking for --enable-config" >&5
3095 no_cache=0
3096 # Check whether --enable-config or --disable-config was given.
3097if test "${enable_config+set}" = set; then
3098 enableval="$enable_config"
3099
3100 if test "$enableval" = yes; then
3101 ac_cv_use_config='wxUSE_CONFIG=yes'
3102 else
3103 ac_cv_use_config='wxUSE_CONFIG=no'
3104 fi
3105
3106else
3107
3108 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3109 if test "x$LINE" != x ; then
3110 eval "DEFAULT_$LINE"
3111 else
3112 no_cache=1
3113 fi
3114
3115 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3116
3117fi
3118
3119
3120 eval "$ac_cv_use_config"
3121 if test "$no_cache" != 1; then
3122 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3123 fi
3124
3125 if test "$wxUSE_CONFIG" = yes; then
3126 echo "$ac_t""yes" 1>&6
3127 else
3128 echo "$ac_t""no" 1>&6
3129 fi
3130
3131
3132
3133 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
3134echo "configure:3135: checking for --enable-protocols" >&5
3135 no_cache=0
3136 # Check whether --enable-protocols or --disable-protocols was given.
3137if test "${enable_protocols+set}" = set; then
3138 enableval="$enable_protocols"
3139
3140 if test "$enableval" = yes; then
3141 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3142 else
3143 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3144 fi
3145
3146else
3147
3148 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3149 if test "x$LINE" != x ; then
3150 eval "DEFAULT_$LINE"
3151 else
3152 no_cache=1
3153 fi
3154
3155 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3156
3157fi
3158
3159
3160 eval "$ac_cv_use_protocols"
3161 if test "$no_cache" != 1; then
3162 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3163 fi
3164
3165 if test "$wxUSE_PROTOCOL" = yes; then
3166 echo "$ac_t""yes" 1>&6
3167 else
3168 echo "$ac_t""no" 1>&6
3169 fi
3170
3171
3172 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
3173echo "configure:3174: checking for --enable-ftp" >&5
3174 no_cache=0
3175 # Check whether --enable-ftp or --disable-ftp was given.
3176if test "${enable_ftp+set}" = set; then
3177 enableval="$enable_ftp"
3178
3179 if test "$enableval" = yes; then
3180 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3181 else
3182 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3183 fi
3184
3185else
3186
3187 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3188 if test "x$LINE" != x ; then
3189 eval "DEFAULT_$LINE"
3190 else
3191 no_cache=1
3192 fi
3193
3194 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3195
3196fi
3197
3198
3199 eval "$ac_cv_use_ftp"
3200 if test "$no_cache" != 1; then
3201 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3202 fi
3203
3204 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3205 echo "$ac_t""yes" 1>&6
3206 else
3207 echo "$ac_t""no" 1>&6
3208 fi
3209
3210
3211 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
3212echo "configure:3213: checking for --enable-http" >&5
3213 no_cache=0
3214 # Check whether --enable-http or --disable-http was given.
3215if test "${enable_http+set}" = set; then
3216 enableval="$enable_http"
3217
3218 if test "$enableval" = yes; then
3219 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3220 else
3221 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3222 fi
3223
3224else
3225
3226 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3227 if test "x$LINE" != x ; then
3228 eval "DEFAULT_$LINE"
3229 else
3230 no_cache=1
3231 fi
3232
3233 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3234
3235fi
3236
3237
3238 eval "$ac_cv_use_http"
3239 if test "$no_cache" != 1; then
3240 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3241 fi
3242
3243 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3244 echo "$ac_t""yes" 1>&6
3245 else
3246 echo "$ac_t""no" 1>&6
3247 fi
3248
3249
3250 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
3251echo "configure:3252: checking for --enable-fileproto" >&5
3252 no_cache=0
3253 # Check whether --enable-fileproto or --disable-fileproto was given.
3254if test "${enable_fileproto+set}" = set; then
3255 enableval="$enable_fileproto"
3256
3257 if test "$enableval" = yes; then
3258 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3259 else
3260 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3261 fi
3262
3263else
3264
3265 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3266 if test "x$LINE" != x ; then
3267 eval "DEFAULT_$LINE"
3268 else
3269 no_cache=1
3270 fi
3271
3272 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3273
3274fi
3275
3276
3277 eval "$ac_cv_use_fileproto"
3278 if test "$no_cache" != 1; then
3279 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3280 fi
3281
3282 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3283 echo "$ac_t""yes" 1>&6
3284 else
3285 echo "$ac_t""no" 1>&6
3286 fi
3287
3288
3289 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3290echo "configure:3291: checking for --enable-sockets" >&5
3291 no_cache=0
3292 # Check whether --enable-sockets or --disable-sockets was given.
3293if test "${enable_sockets+set}" = set; then
3294 enableval="$enable_sockets"
3295
3296 if test "$enableval" = yes; then
3297 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3298 else
3299 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3300 fi
3301
3302else
3303
3304 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3305 if test "x$LINE" != x ; then
3306 eval "DEFAULT_$LINE"
3307 else
3308 no_cache=1
3309 fi
3310
3311 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3312
3313fi
3314
3315
3316 eval "$ac_cv_use_sockets"
3317 if test "$no_cache" != 1; then
3318 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3319 fi
3320
3321 if test "$wxUSE_SOCKETS" = yes; then
3322 echo "$ac_t""yes" 1>&6
3323 else
3324 echo "$ac_t""no" 1>&6
3325 fi
3326
3327
3328
3329 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3330echo "configure:3331: checking for --enable-ipc" >&5
3331 no_cache=0
3332 # Check whether --enable-ipc or --disable-ipc was given.
3333if test "${enable_ipc+set}" = set; then
3334 enableval="$enable_ipc"
3335
3336 if test "$enableval" = yes; then
3337 ac_cv_use_ipc='wxUSE_IPC=yes'
3338 else
3339 ac_cv_use_ipc='wxUSE_IPC=no'
3340 fi
3341
3342else
3343
3344 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3345 if test "x$LINE" != x ; then
3346 eval "DEFAULT_$LINE"
3347 else
3348 no_cache=1
3349 fi
3350
3351 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3352
3353fi
3354
3355
3356 eval "$ac_cv_use_ipc"
3357 if test "$no_cache" != 1; then
3358 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3359 fi
3360
3361 if test "$wxUSE_IPC" = yes; then
3362 echo "$ac_t""yes" 1>&6
3363 else
3364 echo "$ac_t""no" 1>&6
3365 fi
3366
3367
3368
3369 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3370echo "configure:3371: checking for --enable-cmdline" >&5
3371 no_cache=0
3372 # Check whether --enable-cmdline or --disable-cmdline was given.
3373if test "${enable_cmdline+set}" = set; then
3374 enableval="$enable_cmdline"
3375
3376 if test "$enableval" = yes; then
3377 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3378 else
3379 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3380 fi
3381
3382else
3383
3384 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3385 if test "x$LINE" != x ; then
3386 eval "DEFAULT_$LINE"
3387 else
3388 no_cache=1
3389 fi
3390
3391 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3392
3393fi
3394
3395
3396 eval "$ac_cv_use_cmdline"
3397 if test "$no_cache" != 1; then
3398 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3399 fi
3400
3401 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3402 echo "$ac_t""yes" 1>&6
3403 else
3404 echo "$ac_t""no" 1>&6
3405 fi
3406
3407
3408 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3409echo "configure:3410: checking for --enable-datetime" >&5
3410 no_cache=0
3411 # Check whether --enable-datetime or --disable-datetime was given.
3412if test "${enable_datetime+set}" = set; then
3413 enableval="$enable_datetime"
3414
3415 if test "$enableval" = yes; then
3416 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3417 else
3418 ac_cv_use_datetime='wxUSE_DATETIME=no'
3419 fi
3420
3421else
3422
3423 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3424 if test "x$LINE" != x ; then
3425 eval "DEFAULT_$LINE"
3426 else
3427 no_cache=1
3428 fi
3429
3430 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3431
3432fi
3433
3434
3435 eval "$ac_cv_use_datetime"
3436 if test "$no_cache" != 1; then
3437 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3438 fi
3439
3440 if test "$wxUSE_DATETIME" = yes; then
3441 echo "$ac_t""yes" 1>&6
3442 else
3443 echo "$ac_t""no" 1>&6
3444 fi
3445
3446
3447 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3448echo "configure:3449: checking for --enable-timedate" >&5
3449 no_cache=0
3450 # Check whether --enable-timedate or --disable-timedate was given.
3451if test "${enable_timedate+set}" = set; then
3452 enableval="$enable_timedate"
3453
3454 if test "$enableval" = yes; then
3455 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3456 else
3457 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3458 fi
3459
3460else
3461
3462 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3463 if test "x$LINE" != x ; then
3464 eval "DEFAULT_$LINE"
3465 else
3466 no_cache=1
3467 fi
3468
3469 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3470
3471fi
3472
3473
3474 eval "$ac_cv_use_timedate"
3475 if test "$no_cache" != 1; then
3476 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3477 fi
3478
3479 if test "$wxUSE_TIMEDATE" = yes; then
3480 echo "$ac_t""yes" 1>&6
3481 else
3482 echo "$ac_t""no" 1>&6
3483 fi
3484
3485
3486 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3487echo "configure:3488: checking for --enable-stopwatch" >&5
3488 no_cache=0
3489 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3490if test "${enable_stopwatch+set}" = set; then
3491 enableval="$enable_stopwatch"
3492
3493 if test "$enableval" = yes; then
3494 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3495 else
3496 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3497 fi
3498
3499else
3500
3501 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3502 if test "x$LINE" != x ; then
3503 eval "DEFAULT_$LINE"
3504 else
3505 no_cache=1
3506 fi
3507
3508 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3509
3510fi
3511
3512
3513 eval "$ac_cv_use_stopwatch"
3514 if test "$no_cache" != 1; then
3515 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3516 fi
3517
3518 if test "$wxUSE_STOPWATCH" = yes; then
3519 echo "$ac_t""yes" 1>&6
3520 else
3521 echo "$ac_t""no" 1>&6
3522 fi
3523
3524
3525 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3526echo "configure:3527: checking for --enable-dialupman" >&5
3527 no_cache=0
3528 # Check whether --enable-dialupman or --disable-dialupman was given.
3529if test "${enable_dialupman+set}" = set; then
3530 enableval="$enable_dialupman"
3531
3532 if test "$enableval" = yes; then
3533 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3534 else
3535 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3536 fi
3537
3538else
3539
3540 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3541 if test "x$LINE" != x ; then
3542 eval "DEFAULT_$LINE"
3543 else
3544 no_cache=1
3545 fi
3546
3547 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3548
3549fi
3550
3551
3552 eval "$ac_cv_use_dialupman"
3553 if test "$no_cache" != 1; then
3554 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3555 fi
3556
3557 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3558 echo "$ac_t""yes" 1>&6
3559 else
3560 echo "$ac_t""no" 1>&6
3561 fi
3562
3563
3564 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3565echo "configure:3566: checking for --enable-apple_ieee" >&5
3566 no_cache=0
3567 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3568if test "${enable_apple_ieee+set}" = set; then
3569 enableval="$enable_apple_ieee"
3570
3571 if test "$enableval" = yes; then
3572 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3573 else
3574 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3575 fi
3576
3577else
3578
3579 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3580 if test "x$LINE" != x ; then
3581 eval "DEFAULT_$LINE"
3582 else
3583 no_cache=1
3584 fi
3585
3586 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3587
3588fi
3589
3590
3591 eval "$ac_cv_use_apple_ieee"
3592 if test "$no_cache" != 1; then
3593 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3594 fi
3595
3596 if test "$wxUSE_APPLE_IEEE" = yes; then
3597 echo "$ac_t""yes" 1>&6
3598 else
3599 echo "$ac_t""no" 1>&6
3600 fi
3601
3602
3603 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3604echo "configure:3605: checking for --enable-timer" >&5
3605 no_cache=0
3606 # Check whether --enable-timer or --disable-timer was given.
3607if test "${enable_timer+set}" = set; then
3608 enableval="$enable_timer"
3609
3610 if test "$enableval" = yes; then
3611 ac_cv_use_timer='wxUSE_TIMER=yes'
3612 else
3613 ac_cv_use_timer='wxUSE_TIMER=no'
3614 fi
3615
3616else
3617
3618 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3619 if test "x$LINE" != x ; then
3620 eval "DEFAULT_$LINE"
3621 else
3622 no_cache=1
3623 fi
3624
3625 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3626
3627fi
3628
3629
3630 eval "$ac_cv_use_timer"
3631 if test "$no_cache" != 1; then
3632 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3633 fi
3634
3635 if test "$wxUSE_TIMER" = yes; then
3636 echo "$ac_t""yes" 1>&6
3637 else
3638 echo "$ac_t""no" 1>&6
3639 fi
3640
3641
3642 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3643echo "configure:3644: checking for --enable-wave" >&5
3644 no_cache=0
3645 # Check whether --enable-wave or --disable-wave was given.
3646if test "${enable_wave+set}" = set; then
3647 enableval="$enable_wave"
3648
3649 if test "$enableval" = yes; then
3650 ac_cv_use_wave='wxUSE_WAVE=yes'
3651 else
3652 ac_cv_use_wave='wxUSE_WAVE=no'
3653 fi
3654
3655else
3656
3657 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3658 if test "x$LINE" != x ; then
3659 eval "DEFAULT_$LINE"
3660 else
3661 no_cache=1
3662 fi
3663
3664 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3665
3666fi
3667
3668
3669 eval "$ac_cv_use_wave"
3670 if test "$no_cache" != 1; then
3671 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3672 fi
3673
3674 if test "$wxUSE_WAVE" = yes; then
3675 echo "$ac_t""yes" 1>&6
3676 else
3677 echo "$ac_t""no" 1>&6
3678 fi
3679
3680
3681 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3682echo "configure:3683: checking for --enable-fraction" >&5
3683 no_cache=0
3684 # Check whether --enable-fraction or --disable-fraction was given.
3685if test "${enable_fraction+set}" = set; then
3686 enableval="$enable_fraction"
3687
3688 if test "$enableval" = yes; then
3689 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3690 else
3691 ac_cv_use_fraction='wxUSE_FRACTION=no'
3692 fi
3693
3694else
3695
3696 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3697 if test "x$LINE" != x ; then
3698 eval "DEFAULT_$LINE"
3699 else
3700 no_cache=1
3701 fi
3702
3703 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3704
3705fi
3706
3707
3708 eval "$ac_cv_use_fraction"
3709 if test "$no_cache" != 1; then
3710 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3711 fi
3712
3713 if test "$wxUSE_FRACTION" = yes; then
3714 echo "$ac_t""yes" 1>&6
3715 else
3716 echo "$ac_t""no" 1>&6
3717 fi
3718
3719
3720 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3721echo "configure:3722: checking for --enable-dynlib" >&5
3722 no_cache=0
3723 # Check whether --enable-dynlib or --disable-dynlib was given.
3724if test "${enable_dynlib+set}" = set; then
3725 enableval="$enable_dynlib"
3726
3727 if test "$enableval" = yes; then
3728 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3729 else
3730 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3731 fi
3732
3733else
3734
3735 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3736 if test "x$LINE" != x ; then
3737 eval "DEFAULT_$LINE"
3738 else
3739 no_cache=1
3740 fi
3741
3742 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3743
3744fi
3745
3746
3747 eval "$ac_cv_use_dynlib"
3748 if test "$no_cache" != 1; then
3749 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3750 fi
3751
3752 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3753 echo "$ac_t""yes" 1>&6
3754 else
3755 echo "$ac_t""no" 1>&6
3756 fi
3757
3758
3759 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3760echo "configure:3761: checking for --enable-dynamicloader" >&5
3761 no_cache=0
3762 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3763if test "${enable_dynamicloader+set}" = set; then
3764 enableval="$enable_dynamicloader"
3765
3766 if test "$enableval" = yes; then
3767 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3768 else
3769 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3770 fi
3771
3772else
3773
3774 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3775 if test "x$LINE" != x ; then
3776 eval "DEFAULT_$LINE"
3777 else
3778 no_cache=1
3779 fi
3780
3781 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3782
3783fi
3784
3785
3786 eval "$ac_cv_use_dynamicloader"
3787 if test "$no_cache" != 1; then
3788 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3789 fi
3790
3791 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3792 echo "$ac_t""yes" 1>&6
3793 else
3794 echo "$ac_t""no" 1>&6
3795 fi
3796
3797
3798 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3799echo "configure:3800: checking for --enable-longlong" >&5
3800 no_cache=0
3801 # Check whether --enable-longlong or --disable-longlong was given.
3802if test "${enable_longlong+set}" = set; then
3803 enableval="$enable_longlong"
3804
3805 if test "$enableval" = yes; then
3806 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3807 else
3808 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3809 fi
3810
3811else
3812
3813 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3814 if test "x$LINE" != x ; then
3815 eval "DEFAULT_$LINE"
3816 else
3817 no_cache=1
3818 fi
3819
3820 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3821
3822fi
3823
3824
3825 eval "$ac_cv_use_longlong"
3826 if test "$no_cache" != 1; then
3827 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3828 fi
3829
3830 if test "$wxUSE_LONGLONG" = yes; then
3831 echo "$ac_t""yes" 1>&6
3832 else
3833 echo "$ac_t""no" 1>&6
3834 fi
3835
3836
3837 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3838echo "configure:3839: checking for --enable-geometry" >&5
3839 no_cache=0
3840 # Check whether --enable-geometry or --disable-geometry was given.
3841if test "${enable_geometry+set}" = set; then
3842 enableval="$enable_geometry"
3843
3844 if test "$enableval" = yes; then
3845 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3846 else
3847 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3848 fi
3849
3850else
3851
3852 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3853 if test "x$LINE" != x ; then
3854 eval "DEFAULT_$LINE"
3855 else
3856 no_cache=1
3857 fi
3858
3859 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3860
3861fi
3862
3863
3864 eval "$ac_cv_use_geometry"
3865 if test "$no_cache" != 1; then
3866 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3867 fi
3868
3869 if test "$wxUSE_GEOMETRY" = yes; then
3870 echo "$ac_t""yes" 1>&6
3871 else
3872 echo "$ac_t""no" 1>&6
3873 fi
3874
3875
3876 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3877echo "configure:3878: checking for --enable-log" >&5
3878 no_cache=0
3879 # Check whether --enable-log or --disable-log was given.
3880if test "${enable_log+set}" = set; then
3881 enableval="$enable_log"
3882
3883 if test "$enableval" = yes; then
3884 ac_cv_use_log='wxUSE_LOG=yes'
3885 else
3886 ac_cv_use_log='wxUSE_LOG=no'
3887 fi
3888
3889else
3890
3891 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3892 if test "x$LINE" != x ; then
3893 eval "DEFAULT_$LINE"
3894 else
3895 no_cache=1
3896 fi
3897
3898 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3899
3900fi
3901
3902
3903 eval "$ac_cv_use_log"
3904 if test "$no_cache" != 1; then
3905 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3906 fi
3907
3908 if test "$wxUSE_LOG" = yes; then
3909 echo "$ac_t""yes" 1>&6
3910 else
3911 echo "$ac_t""no" 1>&6
3912 fi
3913
3914
3915 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3916echo "configure:3917: checking for --enable-streams" >&5
3917 no_cache=0
3918 # Check whether --enable-streams or --disable-streams was given.
3919if test "${enable_streams+set}" = set; then
3920 enableval="$enable_streams"
3921
3922 if test "$enableval" = yes; then
3923 ac_cv_use_streams='wxUSE_STREAMS=yes'
3924 else
3925 ac_cv_use_streams='wxUSE_STREAMS=no'
3926 fi
3927
3928else
3929
3930 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3931 if test "x$LINE" != x ; then
3932 eval "DEFAULT_$LINE"
3933 else
3934 no_cache=1
3935 fi
3936
3937 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3938
3939fi
3940
3941
3942 eval "$ac_cv_use_streams"
3943 if test "$no_cache" != 1; then
3944 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3945 fi
3946
3947 if test "$wxUSE_STREAMS" = yes; then
3948 echo "$ac_t""yes" 1>&6
3949 else
3950 echo "$ac_t""no" 1>&6
3951 fi
3952
3953
3954 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3955echo "configure:3956: checking for --enable-file" >&5
3956 no_cache=0
3957 # Check whether --enable-file or --disable-file was given.
3958if test "${enable_file+set}" = set; then
3959 enableval="$enable_file"
3960
3961 if test "$enableval" = yes; then
3962 ac_cv_use_file='wxUSE_FILE=yes'
3963 else
3964 ac_cv_use_file='wxUSE_FILE=no'
3965 fi
3966
3967else
3968
3969 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3970 if test "x$LINE" != x ; then
3971 eval "DEFAULT_$LINE"
3972 else
3973 no_cache=1
3974 fi
3975
3976 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3977
3978fi
3979
3980
3981 eval "$ac_cv_use_file"
3982 if test "$no_cache" != 1; then
3983 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3984 fi
3985
3986 if test "$wxUSE_FILE" = yes; then
3987 echo "$ac_t""yes" 1>&6
3988 else
3989 echo "$ac_t""no" 1>&6
3990 fi
3991
3992
3993 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3994echo "configure:3995: checking for --enable-ffile" >&5
3995 no_cache=0
3996 # Check whether --enable-ffile or --disable-ffile was given.
3997if test "${enable_ffile+set}" = set; then
3998 enableval="$enable_ffile"
3999
4000 if test "$enableval" = yes; then
4001 ac_cv_use_ffile='wxUSE_FFILE=yes'
4002 else
4003 ac_cv_use_ffile='wxUSE_FFILE=no'
4004 fi
4005
4006else
4007
4008 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4009 if test "x$LINE" != x ; then
4010 eval "DEFAULT_$LINE"
4011 else
4012 no_cache=1
4013 fi
4014
4015 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4016
4017fi
4018
4019
4020 eval "$ac_cv_use_ffile"
4021 if test "$no_cache" != 1; then
4022 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4023 fi
4024
4025 if test "$wxUSE_FFILE" = yes; then
4026 echo "$ac_t""yes" 1>&6
4027 else
4028 echo "$ac_t""no" 1>&6
4029 fi
4030
4031
4032 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
4033echo "configure:4034: checking for --enable-textbuf" >&5
4034 no_cache=0
4035 # Check whether --enable-textbuf or --disable-textbuf was given.
4036if test "${enable_textbuf+set}" = set; then
4037 enableval="$enable_textbuf"
4038
4039 if test "$enableval" = yes; then
4040 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4041 else
4042 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4043 fi
4044
4045else
4046
4047 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4048 if test "x$LINE" != x ; then
4049 eval "DEFAULT_$LINE"
4050 else
4051 no_cache=1
4052 fi
4053
4054 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4055
4056fi
4057
4058
4059 eval "$ac_cv_use_textbuf"
4060 if test "$no_cache" != 1; then
4061 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4062 fi
4063
4064 if test "$wxUSE_TEXTBUFFER" = yes; then
4065 echo "$ac_t""yes" 1>&6
4066 else
4067 echo "$ac_t""no" 1>&6
4068 fi
4069
4070
4071 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
4072echo "configure:4073: checking for --enable-textfile" >&5
4073 no_cache=0
4074 # Check whether --enable-textfile or --disable-textfile was given.
4075if test "${enable_textfile+set}" = set; then
4076 enableval="$enable_textfile"
4077
4078 if test "$enableval" = yes; then
4079 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4080 else
4081 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4082 fi
4083
4084else
4085
4086 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4087 if test "x$LINE" != x ; then
4088 eval "DEFAULT_$LINE"
4089 else
4090 no_cache=1
4091 fi
4092
4093 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4094
4095fi
4096
4097
4098 eval "$ac_cv_use_textfile"
4099 if test "$no_cache" != 1; then
4100 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4101 fi
4102
4103 if test "$wxUSE_TEXTFILE" = yes; then
4104 echo "$ac_t""yes" 1>&6
4105 else
4106 echo "$ac_t""no" 1>&6
4107 fi
4108
4109
4110 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
4111echo "configure:4112: checking for --enable-fontmap" >&5
4112 no_cache=0
4113 # Check whether --enable-fontmap or --disable-fontmap was given.
4114if test "${enable_fontmap+set}" = set; then
4115 enableval="$enable_fontmap"
4116
4117 if test "$enableval" = yes; then
4118 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4119 else
4120 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4121 fi
4122
4123else
4124
4125 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4126 if test "x$LINE" != x ; then
4127 eval "DEFAULT_$LINE"
4128 else
4129 no_cache=1
4130 fi
4131
4132 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4133
4134fi
4135
4136
4137 eval "$ac_cv_use_fontmap"
4138 if test "$no_cache" != 1; then
4139 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4140 fi
4141
4142 if test "$wxUSE_FONTMAP" = yes; then
4143 echo "$ac_t""yes" 1>&6
4144 else
4145 echo "$ac_t""no" 1>&6
4146 fi
4147
4148
4149 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
4150echo "configure:4151: checking for --enable-unicode" >&5
4151 no_cache=0
4152 # Check whether --enable-unicode or --disable-unicode was given.
4153if test "${enable_unicode+set}" = set; then
4154 enableval="$enable_unicode"
4155
4156 if test "$enableval" = yes; then
4157 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4158 else
4159 ac_cv_use_unicode='wxUSE_UNICODE=no'
4160 fi
4161
4162else
4163
4164 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4165 if test "x$LINE" != x ; then
4166 eval "DEFAULT_$LINE"
4167 else
4168 no_cache=1
4169 fi
4170
4171 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4172
4173fi
4174
4175
4176 eval "$ac_cv_use_unicode"
4177 if test "$no_cache" != 1; then
4178 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4179 fi
4180
4181 if test "$wxUSE_UNICODE" = yes; then
4182 echo "$ac_t""yes" 1>&6
4183 else
4184 echo "$ac_t""no" 1>&6
4185 fi
4186
4187
4188 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
4189echo "configure:4190: checking for --enable-mslu" >&5
4190 no_cache=0
4191 # Check whether --enable-mslu or --disable-mslu was given.
4192if test "${enable_mslu+set}" = set; then
4193 enableval="$enable_mslu"
4194
4195 if test "$enableval" = yes; then
4196 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4197 else
4198 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4199 fi
4200
4201else
4202
4203 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4204 if test "x$LINE" != x ; then
4205 eval "DEFAULT_$LINE"
4206 else
4207 no_cache=1
4208 fi
4209
4210 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4211
4212fi
4213
4214
4215 eval "$ac_cv_use_mslu"
4216 if test "$no_cache" != 1; then
4217 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4218 fi
4219
4220 if test "$wxUSE_UNICODE_MSLU" = yes; then
4221 echo "$ac_t""yes" 1>&6
4222 else
4223 echo "$ac_t""no" 1>&6
4224 fi
4225
4226
4227 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
4228echo "configure:4229: checking for --enable-wxprintfv" >&5
4229 no_cache=0
4230 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4231if test "${enable_wxprintfv+set}" = set; then
4232 enableval="$enable_wxprintfv"
4233
4234 if test "$enableval" = yes; then
4235 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4236 else
4237 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4238 fi
4239
4240else
4241
4242 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4243 if test "x$LINE" != x ; then
4244 eval "DEFAULT_$LINE"
4245 else
4246 no_cache=1
4247 fi
4248
4249 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4250
4251fi
4252
4253
4254 eval "$ac_cv_use_wxprintfv"
4255 if test "$no_cache" != 1; then
4256 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4257 fi
4258
4259 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4260 echo "$ac_t""yes" 1>&6
4261 else
4262 echo "$ac_t""no" 1>&6
4263 fi
4264
4265
4266 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
4267echo "configure:4268: checking for --enable-std_iostreams" >&5
4268 no_cache=0
4269 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4270if test "${enable_std_iostreams+set}" = set; then
4271 enableval="$enable_std_iostreams"
4272
4273 if test "$enableval" = yes; then
4274 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4275 else
4276 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4277 fi
4278
4279else
4280
4281 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4282 if test "x$LINE" != x ; then
4283 eval "DEFAULT_$LINE"
4284 else
4285 no_cache=1
4286 fi
4287
4288 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4289
4290fi
4291
4292
4293 eval "$ac_cv_use_std_iostreams"
4294 if test "$no_cache" != 1; then
4295 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4296 fi
4297
4298 if test "$wxUSE_STD_IOSTREAM" = yes; then
4299 echo "$ac_t""yes" 1>&6
4300 else
4301 echo "$ac_t""no" 1>&6
4302 fi
4303
4304
4305 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
4306echo "configure:4307: checking for --enable-filesystem" >&5
4307 no_cache=0
4308 # Check whether --enable-filesystem or --disable-filesystem was given.
4309if test "${enable_filesystem+set}" = set; then
4310 enableval="$enable_filesystem"
4311
4312 if test "$enableval" = yes; then
4313 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4314 else
4315 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4316 fi
4317
4318else
4319
4320 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4321 if test "x$LINE" != x ; then
4322 eval "DEFAULT_$LINE"
4323 else
4324 no_cache=1
4325 fi
4326
4327 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4328
4329fi
4330
4331
4332 eval "$ac_cv_use_filesystem"
4333 if test "$no_cache" != 1; then
4334 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4335 fi
4336
4337 if test "$wxUSE_FILESYSTEM" = yes; then
4338 echo "$ac_t""yes" 1>&6
4339 else
4340 echo "$ac_t""no" 1>&6
4341 fi
4342
4343
4344 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4345echo "configure:4346: checking for --enable-fs_inet" >&5
4346 no_cache=0
4347 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4348if test "${enable_fs_inet+set}" = set; then
4349 enableval="$enable_fs_inet"
4350
4351 if test "$enableval" = yes; then
4352 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4353 else
4354 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4355 fi
4356
4357else
4358
4359 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4360 if test "x$LINE" != x ; then
4361 eval "DEFAULT_$LINE"
4362 else
4363 no_cache=1
4364 fi
4365
4366 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4367
4368fi
4369
4370
4371 eval "$ac_cv_use_fs_inet"
4372 if test "$no_cache" != 1; then
4373 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4374 fi
4375
4376 if test "$wxUSE_FS_INET" = yes; then
4377 echo "$ac_t""yes" 1>&6
4378 else
4379 echo "$ac_t""no" 1>&6
4380 fi
4381
4382
4383 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4384echo "configure:4385: checking for --enable-fs_zip" >&5
4385 no_cache=0
4386 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4387if test "${enable_fs_zip+set}" = set; then
4388 enableval="$enable_fs_zip"
4389
4390 if test "$enableval" = yes; then
4391 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4392 else
4393 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4394 fi
4395
4396else
4397
4398 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4399 if test "x$LINE" != x ; then
4400 eval "DEFAULT_$LINE"
4401 else
4402 no_cache=1
4403 fi
4404
4405 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4406
4407fi
4408
4409
4410 eval "$ac_cv_use_fs_zip"
4411 if test "$no_cache" != 1; then
4412 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4413 fi
4414
4415 if test "$wxUSE_FS_ZIP" = yes; then
4416 echo "$ac_t""yes" 1>&6
4417 else
4418 echo "$ac_t""no" 1>&6
4419 fi
4420
4421
4422 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4423echo "configure:4424: checking for --enable-zipstream" >&5
4424 no_cache=0
4425 # Check whether --enable-zipstream or --disable-zipstream was given.
4426if test "${enable_zipstream+set}" = set; then
4427 enableval="$enable_zipstream"
4428
4429 if test "$enableval" = yes; then
4430 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4431 else
4432 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4433 fi
4434
4435else
4436
4437 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4438 if test "x$LINE" != x ; then
4439 eval "DEFAULT_$LINE"
4440 else
4441 no_cache=1
4442 fi
4443
4444 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4445
4446fi
4447
4448
4449 eval "$ac_cv_use_zipstream"
4450 if test "$no_cache" != 1; then
4451 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4452 fi
4453
4454 if test "$wxUSE_ZIPSTREAM" = yes; then
4455 echo "$ac_t""yes" 1>&6
4456 else
4457 echo "$ac_t""no" 1>&6
4458 fi
4459
4460
4461
4462 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4463echo "configure:4464: checking for --enable-catch_segvs" >&5
4464 no_cache=0
4465 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4466if test "${enable_catch_segvs+set}" = set; then
4467 enableval="$enable_catch_segvs"
4468
4469 if test "$enableval" = yes; then
4470 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4471 else
4472 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4473 fi
4474
4475else
4476
4477 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4478 if test "x$LINE" != x ; then
4479 eval "DEFAULT_$LINE"
4480 else
4481 no_cache=1
4482 fi
4483
4484 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4485
4486fi
4487
4488
4489 eval "$ac_cv_use_catch_segvs"
4490 if test "$no_cache" != 1; then
4491 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4492 fi
4493
4494 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4495 echo "$ac_t""yes" 1>&6
4496 else
4497 echo "$ac_t""no" 1>&6
4498 fi
4499
4500
4501 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4502echo "configure:4503: checking for --enable-snglinst" >&5
4503 no_cache=0
4504 # Check whether --enable-snglinst or --disable-snglinst was given.
4505if test "${enable_snglinst+set}" = set; then
4506 enableval="$enable_snglinst"
4507
4508 if test "$enableval" = yes; then
4509 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4510 else
4511 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4512 fi
4513
4514else
4515
4516 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4517 if test "x$LINE" != x ; then
4518 eval "DEFAULT_$LINE"
4519 else
4520 no_cache=1
4521 fi
4522
4523 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4524
4525fi
4526
4527
4528 eval "$ac_cv_use_snglinst"
4529 if test "$no_cache" != 1; then
4530 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4531 fi
4532
4533 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4534 echo "$ac_t""yes" 1>&6
4535 else
4536 echo "$ac_t""no" 1>&6
4537 fi
4538
4539
4540
4541 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4542echo "configure:4543: checking for --enable-mimetype" >&5
4543 no_cache=0
4544 # Check whether --enable-mimetype or --disable-mimetype was given.
4545if test "${enable_mimetype+set}" = set; then
4546 enableval="$enable_mimetype"
4547
4548 if test "$enableval" = yes; then
4549 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4550 else
4551 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4552 fi
4553
4554else
4555
4556 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4557 if test "x$LINE" != x ; then
4558 eval "DEFAULT_$LINE"
4559 else
4560 no_cache=1
4561 fi
4562
4563 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4564
4565fi
4566
4567
4568 eval "$ac_cv_use_mimetype"
4569 if test "$no_cache" != 1; then
4570 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4571 fi
4572
4573 if test "$wxUSE_MIMETYPE" = yes; then
4574 echo "$ac_t""yes" 1>&6
4575 else
4576 echo "$ac_t""no" 1>&6
4577 fi
4578
4579
4580 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4581echo "configure:4582: checking for --enable-system_options" >&5
4582 no_cache=0
4583 # Check whether --enable-system_options or --disable-system_options was given.
4584if test "${enable_system_options+set}" = set; then
4585 enableval="$enable_system_options"
4586
4587 if test "$enableval" = yes; then
4588 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4589 else
4590 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4591 fi
4592
4593else
4594
4595 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4596 if test "x$LINE" != x ; then
4597 eval "DEFAULT_$LINE"
4598 else
4599 no_cache=1
4600 fi
4601
4602 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4603
4604fi
4605
4606
4607 eval "$ac_cv_use_system_options"
4608 if test "$no_cache" != 1; then
4609 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4610 fi
4611
4612 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4613 echo "$ac_t""yes" 1>&6
4614 else
4615 echo "$ac_t""no" 1>&6
4616 fi
4617
4618
4619
4620 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
4621echo "configure:4622: checking for --enable-url" >&5
4622 no_cache=0
4623 # Check whether --enable-url or --disable-url was given.
4624if test "${enable_url+set}" = set; then
4625 enableval="$enable_url"
4626
4627 if test "$enableval" = yes; then
4628 ac_cv_use_url='wxUSE_URL=yes'
4629 else
4630 ac_cv_use_url='wxUSE_URL=no'
4631 fi
4632
4633else
4634
4635 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4636 if test "x$LINE" != x ; then
4637 eval "DEFAULT_$LINE"
4638 else
4639 no_cache=1
4640 fi
4641
4642 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4643
4644fi
4645
4646
4647 eval "$ac_cv_use_url"
4648 if test "$no_cache" != 1; then
4649 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4650 fi
4651
4652 if test "$wxUSE_URL" = yes; then
4653 echo "$ac_t""yes" 1>&6
4654 else
4655 echo "$ac_t""no" 1>&6
4656 fi
4657
4658
4659 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
4660echo "configure:4661: checking for --enable-protocol" >&5
4661 no_cache=0
4662 # Check whether --enable-protocol or --disable-protocol was given.
4663if test "${enable_protocol+set}" = set; then
4664 enableval="$enable_protocol"
4665
4666 if test "$enableval" = yes; then
4667 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4668 else
4669 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4670 fi
4671
4672else
4673
4674 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4675 if test "x$LINE" != x ; then
4676 eval "DEFAULT_$LINE"
4677 else
4678 no_cache=1
4679 fi
4680
4681 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4682
4683fi
4684
4685
4686 eval "$ac_cv_use_protocol"
4687 if test "$no_cache" != 1; then
4688 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4689 fi
4690
4691 if test "$wxUSE_PROTOCOL" = yes; then
4692 echo "$ac_t""yes" 1>&6
4693 else
4694 echo "$ac_t""no" 1>&6
4695 fi
4696
4697
4698 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
4699echo "configure:4700: checking for --enable-protocol_http" >&5
4700 no_cache=0
4701 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4702if test "${enable_protocol_http+set}" = set; then
4703 enableval="$enable_protocol_http"
4704
4705 if test "$enableval" = yes; then
4706 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4707 else
4708 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4709 fi
4710
4711else
4712
4713 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4714 if test "x$LINE" != x ; then
4715 eval "DEFAULT_$LINE"
4716 else
4717 no_cache=1
4718 fi
4719
4720 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4721
4722fi
4723
4724
4725 eval "$ac_cv_use_protocol_http"
4726 if test "$no_cache" != 1; then
4727 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4728 fi
4729
4730 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4731 echo "$ac_t""yes" 1>&6
4732 else
4733 echo "$ac_t""no" 1>&6
4734 fi
4735
4736
4737 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
4738echo "configure:4739: checking for --enable-protocol_ftp" >&5
4739 no_cache=0
4740 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4741if test "${enable_protocol_ftp+set}" = set; then
4742 enableval="$enable_protocol_ftp"
4743
4744 if test "$enableval" = yes; then
4745 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4746 else
4747 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4748 fi
4749
4750else
4751
4752 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4753 if test "x$LINE" != x ; then
4754 eval "DEFAULT_$LINE"
4755 else
4756 no_cache=1
4757 fi
4758
4759 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4760
4761fi
4762
4763
4764 eval "$ac_cv_use_protocol_ftp"
4765 if test "$no_cache" != 1; then
4766 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4767 fi
4768
4769 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4770 echo "$ac_t""yes" 1>&6
4771 else
4772 echo "$ac_t""no" 1>&6
4773 fi
4774
4775
4776 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
4777echo "configure:4778: checking for --enable-protocol_file" >&5
4778 no_cache=0
4779 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4780if test "${enable_protocol_file+set}" = set; then
4781 enableval="$enable_protocol_file"
4782
4783 if test "$enableval" = yes; then
4784 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4785 else
4786 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4787 fi
4788
4789else
4790
4791 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4792 if test "x$LINE" != x ; then
4793 eval "DEFAULT_$LINE"
4794 else
4795 no_cache=1
4796 fi
4797
4798 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4799
4800fi
4801
4802
4803 eval "$ac_cv_use_protocol_file"
4804 if test "$no_cache" != 1; then
4805 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4806 fi
4807
4808 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4809 echo "$ac_t""yes" 1>&6
4810 else
4811 echo "$ac_t""no" 1>&6
4812 fi
4813
4814
4815
4816
4817
4818 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4819echo "configure:4820: checking for --enable-threads" >&5
4820 no_cache=0
4821 # Check whether --enable-threads or --disable-threads was given.
4822if test "${enable_threads+set}" = set; then
4823 enableval="$enable_threads"
4824
4825 if test "$enableval" = yes; then
4826 ac_cv_use_threads='wxUSE_THREADS=yes'
4827 else
4828 ac_cv_use_threads='wxUSE_THREADS=no'
4829 fi
4830
4831else
4832
4833 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4834 if test "x$LINE" != x ; then
4835 eval "DEFAULT_$LINE"
4836 else
4837 no_cache=1
4838 fi
4839
4840 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4841
4842fi
4843
4844
4845 eval "$ac_cv_use_threads"
4846 if test "$no_cache" != 1; then
4847 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4848 fi
4849
4850 if test "$wxUSE_THREADS" = yes; then
4851 echo "$ac_t""yes" 1>&6
4852 else
4853 echo "$ac_t""no" 1>&6
4854 fi
4855
4856
4857if test "$wxUSE_GUI" = "yes"; then
4858
4859
4860
4861 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4862echo "configure:4863: checking for --enable-docview" >&5
4863 no_cache=0
4864 # Check whether --enable-docview or --disable-docview was given.
4865if test "${enable_docview+set}" = set; then
4866 enableval="$enable_docview"
4867
4868 if test "$enableval" = yes; then
4869 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4870 else
4871 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4872 fi
4873
4874else
4875
4876 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4877 if test "x$LINE" != x ; then
4878 eval "DEFAULT_$LINE"
4879 else
4880 no_cache=1
4881 fi
4882
4883 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4884
4885fi
4886
4887
4888 eval "$ac_cv_use_docview"
4889 if test "$no_cache" != 1; then
4890 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4891 fi
4892
4893 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4894 echo "$ac_t""yes" 1>&6
4895 else
4896 echo "$ac_t""no" 1>&6
4897 fi
4898
4899
4900 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4901echo "configure:4902: checking for --enable-help" >&5
4902 no_cache=0
4903 # Check whether --enable-help or --disable-help was given.
4904if test "${enable_help+set}" = set; then
4905 enableval="$enable_help"
4906
4907 if test "$enableval" = yes; then
4908 ac_cv_use_help='wxUSE_HELP=yes'
4909 else
4910 ac_cv_use_help='wxUSE_HELP=no'
4911 fi
4912
4913else
4914
4915 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4916 if test "x$LINE" != x ; then
4917 eval "DEFAULT_$LINE"
4918 else
4919 no_cache=1
4920 fi
4921
4922 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4923
4924fi
4925
4926
4927 eval "$ac_cv_use_help"
4928 if test "$no_cache" != 1; then
4929 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4930 fi
4931
4932 if test "$wxUSE_HELP" = yes; then
4933 echo "$ac_t""yes" 1>&6
4934 else
4935 echo "$ac_t""no" 1>&6
4936 fi
4937
4938
4939 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4940echo "configure:4941: checking for --enable-mshtmlhelp" >&5
4941 no_cache=0
4942 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4943if test "${enable_mshtmlhelp+set}" = set; then
4944 enableval="$enable_mshtmlhelp"
4945
4946 if test "$enableval" = yes; then
4947 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4948 else
4949 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4950 fi
4951
4952else
4953
4954 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4955 if test "x$LINE" != x ; then
4956 eval "DEFAULT_$LINE"
4957 else
4958 no_cache=1
4959 fi
4960
4961 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4962
4963fi
4964
4965
4966 eval "$ac_cv_use_mshtmlhelp"
4967 if test "$no_cache" != 1; then
4968 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4969 fi
4970
4971 if test "$wxUSE_MS_HTML_HELP" = yes; then
4972 echo "$ac_t""yes" 1>&6
4973 else
4974 echo "$ac_t""no" 1>&6
4975 fi
4976
4977
4978 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4979echo "configure:4980: checking for --enable-html" >&5
4980 no_cache=0
4981 # Check whether --enable-html or --disable-html was given.
4982if test "${enable_html+set}" = set; then
4983 enableval="$enable_html"
4984
4985 if test "$enableval" = yes; then
4986 ac_cv_use_html='wxUSE_HTML=yes'
4987 else
4988 ac_cv_use_html='wxUSE_HTML=no'
4989 fi
4990
4991else
4992
4993 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4994 if test "x$LINE" != x ; then
4995 eval "DEFAULT_$LINE"
4996 else
4997 no_cache=1
4998 fi
4999
5000 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5001
5002fi
5003
5004
5005 eval "$ac_cv_use_html"
5006 if test "$no_cache" != 1; then
5007 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5008 fi
5009
5010 if test "$wxUSE_HTML" = yes; then
5011 echo "$ac_t""yes" 1>&6
5012 else
5013 echo "$ac_t""no" 1>&6
5014 fi
5015
5016
5017 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
5018echo "configure:5019: checking for --enable-htmlhelp" >&5
5019 no_cache=0
5020 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5021if test "${enable_htmlhelp+set}" = set; then
5022 enableval="$enable_htmlhelp"
5023
5024 if test "$enableval" = yes; then
5025 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5026 else
5027 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5028 fi
5029
5030else
5031
5032 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5033 if test "x$LINE" != x ; then
5034 eval "DEFAULT_$LINE"
5035 else
5036 no_cache=1
5037 fi
5038
5039 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5040
5041fi
5042
5043
5044 eval "$ac_cv_use_htmlhelp"
5045 if test "$no_cache" != 1; then
5046 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5047 fi
5048
5049 if test "$wxUSE_WXHTML_HELP" = yes; then
5050 echo "$ac_t""yes" 1>&6
5051 else
5052 echo "$ac_t""no" 1>&6
5053 fi
5054
5055
5056 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
5057echo "configure:5058: checking for --enable-constraints" >&5
5058 no_cache=0
5059 # Check whether --enable-constraints or --disable-constraints was given.
5060if test "${enable_constraints+set}" = set; then
5061 enableval="$enable_constraints"
5062
5063 if test "$enableval" = yes; then
5064 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5065 else
5066 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5067 fi
5068
5069else
5070
5071 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5072 if test "x$LINE" != x ; then
5073 eval "DEFAULT_$LINE"
5074 else
5075 no_cache=1
5076 fi
5077
5078 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5079
5080fi
5081
5082
5083 eval "$ac_cv_use_constraints"
5084 if test "$no_cache" != 1; then
5085 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5086 fi
5087
5088 if test "$wxUSE_CONSTRAINTS" = yes; then
5089 echo "$ac_t""yes" 1>&6
5090 else
5091 echo "$ac_t""no" 1>&6
5092 fi
5093
5094
5095 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
5096echo "configure:5097: checking for --enable-printarch" >&5
5097 no_cache=0
5098 # Check whether --enable-printarch or --disable-printarch was given.
5099if test "${enable_printarch+set}" = set; then
5100 enableval="$enable_printarch"
5101
5102 if test "$enableval" = yes; then
5103 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5104 else
5105 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5106 fi
5107
5108else
5109
5110 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5111 if test "x$LINE" != x ; then
5112 eval "DEFAULT_$LINE"
5113 else
5114 no_cache=1
5115 fi
5116
5117 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5118
5119fi
5120
5121
5122 eval "$ac_cv_use_printarch"
5123 if test "$no_cache" != 1; then
5124 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5125 fi
5126
5127 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5128 echo "$ac_t""yes" 1>&6
5129 else
5130 echo "$ac_t""no" 1>&6
5131 fi
5132
5133
5134 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
5135echo "configure:5136: checking for --enable-mdi" >&5
5136 no_cache=0
5137 # Check whether --enable-mdi or --disable-mdi was given.
5138if test "${enable_mdi+set}" = set; then
5139 enableval="$enable_mdi"
5140
5141 if test "$enableval" = yes; then
5142 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5143 else
5144 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5145 fi
5146
5147else
5148
5149 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5150 if test "x$LINE" != x ; then
5151 eval "DEFAULT_$LINE"
5152 else
5153 no_cache=1
5154 fi
5155
5156 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5157
5158fi
5159
5160
5161 eval "$ac_cv_use_mdi"
5162 if test "$no_cache" != 1; then
5163 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5164 fi
5165
5166 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5167 echo "$ac_t""yes" 1>&6
5168 else
5169 echo "$ac_t""no" 1>&6
5170 fi
5171
5172
5173 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
5174echo "configure:5175: checking for --enable-loggui" >&5
5175 no_cache=0
5176 # Check whether --enable-loggui or --disable-loggui was given.
5177if test "${enable_loggui+set}" = set; then
5178 enableval="$enable_loggui"
5179
5180 if test "$enableval" = yes; then
5181 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5182 else
5183 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5184 fi
5185
5186else
5187
5188 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5189 if test "x$LINE" != x ; then
5190 eval "DEFAULT_$LINE"
5191 else
5192 no_cache=1
5193 fi
5194
5195 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5196
5197fi
5198
5199
5200 eval "$ac_cv_use_loggui"
5201 if test "$no_cache" != 1; then
5202 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5203 fi
5204
5205 if test "$wxUSE_LOGGUI" = yes; then
5206 echo "$ac_t""yes" 1>&6
5207 else
5208 echo "$ac_t""no" 1>&6
5209 fi
5210
5211
5212 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
5213echo "configure:5214: checking for --enable-logwin" >&5
5214 no_cache=0
5215 # Check whether --enable-logwin or --disable-logwin was given.
5216if test "${enable_logwin+set}" = set; then
5217 enableval="$enable_logwin"
5218
5219 if test "$enableval" = yes; then
5220 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5221 else
5222 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5223 fi
5224
5225else
5226
5227 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5228 if test "x$LINE" != x ; then
5229 eval "DEFAULT_$LINE"
5230 else
5231 no_cache=1
5232 fi
5233
5234 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5235
5236fi
5237
5238
5239 eval "$ac_cv_use_logwin"
5240 if test "$no_cache" != 1; then
5241 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5242 fi
5243
5244 if test "$wxUSE_LOGWINDOW" = yes; then
5245 echo "$ac_t""yes" 1>&6
5246 else
5247 echo "$ac_t""no" 1>&6
5248 fi
5249
5250
5251 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
5252echo "configure:5253: checking for --enable-logdialog" >&5
5253 no_cache=0
5254 # Check whether --enable-logdialog or --disable-logdialog was given.
5255if test "${enable_logdialog+set}" = set; then
5256 enableval="$enable_logdialog"
5257
5258 if test "$enableval" = yes; then
5259 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5260 else
5261 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5262 fi
5263
5264else
5265
5266 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5267 if test "x$LINE" != x ; then
5268 eval "DEFAULT_$LINE"
5269 else
5270 no_cache=1
5271 fi
5272
5273 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5274
5275fi
5276
5277
5278 eval "$ac_cv_use_logdialog"
5279 if test "$no_cache" != 1; then
5280 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5281 fi
5282
5283 if test "$wxUSE_LOGDIALOG" = yes; then
5284 echo "$ac_t""yes" 1>&6
5285 else
5286 echo "$ac_t""no" 1>&6
5287 fi
5288
5289
5290
5291 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
5292echo "configure:5293: checking for --enable-postscript" >&5
5293 no_cache=0
5294 # Check whether --enable-postscript or --disable-postscript was given.
5295if test "${enable_postscript+set}" = set; then
5296 enableval="$enable_postscript"
5297
5298 if test "$enableval" = yes; then
5299 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5300 else
5301 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5302 fi
5303
5304else
5305
5306 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5307 if test "x$LINE" != x ; then
5308 eval "DEFAULT_$LINE"
5309 else
5310 no_cache=1
5311 fi
5312
5313 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5314
5315fi
5316
5317
5318 eval "$ac_cv_use_postscript"
5319 if test "$no_cache" != 1; then
5320 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5321 fi
5322
5323 if test "$wxUSE_POSTSCRIPT" = yes; then
5324 echo "$ac_t""yes" 1>&6
5325 else
5326 echo "$ac_t""no" 1>&6
5327 fi
5328
5329
5330
5331
5332
5333 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
5334echo "configure:5335: checking for --enable-prologio" >&5
5335 no_cache=0
5336 # Check whether --enable-prologio or --disable-prologio was given.
5337if test "${enable_prologio+set}" = set; then
5338 enableval="$enable_prologio"
5339
5340 if test "$enableval" = yes; then
5341 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5342 else
5343 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5344 fi
5345
5346else
5347
5348 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5349 if test "x$LINE" != x ; then
5350 eval "DEFAULT_$LINE"
5351 else
5352 no_cache=1
5353 fi
5354
5355 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5356
5357fi
5358
5359
5360 eval "$ac_cv_use_prologio"
5361 if test "$no_cache" != 1; then
5362 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5363 fi
5364
5365 if test "$wxUSE_PROLOGIO" = yes; then
5366 echo "$ac_t""yes" 1>&6
5367 else
5368 echo "$ac_t""no" 1>&6
5369 fi
5370
5371
5372 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
5373echo "configure:5374: checking for --enable-resources" >&5
5374 no_cache=0
5375 # Check whether --enable-resources or --disable-resources was given.
5376if test "${enable_resources+set}" = set; then
5377 enableval="$enable_resources"
5378
5379 if test "$enableval" = yes; then
5380 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5381 else
5382 ac_cv_use_resources='wxUSE_RESOURCES=no'
5383 fi
5384
5385else
5386
5387 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5388 if test "x$LINE" != x ; then
5389 eval "DEFAULT_$LINE"
5390 else
5391 no_cache=1
5392 fi
5393
5394 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5395
5396fi
5397
5398
5399 eval "$ac_cv_use_resources"
5400 if test "$no_cache" != 1; then
5401 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5402 fi
5403
5404 if test "$wxUSE_RESOURCES" = yes; then
5405 echo "$ac_t""yes" 1>&6
5406 else
5407 echo "$ac_t""no" 1>&6
5408 fi
5409
5410
5411
5412 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
5413echo "configure:5414: checking for --enable-xresources" >&5
5414 no_cache=0
5415 # Check whether --enable-xresources or --disable-xresources was given.
5416if test "${enable_xresources+set}" = set; then
5417 enableval="$enable_xresources"
5418
5419 if test "$enableval" = yes; then
5420 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5421 else
5422 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5423 fi
5424
5425else
5426
5427 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5428 if test "x$LINE" != x ; then
5429 eval "DEFAULT_$LINE"
5430 else
5431 no_cache=1
5432 fi
5433
5434 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5435
5436fi
5437
5438
5439 eval "$ac_cv_use_xresources"
5440 if test "$no_cache" != 1; then
5441 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5442 fi
5443
5444 if test "$wxUSE_X_RESOURCES" = yes; then
5445 echo "$ac_t""yes" 1>&6
5446 else
5447 echo "$ac_t""no" 1>&6
5448 fi
5449
5450
5451
5452
5453 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
5454echo "configure:5455: checking for --enable-clipboard" >&5
5455 no_cache=0
5456 # Check whether --enable-clipboard or --disable-clipboard was given.
5457if test "${enable_clipboard+set}" = set; then
5458 enableval="$enable_clipboard"
5459
5460 if test "$enableval" = yes; then
5461 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5462 else
5463 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5464 fi
5465
5466else
5467
5468 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5469 if test "x$LINE" != x ; then
5470 eval "DEFAULT_$LINE"
5471 else
5472 no_cache=1
5473 fi
5474
5475 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5476
5477fi
5478
5479
5480 eval "$ac_cv_use_clipboard"
5481 if test "$no_cache" != 1; then
5482 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5483 fi
5484
5485 if test "$wxUSE_CLIPBOARD" = yes; then
5486 echo "$ac_t""yes" 1>&6
5487 else
5488 echo "$ac_t""no" 1>&6
5489 fi
5490
5491
5492 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
5493echo "configure:5494: checking for --enable-dnd" >&5
5494 no_cache=0
5495 # Check whether --enable-dnd or --disable-dnd was given.
5496if test "${enable_dnd+set}" = set; then
5497 enableval="$enable_dnd"
5498
5499 if test "$enableval" = yes; then
5500 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5501 else
5502 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5503 fi
5504
5505else
5506
5507 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5508 if test "x$LINE" != x ; then
5509 eval "DEFAULT_$LINE"
5510 else
5511 no_cache=1
5512 fi
5513
5514 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5515
5516fi
5517
5518
5519 eval "$ac_cv_use_dnd"
5520 if test "$no_cache" != 1; then
5521 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5522 fi
5523
5524 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5525 echo "$ac_t""yes" 1>&6
5526 else
5527 echo "$ac_t""no" 1>&6
5528 fi
5529
5530
5531 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
5532echo "configure:5533: checking for --enable-metafile" >&5
5533 no_cache=0
5534 # Check whether --enable-metafile or --disable-metafile was given.
5535if test "${enable_metafile+set}" = set; then
5536 enableval="$enable_metafile"
5537
5538 if test "$enableval" = yes; then
5539 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5540 else
5541 ac_cv_use_metafile='wxUSE_METAFILE=no'
5542 fi
5543
5544else
5545
5546 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5547 if test "x$LINE" != x ; then
5548 eval "DEFAULT_$LINE"
5549 else
5550 no_cache=1
5551 fi
5552
5553 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5554
5555fi
5556
5557
5558 eval "$ac_cv_use_metafile"
5559 if test "$no_cache" != 1; then
5560 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5561 fi
5562
5563 if test "$wxUSE_METAFILE" = yes; then
5564 echo "$ac_t""yes" 1>&6
5565 else
5566 echo "$ac_t""no" 1>&6
5567 fi
5568
5569
5570
5571 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5572echo "configure:5573: checking for --enable-treelayout" >&5
5573 no_cache=0
5574 # Check whether --enable-treelayout or --disable-treelayout was given.
5575if test "${enable_treelayout+set}" = set; then
5576 enableval="$enable_treelayout"
5577
5578 if test "$enableval" = yes; then
5579 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5580 else
5581 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5582 fi
5583
5584else
5585
5586 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5587 if test "x$LINE" != x ; then
5588 eval "DEFAULT_$LINE"
5589 else
5590 no_cache=1
5591 fi
5592
5593 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5594
5595fi
5596
5597
5598 eval "$ac_cv_use_treelayout"
5599 if test "$no_cache" != 1; then
5600 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5601 fi
5602
5603 if test "$wxUSE_TREELAYOUT" = yes; then
5604 echo "$ac_t""yes" 1>&6
5605 else
5606 echo "$ac_t""no" 1>&6
5607 fi
5608
5609
5610
5611
5612 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5613echo "configure:5614: checking for --enable-controls" >&5
5614 no_cache=0
5615 # Check whether --enable-controls or --disable-controls was given.
5616if test "${enable_controls+set}" = set; then
5617 enableval="$enable_controls"
5618
5619 if test "$enableval" = yes; then
5620 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5621 else
5622 ac_cv_use_controls='wxUSE_CONTROLS=no'
5623 fi
5624
5625else
5626
5627 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5628 if test "x$LINE" != x ; then
5629 eval "DEFAULT_$LINE"
5630 else
5631 no_cache=1
5632 fi
5633
5634 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5635
5636fi
5637
5638
5639 eval "$ac_cv_use_controls"
5640 if test "$no_cache" != 1; then
5641 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5642 fi
5643
5644 if test "$wxUSE_CONTROLS" = yes; then
5645 echo "$ac_t""yes" 1>&6
5646 else
5647 echo "$ac_t""no" 1>&6
5648 fi
5649
5650
5651if test "$wxUSE_CONTROLS" = "yes"; then
5652 DEFAULT_wxUSE_ACCEL=yes
5653 DEFAULT_wxUSE_BMPBUTTON=yes
5654 DEFAULT_wxUSE_BUTTON=yes
5655 DEFAULT_wxUSE_CALCTRL=no
5656 DEFAULT_wxUSE_CARET=yes
5657 DEFAULT_wxUSE_COMBOBOX=yes
5658 DEFAULT_wxUSE_CHECKBOX=yes
5659 DEFAULT_wxUSE_CHECKLISTBOX=yes
5660 DEFAULT_wxUSE_CHOICE=yes
5661 DEFAULT_wxUSE_GAUGE=yes
5662 DEFAULT_wxUSE_GRID=yes
5663 DEFAULT_wxUSE_NEW_GRID=yes
5664 DEFAULT_wxUSE_IMAGLIST=yes
5665 DEFAULT_wxUSE_LISTBOX=yes
5666 DEFAULT_wxUSE_LISTCTRL=yes
5667 DEFAULT_wxUSE_NOTEBOOK=yes
5668 DEFAULT_wxUSE_PROPSHEET=yes
5669 DEFAULT_wxUSE_RADIOBOX=yes
5670 DEFAULT_wxUSE_RADIOBTN=yes
5671 DEFAULT_wxUSE_SASH=yes
5672 DEFAULT_wxUSE_SCROLLBAR=yes
5673 DEFAULT_wxUSE_SLIDER=yes
5674 DEFAULT_wxUSE_SPINBTN=yes
5675 DEFAULT_wxUSE_SPINCTRL=yes
5676 DEFAULT_wxUSE_SPLITTER=yes
5677 DEFAULT_wxUSE_STATBMP=yes
5678 DEFAULT_wxUSE_STATBOX=yes
5679 DEFAULT_wxUSE_STATLINE=yes
5680 DEFAULT_wxUSE_STATUSBAR=yes
5681 DEFAULT_wxUSE_TAB_DIALOG=yes
5682 DEFAULT_wxUSE_TOGGLEBTN=yes
5683 DEFAULT_wxUSE_TOOLBAR=yes
5684 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5685 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5686 DEFAULT_wxUSE_TOOLTIPS=yes
5687 DEFAULT_wxUSE_TREECTRL=yes
5688 DEFAULT_wxUSE_POPUPWIN=yes
5689 DEFAULT_wxUSE_TIPWINDOW=yes
5690elif test "$wxUSE_CONTROLS" = "no"; then
5691 DEFAULT_wxUSE_ACCEL=no
5692 DEFAULT_wxUSE_BMPBUTTON=no
5693 DEFAULT_wxUSE_BUTTON=no
5694 DEFAULT_wxUSE_CALCTRL=no
5695 DEFAULT_wxUSE_CARET=no
5696 DEFAULT_wxUSE_COMBOBOX=no
5697 DEFAULT_wxUSE_CHECKBOX=no
5698 DEFAULT_wxUSE_CHECKLISTBOX=no
5699 DEFAULT_wxUSE_CHOICE=no
5700 DEFAULT_wxUSE_GAUGE=no
5701 DEFAULT_wxUSE_GRID=no
5702 DEFAULT_wxUSE_NEW_GRID=no
5703 DEFAULT_wxUSE_IMAGLIST=no
5704 DEFAULT_wxUSE_LISTBOX=no
5705 DEFAULT_wxUSE_LISTCTRL=no
5706 DEFAULT_wxUSE_NOTEBOOK=no
5707 DEFAULT_wxUSE_PROPSHEET=no
5708 DEFAULT_wxUSE_RADIOBOX=no
5709 DEFAULT_wxUSE_RADIOBTN=no
5710 DEFAULT_wxUSE_SASH=no
5711 DEFAULT_wxUSE_SCROLLBAR=no
5712 DEFAULT_wxUSE_SLIDER=no
5713 DEFAULT_wxUSE_SPINBTN=no
5714 DEFAULT_wxUSE_SPINCTRL=no
5715 DEFAULT_wxUSE_SPLITTER=no
5716 DEFAULT_wxUSE_STATBMP=no
5717 DEFAULT_wxUSE_STATBOX=no
5718 DEFAULT_wxUSE_STATLINE=no
5719 DEFAULT_wxUSE_STATUSBAR=no
5720 DEFAULT_wxUSE_TAB_DIALOG=no
5721 DEFAULT_wxUSE_TOGGLEBTN=no
5722 DEFAULT_wxUSE_TOOLBAR=no
5723 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5724 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5725 DEFAULT_wxUSE_TOOLTIPS=no
5726 DEFAULT_wxUSE_TREECTRL=no
5727 DEFAULT_wxUSE_POPUPWIN=no
5728 DEFAULT_wxUSE_TIPWINDOW=no
5729fi
5730
5731
5732 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5733echo "configure:5734: checking for --enable-accel" >&5
5734 no_cache=0
5735 # Check whether --enable-accel or --disable-accel was given.
5736if test "${enable_accel+set}" = set; then
5737 enableval="$enable_accel"
5738
5739 if test "$enableval" = yes; then
5740 ac_cv_use_accel='wxUSE_ACCEL=yes'
5741 else
5742 ac_cv_use_accel='wxUSE_ACCEL=no'
5743 fi
5744
5745else
5746
5747 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5748 if test "x$LINE" != x ; then
5749 eval "DEFAULT_$LINE"
5750 else
5751 no_cache=1
5752 fi
5753
5754 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5755
5756fi
5757
5758
5759 eval "$ac_cv_use_accel"
5760 if test "$no_cache" != 1; then
5761 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5762 fi
5763
5764 if test "$wxUSE_ACCEL" = yes; then
5765 echo "$ac_t""yes" 1>&6
5766 else
5767 echo "$ac_t""no" 1>&6
5768 fi
5769
5770
5771 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5772echo "configure:5773: checking for --enable-button" >&5
5773 no_cache=0
5774 # Check whether --enable-button or --disable-button was given.
5775if test "${enable_button+set}" = set; then
5776 enableval="$enable_button"
5777
5778 if test "$enableval" = yes; then
5779 ac_cv_use_button='wxUSE_BUTTON=yes'
5780 else
5781 ac_cv_use_button='wxUSE_BUTTON=no'
5782 fi
5783
5784else
5785
5786 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5787 if test "x$LINE" != x ; then
5788 eval "DEFAULT_$LINE"
5789 else
5790 no_cache=1
5791 fi
5792
5793 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5794
5795fi
5796
5797
5798 eval "$ac_cv_use_button"
5799 if test "$no_cache" != 1; then
5800 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5801 fi
5802
5803 if test "$wxUSE_BUTTON" = yes; then
5804 echo "$ac_t""yes" 1>&6
5805 else
5806 echo "$ac_t""no" 1>&6
5807 fi
5808
5809
5810 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5811echo "configure:5812: checking for --enable-bmpbutton" >&5
5812 no_cache=0
5813 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5814if test "${enable_bmpbutton+set}" = set; then
5815 enableval="$enable_bmpbutton"
5816
5817 if test "$enableval" = yes; then
5818 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5819 else
5820 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5821 fi
5822
5823else
5824
5825 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5826 if test "x$LINE" != x ; then
5827 eval "DEFAULT_$LINE"
5828 else
5829 no_cache=1
5830 fi
5831
5832 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5833
5834fi
5835
5836
5837 eval "$ac_cv_use_bmpbutton"
5838 if test "$no_cache" != 1; then
5839 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5840 fi
5841
5842 if test "$wxUSE_BMPBUTTON" = yes; then
5843 echo "$ac_t""yes" 1>&6
5844 else
5845 echo "$ac_t""no" 1>&6
5846 fi
5847
5848
5849 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5850echo "configure:5851: checking for --enable-calendar" >&5
5851 no_cache=0
5852 # Check whether --enable-calendar or --disable-calendar was given.
5853if test "${enable_calendar+set}" = set; then
5854 enableval="$enable_calendar"
5855
5856 if test "$enableval" = yes; then
5857 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5858 else
5859 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5860 fi
5861
5862else
5863
5864 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5865 if test "x$LINE" != x ; then
5866 eval "DEFAULT_$LINE"
5867 else
5868 no_cache=1
5869 fi
5870
5871 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5872
5873fi
5874
5875
5876 eval "$ac_cv_use_calendar"
5877 if test "$no_cache" != 1; then
5878 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5879 fi
5880
5881 if test "$wxUSE_CALCTRL" = yes; then
5882 echo "$ac_t""yes" 1>&6
5883 else
5884 echo "$ac_t""no" 1>&6
5885 fi
5886
5887
5888 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5889echo "configure:5890: checking for --enable-caret" >&5
5890 no_cache=0
5891 # Check whether --enable-caret or --disable-caret was given.
5892if test "${enable_caret+set}" = set; then
5893 enableval="$enable_caret"
5894
5895 if test "$enableval" = yes; then
5896 ac_cv_use_caret='wxUSE_CARET=yes'
5897 else
5898 ac_cv_use_caret='wxUSE_CARET=no'
5899 fi
5900
5901else
5902
5903 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5904 if test "x$LINE" != x ; then
5905 eval "DEFAULT_$LINE"
5906 else
5907 no_cache=1
5908 fi
5909
5910 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5911
5912fi
5913
5914
5915 eval "$ac_cv_use_caret"
5916 if test "$no_cache" != 1; then
5917 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5918 fi
5919
5920 if test "$wxUSE_CARET" = yes; then
5921 echo "$ac_t""yes" 1>&6
5922 else
5923 echo "$ac_t""no" 1>&6
5924 fi
5925
5926
5927 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5928echo "configure:5929: checking for --enable-checkbox" >&5
5929 no_cache=0
5930 # Check whether --enable-checkbox or --disable-checkbox was given.
5931if test "${enable_checkbox+set}" = set; then
5932 enableval="$enable_checkbox"
5933
5934 if test "$enableval" = yes; then
5935 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5936 else
5937 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5938 fi
5939
5940else
5941
5942 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5943 if test "x$LINE" != x ; then
5944 eval "DEFAULT_$LINE"
5945 else
5946 no_cache=1
5947 fi
5948
5949 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5950
5951fi
5952
5953
5954 eval "$ac_cv_use_checkbox"
5955 if test "$no_cache" != 1; then
5956 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5957 fi
5958
5959 if test "$wxUSE_CHECKBOX" = yes; then
5960 echo "$ac_t""yes" 1>&6
5961 else
5962 echo "$ac_t""no" 1>&6
5963 fi
5964
5965
5966 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5967echo "configure:5968: checking for --enable-checklst" >&5
5968 no_cache=0
5969 # Check whether --enable-checklst or --disable-checklst was given.
5970if test "${enable_checklst+set}" = set; then
5971 enableval="$enable_checklst"
5972
5973 if test "$enableval" = yes; then
5974 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5975 else
5976 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5977 fi
5978
5979else
5980
5981 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5982 if test "x$LINE" != x ; then
5983 eval "DEFAULT_$LINE"
5984 else
5985 no_cache=1
5986 fi
5987
5988 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5989
5990fi
5991
5992
5993 eval "$ac_cv_use_checklst"
5994 if test "$no_cache" != 1; then
5995 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5996 fi
5997
5998 if test "$wxUSE_CHECKLST" = yes; then
5999 echo "$ac_t""yes" 1>&6
6000 else
6001 echo "$ac_t""no" 1>&6
6002 fi
6003
6004
6005 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
6006echo "configure:6007: checking for --enable-choice" >&5
6007 no_cache=0
6008 # Check whether --enable-choice or --disable-choice was given.
6009if test "${enable_choice+set}" = set; then
6010 enableval="$enable_choice"
6011
6012 if test "$enableval" = yes; then
6013 ac_cv_use_choice='wxUSE_CHOICE=yes'
6014 else
6015 ac_cv_use_choice='wxUSE_CHOICE=no'
6016 fi
6017
6018else
6019
6020 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6021 if test "x$LINE" != x ; then
6022 eval "DEFAULT_$LINE"
6023 else
6024 no_cache=1
6025 fi
6026
6027 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6028
6029fi
6030
6031
6032 eval "$ac_cv_use_choice"
6033 if test "$no_cache" != 1; then
6034 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6035 fi
6036
6037 if test "$wxUSE_CHOICE" = yes; then
6038 echo "$ac_t""yes" 1>&6
6039 else
6040 echo "$ac_t""no" 1>&6
6041 fi
6042
6043
6044 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
6045echo "configure:6046: checking for --enable-combobox" >&5
6046 no_cache=0
6047 # Check whether --enable-combobox or --disable-combobox was given.
6048if test "${enable_combobox+set}" = set; then
6049 enableval="$enable_combobox"
6050
6051 if test "$enableval" = yes; then
6052 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6053 else
6054 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6055 fi
6056
6057else
6058
6059 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6060 if test "x$LINE" != x ; then
6061 eval "DEFAULT_$LINE"
6062 else
6063 no_cache=1
6064 fi
6065
6066 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6067
6068fi
6069
6070
6071 eval "$ac_cv_use_combobox"
6072 if test "$no_cache" != 1; then
6073 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6074 fi
6075
6076 if test "$wxUSE_COMBOBOX" = yes; then
6077 echo "$ac_t""yes" 1>&6
6078 else
6079 echo "$ac_t""no" 1>&6
6080 fi
6081
6082
6083 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
6084echo "configure:6085: checking for --enable-gauge" >&5
6085 no_cache=0
6086 # Check whether --enable-gauge or --disable-gauge was given.
6087if test "${enable_gauge+set}" = set; then
6088 enableval="$enable_gauge"
6089
6090 if test "$enableval" = yes; then
6091 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6092 else
6093 ac_cv_use_gauge='wxUSE_GAUGE=no'
6094 fi
6095
6096else
6097
6098 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6099 if test "x$LINE" != x ; then
6100 eval "DEFAULT_$LINE"
6101 else
6102 no_cache=1
6103 fi
6104
6105 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6106
6107fi
6108
6109
6110 eval "$ac_cv_use_gauge"
6111 if test "$no_cache" != 1; then
6112 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6113 fi
6114
6115 if test "$wxUSE_GAUGE" = yes; then
6116 echo "$ac_t""yes" 1>&6
6117 else
6118 echo "$ac_t""no" 1>&6
6119 fi
6120
6121
6122 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
6123echo "configure:6124: checking for --enable-grid" >&5
6124 no_cache=0
6125 # Check whether --enable-grid or --disable-grid was given.
6126if test "${enable_grid+set}" = set; then
6127 enableval="$enable_grid"
6128
6129 if test "$enableval" = yes; then
6130 ac_cv_use_grid='wxUSE_GRID=yes'
6131 else
6132 ac_cv_use_grid='wxUSE_GRID=no'
6133 fi
6134
6135else
6136
6137 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6138 if test "x$LINE" != x ; then
6139 eval "DEFAULT_$LINE"
6140 else
6141 no_cache=1
6142 fi
6143
6144 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6145
6146fi
6147
6148
6149 eval "$ac_cv_use_grid"
6150 if test "$no_cache" != 1; then
6151 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6152 fi
6153
6154 if test "$wxUSE_GRID" = yes; then
6155 echo "$ac_t""yes" 1>&6
6156 else
6157 echo "$ac_t""no" 1>&6
6158 fi
6159
6160
6161 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
6162echo "configure:6163: checking for --enable-newgrid" >&5
6163 no_cache=0
6164 # Check whether --enable-newgrid or --disable-newgrid was given.
6165if test "${enable_newgrid+set}" = set; then
6166 enableval="$enable_newgrid"
6167
6168 if test "$enableval" = yes; then
6169 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6170 else
6171 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6172 fi
6173
6174else
6175
6176 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6177 if test "x$LINE" != x ; then
6178 eval "DEFAULT_$LINE"
6179 else
6180 no_cache=1
6181 fi
6182
6183 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6184
6185fi
6186
6187
6188 eval "$ac_cv_use_newgrid"
6189 if test "$no_cache" != 1; then
6190 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6191 fi
6192
6193 if test "$wxUSE_NEW_GRID" = yes; then
6194 echo "$ac_t""yes" 1>&6
6195 else
6196 echo "$ac_t""no" 1>&6
6197 fi
6198
6199
6200 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
6201echo "configure:6202: checking for --enable-imaglist" >&5
6202 no_cache=0
6203 # Check whether --enable-imaglist or --disable-imaglist was given.
6204if test "${enable_imaglist+set}" = set; then
6205 enableval="$enable_imaglist"
6206
6207 if test "$enableval" = yes; then
6208 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6209 else
6210 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6211 fi
6212
6213else
6214
6215 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6216 if test "x$LINE" != x ; then
6217 eval "DEFAULT_$LINE"
6218 else
6219 no_cache=1
6220 fi
6221
6222 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6223
6224fi
6225
6226
6227 eval "$ac_cv_use_imaglist"
6228 if test "$no_cache" != 1; then
6229 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6230 fi
6231
6232 if test "$wxUSE_IMAGLIST" = yes; then
6233 echo "$ac_t""yes" 1>&6
6234 else
6235 echo "$ac_t""no" 1>&6
6236 fi
6237
6238
6239 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
6240echo "configure:6241: checking for --enable-listbox" >&5
6241 no_cache=0
6242 # Check whether --enable-listbox or --disable-listbox was given.
6243if test "${enable_listbox+set}" = set; then
6244 enableval="$enable_listbox"
6245
6246 if test "$enableval" = yes; then
6247 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6248 else
6249 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6250 fi
6251
6252else
6253
6254 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6255 if test "x$LINE" != x ; then
6256 eval "DEFAULT_$LINE"
6257 else
6258 no_cache=1
6259 fi
6260
6261 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6262
6263fi
6264
6265
6266 eval "$ac_cv_use_listbox"
6267 if test "$no_cache" != 1; then
6268 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6269 fi
6270
6271 if test "$wxUSE_LISTBOX" = yes; then
6272 echo "$ac_t""yes" 1>&6
6273 else
6274 echo "$ac_t""no" 1>&6
6275 fi
6276
6277
6278 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
6279echo "configure:6280: checking for --enable-listctrl" >&5
6280 no_cache=0
6281 # Check whether --enable-listctrl or --disable-listctrl was given.
6282if test "${enable_listctrl+set}" = set; then
6283 enableval="$enable_listctrl"
6284
6285 if test "$enableval" = yes; then
6286 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6287 else
6288 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6289 fi
6290
6291else
6292
6293 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6294 if test "x$LINE" != x ; then
6295 eval "DEFAULT_$LINE"
6296 else
6297 no_cache=1
6298 fi
6299
6300 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6301
6302fi
6303
6304
6305 eval "$ac_cv_use_listctrl"
6306 if test "$no_cache" != 1; then
6307 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6308 fi
6309
6310 if test "$wxUSE_LISTCTRL" = yes; then
6311 echo "$ac_t""yes" 1>&6
6312 else
6313 echo "$ac_t""no" 1>&6
6314 fi
6315
6316
6317 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
6318echo "configure:6319: checking for --enable-notebook" >&5
6319 no_cache=0
6320 # Check whether --enable-notebook or --disable-notebook was given.
6321if test "${enable_notebook+set}" = set; then
6322 enableval="$enable_notebook"
6323
6324 if test "$enableval" = yes; then
6325 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6326 else
6327 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6328 fi
6329
6330else
6331
6332 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6333 if test "x$LINE" != x ; then
6334 eval "DEFAULT_$LINE"
6335 else
6336 no_cache=1
6337 fi
6338
6339 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6340
6341fi
6342
6343
6344 eval "$ac_cv_use_notebook"
6345 if test "$no_cache" != 1; then
6346 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6347 fi
6348
6349 if test "$wxUSE_NOTEBOOK" = yes; then
6350 echo "$ac_t""yes" 1>&6
6351 else
6352 echo "$ac_t""no" 1>&6
6353 fi
6354
6355
6356 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
6357echo "configure:6358: checking for --enable-propsheet" >&5
6358 no_cache=0
6359 # Check whether --enable-propsheet or --disable-propsheet was given.
6360if test "${enable_propsheet+set}" = set; then
6361 enableval="$enable_propsheet"
6362
6363 if test "$enableval" = yes; then
6364 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6365 else
6366 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6367 fi
6368
6369else
6370
6371 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6372 if test "x$LINE" != x ; then
6373 eval "DEFAULT_$LINE"
6374 else
6375 no_cache=1
6376 fi
6377
6378 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6379
6380fi
6381
6382
6383 eval "$ac_cv_use_propsheet"
6384 if test "$no_cache" != 1; then
6385 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6386 fi
6387
6388 if test "$wxUSE_PROPSHEET" = yes; then
6389 echo "$ac_t""yes" 1>&6
6390 else
6391 echo "$ac_t""no" 1>&6
6392 fi
6393
6394
6395 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
6396echo "configure:6397: checking for --enable-radiobox" >&5
6397 no_cache=0
6398 # Check whether --enable-radiobox or --disable-radiobox was given.
6399if test "${enable_radiobox+set}" = set; then
6400 enableval="$enable_radiobox"
6401
6402 if test "$enableval" = yes; then
6403 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6404 else
6405 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6406 fi
6407
6408else
6409
6410 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6411 if test "x$LINE" != x ; then
6412 eval "DEFAULT_$LINE"
6413 else
6414 no_cache=1
6415 fi
6416
6417 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6418
6419fi
6420
6421
6422 eval "$ac_cv_use_radiobox"
6423 if test "$no_cache" != 1; then
6424 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6425 fi
6426
6427 if test "$wxUSE_RADIOBOX" = yes; then
6428 echo "$ac_t""yes" 1>&6
6429 else
6430 echo "$ac_t""no" 1>&6
6431 fi
6432
6433
6434 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
6435echo "configure:6436: checking for --enable-radiobtn" >&5
6436 no_cache=0
6437 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6438if test "${enable_radiobtn+set}" = set; then
6439 enableval="$enable_radiobtn"
6440
6441 if test "$enableval" = yes; then
6442 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6443 else
6444 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6445 fi
6446
6447else
6448
6449 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6450 if test "x$LINE" != x ; then
6451 eval "DEFAULT_$LINE"
6452 else
6453 no_cache=1
6454 fi
6455
6456 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6457
6458fi
6459
6460
6461 eval "$ac_cv_use_radiobtn"
6462 if test "$no_cache" != 1; then
6463 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6464 fi
6465
6466 if test "$wxUSE_RADIOBTN" = yes; then
6467 echo "$ac_t""yes" 1>&6
6468 else
6469 echo "$ac_t""no" 1>&6
6470 fi
6471
6472
6473 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
6474echo "configure:6475: checking for --enable-sash" >&5
6475 no_cache=0
6476 # Check whether --enable-sash or --disable-sash was given.
6477if test "${enable_sash+set}" = set; then
6478 enableval="$enable_sash"
6479
6480 if test "$enableval" = yes; then
6481 ac_cv_use_sash='wxUSE_SASH=yes'
6482 else
6483 ac_cv_use_sash='wxUSE_SASH=no'
6484 fi
6485
6486else
6487
6488 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6489 if test "x$LINE" != x ; then
6490 eval "DEFAULT_$LINE"
6491 else
6492 no_cache=1
6493 fi
6494
6495 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6496
6497fi
6498
6499
6500 eval "$ac_cv_use_sash"
6501 if test "$no_cache" != 1; then
6502 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6503 fi
6504
6505 if test "$wxUSE_SASH" = yes; then
6506 echo "$ac_t""yes" 1>&6
6507 else
6508 echo "$ac_t""no" 1>&6
6509 fi
6510
6511
6512 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
6513echo "configure:6514: checking for --enable-scrollbar" >&5
6514 no_cache=0
6515 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6516if test "${enable_scrollbar+set}" = set; then
6517 enableval="$enable_scrollbar"
6518
6519 if test "$enableval" = yes; then
6520 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6521 else
6522 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6523 fi
6524
6525else
6526
6527 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6528 if test "x$LINE" != x ; then
6529 eval "DEFAULT_$LINE"
6530 else
6531 no_cache=1
6532 fi
6533
6534 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6535
6536fi
6537
6538
6539 eval "$ac_cv_use_scrollbar"
6540 if test "$no_cache" != 1; then
6541 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6542 fi
6543
6544 if test "$wxUSE_SCROLLBAR" = yes; then
6545 echo "$ac_t""yes" 1>&6
6546 else
6547 echo "$ac_t""no" 1>&6
6548 fi
6549
6550
6551 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
6552echo "configure:6553: checking for --enable-slider" >&5
6553 no_cache=0
6554 # Check whether --enable-slider or --disable-slider was given.
6555if test "${enable_slider+set}" = set; then
6556 enableval="$enable_slider"
6557
6558 if test "$enableval" = yes; then
6559 ac_cv_use_slider='wxUSE_SLIDER=yes'
6560 else
6561 ac_cv_use_slider='wxUSE_SLIDER=no'
6562 fi
6563
6564else
6565
6566 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6567 if test "x$LINE" != x ; then
6568 eval "DEFAULT_$LINE"
6569 else
6570 no_cache=1
6571 fi
6572
6573 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6574
6575fi
6576
6577
6578 eval "$ac_cv_use_slider"
6579 if test "$no_cache" != 1; then
6580 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6581 fi
6582
6583 if test "$wxUSE_SLIDER" = yes; then
6584 echo "$ac_t""yes" 1>&6
6585 else
6586 echo "$ac_t""no" 1>&6
6587 fi
6588
6589
6590 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6591echo "configure:6592: checking for --enable-spinbtn" >&5
6592 no_cache=0
6593 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6594if test "${enable_spinbtn+set}" = set; then
6595 enableval="$enable_spinbtn"
6596
6597 if test "$enableval" = yes; then
6598 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6599 else
6600 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6601 fi
6602
6603else
6604
6605 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6606 if test "x$LINE" != x ; then
6607 eval "DEFAULT_$LINE"
6608 else
6609 no_cache=1
6610 fi
6611
6612 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6613
6614fi
6615
6616
6617 eval "$ac_cv_use_spinbtn"
6618 if test "$no_cache" != 1; then
6619 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6620 fi
6621
6622 if test "$wxUSE_SPINBTN" = yes; then
6623 echo "$ac_t""yes" 1>&6
6624 else
6625 echo "$ac_t""no" 1>&6
6626 fi
6627
6628
6629 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6630echo "configure:6631: checking for --enable-spinctrl" >&5
6631 no_cache=0
6632 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6633if test "${enable_spinctrl+set}" = set; then
6634 enableval="$enable_spinctrl"
6635
6636 if test "$enableval" = yes; then
6637 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6638 else
6639 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6640 fi
6641
6642else
6643
6644 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6645 if test "x$LINE" != x ; then
6646 eval "DEFAULT_$LINE"
6647 else
6648 no_cache=1
6649 fi
6650
6651 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6652
6653fi
6654
6655
6656 eval "$ac_cv_use_spinctrl"
6657 if test "$no_cache" != 1; then
6658 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6659 fi
6660
6661 if test "$wxUSE_SPINCTRL" = yes; then
6662 echo "$ac_t""yes" 1>&6
6663 else
6664 echo "$ac_t""no" 1>&6
6665 fi
6666
6667
6668 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6669echo "configure:6670: checking for --enable-splitter" >&5
6670 no_cache=0
6671 # Check whether --enable-splitter or --disable-splitter was given.
6672if test "${enable_splitter+set}" = set; then
6673 enableval="$enable_splitter"
6674
6675 if test "$enableval" = yes; then
6676 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6677 else
6678 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6679 fi
6680
6681else
6682
6683 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6684 if test "x$LINE" != x ; then
6685 eval "DEFAULT_$LINE"
6686 else
6687 no_cache=1
6688 fi
6689
6690 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6691
6692fi
6693
6694
6695 eval "$ac_cv_use_splitter"
6696 if test "$no_cache" != 1; then
6697 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6698 fi
6699
6700 if test "$wxUSE_SPLITTER" = yes; then
6701 echo "$ac_t""yes" 1>&6
6702 else
6703 echo "$ac_t""no" 1>&6
6704 fi
6705
6706
6707 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6708echo "configure:6709: checking for --enable-statbmp" >&5
6709 no_cache=0
6710 # Check whether --enable-statbmp or --disable-statbmp was given.
6711if test "${enable_statbmp+set}" = set; then
6712 enableval="$enable_statbmp"
6713
6714 if test "$enableval" = yes; then
6715 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6716 else
6717 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6718 fi
6719
6720else
6721
6722 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6723 if test "x$LINE" != x ; then
6724 eval "DEFAULT_$LINE"
6725 else
6726 no_cache=1
6727 fi
6728
6729 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6730
6731fi
6732
6733
6734 eval "$ac_cv_use_statbmp"
6735 if test "$no_cache" != 1; then
6736 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6737 fi
6738
6739 if test "$wxUSE_STATBMP" = yes; then
6740 echo "$ac_t""yes" 1>&6
6741 else
6742 echo "$ac_t""no" 1>&6
6743 fi
6744
6745
6746 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6747echo "configure:6748: checking for --enable-statbox" >&5
6748 no_cache=0
6749 # Check whether --enable-statbox or --disable-statbox was given.
6750if test "${enable_statbox+set}" = set; then
6751 enableval="$enable_statbox"
6752
6753 if test "$enableval" = yes; then
6754 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6755 else
6756 ac_cv_use_statbox='wxUSE_STATBOX=no'
6757 fi
6758
6759else
6760
6761 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6762 if test "x$LINE" != x ; then
6763 eval "DEFAULT_$LINE"
6764 else
6765 no_cache=1
6766 fi
6767
6768 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6769
6770fi
6771
6772
6773 eval "$ac_cv_use_statbox"
6774 if test "$no_cache" != 1; then
6775 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6776 fi
6777
6778 if test "$wxUSE_STATBOX" = yes; then
6779 echo "$ac_t""yes" 1>&6
6780 else
6781 echo "$ac_t""no" 1>&6
6782 fi
6783
6784
6785 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6786echo "configure:6787: checking for --enable-statline" >&5
6787 no_cache=0
6788 # Check whether --enable-statline or --disable-statline was given.
6789if test "${enable_statline+set}" = set; then
6790 enableval="$enable_statline"
6791
6792 if test "$enableval" = yes; then
6793 ac_cv_use_statline='wxUSE_STATLINE=yes'
6794 else
6795 ac_cv_use_statline='wxUSE_STATLINE=no'
6796 fi
6797
6798else
6799
6800 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6801 if test "x$LINE" != x ; then
6802 eval "DEFAULT_$LINE"
6803 else
6804 no_cache=1
6805 fi
6806
6807 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6808
6809fi
6810
6811
6812 eval "$ac_cv_use_statline"
6813 if test "$no_cache" != 1; then
6814 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6815 fi
6816
6817 if test "$wxUSE_STATLINE" = yes; then
6818 echo "$ac_t""yes" 1>&6
6819 else
6820 echo "$ac_t""no" 1>&6
6821 fi
6822
6823
6824 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6825echo "configure:6826: checking for --enable-stattext" >&5
6826 no_cache=0
6827 # Check whether --enable-stattext or --disable-stattext was given.
6828if test "${enable_stattext+set}" = set; then
6829 enableval="$enable_stattext"
6830
6831 if test "$enableval" = yes; then
6832 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6833 else
6834 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6835 fi
6836
6837else
6838
6839 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6840 if test "x$LINE" != x ; then
6841 eval "DEFAULT_$LINE"
6842 else
6843 no_cache=1
6844 fi
6845
6846 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6847
6848fi
6849
6850
6851 eval "$ac_cv_use_stattext"
6852 if test "$no_cache" != 1; then
6853 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6854 fi
6855
6856 if test "$wxUSE_STATTEXT" = yes; then
6857 echo "$ac_t""yes" 1>&6
6858 else
6859 echo "$ac_t""no" 1>&6
6860 fi
6861
6862
6863 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6864echo "configure:6865: checking for --enable-statusbar" >&5
6865 no_cache=0
6866 # Check whether --enable-statusbar or --disable-statusbar was given.
6867if test "${enable_statusbar+set}" = set; then
6868 enableval="$enable_statusbar"
6869
6870 if test "$enableval" = yes; then
6871 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6872 else
6873 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6874 fi
6875
6876else
6877
6878 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6879 if test "x$LINE" != x ; then
6880 eval "DEFAULT_$LINE"
6881 else
6882 no_cache=1
6883 fi
6884
6885 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6886
6887fi
6888
6889
6890 eval "$ac_cv_use_statusbar"
6891 if test "$no_cache" != 1; then
6892 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6893 fi
6894
6895 if test "$wxUSE_STATUSBAR" = yes; then
6896 echo "$ac_t""yes" 1>&6
6897 else
6898 echo "$ac_t""no" 1>&6
6899 fi
6900
6901
6902 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6903echo "configure:6904: checking for --enable-tabdialog" >&5
6904 no_cache=0
6905 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6906if test "${enable_tabdialog+set}" = set; then
6907 enableval="$enable_tabdialog"
6908
6909 if test "$enableval" = yes; then
6910 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6911 else
6912 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6913 fi
6914
6915else
6916
6917 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6918 if test "x$LINE" != x ; then
6919 eval "DEFAULT_$LINE"
6920 else
6921 no_cache=1
6922 fi
6923
6924 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6925
6926fi
6927
6928
6929 eval "$ac_cv_use_tabdialog"
6930 if test "$no_cache" != 1; then
6931 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6932 fi
6933
6934 if test "$wxUSE_TABDIALOG" = yes; then
6935 echo "$ac_t""yes" 1>&6
6936 else
6937 echo "$ac_t""no" 1>&6
6938 fi
6939
6940
6941 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6942echo "configure:6943: checking for --enable-textctrl" >&5
6943 no_cache=0
6944 # Check whether --enable-textctrl or --disable-textctrl was given.
6945if test "${enable_textctrl+set}" = set; then
6946 enableval="$enable_textctrl"
6947
6948 if test "$enableval" = yes; then
6949 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6950 else
6951 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6952 fi
6953
6954else
6955
6956 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6957 if test "x$LINE" != x ; then
6958 eval "DEFAULT_$LINE"
6959 else
6960 no_cache=1
6961 fi
6962
6963 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6964
6965fi
6966
6967
6968 eval "$ac_cv_use_textctrl"
6969 if test "$no_cache" != 1; then
6970 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6971 fi
6972
6973 if test "$wxUSE_TEXTCTRL" = yes; then
6974 echo "$ac_t""yes" 1>&6
6975 else
6976 echo "$ac_t""no" 1>&6
6977 fi
6978
6979
6980 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6981echo "configure:6982: checking for --enable-togglebtn" >&5
6982 no_cache=0
6983 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6984if test "${enable_togglebtn+set}" = set; then
6985 enableval="$enable_togglebtn"
6986
6987 if test "$enableval" = yes; then
6988 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6989 else
6990 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6991 fi
6992
6993else
6994
6995 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6996 if test "x$LINE" != x ; then
6997 eval "DEFAULT_$LINE"
6998 else
6999 no_cache=1
7000 fi
7001
7002 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7003
7004fi
7005
7006
7007 eval "$ac_cv_use_togglebtn"
7008 if test "$no_cache" != 1; then
7009 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7010 fi
7011
7012 if test "$wxUSE_TOGGLEBTN" = yes; then
7013 echo "$ac_t""yes" 1>&6
7014 else
7015 echo "$ac_t""no" 1>&6
7016 fi
7017
7018
7019 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
7020echo "configure:7021: checking for --enable-toolbar" >&5
7021 no_cache=0
7022 # Check whether --enable-toolbar or --disable-toolbar was given.
7023if test "${enable_toolbar+set}" = set; then
7024 enableval="$enable_toolbar"
7025
7026 if test "$enableval" = yes; then
7027 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7028 else
7029 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7030 fi
7031
7032else
7033
7034 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7035 if test "x$LINE" != x ; then
7036 eval "DEFAULT_$LINE"
7037 else
7038 no_cache=1
7039 fi
7040
7041 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7042
7043fi
7044
7045
7046 eval "$ac_cv_use_toolbar"
7047 if test "$no_cache" != 1; then
7048 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7049 fi
7050
7051 if test "$wxUSE_TOOLBAR" = yes; then
7052 echo "$ac_t""yes" 1>&6
7053 else
7054 echo "$ac_t""no" 1>&6
7055 fi
7056
7057
7058 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
7059echo "configure:7060: checking for --enable-tbarnative" >&5
7060 no_cache=0
7061 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7062if test "${enable_tbarnative+set}" = set; then
7063 enableval="$enable_tbarnative"
7064
7065 if test "$enableval" = yes; then
7066 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7067 else
7068 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7069 fi
7070
7071else
7072
7073 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7074 if test "x$LINE" != x ; then
7075 eval "DEFAULT_$LINE"
7076 else
7077 no_cache=1
7078 fi
7079
7080 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7081
7082fi
7083
7084
7085 eval "$ac_cv_use_tbarnative"
7086 if test "$no_cache" != 1; then
7087 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7088 fi
7089
7090 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7091 echo "$ac_t""yes" 1>&6
7092 else
7093 echo "$ac_t""no" 1>&6
7094 fi
7095
7096
7097 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
7098echo "configure:7099: checking for --enable-tbarsmpl" >&5
7099 no_cache=0
7100 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7101if test "${enable_tbarsmpl+set}" = set; then
7102 enableval="$enable_tbarsmpl"
7103
7104 if test "$enableval" = yes; then
7105 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7106 else
7107 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7108 fi
7109
7110else
7111
7112 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7113 if test "x$LINE" != x ; then
7114 eval "DEFAULT_$LINE"
7115 else
7116 no_cache=1
7117 fi
7118
7119 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7120
7121fi
7122
7123
7124 eval "$ac_cv_use_tbarsmpl"
7125 if test "$no_cache" != 1; then
7126 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7127 fi
7128
7129 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7130 echo "$ac_t""yes" 1>&6
7131 else
7132 echo "$ac_t""no" 1>&6
7133 fi
7134
7135
7136 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
7137echo "configure:7138: checking for --enable-treectrl" >&5
7138 no_cache=0
7139 # Check whether --enable-treectrl or --disable-treectrl was given.
7140if test "${enable_treectrl+set}" = set; then
7141 enableval="$enable_treectrl"
7142
7143 if test "$enableval" = yes; then
7144 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7145 else
7146 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7147 fi
7148
7149else
7150
7151 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7152 if test "x$LINE" != x ; then
7153 eval "DEFAULT_$LINE"
7154 else
7155 no_cache=1
7156 fi
7157
7158 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7159
7160fi
7161
7162
7163 eval "$ac_cv_use_treectrl"
7164 if test "$no_cache" != 1; then
7165 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7166 fi
7167
7168 if test "$wxUSE_TREECTRL" = yes; then
7169 echo "$ac_t""yes" 1>&6
7170 else
7171 echo "$ac_t""no" 1>&6
7172 fi
7173
7174
7175 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
7176echo "configure:7177: checking for --enable-tipwindow" >&5
7177 no_cache=0
7178 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7179if test "${enable_tipwindow+set}" = set; then
7180 enableval="$enable_tipwindow"
7181
7182 if test "$enableval" = yes; then
7183 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7184 else
7185 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7186 fi
7187
7188else
7189
7190 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7191 if test "x$LINE" != x ; then
7192 eval "DEFAULT_$LINE"
7193 else
7194 no_cache=1
7195 fi
7196
7197 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7198
7199fi
7200
7201
7202 eval "$ac_cv_use_tipwindow"
7203 if test "$no_cache" != 1; then
7204 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7205 fi
7206
7207 if test "$wxUSE_TIPWINDOW" = yes; then
7208 echo "$ac_t""yes" 1>&6
7209 else
7210 echo "$ac_t""no" 1>&6
7211 fi
7212
7213
7214 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
7215echo "configure:7216: checking for --enable-popupwin" >&5
7216 no_cache=0
7217 # Check whether --enable-popupwin or --disable-popupwin was given.
7218if test "${enable_popupwin+set}" = set; then
7219 enableval="$enable_popupwin"
7220
7221 if test "$enableval" = yes; then
7222 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7223 else
7224 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7225 fi
7226
7227else
7228
7229 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7230 if test "x$LINE" != x ; then
7231 eval "DEFAULT_$LINE"
7232 else
7233 no_cache=1
7234 fi
7235
7236 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7237
7238fi
7239
7240
7241 eval "$ac_cv_use_popupwin"
7242 if test "$no_cache" != 1; then
7243 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7244 fi
7245
7246 if test "$wxUSE_POPUPWIN" = yes; then
7247 echo "$ac_t""yes" 1>&6
7248 else
7249 echo "$ac_t""no" 1>&6
7250 fi
7251
7252
7253
7254
7255 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
7256echo "configure:7257: checking for --enable-commondlg" >&5
7257 no_cache=0
7258 # Check whether --enable-commondlg or --disable-commondlg was given.
7259if test "${enable_commondlg+set}" = set; then
7260 enableval="$enable_commondlg"
7261
7262 if test "$enableval" = yes; then
7263 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7264 else
7265 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7266 fi
7267
7268else
7269
7270 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7271 if test "x$LINE" != x ; then
7272 eval "DEFAULT_$LINE"
7273 else
7274 no_cache=1
7275 fi
7276
7277 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7278
7279fi
7280
7281
7282 eval "$ac_cv_use_commondlg"
7283 if test "$no_cache" != 1; then
7284 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7285 fi
7286
7287 if test "$wxUSE_COMMONDLGS" = yes; then
7288 echo "$ac_t""yes" 1>&6
7289 else
7290 echo "$ac_t""no" 1>&6
7291 fi
7292
7293
7294 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
7295echo "configure:7296: checking for --enable-choicedlg" >&5
7296 no_cache=0
7297 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7298if test "${enable_choicedlg+set}" = set; then
7299 enableval="$enable_choicedlg"
7300
7301 if test "$enableval" = yes; then
7302 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7303 else
7304 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7305 fi
7306
7307else
7308
7309 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7310 if test "x$LINE" != x ; then
7311 eval "DEFAULT_$LINE"
7312 else
7313 no_cache=1
7314 fi
7315
7316 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7317
7318fi
7319
7320
7321 eval "$ac_cv_use_choicedlg"
7322 if test "$no_cache" != 1; then
7323 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7324 fi
7325
7326 if test "$wxUSE_CHOICEDLG" = yes; then
7327 echo "$ac_t""yes" 1>&6
7328 else
7329 echo "$ac_t""no" 1>&6
7330 fi
7331
7332
7333 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
7334echo "configure:7335: checking for --enable-coldlg" >&5
7335 no_cache=0
7336 # Check whether --enable-coldlg or --disable-coldlg was given.
7337if test "${enable_coldlg+set}" = set; then
7338 enableval="$enable_coldlg"
7339
7340 if test "$enableval" = yes; then
7341 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7342 else
7343 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7344 fi
7345
7346else
7347
7348 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7349 if test "x$LINE" != x ; then
7350 eval "DEFAULT_$LINE"
7351 else
7352 no_cache=1
7353 fi
7354
7355 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7356
7357fi
7358
7359
7360 eval "$ac_cv_use_coldlg"
7361 if test "$no_cache" != 1; then
7362 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7363 fi
7364
7365 if test "$wxUSE_COLOURDLG" = yes; then
7366 echo "$ac_t""yes" 1>&6
7367 else
7368 echo "$ac_t""no" 1>&6
7369 fi
7370
7371
7372 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
7373echo "configure:7374: checking for --enable-filedlg" >&5
7374 no_cache=0
7375 # Check whether --enable-filedlg or --disable-filedlg was given.
7376if test "${enable_filedlg+set}" = set; then
7377 enableval="$enable_filedlg"
7378
7379 if test "$enableval" = yes; then
7380 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7381 else
7382 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7383 fi
7384
7385else
7386
7387 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7388 if test "x$LINE" != x ; then
7389 eval "DEFAULT_$LINE"
7390 else
7391 no_cache=1
7392 fi
7393
7394 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7395
7396fi
7397
7398
7399 eval "$ac_cv_use_filedlg"
7400 if test "$no_cache" != 1; then
7401 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7402 fi
7403
7404 if test "$wxUSE_FILEDLG" = yes; then
7405 echo "$ac_t""yes" 1>&6
7406 else
7407 echo "$ac_t""no" 1>&6
7408 fi
7409
7410
7411 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
7412echo "configure:7413: checking for --enable-finddlg" >&5
7413 no_cache=0
7414 # Check whether --enable-finddlg or --disable-finddlg was given.
7415if test "${enable_finddlg+set}" = set; then
7416 enableval="$enable_finddlg"
7417
7418 if test "$enableval" = yes; then
7419 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7420 else
7421 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7422 fi
7423
7424else
7425
7426 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7427 if test "x$LINE" != x ; then
7428 eval "DEFAULT_$LINE"
7429 else
7430 no_cache=1
7431 fi
7432
7433 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7434
7435fi
7436
7437
7438 eval "$ac_cv_use_finddlg"
7439 if test "$no_cache" != 1; then
7440 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7441 fi
7442
7443 if test "$wxUSE_FINDREPLDLG" = yes; then
7444 echo "$ac_t""yes" 1>&6
7445 else
7446 echo "$ac_t""no" 1>&6
7447 fi
7448
7449
7450 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
7451echo "configure:7452: checking for --enable-fontdlg" >&5
7452 no_cache=0
7453 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7454if test "${enable_fontdlg+set}" = set; then
7455 enableval="$enable_fontdlg"
7456
7457 if test "$enableval" = yes; then
7458 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7459 else
7460 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7461 fi
7462
7463else
7464
7465 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7466 if test "x$LINE" != x ; then
7467 eval "DEFAULT_$LINE"
7468 else
7469 no_cache=1
7470 fi
7471
7472 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7473
7474fi
7475
7476
7477 eval "$ac_cv_use_fontdlg"
7478 if test "$no_cache" != 1; then
7479 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7480 fi
7481
7482 if test "$wxUSE_FONTDLG" = yes; then
7483 echo "$ac_t""yes" 1>&6
7484 else
7485 echo "$ac_t""no" 1>&6
7486 fi
7487
7488
7489 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
7490echo "configure:7491: checking for --enable-dirdlg" >&5
7491 no_cache=0
7492 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7493if test "${enable_dirdlg+set}" = set; then
7494 enableval="$enable_dirdlg"
7495
7496 if test "$enableval" = yes; then
7497 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7498 else
7499 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7500 fi
7501
7502else
7503
7504 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7505 if test "x$LINE" != x ; then
7506 eval "DEFAULT_$LINE"
7507 else
7508 no_cache=1
7509 fi
7510
7511 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7512
7513fi
7514
7515
7516 eval "$ac_cv_use_dirdlg"
7517 if test "$no_cache" != 1; then
7518 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7519 fi
7520
7521 if test "$wxUSE_DIRDLG" = yes; then
7522 echo "$ac_t""yes" 1>&6
7523 else
7524 echo "$ac_t""no" 1>&6
7525 fi
7526
7527
7528 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
7529echo "configure:7530: checking for --enable-msgdlg" >&5
7530 no_cache=0
7531 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7532if test "${enable_msgdlg+set}" = set; then
7533 enableval="$enable_msgdlg"
7534
7535 if test "$enableval" = yes; then
7536 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7537 else
7538 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7539 fi
7540
7541else
7542
7543 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7544 if test "x$LINE" != x ; then
7545 eval "DEFAULT_$LINE"
7546 else
7547 no_cache=1
7548 fi
7549
7550 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7551
7552fi
7553
7554
7555 eval "$ac_cv_use_msgdlg"
7556 if test "$no_cache" != 1; then
7557 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7558 fi
7559
7560 if test "$wxUSE_MSGDLG" = yes; then
7561 echo "$ac_t""yes" 1>&6
7562 else
7563 echo "$ac_t""no" 1>&6
7564 fi
7565
7566
7567 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
7568echo "configure:7569: checking for --enable-numberdlg" >&5
7569 no_cache=0
7570 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7571if test "${enable_numberdlg+set}" = set; then
7572 enableval="$enable_numberdlg"
7573
7574 if test "$enableval" = yes; then
7575 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7576 else
7577 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7578 fi
7579
7580else
7581
7582 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7583 if test "x$LINE" != x ; then
7584 eval "DEFAULT_$LINE"
7585 else
7586 no_cache=1
7587 fi
7588
7589 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7590
7591fi
7592
7593
7594 eval "$ac_cv_use_numberdlg"
7595 if test "$no_cache" != 1; then
7596 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7597 fi
7598
7599 if test "$wxUSE_NUMBERDLG" = yes; then
7600 echo "$ac_t""yes" 1>&6
7601 else
7602 echo "$ac_t""no" 1>&6
7603 fi
7604
7605
7606 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7607echo "configure:7608: checking for --enable-splash" >&5
7608 no_cache=0
7609 # Check whether --enable-splash or --disable-splash was given.
7610if test "${enable_splash+set}" = set; then
7611 enableval="$enable_splash"
7612
7613 if test "$enableval" = yes; then
7614 ac_cv_use_splash='wxUSE_SPLASH=yes'
7615 else
7616 ac_cv_use_splash='wxUSE_SPLASH=no'
7617 fi
7618
7619else
7620
7621 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7622 if test "x$LINE" != x ; then
7623 eval "DEFAULT_$LINE"
7624 else
7625 no_cache=1
7626 fi
7627
7628 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7629
7630fi
7631
7632
7633 eval "$ac_cv_use_splash"
7634 if test "$no_cache" != 1; then
7635 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7636 fi
7637
7638 if test "$wxUSE_SPLASH" = yes; then
7639 echo "$ac_t""yes" 1>&6
7640 else
7641 echo "$ac_t""no" 1>&6
7642 fi
7643
7644
7645 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7646echo "configure:7647: checking for --enable-textdlg" >&5
7647 no_cache=0
7648 # Check whether --enable-textdlg or --disable-textdlg was given.
7649if test "${enable_textdlg+set}" = set; then
7650 enableval="$enable_textdlg"
7651
7652 if test "$enableval" = yes; then
7653 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7654 else
7655 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7656 fi
7657
7658else
7659
7660 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7661 if test "x$LINE" != x ; then
7662 eval "DEFAULT_$LINE"
7663 else
7664 no_cache=1
7665 fi
7666
7667 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7668
7669fi
7670
7671
7672 eval "$ac_cv_use_textdlg"
7673 if test "$no_cache" != 1; then
7674 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7675 fi
7676
7677 if test "$wxUSE_TEXTDLG" = yes; then
7678 echo "$ac_t""yes" 1>&6
7679 else
7680 echo "$ac_t""no" 1>&6
7681 fi
7682
7683
7684 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7685echo "configure:7686: checking for --enable-tipdlg" >&5
7686 no_cache=0
7687 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7688if test "${enable_tipdlg+set}" = set; then
7689 enableval="$enable_tipdlg"
7690
7691 if test "$enableval" = yes; then
7692 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7693 else
7694 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7695 fi
7696
7697else
7698
7699 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7700 if test "x$LINE" != x ; then
7701 eval "DEFAULT_$LINE"
7702 else
7703 no_cache=1
7704 fi
7705
7706 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7707
7708fi
7709
7710
7711 eval "$ac_cv_use_tipdlg"
7712 if test "$no_cache" != 1; then
7713 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7714 fi
7715
7716 if test "$wxUSE_STARTUP_TIPS" = yes; then
7717 echo "$ac_t""yes" 1>&6
7718 else
7719 echo "$ac_t""no" 1>&6
7720 fi
7721
7722
7723 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7724echo "configure:7725: checking for --enable-progressdlg" >&5
7725 no_cache=0
7726 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7727if test "${enable_progressdlg+set}" = set; then
7728 enableval="$enable_progressdlg"
7729
7730 if test "$enableval" = yes; then
7731 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7732 else
7733 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7734 fi
7735
7736else
7737
7738 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7739 if test "x$LINE" != x ; then
7740 eval "DEFAULT_$LINE"
7741 else
7742 no_cache=1
7743 fi
7744
7745 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7746
7747fi
7748
7749
7750 eval "$ac_cv_use_progressdlg"
7751 if test "$no_cache" != 1; then
7752 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7753 fi
7754
7755 if test "$wxUSE_PROGRESSDLG" = yes; then
7756 echo "$ac_t""yes" 1>&6
7757 else
7758 echo "$ac_t""no" 1>&6
7759 fi
7760
7761
7762 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7763echo "configure:7764: checking for --enable-wizarddlg" >&5
7764 no_cache=0
7765 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7766if test "${enable_wizarddlg+set}" = set; then
7767 enableval="$enable_wizarddlg"
7768
7769 if test "$enableval" = yes; then
7770 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7771 else
7772 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7773 fi
7774
7775else
7776
7777 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7778 if test "x$LINE" != x ; then
7779 eval "DEFAULT_$LINE"
7780 else
7781 no_cache=1
7782 fi
7783
7784 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7785
7786fi
7787
7788
7789 eval "$ac_cv_use_wizarddlg"
7790 if test "$no_cache" != 1; then
7791 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7792 fi
7793
7794 if test "$wxUSE_WIZARDDLG" = yes; then
7795 echo "$ac_t""yes" 1>&6
7796 else
7797 echo "$ac_t""no" 1>&6
7798 fi
7799
7800
7801
7802
7803 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7804echo "configure:7805: checking for --enable-menus" >&5
7805 no_cache=0
7806 # Check whether --enable-menus or --disable-menus was given.
7807if test "${enable_menus+set}" = set; then
7808 enableval="$enable_menus"
7809
7810 if test "$enableval" = yes; then
7811 ac_cv_use_menus='wxUSE_MENUS=yes'
7812 else
7813 ac_cv_use_menus='wxUSE_MENUS=no'
7814 fi
7815
7816else
7817
7818 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7819 if test "x$LINE" != x ; then
7820 eval "DEFAULT_$LINE"
7821 else
7822 no_cache=1
7823 fi
7824
7825 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7826
7827fi
7828
7829
7830 eval "$ac_cv_use_menus"
7831 if test "$no_cache" != 1; then
7832 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7833 fi
7834
7835 if test "$wxUSE_MENUS" = yes; then
7836 echo "$ac_t""yes" 1>&6
7837 else
7838 echo "$ac_t""no" 1>&6
7839 fi
7840
7841
7842 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7843echo "configure:7844: checking for --enable-miniframe" >&5
7844 no_cache=0
7845 # Check whether --enable-miniframe or --disable-miniframe was given.
7846if test "${enable_miniframe+set}" = set; then
7847 enableval="$enable_miniframe"
7848
7849 if test "$enableval" = yes; then
7850 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7851 else
7852 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7853 fi
7854
7855else
7856
7857 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7858 if test "x$LINE" != x ; then
7859 eval "DEFAULT_$LINE"
7860 else
7861 no_cache=1
7862 fi
7863
7864 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7865
7866fi
7867
7868
7869 eval "$ac_cv_use_miniframe"
7870 if test "$no_cache" != 1; then
7871 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7872 fi
7873
7874 if test "$wxUSE_MINIFRAME" = yes; then
7875 echo "$ac_t""yes" 1>&6
7876 else
7877 echo "$ac_t""no" 1>&6
7878 fi
7879
7880
7881 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7882echo "configure:7883: checking for --enable-tooltips" >&5
7883 no_cache=0
7884 # Check whether --enable-tooltips or --disable-tooltips was given.
7885if test "${enable_tooltips+set}" = set; then
7886 enableval="$enable_tooltips"
7887
7888 if test "$enableval" = yes; then
7889 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7890 else
7891 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7892 fi
7893
7894else
7895
7896 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7897 if test "x$LINE" != x ; then
7898 eval "DEFAULT_$LINE"
7899 else
7900 no_cache=1
7901 fi
7902
7903 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7904
7905fi
7906
7907
7908 eval "$ac_cv_use_tooltips"
7909 if test "$no_cache" != 1; then
7910 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7911 fi
7912
7913 if test "$wxUSE_TOOLTIPS" = yes; then
7914 echo "$ac_t""yes" 1>&6
7915 else
7916 echo "$ac_t""no" 1>&6
7917 fi
7918
7919
7920 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7921echo "configure:7922: checking for --enable-splines" >&5
7922 no_cache=0
7923 # Check whether --enable-splines or --disable-splines was given.
7924if test "${enable_splines+set}" = set; then
7925 enableval="$enable_splines"
7926
7927 if test "$enableval" = yes; then
7928 ac_cv_use_splines='wxUSE_SPLINES=yes'
7929 else
7930 ac_cv_use_splines='wxUSE_SPLINES=no'
7931 fi
7932
7933else
7934
7935 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7936 if test "x$LINE" != x ; then
7937 eval "DEFAULT_$LINE"
7938 else
7939 no_cache=1
7940 fi
7941
7942 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7943
7944fi
7945
7946
7947 eval "$ac_cv_use_splines"
7948 if test "$no_cache" != 1; then
7949 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7950 fi
7951
7952 if test "$wxUSE_SPLINES" = yes; then
7953 echo "$ac_t""yes" 1>&6
7954 else
7955 echo "$ac_t""no" 1>&6
7956 fi
7957
7958
7959 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7960echo "configure:7961: checking for --enable-validators" >&5
7961 no_cache=0
7962 # Check whether --enable-validators or --disable-validators was given.
7963if test "${enable_validators+set}" = set; then
7964 enableval="$enable_validators"
7965
7966 if test "$enableval" = yes; then
7967 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7968 else
7969 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7970 fi
7971
7972else
7973
7974 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7975 if test "x$LINE" != x ; then
7976 eval "DEFAULT_$LINE"
7977 else
7978 no_cache=1
7979 fi
7980
7981 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7982
7983fi
7984
7985
7986 eval "$ac_cv_use_validators"
7987 if test "$no_cache" != 1; then
7988 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7989 fi
7990
7991 if test "$wxUSE_VALIDATORS" = yes; then
7992 echo "$ac_t""yes" 1>&6
7993 else
7994 echo "$ac_t""no" 1>&6
7995 fi
7996
7997
7998 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7999echo "configure:8000: checking for --enable-busyinfo" >&5
8000 no_cache=0
8001 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8002if test "${enable_busyinfo+set}" = set; then
8003 enableval="$enable_busyinfo"
8004
8005 if test "$enableval" = yes; then
8006 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8007 else
8008 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8009 fi
8010
8011else
8012
8013 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8014 if test "x$LINE" != x ; then
8015 eval "DEFAULT_$LINE"
8016 else
8017 no_cache=1
8018 fi
8019
8020 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8021
8022fi
8023
8024
8025 eval "$ac_cv_use_busyinfo"
8026 if test "$no_cache" != 1; then
8027 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8028 fi
8029
8030 if test "$wxUSE_BUSYINFO" = yes; then
8031 echo "$ac_t""yes" 1>&6
8032 else
8033 echo "$ac_t""no" 1>&6
8034 fi
8035
8036
8037 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
8038echo "configure:8039: checking for --enable-joystick" >&5
8039 no_cache=0
8040 # Check whether --enable-joystick or --disable-joystick was given.
8041if test "${enable_joystick+set}" = set; then
8042 enableval="$enable_joystick"
8043
8044 if test "$enableval" = yes; then
8045 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8046 else
8047 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8048 fi
8049
8050else
8051
8052 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8053 if test "x$LINE" != x ; then
8054 eval "DEFAULT_$LINE"
8055 else
8056 no_cache=1
8057 fi
8058
8059 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8060
8061fi
8062
8063
8064 eval "$ac_cv_use_joystick"
8065 if test "$no_cache" != 1; then
8066 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8067 fi
8068
8069 if test "$wxUSE_JOYSTICK" = yes; then
8070 echo "$ac_t""yes" 1>&6
8071 else
8072 echo "$ac_t""no" 1>&6
8073 fi
8074
8075
8076 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
8077echo "configure:8078: checking for --enable-metafile" >&5
8078 no_cache=0
8079 # Check whether --enable-metafile or --disable-metafile was given.
8080if test "${enable_metafile+set}" = set; then
8081 enableval="$enable_metafile"
8082
8083 if test "$enableval" = yes; then
8084 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8085 else
8086 ac_cv_use_metafile='wxUSE_METAFILE=no'
8087 fi
8088
8089else
8090
8091 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8092 if test "x$LINE" != x ; then
8093 eval "DEFAULT_$LINE"
8094 else
8095 no_cache=1
8096 fi
8097
8098 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8099
8100fi
8101
8102
8103 eval "$ac_cv_use_metafile"
8104 if test "$no_cache" != 1; then
8105 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8106 fi
8107
8108 if test "$wxUSE_METAFILE" = yes; then
8109 echo "$ac_t""yes" 1>&6
8110 else
8111 echo "$ac_t""no" 1>&6
8112 fi
8113
8114
8115 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
8116echo "configure:8117: checking for --enable-dragimage" >&5
8117 no_cache=0
8118 # Check whether --enable-dragimage or --disable-dragimage was given.
8119if test "${enable_dragimage+set}" = set; then
8120 enableval="$enable_dragimage"
8121
8122 if test "$enableval" = yes; then
8123 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8124 else
8125 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8126 fi
8127
8128else
8129
8130 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8131 if test "x$LINE" != x ; then
8132 eval "DEFAULT_$LINE"
8133 else
8134 no_cache=1
8135 fi
8136
8137 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8138
8139fi
8140
8141
8142 eval "$ac_cv_use_dragimage"
8143 if test "$no_cache" != 1; then
8144 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8145 fi
8146
8147 if test "$wxUSE_DRAGIMAGE" = yes; then
8148 echo "$ac_t""yes" 1>&6
8149 else
8150 echo "$ac_t""no" 1>&6
8151 fi
8152
8153
8154
8155
8156 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
8157echo "configure:8158: checking for --enable-palette" >&5
8158 no_cache=0
8159 # Check whether --enable-palette or --disable-palette was given.
8160if test "${enable_palette+set}" = set; then
8161 enableval="$enable_palette"
8162
8163 if test "$enableval" = yes; then
8164 ac_cv_use_palette='wxUSE_PALETTE=yes'
8165 else
8166 ac_cv_use_palette='wxUSE_PALETTE=no'
8167 fi
8168
8169else
8170
8171 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8172 if test "x$LINE" != x ; then
8173 eval "DEFAULT_$LINE"
8174 else
8175 no_cache=1
8176 fi
8177
8178 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8179
8180fi
8181
8182
8183 eval "$ac_cv_use_palette"
8184 if test "$no_cache" != 1; then
8185 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8186 fi
8187
8188 if test "$wxUSE_PALETTE" = yes; then
8189 echo "$ac_t""yes" 1>&6
8190 else
8191 echo "$ac_t""no" 1>&6
8192 fi
8193
8194
8195 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
8196echo "configure:8197: checking for --enable-image" >&5
8197 no_cache=0
8198 # Check whether --enable-image or --disable-image was given.
8199if test "${enable_image+set}" = set; then
8200 enableval="$enable_image"
8201
8202 if test "$enableval" = yes; then
8203 ac_cv_use_image='wxUSE_IMAGE=yes'
8204 else
8205 ac_cv_use_image='wxUSE_IMAGE=no'
8206 fi
8207
8208else
8209
8210 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8211 if test "x$LINE" != x ; then
8212 eval "DEFAULT_$LINE"
8213 else
8214 no_cache=1
8215 fi
8216
8217 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8218
8219fi
8220
8221
8222 eval "$ac_cv_use_image"
8223 if test "$no_cache" != 1; then
8224 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8225 fi
8226
8227 if test "$wxUSE_IMAGE" = yes; then
8228 echo "$ac_t""yes" 1>&6
8229 else
8230 echo "$ac_t""no" 1>&6
8231 fi
8232
8233
8234 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
8235echo "configure:8236: checking for --enable-gif" >&5
8236 no_cache=0
8237 # Check whether --enable-gif or --disable-gif was given.
8238if test "${enable_gif+set}" = set; then
8239 enableval="$enable_gif"
8240
8241 if test "$enableval" = yes; then
8242 ac_cv_use_gif='wxUSE_GIF=yes'
8243 else
8244 ac_cv_use_gif='wxUSE_GIF=no'
8245 fi
8246
8247else
8248
8249 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8250 if test "x$LINE" != x ; then
8251 eval "DEFAULT_$LINE"
8252 else
8253 no_cache=1
8254 fi
8255
8256 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8257
8258fi
8259
8260
8261 eval "$ac_cv_use_gif"
8262 if test "$no_cache" != 1; then
8263 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8264 fi
8265
8266 if test "$wxUSE_GIF" = yes; then
8267 echo "$ac_t""yes" 1>&6
8268 else
8269 echo "$ac_t""no" 1>&6
8270 fi
8271
8272
8273 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
8274echo "configure:8275: checking for --enable-pcx" >&5
8275 no_cache=0
8276 # Check whether --enable-pcx or --disable-pcx was given.
8277if test "${enable_pcx+set}" = set; then
8278 enableval="$enable_pcx"
8279
8280 if test "$enableval" = yes; then
8281 ac_cv_use_pcx='wxUSE_PCX=yes'
8282 else
8283 ac_cv_use_pcx='wxUSE_PCX=no'
8284 fi
8285
8286else
8287
8288 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8289 if test "x$LINE" != x ; then
8290 eval "DEFAULT_$LINE"
8291 else
8292 no_cache=1
8293 fi
8294
8295 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8296
8297fi
8298
8299
8300 eval "$ac_cv_use_pcx"
8301 if test "$no_cache" != 1; then
8302 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8303 fi
8304
8305 if test "$wxUSE_PCX" = yes; then
8306 echo "$ac_t""yes" 1>&6
8307 else
8308 echo "$ac_t""no" 1>&6
8309 fi
8310
8311
8312 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
8313echo "configure:8314: checking for --enable-iff" >&5
8314 no_cache=0
8315 # Check whether --enable-iff or --disable-iff was given.
8316if test "${enable_iff+set}" = set; then
8317 enableval="$enable_iff"
8318
8319 if test "$enableval" = yes; then
8320 ac_cv_use_iff='wxUSE_IFF=yes'
8321 else
8322 ac_cv_use_iff='wxUSE_IFF=no'
8323 fi
8324
8325else
8326
8327 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8328 if test "x$LINE" != x ; then
8329 eval "DEFAULT_$LINE"
8330 else
8331 no_cache=1
8332 fi
8333
8334 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8335
8336fi
8337
8338
8339 eval "$ac_cv_use_iff"
8340 if test "$no_cache" != 1; then
8341 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8342 fi
8343
8344 if test "$wxUSE_IFF" = yes; then
8345 echo "$ac_t""yes" 1>&6
8346 else
8347 echo "$ac_t""no" 1>&6
8348 fi
8349
8350
8351 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
8352echo "configure:8353: checking for --enable-pnm" >&5
8353 no_cache=0
8354 # Check whether --enable-pnm or --disable-pnm was given.
8355if test "${enable_pnm+set}" = set; then
8356 enableval="$enable_pnm"
8357
8358 if test "$enableval" = yes; then
8359 ac_cv_use_pnm='wxUSE_PNM=yes'
8360 else
8361 ac_cv_use_pnm='wxUSE_PNM=no'
8362 fi
8363
8364else
8365
8366 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8367 if test "x$LINE" != x ; then
8368 eval "DEFAULT_$LINE"
8369 else
8370 no_cache=1
8371 fi
8372
8373 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8374
8375fi
8376
8377
8378 eval "$ac_cv_use_pnm"
8379 if test "$no_cache" != 1; then
8380 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8381 fi
8382
8383 if test "$wxUSE_PNM" = yes; then
8384 echo "$ac_t""yes" 1>&6
8385 else
8386 echo "$ac_t""no" 1>&6
8387 fi
8388
8389
8390 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
8391echo "configure:8392: checking for --enable-xpm" >&5
8392 no_cache=0
8393 # Check whether --enable-xpm or --disable-xpm was given.
8394if test "${enable_xpm+set}" = set; then
8395 enableval="$enable_xpm"
8396
8397 if test "$enableval" = yes; then
8398 ac_cv_use_xpm='wxUSE_XPM=yes'
8399 else
8400 ac_cv_use_xpm='wxUSE_XPM=no'
8401 fi
8402
8403else
8404
8405 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8406 if test "x$LINE" != x ; then
8407 eval "DEFAULT_$LINE"
8408 else
8409 no_cache=1
8410 fi
8411
8412 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8413
8414fi
8415
8416
8417 eval "$ac_cv_use_xpm"
8418 if test "$no_cache" != 1; then
8419 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8420 fi
8421
8422 if test "$wxUSE_XPM" = yes; then
8423 echo "$ac_t""yes" 1>&6
8424 else
8425 echo "$ac_t""no" 1>&6
8426 fi
8427
8428
8429 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
8430echo "configure:8431: checking for --enable-ico_cur" >&5
8431 no_cache=0
8432 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8433if test "${enable_ico_cur+set}" = set; then
8434 enableval="$enable_ico_cur"
8435
8436 if test "$enableval" = yes; then
8437 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8438 else
8439 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8440 fi
8441
8442else
8443
8444 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8445 if test "x$LINE" != x ; then
8446 eval "DEFAULT_$LINE"
8447 else
8448 no_cache=1
8449 fi
8450
8451 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8452
8453fi
8454
8455
8456 eval "$ac_cv_use_ico_cur"
8457 if test "$no_cache" != 1; then
8458 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8459 fi
8460
8461 if test "$wxUSE_ICO_CUR" = yes; then
8462 echo "$ac_t""yes" 1>&6
8463 else
8464 echo "$ac_t""no" 1>&6
8465 fi
8466
8467
8468fi
8469
8470
8471 echo "saving argument cache $wx_arg_cache_file"
8472 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8473
8474
8475
8476echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8477echo "configure:8478: checking for toolkit" >&5
8478
8479if test "$wxUSE_GUI" = "yes"; then
8480
8481 if test "$USE_BEOS" = 1; then
8482 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8483 fi
8484
8485 if test "$TOOLKIT_GIVEN" = 1; then
8486 for toolkit in `echo $ALL_TOOLKITS`; do
8487 var=wxUSE_$toolkit
8488 eval "value=\$${var}"
8489 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8490 done
8491 else
8492 for toolkit in `echo $ALL_TOOLKITS`; do
8493 if test "$has_toolkit_in_cache" != 1; then
8494 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8495 else
8496 var=DEFAULT_wxUSE_$toolkit
8497 fi
8498 eval "wxUSE_$toolkit=\$${var}"
8499 done
8500 fi
8501
8502 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
8503 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
8504
8505 case "${host}" in
8506 *-pc-os2_emx | *-pc-os2-emx )
8507 # PATH_IFS is autodetected by OS/2's configure (usually ';')
8508 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8509 LEX_STEM="lexyy"
8510 ;;
8511 *)
8512 PATH_IFS=':'
8513 LEX_STEM="lex.yy"
8514 ;;
8515 esac
8516
8517 case "$NUM_TOOLKITS" in
8518 1)
8519 ;;
8520 0)
8521 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8522 ;;
8523 *)
8524 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8525 esac
8526
8527 for toolkit in `echo $ALL_TOOLKITS`; do
8528 var=wxUSE_$toolkit
8529 eval "value=\$${var}"
8530 if test "x$value" != x; then
8531 cache_var=CACHE_$toolkit
8532 eval "cache=\$${cache_var}"
8533 if test "$cache" = 1; then
8534 echo "$var=$value" >> ${wx_arg_cache_file}
8535 fi
8536 if test "$value" = 1; then
8537 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8538 echo "$ac_t""$toolkit_echo" 1>&6
8539 fi
8540 fi
8541 done
8542else
8543 PATH_IFS=':'
8544 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8545fi
8546
8547
8548cat > confcache <<\EOF
8549# This file is a shell script that caches the results of configure
8550# tests run on this system so they can be shared between configure
8551# scripts and configure runs. It is not useful on other systems.
8552# If it contains results you don't want to keep, you may remove or edit it.
8553#
8554# By default, configure uses ./config.cache as the cache file,
8555# creating it if it does not exist already. You can give configure
8556# the --cache-file=FILE option to use a different cache file; that is
8557# what configure does when it calls configure scripts in
8558# subdirectories, so they share the cache.
8559# Giving --cache-file=/dev/null disables caching, for debugging configure.
8560# config.status only pays attention to the cache file if you give it the
8561# --recheck option to rerun configure.
8562#
8563EOF
8564# The following way of writing the cache mishandles newlines in values,
8565# but we know of no workaround that is simple, portable, and efficient.
8566# So, don't put newlines in cache variables' values.
8567# Ultrix sh set writes to stderr and can't be redirected directly,
8568# and sets the high bit in the cache file unless we assign to the vars.
8569(set) 2>&1 |
8570 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8571 *ac_space=\ *)
8572 # `set' does not quote correctly, so add quotes (double-quote substitution
8573 # turns \\\\ into \\, and sed turns \\ into \).
8574 sed -n \
8575 -e "s/'/'\\\\''/g" \
8576 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8577 ;;
8578 *)
8579 # `set' quotes correctly as required by POSIX, so do not add quotes.
8580 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8581 ;;
8582 esac >> confcache
8583if cmp -s $cache_file confcache; then
8584 :
8585else
8586 if test -w $cache_file; then
8587 echo "updating cache $cache_file"
8588 cat confcache > $cache_file
8589 else
8590 echo "not updating unwritable cache $cache_file"
8591 fi
8592fi
8593rm -f confcache
8594
8595
8596if test "$build" != "$host" ; then
8597 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then
8598 CC=$host_alias-gcc
8599 CXX=$host_alias-c++
8600 AR=$host_alias-ar
8601 RANLIB=$host_alias-ranlib
8602 DLLTOOL=$host_alias-dlltool
8603 RESCOMP=$host_alias-windres
8604 LD=$host_alias-ld
8605 NM=$host_alias-nm
8606 STRIP=$host_alias-strip
8607 else
8608 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8609 fi
8610fi
8611
8612# Extract the first word of "gcc", so it can be a program name with args.
8613set dummy gcc; ac_word=$2
8614echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8615echo "configure:8616: checking for $ac_word" >&5
8616if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8617 echo $ac_n "(cached) $ac_c" 1>&6
8618else
8619 if test -n "$CC"; then
8620 ac_cv_prog_CC="$CC" # Let the user override the test.
8621else
8622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8623 ac_dummy="$PATH"
8624 for ac_dir in $ac_dummy; do
8625 test -z "$ac_dir" && ac_dir=.
8626 if test -f $ac_dir/$ac_word; then
8627 ac_cv_prog_CC="gcc"
8628 break
8629 fi
8630 done
8631 IFS="$ac_save_ifs"
8632fi
8633fi
8634CC="$ac_cv_prog_CC"
8635if test -n "$CC"; then
8636 echo "$ac_t""$CC" 1>&6
8637else
8638 echo "$ac_t""no" 1>&6
8639fi
8640
8641if test -z "$CC"; then
8642 # Extract the first word of "cc", so it can be a program name with args.
8643set dummy cc; ac_word=$2
8644echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8645echo "configure:8646: checking for $ac_word" >&5
8646if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8647 echo $ac_n "(cached) $ac_c" 1>&6
8648else
8649 if test -n "$CC"; then
8650 ac_cv_prog_CC="$CC" # Let the user override the test.
8651else
8652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8653 ac_prog_rejected=no
8654 ac_dummy="$PATH"
8655 for ac_dir in $ac_dummy; do
8656 test -z "$ac_dir" && ac_dir=.
8657 if test -f $ac_dir/$ac_word; then
8658 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8659 ac_prog_rejected=yes
8660 continue
8661 fi
8662 ac_cv_prog_CC="cc"
8663 break
8664 fi
8665 done
8666 IFS="$ac_save_ifs"
8667if test $ac_prog_rejected = yes; then
8668 # We found a bogon in the path, so make sure we never use it.
8669 set dummy $ac_cv_prog_CC
8670 shift
8671 if test $# -gt 0; then
8672 # We chose a different compiler from the bogus one.
8673 # However, it has the same basename, so the bogon will be chosen
8674 # first if we set CC to just the basename; use the full file name.
8675 shift
8676 set dummy "$ac_dir/$ac_word" "$@"
8677 shift
8678 ac_cv_prog_CC="$@"
8679 fi
8680fi
8681fi
8682fi
8683CC="$ac_cv_prog_CC"
8684if test -n "$CC"; then
8685 echo "$ac_t""$CC" 1>&6
8686else
8687 echo "$ac_t""no" 1>&6
8688fi
8689
8690 if test -z "$CC"; then
8691 case "`uname -s`" in
8692 *win32* | *WIN32*)
8693 # Extract the first word of "cl", so it can be a program name with args.
8694set dummy cl; ac_word=$2
8695echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8696echo "configure:8697: checking for $ac_word" >&5
8697if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8698 echo $ac_n "(cached) $ac_c" 1>&6
8699else
8700 if test -n "$CC"; then
8701 ac_cv_prog_CC="$CC" # Let the user override the test.
8702else
8703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8704 ac_dummy="$PATH"
8705 for ac_dir in $ac_dummy; do
8706 test -z "$ac_dir" && ac_dir=.
8707 if test -f $ac_dir/$ac_word; then
8708 ac_cv_prog_CC="cl"
8709 break
8710 fi
8711 done
8712 IFS="$ac_save_ifs"
8713fi
8714fi
8715CC="$ac_cv_prog_CC"
8716if test -n "$CC"; then
8717 echo "$ac_t""$CC" 1>&6
8718else
8719 echo "$ac_t""no" 1>&6
8720fi
8721 ;;
8722 esac
8723 fi
8724 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8725fi
8726
8727echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8728echo "configure:8729: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8729
8730ac_ext=c
8731# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8732ac_cpp='$CPP $CPPFLAGS'
8733ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8734ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8735cross_compiling=$ac_cv_prog_cc_cross
8736
8737cat > conftest.$ac_ext << EOF
8738
8739#line 8740 "configure"
8740#include "confdefs.h"
8741
8742main(){return(0);}
8743EOF
8744if { (eval echo configure:8745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8745 ac_cv_prog_cc_works=yes
8746 # If we can't run a trivial program, we are probably using a cross compiler.
8747 if (./conftest; exit) 2>/dev/null; then
8748 ac_cv_prog_cc_cross=no
8749 else
8750 ac_cv_prog_cc_cross=yes
8751 fi
8752else
8753 echo "configure: failed program was:" >&5
8754 cat conftest.$ac_ext >&5
8755 ac_cv_prog_cc_works=no
8756fi
8757rm -fr conftest*
8758ac_ext=c
8759# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8760ac_cpp='$CPP $CPPFLAGS'
8761ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8762ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8763cross_compiling=$ac_cv_prog_cc_cross
8764
8765echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8766if test $ac_cv_prog_cc_works = no; then
8767 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8768fi
8769echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8770echo "configure:8771: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8771echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8772cross_compiling=$ac_cv_prog_cc_cross
8773
8774echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8775echo "configure:8776: checking whether we are using GNU C" >&5
8776if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8777 echo $ac_n "(cached) $ac_c" 1>&6
8778else
8779 cat > conftest.c <<EOF
8780#ifdef __GNUC__
8781 yes;
8782#endif
8783EOF
8784if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8785 ac_cv_prog_gcc=yes
8786else
8787 ac_cv_prog_gcc=no
8788fi
8789fi
8790
8791echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8792
8793if test $ac_cv_prog_gcc = yes; then
8794 GCC=yes
8795else
8796 GCC=
8797fi
8798
8799ac_test_CFLAGS="${CFLAGS+set}"
8800ac_save_CFLAGS="$CFLAGS"
8801CFLAGS=
8802echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8803echo "configure:8804: checking whether ${CC-cc} accepts -g" >&5
8804if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8805 echo $ac_n "(cached) $ac_c" 1>&6
8806else
8807 echo 'void f(){}' > conftest.c
8808if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8809 ac_cv_prog_cc_g=yes
8810else
8811 ac_cv_prog_cc_g=no
8812fi
8813rm -f conftest*
8814
8815fi
8816
8817echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8818if test "$ac_test_CFLAGS" = set; then
8819 CFLAGS="$ac_save_CFLAGS"
8820elif test $ac_cv_prog_cc_g = yes; then
8821 if test "$GCC" = yes; then
8822 CFLAGS="-g -O2"
8823 else
8824 CFLAGS="-g"
8825 fi
8826else
8827 if test "$GCC" = yes; then
8828 CFLAGS="-O2"
8829 else
8830 CFLAGS=
8831 fi
8832fi
8833
8834
8835CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8836
8837echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8838echo "configure:8839: checking how to run the C preprocessor" >&5
8839# On Suns, sometimes $CPP names a directory.
8840if test -n "$CPP" && test -d "$CPP"; then
8841 CPP=
8842fi
8843if test -z "$CPP"; then
8844if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8845 echo $ac_n "(cached) $ac_c" 1>&6
8846else
8847 # This must be in double quotes, not single quotes, because CPP may get
8848 # substituted into the Makefile and "${CC-cc}" will confuse make.
8849 CPP="${CC-cc} -E"
8850 # On the NeXT, cc -E runs the code through the compiler's parser,
8851 # not just through cpp.
8852 cat > conftest.$ac_ext <<EOF
8853#line 8854 "configure"
8854#include "confdefs.h"
8855#include <assert.h>
8856Syntax Error
8857EOF
8858ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8859{ (eval echo configure:8860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8860ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8861if test -z "$ac_err"; then
8862 :
8863else
8864 echo "$ac_err" >&5
8865 echo "configure: failed program was:" >&5
8866 cat conftest.$ac_ext >&5
8867 rm -rf conftest*
8868 CPP="${CC-cc} -E -traditional-cpp"
8869 cat > conftest.$ac_ext <<EOF
8870#line 8871 "configure"
8871#include "confdefs.h"
8872#include <assert.h>
8873Syntax Error
8874EOF
8875ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8876{ (eval echo configure:8877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8877ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8878if test -z "$ac_err"; then
8879 :
8880else
8881 echo "$ac_err" >&5
8882 echo "configure: failed program was:" >&5
8883 cat conftest.$ac_ext >&5
8884 rm -rf conftest*
8885 CPP="${CC-cc} -nologo -E"
8886 cat > conftest.$ac_ext <<EOF
8887#line 8888 "configure"
8888#include "confdefs.h"
8889#include <assert.h>
8890Syntax Error
8891EOF
8892ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8893{ (eval echo configure:8894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8894ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8895if test -z "$ac_err"; then
8896 :
8897else
8898 echo "$ac_err" >&5
8899 echo "configure: failed program was:" >&5
8900 cat conftest.$ac_ext >&5
8901 rm -rf conftest*
8902 CPP=/lib/cpp
8903fi
8904rm -f conftest*
8905fi
8906rm -f conftest*
8907fi
8908rm -f conftest*
8909 ac_cv_prog_CPP="$CPP"
8910fi
8911 CPP="$ac_cv_prog_CPP"
8912else
8913 ac_cv_prog_CPP="$CPP"
8914fi
8915echo "$ac_t""$CPP" 1>&6
8916
8917if test $ac_cv_prog_gcc = yes; then
8918 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8919echo "configure:8920: checking whether ${CC-cc} needs -traditional" >&5
8920if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8921 echo $ac_n "(cached) $ac_c" 1>&6
8922else
8923 ac_pattern="Autoconf.*'x'"
8924 cat > conftest.$ac_ext <<EOF
8925#line 8926 "configure"
8926#include "confdefs.h"
8927#include <sgtty.h>
8928Autoconf TIOCGETP
8929EOF
8930if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8931 egrep "$ac_pattern" >/dev/null 2>&1; then
8932 rm -rf conftest*
8933 ac_cv_prog_gcc_traditional=yes
8934else
8935 rm -rf conftest*
8936 ac_cv_prog_gcc_traditional=no
8937fi
8938rm -f conftest*
8939
8940
8941 if test $ac_cv_prog_gcc_traditional = no; then
8942 cat > conftest.$ac_ext <<EOF
8943#line 8944 "configure"
8944#include "confdefs.h"
8945#include <termio.h>
8946Autoconf TCGETA
8947EOF
8948if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8949 egrep "$ac_pattern" >/dev/null 2>&1; then
8950 rm -rf conftest*
8951 ac_cv_prog_gcc_traditional=yes
8952fi
8953rm -f conftest*
8954
8955 fi
8956fi
8957
8958echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8959 if test $ac_cv_prog_gcc_traditional = yes; then
8960 CC="$CC -traditional"
8961 fi
8962fi
8963
8964
8965
8966ac_ext=C
8967# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8968ac_cpp='$CXXCPP $CPPFLAGS'
8969ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8970ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8971cross_compiling=$ac_cv_prog_cxx_cross
8972
8973
8974for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8975do
8976# Extract the first word of "$ac_prog", so it can be a program name with args.
8977set dummy $ac_prog; ac_word=$2
8978echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8979echo "configure:8980: checking for $ac_word" >&5
8980if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8981 echo $ac_n "(cached) $ac_c" 1>&6
8982else
8983 if test -n "$CXX"; then
8984 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8985else
8986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8987 ac_dummy="$PATH"
8988 for ac_dir in $ac_dummy; do
8989 test -z "$ac_dir" && ac_dir=.
8990 if test -f $ac_dir/$ac_word; then
8991 ac_cv_prog_CXX="$ac_prog"
8992 break
8993 fi
8994 done
8995 IFS="$ac_save_ifs"
8996fi
8997fi
8998CXX="$ac_cv_prog_CXX"
8999if test -n "$CXX"; then
9000 echo "$ac_t""$CXX" 1>&6
9001else
9002 echo "$ac_t""no" 1>&6
9003fi
9004
9005test -n "$CXX" && break
9006done
9007test -n "$CXX" || CXX="gcc"
9008
9009
9010echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9011echo "configure:9012: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9012
9013ac_ext=C
9014# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9015ac_cpp='$CXXCPP $CPPFLAGS'
9016ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9017ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9018cross_compiling=$ac_cv_prog_cxx_cross
9019
9020cat > conftest.$ac_ext << EOF
9021
9022#line 9023 "configure"
9023#include "confdefs.h"
9024
9025int main(){return(0);}
9026EOF
9027if { (eval echo configure:9028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9028 ac_cv_prog_cxx_works=yes
9029 # If we can't run a trivial program, we are probably using a cross compiler.
9030 if (./conftest; exit) 2>/dev/null; then
9031 ac_cv_prog_cxx_cross=no
9032 else
9033 ac_cv_prog_cxx_cross=yes
9034 fi
9035else
9036 echo "configure: failed program was:" >&5
9037 cat conftest.$ac_ext >&5
9038 ac_cv_prog_cxx_works=no
9039fi
9040rm -fr conftest*
9041ac_ext=C
9042# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9043ac_cpp='$CXXCPP $CPPFLAGS'
9044ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9045ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9046cross_compiling=$ac_cv_prog_cxx_cross
9047
9048echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9049if test $ac_cv_prog_cxx_works = no; then
9050 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9051fi
9052echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9053echo "configure:9054: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9054echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9055cross_compiling=$ac_cv_prog_cxx_cross
9056
9057echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9058echo "configure:9059: checking whether we are using GNU C++" >&5
9059if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9060 echo $ac_n "(cached) $ac_c" 1>&6
9061else
9062 cat > conftest.C <<EOF
9063#ifdef __GNUC__
9064 yes;
9065#endif
9066EOF
9067if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9068 ac_cv_prog_gxx=yes
9069else
9070 ac_cv_prog_gxx=no
9071fi
9072fi
9073
9074echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9075
9076if test $ac_cv_prog_gxx = yes; then
9077 GXX=yes
9078else
9079 GXX=
9080fi
9081
9082ac_test_CXXFLAGS="${CXXFLAGS+set}"
9083ac_save_CXXFLAGS="$CXXFLAGS"
9084CXXFLAGS=
9085echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9086echo "configure:9087: checking whether ${CXX-g++} accepts -g" >&5
9087if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9088 echo $ac_n "(cached) $ac_c" 1>&6
9089else
9090 echo 'void f(){}' > conftest.cc
9091if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9092 ac_cv_prog_cxx_g=yes
9093else
9094 ac_cv_prog_cxx_g=no
9095fi
9096rm -f conftest*
9097
9098fi
9099
9100echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9101if test "$ac_test_CXXFLAGS" = set; then
9102 CXXFLAGS="$ac_save_CXXFLAGS"
9103elif test $ac_cv_prog_cxx_g = yes; then
9104 if test "$GXX" = yes; then
9105 CXXFLAGS="-g -O2"
9106 else
9107 CXXFLAGS="-g"
9108 fi
9109else
9110 if test "$GXX" = yes; then
9111 CXXFLAGS="-O2"
9112 else
9113 CXXFLAGS=
9114 fi
9115fi
9116
9117for ac_declaration in \
9118 ''\
9119 '#include <stdlib.h>' \
9120 'extern "C" void std::exit (int) throw (); using std::exit;' \
9121 'extern "C" void std::exit (int); using std::exit;' \
9122 'extern "C" void exit (int) throw ();' \
9123 'extern "C" void exit (int);' \
9124 'void exit (int);'
9125do
9126 cat > conftest.$ac_ext <<EOF
9127#line 9128 "configure"
9128#include "confdefs.h"
9129#include <stdlib.h>
9130$ac_declaration
9131int main() {
9132exit (42);
9133; return 0; }
9134EOF
9135if { (eval echo configure:9136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9136 :
9137else
9138 echo "configure: failed program was:" >&5
9139 cat conftest.$ac_ext >&5
9140 rm -rf conftest*
9141 continue
9142fi
9143rm -f conftest*
9144 cat > conftest.$ac_ext <<EOF
9145#line 9146 "configure"
9146#include "confdefs.h"
9147$ac_declaration
9148int main() {
9149exit (42);
9150; return 0; }
9151EOF
9152if { (eval echo configure:9153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9153 rm -rf conftest*
9154 break
9155else
9156 echo "configure: failed program was:" >&5
9157 cat conftest.$ac_ext >&5
9158fi
9159rm -f conftest*
9160done
9161if test -n "$ac_declaration"; then
9162 echo '#ifdef __cplusplus' >>confdefs.h
9163 echo $ac_declaration >>confdefs.h
9164 echo '#endif' >>confdefs.h
9165fi
9166
9167
9168
9169CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
9170
9171ac_ext=c
9172# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9173ac_cpp='$CPP $CPPFLAGS'
9174ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9175ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9176cross_compiling=$ac_cv_prog_cc_cross
9177
9178
9179# Extract the first word of "ranlib", so it can be a program name with args.
9180set dummy ranlib; ac_word=$2
9181echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9182echo "configure:9183: checking for $ac_word" >&5
9183if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9184 echo $ac_n "(cached) $ac_c" 1>&6
9185else
9186 if test -n "$RANLIB"; then
9187 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9188else
9189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9190 ac_dummy="$PATH"
9191 for ac_dir in $ac_dummy; do
9192 test -z "$ac_dir" && ac_dir=.
9193 if test -f $ac_dir/$ac_word; then
9194 ac_cv_prog_RANLIB="ranlib"
9195 break
9196 fi
9197 done
9198 IFS="$ac_save_ifs"
9199 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9200fi
9201fi
9202RANLIB="$ac_cv_prog_RANLIB"
9203if test -n "$RANLIB"; then
9204 echo "$ac_t""$RANLIB" 1>&6
9205else
9206 echo "$ac_t""no" 1>&6
9207fi
9208
9209
9210# Extract the first word of "ar", so it can be a program name with args.
9211set dummy ar; ac_word=$2
9212echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9213echo "configure:9214: checking for $ac_word" >&5
9214if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9215 echo $ac_n "(cached) $ac_c" 1>&6
9216else
9217 if test -n "$AR"; then
9218 ac_cv_prog_AR="$AR" # Let the user override the test.
9219else
9220 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9221 ac_dummy="$PATH"
9222 for ac_dir in $ac_dummy; do
9223 test -z "$ac_dir" && ac_dir=.
9224 if test -f $ac_dir/$ac_word; then
9225 ac_cv_prog_AR="ar"
9226 break
9227 fi
9228 done
9229 IFS="$ac_save_ifs"
9230 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9231fi
9232fi
9233AR="$ac_cv_prog_AR"
9234if test -n "$AR"; then
9235 echo "$ac_t""$AR" 1>&6
9236else
9237 echo "$ac_t""no" 1>&6
9238fi
9239
9240
9241# Find a good install program. We prefer a C program (faster),
9242# so one script is as good as another. But avoid the broken or
9243# incompatible versions:
9244# SysV /etc/install, /usr/sbin/install
9245# SunOS /usr/etc/install
9246# IRIX /sbin/install
9247# AIX /bin/install
9248# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9249# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9250# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9251# ./install, which can be erroneously created by make from ./install.sh.
9252echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9253echo "configure:9254: checking for a BSD compatible install" >&5
9254if test -z "$INSTALL"; then
9255if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9256 echo $ac_n "(cached) $ac_c" 1>&6
9257else
9258 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9259 for ac_dir in $PATH; do
9260 # Account for people who put trailing slashes in PATH elements.
9261 case "$ac_dir/" in
9262 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9263 *)
9264 # OSF1 and SCO ODT 3.0 have their own names for install.
9265 # Don't use installbsd from OSF since it installs stuff as root
9266 # by default.
9267 for ac_prog in ginstall scoinst install; do
9268 if test -f $ac_dir/$ac_prog; then
9269 if test $ac_prog = install &&
9270 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9271 # AIX install. It has an incompatible calling convention.
9272 :
9273 else
9274 ac_cv_path_install="$ac_dir/$ac_prog -c"
9275 break 2
9276 fi
9277 fi
9278 done
9279 ;;
9280 esac
9281 done
9282 IFS="$ac_save_IFS"
9283
9284fi
9285 if test "${ac_cv_path_install+set}" = set; then
9286 INSTALL="$ac_cv_path_install"
9287 else
9288 # As a last resort, use the slow shell script. We don't cache a
9289 # path for INSTALL within a source directory, because that will
9290 # break other packages using the cache if that directory is
9291 # removed, or if the path is relative.
9292 INSTALL="$ac_install_sh"
9293 fi
9294fi
9295echo "$ac_t""$INSTALL" 1>&6
9296
9297# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9298# It thinks the first close brace ends the variable substitution.
9299test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9300
9301test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9302
9303test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9304
9305case "${host}" in
9306
9307 powerpc-*-darwin* )
9308 INSTALL_PROGRAM="cp -fp"
9309 INSTALL_DATA="cp -fp"
9310 ;;
9311 *)
9312 ;;
9313esac
9314
9315# Extract the first word of "strip", so it can be a program name with args.
9316set dummy strip; ac_word=$2
9317echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9318echo "configure:9319: checking for $ac_word" >&5
9319if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9320 echo $ac_n "(cached) $ac_c" 1>&6
9321else
9322 if test -n "$STRIP"; then
9323 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9324else
9325 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9326 ac_dummy="$PATH"
9327 for ac_dir in $ac_dummy; do
9328 test -z "$ac_dir" && ac_dir=.
9329 if test -f $ac_dir/$ac_word; then
9330 ac_cv_prog_STRIP="strip"
9331 break
9332 fi
9333 done
9334 IFS="$ac_save_ifs"
9335 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9336fi
9337fi
9338STRIP="$ac_cv_prog_STRIP"
9339if test -n "$STRIP"; then
9340 echo "$ac_t""$STRIP" 1>&6
9341else
9342 echo "$ac_t""no" 1>&6
9343fi
9344
9345
9346echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9347echo "configure:9348: checking if make is GNU make" >&5
9348if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9349 echo $ac_n "(cached) $ac_c" 1>&6
9350else
9351
9352 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9353 egrep qs GNU > /dev/null); then
9354 wx_cv_prog_makeisgnu="yes"
9355 else
9356 wx_cv_prog_makeisgnu="no"
9357 fi
9358
9359fi
9360
9361echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9362
9363if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9364 IF_GNU_MAKE=""
9365else
9366 IF_GNU_MAKE="#"
9367fi
9368
9369
9370
9371if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9372echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9373echo "configure:9374: checking if make supports VPATH" >&5
9374if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9375 echo $ac_n "(cached) $ac_c" 1>&6
9376else
9377
9378cat - << EOF > confMake
9379check : file
9380 cp \$? \$@
9381 cp \$? final_file
9382EOF
9383
9384if test ! -d sub ; then
9385 mkdir sub
9386fi
9387echo dummy > sub/file
9388${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9389RESULT=$?
9390rm -f sub/file check final_file confMake
9391rmdir sub
9392if test "$RESULT" = 0; then
9393 wx_cv_prog_makevpath="yes"
9394else
9395 wx_cv_prog_makevpath="no"
9396fi
9397
9398fi
9399
9400echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9401
9402if test "x$wx_cv_prog_makevpath" != "xyes"; then
9403{ echo "configure: error:
9404You need a make-utility that is able to use the variable
9405VPATH correctly.
9406If your version of make does not support VPATH correctly,
9407please install GNU-make (possibly as gmake), and start
9408configure with the following command:
9409export MAKE=gmake; ./configure for sh-type shells
9410setenv MAKE gmake; ./configure for csh-type shells
9411Also please do remember to use gmake in this case every time
9412you are trying to compile.
9413" 1>&2; exit 1; }
9414fi fi
9415for ac_prog in 'bison -y' byacc
9416do
9417# Extract the first word of "$ac_prog", so it can be a program name with args.
9418set dummy $ac_prog; ac_word=$2
9419echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9420echo "configure:9421: checking for $ac_word" >&5
9421if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9422 echo $ac_n "(cached) $ac_c" 1>&6
9423else
9424 if test -n "$YACC"; then
9425 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9426else
9427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9428 ac_dummy="$PATH"
9429 for ac_dir in $ac_dummy; do
9430 test -z "$ac_dir" && ac_dir=.
9431 if test -f $ac_dir/$ac_word; then
9432 ac_cv_prog_YACC="$ac_prog"
9433 break
9434 fi
9435 done
9436 IFS="$ac_save_ifs"
9437fi
9438fi
9439YACC="$ac_cv_prog_YACC"
9440if test -n "$YACC"; then
9441 echo "$ac_t""$YACC" 1>&6
9442else
9443 echo "$ac_t""no" 1>&6
9444fi
9445
9446test -n "$YACC" && break
9447done
9448test -n "$YACC" || YACC="yacc"
9449
9450
9451# Extract the first word of "flex", so it can be a program name with args.
9452set dummy flex; ac_word=$2
9453echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9454echo "configure:9455: checking for $ac_word" >&5
9455if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9456 echo $ac_n "(cached) $ac_c" 1>&6
9457else
9458 if test -n "$LEX"; then
9459 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9460else
9461 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9462 ac_dummy="$PATH"
9463 for ac_dir in $ac_dummy; do
9464 test -z "$ac_dir" && ac_dir=.
9465 if test -f $ac_dir/$ac_word; then
9466 ac_cv_prog_LEX="flex"
9467 break
9468 fi
9469 done
9470 IFS="$ac_save_ifs"
9471 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9472fi
9473fi
9474LEX="$ac_cv_prog_LEX"
9475if test -n "$LEX"; then
9476 echo "$ac_t""$LEX" 1>&6
9477else
9478 echo "$ac_t""no" 1>&6
9479fi
9480
9481if test -z "$LEXLIB"
9482then
9483 case "$LEX" in
9484 flex*) ac_lib=fl ;;
9485 *) ac_lib=l ;;
9486 esac
9487 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9488echo "configure:9489: checking for yywrap in -l$ac_lib" >&5
9489ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9490if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9491 echo $ac_n "(cached) $ac_c" 1>&6
9492else
9493 ac_save_LIBS="$LIBS"
9494LIBS="-l$ac_lib $LIBS"
9495cat > conftest.$ac_ext <<EOF
9496#line 9497 "configure"
9497#include "confdefs.h"
9498/* Override any gcc2 internal prototype to avoid an error. */
9499/* We use char because int might match the return type of a gcc2
9500 builtin and then its argument prototype would still apply. */
9501char yywrap();
9502
9503int main() {
9504yywrap()
9505; return 0; }
9506EOF
9507if { (eval echo configure:9508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9508 rm -rf conftest*
9509 eval "ac_cv_lib_$ac_lib_var=yes"
9510else
9511 echo "configure: failed program was:" >&5
9512 cat conftest.$ac_ext >&5
9513 rm -rf conftest*
9514 eval "ac_cv_lib_$ac_lib_var=no"
9515fi
9516rm -f conftest*
9517LIBS="$ac_save_LIBS"
9518
9519fi
9520if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9521 echo "$ac_t""yes" 1>&6
9522 LEXLIB="-l$ac_lib"
9523else
9524 echo "$ac_t""no" 1>&6
9525fi
9526
9527fi
9528
9529
9530echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9531echo "configure:9532: checking whether ln -s works" >&5
9532if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9533 echo $ac_n "(cached) $ac_c" 1>&6
9534else
9535 rm -f conftestdata
9536if ln -s X conftestdata 2>/dev/null
9537then
9538 rm -f conftestdata
9539 ac_cv_prog_LN_S="ln -s"
9540else
9541 ac_cv_prog_LN_S=ln
9542fi
9543fi
9544LN_S="$ac_cv_prog_LN_S"
9545if test "$ac_cv_prog_LN_S" = "ln -s"; then
9546 echo "$ac_t""yes" 1>&6
9547else
9548 echo "$ac_t""no" 1>&6
9549fi
9550
9551
9552
9553SEARCH_INCLUDE="\
9554 /usr/local/include \
9555 \
9556 /usr/Motif-1.2/include \
9557 /usr/Motif-2.1/include \
9558 \
9559 /usr/include/Motif1.2 \
9560 /opt/xpm/include/X11 \
9561 /opt/GBxpm/include/ \
9562 /opt/GBxpm/X11/include/ \
9563 \
9564 /usr/Motif1.2/include \
9565 /usr/dt/include \
9566 /usr/openwin/include \
9567 \
9568 /usr/include/Xm \
9569 \
9570 /usr/X11R6/include \
9571 /usr/X11R6.4/include \
9572 /usr/X11R5/include \
9573 /usr/X11R4/include \
9574 \
9575 /usr/include/X11R6 \
9576 /usr/include/X11R5 \
9577 /usr/include/X11R4 \
9578 \
9579 /usr/local/X11R6/include \
9580 /usr/local/X11R5/include \
9581 /usr/local/X11R4/include \
9582 \
9583 /usr/local/include/X11R6 \
9584 /usr/local/include/X11R5 \
9585 /usr/local/include/X11R4 \
9586 \
9587 /usr/X11/include \
9588 /usr/include/X11 \
9589 /usr/local/X11/include \
9590 /usr/local/include/X11 \
9591 \
9592 /usr/X386/include \
9593 /usr/x386/include \
9594 /usr/XFree86/include/X11 \
9595 \
9596 X:/XFree86/include \
9597 X:/XFree86/include/X11 \
9598 \
9599 /usr/include/gtk \
9600 /usr/local/include/gtk \
9601 /usr/include/glib \
9602 /usr/local/include/glib \
9603 \
9604 /usr/include/qt \
9605 /usr/local/include/qt \
9606 \
9607 /usr/include/windows \
9608 /usr/include/wine \
9609 /usr/local/include/wine \
9610 \
9611 /usr/unsupported/include \
9612 /usr/athena/include \
9613 /usr/local/x11r5/include \
9614 /usr/lpp/Xamples/include \
9615 \
9616 /usr/openwin/share/include \
9617 \
9618 /usr/include"
9619
9620SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
9621
9622
9623cat > confcache <<\EOF
9624# This file is a shell script that caches the results of configure
9625# tests run on this system so they can be shared between configure
9626# scripts and configure runs. It is not useful on other systems.
9627# If it contains results you don't want to keep, you may remove or edit it.
9628#
9629# By default, configure uses ./config.cache as the cache file,
9630# creating it if it does not exist already. You can give configure
9631# the --cache-file=FILE option to use a different cache file; that is
9632# what configure does when it calls configure scripts in
9633# subdirectories, so they share the cache.
9634# Giving --cache-file=/dev/null disables caching, for debugging configure.
9635# config.status only pays attention to the cache file if you give it the
9636# --recheck option to rerun configure.
9637#
9638EOF
9639# The following way of writing the cache mishandles newlines in values,
9640# but we know of no workaround that is simple, portable, and efficient.
9641# So, don't put newlines in cache variables' values.
9642# Ultrix sh set writes to stderr and can't be redirected directly,
9643# and sets the high bit in the cache file unless we assign to the vars.
9644(set) 2>&1 |
9645 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9646 *ac_space=\ *)
9647 # `set' does not quote correctly, so add quotes (double-quote substitution
9648 # turns \\\\ into \\, and sed turns \\ into \).
9649 sed -n \
9650 -e "s/'/'\\\\''/g" \
9651 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9652 ;;
9653 *)
9654 # `set' quotes correctly as required by POSIX, so do not add quotes.
9655 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9656 ;;
9657 esac >> confcache
9658if cmp -s $cache_file confcache; then
9659 :
9660else
9661 if test -w $cache_file; then
9662 echo "updating cache $cache_file"
9663 cat confcache > $cache_file
9664 else
9665 echo "not updating unwritable cache $cache_file"
9666 fi
9667fi
9668rm -f confcache
9669
9670
9671
9672
9673REGEX_INCLUDE=
9674if test "$wxUSE_REGEX" != "no"; then
9675 cat >> confdefs.h <<\EOF
9676#define wxUSE_REGEX 1
9677EOF
9678
9679
9680 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
9681 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
9682echo $ac_n "checking for regex.h""... $ac_c" 1>&6
9683echo "configure:9684: checking for regex.h" >&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 <regex.h>
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 for ac_func in regcomp
9710do
9711echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9712echo "configure:9713: checking for $ac_func" >&5
9713if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9714 echo $ac_n "(cached) $ac_c" 1>&6
9715else
9716 cat > conftest.$ac_ext <<EOF
9717#line 9718 "configure"
9718#include "confdefs.h"
9719/* System header to define __stub macros and hopefully few prototypes,
9720 which can conflict with char $ac_func(); below. */
9721#include <assert.h>
9722/* Override any gcc2 internal prototype to avoid an error. */
9723/* We use char because int might match the return type of a gcc2
9724 builtin and then its argument prototype would still apply. */
9725char $ac_func();
9726
9727int main() {
9728
9729/* The GNU C library defines this for functions which it implements
9730 to always fail with ENOSYS. Some functions are actually named
9731 something starting with __ and the normal name is an alias. */
9732#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9733choke me
9734#else
9735$ac_func();
9736#endif
9737
9738; return 0; }
9739EOF
9740if { (eval echo configure:9741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9741 rm -rf conftest*
9742 eval "ac_cv_func_$ac_func=yes"
9743else
9744 echo "configure: failed program was:" >&5
9745 cat conftest.$ac_ext >&5
9746 rm -rf conftest*
9747 eval "ac_cv_func_$ac_func=no"
9748fi
9749rm -f conftest*
9750fi
9751
9752if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9753 echo "$ac_t""yes" 1>&6
9754 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9755 cat >> confdefs.h <<EOF
9756#define $ac_tr_func 1
9757EOF
9758
9759else
9760 echo "$ac_t""no" 1>&6
9761fi
9762done
9763
9764else
9765 echo "$ac_t""no" 1>&6
9766fi
9767
9768
9769 if test "x$ac_cv_func_regcomp" != "xyes"; then
9770 if test "$wxUSE_REGEX" = "sys" ; then
9771 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9772 else
9773 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
9774 wxUSE_REGEX=builtin
9775 fi
9776 else
9777 wxUSE_REGEX=sys
9778 fi
9779 fi
9780
9781 if test "$wxUSE_REGEX" = "builtin" ; then
9782 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9783 fi
9784fi
9785
9786
9787ZLIB_INCLUDE=
9788ZLIB_LINK=
9789if test "$wxUSE_ZLIB" != "no" ; then
9790 cat >> confdefs.h <<\EOF
9791#define wxUSE_ZLIB 1
9792EOF
9793
9794
9795 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9796 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9797echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
9798echo "configure:9799: checking for zlib.h" >&5
9799if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9800 echo $ac_n "(cached) $ac_c" 1>&6
9801else
9802 cat > conftest.$ac_ext <<EOF
9803#line 9804 "configure"
9804#include "confdefs.h"
9805#include <zlib.h>
9806EOF
9807ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9808{ (eval echo configure:9809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9809ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9810if test -z "$ac_err"; then
9811 rm -rf conftest*
9812 eval "ac_cv_header_$ac_safe=yes"
9813else
9814 echo "$ac_err" >&5
9815 echo "configure: failed program was:" >&5
9816 cat conftest.$ac_ext >&5
9817 rm -rf conftest*
9818 eval "ac_cv_header_$ac_safe=no"
9819fi
9820rm -f conftest*
9821fi
9822if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9823 echo "$ac_t""yes" 1>&6
9824 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
9825echo "configure:9826: checking for deflate in -lz" >&5
9826ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9827if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9828 echo $ac_n "(cached) $ac_c" 1>&6
9829else
9830 ac_save_LIBS="$LIBS"
9831LIBS="-lz $LIBS"
9832cat > conftest.$ac_ext <<EOF
9833#line 9834 "configure"
9834#include "confdefs.h"
9835/* Override any gcc2 internal prototype to avoid an error. */
9836/* We use char because int might match the return type of a gcc2
9837 builtin and then its argument prototype would still apply. */
9838char deflate();
9839
9840int main() {
9841deflate()
9842; return 0; }
9843EOF
9844if { (eval echo configure:9845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9845 rm -rf conftest*
9846 eval "ac_cv_lib_$ac_lib_var=yes"
9847else
9848 echo "configure: failed program was:" >&5
9849 cat conftest.$ac_ext >&5
9850 rm -rf conftest*
9851 eval "ac_cv_lib_$ac_lib_var=no"
9852fi
9853rm -f conftest*
9854LIBS="$ac_save_LIBS"
9855
9856fi
9857if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9858 echo "$ac_t""yes" 1>&6
9859 ZLIB_LINK=" -lz"
9860else
9861 echo "$ac_t""no" 1>&6
9862fi
9863
9864else
9865 echo "$ac_t""no" 1>&6
9866fi
9867
9868
9869 if test "x$ZLIB_LINK" = "x" ; then
9870 if test "$wxUSE_ZLIB" = "sys" ; then
9871 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9872 else
9873 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
9874 wxUSE_ZLIB=builtin
9875 fi
9876 else
9877 wxUSE_ZLIB=sys
9878 fi
9879 fi
9880
9881 if test "$wxUSE_ZLIB" = "builtin" ; then
9882 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9883 fi
9884fi
9885
9886
9887PNG_INCLUDE=
9888PNG_LINK=
9889if test "$wxUSE_LIBPNG" != "no" ; then
9890 cat >> confdefs.h <<\EOF
9891#define wxUSE_LIBPNG 1
9892EOF
9893
9894
9895 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
9896 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
9897 wxUSE_LIBPNG=sys
9898 fi
9899
9900 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
9901 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
9902 wxUSE_LIBPNG=builtin
9903 fi
9904
9905 if test "$wxUSE_MGL" != 1 ; then
9906 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9907 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9908echo $ac_n "checking for png.h""... $ac_c" 1>&6
9909echo "configure:9910: checking for png.h" >&5
9910if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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#include <png.h>
9917EOF
9918ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9919{ (eval echo configure:9920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9920ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9921if test -z "$ac_err"; then
9922 rm -rf conftest*
9923 eval "ac_cv_header_$ac_safe=yes"
9924else
9925 echo "$ac_err" >&5
9926 echo "configure: failed program was:" >&5
9927 cat conftest.$ac_ext >&5
9928 rm -rf conftest*
9929 eval "ac_cv_header_$ac_safe=no"
9930fi
9931rm -f conftest*
9932fi
9933if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9934 echo "$ac_t""yes" 1>&6
9935 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
9936echo "configure:9937: checking for png_check_sig in -lpng" >&5
9937ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9938if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9939 echo $ac_n "(cached) $ac_c" 1>&6
9940else
9941 ac_save_LIBS="$LIBS"
9942LIBS="-lpng -lz -lm $LIBS"
9943cat > conftest.$ac_ext <<EOF
9944#line 9945 "configure"
9945#include "confdefs.h"
9946/* Override any gcc2 internal prototype to avoid an error. */
9947/* We use char because int might match the return type of a gcc2
9948 builtin and then its argument prototype would still apply. */
9949char png_check_sig();
9950
9951int main() {
9952png_check_sig()
9953; return 0; }
9954EOF
9955if { (eval echo configure:9956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9956 rm -rf conftest*
9957 eval "ac_cv_lib_$ac_lib_var=yes"
9958else
9959 echo "configure: failed program was:" >&5
9960 cat conftest.$ac_ext >&5
9961 rm -rf conftest*
9962 eval "ac_cv_lib_$ac_lib_var=no"
9963fi
9964rm -f conftest*
9965LIBS="$ac_save_LIBS"
9966
9967fi
9968if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9969 echo "$ac_t""yes" 1>&6
9970 PNG_LINK=" -lpng"
9971else
9972 echo "$ac_t""no" 1>&6
9973fi
9974
9975
9976else
9977 echo "$ac_t""no" 1>&6
9978fi
9979
9980
9981 if test "x$PNG_LINK" = "x" ; then
9982 if test "$wxUSE_LIBPNG" = "sys" ; then
9983 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9984 else
9985 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
9986 wxUSE_LIBPNG=builtin
9987 fi
9988 else
9989 wxUSE_LIBPNG=yes
9990 fi
9991 fi
9992 fi
9993
9994 if test "$wxUSE_LIBPNG" = "builtin" ; then
9995 PNG_INCLUDE="-I\${top_srcdir}/src/png"
9996 fi
9997
9998 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
9999fi
10000
10001
10002JPEG_INCLUDE=
10003JPEG_LINK=
10004if test "$wxUSE_LIBJPEG" != "no" ; then
10005 cat >> confdefs.h <<\EOF
10006#define wxUSE_LIBJPEG 1
10007EOF
10008
10009
10010 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
10011 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
10012 wxUSE_LIBJPEG=sys
10013 fi
10014
10015 if test "$wxUSE_MGL" != 1 ; then
10016 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
10017 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
10018echo "configure:10019: checking for jpeglib.h" >&5
10019 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
10020 echo $ac_n "(cached) $ac_c" 1>&6
10021else
10022 cat > conftest.$ac_ext <<EOF
10023#line 10024 "configure"
10024#include "confdefs.h"
10025
10026 #undef HAVE_STDLIB_H
10027 #include <stdio.h>
10028 #include <jpeglib.h>
10029
10030int main() {
10031
10032
10033; return 0; }
10034EOF
10035if { (eval echo configure:10036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10036 rm -rf conftest*
10037 ac_cv_header_jpeglib_h=yes
10038else
10039 echo "configure: failed program was:" >&5
10040 cat conftest.$ac_ext >&5
10041 rm -rf conftest*
10042 ac_cv_header_jpeglib_h=no
10043
10044fi
10045rm -f conftest*
10046
10047fi
10048
10049 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
10050
10051 if test "$ac_cv_header_jpeglib_h" = "yes"; then
10052 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
10053echo "configure:10054: checking for jpeg_read_header in -ljpeg" >&5
10054ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
10055if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10056 echo $ac_n "(cached) $ac_c" 1>&6
10057else
10058 ac_save_LIBS="$LIBS"
10059LIBS="-ljpeg $LIBS"
10060cat > conftest.$ac_ext <<EOF
10061#line 10062 "configure"
10062#include "confdefs.h"
10063/* Override any gcc2 internal prototype to avoid an error. */
10064/* We use char because int might match the return type of a gcc2
10065 builtin and then its argument prototype would still apply. */
10066char jpeg_read_header();
10067
10068int main() {
10069jpeg_read_header()
10070; return 0; }
10071EOF
10072if { (eval echo configure:10073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10073 rm -rf conftest*
10074 eval "ac_cv_lib_$ac_lib_var=yes"
10075else
10076 echo "configure: failed program was:" >&5
10077 cat conftest.$ac_ext >&5
10078 rm -rf conftest*
10079 eval "ac_cv_lib_$ac_lib_var=no"
10080fi
10081rm -f conftest*
10082LIBS="$ac_save_LIBS"
10083
10084fi
10085if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10086 echo "$ac_t""yes" 1>&6
10087 JPEG_LINK=" -ljpeg"
10088else
10089 echo "$ac_t""no" 1>&6
10090fi
10091
10092 fi
10093
10094 if test "x$JPEG_LINK" = "x" ; then
10095 if test "$wxUSE_LIBJPEG" = "sys" ; then
10096 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
10097 else
10098 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
10099 wxUSE_LIBJPEG=builtin
10100 fi
10101 else
10102 wxUSE_LIBJPEG=sys
10103 fi
10104 fi
10105 fi
10106
10107 if test "$wxUSE_LIBJPEG" = "builtin" ; then
10108 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
10109 fi
10110fi
10111
10112
10113TIFF_INCLUDE=
10114TIFF_LINK=
10115if test "$wxUSE_LIBTIFF" != "no" ; then
10116 cat >> confdefs.h <<\EOF
10117#define wxUSE_LIBTIFF 1
10118EOF
10119
10120
10121 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
10122 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
10123echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
10124echo "configure:10125: checking for tiffio.h" >&5
10125if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10126 echo $ac_n "(cached) $ac_c" 1>&6
10127else
10128 cat > conftest.$ac_ext <<EOF
10129#line 10130 "configure"
10130#include "confdefs.h"
10131#include <tiffio.h>
10132EOF
10133ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10134{ (eval echo configure:10135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10135ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10136if test -z "$ac_err"; then
10137 rm -rf conftest*
10138 eval "ac_cv_header_$ac_safe=yes"
10139else
10140 echo "$ac_err" >&5
10141 echo "configure: failed program was:" >&5
10142 cat conftest.$ac_ext >&5
10143 rm -rf conftest*
10144 eval "ac_cv_header_$ac_safe=no"
10145fi
10146rm -f conftest*
10147fi
10148if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10149 echo "$ac_t""yes" 1>&6
10150 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
10151echo "configure:10152: checking for TIFFError in -ltiff" >&5
10152ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
10153if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10154 echo $ac_n "(cached) $ac_c" 1>&6
10155else
10156 ac_save_LIBS="$LIBS"
10157LIBS="-ltiff -lm $LIBS"
10158cat > conftest.$ac_ext <<EOF
10159#line 10160 "configure"
10160#include "confdefs.h"
10161/* Override any gcc2 internal prototype to avoid an error. */
10162/* We use char because int might match the return type of a gcc2
10163 builtin and then its argument prototype would still apply. */
10164char TIFFError();
10165
10166int main() {
10167TIFFError()
10168; return 0; }
10169EOF
10170if { (eval echo configure:10171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10171 rm -rf conftest*
10172 eval "ac_cv_lib_$ac_lib_var=yes"
10173else
10174 echo "configure: failed program was:" >&5
10175 cat conftest.$ac_ext >&5
10176 rm -rf conftest*
10177 eval "ac_cv_lib_$ac_lib_var=no"
10178fi
10179rm -f conftest*
10180LIBS="$ac_save_LIBS"
10181
10182fi
10183if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10184 echo "$ac_t""yes" 1>&6
10185 TIFF_LINK=" -ltiff"
10186else
10187 echo "$ac_t""no" 1>&6
10188fi
10189
10190
10191else
10192 echo "$ac_t""no" 1>&6
10193fi
10194
10195
10196 if test "x$TIFF_LINK" = "x" ; then
10197 if test "$wxUSE_LIBTIFF" = "sys" ; then
10198 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
10199 else
10200 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
10201 wxUSE_LIBTIFF=builtin
10202 fi
10203 else
10204 wxUSE_LIBTIFF=sys
10205 fi
10206 fi
10207
10208 if test "$wxUSE_LIBTIFF" = "builtin" ; then
10209 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
10210 fi
10211fi
10212
10213
10214AFMINSTALL=
10215
10216TOOLKIT=
10217TOOLKIT_INCLUDE=
10218WIDGET_SET=
10219
10220if test "$USE_WIN32" = 1 ; then
10221 for ac_hdr in w32api.h
10222do
10223ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10224echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10225echo "configure:10226: checking for $ac_hdr" >&5
10226if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10227 echo $ac_n "(cached) $ac_c" 1>&6
10228else
10229 cat > conftest.$ac_ext <<EOF
10230#line 10231 "configure"
10231#include "confdefs.h"
10232#include <$ac_hdr>
10233EOF
10234ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10235{ (eval echo configure:10236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10236ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10237if test -z "$ac_err"; then
10238 rm -rf conftest*
10239 eval "ac_cv_header_$ac_safe=yes"
10240else
10241 echo "$ac_err" >&5
10242 echo "configure: failed program was:" >&5
10243 cat conftest.$ac_ext >&5
10244 rm -rf conftest*
10245 eval "ac_cv_header_$ac_safe=no"
10246fi
10247rm -f conftest*
10248fi
10249if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10250 echo "$ac_t""yes" 1>&6
10251 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10252 cat >> confdefs.h <<EOF
10253#define $ac_tr_hdr 1
10254EOF
10255
10256else
10257 echo "$ac_t""no" 1>&6
10258fi
10259done
10260
10261 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10262echo $ac_n "checking for windows.h""... $ac_c" 1>&6
10263echo "configure:10264: checking for windows.h" >&5
10264if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10265 echo $ac_n "(cached) $ac_c" 1>&6
10266else
10267 cat > conftest.$ac_ext <<EOF
10268#line 10269 "configure"
10269#include "confdefs.h"
10270#include <windows.h>
10271EOF
10272ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10273{ (eval echo configure:10274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10274ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10275if test -z "$ac_err"; then
10276 rm -rf conftest*
10277 eval "ac_cv_header_$ac_safe=yes"
10278else
10279 echo "$ac_err" >&5
10280 echo "configure: failed program was:" >&5
10281 cat conftest.$ac_ext >&5
10282 rm -rf conftest*
10283 eval "ac_cv_header_$ac_safe=no"
10284fi
10285rm -f conftest*
10286fi
10287if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10288 echo "$ac_t""yes" 1>&6
10289 :
10290else
10291 echo "$ac_t""no" 1>&6
10292
10293 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
10294
10295fi
10296
10297
10298 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
10299echo "configure:10300: checking if w32api has good enough MSIE support" >&5
10300if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
10301 echo $ac_n "(cached) $ac_c" 1>&6
10302else
10303
10304 cat > conftest.$ac_ext <<EOF
10305#line 10306 "configure"
10306#include "confdefs.h"
10307#include <w32api.h>
10308int main() {
10309
10310 #define wxCHECK_W32API_VERSION( major, minor ) \
10311 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
10312 && ( ( __W32API_MAJOR_VERSION > (major) ) \
10313 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
10314
10315 #if !wxCHECK_W32API_VERSION(1,1)
10316 #error You need w32api 1.1 or newer
10317 #endif
10318
10319; return 0; }
10320EOF
10321if { (eval echo configure:10322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10322 rm -rf conftest*
10323
10324 wx_cv_w32api_win32_ie=yes
10325
10326else
10327 echo "configure: failed program was:" >&5
10328 cat conftest.$ac_ext >&5
10329 rm -rf conftest*
10330
10331 wx_cv_w32api_win32_ie=no
10332
10333fi
10334rm -f conftest*
10335
10336fi
10337
10338echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
10339 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
10340 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
10341 fi
10342
10343 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
10344
10345 case "${host}" in
10346 *-*-cygwin* )
10347 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
10348 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
10349 esac
10350
10351 if test "$wxUSE_ODBC" = "yes" ; then
10352 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
10353 fi
10354
10355 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
10356 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
10357fi
10358
10359if test "$wxUSE_GUI" = "yes"; then
10360 USE_GUI=1
10361
10362 GUI_TK_LIBRARY=
10363
10364 WXGTK12=
10365 WXGTK127=
10366 WXGTK20=
10367
10368 if test "$wxUSE_MSW" = 1 ; then
10369 TOOLKIT=MSW
10370 GUIDIST=MSW_DIST
10371
10372 case "${host}" in
10373 *-*-mingw32* )
10374 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
10375 esac
10376 fi
10377
10378 if test "$wxUSE_GTK" = 1; then
10379 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
10380echo "configure:10381: checking for GTK+ version" >&5
10381
10382 gtk_version_cached=1
10383 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
10384 echo $ac_n "(cached) $ac_c" 1>&6
10385else
10386
10387 gtk_version_cached=0
10388 echo "$ac_t""" 1>&6
10389
10390 GTK_MODULES=
10391 if test "$wxUSE_THREADS" = "yes"; then
10392 GTK_MODULES=gthread
10393 fi
10394
10395 wx_cv_lib_gtk=
10396 if test "x$wxUSE_GTK2" = "xyes"; then
10397 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10398if test "${with_gtk_prefix+set}" = set; then
10399 withval="$with_gtk_prefix"
10400 gtk_config_prefix="$withval"
10401else
10402 gtk_config_prefix=""
10403fi
10404
10405# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10406if test "${with_gtk_exec_prefix+set}" = set; then
10407 withval="$with_gtk_exec_prefix"
10408 gtk_config_exec_prefix="$withval"
10409else
10410 gtk_config_exec_prefix=""
10411fi
10412
10413# Check whether --enable-gtktest or --disable-gtktest was given.
10414if test "${enable_gtktest+set}" = set; then
10415 enableval="$enable_gtktest"
10416 :
10417else
10418 enable_gtktest=yes
10419fi
10420
10421
10422 for module in . $GTK_MODULES
10423 do
10424 case "$module" in
10425 gthread)
10426 gtk_config_args="$gtk_config_args gthread"
10427 ;;
10428 esac
10429 done
10430
10431 if test x$gtk_config_exec_prefix != x ; then
10432 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10433 if test x${GTK_CONFIG_2_0+set} != xset ; then
10434 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
10435 fi
10436 fi
10437 if test x$gtk_config_prefix != x ; then
10438 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10439 if test x${GTK_CONFIG_2_0+set} != xset ; then
10440 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
10441 fi
10442 fi
10443
10444 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
10445set dummy gtk-config-2.0; ac_word=$2
10446echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10447echo "configure:10448: checking for $ac_word" >&5
10448if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
10449 echo $ac_n "(cached) $ac_c" 1>&6
10450else
10451 case "$GTK_CONFIG_2_0" in
10452 /*)
10453 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
10454 ;;
10455 ?:/*)
10456 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
10457 ;;
10458 *)
10459 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10460 ac_dummy="$PATH"
10461 for ac_dir in $ac_dummy; do
10462 test -z "$ac_dir" && ac_dir=.
10463 if test -f $ac_dir/$ac_word; then
10464 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
10465 break
10466 fi
10467 done
10468 IFS="$ac_save_ifs"
10469 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
10470 ;;
10471esac
10472fi
10473GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
10474if test -n "$GTK_CONFIG_2_0"; then
10475 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
10476else
10477 echo "$ac_t""no" 1>&6
10478fi
10479
10480 min_gtk_version=1.3.1
10481 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10482echo "configure:10483: checking for GTK - version >= $min_gtk_version" >&5
10483 no_gtk=""
10484 if test "$GTK_CONFIG_2_0" = "no" ; then
10485 no_gtk=yes
10486 else
10487 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
10488 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
10489 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10490 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10491 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10492 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10493 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10494 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10495 if test "x$enable_gtktest" = "xyes" ; then
10496 ac_save_CFLAGS="$CFLAGS"
10497 ac_save_LIBS="$LIBS"
10498 CFLAGS="$CFLAGS $GTK_CFLAGS"
10499 LIBS="$GTK_LIBS $LIBS"
10500 rm -f conf.gtktest
10501 if test "$cross_compiling" = yes; then
10502 echo $ac_n "cross compiling; assumed OK... $ac_c"
10503else
10504 cat > conftest.$ac_ext <<EOF
10505#line 10506 "configure"
10506#include "confdefs.h"
10507
10508#include <gtk/gtk.h>
10509#include <stdio.h>
10510#include <stdlib.h>
10511
10512int
10513main ()
10514{
10515 int major, minor, micro;
10516 char *tmp_version;
10517
10518 system ("touch conf.gtktest");
10519
10520 /* HP/UX 9 (%@#!) writes to sscanf strings */
10521 tmp_version = g_strdup("$min_gtk_version");
10522 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10523 printf("%s, bad version string\n", "$min_gtk_version");
10524 exit(1);
10525 }
10526
10527 if ((gtk_major_version != $gtk_config_major_version) ||
10528 (gtk_minor_version != $gtk_config_minor_version) ||
10529 (gtk_micro_version != $gtk_config_micro_version))
10530 {
10531 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10532 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10533 gtk_major_version, gtk_minor_version, gtk_micro_version);
10534 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
10535 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10536 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10537 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10538 printf("*** required on your system.\n");
10539 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
10540 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
10541 printf("*** before re-running configure\n");
10542 }
10543#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10544 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10545 (gtk_minor_version != GTK_MINOR_VERSION) ||
10546 (gtk_micro_version != GTK_MICRO_VERSION))
10547 {
10548 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10549 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10550 printf("*** library (version %d.%d.%d)\n",
10551 gtk_major_version, gtk_minor_version, gtk_micro_version);
10552 }
10553#endif /* defined (GTK_MAJOR_VERSION) ... */
10554 else
10555 {
10556 if ((gtk_major_version > major) ||
10557 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10558 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10559 {
10560 return 0;
10561 }
10562 else
10563 {
10564 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10565 gtk_major_version, gtk_minor_version, gtk_micro_version);
10566 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10567 major, minor, micro);
10568 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10569 printf("***\n");
10570 printf("*** If you have already installed a sufficiently new version, this error\n");
10571 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
10572 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10573 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
10574 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
10575 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10576 printf("*** so that the correct libraries are found at run-time))\n");
10577 }
10578 }
10579 return 1;
10580}
10581
10582EOF
10583if { (eval echo configure:10584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10584then
10585 :
10586else
10587 echo "configure: failed program was:" >&5
10588 cat conftest.$ac_ext >&5
10589 rm -fr conftest*
10590 no_gtk=yes
10591fi
10592rm -fr conftest*
10593fi
10594
10595 CFLAGS="$ac_save_CFLAGS"
10596 LIBS="$ac_save_LIBS"
10597 fi
10598 fi
10599 if test "x$no_gtk" = x ; then
10600 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
10601 wx_cv_lib_gtk=2.0
10602 else
10603 echo "$ac_t""no" 1>&6
10604 if test "$GTK_CONFIG_2_0" = "no" ; then
10605 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
10606 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10607 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
10608 echo "*** full path to gtk-config-2.0."
10609 else
10610 if test -f conf.gtktest ; then
10611 :
10612 else
10613 echo "*** Could not run GTK test program, checking why..."
10614 CFLAGS="$CFLAGS $GTK_CFLAGS"
10615 LIBS="$LIBS $GTK_LIBS"
10616 cat > conftest.$ac_ext <<EOF
10617#line 10618 "configure"
10618#include "confdefs.h"
10619
10620#include <gtk/gtk.h>
10621#include <stdio.h>
10622
10623int main() {
10624 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10625; return 0; }
10626EOF
10627if { (eval echo configure:10628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10628 rm -rf conftest*
10629 echo "*** The test program compiled, but did not run. This usually means"
10630 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10631 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10632 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10633 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10634 echo "*** is required on your system"
10635 echo "***"
10636 echo "*** If you have an old version installed, it is best to remove it, although"
10637 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10638 echo "***"
10639 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10640 echo "*** came with the system with the command"
10641 echo "***"
10642 echo "*** rpm --erase --nodeps gtk gtk-devel"
10643else
10644 echo "configure: failed program was:" >&5
10645 cat conftest.$ac_ext >&5
10646 rm -rf conftest*
10647 echo "*** The test program failed to compile or link. See the file config.log for the"
10648 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10649 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10650 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
10651fi
10652rm -f conftest*
10653 CFLAGS="$ac_save_CFLAGS"
10654 LIBS="$ac_save_LIBS"
10655 fi
10656 fi
10657 GTK_CFLAGS=""
10658 GTK_LIBS=""
10659 :
10660 fi
10661
10662
10663 rm -f conf.gtktest
10664
10665 fi
10666
10667 if test -z "$wx_cv_lib_gtk"; then
10668 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10669if test "${with_gtk_prefix+set}" = set; then
10670 withval="$with_gtk_prefix"
10671 gtk_config_prefix="$withval"
10672else
10673 gtk_config_prefix=""
10674fi
10675
10676# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10677if test "${with_gtk_exec_prefix+set}" = set; then
10678 withval="$with_gtk_exec_prefix"
10679 gtk_config_exec_prefix="$withval"
10680else
10681 gtk_config_exec_prefix=""
10682fi
10683
10684# Check whether --enable-gtktest or --disable-gtktest was given.
10685if test "${enable_gtktest+set}" = set; then
10686 enableval="$enable_gtktest"
10687 :
10688else
10689 enable_gtktest=yes
10690fi
10691
10692
10693 for module in . $GTK_MODULES
10694 do
10695 case "$module" in
10696 gthread)
10697 gtk_config_args="$gtk_config_args gthread"
10698 ;;
10699 esac
10700 done
10701
10702 if test x$gtk_config_exec_prefix != x ; then
10703 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10704 if test x${GTK_CONFIG+set} != xset ; then
10705 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10706 fi
10707 fi
10708 if test x$gtk_config_prefix != x ; then
10709 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10710 if test x${GTK_CONFIG+set} != xset ; then
10711 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10712 fi
10713 fi
10714
10715 # Extract the first word of "gtk-config", so it can be a program name with args.
10716set dummy gtk-config; ac_word=$2
10717echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10718echo "configure:10719: checking for $ac_word" >&5
10719if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10720 echo $ac_n "(cached) $ac_c" 1>&6
10721else
10722 case "$GTK_CONFIG" in
10723 /*)
10724 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10725 ;;
10726 ?:/*)
10727 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10728 ;;
10729 *)
10730 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10731 ac_dummy="$PATH"
10732 for ac_dir in $ac_dummy; do
10733 test -z "$ac_dir" && ac_dir=.
10734 if test -f $ac_dir/$ac_word; then
10735 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10736 break
10737 fi
10738 done
10739 IFS="$ac_save_ifs"
10740 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10741 ;;
10742esac
10743fi
10744GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10745if test -n "$GTK_CONFIG"; then
10746 echo "$ac_t""$GTK_CONFIG" 1>&6
10747else
10748 echo "$ac_t""no" 1>&6
10749fi
10750
10751 min_gtk_version=1.2.7
10752 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10753echo "configure:10754: checking for GTK - version >= $min_gtk_version" >&5
10754 no_gtk=""
10755 if test "$GTK_CONFIG" = "no" ; then
10756 no_gtk=yes
10757 else
10758 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10759 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10760 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10761 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10762 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10763 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10764 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10765 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10766 if test "x$enable_gtktest" = "xyes" ; then
10767 ac_save_CFLAGS="$CFLAGS"
10768 ac_save_LIBS="$LIBS"
10769 CFLAGS="$CFLAGS $GTK_CFLAGS"
10770 LIBS="$GTK_LIBS $LIBS"
10771 rm -f conf.gtktest
10772 if test "$cross_compiling" = yes; then
10773 echo $ac_n "cross compiling; assumed OK... $ac_c"
10774else
10775 cat > conftest.$ac_ext <<EOF
10776#line 10777 "configure"
10777#include "confdefs.h"
10778
10779#include <gtk/gtk.h>
10780#include <stdio.h>
10781#include <stdlib.h>
10782
10783int
10784main ()
10785{
10786 int major, minor, micro;
10787 char *tmp_version;
10788
10789 system ("touch conf.gtktest");
10790
10791 /* HP/UX 9 (%@#!) writes to sscanf strings */
10792 tmp_version = g_strdup("$min_gtk_version");
10793 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10794 printf("%s, bad version string\n", "$min_gtk_version");
10795 exit(1);
10796 }
10797
10798 if ((gtk_major_version != $gtk_config_major_version) ||
10799 (gtk_minor_version != $gtk_config_minor_version) ||
10800 (gtk_micro_version != $gtk_config_micro_version))
10801 {
10802 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10803 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10804 gtk_major_version, gtk_minor_version, gtk_micro_version);
10805 printf ("*** was found! If gtk-config was correct, then it is best\n");
10806 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10807 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10808 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10809 printf("*** required on your system.\n");
10810 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10811 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10812 printf("*** before re-running configure\n");
10813 }
10814#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10815 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10816 (gtk_minor_version != GTK_MINOR_VERSION) ||
10817 (gtk_micro_version != GTK_MICRO_VERSION))
10818 {
10819 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10820 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10821 printf("*** library (version %d.%d.%d)\n",
10822 gtk_major_version, gtk_minor_version, gtk_micro_version);
10823 }
10824#endif /* defined (GTK_MAJOR_VERSION) ... */
10825 else
10826 {
10827 if ((gtk_major_version > major) ||
10828 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10829 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10830 {
10831 return 0;
10832 }
10833 else
10834 {
10835 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10836 gtk_major_version, gtk_minor_version, gtk_micro_version);
10837 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10838 major, minor, micro);
10839 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10840 printf("***\n");
10841 printf("*** If you have already installed a sufficiently new version, this error\n");
10842 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10843 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10844 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10845 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10846 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10847 printf("*** so that the correct libraries are found at run-time))\n");
10848 }
10849 }
10850 return 1;
10851}
10852
10853EOF
10854if { (eval echo configure:10855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10855then
10856 :
10857else
10858 echo "configure: failed program was:" >&5
10859 cat conftest.$ac_ext >&5
10860 rm -fr conftest*
10861 no_gtk=yes
10862fi
10863rm -fr conftest*
10864fi
10865
10866 CFLAGS="$ac_save_CFLAGS"
10867 LIBS="$ac_save_LIBS"
10868 fi
10869 fi
10870 if test "x$no_gtk" = x ; then
10871 echo "$ac_t""yes" 1>&6
10872 wx_cv_lib_gtk=1.2.7
10873 else
10874 echo "$ac_t""no" 1>&6
10875 if test "$GTK_CONFIG" = "no" ; then
10876 echo "*** The gtk-config script installed by GTK could not be found"
10877 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10878 echo "*** your path, or set the GTK_CONFIG environment variable to the"
10879 echo "*** full path to gtk-config."
10880 else
10881 if test -f conf.gtktest ; then
10882 :
10883 else
10884 echo "*** Could not run GTK test program, checking why..."
10885 CFLAGS="$CFLAGS $GTK_CFLAGS"
10886 LIBS="$LIBS $GTK_LIBS"
10887 cat > conftest.$ac_ext <<EOF
10888#line 10889 "configure"
10889#include "confdefs.h"
10890
10891#include <gtk/gtk.h>
10892#include <stdio.h>
10893
10894int main() {
10895 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10896; return 0; }
10897EOF
10898if { (eval echo configure:10899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10899 rm -rf conftest*
10900 echo "*** The test program compiled, but did not run. This usually means"
10901 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10902 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10903 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10904 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10905 echo "*** is required on your system"
10906 echo "***"
10907 echo "*** If you have an old version installed, it is best to remove it, although"
10908 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10909 echo "***"
10910 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10911 echo "*** came with the system with the command"
10912 echo "***"
10913 echo "*** rpm --erase --nodeps gtk gtk-devel"
10914else
10915 echo "configure: failed program was:" >&5
10916 cat conftest.$ac_ext >&5
10917 rm -rf conftest*
10918 echo "*** The test program failed to compile or link. See the file config.log for the"
10919 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10920 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10921 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
10922fi
10923rm -f conftest*
10924 CFLAGS="$ac_save_CFLAGS"
10925 LIBS="$ac_save_LIBS"
10926 fi
10927 fi
10928 GTK_CFLAGS=""
10929 GTK_LIBS=""
10930 :
10931 fi
10932
10933
10934 rm -f conf.gtktest
10935
10936 fi
10937
10938 if test -z "$wx_cv_lib_gtk"; then
10939 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10940if test "${with_gtk_prefix+set}" = set; then
10941 withval="$with_gtk_prefix"
10942 gtk_config_prefix="$withval"
10943else
10944 gtk_config_prefix=""
10945fi
10946
10947# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10948if test "${with_gtk_exec_prefix+set}" = set; then
10949 withval="$with_gtk_exec_prefix"
10950 gtk_config_exec_prefix="$withval"
10951else
10952 gtk_config_exec_prefix=""
10953fi
10954
10955# Check whether --enable-gtktest or --disable-gtktest was given.
10956if test "${enable_gtktest+set}" = set; then
10957 enableval="$enable_gtktest"
10958 :
10959else
10960 enable_gtktest=yes
10961fi
10962
10963
10964 for module in . $GTK_MODULES
10965 do
10966 case "$module" in
10967 gthread)
10968 gtk_config_args="$gtk_config_args gthread"
10969 ;;
10970 esac
10971 done
10972
10973 if test x$gtk_config_exec_prefix != x ; then
10974 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10975 if test x${GTK_CONFIG+set} != xset ; then
10976 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10977 fi
10978 fi
10979 if test x$gtk_config_prefix != x ; then
10980 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10981 if test x${GTK_CONFIG+set} != xset ; then
10982 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10983 fi
10984 fi
10985
10986 # Extract the first word of "gtk-config", so it can be a program name with args.
10987set dummy gtk-config; ac_word=$2
10988echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10989echo "configure:10990: checking for $ac_word" >&5
10990if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10991 echo $ac_n "(cached) $ac_c" 1>&6
10992else
10993 case "$GTK_CONFIG" in
10994 /*)
10995 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10996 ;;
10997 ?:/*)
10998 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10999 ;;
11000 *)
11001 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11002 ac_dummy="$PATH"
11003 for ac_dir in $ac_dummy; do
11004 test -z "$ac_dir" && ac_dir=.
11005 if test -f $ac_dir/$ac_word; then
11006 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
11007 break
11008 fi
11009 done
11010 IFS="$ac_save_ifs"
11011 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
11012 ;;
11013esac
11014fi
11015GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
11016if test -n "$GTK_CONFIG"; then
11017 echo "$ac_t""$GTK_CONFIG" 1>&6
11018else
11019 echo "$ac_t""no" 1>&6
11020fi
11021
11022 min_gtk_version=1.2.3
11023 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
11024echo "configure:11025: checking for GTK - version >= $min_gtk_version" >&5
11025 no_gtk=""
11026 if test "$GTK_CONFIG" = "no" ; then
11027 no_gtk=yes
11028 else
11029 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
11030 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
11031 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
11032 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11033 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
11034 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11035 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
11036 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11037 if test "x$enable_gtktest" = "xyes" ; then
11038 ac_save_CFLAGS="$CFLAGS"
11039 ac_save_LIBS="$LIBS"
11040 CFLAGS="$CFLAGS $GTK_CFLAGS"
11041 LIBS="$GTK_LIBS $LIBS"
11042 rm -f conf.gtktest
11043 if test "$cross_compiling" = yes; then
11044 echo $ac_n "cross compiling; assumed OK... $ac_c"
11045else
11046 cat > conftest.$ac_ext <<EOF
11047#line 11048 "configure"
11048#include "confdefs.h"
11049
11050#include <gtk/gtk.h>
11051#include <stdio.h>
11052#include <stdlib.h>
11053
11054int
11055main ()
11056{
11057 int major, minor, micro;
11058 char *tmp_version;
11059
11060 system ("touch conf.gtktest");
11061
11062 /* HP/UX 9 (%@#!) writes to sscanf strings */
11063 tmp_version = g_strdup("$min_gtk_version");
11064 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11065 printf("%s, bad version string\n", "$min_gtk_version");
11066 exit(1);
11067 }
11068
11069 if ((gtk_major_version != $gtk_config_major_version) ||
11070 (gtk_minor_version != $gtk_config_minor_version) ||
11071 (gtk_micro_version != $gtk_config_micro_version))
11072 {
11073 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
11074 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11075 gtk_major_version, gtk_minor_version, gtk_micro_version);
11076 printf ("*** was found! If gtk-config was correct, then it is best\n");
11077 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11078 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11079 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11080 printf("*** required on your system.\n");
11081 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
11082 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
11083 printf("*** before re-running configure\n");
11084 }
11085#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
11086 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11087 (gtk_minor_version != GTK_MINOR_VERSION) ||
11088 (gtk_micro_version != GTK_MICRO_VERSION))
11089 {
11090 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11091 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11092 printf("*** library (version %d.%d.%d)\n",
11093 gtk_major_version, gtk_minor_version, gtk_micro_version);
11094 }
11095#endif /* defined (GTK_MAJOR_VERSION) ... */
11096 else
11097 {
11098 if ((gtk_major_version > major) ||
11099 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11100 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11101 {
11102 return 0;
11103 }
11104 else
11105 {
11106 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11107 gtk_major_version, gtk_minor_version, gtk_micro_version);
11108 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11109 major, minor, micro);
11110 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11111 printf("***\n");
11112 printf("*** If you have already installed a sufficiently new version, this error\n");
11113 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
11114 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11115 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
11116 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
11117 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11118 printf("*** so that the correct libraries are found at run-time))\n");
11119 }
11120 }
11121 return 1;
11122}
11123
11124EOF
11125if { (eval echo configure:11126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11126then
11127 :
11128else
11129 echo "configure: failed program was:" >&5
11130 cat conftest.$ac_ext >&5
11131 rm -fr conftest*
11132 no_gtk=yes
11133fi
11134rm -fr conftest*
11135fi
11136
11137 CFLAGS="$ac_save_CFLAGS"
11138 LIBS="$ac_save_LIBS"
11139 fi
11140 fi
11141 if test "x$no_gtk" = x ; then
11142 echo "$ac_t""yes" 1>&6
11143 wx_cv_lib_gtk=1.2.3
11144 else
11145 echo "$ac_t""no" 1>&6
11146 if test "$GTK_CONFIG" = "no" ; then
11147 echo "*** The gtk-config script installed by GTK could not be found"
11148 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
11149 echo "*** your path, or set the GTK_CONFIG environment variable to the"
11150 echo "*** full path to gtk-config."
11151 else
11152 if test -f conf.gtktest ; then
11153 :
11154 else
11155 echo "*** Could not run GTK test program, checking why..."
11156 CFLAGS="$CFLAGS $GTK_CFLAGS"
11157 LIBS="$LIBS $GTK_LIBS"
11158 cat > conftest.$ac_ext <<EOF
11159#line 11160 "configure"
11160#include "confdefs.h"
11161
11162#include <gtk/gtk.h>
11163#include <stdio.h>
11164
11165int main() {
11166 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
11167; return 0; }
11168EOF
11169if { (eval echo configure:11170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11170 rm -rf conftest*
11171 echo "*** The test program compiled, but did not run. This usually means"
11172 echo "*** that the run-time linker is not finding GTK or finding the wrong"
11173 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
11174 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11175 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11176 echo "*** is required on your system"
11177 echo "***"
11178 echo "*** If you have an old version installed, it is best to remove it, although"
11179 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11180 echo "***"
11181 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
11182 echo "*** came with the system with the command"
11183 echo "***"
11184 echo "*** rpm --erase --nodeps gtk gtk-devel"
11185else
11186 echo "configure: failed program was:" >&5
11187 cat conftest.$ac_ext >&5
11188 rm -rf conftest*
11189 echo "*** The test program failed to compile or link. See the file config.log for the"
11190 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
11191 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
11192 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
11193fi
11194rm -f conftest*
11195 CFLAGS="$ac_save_CFLAGS"
11196 LIBS="$ac_save_LIBS"
11197 fi
11198 fi
11199 GTK_CFLAGS=""
11200 GTK_LIBS=""
11201 :
11202 fi
11203
11204
11205 rm -f conf.gtktest
11206
11207 fi
11208
11209 if test -z "$wx_cv_lib_gtk"; then
11210 wx_cv_lib_gtk=none
11211 else
11212 wx_cv_cflags_gtk=$GTK_CFLAGS
11213 wx_cv_libs_gtk=$GTK_LIBS
11214 fi
11215
11216
11217fi
11218
11219
11220 if test "$gtk_version_cached" = 1; then
11221 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
11222 fi
11223
11224 case "$wx_cv_lib_gtk" in
11225 2.0) WXGTK20=1
11226 ;;
11227 1.2.7) WXGTK127=1
11228 WXGTK12=1
11229 ;;
11230 1.2.3) WXGTK12=1
11231 ;;
11232 *) { echo "configure: error:
11233Please check that gtk-config is in path, the directory
11234where GTK+ libraries are installed (returned by
11235'gtk-config --libs' command) is in LD_LIBRARY_PATH or
11236equivalent variable and GTK+ is version 1.2.3 or above.
11237 " 1>&2; exit 1; }
11238 ;;
11239 esac
11240
11241 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11242 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
11243
11244 AFMINSTALL=afminstall
11245 TOOLKIT=GTK
11246 GUIDIST=GTK_DIST
11247
11248 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
11249echo "configure:11250: checking for gdk_im_open in -lgdk" >&5
11250ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
11251if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11252 echo $ac_n "(cached) $ac_c" 1>&6
11253else
11254 ac_save_LIBS="$LIBS"
11255LIBS="-lgdk $LIBS"
11256cat > conftest.$ac_ext <<EOF
11257#line 11258 "configure"
11258#include "confdefs.h"
11259/* Override any gcc2 internal prototype to avoid an error. */
11260/* We use char because int might match the return type of a gcc2
11261 builtin and then its argument prototype would still apply. */
11262char gdk_im_open();
11263
11264int main() {
11265gdk_im_open()
11266; return 0; }
11267EOF
11268if { (eval echo configure:11269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11269 rm -rf conftest*
11270 eval "ac_cv_lib_$ac_lib_var=yes"
11271else
11272 echo "configure: failed program was:" >&5
11273 cat conftest.$ac_ext >&5
11274 rm -rf conftest*
11275 eval "ac_cv_lib_$ac_lib_var=no"
11276fi
11277rm -f conftest*
11278LIBS="$ac_save_LIBS"
11279
11280fi
11281if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11282 echo "$ac_t""yes" 1>&6
11283 cat >> confdefs.h <<\EOF
11284#define HAVE_XIM 1
11285EOF
11286
11287else
11288 echo "$ac_t""no" 1>&6
11289fi
11290
11291 fi
11292
11293 if test "$wxUSE_MGL" = 1; then
11294 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
11295echo "configure:11296: checking for SciTech MGL library" >&5
11296 if test "x$MGL_ROOT" = x ; then
11297 echo "$ac_t""not found" 1>&6
11298 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
11299 else
11300 echo "$ac_t""$MGL_ROOT" 1>&6
11301 fi
11302
11303 case "${host}" in
11304 *-*-linux* )
11305 mgl_os=linux/gcc/glibc
11306 ;;
11307 *-pc-msdosdjgpp )
11308 mgl_os=dos32/dj2
11309 ;;
11310 *)
11311 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
11312 esac
11313
11314 mgl_lib_type=""
11315
11316 if test "$wxUSE_DEBUG_FLAG" = yes ; then
11317 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
11318 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
11319 mgl_lib_type=debug
11320 fi
11321 fi
11322 if test "x$mgl_lib_type" = x ; then
11323 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
11324 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
11325 mgl_lib_type=release
11326 else
11327 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
11328 fi
11329 fi
11330
11331 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
11332 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
11333
11334 AFMINSTALL=afminstall
11335 TOOLKIT=MGL
11336 GUIDIST=MGL_DIST
11337 fi
11338
11339 if test "$wxUSE_MICROWIN" = 1; then
11340 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
11341echo "configure:11342: checking for MicroWindows" >&5
11342 if test "x$MICROWINDOWS" = x ; then
11343 echo "$ac_t""not found" 1>&6
11344 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
11345 else
11346 echo "$ac_t""$MICROWINDOWS" 1>&6
11347 fi
11348
11349 if test -f $MICROWINDOWS/lib/libmwin.a; then
11350 echo "$ac_t""MicroWindows' libraries found." 1>&6
11351 else
11352 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
11353 fi
11354
11355 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
11356 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
11357
11358 AFMINSTALL=afminstall
11359 TOOLKIT=MICROWIN
11360 GUIDIST=MICROWIN_DIST
11361
11362 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
11363 fi
11364
11365 if test "$wxUSE_X11" = 1; then
11366 # If we find X, set shell vars x_includes and x_libraries to the
11367# paths, otherwise set no_x=yes.
11368# Uses ac_ vars as temps to allow command line to override cache and checks.
11369# --without-x overrides everything else, but does not touch the cache.
11370echo $ac_n "checking for X""... $ac_c" 1>&6
11371echo "configure:11372: checking for X" >&5
11372
11373# Check whether --with-x or --without-x was given.
11374if test "${with_x+set}" = set; then
11375 withval="$with_x"
11376 :
11377fi
11378
11379# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11380if test "x$with_x" = xno; then
11381 # The user explicitly disabled X.
11382 have_x=disabled
11383else
11384 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11385 # Both variables are already set.
11386 have_x=yes
11387 else
11388if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
11389 echo $ac_n "(cached) $ac_c" 1>&6
11390else
11391 # One or both of the vars are not set, and there is no cached value.
11392ac_x_includes=NO ac_x_libraries=NO
11393rm -fr conftestdir
11394if mkdir conftestdir; then
11395 cd conftestdir
11396 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
11397 cat > Imakefile <<'EOF'
11398acfindx:
11399 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11400EOF
11401 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11402 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11403 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11404 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11405 for ac_extension in a so sl; do
11406 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
11407 test -f $ac_im_libdir/libX11.$ac_extension; then
11408 ac_im_usrlibdir=$ac_im_libdir; break
11409 fi
11410 done
11411 # Screen out bogus values from the imake configuration. They are
11412 # bogus both because they are the default anyway, and because
11413 # using them would break gcc on systems where it needs fixed includes.
11414 case "$ac_im_incroot" in
11415 /usr/include) ;;
11416 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
11417 esac
11418 case "$ac_im_usrlibdir" in
11419 /usr/lib | /lib) ;;
11420 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
11421 esac
11422 fi
11423 cd ..
11424 rm -fr conftestdir
11425fi
11426
11427if test "$ac_x_includes" = NO; then
11428 # Guess where to find include files, by looking for this one X11 .h file.
11429 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
11430
11431 # First, try using that file with no special directory specified.
11432cat > conftest.$ac_ext <<EOF
11433#line 11434 "configure"
11434#include "confdefs.h"
11435#include <$x_direct_test_include>
11436EOF
11437ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11438{ (eval echo configure:11439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11439ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11440if test -z "$ac_err"; then
11441 rm -rf conftest*
11442 # We can compile using X headers with no special include directory.
11443ac_x_includes=
11444else
11445 echo "$ac_err" >&5
11446 echo "configure: failed program was:" >&5
11447 cat conftest.$ac_ext >&5
11448 rm -rf conftest*
11449 # Look for the header file in a standard set of common directories.
11450# Check X11 before X11Rn because it is often a symlink to the current release.
11451 for ac_dir in \
11452 /usr/X11/include \
11453 /usr/X11R6/include \
11454 /usr/X11R5/include \
11455 /usr/X11R4/include \
11456 \
11457 /usr/include/X11 \
11458 /usr/include/X11R6 \
11459 /usr/include/X11R5 \
11460 /usr/include/X11R4 \
11461 \
11462 /usr/local/X11/include \
11463 /usr/local/X11R6/include \
11464 /usr/local/X11R5/include \
11465 /usr/local/X11R4/include \
11466 \
11467 /usr/local/include/X11 \
11468 /usr/local/include/X11R6 \
11469 /usr/local/include/X11R5 \
11470 /usr/local/include/X11R4 \
11471 \
11472 /usr/X386/include \
11473 /usr/x386/include \
11474 /usr/XFree86/include/X11 \
11475 \
11476 /usr/include \
11477 /usr/local/include \
11478 /usr/unsupported/include \
11479 /usr/athena/include \
11480 /usr/local/x11r5/include \
11481 /usr/lpp/Xamples/include \
11482 \
11483 /usr/openwin/include \
11484 /usr/openwin/share/include \
11485 ; \
11486 do
11487 if test -r "$ac_dir/$x_direct_test_include"; then
11488 ac_x_includes=$ac_dir
11489 break
11490 fi
11491 done
11492fi
11493rm -f conftest*
11494fi # $ac_x_includes = NO
11495
11496if test "$ac_x_libraries" = NO; then
11497 # Check for the libraries.
11498
11499 test -z "$x_direct_test_library" && x_direct_test_library=Xt
11500 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
11501
11502 # See if we find them without any special options.
11503 # Don't add to $LIBS permanently.
11504 ac_save_LIBS="$LIBS"
11505 LIBS="-l$x_direct_test_library $LIBS"
11506cat > conftest.$ac_ext <<EOF
11507#line 11508 "configure"
11508#include "confdefs.h"
11509
11510int main() {
11511${x_direct_test_function}()
11512; return 0; }
11513EOF
11514if { (eval echo configure:11515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11515 rm -rf conftest*
11516 LIBS="$ac_save_LIBS"
11517# We can link X programs with no special library path.
11518ac_x_libraries=
11519else
11520 echo "configure: failed program was:" >&5
11521 cat conftest.$ac_ext >&5
11522 rm -rf conftest*
11523 LIBS="$ac_save_LIBS"
11524# First see if replacing the include by lib works.
11525# Check X11 before X11Rn because it is often a symlink to the current release.
11526for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
11527 /usr/X11/lib \
11528 /usr/X11R6/lib \
11529 /usr/X11R5/lib \
11530 /usr/X11R4/lib \
11531 \
11532 /usr/lib/X11 \
11533 /usr/lib/X11R6 \
11534 /usr/lib/X11R5 \
11535 /usr/lib/X11R4 \
11536 \
11537 /usr/local/X11/lib \
11538 /usr/local/X11R6/lib \
11539 /usr/local/X11R5/lib \
11540 /usr/local/X11R4/lib \
11541 \
11542 /usr/local/lib/X11 \
11543 /usr/local/lib/X11R6 \
11544 /usr/local/lib/X11R5 \
11545 /usr/local/lib/X11R4 \
11546 \
11547 /usr/X386/lib \
11548 /usr/x386/lib \
11549 /usr/XFree86/lib/X11 \
11550 \
11551 /usr/lib \
11552 /usr/local/lib \
11553 /usr/unsupported/lib \
11554 /usr/athena/lib \
11555 /usr/local/x11r5/lib \
11556 /usr/lpp/Xamples/lib \
11557 /lib/usr/lib/X11 \
11558 \
11559 /usr/openwin/lib \
11560 /usr/openwin/share/lib \
11561 ; \
11562do
11563 for ac_extension in a so sl; do
11564 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
11565 ac_x_libraries=$ac_dir
11566 break 2
11567 fi
11568 done
11569done
11570fi
11571rm -f conftest*
11572fi # $ac_x_libraries = NO
11573
11574if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
11575 # Didn't find X anywhere. Cache the known absence of X.
11576 ac_cv_have_x="have_x=no"
11577else
11578 # Record where we found X for the cache.
11579 ac_cv_have_x="have_x=yes \
11580 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11581fi
11582fi
11583 fi
11584 eval "$ac_cv_have_x"
11585fi # $with_x != no
11586
11587if test "$have_x" != yes; then
11588 echo "$ac_t""$have_x" 1>&6
11589 no_x=yes
11590else
11591 # If each of the values was on the command line, it overrides each guess.
11592 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11593 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11594 # Update the cache value to reflect the command line values.
11595 ac_cv_have_x="have_x=yes \
11596 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
11597 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
11598fi
11599
11600if test "$no_x" = yes; then
11601 # Not all programs may use this symbol, but it does not hurt to define it.
11602 cat >> confdefs.h <<\EOF
11603#define X_DISPLAY_MISSING 1
11604EOF
11605
11606 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11607else
11608 if test -n "$x_includes"; then
11609 X_CFLAGS="$X_CFLAGS -I$x_includes"
11610 fi
11611
11612 # It would also be nice to do this for all -L options, not just this one.
11613 if test -n "$x_libraries"; then
11614 X_LIBS="$X_LIBS -L$x_libraries"
11615 # For Solaris; some versions of Sun CC require a space after -R and
11616 # others require no space. Words are not sufficient . . . .
11617 case "`(uname -sr) 2>/dev/null`" in
11618 "SunOS 5"*)
11619 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
11620echo "configure:11621: checking whether -R must be followed by a space" >&5
11621 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
11622 cat > conftest.$ac_ext <<EOF
11623#line 11624 "configure"
11624#include "confdefs.h"
11625
11626int main() {
11627
11628; return 0; }
11629EOF
11630if { (eval echo configure:11631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11631 rm -rf conftest*
11632 ac_R_nospace=yes
11633else
11634 echo "configure: failed program was:" >&5
11635 cat conftest.$ac_ext >&5
11636 rm -rf conftest*
11637 ac_R_nospace=no
11638fi
11639rm -f conftest*
11640 if test $ac_R_nospace = yes; then
11641 echo "$ac_t""no" 1>&6
11642 X_LIBS="$X_LIBS -R$x_libraries"
11643 else
11644 LIBS="$ac_xsave_LIBS -R $x_libraries"
11645 cat > conftest.$ac_ext <<EOF
11646#line 11647 "configure"
11647#include "confdefs.h"
11648
11649int main() {
11650
11651; return 0; }
11652EOF
11653if { (eval echo configure:11654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11654 rm -rf conftest*
11655 ac_R_space=yes
11656else
11657 echo "configure: failed program was:" >&5
11658 cat conftest.$ac_ext >&5
11659 rm -rf conftest*
11660 ac_R_space=no
11661fi
11662rm -f conftest*
11663 if test $ac_R_space = yes; then
11664 echo "$ac_t""yes" 1>&6
11665 X_LIBS="$X_LIBS -R $x_libraries"
11666 else
11667 echo "$ac_t""neither works" 1>&6
11668 fi
11669 fi
11670 LIBS="$ac_xsave_LIBS"
11671 esac
11672 fi
11673
11674 # Check for system-dependent libraries X programs must link with.
11675 # Do this before checking for the system-independent R6 libraries
11676 # (-lICE), since we may need -lsocket or whatever for X linking.
11677
11678 if test "$ISC" = yes; then
11679 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11680 else
11681 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
11682 # libraries were built with DECnet support. And karl@cs.umb.edu says
11683 # the Alpha needs dnet_stub (dnet does not exist).
11684 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
11685echo "configure:11686: checking for dnet_ntoa in -ldnet" >&5
11686ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11687if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11688 echo $ac_n "(cached) $ac_c" 1>&6
11689else
11690 ac_save_LIBS="$LIBS"
11691LIBS="-ldnet $LIBS"
11692cat > conftest.$ac_ext <<EOF
11693#line 11694 "configure"
11694#include "confdefs.h"
11695/* Override any gcc2 internal prototype to avoid an error. */
11696/* We use char because int might match the return type of a gcc2
11697 builtin and then its argument prototype would still apply. */
11698char dnet_ntoa();
11699
11700int main() {
11701dnet_ntoa()
11702; return 0; }
11703EOF
11704if { (eval echo configure:11705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11705 rm -rf conftest*
11706 eval "ac_cv_lib_$ac_lib_var=yes"
11707else
11708 echo "configure: failed program was:" >&5
11709 cat conftest.$ac_ext >&5
11710 rm -rf conftest*
11711 eval "ac_cv_lib_$ac_lib_var=no"
11712fi
11713rm -f conftest*
11714LIBS="$ac_save_LIBS"
11715
11716fi
11717if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11718 echo "$ac_t""yes" 1>&6
11719 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11720else
11721 echo "$ac_t""no" 1>&6
11722fi
11723
11724 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11725 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
11726echo "configure:11727: checking for dnet_ntoa in -ldnet_stub" >&5
11727ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11728if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11729 echo $ac_n "(cached) $ac_c" 1>&6
11730else
11731 ac_save_LIBS="$LIBS"
11732LIBS="-ldnet_stub $LIBS"
11733cat > conftest.$ac_ext <<EOF
11734#line 11735 "configure"
11735#include "confdefs.h"
11736/* Override any gcc2 internal prototype to avoid an error. */
11737/* We use char because int might match the return type of a gcc2
11738 builtin and then its argument prototype would still apply. */
11739char dnet_ntoa();
11740
11741int main() {
11742dnet_ntoa()
11743; return 0; }
11744EOF
11745if { (eval echo configure:11746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11746 rm -rf conftest*
11747 eval "ac_cv_lib_$ac_lib_var=yes"
11748else
11749 echo "configure: failed program was:" >&5
11750 cat conftest.$ac_ext >&5
11751 rm -rf conftest*
11752 eval "ac_cv_lib_$ac_lib_var=no"
11753fi
11754rm -f conftest*
11755LIBS="$ac_save_LIBS"
11756
11757fi
11758if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11759 echo "$ac_t""yes" 1>&6
11760 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
11761else
11762 echo "$ac_t""no" 1>&6
11763fi
11764
11765 fi
11766
11767 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11768 # to get the SysV transport functions.
11769 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
11770 # needs -lnsl.
11771 # The nsl library prevents programs from opening the X display
11772 # on Irix 5.2, according to dickey@clark.net.
11773 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
11774echo "configure:11775: checking for gethostbyname" >&5
11775if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
11776 echo $ac_n "(cached) $ac_c" 1>&6
11777else
11778 cat > conftest.$ac_ext <<EOF
11779#line 11780 "configure"
11780#include "confdefs.h"
11781/* System header to define __stub macros and hopefully few prototypes,
11782 which can conflict with char gethostbyname(); below. */
11783#include <assert.h>
11784/* Override any gcc2 internal prototype to avoid an error. */
11785/* We use char because int might match the return type of a gcc2
11786 builtin and then its argument prototype would still apply. */
11787char gethostbyname();
11788
11789int main() {
11790
11791/* The GNU C library defines this for functions which it implements
11792 to always fail with ENOSYS. Some functions are actually named
11793 something starting with __ and the normal name is an alias. */
11794#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11795choke me
11796#else
11797gethostbyname();
11798#endif
11799
11800; return 0; }
11801EOF
11802if { (eval echo configure:11803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11803 rm -rf conftest*
11804 eval "ac_cv_func_gethostbyname=yes"
11805else
11806 echo "configure: failed program was:" >&5
11807 cat conftest.$ac_ext >&5
11808 rm -rf conftest*
11809 eval "ac_cv_func_gethostbyname=no"
11810fi
11811rm -f conftest*
11812fi
11813
11814if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
11815 echo "$ac_t""yes" 1>&6
11816 :
11817else
11818 echo "$ac_t""no" 1>&6
11819fi
11820
11821 if test $ac_cv_func_gethostbyname = no; then
11822 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
11823echo "configure:11824: checking for gethostbyname in -lnsl" >&5
11824ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
11825if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11826 echo $ac_n "(cached) $ac_c" 1>&6
11827else
11828 ac_save_LIBS="$LIBS"
11829LIBS="-lnsl $LIBS"
11830cat > conftest.$ac_ext <<EOF
11831#line 11832 "configure"
11832#include "confdefs.h"
11833/* Override any gcc2 internal prototype to avoid an error. */
11834/* We use char because int might match the return type of a gcc2
11835 builtin and then its argument prototype would still apply. */
11836char gethostbyname();
11837
11838int main() {
11839gethostbyname()
11840; return 0; }
11841EOF
11842if { (eval echo configure:11843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11843 rm -rf conftest*
11844 eval "ac_cv_lib_$ac_lib_var=yes"
11845else
11846 echo "configure: failed program was:" >&5
11847 cat conftest.$ac_ext >&5
11848 rm -rf conftest*
11849 eval "ac_cv_lib_$ac_lib_var=no"
11850fi
11851rm -f conftest*
11852LIBS="$ac_save_LIBS"
11853
11854fi
11855if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11856 echo "$ac_t""yes" 1>&6
11857 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11858else
11859 echo "$ac_t""no" 1>&6
11860fi
11861
11862 fi
11863
11864 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11865 # socket/setsockopt and other routines are undefined under SCO ODT
11866 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
11867 # on later versions), says simon@lia.di.epfl.ch: it contains
11868 # gethostby* variants that don't use the nameserver (or something).
11869 # -lsocket must be given before -lnsl if both are needed.
11870 # We assume that if connect needs -lnsl, so does gethostbyname.
11871 echo $ac_n "checking for connect""... $ac_c" 1>&6
11872echo "configure:11873: checking for connect" >&5
11873if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
11874 echo $ac_n "(cached) $ac_c" 1>&6
11875else
11876 cat > conftest.$ac_ext <<EOF
11877#line 11878 "configure"
11878#include "confdefs.h"
11879/* System header to define __stub macros and hopefully few prototypes,
11880 which can conflict with char connect(); below. */
11881#include <assert.h>
11882/* Override any gcc2 internal prototype to avoid an error. */
11883/* We use char because int might match the return type of a gcc2
11884 builtin and then its argument prototype would still apply. */
11885char connect();
11886
11887int main() {
11888
11889/* The GNU C library defines this for functions which it implements
11890 to always fail with ENOSYS. Some functions are actually named
11891 something starting with __ and the normal name is an alias. */
11892#if defined (__stub_connect) || defined (__stub___connect)
11893choke me
11894#else
11895connect();
11896#endif
11897
11898; return 0; }
11899EOF
11900if { (eval echo configure:11901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11901 rm -rf conftest*
11902 eval "ac_cv_func_connect=yes"
11903else
11904 echo "configure: failed program was:" >&5
11905 cat conftest.$ac_ext >&5
11906 rm -rf conftest*
11907 eval "ac_cv_func_connect=no"
11908fi
11909rm -f conftest*
11910fi
11911
11912if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
11913 echo "$ac_t""yes" 1>&6
11914 :
11915else
11916 echo "$ac_t""no" 1>&6
11917fi
11918
11919 if test $ac_cv_func_connect = no; then
11920 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
11921echo "configure:11922: checking for connect in -lsocket" >&5
11922ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
11923if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11924 echo $ac_n "(cached) $ac_c" 1>&6
11925else
11926 ac_save_LIBS="$LIBS"
11927LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
11928cat > conftest.$ac_ext <<EOF
11929#line 11930 "configure"
11930#include "confdefs.h"
11931/* Override any gcc2 internal prototype to avoid an error. */
11932/* We use char because int might match the return type of a gcc2
11933 builtin and then its argument prototype would still apply. */
11934char connect();
11935
11936int main() {
11937connect()
11938; return 0; }
11939EOF
11940if { (eval echo configure:11941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11941 rm -rf conftest*
11942 eval "ac_cv_lib_$ac_lib_var=yes"
11943else
11944 echo "configure: failed program was:" >&5
11945 cat conftest.$ac_ext >&5
11946 rm -rf conftest*
11947 eval "ac_cv_lib_$ac_lib_var=no"
11948fi
11949rm -f conftest*
11950LIBS="$ac_save_LIBS"
11951
11952fi
11953if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11954 echo "$ac_t""yes" 1>&6
11955 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
11956else
11957 echo "$ac_t""no" 1>&6
11958fi
11959
11960 fi
11961
11962 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
11963 echo $ac_n "checking for remove""... $ac_c" 1>&6
11964echo "configure:11965: checking for remove" >&5
11965if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
11966 echo $ac_n "(cached) $ac_c" 1>&6
11967else
11968 cat > conftest.$ac_ext <<EOF
11969#line 11970 "configure"
11970#include "confdefs.h"
11971/* System header to define __stub macros and hopefully few prototypes,
11972 which can conflict with char remove(); below. */
11973#include <assert.h>
11974/* Override any gcc2 internal prototype to avoid an error. */
11975/* We use char because int might match the return type of a gcc2
11976 builtin and then its argument prototype would still apply. */
11977char remove();
11978
11979int main() {
11980
11981/* The GNU C library defines this for functions which it implements
11982 to always fail with ENOSYS. Some functions are actually named
11983 something starting with __ and the normal name is an alias. */
11984#if defined (__stub_remove) || defined (__stub___remove)
11985choke me
11986#else
11987remove();
11988#endif
11989
11990; return 0; }
11991EOF
11992if { (eval echo configure:11993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11993 rm -rf conftest*
11994 eval "ac_cv_func_remove=yes"
11995else
11996 echo "configure: failed program was:" >&5
11997 cat conftest.$ac_ext >&5
11998 rm -rf conftest*
11999 eval "ac_cv_func_remove=no"
12000fi
12001rm -f conftest*
12002fi
12003
12004if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
12005 echo "$ac_t""yes" 1>&6
12006 :
12007else
12008 echo "$ac_t""no" 1>&6
12009fi
12010
12011 if test $ac_cv_func_remove = no; then
12012 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
12013echo "configure:12014: checking for remove in -lposix" >&5
12014ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
12015if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12016 echo $ac_n "(cached) $ac_c" 1>&6
12017else
12018 ac_save_LIBS="$LIBS"
12019LIBS="-lposix $LIBS"
12020cat > conftest.$ac_ext <<EOF
12021#line 12022 "configure"
12022#include "confdefs.h"
12023/* Override any gcc2 internal prototype to avoid an error. */
12024/* We use char because int might match the return type of a gcc2
12025 builtin and then its argument prototype would still apply. */
12026char remove();
12027
12028int main() {
12029remove()
12030; return 0; }
12031EOF
12032if { (eval echo configure:12033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12033 rm -rf conftest*
12034 eval "ac_cv_lib_$ac_lib_var=yes"
12035else
12036 echo "configure: failed program was:" >&5
12037 cat conftest.$ac_ext >&5
12038 rm -rf conftest*
12039 eval "ac_cv_lib_$ac_lib_var=no"
12040fi
12041rm -f conftest*
12042LIBS="$ac_save_LIBS"
12043
12044fi
12045if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12046 echo "$ac_t""yes" 1>&6
12047 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12048else
12049 echo "$ac_t""no" 1>&6
12050fi
12051
12052 fi
12053
12054 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12055 echo $ac_n "checking for shmat""... $ac_c" 1>&6
12056echo "configure:12057: checking for shmat" >&5
12057if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
12058 echo $ac_n "(cached) $ac_c" 1>&6
12059else
12060 cat > conftest.$ac_ext <<EOF
12061#line 12062 "configure"
12062#include "confdefs.h"
12063/* System header to define __stub macros and hopefully few prototypes,
12064 which can conflict with char shmat(); below. */
12065#include <assert.h>
12066/* Override any gcc2 internal prototype to avoid an error. */
12067/* We use char because int might match the return type of a gcc2
12068 builtin and then its argument prototype would still apply. */
12069char shmat();
12070
12071int main() {
12072
12073/* The GNU C library defines this for functions which it implements
12074 to always fail with ENOSYS. Some functions are actually named
12075 something starting with __ and the normal name is an alias. */
12076#if defined (__stub_shmat) || defined (__stub___shmat)
12077choke me
12078#else
12079shmat();
12080#endif
12081
12082; return 0; }
12083EOF
12084if { (eval echo configure:12085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12085 rm -rf conftest*
12086 eval "ac_cv_func_shmat=yes"
12087else
12088 echo "configure: failed program was:" >&5
12089 cat conftest.$ac_ext >&5
12090 rm -rf conftest*
12091 eval "ac_cv_func_shmat=no"
12092fi
12093rm -f conftest*
12094fi
12095
12096if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
12097 echo "$ac_t""yes" 1>&6
12098 :
12099else
12100 echo "$ac_t""no" 1>&6
12101fi
12102
12103 if test $ac_cv_func_shmat = no; then
12104 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
12105echo "configure:12106: checking for shmat in -lipc" >&5
12106ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
12107if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12108 echo $ac_n "(cached) $ac_c" 1>&6
12109else
12110 ac_save_LIBS="$LIBS"
12111LIBS="-lipc $LIBS"
12112cat > conftest.$ac_ext <<EOF
12113#line 12114 "configure"
12114#include "confdefs.h"
12115/* Override any gcc2 internal prototype to avoid an error. */
12116/* We use char because int might match the return type of a gcc2
12117 builtin and then its argument prototype would still apply. */
12118char shmat();
12119
12120int main() {
12121shmat()
12122; return 0; }
12123EOF
12124if { (eval echo configure:12125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12125 rm -rf conftest*
12126 eval "ac_cv_lib_$ac_lib_var=yes"
12127else
12128 echo "configure: failed program was:" >&5
12129 cat conftest.$ac_ext >&5
12130 rm -rf conftest*
12131 eval "ac_cv_lib_$ac_lib_var=no"
12132fi
12133rm -f conftest*
12134LIBS="$ac_save_LIBS"
12135
12136fi
12137if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12138 echo "$ac_t""yes" 1>&6
12139 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12140else
12141 echo "$ac_t""no" 1>&6
12142fi
12143
12144 fi
12145 fi
12146
12147 # Check for libraries that X11R6 Xt/Xaw programs need.
12148 ac_save_LDFLAGS="$LDFLAGS"
12149 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12150 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12151 # check for ICE first), but we must link in the order -lSM -lICE or
12152 # we get undefined symbols. So assume we have SM if we have ICE.
12153 # These have to be linked with before -lX11, unlike the other
12154 # libraries we check for below, so use a different variable.
12155 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
12156 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
12157echo "configure:12158: checking for IceConnectionNumber in -lICE" >&5
12158ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
12159if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12160 echo $ac_n "(cached) $ac_c" 1>&6
12161else
12162 ac_save_LIBS="$LIBS"
12163LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12164cat > conftest.$ac_ext <<EOF
12165#line 12166 "configure"
12166#include "confdefs.h"
12167/* Override any gcc2 internal prototype to avoid an error. */
12168/* We use char because int might match the return type of a gcc2
12169 builtin and then its argument prototype would still apply. */
12170char IceConnectionNumber();
12171
12172int main() {
12173IceConnectionNumber()
12174; return 0; }
12175EOF
12176if { (eval echo configure:12177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12177 rm -rf conftest*
12178 eval "ac_cv_lib_$ac_lib_var=yes"
12179else
12180 echo "configure: failed program was:" >&5
12181 cat conftest.$ac_ext >&5
12182 rm -rf conftest*
12183 eval "ac_cv_lib_$ac_lib_var=no"
12184fi
12185rm -f conftest*
12186LIBS="$ac_save_LIBS"
12187
12188fi
12189if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12190 echo "$ac_t""yes" 1>&6
12191 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12192else
12193 echo "$ac_t""no" 1>&6
12194fi
12195
12196 LDFLAGS="$ac_save_LDFLAGS"
12197
12198fi
12199
12200
12201 if test "$no_x" = "yes"; then
12202 { echo "configure: error: X11 not found" 1>&2; exit 1; }
12203 fi
12204
12205 GUI_TK_LIBRARY="$X_LIBS"
12206 TOOLKIT_INCLUDE="$X_CFLAGS"
12207 AFMINSTALL=afminstall
12208 COMPILED_X_PROGRAM=0
12209
12210 if test "$wxUSE_NANOX" = "yes"; then
12211 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
12212echo "configure:12213: checking for MicroWindows/NanoX distribution" >&5
12213 if test "x$MICROWIN" = x ; then
12214 echo "$ac_t""not found" 1>&6
12215 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
12216 else
12217 echo "$ac_t""$MICROWIN" 1>&6
12218 fi
12219 fi
12220
12221 xpm_link=
12222 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
12223echo "configure:12224: checking for Xpm library" >&5
12224
12225ac_find_libraries=
12226for ac_dir in $SEARCH_LIB;
12227 do
12228 for ac_extension in a so sl dylib; do
12229 if test -f "$ac_dir/libXpm.$ac_extension"; then
12230 ac_find_libraries=$ac_dir
12231 break 2
12232 fi
12233 done
12234 done
12235
12236 if test "$ac_find_libraries" != "" ; then
12237
12238 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12239 result=$?
12240 if test $result = 0; then
12241 ac_path_to_link=""
12242 else
12243 ac_path_to_link=" -L$ac_find_libraries"
12244 fi
12245
12246 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
12247 xpm_link=" -lXpm"
12248 cat >> confdefs.h <<\EOF
12249#define wxHAVE_LIB_XPM 1
12250EOF
12251
12252 echo "$ac_t""found at $ac_find_libraries" 1>&6
12253 else
12254 cat > conftest.$ac_ext <<EOF
12255#line 12256 "configure"
12256#include "confdefs.h"
12257
12258 #include <X11/xpm.h>
12259
12260int main() {
12261
12262 int version;
12263 version = XpmLibraryVersion();
12264
12265; return 0; }
12266EOF
12267if { (eval echo configure:12268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12268 rm -rf conftest*
12269
12270 xpm_link=" -lXpm"
12271 cat >> confdefs.h <<\EOF
12272#define wxHAVE_LIB_XPM 1
12273EOF
12274
12275 echo "$ac_t""found in default search path" 1>&6
12276 COMPILED_X_PROGRAM=0
12277
12278else
12279 echo "configure: failed program was:" >&5
12280 cat conftest.$ac_ext >&5
12281 rm -rf conftest*
12282
12283 echo "$ac_t""no" 1>&6
12284 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12285
12286
12287fi
12288rm -f conftest*
12289 fi
12290
12291 if test "$wxUSE_NANOX" = "yes"; then
12292 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
12293 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__"
12294 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$MICROWIN/src/lib/libnano-X.a \$MICROWIN/src/lib/libmwengine.a \$MICROWIN/src/lib/libmwfonts.a \$MICROWIN/src/lib/libmwdrivers.a \$MICROWIN/src/lib/libmwobjects.a"
12295 else
12296 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
12297 fi
12298
12299 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
12300 TOOLKIT=X11
12301 GUIDIST=X11_DIST
12302 fi
12303
12304 if test "$wxUSE_WINE" = 1; then
12305 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12306echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12307echo "configure:12308: checking for windows.h" >&5
12308if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12309 echo $ac_n "(cached) $ac_c" 1>&6
12310else
12311 cat > conftest.$ac_ext <<EOF
12312#line 12313 "configure"
12313#include "confdefs.h"
12314#include <windows.h>
12315EOF
12316ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12317{ (eval echo configure:12318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12318ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12319if test -z "$ac_err"; then
12320 rm -rf conftest*
12321 eval "ac_cv_header_$ac_safe=yes"
12322else
12323 echo "$ac_err" >&5
12324 echo "configure: failed program was:" >&5
12325 cat conftest.$ac_ext >&5
12326 rm -rf conftest*
12327 eval "ac_cv_header_$ac_safe=no"
12328fi
12329rm -f conftest*
12330fi
12331if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12332 echo "$ac_t""yes" 1>&6
12333 :
12334else
12335 echo "$ac_t""no" 1>&6
12336
12337 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12338
12339fi
12340
12341
12342 xpm_link=
12343 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
12344echo "configure:12345: checking for Xpm library" >&5
12345
12346ac_find_libraries=
12347for ac_dir in $SEARCH_LIB;
12348 do
12349 for ac_extension in a so sl dylib; do
12350 if test -f "$ac_dir/libXpm.$ac_extension"; then
12351 ac_find_libraries=$ac_dir
12352 break 2
12353 fi
12354 done
12355 done
12356
12357 if test "$ac_find_libraries" != "" ; then
12358 GUI_TK_LIBRARY="-L$ac_find_libraries"
12359 xpm_link=" -lXpm"
12360 cat >> confdefs.h <<\EOF
12361#define wxHAVE_LIB_XPM 1
12362EOF
12363
12364 echo "$ac_t""found at $ac_find_libraries" 1>&6
12365 else
12366 echo "$ac_t""no" 1>&6
12367 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12368 fi
12369
12370 mesa_link=
12371 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
12372echo "configure:12373: checking for Mesa library" >&5
12373
12374ac_find_libraries=
12375for ac_dir in $SEARCH_LIB;
12376 do
12377 for ac_extension in a so sl dylib; do
12378 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
12379 ac_find_libraries=$ac_dir
12380 break 2
12381 fi
12382 done
12383 done
12384
12385 if test "$ac_find_libraries" != "" ; then
12386 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
12387 mesa_link=" -lMesaGL"
12388 echo "$ac_t""found at $ac_find_libraries" 1>&6
12389 else
12390 { echo "configure: error: no" 1>&2; exit 1; }
12391 fi
12392
12393 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
12394 TOOLKIT=MSW
12395 GUIDIST=MSW_DIST
12396 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
12397 fi
12398
12399 if test "$wxUSE_MOTIF" = 1; then
12400 if test "$no_x" = yes; then
12401 # Not all programs may use this symbol, but it does not hurt to define it.
12402 cat >> confdefs.h <<\EOF
12403#define X_DISPLAY_MISSING 1
12404EOF
12405
12406 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12407else
12408 if test -n "$x_includes"; then
12409 X_CFLAGS="$X_CFLAGS -I$x_includes"
12410 fi
12411
12412 # It would also be nice to do this for all -L options, not just this one.
12413 if test -n "$x_libraries"; then
12414 X_LIBS="$X_LIBS -L$x_libraries"
12415 # For Solaris; some versions of Sun CC require a space after -R and
12416 # others require no space. Words are not sufficient . . . .
12417 case "`(uname -sr) 2>/dev/null`" in
12418 "SunOS 5"*)
12419 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
12420echo "configure:12421: checking whether -R must be followed by a space" >&5
12421 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
12422 cat > conftest.$ac_ext <<EOF
12423#line 12424 "configure"
12424#include "confdefs.h"
12425
12426int main() {
12427
12428; return 0; }
12429EOF
12430if { (eval echo configure:12431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12431 rm -rf conftest*
12432 ac_R_nospace=yes
12433else
12434 echo "configure: failed program was:" >&5
12435 cat conftest.$ac_ext >&5
12436 rm -rf conftest*
12437 ac_R_nospace=no
12438fi
12439rm -f conftest*
12440 if test $ac_R_nospace = yes; then
12441 echo "$ac_t""no" 1>&6
12442 X_LIBS="$X_LIBS -R$x_libraries"
12443 else
12444 LIBS="$ac_xsave_LIBS -R $x_libraries"
12445 cat > conftest.$ac_ext <<EOF
12446#line 12447 "configure"
12447#include "confdefs.h"
12448
12449int main() {
12450
12451; return 0; }
12452EOF
12453if { (eval echo configure:12454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12454 rm -rf conftest*
12455 ac_R_space=yes
12456else
12457 echo "configure: failed program was:" >&5
12458 cat conftest.$ac_ext >&5
12459 rm -rf conftest*
12460 ac_R_space=no
12461fi
12462rm -f conftest*
12463 if test $ac_R_space = yes; then
12464 echo "$ac_t""yes" 1>&6
12465 X_LIBS="$X_LIBS -R $x_libraries"
12466 else
12467 echo "$ac_t""neither works" 1>&6
12468 fi
12469 fi
12470 LIBS="$ac_xsave_LIBS"
12471 esac
12472 fi
12473
12474 # Check for system-dependent libraries X programs must link with.
12475 # Do this before checking for the system-independent R6 libraries
12476 # (-lICE), since we may need -lsocket or whatever for X linking.
12477
12478 if test "$ISC" = yes; then
12479 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12480 else
12481 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
12482 # libraries were built with DECnet support. And karl@cs.umb.edu says
12483 # the Alpha needs dnet_stub (dnet does not exist).
12484 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
12485echo "configure:12486: checking for dnet_ntoa in -ldnet" >&5
12486ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
12487if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12488 echo $ac_n "(cached) $ac_c" 1>&6
12489else
12490 ac_save_LIBS="$LIBS"
12491LIBS="-ldnet $LIBS"
12492cat > conftest.$ac_ext <<EOF
12493#line 12494 "configure"
12494#include "confdefs.h"
12495/* Override any gcc2 internal prototype to avoid an error. */
12496/* We use char because int might match the return type of a gcc2
12497 builtin and then its argument prototype would still apply. */
12498char dnet_ntoa();
12499
12500int main() {
12501dnet_ntoa()
12502; return 0; }
12503EOF
12504if { (eval echo configure:12505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12505 rm -rf conftest*
12506 eval "ac_cv_lib_$ac_lib_var=yes"
12507else
12508 echo "configure: failed program was:" >&5
12509 cat conftest.$ac_ext >&5
12510 rm -rf conftest*
12511 eval "ac_cv_lib_$ac_lib_var=no"
12512fi
12513rm -f conftest*
12514LIBS="$ac_save_LIBS"
12515
12516fi
12517if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12518 echo "$ac_t""yes" 1>&6
12519 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12520else
12521 echo "$ac_t""no" 1>&6
12522fi
12523
12524 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12525 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
12526echo "configure:12527: checking for dnet_ntoa in -ldnet_stub" >&5
12527ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
12528if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12529 echo $ac_n "(cached) $ac_c" 1>&6
12530else
12531 ac_save_LIBS="$LIBS"
12532LIBS="-ldnet_stub $LIBS"
12533cat > conftest.$ac_ext <<EOF
12534#line 12535 "configure"
12535#include "confdefs.h"
12536/* Override any gcc2 internal prototype to avoid an error. */
12537/* We use char because int might match the return type of a gcc2
12538 builtin and then its argument prototype would still apply. */
12539char dnet_ntoa();
12540
12541int main() {
12542dnet_ntoa()
12543; return 0; }
12544EOF
12545if { (eval echo configure:12546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12546 rm -rf conftest*
12547 eval "ac_cv_lib_$ac_lib_var=yes"
12548else
12549 echo "configure: failed program was:" >&5
12550 cat conftest.$ac_ext >&5
12551 rm -rf conftest*
12552 eval "ac_cv_lib_$ac_lib_var=no"
12553fi
12554rm -f conftest*
12555LIBS="$ac_save_LIBS"
12556
12557fi
12558if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12559 echo "$ac_t""yes" 1>&6
12560 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12561else
12562 echo "$ac_t""no" 1>&6
12563fi
12564
12565 fi
12566
12567 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12568 # to get the SysV transport functions.
12569 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
12570 # needs -lnsl.
12571 # The nsl library prevents programs from opening the X display
12572 # on Irix 5.2, according to dickey@clark.net.
12573 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
12574echo "configure:12575: checking for gethostbyname" >&5
12575if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
12576 echo $ac_n "(cached) $ac_c" 1>&6
12577else
12578 cat > conftest.$ac_ext <<EOF
12579#line 12580 "configure"
12580#include "confdefs.h"
12581/* System header to define __stub macros and hopefully few prototypes,
12582 which can conflict with char gethostbyname(); below. */
12583#include <assert.h>
12584/* Override any gcc2 internal prototype to avoid an error. */
12585/* We use char because int might match the return type of a gcc2
12586 builtin and then its argument prototype would still apply. */
12587char gethostbyname();
12588
12589int main() {
12590
12591/* The GNU C library defines this for functions which it implements
12592 to always fail with ENOSYS. Some functions are actually named
12593 something starting with __ and the normal name is an alias. */
12594#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12595choke me
12596#else
12597gethostbyname();
12598#endif
12599
12600; return 0; }
12601EOF
12602if { (eval echo configure:12603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12603 rm -rf conftest*
12604 eval "ac_cv_func_gethostbyname=yes"
12605else
12606 echo "configure: failed program was:" >&5
12607 cat conftest.$ac_ext >&5
12608 rm -rf conftest*
12609 eval "ac_cv_func_gethostbyname=no"
12610fi
12611rm -f conftest*
12612fi
12613
12614if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
12615 echo "$ac_t""yes" 1>&6
12616 :
12617else
12618 echo "$ac_t""no" 1>&6
12619fi
12620
12621 if test $ac_cv_func_gethostbyname = no; then
12622 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
12623echo "configure:12624: checking for gethostbyname in -lnsl" >&5
12624ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
12625if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12626 echo $ac_n "(cached) $ac_c" 1>&6
12627else
12628 ac_save_LIBS="$LIBS"
12629LIBS="-lnsl $LIBS"
12630cat > conftest.$ac_ext <<EOF
12631#line 12632 "configure"
12632#include "confdefs.h"
12633/* Override any gcc2 internal prototype to avoid an error. */
12634/* We use char because int might match the return type of a gcc2
12635 builtin and then its argument prototype would still apply. */
12636char gethostbyname();
12637
12638int main() {
12639gethostbyname()
12640; return 0; }
12641EOF
12642if { (eval echo configure:12643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12643 rm -rf conftest*
12644 eval "ac_cv_lib_$ac_lib_var=yes"
12645else
12646 echo "configure: failed program was:" >&5
12647 cat conftest.$ac_ext >&5
12648 rm -rf conftest*
12649 eval "ac_cv_lib_$ac_lib_var=no"
12650fi
12651rm -f conftest*
12652LIBS="$ac_save_LIBS"
12653
12654fi
12655if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12656 echo "$ac_t""yes" 1>&6
12657 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12658else
12659 echo "$ac_t""no" 1>&6
12660fi
12661
12662 fi
12663
12664 # lieder@skyler.mavd.honeywell.com says without -lsocket,
12665 # socket/setsockopt and other routines are undefined under SCO ODT
12666 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12667 # on later versions), says simon@lia.di.epfl.ch: it contains
12668 # gethostby* variants that don't use the nameserver (or something).
12669 # -lsocket must be given before -lnsl if both are needed.
12670 # We assume that if connect needs -lnsl, so does gethostbyname.
12671 echo $ac_n "checking for connect""... $ac_c" 1>&6
12672echo "configure:12673: checking for connect" >&5
12673if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
12674 echo $ac_n "(cached) $ac_c" 1>&6
12675else
12676 cat > conftest.$ac_ext <<EOF
12677#line 12678 "configure"
12678#include "confdefs.h"
12679/* System header to define __stub macros and hopefully few prototypes,
12680 which can conflict with char connect(); below. */
12681#include <assert.h>
12682/* Override any gcc2 internal prototype to avoid an error. */
12683/* We use char because int might match the return type of a gcc2
12684 builtin and then its argument prototype would still apply. */
12685char connect();
12686
12687int main() {
12688
12689/* The GNU C library defines this for functions which it implements
12690 to always fail with ENOSYS. Some functions are actually named
12691 something starting with __ and the normal name is an alias. */
12692#if defined (__stub_connect) || defined (__stub___connect)
12693choke me
12694#else
12695connect();
12696#endif
12697
12698; return 0; }
12699EOF
12700if { (eval echo configure:12701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12701 rm -rf conftest*
12702 eval "ac_cv_func_connect=yes"
12703else
12704 echo "configure: failed program was:" >&5
12705 cat conftest.$ac_ext >&5
12706 rm -rf conftest*
12707 eval "ac_cv_func_connect=no"
12708fi
12709rm -f conftest*
12710fi
12711
12712if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
12713 echo "$ac_t""yes" 1>&6
12714 :
12715else
12716 echo "$ac_t""no" 1>&6
12717fi
12718
12719 if test $ac_cv_func_connect = no; then
12720 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
12721echo "configure:12722: checking for connect in -lsocket" >&5
12722ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
12723if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12724 echo $ac_n "(cached) $ac_c" 1>&6
12725else
12726 ac_save_LIBS="$LIBS"
12727LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12728cat > conftest.$ac_ext <<EOF
12729#line 12730 "configure"
12730#include "confdefs.h"
12731/* Override any gcc2 internal prototype to avoid an error. */
12732/* We use char because int might match the return type of a gcc2
12733 builtin and then its argument prototype would still apply. */
12734char connect();
12735
12736int main() {
12737connect()
12738; return 0; }
12739EOF
12740if { (eval echo configure:12741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12741 rm -rf conftest*
12742 eval "ac_cv_lib_$ac_lib_var=yes"
12743else
12744 echo "configure: failed program was:" >&5
12745 cat conftest.$ac_ext >&5
12746 rm -rf conftest*
12747 eval "ac_cv_lib_$ac_lib_var=no"
12748fi
12749rm -f conftest*
12750LIBS="$ac_save_LIBS"
12751
12752fi
12753if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12754 echo "$ac_t""yes" 1>&6
12755 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12756else
12757 echo "$ac_t""no" 1>&6
12758fi
12759
12760 fi
12761
12762 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
12763 echo $ac_n "checking for remove""... $ac_c" 1>&6
12764echo "configure:12765: checking for remove" >&5
12765if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
12766 echo $ac_n "(cached) $ac_c" 1>&6
12767else
12768 cat > conftest.$ac_ext <<EOF
12769#line 12770 "configure"
12770#include "confdefs.h"
12771/* System header to define __stub macros and hopefully few prototypes,
12772 which can conflict with char remove(); below. */
12773#include <assert.h>
12774/* Override any gcc2 internal prototype to avoid an error. */
12775/* We use char because int might match the return type of a gcc2
12776 builtin and then its argument prototype would still apply. */
12777char remove();
12778
12779int main() {
12780
12781/* The GNU C library defines this for functions which it implements
12782 to always fail with ENOSYS. Some functions are actually named
12783 something starting with __ and the normal name is an alias. */
12784#if defined (__stub_remove) || defined (__stub___remove)
12785choke me
12786#else
12787remove();
12788#endif
12789
12790; return 0; }
12791EOF
12792if { (eval echo configure:12793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12793 rm -rf conftest*
12794 eval "ac_cv_func_remove=yes"
12795else
12796 echo "configure: failed program was:" >&5
12797 cat conftest.$ac_ext >&5
12798 rm -rf conftest*
12799 eval "ac_cv_func_remove=no"
12800fi
12801rm -f conftest*
12802fi
12803
12804if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
12805 echo "$ac_t""yes" 1>&6
12806 :
12807else
12808 echo "$ac_t""no" 1>&6
12809fi
12810
12811 if test $ac_cv_func_remove = no; then
12812 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
12813echo "configure:12814: checking for remove in -lposix" >&5
12814ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
12815if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12816 echo $ac_n "(cached) $ac_c" 1>&6
12817else
12818 ac_save_LIBS="$LIBS"
12819LIBS="-lposix $LIBS"
12820cat > conftest.$ac_ext <<EOF
12821#line 12822 "configure"
12822#include "confdefs.h"
12823/* Override any gcc2 internal prototype to avoid an error. */
12824/* We use char because int might match the return type of a gcc2
12825 builtin and then its argument prototype would still apply. */
12826char remove();
12827
12828int main() {
12829remove()
12830; return 0; }
12831EOF
12832if { (eval echo configure:12833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12833 rm -rf conftest*
12834 eval "ac_cv_lib_$ac_lib_var=yes"
12835else
12836 echo "configure: failed program was:" >&5
12837 cat conftest.$ac_ext >&5
12838 rm -rf conftest*
12839 eval "ac_cv_lib_$ac_lib_var=no"
12840fi
12841rm -f conftest*
12842LIBS="$ac_save_LIBS"
12843
12844fi
12845if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12846 echo "$ac_t""yes" 1>&6
12847 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12848else
12849 echo "$ac_t""no" 1>&6
12850fi
12851
12852 fi
12853
12854 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12855 echo $ac_n "checking for shmat""... $ac_c" 1>&6
12856echo "configure:12857: checking for shmat" >&5
12857if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
12858 echo $ac_n "(cached) $ac_c" 1>&6
12859else
12860 cat > conftest.$ac_ext <<EOF
12861#line 12862 "configure"
12862#include "confdefs.h"
12863/* System header to define __stub macros and hopefully few prototypes,
12864 which can conflict with char shmat(); below. */
12865#include <assert.h>
12866/* Override any gcc2 internal prototype to avoid an error. */
12867/* We use char because int might match the return type of a gcc2
12868 builtin and then its argument prototype would still apply. */
12869char shmat();
12870
12871int main() {
12872
12873/* The GNU C library defines this for functions which it implements
12874 to always fail with ENOSYS. Some functions are actually named
12875 something starting with __ and the normal name is an alias. */
12876#if defined (__stub_shmat) || defined (__stub___shmat)
12877choke me
12878#else
12879shmat();
12880#endif
12881
12882; return 0; }
12883EOF
12884if { (eval echo configure:12885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12885 rm -rf conftest*
12886 eval "ac_cv_func_shmat=yes"
12887else
12888 echo "configure: failed program was:" >&5
12889 cat conftest.$ac_ext >&5
12890 rm -rf conftest*
12891 eval "ac_cv_func_shmat=no"
12892fi
12893rm -f conftest*
12894fi
12895
12896if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
12897 echo "$ac_t""yes" 1>&6
12898 :
12899else
12900 echo "$ac_t""no" 1>&6
12901fi
12902
12903 if test $ac_cv_func_shmat = no; then
12904 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
12905echo "configure:12906: checking for shmat in -lipc" >&5
12906ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
12907if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12908 echo $ac_n "(cached) $ac_c" 1>&6
12909else
12910 ac_save_LIBS="$LIBS"
12911LIBS="-lipc $LIBS"
12912cat > conftest.$ac_ext <<EOF
12913#line 12914 "configure"
12914#include "confdefs.h"
12915/* Override any gcc2 internal prototype to avoid an error. */
12916/* We use char because int might match the return type of a gcc2
12917 builtin and then its argument prototype would still apply. */
12918char shmat();
12919
12920int main() {
12921shmat()
12922; return 0; }
12923EOF
12924if { (eval echo configure:12925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12925 rm -rf conftest*
12926 eval "ac_cv_lib_$ac_lib_var=yes"
12927else
12928 echo "configure: failed program was:" >&5
12929 cat conftest.$ac_ext >&5
12930 rm -rf conftest*
12931 eval "ac_cv_lib_$ac_lib_var=no"
12932fi
12933rm -f conftest*
12934LIBS="$ac_save_LIBS"
12935
12936fi
12937if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12938 echo "$ac_t""yes" 1>&6
12939 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12940else
12941 echo "$ac_t""no" 1>&6
12942fi
12943
12944 fi
12945 fi
12946
12947 # Check for libraries that X11R6 Xt/Xaw programs need.
12948 ac_save_LDFLAGS="$LDFLAGS"
12949 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12950 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12951 # check for ICE first), but we must link in the order -lSM -lICE or
12952 # we get undefined symbols. So assume we have SM if we have ICE.
12953 # These have to be linked with before -lX11, unlike the other
12954 # libraries we check for below, so use a different variable.
12955 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
12956 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
12957echo "configure:12958: checking for IceConnectionNumber in -lICE" >&5
12958ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
12959if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12960 echo $ac_n "(cached) $ac_c" 1>&6
12961else
12962 ac_save_LIBS="$LIBS"
12963LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12964cat > conftest.$ac_ext <<EOF
12965#line 12966 "configure"
12966#include "confdefs.h"
12967/* Override any gcc2 internal prototype to avoid an error. */
12968/* We use char because int might match the return type of a gcc2
12969 builtin and then its argument prototype would still apply. */
12970char IceConnectionNumber();
12971
12972int main() {
12973IceConnectionNumber()
12974; return 0; }
12975EOF
12976if { (eval echo configure:12977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12977 rm -rf conftest*
12978 eval "ac_cv_lib_$ac_lib_var=yes"
12979else
12980 echo "configure: failed program was:" >&5
12981 cat conftest.$ac_ext >&5
12982 rm -rf conftest*
12983 eval "ac_cv_lib_$ac_lib_var=no"
12984fi
12985rm -f conftest*
12986LIBS="$ac_save_LIBS"
12987
12988fi
12989if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12990 echo "$ac_t""yes" 1>&6
12991 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12992else
12993 echo "$ac_t""no" 1>&6
12994fi
12995
12996 LDFLAGS="$ac_save_LDFLAGS"
12997
12998fi
12999
13000
13001 if test "$no_x" = "yes"; then
13002 { echo "configure: error: X11 not found" 1>&2; exit 1; }
13003 fi
13004
13005 GUI_TK_LIBRARY="$X_LIBS"
13006 TOOLKIT_INCLUDE="$X_CFLAGS"
13007 AFMINSTALL=afminstall
13008 COMPILED_X_PROGRAM=0
13009
13010 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
13011echo "configure:13012: checking for Motif/Lesstif headers" >&5
13012
13013ac_find_includes=
13014for ac_dir in $SEARCH_INCLUDE;
13015 do
13016 if test -f "$ac_dir/Xm/Xm.h"; then
13017 ac_find_includes=$ac_dir
13018 break
13019 fi
13020 done
13021
13022 if test "$ac_find_includes" != "" ; then
13023 echo "$ac_t""found $ac_find_includes" 1>&6
13024 else
13025 cat > conftest.$ac_ext <<EOF
13026#line 13027 "configure"
13027#include "confdefs.h"
13028
13029 #include <Xm/Xm.h>
13030
13031int main() {
13032
13033 int version;
13034 version = xmUseVersion;
13035
13036; return 0; }
13037EOF
13038if { (eval echo configure:13039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13039 rm -rf conftest*
13040
13041 echo "$ac_t""found in default search path" 1>&6
13042 COMPILED_X_PROGRAM=1
13043
13044else
13045 echo "configure: failed program was:" >&5
13046 cat conftest.$ac_ext >&5
13047 rm -rf conftest*
13048
13049 echo "$ac_t""no" 1>&6
13050 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
13051
13052
13053fi
13054rm -f conftest*
13055 fi
13056
13057 if test "$COMPILED_X_PROGRAM" = 0; then
13058 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
13059echo "configure:13060: checking for Motif/Lesstif library" >&5
13060
13061ac_find_libraries=
13062for ac_dir in $SEARCH_LIB;
13063 do
13064 for ac_extension in a so sl dylib; do
13065 if test -f "$ac_dir/libXm.$ac_extension"; then
13066 ac_find_libraries=$ac_dir
13067 break 2
13068 fi
13069 done
13070 done
13071
13072 if test "$ac_find_libraries" != "" ; then
13073
13074 ac_path_to_include=$ac_find_includes
13075 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
13076 result=$?
13077 if test $result = 0; then
13078 ac_path_to_include=""
13079 else
13080 ac_path_to_include=" -I$ac_find_includes"
13081 fi
13082
13083
13084 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13085 result=$?
13086 if test $result = 0; then
13087 ac_path_to_link=""
13088 else
13089 ac_path_to_link=" -L$ac_find_libraries"
13090 fi
13091
13092
13093 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13094 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
13095 echo "$ac_t""found at $ac_find_libraries" 1>&6
13096 else
13097 cat > conftest.$ac_ext <<EOF
13098#line 13099 "configure"
13099#include "confdefs.h"
13100
13101 #include <Xm/Xm.h>
13102
13103int main() {
13104
13105 int version;
13106 version = xmUseVersion;
13107
13108; return 0; }
13109EOF
13110if { (eval echo configure:13111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13111 rm -rf conftest*
13112
13113 echo "$ac_t""found in default search path" 1>&6
13114 COMPILED_X_PROGRAM=1
13115
13116else
13117 echo "configure: failed program was:" >&5
13118 cat conftest.$ac_ext >&5
13119 rm -rf conftest*
13120
13121 echo "$ac_t""no" 1>&6
13122 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
13123
13124
13125fi
13126rm -f conftest*
13127 fi
13128 fi
13129
13130 xpm_link=
13131 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13132echo "configure:13133: checking for Xpm library" >&5
13133
13134ac_find_libraries=
13135for ac_dir in $SEARCH_LIB;
13136 do
13137 for ac_extension in a so sl dylib; do
13138 if test -f "$ac_dir/libXpm.$ac_extension"; then
13139 ac_find_libraries=$ac_dir
13140 break 2
13141 fi
13142 done
13143 done
13144
13145 if test "$ac_find_libraries" != "" ; then
13146
13147 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13148 result=$?
13149 if test $result = 0; then
13150 ac_path_to_link=""
13151 else
13152 ac_path_to_link=" -L$ac_find_libraries"
13153 fi
13154
13155 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13156 xpm_link=" -lXpm"
13157 cat >> confdefs.h <<\EOF
13158#define wxHAVE_LIB_XPM 1
13159EOF
13160
13161 echo "$ac_t""found at $ac_find_libraries" 1>&6
13162 else
13163 cat > conftest.$ac_ext <<EOF
13164#line 13165 "configure"
13165#include "confdefs.h"
13166
13167 #include <X11/xpm.h>
13168
13169int main() {
13170
13171 int version;
13172 version = XpmLibraryVersion();
13173
13174; return 0; }
13175EOF
13176if { (eval echo configure:13177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13177 rm -rf conftest*
13178
13179 xpm_link=" -lXpm"
13180 cat >> confdefs.h <<\EOF
13181#define wxHAVE_LIB_XPM 1
13182EOF
13183
13184 echo "$ac_t""found in default search path" 1>&6
13185 COMPILED_X_PROGRAM=0
13186
13187else
13188 echo "configure: failed program was:" >&5
13189 cat conftest.$ac_ext >&5
13190 rm -rf conftest*
13191
13192 echo "$ac_t""no" 1>&6
13193 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13194
13195
13196fi
13197rm -f conftest*
13198 fi
13199
13200 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
13201 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
13202 TOOLKIT=MOTIF
13203 GUIDIST=MOTIF_DIST
13204 fi
13205
13206 if test "$wxUSE_MAC" = 1; then
13207 if test "$wxUSE_PRECOMP" = "yes"; then
13208 CPPFLAGS="$CPPFLAGS -cpp-precomp"
13209 fi
13210 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
13211 CFLAGS="$CFLAGS -fpascal-strings"
13212 CXXFLAGS="$CXXFLAGS -fpascal-strings"
13213
13214 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
13215 TOOLKIT=MAC
13216 GUIDIST=MACX_DIST
13217 fi
13218
13219 if test "$wxUSE_PM" = 1; then
13220 TOOLKIT=PM
13221 GUIDIST=GTK_DIST
13222 fi
13223
13224 if test "$TOOLKIT" = "PM" ; then
13225 TOOLKIT_DIR="os2"
13226 else
13227 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
13228 fi
13229
13230 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
13231
13232 if test "$wxUSE_UNIVERSAL" = "yes"; then
13233 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
13234
13235 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
13236 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
13237
13238 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
13239 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
13240 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
13241 WIDGET_SET=univ
13242 else
13243 ALL_OBJECTS="\$(GUIOBJS)"
13244 ALL_SOURCES="\$(ALL_SOURCES)"
13245 ALL_HEADERS="\$(ALL_HEADERS)"
13246 fi
13247
13248 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
13249
13250 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
13251 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
13252 fi
13253
13254 if test "$wxUSE_HTML" = "yes"; then
13255 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
13256 fi
13257
13258 if test "$wxUSE_LIBJPEG" = "builtin" ; then
13259 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
13260 fi
13261 if test "$wxUSE_LIBTIFF" = "builtin" ; then
13262 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
13263 fi
13264 if test "$wxUSE_LIBPNG" = "builtin" ; then
13265 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
13266 fi
13267
13268 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
13269 DISTDIR="wx\$(TOOLKIT)"
13270else
13271 USE_GUI=0
13272
13273 TOOLKIT_DIR="base"
13274
13275 if test "$USE_WIN32" = 1 ; then
13276 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
13277 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
13278
13279 TOOLKIT="MSW"
13280 else
13281 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
13282 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
13283 fi
13284
13285 ALL_SOURCES="\$(ALL_SOURCES)"
13286 ALL_HEADERS="\$(ALL_HEADERS)"
13287
13288 PORT_FILES="\${top_srcdir}/src/files.lst"
13289
13290 GUIDIST="BASE_DIST"
13291 DISTDIR="wxBase"
13292fi
13293
13294
13295if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
13296 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
13297fi
13298
13299if test "$wxUSE_REGEX" = "builtin" ; then
13300 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
13301fi
13302if test "$wxUSE_ZLIB" = "builtin" ; then
13303 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
13304fi
13305
13306if test "$wxUSE_OPENGL" = "yes"; then
13307 if test "$wxUSE_MAC" = 1; then
13308 OPENGL_LIBS="-framework OpenGL -framework AGL"
13309 else
13310
13311 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
13312echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
13313echo "configure:13314: checking for GL/gl.h" >&5
13314if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13315 echo $ac_n "(cached) $ac_c" 1>&6
13316else
13317 cat > conftest.$ac_ext <<EOF
13318#line 13319 "configure"
13319#include "confdefs.h"
13320#include <GL/gl.h>
13321EOF
13322ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13323{ (eval echo configure:13324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13324ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13325if test -z "$ac_err"; then
13326 rm -rf conftest*
13327 eval "ac_cv_header_$ac_safe=yes"
13328else
13329 echo "$ac_err" >&5
13330 echo "configure: failed program was:" >&5
13331 cat conftest.$ac_ext >&5
13332 rm -rf conftest*
13333 eval "ac_cv_header_$ac_safe=no"
13334fi
13335rm -f conftest*
13336fi
13337if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13338 echo "$ac_t""yes" 1>&6
13339
13340 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
13341echo "configure:13342: checking for -lGL" >&5
13342
13343ac_find_libraries=
13344for ac_dir in $SEARCH_LIB;
13345 do
13346 for ac_extension in a so sl dylib; do
13347 if test -f "$ac_dir/libGL.$ac_extension"; then
13348 ac_find_libraries=$ac_dir
13349 break 2
13350 fi
13351 done
13352 done
13353
13354 if test "$ac_find_libraries" != "" ; then
13355
13356 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
13357 result=$?
13358 if test $result = 0; then
13359 ac_path_to_link=""
13360 else
13361 ac_path_to_link=" -L$ac_find_libraries"
13362 fi
13363
13364 if test "$ac_path_to_link" = " -L/usr/lib" ; then
13365 LDFLAGS_GL="$LDFLAGS"
13366 else
13367 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
13368 fi
13369 OPENGL_LIBS="-lGL -lGLU"
13370 echo "$ac_t""yes" 1>&6
13371 else
13372 echo "$ac_t""no" 1>&6
13373 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
13374echo "configure:13375: checking for -lMesaGL" >&5
13375
13376ac_find_libraries=
13377for ac_dir in $SEARCH_LIB;
13378 do
13379 for ac_extension in a so sl dylib; do
13380 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
13381 ac_find_libraries=$ac_dir
13382 break 2
13383 fi
13384 done
13385 done
13386
13387 if test "$ac_find_libraries" != "" ; then
13388
13389 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
13390 result=$?
13391 if test $result = 0; then
13392 ac_path_to_link=""
13393 else
13394 ac_path_to_link=" -L$ac_find_libraries"
13395 fi
13396
13397 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
13398 OPENGL_LIBS="-lMesaGL -lMesaGLU"
13399 echo "$ac_t""yes" 1>&6
13400 else
13401 echo "$ac_t""no" 1>&6
13402 fi
13403 fi
13404
13405else
13406 echo "$ac_t""no" 1>&6
13407fi
13408
13409
13410
13411# AC_CHECK_HEADER(GL/gl.h,
13412# [
13413# AC_CHECK_LIB(GL, glFlush,
13414# [
13415# OPENGL_LIBS="-lGL -lGLU"
13416# ],
13417# [
13418# AC_CHECK_LIB(MesaGL, glFlush,
13419# [
13420# OPENGL_LIBS="-lMesaGL -lMesaGLU"
13421# ],
13422# [],
13423# [-lm])
13424# ],
13425# [-lm])
13426# ])
13427
13428 if test "x$OPENGL_LIBS" = "x"; then
13429 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
13430 fi
13431 fi
13432
13433 if test "$wxUSE_OPENGL" = "yes"; then
13434 cat >> confdefs.h <<\EOF
13435#define wxUSE_OPENGL 1
13436EOF
13437
13438 cat >> confdefs.h <<\EOF
13439#define wxUSE_GLCANVAS 1
13440EOF
13441
13442 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
13443 fi
13444fi
13445
13446if test -z "$TOOLKIT_VPATH" ; then
13447 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
13448fi
13449
13450if test -n "$TOOLKIT" ; then
13451 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
13452fi
13453
13454lib_unicode_suffix=
13455if test "$wxUSE_UNICODE" = "yes"; then
13456 lib_unicode_suffix=u
13457fi
13458
13459lib_debug_suffix=
13460if test "$wxUSE_DEBUG_FLAG" = "yes"; then
13461 lib_debug_suffix=d
13462fi
13463
13464TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
13465TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
13466
13467if test "$cross_compiling" = "yes"; then
13468 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
13469 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
13470fi
13471
13472WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
13473WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
13474
13475WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
13476WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
13477
13478WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
13479WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
13480WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
13481WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
13482
13483WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
13484WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
13485
13486case "${host}" in
13487 *-*-cygwin* | *-*-mingw32* )
13488
13489
13490
13491 if test "$cross_compiling" != "yes"; then
13492 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
13493 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
13494 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
13495 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
13496 else
13497 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
13498 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
13499 fi
13500
13501esac
13502
13503WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
13504WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
13505
13506WXCONFIG_LIBS="-l${WX_LIBRARY}"
13507WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
13508
13509if test "$wxUSE_OPENGL" = "yes"; then
13510 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
13511 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
13512fi
13513
13514
13515
13516if test "$wxUSE_SHARED" = "yes"; then
13517 case "${host}" in
13518 *-pc-os2_emx | *-pc-os2-emx | \
13519 *-pc-msdosdjgpp )
13520 wxUSE_SHARED=no
13521 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
13522 ;;
13523 esac
13524fi
13525
13526if test "$wxUSE_SHARED" = "yes"; then
13527
13528 if test "$wxUSE_OPENGL" = "yes"; then
13529 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
13530 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
13531 else
13532 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
13533 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
13534 fi
13535
13536 if test "$GCC" = "yes"; then
13537 PIC_FLAG="-fPIC"
13538 fi
13539
13540 SHARED_LD="${CXX} -shared -o"
13541
13542 case "${host}" in
13543 *-hp-hpux* )
13544 if test "$GCC" == "yes"; then
13545 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
13546 else
13547 LDFLAGS="$LDFLAGS -L/usr/lib"
13548
13549 SHARED_LD="${CXX} -b -o"
13550 PIC_FLAG="+Z"
13551 fi
13552
13553 if test "$wxUSE_OPENGL" = "yes"; then
13554 WX_ALL_INSTALLED="preinstall_gl"
13555 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
13556 else
13557 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
13558 fi
13559 ;;
13560
13561 *-*-linux* )
13562 if test "$GCC" != "yes"; then
13563 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
13564echo "configure:13565: checking for Intel compiler" >&5
13565if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
13566 echo $ac_n "(cached) $ac_c" 1>&6
13567else
13568
13569 cat > conftest.$ac_ext <<EOF
13570#line 13571 "configure"
13571#include "confdefs.h"
13572
13573int main() {
13574
13575 #ifndef __INTEL_COMPILER
13576 #error Not icc
13577 #endif
13578
13579; return 0; }
13580EOF
13581if { (eval echo configure:13582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13582 rm -rf conftest*
13583 wx_cv_prog_icc=yes
13584else
13585 echo "configure: failed program was:" >&5
13586 cat conftest.$ac_ext >&5
13587 rm -rf conftest*
13588 wx_cv_prog_icc=no
13589
13590fi
13591rm -f conftest*
13592
13593fi
13594
13595echo "$ac_t""$wx_cv_prog_icc" 1>&6
13596 if test "$wx_cv_prog_icc" = "yes"; then
13597 PIC_FLAG="-KPIC"
13598 fi
13599 fi
13600
13601 if test "$wxUSE_SONAME" = "yes" ; then
13602 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
13603 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
13604 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
13605 fi
13606 ;;
13607
13608 *-*-solaris2* )
13609 if test "$GCC" = yes ; then
13610 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
13611 else
13612 SHARED_LD="${CXX} -G -o"
13613 PIC_FLAG="-KPIC"
13614 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
13615 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
13616 fi
13617 ;;
13618
13619 *-*-darwin* )
13620 CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT"
13621 CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT"
13622 SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o"
13623 PIC_FLAG="-dynamic -fPIC"
13624 ;;
13625
13626 *-*-aix* )
13627 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
13628 ;;
13629
13630 *-*-cygwin* | *-*-mingw32* )
13631
13632 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
13633
13634 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
13635 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
13636
13637 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
13638
13639 if test "$wxUSE_OPENGL" = "yes"; then
13640 WX_ALL_INSTALLED="preinstall_gl"
13641 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
13642 else
13643 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
13644 fi
13645 ;;
13646
13647 *-*-beos* )
13648 SHARED_LD="${LD} -shared -o"
13649 ;;
13650
13651 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
13652 *-*-sunos4* | \
13653 *-*-irix5* | *-*-irix6* | \
13654 *-*-osf* | \
13655 *-*-dgux5* | \
13656 *-*-sysv5* )
13657 ;;
13658
13659 *)
13660 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
13661 esac
13662
13663 if test "x$WX_TARGET_LIBRARY" = "x"; then
13664 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
13665 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
13666 fi
13667
13668 WX_TARGET_LIBRARY_TYPE="so"
13669 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
13670fi
13671
13672if test "$wxUSE_SHARED" = "no"; then
13673
13674 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
13675 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
13676 fi
13677
13678 if test "$wxUSE_MAC" = 1; then
13679 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
13680 fi
13681
13682 if test "$wxUSE_OPENGL" = "yes"; then
13683 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
13684 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
13685 else
13686 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
13687 fi
13688
13689 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
13690 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
13691
13692 WX_TARGET_LIBRARY_TYPE="a"
13693 INSTALL_LIBRARY='$(INSTALL_DATA)'
13694fi
13695
13696if test "$wxUSE_MAC" = 1; then
13697 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
13698 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
13699 # Extract the first word of "Rez", so it can be a program name with args.
13700set dummy Rez; ac_word=$2
13701echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13702echo "configure:13703: checking for $ac_word" >&5
13703if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
13704 echo $ac_n "(cached) $ac_c" 1>&6
13705else
13706 if test -n "$RESCOMP"; then
13707 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
13708else
13709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13710 ac_dummy="$PATH"
13711 for ac_dir in $ac_dummy; do
13712 test -z "$ac_dir" && ac_dir=.
13713 if test -f $ac_dir/$ac_word; then
13714 ac_cv_prog_RESCOMP="Rez"
13715 break
13716 fi
13717 done
13718 IFS="$ac_save_ifs"
13719 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
13720fi
13721fi
13722RESCOMP="$ac_cv_prog_RESCOMP"
13723if test -n "$RESCOMP"; then
13724 echo "$ac_t""$RESCOMP" 1>&6
13725else
13726 echo "$ac_t""no" 1>&6
13727fi
13728
13729 # Extract the first word of "DeRez", so it can be a program name with args.
13730set dummy DeRez; ac_word=$2
13731echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13732echo "configure:13733: checking for $ac_word" >&5
13733if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
13734 echo $ac_n "(cached) $ac_c" 1>&6
13735else
13736 if test -n "$DEREZ"; then
13737 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
13738else
13739 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13740 ac_dummy="$PATH"
13741 for ac_dir in $ac_dummy; do
13742 test -z "$ac_dir" && ac_dir=.
13743 if test -f $ac_dir/$ac_word; then
13744 ac_cv_prog_DEREZ="DeRez"
13745 break
13746 fi
13747 done
13748 IFS="$ac_save_ifs"
13749 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
13750fi
13751fi
13752DEREZ="$ac_cv_prog_DEREZ"
13753if test -n "$DEREZ"; then
13754 echo "$ac_t""$DEREZ" 1>&6
13755else
13756 echo "$ac_t""no" 1>&6
13757fi
13758
13759 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
13760 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
13761 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
13762fi
13763
13764
13765if test "$wxUSE_MAC" != 1; then
13766 for ac_hdr in strings.h
13767do
13768ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13769echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13770echo "configure:13771: checking for $ac_hdr" >&5
13771if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13772 echo $ac_n "(cached) $ac_c" 1>&6
13773else
13774 cat > conftest.$ac_ext <<EOF
13775#line 13776 "configure"
13776#include "confdefs.h"
13777#include <$ac_hdr>
13778EOF
13779ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13780{ (eval echo configure:13781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13781ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13782if test -z "$ac_err"; then
13783 rm -rf conftest*
13784 eval "ac_cv_header_$ac_safe=yes"
13785else
13786 echo "$ac_err" >&5
13787 echo "configure: failed program was:" >&5
13788 cat conftest.$ac_ext >&5
13789 rm -rf conftest*
13790 eval "ac_cv_header_$ac_safe=no"
13791fi
13792rm -f conftest*
13793fi
13794if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13795 echo "$ac_t""yes" 1>&6
13796 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13797 cat >> confdefs.h <<EOF
13798#define $ac_tr_hdr 1
13799EOF
13800
13801else
13802 echo "$ac_t""no" 1>&6
13803fi
13804done
13805
13806fi
13807
13808for ac_hdr in stdlib.h
13809do
13810ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13811echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13812echo "configure:13813: checking for $ac_hdr" >&5
13813if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13814 echo $ac_n "(cached) $ac_c" 1>&6
13815else
13816 cat > conftest.$ac_ext <<EOF
13817#line 13818 "configure"
13818#include "confdefs.h"
13819#include <$ac_hdr>
13820EOF
13821ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13822{ (eval echo configure:13823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13823ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13824if test -z "$ac_err"; then
13825 rm -rf conftest*
13826 eval "ac_cv_header_$ac_safe=yes"
13827else
13828 echo "$ac_err" >&5
13829 echo "configure: failed program was:" >&5
13830 cat conftest.$ac_ext >&5
13831 rm -rf conftest*
13832 eval "ac_cv_header_$ac_safe=no"
13833fi
13834rm -f conftest*
13835fi
13836if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13837 echo "$ac_t""yes" 1>&6
13838 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13839 cat >> confdefs.h <<EOF
13840#define $ac_tr_hdr 1
13841EOF
13842
13843else
13844 echo "$ac_t""no" 1>&6
13845fi
13846done
13847
13848for ac_hdr in malloc.h
13849do
13850ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13851echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13852echo "configure:13853: checking for $ac_hdr" >&5
13853if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13854 echo $ac_n "(cached) $ac_c" 1>&6
13855else
13856 cat > conftest.$ac_ext <<EOF
13857#line 13858 "configure"
13858#include "confdefs.h"
13859#include <$ac_hdr>
13860EOF
13861ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13862{ (eval echo configure:13863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13863ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13864if test -z "$ac_err"; then
13865 rm -rf conftest*
13866 eval "ac_cv_header_$ac_safe=yes"
13867else
13868 echo "$ac_err" >&5
13869 echo "configure: failed program was:" >&5
13870 cat conftest.$ac_ext >&5
13871 rm -rf conftest*
13872 eval "ac_cv_header_$ac_safe=no"
13873fi
13874rm -f conftest*
13875fi
13876if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13877 echo "$ac_t""yes" 1>&6
13878 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13879 cat >> confdefs.h <<EOF
13880#define $ac_tr_hdr 1
13881EOF
13882
13883else
13884 echo "$ac_t""no" 1>&6
13885fi
13886done
13887
13888for ac_hdr in unistd.h
13889do
13890ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13891echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13892echo "configure:13893: checking for $ac_hdr" >&5
13893if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13894 echo $ac_n "(cached) $ac_c" 1>&6
13895else
13896 cat > conftest.$ac_ext <<EOF
13897#line 13898 "configure"
13898#include "confdefs.h"
13899#include <$ac_hdr>
13900EOF
13901ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13902{ (eval echo configure:13903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13903ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13904if test -z "$ac_err"; then
13905 rm -rf conftest*
13906 eval "ac_cv_header_$ac_safe=yes"
13907else
13908 echo "$ac_err" >&5
13909 echo "configure: failed program was:" >&5
13910 cat conftest.$ac_ext >&5
13911 rm -rf conftest*
13912 eval "ac_cv_header_$ac_safe=no"
13913fi
13914rm -f conftest*
13915fi
13916if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13917 echo "$ac_t""yes" 1>&6
13918 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13919 cat >> confdefs.h <<EOF
13920#define $ac_tr_hdr 1
13921EOF
13922
13923else
13924 echo "$ac_t""no" 1>&6
13925fi
13926done
13927
13928for ac_hdr in wchar.h
13929do
13930ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13931echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13932echo "configure:13933: checking for $ac_hdr" >&5
13933if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13934 echo $ac_n "(cached) $ac_c" 1>&6
13935else
13936 cat > conftest.$ac_ext <<EOF
13937#line 13938 "configure"
13938#include "confdefs.h"
13939#include <$ac_hdr>
13940EOF
13941ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13942{ (eval echo configure:13943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13943ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13944if test -z "$ac_err"; then
13945 rm -rf conftest*
13946 eval "ac_cv_header_$ac_safe=yes"
13947else
13948 echo "$ac_err" >&5
13949 echo "configure: failed program was:" >&5
13950 cat conftest.$ac_ext >&5
13951 rm -rf conftest*
13952 eval "ac_cv_header_$ac_safe=no"
13953fi
13954rm -f conftest*
13955fi
13956if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13957 echo "$ac_t""yes" 1>&6
13958 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13959 cat >> confdefs.h <<EOF
13960#define $ac_tr_hdr 1
13961EOF
13962
13963else
13964 echo "$ac_t""no" 1>&6
13965fi
13966done
13967
13968for ac_hdr in wcstr.h
13969do
13970ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13971echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13972echo "configure:13973: checking for $ac_hdr" >&5
13973if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13974 echo $ac_n "(cached) $ac_c" 1>&6
13975else
13976 cat > conftest.$ac_ext <<EOF
13977#line 13978 "configure"
13978#include "confdefs.h"
13979#include <$ac_hdr>
13980EOF
13981ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13982{ (eval echo configure:13983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13983ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13984if test -z "$ac_err"; then
13985 rm -rf conftest*
13986 eval "ac_cv_header_$ac_safe=yes"
13987else
13988 echo "$ac_err" >&5
13989 echo "configure: failed program was:" >&5
13990 cat conftest.$ac_ext >&5
13991 rm -rf conftest*
13992 eval "ac_cv_header_$ac_safe=no"
13993fi
13994rm -f conftest*
13995fi
13996if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13997 echo "$ac_t""yes" 1>&6
13998 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13999 cat >> confdefs.h <<EOF
14000#define $ac_tr_hdr 1
14001EOF
14002
14003else
14004 echo "$ac_t""no" 1>&6
14005fi
14006done
14007
14008for ac_hdr in wctype.h
14009do
14010ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14011echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14012echo "configure:14013: checking for $ac_hdr" >&5
14013if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14014 echo $ac_n "(cached) $ac_c" 1>&6
14015else
14016 cat > conftest.$ac_ext <<EOF
14017#line 14018 "configure"
14018#include "confdefs.h"
14019#include <$ac_hdr>
14020EOF
14021ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14022{ (eval echo configure:14023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14023ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14024if test -z "$ac_err"; then
14025 rm -rf conftest*
14026 eval "ac_cv_header_$ac_safe=yes"
14027else
14028 echo "$ac_err" >&5
14029 echo "configure: failed program was:" >&5
14030 cat conftest.$ac_ext >&5
14031 rm -rf conftest*
14032 eval "ac_cv_header_$ac_safe=no"
14033fi
14034rm -f conftest*
14035fi
14036if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14037 echo "$ac_t""yes" 1>&6
14038 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14039 cat >> confdefs.h <<EOF
14040#define $ac_tr_hdr 1
14041EOF
14042
14043else
14044 echo "$ac_t""no" 1>&6
14045fi
14046done
14047
14048for ac_hdr in fnmatch.h
14049do
14050ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14051echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14052echo "configure:14053: checking for $ac_hdr" >&5
14053if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14054 echo $ac_n "(cached) $ac_c" 1>&6
14055else
14056 cat > conftest.$ac_ext <<EOF
14057#line 14058 "configure"
14058#include "confdefs.h"
14059#include <$ac_hdr>
14060EOF
14061ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14062{ (eval echo configure:14063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14063ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14064if test -z "$ac_err"; then
14065 rm -rf conftest*
14066 eval "ac_cv_header_$ac_safe=yes"
14067else
14068 echo "$ac_err" >&5
14069 echo "configure: failed program was:" >&5
14070 cat conftest.$ac_ext >&5
14071 rm -rf conftest*
14072 eval "ac_cv_header_$ac_safe=no"
14073fi
14074rm -f conftest*
14075fi
14076if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14077 echo "$ac_t""yes" 1>&6
14078 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14079 cat >> confdefs.h <<EOF
14080#define $ac_tr_hdr 1
14081EOF
14082
14083else
14084 echo "$ac_t""no" 1>&6
14085fi
14086done
14087
14088for ac_hdr in langinfo.h
14089do
14090ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14091echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14092echo "configure:14093: checking for $ac_hdr" >&5
14093if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14094 echo $ac_n "(cached) $ac_c" 1>&6
14095else
14096 cat > conftest.$ac_ext <<EOF
14097#line 14098 "configure"
14098#include "confdefs.h"
14099#include <$ac_hdr>
14100EOF
14101ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14102{ (eval echo configure:14103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14103ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14104if test -z "$ac_err"; then
14105 rm -rf conftest*
14106 eval "ac_cv_header_$ac_safe=yes"
14107else
14108 echo "$ac_err" >&5
14109 echo "configure: failed program was:" >&5
14110 cat conftest.$ac_ext >&5
14111 rm -rf conftest*
14112 eval "ac_cv_header_$ac_safe=no"
14113fi
14114rm -f conftest*
14115fi
14116if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14117 echo "$ac_t""yes" 1>&6
14118 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14119 cat >> confdefs.h <<EOF
14120#define $ac_tr_hdr 1
14121EOF
14122
14123else
14124 echo "$ac_t""no" 1>&6
14125fi
14126done
14127
14128
14129if test "$wxUSE_GUI" = "yes"; then
14130 if test "$wxUSE_UNIX" = "yes"; then
14131 for ac_hdr in X11/XKBlib.h
14132do
14133ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14134echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14135echo "configure:14136: checking for $ac_hdr" >&5
14136if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14137 echo $ac_n "(cached) $ac_c" 1>&6
14138else
14139 cat > conftest.$ac_ext <<EOF
14140#line 14141 "configure"
14141#include "confdefs.h"
14142#include <$ac_hdr>
14143EOF
14144ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14145{ (eval echo configure:14146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14146ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14147if test -z "$ac_err"; then
14148 rm -rf conftest*
14149 eval "ac_cv_header_$ac_safe=yes"
14150else
14151 echo "$ac_err" >&5
14152 echo "configure: failed program was:" >&5
14153 cat conftest.$ac_ext >&5
14154 rm -rf conftest*
14155 eval "ac_cv_header_$ac_safe=no"
14156fi
14157rm -f conftest*
14158fi
14159if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14160 echo "$ac_t""yes" 1>&6
14161 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14162 cat >> confdefs.h <<EOF
14163#define $ac_tr_hdr 1
14164EOF
14165
14166else
14167 echo "$ac_t""no" 1>&6
14168fi
14169done
14170
14171 fi
14172fi
14173
14174
14175echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
14176echo "configure:14177: checking for ANSI C header files" >&5
14177if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
14178 echo $ac_n "(cached) $ac_c" 1>&6
14179else
14180 cat > conftest.$ac_ext <<EOF
14181#line 14182 "configure"
14182#include "confdefs.h"
14183#include <stdlib.h>
14184#include <stdarg.h>
14185#include <string.h>
14186#include <float.h>
14187EOF
14188ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14189{ (eval echo configure:14190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14190ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14191if test -z "$ac_err"; then
14192 rm -rf conftest*
14193 ac_cv_header_stdc=yes
14194else
14195 echo "$ac_err" >&5
14196 echo "configure: failed program was:" >&5
14197 cat conftest.$ac_ext >&5
14198 rm -rf conftest*
14199 ac_cv_header_stdc=no
14200fi
14201rm -f conftest*
14202
14203if test $ac_cv_header_stdc = yes; then
14204 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14205cat > conftest.$ac_ext <<EOF
14206#line 14207 "configure"
14207#include "confdefs.h"
14208#include <string.h>
14209EOF
14210if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14211 egrep "memchr" >/dev/null 2>&1; then
14212 :
14213else
14214 rm -rf conftest*
14215 ac_cv_header_stdc=no
14216fi
14217rm -f conftest*
14218
14219fi
14220
14221if test $ac_cv_header_stdc = yes; then
14222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14223cat > conftest.$ac_ext <<EOF
14224#line 14225 "configure"
14225#include "confdefs.h"
14226#include <stdlib.h>
14227EOF
14228if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14229 egrep "free" >/dev/null 2>&1; then
14230 :
14231else
14232 rm -rf conftest*
14233 ac_cv_header_stdc=no
14234fi
14235rm -f conftest*
14236
14237fi
14238
14239if test $ac_cv_header_stdc = yes; then
14240 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14241if test "$cross_compiling" = yes; then
14242 :
14243else
14244 cat > conftest.$ac_ext <<EOF
14245#line 14246 "configure"
14246#include "confdefs.h"
14247#include <ctype.h>
14248#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14249#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14250#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14251int main () { int i; for (i = 0; i < 256; i++)
14252if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14253exit (0); }
14254
14255EOF
14256if { (eval echo configure:14257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14257then
14258 :
14259else
14260 echo "configure: failed program was:" >&5
14261 cat conftest.$ac_ext >&5
14262 rm -fr conftest*
14263 ac_cv_header_stdc=no
14264fi
14265rm -fr conftest*
14266fi
14267
14268fi
14269fi
14270
14271echo "$ac_t""$ac_cv_header_stdc" 1>&6
14272if test $ac_cv_header_stdc = yes; then
14273 cat >> confdefs.h <<\EOF
14274#define STDC_HEADERS 1
14275EOF
14276
14277fi
14278
14279echo $ac_n "checking for mode_t""... $ac_c" 1>&6
14280echo "configure:14281: checking for mode_t" >&5
14281if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
14282 echo $ac_n "(cached) $ac_c" 1>&6
14283else
14284 cat > conftest.$ac_ext <<EOF
14285#line 14286 "configure"
14286#include "confdefs.h"
14287#include <sys/types.h>
14288#if STDC_HEADERS
14289#include <stdlib.h>
14290#include <stddef.h>
14291#endif
14292EOF
14293if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14294 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14295 rm -rf conftest*
14296 ac_cv_type_mode_t=yes
14297else
14298 rm -rf conftest*
14299 ac_cv_type_mode_t=no
14300fi
14301rm -f conftest*
14302
14303fi
14304echo "$ac_t""$ac_cv_type_mode_t" 1>&6
14305if test $ac_cv_type_mode_t = no; then
14306 cat >> confdefs.h <<\EOF
14307#define mode_t int
14308EOF
14309
14310fi
14311
14312echo $ac_n "checking for off_t""... $ac_c" 1>&6
14313echo "configure:14314: checking for off_t" >&5
14314if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
14315 echo $ac_n "(cached) $ac_c" 1>&6
14316else
14317 cat > conftest.$ac_ext <<EOF
14318#line 14319 "configure"
14319#include "confdefs.h"
14320#include <sys/types.h>
14321#if STDC_HEADERS
14322#include <stdlib.h>
14323#include <stddef.h>
14324#endif
14325EOF
14326if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14327 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14328 rm -rf conftest*
14329 ac_cv_type_off_t=yes
14330else
14331 rm -rf conftest*
14332 ac_cv_type_off_t=no
14333fi
14334rm -f conftest*
14335
14336fi
14337echo "$ac_t""$ac_cv_type_off_t" 1>&6
14338if test $ac_cv_type_off_t = no; then
14339 cat >> confdefs.h <<\EOF
14340#define off_t long
14341EOF
14342
14343fi
14344
14345echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14346echo "configure:14347: checking for pid_t" >&5
14347if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
14348 echo $ac_n "(cached) $ac_c" 1>&6
14349else
14350 cat > conftest.$ac_ext <<EOF
14351#line 14352 "configure"
14352#include "confdefs.h"
14353#include <sys/types.h>
14354#if STDC_HEADERS
14355#include <stdlib.h>
14356#include <stddef.h>
14357#endif
14358EOF
14359if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14360 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14361 rm -rf conftest*
14362 ac_cv_type_pid_t=yes
14363else
14364 rm -rf conftest*
14365 ac_cv_type_pid_t=no
14366fi
14367rm -f conftest*
14368
14369fi
14370echo "$ac_t""$ac_cv_type_pid_t" 1>&6
14371if test $ac_cv_type_pid_t = no; then
14372 cat >> confdefs.h <<\EOF
14373#define pid_t int
14374EOF
14375
14376fi
14377
14378echo $ac_n "checking for size_t""... $ac_c" 1>&6
14379echo "configure:14380: checking for size_t" >&5
14380if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
14381 echo $ac_n "(cached) $ac_c" 1>&6
14382else
14383 cat > conftest.$ac_ext <<EOF
14384#line 14385 "configure"
14385#include "confdefs.h"
14386#include <sys/types.h>
14387#if STDC_HEADERS
14388#include <stdlib.h>
14389#include <stddef.h>
14390#endif
14391EOF
14392if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14393 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14394 rm -rf conftest*
14395 ac_cv_type_size_t=yes
14396else
14397 rm -rf conftest*
14398 ac_cv_type_size_t=no
14399fi
14400rm -f conftest*
14401
14402fi
14403echo "$ac_t""$ac_cv_type_size_t" 1>&6
14404if test $ac_cv_type_size_t = no; then
14405 cat >> confdefs.h <<\EOF
14406#define size_t unsigned
14407EOF
14408
14409fi
14410
14411echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14412echo "configure:14413: checking for uid_t in sys/types.h" >&5
14413if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
14414 echo $ac_n "(cached) $ac_c" 1>&6
14415else
14416 cat > conftest.$ac_ext <<EOF
14417#line 14418 "configure"
14418#include "confdefs.h"
14419#include <sys/types.h>
14420EOF
14421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14422 egrep "uid_t" >/dev/null 2>&1; then
14423 rm -rf conftest*
14424 ac_cv_type_uid_t=yes
14425else
14426 rm -rf conftest*
14427 ac_cv_type_uid_t=no
14428fi
14429rm -f conftest*
14430
14431fi
14432
14433echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14434if test $ac_cv_type_uid_t = no; then
14435 cat >> confdefs.h <<\EOF
14436#define uid_t int
14437EOF
14438
14439 cat >> confdefs.h <<\EOF
14440#define gid_t int
14441EOF
14442
14443fi
14444
14445
14446echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
14447echo "configure:14448: checking for wchar_t" >&5
14448if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
14449 echo $ac_n "(cached) $ac_c" 1>&6
14450else
14451
14452 cat > conftest.$ac_ext <<EOF
14453#line 14454 "configure"
14454#include "confdefs.h"
14455
14456 #ifdef HAVE_WCHAR_H
14457 # ifdef __CYGWIN__
14458 # include <stddef.h>
14459 # endif
14460 # include <wchar.h>
14461 #endif
14462 #ifdef HAVE_STDLIB_H
14463 # include <stdlib.h>
14464 #endif
14465
14466int main() {
14467
14468 wchar_t wc, *ws;
14469 wc = L'a';
14470 ws = L"Hello, world!";
14471
14472; return 0; }
14473EOF
14474if { (eval echo configure:14475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14475 rm -rf conftest*
14476 wx_cv_type_wchar_t=yes
14477else
14478 echo "configure: failed program was:" >&5
14479 cat conftest.$ac_ext >&5
14480 rm -rf conftest*
14481 wx_cv_type_wchar_t=no
14482
14483fi
14484rm -f conftest*
14485
14486fi
14487
14488echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
14489
14490if test "$wx_cv_type_wchar_t" = "yes"; then
14491 cat >> confdefs.h <<\EOF
14492#define wxUSE_WCHAR_T 1
14493EOF
14494
14495fi
14496
14497
14498ac_ext=C
14499# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14500ac_cpp='$CXXCPP $CPPFLAGS'
14501ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14502ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14503cross_compiling=$ac_cv_prog_cxx_cross
14504
14505echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
14506echo "configure:14507: checking if size_t is unsigned int" >&5
14507if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
14508 echo $ac_n "(cached) $ac_c" 1>&6
14509else
14510 cat > conftest.$ac_ext <<EOF
14511#line 14512 "configure"
14512#include "confdefs.h"
14513#include <stddef.h>
14514int main() {
14515
14516 return 0; }
14517
14518 struct Foo { void foo(size_t); void foo(unsigned int); };
14519
14520 int bar() {
14521
14522; return 0; }
14523EOF
14524if { (eval echo configure:14525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14525 rm -rf conftest*
14526 wx_cv_size_t_is_uint=no
14527else
14528 echo "configure: failed program was:" >&5
14529 cat conftest.$ac_ext >&5
14530 rm -rf conftest*
14531 wx_cv_size_t_is_uint=yes
14532
14533fi
14534rm -f conftest*
14535
14536fi
14537
14538echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
14539
14540if test "$wx_cv_size_t_is_uint" = "yes"; then
14541 cat >> confdefs.h <<\EOF
14542#define wxSIZE_T_IS_UINT 1
14543EOF
14544
14545else
14546 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
14547echo "configure:14548: checking if size_t is unsigned long" >&5
14548if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
14549 echo $ac_n "(cached) $ac_c" 1>&6
14550else
14551 cat > conftest.$ac_ext <<EOF
14552#line 14553 "configure"
14553#include "confdefs.h"
14554#include <stddef.h>
14555int main() {
14556
14557 return 0; }
14558
14559 struct Foo { void foo(size_t); void foo(unsigned long); };
14560
14561 int bar() {
14562
14563; return 0; }
14564EOF
14565if { (eval echo configure:14566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14566 rm -rf conftest*
14567 wx_cv_size_t_is_ulong=no
14568else
14569 echo "configure: failed program was:" >&5
14570 cat conftest.$ac_ext >&5
14571 rm -rf conftest*
14572 wx_cv_size_t_is_ulong=yes
14573
14574fi
14575rm -f conftest*
14576
14577fi
14578
14579echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
14580
14581 if test "$wx_cv_size_t_is_ulong" = "yes"; then
14582 cat >> confdefs.h <<\EOF
14583#define wxSIZE_T_IS_ULONG 1
14584EOF
14585
14586 fi
14587fi
14588
14589ac_ext=c
14590# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14591ac_cpp='$CPP $CPPFLAGS'
14592ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14593ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14594cross_compiling=$ac_cv_prog_cc_cross
14595
14596
14597
14598echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
14599echo "configure:14600: checking for pw_gecos in struct passwd" >&5
14600if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
14601 echo $ac_n "(cached) $ac_c" 1>&6
14602else
14603
14604 cat > conftest.$ac_ext <<EOF
14605#line 14606 "configure"
14606#include "confdefs.h"
14607#include <pwd.h>
14608int main() {
14609
14610 char *p;
14611 struct passwd *pw;
14612 p = pw->pw_gecos;
14613
14614; return 0; }
14615EOF
14616if { (eval echo configure:14617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14617 rm -rf conftest*
14618
14619 wx_cv_struct_pw_gecos=yes
14620
14621else
14622 echo "configure: failed program was:" >&5
14623 cat conftest.$ac_ext >&5
14624 rm -rf conftest*
14625
14626 wx_cv_struct_pw_gecos=no
14627
14628
14629fi
14630rm -f conftest*
14631
14632
14633fi
14634
14635echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
14636
14637if test "$wx_cv_struct_pw_gecos" = "yes"; then
14638 cat >> confdefs.h <<\EOF
14639#define HAVE_PW_GECOS 1
14640EOF
14641
14642fi
14643
14644
14645echo $ac_n "checking for working const""... $ac_c" 1>&6
14646echo "configure:14647: checking for working const" >&5
14647if eval "test \"`echo '$''{'ac_cv_c_const'+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
14654int main() {
14655
14656/* Ultrix mips cc rejects this. */
14657typedef int charset[2]; const charset x;
14658/* SunOS 4.1.1 cc rejects this. */
14659char const *const *ccp;
14660char **p;
14661/* NEC SVR4.0.2 mips cc rejects this. */
14662struct point {int x, y;};
14663static struct point const zero = {0,0};
14664/* AIX XL C 1.02.0.0 rejects this.
14665 It does not let you subtract one const X* pointer from another in an arm
14666 of an if-expression whose if-part is not a constant expression */
14667const char *g = "string";
14668ccp = &g + (g ? g-g : 0);
14669/* HPUX 7.0 cc rejects these. */
14670++ccp;
14671p = (char**) ccp;
14672ccp = (char const *const *) p;
14673{ /* SCO 3.2v4 cc rejects this. */
14674 char *t;
14675 char const *s = 0 ? (char *) 0 : (char const *) 0;
14676
14677 *t++ = 0;
14678}
14679{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14680 int x[] = {25, 17};
14681 const int *foo = &x[0];
14682 ++foo;
14683}
14684{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14685 typedef const int *iptr;
14686 iptr p = 0;
14687 ++p;
14688}
14689{ /* AIX XL C 1.02.0.0 rejects this saying
14690 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14691 struct s { int j; const int *ap[3]; };
14692 struct s *b; b->j = 5;
14693}
14694{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14695 const int foo = 10;
14696}
14697
14698; return 0; }
14699EOF
14700if { (eval echo configure:14701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14701 rm -rf conftest*
14702 ac_cv_c_const=yes
14703else
14704 echo "configure: failed program was:" >&5
14705 cat conftest.$ac_ext >&5
14706 rm -rf conftest*
14707 ac_cv_c_const=no
14708fi
14709rm -f conftest*
14710fi
14711
14712echo "$ac_t""$ac_cv_c_const" 1>&6
14713if test $ac_cv_c_const = no; then
14714 cat >> confdefs.h <<\EOF
14715#define const
14716EOF
14717
14718fi
14719
14720echo $ac_n "checking for inline""... $ac_c" 1>&6
14721echo "configure:14722: checking for inline" >&5
14722if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
14723 echo $ac_n "(cached) $ac_c" 1>&6
14724else
14725 ac_cv_c_inline=no
14726for ac_kw in inline __inline__ __inline; do
14727 cat > conftest.$ac_ext <<EOF
14728#line 14729 "configure"
14729#include "confdefs.h"
14730
14731int main() {
14732} $ac_kw foo() {
14733; return 0; }
14734EOF
14735if { (eval echo configure:14736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14736 rm -rf conftest*
14737 ac_cv_c_inline=$ac_kw; break
14738else
14739 echo "configure: failed program was:" >&5
14740 cat conftest.$ac_ext >&5
14741fi
14742rm -f conftest*
14743done
14744
14745fi
14746
14747echo "$ac_t""$ac_cv_c_inline" 1>&6
14748case "$ac_cv_c_inline" in
14749 inline | yes) ;;
14750 no) cat >> confdefs.h <<\EOF
14751#define inline
14752EOF
14753 ;;
14754 *) cat >> confdefs.h <<EOF
14755#define inline $ac_cv_c_inline
14756EOF
14757 ;;
14758esac
14759
14760
14761echo $ac_n "checking size of char""... $ac_c" 1>&6
14762echo "configure:14763: checking size of char" >&5
14763if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
14764 echo $ac_n "(cached) $ac_c" 1>&6
14765else
14766 if test "$cross_compiling" = yes; then
14767 ac_cv_sizeof_char=1
14768else
14769 cat > conftest.$ac_ext <<EOF
14770#line 14771 "configure"
14771#include "confdefs.h"
14772#include <stdio.h>
14773int main()
14774{
14775 FILE *f=fopen("conftestval", "w");
14776 if (!f) return(1);
14777 fprintf(f, "%d\n", sizeof(char));
14778 return(0);
14779}
14780EOF
14781if { (eval echo configure:14782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14782then
14783 ac_cv_sizeof_char=`cat conftestval`
14784else
14785 echo "configure: failed program was:" >&5
14786 cat conftest.$ac_ext >&5
14787 rm -fr conftest*
14788 ac_cv_sizeof_char=0
14789fi
14790rm -fr conftest*
14791fi
14792
14793fi
14794echo "$ac_t""$ac_cv_sizeof_char" 1>&6
14795cat >> confdefs.h <<EOF
14796#define SIZEOF_CHAR $ac_cv_sizeof_char
14797EOF
14798
14799
14800echo $ac_n "checking size of short""... $ac_c" 1>&6
14801echo "configure:14802: checking size of short" >&5
14802if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
14803 echo $ac_n "(cached) $ac_c" 1>&6
14804else
14805 if test "$cross_compiling" = yes; then
14806 ac_cv_sizeof_short=2
14807else
14808 cat > conftest.$ac_ext <<EOF
14809#line 14810 "configure"
14810#include "confdefs.h"
14811#include <stdio.h>
14812int main()
14813{
14814 FILE *f=fopen("conftestval", "w");
14815 if (!f) return(1);
14816 fprintf(f, "%d\n", sizeof(short));
14817 return(0);
14818}
14819EOF
14820if { (eval echo configure:14821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14821then
14822 ac_cv_sizeof_short=`cat conftestval`
14823else
14824 echo "configure: failed program was:" >&5
14825 cat conftest.$ac_ext >&5
14826 rm -fr conftest*
14827 ac_cv_sizeof_short=0
14828fi
14829rm -fr conftest*
14830fi
14831
14832fi
14833echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14834cat >> confdefs.h <<EOF
14835#define SIZEOF_SHORT $ac_cv_sizeof_short
14836EOF
14837
14838
14839echo $ac_n "checking size of int *""... $ac_c" 1>&6
14840echo "configure:14841: checking size of int *" >&5
14841if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
14842 echo $ac_n "(cached) $ac_c" 1>&6
14843else
14844 if test "$cross_compiling" = yes; then
14845 ac_cv_sizeof_int_p=4
14846else
14847 cat > conftest.$ac_ext <<EOF
14848#line 14849 "configure"
14849#include "confdefs.h"
14850#include <stdio.h>
14851int main()
14852{
14853 FILE *f=fopen("conftestval", "w");
14854 if (!f) return(1);
14855 fprintf(f, "%d\n", sizeof(int *));
14856 return(0);
14857}
14858EOF
14859if { (eval echo configure:14860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14860then
14861 ac_cv_sizeof_int_p=`cat conftestval`
14862else
14863 echo "configure: failed program was:" >&5
14864 cat conftest.$ac_ext >&5
14865 rm -fr conftest*
14866 ac_cv_sizeof_int_p=0
14867fi
14868rm -fr conftest*
14869fi
14870
14871fi
14872echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
14873cat >> confdefs.h <<EOF
14874#define SIZEOF_INT_P $ac_cv_sizeof_int_p
14875EOF
14876
14877
14878echo $ac_n "checking size of int""... $ac_c" 1>&6
14879echo "configure:14880: checking size of int" >&5
14880if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
14881 echo $ac_n "(cached) $ac_c" 1>&6
14882else
14883 if test "$cross_compiling" = yes; then
14884 ac_cv_sizeof_int=4
14885else
14886 cat > conftest.$ac_ext <<EOF
14887#line 14888 "configure"
14888#include "confdefs.h"
14889#include <stdio.h>
14890int main()
14891{
14892 FILE *f=fopen("conftestval", "w");
14893 if (!f) return(1);
14894 fprintf(f, "%d\n", sizeof(int));
14895 return(0);
14896}
14897EOF
14898if { (eval echo configure:14899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14899then
14900 ac_cv_sizeof_int=`cat conftestval`
14901else
14902 echo "configure: failed program was:" >&5
14903 cat conftest.$ac_ext >&5
14904 rm -fr conftest*
14905 ac_cv_sizeof_int=0
14906fi
14907rm -fr conftest*
14908fi
14909
14910fi
14911echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14912cat >> confdefs.h <<EOF
14913#define SIZEOF_INT $ac_cv_sizeof_int
14914EOF
14915
14916
14917echo $ac_n "checking size of long""... $ac_c" 1>&6
14918echo "configure:14919: checking size of long" >&5
14919if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
14920 echo $ac_n "(cached) $ac_c" 1>&6
14921else
14922 if test "$cross_compiling" = yes; then
14923 ac_cv_sizeof_long=4
14924else
14925 cat > conftest.$ac_ext <<EOF
14926#line 14927 "configure"
14927#include "confdefs.h"
14928#include <stdio.h>
14929int main()
14930{
14931 FILE *f=fopen("conftestval", "w");
14932 if (!f) return(1);
14933 fprintf(f, "%d\n", sizeof(long));
14934 return(0);
14935}
14936EOF
14937if { (eval echo configure:14938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14938then
14939 ac_cv_sizeof_long=`cat conftestval`
14940else
14941 echo "configure: failed program was:" >&5
14942 cat conftest.$ac_ext >&5
14943 rm -fr conftest*
14944 ac_cv_sizeof_long=0
14945fi
14946rm -fr conftest*
14947fi
14948
14949fi
14950echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14951cat >> confdefs.h <<EOF
14952#define SIZEOF_LONG $ac_cv_sizeof_long
14953EOF
14954
14955
14956echo $ac_n "checking size of long long""... $ac_c" 1>&6
14957echo "configure:14958: checking size of long long" >&5
14958if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
14959 echo $ac_n "(cached) $ac_c" 1>&6
14960else
14961 if test "$cross_compiling" = yes; then
14962 ac_cv_sizeof_long_long=0
14963else
14964 cat > conftest.$ac_ext <<EOF
14965#line 14966 "configure"
14966#include "confdefs.h"
14967#include <stdio.h>
14968int main()
14969{
14970 FILE *f=fopen("conftestval", "w");
14971 if (!f) return(1);
14972 fprintf(f, "%d\n", sizeof(long long));
14973 return(0);
14974}
14975EOF
14976if { (eval echo configure:14977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14977then
14978 ac_cv_sizeof_long_long=`cat conftestval`
14979else
14980 echo "configure: failed program was:" >&5
14981 cat conftest.$ac_ext >&5
14982 rm -fr conftest*
14983 ac_cv_sizeof_long_long=0
14984fi
14985rm -fr conftest*
14986fi
14987
14988fi
14989echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
14990cat >> confdefs.h <<EOF
14991#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14992EOF
14993
14994
14995
14996echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
14997echo "configure:14998: checking size of wchar_t" >&5
14998if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
14999 echo $ac_n "(cached) $ac_c" 1>&6
15000else
15001
15002 if test "$cross_compiling" = yes; then
15003 wx_cv_sizeof_wchar_t=4
15004
15005else
15006 cat > conftest.$ac_ext <<EOF
15007#line 15008 "configure"
15008#include "confdefs.h"
15009
15010 #ifdef HAVE_WCHAR_H
15011 # ifdef __CYGWIN__
15012 # include <stddef.h>
15013 # endif
15014 # include <wchar.h>
15015 #endif
15016 #ifdef HAVE_STDLIB_H
15017 # include <stdlib.h>
15018 #endif
15019 #include <stdio.h>
15020 int main()
15021 {
15022 FILE *f=fopen("conftestval", "w");
15023 if (!f) exit(1);
15024 fprintf(f, "%i", sizeof(wchar_t));
15025 exit(0);
15026 }
15027
15028EOF
15029if { (eval echo configure:15030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15030then
15031 wx_cv_sizeof_wchar_t=`cat conftestval`
15032else
15033 echo "configure: failed program was:" >&5
15034 cat conftest.$ac_ext >&5
15035 rm -fr conftest*
15036 wx_cv_sizeof_wchar_t=0
15037fi
15038rm -fr conftest*
15039fi
15040
15041
15042fi
15043
15044echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
15045
15046cat >> confdefs.h <<EOF
15047#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
15048EOF
15049
15050
15051echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
15052echo "configure:15053: checking whether byte ordering is bigendian" >&5
15053if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
15054 echo $ac_n "(cached) $ac_c" 1>&6
15055else
15056 ac_cv_c_bigendian=unknown
15057# See if sys/param.h defines the BYTE_ORDER macro.
15058cat > conftest.$ac_ext <<EOF
15059#line 15060 "configure"
15060#include "confdefs.h"
15061#include <sys/types.h>
15062#include <sys/param.h>
15063int main() {
15064
15065#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15066 bogus endian macros
15067#endif
15068; return 0; }
15069EOF
15070if { (eval echo configure:15071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15071 rm -rf conftest*
15072 # It does; now see whether it defined to BIG_ENDIAN or not.
15073cat > conftest.$ac_ext <<EOF
15074#line 15075 "configure"
15075#include "confdefs.h"
15076#include <sys/types.h>
15077#include <sys/param.h>
15078int main() {
15079
15080#if BYTE_ORDER != BIG_ENDIAN
15081 not big endian
15082#endif
15083; return 0; }
15084EOF
15085if { (eval echo configure:15086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15086 rm -rf conftest*
15087 ac_cv_c_bigendian=yes
15088else
15089 echo "configure: failed program was:" >&5
15090 cat conftest.$ac_ext >&5
15091 rm -rf conftest*
15092 ac_cv_c_bigendian=no
15093fi
15094rm -f conftest*
15095else
15096 echo "configure: failed program was:" >&5
15097 cat conftest.$ac_ext >&5
15098fi
15099rm -f conftest*
15100if test $ac_cv_c_bigendian = unknown; then
15101if test "$cross_compiling" = yes; then
15102 ac_cv_c_bigendian=unknown
15103else
15104 cat > conftest.$ac_ext <<EOF
15105#line 15106 "configure"
15106#include "confdefs.h"
15107main () {
15108 /* Are we little or big endian? From Harbison&Steele. */
15109 union
15110 {
15111 long l;
15112 char c[sizeof (long)];
15113 } u;
15114 u.l = 1;
15115 exit (u.c[sizeof (long) - 1] == 1);
15116}
15117EOF
15118if { (eval echo configure:15119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15119then
15120 ac_cv_c_bigendian=no
15121else
15122 echo "configure: failed program was:" >&5
15123 cat conftest.$ac_ext >&5
15124 rm -fr conftest*
15125 ac_cv_c_bigendian=yes
15126fi
15127rm -fr conftest*
15128fi
15129
15130fi
15131fi
15132
15133echo "$ac_t""$ac_cv_c_bigendian" 1>&6
15134if test $ac_cv_c_bigendian = unknown; then
15135 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
15136fi
15137if test $ac_cv_c_bigendian = yes; then
15138 cat >> confdefs.h <<\EOF
15139#define WORDS_BIGENDIAN 1
15140EOF
15141
15142fi
15143
15144
15145echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
15146echo "configure:15147: checking how to run the C++ preprocessor" >&5
15147if test -z "$CXXCPP"; then
15148if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
15149 echo $ac_n "(cached) $ac_c" 1>&6
15150else
15151 ac_ext=C
15152# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15153ac_cpp='$CXXCPP $CPPFLAGS'
15154ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15155ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15156cross_compiling=$ac_cv_prog_cxx_cross
15157 CXXCPP="${CXX-g++} -E"
15158 cat > conftest.$ac_ext <<EOF
15159#line 15160 "configure"
15160#include "confdefs.h"
15161#include <stdlib.h>
15162EOF
15163ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15164{ (eval echo configure:15165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15165ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15166if test -z "$ac_err"; then
15167 :
15168else
15169 echo "$ac_err" >&5
15170 echo "configure: failed program was:" >&5
15171 cat conftest.$ac_ext >&5
15172 rm -rf conftest*
15173 CXXCPP=/lib/cpp
15174fi
15175rm -f conftest*
15176 ac_cv_prog_CXXCPP="$CXXCPP"
15177ac_ext=C
15178# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15179ac_cpp='$CXXCPP $CPPFLAGS'
15180ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15181ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15182cross_compiling=$ac_cv_prog_cxx_cross
15183fi
15184fi
15185CXXCPP="$ac_cv_prog_CXXCPP"
15186echo "$ac_t""$CXXCPP" 1>&6
15187
15188
15189 if test "$cross_compiling" = "yes"; then
15190 cat >> confdefs.h <<\EOF
15191#define wxUSE_IOSTREAMH 1
15192EOF
15193
15194 else
15195
15196 ac_ext=C
15197# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15198ac_cpp='$CXXCPP $CPPFLAGS'
15199ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15200ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15201cross_compiling=$ac_cv_prog_cxx_cross
15202
15203
15204 for ac_hdr in iostream
15205do
15206ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15207echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15208echo "configure:15209: checking for $ac_hdr" >&5
15209if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15210 echo $ac_n "(cached) $ac_c" 1>&6
15211else
15212 cat > conftest.$ac_ext <<EOF
15213#line 15214 "configure"
15214#include "confdefs.h"
15215#include <$ac_hdr>
15216EOF
15217ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15218{ (eval echo configure:15219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15219ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15220if test -z "$ac_err"; then
15221 rm -rf conftest*
15222 eval "ac_cv_header_$ac_safe=yes"
15223else
15224 echo "$ac_err" >&5
15225 echo "configure: failed program was:" >&5
15226 cat conftest.$ac_ext >&5
15227 rm -rf conftest*
15228 eval "ac_cv_header_$ac_safe=no"
15229fi
15230rm -f conftest*
15231fi
15232if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15233 echo "$ac_t""yes" 1>&6
15234 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15235 cat >> confdefs.h <<EOF
15236#define $ac_tr_hdr 1
15237EOF
15238
15239else
15240 echo "$ac_t""no" 1>&6
15241fi
15242done
15243
15244
15245 if test "$ac_cv_header_iostream" = "yes" ; then
15246 :
15247 else
15248 cat >> confdefs.h <<\EOF
15249#define wxUSE_IOSTREAMH 1
15250EOF
15251
15252 fi
15253
15254 ac_ext=c
15255# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15256ac_cpp='$CPP $CPPFLAGS'
15257ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15258ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15259cross_compiling=$ac_cv_prog_cc_cross
15260
15261 fi
15262
15263
15264
15265 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
15266echo "configure:15267: checking if C++ compiler supports bool" >&5
15267if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
15268 echo $ac_n "(cached) $ac_c" 1>&6
15269else
15270
15271
15272 ac_ext=C
15273# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15274ac_cpp='$CXXCPP $CPPFLAGS'
15275ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15276ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15277cross_compiling=$ac_cv_prog_cxx_cross
15278
15279
15280 cat > conftest.$ac_ext <<EOF
15281#line 15282 "configure"
15282#include "confdefs.h"
15283
15284
15285int main() {
15286
15287 bool b = true;
15288
15289 return 0;
15290
15291; return 0; }
15292EOF
15293if { (eval echo configure:15294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15294 rm -rf conftest*
15295
15296 wx_cv_cpp_bool=yes
15297
15298else
15299 echo "configure: failed program was:" >&5
15300 cat conftest.$ac_ext >&5
15301 rm -rf conftest*
15302
15303 wx_cv_cpp_bool=no
15304
15305
15306fi
15307rm -f conftest*
15308
15309 ac_ext=c
15310# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15311ac_cpp='$CPP $CPPFLAGS'
15312ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15313ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15314cross_compiling=$ac_cv_prog_cc_cross
15315
15316
15317fi
15318
15319echo "$ac_t""$wx_cv_cpp_bool" 1>&6
15320
15321 if test "$wx_cv_cpp_bool" = "yes"; then
15322 cat >> confdefs.h <<\EOF
15323#define HAVE_BOOL 1
15324EOF
15325
15326 fi
15327
15328
15329
15330echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
15331echo "configure:15332: checking for wcslen in -lc" >&5
15332ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
15333if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15334 echo $ac_n "(cached) $ac_c" 1>&6
15335else
15336 ac_save_LIBS="$LIBS"
15337LIBS="-lc $LIBS"
15338cat > conftest.$ac_ext <<EOF
15339#line 15340 "configure"
15340#include "confdefs.h"
15341/* Override any gcc2 internal prototype to avoid an error. */
15342/* We use char because int might match the return type of a gcc2
15343 builtin and then its argument prototype would still apply. */
15344char wcslen();
15345
15346int main() {
15347wcslen()
15348; return 0; }
15349EOF
15350if { (eval echo configure:15351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15351 rm -rf conftest*
15352 eval "ac_cv_lib_$ac_lib_var=yes"
15353else
15354 echo "configure: failed program was:" >&5
15355 cat conftest.$ac_ext >&5
15356 rm -rf conftest*
15357 eval "ac_cv_lib_$ac_lib_var=no"
15358fi
15359rm -f conftest*
15360LIBS="$ac_save_LIBS"
15361
15362fi
15363if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15364 echo "$ac_t""yes" 1>&6
15365
15366 cat >> confdefs.h <<\EOF
15367#define HAVE_WCSLEN 1
15368EOF
15369
15370 WCHAR_LINK=
15371
15372else
15373 echo "$ac_t""no" 1>&6
15374
15375 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
15376echo "configure:15377: checking for wcslen in -lw" >&5
15377ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
15378if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15379 echo $ac_n "(cached) $ac_c" 1>&6
15380else
15381 ac_save_LIBS="$LIBS"
15382LIBS="-lw $LIBS"
15383cat > conftest.$ac_ext <<EOF
15384#line 15385 "configure"
15385#include "confdefs.h"
15386/* Override any gcc2 internal prototype to avoid an error. */
15387/* We use char because int might match the return type of a gcc2
15388 builtin and then its argument prototype would still apply. */
15389char wcslen();
15390
15391int main() {
15392wcslen()
15393; return 0; }
15394EOF
15395if { (eval echo configure:15396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15396 rm -rf conftest*
15397 eval "ac_cv_lib_$ac_lib_var=yes"
15398else
15399 echo "configure: failed program was:" >&5
15400 cat conftest.$ac_ext >&5
15401 rm -rf conftest*
15402 eval "ac_cv_lib_$ac_lib_var=no"
15403fi
15404rm -f conftest*
15405LIBS="$ac_save_LIBS"
15406
15407fi
15408if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15409 echo "$ac_t""yes" 1>&6
15410
15411 cat >> confdefs.h <<\EOF
15412#define HAVE_WCSLEN 1
15413EOF
15414
15415 WCHAR_LINK=" -lw"
15416
15417else
15418 echo "$ac_t""no" 1>&6
15419
15420 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
15421echo "configure:15422: checking for wcslen in -lmsvcrt" >&5
15422ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
15423if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15424 echo $ac_n "(cached) $ac_c" 1>&6
15425else
15426 ac_save_LIBS="$LIBS"
15427LIBS="-lmsvcrt $LIBS"
15428cat > conftest.$ac_ext <<EOF
15429#line 15430 "configure"
15430#include "confdefs.h"
15431/* Override any gcc2 internal prototype to avoid an error. */
15432/* We use char because int might match the return type of a gcc2
15433 builtin and then its argument prototype would still apply. */
15434char wcslen();
15435
15436int main() {
15437wcslen()
15438; return 0; }
15439EOF
15440if { (eval echo configure:15441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15441 rm -rf conftest*
15442 eval "ac_cv_lib_$ac_lib_var=yes"
15443else
15444 echo "configure: failed program was:" >&5
15445 cat conftest.$ac_ext >&5
15446 rm -rf conftest*
15447 eval "ac_cv_lib_$ac_lib_var=no"
15448fi
15449rm -f conftest*
15450LIBS="$ac_save_LIBS"
15451
15452fi
15453if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15454 echo "$ac_t""yes" 1>&6
15455
15456 cat >> confdefs.h <<\EOF
15457#define HAVE_WCSLEN 1
15458EOF
15459
15460 WCHAR_LINK=
15461
15462else
15463 echo "$ac_t""no" 1>&6
15464fi
15465
15466
15467fi
15468
15469
15470fi
15471
15472
15473for ac_func in wcsrtombs
15474do
15475echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15476echo "configure:15477: checking for $ac_func" >&5
15477if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15478 echo $ac_n "(cached) $ac_c" 1>&6
15479else
15480 cat > conftest.$ac_ext <<EOF
15481#line 15482 "configure"
15482#include "confdefs.h"
15483/* System header to define __stub macros and hopefully few prototypes,
15484 which can conflict with char $ac_func(); below. */
15485#include <assert.h>
15486/* Override any gcc2 internal prototype to avoid an error. */
15487/* We use char because int might match the return type of a gcc2
15488 builtin and then its argument prototype would still apply. */
15489char $ac_func();
15490
15491int main() {
15492
15493/* The GNU C library defines this for functions which it implements
15494 to always fail with ENOSYS. Some functions are actually named
15495 something starting with __ and the normal name is an alias. */
15496#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15497choke me
15498#else
15499$ac_func();
15500#endif
15501
15502; return 0; }
15503EOF
15504if { (eval echo configure:15505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15505 rm -rf conftest*
15506 eval "ac_cv_func_$ac_func=yes"
15507else
15508 echo "configure: failed program was:" >&5
15509 cat conftest.$ac_ext >&5
15510 rm -rf conftest*
15511 eval "ac_cv_func_$ac_func=no"
15512fi
15513rm -f conftest*
15514fi
15515
15516if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15517 echo "$ac_t""yes" 1>&6
15518 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15519 cat >> confdefs.h <<EOF
15520#define $ac_tr_func 1
15521EOF
15522
15523else
15524 echo "$ac_t""no" 1>&6
15525fi
15526done
15527
15528
15529echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15530echo "configure:15531: checking for vprintf" >&5
15531if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
15532 echo $ac_n "(cached) $ac_c" 1>&6
15533else
15534 cat > conftest.$ac_ext <<EOF
15535#line 15536 "configure"
15536#include "confdefs.h"
15537/* System header to define __stub macros and hopefully few prototypes,
15538 which can conflict with char vprintf(); below. */
15539#include <assert.h>
15540/* Override any gcc2 internal prototype to avoid an error. */
15541/* We use char because int might match the return type of a gcc2
15542 builtin and then its argument prototype would still apply. */
15543char vprintf();
15544
15545int main() {
15546
15547/* The GNU C library defines this for functions which it implements
15548 to always fail with ENOSYS. Some functions are actually named
15549 something starting with __ and the normal name is an alias. */
15550#if defined (__stub_vprintf) || defined (__stub___vprintf)
15551choke me
15552#else
15553vprintf();
15554#endif
15555
15556; return 0; }
15557EOF
15558if { (eval echo configure:15559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15559 rm -rf conftest*
15560 eval "ac_cv_func_vprintf=yes"
15561else
15562 echo "configure: failed program was:" >&5
15563 cat conftest.$ac_ext >&5
15564 rm -rf conftest*
15565 eval "ac_cv_func_vprintf=no"
15566fi
15567rm -f conftest*
15568fi
15569
15570if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15571 echo "$ac_t""yes" 1>&6
15572 cat >> confdefs.h <<\EOF
15573#define HAVE_VPRINTF 1
15574EOF
15575
15576else
15577 echo "$ac_t""no" 1>&6
15578fi
15579
15580if test "$ac_cv_func_vprintf" != yes; then
15581echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15582echo "configure:15583: checking for _doprnt" >&5
15583if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
15584 echo $ac_n "(cached) $ac_c" 1>&6
15585else
15586 cat > conftest.$ac_ext <<EOF
15587#line 15588 "configure"
15588#include "confdefs.h"
15589/* System header to define __stub macros and hopefully few prototypes,
15590 which can conflict with char _doprnt(); below. */
15591#include <assert.h>
15592/* Override any gcc2 internal prototype to avoid an error. */
15593/* We use char because int might match the return type of a gcc2
15594 builtin and then its argument prototype would still apply. */
15595char _doprnt();
15596
15597int main() {
15598
15599/* The GNU C library defines this for functions which it implements
15600 to always fail with ENOSYS. Some functions are actually named
15601 something starting with __ and the normal name is an alias. */
15602#if defined (__stub__doprnt) || defined (__stub____doprnt)
15603choke me
15604#else
15605_doprnt();
15606#endif
15607
15608; return 0; }
15609EOF
15610if { (eval echo configure:15611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15611 rm -rf conftest*
15612 eval "ac_cv_func__doprnt=yes"
15613else
15614 echo "configure: failed program was:" >&5
15615 cat conftest.$ac_ext >&5
15616 rm -rf conftest*
15617 eval "ac_cv_func__doprnt=no"
15618fi
15619rm -f conftest*
15620fi
15621
15622if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15623 echo "$ac_t""yes" 1>&6
15624 cat >> confdefs.h <<\EOF
15625#define HAVE_DOPRNT 1
15626EOF
15627
15628else
15629 echo "$ac_t""no" 1>&6
15630fi
15631
15632fi
15633
15634
15635
15636
15637
15638
15639echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
15640echo "configure:15641: checking for vsnprintf" >&5
15641if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
15642 echo $ac_n "(cached) $ac_c" 1>&6
15643else
15644
15645 cat > conftest.$ac_ext <<EOF
15646#line 15647 "configure"
15647#include "confdefs.h"
15648
15649 #include <stdio.h>
15650 #include <stdarg.h>
15651
15652int main() {
15653
15654 int wx_test_vsnprintf(const char *, ...);
15655
15656 wx_test_vsnprintf("%s");
15657 return 0;
15658 }
15659
15660 int wx_test_vsnprintf(const char *fmt, ...)
15661 {
15662 char *s;
15663
15664 va_list argp;
15665 va_start(argp, fmt);
15666 vsnprintf(s, 42, fmt, argp);
15667 va_end(argp);
15668
15669; return 0; }
15670EOF
15671if { (eval echo configure:15672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15672 rm -rf conftest*
15673
15674 wx_cv_func_vsnprintf=yes
15675
15676else
15677 echo "configure: failed program was:" >&5
15678 cat conftest.$ac_ext >&5
15679 rm -rf conftest*
15680
15681 cat > conftest.$ac_ext <<EOF
15682#line 15683 "configure"
15683#include "confdefs.h"
15684
15685 #include <stdio.h>
15686 #include <stdarg.h>
15687
15688int main() {
15689
15690 int wx_test_vsnprintf(const char *, ...);
15691
15692 wx_test_vsnprintf("%s");
15693 return 0;
15694 }
15695
15696 int wx_test_vsnprintf(const char *fmt, ...)
15697 {
15698 char *s;
15699
15700 va_list argp;
15701 va_start(argp, fmt);
15702 _vsnprintf(s, 42, fmt, argp);
15703 va_end(argp);
15704
15705; return 0; }
15706EOF
15707if { (eval echo configure:15708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15708 rm -rf conftest*
15709
15710 wx_cv_func_vsnprintf=yes
15711
15712else
15713 echo "configure: failed program was:" >&5
15714 cat conftest.$ac_ext >&5
15715 rm -rf conftest*
15716
15717 wx_cv_func_vsnprintf=no
15718
15719fi
15720rm -f conftest*
15721
15722fi
15723rm -f conftest*
15724
15725fi
15726
15727echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
15728
15729if test "$wx_cv_func_vsnprintf" = yes; then
15730 cat >> confdefs.h <<\EOF
15731#define HAVE_VSNPRINTF 1
15732EOF
15733
15734else
15735 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
15736fi
15737
15738echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
15739echo "configure:15740: checking for vsscanf" >&5
15740if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
15741 echo $ac_n "(cached) $ac_c" 1>&6
15742else
15743
15744 cat > conftest.$ac_ext <<EOF
15745#line 15746 "configure"
15746#include "confdefs.h"
15747
15748 #include <stdio.h>
15749 #include <stdarg.h>
15750
15751int main() {
15752
15753 int wx_test_vsscanf(const char *, ...);
15754
15755 wx_test_vsscanf("%d");
15756 return 0;
15757 }
15758
15759 int wx_test_vsscanf(const char *fmt, ...)
15760 {
15761 va_list argp;
15762 va_start(argp, fmt);
15763 vsscanf("42", fmt, argp);
15764 va_end(argp);
15765
15766; return 0; }
15767EOF
15768if { (eval echo configure:15769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15769 rm -rf conftest*
15770
15771 wx_cv_func_vsscanf=yes
15772
15773else
15774 echo "configure: failed program was:" >&5
15775 cat conftest.$ac_ext >&5
15776 rm -rf conftest*
15777
15778 wx_cv_func_vsscanf=no
15779
15780fi
15781rm -f conftest*
15782
15783fi
15784
15785echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
15786
15787if test "$wx_cv_func_vsscanf" = yes; then
15788 cat >> confdefs.h <<\EOF
15789#define HAVE_VSSCANF 1
15790EOF
15791
15792fi
15793
15794if test "$TOOLKIT" != "MSW"; then
15795
15796
15797
15798ac_ext=C
15799# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15800ac_cpp='$CXXCPP $CPPFLAGS'
15801ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15802ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15803cross_compiling=$ac_cv_prog_cxx_cross
15804
15805
15806
15807 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15808if test "${with_libiconv_prefix+set}" = set; then
15809 withval="$with_libiconv_prefix"
15810
15811 for dir in `echo "$withval" | tr : ' '`; do
15812 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
15813 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
15814 done
15815
15816fi
15817
15818
15819 echo $ac_n "checking for iconv""... $ac_c" 1>&6
15820echo "configure:15821: checking for iconv" >&5
15821if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
15822 echo $ac_n "(cached) $ac_c" 1>&6
15823else
15824
15825 am_cv_func_iconv="no, consider installing GNU libiconv"
15826 am_cv_lib_iconv=no
15827 cat > conftest.$ac_ext <<EOF
15828#line 15829 "configure"
15829#include "confdefs.h"
15830#include <stdlib.h>
15831#include <iconv.h>
15832int main() {
15833iconv_t cd = iconv_open("","");
15834 iconv(cd,NULL,NULL,NULL,NULL);
15835 iconv_close(cd);
15836; return 0; }
15837EOF
15838if { (eval echo configure:15839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15839 rm -rf conftest*
15840 am_cv_func_iconv=yes
15841else
15842 echo "configure: failed program was:" >&5
15843 cat conftest.$ac_ext >&5
15844fi
15845rm -f conftest*
15846 if test "$am_cv_func_iconv" != yes; then
15847 am_save_LIBS="$LIBS"
15848 LIBS="$LIBS -liconv"
15849 cat > conftest.$ac_ext <<EOF
15850#line 15851 "configure"
15851#include "confdefs.h"
15852#include <stdlib.h>
15853#include <iconv.h>
15854int main() {
15855iconv_t cd = iconv_open("","");
15856 iconv(cd,NULL,NULL,NULL,NULL);
15857 iconv_close(cd);
15858; return 0; }
15859EOF
15860if { (eval echo configure:15861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15861 rm -rf conftest*
15862 am_cv_lib_iconv=yes
15863 am_cv_func_iconv=yes
15864else
15865 echo "configure: failed program was:" >&5
15866 cat conftest.$ac_ext >&5
15867fi
15868rm -f conftest*
15869 LIBS="$am_save_LIBS"
15870 fi
15871
15872fi
15873
15874echo "$ac_t""$am_cv_func_iconv" 1>&6
15875 if test "$am_cv_func_iconv" = yes; then
15876 cat >> confdefs.h <<\EOF
15877#define HAVE_ICONV 1
15878EOF
15879
15880 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
15881echo "configure:15882: checking if iconv needs const" >&5
15882if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
15883 echo $ac_n "(cached) $ac_c" 1>&6
15884else
15885 cat > conftest.$ac_ext <<EOF
15886#line 15887 "configure"
15887#include "confdefs.h"
15888
15889#include <stdlib.h>
15890#include <iconv.h>
15891extern
15892#ifdef __cplusplus
15893"C"
15894#endif
15895#if defined(__STDC__) || defined(__cplusplus)
15896size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15897#else
15898size_t iconv();
15899#endif
15900
15901int main() {
15902
15903; return 0; }
15904EOF
15905if { (eval echo configure:15906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15906 rm -rf conftest*
15907 wx_cv_func_iconv_const="no"
15908else
15909 echo "configure: failed program was:" >&5
15910 cat conftest.$ac_ext >&5
15911 rm -rf conftest*
15912 wx_cv_func_iconv_const="yes"
15913
15914fi
15915rm -f conftest*
15916
15917fi
15918
15919echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
15920
15921 iconv_const=
15922 if test "x$wx_cv_func_iconv_const" = "xyes"; then
15923 iconv_const="const"
15924 fi
15925
15926 cat >> confdefs.h <<EOF
15927#define ICONV_CONST $iconv_const
15928EOF
15929
15930 fi
15931 LIBICONV=
15932 if test "$am_cv_lib_iconv" = yes; then
15933 LIBICONV="-liconv"
15934 fi
15935
15936
15937LIBS="$LIBICONV $LIBS"
15938ac_ext=c
15939# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15940ac_cpp='$CPP $CPPFLAGS'
15941ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15942ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15943cross_compiling=$ac_cv_prog_cc_cross
15944
15945
15946if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
15947 for ac_func in sigaction
15948do
15949echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15950echo "configure:15951: checking for $ac_func" >&5
15951if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15952 echo $ac_n "(cached) $ac_c" 1>&6
15953else
15954 cat > conftest.$ac_ext <<EOF
15955#line 15956 "configure"
15956#include "confdefs.h"
15957/* System header to define __stub macros and hopefully few prototypes,
15958 which can conflict with char $ac_func(); below. */
15959#include <assert.h>
15960/* Override any gcc2 internal prototype to avoid an error. */
15961/* We use char because int might match the return type of a gcc2
15962 builtin and then its argument prototype would still apply. */
15963char $ac_func();
15964
15965int main() {
15966
15967/* The GNU C library defines this for functions which it implements
15968 to always fail with ENOSYS. Some functions are actually named
15969 something starting with __ and the normal name is an alias. */
15970#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15971choke me
15972#else
15973$ac_func();
15974#endif
15975
15976; return 0; }
15977EOF
15978if { (eval echo configure:15979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15979 rm -rf conftest*
15980 eval "ac_cv_func_$ac_func=yes"
15981else
15982 echo "configure: failed program was:" >&5
15983 cat conftest.$ac_ext >&5
15984 rm -rf conftest*
15985 eval "ac_cv_func_$ac_func=no"
15986fi
15987rm -f conftest*
15988fi
15989
15990if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15991 echo "$ac_t""yes" 1>&6
15992 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15993 cat >> confdefs.h <<EOF
15994#define $ac_tr_func 1
15995EOF
15996
15997else
15998 echo "$ac_t""no" 1>&6
15999fi
16000done
16001
16002
16003 if test "$ac_cv_func_sigaction" = "no"; then
16004 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
16005 wxUSE_ON_FATAL_EXCEPTION=no
16006 fi
16007
16008 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16009
16010 ac_ext=C
16011# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16012ac_cpp='$CXXCPP $CPPFLAGS'
16013ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16014ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16015cross_compiling=$ac_cv_prog_cxx_cross
16016
16017
16018 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
16019echo "configure:16020: checking for sa_handler type" >&5
16020if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
16021 echo $ac_n "(cached) $ac_c" 1>&6
16022else
16023
16024 cat > conftest.$ac_ext <<EOF
16025#line 16026 "configure"
16026#include "confdefs.h"
16027#include <signal.h>
16028int main() {
16029
16030 extern void testSigHandler(int);
16031
16032 struct sigaction sa;
16033 sa.sa_handler = testSigHandler;
16034
16035; return 0; }
16036EOF
16037if { (eval echo configure:16038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16038 rm -rf conftest*
16039
16040 wx_cv_type_sa_handler=int
16041
16042else
16043 echo "configure: failed program was:" >&5
16044 cat conftest.$ac_ext >&5
16045 rm -rf conftest*
16046
16047 wx_cv_type_sa_handler=void
16048
16049fi
16050rm -f conftest*
16051
16052fi
16053
16054echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
16055
16056 ac_ext=c
16057# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16058ac_cpp='$CPP $CPPFLAGS'
16059ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16060ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16061cross_compiling=$ac_cv_prog_cc_cross
16062
16063
16064 cat >> confdefs.h <<EOF
16065#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
16066EOF
16067
16068 fi
16069fi
16070
16071for ac_func in vfork
16072do
16073echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16074echo "configure:16075: checking for $ac_func" >&5
16075if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16076 echo $ac_n "(cached) $ac_c" 1>&6
16077else
16078 cat > conftest.$ac_ext <<EOF
16079#line 16080 "configure"
16080#include "confdefs.h"
16081/* System header to define __stub macros and hopefully few prototypes,
16082 which can conflict with char $ac_func(); below. */
16083#include <assert.h>
16084/* Override any gcc2 internal prototype to avoid an error. */
16085/* We use char because int might match the return type of a gcc2
16086 builtin and then its argument prototype would still apply. */
16087char $ac_func();
16088
16089int main() {
16090
16091/* The GNU C library defines this for functions which it implements
16092 to always fail with ENOSYS. Some functions are actually named
16093 something starting with __ and the normal name is an alias. */
16094#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16095choke me
16096#else
16097$ac_func();
16098#endif
16099
16100; return 0; }
16101EOF
16102if { (eval echo configure:16103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16103 rm -rf conftest*
16104 eval "ac_cv_func_$ac_func=yes"
16105else
16106 echo "configure: failed program was:" >&5
16107 cat conftest.$ac_ext >&5
16108 rm -rf conftest*
16109 eval "ac_cv_func_$ac_func=no"
16110fi
16111rm -f conftest*
16112fi
16113
16114if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16115 echo "$ac_t""yes" 1>&6
16116 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16117 cat >> confdefs.h <<EOF
16118#define $ac_tr_func 1
16119EOF
16120
16121else
16122 echo "$ac_t""no" 1>&6
16123fi
16124done
16125
16126
16127for ac_func in mkstemp mktemp
16128do
16129echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16130echo "configure:16131: checking for $ac_func" >&5
16131if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16132 echo $ac_n "(cached) $ac_c" 1>&6
16133else
16134 cat > conftest.$ac_ext <<EOF
16135#line 16136 "configure"
16136#include "confdefs.h"
16137/* System header to define __stub macros and hopefully few prototypes,
16138 which can conflict with char $ac_func(); below. */
16139#include <assert.h>
16140/* Override any gcc2 internal prototype to avoid an error. */
16141/* We use char because int might match the return type of a gcc2
16142 builtin and then its argument prototype would still apply. */
16143char $ac_func();
16144
16145int main() {
16146
16147/* The GNU C library defines this for functions which it implements
16148 to always fail with ENOSYS. Some functions are actually named
16149 something starting with __ and the normal name is an alias. */
16150#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16151choke me
16152#else
16153$ac_func();
16154#endif
16155
16156; return 0; }
16157EOF
16158if { (eval echo configure:16159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16159 rm -rf conftest*
16160 eval "ac_cv_func_$ac_func=yes"
16161else
16162 echo "configure: failed program was:" >&5
16163 cat conftest.$ac_ext >&5
16164 rm -rf conftest*
16165 eval "ac_cv_func_$ac_func=no"
16166fi
16167rm -f conftest*
16168fi
16169
16170if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16171 echo "$ac_t""yes" 1>&6
16172 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16173 cat >> confdefs.h <<EOF
16174#define $ac_tr_func 1
16175EOF
16176 break
16177else
16178 echo "$ac_t""no" 1>&6
16179fi
16180done
16181
16182
16183echo $ac_n "checking for statfs""... $ac_c" 1>&6
16184echo "configure:16185: checking for statfs" >&5
16185if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16186 echo $ac_n "(cached) $ac_c" 1>&6
16187else
16188 cat > conftest.$ac_ext <<EOF
16189#line 16190 "configure"
16190#include "confdefs.h"
16191
16192 #if defined(__BSD__)
16193 #include <sys/param.h>
16194 #include <sys/mount.h>
16195 #else
16196 #include <sys/vfs.h>
16197 #endif
16198
16199int main() {
16200
16201 long l;
16202 struct statfs fs;
16203 statfs("/", &fs);
16204 l = fs.f_bsize;
16205 l += fs.f_blocks;
16206 l += fs.f_bavail;
16207
16208; return 0; }
16209EOF
16210if { (eval echo configure:16211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16211 rm -rf conftest*
16212
16213 wx_cv_func_statfs=yes
16214
16215else
16216 echo "configure: failed program was:" >&5
16217 cat conftest.$ac_ext >&5
16218 rm -rf conftest*
16219
16220 wx_cv_func_statfs=no
16221
16222
16223fi
16224rm -f conftest*
16225
16226fi
16227
16228echo "$ac_t""$wx_cv_func_statfs" 1>&6
16229
16230if test "$wx_cv_func_statfs" = "yes"; then
16231 cat >> confdefs.h <<\EOF
16232#define HAVE_STATFS 1
16233EOF
16234
16235else
16236 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
16237echo "configure:16238: checking for statvfs" >&5
16238if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
16239 echo $ac_n "(cached) $ac_c" 1>&6
16240else
16241 cat > conftest.$ac_ext <<EOF
16242#line 16243 "configure"
16243#include "confdefs.h"
16244
16245 #include <sys/statvfs.h>
16246
16247int main() {
16248
16249 long l;
16250 struct statvfs fs;
16251 statvfs("/", &fs);
16252 l = fs.f_bsize;
16253 l += fs.f_blocks;
16254 l += fs.f_bavail;
16255
16256; return 0; }
16257EOF
16258if { (eval echo configure:16259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16259 rm -rf conftest*
16260
16261 wx_cv_func_statvfs=yes
16262
16263else
16264 echo "configure: failed program was:" >&5
16265 cat conftest.$ac_ext >&5
16266 rm -rf conftest*
16267
16268 wx_cv_func_statvfs=no
16269
16270
16271fi
16272rm -f conftest*
16273
16274fi
16275
16276echo "$ac_t""$wx_cv_func_statvfs" 1>&6
16277
16278 if test "$wx_cv_func_statvfs" = "yes"; then
16279 cat >> confdefs.h <<\EOF
16280#define HAVE_STATVFS 1
16281EOF
16282
16283 else
16284 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16285 fi
16286fi
16287
16288if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16289 for ac_func in fcntl flock
16290do
16291echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16292echo "configure:16293: checking for $ac_func" >&5
16293if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16294 echo $ac_n "(cached) $ac_c" 1>&6
16295else
16296 cat > conftest.$ac_ext <<EOF
16297#line 16298 "configure"
16298#include "confdefs.h"
16299/* System header to define __stub macros and hopefully few prototypes,
16300 which can conflict with char $ac_func(); below. */
16301#include <assert.h>
16302/* Override any gcc2 internal prototype to avoid an error. */
16303/* We use char because int might match the return type of a gcc2
16304 builtin and then its argument prototype would still apply. */
16305char $ac_func();
16306
16307int main() {
16308
16309/* The GNU C library defines this for functions which it implements
16310 to always fail with ENOSYS. Some functions are actually named
16311 something starting with __ and the normal name is an alias. */
16312#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16313choke me
16314#else
16315$ac_func();
16316#endif
16317
16318; return 0; }
16319EOF
16320if { (eval echo configure:16321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16321 rm -rf conftest*
16322 eval "ac_cv_func_$ac_func=yes"
16323else
16324 echo "configure: failed program was:" >&5
16325 cat conftest.$ac_ext >&5
16326 rm -rf conftest*
16327 eval "ac_cv_func_$ac_func=no"
16328fi
16329rm -f conftest*
16330fi
16331
16332if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16333 echo "$ac_t""yes" 1>&6
16334 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16335 cat >> confdefs.h <<EOF
16336#define $ac_tr_func 1
16337EOF
16338 break
16339else
16340 echo "$ac_t""no" 1>&6
16341fi
16342done
16343
16344
16345 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
16346 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
16347 wxUSE_SNGLINST_CHECKER=no
16348 fi
16349fi
16350
16351for ac_func in timegm
16352do
16353echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16354echo "configure:16355: checking for $ac_func" >&5
16355if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16356 echo $ac_n "(cached) $ac_c" 1>&6
16357else
16358 cat > conftest.$ac_ext <<EOF
16359#line 16360 "configure"
16360#include "confdefs.h"
16361/* System header to define __stub macros and hopefully few prototypes,
16362 which can conflict with char $ac_func(); below. */
16363#include <assert.h>
16364/* Override any gcc2 internal prototype to avoid an error. */
16365/* We use char because int might match the return type of a gcc2
16366 builtin and then its argument prototype would still apply. */
16367char $ac_func();
16368
16369int main() {
16370
16371/* The GNU C library defines this for functions which it implements
16372 to always fail with ENOSYS. Some functions are actually named
16373 something starting with __ and the normal name is an alias. */
16374#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16375choke me
16376#else
16377$ac_func();
16378#endif
16379
16380; return 0; }
16381EOF
16382if { (eval echo configure:16383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16383 rm -rf conftest*
16384 eval "ac_cv_func_$ac_func=yes"
16385else
16386 echo "configure: failed program was:" >&5
16387 cat conftest.$ac_ext >&5
16388 rm -rf conftest*
16389 eval "ac_cv_func_$ac_func=no"
16390fi
16391rm -f conftest*
16392fi
16393
16394if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16395 echo "$ac_t""yes" 1>&6
16396 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16397 cat >> confdefs.h <<EOF
16398#define $ac_tr_func 1
16399EOF
16400
16401else
16402 echo "$ac_t""no" 1>&6
16403fi
16404done
16405
16406
16407for ac_func in putenv setenv
16408do
16409echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16410echo "configure:16411: checking for $ac_func" >&5
16411if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16412 echo $ac_n "(cached) $ac_c" 1>&6
16413else
16414 cat > conftest.$ac_ext <<EOF
16415#line 16416 "configure"
16416#include "confdefs.h"
16417/* System header to define __stub macros and hopefully few prototypes,
16418 which can conflict with char $ac_func(); below. */
16419#include <assert.h>
16420/* Override any gcc2 internal prototype to avoid an error. */
16421/* We use char because int might match the return type of a gcc2
16422 builtin and then its argument prototype would still apply. */
16423char $ac_func();
16424
16425int main() {
16426
16427/* The GNU C library defines this for functions which it implements
16428 to always fail with ENOSYS. Some functions are actually named
16429 something starting with __ and the normal name is an alias. */
16430#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16431choke me
16432#else
16433$ac_func();
16434#endif
16435
16436; return 0; }
16437EOF
16438if { (eval echo configure:16439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16439 rm -rf conftest*
16440 eval "ac_cv_func_$ac_func=yes"
16441else
16442 echo "configure: failed program was:" >&5
16443 cat conftest.$ac_ext >&5
16444 rm -rf conftest*
16445 eval "ac_cv_func_$ac_func=no"
16446fi
16447rm -f conftest*
16448fi
16449
16450if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16451 echo "$ac_t""yes" 1>&6
16452 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16453 cat >> confdefs.h <<EOF
16454#define $ac_tr_func 1
16455EOF
16456 break
16457else
16458 echo "$ac_t""no" 1>&6
16459fi
16460done
16461
16462
16463HAVE_SOME_SLEEP_FUNC=0
16464if test "$USE_BEOS" = 1; then
16465 cat >> confdefs.h <<\EOF
16466#define HAVE_SLEEP 1
16467EOF
16468
16469 HAVE_SOME_SLEEP_FUNC=1
16470fi
16471
16472if test "$USE_DARWIN" = 1; then
16473 cat >> confdefs.h <<\EOF
16474#define HAVE_USLEEP 1
16475EOF
16476
16477 HAVE_SOME_SLEEP_FUNC=1
16478fi
16479
16480if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16481 POSIX4_LINK=
16482 for ac_func in nanosleep
16483do
16484echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16485echo "configure:16486: checking for $ac_func" >&5
16486if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16487 echo $ac_n "(cached) $ac_c" 1>&6
16488else
16489 cat > conftest.$ac_ext <<EOF
16490#line 16491 "configure"
16491#include "confdefs.h"
16492/* System header to define __stub macros and hopefully few prototypes,
16493 which can conflict with char $ac_func(); below. */
16494#include <assert.h>
16495/* Override any gcc2 internal prototype to avoid an error. */
16496/* We use char because int might match the return type of a gcc2
16497 builtin and then its argument prototype would still apply. */
16498char $ac_func();
16499
16500int main() {
16501
16502/* The GNU C library defines this for functions which it implements
16503 to always fail with ENOSYS. Some functions are actually named
16504 something starting with __ and the normal name is an alias. */
16505#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16506choke me
16507#else
16508$ac_func();
16509#endif
16510
16511; return 0; }
16512EOF
16513if { (eval echo configure:16514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16514 rm -rf conftest*
16515 eval "ac_cv_func_$ac_func=yes"
16516else
16517 echo "configure: failed program was:" >&5
16518 cat conftest.$ac_ext >&5
16519 rm -rf conftest*
16520 eval "ac_cv_func_$ac_func=no"
16521fi
16522rm -f conftest*
16523fi
16524
16525if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16526 echo "$ac_t""yes" 1>&6
16527 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16528 cat >> confdefs.h <<EOF
16529#define $ac_tr_func 1
16530EOF
16531 cat >> confdefs.h <<\EOF
16532#define HAVE_NANOSLEEP 1
16533EOF
16534
16535else
16536 echo "$ac_t""no" 1>&6
16537echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
16538echo "configure:16539: checking for nanosleep in -lposix4" >&5
16539ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
16540if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16541 echo $ac_n "(cached) $ac_c" 1>&6
16542else
16543 ac_save_LIBS="$LIBS"
16544LIBS="-lposix4 $LIBS"
16545cat > conftest.$ac_ext <<EOF
16546#line 16547 "configure"
16547#include "confdefs.h"
16548/* Override any gcc2 internal prototype to avoid an error. */
16549/* We use char because int might match the return type of a gcc2
16550 builtin and then its argument prototype would still apply. */
16551char nanosleep();
16552
16553int main() {
16554nanosleep()
16555; return 0; }
16556EOF
16557if { (eval echo configure:16558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16558 rm -rf conftest*
16559 eval "ac_cv_lib_$ac_lib_var=yes"
16560else
16561 echo "configure: failed program was:" >&5
16562 cat conftest.$ac_ext >&5
16563 rm -rf conftest*
16564 eval "ac_cv_lib_$ac_lib_var=no"
16565fi
16566rm -f conftest*
16567LIBS="$ac_save_LIBS"
16568
16569fi
16570if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16571 echo "$ac_t""yes" 1>&6
16572
16573 cat >> confdefs.h <<\EOF
16574#define HAVE_NANOSLEEP 1
16575EOF
16576
16577 POSIX4_LINK=" -lposix4"
16578
16579else
16580 echo "$ac_t""no" 1>&6
16581
16582 for ac_func in usleep
16583do
16584echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16585echo "configure:16586: checking for $ac_func" >&5
16586if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16587 echo $ac_n "(cached) $ac_c" 1>&6
16588else
16589 cat > conftest.$ac_ext <<EOF
16590#line 16591 "configure"
16591#include "confdefs.h"
16592/* System header to define __stub macros and hopefully few prototypes,
16593 which can conflict with char $ac_func(); below. */
16594#include <assert.h>
16595/* Override any gcc2 internal prototype to avoid an error. */
16596/* We use char because int might match the return type of a gcc2
16597 builtin and then its argument prototype would still apply. */
16598char $ac_func();
16599
16600int main() {
16601
16602/* The GNU C library defines this for functions which it implements
16603 to always fail with ENOSYS. Some functions are actually named
16604 something starting with __ and the normal name is an alias. */
16605#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16606choke me
16607#else
16608$ac_func();
16609#endif
16610
16611; return 0; }
16612EOF
16613if { (eval echo configure:16614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16614 rm -rf conftest*
16615 eval "ac_cv_func_$ac_func=yes"
16616else
16617 echo "configure: failed program was:" >&5
16618 cat conftest.$ac_ext >&5
16619 rm -rf conftest*
16620 eval "ac_cv_func_$ac_func=no"
16621fi
16622rm -f conftest*
16623fi
16624
16625if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16626 echo "$ac_t""yes" 1>&6
16627 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16628 cat >> confdefs.h <<EOF
16629#define $ac_tr_func 1
16630EOF
16631 cat >> confdefs.h <<\EOF
16632#define HAVE_USLEEP 1
16633EOF
16634
16635else
16636 echo "$ac_t""no" 1>&6
16637echo "configure: warning: wxSleep() function will not work" 1>&2
16638
16639fi
16640done
16641
16642
16643
16644fi
16645
16646
16647
16648fi
16649done
16650
16651fi
16652
16653for ac_func in uname gethostname
16654do
16655echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16656echo "configure:16657: checking for $ac_func" >&5
16657if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16658 echo $ac_n "(cached) $ac_c" 1>&6
16659else
16660 cat > conftest.$ac_ext <<EOF
16661#line 16662 "configure"
16662#include "confdefs.h"
16663/* System header to define __stub macros and hopefully few prototypes,
16664 which can conflict with char $ac_func(); below. */
16665#include <assert.h>
16666/* Override any gcc2 internal prototype to avoid an error. */
16667/* We use char because int might match the return type of a gcc2
16668 builtin and then its argument prototype would still apply. */
16669char $ac_func();
16670
16671int main() {
16672
16673/* The GNU C library defines this for functions which it implements
16674 to always fail with ENOSYS. Some functions are actually named
16675 something starting with __ and the normal name is an alias. */
16676#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16677choke me
16678#else
16679$ac_func();
16680#endif
16681
16682; return 0; }
16683EOF
16684if { (eval echo configure:16685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16685 rm -rf conftest*
16686 eval "ac_cv_func_$ac_func=yes"
16687else
16688 echo "configure: failed program was:" >&5
16689 cat conftest.$ac_ext >&5
16690 rm -rf conftest*
16691 eval "ac_cv_func_$ac_func=no"
16692fi
16693rm -f conftest*
16694fi
16695
16696if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16697 echo "$ac_t""yes" 1>&6
16698 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16699 cat >> confdefs.h <<EOF
16700#define $ac_tr_func 1
16701EOF
16702 break
16703else
16704 echo "$ac_t""no" 1>&6
16705fi
16706done
16707
16708
16709
16710ac_ext=C
16711# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16712ac_cpp='$CXXCPP $CPPFLAGS'
16713ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16714ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16715cross_compiling=$ac_cv_prog_cxx_cross
16716
16717
16718for ac_func in strtok_r
16719do
16720echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16721echo "configure:16722: checking for $ac_func" >&5
16722if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16723 echo $ac_n "(cached) $ac_c" 1>&6
16724else
16725 cat > conftest.$ac_ext <<EOF
16726#line 16727 "configure"
16727#include "confdefs.h"
16728/* System header to define __stub macros and hopefully few prototypes,
16729 which can conflict with char $ac_func(); below. */
16730#include <assert.h>
16731/* Override any gcc2 internal prototype to avoid an error. */
16732#ifdef __cplusplus
16733extern "C"
16734#endif
16735/* We use char because int might match the return type of a gcc2
16736 builtin and then its argument prototype would still apply. */
16737char $ac_func();
16738
16739int main() {
16740
16741/* The GNU C library defines this for functions which it implements
16742 to always fail with ENOSYS. Some functions are actually named
16743 something starting with __ and the normal name is an alias. */
16744#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16745choke me
16746#else
16747$ac_func();
16748#endif
16749
16750; return 0; }
16751EOF
16752if { (eval echo configure:16753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16753 rm -rf conftest*
16754 eval "ac_cv_func_$ac_func=yes"
16755else
16756 echo "configure: failed program was:" >&5
16757 cat conftest.$ac_ext >&5
16758 rm -rf conftest*
16759 eval "ac_cv_func_$ac_func=no"
16760fi
16761rm -f conftest*
16762fi
16763
16764if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16765 echo "$ac_t""yes" 1>&6
16766 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16767 cat >> confdefs.h <<EOF
16768#define $ac_tr_func 1
16769EOF
16770
16771else
16772 echo "$ac_t""no" 1>&6
16773fi
16774done
16775
16776
16777ac_ext=c
16778# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16779ac_cpp='$CPP $CPPFLAGS'
16780ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16781ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16782cross_compiling=$ac_cv_prog_cc_cross
16783
16784
16785INET_LINK=
16786for ac_func in inet_addr
16787do
16788echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16789echo "configure:16790: checking for $ac_func" >&5
16790if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16791 echo $ac_n "(cached) $ac_c" 1>&6
16792else
16793 cat > conftest.$ac_ext <<EOF
16794#line 16795 "configure"
16795#include "confdefs.h"
16796/* System header to define __stub macros and hopefully few prototypes,
16797 which can conflict with char $ac_func(); below. */
16798#include <assert.h>
16799/* Override any gcc2 internal prototype to avoid an error. */
16800/* We use char because int might match the return type of a gcc2
16801 builtin and then its argument prototype would still apply. */
16802char $ac_func();
16803
16804int main() {
16805
16806/* The GNU C library defines this for functions which it implements
16807 to always fail with ENOSYS. Some functions are actually named
16808 something starting with __ and the normal name is an alias. */
16809#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16810choke me
16811#else
16812$ac_func();
16813#endif
16814
16815; return 0; }
16816EOF
16817if { (eval echo configure:16818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16818 rm -rf conftest*
16819 eval "ac_cv_func_$ac_func=yes"
16820else
16821 echo "configure: failed program was:" >&5
16822 cat conftest.$ac_ext >&5
16823 rm -rf conftest*
16824 eval "ac_cv_func_$ac_func=no"
16825fi
16826rm -f conftest*
16827fi
16828
16829if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16830 echo "$ac_t""yes" 1>&6
16831 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16832 cat >> confdefs.h <<EOF
16833#define $ac_tr_func 1
16834EOF
16835 cat >> confdefs.h <<\EOF
16836#define HAVE_INET_ADDR 1
16837EOF
16838
16839else
16840 echo "$ac_t""no" 1>&6
16841echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
16842echo "configure:16843: checking for inet_addr in -lnsl" >&5
16843ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
16844if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16845 echo $ac_n "(cached) $ac_c" 1>&6
16846else
16847 ac_save_LIBS="$LIBS"
16848LIBS="-lnsl $LIBS"
16849cat > conftest.$ac_ext <<EOF
16850#line 16851 "configure"
16851#include "confdefs.h"
16852/* Override any gcc2 internal prototype to avoid an error. */
16853/* We use char because int might match the return type of a gcc2
16854 builtin and then its argument prototype would still apply. */
16855char inet_addr();
16856
16857int main() {
16858inet_addr()
16859; return 0; }
16860EOF
16861if { (eval echo configure:16862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16862 rm -rf conftest*
16863 eval "ac_cv_lib_$ac_lib_var=yes"
16864else
16865 echo "configure: failed program was:" >&5
16866 cat conftest.$ac_ext >&5
16867 rm -rf conftest*
16868 eval "ac_cv_lib_$ac_lib_var=no"
16869fi
16870rm -f conftest*
16871LIBS="$ac_save_LIBS"
16872
16873fi
16874if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16875 echo "$ac_t""yes" 1>&6
16876 INET_LINK="nsl"
16877else
16878 echo "$ac_t""no" 1>&6
16879echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
16880echo "configure:16881: checking for inet_addr in -lresolv" >&5
16881ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
16882if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16883 echo $ac_n "(cached) $ac_c" 1>&6
16884else
16885 ac_save_LIBS="$LIBS"
16886LIBS="-lresolv $LIBS"
16887cat > conftest.$ac_ext <<EOF
16888#line 16889 "configure"
16889#include "confdefs.h"
16890/* Override any gcc2 internal prototype to avoid an error. */
16891/* We use char because int might match the return type of a gcc2
16892 builtin and then its argument prototype would still apply. */
16893char inet_addr();
16894
16895int main() {
16896inet_addr()
16897; return 0; }
16898EOF
16899if { (eval echo configure:16900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16900 rm -rf conftest*
16901 eval "ac_cv_lib_$ac_lib_var=yes"
16902else
16903 echo "configure: failed program was:" >&5
16904 cat conftest.$ac_ext >&5
16905 rm -rf conftest*
16906 eval "ac_cv_lib_$ac_lib_var=no"
16907fi
16908rm -f conftest*
16909LIBS="$ac_save_LIBS"
16910
16911fi
16912if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16913 echo "$ac_t""yes" 1>&6
16914 INET_LINK="resolv"
16915else
16916 echo "$ac_t""no" 1>&6
16917echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
16918echo "configure:16919: checking for inet_addr in -lsocket" >&5
16919ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
16920if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16921 echo $ac_n "(cached) $ac_c" 1>&6
16922else
16923 ac_save_LIBS="$LIBS"
16924LIBS="-lsocket $LIBS"
16925cat > conftest.$ac_ext <<EOF
16926#line 16927 "configure"
16927#include "confdefs.h"
16928/* Override any gcc2 internal prototype to avoid an error. */
16929/* We use char because int might match the return type of a gcc2
16930 builtin and then its argument prototype would still apply. */
16931char inet_addr();
16932
16933int main() {
16934inet_addr()
16935; return 0; }
16936EOF
16937if { (eval echo configure:16938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16938 rm -rf conftest*
16939 eval "ac_cv_lib_$ac_lib_var=yes"
16940else
16941 echo "configure: failed program was:" >&5
16942 cat conftest.$ac_ext >&5
16943 rm -rf conftest*
16944 eval "ac_cv_lib_$ac_lib_var=no"
16945fi
16946rm -f conftest*
16947LIBS="$ac_save_LIBS"
16948
16949fi
16950if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16951 echo "$ac_t""yes" 1>&6
16952 INET_LINK="socket"
16953
16954else
16955 echo "$ac_t""no" 1>&6
16956fi
16957
16958
16959fi
16960
16961
16962fi
16963
16964
16965
16966fi
16967done
16968
16969
16970for ac_func in inet_aton
16971do
16972echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16973echo "configure:16974: checking for $ac_func" >&5
16974if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16975 echo $ac_n "(cached) $ac_c" 1>&6
16976else
16977 cat > conftest.$ac_ext <<EOF
16978#line 16979 "configure"
16979#include "confdefs.h"
16980/* System header to define __stub macros and hopefully few prototypes,
16981 which can conflict with char $ac_func(); below. */
16982#include <assert.h>
16983/* Override any gcc2 internal prototype to avoid an error. */
16984/* We use char because int might match the return type of a gcc2
16985 builtin and then its argument prototype would still apply. */
16986char $ac_func();
16987
16988int main() {
16989
16990/* The GNU C library defines this for functions which it implements
16991 to always fail with ENOSYS. Some functions are actually named
16992 something starting with __ and the normal name is an alias. */
16993#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16994choke me
16995#else
16996$ac_func();
16997#endif
16998
16999; return 0; }
17000EOF
17001if { (eval echo configure:17002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17002 rm -rf conftest*
17003 eval "ac_cv_func_$ac_func=yes"
17004else
17005 echo "configure: failed program was:" >&5
17006 cat conftest.$ac_ext >&5
17007 rm -rf conftest*
17008 eval "ac_cv_func_$ac_func=no"
17009fi
17010rm -f conftest*
17011fi
17012
17013if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17014 echo "$ac_t""yes" 1>&6
17015 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17016 cat >> confdefs.h <<EOF
17017#define $ac_tr_func 1
17018EOF
17019 cat >> confdefs.h <<\EOF
17020#define HAVE_INET_ATON 1
17021EOF
17022
17023else
17024 echo "$ac_t""no" 1>&6
17025 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
17026echo "configure:17027: checking for inet_aton in -l$INET_LINK" >&5
17027ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
17028if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17029 echo $ac_n "(cached) $ac_c" 1>&6
17030else
17031 ac_save_LIBS="$LIBS"
17032LIBS="-l$INET_LINK $LIBS"
17033cat > conftest.$ac_ext <<EOF
17034#line 17035 "configure"
17035#include "confdefs.h"
17036/* Override any gcc2 internal prototype to avoid an error. */
17037/* We use char because int might match the return type of a gcc2
17038 builtin and then its argument prototype would still apply. */
17039char inet_aton();
17040
17041int main() {
17042inet_aton()
17043; return 0; }
17044EOF
17045if { (eval echo configure:17046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17046 rm -rf conftest*
17047 eval "ac_cv_lib_$ac_lib_var=yes"
17048else
17049 echo "configure: failed program was:" >&5
17050 cat conftest.$ac_ext >&5
17051 rm -rf conftest*
17052 eval "ac_cv_lib_$ac_lib_var=no"
17053fi
17054rm -f conftest*
17055LIBS="$ac_save_LIBS"
17056
17057fi
17058if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17059 echo "$ac_t""yes" 1>&6
17060 cat >> confdefs.h <<\EOF
17061#define HAVE_INET_ATON 1
17062EOF
17063
17064else
17065 echo "$ac_t""no" 1>&6
17066fi
17067
17068
17069fi
17070done
17071
17072
17073if test "x$INET_LINK" != "x"; then
17074 cat >> confdefs.h <<\EOF
17075#define HAVE_INET_ADDR 1
17076EOF
17077
17078 INET_LINK=" -l$INET_LINK"
17079fi
17080
17081fi
17082
17083
17084cat > confcache <<\EOF
17085# This file is a shell script that caches the results of configure
17086# tests run on this system so they can be shared between configure
17087# scripts and configure runs. It is not useful on other systems.
17088# If it contains results you don't want to keep, you may remove or edit it.
17089#
17090# By default, configure uses ./config.cache as the cache file,
17091# creating it if it does not exist already. You can give configure
17092# the --cache-file=FILE option to use a different cache file; that is
17093# what configure does when it calls configure scripts in
17094# subdirectories, so they share the cache.
17095# Giving --cache-file=/dev/null disables caching, for debugging configure.
17096# config.status only pays attention to the cache file if you give it the
17097# --recheck option to rerun configure.
17098#
17099EOF
17100# The following way of writing the cache mishandles newlines in values,
17101# but we know of no workaround that is simple, portable, and efficient.
17102# So, don't put newlines in cache variables' values.
17103# Ultrix sh set writes to stderr and can't be redirected directly,
17104# and sets the high bit in the cache file unless we assign to the vars.
17105(set) 2>&1 |
17106 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17107 *ac_space=\ *)
17108 # `set' does not quote correctly, so add quotes (double-quote substitution
17109 # turns \\\\ into \\, and sed turns \\ into \).
17110 sed -n \
17111 -e "s/'/'\\\\''/g" \
17112 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17113 ;;
17114 *)
17115 # `set' quotes correctly as required by POSIX, so do not add quotes.
17116 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17117 ;;
17118 esac >> confcache
17119if cmp -s $cache_file confcache; then
17120 :
17121else
17122 if test -w $cache_file; then
17123 echo "updating cache $cache_file"
17124 cat confcache > $cache_file
17125 else
17126 echo "not updating unwritable cache $cache_file"
17127 fi
17128fi
17129rm -f confcache
17130
17131
17132
17133if test "$TOOLKIT" != "MSW"; then
17134
17135
17136 THREADS_LINK=
17137 THREADS_OBJ=
17138 CODE_GEN_FLAGS=
17139 CODE_GEN_FLAGS_CXX=
17140
17141 if test "$wxUSE_THREADS" = "yes" ; then
17142 if test "$wxUSE_WINE" = 1 ; then
17143 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
17144 wxUSE_THREADS="no"
17145 elif test "$USE_BEOS" = 1; then
17146 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
17147 wxUSE_THREADS="no"
17148 fi
17149 fi
17150
17151 if test "$wxUSE_THREADS" = "yes" ; then
17152
17153 if test "$USE_AIX" = 1; then
17154 THREADS_LIB=pthreads
17155 else
17156 THREADS_LIB=pthread
17157 fi
17158
17159 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
17160echo "configure:17161: checking for pthread_create in -l$THREADS_LIB" >&5
17161ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
17162if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17163 echo $ac_n "(cached) $ac_c" 1>&6
17164else
17165 ac_save_LIBS="$LIBS"
17166LIBS="-l$THREADS_LIB $LIBS"
17167cat > conftest.$ac_ext <<EOF
17168#line 17169 "configure"
17169#include "confdefs.h"
17170/* Override any gcc2 internal prototype to avoid an error. */
17171/* We use char because int might match the return type of a gcc2
17172 builtin and then its argument prototype would still apply. */
17173char pthread_create();
17174
17175int main() {
17176pthread_create()
17177; return 0; }
17178EOF
17179if { (eval echo configure:17180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17180 rm -rf conftest*
17181 eval "ac_cv_lib_$ac_lib_var=yes"
17182else
17183 echo "configure: failed program was:" >&5
17184 cat conftest.$ac_ext >&5
17185 rm -rf conftest*
17186 eval "ac_cv_lib_$ac_lib_var=no"
17187fi
17188rm -f conftest*
17189LIBS="$ac_save_LIBS"
17190
17191fi
17192if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17193 echo "$ac_t""yes" 1>&6
17194
17195 THREADS_OBJ="threadpsx.lo"
17196 THREADS_LINK=$THREADS_LIB
17197
17198else
17199 echo "$ac_t""no" 1>&6
17200
17201 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
17202echo "configure:17203: checking for pthread_create in -lc_r" >&5
17203ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
17204if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17205 echo $ac_n "(cached) $ac_c" 1>&6
17206else
17207 ac_save_LIBS="$LIBS"
17208LIBS="-lc_r $LIBS"
17209cat > conftest.$ac_ext <<EOF
17210#line 17211 "configure"
17211#include "confdefs.h"
17212/* Override any gcc2 internal prototype to avoid an error. */
17213/* We use char because int might match the return type of a gcc2
17214 builtin and then its argument prototype would still apply. */
17215char pthread_create();
17216
17217int main() {
17218pthread_create()
17219; return 0; }
17220EOF
17221if { (eval echo configure:17222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17222 rm -rf conftest*
17223 eval "ac_cv_lib_$ac_lib_var=yes"
17224else
17225 echo "configure: failed program was:" >&5
17226 cat conftest.$ac_ext >&5
17227 rm -rf conftest*
17228 eval "ac_cv_lib_$ac_lib_var=no"
17229fi
17230rm -f conftest*
17231LIBS="$ac_save_LIBS"
17232
17233fi
17234if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17235 echo "$ac_t""yes" 1>&6
17236
17237 THREADS_OBJ="threadpsx.lo"
17238 THREADS_LINK="c_r"
17239
17240else
17241 echo "$ac_t""no" 1>&6
17242
17243 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
17244echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
17245echo "configure:17246: checking for sys/prctl.h" >&5
17246if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17247 echo $ac_n "(cached) $ac_c" 1>&6
17248else
17249 cat > conftest.$ac_ext <<EOF
17250#line 17251 "configure"
17251#include "confdefs.h"
17252#include <sys/prctl.h>
17253EOF
17254ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17255{ (eval echo configure:17256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17256ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17257if test -z "$ac_err"; then
17258 rm -rf conftest*
17259 eval "ac_cv_header_$ac_safe=yes"
17260else
17261 echo "$ac_err" >&5
17262 echo "configure: failed program was:" >&5
17263 cat conftest.$ac_ext >&5
17264 rm -rf conftest*
17265 eval "ac_cv_header_$ac_safe=no"
17266fi
17267rm -f conftest*
17268fi
17269if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17270 echo "$ac_t""yes" 1>&6
17271
17272 THREADS_OBJ="threadsgi.lo"
17273
17274else
17275 echo "$ac_t""no" 1>&6
17276fi
17277
17278
17279fi
17280
17281
17282fi
17283
17284
17285 if test -z "$THREADS_OBJ" ; then
17286 wxUSE_THREADS=no
17287 echo "configure: warning: No thread support on this system... disabled" 1>&2
17288 fi
17289 fi
17290
17291 if test "$wxUSE_THREADS" = "yes" ; then
17292 for ac_func in thr_setconcurrency
17293do
17294echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17295echo "configure:17296: checking for $ac_func" >&5
17296if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17297 echo $ac_n "(cached) $ac_c" 1>&6
17298else
17299 cat > conftest.$ac_ext <<EOF
17300#line 17301 "configure"
17301#include "confdefs.h"
17302/* System header to define __stub macros and hopefully few prototypes,
17303 which can conflict with char $ac_func(); below. */
17304#include <assert.h>
17305/* Override any gcc2 internal prototype to avoid an error. */
17306/* We use char because int might match the return type of a gcc2
17307 builtin and then its argument prototype would still apply. */
17308char $ac_func();
17309
17310int main() {
17311
17312/* The GNU C library defines this for functions which it implements
17313 to always fail with ENOSYS. Some functions are actually named
17314 something starting with __ and the normal name is an alias. */
17315#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17316choke me
17317#else
17318$ac_func();
17319#endif
17320
17321; return 0; }
17322EOF
17323if { (eval echo configure:17324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17324 rm -rf conftest*
17325 eval "ac_cv_func_$ac_func=yes"
17326else
17327 echo "configure: failed program was:" >&5
17328 cat conftest.$ac_ext >&5
17329 rm -rf conftest*
17330 eval "ac_cv_func_$ac_func=no"
17331fi
17332rm -f conftest*
17333fi
17334
17335if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17336 echo "$ac_t""yes" 1>&6
17337 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17338 cat >> confdefs.h <<EOF
17339#define $ac_tr_func 1
17340EOF
17341
17342else
17343 echo "$ac_t""no" 1>&6
17344fi
17345done
17346
17347
17348
17349 for ac_hdr in sched.h
17350do
17351ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17352echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17353echo "configure:17354: checking for $ac_hdr" >&5
17354if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17355 echo $ac_n "(cached) $ac_c" 1>&6
17356else
17357 cat > conftest.$ac_ext <<EOF
17358#line 17359 "configure"
17359#include "confdefs.h"
17360#include <$ac_hdr>
17361EOF
17362ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17363{ (eval echo configure:17364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17364ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17365if test -z "$ac_err"; then
17366 rm -rf conftest*
17367 eval "ac_cv_header_$ac_safe=yes"
17368else
17369 echo "$ac_err" >&5
17370 echo "configure: failed program was:" >&5
17371 cat conftest.$ac_ext >&5
17372 rm -rf conftest*
17373 eval "ac_cv_header_$ac_safe=no"
17374fi
17375rm -f conftest*
17376fi
17377if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17378 echo "$ac_t""yes" 1>&6
17379 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17380 cat >> confdefs.h <<EOF
17381#define $ac_tr_hdr 1
17382EOF
17383
17384else
17385 echo "$ac_t""no" 1>&6
17386fi
17387done
17388
17389
17390 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
17391echo "configure:17392: checking for sched_yield in -l$THREADS_LINK" >&5
17392ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
17393if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17394 echo $ac_n "(cached) $ac_c" 1>&6
17395else
17396 ac_save_LIBS="$LIBS"
17397LIBS="-l$THREADS_LINK $LIBS"
17398cat > conftest.$ac_ext <<EOF
17399#line 17400 "configure"
17400#include "confdefs.h"
17401/* Override any gcc2 internal prototype to avoid an error. */
17402/* We use char because int might match the return type of a gcc2
17403 builtin and then its argument prototype would still apply. */
17404char sched_yield();
17405
17406int main() {
17407sched_yield()
17408; return 0; }
17409EOF
17410if { (eval echo configure:17411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17411 rm -rf conftest*
17412 eval "ac_cv_lib_$ac_lib_var=yes"
17413else
17414 echo "configure: failed program was:" >&5
17415 cat conftest.$ac_ext >&5
17416 rm -rf conftest*
17417 eval "ac_cv_lib_$ac_lib_var=no"
17418fi
17419rm -f conftest*
17420LIBS="$ac_save_LIBS"
17421
17422fi
17423if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17424 echo "$ac_t""yes" 1>&6
17425 cat >> confdefs.h <<\EOF
17426#define HAVE_SCHED_YIELD 1
17427EOF
17428
17429else
17430 echo "$ac_t""no" 1>&6
17431echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
17432echo "configure:17433: checking for sched_yield in -lposix4" >&5
17433ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17434if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17435 echo $ac_n "(cached) $ac_c" 1>&6
17436else
17437 ac_save_LIBS="$LIBS"
17438LIBS="-lposix4 $LIBS"
17439cat > conftest.$ac_ext <<EOF
17440#line 17441 "configure"
17441#include "confdefs.h"
17442/* Override any gcc2 internal prototype to avoid an error. */
17443/* We use char because int might match the return type of a gcc2
17444 builtin and then its argument prototype would still apply. */
17445char sched_yield();
17446
17447int main() {
17448sched_yield()
17449; return 0; }
17450EOF
17451if { (eval echo configure:17452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17452 rm -rf conftest*
17453 eval "ac_cv_lib_$ac_lib_var=yes"
17454else
17455 echo "configure: failed program was:" >&5
17456 cat conftest.$ac_ext >&5
17457 rm -rf conftest*
17458 eval "ac_cv_lib_$ac_lib_var=no"
17459fi
17460rm -f conftest*
17461LIBS="$ac_save_LIBS"
17462
17463fi
17464if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17465 echo "$ac_t""yes" 1>&6
17466 cat >> confdefs.h <<\EOF
17467#define HAVE_SCHED_YIELD 1
17468EOF
17469 POSIX4_LINK=" -lposix4"
17470else
17471 echo "$ac_t""no" 1>&6
17472echo "configure: warning: wxThread::Yield will not work properly" 1>&2
17473
17474fi
17475
17476
17477fi
17478
17479
17480 HAVE_PRIOR_FUNCS=0
17481 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
17482echo "configure:17483: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
17483ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
17484if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17485 echo $ac_n "(cached) $ac_c" 1>&6
17486else
17487 ac_save_LIBS="$LIBS"
17488LIBS="-l$THREADS_LINK $LIBS"
17489cat > conftest.$ac_ext <<EOF
17490#line 17491 "configure"
17491#include "confdefs.h"
17492/* Override any gcc2 internal prototype to avoid an error. */
17493/* We use char because int might match the return type of a gcc2
17494 builtin and then its argument prototype would still apply. */
17495char pthread_attr_getschedpolicy();
17496
17497int main() {
17498pthread_attr_getschedpolicy()
17499; return 0; }
17500EOF
17501if { (eval echo configure:17502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17502 rm -rf conftest*
17503 eval "ac_cv_lib_$ac_lib_var=yes"
17504else
17505 echo "configure: failed program was:" >&5
17506 cat conftest.$ac_ext >&5
17507 rm -rf conftest*
17508 eval "ac_cv_lib_$ac_lib_var=no"
17509fi
17510rm -f conftest*
17511LIBS="$ac_save_LIBS"
17512
17513fi
17514if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17515 echo "$ac_t""yes" 1>&6
17516 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
17517echo "configure:17518: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
17518ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
17519if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17520 echo $ac_n "(cached) $ac_c" 1>&6
17521else
17522 ac_save_LIBS="$LIBS"
17523LIBS="-l$THREADS_LINK $LIBS"
17524cat > conftest.$ac_ext <<EOF
17525#line 17526 "configure"
17526#include "confdefs.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 pthread_attr_setschedparam();
17531
17532int main() {
17533pthread_attr_setschedparam()
17534; return 0; }
17535EOF
17536if { (eval echo configure:17537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17537 rm -rf conftest*
17538 eval "ac_cv_lib_$ac_lib_var=yes"
17539else
17540 echo "configure: failed program was:" >&5
17541 cat conftest.$ac_ext >&5
17542 rm -rf conftest*
17543 eval "ac_cv_lib_$ac_lib_var=no"
17544fi
17545rm -f conftest*
17546LIBS="$ac_save_LIBS"
17547
17548fi
17549if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17550 echo "$ac_t""yes" 1>&6
17551 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
17552echo "configure:17553: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
17553ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
17554if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17555 echo $ac_n "(cached) $ac_c" 1>&6
17556else
17557 ac_save_LIBS="$LIBS"
17558LIBS="-l$THREADS_LINK $LIBS"
17559cat > conftest.$ac_ext <<EOF
17560#line 17561 "configure"
17561#include "confdefs.h"
17562/* Override any gcc2 internal prototype to avoid an error. */
17563/* We use char because int might match the return type of a gcc2
17564 builtin and then its argument prototype would still apply. */
17565char sched_get_priority_max();
17566
17567int main() {
17568sched_get_priority_max()
17569; return 0; }
17570EOF
17571if { (eval echo configure:17572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17572 rm -rf conftest*
17573 eval "ac_cv_lib_$ac_lib_var=yes"
17574else
17575 echo "configure: failed program was:" >&5
17576 cat conftest.$ac_ext >&5
17577 rm -rf conftest*
17578 eval "ac_cv_lib_$ac_lib_var=no"
17579fi
17580rm -f conftest*
17581LIBS="$ac_save_LIBS"
17582
17583fi
17584if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17585 echo "$ac_t""yes" 1>&6
17586 HAVE_PRIOR_FUNCS=1
17587else
17588 echo "$ac_t""no" 1>&6
17589echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
17590echo "configure:17591: checking for sched_get_priority_max in -lposix4" >&5
17591ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
17592if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17593 echo $ac_n "(cached) $ac_c" 1>&6
17594else
17595 ac_save_LIBS="$LIBS"
17596LIBS="-lposix4 $LIBS"
17597cat > conftest.$ac_ext <<EOF
17598#line 17599 "configure"
17599#include "confdefs.h"
17600/* Override any gcc2 internal prototype to avoid an error. */
17601/* We use char because int might match the return type of a gcc2
17602 builtin and then its argument prototype would still apply. */
17603char sched_get_priority_max();
17604
17605int main() {
17606sched_get_priority_max()
17607; return 0; }
17608EOF
17609if { (eval echo configure:17610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17610 rm -rf conftest*
17611 eval "ac_cv_lib_$ac_lib_var=yes"
17612else
17613 echo "configure: failed program was:" >&5
17614 cat conftest.$ac_ext >&5
17615 rm -rf conftest*
17616 eval "ac_cv_lib_$ac_lib_var=no"
17617fi
17618rm -f conftest*
17619LIBS="$ac_save_LIBS"
17620
17621fi
17622if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17623 echo "$ac_t""yes" 1>&6
17624
17625 HAVE_PRIOR_FUNCS=1
17626 POSIX4_LINK=" -lposix4"
17627
17628else
17629 echo "$ac_t""no" 1>&6
17630fi
17631
17632
17633fi
17634
17635
17636else
17637 echo "$ac_t""no" 1>&6
17638fi
17639
17640
17641else
17642 echo "$ac_t""no" 1>&6
17643fi
17644
17645
17646 if test "$HAVE_PRIOR_FUNCS" = 1; then
17647 cat >> confdefs.h <<\EOF
17648#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
17649EOF
17650
17651 else
17652 echo "configure: warning: Setting thread priority will not work" 1>&2
17653 fi
17654
17655 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
17656echo "configure:17657: checking for pthread_cancel in -l$THREADS_LINK" >&5
17657ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
17658if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17659 echo $ac_n "(cached) $ac_c" 1>&6
17660else
17661 ac_save_LIBS="$LIBS"
17662LIBS="-l$THREADS_LINK $LIBS"
17663cat > conftest.$ac_ext <<EOF
17664#line 17665 "configure"
17665#include "confdefs.h"
17666/* Override any gcc2 internal prototype to avoid an error. */
17667/* We use char because int might match the return type of a gcc2
17668 builtin and then its argument prototype would still apply. */
17669char pthread_cancel();
17670
17671int main() {
17672pthread_cancel()
17673; return 0; }
17674EOF
17675if { (eval echo configure:17676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17676 rm -rf conftest*
17677 eval "ac_cv_lib_$ac_lib_var=yes"
17678else
17679 echo "configure: failed program was:" >&5
17680 cat conftest.$ac_ext >&5
17681 rm -rf conftest*
17682 eval "ac_cv_lib_$ac_lib_var=no"
17683fi
17684rm -f conftest*
17685LIBS="$ac_save_LIBS"
17686
17687fi
17688if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17689 echo "$ac_t""yes" 1>&6
17690 cat >> confdefs.h <<\EOF
17691#define HAVE_PTHREAD_CANCEL 1
17692EOF
17693
17694else
17695 echo "$ac_t""no" 1>&6
17696echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
17697fi
17698
17699
17700 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
17701echo "configure:17702: checking for pthread_cleanup_push/pop" >&5
17702if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
17703 echo $ac_n "(cached) $ac_c" 1>&6
17704else
17705
17706 cat > conftest.$ac_ext <<EOF
17707#line 17708 "configure"
17708#include "confdefs.h"
17709#include <pthread.h>
17710int main() {
17711
17712 pthread_cleanup_push(NULL, NULL);
17713 pthread_cleanup_pop(0);
17714
17715; return 0; }
17716EOF
17717if { (eval echo configure:17718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17718 rm -rf conftest*
17719
17720 wx_cv_func_pthread_cleanup_push=yes
17721
17722else
17723 echo "configure: failed program was:" >&5
17724 cat conftest.$ac_ext >&5
17725 rm -rf conftest*
17726
17727 wx_cv_func_pthread_cleanup_push=no
17728
17729fi
17730rm -f conftest*
17731
17732fi
17733
17734echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
17735
17736 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
17737 cat >> confdefs.h <<\EOF
17738#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
17739EOF
17740
17741 fi
17742
17743
17744 if test "x$wx_lib_glibc21" = "xyes"; then
17745 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
17746 fi
17747
17748 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
17749echo "configure:17750: checking for pthread_mutexattr_t" >&5
17750if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
17751 echo $ac_n "(cached) $ac_c" 1>&6
17752else
17753
17754 cat > conftest.$ac_ext <<EOF
17755#line 17756 "configure"
17756#include "confdefs.h"
17757#include <pthread.h>
17758int main() {
17759
17760 pthread_mutexattr_t attr;
17761 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
17762
17763; return 0; }
17764EOF
17765if { (eval echo configure:17766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17766 rm -rf conftest*
17767
17768 wx_cv_type_pthread_mutexattr_t=yes
17769
17770else
17771 echo "configure: failed program was:" >&5
17772 cat conftest.$ac_ext >&5
17773 rm -rf conftest*
17774
17775 wx_cv_type_pthread_mutexattr_t=no
17776
17777
17778fi
17779rm -f conftest*
17780
17781fi
17782
17783echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
17784
17785 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
17786 cat >> confdefs.h <<\EOF
17787#define HAVE_PTHREAD_MUTEXATTR_T 1
17788EOF
17789
17790 else
17791 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
17792echo "configure:17793: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
17793if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
17794 echo $ac_n "(cached) $ac_c" 1>&6
17795else
17796
17797 cat > conftest.$ac_ext <<EOF
17798#line 17799 "configure"
17799#include "confdefs.h"
17800#include <pthread.h>
17801int main() {
17802
17803 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
17804
17805; return 0; }
17806EOF
17807if { (eval echo configure:17808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17808 rm -rf conftest*
17809
17810 wx_cv_type_pthread_rec_mutex_init=yes
17811
17812else
17813 echo "configure: failed program was:" >&5
17814 cat conftest.$ac_ext >&5
17815 rm -rf conftest*
17816
17817 wx_cv_type_pthread_rec_mutex_init=no
17818
17819
17820fi
17821rm -f conftest*
17822
17823fi
17824
17825echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
17826 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
17827 cat >> confdefs.h <<\EOF
17828#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
17829EOF
17830
17831 else
17832 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
17833 fi
17834 fi
17835
17836 THREADS_LINK=" -l$THREADS_LINK"
17837
17838 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
17839 CPPFLAGS="$CFLAGS -mt"
17840 CXXFLAGS="$CXXFLAGS -mt"
17841 LDFLAGS="$LDFLAGS -mt"
17842 fi
17843 fi
17844
17845fi
17846
17847if test "$wxUSE_THREADS" = "yes"; then
17848 cat >> confdefs.h <<\EOF
17849#define wxUSE_THREADS 1
17850EOF
17851
17852
17853 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG"
17854
17855 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
17856else
17857 if test "$ac_cv_func_strtok_r" = "yes"; then
17858 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
17859echo "configure:17860: checking if -D_REENTRANT is needed" >&5
17860 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
17861 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
17862 echo "$ac_t""yes" 1>&6
17863 else
17864 echo "$ac_t""no" 1>&6
17865 fi
17866 fi
17867fi
17868
17869if test "$WXGTK20" = 1 ; then
17870 cat >> confdefs.h <<EOF
17871#define __WXGTK20__ $WXGTK20
17872EOF
17873
17874 WXGTK12=1
17875fi
17876
17877if test "$WXGTK12" = 1 ; then
17878 cat >> confdefs.h <<EOF
17879#define __WXGTK12__ $WXGTK12
17880EOF
17881
17882fi
17883
17884if test "$WXGTK127" = 1 ; then
17885 cat >> confdefs.h <<EOF
17886#define __WXGTK127__ $WXGTK127
17887EOF
17888
17889fi
17890
17891WXDEBUG=
17892
17893if test "$wxUSE_DEBUG_INFO" = "yes" ; then
17894 WXDEBUG="-g"
17895 wxUSE_OPTIMISE=no
17896fi
17897
17898if test "$wxUSE_DEBUG_GDB" = "yes" ; then
17899 wxUSE_DEBUG_INFO=yes
17900 WXDEBUG="-ggdb"
17901fi
17902
17903if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
17904 cat >> confdefs.h <<\EOF
17905#define WXDEBUG 1
17906EOF
17907
17908 WXDEBUG_DEFINE="-D__WXDEBUG__"
17909else
17910 if test "$wxUSE_GTK" = 1 ; then
17911 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
17912 fi
17913fi
17914
17915if test "$wxUSE_MEM_TRACING" = "yes" ; then
17916 cat >> confdefs.h <<\EOF
17917#define wxUSE_MEMORY_TRACING 1
17918EOF
17919
17920 cat >> confdefs.h <<\EOF
17921#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
17922EOF
17923
17924 cat >> confdefs.h <<\EOF
17925#define wxUSE_DEBUG_NEW_ALWAYS 1
17926EOF
17927
17928 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
17929fi
17930
17931if test "$wxUSE_DMALLOC" = "yes" ; then
17932 DMALLOC_LIBS="-ldmalloc"
17933fi
17934
17935PROFILE=
17936if test "$wxUSE_PROFILE" = "yes" ; then
17937 PROFILE=" -pg"
17938fi
17939
17940if test "$GCC" = "yes" ; then
17941 if test "$wxUSE_NO_RTTI" = "yes" ; then
17942 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
17943 fi
17944 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
17945 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
17946 fi
17947 if test "$wxUSE_PERMISSIVE" = "yes" ; then
17948 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
17949 fi
17950 if test "$USE_WIN32" = 1 ; then
17951 # I'm not even really sure what this was ever added to solve,
17952 # but someone added it for mingw native builds, so I guess
17953 # they had a reason, right??
17954 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
17955 fi
17956fi
17957
17958
17959CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
17960CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
17961if test "$wxUSE_OPTIMISE" = "no" ; then
17962 OPTIMISE=
17963else
17964 if test "$GCC" = yes ; then
17965 OPTIMISE="-O2"
17966 case "${host}" in
17967 i586-*-*|i686-*-* )
17968 OPTIMISE="${OPTIMISE} "
17969 ;;
17970 esac
17971 else
17972 OPTIMISE="-O"
17973 fi
17974fi
17975
17976if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
17977 cat >> confdefs.h <<\EOF
17978#define WXWIN_COMPATIBILITY_2 1
17979EOF
17980
17981
17982 WXWIN_COMPATIBILITY_2_2="yes"
17983fi
17984
17985if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
17986 cat >> confdefs.h <<\EOF
17987#define WXWIN_COMPATIBILITY_2_2 1
17988EOF
17989
17990fi
17991
17992
17993if test "$wxUSE_GUI" = "yes"; then
17994 cat >> confdefs.h <<\EOF
17995#define wxUSE_GUI 1
17996EOF
17997
17998
17999 else
18000 cat >> confdefs.h <<\EOF
18001#define wxUSE_NOGUI 1
18002EOF
18003
18004fi
18005
18006
18007if test "$wxUSE_UNIX" = "yes"; then
18008 cat >> confdefs.h <<\EOF
18009#define wxUSE_UNIX 1
18010EOF
18011
18012fi
18013
18014
18015if test "$wxUSE_APPLE_IEEE" = "yes"; then
18016 cat >> confdefs.h <<\EOF
18017#define wxUSE_APPLE_IEEE 1
18018EOF
18019
18020fi
18021
18022if test "$wxUSE_TIMER" = "yes"; then
18023 cat >> confdefs.h <<\EOF
18024#define wxUSE_TIMER 1
18025EOF
18026
18027fi
18028
18029if test "$wxUSE_WAVE" = "yes"; then
18030 cat >> confdefs.h <<\EOF
18031#define wxUSE_WAVE 1
18032EOF
18033
18034fi
18035
18036if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
18037 cat >> confdefs.h <<\EOF
18038#define wxUSE_CMDLINE_PARSER 1
18039EOF
18040
18041fi
18042
18043if test "$wxUSE_STOPWATCH" = "yes"; then
18044 cat >> confdefs.h <<\EOF
18045#define wxUSE_STOPWATCH 1
18046EOF
18047
18048fi
18049
18050if test "$wxUSE_DATETIME" = "yes"; then
18051 cat >> confdefs.h <<\EOF
18052#define wxUSE_DATETIME 1
18053EOF
18054
18055fi
18056
18057if test "$wxUSE_TIMEDATE" = "yes"; then
18058 cat >> confdefs.h <<\EOF
18059#define wxUSE_TIMEDATE 1
18060EOF
18061
18062fi
18063
18064if test "$wxUSE_FILE" = "yes"; then
18065 cat >> confdefs.h <<\EOF
18066#define wxUSE_FILE 1
18067EOF
18068
18069fi
18070
18071if test "$wxUSE_FFILE" = "yes"; then
18072 cat >> confdefs.h <<\EOF
18073#define wxUSE_FFILE 1
18074EOF
18075
18076fi
18077
18078if test "$wxUSE_FILESYSTEM" = "yes"; then
18079 cat >> confdefs.h <<\EOF
18080#define wxUSE_FILESYSTEM 1
18081EOF
18082
18083fi
18084
18085if test "$wxUSE_FS_INET" = "yes"; then
18086 cat >> confdefs.h <<\EOF
18087#define wxUSE_FS_INET 1
18088EOF
18089
18090fi
18091
18092if test "$wxUSE_FS_ZIP" = "yes"; then
18093 cat >> confdefs.h <<\EOF
18094#define wxUSE_FS_ZIP 1
18095EOF
18096
18097fi
18098
18099if test "$wxUSE_ZIPSTREAM" = "yes"; then
18100 cat >> confdefs.h <<\EOF
18101#define wxUSE_ZIPSTREAM 1
18102EOF
18103
18104fi
18105
18106if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18107 cat >> confdefs.h <<\EOF
18108#define wxUSE_ON_FATAL_EXCEPTION 1
18109EOF
18110
18111fi
18112
18113if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
18114 cat >> confdefs.h <<\EOF
18115#define wxUSE_SNGLINST_CHECKER 1
18116EOF
18117
18118fi
18119
18120if test "$wxUSE_BUSYINFO" = "yes"; then
18121 cat >> confdefs.h <<\EOF
18122#define wxUSE_BUSYINFO 1
18123EOF
18124
18125fi
18126
18127if test "$wxUSE_STD_IOSTREAM" = "yes"; then
18128 cat >> confdefs.h <<\EOF
18129#define wxUSE_STD_IOSTREAM 1
18130EOF
18131
18132fi
18133
18134if test "$wxUSE_TEXTBUFFER" = "yes"; then
18135 cat >> confdefs.h <<\EOF
18136#define wxUSE_TEXTBUFFER 1
18137EOF
18138
18139fi
18140
18141if test "$wxUSE_TEXTFILE" = "yes"; then
18142 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
18143 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
18144 else
18145 cat >> confdefs.h <<\EOF
18146#define wxUSE_TEXTFILE 1
18147EOF
18148
18149 fi
18150fi
18151
18152if test "$wxUSE_CONFIG" = "yes" ; then
18153 if test "$wxUSE_TEXTFILE" != "yes"; then
18154 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
18155 else
18156 cat >> confdefs.h <<\EOF
18157#define wxUSE_CONFIG 1
18158EOF
18159
18160 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18161 fi
18162fi
18163
18164if test "$wxUSE_INTL" = "yes" ; then
18165 if test "$wxUSE_FILE" != "yes"; then
18166 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
18167 else
18168 cat >> confdefs.h <<\EOF
18169#define wxUSE_INTL 1
18170EOF
18171
18172 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
18173 GUIDIST="$GUIDIST INTL_DIST"
18174 fi
18175fi
18176
18177if test "$wxUSE_LOG" = "yes"; then
18178 cat >> confdefs.h <<\EOF
18179#define wxUSE_LOG 1
18180EOF
18181
18182
18183 if test "$wxUSE_LOGGUI" = "yes"; then
18184 cat >> confdefs.h <<\EOF
18185#define wxUSE_LOGGUI 1
18186EOF
18187
18188 fi
18189
18190 if test "$wxUSE_LOGWINDOW" = "yes"; then
18191 cat >> confdefs.h <<\EOF
18192#define wxUSE_LOGWINDOW 1
18193EOF
18194
18195 fi
18196
18197 if test "$wxUSE_LOGDIALOG" = "yes"; then
18198 cat >> confdefs.h <<\EOF
18199#define wxUSE_LOG_DIALOG 1
18200EOF
18201
18202 fi
18203fi
18204
18205if test "$wxUSE_LONGLONG" = "yes"; then
18206 cat >> confdefs.h <<\EOF
18207#define wxUSE_LONGLONG 1
18208EOF
18209
18210fi
18211
18212if test "$wxUSE_GEOMETRY" = "yes"; then
18213 cat >> confdefs.h <<\EOF
18214#define wxUSE_GEOMETRY 1
18215EOF
18216
18217fi
18218
18219if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
18220 cat >> confdefs.h <<\EOF
18221#define wxUSE_DIALUP_MANAGER 1
18222EOF
18223
18224 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
18225fi
18226
18227if test "$wxUSE_STREAMS" = "yes" ; then
18228 cat >> confdefs.h <<\EOF
18229#define wxUSE_STREAMS 1
18230EOF
18231
18232fi
18233
18234
18235if test "$wxUSE_DATETIME" = "yes"; then
18236 for ac_func in strptime
18237do
18238echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18239echo "configure:18240: checking for $ac_func" >&5
18240if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18241 echo $ac_n "(cached) $ac_c" 1>&6
18242else
18243 cat > conftest.$ac_ext <<EOF
18244#line 18245 "configure"
18245#include "confdefs.h"
18246/* System header to define __stub macros and hopefully few prototypes,
18247 which can conflict with char $ac_func(); below. */
18248#include <assert.h>
18249/* Override any gcc2 internal prototype to avoid an error. */
18250/* We use char because int might match the return type of a gcc2
18251 builtin and then its argument prototype would still apply. */
18252char $ac_func();
18253
18254int main() {
18255
18256/* The GNU C library defines this for functions which it implements
18257 to always fail with ENOSYS. Some functions are actually named
18258 something starting with __ and the normal name is an alias. */
18259#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18260choke me
18261#else
18262$ac_func();
18263#endif
18264
18265; return 0; }
18266EOF
18267if { (eval echo configure:18268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18268 rm -rf conftest*
18269 eval "ac_cv_func_$ac_func=yes"
18270else
18271 echo "configure: failed program was:" >&5
18272 cat conftest.$ac_ext >&5
18273 rm -rf conftest*
18274 eval "ac_cv_func_$ac_func=no"
18275fi
18276rm -f conftest*
18277fi
18278
18279if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18280 echo "$ac_t""yes" 1>&6
18281 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18282 cat >> confdefs.h <<EOF
18283#define $ac_tr_func 1
18284EOF
18285
18286else
18287 echo "$ac_t""no" 1>&6
18288fi
18289done
18290
18291
18292 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
18293echo "configure:18294: checking for timezone variable in <time.h>" >&5
18294if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18295 echo $ac_n "(cached) $ac_c" 1>&6
18296else
18297
18298 cat > conftest.$ac_ext <<EOF
18299#line 18300 "configure"
18300#include "confdefs.h"
18301
18302 #include <time.h>
18303
18304int main() {
18305
18306 int tz;
18307 tz = timezone;
18308
18309; return 0; }
18310EOF
18311if { (eval echo configure:18312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18312 rm -rf conftest*
18313
18314 wx_cv_var_timezone=timezone
18315
18316else
18317 echo "configure: failed program was:" >&5
18318 cat conftest.$ac_ext >&5
18319 rm -rf conftest*
18320
18321 cat > conftest.$ac_ext <<EOF
18322#line 18323 "configure"
18323#include "confdefs.h"
18324
18325 #include <time.h>
18326
18327int main() {
18328
18329 int tz;
18330 tz = _timezone;
18331
18332; return 0; }
18333EOF
18334if { (eval echo configure:18335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18335 rm -rf conftest*
18336
18337 wx_cv_var_timezone=_timezone
18338
18339else
18340 echo "configure: failed program was:" >&5
18341 cat conftest.$ac_ext >&5
18342 rm -rf conftest*
18343
18344 cat > conftest.$ac_ext <<EOF
18345#line 18346 "configure"
18346#include "confdefs.h"
18347
18348 #include <time.h>
18349
18350int main() {
18351
18352 int tz;
18353 tz = __timezone;
18354
18355; return 0; }
18356EOF
18357if { (eval echo configure:18358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18358 rm -rf conftest*
18359
18360 wx_cv_var_timezone=__timezone
18361
18362else
18363 echo "configure: failed program was:" >&5
18364 cat conftest.$ac_ext >&5
18365 rm -rf conftest*
18366
18367 if test "$USE_DOS" = 0 ; then
18368 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
18369 fi
18370
18371
18372fi
18373rm -f conftest*
18374
18375
18376fi
18377rm -f conftest*
18378
18379
18380fi
18381rm -f conftest*
18382
18383
18384fi
18385
18386echo "$ac_t""$wx_cv_var_timezone" 1>&6
18387
18388 if test "x$wx_cv_var_timezone" != x ; then
18389 cat >> confdefs.h <<EOF
18390#define WX_TIMEZONE $wx_cv_var_timezone
18391EOF
18392
18393 fi
18394
18395 for ac_func in localtime
18396do
18397echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18398echo "configure:18399: checking for $ac_func" >&5
18399if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18400 echo $ac_n "(cached) $ac_c" 1>&6
18401else
18402 cat > conftest.$ac_ext <<EOF
18403#line 18404 "configure"
18404#include "confdefs.h"
18405/* System header to define __stub macros and hopefully few prototypes,
18406 which can conflict with char $ac_func(); below. */
18407#include <assert.h>
18408/* Override any gcc2 internal prototype to avoid an error. */
18409/* We use char because int might match the return type of a gcc2
18410 builtin and then its argument prototype would still apply. */
18411char $ac_func();
18412
18413int main() {
18414
18415/* The GNU C library defines this for functions which it implements
18416 to always fail with ENOSYS. Some functions are actually named
18417 something starting with __ and the normal name is an alias. */
18418#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18419choke me
18420#else
18421$ac_func();
18422#endif
18423
18424; return 0; }
18425EOF
18426if { (eval echo configure:18427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18427 rm -rf conftest*
18428 eval "ac_cv_func_$ac_func=yes"
18429else
18430 echo "configure: failed program was:" >&5
18431 cat conftest.$ac_ext >&5
18432 rm -rf conftest*
18433 eval "ac_cv_func_$ac_func=no"
18434fi
18435rm -f conftest*
18436fi
18437
18438if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18439 echo "$ac_t""yes" 1>&6
18440 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18441 cat >> confdefs.h <<EOF
18442#define $ac_tr_func 1
18443EOF
18444
18445else
18446 echo "$ac_t""no" 1>&6
18447fi
18448done
18449
18450
18451 if test "$ac_cv_func_localtime" = "yes"; then
18452 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
18453echo "configure:18454: checking for tm_gmtoff in struct tm" >&5
18454if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18455 echo $ac_n "(cached) $ac_c" 1>&6
18456else
18457
18458 cat > conftest.$ac_ext <<EOF
18459#line 18460 "configure"
18460#include "confdefs.h"
18461
18462 #include <time.h>
18463
18464int main() {
18465
18466 struct tm tm;
18467 tm.tm_gmtoff++;
18468
18469; return 0; }
18470EOF
18471if { (eval echo configure:18472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18472 rm -rf conftest*
18473
18474 wx_cv_struct_tm_has_gmtoff=yes
18475
18476else
18477 echo "configure: failed program was:" >&5
18478 cat conftest.$ac_ext >&5
18479 rm -rf conftest*
18480 wx_cv_struct_tm_has_gmtoff=no
18481
18482fi
18483rm -f conftest*
18484
18485fi
18486
18487echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
18488 fi
18489
18490 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
18491 cat >> confdefs.h <<\EOF
18492#define WX_GMTOFF_IN_TM 1
18493EOF
18494
18495 fi
18496
18497 for ac_func in gettimeofday ftime
18498do
18499echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18500echo "configure:18501: checking for $ac_func" >&5
18501if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18502 echo $ac_n "(cached) $ac_c" 1>&6
18503else
18504 cat > conftest.$ac_ext <<EOF
18505#line 18506 "configure"
18506#include "confdefs.h"
18507/* System header to define __stub macros and hopefully few prototypes,
18508 which can conflict with char $ac_func(); below. */
18509#include <assert.h>
18510/* Override any gcc2 internal prototype to avoid an error. */
18511/* We use char because int might match the return type of a gcc2
18512 builtin and then its argument prototype would still apply. */
18513char $ac_func();
18514
18515int main() {
18516
18517/* The GNU C library defines this for functions which it implements
18518 to always fail with ENOSYS. Some functions are actually named
18519 something starting with __ and the normal name is an alias. */
18520#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18521choke me
18522#else
18523$ac_func();
18524#endif
18525
18526; return 0; }
18527EOF
18528if { (eval echo configure:18529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18529 rm -rf conftest*
18530 eval "ac_cv_func_$ac_func=yes"
18531else
18532 echo "configure: failed program was:" >&5
18533 cat conftest.$ac_ext >&5
18534 rm -rf conftest*
18535 eval "ac_cv_func_$ac_func=no"
18536fi
18537rm -f conftest*
18538fi
18539
18540if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18541 echo "$ac_t""yes" 1>&6
18542 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18543 cat >> confdefs.h <<EOF
18544#define $ac_tr_func 1
18545EOF
18546 break
18547else
18548 echo "$ac_t""no" 1>&6
18549fi
18550done
18551
18552
18553 if test "$ac_cv_func_gettimeofday" = "yes"; then
18554 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
18555echo "configure:18556: checking whether gettimeofday takes two arguments" >&5
18556if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
18557 echo $ac_n "(cached) $ac_c" 1>&6
18558else
18559
18560
18561 ac_ext=C
18562# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18563ac_cpp='$CXXCPP $CPPFLAGS'
18564ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18565ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18566cross_compiling=$ac_cv_prog_cxx_cross
18567
18568
18569 cat > conftest.$ac_ext <<EOF
18570#line 18571 "configure"
18571#include "confdefs.h"
18572
18573 #include <sys/time.h>
18574 #include <unistd.h>
18575
18576int main() {
18577
18578 struct timeval tv;
18579 gettimeofday(&tv, NULL);
18580
18581; return 0; }
18582EOF
18583if { (eval echo configure:18584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18584 rm -rf conftest*
18585 wx_cv_func_gettimeofday_has_2_args=yes
18586else
18587 echo "configure: failed program was:" >&5
18588 cat conftest.$ac_ext >&5
18589 rm -rf conftest*
18590 cat > conftest.$ac_ext <<EOF
18591#line 18592 "configure"
18592#include "confdefs.h"
18593
18594 #include <sys/time.h>
18595 #include <unistd.h>
18596
18597int main() {
18598
18599 struct timeval tv;
18600 gettimeofday(&tv);
18601
18602; return 0; }
18603EOF
18604if { (eval echo configure:18605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18605 rm -rf conftest*
18606 wx_cv_func_gettimeofday_has_2_args=no
18607else
18608 echo "configure: failed program was:" >&5
18609 cat conftest.$ac_ext >&5
18610 rm -rf conftest*
18611
18612 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
18613 wx_cv_func_gettimeofday_has_2_args=unknown
18614
18615
18616fi
18617rm -f conftest*
18618
18619fi
18620rm -f conftest*
18621 ac_ext=c
18622# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18623ac_cpp='$CPP $CPPFLAGS'
18624ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18625ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18626cross_compiling=$ac_cv_prog_cc_cross
18627
18628
18629fi
18630
18631echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
18632
18633 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
18634 cat >> confdefs.h <<\EOF
18635#define WX_GETTIMEOFDAY_NO_TZ 1
18636EOF
18637
18638 fi
18639 fi
18640
18641 cat >> confdefs.h <<\EOF
18642#define wxUSE_TIMEDATE 1
18643EOF
18644
18645 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
18646fi
18647
18648
18649if test "$wxUSE_SOCKETS" = "yes"; then
18650 if test "$TOOLKIT" = "X11"; then
18651 echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2
18652 wxUSE_SOCKETS="no"
18653 fi
18654fi
18655
18656if test "$wxUSE_SOCKETS" = "yes"; then
18657 if test "$TOOLKIT" != "MSW"; then
18658 echo $ac_n "checking for socket""... $ac_c" 1>&6
18659echo "configure:18660: checking for socket" >&5
18660if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
18661 echo $ac_n "(cached) $ac_c" 1>&6
18662else
18663 cat > conftest.$ac_ext <<EOF
18664#line 18665 "configure"
18665#include "confdefs.h"
18666/* System header to define __stub macros and hopefully few prototypes,
18667 which can conflict with char socket(); below. */
18668#include <assert.h>
18669/* Override any gcc2 internal prototype to avoid an error. */
18670/* We use char because int might match the return type of a gcc2
18671 builtin and then its argument prototype would still apply. */
18672char socket();
18673
18674int main() {
18675
18676/* The GNU C library defines this for functions which it implements
18677 to always fail with ENOSYS. Some functions are actually named
18678 something starting with __ and the normal name is an alias. */
18679#if defined (__stub_socket) || defined (__stub___socket)
18680choke me
18681#else
18682socket();
18683#endif
18684
18685; return 0; }
18686EOF
18687if { (eval echo configure:18688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18688 rm -rf conftest*
18689 eval "ac_cv_func_socket=yes"
18690else
18691 echo "configure: failed program was:" >&5
18692 cat conftest.$ac_ext >&5
18693 rm -rf conftest*
18694 eval "ac_cv_func_socket=no"
18695fi
18696rm -f conftest*
18697fi
18698
18699if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
18700 echo "$ac_t""yes" 1>&6
18701 :
18702else
18703 echo "$ac_t""no" 1>&6
18704echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
18705echo "configure:18706: checking for socket in -lsocket" >&5
18706ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
18707if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18708 echo $ac_n "(cached) $ac_c" 1>&6
18709else
18710 ac_save_LIBS="$LIBS"
18711LIBS="-lsocket $LIBS"
18712cat > conftest.$ac_ext <<EOF
18713#line 18714 "configure"
18714#include "confdefs.h"
18715/* Override any gcc2 internal prototype to avoid an error. */
18716/* We use char because int might match the return type of a gcc2
18717 builtin and then its argument prototype would still apply. */
18718char socket();
18719
18720int main() {
18721socket()
18722; return 0; }
18723EOF
18724if { (eval echo configure:18725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18725 rm -rf conftest*
18726 eval "ac_cv_lib_$ac_lib_var=yes"
18727else
18728 echo "configure: failed program was:" >&5
18729 cat conftest.$ac_ext >&5
18730 rm -rf conftest*
18731 eval "ac_cv_lib_$ac_lib_var=no"
18732fi
18733rm -f conftest*
18734LIBS="$ac_save_LIBS"
18735
18736fi
18737if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18738 echo "$ac_t""yes" 1>&6
18739 INET_LINK="$INET_LINK -lsocket"
18740else
18741 echo "$ac_t""no" 1>&6
18742
18743 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
18744 wxUSE_SOCKETS=no
18745
18746
18747fi
18748
18749
18750fi
18751
18752 fi
18753fi
18754
18755if test "$wxUSE_SOCKETS" = "yes" ; then
18756 if test "$TOOLKIT" != "MSW"; then
18757 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
18758echo "configure:18759: checking what is the type of the third argument of getsockname" >&5
18759if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
18760 echo $ac_n "(cached) $ac_c" 1>&6
18761else
18762
18763
18764 ac_ext=C
18765# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18766ac_cpp='$CXXCPP $CPPFLAGS'
18767ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18768ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18769cross_compiling=$ac_cv_prog_cxx_cross
18770
18771
18772 cat > conftest.$ac_ext <<EOF
18773#line 18774 "configure"
18774#include "confdefs.h"
18775
18776 #include <sys/types.h>
18777 #include <sys/socket.h>
18778
18779int main() {
18780
18781 socklen_t len;
18782 getsockname(0, 0, &len);
18783
18784; return 0; }
18785EOF
18786if { (eval echo configure:18787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18787 rm -rf conftest*
18788 wx_cv_type_getsockname3=socklen_t
18789else
18790 echo "configure: failed program was:" >&5
18791 cat conftest.$ac_ext >&5
18792 rm -rf conftest*
18793 cat > conftest.$ac_ext <<EOF
18794#line 18795 "configure"
18795#include "confdefs.h"
18796
18797 #include <sys/types.h>
18798 #include <sys/socket.h>
18799
18800int main() {
18801
18802 size_t len;
18803 getsockname(0, 0, &len);
18804
18805; return 0; }
18806EOF
18807if { (eval echo configure:18808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18808 rm -rf conftest*
18809 wx_cv_type_getsockname3=size_t
18810else
18811 echo "configure: failed program was:" >&5
18812 cat conftest.$ac_ext >&5
18813 rm -rf conftest*
18814 cat > conftest.$ac_ext <<EOF
18815#line 18816 "configure"
18816#include "confdefs.h"
18817
18818 #include <sys/types.h>
18819 #include <sys/socket.h>
18820
18821int main() {
18822
18823 int len;
18824 getsockname(0, 0, &len);
18825
18826; return 0; }
18827EOF
18828if { (eval echo configure:18829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18829 rm -rf conftest*
18830 wx_cv_type_getsockname3=int
18831else
18832 echo "configure: failed program was:" >&5
18833 cat conftest.$ac_ext >&5
18834 rm -rf conftest*
18835 wx_cv_type_getsockname3=unknown
18836
18837fi
18838rm -f conftest*
18839
18840fi
18841rm -f conftest*
18842
18843fi
18844rm -f conftest*
18845
18846 ac_ext=c
18847# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18848ac_cpp='$CPP $CPPFLAGS'
18849ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18850ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18851cross_compiling=$ac_cv_prog_cc_cross
18852
18853
18854fi
18855
18856echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
18857
18858 if test "$wx_cv_type_getsockname3" = "unknown"; then
18859 wxUSE_SOCKETS=no
18860 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
18861 else
18862 cat >> confdefs.h <<EOF
18863#define SOCKLEN_T $wx_cv_type_getsockname3
18864EOF
18865
18866 fi
18867 fi
18868fi
18869
18870if test "$wxUSE_SOCKETS" = "yes" ; then
18871 cat >> confdefs.h <<\EOF
18872#define wxUSE_SOCKETS 1
18873EOF
18874
18875 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
18876fi
18877
18878
18879if test "$wxUSE_GUI" = "yes"; then
18880
18881 if test "$TOOLKIT" = "MAC"; then
18882 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
18883 wxUSE_JOYSTICK=no
18884 fi
18885 if test "$TOOLKIT" = "MOTIF"; then
18886 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
18887 wxUSE_JOYSTICK=no
18888 fi
18889 if test "$TOOLKIT" = "X11"; then
18890 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
18891 wxUSE_JOYSTICK=no
18892 fi
18893
18894 if test "$TOOLKIT" != "MSW"; then
18895 if test "$wxUSE_JOYSTICK" = "yes"; then
18896 for ac_hdr in linux/joystick.h
18897do
18898ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18899echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18900echo "configure:18901: checking for $ac_hdr" >&5
18901if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18902 echo $ac_n "(cached) $ac_c" 1>&6
18903else
18904 cat > conftest.$ac_ext <<EOF
18905#line 18906 "configure"
18906#include "confdefs.h"
18907#include <$ac_hdr>
18908EOF
18909ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18910{ (eval echo configure:18911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18911ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18912if test -z "$ac_err"; then
18913 rm -rf conftest*
18914 eval "ac_cv_header_$ac_safe=yes"
18915else
18916 echo "$ac_err" >&5
18917 echo "configure: failed program was:" >&5
18918 cat conftest.$ac_ext >&5
18919 rm -rf conftest*
18920 eval "ac_cv_header_$ac_safe=no"
18921fi
18922rm -f conftest*
18923fi
18924if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18925 echo "$ac_t""yes" 1>&6
18926 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18927 cat >> confdefs.h <<EOF
18928#define $ac_tr_hdr 1
18929EOF
18930
18931else
18932 echo "$ac_t""no" 1>&6
18933fi
18934done
18935
18936 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
18937 wxUSE_JOYSTICK=no
18938 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
18939 fi
18940 fi
18941 fi
18942
18943 if test "$wxUSE_JOYSTICK" = "yes"; then
18944 cat >> confdefs.h <<\EOF
18945#define wxUSE_JOYSTICK 1
18946EOF
18947
18948 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
18949 fi
18950fi
18951
18952
18953if test "$TOOLKIT" != "MSW"; then
18954
18955 HAVE_DL_FUNCS=0
18956 HAVE_SHL_FUNCS=0
18957 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
18958 if test "$USE_DARWIN" = 1; then
18959 HAVE_DL_FUNCS=1
18960 else
18961 for ac_func in dlopen
18962do
18963echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18964echo "configure:18965: checking for $ac_func" >&5
18965if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18966 echo $ac_n "(cached) $ac_c" 1>&6
18967else
18968 cat > conftest.$ac_ext <<EOF
18969#line 18970 "configure"
18970#include "confdefs.h"
18971/* System header to define __stub macros and hopefully few prototypes,
18972 which can conflict with char $ac_func(); below. */
18973#include <assert.h>
18974/* Override any gcc2 internal prototype to avoid an error. */
18975/* We use char because int might match the return type of a gcc2
18976 builtin and then its argument prototype would still apply. */
18977char $ac_func();
18978
18979int main() {
18980
18981/* The GNU C library defines this for functions which it implements
18982 to always fail with ENOSYS. Some functions are actually named
18983 something starting with __ and the normal name is an alias. */
18984#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18985choke me
18986#else
18987$ac_func();
18988#endif
18989
18990; return 0; }
18991EOF
18992if { (eval echo configure:18993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18993 rm -rf conftest*
18994 eval "ac_cv_func_$ac_func=yes"
18995else
18996 echo "configure: failed program was:" >&5
18997 cat conftest.$ac_ext >&5
18998 rm -rf conftest*
18999 eval "ac_cv_func_$ac_func=no"
19000fi
19001rm -f conftest*
19002fi
19003
19004if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19005 echo "$ac_t""yes" 1>&6
19006 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19007 cat >> confdefs.h <<EOF
19008#define $ac_tr_func 1
19009EOF
19010
19011 cat >> confdefs.h <<\EOF
19012#define HAVE_DLOPEN 1
19013EOF
19014
19015 HAVE_DL_FUNCS=1
19016
19017else
19018 echo "$ac_t""no" 1>&6
19019echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
19020echo "configure:19021: checking for dlopen in -ldl" >&5
19021ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
19022if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19023 echo $ac_n "(cached) $ac_c" 1>&6
19024else
19025 ac_save_LIBS="$LIBS"
19026LIBS="-ldl $LIBS"
19027cat > conftest.$ac_ext <<EOF
19028#line 19029 "configure"
19029#include "confdefs.h"
19030/* Override any gcc2 internal prototype to avoid an error. */
19031/* We use char because int might match the return type of a gcc2
19032 builtin and then its argument prototype would still apply. */
19033char dlopen();
19034
19035int main() {
19036dlopen()
19037; return 0; }
19038EOF
19039if { (eval echo configure:19040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19040 rm -rf conftest*
19041 eval "ac_cv_lib_$ac_lib_var=yes"
19042else
19043 echo "configure: failed program was:" >&5
19044 cat conftest.$ac_ext >&5
19045 rm -rf conftest*
19046 eval "ac_cv_lib_$ac_lib_var=no"
19047fi
19048rm -f conftest*
19049LIBS="$ac_save_LIBS"
19050
19051fi
19052if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19053 echo "$ac_t""yes" 1>&6
19054
19055 cat >> confdefs.h <<\EOF
19056#define HAVE_DLOPEN 1
19057EOF
19058
19059 HAVE_DL_FUNCS=1
19060 DL_LINK=" -ldl$DL_LINK"
19061
19062else
19063 echo "$ac_t""no" 1>&6
19064
19065 for ac_func in shl_load
19066do
19067echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19068echo "configure:19069: checking for $ac_func" >&5
19069if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19070 echo $ac_n "(cached) $ac_c" 1>&6
19071else
19072 cat > conftest.$ac_ext <<EOF
19073#line 19074 "configure"
19074#include "confdefs.h"
19075/* System header to define __stub macros and hopefully few prototypes,
19076 which can conflict with char $ac_func(); below. */
19077#include <assert.h>
19078/* Override any gcc2 internal prototype to avoid an error. */
19079/* We use char because int might match the return type of a gcc2
19080 builtin and then its argument prototype would still apply. */
19081char $ac_func();
19082
19083int main() {
19084
19085/* The GNU C library defines this for functions which it implements
19086 to always fail with ENOSYS. Some functions are actually named
19087 something starting with __ and the normal name is an alias. */
19088#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19089choke me
19090#else
19091$ac_func();
19092#endif
19093
19094; return 0; }
19095EOF
19096if { (eval echo configure:19097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19097 rm -rf conftest*
19098 eval "ac_cv_func_$ac_func=yes"
19099else
19100 echo "configure: failed program was:" >&5
19101 cat conftest.$ac_ext >&5
19102 rm -rf conftest*
19103 eval "ac_cv_func_$ac_func=no"
19104fi
19105rm -f conftest*
19106fi
19107
19108if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19109 echo "$ac_t""yes" 1>&6
19110 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19111 cat >> confdefs.h <<EOF
19112#define $ac_tr_func 1
19113EOF
19114
19115 cat >> confdefs.h <<\EOF
19116#define HAVE_SHL_LOAD 1
19117EOF
19118
19119 HAVE_SHL_FUNCS=1
19120
19121else
19122 echo "$ac_t""no" 1>&6
19123echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
19124echo "configure:19125: checking for dld in -lshl_load" >&5
19125ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
19126if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19127 echo $ac_n "(cached) $ac_c" 1>&6
19128else
19129 ac_save_LIBS="$LIBS"
19130LIBS="-lshl_load $LIBS"
19131cat > conftest.$ac_ext <<EOF
19132#line 19133 "configure"
19133#include "confdefs.h"
19134/* Override any gcc2 internal prototype to avoid an error. */
19135/* We use char because int might match the return type of a gcc2
19136 builtin and then its argument prototype would still apply. */
19137char dld();
19138
19139int main() {
19140dld()
19141; return 0; }
19142EOF
19143if { (eval echo configure:19144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19144 rm -rf conftest*
19145 eval "ac_cv_lib_$ac_lib_var=yes"
19146else
19147 echo "configure: failed program was:" >&5
19148 cat conftest.$ac_ext >&5
19149 rm -rf conftest*
19150 eval "ac_cv_lib_$ac_lib_var=no"
19151fi
19152rm -f conftest*
19153LIBS="$ac_save_LIBS"
19154
19155fi
19156if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19157 echo "$ac_t""yes" 1>&6
19158
19159 HAVE_SHL_FUNCS=1
19160 DL_LINK=" -ldld$DL_LINK"
19161
19162else
19163 echo "$ac_t""no" 1>&6
19164fi
19165
19166
19167fi
19168done
19169
19170
19171fi
19172
19173
19174fi
19175done
19176
19177
19178 if test "$HAVE_DL_FUNCS" = 1; then
19179 for ac_func in dlerror
19180do
19181echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19182echo "configure:19183: checking for $ac_func" >&5
19183if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19184 echo $ac_n "(cached) $ac_c" 1>&6
19185else
19186 cat > conftest.$ac_ext <<EOF
19187#line 19188 "configure"
19188#include "confdefs.h"
19189/* System header to define __stub macros and hopefully few prototypes,
19190 which can conflict with char $ac_func(); below. */
19191#include <assert.h>
19192/* Override any gcc2 internal prototype to avoid an error. */
19193/* We use char because int might match the return type of a gcc2
19194 builtin and then its argument prototype would still apply. */
19195char $ac_func();
19196
19197int main() {
19198
19199/* The GNU C library defines this for functions which it implements
19200 to always fail with ENOSYS. Some functions are actually named
19201 something starting with __ and the normal name is an alias. */
19202#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19203choke me
19204#else
19205$ac_func();
19206#endif
19207
19208; return 0; }
19209EOF
19210if { (eval echo configure:19211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19211 rm -rf conftest*
19212 eval "ac_cv_func_$ac_func=yes"
19213else
19214 echo "configure: failed program was:" >&5
19215 cat conftest.$ac_ext >&5
19216 rm -rf conftest*
19217 eval "ac_cv_func_$ac_func=no"
19218fi
19219rm -f conftest*
19220fi
19221
19222if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19223 echo "$ac_t""yes" 1>&6
19224 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19225 cat >> confdefs.h <<EOF
19226#define $ac_tr_func 1
19227EOF
19228 cat >> confdefs.h <<\EOF
19229#define HAVE_DLERROR 1
19230EOF
19231
19232else
19233 echo "$ac_t""no" 1>&6
19234echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
19235echo "configure:19236: checking for dlerror in -ldl" >&5
19236ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19237if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19238 echo $ac_n "(cached) $ac_c" 1>&6
19239else
19240 ac_save_LIBS="$LIBS"
19241LIBS="-ldl $LIBS"
19242cat > conftest.$ac_ext <<EOF
19243#line 19244 "configure"
19244#include "confdefs.h"
19245/* Override any gcc2 internal prototype to avoid an error. */
19246/* We use char because int might match the return type of a gcc2
19247 builtin and then its argument prototype would still apply. */
19248char dlerror();
19249
19250int main() {
19251dlerror()
19252; return 0; }
19253EOF
19254if { (eval echo configure:19255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19255 rm -rf conftest*
19256 eval "ac_cv_lib_$ac_lib_var=yes"
19257else
19258 echo "configure: failed program was:" >&5
19259 cat conftest.$ac_ext >&5
19260 rm -rf conftest*
19261 eval "ac_cv_lib_$ac_lib_var=no"
19262fi
19263rm -f conftest*
19264LIBS="$ac_save_LIBS"
19265
19266fi
19267if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19268 echo "$ac_t""yes" 1>&6
19269 cat >> confdefs.h <<\EOF
19270#define HAVE_DLERROR 1
19271EOF
19272
19273else
19274 echo "$ac_t""no" 1>&6
19275fi
19276
19277fi
19278done
19279
19280 fi
19281 fi
19282
19283 if test "$HAVE_DL_FUNCS" = 0; then
19284 if test "$HAVE_SHL_FUNCS" = 0; then
19285 if test "$USE_UNIX" = 1; then
19286 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
19287 wxUSE_DYNAMIC_LOADER=no
19288 wxUSE_DYNLIB_CLASS=no
19289 else
19290 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
19291 fi
19292 fi
19293 fi
19294 fi
19295fi
19296
19297if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
19298 cat >> confdefs.h <<\EOF
19299#define wxUSE_DYNAMIC_LOADER 1
19300EOF
19301
19302elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19303 cat >> confdefs.h <<\EOF
19304#define wxUSE_DYNLIB_CLASS 1
19305EOF
19306
19307fi
19308
19309
19310if test "$wxUSE_FONTMAP" = "yes" ; then
19311 cat >> confdefs.h <<\EOF
19312#define wxUSE_FONTMAP 1
19313EOF
19314
19315fi
19316
19317if test "$wxUSE_UNICODE" = "yes" ; then
19318 cat >> confdefs.h <<\EOF
19319#define wxUSE_UNICODE 1
19320EOF
19321
19322
19323 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
19324 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
19325echo "configure:19326: checking for main in -lunicows" >&5
19326ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19327if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19328 echo $ac_n "(cached) $ac_c" 1>&6
19329else
19330 ac_save_LIBS="$LIBS"
19331LIBS="-lunicows $LIBS"
19332cat > conftest.$ac_ext <<EOF
19333#line 19334 "configure"
19334#include "confdefs.h"
19335
19336int main() {
19337main()
19338; return 0; }
19339EOF
19340if { (eval echo configure:19341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19341 rm -rf conftest*
19342 eval "ac_cv_lib_$ac_lib_var=yes"
19343else
19344 echo "configure: failed program was:" >&5
19345 cat conftest.$ac_ext >&5
19346 rm -rf conftest*
19347 eval "ac_cv_lib_$ac_lib_var=no"
19348fi
19349rm -f conftest*
19350LIBS="$ac_save_LIBS"
19351
19352fi
19353if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19354 echo "$ac_t""yes" 1>&6
19355
19356 cat >> confdefs.h <<\EOF
19357#define wxUSE_UNICODE_MSLU 1
19358EOF
19359
19360
19361else
19362 echo "$ac_t""no" 1>&6
19363
19364 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19365 Applications will only run on Windows NT/2000/XP!" 1>&2
19366 wxUSE_UNICODE_MSLU=no
19367
19368fi
19369
19370 fi
19371fi
19372
19373if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
19374 cat >> confdefs.h <<\EOF
19375#define wxUSE_EXPERIMENTAL_PRINTF 1
19376EOF
19377
19378fi
19379
19380
19381
19382IODBC_C_SRC=""
19383if test "$wxUSE_ODBC" = "yes" ; then
19384 cat >> confdefs.h <<\EOF
19385#define wxUSE_ODBC 1
19386EOF
19387
19388 WXODBCFLAG="-D_IODBC_"
19389 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
19390fi
19391
19392
19393if test "$wxUSE_POSTSCRIPT" = "yes" ; then
19394 cat >> confdefs.h <<\EOF
19395#define wxUSE_POSTSCRIPT 1
19396EOF
19397
19398fi
19399
19400cat >> confdefs.h <<\EOF
19401#define wxUSE_AFM_FOR_POSTSCRIPT 1
19402EOF
19403
19404
19405cat >> confdefs.h <<\EOF
19406#define wxUSE_NORMALIZED_PS_FONTS 1
19407EOF
19408
19409
19410
19411if test "$wxUSE_CONSTRAINTS" = "yes"; then
19412 cat >> confdefs.h <<\EOF
19413#define wxUSE_CONSTRAINTS 1
19414EOF
19415
19416 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19417fi
19418
19419if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19420 if test "$wxUSE_UNIVERSAL" = "yes"; then
19421 echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2
19422 wxUSE_MDI_ARCHITECTURE=no
19423 fi
19424
19425 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19426 cat >> confdefs.h <<\EOF
19427#define wxUSE_MDI_ARCHITECTURE 1
19428EOF
19429
19430 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19431 fi
19432fi
19433
19434if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
19435 cat >> confdefs.h <<\EOF
19436#define wxUSE_DOC_VIEW_ARCHITECTURE 1
19437EOF
19438
19439 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19440 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19441 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19442 fi
19443fi
19444
19445if test "$wxUSE_HELP" = "yes"; then
19446 cat >> confdefs.h <<\EOF
19447#define wxUSE_HELP 1
19448EOF
19449
19450 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
19451
19452 if test "$wxUSE_MSW" = 1; then
19453 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
19454 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
19455echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
19456echo "configure:19457: checking for htmlhelp.h" >&5
19457if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19458 echo $ac_n "(cached) $ac_c" 1>&6
19459else
19460 cat > conftest.$ac_ext <<EOF
19461#line 19462 "configure"
19462#include "confdefs.h"
19463#include <htmlhelp.h>
19464EOF
19465ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19466{ (eval echo configure:19467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19467ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19468if test -z "$ac_err"; then
19469 rm -rf conftest*
19470 eval "ac_cv_header_$ac_safe=yes"
19471else
19472 echo "$ac_err" >&5
19473 echo "configure: failed program was:" >&5
19474 cat conftest.$ac_ext >&5
19475 rm -rf conftest*
19476 eval "ac_cv_header_$ac_safe=no"
19477fi
19478rm -f conftest*
19479fi
19480if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19481 echo "$ac_t""yes" 1>&6
19482
19483 cat >> confdefs.h <<\EOF
19484#define wxUSE_MS_HTML_HELP 1
19485EOF
19486
19487
19488else
19489 echo "$ac_t""no" 1>&6
19490
19491 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
19492 wxUSE_MS_HTML_HELP=no
19493
19494fi
19495
19496 fi
19497 fi
19498
19499 if test "$wxUSE_WXHTML_HELP" = "yes"; then
19500 if test "$wxUSE_HTML" = "yes"; then
19501 cat >> confdefs.h <<\EOF
19502#define wxUSE_WXHTML_HELP 1
19503EOF
19504
19505 else
19506 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
19507 wxUSE_WXHTML_HELP=no
19508 fi
19509 fi
19510fi
19511
19512if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19513 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19514 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
19515 else
19516 cat >> confdefs.h <<\EOF
19517#define wxUSE_PRINTING_ARCHITECTURE 1
19518EOF
19519
19520 fi
19521 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19522fi
19523
19524if test "$wxUSE_PROLOGIO" = "yes" ; then
19525 cat >> confdefs.h <<\EOF
19526#define wxUSE_PROLOGIO 1
19527EOF
19528
19529fi
19530
19531if test "$wxUSE_RESOURCES" = "yes" ; then
19532 if test "$wxUSE_NANOX" = "yes"; then
19533 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
19534 else
19535 cat >> confdefs.h <<\EOF
19536#define wxUSE_RESOURCES 1
19537EOF
19538
19539 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
19540 fi
19541fi
19542
19543if test "$wxUSE_X_RESOURCES" = "yes"; then
19544 cat >> confdefs.h <<\EOF
19545#define wxUSE_X_RESOURCES 1
19546EOF
19547
19548fi
19549
19550
19551if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
19552 -o "$wxUSE_CLIPBOARD" = "yes" \
19553 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
19554 for ac_hdr in ole2.h
19555do
19556ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19557echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19558echo "configure:19559: checking for $ac_hdr" >&5
19559if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19560 echo $ac_n "(cached) $ac_c" 1>&6
19561else
19562 cat > conftest.$ac_ext <<EOF
19563#line 19564 "configure"
19564#include "confdefs.h"
19565#include <$ac_hdr>
19566EOF
19567ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19568{ (eval echo configure:19569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19569ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19570if test -z "$ac_err"; then
19571 rm -rf conftest*
19572 eval "ac_cv_header_$ac_safe=yes"
19573else
19574 echo "$ac_err" >&5
19575 echo "configure: failed program was:" >&5
19576 cat conftest.$ac_ext >&5
19577 rm -rf conftest*
19578 eval "ac_cv_header_$ac_safe=no"
19579fi
19580rm -f conftest*
19581fi
19582if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19583 echo "$ac_t""yes" 1>&6
19584 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19585 cat >> confdefs.h <<EOF
19586#define $ac_tr_hdr 1
19587EOF
19588
19589else
19590 echo "$ac_t""no" 1>&6
19591fi
19592done
19593
19594
19595 if test "$ac_cv_header_ole2_h" = "yes" ; then
19596 if test "$GCC" = yes ; then
19597 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
19598 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
19599 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
19600 cat >> confdefs.h <<\EOF
19601#define wxUSE_OLE 1
19602EOF
19603
19604
19605 fi
19606
19607 cat >> confdefs.h <<\EOF
19608#define wxUSE_DATAOBJ 1
19609EOF
19610
19611 else
19612 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
19613
19614 wxUSE_CLIPBOARD=no
19615 wxUSE_DRAG_AND_DROP=no
19616 wxUSE_DATAOBJ=no
19617 fi
19618
19619 if test "$wxUSE_METAFILE" = "yes"; then
19620 cat >> confdefs.h <<\EOF
19621#define wxUSE_METAFILE 1
19622EOF
19623
19624
19625 cat >> confdefs.h <<\EOF
19626#define wxUSE_ENH_METAFILE 1
19627EOF
19628
19629 fi
19630fi
19631
19632if test "$wxUSE_IPC" = "yes"; then
19633 if test "$wxUSE_SOCKETS" != "yes"; then
19634 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
19635 fi
19636
19637 cat >> confdefs.h <<\EOF
19638#define wxUSE_IPC 1
19639EOF
19640
19641fi
19642
19643if test "$wxUSE_CLIPBOARD" = "yes"; then
19644 if test "$wxUSE_X11" = 1; then
19645 echo "configure: warning: Clipboard not yet supported under X11... disabled" 1>&2
19646 wxUSE_CLIPBOARD=no
19647 fi
19648
19649 if test "$wxUSE_CLIPBOARD" = "yes"; then
19650 cat >> confdefs.h <<\EOF
19651#define wxUSE_CLIPBOARD 1
19652EOF
19653
19654
19655 cat >> confdefs.h <<\EOF
19656#define wxUSE_DATAOBJ 1
19657EOF
19658
19659 fi
19660fi
19661
19662if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
19663 if test "$wxUSE_GTK" = 1; then
19664 if test "$WXGTK12" != 1; then
19665 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
19666 wxUSE_DRAG_AND_DROP=no
19667 fi
19668 fi
19669
19670 if test "$wxUSE_MOTIF" = 1; then
19671 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
19672 wxUSE_DRAG_AND_DROP=no
19673 fi
19674
19675 if test "$wxUSE_X11" = 1; then
19676 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
19677 wxUSE_DRAG_AND_DROP=no
19678 fi
19679
19680 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
19681 cat >> confdefs.h <<\EOF
19682#define wxUSE_DRAG_AND_DROP 1
19683EOF
19684
19685 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
19686 fi
19687
19688fi
19689
19690if test "$wxUSE_SPLINES" = "yes" ; then
19691 cat >> confdefs.h <<\EOF
19692#define wxUSE_SPLINES 1
19693EOF
19694
19695fi
19696
19697
19698USES_CONTROLS=0
19699if test "$wxUSE_CONTROLS" = "yes"; then
19700 USES_CONTROLS=1
19701fi
19702
19703if test "$wxUSE_ACCEL" = "yes"; then
19704 cat >> confdefs.h <<\EOF
19705#define wxUSE_ACCEL 1
19706EOF
19707
19708 USES_CONTROLS=1
19709fi
19710
19711if test "$wxUSE_BUTTON" = "yes"; then
19712 cat >> confdefs.h <<\EOF
19713#define wxUSE_BUTTON 1
19714EOF
19715
19716 USES_CONTROLS=1
19717fi
19718
19719if test "$wxUSE_BMPBUTTON" = "yes"; then
19720 cat >> confdefs.h <<\EOF
19721#define wxUSE_BMPBUTTON 1
19722EOF
19723
19724 USES_CONTROLS=1
19725fi
19726
19727if test "$wxUSE_CALCTRL" = "yes"; then
19728 cat >> confdefs.h <<\EOF
19729#define wxUSE_CALENDARCTRL 1
19730EOF
19731
19732 USES_CONTROLS=1
19733 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
19734fi
19735
19736if test "$wxUSE_CARET" = "yes"; then
19737 cat >> confdefs.h <<\EOF
19738#define wxUSE_CARET 1
19739EOF
19740
19741 USES_CONTROLS=1
19742 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
19743fi
19744
19745if test "$wxUSE_COMBOBOX" = "yes"; then
19746 cat >> confdefs.h <<\EOF
19747#define wxUSE_COMBOBOX 1
19748EOF
19749
19750 USES_CONTROLS=1
19751fi
19752
19753if test "$wxUSE_CHOICE" = "yes"; then
19754 cat >> confdefs.h <<\EOF
19755#define wxUSE_CHOICE 1
19756EOF
19757
19758 USES_CONTROLS=1
19759fi
19760
19761if test "$wxUSE_CHECKBOX" = "yes"; then
19762 cat >> confdefs.h <<\EOF
19763#define wxUSE_CHECKBOX 1
19764EOF
19765
19766 USES_CONTROLS=1
19767fi
19768
19769if test "$wxUSE_CHECKLST" = "yes"; then
19770 cat >> confdefs.h <<\EOF
19771#define wxUSE_CHECKLISTBOX 1
19772EOF
19773
19774 USES_CONTROLS=1
19775 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
19776fi
19777
19778if test "$wxUSE_GAUGE" = "yes"; then
19779 cat >> confdefs.h <<\EOF
19780#define wxUSE_GAUGE 1
19781EOF
19782
19783 USES_CONTROLS=1
19784fi
19785
19786if test "$wxUSE_NEW_GRID" = "yes"; then
19787 wxUSE_GRID="yes"
19788 cat >> confdefs.h <<\EOF
19789#define wxUSE_NEW_GRID 1
19790EOF
19791
19792 USES_CONTROLS=1
19793 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
19794fi
19795
19796if test "$wxUSE_GRID" = "yes"; then
19797 cat >> confdefs.h <<\EOF
19798#define wxUSE_GRID 1
19799EOF
19800
19801 USES_CONTROLS=1
19802 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
19803fi
19804
19805if test "$wxUSE_IMAGLIST" = "yes"; then
19806 cat >> confdefs.h <<\EOF
19807#define wxUSE_IMAGLIST 1
19808EOF
19809
19810fi
19811
19812if test "$wxUSE_LISTBOX" = "yes"; then
19813 cat >> confdefs.h <<\EOF
19814#define wxUSE_LISTBOX 1
19815EOF
19816
19817 USES_CONTROLS=1
19818fi
19819
19820if test "$wxUSE_LISTCTRL" = "yes"; then
19821 if test "$wxUSE_IMAGLIST" = "yes"; then
19822 cat >> confdefs.h <<\EOF
19823#define wxUSE_LISTCTRL 1
19824EOF
19825
19826 USES_CONTROLS=1
19827 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
19828 else
19829 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
19830 fi
19831fi
19832
19833if test "$wxUSE_NOTEBOOK" = "yes"; then
19834 cat >> confdefs.h <<\EOF
19835#define wxUSE_NOTEBOOK 1
19836EOF
19837
19838 USES_CONTROLS=1
19839 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
19840fi
19841
19842if test "$wxUSE_PROPSHEET" = "yes"; then
19843 cat >> confdefs.h <<\EOF
19844#define wxUSE_PROPSHEET 1
19845EOF
19846
19847 USES_CONTROLS=1
19848 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
19849fi
19850
19851if test "$wxUSE_RADIOBOX" = "yes"; then
19852 cat >> confdefs.h <<\EOF
19853#define wxUSE_RADIOBOX 1
19854EOF
19855
19856 USES_CONTROLS=1
19857fi
19858
19859if test "$wxUSE_RADIOBTN" = "yes"; then
19860 cat >> confdefs.h <<\EOF
19861#define wxUSE_RADIOBTN 1
19862EOF
19863
19864 USES_CONTROLS=1
19865fi
19866
19867if test "$wxUSE_SASH" = "yes"; then
19868 cat >> confdefs.h <<\EOF
19869#define wxUSE_SASH 1
19870EOF
19871
19872 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
19873fi
19874
19875if test "$wxUSE_SCROLLBAR" = "yes"; then
19876 cat >> confdefs.h <<\EOF
19877#define wxUSE_SCROLLBAR 1
19878EOF
19879
19880 USES_CONTROLS=1
19881 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
19882fi
19883
19884if test "$wxUSE_SLIDER" = "yes"; then
19885 cat >> confdefs.h <<\EOF
19886#define wxUSE_SLIDER 1
19887EOF
19888
19889 USES_CONTROLS=1
19890fi
19891
19892if test "$wxUSE_SPINBTN" = "yes"; then
19893 cat >> confdefs.h <<\EOF
19894#define wxUSE_SPINBTN 1
19895EOF
19896
19897 USES_CONTROLS=1
19898fi
19899
19900if test "$wxUSE_SPINCTRL" = "yes"; then
19901 cat >> confdefs.h <<\EOF
19902#define wxUSE_SPINCTRL 1
19903EOF
19904
19905 USES_CONTROLS=1
19906fi
19907
19908if test "$wxUSE_SPLITTER" = "yes"; then
19909 cat >> confdefs.h <<\EOF
19910#define wxUSE_SPLITTER 1
19911EOF
19912
19913 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
19914fi
19915
19916if test "$wxUSE_STATBMP" = "yes"; then
19917 cat >> confdefs.h <<\EOF
19918#define wxUSE_STATBMP 1
19919EOF
19920
19921 USES_CONTROLS=1
19922fi
19923
19924if test "$wxUSE_STATBOX" = "yes"; then
19925 cat >> confdefs.h <<\EOF
19926#define wxUSE_STATBOX 1
19927EOF
19928
19929 USES_CONTROLS=1
19930fi
19931
19932if test "$wxUSE_STATTEXT" = "yes"; then
19933 cat >> confdefs.h <<\EOF
19934#define wxUSE_STATTEXT 1
19935EOF
19936
19937 USES_CONTROLS=1
19938fi
19939
19940if test "$wxUSE_STATLINE" = "yes"; then
19941 if test "$wxUSE_WINE" = 1 ; then
19942 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
19943 else
19944 cat >> confdefs.h <<\EOF
19945#define wxUSE_STATLINE 1
19946EOF
19947
19948 USES_CONTROLS=1
19949 fi
19950fi
19951
19952if test "$wxUSE_STATUSBAR" = "yes"; then
19953 cat >> confdefs.h <<\EOF
19954#define wxUSE_STATUSBAR 1
19955EOF
19956
19957 USES_CONTROLS=1
19958
19959 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
19960fi
19961
19962if test "$wxUSE_TABDIALOG" = "yes"; then
19963 cat >> confdefs.h <<\EOF
19964#define wxUSE_TAB_DIALOG 1
19965EOF
19966
19967 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
19968fi
19969
19970if test "$wxUSE_TEXTCTRL" = "yes"; then
19971 cat >> confdefs.h <<\EOF
19972#define wxUSE_TEXTCTRL 1
19973EOF
19974
19975 USES_CONTROLS=1
19976 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
19977fi
19978
19979if test "$wxUSE_TOGGLEBTN" = "yes"; then
19980 if test "$wxUSE_MAC" = 1; then
19981 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
19982 wxUSE_TOGGLEBTN=no
19983 fi
19984 if test "$wxUSE_UNIVERSAL" = "yes"; then
19985 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
19986 wxUSE_TOGGLEBTN=no
19987 fi
19988
19989 if test "$wxUSE_TOGGLEBTN" = "yes"; then
19990 cat >> confdefs.h <<\EOF
19991#define wxUSE_TOGGLEBTN 1
19992EOF
19993
19994 USES_CONTROLS=1
19995 fi
19996fi
19997
19998if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
19999 cat >> confdefs.h <<\EOF
20000#define wxUSE_TOOLBAR_SIMPLE 1
20001EOF
20002
20003 wxUSE_TOOLBAR="yes"
20004 USES_CONTROLS=1
20005fi
20006
20007if test "$wxUSE_TOOLBAR" = "yes"; then
20008 cat >> confdefs.h <<\EOF
20009#define wxUSE_TOOLBAR 1
20010EOF
20011
20012 USES_CONTROLS=1
20013
20014 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
20015 wxUSE_TOOLBAR_NATIVE="yes"
20016 fi
20017
20018 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
20019 cat >> confdefs.h <<\EOF
20020#define wxUSE_TOOLBAR_NATIVE 1
20021EOF
20022
20023 USES_CONTROLS=1
20024 fi
20025
20026 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
20027fi
20028
20029if test "$wxUSE_TOOLTIPS" = "yes"; then
20030 if test "$wxUSE_MOTIF" = 1; then
20031 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
20032 else
20033 if test "$wxUSE_WINE" = 1; then
20034 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
20035 else
20036 if test "$wxUSE_UNIVERSAL" = "yes"; then
20037 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
20038 else
20039 cat >> confdefs.h <<\EOF
20040#define wxUSE_TOOLTIPS 1
20041EOF
20042
20043 fi
20044 fi
20045 fi
20046fi
20047
20048if test "$wxUSE_TREECTRL" = "yes"; then
20049 if test "$wxUSE_IMAGLIST" = "yes"; then
20050 cat >> confdefs.h <<\EOF
20051#define wxUSE_TREECTRL 1
20052EOF
20053
20054 USES_CONTROLS=1
20055 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
20056 else
20057 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
20058 fi
20059fi
20060
20061if test "$wxUSE_POPUPWIN" = "yes"; then
20062 if test "$wxUSE_MAC" = 1; then
20063 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
20064 else
20065 if test "$wxUSE_MOTIF" = 1; then
20066 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
20067 else
20068 if test "$wxUSE_PM" = 1; then
20069 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
20070 else
20071 cat >> confdefs.h <<\EOF
20072#define wxUSE_POPUPWIN 1
20073EOF
20074
20075
20076 USES_CONTROLS=1
20077 fi
20078 fi
20079 fi
20080fi
20081
20082if test "$wxUSE_TIPWINDOW" = "yes"; then
20083 if test "$wxUSE_PM" = 1; then
20084 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
20085 else
20086 cat >> confdefs.h <<\EOF
20087#define wxUSE_TIPWINDOW 1
20088EOF
20089
20090 fi
20091fi
20092
20093if test "$USES_CONTROLS" = 1; then
20094 cat >> confdefs.h <<\EOF
20095#define wxUSE_CONTROLS 1
20096EOF
20097
20098fi
20099
20100
20101if test "$wxUSE_TREELAYOUT" = "yes"; then
20102 cat >> confdefs.h <<\EOF
20103#define wxUSE_TREELAYOUT 1
20104EOF
20105
20106 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
20107fi
20108
20109if test "$wxUSE_DRAGIMAGE" = "yes"; then
20110 cat >> confdefs.h <<\EOF
20111#define wxUSE_DRAGIMAGE 1
20112EOF
20113
20114 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
20115fi
20116
20117if test "$wxUSE_MENUS" = "yes"; then
20118 cat >> confdefs.h <<\EOF
20119#define wxUSE_MENUS 1
20120EOF
20121
20122 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
20123fi
20124
20125if test "$wxUSE_METAFILE" = "yes"; then
20126 cat >> confdefs.h <<\EOF
20127#define wxUSE_METAFILE 1
20128EOF
20129
20130fi
20131
20132if test "$wxUSE_MIMETYPE" = "yes"; then
20133 cat >> confdefs.h <<\EOF
20134#define wxUSE_MIMETYPE 1
20135EOF
20136
20137fi
20138
20139if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
20140 cat >> confdefs.h <<\EOF
20141#define wxUSE_SYSTEM_OPTIONS 1
20142EOF
20143
20144fi
20145
20146if test "$wxUSE_PROTOCOL" = "yes"; then
20147 if test "$wxUSE_SOCKETS" != "yes"; then
20148 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
20149 wxUSE_PROTOCOL=no
20150 fi
20151
20152 if test "$wxUSE_PROTOCOL" = "yes"; then
20153 cat >> confdefs.h <<\EOF
20154#define wxUSE_PROTOCOL 1
20155EOF
20156
20157
20158 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
20159 cat >> confdefs.h <<\EOF
20160#define wxUSE_PROTOCOL_HTTP 1
20161EOF
20162
20163 fi
20164 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
20165 cat >> confdefs.h <<\EOF
20166#define wxUSE_PROTOCOL_FTP 1
20167EOF
20168
20169 fi
20170 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
20171 cat >> confdefs.h <<\EOF
20172#define wxUSE_PROTOCOL_FILE 1
20173EOF
20174
20175 fi
20176 fi
20177fi
20178
20179if test "$wxUSE_URL" = "yes"; then
20180 if test "$wxUSE_PROTOCOL" != "yes"; then
20181 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
20182 wxUSE_URL=no
20183 fi
20184 if test "$wxUSE_URL" = "yes"; then
20185 cat >> confdefs.h <<\EOF
20186#define wxUSE_URL 1
20187EOF
20188
20189 fi
20190fi
20191
20192if test "$wxUSE_MINIFRAME" = "yes"; then
20193 cat >> confdefs.h <<\EOF
20194#define wxUSE_MINIFRAME 1
20195EOF
20196
20197 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20198fi
20199
20200if test "$wxUSE_HTML" = "yes"; then
20201 cat >> confdefs.h <<\EOF
20202#define wxUSE_HTML 1
20203EOF
20204
20205 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
20206fi
20207
20208if test "$wxUSE_VALIDATORS" = "yes"; then
20209 cat >> confdefs.h <<\EOF
20210#define wxUSE_VALIDATORS 1
20211EOF
20212
20213 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20214fi
20215
20216if test "$wxUSE_PALETTE" = "yes" ; then
20217 cat >> confdefs.h <<\EOF
20218#define wxUSE_PALETTE 1
20219EOF
20220
20221fi
20222
20223if test "$wxUSE_IMAGE" = "yes" ; then
20224 cat >> confdefs.h <<\EOF
20225#define wxUSE_IMAGE 1
20226EOF
20227
20228fi
20229
20230if test "$wxUSE_GIF" = "yes" ; then
20231 cat >> confdefs.h <<\EOF
20232#define wxUSE_GIF 1
20233EOF
20234
20235fi
20236
20237if test "$wxUSE_PCX" = "yes" ; then
20238 cat >> confdefs.h <<\EOF
20239#define wxUSE_PCX 1
20240EOF
20241
20242fi
20243
20244if test "$wxUSE_IFF" = "yes" ; then
20245 cat >> confdefs.h <<\EOF
20246#define wxUSE_IFF 1
20247EOF
20248
20249fi
20250
20251if test "$wxUSE_PNM" = "yes" ; then
20252 cat >> confdefs.h <<\EOF
20253#define wxUSE_PNM 1
20254EOF
20255
20256fi
20257
20258if test "$wxUSE_XPM" = "yes" ; then
20259 cat >> confdefs.h <<\EOF
20260#define wxUSE_XPM 1
20261EOF
20262
20263fi
20264
20265if test "$wxUSE_ICO_CUR" = "yes" ; then
20266 cat >> confdefs.h <<\EOF
20267#define wxUSE_ICO_CUR 1
20268EOF
20269
20270fi
20271
20272if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20273 LIBS=" -lunicows $LIBS"
20274fi
20275
20276
20277if test "$wxUSE_CHOICEDLG" = "yes"; then
20278 cat >> confdefs.h <<\EOF
20279#define wxUSE_CHOICEDLG 1
20280EOF
20281
20282fi
20283
20284if test "$wxUSE_COLOURDLG" = "yes"; then
20285 cat >> confdefs.h <<\EOF
20286#define wxUSE_COLOURDLG 1
20287EOF
20288
20289fi
20290
20291if test "$wxUSE_FILEDLG" = "yes"; then
20292 cat >> confdefs.h <<\EOF
20293#define wxUSE_FILEDLG 1
20294EOF
20295
20296fi
20297
20298if test "$wxUSE_FINDREPLDLG" = "yes"; then
20299 cat >> confdefs.h <<\EOF
20300#define wxUSE_FINDREPLDLG 1
20301EOF
20302
20303fi
20304
20305if test "$wxUSE_FONTDLG" = "yes"; then
20306 cat >> confdefs.h <<\EOF
20307#define wxUSE_FONTDLG 1
20308EOF
20309
20310fi
20311
20312if test "$wxUSE_DIRDLG" = "yes"; then
20313 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20314 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
20315 else
20316 if test "$wxUSE_TREECTRL" != "yes"; then
20317 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
20318 else
20319 cat >> confdefs.h <<\EOF
20320#define wxUSE_DIRDLG 1
20321EOF
20322
20323 fi
20324 fi
20325fi
20326
20327if test "$wxUSE_MSGDLG" = "yes"; then
20328 cat >> confdefs.h <<\EOF
20329#define wxUSE_MSGDLG 1
20330EOF
20331
20332fi
20333
20334if test "$wxUSE_NUMBERDLG" = "yes"; then
20335 cat >> confdefs.h <<\EOF
20336#define wxUSE_NUMBERDLG 1
20337EOF
20338
20339fi
20340
20341if test "$wxUSE_PROGRESSDLG" = "yes"; then
20342 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20343 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
20344 else
20345 cat >> confdefs.h <<\EOF
20346#define wxUSE_PROGRESSDLG 1
20347EOF
20348
20349 fi
20350fi
20351
20352if test "$wxUSE_SPLASH" = "yes"; then
20353 cat >> confdefs.h <<\EOF
20354#define wxUSE_SPLASH 1
20355EOF
20356
20357fi
20358
20359if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20360 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20361 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
20362 else
20363 cat >> confdefs.h <<\EOF
20364#define wxUSE_STARTUP_TIPS 1
20365EOF
20366
20367 fi
20368fi
20369
20370if test "$wxUSE_TEXTDLG" = "yes"; then
20371 cat >> confdefs.h <<\EOF
20372#define wxUSE_TEXTDLG 1
20373EOF
20374
20375fi
20376
20377if test "$wxUSE_WIZARDDLG" = "yes"; then
20378 cat >> confdefs.h <<\EOF
20379#define wxUSE_WIZARDDLG 1
20380EOF
20381
20382 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20383fi
20384
20385
20386if test "$cross_compiling" = "yes"; then
20387 OSINFO="\"$host\""
20388else
20389 OSINFO=`uname -s -r -m`
20390 OSINFO="\"$OSINFO\""
20391fi
20392
20393cat >> confdefs.h <<EOF
20394#define WXWIN_OS_DESCRIPTION $OSINFO
20395EOF
20396
20397
20398
20399if test "x$prefix" != "xNONE"; then
20400 wxPREFIX=$prefix
20401else
20402 wxPREFIX=$ac_default_prefix
20403fi
20404
20405cat >> confdefs.h <<EOF
20406#define wxINSTALL_PREFIX "$wxPREFIX"
20407EOF
20408
20409
20410
20411
20412
20413if test "$wxUSE_MAC" = 1 ; then
20414 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
20415fi
20416
20417
20418LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DL_LINK -lm $LIBS"
20419
20420if test "$wxUSE_GUI" = "yes"; then
20421
20422 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
20423
20424
20425 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
20426 drawing dynamic erase event exec font image \
20427 minimal richedit rotate widgets"
20428
20429 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20430else
20431 SAMPLES_SUBDIRS="console"
20432fi
20433
20434
20435INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
20436$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
20437
20438if test "$wxUSE_GTK" = 1; then
20439 WXCONFIG_INCLUDE=
20440else
20441 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20442fi
20443
20444if test "$GXX" = yes ; then
20445 CXXWARNINGS="-Wall"
20446
20447 if test "$wxUSE_NO_DEPS" = "no" ; then
20448 CFLAGS="-MMD $CFLAGS"
20449 CXXFLAGS="-MMD $CXXFLAGS"
20450 fi
20451fi
20452
20453EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
20454
20455CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20456CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
20457
20458LDFLAGS="$LDFLAGS$PROFILE"
20459
20460SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
20549echo "configure:20550: checking whether ${MAKE-make} sets \${MAKE}" >&5
20550set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
20551if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
20552 echo $ac_n "(cached) $ac_c" 1>&6
20553else
20554 cat > conftestmake <<\EOF
20555all:
20556 @echo 'ac_maketemp="${MAKE}"'
20557EOF
20558# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20559eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
20560if test -n "$ac_maketemp"; then
20561 eval ac_cv_prog_make_${ac_make}_set=yes
20562else
20563 eval ac_cv_prog_make_${ac_make}_set=no
20564fi
20565rm -f conftestmake
20566fi
20567if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20568 echo "$ac_t""yes" 1>&6
20569 SET_MAKE=
20570else
20571 echo "$ac_t""no" 1>&6
20572 SET_MAKE="MAKE=${MAKE-make}"
20573fi
20574
20575
20576if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
20577 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
20578fi
20579
20580
20581
20582if test "$wxUSE_GUI" = "yes"; then
20583 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
20584 wx_cv_if_gnu_make=$IF_GNU_MAKE
20585 wx_cv_path_ifs=$PATH_IFS
20586 wx_cv_program_ext=$PROGRAM_EXT
20587 wx_cv_target_library=$WX_TARGET_LIBRARY
20588 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
20589 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
20590 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
20591 wx_cv_path_ifs wx_cv_program_ext \
20592 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
20593 subdirs="demos samples utils contrib"
20594
20595fi
20596
20597trap '' 1 2 15
20598cat > confcache <<\EOF
20599# This file is a shell script that caches the results of configure
20600# tests run on this system so they can be shared between configure
20601# scripts and configure runs. It is not useful on other systems.
20602# If it contains results you don't want to keep, you may remove or edit it.
20603#
20604# By default, configure uses ./config.cache as the cache file,
20605# creating it if it does not exist already. You can give configure
20606# the --cache-file=FILE option to use a different cache file; that is
20607# what configure does when it calls configure scripts in
20608# subdirectories, so they share the cache.
20609# Giving --cache-file=/dev/null disables caching, for debugging configure.
20610# config.status only pays attention to the cache file if you give it the
20611# --recheck option to rerun configure.
20612#
20613EOF
20614# The following way of writing the cache mishandles newlines in values,
20615# but we know of no workaround that is simple, portable, and efficient.
20616# So, don't put newlines in cache variables' values.
20617# Ultrix sh set writes to stderr and can't be redirected directly,
20618# and sets the high bit in the cache file unless we assign to the vars.
20619(set) 2>&1 |
20620 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20621 *ac_space=\ *)
20622 # `set' does not quote correctly, so add quotes (double-quote substitution
20623 # turns \\\\ into \\, and sed turns \\ into \).
20624 sed -n \
20625 -e "s/'/'\\\\''/g" \
20626 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20627 ;;
20628 *)
20629 # `set' quotes correctly as required by POSIX, so do not add quotes.
20630 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20631 ;;
20632 esac >> confcache
20633if cmp -s $cache_file confcache; then
20634 :
20635else
20636 if test -w $cache_file; then
20637 echo "updating cache $cache_file"
20638 cat confcache > $cache_file
20639 else
20640 echo "not updating unwritable cache $cache_file"
20641 fi
20642fi
20643rm -f confcache
20644
20645trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
20646
20647test "x$prefix" = xNONE && prefix=$ac_default_prefix
20648# Let make expand exec_prefix.
20649test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20650
20651# Any assignment to VPATH causes Sun make to only execute
20652# the first set of double-colon rules, so remove it if not needed.
20653# If there is a colon in the path, we need to keep it.
20654if test "x$srcdir" = x.; then
20655 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
20656fi
20657
20658trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
20659
20660DEFS=-DHAVE_CONFIG_H
20661
20662# Without the "./", some shells look in PATH for config.status.
20663: ${CONFIG_STATUS=./config.status}
20664
20665echo creating $CONFIG_STATUS
20666rm -f $CONFIG_STATUS
20667cat > $CONFIG_STATUS <<EOF
20668#! /bin/sh
20669# Generated automatically by configure.
20670# Run this file to recreate the current configuration.
20671# This directory was configured as follows,
20672# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20673#
20674# $0 $ac_configure_args
20675#
20676# Compiler output produced by configure, useful for debugging
20677# configure, is in ./config.log if it exists.
20678
20679ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
20680for ac_option
20681do
20682 case "\$ac_option" in
20683 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20684 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
20685 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
20686 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
20687 echo "$CONFIG_STATUS generated by autoconf version 2.13"
20688 exit 0 ;;
20689 -help | --help | --hel | --he | --h)
20690 echo "\$ac_cs_usage"; exit 0 ;;
20691 *) echo "\$ac_cs_usage"; exit 1 ;;
20692 esac
20693done
20694
20695ac_given_srcdir=$srcdir
20696ac_given_INSTALL="$INSTALL"
20697
20698trap 'rm -fr `echo "
20699 wx-config
20700 src/make.env
20701 src/makeprog.env
20702 src/makelib.env
20703 Makefile
20704 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
20705EOF
20706cat >> $CONFIG_STATUS <<EOF
20707
20708# Protect against being on the right side of a sed subst in config.status.
20709sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
20710 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
20711$ac_vpsub
20712$extrasub
20713s%@SHELL@%$SHELL%g
20714s%@CFLAGS@%$CFLAGS%g
20715s%@CPPFLAGS@%$CPPFLAGS%g
20716s%@CXXFLAGS@%$CXXFLAGS%g
20717s%@FFLAGS@%$FFLAGS%g
20718s%@DEFS@%$DEFS%g
20719s%@LDFLAGS@%$LDFLAGS%g
20720s%@LIBS@%$LIBS%g
20721s%@exec_prefix@%$exec_prefix%g
20722s%@prefix@%$prefix%g
20723s%@program_transform_name@%$program_transform_name%g
20724s%@bindir@%$bindir%g
20725s%@sbindir@%$sbindir%g
20726s%@libexecdir@%$libexecdir%g
20727s%@datadir@%$datadir%g
20728s%@sysconfdir@%$sysconfdir%g
20729s%@sharedstatedir@%$sharedstatedir%g
20730s%@localstatedir@%$localstatedir%g
20731s%@libdir@%$libdir%g
20732s%@includedir@%$includedir%g
20733s%@oldincludedir@%$oldincludedir%g
20734s%@infodir@%$infodir%g
20735s%@mandir@%$mandir%g
20736s%@host@%$host%g
20737s%@host_alias@%$host_alias%g
20738s%@host_cpu@%$host_cpu%g
20739s%@host_vendor@%$host_vendor%g
20740s%@host_os@%$host_os%g
20741s%@target@%$target%g
20742s%@target_alias@%$target_alias%g
20743s%@target_cpu@%$target_cpu%g
20744s%@target_vendor@%$target_vendor%g
20745s%@target_os@%$target_os%g
20746s%@build@%$build%g
20747s%@build_alias@%$build_alias%g
20748s%@build_cpu@%$build_cpu%g
20749s%@build_vendor@%$build_vendor%g
20750s%@build_os@%$build_os%g
20751s%@CC@%$CC%g
20752s%@CPP@%$CPP%g
20753s%@CXX@%$CXX%g
20754s%@RANLIB@%$RANLIB%g
20755s%@AR@%$AR%g
20756s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
20757s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
20758s%@INSTALL_DATA@%$INSTALL_DATA%g
20759s%@STRIP@%$STRIP%g
20760s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
20761s%@YACC@%$YACC%g
20762s%@LEX@%$LEX%g
20763s%@LEXLIB@%$LEXLIB%g
20764s%@LN_S@%$LN_S%g
20765s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
20766s%@GTK_CFLAGS@%$GTK_CFLAGS%g
20767s%@GTK_LIBS@%$GTK_LIBS%g
20768s%@GTK_CONFIG@%$GTK_CONFIG%g
20769s%@X_CFLAGS@%$X_CFLAGS%g
20770s%@X_PRE_LIBS@%$X_PRE_LIBS%g
20771s%@X_LIBS@%$X_LIBS%g
20772s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
20773s%@RESCOMP@%$RESCOMP%g
20774s%@DEREZ@%$DEREZ%g
20775s%@CXXCPP@%$CXXCPP%g
20776s%@LIBICONV@%$LIBICONV%g
20777s%@LEX_STEM@%$LEX_STEM%g
20778s%@PATH_IFS@%$PATH_IFS%g
20779s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
20780s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
20781s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
20782s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
20783s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
20784s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
20785s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
20786s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
20787s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
20788s%@PROGRAM_EXT@%$PROGRAM_EXT%g
20789s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
20790s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
20791s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
20792s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
20793s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
20794s%@WX_ALL@%$WX_ALL%g
20795s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
20796s%@SHARED_LD@%$SHARED_LD%g
20797s%@PIC_FLAG@%$PIC_FLAG%g
20798s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
20799s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
20800s%@SONAME_FLAGS@%$SONAME_FLAGS%g
20801s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
20802s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
20803s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
20804s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
20805s%@USE_GUI@%$USE_GUI%g
20806s%@AFMINSTALL@%$AFMINSTALL%g
20807s%@TOOLKIT@%$TOOLKIT%g
20808s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
20809s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
20810s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
20811s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
20812s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
20813s%@cross_compiling@%$cross_compiling%g
20814s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
20815s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
20816s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
20817s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
20818s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
20819s%@ALL_OBJECTS@%$ALL_OBJECTS%g
20820s%@ALL_HEADERS@%$ALL_HEADERS%g
20821s%@ALL_SOURCES@%$ALL_SOURCES%g
20822s%@GUIDIST@%$GUIDIST%g
20823s%@PORT_FILES@%$PORT_FILES%g
20824s%@DISTDIR@%$DISTDIR%g
20825s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
20826s%@LDFLAGS_GL@%$LDFLAGS_GL%g
20827s%@OPENGL_LIBS@%$OPENGL_LIBS%g
20828s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
20829s%@EXTRADEFS@%$EXTRADEFS%g
20830s%@RESFLAGS@%$RESFLAGS%g
20831s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
20832s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
20833s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
20834s%@LIBWXMACRES@%$LIBWXMACRES%g
20835s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
20836s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
20837s%@DLLTOOL@%$DLLTOOL%g
20838s%@AS@%$AS%g
20839s%@NM@%$NM%g
20840s%@LD@%$LD%g
20841s%@MAKEINFO@%$MAKEINFO%g
20842s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
20843s%@SET_MAKE@%$SET_MAKE%g
20844s%@subdirs@%$subdirs%g
20845
20846CEOF
20847EOF
20848
20849cat >> $CONFIG_STATUS <<\EOF
20850
20851# Split the substitutions into bite-sized pieces for seds with
20852# small command number limits, like on Digital OSF/1 and HP-UX.
20853ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
20854ac_file=1 # Number of current file.
20855ac_beg=1 # First line for current file.
20856ac_end=$ac_max_sed_cmds # Line after last line for current file.
20857ac_more_lines=:
20858ac_sed_cmds=""
20859while $ac_more_lines; do
20860 if test $ac_beg -gt 1; then
20861 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
20862 else
20863 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
20864 fi
20865 if test ! -s conftest.s$ac_file; then
20866 ac_more_lines=false
20867 rm -f conftest.s$ac_file
20868 else
20869 if test -z "$ac_sed_cmds"; then
20870 ac_sed_cmds="sed -f conftest.s$ac_file"
20871 else
20872 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
20873 fi
20874 ac_file=`expr $ac_file + 1`
20875 ac_beg=$ac_end
20876 ac_end=`expr $ac_end + $ac_max_sed_cmds`
20877 fi
20878done
20879if test -z "$ac_sed_cmds"; then
20880 ac_sed_cmds=cat
20881fi
20882EOF
20883
20884cat >> $CONFIG_STATUS <<EOF
20885
20886CONFIG_FILES=\${CONFIG_FILES-"wx-config
20887 src/make.env
20888 src/makeprog.env
20889 src/makelib.env
20890 Makefile
20891 "}
20892EOF
20893cat >> $CONFIG_STATUS <<\EOF
20894for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
20895 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20896 case "$ac_file" in
20897 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20898 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20899 *) ac_file_in="${ac_file}.in" ;;
20900 esac
20901
20902 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
20903
20904 # Remove last slash and all that follows it. Not all systems have dirname.
20905 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20906 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20907 # The file is in a subdirectory.
20908 test ! -d "$ac_dir" && mkdir "$ac_dir"
20909 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
20910 # A "../" for each directory in $ac_dir_suffix.
20911 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
20912 else
20913 ac_dir_suffix= ac_dots=
20914 fi
20915
20916 case "$ac_given_srcdir" in
20917 .) srcdir=.
20918 if test -z "$ac_dots"; then top_srcdir=.
20919 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
20920 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
20921 *) # Relative path.
20922 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
20923 top_srcdir="$ac_dots$ac_given_srcdir" ;;
20924 esac
20925
20926 case "$ac_given_INSTALL" in
20927 [/$]*) INSTALL="$ac_given_INSTALL" ;;
20928 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
20929 esac
20930
20931 echo creating "$ac_file"
20932 rm -f "$ac_file"
20933 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
20934 case "$ac_file" in
20935 *Makefile*) ac_comsub="1i\\
20936# $configure_input" ;;
20937 *) ac_comsub= ;;
20938 esac
20939
20940 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20941 sed -e "$ac_comsub
20942s%@configure_input@%$configure_input%g
20943s%@srcdir@%$srcdir%g
20944s%@top_srcdir@%$top_srcdir%g
20945s%@INSTALL@%$INSTALL%g
20946" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
20947fi; done
20948rm -f conftest.s*
20949
20950# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20951# NAME is the cpp macro being defined and VALUE is the value it is being given.
20952#
20953# ac_d sets the value in "#define NAME VALUE" lines.
20954ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20955ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
20956ac_dC='\3'
20957ac_dD='%g'
20958# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
20959ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20960ac_uB='\([ ]\)%\1#\2define\3'
20961ac_uC=' '
20962ac_uD='\4%g'
20963# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20964ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20965ac_eB='$%\1#\2define\3'
20966ac_eC=' '
20967ac_eD='%g'
20968
20969if test "${CONFIG_HEADERS+set}" != set; then
20970EOF
20971cat >> $CONFIG_STATUS <<EOF
20972 CONFIG_HEADERS="setup.h:setup.h.in"
20973EOF
20974cat >> $CONFIG_STATUS <<\EOF
20975fi
20976for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
20977 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20978 case "$ac_file" in
20979 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20980 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20981 *) ac_file_in="${ac_file}.in" ;;
20982 esac
20983
20984 echo creating $ac_file
20985
20986 rm -f conftest.frag conftest.in conftest.out
20987 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20988 cat $ac_file_inputs > conftest.in
20989
20990EOF
20991
20992# Transform confdefs.h into a sed script conftest.vals that substitutes
20993# the proper values into config.h.in to produce config.h. And first:
20994# Protect against being on the right side of a sed subst in config.status.
20995# Protect against being in an unquoted here document in config.status.
20996rm -f conftest.vals
20997cat > conftest.hdr <<\EOF
20998s/[\\&%]/\\&/g
20999s%[\\$`]%\\&%g
21000s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21001s%ac_d%ac_u%gp
21002s%ac_u%ac_e%gp
21003EOF
21004sed -n -f conftest.hdr confdefs.h > conftest.vals
21005rm -f conftest.hdr
21006
21007# This sed command replaces #undef with comments. This is necessary, for
21008# example, in the case of _POSIX_SOURCE, which is predefined and required
21009# on some systems where configure will not decide to define it.
21010cat >> conftest.vals <<\EOF
21011s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
21012EOF
21013
21014# Break up conftest.vals because some shells have a limit on
21015# the size of here documents, and old seds have small limits too.
21016
21017rm -f conftest.tail
21018while :
21019do
21020 ac_lines=`grep -c . conftest.vals`
21021 # grep -c gives empty output for an empty file on some AIX systems.
21022 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21023 # Write a limited-size here document to conftest.frag.
21024 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21025 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
21026 echo 'CEOF
21027 sed -f conftest.frag conftest.in > conftest.out
21028 rm -f conftest.in
21029 mv conftest.out conftest.in
21030' >> $CONFIG_STATUS
21031 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21032 rm -f conftest.vals
21033 mv conftest.tail conftest.vals
21034done
21035rm -f conftest.vals
21036
21037cat >> $CONFIG_STATUS <<\EOF
21038 rm -f conftest.frag conftest.h
21039 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
21040 cat conftest.in >> conftest.h
21041 rm -f conftest.in
21042 if cmp -s $ac_file conftest.h 2>/dev/null; then
21043 echo "$ac_file is unchanged"
21044 rm -f conftest.h
21045 else
21046 # Remove last slash and all that follows it. Not all systems have dirname.
21047 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21048 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21049 # The file is in a subdirectory.
21050 test ! -d "$ac_dir" && mkdir "$ac_dir"
21051 fi
21052 rm -f $ac_file
21053 mv conftest.h $ac_file
21054 fi
21055fi; done
21056
21057EOF
21058cat >> $CONFIG_STATUS <<EOF
21059
21060 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
21061 LN_S="${LN_S}"
21062
21063
21064EOF
21065cat >> $CONFIG_STATUS <<\EOF
21066
21067 if test ! -h wx-config; then
21068 chmod +x wx-config
21069 mv wx-config wx${TOOLCHAIN_NAME}-config
21070 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
21071 fi
21072
21073 if test ! -d lib; then
21074 mkdir lib
21075 fi
21076 if test ! -d lib/wx; then
21077 mkdir lib/wx
21078 fi
21079 if test ! -d lib/wx/include; then
21080 mkdir lib/wx/include
21081 fi
21082 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
21083 mkdir lib/wx/include/${TOOLCHAIN_NAME}
21084 fi
21085 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
21086 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
21087 fi
21088 if test -f setup.h; then
21089 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
21090 fi
21091
21092exit 0
21093EOF
21094chmod +x $CONFIG_STATUS
21095rm -fr confdefs* $ac_clean_files
21096test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
21097
21098if test "$no_recursion" != yes; then
21099
21100 # Remove --cache-file and --srcdir arguments so they do not pile up.
21101 ac_sub_configure_args=
21102 ac_prev=
21103 for ac_arg in $ac_configure_args; do
21104 if test -n "$ac_prev"; then
21105 ac_prev=
21106 continue
21107 fi
21108 case "$ac_arg" in
21109 -cache-file | --cache-file | --cache-fil | --cache-fi \
21110 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21111 ac_prev=cache_file ;;
21112 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21113 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
21114 ;;
21115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21116 ac_prev=srcdir ;;
21117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21118 ;;
21119 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
21120 esac
21121 done
21122
21123 for ac_config_dir in demos samples utils contrib; do
21124
21125 # Do not complain, so a configure script can configure whichever
21126 # parts of a large source tree are present.
21127 if test ! -d $srcdir/$ac_config_dir; then
21128 continue
21129 fi
21130
21131 echo configuring in $ac_config_dir
21132
21133 case "$srcdir" in
21134 .) ;;
21135 *)
21136 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
21137 else
21138 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
21139 fi
21140 ;;
21141 esac
21142
21143 ac_popdir=`pwd`
21144 cd $ac_config_dir
21145
21146 # A "../" for each directory in /$ac_config_dir.
21147 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
21148
21149 case "$srcdir" in
21150 .) # No --srcdir option. We are building in place.
21151 ac_sub_srcdir=$srcdir ;;
21152 /*) # Absolute path.
21153 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
21154 *) # Relative path.
21155 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
21156 esac
21157
21158 # Check for guested configure; otherwise get Cygnus style configure.
21159 if test -f $ac_sub_srcdir/configure; then
21160 ac_sub_configure=$ac_sub_srcdir/configure
21161 elif test -f $ac_sub_srcdir/configure.in; then
21162 ac_sub_configure=$ac_configure
21163 else
21164 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
21165 ac_sub_configure=
21166 fi
21167
21168 # The recursion is here.
21169 if test -n "$ac_sub_configure"; then
21170
21171 # Make the cache file name correct relative to the subdirectory.
21172 case "$cache_file" in
21173 /*) ac_sub_cache_file=$cache_file ;;
21174 *) # Relative path.
21175 ac_sub_cache_file="$ac_dots$cache_file" ;;
21176 esac
21177 case "$ac_given_INSTALL" in
21178 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21179 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21180 esac
21181
21182 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
21183 # The eval makes quoting arguments work.
21184 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21185 then :
21186 else
21187 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21188 fi
21189 fi
21190
21191 cd $ac_popdir
21192 done
21193fi
21194
21195