]> git.saurik.com Git - wxWidgets.git/blame_incremental - configure
Fix border for wxGTK too
[wxWidgets.git] / configure
... / ...
CommitLineData
1#! /bin/sh
2
3# From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62# Configure paths for GTK+
63# Owen Taylor 1997-2001
64
65
66
67# Configure paths for GTK+
68# Owen Taylor 97-11-3
69
70
71
72
73
74
75
76
77# Guess values for system-dependent variables and create Makefiles.
78# Generated automatically using autoconf version 2.13
79# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
80#
81# This configure script is free software; the Free Software Foundation
82# gives unlimited permission to copy, distribute and modify it.
83
84# Defaults:
85ac_help=
86ac_default_prefix=/usr/local
87# Any additions from configure.in:
88ac_help="$ac_help
89 --enable-gui use GUI classes"
90ac_help="$ac_help
91 --enable-universal use wxWindows GUI controls instead of native ones"
92ac_help="$ac_help
93 --with-gtk use GTK+"
94ac_help="$ac_help
95 --with-motif use Motif/Lesstif"
96ac_help="$ac_help
97 --with-mac use Mac OS X"
98ac_help="$ac_help
99 --with-wine use WINE"
100ac_help="$ac_help
101 --with-msw use MS-Windows"
102ac_help="$ac_help
103 --with-pm use OS/2 Presentation Manager"
104ac_help="$ac_help
105 --with-mgl use SciTech MGL"
106ac_help="$ac_help
107 --with-microwin use MicroWindows"
108ac_help="$ac_help
109 --with-x11 use X11"
110ac_help="$ac_help
111 --enable-nanox use NanoX"
112ac_help="$ac_help
113 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
114ac_help="$ac_help
115 --with-libpng use libpng (PNG image format)"
116ac_help="$ac_help
117 --with-libjpeg use libjpeg (JPEG file format)"
118ac_help="$ac_help
119 --with-libtiff use libtiff (TIFF file format)"
120ac_help="$ac_help
121 --with-opengl use OpenGL (or Mesa)"
122ac_help="$ac_help
123 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
124ac_help="$ac_help
125 --with-regex enable support for wxRegEx class"
126ac_help="$ac_help
127 --with-zlib use zlib for LZW compression"
128ac_help="$ac_help
129 --with-odbc use the IODBC and wxODBC classes"
130ac_help="$ac_help
131 --enable-shared create shared library code"
132ac_help="$ac_help
133 --enable-soname set the DT_SONAME field in ELF shared libraries"
134ac_help="$ac_help
135 --enable-optimise create optimised code"
136ac_help="$ac_help
137 --enable-debug same as debug_flag and debug_info"
138ac_help="$ac_help
139 --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)"
140ac_help="$ac_help
141 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
142ac_help="$ac_help
143 --enable-debug_info create code with debugging information"
144ac_help="$ac_help
145 --enable-debug_gdb create code with extra GDB debugging information"
146ac_help="$ac_help
147 --enable-debug_cntxt use wxDebugContext"
148ac_help="$ac_help
149 --enable-mem_tracing create code with memory tracing"
150ac_help="$ac_help
151 --enable-profile create code with profiling information"
152ac_help="$ac_help
153 --enable-no_rtti create code without RTTI information"
154ac_help="$ac_help
155 --enable-no_exceptions create code without C++ exceptions handling"
156ac_help="$ac_help
157 --enable-permissive compile code disregarding strict ANSI"
158ac_help="$ac_help
159 --enable-no_deps create code without dependency information"
160ac_help="$ac_help
161 --enable-compat20 enable wxWindows 2.0 compatibility"
162ac_help="$ac_help
163 --disable-compat22 disable wxWindows 2.2 compatibility"
164ac_help="$ac_help
165 --enable-rpath=DIR output the rpath flag from wx-config"
166ac_help="$ac_help
167 --enable-intl use internationalization system"
168ac_help="$ac_help
169 --enable-config use wxConfig (and derived) classes"
170ac_help="$ac_help
171 --enable-protocols use wxProtocol and derived classes"
172ac_help="$ac_help
173 --enable-ftp use wxFTP (requires wxProtocol"
174ac_help="$ac_help
175 --enable-http use wxHTTP (requires wxProtocol"
176ac_help="$ac_help
177 --enable-fileproto use wxFileProto class (requires wxProtocol"
178ac_help="$ac_help
179 --enable-sockets use socket/network classes"
180ac_help="$ac_help
181 --enable-ole use OLE classes"
182ac_help="$ac_help
183 --enable-dataobj use data object classes"
184ac_help="$ac_help
185 --enable-ipc use interprocess communication (wxSocket etc.)"
186ac_help="$ac_help
187 --enable-cmdline use wxCmdLineParser class"
188ac_help="$ac_help
189 --enable-datetime use wxDateTime class"
190ac_help="$ac_help
191 --enable-timedate use obsolete wxDate/wxTime classes"
192ac_help="$ac_help
193 --enable-stopwatch use wxStopWatch class"
194ac_help="$ac_help
195 --enable-dialupman use dialup network classes"
196ac_help="$ac_help
197 --enable-apple_ieee use the Apple IEEE codec"
198ac_help="$ac_help
199 --enable-timer use wxTimer class"
200ac_help="$ac_help
201 --enable-wave use wxWave class"
202ac_help="$ac_help
203 --enable-fraction use wxFraction class"
204ac_help="$ac_help
205 --enable-dynlib use wxLibrary class for DLL loading"
206ac_help="$ac_help
207 --enable-dynamicloader use (new) wxDynamicLibrary class"
208ac_help="$ac_help
209 --enable-longlong use wxLongLong class"
210ac_help="$ac_help
211 --enable-geometry use geometry class"
212ac_help="$ac_help
213 --enable-log use logging system"
214ac_help="$ac_help
215 --enable-streams use wxStream etc classes"
216ac_help="$ac_help
217 --enable-file use wxFile classes"
218ac_help="$ac_help
219 --enable-ffile use wxFFile classes"
220ac_help="$ac_help
221 --enable-textbuf use wxTextBuffer class"
222ac_help="$ac_help
223 --enable-textfile use wxTextFile class"
224ac_help="$ac_help
225 --enable-fontmap use font encodings conversion classes"
226ac_help="$ac_help
227 --enable-unicode compile wxString with Unicode support"
228ac_help="$ac_help
229 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
230ac_help="$ac_help
231 --enable-wxprintfv use wxWindows implementation of vprintf()"
232ac_help="$ac_help
233 --enable-std_iostreams use standard C++ stream classes"
234ac_help="$ac_help
235 --enable-filesystem use virtual file systems classes"
236ac_help="$ac_help
237 --enable-fs_inet use virtual HTTP/FTP filesystems"
238ac_help="$ac_help
239 --enable-fs_zip use virtual ZIP filesystems"
240ac_help="$ac_help
241 --enable-zipstream use wxZipInputStream"
242ac_help="$ac_help
243 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
244ac_help="$ac_help
245 --enable-snglinst use wxSingleInstanceChecker class"
246ac_help="$ac_help
247 --enable-mimetype use wxMimeTypesManager"
248ac_help="$ac_help
249 --enable-sysoptions use wxSystemOptions"
250ac_help="$ac_help
251 --enable-url use wxURL class"
252ac_help="$ac_help
253 --enable-protocol use wxProtocol class"
254ac_help="$ac_help
255 --enable-protocol-http HTTP support in wxProtocol"
256ac_help="$ac_help
257 --enable-protocol-ftp FTP support in wxProtocol"
258ac_help="$ac_help
259 --enable-protocol-file FILE support in wxProtocol"
260ac_help="$ac_help
261 --enable-threads use threads"
262ac_help="$ac_help
263 --enable-docview use document view architecture"
264ac_help="$ac_help
265 --enable-help use help subsystem"
266ac_help="$ac_help
267 --enable-mshtmlhelp use MS HTML Help (win32)"
268ac_help="$ac_help
269 --enable-html use wxHTML sub-library"
270ac_help="$ac_help
271 --enable-htmlhelp use wxHTML-based help"
272ac_help="$ac_help
273 --enable-constraints use layout-constraints system"
274ac_help="$ac_help
275 --enable-printarch use printing architecture"
276ac_help="$ac_help
277 --enable-mdi use multiple document interface architecture"
278ac_help="$ac_help
279 --enable-loggui use standard GUI logger"
280ac_help="$ac_help
281 --enable-logwin use wxLogWindow"
282ac_help="$ac_help
283 --enable-logdialog use wxLogDialog"
284ac_help="$ac_help
285 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
286ac_help="$ac_help
287 --enable-prologio use Prolog IO library"
288ac_help="$ac_help
289 --enable-resources use wxWindows resources"
290ac_help="$ac_help
291 --enable-xresources use X resources for save (default for gtk+)"
292ac_help="$ac_help
293 --enable-clipboard use wxClipboard classes"
294ac_help="$ac_help
295 --enable-dnd use Drag'n'Drop classes"
296ac_help="$ac_help
297 --enable-metafile use win32 metafiles"
298ac_help="$ac_help
299 --enable-treelayout use wxTreeLayout classes"
300ac_help="$ac_help
301 --enable-controls use all usual controls"
302ac_help="$ac_help
303 --enable-accel use accelerators"
304ac_help="$ac_help
305 --enable-button use wxButton class"
306ac_help="$ac_help
307 --enable-bmpbutton use wxBitmapButton class"
308ac_help="$ac_help
309 --enable-calendar use wxCalendarCtrl class"
310ac_help="$ac_help
311 --enable-caret use wxCaret class"
312ac_help="$ac_help
313 --enable-checkbox use wxCheckBox class"
314ac_help="$ac_help
315 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
316ac_help="$ac_help
317 --enable-choice use wxChoice class"
318ac_help="$ac_help
319 --enable-combobox use wxComboBox classes"
320ac_help="$ac_help
321 --enable-gauge use wxGauge class"
322ac_help="$ac_help
323 --enable-grid use wxGrid class"
324ac_help="$ac_help
325 --enable-newgrid use new wxGrid class"
326ac_help="$ac_help
327 --enable-imaglist use wxImageList class"
328ac_help="$ac_help
329 --enable-listbox use wxListBox class"
330ac_help="$ac_help
331 --enable-listctrl use wxListCtrl class"
332ac_help="$ac_help
333 --enable-notebook use wxNotebook class"
334ac_help="$ac_help
335 --enable-propsheet use wxPropertySheet class"
336ac_help="$ac_help
337 --enable-radiobox use wxRadioBox class"
338ac_help="$ac_help
339 --enable-radiobtn use wxRadioButton class"
340ac_help="$ac_help
341 --enable-sash use wxSashWindow class"
342ac_help="$ac_help
343 --enable-scrollbar use wxScrollBar class and scrollable windows"
344ac_help="$ac_help
345 --enable-slider use wxSlider class"
346ac_help="$ac_help
347 --enable-spinbtn use wxSpinButton class"
348ac_help="$ac_help
349 --enable-spinctrl use wxSpinCtrl class"
350ac_help="$ac_help
351 --enable-splitter use wxSplitterWindow class"
352ac_help="$ac_help
353 --enable-statbmp use wxStaticBitmap class"
354ac_help="$ac_help
355 --enable-statbox use wxStaticBox class"
356ac_help="$ac_help
357 --enable-statline use wxStaticLine class"
358ac_help="$ac_help
359 --enable-stattext use wxStaticText class"
360ac_help="$ac_help
361 --enable-statusbar use wxStatusBar class"
362ac_help="$ac_help
363 --enable-tabdialog use wxTabControl class"
364ac_help="$ac_help
365 --enable-textctrl use wxTextCtrl class"
366ac_help="$ac_help
367 --enable-togglebtn use wxToggleButton class"
368ac_help="$ac_help
369 --enable-toolbar use wxToolBar class"
370ac_help="$ac_help
371 --enable-tbarnative use native wxToolBar class"
372ac_help="$ac_help
373 --enable-tbarsmpl use wxToolBarSimple class"
374ac_help="$ac_help
375 --enable-treectrl use wxTreeCtrl class"
376ac_help="$ac_help
377 --enable-tipwindow use wxTipWindow class"
378ac_help="$ac_help
379 --enable-popupwin use wxPopUpWindow class"
380ac_help="$ac_help
381 --enable-commondlg use all common dialogs"
382ac_help="$ac_help
383 --enable-choicedlg use wxChoiceDialog"
384ac_help="$ac_help
385 --enable-coldlg use wxColourDialog"
386ac_help="$ac_help
387 --enable-filedlg use wxFileDialog"
388ac_help="$ac_help
389 --enable-finddlg use wxFindReplaceDialog"
390ac_help="$ac_help
391 --enable-fontdlg use wxFontDialog"
392ac_help="$ac_help
393 --enable-dirdlg use wxDirDialog"
394ac_help="$ac_help
395 --enable-msgdlg use wxMessageDialog"
396ac_help="$ac_help
397 --enable-numberdlg use wxNumberEntryDialog"
398ac_help="$ac_help
399 --enable-splash use wxSplashScreen"
400ac_help="$ac_help
401 --enable-textdlg use wxTextDialog"
402ac_help="$ac_help
403 --enable-tipdlg use startup tips"
404ac_help="$ac_help
405 --enable-progressdlg use wxProgressDialog"
406ac_help="$ac_help
407 --enable-wizarddlg use wxWizard"
408ac_help="$ac_help
409 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
410ac_help="$ac_help
411 --enable-miniframe use wxMiniFrame class"
412ac_help="$ac_help
413 --enable-tooltips use wxToolTip class"
414ac_help="$ac_help
415 --enable-splines use spline drawing code"
416ac_help="$ac_help
417 --enable-validators use wxValidator and derived classes"
418ac_help="$ac_help
419 --enable-busyinfo use wxBusyInfo"
420ac_help="$ac_help
421 --enable-joystick use wxJoystick (Linux only)"
422ac_help="$ac_help
423 --enable-metafiles use wxMetaFile (Windows only)"
424ac_help="$ac_help
425 --enable-dragimage use wxDragImage"
426ac_help="$ac_help
427 --enable-palette use wxPalette class"
428ac_help="$ac_help
429 --enable-image use wxImage class"
430ac_help="$ac_help
431 --enable-gif use gif images (GIF file format)"
432ac_help="$ac_help
433 --enable-pcx use pcx images (PCX file format)"
434ac_help="$ac_help
435 --enable-iff use iff images (IFF file format)"
436ac_help="$ac_help
437 --enable-pnm use pnm images (PNM file format)"
438ac_help="$ac_help
439 --enable-xpm use xpm images (XPM file format)"
440ac_help="$ac_help
441 --enable-icocur use Windows ICO and CUR formats"
442ac_help="$ac_help
443 --disable-largefile omit support for large files"
444ac_help="$ac_help
445 --disable-gtktest do not try to compile and run a test GTK+ program"
446ac_help="$ac_help
447 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
448ac_help="$ac_help
449 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
450ac_help="$ac_help
451 --disable-gtktest Do not try to compile and run a test GTK program"
452ac_help="$ac_help
453 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
454ac_help="$ac_help
455 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
456ac_help="$ac_help
457 --disable-gtktest Do not try to compile and run a test GTK program"
458ac_help="$ac_help
459 --with-x use the X Window System"
460ac_help="$ac_help
461 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
462
463# Initialize some variables set by options.
464# The variables have the same names as the options, with
465# dashes changed to underlines.
466build=NONE
467cache_file=./config.cache
468exec_prefix=NONE
469host=NONE
470no_create=
471nonopt=NONE
472no_recursion=
473prefix=NONE
474program_prefix=NONE
475program_suffix=NONE
476program_transform_name=s,x,x,
477silent=
478site=
479srcdir=
480target=NONE
481verbose=
482x_includes=NONE
483x_libraries=NONE
484bindir='${exec_prefix}/bin'
485sbindir='${exec_prefix}/sbin'
486libexecdir='${exec_prefix}/libexec'
487datadir='${prefix}/share'
488sysconfdir='${prefix}/etc'
489sharedstatedir='${prefix}/com'
490localstatedir='${prefix}/var'
491libdir='${exec_prefix}/lib'
492includedir='${prefix}/include'
493oldincludedir='/usr/include'
494infodir='${prefix}/info'
495mandir='${prefix}/man'
496
497# Initialize some other variables.
498subdirs=
499MFLAGS= MAKEFLAGS=
500SHELL=${CONFIG_SHELL-/bin/sh}
501# Maximum number of lines to put in a shell here document.
502ac_max_here_lines=12
503
504ac_prev=
505for ac_option
506do
507
508 # If the previous option needs an argument, assign it.
509 if test -n "$ac_prev"; then
510 eval "$ac_prev=\$ac_option"
511 ac_prev=
512 continue
513 fi
514
515 case "$ac_option" in
516 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
517 *) ac_optarg= ;;
518 esac
519
520 # Accept the important Cygnus configure options, so we can diagnose typos.
521
522 case "$ac_option" in
523
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 ac_prev=bindir ;;
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527 bindir="$ac_optarg" ;;
528
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build="$ac_optarg" ;;
533
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file="$ac_optarg" ;;
540
541 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
542 ac_prev=datadir ;;
543 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
544 | --da=*)
545 datadir="$ac_optarg" ;;
546
547 -disable-* | --disable-*)
548 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
549 # Reject names that are not valid shell variable names.
550 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
551 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
552 fi
553 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
554 eval "enable_${ac_feature}=no" ;;
555
556 -enable-* | --enable-*)
557 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
558 # Reject names that are not valid shell variable names.
559 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
560 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
561 fi
562 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
563 case "$ac_option" in
564 *=*) ;;
565 *) ac_optarg=yes ;;
566 esac
567 eval "enable_${ac_feature}='$ac_optarg'" ;;
568
569 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
570 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
571 | --exec | --exe | --ex)
572 ac_prev=exec_prefix ;;
573 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
574 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
575 | --exec=* | --exe=* | --ex=*)
576 exec_prefix="$ac_optarg" ;;
577
578 -gas | --gas | --ga | --g)
579 # Obsolete; use --with-gas.
580 with_gas=yes ;;
581
582 -help | --help | --hel | --he)
583 # Omit some internal or obsolete options to make the list less imposing.
584 # This message is too long to be a string in the A/UX 3.1 sh.
585 cat << EOF
586Usage: configure [options] [host]
587Options: [defaults in brackets after descriptions]
588Configuration:
589 --cache-file=FILE cache test results in FILE
590 --help print this message
591 --no-create do not create output files
592 --quiet, --silent do not print \`checking...' messages
593 --version print the version of autoconf that created configure
594Directory and file names:
595 --prefix=PREFIX install architecture-independent files in PREFIX
596 [$ac_default_prefix]
597 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
598 [same as prefix]
599 --bindir=DIR user executables in DIR [EPREFIX/bin]
600 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
601 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
602 --datadir=DIR read-only architecture-independent data in DIR
603 [PREFIX/share]
604 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
605 --sharedstatedir=DIR modifiable architecture-independent data in DIR
606 [PREFIX/com]
607 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
608 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
609 --includedir=DIR C header files in DIR [PREFIX/include]
610 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
611 --infodir=DIR info documentation in DIR [PREFIX/info]
612 --mandir=DIR man documentation in DIR [PREFIX/man]
613 --srcdir=DIR find the sources in DIR [configure dir or ..]
614 --program-prefix=PREFIX prepend PREFIX to installed program names
615 --program-suffix=SUFFIX append SUFFIX to installed program names
616 --program-transform-name=PROGRAM
617 run sed PROGRAM on installed program names
618EOF
619 cat << EOF
620Host type:
621 --build=BUILD configure for building on BUILD [BUILD=HOST]
622 --host=HOST configure for HOST [guessed]
623 --target=TARGET configure for TARGET [TARGET=HOST]
624Features and packages:
625 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
626 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
627 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
628 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
629 --x-includes=DIR X include files are in DIR
630 --x-libraries=DIR X library files are in DIR
631EOF
632 if test -n "$ac_help"; then
633 echo "--enable and --with options recognized:$ac_help"
634 fi
635 exit 0 ;;
636
637 -host | --host | --hos | --ho)
638 ac_prev=host ;;
639 -host=* | --host=* | --hos=* | --ho=*)
640 host="$ac_optarg" ;;
641
642 -includedir | --includedir | --includedi | --included | --include \
643 | --includ | --inclu | --incl | --inc)
644 ac_prev=includedir ;;
645 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
646 | --includ=* | --inclu=* | --incl=* | --inc=*)
647 includedir="$ac_optarg" ;;
648
649 -infodir | --infodir | --infodi | --infod | --info | --inf)
650 ac_prev=infodir ;;
651 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
652 infodir="$ac_optarg" ;;
653
654 -libdir | --libdir | --libdi | --libd)
655 ac_prev=libdir ;;
656 -libdir=* | --libdir=* | --libdi=* | --libd=*)
657 libdir="$ac_optarg" ;;
658
659 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
660 | --libexe | --libex | --libe)
661 ac_prev=libexecdir ;;
662 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
663 | --libexe=* | --libex=* | --libe=*)
664 libexecdir="$ac_optarg" ;;
665
666 -localstatedir | --localstatedir | --localstatedi | --localstated \
667 | --localstate | --localstat | --localsta | --localst \
668 | --locals | --local | --loca | --loc | --lo)
669 ac_prev=localstatedir ;;
670 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
671 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
672 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
673 localstatedir="$ac_optarg" ;;
674
675 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
676 ac_prev=mandir ;;
677 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
678 mandir="$ac_optarg" ;;
679
680 -nfp | --nfp | --nf)
681 # Obsolete; use --without-fp.
682 with_fp=no ;;
683
684 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
685 | --no-cr | --no-c)
686 no_create=yes ;;
687
688 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
689 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
690 no_recursion=yes ;;
691
692 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
693 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
694 | --oldin | --oldi | --old | --ol | --o)
695 ac_prev=oldincludedir ;;
696 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
697 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
698 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
699 oldincludedir="$ac_optarg" ;;
700
701 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
702 ac_prev=prefix ;;
703 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
704 prefix="$ac_optarg" ;;
705
706 -program-prefix | --program-prefix | --program-prefi | --program-pref \
707 | --program-pre | --program-pr | --program-p)
708 ac_prev=program_prefix ;;
709 -program-prefix=* | --program-prefix=* | --program-prefi=* \
710 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
711 program_prefix="$ac_optarg" ;;
712
713 -program-suffix | --program-suffix | --program-suffi | --program-suff \
714 | --program-suf | --program-su | --program-s)
715 ac_prev=program_suffix ;;
716 -program-suffix=* | --program-suffix=* | --program-suffi=* \
717 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
718 program_suffix="$ac_optarg" ;;
719
720 -program-transform-name | --program-transform-name \
721 | --program-transform-nam | --program-transform-na \
722 | --program-transform-n | --program-transform- \
723 | --program-transform | --program-transfor \
724 | --program-transfo | --program-transf \
725 | --program-trans | --program-tran \
726 | --progr-tra | --program-tr | --program-t)
727 ac_prev=program_transform_name ;;
728 -program-transform-name=* | --program-transform-name=* \
729 | --program-transform-nam=* | --program-transform-na=* \
730 | --program-transform-n=* | --program-transform-=* \
731 | --program-transform=* | --program-transfor=* \
732 | --program-transfo=* | --program-transf=* \
733 | --program-trans=* | --program-tran=* \
734 | --progr-tra=* | --program-tr=* | --program-t=*)
735 program_transform_name="$ac_optarg" ;;
736
737 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
738 | -silent | --silent | --silen | --sile | --sil)
739 silent=yes ;;
740
741 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
742 ac_prev=sbindir ;;
743 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
744 | --sbi=* | --sb=*)
745 sbindir="$ac_optarg" ;;
746
747 -sharedstatedir | --sharedstatedir | --sharedstatedi \
748 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
749 | --sharedst | --shareds | --shared | --share | --shar \
750 | --sha | --sh)
751 ac_prev=sharedstatedir ;;
752 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
753 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
754 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
755 | --sha=* | --sh=*)
756 sharedstatedir="$ac_optarg" ;;
757
758 -site | --site | --sit)
759 ac_prev=site ;;
760 -site=* | --site=* | --sit=*)
761 site="$ac_optarg" ;;
762
763 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
764 ac_prev=srcdir ;;
765 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
766 srcdir="$ac_optarg" ;;
767
768 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
769 | --syscon | --sysco | --sysc | --sys | --sy)
770 ac_prev=sysconfdir ;;
771 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
772 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
773 sysconfdir="$ac_optarg" ;;
774
775 -target | --target | --targe | --targ | --tar | --ta | --t)
776 ac_prev=target ;;
777 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
778 target="$ac_optarg" ;;
779
780 -v | -verbose | --verbose | --verbos | --verbo | --verb)
781 verbose=yes ;;
782
783 -version | --version | --versio | --versi | --vers)
784 echo "configure generated by autoconf version 2.13"
785 exit 0 ;;
786
787 -with-* | --with-*)
788 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
789 # Reject names that are not valid shell variable names.
790 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
791 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
792 fi
793 ac_package=`echo $ac_package| sed 's/-/_/g'`
794 case "$ac_option" in
795 *=*) ;;
796 *) ac_optarg=yes ;;
797 esac
798 eval "with_${ac_package}='$ac_optarg'" ;;
799
800 -without-* | --without-*)
801 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
802 # Reject names that are not valid shell variable names.
803 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
804 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
805 fi
806 ac_package=`echo $ac_package| sed 's/-/_/g'`
807 eval "with_${ac_package}=no" ;;
808
809 --x)
810 # Obsolete; use --with-x.
811 with_x=yes ;;
812
813 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
814 | --x-incl | --x-inc | --x-in | --x-i)
815 ac_prev=x_includes ;;
816 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
817 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
818 x_includes="$ac_optarg" ;;
819
820 -x-libraries | --x-libraries | --x-librarie | --x-librari \
821 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
822 ac_prev=x_libraries ;;
823 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
824 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
825 x_libraries="$ac_optarg" ;;
826
827 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
828 ;;
829
830 *)
831 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
832 echo "configure: warning: $ac_option: invalid host type" 1>&2
833 fi
834 if test "x$nonopt" != xNONE; then
835 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
836 fi
837 nonopt="$ac_option"
838 ;;
839
840 esac
841done
842
843if test -n "$ac_prev"; then
844 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
845fi
846
847trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
848
849# File descriptor usage:
850# 0 standard input
851# 1 file creation
852# 2 errors and warnings
853# 3 some systems may open it to /dev/tty
854# 4 used on the Kubota Titan
855# 6 checking for... messages and results
856# 5 compiler messages saved in config.log
857if test "$silent" = yes; then
858 exec 6>/dev/null
859else
860 exec 6>&1
861fi
862exec 5>./config.log
863
864echo "\
865This file contains any messages produced by compilers while
866running configure, to aid debugging if configure makes a mistake.
867" 1>&5
868
869# Strip out --no-create and --no-recursion so they do not pile up.
870# Also quote any args containing shell metacharacters.
871ac_configure_args=
872for ac_arg
873do
874 case "$ac_arg" in
875 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
876 | --no-cr | --no-c) ;;
877 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
878 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
879 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
880 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
881 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
882 esac
883done
884
885# NLS nuisances.
886# Only set these to C if already set. These must not be set unconditionally
887# because not all systems understand e.g. LANG=C (notably SCO).
888# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
889# Non-C LC_CTYPE values break the ctype check.
890if test "${LANG+set}" = set; then LANG=C; export LANG; fi
891if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
892if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
893if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
894
895# confdefs.h avoids OS command line length limits that DEFS can exceed.
896rm -rf conftest* confdefs.h
897# AIX cpp loses on an empty file, so make sure it contains at least a newline.
898echo > confdefs.h
899
900# A filename unique to this package, relative to the directory that
901# configure is in, which we can look for to find out if srcdir is correct.
902ac_unique_file=wx-config.in
903
904# Find the source files, if location was not specified.
905if test -z "$srcdir"; then
906 ac_srcdir_defaulted=yes
907 # Try the directory containing this script, then its parent.
908 ac_prog=$0
909 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
910 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
911 srcdir=$ac_confdir
912 if test ! -r $srcdir/$ac_unique_file; then
913 srcdir=..
914 fi
915else
916 ac_srcdir_defaulted=no
917fi
918if test ! -r $srcdir/$ac_unique_file; then
919 if test "$ac_srcdir_defaulted" = yes; then
920 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
921 else
922 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
923 fi
924fi
925srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
926
927# Prefer explicitly selected file to automatically selected ones.
928if test -z "$CONFIG_SITE"; then
929 if test "x$prefix" != xNONE; then
930 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
931 else
932 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
933 fi
934fi
935for ac_site_file in $CONFIG_SITE; do
936 if test -r "$ac_site_file"; then
937 echo "loading site script $ac_site_file"
938 . "$ac_site_file"
939 fi
940done
941
942if test -r "$cache_file"; then
943 echo "loading cache $cache_file"
944 . $cache_file
945else
946 echo "creating cache $cache_file"
947 > $cache_file
948fi
949
950ac_ext=c
951# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
952ac_cpp='$CPP $CPPFLAGS'
953ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
954ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
955cross_compiling=$ac_cv_prog_cc_cross
956
957ac_exeext=
958ac_objext=o
959if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
960 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
961 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
962 ac_n= ac_c='
963' ac_t=' '
964 else
965 ac_n=-n ac_c= ac_t=
966 fi
967else
968 ac_n= ac_c='\c' ac_t=
969fi
970
971
972
973ac_aux_dir=
974for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
975 if test -f $ac_dir/install-sh; then
976 ac_aux_dir=$ac_dir
977 ac_install_sh="$ac_aux_dir/install-sh -c"
978 break
979 elif test -f $ac_dir/install.sh; then
980 ac_aux_dir=$ac_dir
981 ac_install_sh="$ac_aux_dir/install.sh -c"
982 break
983 fi
984done
985if test -z "$ac_aux_dir"; then
986 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
987fi
988ac_config_guess=$ac_aux_dir/config.guess
989ac_config_sub=$ac_aux_dir/config.sub
990ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
991
992
993# Do some error checking and defaulting for the host and target type.
994# The inputs are:
995# configure --host=HOST --target=TARGET --build=BUILD NONOPT
996#
997# The rules are:
998# 1. You are not allowed to specify --host, --target, and nonopt at the
999# same time.
1000# 2. Host defaults to nonopt.
1001# 3. If nonopt is not specified, then host defaults to the current host,
1002# as determined by config.guess.
1003# 4. Target and build default to nonopt.
1004# 5. If nonopt is not specified, then target and build default to host.
1005
1006# The aliases save the names the user supplied, while $host etc.
1007# will get canonicalized.
1008case $host---$target---$nonopt in
1009NONE---*---* | *---NONE---* | *---*---NONE) ;;
1010*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1011esac
1012
1013
1014# Make sure we can run config.sub.
1015if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1016else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1017fi
1018
1019echo $ac_n "checking host system type""... $ac_c" 1>&6
1020echo "configure:1021: checking host system type" >&5
1021
1022host_alias=$host
1023case "$host_alias" in
1024NONE)
1025 case $nonopt in
1026 NONE)
1027 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1028 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1029 fi ;;
1030 *) host_alias=$nonopt ;;
1031 esac ;;
1032esac
1033
1034host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1035host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1036host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1037host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1038echo "$ac_t""$host" 1>&6
1039
1040echo $ac_n "checking target system type""... $ac_c" 1>&6
1041echo "configure:1042: checking target system type" >&5
1042
1043target_alias=$target
1044case "$target_alias" in
1045NONE)
1046 case $nonopt in
1047 NONE) target_alias=$host_alias ;;
1048 *) target_alias=$nonopt ;;
1049 esac ;;
1050esac
1051
1052target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1053target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1054target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1055target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1056echo "$ac_t""$target" 1>&6
1057
1058echo $ac_n "checking build system type""... $ac_c" 1>&6
1059echo "configure:1060: checking build system type" >&5
1060
1061build_alias=$build
1062case "$build_alias" in
1063NONE)
1064 case $nonopt in
1065 NONE) build_alias=$host_alias ;;
1066 *) build_alias=$nonopt ;;
1067 esac ;;
1068esac
1069
1070build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1071build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1072build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1073build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1074echo "$ac_t""$build" 1>&6
1075
1076test "$host_alias" != "$target_alias" &&
1077 test "$program_prefix$program_suffix$program_transform_name" = \
1078 NONENONEs,x,x, &&
1079 program_prefix=${target_alias}-
1080
1081
1082
1083WX_MAJOR_VERSION_NUMBER=2
1084WX_MINOR_VERSION_NUMBER=5
1085WX_RELEASE_NUMBER=0
1086
1087WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1088WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1089
1090WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1091
1092WX_CURRENT=0
1093WX_REVISION=0
1094WX_AGE=0
1095
1096
1097
1098USE_UNIX=1
1099USE_WIN32=0
1100USE_DOS=0
1101USE_BEOS=0
1102USE_MAC=0
1103
1104USE_LINUX=
1105USE_SGI=
1106USE_HPUX=
1107USE_SYSV=
1108USE_SVR4=
1109USE_AIX=
1110USE_SUN=
1111USE_SOLARIS=
1112USE_SUNOS=
1113USE_ALPHA=
1114USE_OSF=
1115USE_BSD=
1116USE_DARWIN=
1117USE_FREEBSD=
1118USE_OPENBSD=
1119USE_NETBSD=
1120USE_VMS=
1121USE_ULTRIX=
1122USE_DATA_GENERAL=
1123
1124NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1125
1126ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
1127
1128DEFAULT_wxUSE_GTK=0
1129DEFAULT_wxUSE_MAC=0
1130DEFAULT_wxUSE_MGL=0
1131DEFAULT_wxUSE_MICROWIN=0
1132DEFAULT_wxUSE_MOTIF=0
1133DEFAULT_wxUSE_MSW=0
1134DEFAULT_wxUSE_PM=0
1135DEFAULT_wxUSE_WINE=0
1136DEFAULT_wxUSE_X11=0
1137
1138DEFAULT_DEFAULT_wxUSE_GTK=0
1139DEFAULT_DEFAULT_wxUSE_MAC=0
1140DEFAULT_DEFAULT_wxUSE_MGL=0
1141DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1142DEFAULT_DEFAULT_wxUSE_MOTIF=0
1143DEFAULT_DEFAULT_wxUSE_MSW=0
1144DEFAULT_DEFAULT_wxUSE_PM=0
1145DEFAULT_DEFAULT_wxUSE_WINE=0
1146DEFAULT_DEFAULT_wxUSE_X11=0
1147
1148PROGRAM_EXT=
1149SO_SUFFIX=so
1150
1151case "${host}" in
1152 *-hp-hpux* )
1153 USE_HPUX=1
1154 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1155 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1156 SO_SUFFIX=sl
1157 cat >> confdefs.h <<\EOF
1158#define __HPUX__ 1
1159EOF
1160
1161 ;;
1162 *-*-linux* )
1163 USE_LINUX=1
1164 cat >> confdefs.h <<\EOF
1165#define __LINUX__ 1
1166EOF
1167
1168 TMP=`uname -m`
1169 if test "x$TMP" = "xalpha"; then
1170 USE_ALPHA=1
1171 cat >> confdefs.h <<\EOF
1172#define __ALPHA__ 1
1173EOF
1174
1175 fi
1176 DEFAULT_DEFAULT_wxUSE_GTK=1
1177 ;;
1178 *-*-irix5* | *-*-irix6* )
1179 USE_SGI=1
1180 USE_SVR4=1
1181 cat >> confdefs.h <<\EOF
1182#define __SGI__ 1
1183EOF
1184
1185 cat >> confdefs.h <<\EOF
1186#define __SVR4__ 1
1187EOF
1188
1189 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1190 ;;
1191 *-*-solaris2* )
1192 USE_SUN=1
1193 USE_SOLARIS=1
1194 USE_SVR4=1
1195 cat >> confdefs.h <<\EOF
1196#define __SUN__ 1
1197EOF
1198
1199 cat >> confdefs.h <<\EOF
1200#define __SOLARIS__ 1
1201EOF
1202
1203 cat >> confdefs.h <<\EOF
1204#define __SVR4__ 1
1205EOF
1206
1207 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1208 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1209 ;;
1210 *-*-sunos4* )
1211 USE_SUN=1
1212 USE_SUNOS=1
1213 USE_BSD=1
1214 cat >> confdefs.h <<\EOF
1215#define __SUN__ 1
1216EOF
1217
1218 cat >> confdefs.h <<\EOF
1219#define __SUNOS__ 1
1220EOF
1221
1222 cat >> confdefs.h <<\EOF
1223#define __BSD__ 1
1224EOF
1225
1226 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1227 ;;
1228 *-*-freebsd*)
1229 USE_BSD=1
1230 USE_FREEBSD=1
1231 cat >> confdefs.h <<\EOF
1232#define __FREEBSD__ 1
1233EOF
1234
1235 cat >> confdefs.h <<\EOF
1236#define __BSD__ 1
1237EOF
1238
1239 DEFAULT_DEFAULT_wxUSE_GTK=1
1240 ;;
1241 *-*-openbsd*)
1242 USE_BSD=1
1243 USE_OPENBSD=1
1244 cat >> confdefs.h <<\EOF
1245#define __OPENBSD__ 1
1246EOF
1247
1248 cat >> confdefs.h <<\EOF
1249#define __BSD__ 1
1250EOF
1251
1252 DEFAULT_DEFAULT_wxUSE_GTK=1
1253 ;;
1254 *-*-netbsd*)
1255 USE_BSD=1
1256 USE_NETBSD=1
1257 cat >> confdefs.h <<\EOF
1258#define __NETBSD__ 1
1259EOF
1260
1261 cat >> confdefs.h <<\EOF
1262#define __BSD__ 1
1263EOF
1264
1265 DEFAULT_DEFAULT_wxUSE_GTK=1
1266 ;;
1267 *-*-osf* )
1268 USE_ALPHA=1
1269 USE_OSF=1
1270 cat >> confdefs.h <<\EOF
1271#define __ALPHA__ 1
1272EOF
1273
1274 cat >> confdefs.h <<\EOF
1275#define __OSF__ 1
1276EOF
1277
1278 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1279 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1280 ;;
1281 *-*-dgux5* )
1282 USE_ALPHA=1
1283 USE_SVR4=1
1284 cat >> confdefs.h <<\EOF
1285#define __ALPHA__ 1
1286EOF
1287
1288 cat >> confdefs.h <<\EOF
1289#define __SVR4__ 1
1290EOF
1291
1292 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1293 ;;
1294 *-*-sysv5* )
1295 USE_SYSV=1
1296 USE_SVR4=1
1297 cat >> confdefs.h <<\EOF
1298#define __SYSV__ 1
1299EOF
1300
1301 cat >> confdefs.h <<\EOF
1302#define __SVR4__ 1
1303EOF
1304
1305 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1306 ;;
1307 *-*-aix* )
1308 USE_AIX=1
1309 USE_SYSV=1
1310 USE_SVR4=1
1311 SO_SUFFIX=a
1312 cat >> confdefs.h <<\EOF
1313#define __AIX__ 1
1314EOF
1315
1316 cat >> confdefs.h <<\EOF
1317#define __SYSV__ 1
1318EOF
1319
1320 cat >> confdefs.h <<\EOF
1321#define __SVR4__ 1
1322EOF
1323
1324 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1325 ;;
1326
1327 *-*-cygwin* | *-*-mingw32* )
1328 SO_SUFFIX=dll
1329 PROGRAM_EXT=".exe"
1330 RESCOMP=windres
1331 DEFAULT_DEFAULT_wxUSE_MSW=1
1332 ;;
1333
1334 *-pc-msdosdjgpp )
1335 USE_UNIX=0
1336 USE_DOS=1
1337 cat >> confdefs.h <<\EOF
1338#define __DOS__ 1
1339EOF
1340
1341 PROGRAM_EXT=".exe"
1342 DEFAULT_DEFAULT_wxUSE_MGL=1
1343 LIBS="$LIBS -lstdc++"
1344 ;;
1345
1346 *-pc-os2_emx | *-pc-os2-emx )
1347 cat >> confdefs.h <<\EOF
1348#define __EMX__ 1
1349EOF
1350
1351 PROGRAM_EXT=".exe"
1352 DEFAULT_DEFAULT_wxUSE_PM=1
1353 ;;
1354
1355 powerpc-*-darwin* )
1356 USE_BSD=1
1357 USE_DARWIN=1
1358 SO_SUFFIX=dylib
1359 cat >> confdefs.h <<\EOF
1360#define __BSD__ 1
1361EOF
1362
1363 cat >> confdefs.h <<\EOF
1364#define __DARWIN__ 1
1365EOF
1366
1367 cat >> confdefs.h <<\EOF
1368#define __POWERPC__ 1
1369EOF
1370
1371 DEFAULT_DEFAULT_wxUSE_MAC=1
1372 ;;
1373
1374 *-*-beos* )
1375 USE_BEOS=1
1376 cat >> confdefs.h <<\EOF
1377#define __BEOS__ 1
1378EOF
1379
1380 ;;
1381
1382 *)
1383 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1384esac
1385
1386
1387
1388
1389 wx_arg_cache_file="configarg.cache"
1390 echo "loading argument cache $wx_arg_cache_file"
1391 rm -f ${wx_arg_cache_file}.tmp
1392 touch ${wx_arg_cache_file}.tmp
1393 touch ${wx_arg_cache_file}
1394
1395
1396DEBUG_CONFIGURE=0
1397if test $DEBUG_CONFIGURE = 1; then
1398 DEFAULT_wxUSE_UNIVERSAL=no
1399
1400 DEFAULT_wxUSE_NANOX=no
1401
1402 DEFAULT_wxUSE_THREADS=yes
1403
1404 DEFAULT_wxUSE_SHARED=yes
1405 DEFAULT_wxUSE_SONAME=no
1406 DEFAULT_wxUSE_OPTIMISE=no
1407 DEFAULT_wxUSE_PROFILE=no
1408 DEFAULT_wxUSE_NO_DEPS=no
1409 DEFAULT_wxUSE_NO_RTTI=no
1410 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1411 DEFAULT_wxUSE_PERMISSIVE=no
1412 DEFAULT_wxUSE_DEBUG_FLAG=yes
1413 DEFAULT_wxUSE_DEBUG_INFO=yes
1414 DEFAULT_wxUSE_DEBUG_GDB=yes
1415 DEFAULT_wxUSE_MEM_TRACING=no
1416 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1417 DEFAULT_wxUSE_DMALLOC=no
1418 DEFAULT_wxUSE_PRECOMP=no
1419 DEFAULT_wxUSE_APPLE_IEEE=no
1420
1421 DEFAULT_wxUSE_LOG=yes
1422 DEFAULT_wxUSE_LOGWINDOW=no
1423 DEFAULT_wxUSE_LOGGUI=no
1424 DEFAULT_wxUSE_LOGDIALOG=no
1425
1426 DEFAULT_wxUSE_GUI=yes
1427 DEFAULT_wxUSE_CONTROLS=no
1428
1429 DEFAULT_wxUSE_REGEX=no
1430 DEFAULT_wxUSE_ZLIB=no
1431 DEFAULT_wxUSE_LIBPNG=no
1432 DEFAULT_wxUSE_LIBJPEG=no
1433 DEFAULT_wxUSE_LIBTIFF=no
1434 DEFAULT_wxUSE_ODBC=no
1435 DEFAULT_wxUSE_OPENGL=no
1436
1437 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1438 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1439 DEFAULT_wxUSE_STD_IOSTREAM=no
1440 DEFAULT_wxUSE_CMDLINE_PARSER=no
1441 DEFAULT_wxUSE_DATETIME=no
1442 DEFAULT_wxUSE_TIMEDATE=no
1443 DEFAULT_wxUSE_TIMER=no
1444 DEFAULT_wxUSE_STOPWATCH=no
1445 DEFAULT_wxUSE_FILE=no
1446 DEFAULT_wxUSE_FFILE=no
1447 DEFAULT_wxUSE_TEXTBUFFER=no
1448 DEFAULT_wxUSE_TEXTFILE=no
1449 DEFAULT_wxUSE_WAVE=no
1450 DEFAULT_wxUSE_INTL=no
1451 DEFAULT_wxUSE_CONFIG=no
1452 DEFAULT_wxUSE_FONTMAP=no
1453 DEFAULT_wxUSE_STREAMS=no
1454 DEFAULT_wxUSE_SOCKETS=no
1455 DEFAULT_wxUSE_OLE=no
1456 DEFAULT_wxUSE_DATAOBJ=no
1457 DEFAULT_wxUSE_DIALUP_MANAGER=no
1458 DEFAULT_wxUSE_JOYSTICK=no
1459 DEFAULT_wxUSE_DYNLIB_CLASS=no
1460 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1461 DEFAULT_wxUSE_LONGLONG=no
1462 DEFAULT_wxUSE_GEOMETRY=no
1463
1464 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1465 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1466 DEFAULT_wxUSE_POSTSCRIPT=no
1467
1468 DEFAULT_wxUSE_X_RESOURCES=no
1469 DEFAULT_wxUSE_CLIPBOARD=no
1470 DEFAULT_wxUSE_TOOLTIPS=no
1471 DEFAULT_wxUSE_DRAG_AND_DROP=no
1472 DEFAULT_wxUSE_DRAGIMAGE=no
1473 DEFAULT_wxUSE_SPLINES=no
1474
1475 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1476 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1477 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1478
1479 DEFAULT_wxUSE_PROLOGIO=no
1480 DEFAULT_wxUSE_RESOURCES=no
1481 DEFAULT_wxUSE_CONSTRAINTS=no
1482 DEFAULT_wxUSE_IPC=no
1483 DEFAULT_wxUSE_HELP=no
1484 DEFAULT_wxUSE_MS_HTML_HELP=no
1485 DEFAULT_wxUSE_WXHTML_HELP=no
1486 DEFAULT_wxUSE_TREELAYOUT=no
1487 DEFAULT_wxUSE_METAFILE=no
1488 DEFAULT_wxUSE_MIMETYPE=no
1489 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1490 DEFAULT_wxUSE_PROTOCOL=no
1491 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1492 DEFAULT_wxUSE_PROTOCOL_FTP=no
1493 DEFAULT_wxUSE_PROTOCOL_FILE=no
1494 DEFAULT_wxUSE_URL=no
1495
1496 DEFAULT_wxUSE_COMMONDLGS=no
1497 DEFAULT_wxUSE_CHOICEDLG=no
1498 DEFAULT_wxUSE_COLOURDLG=no
1499 DEFAULT_wxUSE_DIRDLG=no
1500 DEFAULT_wxUSE_FILEDLG=no
1501 DEFAULT_wxUSE_FINDREPLDLG=no
1502 DEFAULT_wxUSE_FONTDLG=no
1503 DEFAULT_wxUSE_MSGDLG=no
1504 DEFAULT_wxUSE_NUMBERDLG=no
1505 DEFAULT_wxUSE_TEXTDLG=no
1506 DEFAULT_wxUSE_SPLASH=no
1507 DEFAULT_wxUSE_STARTUP_TIPS=no
1508 DEFAULT_wxUSE_PROGRESSDLG=no
1509 DEFAULT_wxUSE_WIZARDDLG=no
1510
1511 DEFAULT_wxUSE_MENUS=no
1512 DEFAULT_wxUSE_MINIFRAME=no
1513 DEFAULT_wxUSE_HTML=no
1514 DEFAULT_wxUSE_FILESYSTEM=no
1515 DEFAULT_wxUSE_FS_INET=no
1516 DEFAULT_wxUSE_FS_ZIP=no
1517 DEFAULT_wxUSE_BUSYINFO=no
1518 DEFAULT_wxUSE_ZIPSTREAM=no
1519 DEFAULT_wxUSE_VALIDATORS=no
1520
1521 DEFAULT_wxUSE_ACCEL=no
1522 DEFAULT_wxUSE_BUTTON=no
1523 DEFAULT_wxUSE_BMPBUTTON=no
1524 DEFAULT_wxUSE_CALCTRL=no
1525 DEFAULT_wxUSE_CARET=no
1526 DEFAULT_wxUSE_CHECKBOX=no
1527 DEFAULT_wxUSE_CHECKLST=no
1528 DEFAULT_wxUSE_CHOICE=no
1529 DEFAULT_wxUSE_COMBOBOX=no
1530 DEFAULT_wxUSE_GAUGE=no
1531 DEFAULT_wxUSE_GRID=no
1532 DEFAULT_wxUSE_NEW_GRID=no
1533 DEFAULT_wxUSE_IMAGLIST=no
1534 DEFAULT_wxUSE_LISTBOX=no
1535 DEFAULT_wxUSE_LISTCTRL=no
1536 DEFAULT_wxUSE_NOTEBOOK=no
1537 DEFAULT_wxUSE_PROPSHEET=no
1538 DEFAULT_wxUSE_RADIOBOX=no
1539 DEFAULT_wxUSE_RADIOBTN=no
1540 DEFAULT_wxUSE_SASH=no
1541 DEFAULT_wxUSE_SCROLLBAR=no
1542 DEFAULT_wxUSE_SLIDER=no
1543 DEFAULT_wxUSE_SPINBTN=no
1544 DEFAULT_wxUSE_SPINCTRL=no
1545 DEFAULT_wxUSE_SPLITTER=no
1546 DEFAULT_wxUSE_STATBMP=no
1547 DEFAULT_wxUSE_STATBOX=no
1548 DEFAULT_wxUSE_STATLINE=no
1549 DEFAULT_wxUSE_STATTEXT=no
1550 DEFAULT_wxUSE_STATUSBAR=yes
1551 DEFAULT_wxUSE_TABDIALOG=no
1552 DEFAULT_wxUSE_TEXTCTRL=no
1553 DEFAULT_wxUSE_TOGGLEBTN=no
1554 DEFAULT_wxUSE_TOOLBAR=no
1555 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1556 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1557 DEFAULT_wxUSE_TREECTRL=no
1558 DEFAULT_wxUSE_POPUPWIN=no
1559 DEFAULT_wxUSE_TIPWINDOW=no
1560
1561 DEFAULT_wxUSE_UNICODE=no
1562 DEFAULT_wxUSE_UNICODE_MSLU=no
1563 DEFAULT_wxUSE_WCSRTOMBS=no
1564
1565 DEFAULT_wxUSE_PALETTE=no
1566 DEFAULT_wxUSE_IMAGE=no
1567 DEFAULT_wxUSE_GIF=no
1568 DEFAULT_wxUSE_PCX=no
1569 DEFAULT_wxUSE_PNM=no
1570 DEFAULT_wxUSE_IFF=no
1571 DEFAULT_wxUSE_XPM=no
1572 DEFAULT_wxUSE_ICO_CUR=no
1573else
1574 DEFAULT_wxUSE_UNIVERSAL=no
1575
1576 DEFAULT_wxUSE_NANOX=no
1577
1578 DEFAULT_wxUSE_THREADS=yes
1579
1580 DEFAULT_wxUSE_SHARED=yes
1581 DEFAULT_wxUSE_SONAME=no
1582 DEFAULT_wxUSE_OPTIMISE=yes
1583 DEFAULT_wxUSE_PROFILE=no
1584 DEFAULT_wxUSE_NO_DEPS=no
1585 DEFAULT_wxUSE_NO_RTTI=no
1586 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1587 DEFAULT_wxUSE_PERMISSIVE=no
1588 DEFAULT_wxUSE_DEBUG_FLAG=no
1589 DEFAULT_wxUSE_DEBUG_INFO=no
1590 DEFAULT_wxUSE_DEBUG_GDB=no
1591 DEFAULT_wxUSE_MEM_TRACING=no
1592 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1593 DEFAULT_wxUSE_DMALLOC=no
1594 DEFAULT_wxUSE_PRECOMP=no
1595 DEFAULT_wxUSE_APPLE_IEEE=yes
1596
1597 DEFAULT_wxUSE_LOG=yes
1598 DEFAULT_wxUSE_LOGWINDOW=yes
1599 DEFAULT_wxUSE_LOGGUI=yes
1600 DEFAULT_wxUSE_LOGDIALOG=yes
1601
1602 DEFAULT_wxUSE_GUI=yes
1603
1604 DEFAULT_wxUSE_REGEX=yes
1605 DEFAULT_wxUSE_ZLIB=yes
1606 DEFAULT_wxUSE_LIBPNG=yes
1607 DEFAULT_wxUSE_LIBJPEG=yes
1608 DEFAULT_wxUSE_LIBTIFF=yes
1609 DEFAULT_wxUSE_ODBC=no
1610 DEFAULT_wxUSE_OPENGL=no
1611
1612 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1613 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1614 DEFAULT_wxUSE_STD_IOSTREAM=no
1615 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1616 DEFAULT_wxUSE_DATETIME=yes
1617 DEFAULT_wxUSE_TIMEDATE=no
1618 DEFAULT_wxUSE_TIMER=yes
1619 DEFAULT_wxUSE_STOPWATCH=yes
1620 DEFAULT_wxUSE_FILE=yes
1621 DEFAULT_wxUSE_FFILE=yes
1622 DEFAULT_wxUSE_TEXTBUFFER=yes
1623 DEFAULT_wxUSE_TEXTFILE=yes
1624 DEFAULT_wxUSE_WAVE=no
1625 DEFAULT_wxUSE_INTL=yes
1626 DEFAULT_wxUSE_CONFIG=yes
1627 DEFAULT_wxUSE_FONTMAP=yes
1628 DEFAULT_wxUSE_STREAMS=yes
1629 DEFAULT_wxUSE_SOCKETS=yes
1630 DEFAULT_wxUSE_OLE=yes
1631 DEFAULT_wxUSE_DATAOBJ=yes
1632 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1633 DEFAULT_wxUSE_JOYSTICK=yes
1634 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1635 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1636 DEFAULT_wxUSE_LONGLONG=yes
1637 DEFAULT_wxUSE_GEOMETRY=yes
1638
1639 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1640 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1641 DEFAULT_wxUSE_POSTSCRIPT=yes
1642
1643 DEFAULT_wxUSE_X_RESOURCES=no
1644 DEFAULT_wxUSE_CLIPBOARD=yes
1645 DEFAULT_wxUSE_TOOLTIPS=yes
1646 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1647 DEFAULT_wxUSE_DRAGIMAGE=yes
1648 DEFAULT_wxUSE_SPLINES=yes
1649
1650 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1651 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1652 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1653
1654 DEFAULT_wxUSE_PROLOGIO=no
1655 DEFAULT_wxUSE_RESOURCES=no
1656 DEFAULT_wxUSE_CONSTRAINTS=yes
1657 DEFAULT_wxUSE_IPC=yes
1658 DEFAULT_wxUSE_HELP=yes
1659 DEFAULT_wxUSE_MS_HTML_HELP=yes
1660 DEFAULT_wxUSE_WXHTML_HELP=yes
1661 DEFAULT_wxUSE_TREELAYOUT=yes
1662 DEFAULT_wxUSE_METAFILE=yes
1663 DEFAULT_wxUSE_MIMETYPE=yes
1664 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1665 DEFAULT_wxUSE_PROTOCOL=yes
1666 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1667 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1668 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1669 DEFAULT_wxUSE_URL=yes
1670
1671 DEFAULT_wxUSE_COMMONDLGS=yes
1672 DEFAULT_wxUSE_CHOICEDLG=yes
1673 DEFAULT_wxUSE_COLOURDLG=yes
1674 DEFAULT_wxUSE_DIRDLG=yes
1675 DEFAULT_wxUSE_FILEDLG=yes
1676 DEFAULT_wxUSE_FINDREPLDLG=yes
1677 DEFAULT_wxUSE_FONTDLG=yes
1678 DEFAULT_wxUSE_MSGDLG=yes
1679 DEFAULT_wxUSE_NUMBERDLG=yes
1680 DEFAULT_wxUSE_TEXTDLG=yes
1681 DEFAULT_wxUSE_SPLASH=yes
1682 DEFAULT_wxUSE_STARTUP_TIPS=yes
1683 DEFAULT_wxUSE_PROGRESSDLG=yes
1684 DEFAULT_wxUSE_WIZARDDLG=yes
1685
1686 DEFAULT_wxUSE_MENUS=yes
1687 DEFAULT_wxUSE_MINIFRAME=yes
1688 DEFAULT_wxUSE_HTML=yes
1689 DEFAULT_wxUSE_FILESYSTEM=yes
1690 DEFAULT_wxUSE_FS_INET=yes
1691 DEFAULT_wxUSE_FS_ZIP=yes
1692 DEFAULT_wxUSE_BUSYINFO=yes
1693 DEFAULT_wxUSE_ZIPSTREAM=yes
1694 DEFAULT_wxUSE_VALIDATORS=yes
1695
1696 DEFAULT_wxUSE_ACCEL=yes
1697 DEFAULT_wxUSE_BUTTON=yes
1698 DEFAULT_wxUSE_BMPBUTTON=yes
1699 DEFAULT_wxUSE_CALCTRL=yes
1700 DEFAULT_wxUSE_CARET=yes
1701 DEFAULT_wxUSE_CHECKBOX=yes
1702 DEFAULT_wxUSE_CHECKLST=yes
1703 DEFAULT_wxUSE_CHOICE=yes
1704 DEFAULT_wxUSE_COMBOBOX=yes
1705 DEFAULT_wxUSE_GAUGE=yes
1706 DEFAULT_wxUSE_GRID=yes
1707 DEFAULT_wxUSE_NEW_GRID=yes
1708 DEFAULT_wxUSE_IMAGLIST=yes
1709 DEFAULT_wxUSE_LISTBOX=yes
1710 DEFAULT_wxUSE_LISTCTRL=yes
1711 DEFAULT_wxUSE_NOTEBOOK=yes
1712 DEFAULT_wxUSE_PROPSHEET=yes
1713 DEFAULT_wxUSE_RADIOBOX=yes
1714 DEFAULT_wxUSE_RADIOBTN=yes
1715 DEFAULT_wxUSE_SASH=yes
1716 DEFAULT_wxUSE_SCROLLBAR=yes
1717 DEFAULT_wxUSE_SLIDER=yes
1718 DEFAULT_wxUSE_SPINBTN=yes
1719 DEFAULT_wxUSE_SPINCTRL=yes
1720 DEFAULT_wxUSE_SPLITTER=yes
1721 DEFAULT_wxUSE_STATBMP=yes
1722 DEFAULT_wxUSE_STATBOX=yes
1723 DEFAULT_wxUSE_STATLINE=yes
1724 DEFAULT_wxUSE_STATTEXT=yes
1725 DEFAULT_wxUSE_STATUSBAR=yes
1726 DEFAULT_wxUSE_TABDIALOG=no
1727 DEFAULT_wxUSE_TEXTCTRL=yes
1728 DEFAULT_wxUSE_TOGGLEBTN=yes
1729 DEFAULT_wxUSE_TOOLBAR=yes
1730 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1731 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1732 DEFAULT_wxUSE_TREECTRL=yes
1733 DEFAULT_wxUSE_POPUPWIN=yes
1734 DEFAULT_wxUSE_TIPWINDOW=yes
1735
1736 DEFAULT_wxUSE_UNICODE=no
1737 DEFAULT_wxUSE_UNICODE_MSLU=yes
1738 DEFAULT_wxUSE_WCSRTOMBS=no
1739
1740 DEFAULT_wxUSE_PALETTE=yes
1741 DEFAULT_wxUSE_IMAGE=yes
1742 DEFAULT_wxUSE_GIF=yes
1743 DEFAULT_wxUSE_PCX=yes
1744 DEFAULT_wxUSE_IFF=no
1745 DEFAULT_wxUSE_PNM=yes
1746 DEFAULT_wxUSE_XPM=yes
1747 DEFAULT_wxUSE_ICO_CUR=yes
1748fi
1749
1750
1751
1752for toolkit in `echo $ALL_TOOLKITS`; do
1753 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1754 if test "x$LINE" != "x" ; then
1755 has_toolkit_in_cache=1
1756 eval "DEFAULT_$LINE"
1757 eval "CACHE_$toolkit=1"
1758 fi
1759done
1760
1761
1762
1763 enablestring=
1764 echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
1765echo "configure:1766: checking for --${enablestring:-enable}-gui" >&5
1766 no_cache=0
1767 # Check whether --enable-gui or --disable-gui was given.
1768if test "${enable_gui+set}" = set; then
1769 enableval="$enable_gui"
1770
1771 if test "$enableval" = yes; then
1772 ac_cv_use_gui='wxUSE_GUI=yes'
1773 else
1774 ac_cv_use_gui='wxUSE_GUI=no'
1775 fi
1776
1777else
1778
1779 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1780 if test "x$LINE" != x ; then
1781 eval "DEFAULT_$LINE"
1782 else
1783 no_cache=1
1784 fi
1785
1786 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1787
1788fi
1789
1790
1791 eval "$ac_cv_use_gui"
1792 if test "$no_cache" != 1; then
1793 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1794 fi
1795
1796 if test "$wxUSE_GUI" = yes; then
1797 echo "$ac_t""yes" 1>&6
1798 else
1799 echo "$ac_t""no" 1>&6
1800 fi
1801
1802
1803if test "$wxUSE_GUI" = "yes"; then
1804
1805
1806 enablestring=
1807 echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
1808echo "configure:1809: checking for --${enablestring:-enable}-universal" >&5
1809 no_cache=0
1810 # Check whether --enable-universal or --disable-universal was given.
1811if test "${enable_universal+set}" = set; then
1812 enableval="$enable_universal"
1813
1814 if test "$enableval" = yes; then
1815 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1816 else
1817 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1818 fi
1819
1820else
1821
1822 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1823 if test "x$LINE" != x ; then
1824 eval "DEFAULT_$LINE"
1825 else
1826 no_cache=1
1827 fi
1828
1829 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1830
1831fi
1832
1833
1834 eval "$ac_cv_use_universal"
1835 if test "$no_cache" != 1; then
1836 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1837 fi
1838
1839 if test "$wxUSE_UNIVERSAL" = yes; then
1840 echo "$ac_t""yes" 1>&6
1841 else
1842 echo "$ac_t""no" 1>&6
1843 fi
1844
1845# Check whether --with-gtk or --without-gtk was given.
1846if test "${with_gtk+set}" = set; then
1847 withval="$with_gtk"
1848 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1849fi
1850
1851# Check whether --with-motif or --without-motif was given.
1852if test "${with_motif+set}" = set; then
1853 withval="$with_motif"
1854 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1855fi
1856
1857# Check whether --with-mac or --without-mac was given.
1858if test "${with_mac+set}" = set; then
1859 withval="$with_mac"
1860 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1861fi
1862
1863# Check whether --with-wine or --without-wine was given.
1864if test "${with_wine+set}" = set; then
1865 withval="$with_wine"
1866 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1867fi
1868
1869# Check whether --with-msw or --without-msw was given.
1870if test "${with_msw+set}" = set; then
1871 withval="$with_msw"
1872 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1873fi
1874
1875# Check whether --with-pm or --without-pm was given.
1876if test "${with_pm+set}" = set; then
1877 withval="$with_pm"
1878 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1879fi
1880
1881# Check whether --with-mgl or --without-mgl was given.
1882if test "${with_mgl+set}" = set; then
1883 withval="$with_mgl"
1884 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1885fi
1886
1887# Check whether --with-microwin or --without-microwin was given.
1888if test "${with_microwin+set}" = set; then
1889 withval="$with_microwin"
1890 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1891fi
1892
1893# Check whether --with-x11 or --without-x11 was given.
1894if test "${with_x11+set}" = set; then
1895 withval="$with_x11"
1896 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1897fi
1898
1899
1900 enablestring=
1901 echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
1902echo "configure:1903: checking for --${enablestring:-enable}-nanox" >&5
1903 no_cache=0
1904 # Check whether --enable-nanox or --disable-nanox was given.
1905if test "${enable_nanox+set}" = set; then
1906 enableval="$enable_nanox"
1907
1908 if test "$enableval" = yes; then
1909 ac_cv_use_nanox='wxUSE_NANOX=yes'
1910 else
1911 ac_cv_use_nanox='wxUSE_NANOX=no'
1912 fi
1913
1914else
1915
1916 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1917 if test "x$LINE" != x ; then
1918 eval "DEFAULT_$LINE"
1919 else
1920 no_cache=1
1921 fi
1922
1923 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1924
1925fi
1926
1927
1928 eval "$ac_cv_use_nanox"
1929 if test "$no_cache" != 1; then
1930 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1931 fi
1932
1933 if test "$wxUSE_NANOX" = yes; then
1934 echo "$ac_t""yes" 1>&6
1935 else
1936 echo "$ac_t""no" 1>&6
1937 fi
1938
1939
1940
1941 enablestring=
1942 echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
1943echo "configure:1944: checking for --${enablestring:-enable}-gtk2" >&5
1944 no_cache=0
1945 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1946if test "${enable_gtk2+set}" = set; then
1947 enableval="$enable_gtk2"
1948
1949 if test "$enableval" = yes; then
1950 ac_cv_use_gtk2='wxUSE_GTK2=yes'
1951 else
1952 ac_cv_use_gtk2='wxUSE_GTK2=no'
1953 fi
1954
1955else
1956
1957 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1958 if test "x$LINE" != x ; then
1959 eval "DEFAULT_$LINE"
1960 else
1961 no_cache=1
1962 fi
1963
1964 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
1965
1966fi
1967
1968
1969 eval "$ac_cv_use_gtk2"
1970 if test "$no_cache" != 1; then
1971 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1972 fi
1973
1974 if test "$wxUSE_GTK2" = yes; then
1975 echo "$ac_t""yes" 1>&6
1976 else
1977 echo "$ac_t""no" 1>&6
1978 fi
1979
1980
1981
1982 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1983echo "configure:1984: checking for --with-libpng" >&5
1984 no_cache=0
1985 # Check whether --with-libpng or --without-libpng was given.
1986if test "${with_libpng+set}" = set; then
1987 withval="$with_libpng"
1988
1989 if test "$withval" = yes; then
1990 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1991 elif test "$withval" = no; then
1992 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1993 elif test "$withval" = sys; then
1994 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1995 elif test "$withval" = builtin; then
1996 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1997 else
1998 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1999 fi
2000
2001else
2002
2003 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2004 if test "x$LINE" != x ; then
2005 eval "DEFAULT_$LINE"
2006 else
2007 no_cache=1
2008 fi
2009
2010 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2011
2012fi
2013
2014
2015 eval "$ac_cv_use_libpng"
2016 if test "$no_cache" != 1; then
2017 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2018 fi
2019
2020 if test "$wxUSE_LIBPNG" = yes; then
2021 echo "$ac_t""yes" 1>&6
2022 elif test "$wxUSE_LIBPNG" = no; then
2023 echo "$ac_t""no" 1>&6
2024 elif test "$wxUSE_LIBPNG" = sys; then
2025 echo "$ac_t""system version" 1>&6
2026 elif test "$wxUSE_LIBPNG" = builtin; then
2027 echo "$ac_t""builtin version" 1>&6
2028 else
2029 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2030 fi
2031
2032
2033 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2034echo "configure:2035: checking for --with-libjpeg" >&5
2035 no_cache=0
2036 # Check whether --with-libjpeg or --without-libjpeg was given.
2037if test "${with_libjpeg+set}" = set; then
2038 withval="$with_libjpeg"
2039
2040 if test "$withval" = yes; then
2041 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2042 elif test "$withval" = no; then
2043 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2044 elif test "$withval" = sys; then
2045 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2046 elif test "$withval" = builtin; then
2047 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2048 else
2049 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2050 fi
2051
2052else
2053
2054 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2055 if test "x$LINE" != x ; then
2056 eval "DEFAULT_$LINE"
2057 else
2058 no_cache=1
2059 fi
2060
2061 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2062
2063fi
2064
2065
2066 eval "$ac_cv_use_libjpeg"
2067 if test "$no_cache" != 1; then
2068 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2069 fi
2070
2071 if test "$wxUSE_LIBJPEG" = yes; then
2072 echo "$ac_t""yes" 1>&6
2073 elif test "$wxUSE_LIBJPEG" = no; then
2074 echo "$ac_t""no" 1>&6
2075 elif test "$wxUSE_LIBJPEG" = sys; then
2076 echo "$ac_t""system version" 1>&6
2077 elif test "$wxUSE_LIBJPEG" = builtin; then
2078 echo "$ac_t""builtin version" 1>&6
2079 else
2080 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2081 fi
2082
2083
2084 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2085echo "configure:2086: checking for --with-libtiff" >&5
2086 no_cache=0
2087 # Check whether --with-libtiff or --without-libtiff was given.
2088if test "${with_libtiff+set}" = set; then
2089 withval="$with_libtiff"
2090
2091 if test "$withval" = yes; then
2092 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2093 elif test "$withval" = no; then
2094 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2095 elif test "$withval" = sys; then
2096 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2097 elif test "$withval" = builtin; then
2098 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2099 else
2100 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2101 fi
2102
2103else
2104
2105 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2106 if test "x$LINE" != x ; then
2107 eval "DEFAULT_$LINE"
2108 else
2109 no_cache=1
2110 fi
2111
2112 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2113
2114fi
2115
2116
2117 eval "$ac_cv_use_libtiff"
2118 if test "$no_cache" != 1; then
2119 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2120 fi
2121
2122 if test "$wxUSE_LIBTIFF" = yes; then
2123 echo "$ac_t""yes" 1>&6
2124 elif test "$wxUSE_LIBTIFF" = no; then
2125 echo "$ac_t""no" 1>&6
2126 elif test "$wxUSE_LIBTIFF" = sys; then
2127 echo "$ac_t""system version" 1>&6
2128 elif test "$wxUSE_LIBTIFF" = builtin; then
2129 echo "$ac_t""builtin version" 1>&6
2130 else
2131 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2132 fi
2133
2134
2135 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2136echo "configure:2137: checking for --with-opengl" >&5
2137 no_cache=0
2138 # Check whether --with-opengl or --without-opengl was given.
2139if test "${with_opengl+set}" = set; then
2140 withval="$with_opengl"
2141
2142 if test "$withval" = yes; then
2143 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2144 else
2145 ac_cv_use_opengl='wxUSE_OPENGL=no'
2146 fi
2147
2148else
2149
2150 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2151 if test "x$LINE" != x ; then
2152 eval "DEFAULT_$LINE"
2153 else
2154 no_cache=1
2155 fi
2156
2157 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2158
2159fi
2160
2161
2162 eval "$ac_cv_use_opengl"
2163 if test "$no_cache" != 1; then
2164 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2165 fi
2166
2167 if test "$wxUSE_OPENGL" = yes; then
2168 echo "$ac_t""yes" 1>&6
2169 else
2170 echo "$ac_t""no" 1>&6
2171 fi
2172
2173
2174fi
2175
2176
2177 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2178echo "configure:2179: checking for --with-dmalloc" >&5
2179 no_cache=0
2180 # Check whether --with-dmalloc or --without-dmalloc was given.
2181if test "${with_dmalloc+set}" = set; then
2182 withval="$with_dmalloc"
2183
2184 if test "$withval" = yes; then
2185 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2186 else
2187 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2188 fi
2189
2190else
2191
2192 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2193 if test "x$LINE" != x ; then
2194 eval "DEFAULT_$LINE"
2195 else
2196 no_cache=1
2197 fi
2198
2199 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2200
2201fi
2202
2203
2204 eval "$ac_cv_use_dmalloc"
2205 if test "$no_cache" != 1; then
2206 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2207 fi
2208
2209 if test "$wxUSE_DMALLOC" = yes; then
2210 echo "$ac_t""yes" 1>&6
2211 else
2212 echo "$ac_t""no" 1>&6
2213 fi
2214
2215
2216 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2217echo "configure:2218: checking for --with-regex" >&5
2218 no_cache=0
2219 # Check whether --with-regex or --without-regex was given.
2220if test "${with_regex+set}" = set; then
2221 withval="$with_regex"
2222
2223 if test "$withval" = yes; then
2224 ac_cv_use_regex='wxUSE_REGEX=yes'
2225 elif test "$withval" = no; then
2226 ac_cv_use_regex='wxUSE_REGEX=no'
2227 elif test "$withval" = sys; then
2228 ac_cv_use_regex='wxUSE_REGEX=sys'
2229 elif test "$withval" = builtin; then
2230 ac_cv_use_regex='wxUSE_REGEX=builtin'
2231 else
2232 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2233 fi
2234
2235else
2236
2237 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2238 if test "x$LINE" != x ; then
2239 eval "DEFAULT_$LINE"
2240 else
2241 no_cache=1
2242 fi
2243
2244 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2245
2246fi
2247
2248
2249 eval "$ac_cv_use_regex"
2250 if test "$no_cache" != 1; then
2251 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2252 fi
2253
2254 if test "$wxUSE_REGEX" = yes; then
2255 echo "$ac_t""yes" 1>&6
2256 elif test "$wxUSE_REGEX" = no; then
2257 echo "$ac_t""no" 1>&6
2258 elif test "$wxUSE_REGEX" = sys; then
2259 echo "$ac_t""system version" 1>&6
2260 elif test "$wxUSE_REGEX" = builtin; then
2261 echo "$ac_t""builtin version" 1>&6
2262 else
2263 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2264 fi
2265
2266
2267 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2268echo "configure:2269: checking for --with-zlib" >&5
2269 no_cache=0
2270 # Check whether --with-zlib or --without-zlib was given.
2271if test "${with_zlib+set}" = set; then
2272 withval="$with_zlib"
2273
2274 if test "$withval" = yes; then
2275 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2276 elif test "$withval" = no; then
2277 ac_cv_use_zlib='wxUSE_ZLIB=no'
2278 elif test "$withval" = sys; then
2279 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2280 elif test "$withval" = builtin; then
2281 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2282 else
2283 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2284 fi
2285
2286else
2287
2288 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2289 if test "x$LINE" != x ; then
2290 eval "DEFAULT_$LINE"
2291 else
2292 no_cache=1
2293 fi
2294
2295 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2296
2297fi
2298
2299
2300 eval "$ac_cv_use_zlib"
2301 if test "$no_cache" != 1; then
2302 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2303 fi
2304
2305 if test "$wxUSE_ZLIB" = yes; then
2306 echo "$ac_t""yes" 1>&6
2307 elif test "$wxUSE_ZLIB" = no; then
2308 echo "$ac_t""no" 1>&6
2309 elif test "$wxUSE_ZLIB" = sys; then
2310 echo "$ac_t""system version" 1>&6
2311 elif test "$wxUSE_ZLIB" = builtin; then
2312 echo "$ac_t""builtin version" 1>&6
2313 else
2314 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2315 fi
2316
2317
2318 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2319echo "configure:2320: checking for --with-odbc" >&5
2320 no_cache=0
2321 # Check whether --with-odbc or --without-odbc was given.
2322if test "${with_odbc+set}" = set; then
2323 withval="$with_odbc"
2324
2325 if test "$withval" = yes; then
2326 ac_cv_use_odbc='wxUSE_ODBC=yes'
2327 else
2328 ac_cv_use_odbc='wxUSE_ODBC=no'
2329 fi
2330
2331else
2332
2333 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2334 if test "x$LINE" != x ; then
2335 eval "DEFAULT_$LINE"
2336 else
2337 no_cache=1
2338 fi
2339
2340 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2341
2342fi
2343
2344
2345 eval "$ac_cv_use_odbc"
2346 if test "$no_cache" != 1; then
2347 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2348 fi
2349
2350 if test "$wxUSE_ODBC" = yes; then
2351 echo "$ac_t""yes" 1>&6
2352 else
2353 echo "$ac_t""no" 1>&6
2354 fi
2355
2356
2357
2358
2359 enablestring=
2360 echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
2361echo "configure:2362: checking for --${enablestring:-enable}-shared" >&5
2362 no_cache=0
2363 # Check whether --enable-shared or --disable-shared was given.
2364if test "${enable_shared+set}" = set; then
2365 enableval="$enable_shared"
2366
2367 if test "$enableval" = yes; then
2368 ac_cv_use_shared='wxUSE_SHARED=yes'
2369 else
2370 ac_cv_use_shared='wxUSE_SHARED=no'
2371 fi
2372
2373else
2374
2375 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2376 if test "x$LINE" != x ; then
2377 eval "DEFAULT_$LINE"
2378 else
2379 no_cache=1
2380 fi
2381
2382 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2383
2384fi
2385
2386
2387 eval "$ac_cv_use_shared"
2388 if test "$no_cache" != 1; then
2389 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2390 fi
2391
2392 if test "$wxUSE_SHARED" = yes; then
2393 echo "$ac_t""yes" 1>&6
2394 else
2395 echo "$ac_t""no" 1>&6
2396 fi
2397
2398
2399 enablestring=
2400 echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
2401echo "configure:2402: checking for --${enablestring:-enable}-soname" >&5
2402 no_cache=0
2403 # Check whether --enable-soname or --disable-soname was given.
2404if test "${enable_soname+set}" = set; then
2405 enableval="$enable_soname"
2406
2407 if test "$enableval" = yes; then
2408 ac_cv_use_soname='wxUSE_SONAME=yes'
2409 else
2410 ac_cv_use_soname='wxUSE_SONAME=no'
2411 fi
2412
2413else
2414
2415 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2416 if test "x$LINE" != x ; then
2417 eval "DEFAULT_$LINE"
2418 else
2419 no_cache=1
2420 fi
2421
2422 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2423
2424fi
2425
2426
2427 eval "$ac_cv_use_soname"
2428 if test "$no_cache" != 1; then
2429 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2430 fi
2431
2432 if test "$wxUSE_SONAME" = yes; then
2433 echo "$ac_t""yes" 1>&6
2434 else
2435 echo "$ac_t""no" 1>&6
2436 fi
2437
2438
2439 enablestring=
2440 echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
2441echo "configure:2442: checking for --${enablestring:-enable}-optimise" >&5
2442 no_cache=0
2443 # Check whether --enable-optimise or --disable-optimise was given.
2444if test "${enable_optimise+set}" = set; then
2445 enableval="$enable_optimise"
2446
2447 if test "$enableval" = yes; then
2448 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2449 else
2450 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2451 fi
2452
2453else
2454
2455 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2456 if test "x$LINE" != x ; then
2457 eval "DEFAULT_$LINE"
2458 else
2459 no_cache=1
2460 fi
2461
2462 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2463
2464fi
2465
2466
2467 eval "$ac_cv_use_optimise"
2468 if test "$no_cache" != 1; then
2469 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2470 fi
2471
2472 if test "$wxUSE_OPTIMISE" = yes; then
2473 echo "$ac_t""yes" 1>&6
2474 else
2475 echo "$ac_t""no" 1>&6
2476 fi
2477
2478
2479 enablestring=
2480 echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
2481echo "configure:2482: checking for --${enablestring:-enable}-debug" >&5
2482 no_cache=0
2483 # Check whether --enable-debug or --disable-debug was given.
2484if test "${enable_debug+set}" = set; then
2485 enableval="$enable_debug"
2486
2487 if test "$enableval" = yes; then
2488 ac_cv_use_debug='wxUSE_DEBUG=yes'
2489 else
2490 ac_cv_use_debug='wxUSE_DEBUG=no'
2491 fi
2492
2493else
2494
2495 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2496 if test "x$LINE" != x ; then
2497 eval "DEFAULT_$LINE"
2498 else
2499 no_cache=1
2500 fi
2501
2502 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2503
2504fi
2505
2506
2507 eval "$ac_cv_use_debug"
2508 if test "$no_cache" != 1; then
2509 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2510 fi
2511
2512 if test "$wxUSE_DEBUG" = yes; then
2513 echo "$ac_t""yes" 1>&6
2514 else
2515 echo "$ac_t""no" 1>&6
2516 fi
2517
2518
2519
2520 enablestring=
2521 echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
2522echo "configure:2523: checking for --${enablestring:-enable}-precomp" >&5
2523 no_cache=0
2524 # Check whether --enable-precomp or --disable-precomp was given.
2525if test "${enable_precomp+set}" = set; then
2526 enableval="$enable_precomp"
2527
2528 if test "$enableval" = yes; then
2529 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2530 else
2531 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2532 fi
2533
2534else
2535
2536 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2537 if test "x$LINE" != x ; then
2538 eval "DEFAULT_$LINE"
2539 else
2540 no_cache=1
2541 fi
2542
2543 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2544
2545fi
2546
2547
2548 eval "$ac_cv_use_precomp"
2549 if test "$no_cache" != 1; then
2550 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2551 fi
2552
2553 if test "$wxUSE_PRECOMP" = yes; then
2554 echo "$ac_t""yes" 1>&6
2555 else
2556 echo "$ac_t""no" 1>&6
2557 fi
2558
2559
2560if test "$wxUSE_DEBUG" = "yes"; then
2561 DEFAULT_wxUSE_DEBUG_FLAG=yes
2562 DEFAULT_wxUSE_DEBUG_INFO=yes
2563elif test "$wxUSE_DEBUG" = "no"; then
2564 DEFAULT_wxUSE_DEBUG_FLAG=no
2565 DEFAULT_wxUSE_DEBUG_INFO=no
2566fi
2567
2568
2569 enablestring=
2570 echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
2571echo "configure:2572: checking for --${enablestring:-enable}-debug_flag" >&5
2572 no_cache=0
2573 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2574if test "${enable_debug_flag+set}" = set; then
2575 enableval="$enable_debug_flag"
2576
2577 if test "$enableval" = yes; then
2578 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2579 else
2580 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2581 fi
2582
2583else
2584
2585 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2586 if test "x$LINE" != x ; then
2587 eval "DEFAULT_$LINE"
2588 else
2589 no_cache=1
2590 fi
2591
2592 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2593
2594fi
2595
2596
2597 eval "$ac_cv_use_debug_flag"
2598 if test "$no_cache" != 1; then
2599 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2600 fi
2601
2602 if test "$wxUSE_DEBUG_FLAG" = yes; then
2603 echo "$ac_t""yes" 1>&6
2604 else
2605 echo "$ac_t""no" 1>&6
2606 fi
2607
2608
2609 enablestring=
2610 echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
2611echo "configure:2612: checking for --${enablestring:-enable}-debug_info" >&5
2612 no_cache=0
2613 # Check whether --enable-debug_info or --disable-debug_info was given.
2614if test "${enable_debug_info+set}" = set; then
2615 enableval="$enable_debug_info"
2616
2617 if test "$enableval" = yes; then
2618 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2619 else
2620 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2621 fi
2622
2623else
2624
2625 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2626 if test "x$LINE" != x ; then
2627 eval "DEFAULT_$LINE"
2628 else
2629 no_cache=1
2630 fi
2631
2632 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2633
2634fi
2635
2636
2637 eval "$ac_cv_use_debug_info"
2638 if test "$no_cache" != 1; then
2639 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2640 fi
2641
2642 if test "$wxUSE_DEBUG_INFO" = yes; then
2643 echo "$ac_t""yes" 1>&6
2644 else
2645 echo "$ac_t""no" 1>&6
2646 fi
2647
2648
2649 enablestring=
2650 echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
2651echo "configure:2652: checking for --${enablestring:-enable}-debug_gdb" >&5
2652 no_cache=0
2653 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2654if test "${enable_debug_gdb+set}" = set; then
2655 enableval="$enable_debug_gdb"
2656
2657 if test "$enableval" = yes; then
2658 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2659 else
2660 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2661 fi
2662
2663else
2664
2665 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2666 if test "x$LINE" != x ; then
2667 eval "DEFAULT_$LINE"
2668 else
2669 no_cache=1
2670 fi
2671
2672 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2673
2674fi
2675
2676
2677 eval "$ac_cv_use_debug_gdb"
2678 if test "$no_cache" != 1; then
2679 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2680 fi
2681
2682 if test "$wxUSE_DEBUG_GDB" = yes; then
2683 echo "$ac_t""yes" 1>&6
2684 else
2685 echo "$ac_t""no" 1>&6
2686 fi
2687
2688
2689 enablestring=
2690 echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
2691echo "configure:2692: checking for --${enablestring:-enable}-debug_cntxt" >&5
2692 no_cache=0
2693 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2694if test "${enable_debug_cntxt+set}" = set; then
2695 enableval="$enable_debug_cntxt"
2696
2697 if test "$enableval" = yes; then
2698 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2699 else
2700 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2701 fi
2702
2703else
2704
2705 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2706 if test "x$LINE" != x ; then
2707 eval "DEFAULT_$LINE"
2708 else
2709 no_cache=1
2710 fi
2711
2712 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2713
2714fi
2715
2716
2717 eval "$ac_cv_use_debug_cntxt"
2718 if test "$no_cache" != 1; then
2719 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2720 fi
2721
2722 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2723 echo "$ac_t""yes" 1>&6
2724 else
2725 echo "$ac_t""no" 1>&6
2726 fi
2727
2728
2729 enablestring=
2730 echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
2731echo "configure:2732: checking for --${enablestring:-enable}-mem_tracing" >&5
2732 no_cache=0
2733 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2734if test "${enable_mem_tracing+set}" = set; then
2735 enableval="$enable_mem_tracing"
2736
2737 if test "$enableval" = yes; then
2738 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2739 else
2740 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2741 fi
2742
2743else
2744
2745 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2746 if test "x$LINE" != x ; then
2747 eval "DEFAULT_$LINE"
2748 else
2749 no_cache=1
2750 fi
2751
2752 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2753
2754fi
2755
2756
2757 eval "$ac_cv_use_mem_tracing"
2758 if test "$no_cache" != 1; then
2759 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2760 fi
2761
2762 if test "$wxUSE_MEM_TRACING" = yes; then
2763 echo "$ac_t""yes" 1>&6
2764 else
2765 echo "$ac_t""no" 1>&6
2766 fi
2767
2768
2769 enablestring=
2770 echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
2771echo "configure:2772: checking for --${enablestring:-enable}-profile" >&5
2772 no_cache=0
2773 # Check whether --enable-profile or --disable-profile was given.
2774if test "${enable_profile+set}" = set; then
2775 enableval="$enable_profile"
2776
2777 if test "$enableval" = yes; then
2778 ac_cv_use_profile='wxUSE_PROFILE=yes'
2779 else
2780 ac_cv_use_profile='wxUSE_PROFILE=no'
2781 fi
2782
2783else
2784
2785 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2786 if test "x$LINE" != x ; then
2787 eval "DEFAULT_$LINE"
2788 else
2789 no_cache=1
2790 fi
2791
2792 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2793
2794fi
2795
2796
2797 eval "$ac_cv_use_profile"
2798 if test "$no_cache" != 1; then
2799 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2800 fi
2801
2802 if test "$wxUSE_PROFILE" = yes; then
2803 echo "$ac_t""yes" 1>&6
2804 else
2805 echo "$ac_t""no" 1>&6
2806 fi
2807
2808
2809 enablestring=
2810 echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
2811echo "configure:2812: checking for --${enablestring:-enable}-no_rtti" >&5
2812 no_cache=0
2813 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2814if test "${enable_no_rtti+set}" = set; then
2815 enableval="$enable_no_rtti"
2816
2817 if test "$enableval" = yes; then
2818 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2819 else
2820 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2821 fi
2822
2823else
2824
2825 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2826 if test "x$LINE" != x ; then
2827 eval "DEFAULT_$LINE"
2828 else
2829 no_cache=1
2830 fi
2831
2832 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2833
2834fi
2835
2836
2837 eval "$ac_cv_use_no_rtti"
2838 if test "$no_cache" != 1; then
2839 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2840 fi
2841
2842 if test "$wxUSE_NO_RTTI" = yes; then
2843 echo "$ac_t""yes" 1>&6
2844 else
2845 echo "$ac_t""no" 1>&6
2846 fi
2847
2848
2849 enablestring=
2850 echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
2851echo "configure:2852: checking for --${enablestring:-enable}-no_exceptions" >&5
2852 no_cache=0
2853 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2854if test "${enable_no_exceptions+set}" = set; then
2855 enableval="$enable_no_exceptions"
2856
2857 if test "$enableval" = yes; then
2858 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2859 else
2860 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2861 fi
2862
2863else
2864
2865 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2866 if test "x$LINE" != x ; then
2867 eval "DEFAULT_$LINE"
2868 else
2869 no_cache=1
2870 fi
2871
2872 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2873
2874fi
2875
2876
2877 eval "$ac_cv_use_no_exceptions"
2878 if test "$no_cache" != 1; then
2879 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2880 fi
2881
2882 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2883 echo "$ac_t""yes" 1>&6
2884 else
2885 echo "$ac_t""no" 1>&6
2886 fi
2887
2888
2889 enablestring=
2890 echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
2891echo "configure:2892: checking for --${enablestring:-enable}-permissive" >&5
2892 no_cache=0
2893 # Check whether --enable-permissive or --disable-permissive was given.
2894if test "${enable_permissive+set}" = set; then
2895 enableval="$enable_permissive"
2896
2897 if test "$enableval" = yes; then
2898 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2899 else
2900 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2901 fi
2902
2903else
2904
2905 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2906 if test "x$LINE" != x ; then
2907 eval "DEFAULT_$LINE"
2908 else
2909 no_cache=1
2910 fi
2911
2912 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2913
2914fi
2915
2916
2917 eval "$ac_cv_use_permissive"
2918 if test "$no_cache" != 1; then
2919 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2920 fi
2921
2922 if test "$wxUSE_PERMISSIVE" = yes; then
2923 echo "$ac_t""yes" 1>&6
2924 else
2925 echo "$ac_t""no" 1>&6
2926 fi
2927
2928
2929 enablestring=
2930 echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
2931echo "configure:2932: checking for --${enablestring:-enable}-no_deps" >&5
2932 no_cache=0
2933 # Check whether --enable-no_deps or --disable-no_deps was given.
2934if test "${enable_no_deps+set}" = set; then
2935 enableval="$enable_no_deps"
2936
2937 if test "$enableval" = yes; then
2938 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2939 else
2940 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2941 fi
2942
2943else
2944
2945 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2946 if test "x$LINE" != x ; then
2947 eval "DEFAULT_$LINE"
2948 else
2949 no_cache=1
2950 fi
2951
2952 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2953
2954fi
2955
2956
2957 eval "$ac_cv_use_no_deps"
2958 if test "$no_cache" != 1; then
2959 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2960 fi
2961
2962 if test "$wxUSE_NO_DEPS" = yes; then
2963 echo "$ac_t""yes" 1>&6
2964 else
2965 echo "$ac_t""no" 1>&6
2966 fi
2967
2968
2969
2970 enablestring=
2971 echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
2972echo "configure:2973: checking for --${enablestring:-enable}-compat20" >&5
2973 no_cache=0
2974 # Check whether --enable-compat20 or --disable-compat20 was given.
2975if test "${enable_compat20+set}" = set; then
2976 enableval="$enable_compat20"
2977
2978 if test "$enableval" = yes; then
2979 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2980 else
2981 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2982 fi
2983
2984else
2985
2986 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2987 if test "x$LINE" != x ; then
2988 eval "DEFAULT_$LINE"
2989 else
2990 no_cache=1
2991 fi
2992
2993 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2994
2995fi
2996
2997
2998 eval "$ac_cv_use_compat20"
2999 if test "$no_cache" != 1; then
3000 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3001 fi
3002
3003 if test "$WXWIN_COMPATIBILITY_2" = yes; then
3004 echo "$ac_t""yes" 1>&6
3005 else
3006 echo "$ac_t""no" 1>&6
3007 fi
3008
3009
3010 enablestring=disable
3011 echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
3012echo "configure:3013: checking for --${enablestring:-enable}-compat22" >&5
3013 no_cache=0
3014 # Check whether --enable-compat22 or --disable-compat22 was given.
3015if test "${enable_compat22+set}" = set; then
3016 enableval="$enable_compat22"
3017
3018 if test "$enableval" = yes; then
3019 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3020 else
3021 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3022 fi
3023
3024else
3025
3026 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3027 if test "x$LINE" != x ; then
3028 eval "DEFAULT_$LINE"
3029 else
3030 no_cache=1
3031 fi
3032
3033 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3034
3035fi
3036
3037
3038 eval "$ac_cv_use_compat22"
3039 if test "$no_cache" != 1; then
3040 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3041 fi
3042
3043 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3044 echo "$ac_t""yes" 1>&6
3045 else
3046 echo "$ac_t""no" 1>&6
3047 fi
3048
3049
3050# Check whether --enable-rpath or --disable-rpath was given.
3051if test "${enable_rpath+set}" = set; then
3052 enableval="$enable_rpath"
3053 wxRPATH_DIR="$enableval"
3054fi
3055
3056
3057if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3058 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3059fi
3060
3061
3062
3063
3064 enablestring=
3065 echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
3066echo "configure:3067: checking for --${enablestring:-enable}-intl" >&5
3067 no_cache=0
3068 # Check whether --enable-intl or --disable-intl was given.
3069if test "${enable_intl+set}" = set; then
3070 enableval="$enable_intl"
3071
3072 if test "$enableval" = yes; then
3073 ac_cv_use_intl='wxUSE_INTL=yes'
3074 else
3075 ac_cv_use_intl='wxUSE_INTL=no'
3076 fi
3077
3078else
3079
3080 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3081 if test "x$LINE" != x ; then
3082 eval "DEFAULT_$LINE"
3083 else
3084 no_cache=1
3085 fi
3086
3087 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3088
3089fi
3090
3091
3092 eval "$ac_cv_use_intl"
3093 if test "$no_cache" != 1; then
3094 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3095 fi
3096
3097 if test "$wxUSE_INTL" = yes; then
3098 echo "$ac_t""yes" 1>&6
3099 else
3100 echo "$ac_t""no" 1>&6
3101 fi
3102
3103
3104 enablestring=
3105 echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
3106echo "configure:3107: checking for --${enablestring:-enable}-config" >&5
3107 no_cache=0
3108 # Check whether --enable-config or --disable-config was given.
3109if test "${enable_config+set}" = set; then
3110 enableval="$enable_config"
3111
3112 if test "$enableval" = yes; then
3113 ac_cv_use_config='wxUSE_CONFIG=yes'
3114 else
3115 ac_cv_use_config='wxUSE_CONFIG=no'
3116 fi
3117
3118else
3119
3120 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3121 if test "x$LINE" != x ; then
3122 eval "DEFAULT_$LINE"
3123 else
3124 no_cache=1
3125 fi
3126
3127 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3128
3129fi
3130
3131
3132 eval "$ac_cv_use_config"
3133 if test "$no_cache" != 1; then
3134 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3135 fi
3136
3137 if test "$wxUSE_CONFIG" = yes; then
3138 echo "$ac_t""yes" 1>&6
3139 else
3140 echo "$ac_t""no" 1>&6
3141 fi
3142
3143
3144
3145 enablestring=
3146 echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
3147echo "configure:3148: checking for --${enablestring:-enable}-protocols" >&5
3148 no_cache=0
3149 # Check whether --enable-protocols or --disable-protocols was given.
3150if test "${enable_protocols+set}" = set; then
3151 enableval="$enable_protocols"
3152
3153 if test "$enableval" = yes; then
3154 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3155 else
3156 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3157 fi
3158
3159else
3160
3161 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3162 if test "x$LINE" != x ; then
3163 eval "DEFAULT_$LINE"
3164 else
3165 no_cache=1
3166 fi
3167
3168 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3169
3170fi
3171
3172
3173 eval "$ac_cv_use_protocols"
3174 if test "$no_cache" != 1; then
3175 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3176 fi
3177
3178 if test "$wxUSE_PROTOCOL" = yes; then
3179 echo "$ac_t""yes" 1>&6
3180 else
3181 echo "$ac_t""no" 1>&6
3182 fi
3183
3184
3185 enablestring=
3186 echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
3187echo "configure:3188: checking for --${enablestring:-enable}-ftp" >&5
3188 no_cache=0
3189 # Check whether --enable-ftp or --disable-ftp was given.
3190if test "${enable_ftp+set}" = set; then
3191 enableval="$enable_ftp"
3192
3193 if test "$enableval" = yes; then
3194 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3195 else
3196 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3197 fi
3198
3199else
3200
3201 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3202 if test "x$LINE" != x ; then
3203 eval "DEFAULT_$LINE"
3204 else
3205 no_cache=1
3206 fi
3207
3208 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3209
3210fi
3211
3212
3213 eval "$ac_cv_use_ftp"
3214 if test "$no_cache" != 1; then
3215 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3216 fi
3217
3218 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3219 echo "$ac_t""yes" 1>&6
3220 else
3221 echo "$ac_t""no" 1>&6
3222 fi
3223
3224
3225 enablestring=
3226 echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
3227echo "configure:3228: checking for --${enablestring:-enable}-http" >&5
3228 no_cache=0
3229 # Check whether --enable-http or --disable-http was given.
3230if test "${enable_http+set}" = set; then
3231 enableval="$enable_http"
3232
3233 if test "$enableval" = yes; then
3234 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3235 else
3236 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3237 fi
3238
3239else
3240
3241 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3242 if test "x$LINE" != x ; then
3243 eval "DEFAULT_$LINE"
3244 else
3245 no_cache=1
3246 fi
3247
3248 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3249
3250fi
3251
3252
3253 eval "$ac_cv_use_http"
3254 if test "$no_cache" != 1; then
3255 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3256 fi
3257
3258 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3259 echo "$ac_t""yes" 1>&6
3260 else
3261 echo "$ac_t""no" 1>&6
3262 fi
3263
3264
3265 enablestring=
3266 echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
3267echo "configure:3268: checking for --${enablestring:-enable}-fileproto" >&5
3268 no_cache=0
3269 # Check whether --enable-fileproto or --disable-fileproto was given.
3270if test "${enable_fileproto+set}" = set; then
3271 enableval="$enable_fileproto"
3272
3273 if test "$enableval" = yes; then
3274 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3275 else
3276 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3277 fi
3278
3279else
3280
3281 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3282 if test "x$LINE" != x ; then
3283 eval "DEFAULT_$LINE"
3284 else
3285 no_cache=1
3286 fi
3287
3288 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3289
3290fi
3291
3292
3293 eval "$ac_cv_use_fileproto"
3294 if test "$no_cache" != 1; then
3295 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3296 fi
3297
3298 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3299 echo "$ac_t""yes" 1>&6
3300 else
3301 echo "$ac_t""no" 1>&6
3302 fi
3303
3304
3305 enablestring=
3306 echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
3307echo "configure:3308: checking for --${enablestring:-enable}-sockets" >&5
3308 no_cache=0
3309 # Check whether --enable-sockets or --disable-sockets was given.
3310if test "${enable_sockets+set}" = set; then
3311 enableval="$enable_sockets"
3312
3313 if test "$enableval" = yes; then
3314 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3315 else
3316 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3317 fi
3318
3319else
3320
3321 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3322 if test "x$LINE" != x ; then
3323 eval "DEFAULT_$LINE"
3324 else
3325 no_cache=1
3326 fi
3327
3328 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3329
3330fi
3331
3332
3333 eval "$ac_cv_use_sockets"
3334 if test "$no_cache" != 1; then
3335 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3336 fi
3337
3338 if test "$wxUSE_SOCKETS" = yes; then
3339 echo "$ac_t""yes" 1>&6
3340 else
3341 echo "$ac_t""no" 1>&6
3342 fi
3343
3344
3345 enablestring=
3346 echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
3347echo "configure:3348: checking for --${enablestring:-enable}-ole" >&5
3348 no_cache=0
3349 # Check whether --enable-ole or --disable-ole was given.
3350if test "${enable_ole+set}" = set; then
3351 enableval="$enable_ole"
3352
3353 if test "$enableval" = yes; then
3354 ac_cv_use_ole='wxUSE_OLE=yes'
3355 else
3356 ac_cv_use_ole='wxUSE_OLE=no'
3357 fi
3358
3359else
3360
3361 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3362 if test "x$LINE" != x ; then
3363 eval "DEFAULT_$LINE"
3364 else
3365 no_cache=1
3366 fi
3367
3368 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3369
3370fi
3371
3372
3373 eval "$ac_cv_use_ole"
3374 if test "$no_cache" != 1; then
3375 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3376 fi
3377
3378 if test "$wxUSE_OLE" = yes; then
3379 echo "$ac_t""yes" 1>&6
3380 else
3381 echo "$ac_t""no" 1>&6
3382 fi
3383
3384
3385 enablestring=
3386 echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
3387echo "configure:3388: checking for --${enablestring:-enable}-dataobj" >&5
3388 no_cache=0
3389 # Check whether --enable-dataobj or --disable-dataobj was given.
3390if test "${enable_dataobj+set}" = set; then
3391 enableval="$enable_dataobj"
3392
3393 if test "$enableval" = yes; then
3394 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3395 else
3396 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3397 fi
3398
3399else
3400
3401 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3402 if test "x$LINE" != x ; then
3403 eval "DEFAULT_$LINE"
3404 else
3405 no_cache=1
3406 fi
3407
3408 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3409
3410fi
3411
3412
3413 eval "$ac_cv_use_dataobj"
3414 if test "$no_cache" != 1; then
3415 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3416 fi
3417
3418 if test "$wxUSE_DATAOBJ" = yes; then
3419 echo "$ac_t""yes" 1>&6
3420 else
3421 echo "$ac_t""no" 1>&6
3422 fi
3423
3424
3425
3426 enablestring=
3427 echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
3428echo "configure:3429: checking for --${enablestring:-enable}-ipc" >&5
3429 no_cache=0
3430 # Check whether --enable-ipc or --disable-ipc was given.
3431if test "${enable_ipc+set}" = set; then
3432 enableval="$enable_ipc"
3433
3434 if test "$enableval" = yes; then
3435 ac_cv_use_ipc='wxUSE_IPC=yes'
3436 else
3437 ac_cv_use_ipc='wxUSE_IPC=no'
3438 fi
3439
3440else
3441
3442 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3443 if test "x$LINE" != x ; then
3444 eval "DEFAULT_$LINE"
3445 else
3446 no_cache=1
3447 fi
3448
3449 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3450
3451fi
3452
3453
3454 eval "$ac_cv_use_ipc"
3455 if test "$no_cache" != 1; then
3456 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3457 fi
3458
3459 if test "$wxUSE_IPC" = yes; then
3460 echo "$ac_t""yes" 1>&6
3461 else
3462 echo "$ac_t""no" 1>&6
3463 fi
3464
3465
3466
3467 enablestring=
3468 echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
3469echo "configure:3470: checking for --${enablestring:-enable}-cmdline" >&5
3470 no_cache=0
3471 # Check whether --enable-cmdline or --disable-cmdline was given.
3472if test "${enable_cmdline+set}" = set; then
3473 enableval="$enable_cmdline"
3474
3475 if test "$enableval" = yes; then
3476 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3477 else
3478 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3479 fi
3480
3481else
3482
3483 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3484 if test "x$LINE" != x ; then
3485 eval "DEFAULT_$LINE"
3486 else
3487 no_cache=1
3488 fi
3489
3490 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3491
3492fi
3493
3494
3495 eval "$ac_cv_use_cmdline"
3496 if test "$no_cache" != 1; then
3497 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3498 fi
3499
3500 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3501 echo "$ac_t""yes" 1>&6
3502 else
3503 echo "$ac_t""no" 1>&6
3504 fi
3505
3506
3507 enablestring=
3508 echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
3509echo "configure:3510: checking for --${enablestring:-enable}-datetime" >&5
3510 no_cache=0
3511 # Check whether --enable-datetime or --disable-datetime was given.
3512if test "${enable_datetime+set}" = set; then
3513 enableval="$enable_datetime"
3514
3515 if test "$enableval" = yes; then
3516 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3517 else
3518 ac_cv_use_datetime='wxUSE_DATETIME=no'
3519 fi
3520
3521else
3522
3523 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3524 if test "x$LINE" != x ; then
3525 eval "DEFAULT_$LINE"
3526 else
3527 no_cache=1
3528 fi
3529
3530 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3531
3532fi
3533
3534
3535 eval "$ac_cv_use_datetime"
3536 if test "$no_cache" != 1; then
3537 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3538 fi
3539
3540 if test "$wxUSE_DATETIME" = yes; then
3541 echo "$ac_t""yes" 1>&6
3542 else
3543 echo "$ac_t""no" 1>&6
3544 fi
3545
3546
3547 enablestring=
3548 echo $ac_n "checking for --${enablestring:-enable}-timedate""... $ac_c" 1>&6
3549echo "configure:3550: checking for --${enablestring:-enable}-timedate" >&5
3550 no_cache=0
3551 # Check whether --enable-timedate or --disable-timedate was given.
3552if test "${enable_timedate+set}" = set; then
3553 enableval="$enable_timedate"
3554
3555 if test "$enableval" = yes; then
3556 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3557 else
3558 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3559 fi
3560
3561else
3562
3563 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3564 if test "x$LINE" != x ; then
3565 eval "DEFAULT_$LINE"
3566 else
3567 no_cache=1
3568 fi
3569
3570 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3571
3572fi
3573
3574
3575 eval "$ac_cv_use_timedate"
3576 if test "$no_cache" != 1; then
3577 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3578 fi
3579
3580 if test "$wxUSE_TIMEDATE" = yes; then
3581 echo "$ac_t""yes" 1>&6
3582 else
3583 echo "$ac_t""no" 1>&6
3584 fi
3585
3586
3587 enablestring=
3588 echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
3589echo "configure:3590: checking for --${enablestring:-enable}-stopwatch" >&5
3590 no_cache=0
3591 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3592if test "${enable_stopwatch+set}" = set; then
3593 enableval="$enable_stopwatch"
3594
3595 if test "$enableval" = yes; then
3596 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3597 else
3598 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3599 fi
3600
3601else
3602
3603 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3604 if test "x$LINE" != x ; then
3605 eval "DEFAULT_$LINE"
3606 else
3607 no_cache=1
3608 fi
3609
3610 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3611
3612fi
3613
3614
3615 eval "$ac_cv_use_stopwatch"
3616 if test "$no_cache" != 1; then
3617 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3618 fi
3619
3620 if test "$wxUSE_STOPWATCH" = yes; then
3621 echo "$ac_t""yes" 1>&6
3622 else
3623 echo "$ac_t""no" 1>&6
3624 fi
3625
3626
3627 enablestring=
3628 echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
3629echo "configure:3630: checking for --${enablestring:-enable}-dialupman" >&5
3630 no_cache=0
3631 # Check whether --enable-dialupman or --disable-dialupman was given.
3632if test "${enable_dialupman+set}" = set; then
3633 enableval="$enable_dialupman"
3634
3635 if test "$enableval" = yes; then
3636 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3637 else
3638 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3639 fi
3640
3641else
3642
3643 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3644 if test "x$LINE" != x ; then
3645 eval "DEFAULT_$LINE"
3646 else
3647 no_cache=1
3648 fi
3649
3650 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3651
3652fi
3653
3654
3655 eval "$ac_cv_use_dialupman"
3656 if test "$no_cache" != 1; then
3657 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3658 fi
3659
3660 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3661 echo "$ac_t""yes" 1>&6
3662 else
3663 echo "$ac_t""no" 1>&6
3664 fi
3665
3666
3667 enablestring=
3668 echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
3669echo "configure:3670: checking for --${enablestring:-enable}-apple_ieee" >&5
3670 no_cache=0
3671 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3672if test "${enable_apple_ieee+set}" = set; then
3673 enableval="$enable_apple_ieee"
3674
3675 if test "$enableval" = yes; then
3676 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3677 else
3678 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3679 fi
3680
3681else
3682
3683 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3684 if test "x$LINE" != x ; then
3685 eval "DEFAULT_$LINE"
3686 else
3687 no_cache=1
3688 fi
3689
3690 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3691
3692fi
3693
3694
3695 eval "$ac_cv_use_apple_ieee"
3696 if test "$no_cache" != 1; then
3697 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3698 fi
3699
3700 if test "$wxUSE_APPLE_IEEE" = yes; then
3701 echo "$ac_t""yes" 1>&6
3702 else
3703 echo "$ac_t""no" 1>&6
3704 fi
3705
3706
3707 enablestring=
3708 echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
3709echo "configure:3710: checking for --${enablestring:-enable}-timer" >&5
3710 no_cache=0
3711 # Check whether --enable-timer or --disable-timer was given.
3712if test "${enable_timer+set}" = set; then
3713 enableval="$enable_timer"
3714
3715 if test "$enableval" = yes; then
3716 ac_cv_use_timer='wxUSE_TIMER=yes'
3717 else
3718 ac_cv_use_timer='wxUSE_TIMER=no'
3719 fi
3720
3721else
3722
3723 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3724 if test "x$LINE" != x ; then
3725 eval "DEFAULT_$LINE"
3726 else
3727 no_cache=1
3728 fi
3729
3730 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3731
3732fi
3733
3734
3735 eval "$ac_cv_use_timer"
3736 if test "$no_cache" != 1; then
3737 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3738 fi
3739
3740 if test "$wxUSE_TIMER" = yes; then
3741 echo "$ac_t""yes" 1>&6
3742 else
3743 echo "$ac_t""no" 1>&6
3744 fi
3745
3746
3747 enablestring=
3748 echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
3749echo "configure:3750: checking for --${enablestring:-enable}-wave" >&5
3750 no_cache=0
3751 # Check whether --enable-wave or --disable-wave was given.
3752if test "${enable_wave+set}" = set; then
3753 enableval="$enable_wave"
3754
3755 if test "$enableval" = yes; then
3756 ac_cv_use_wave='wxUSE_WAVE=yes'
3757 else
3758 ac_cv_use_wave='wxUSE_WAVE=no'
3759 fi
3760
3761else
3762
3763 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3764 if test "x$LINE" != x ; then
3765 eval "DEFAULT_$LINE"
3766 else
3767 no_cache=1
3768 fi
3769
3770 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3771
3772fi
3773
3774
3775 eval "$ac_cv_use_wave"
3776 if test "$no_cache" != 1; then
3777 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3778 fi
3779
3780 if test "$wxUSE_WAVE" = yes; then
3781 echo "$ac_t""yes" 1>&6
3782 else
3783 echo "$ac_t""no" 1>&6
3784 fi
3785
3786
3787 enablestring=
3788 echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
3789echo "configure:3790: checking for --${enablestring:-enable}-fraction" >&5
3790 no_cache=0
3791 # Check whether --enable-fraction or --disable-fraction was given.
3792if test "${enable_fraction+set}" = set; then
3793 enableval="$enable_fraction"
3794
3795 if test "$enableval" = yes; then
3796 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3797 else
3798 ac_cv_use_fraction='wxUSE_FRACTION=no'
3799 fi
3800
3801else
3802
3803 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3804 if test "x$LINE" != x ; then
3805 eval "DEFAULT_$LINE"
3806 else
3807 no_cache=1
3808 fi
3809
3810 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3811
3812fi
3813
3814
3815 eval "$ac_cv_use_fraction"
3816 if test "$no_cache" != 1; then
3817 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3818 fi
3819
3820 if test "$wxUSE_FRACTION" = yes; then
3821 echo "$ac_t""yes" 1>&6
3822 else
3823 echo "$ac_t""no" 1>&6
3824 fi
3825
3826
3827 enablestring=
3828 echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
3829echo "configure:3830: checking for --${enablestring:-enable}-dynlib" >&5
3830 no_cache=0
3831 # Check whether --enable-dynlib or --disable-dynlib was given.
3832if test "${enable_dynlib+set}" = set; then
3833 enableval="$enable_dynlib"
3834
3835 if test "$enableval" = yes; then
3836 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3837 else
3838 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3839 fi
3840
3841else
3842
3843 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3844 if test "x$LINE" != x ; then
3845 eval "DEFAULT_$LINE"
3846 else
3847 no_cache=1
3848 fi
3849
3850 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3851
3852fi
3853
3854
3855 eval "$ac_cv_use_dynlib"
3856 if test "$no_cache" != 1; then
3857 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3858 fi
3859
3860 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3861 echo "$ac_t""yes" 1>&6
3862 else
3863 echo "$ac_t""no" 1>&6
3864 fi
3865
3866
3867 enablestring=
3868 echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
3869echo "configure:3870: checking for --${enablestring:-enable}-dynamicloader" >&5
3870 no_cache=0
3871 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3872if test "${enable_dynamicloader+set}" = set; then
3873 enableval="$enable_dynamicloader"
3874
3875 if test "$enableval" = yes; then
3876 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3877 else
3878 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3879 fi
3880
3881else
3882
3883 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3884 if test "x$LINE" != x ; then
3885 eval "DEFAULT_$LINE"
3886 else
3887 no_cache=1
3888 fi
3889
3890 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3891
3892fi
3893
3894
3895 eval "$ac_cv_use_dynamicloader"
3896 if test "$no_cache" != 1; then
3897 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3898 fi
3899
3900 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3901 echo "$ac_t""yes" 1>&6
3902 else
3903 echo "$ac_t""no" 1>&6
3904 fi
3905
3906
3907 enablestring=
3908 echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
3909echo "configure:3910: checking for --${enablestring:-enable}-longlong" >&5
3910 no_cache=0
3911 # Check whether --enable-longlong or --disable-longlong was given.
3912if test "${enable_longlong+set}" = set; then
3913 enableval="$enable_longlong"
3914
3915 if test "$enableval" = yes; then
3916 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3917 else
3918 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3919 fi
3920
3921else
3922
3923 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3924 if test "x$LINE" != x ; then
3925 eval "DEFAULT_$LINE"
3926 else
3927 no_cache=1
3928 fi
3929
3930 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3931
3932fi
3933
3934
3935 eval "$ac_cv_use_longlong"
3936 if test "$no_cache" != 1; then
3937 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3938 fi
3939
3940 if test "$wxUSE_LONGLONG" = yes; then
3941 echo "$ac_t""yes" 1>&6
3942 else
3943 echo "$ac_t""no" 1>&6
3944 fi
3945
3946
3947 enablestring=
3948 echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
3949echo "configure:3950: checking for --${enablestring:-enable}-geometry" >&5
3950 no_cache=0
3951 # Check whether --enable-geometry or --disable-geometry was given.
3952if test "${enable_geometry+set}" = set; then
3953 enableval="$enable_geometry"
3954
3955 if test "$enableval" = yes; then
3956 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3957 else
3958 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3959 fi
3960
3961else
3962
3963 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3964 if test "x$LINE" != x ; then
3965 eval "DEFAULT_$LINE"
3966 else
3967 no_cache=1
3968 fi
3969
3970 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3971
3972fi
3973
3974
3975 eval "$ac_cv_use_geometry"
3976 if test "$no_cache" != 1; then
3977 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3978 fi
3979
3980 if test "$wxUSE_GEOMETRY" = yes; then
3981 echo "$ac_t""yes" 1>&6
3982 else
3983 echo "$ac_t""no" 1>&6
3984 fi
3985
3986
3987 enablestring=
3988 echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
3989echo "configure:3990: checking for --${enablestring:-enable}-log" >&5
3990 no_cache=0
3991 # Check whether --enable-log or --disable-log was given.
3992if test "${enable_log+set}" = set; then
3993 enableval="$enable_log"
3994
3995 if test "$enableval" = yes; then
3996 ac_cv_use_log='wxUSE_LOG=yes'
3997 else
3998 ac_cv_use_log='wxUSE_LOG=no'
3999 fi
4000
4001else
4002
4003 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4004 if test "x$LINE" != x ; then
4005 eval "DEFAULT_$LINE"
4006 else
4007 no_cache=1
4008 fi
4009
4010 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4011
4012fi
4013
4014
4015 eval "$ac_cv_use_log"
4016 if test "$no_cache" != 1; then
4017 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4018 fi
4019
4020 if test "$wxUSE_LOG" = yes; then
4021 echo "$ac_t""yes" 1>&6
4022 else
4023 echo "$ac_t""no" 1>&6
4024 fi
4025
4026
4027 enablestring=
4028 echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
4029echo "configure:4030: checking for --${enablestring:-enable}-streams" >&5
4030 no_cache=0
4031 # Check whether --enable-streams or --disable-streams was given.
4032if test "${enable_streams+set}" = set; then
4033 enableval="$enable_streams"
4034
4035 if test "$enableval" = yes; then
4036 ac_cv_use_streams='wxUSE_STREAMS=yes'
4037 else
4038 ac_cv_use_streams='wxUSE_STREAMS=no'
4039 fi
4040
4041else
4042
4043 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4044 if test "x$LINE" != x ; then
4045 eval "DEFAULT_$LINE"
4046 else
4047 no_cache=1
4048 fi
4049
4050 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
4051
4052fi
4053
4054
4055 eval "$ac_cv_use_streams"
4056 if test "$no_cache" != 1; then
4057 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4058 fi
4059
4060 if test "$wxUSE_STREAMS" = yes; then
4061 echo "$ac_t""yes" 1>&6
4062 else
4063 echo "$ac_t""no" 1>&6
4064 fi
4065
4066
4067 enablestring=
4068 echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
4069echo "configure:4070: checking for --${enablestring:-enable}-file" >&5
4070 no_cache=0
4071 # Check whether --enable-file or --disable-file was given.
4072if test "${enable_file+set}" = set; then
4073 enableval="$enable_file"
4074
4075 if test "$enableval" = yes; then
4076 ac_cv_use_file='wxUSE_FILE=yes'
4077 else
4078 ac_cv_use_file='wxUSE_FILE=no'
4079 fi
4080
4081else
4082
4083 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4084 if test "x$LINE" != x ; then
4085 eval "DEFAULT_$LINE"
4086 else
4087 no_cache=1
4088 fi
4089
4090 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4091
4092fi
4093
4094
4095 eval "$ac_cv_use_file"
4096 if test "$no_cache" != 1; then
4097 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4098 fi
4099
4100 if test "$wxUSE_FILE" = yes; then
4101 echo "$ac_t""yes" 1>&6
4102 else
4103 echo "$ac_t""no" 1>&6
4104 fi
4105
4106
4107 enablestring=
4108 echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
4109echo "configure:4110: checking for --${enablestring:-enable}-ffile" >&5
4110 no_cache=0
4111 # Check whether --enable-ffile or --disable-ffile was given.
4112if test "${enable_ffile+set}" = set; then
4113 enableval="$enable_ffile"
4114
4115 if test "$enableval" = yes; then
4116 ac_cv_use_ffile='wxUSE_FFILE=yes'
4117 else
4118 ac_cv_use_ffile='wxUSE_FFILE=no'
4119 fi
4120
4121else
4122
4123 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4124 if test "x$LINE" != x ; then
4125 eval "DEFAULT_$LINE"
4126 else
4127 no_cache=1
4128 fi
4129
4130 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4131
4132fi
4133
4134
4135 eval "$ac_cv_use_ffile"
4136 if test "$no_cache" != 1; then
4137 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4138 fi
4139
4140 if test "$wxUSE_FFILE" = yes; then
4141 echo "$ac_t""yes" 1>&6
4142 else
4143 echo "$ac_t""no" 1>&6
4144 fi
4145
4146
4147 enablestring=
4148 echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
4149echo "configure:4150: checking for --${enablestring:-enable}-textbuf" >&5
4150 no_cache=0
4151 # Check whether --enable-textbuf or --disable-textbuf was given.
4152if test "${enable_textbuf+set}" = set; then
4153 enableval="$enable_textbuf"
4154
4155 if test "$enableval" = yes; then
4156 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4157 else
4158 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4159 fi
4160
4161else
4162
4163 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4164 if test "x$LINE" != x ; then
4165 eval "DEFAULT_$LINE"
4166 else
4167 no_cache=1
4168 fi
4169
4170 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4171
4172fi
4173
4174
4175 eval "$ac_cv_use_textbuf"
4176 if test "$no_cache" != 1; then
4177 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4178 fi
4179
4180 if test "$wxUSE_TEXTBUFFER" = yes; then
4181 echo "$ac_t""yes" 1>&6
4182 else
4183 echo "$ac_t""no" 1>&6
4184 fi
4185
4186
4187 enablestring=
4188 echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
4189echo "configure:4190: checking for --${enablestring:-enable}-textfile" >&5
4190 no_cache=0
4191 # Check whether --enable-textfile or --disable-textfile was given.
4192if test "${enable_textfile+set}" = set; then
4193 enableval="$enable_textfile"
4194
4195 if test "$enableval" = yes; then
4196 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4197 else
4198 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4199 fi
4200
4201else
4202
4203 LINE=`grep "wxUSE_TEXTFILE" ${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_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4211
4212fi
4213
4214
4215 eval "$ac_cv_use_textfile"
4216 if test "$no_cache" != 1; then
4217 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4218 fi
4219
4220 if test "$wxUSE_TEXTFILE" = yes; then
4221 echo "$ac_t""yes" 1>&6
4222 else
4223 echo "$ac_t""no" 1>&6
4224 fi
4225
4226
4227 enablestring=
4228 echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
4229echo "configure:4230: checking for --${enablestring:-enable}-fontmap" >&5
4230 no_cache=0
4231 # Check whether --enable-fontmap or --disable-fontmap was given.
4232if test "${enable_fontmap+set}" = set; then
4233 enableval="$enable_fontmap"
4234
4235 if test "$enableval" = yes; then
4236 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4237 else
4238 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4239 fi
4240
4241else
4242
4243 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4244 if test "x$LINE" != x ; then
4245 eval "DEFAULT_$LINE"
4246 else
4247 no_cache=1
4248 fi
4249
4250 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4251
4252fi
4253
4254
4255 eval "$ac_cv_use_fontmap"
4256 if test "$no_cache" != 1; then
4257 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4258 fi
4259
4260 if test "$wxUSE_FONTMAP" = yes; then
4261 echo "$ac_t""yes" 1>&6
4262 else
4263 echo "$ac_t""no" 1>&6
4264 fi
4265
4266
4267 enablestring=
4268 echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
4269echo "configure:4270: checking for --${enablestring:-enable}-unicode" >&5
4270 no_cache=0
4271 # Check whether --enable-unicode or --disable-unicode was given.
4272if test "${enable_unicode+set}" = set; then
4273 enableval="$enable_unicode"
4274
4275 if test "$enableval" = yes; then
4276 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4277 else
4278 ac_cv_use_unicode='wxUSE_UNICODE=no'
4279 fi
4280
4281else
4282
4283 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4284 if test "x$LINE" != x ; then
4285 eval "DEFAULT_$LINE"
4286 else
4287 no_cache=1
4288 fi
4289
4290 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4291
4292fi
4293
4294
4295 eval "$ac_cv_use_unicode"
4296 if test "$no_cache" != 1; then
4297 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4298 fi
4299
4300 if test "$wxUSE_UNICODE" = yes; then
4301 echo "$ac_t""yes" 1>&6
4302 else
4303 echo "$ac_t""no" 1>&6
4304 fi
4305
4306
4307 enablestring=
4308 echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
4309echo "configure:4310: checking for --${enablestring:-enable}-mslu" >&5
4310 no_cache=0
4311 # Check whether --enable-mslu or --disable-mslu was given.
4312if test "${enable_mslu+set}" = set; then
4313 enableval="$enable_mslu"
4314
4315 if test "$enableval" = yes; then
4316 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4317 else
4318 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4319 fi
4320
4321else
4322
4323 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4324 if test "x$LINE" != x ; then
4325 eval "DEFAULT_$LINE"
4326 else
4327 no_cache=1
4328 fi
4329
4330 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4331
4332fi
4333
4334
4335 eval "$ac_cv_use_mslu"
4336 if test "$no_cache" != 1; then
4337 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4338 fi
4339
4340 if test "$wxUSE_UNICODE_MSLU" = yes; then
4341 echo "$ac_t""yes" 1>&6
4342 else
4343 echo "$ac_t""no" 1>&6
4344 fi
4345
4346
4347 enablestring=
4348 echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
4349echo "configure:4350: checking for --${enablestring:-enable}-wxprintfv" >&5
4350 no_cache=0
4351 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4352if test "${enable_wxprintfv+set}" = set; then
4353 enableval="$enable_wxprintfv"
4354
4355 if test "$enableval" = yes; then
4356 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4357 else
4358 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4359 fi
4360
4361else
4362
4363 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4364 if test "x$LINE" != x ; then
4365 eval "DEFAULT_$LINE"
4366 else
4367 no_cache=1
4368 fi
4369
4370 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4371
4372fi
4373
4374
4375 eval "$ac_cv_use_wxprintfv"
4376 if test "$no_cache" != 1; then
4377 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4378 fi
4379
4380 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4381 echo "$ac_t""yes" 1>&6
4382 else
4383 echo "$ac_t""no" 1>&6
4384 fi
4385
4386
4387 enablestring=
4388 echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
4389echo "configure:4390: checking for --${enablestring:-enable}-std_iostreams" >&5
4390 no_cache=0
4391 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4392if test "${enable_std_iostreams+set}" = set; then
4393 enableval="$enable_std_iostreams"
4394
4395 if test "$enableval" = yes; then
4396 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4397 else
4398 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4399 fi
4400
4401else
4402
4403 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4404 if test "x$LINE" != x ; then
4405 eval "DEFAULT_$LINE"
4406 else
4407 no_cache=1
4408 fi
4409
4410 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4411
4412fi
4413
4414
4415 eval "$ac_cv_use_std_iostreams"
4416 if test "$no_cache" != 1; then
4417 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4418 fi
4419
4420 if test "$wxUSE_STD_IOSTREAM" = yes; then
4421 echo "$ac_t""yes" 1>&6
4422 else
4423 echo "$ac_t""no" 1>&6
4424 fi
4425
4426
4427 enablestring=
4428 echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
4429echo "configure:4430: checking for --${enablestring:-enable}-filesystem" >&5
4430 no_cache=0
4431 # Check whether --enable-filesystem or --disable-filesystem was given.
4432if test "${enable_filesystem+set}" = set; then
4433 enableval="$enable_filesystem"
4434
4435 if test "$enableval" = yes; then
4436 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4437 else
4438 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4439 fi
4440
4441else
4442
4443 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4444 if test "x$LINE" != x ; then
4445 eval "DEFAULT_$LINE"
4446 else
4447 no_cache=1
4448 fi
4449
4450 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4451
4452fi
4453
4454
4455 eval "$ac_cv_use_filesystem"
4456 if test "$no_cache" != 1; then
4457 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4458 fi
4459
4460 if test "$wxUSE_FILESYSTEM" = yes; then
4461 echo "$ac_t""yes" 1>&6
4462 else
4463 echo "$ac_t""no" 1>&6
4464 fi
4465
4466
4467 enablestring=
4468 echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
4469echo "configure:4470: checking for --${enablestring:-enable}-fs_inet" >&5
4470 no_cache=0
4471 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4472if test "${enable_fs_inet+set}" = set; then
4473 enableval="$enable_fs_inet"
4474
4475 if test "$enableval" = yes; then
4476 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4477 else
4478 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4479 fi
4480
4481else
4482
4483 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4484 if test "x$LINE" != x ; then
4485 eval "DEFAULT_$LINE"
4486 else
4487 no_cache=1
4488 fi
4489
4490 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4491
4492fi
4493
4494
4495 eval "$ac_cv_use_fs_inet"
4496 if test "$no_cache" != 1; then
4497 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4498 fi
4499
4500 if test "$wxUSE_FS_INET" = yes; then
4501 echo "$ac_t""yes" 1>&6
4502 else
4503 echo "$ac_t""no" 1>&6
4504 fi
4505
4506
4507 enablestring=
4508 echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
4509echo "configure:4510: checking for --${enablestring:-enable}-fs_zip" >&5
4510 no_cache=0
4511 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4512if test "${enable_fs_zip+set}" = set; then
4513 enableval="$enable_fs_zip"
4514
4515 if test "$enableval" = yes; then
4516 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4517 else
4518 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4519 fi
4520
4521else
4522
4523 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4524 if test "x$LINE" != x ; then
4525 eval "DEFAULT_$LINE"
4526 else
4527 no_cache=1
4528 fi
4529
4530 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4531
4532fi
4533
4534
4535 eval "$ac_cv_use_fs_zip"
4536 if test "$no_cache" != 1; then
4537 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4538 fi
4539
4540 if test "$wxUSE_FS_ZIP" = yes; then
4541 echo "$ac_t""yes" 1>&6
4542 else
4543 echo "$ac_t""no" 1>&6
4544 fi
4545
4546
4547 enablestring=
4548 echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
4549echo "configure:4550: checking for --${enablestring:-enable}-zipstream" >&5
4550 no_cache=0
4551 # Check whether --enable-zipstream or --disable-zipstream was given.
4552if test "${enable_zipstream+set}" = set; then
4553 enableval="$enable_zipstream"
4554
4555 if test "$enableval" = yes; then
4556 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4557 else
4558 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4559 fi
4560
4561else
4562
4563 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4564 if test "x$LINE" != x ; then
4565 eval "DEFAULT_$LINE"
4566 else
4567 no_cache=1
4568 fi
4569
4570 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4571
4572fi
4573
4574
4575 eval "$ac_cv_use_zipstream"
4576 if test "$no_cache" != 1; then
4577 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4578 fi
4579
4580 if test "$wxUSE_ZIPSTREAM" = yes; then
4581 echo "$ac_t""yes" 1>&6
4582 else
4583 echo "$ac_t""no" 1>&6
4584 fi
4585
4586
4587
4588 enablestring=
4589 echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
4590echo "configure:4591: checking for --${enablestring:-enable}-catch_segvs" >&5
4591 no_cache=0
4592 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4593if test "${enable_catch_segvs+set}" = set; then
4594 enableval="$enable_catch_segvs"
4595
4596 if test "$enableval" = yes; then
4597 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4598 else
4599 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4600 fi
4601
4602else
4603
4604 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4605 if test "x$LINE" != x ; then
4606 eval "DEFAULT_$LINE"
4607 else
4608 no_cache=1
4609 fi
4610
4611 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4612
4613fi
4614
4615
4616 eval "$ac_cv_use_catch_segvs"
4617 if test "$no_cache" != 1; then
4618 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4619 fi
4620
4621 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4622 echo "$ac_t""yes" 1>&6
4623 else
4624 echo "$ac_t""no" 1>&6
4625 fi
4626
4627
4628 enablestring=
4629 echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
4630echo "configure:4631: checking for --${enablestring:-enable}-snglinst" >&5
4631 no_cache=0
4632 # Check whether --enable-snglinst or --disable-snglinst was given.
4633if test "${enable_snglinst+set}" = set; then
4634 enableval="$enable_snglinst"
4635
4636 if test "$enableval" = yes; then
4637 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4638 else
4639 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4640 fi
4641
4642else
4643
4644 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4645 if test "x$LINE" != x ; then
4646 eval "DEFAULT_$LINE"
4647 else
4648 no_cache=1
4649 fi
4650
4651 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4652
4653fi
4654
4655
4656 eval "$ac_cv_use_snglinst"
4657 if test "$no_cache" != 1; then
4658 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4659 fi
4660
4661 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4662 echo "$ac_t""yes" 1>&6
4663 else
4664 echo "$ac_t""no" 1>&6
4665 fi
4666
4667
4668
4669 enablestring=
4670 echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
4671echo "configure:4672: checking for --${enablestring:-enable}-mimetype" >&5
4672 no_cache=0
4673 # Check whether --enable-mimetype or --disable-mimetype was given.
4674if test "${enable_mimetype+set}" = set; then
4675 enableval="$enable_mimetype"
4676
4677 if test "$enableval" = yes; then
4678 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4679 else
4680 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4681 fi
4682
4683else
4684
4685 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4686 if test "x$LINE" != x ; then
4687 eval "DEFAULT_$LINE"
4688 else
4689 no_cache=1
4690 fi
4691
4692 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4693
4694fi
4695
4696
4697 eval "$ac_cv_use_mimetype"
4698 if test "$no_cache" != 1; then
4699 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4700 fi
4701
4702 if test "$wxUSE_MIMETYPE" = yes; then
4703 echo "$ac_t""yes" 1>&6
4704 else
4705 echo "$ac_t""no" 1>&6
4706 fi
4707
4708
4709 enablestring=
4710 echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
4711echo "configure:4712: checking for --${enablestring:-enable}-system_options" >&5
4712 no_cache=0
4713 # Check whether --enable-system_options or --disable-system_options was given.
4714if test "${enable_system_options+set}" = set; then
4715 enableval="$enable_system_options"
4716
4717 if test "$enableval" = yes; then
4718 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4719 else
4720 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4721 fi
4722
4723else
4724
4725 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4726 if test "x$LINE" != x ; then
4727 eval "DEFAULT_$LINE"
4728 else
4729 no_cache=1
4730 fi
4731
4732 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4733
4734fi
4735
4736
4737 eval "$ac_cv_use_system_options"
4738 if test "$no_cache" != 1; then
4739 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4740 fi
4741
4742 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4743 echo "$ac_t""yes" 1>&6
4744 else
4745 echo "$ac_t""no" 1>&6
4746 fi
4747
4748
4749
4750 enablestring=
4751 echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
4752echo "configure:4753: checking for --${enablestring:-enable}-url" >&5
4753 no_cache=0
4754 # Check whether --enable-url or --disable-url was given.
4755if test "${enable_url+set}" = set; then
4756 enableval="$enable_url"
4757
4758 if test "$enableval" = yes; then
4759 ac_cv_use_url='wxUSE_URL=yes'
4760 else
4761 ac_cv_use_url='wxUSE_URL=no'
4762 fi
4763
4764else
4765
4766 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4767 if test "x$LINE" != x ; then
4768 eval "DEFAULT_$LINE"
4769 else
4770 no_cache=1
4771 fi
4772
4773 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4774
4775fi
4776
4777
4778 eval "$ac_cv_use_url"
4779 if test "$no_cache" != 1; then
4780 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4781 fi
4782
4783 if test "$wxUSE_URL" = yes; then
4784 echo "$ac_t""yes" 1>&6
4785 else
4786 echo "$ac_t""no" 1>&6
4787 fi
4788
4789
4790 enablestring=
4791 echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
4792echo "configure:4793: checking for --${enablestring:-enable}-protocol" >&5
4793 no_cache=0
4794 # Check whether --enable-protocol or --disable-protocol was given.
4795if test "${enable_protocol+set}" = set; then
4796 enableval="$enable_protocol"
4797
4798 if test "$enableval" = yes; then
4799 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4800 else
4801 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4802 fi
4803
4804else
4805
4806 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4807 if test "x$LINE" != x ; then
4808 eval "DEFAULT_$LINE"
4809 else
4810 no_cache=1
4811 fi
4812
4813 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4814
4815fi
4816
4817
4818 eval "$ac_cv_use_protocol"
4819 if test "$no_cache" != 1; then
4820 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4821 fi
4822
4823 if test "$wxUSE_PROTOCOL" = yes; then
4824 echo "$ac_t""yes" 1>&6
4825 else
4826 echo "$ac_t""no" 1>&6
4827 fi
4828
4829
4830 enablestring=
4831 echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
4832echo "configure:4833: checking for --${enablestring:-enable}-protocol_http" >&5
4833 no_cache=0
4834 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4835if test "${enable_protocol_http+set}" = set; then
4836 enableval="$enable_protocol_http"
4837
4838 if test "$enableval" = yes; then
4839 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4840 else
4841 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4842 fi
4843
4844else
4845
4846 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4847 if test "x$LINE" != x ; then
4848 eval "DEFAULT_$LINE"
4849 else
4850 no_cache=1
4851 fi
4852
4853 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4854
4855fi
4856
4857
4858 eval "$ac_cv_use_protocol_http"
4859 if test "$no_cache" != 1; then
4860 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4861 fi
4862
4863 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4864 echo "$ac_t""yes" 1>&6
4865 else
4866 echo "$ac_t""no" 1>&6
4867 fi
4868
4869
4870 enablestring=
4871 echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
4872echo "configure:4873: checking for --${enablestring:-enable}-protocol_ftp" >&5
4873 no_cache=0
4874 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4875if test "${enable_protocol_ftp+set}" = set; then
4876 enableval="$enable_protocol_ftp"
4877
4878 if test "$enableval" = yes; then
4879 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4880 else
4881 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4882 fi
4883
4884else
4885
4886 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4887 if test "x$LINE" != x ; then
4888 eval "DEFAULT_$LINE"
4889 else
4890 no_cache=1
4891 fi
4892
4893 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4894
4895fi
4896
4897
4898 eval "$ac_cv_use_protocol_ftp"
4899 if test "$no_cache" != 1; then
4900 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4901 fi
4902
4903 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4904 echo "$ac_t""yes" 1>&6
4905 else
4906 echo "$ac_t""no" 1>&6
4907 fi
4908
4909
4910 enablestring=
4911 echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
4912echo "configure:4913: checking for --${enablestring:-enable}-protocol_file" >&5
4913 no_cache=0
4914 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4915if test "${enable_protocol_file+set}" = set; then
4916 enableval="$enable_protocol_file"
4917
4918 if test "$enableval" = yes; then
4919 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4920 else
4921 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4922 fi
4923
4924else
4925
4926 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4927 if test "x$LINE" != x ; then
4928 eval "DEFAULT_$LINE"
4929 else
4930 no_cache=1
4931 fi
4932
4933 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4934
4935fi
4936
4937
4938 eval "$ac_cv_use_protocol_file"
4939 if test "$no_cache" != 1; then
4940 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4941 fi
4942
4943 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4944 echo "$ac_t""yes" 1>&6
4945 else
4946 echo "$ac_t""no" 1>&6
4947 fi
4948
4949
4950
4951
4952
4953 enablestring=
4954 echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
4955echo "configure:4956: checking for --${enablestring:-enable}-threads" >&5
4956 no_cache=0
4957 # Check whether --enable-threads or --disable-threads was given.
4958if test "${enable_threads+set}" = set; then
4959 enableval="$enable_threads"
4960
4961 if test "$enableval" = yes; then
4962 ac_cv_use_threads='wxUSE_THREADS=yes'
4963 else
4964 ac_cv_use_threads='wxUSE_THREADS=no'
4965 fi
4966
4967else
4968
4969 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4970 if test "x$LINE" != x ; then
4971 eval "DEFAULT_$LINE"
4972 else
4973 no_cache=1
4974 fi
4975
4976 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4977
4978fi
4979
4980
4981 eval "$ac_cv_use_threads"
4982 if test "$no_cache" != 1; then
4983 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4984 fi
4985
4986 if test "$wxUSE_THREADS" = yes; then
4987 echo "$ac_t""yes" 1>&6
4988 else
4989 echo "$ac_t""no" 1>&6
4990 fi
4991
4992
4993if test "$wxUSE_GUI" = "yes"; then
4994
4995
4996
4997 enablestring=
4998 echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
4999echo "configure:5000: checking for --${enablestring:-enable}-docview" >&5
5000 no_cache=0
5001 # Check whether --enable-docview or --disable-docview was given.
5002if test "${enable_docview+set}" = set; then
5003 enableval="$enable_docview"
5004
5005 if test "$enableval" = yes; then
5006 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5007 else
5008 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5009 fi
5010
5011else
5012
5013 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5014 if test "x$LINE" != x ; then
5015 eval "DEFAULT_$LINE"
5016 else
5017 no_cache=1
5018 fi
5019
5020 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5021
5022fi
5023
5024
5025 eval "$ac_cv_use_docview"
5026 if test "$no_cache" != 1; then
5027 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5028 fi
5029
5030 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5031 echo "$ac_t""yes" 1>&6
5032 else
5033 echo "$ac_t""no" 1>&6
5034 fi
5035
5036
5037 enablestring=
5038 echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
5039echo "configure:5040: checking for --${enablestring:-enable}-help" >&5
5040 no_cache=0
5041 # Check whether --enable-help or --disable-help was given.
5042if test "${enable_help+set}" = set; then
5043 enableval="$enable_help"
5044
5045 if test "$enableval" = yes; then
5046 ac_cv_use_help='wxUSE_HELP=yes'
5047 else
5048 ac_cv_use_help='wxUSE_HELP=no'
5049 fi
5050
5051else
5052
5053 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5054 if test "x$LINE" != x ; then
5055 eval "DEFAULT_$LINE"
5056 else
5057 no_cache=1
5058 fi
5059
5060 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5061
5062fi
5063
5064
5065 eval "$ac_cv_use_help"
5066 if test "$no_cache" != 1; then
5067 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5068 fi
5069
5070 if test "$wxUSE_HELP" = yes; then
5071 echo "$ac_t""yes" 1>&6
5072 else
5073 echo "$ac_t""no" 1>&6
5074 fi
5075
5076
5077 enablestring=
5078 echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
5079echo "configure:5080: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5080 no_cache=0
5081 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5082if test "${enable_mshtmlhelp+set}" = set; then
5083 enableval="$enable_mshtmlhelp"
5084
5085 if test "$enableval" = yes; then
5086 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5087 else
5088 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5089 fi
5090
5091else
5092
5093 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5094 if test "x$LINE" != x ; then
5095 eval "DEFAULT_$LINE"
5096 else
5097 no_cache=1
5098 fi
5099
5100 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
5101
5102fi
5103
5104
5105 eval "$ac_cv_use_mshtmlhelp"
5106 if test "$no_cache" != 1; then
5107 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5108 fi
5109
5110 if test "$wxUSE_MS_HTML_HELP" = yes; then
5111 echo "$ac_t""yes" 1>&6
5112 else
5113 echo "$ac_t""no" 1>&6
5114 fi
5115
5116
5117 enablestring=
5118 echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
5119echo "configure:5120: checking for --${enablestring:-enable}-html" >&5
5120 no_cache=0
5121 # Check whether --enable-html or --disable-html was given.
5122if test "${enable_html+set}" = set; then
5123 enableval="$enable_html"
5124
5125 if test "$enableval" = yes; then
5126 ac_cv_use_html='wxUSE_HTML=yes'
5127 else
5128 ac_cv_use_html='wxUSE_HTML=no'
5129 fi
5130
5131else
5132
5133 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5134 if test "x$LINE" != x ; then
5135 eval "DEFAULT_$LINE"
5136 else
5137 no_cache=1
5138 fi
5139
5140 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5141
5142fi
5143
5144
5145 eval "$ac_cv_use_html"
5146 if test "$no_cache" != 1; then
5147 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5148 fi
5149
5150 if test "$wxUSE_HTML" = yes; then
5151 echo "$ac_t""yes" 1>&6
5152 else
5153 echo "$ac_t""no" 1>&6
5154 fi
5155
5156
5157 enablestring=
5158 echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
5159echo "configure:5160: checking for --${enablestring:-enable}-htmlhelp" >&5
5160 no_cache=0
5161 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5162if test "${enable_htmlhelp+set}" = set; then
5163 enableval="$enable_htmlhelp"
5164
5165 if test "$enableval" = yes; then
5166 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5167 else
5168 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5169 fi
5170
5171else
5172
5173 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5174 if test "x$LINE" != x ; then
5175 eval "DEFAULT_$LINE"
5176 else
5177 no_cache=1
5178 fi
5179
5180 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5181
5182fi
5183
5184
5185 eval "$ac_cv_use_htmlhelp"
5186 if test "$no_cache" != 1; then
5187 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5188 fi
5189
5190 if test "$wxUSE_WXHTML_HELP" = yes; then
5191 echo "$ac_t""yes" 1>&6
5192 else
5193 echo "$ac_t""no" 1>&6
5194 fi
5195
5196
5197 enablestring=
5198 echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
5199echo "configure:5200: checking for --${enablestring:-enable}-constraints" >&5
5200 no_cache=0
5201 # Check whether --enable-constraints or --disable-constraints was given.
5202if test "${enable_constraints+set}" = set; then
5203 enableval="$enable_constraints"
5204
5205 if test "$enableval" = yes; then
5206 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5207 else
5208 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5209 fi
5210
5211else
5212
5213 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5214 if test "x$LINE" != x ; then
5215 eval "DEFAULT_$LINE"
5216 else
5217 no_cache=1
5218 fi
5219
5220 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5221
5222fi
5223
5224
5225 eval "$ac_cv_use_constraints"
5226 if test "$no_cache" != 1; then
5227 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5228 fi
5229
5230 if test "$wxUSE_CONSTRAINTS" = yes; then
5231 echo "$ac_t""yes" 1>&6
5232 else
5233 echo "$ac_t""no" 1>&6
5234 fi
5235
5236
5237 enablestring=
5238 echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
5239echo "configure:5240: checking for --${enablestring:-enable}-printarch" >&5
5240 no_cache=0
5241 # Check whether --enable-printarch or --disable-printarch was given.
5242if test "${enable_printarch+set}" = set; then
5243 enableval="$enable_printarch"
5244
5245 if test "$enableval" = yes; then
5246 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5247 else
5248 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5249 fi
5250
5251else
5252
5253 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5254 if test "x$LINE" != x ; then
5255 eval "DEFAULT_$LINE"
5256 else
5257 no_cache=1
5258 fi
5259
5260 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5261
5262fi
5263
5264
5265 eval "$ac_cv_use_printarch"
5266 if test "$no_cache" != 1; then
5267 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5268 fi
5269
5270 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5271 echo "$ac_t""yes" 1>&6
5272 else
5273 echo "$ac_t""no" 1>&6
5274 fi
5275
5276
5277 enablestring=
5278 echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
5279echo "configure:5280: checking for --${enablestring:-enable}-mdi" >&5
5280 no_cache=0
5281 # Check whether --enable-mdi or --disable-mdi was given.
5282if test "${enable_mdi+set}" = set; then
5283 enableval="$enable_mdi"
5284
5285 if test "$enableval" = yes; then
5286 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5287 else
5288 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5289 fi
5290
5291else
5292
5293 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5294 if test "x$LINE" != x ; then
5295 eval "DEFAULT_$LINE"
5296 else
5297 no_cache=1
5298 fi
5299
5300 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5301
5302fi
5303
5304
5305 eval "$ac_cv_use_mdi"
5306 if test "$no_cache" != 1; then
5307 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5308 fi
5309
5310 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5311 echo "$ac_t""yes" 1>&6
5312 else
5313 echo "$ac_t""no" 1>&6
5314 fi
5315
5316
5317 enablestring=
5318 echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
5319echo "configure:5320: checking for --${enablestring:-enable}-loggui" >&5
5320 no_cache=0
5321 # Check whether --enable-loggui or --disable-loggui was given.
5322if test "${enable_loggui+set}" = set; then
5323 enableval="$enable_loggui"
5324
5325 if test "$enableval" = yes; then
5326 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5327 else
5328 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5329 fi
5330
5331else
5332
5333 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5334 if test "x$LINE" != x ; then
5335 eval "DEFAULT_$LINE"
5336 else
5337 no_cache=1
5338 fi
5339
5340 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5341
5342fi
5343
5344
5345 eval "$ac_cv_use_loggui"
5346 if test "$no_cache" != 1; then
5347 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5348 fi
5349
5350 if test "$wxUSE_LOGGUI" = yes; then
5351 echo "$ac_t""yes" 1>&6
5352 else
5353 echo "$ac_t""no" 1>&6
5354 fi
5355
5356
5357 enablestring=
5358 echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
5359echo "configure:5360: checking for --${enablestring:-enable}-logwin" >&5
5360 no_cache=0
5361 # Check whether --enable-logwin or --disable-logwin was given.
5362if test "${enable_logwin+set}" = set; then
5363 enableval="$enable_logwin"
5364
5365 if test "$enableval" = yes; then
5366 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5367 else
5368 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5369 fi
5370
5371else
5372
5373 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5374 if test "x$LINE" != x ; then
5375 eval "DEFAULT_$LINE"
5376 else
5377 no_cache=1
5378 fi
5379
5380 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5381
5382fi
5383
5384
5385 eval "$ac_cv_use_logwin"
5386 if test "$no_cache" != 1; then
5387 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5388 fi
5389
5390 if test "$wxUSE_LOGWINDOW" = yes; then
5391 echo "$ac_t""yes" 1>&6
5392 else
5393 echo "$ac_t""no" 1>&6
5394 fi
5395
5396
5397 enablestring=
5398 echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
5399echo "configure:5400: checking for --${enablestring:-enable}-logdialog" >&5
5400 no_cache=0
5401 # Check whether --enable-logdialog or --disable-logdialog was given.
5402if test "${enable_logdialog+set}" = set; then
5403 enableval="$enable_logdialog"
5404
5405 if test "$enableval" = yes; then
5406 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5407 else
5408 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5409 fi
5410
5411else
5412
5413 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5414 if test "x$LINE" != x ; then
5415 eval "DEFAULT_$LINE"
5416 else
5417 no_cache=1
5418 fi
5419
5420 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5421
5422fi
5423
5424
5425 eval "$ac_cv_use_logdialog"
5426 if test "$no_cache" != 1; then
5427 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5428 fi
5429
5430 if test "$wxUSE_LOGDIALOG" = yes; then
5431 echo "$ac_t""yes" 1>&6
5432 else
5433 echo "$ac_t""no" 1>&6
5434 fi
5435
5436
5437
5438 enablestring=
5439 echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
5440echo "configure:5441: checking for --${enablestring:-enable}-postscript" >&5
5441 no_cache=0
5442 # Check whether --enable-postscript or --disable-postscript was given.
5443if test "${enable_postscript+set}" = set; then
5444 enableval="$enable_postscript"
5445
5446 if test "$enableval" = yes; then
5447 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5448 else
5449 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5450 fi
5451
5452else
5453
5454 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5455 if test "x$LINE" != x ; then
5456 eval "DEFAULT_$LINE"
5457 else
5458 no_cache=1
5459 fi
5460
5461 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5462
5463fi
5464
5465
5466 eval "$ac_cv_use_postscript"
5467 if test "$no_cache" != 1; then
5468 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5469 fi
5470
5471 if test "$wxUSE_POSTSCRIPT" = yes; then
5472 echo "$ac_t""yes" 1>&6
5473 else
5474 echo "$ac_t""no" 1>&6
5475 fi
5476
5477
5478
5479
5480
5481 enablestring=
5482 echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6
5483echo "configure:5484: checking for --${enablestring:-enable}-prologio" >&5
5484 no_cache=0
5485 # Check whether --enable-prologio or --disable-prologio was given.
5486if test "${enable_prologio+set}" = set; then
5487 enableval="$enable_prologio"
5488
5489 if test "$enableval" = yes; then
5490 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5491 else
5492 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5493 fi
5494
5495else
5496
5497 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5498 if test "x$LINE" != x ; then
5499 eval "DEFAULT_$LINE"
5500 else
5501 no_cache=1
5502 fi
5503
5504 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5505
5506fi
5507
5508
5509 eval "$ac_cv_use_prologio"
5510 if test "$no_cache" != 1; then
5511 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5512 fi
5513
5514 if test "$wxUSE_PROLOGIO" = yes; then
5515 echo "$ac_t""yes" 1>&6
5516 else
5517 echo "$ac_t""no" 1>&6
5518 fi
5519
5520
5521 enablestring=
5522 echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
5523echo "configure:5524: checking for --${enablestring:-enable}-resources" >&5
5524 no_cache=0
5525 # Check whether --enable-resources or --disable-resources was given.
5526if test "${enable_resources+set}" = set; then
5527 enableval="$enable_resources"
5528
5529 if test "$enableval" = yes; then
5530 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5531 else
5532 ac_cv_use_resources='wxUSE_RESOURCES=no'
5533 fi
5534
5535else
5536
5537 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5538 if test "x$LINE" != x ; then
5539 eval "DEFAULT_$LINE"
5540 else
5541 no_cache=1
5542 fi
5543
5544 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5545
5546fi
5547
5548
5549 eval "$ac_cv_use_resources"
5550 if test "$no_cache" != 1; then
5551 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5552 fi
5553
5554 if test "$wxUSE_RESOURCES" = yes; then
5555 echo "$ac_t""yes" 1>&6
5556 else
5557 echo "$ac_t""no" 1>&6
5558 fi
5559
5560
5561
5562 enablestring=
5563 echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6
5564echo "configure:5565: checking for --${enablestring:-enable}-xresources" >&5
5565 no_cache=0
5566 # Check whether --enable-xresources or --disable-xresources was given.
5567if test "${enable_xresources+set}" = set; then
5568 enableval="$enable_xresources"
5569
5570 if test "$enableval" = yes; then
5571 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5572 else
5573 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5574 fi
5575
5576else
5577
5578 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5579 if test "x$LINE" != x ; then
5580 eval "DEFAULT_$LINE"
5581 else
5582 no_cache=1
5583 fi
5584
5585 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5586
5587fi
5588
5589
5590 eval "$ac_cv_use_xresources"
5591 if test "$no_cache" != 1; then
5592 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5593 fi
5594
5595 if test "$wxUSE_X_RESOURCES" = yes; then
5596 echo "$ac_t""yes" 1>&6
5597 else
5598 echo "$ac_t""no" 1>&6
5599 fi
5600
5601
5602
5603
5604 enablestring=
5605 echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
5606echo "configure:5607: checking for --${enablestring:-enable}-clipboard" >&5
5607 no_cache=0
5608 # Check whether --enable-clipboard or --disable-clipboard was given.
5609if test "${enable_clipboard+set}" = set; then
5610 enableval="$enable_clipboard"
5611
5612 if test "$enableval" = yes; then
5613 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5614 else
5615 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5616 fi
5617
5618else
5619
5620 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5621 if test "x$LINE" != x ; then
5622 eval "DEFAULT_$LINE"
5623 else
5624 no_cache=1
5625 fi
5626
5627 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5628
5629fi
5630
5631
5632 eval "$ac_cv_use_clipboard"
5633 if test "$no_cache" != 1; then
5634 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5635 fi
5636
5637 if test "$wxUSE_CLIPBOARD" = yes; then
5638 echo "$ac_t""yes" 1>&6
5639 else
5640 echo "$ac_t""no" 1>&6
5641 fi
5642
5643
5644 enablestring=
5645 echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
5646echo "configure:5647: checking for --${enablestring:-enable}-dnd" >&5
5647 no_cache=0
5648 # Check whether --enable-dnd or --disable-dnd was given.
5649if test "${enable_dnd+set}" = set; then
5650 enableval="$enable_dnd"
5651
5652 if test "$enableval" = yes; then
5653 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5654 else
5655 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5656 fi
5657
5658else
5659
5660 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5661 if test "x$LINE" != x ; then
5662 eval "DEFAULT_$LINE"
5663 else
5664 no_cache=1
5665 fi
5666
5667 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5668
5669fi
5670
5671
5672 eval "$ac_cv_use_dnd"
5673 if test "$no_cache" != 1; then
5674 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5675 fi
5676
5677 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5678 echo "$ac_t""yes" 1>&6
5679 else
5680 echo "$ac_t""no" 1>&6
5681 fi
5682
5683
5684 enablestring=
5685 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
5686echo "configure:5687: checking for --${enablestring:-enable}-metafile" >&5
5687 no_cache=0
5688 # Check whether --enable-metafile or --disable-metafile was given.
5689if test "${enable_metafile+set}" = set; then
5690 enableval="$enable_metafile"
5691
5692 if test "$enableval" = yes; then
5693 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5694 else
5695 ac_cv_use_metafile='wxUSE_METAFILE=no'
5696 fi
5697
5698else
5699
5700 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5701 if test "x$LINE" != x ; then
5702 eval "DEFAULT_$LINE"
5703 else
5704 no_cache=1
5705 fi
5706
5707 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5708
5709fi
5710
5711
5712 eval "$ac_cv_use_metafile"
5713 if test "$no_cache" != 1; then
5714 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5715 fi
5716
5717 if test "$wxUSE_METAFILE" = yes; then
5718 echo "$ac_t""yes" 1>&6
5719 else
5720 echo "$ac_t""no" 1>&6
5721 fi
5722
5723
5724
5725 enablestring=
5726 echo $ac_n "checking for --${enablestring:-enable}-treelayout""... $ac_c" 1>&6
5727echo "configure:5728: checking for --${enablestring:-enable}-treelayout" >&5
5728 no_cache=0
5729 # Check whether --enable-treelayout or --disable-treelayout was given.
5730if test "${enable_treelayout+set}" = set; then
5731 enableval="$enable_treelayout"
5732
5733 if test "$enableval" = yes; then
5734 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5735 else
5736 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5737 fi
5738
5739else
5740
5741 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5742 if test "x$LINE" != x ; then
5743 eval "DEFAULT_$LINE"
5744 else
5745 no_cache=1
5746 fi
5747
5748 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5749
5750fi
5751
5752
5753 eval "$ac_cv_use_treelayout"
5754 if test "$no_cache" != 1; then
5755 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5756 fi
5757
5758 if test "$wxUSE_TREELAYOUT" = yes; then
5759 echo "$ac_t""yes" 1>&6
5760 else
5761 echo "$ac_t""no" 1>&6
5762 fi
5763
5764
5765
5766
5767 enablestring=
5768 echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
5769echo "configure:5770: checking for --${enablestring:-enable}-controls" >&5
5770 no_cache=0
5771 # Check whether --enable-controls or --disable-controls was given.
5772if test "${enable_controls+set}" = set; then
5773 enableval="$enable_controls"
5774
5775 if test "$enableval" = yes; then
5776 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5777 else
5778 ac_cv_use_controls='wxUSE_CONTROLS=no'
5779 fi
5780
5781else
5782
5783 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5784 if test "x$LINE" != x ; then
5785 eval "DEFAULT_$LINE"
5786 else
5787 no_cache=1
5788 fi
5789
5790 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5791
5792fi
5793
5794
5795 eval "$ac_cv_use_controls"
5796 if test "$no_cache" != 1; then
5797 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5798 fi
5799
5800 if test "$wxUSE_CONTROLS" = yes; then
5801 echo "$ac_t""yes" 1>&6
5802 else
5803 echo "$ac_t""no" 1>&6
5804 fi
5805
5806
5807if test "$wxUSE_CONTROLS" = "yes"; then
5808 DEFAULT_wxUSE_ACCEL=yes
5809 DEFAULT_wxUSE_BMPBUTTON=yes
5810 DEFAULT_wxUSE_BUTTON=yes
5811 DEFAULT_wxUSE_CALCTRL=no
5812 DEFAULT_wxUSE_CARET=yes
5813 DEFAULT_wxUSE_COMBOBOX=yes
5814 DEFAULT_wxUSE_CHECKBOX=yes
5815 DEFAULT_wxUSE_CHECKLISTBOX=yes
5816 DEFAULT_wxUSE_CHOICE=yes
5817 DEFAULT_wxUSE_GAUGE=yes
5818 DEFAULT_wxUSE_GRID=yes
5819 DEFAULT_wxUSE_NEW_GRID=yes
5820 DEFAULT_wxUSE_IMAGLIST=yes
5821 DEFAULT_wxUSE_LISTBOX=yes
5822 DEFAULT_wxUSE_LISTCTRL=yes
5823 DEFAULT_wxUSE_NOTEBOOK=yes
5824 DEFAULT_wxUSE_PROPSHEET=yes
5825 DEFAULT_wxUSE_RADIOBOX=yes
5826 DEFAULT_wxUSE_RADIOBTN=yes
5827 DEFAULT_wxUSE_SASH=yes
5828 DEFAULT_wxUSE_SCROLLBAR=yes
5829 DEFAULT_wxUSE_SLIDER=yes
5830 DEFAULT_wxUSE_SPINBTN=yes
5831 DEFAULT_wxUSE_SPINCTRL=yes
5832 DEFAULT_wxUSE_SPLITTER=yes
5833 DEFAULT_wxUSE_STATBMP=yes
5834 DEFAULT_wxUSE_STATBOX=yes
5835 DEFAULT_wxUSE_STATLINE=yes
5836 DEFAULT_wxUSE_STATUSBAR=yes
5837 DEFAULT_wxUSE_TAB_DIALOG=yes
5838 DEFAULT_wxUSE_TOGGLEBTN=yes
5839 DEFAULT_wxUSE_TOOLBAR=yes
5840 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5841 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5842 DEFAULT_wxUSE_TOOLTIPS=yes
5843 DEFAULT_wxUSE_TREECTRL=yes
5844 DEFAULT_wxUSE_POPUPWIN=yes
5845 DEFAULT_wxUSE_TIPWINDOW=yes
5846elif test "$wxUSE_CONTROLS" = "no"; then
5847 DEFAULT_wxUSE_ACCEL=no
5848 DEFAULT_wxUSE_BMPBUTTON=no
5849 DEFAULT_wxUSE_BUTTON=no
5850 DEFAULT_wxUSE_CALCTRL=no
5851 DEFAULT_wxUSE_CARET=no
5852 DEFAULT_wxUSE_COMBOBOX=no
5853 DEFAULT_wxUSE_CHECKBOX=no
5854 DEFAULT_wxUSE_CHECKLISTBOX=no
5855 DEFAULT_wxUSE_CHOICE=no
5856 DEFAULT_wxUSE_GAUGE=no
5857 DEFAULT_wxUSE_GRID=no
5858 DEFAULT_wxUSE_NEW_GRID=no
5859 DEFAULT_wxUSE_IMAGLIST=no
5860 DEFAULT_wxUSE_LISTBOX=no
5861 DEFAULT_wxUSE_LISTCTRL=no
5862 DEFAULT_wxUSE_NOTEBOOK=no
5863 DEFAULT_wxUSE_PROPSHEET=no
5864 DEFAULT_wxUSE_RADIOBOX=no
5865 DEFAULT_wxUSE_RADIOBTN=no
5866 DEFAULT_wxUSE_SASH=no
5867 DEFAULT_wxUSE_SCROLLBAR=no
5868 DEFAULT_wxUSE_SLIDER=no
5869 DEFAULT_wxUSE_SPINBTN=no
5870 DEFAULT_wxUSE_SPINCTRL=no
5871 DEFAULT_wxUSE_SPLITTER=no
5872 DEFAULT_wxUSE_STATBMP=no
5873 DEFAULT_wxUSE_STATBOX=no
5874 DEFAULT_wxUSE_STATLINE=no
5875 DEFAULT_wxUSE_STATUSBAR=no
5876 DEFAULT_wxUSE_TAB_DIALOG=no
5877 DEFAULT_wxUSE_TOGGLEBTN=no
5878 DEFAULT_wxUSE_TOOLBAR=no
5879 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5880 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5881 DEFAULT_wxUSE_TOOLTIPS=no
5882 DEFAULT_wxUSE_TREECTRL=no
5883 DEFAULT_wxUSE_POPUPWIN=no
5884 DEFAULT_wxUSE_TIPWINDOW=no
5885fi
5886
5887
5888 enablestring=
5889 echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
5890echo "configure:5891: checking for --${enablestring:-enable}-accel" >&5
5891 no_cache=0
5892 # Check whether --enable-accel or --disable-accel was given.
5893if test "${enable_accel+set}" = set; then
5894 enableval="$enable_accel"
5895
5896 if test "$enableval" = yes; then
5897 ac_cv_use_accel='wxUSE_ACCEL=yes'
5898 else
5899 ac_cv_use_accel='wxUSE_ACCEL=no'
5900 fi
5901
5902else
5903
5904 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5905 if test "x$LINE" != x ; then
5906 eval "DEFAULT_$LINE"
5907 else
5908 no_cache=1
5909 fi
5910
5911 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5912
5913fi
5914
5915
5916 eval "$ac_cv_use_accel"
5917 if test "$no_cache" != 1; then
5918 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5919 fi
5920
5921 if test "$wxUSE_ACCEL" = yes; then
5922 echo "$ac_t""yes" 1>&6
5923 else
5924 echo "$ac_t""no" 1>&6
5925 fi
5926
5927
5928 enablestring=
5929 echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
5930echo "configure:5931: checking for --${enablestring:-enable}-button" >&5
5931 no_cache=0
5932 # Check whether --enable-button or --disable-button was given.
5933if test "${enable_button+set}" = set; then
5934 enableval="$enable_button"
5935
5936 if test "$enableval" = yes; then
5937 ac_cv_use_button='wxUSE_BUTTON=yes'
5938 else
5939 ac_cv_use_button='wxUSE_BUTTON=no'
5940 fi
5941
5942else
5943
5944 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5945 if test "x$LINE" != x ; then
5946 eval "DEFAULT_$LINE"
5947 else
5948 no_cache=1
5949 fi
5950
5951 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5952
5953fi
5954
5955
5956 eval "$ac_cv_use_button"
5957 if test "$no_cache" != 1; then
5958 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5959 fi
5960
5961 if test "$wxUSE_BUTTON" = yes; then
5962 echo "$ac_t""yes" 1>&6
5963 else
5964 echo "$ac_t""no" 1>&6
5965 fi
5966
5967
5968 enablestring=
5969 echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
5970echo "configure:5971: checking for --${enablestring:-enable}-bmpbutton" >&5
5971 no_cache=0
5972 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5973if test "${enable_bmpbutton+set}" = set; then
5974 enableval="$enable_bmpbutton"
5975
5976 if test "$enableval" = yes; then
5977 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5978 else
5979 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5980 fi
5981
5982else
5983
5984 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5985 if test "x$LINE" != x ; then
5986 eval "DEFAULT_$LINE"
5987 else
5988 no_cache=1
5989 fi
5990
5991 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5992
5993fi
5994
5995
5996 eval "$ac_cv_use_bmpbutton"
5997 if test "$no_cache" != 1; then
5998 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5999 fi
6000
6001 if test "$wxUSE_BMPBUTTON" = yes; then
6002 echo "$ac_t""yes" 1>&6
6003 else
6004 echo "$ac_t""no" 1>&6
6005 fi
6006
6007
6008 enablestring=
6009 echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
6010echo "configure:6011: checking for --${enablestring:-enable}-calendar" >&5
6011 no_cache=0
6012 # Check whether --enable-calendar or --disable-calendar was given.
6013if test "${enable_calendar+set}" = set; then
6014 enableval="$enable_calendar"
6015
6016 if test "$enableval" = yes; then
6017 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6018 else
6019 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6020 fi
6021
6022else
6023
6024 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6025 if test "x$LINE" != x ; then
6026 eval "DEFAULT_$LINE"
6027 else
6028 no_cache=1
6029 fi
6030
6031 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
6032
6033fi
6034
6035
6036 eval "$ac_cv_use_calendar"
6037 if test "$no_cache" != 1; then
6038 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6039 fi
6040
6041 if test "$wxUSE_CALCTRL" = yes; then
6042 echo "$ac_t""yes" 1>&6
6043 else
6044 echo "$ac_t""no" 1>&6
6045 fi
6046
6047
6048 enablestring=
6049 echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
6050echo "configure:6051: checking for --${enablestring:-enable}-caret" >&5
6051 no_cache=0
6052 # Check whether --enable-caret or --disable-caret was given.
6053if test "${enable_caret+set}" = set; then
6054 enableval="$enable_caret"
6055
6056 if test "$enableval" = yes; then
6057 ac_cv_use_caret='wxUSE_CARET=yes'
6058 else
6059 ac_cv_use_caret='wxUSE_CARET=no'
6060 fi
6061
6062else
6063
6064 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6065 if test "x$LINE" != x ; then
6066 eval "DEFAULT_$LINE"
6067 else
6068 no_cache=1
6069 fi
6070
6071 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6072
6073fi
6074
6075
6076 eval "$ac_cv_use_caret"
6077 if test "$no_cache" != 1; then
6078 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6079 fi
6080
6081 if test "$wxUSE_CARET" = yes; then
6082 echo "$ac_t""yes" 1>&6
6083 else
6084 echo "$ac_t""no" 1>&6
6085 fi
6086
6087
6088 enablestring=
6089 echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
6090echo "configure:6091: checking for --${enablestring:-enable}-checkbox" >&5
6091 no_cache=0
6092 # Check whether --enable-checkbox or --disable-checkbox was given.
6093if test "${enable_checkbox+set}" = set; then
6094 enableval="$enable_checkbox"
6095
6096 if test "$enableval" = yes; then
6097 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6098 else
6099 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6100 fi
6101
6102else
6103
6104 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6105 if test "x$LINE" != x ; then
6106 eval "DEFAULT_$LINE"
6107 else
6108 no_cache=1
6109 fi
6110
6111 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6112
6113fi
6114
6115
6116 eval "$ac_cv_use_checkbox"
6117 if test "$no_cache" != 1; then
6118 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6119 fi
6120
6121 if test "$wxUSE_CHECKBOX" = yes; then
6122 echo "$ac_t""yes" 1>&6
6123 else
6124 echo "$ac_t""no" 1>&6
6125 fi
6126
6127
6128 enablestring=
6129 echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
6130echo "configure:6131: checking for --${enablestring:-enable}-checklst" >&5
6131 no_cache=0
6132 # Check whether --enable-checklst or --disable-checklst was given.
6133if test "${enable_checklst+set}" = set; then
6134 enableval="$enable_checklst"
6135
6136 if test "$enableval" = yes; then
6137 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6138 else
6139 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6140 fi
6141
6142else
6143
6144 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6145 if test "x$LINE" != x ; then
6146 eval "DEFAULT_$LINE"
6147 else
6148 no_cache=1
6149 fi
6150
6151 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6152
6153fi
6154
6155
6156 eval "$ac_cv_use_checklst"
6157 if test "$no_cache" != 1; then
6158 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6159 fi
6160
6161 if test "$wxUSE_CHECKLST" = yes; then
6162 echo "$ac_t""yes" 1>&6
6163 else
6164 echo "$ac_t""no" 1>&6
6165 fi
6166
6167
6168 enablestring=
6169 echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
6170echo "configure:6171: checking for --${enablestring:-enable}-choice" >&5
6171 no_cache=0
6172 # Check whether --enable-choice or --disable-choice was given.
6173if test "${enable_choice+set}" = set; then
6174 enableval="$enable_choice"
6175
6176 if test "$enableval" = yes; then
6177 ac_cv_use_choice='wxUSE_CHOICE=yes'
6178 else
6179 ac_cv_use_choice='wxUSE_CHOICE=no'
6180 fi
6181
6182else
6183
6184 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6185 if test "x$LINE" != x ; then
6186 eval "DEFAULT_$LINE"
6187 else
6188 no_cache=1
6189 fi
6190
6191 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6192
6193fi
6194
6195
6196 eval "$ac_cv_use_choice"
6197 if test "$no_cache" != 1; then
6198 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6199 fi
6200
6201 if test "$wxUSE_CHOICE" = yes; then
6202 echo "$ac_t""yes" 1>&6
6203 else
6204 echo "$ac_t""no" 1>&6
6205 fi
6206
6207
6208 enablestring=
6209 echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
6210echo "configure:6211: checking for --${enablestring:-enable}-combobox" >&5
6211 no_cache=0
6212 # Check whether --enable-combobox or --disable-combobox was given.
6213if test "${enable_combobox+set}" = set; then
6214 enableval="$enable_combobox"
6215
6216 if test "$enableval" = yes; then
6217 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6218 else
6219 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6220 fi
6221
6222else
6223
6224 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6225 if test "x$LINE" != x ; then
6226 eval "DEFAULT_$LINE"
6227 else
6228 no_cache=1
6229 fi
6230
6231 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6232
6233fi
6234
6235
6236 eval "$ac_cv_use_combobox"
6237 if test "$no_cache" != 1; then
6238 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6239 fi
6240
6241 if test "$wxUSE_COMBOBOX" = yes; then
6242 echo "$ac_t""yes" 1>&6
6243 else
6244 echo "$ac_t""no" 1>&6
6245 fi
6246
6247
6248 enablestring=
6249 echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
6250echo "configure:6251: checking for --${enablestring:-enable}-gauge" >&5
6251 no_cache=0
6252 # Check whether --enable-gauge or --disable-gauge was given.
6253if test "${enable_gauge+set}" = set; then
6254 enableval="$enable_gauge"
6255
6256 if test "$enableval" = yes; then
6257 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6258 else
6259 ac_cv_use_gauge='wxUSE_GAUGE=no'
6260 fi
6261
6262else
6263
6264 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6265 if test "x$LINE" != x ; then
6266 eval "DEFAULT_$LINE"
6267 else
6268 no_cache=1
6269 fi
6270
6271 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6272
6273fi
6274
6275
6276 eval "$ac_cv_use_gauge"
6277 if test "$no_cache" != 1; then
6278 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6279 fi
6280
6281 if test "$wxUSE_GAUGE" = yes; then
6282 echo "$ac_t""yes" 1>&6
6283 else
6284 echo "$ac_t""no" 1>&6
6285 fi
6286
6287
6288 enablestring=
6289 echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
6290echo "configure:6291: checking for --${enablestring:-enable}-grid" >&5
6291 no_cache=0
6292 # Check whether --enable-grid or --disable-grid was given.
6293if test "${enable_grid+set}" = set; then
6294 enableval="$enable_grid"
6295
6296 if test "$enableval" = yes; then
6297 ac_cv_use_grid='wxUSE_GRID=yes'
6298 else
6299 ac_cv_use_grid='wxUSE_GRID=no'
6300 fi
6301
6302else
6303
6304 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6305 if test "x$LINE" != x ; then
6306 eval "DEFAULT_$LINE"
6307 else
6308 no_cache=1
6309 fi
6310
6311 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6312
6313fi
6314
6315
6316 eval "$ac_cv_use_grid"
6317 if test "$no_cache" != 1; then
6318 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6319 fi
6320
6321 if test "$wxUSE_GRID" = yes; then
6322 echo "$ac_t""yes" 1>&6
6323 else
6324 echo "$ac_t""no" 1>&6
6325 fi
6326
6327
6328 enablestring=
6329 echo $ac_n "checking for --${enablestring:-enable}-newgrid""... $ac_c" 1>&6
6330echo "configure:6331: checking for --${enablestring:-enable}-newgrid" >&5
6331 no_cache=0
6332 # Check whether --enable-newgrid or --disable-newgrid was given.
6333if test "${enable_newgrid+set}" = set; then
6334 enableval="$enable_newgrid"
6335
6336 if test "$enableval" = yes; then
6337 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6338 else
6339 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6340 fi
6341
6342else
6343
6344 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6345 if test "x$LINE" != x ; then
6346 eval "DEFAULT_$LINE"
6347 else
6348 no_cache=1
6349 fi
6350
6351 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6352
6353fi
6354
6355
6356 eval "$ac_cv_use_newgrid"
6357 if test "$no_cache" != 1; then
6358 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6359 fi
6360
6361 if test "$wxUSE_NEW_GRID" = yes; then
6362 echo "$ac_t""yes" 1>&6
6363 else
6364 echo "$ac_t""no" 1>&6
6365 fi
6366
6367
6368 enablestring=
6369 echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
6370echo "configure:6371: checking for --${enablestring:-enable}-imaglist" >&5
6371 no_cache=0
6372 # Check whether --enable-imaglist or --disable-imaglist was given.
6373if test "${enable_imaglist+set}" = set; then
6374 enableval="$enable_imaglist"
6375
6376 if test "$enableval" = yes; then
6377 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6378 else
6379 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6380 fi
6381
6382else
6383
6384 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6385 if test "x$LINE" != x ; then
6386 eval "DEFAULT_$LINE"
6387 else
6388 no_cache=1
6389 fi
6390
6391 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6392
6393fi
6394
6395
6396 eval "$ac_cv_use_imaglist"
6397 if test "$no_cache" != 1; then
6398 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6399 fi
6400
6401 if test "$wxUSE_IMAGLIST" = yes; then
6402 echo "$ac_t""yes" 1>&6
6403 else
6404 echo "$ac_t""no" 1>&6
6405 fi
6406
6407
6408 enablestring=
6409 echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
6410echo "configure:6411: checking for --${enablestring:-enable}-listbox" >&5
6411 no_cache=0
6412 # Check whether --enable-listbox or --disable-listbox was given.
6413if test "${enable_listbox+set}" = set; then
6414 enableval="$enable_listbox"
6415
6416 if test "$enableval" = yes; then
6417 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6418 else
6419 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6420 fi
6421
6422else
6423
6424 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6425 if test "x$LINE" != x ; then
6426 eval "DEFAULT_$LINE"
6427 else
6428 no_cache=1
6429 fi
6430
6431 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6432
6433fi
6434
6435
6436 eval "$ac_cv_use_listbox"
6437 if test "$no_cache" != 1; then
6438 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6439 fi
6440
6441 if test "$wxUSE_LISTBOX" = yes; then
6442 echo "$ac_t""yes" 1>&6
6443 else
6444 echo "$ac_t""no" 1>&6
6445 fi
6446
6447
6448 enablestring=
6449 echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
6450echo "configure:6451: checking for --${enablestring:-enable}-listctrl" >&5
6451 no_cache=0
6452 # Check whether --enable-listctrl or --disable-listctrl was given.
6453if test "${enable_listctrl+set}" = set; then
6454 enableval="$enable_listctrl"
6455
6456 if test "$enableval" = yes; then
6457 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6458 else
6459 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6460 fi
6461
6462else
6463
6464 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6465 if test "x$LINE" != x ; then
6466 eval "DEFAULT_$LINE"
6467 else
6468 no_cache=1
6469 fi
6470
6471 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6472
6473fi
6474
6475
6476 eval "$ac_cv_use_listctrl"
6477 if test "$no_cache" != 1; then
6478 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6479 fi
6480
6481 if test "$wxUSE_LISTCTRL" = yes; then
6482 echo "$ac_t""yes" 1>&6
6483 else
6484 echo "$ac_t""no" 1>&6
6485 fi
6486
6487
6488 enablestring=
6489 echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
6490echo "configure:6491: checking for --${enablestring:-enable}-notebook" >&5
6491 no_cache=0
6492 # Check whether --enable-notebook or --disable-notebook was given.
6493if test "${enable_notebook+set}" = set; then
6494 enableval="$enable_notebook"
6495
6496 if test "$enableval" = yes; then
6497 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6498 else
6499 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6500 fi
6501
6502else
6503
6504 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6505 if test "x$LINE" != x ; then
6506 eval "DEFAULT_$LINE"
6507 else
6508 no_cache=1
6509 fi
6510
6511 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6512
6513fi
6514
6515
6516 eval "$ac_cv_use_notebook"
6517 if test "$no_cache" != 1; then
6518 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6519 fi
6520
6521 if test "$wxUSE_NOTEBOOK" = yes; then
6522 echo "$ac_t""yes" 1>&6
6523 else
6524 echo "$ac_t""no" 1>&6
6525 fi
6526
6527
6528 enablestring=
6529 echo $ac_n "checking for --${enablestring:-enable}-propsheet""... $ac_c" 1>&6
6530echo "configure:6531: checking for --${enablestring:-enable}-propsheet" >&5
6531 no_cache=0
6532 # Check whether --enable-propsheet or --disable-propsheet was given.
6533if test "${enable_propsheet+set}" = set; then
6534 enableval="$enable_propsheet"
6535
6536 if test "$enableval" = yes; then
6537 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6538 else
6539 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6540 fi
6541
6542else
6543
6544 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6545 if test "x$LINE" != x ; then
6546 eval "DEFAULT_$LINE"
6547 else
6548 no_cache=1
6549 fi
6550
6551 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6552
6553fi
6554
6555
6556 eval "$ac_cv_use_propsheet"
6557 if test "$no_cache" != 1; then
6558 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6559 fi
6560
6561 if test "$wxUSE_PROPSHEET" = yes; then
6562 echo "$ac_t""yes" 1>&6
6563 else
6564 echo "$ac_t""no" 1>&6
6565 fi
6566
6567
6568 enablestring=
6569 echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
6570echo "configure:6571: checking for --${enablestring:-enable}-radiobox" >&5
6571 no_cache=0
6572 # Check whether --enable-radiobox or --disable-radiobox was given.
6573if test "${enable_radiobox+set}" = set; then
6574 enableval="$enable_radiobox"
6575
6576 if test "$enableval" = yes; then
6577 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6578 else
6579 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6580 fi
6581
6582else
6583
6584 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6585 if test "x$LINE" != x ; then
6586 eval "DEFAULT_$LINE"
6587 else
6588 no_cache=1
6589 fi
6590
6591 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6592
6593fi
6594
6595
6596 eval "$ac_cv_use_radiobox"
6597 if test "$no_cache" != 1; then
6598 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6599 fi
6600
6601 if test "$wxUSE_RADIOBOX" = yes; then
6602 echo "$ac_t""yes" 1>&6
6603 else
6604 echo "$ac_t""no" 1>&6
6605 fi
6606
6607
6608 enablestring=
6609 echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
6610echo "configure:6611: checking for --${enablestring:-enable}-radiobtn" >&5
6611 no_cache=0
6612 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6613if test "${enable_radiobtn+set}" = set; then
6614 enableval="$enable_radiobtn"
6615
6616 if test "$enableval" = yes; then
6617 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6618 else
6619 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6620 fi
6621
6622else
6623
6624 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6625 if test "x$LINE" != x ; then
6626 eval "DEFAULT_$LINE"
6627 else
6628 no_cache=1
6629 fi
6630
6631 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6632
6633fi
6634
6635
6636 eval "$ac_cv_use_radiobtn"
6637 if test "$no_cache" != 1; then
6638 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6639 fi
6640
6641 if test "$wxUSE_RADIOBTN" = yes; then
6642 echo "$ac_t""yes" 1>&6
6643 else
6644 echo "$ac_t""no" 1>&6
6645 fi
6646
6647
6648 enablestring=
6649 echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
6650echo "configure:6651: checking for --${enablestring:-enable}-sash" >&5
6651 no_cache=0
6652 # Check whether --enable-sash or --disable-sash was given.
6653if test "${enable_sash+set}" = set; then
6654 enableval="$enable_sash"
6655
6656 if test "$enableval" = yes; then
6657 ac_cv_use_sash='wxUSE_SASH=yes'
6658 else
6659 ac_cv_use_sash='wxUSE_SASH=no'
6660 fi
6661
6662else
6663
6664 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6665 if test "x$LINE" != x ; then
6666 eval "DEFAULT_$LINE"
6667 else
6668 no_cache=1
6669 fi
6670
6671 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6672
6673fi
6674
6675
6676 eval "$ac_cv_use_sash"
6677 if test "$no_cache" != 1; then
6678 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6679 fi
6680
6681 if test "$wxUSE_SASH" = yes; then
6682 echo "$ac_t""yes" 1>&6
6683 else
6684 echo "$ac_t""no" 1>&6
6685 fi
6686
6687
6688 enablestring=
6689 echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
6690echo "configure:6691: checking for --${enablestring:-enable}-scrollbar" >&5
6691 no_cache=0
6692 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6693if test "${enable_scrollbar+set}" = set; then
6694 enableval="$enable_scrollbar"
6695
6696 if test "$enableval" = yes; then
6697 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6698 else
6699 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6700 fi
6701
6702else
6703
6704 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6705 if test "x$LINE" != x ; then
6706 eval "DEFAULT_$LINE"
6707 else
6708 no_cache=1
6709 fi
6710
6711 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6712
6713fi
6714
6715
6716 eval "$ac_cv_use_scrollbar"
6717 if test "$no_cache" != 1; then
6718 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6719 fi
6720
6721 if test "$wxUSE_SCROLLBAR" = yes; then
6722 echo "$ac_t""yes" 1>&6
6723 else
6724 echo "$ac_t""no" 1>&6
6725 fi
6726
6727
6728 enablestring=
6729 echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
6730echo "configure:6731: checking for --${enablestring:-enable}-slider" >&5
6731 no_cache=0
6732 # Check whether --enable-slider or --disable-slider was given.
6733if test "${enable_slider+set}" = set; then
6734 enableval="$enable_slider"
6735
6736 if test "$enableval" = yes; then
6737 ac_cv_use_slider='wxUSE_SLIDER=yes'
6738 else
6739 ac_cv_use_slider='wxUSE_SLIDER=no'
6740 fi
6741
6742else
6743
6744 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6745 if test "x$LINE" != x ; then
6746 eval "DEFAULT_$LINE"
6747 else
6748 no_cache=1
6749 fi
6750
6751 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6752
6753fi
6754
6755
6756 eval "$ac_cv_use_slider"
6757 if test "$no_cache" != 1; then
6758 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6759 fi
6760
6761 if test "$wxUSE_SLIDER" = yes; then
6762 echo "$ac_t""yes" 1>&6
6763 else
6764 echo "$ac_t""no" 1>&6
6765 fi
6766
6767
6768 enablestring=
6769 echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
6770echo "configure:6771: checking for --${enablestring:-enable}-spinbtn" >&5
6771 no_cache=0
6772 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6773if test "${enable_spinbtn+set}" = set; then
6774 enableval="$enable_spinbtn"
6775
6776 if test "$enableval" = yes; then
6777 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6778 else
6779 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6780 fi
6781
6782else
6783
6784 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6785 if test "x$LINE" != x ; then
6786 eval "DEFAULT_$LINE"
6787 else
6788 no_cache=1
6789 fi
6790
6791 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6792
6793fi
6794
6795
6796 eval "$ac_cv_use_spinbtn"
6797 if test "$no_cache" != 1; then
6798 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6799 fi
6800
6801 if test "$wxUSE_SPINBTN" = yes; then
6802 echo "$ac_t""yes" 1>&6
6803 else
6804 echo "$ac_t""no" 1>&6
6805 fi
6806
6807
6808 enablestring=
6809 echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
6810echo "configure:6811: checking for --${enablestring:-enable}-spinctrl" >&5
6811 no_cache=0
6812 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6813if test "${enable_spinctrl+set}" = set; then
6814 enableval="$enable_spinctrl"
6815
6816 if test "$enableval" = yes; then
6817 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6818 else
6819 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6820 fi
6821
6822else
6823
6824 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6825 if test "x$LINE" != x ; then
6826 eval "DEFAULT_$LINE"
6827 else
6828 no_cache=1
6829 fi
6830
6831 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6832
6833fi
6834
6835
6836 eval "$ac_cv_use_spinctrl"
6837 if test "$no_cache" != 1; then
6838 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6839 fi
6840
6841 if test "$wxUSE_SPINCTRL" = yes; then
6842 echo "$ac_t""yes" 1>&6
6843 else
6844 echo "$ac_t""no" 1>&6
6845 fi
6846
6847
6848 enablestring=
6849 echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
6850echo "configure:6851: checking for --${enablestring:-enable}-splitter" >&5
6851 no_cache=0
6852 # Check whether --enable-splitter or --disable-splitter was given.
6853if test "${enable_splitter+set}" = set; then
6854 enableval="$enable_splitter"
6855
6856 if test "$enableval" = yes; then
6857 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6858 else
6859 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6860 fi
6861
6862else
6863
6864 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6865 if test "x$LINE" != x ; then
6866 eval "DEFAULT_$LINE"
6867 else
6868 no_cache=1
6869 fi
6870
6871 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6872
6873fi
6874
6875
6876 eval "$ac_cv_use_splitter"
6877 if test "$no_cache" != 1; then
6878 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6879 fi
6880
6881 if test "$wxUSE_SPLITTER" = yes; then
6882 echo "$ac_t""yes" 1>&6
6883 else
6884 echo "$ac_t""no" 1>&6
6885 fi
6886
6887
6888 enablestring=
6889 echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
6890echo "configure:6891: checking for --${enablestring:-enable}-statbmp" >&5
6891 no_cache=0
6892 # Check whether --enable-statbmp or --disable-statbmp was given.
6893if test "${enable_statbmp+set}" = set; then
6894 enableval="$enable_statbmp"
6895
6896 if test "$enableval" = yes; then
6897 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6898 else
6899 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6900 fi
6901
6902else
6903
6904 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6905 if test "x$LINE" != x ; then
6906 eval "DEFAULT_$LINE"
6907 else
6908 no_cache=1
6909 fi
6910
6911 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6912
6913fi
6914
6915
6916 eval "$ac_cv_use_statbmp"
6917 if test "$no_cache" != 1; then
6918 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6919 fi
6920
6921 if test "$wxUSE_STATBMP" = yes; then
6922 echo "$ac_t""yes" 1>&6
6923 else
6924 echo "$ac_t""no" 1>&6
6925 fi
6926
6927
6928 enablestring=
6929 echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
6930echo "configure:6931: checking for --${enablestring:-enable}-statbox" >&5
6931 no_cache=0
6932 # Check whether --enable-statbox or --disable-statbox was given.
6933if test "${enable_statbox+set}" = set; then
6934 enableval="$enable_statbox"
6935
6936 if test "$enableval" = yes; then
6937 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6938 else
6939 ac_cv_use_statbox='wxUSE_STATBOX=no'
6940 fi
6941
6942else
6943
6944 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6945 if test "x$LINE" != x ; then
6946 eval "DEFAULT_$LINE"
6947 else
6948 no_cache=1
6949 fi
6950
6951 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6952
6953fi
6954
6955
6956 eval "$ac_cv_use_statbox"
6957 if test "$no_cache" != 1; then
6958 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6959 fi
6960
6961 if test "$wxUSE_STATBOX" = yes; then
6962 echo "$ac_t""yes" 1>&6
6963 else
6964 echo "$ac_t""no" 1>&6
6965 fi
6966
6967
6968 enablestring=
6969 echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
6970echo "configure:6971: checking for --${enablestring:-enable}-statline" >&5
6971 no_cache=0
6972 # Check whether --enable-statline or --disable-statline was given.
6973if test "${enable_statline+set}" = set; then
6974 enableval="$enable_statline"
6975
6976 if test "$enableval" = yes; then
6977 ac_cv_use_statline='wxUSE_STATLINE=yes'
6978 else
6979 ac_cv_use_statline='wxUSE_STATLINE=no'
6980 fi
6981
6982else
6983
6984 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6985 if test "x$LINE" != x ; then
6986 eval "DEFAULT_$LINE"
6987 else
6988 no_cache=1
6989 fi
6990
6991 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6992
6993fi
6994
6995
6996 eval "$ac_cv_use_statline"
6997 if test "$no_cache" != 1; then
6998 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6999 fi
7000
7001 if test "$wxUSE_STATLINE" = yes; then
7002 echo "$ac_t""yes" 1>&6
7003 else
7004 echo "$ac_t""no" 1>&6
7005 fi
7006
7007
7008 enablestring=
7009 echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
7010echo "configure:7011: checking for --${enablestring:-enable}-stattext" >&5
7011 no_cache=0
7012 # Check whether --enable-stattext or --disable-stattext was given.
7013if test "${enable_stattext+set}" = set; then
7014 enableval="$enable_stattext"
7015
7016 if test "$enableval" = yes; then
7017 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7018 else
7019 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7020 fi
7021
7022else
7023
7024 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7025 if test "x$LINE" != x ; then
7026 eval "DEFAULT_$LINE"
7027 else
7028 no_cache=1
7029 fi
7030
7031 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
7032
7033fi
7034
7035
7036 eval "$ac_cv_use_stattext"
7037 if test "$no_cache" != 1; then
7038 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7039 fi
7040
7041 if test "$wxUSE_STATTEXT" = yes; then
7042 echo "$ac_t""yes" 1>&6
7043 else
7044 echo "$ac_t""no" 1>&6
7045 fi
7046
7047
7048 enablestring=
7049 echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
7050echo "configure:7051: checking for --${enablestring:-enable}-statusbar" >&5
7051 no_cache=0
7052 # Check whether --enable-statusbar or --disable-statusbar was given.
7053if test "${enable_statusbar+set}" = set; then
7054 enableval="$enable_statusbar"
7055
7056 if test "$enableval" = yes; then
7057 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7058 else
7059 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7060 fi
7061
7062else
7063
7064 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7065 if test "x$LINE" != x ; then
7066 eval "DEFAULT_$LINE"
7067 else
7068 no_cache=1
7069 fi
7070
7071 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
7072
7073fi
7074
7075
7076 eval "$ac_cv_use_statusbar"
7077 if test "$no_cache" != 1; then
7078 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7079 fi
7080
7081 if test "$wxUSE_STATUSBAR" = yes; then
7082 echo "$ac_t""yes" 1>&6
7083 else
7084 echo "$ac_t""no" 1>&6
7085 fi
7086
7087
7088 enablestring=
7089 echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
7090echo "configure:7091: checking for --${enablestring:-enable}-tabdialog" >&5
7091 no_cache=0
7092 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7093if test "${enable_tabdialog+set}" = set; then
7094 enableval="$enable_tabdialog"
7095
7096 if test "$enableval" = yes; then
7097 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7098 else
7099 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7100 fi
7101
7102else
7103
7104 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7105 if test "x$LINE" != x ; then
7106 eval "DEFAULT_$LINE"
7107 else
7108 no_cache=1
7109 fi
7110
7111 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
7112
7113fi
7114
7115
7116 eval "$ac_cv_use_tabdialog"
7117 if test "$no_cache" != 1; then
7118 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7119 fi
7120
7121 if test "$wxUSE_TABDIALOG" = yes; then
7122 echo "$ac_t""yes" 1>&6
7123 else
7124 echo "$ac_t""no" 1>&6
7125 fi
7126
7127
7128 enablestring=
7129 echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
7130echo "configure:7131: checking for --${enablestring:-enable}-textctrl" >&5
7131 no_cache=0
7132 # Check whether --enable-textctrl or --disable-textctrl was given.
7133if test "${enable_textctrl+set}" = set; then
7134 enableval="$enable_textctrl"
7135
7136 if test "$enableval" = yes; then
7137 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7138 else
7139 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7140 fi
7141
7142else
7143
7144 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7145 if test "x$LINE" != x ; then
7146 eval "DEFAULT_$LINE"
7147 else
7148 no_cache=1
7149 fi
7150
7151 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
7152
7153fi
7154
7155
7156 eval "$ac_cv_use_textctrl"
7157 if test "$no_cache" != 1; then
7158 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7159 fi
7160
7161 if test "$wxUSE_TEXTCTRL" = yes; then
7162 echo "$ac_t""yes" 1>&6
7163 else
7164 echo "$ac_t""no" 1>&6
7165 fi
7166
7167
7168 enablestring=
7169 echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
7170echo "configure:7171: checking for --${enablestring:-enable}-togglebtn" >&5
7171 no_cache=0
7172 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7173if test "${enable_togglebtn+set}" = set; then
7174 enableval="$enable_togglebtn"
7175
7176 if test "$enableval" = yes; then
7177 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7178 else
7179 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7180 fi
7181
7182else
7183
7184 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7185 if test "x$LINE" != x ; then
7186 eval "DEFAULT_$LINE"
7187 else
7188 no_cache=1
7189 fi
7190
7191 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7192
7193fi
7194
7195
7196 eval "$ac_cv_use_togglebtn"
7197 if test "$no_cache" != 1; then
7198 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7199 fi
7200
7201 if test "$wxUSE_TOGGLEBTN" = yes; then
7202 echo "$ac_t""yes" 1>&6
7203 else
7204 echo "$ac_t""no" 1>&6
7205 fi
7206
7207
7208 enablestring=
7209 echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
7210echo "configure:7211: checking for --${enablestring:-enable}-toolbar" >&5
7211 no_cache=0
7212 # Check whether --enable-toolbar or --disable-toolbar was given.
7213if test "${enable_toolbar+set}" = set; then
7214 enableval="$enable_toolbar"
7215
7216 if test "$enableval" = yes; then
7217 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7218 else
7219 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7220 fi
7221
7222else
7223
7224 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7225 if test "x$LINE" != x ; then
7226 eval "DEFAULT_$LINE"
7227 else
7228 no_cache=1
7229 fi
7230
7231 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7232
7233fi
7234
7235
7236 eval "$ac_cv_use_toolbar"
7237 if test "$no_cache" != 1; then
7238 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7239 fi
7240
7241 if test "$wxUSE_TOOLBAR" = yes; then
7242 echo "$ac_t""yes" 1>&6
7243 else
7244 echo "$ac_t""no" 1>&6
7245 fi
7246
7247
7248 enablestring=
7249 echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
7250echo "configure:7251: checking for --${enablestring:-enable}-tbarnative" >&5
7251 no_cache=0
7252 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7253if test "${enable_tbarnative+set}" = set; then
7254 enableval="$enable_tbarnative"
7255
7256 if test "$enableval" = yes; then
7257 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7258 else
7259 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7260 fi
7261
7262else
7263
7264 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7265 if test "x$LINE" != x ; then
7266 eval "DEFAULT_$LINE"
7267 else
7268 no_cache=1
7269 fi
7270
7271 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7272
7273fi
7274
7275
7276 eval "$ac_cv_use_tbarnative"
7277 if test "$no_cache" != 1; then
7278 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7279 fi
7280
7281 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7282 echo "$ac_t""yes" 1>&6
7283 else
7284 echo "$ac_t""no" 1>&6
7285 fi
7286
7287
7288 enablestring=
7289 echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
7290echo "configure:7291: checking for --${enablestring:-enable}-tbarsmpl" >&5
7291 no_cache=0
7292 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7293if test "${enable_tbarsmpl+set}" = set; then
7294 enableval="$enable_tbarsmpl"
7295
7296 if test "$enableval" = yes; then
7297 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7298 else
7299 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7300 fi
7301
7302else
7303
7304 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7305 if test "x$LINE" != x ; then
7306 eval "DEFAULT_$LINE"
7307 else
7308 no_cache=1
7309 fi
7310
7311 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7312
7313fi
7314
7315
7316 eval "$ac_cv_use_tbarsmpl"
7317 if test "$no_cache" != 1; then
7318 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7319 fi
7320
7321 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7322 echo "$ac_t""yes" 1>&6
7323 else
7324 echo "$ac_t""no" 1>&6
7325 fi
7326
7327
7328 enablestring=
7329 echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
7330echo "configure:7331: checking for --${enablestring:-enable}-treectrl" >&5
7331 no_cache=0
7332 # Check whether --enable-treectrl or --disable-treectrl was given.
7333if test "${enable_treectrl+set}" = set; then
7334 enableval="$enable_treectrl"
7335
7336 if test "$enableval" = yes; then
7337 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7338 else
7339 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7340 fi
7341
7342else
7343
7344 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7345 if test "x$LINE" != x ; then
7346 eval "DEFAULT_$LINE"
7347 else
7348 no_cache=1
7349 fi
7350
7351 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7352
7353fi
7354
7355
7356 eval "$ac_cv_use_treectrl"
7357 if test "$no_cache" != 1; then
7358 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7359 fi
7360
7361 if test "$wxUSE_TREECTRL" = yes; then
7362 echo "$ac_t""yes" 1>&6
7363 else
7364 echo "$ac_t""no" 1>&6
7365 fi
7366
7367
7368 enablestring=
7369 echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
7370echo "configure:7371: checking for --${enablestring:-enable}-tipwindow" >&5
7371 no_cache=0
7372 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7373if test "${enable_tipwindow+set}" = set; then
7374 enableval="$enable_tipwindow"
7375
7376 if test "$enableval" = yes; then
7377 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7378 else
7379 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7380 fi
7381
7382else
7383
7384 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7385 if test "x$LINE" != x ; then
7386 eval "DEFAULT_$LINE"
7387 else
7388 no_cache=1
7389 fi
7390
7391 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7392
7393fi
7394
7395
7396 eval "$ac_cv_use_tipwindow"
7397 if test "$no_cache" != 1; then
7398 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7399 fi
7400
7401 if test "$wxUSE_TIPWINDOW" = yes; then
7402 echo "$ac_t""yes" 1>&6
7403 else
7404 echo "$ac_t""no" 1>&6
7405 fi
7406
7407
7408 enablestring=
7409 echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
7410echo "configure:7411: checking for --${enablestring:-enable}-popupwin" >&5
7411 no_cache=0
7412 # Check whether --enable-popupwin or --disable-popupwin was given.
7413if test "${enable_popupwin+set}" = set; then
7414 enableval="$enable_popupwin"
7415
7416 if test "$enableval" = yes; then
7417 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7418 else
7419 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7420 fi
7421
7422else
7423
7424 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7425 if test "x$LINE" != x ; then
7426 eval "DEFAULT_$LINE"
7427 else
7428 no_cache=1
7429 fi
7430
7431 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7432
7433fi
7434
7435
7436 eval "$ac_cv_use_popupwin"
7437 if test "$no_cache" != 1; then
7438 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7439 fi
7440
7441 if test "$wxUSE_POPUPWIN" = yes; then
7442 echo "$ac_t""yes" 1>&6
7443 else
7444 echo "$ac_t""no" 1>&6
7445 fi
7446
7447
7448
7449
7450 enablestring=
7451 echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
7452echo "configure:7453: checking for --${enablestring:-enable}-commondlg" >&5
7453 no_cache=0
7454 # Check whether --enable-commondlg or --disable-commondlg was given.
7455if test "${enable_commondlg+set}" = set; then
7456 enableval="$enable_commondlg"
7457
7458 if test "$enableval" = yes; then
7459 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7460 else
7461 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7462 fi
7463
7464else
7465
7466 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7467 if test "x$LINE" != x ; then
7468 eval "DEFAULT_$LINE"
7469 else
7470 no_cache=1
7471 fi
7472
7473 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7474
7475fi
7476
7477
7478 eval "$ac_cv_use_commondlg"
7479 if test "$no_cache" != 1; then
7480 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7481 fi
7482
7483 if test "$wxUSE_COMMONDLGS" = yes; then
7484 echo "$ac_t""yes" 1>&6
7485 else
7486 echo "$ac_t""no" 1>&6
7487 fi
7488
7489
7490 enablestring=
7491 echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
7492echo "configure:7493: checking for --${enablestring:-enable}-choicedlg" >&5
7493 no_cache=0
7494 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7495if test "${enable_choicedlg+set}" = set; then
7496 enableval="$enable_choicedlg"
7497
7498 if test "$enableval" = yes; then
7499 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7500 else
7501 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7502 fi
7503
7504else
7505
7506 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7507 if test "x$LINE" != x ; then
7508 eval "DEFAULT_$LINE"
7509 else
7510 no_cache=1
7511 fi
7512
7513 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7514
7515fi
7516
7517
7518 eval "$ac_cv_use_choicedlg"
7519 if test "$no_cache" != 1; then
7520 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7521 fi
7522
7523 if test "$wxUSE_CHOICEDLG" = yes; then
7524 echo "$ac_t""yes" 1>&6
7525 else
7526 echo "$ac_t""no" 1>&6
7527 fi
7528
7529
7530 enablestring=
7531 echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
7532echo "configure:7533: checking for --${enablestring:-enable}-coldlg" >&5
7533 no_cache=0
7534 # Check whether --enable-coldlg or --disable-coldlg was given.
7535if test "${enable_coldlg+set}" = set; then
7536 enableval="$enable_coldlg"
7537
7538 if test "$enableval" = yes; then
7539 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7540 else
7541 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7542 fi
7543
7544else
7545
7546 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7547 if test "x$LINE" != x ; then
7548 eval "DEFAULT_$LINE"
7549 else
7550 no_cache=1
7551 fi
7552
7553 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7554
7555fi
7556
7557
7558 eval "$ac_cv_use_coldlg"
7559 if test "$no_cache" != 1; then
7560 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7561 fi
7562
7563 if test "$wxUSE_COLOURDLG" = yes; then
7564 echo "$ac_t""yes" 1>&6
7565 else
7566 echo "$ac_t""no" 1>&6
7567 fi
7568
7569
7570 enablestring=
7571 echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
7572echo "configure:7573: checking for --${enablestring:-enable}-filedlg" >&5
7573 no_cache=0
7574 # Check whether --enable-filedlg or --disable-filedlg was given.
7575if test "${enable_filedlg+set}" = set; then
7576 enableval="$enable_filedlg"
7577
7578 if test "$enableval" = yes; then
7579 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7580 else
7581 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7582 fi
7583
7584else
7585
7586 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7587 if test "x$LINE" != x ; then
7588 eval "DEFAULT_$LINE"
7589 else
7590 no_cache=1
7591 fi
7592
7593 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7594
7595fi
7596
7597
7598 eval "$ac_cv_use_filedlg"
7599 if test "$no_cache" != 1; then
7600 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7601 fi
7602
7603 if test "$wxUSE_FILEDLG" = yes; then
7604 echo "$ac_t""yes" 1>&6
7605 else
7606 echo "$ac_t""no" 1>&6
7607 fi
7608
7609
7610 enablestring=
7611 echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
7612echo "configure:7613: checking for --${enablestring:-enable}-finddlg" >&5
7613 no_cache=0
7614 # Check whether --enable-finddlg or --disable-finddlg was given.
7615if test "${enable_finddlg+set}" = set; then
7616 enableval="$enable_finddlg"
7617
7618 if test "$enableval" = yes; then
7619 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7620 else
7621 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7622 fi
7623
7624else
7625
7626 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7627 if test "x$LINE" != x ; then
7628 eval "DEFAULT_$LINE"
7629 else
7630 no_cache=1
7631 fi
7632
7633 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7634
7635fi
7636
7637
7638 eval "$ac_cv_use_finddlg"
7639 if test "$no_cache" != 1; then
7640 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7641 fi
7642
7643 if test "$wxUSE_FINDREPLDLG" = yes; then
7644 echo "$ac_t""yes" 1>&6
7645 else
7646 echo "$ac_t""no" 1>&6
7647 fi
7648
7649
7650 enablestring=
7651 echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
7652echo "configure:7653: checking for --${enablestring:-enable}-fontdlg" >&5
7653 no_cache=0
7654 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7655if test "${enable_fontdlg+set}" = set; then
7656 enableval="$enable_fontdlg"
7657
7658 if test "$enableval" = yes; then
7659 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7660 else
7661 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7662 fi
7663
7664else
7665
7666 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7667 if test "x$LINE" != x ; then
7668 eval "DEFAULT_$LINE"
7669 else
7670 no_cache=1
7671 fi
7672
7673 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7674
7675fi
7676
7677
7678 eval "$ac_cv_use_fontdlg"
7679 if test "$no_cache" != 1; then
7680 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7681 fi
7682
7683 if test "$wxUSE_FONTDLG" = yes; then
7684 echo "$ac_t""yes" 1>&6
7685 else
7686 echo "$ac_t""no" 1>&6
7687 fi
7688
7689
7690 enablestring=
7691 echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
7692echo "configure:7693: checking for --${enablestring:-enable}-dirdlg" >&5
7693 no_cache=0
7694 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7695if test "${enable_dirdlg+set}" = set; then
7696 enableval="$enable_dirdlg"
7697
7698 if test "$enableval" = yes; then
7699 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7700 else
7701 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7702 fi
7703
7704else
7705
7706 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7707 if test "x$LINE" != x ; then
7708 eval "DEFAULT_$LINE"
7709 else
7710 no_cache=1
7711 fi
7712
7713 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7714
7715fi
7716
7717
7718 eval "$ac_cv_use_dirdlg"
7719 if test "$no_cache" != 1; then
7720 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7721 fi
7722
7723 if test "$wxUSE_DIRDLG" = yes; then
7724 echo "$ac_t""yes" 1>&6
7725 else
7726 echo "$ac_t""no" 1>&6
7727 fi
7728
7729
7730 enablestring=
7731 echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
7732echo "configure:7733: checking for --${enablestring:-enable}-msgdlg" >&5
7733 no_cache=0
7734 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7735if test "${enable_msgdlg+set}" = set; then
7736 enableval="$enable_msgdlg"
7737
7738 if test "$enableval" = yes; then
7739 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7740 else
7741 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7742 fi
7743
7744else
7745
7746 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7747 if test "x$LINE" != x ; then
7748 eval "DEFAULT_$LINE"
7749 else
7750 no_cache=1
7751 fi
7752
7753 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7754
7755fi
7756
7757
7758 eval "$ac_cv_use_msgdlg"
7759 if test "$no_cache" != 1; then
7760 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7761 fi
7762
7763 if test "$wxUSE_MSGDLG" = yes; then
7764 echo "$ac_t""yes" 1>&6
7765 else
7766 echo "$ac_t""no" 1>&6
7767 fi
7768
7769
7770 enablestring=
7771 echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
7772echo "configure:7773: checking for --${enablestring:-enable}-numberdlg" >&5
7773 no_cache=0
7774 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7775if test "${enable_numberdlg+set}" = set; then
7776 enableval="$enable_numberdlg"
7777
7778 if test "$enableval" = yes; then
7779 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7780 else
7781 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7782 fi
7783
7784else
7785
7786 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7787 if test "x$LINE" != x ; then
7788 eval "DEFAULT_$LINE"
7789 else
7790 no_cache=1
7791 fi
7792
7793 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7794
7795fi
7796
7797
7798 eval "$ac_cv_use_numberdlg"
7799 if test "$no_cache" != 1; then
7800 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7801 fi
7802
7803 if test "$wxUSE_NUMBERDLG" = yes; then
7804 echo "$ac_t""yes" 1>&6
7805 else
7806 echo "$ac_t""no" 1>&6
7807 fi
7808
7809
7810 enablestring=
7811 echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
7812echo "configure:7813: checking for --${enablestring:-enable}-splash" >&5
7813 no_cache=0
7814 # Check whether --enable-splash or --disable-splash was given.
7815if test "${enable_splash+set}" = set; then
7816 enableval="$enable_splash"
7817
7818 if test "$enableval" = yes; then
7819 ac_cv_use_splash='wxUSE_SPLASH=yes'
7820 else
7821 ac_cv_use_splash='wxUSE_SPLASH=no'
7822 fi
7823
7824else
7825
7826 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7827 if test "x$LINE" != x ; then
7828 eval "DEFAULT_$LINE"
7829 else
7830 no_cache=1
7831 fi
7832
7833 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7834
7835fi
7836
7837
7838 eval "$ac_cv_use_splash"
7839 if test "$no_cache" != 1; then
7840 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7841 fi
7842
7843 if test "$wxUSE_SPLASH" = yes; then
7844 echo "$ac_t""yes" 1>&6
7845 else
7846 echo "$ac_t""no" 1>&6
7847 fi
7848
7849
7850 enablestring=
7851 echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
7852echo "configure:7853: checking for --${enablestring:-enable}-textdlg" >&5
7853 no_cache=0
7854 # Check whether --enable-textdlg or --disable-textdlg was given.
7855if test "${enable_textdlg+set}" = set; then
7856 enableval="$enable_textdlg"
7857
7858 if test "$enableval" = yes; then
7859 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7860 else
7861 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7862 fi
7863
7864else
7865
7866 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7867 if test "x$LINE" != x ; then
7868 eval "DEFAULT_$LINE"
7869 else
7870 no_cache=1
7871 fi
7872
7873 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7874
7875fi
7876
7877
7878 eval "$ac_cv_use_textdlg"
7879 if test "$no_cache" != 1; then
7880 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7881 fi
7882
7883 if test "$wxUSE_TEXTDLG" = yes; then
7884 echo "$ac_t""yes" 1>&6
7885 else
7886 echo "$ac_t""no" 1>&6
7887 fi
7888
7889
7890 enablestring=
7891 echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
7892echo "configure:7893: checking for --${enablestring:-enable}-tipdlg" >&5
7893 no_cache=0
7894 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7895if test "${enable_tipdlg+set}" = set; then
7896 enableval="$enable_tipdlg"
7897
7898 if test "$enableval" = yes; then
7899 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7900 else
7901 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7902 fi
7903
7904else
7905
7906 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7907 if test "x$LINE" != x ; then
7908 eval "DEFAULT_$LINE"
7909 else
7910 no_cache=1
7911 fi
7912
7913 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7914
7915fi
7916
7917
7918 eval "$ac_cv_use_tipdlg"
7919 if test "$no_cache" != 1; then
7920 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7921 fi
7922
7923 if test "$wxUSE_STARTUP_TIPS" = yes; then
7924 echo "$ac_t""yes" 1>&6
7925 else
7926 echo "$ac_t""no" 1>&6
7927 fi
7928
7929
7930 enablestring=
7931 echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
7932echo "configure:7933: checking for --${enablestring:-enable}-progressdlg" >&5
7933 no_cache=0
7934 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7935if test "${enable_progressdlg+set}" = set; then
7936 enableval="$enable_progressdlg"
7937
7938 if test "$enableval" = yes; then
7939 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7940 else
7941 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7942 fi
7943
7944else
7945
7946 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7947 if test "x$LINE" != x ; then
7948 eval "DEFAULT_$LINE"
7949 else
7950 no_cache=1
7951 fi
7952
7953 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7954
7955fi
7956
7957
7958 eval "$ac_cv_use_progressdlg"
7959 if test "$no_cache" != 1; then
7960 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7961 fi
7962
7963 if test "$wxUSE_PROGRESSDLG" = yes; then
7964 echo "$ac_t""yes" 1>&6
7965 else
7966 echo "$ac_t""no" 1>&6
7967 fi
7968
7969
7970 enablestring=
7971 echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
7972echo "configure:7973: checking for --${enablestring:-enable}-wizarddlg" >&5
7973 no_cache=0
7974 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7975if test "${enable_wizarddlg+set}" = set; then
7976 enableval="$enable_wizarddlg"
7977
7978 if test "$enableval" = yes; then
7979 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7980 else
7981 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7982 fi
7983
7984else
7985
7986 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7987 if test "x$LINE" != x ; then
7988 eval "DEFAULT_$LINE"
7989 else
7990 no_cache=1
7991 fi
7992
7993 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7994
7995fi
7996
7997
7998 eval "$ac_cv_use_wizarddlg"
7999 if test "$no_cache" != 1; then
8000 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8001 fi
8002
8003 if test "$wxUSE_WIZARDDLG" = yes; then
8004 echo "$ac_t""yes" 1>&6
8005 else
8006 echo "$ac_t""no" 1>&6
8007 fi
8008
8009
8010
8011
8012 enablestring=
8013 echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
8014echo "configure:8015: checking for --${enablestring:-enable}-menus" >&5
8015 no_cache=0
8016 # Check whether --enable-menus or --disable-menus was given.
8017if test "${enable_menus+set}" = set; then
8018 enableval="$enable_menus"
8019
8020 if test "$enableval" = yes; then
8021 ac_cv_use_menus='wxUSE_MENUS=yes'
8022 else
8023 ac_cv_use_menus='wxUSE_MENUS=no'
8024 fi
8025
8026else
8027
8028 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8029 if test "x$LINE" != x ; then
8030 eval "DEFAULT_$LINE"
8031 else
8032 no_cache=1
8033 fi
8034
8035 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
8036
8037fi
8038
8039
8040 eval "$ac_cv_use_menus"
8041 if test "$no_cache" != 1; then
8042 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8043 fi
8044
8045 if test "$wxUSE_MENUS" = yes; then
8046 echo "$ac_t""yes" 1>&6
8047 else
8048 echo "$ac_t""no" 1>&6
8049 fi
8050
8051
8052 enablestring=
8053 echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
8054echo "configure:8055: checking for --${enablestring:-enable}-miniframe" >&5
8055 no_cache=0
8056 # Check whether --enable-miniframe or --disable-miniframe was given.
8057if test "${enable_miniframe+set}" = set; then
8058 enableval="$enable_miniframe"
8059
8060 if test "$enableval" = yes; then
8061 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8062 else
8063 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8064 fi
8065
8066else
8067
8068 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8069 if test "x$LINE" != x ; then
8070 eval "DEFAULT_$LINE"
8071 else
8072 no_cache=1
8073 fi
8074
8075 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
8076
8077fi
8078
8079
8080 eval "$ac_cv_use_miniframe"
8081 if test "$no_cache" != 1; then
8082 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8083 fi
8084
8085 if test "$wxUSE_MINIFRAME" = yes; then
8086 echo "$ac_t""yes" 1>&6
8087 else
8088 echo "$ac_t""no" 1>&6
8089 fi
8090
8091
8092 enablestring=
8093 echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
8094echo "configure:8095: checking for --${enablestring:-enable}-tooltips" >&5
8095 no_cache=0
8096 # Check whether --enable-tooltips or --disable-tooltips was given.
8097if test "${enable_tooltips+set}" = set; then
8098 enableval="$enable_tooltips"
8099
8100 if test "$enableval" = yes; then
8101 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8102 else
8103 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8104 fi
8105
8106else
8107
8108 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8109 if test "x$LINE" != x ; then
8110 eval "DEFAULT_$LINE"
8111 else
8112 no_cache=1
8113 fi
8114
8115 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
8116
8117fi
8118
8119
8120 eval "$ac_cv_use_tooltips"
8121 if test "$no_cache" != 1; then
8122 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8123 fi
8124
8125 if test "$wxUSE_TOOLTIPS" = yes; then
8126 echo "$ac_t""yes" 1>&6
8127 else
8128 echo "$ac_t""no" 1>&6
8129 fi
8130
8131
8132 enablestring=
8133 echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
8134echo "configure:8135: checking for --${enablestring:-enable}-splines" >&5
8135 no_cache=0
8136 # Check whether --enable-splines or --disable-splines was given.
8137if test "${enable_splines+set}" = set; then
8138 enableval="$enable_splines"
8139
8140 if test "$enableval" = yes; then
8141 ac_cv_use_splines='wxUSE_SPLINES=yes'
8142 else
8143 ac_cv_use_splines='wxUSE_SPLINES=no'
8144 fi
8145
8146else
8147
8148 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8149 if test "x$LINE" != x ; then
8150 eval "DEFAULT_$LINE"
8151 else
8152 no_cache=1
8153 fi
8154
8155 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
8156
8157fi
8158
8159
8160 eval "$ac_cv_use_splines"
8161 if test "$no_cache" != 1; then
8162 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8163 fi
8164
8165 if test "$wxUSE_SPLINES" = yes; then
8166 echo "$ac_t""yes" 1>&6
8167 else
8168 echo "$ac_t""no" 1>&6
8169 fi
8170
8171
8172 enablestring=
8173 echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
8174echo "configure:8175: checking for --${enablestring:-enable}-validators" >&5
8175 no_cache=0
8176 # Check whether --enable-validators or --disable-validators was given.
8177if test "${enable_validators+set}" = set; then
8178 enableval="$enable_validators"
8179
8180 if test "$enableval" = yes; then
8181 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8182 else
8183 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8184 fi
8185
8186else
8187
8188 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8189 if test "x$LINE" != x ; then
8190 eval "DEFAULT_$LINE"
8191 else
8192 no_cache=1
8193 fi
8194
8195 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
8196
8197fi
8198
8199
8200 eval "$ac_cv_use_validators"
8201 if test "$no_cache" != 1; then
8202 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8203 fi
8204
8205 if test "$wxUSE_VALIDATORS" = yes; then
8206 echo "$ac_t""yes" 1>&6
8207 else
8208 echo "$ac_t""no" 1>&6
8209 fi
8210
8211
8212 enablestring=
8213 echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
8214echo "configure:8215: checking for --${enablestring:-enable}-busyinfo" >&5
8215 no_cache=0
8216 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8217if test "${enable_busyinfo+set}" = set; then
8218 enableval="$enable_busyinfo"
8219
8220 if test "$enableval" = yes; then
8221 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8222 else
8223 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8224 fi
8225
8226else
8227
8228 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8229 if test "x$LINE" != x ; then
8230 eval "DEFAULT_$LINE"
8231 else
8232 no_cache=1
8233 fi
8234
8235 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8236
8237fi
8238
8239
8240 eval "$ac_cv_use_busyinfo"
8241 if test "$no_cache" != 1; then
8242 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8243 fi
8244
8245 if test "$wxUSE_BUSYINFO" = yes; then
8246 echo "$ac_t""yes" 1>&6
8247 else
8248 echo "$ac_t""no" 1>&6
8249 fi
8250
8251
8252 enablestring=
8253 echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
8254echo "configure:8255: checking for --${enablestring:-enable}-joystick" >&5
8255 no_cache=0
8256 # Check whether --enable-joystick or --disable-joystick was given.
8257if test "${enable_joystick+set}" = set; then
8258 enableval="$enable_joystick"
8259
8260 if test "$enableval" = yes; then
8261 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8262 else
8263 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8264 fi
8265
8266else
8267
8268 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8269 if test "x$LINE" != x ; then
8270 eval "DEFAULT_$LINE"
8271 else
8272 no_cache=1
8273 fi
8274
8275 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8276
8277fi
8278
8279
8280 eval "$ac_cv_use_joystick"
8281 if test "$no_cache" != 1; then
8282 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8283 fi
8284
8285 if test "$wxUSE_JOYSTICK" = yes; then
8286 echo "$ac_t""yes" 1>&6
8287 else
8288 echo "$ac_t""no" 1>&6
8289 fi
8290
8291
8292 enablestring=
8293 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
8294echo "configure:8295: checking for --${enablestring:-enable}-metafile" >&5
8295 no_cache=0
8296 # Check whether --enable-metafile or --disable-metafile was given.
8297if test "${enable_metafile+set}" = set; then
8298 enableval="$enable_metafile"
8299
8300 if test "$enableval" = yes; then
8301 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8302 else
8303 ac_cv_use_metafile='wxUSE_METAFILE=no'
8304 fi
8305
8306else
8307
8308 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8309 if test "x$LINE" != x ; then
8310 eval "DEFAULT_$LINE"
8311 else
8312 no_cache=1
8313 fi
8314
8315 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8316
8317fi
8318
8319
8320 eval "$ac_cv_use_metafile"
8321 if test "$no_cache" != 1; then
8322 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8323 fi
8324
8325 if test "$wxUSE_METAFILE" = yes; then
8326 echo "$ac_t""yes" 1>&6
8327 else
8328 echo "$ac_t""no" 1>&6
8329 fi
8330
8331
8332 enablestring=
8333 echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
8334echo "configure:8335: checking for --${enablestring:-enable}-dragimage" >&5
8335 no_cache=0
8336 # Check whether --enable-dragimage or --disable-dragimage was given.
8337if test "${enable_dragimage+set}" = set; then
8338 enableval="$enable_dragimage"
8339
8340 if test "$enableval" = yes; then
8341 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8342 else
8343 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8344 fi
8345
8346else
8347
8348 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8349 if test "x$LINE" != x ; then
8350 eval "DEFAULT_$LINE"
8351 else
8352 no_cache=1
8353 fi
8354
8355 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8356
8357fi
8358
8359
8360 eval "$ac_cv_use_dragimage"
8361 if test "$no_cache" != 1; then
8362 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8363 fi
8364
8365 if test "$wxUSE_DRAGIMAGE" = yes; then
8366 echo "$ac_t""yes" 1>&6
8367 else
8368 echo "$ac_t""no" 1>&6
8369 fi
8370
8371
8372
8373
8374 enablestring=
8375 echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
8376echo "configure:8377: checking for --${enablestring:-enable}-palette" >&5
8377 no_cache=0
8378 # Check whether --enable-palette or --disable-palette was given.
8379if test "${enable_palette+set}" = set; then
8380 enableval="$enable_palette"
8381
8382 if test "$enableval" = yes; then
8383 ac_cv_use_palette='wxUSE_PALETTE=yes'
8384 else
8385 ac_cv_use_palette='wxUSE_PALETTE=no'
8386 fi
8387
8388else
8389
8390 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8391 if test "x$LINE" != x ; then
8392 eval "DEFAULT_$LINE"
8393 else
8394 no_cache=1
8395 fi
8396
8397 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8398
8399fi
8400
8401
8402 eval "$ac_cv_use_palette"
8403 if test "$no_cache" != 1; then
8404 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8405 fi
8406
8407 if test "$wxUSE_PALETTE" = yes; then
8408 echo "$ac_t""yes" 1>&6
8409 else
8410 echo "$ac_t""no" 1>&6
8411 fi
8412
8413
8414 enablestring=
8415 echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
8416echo "configure:8417: checking for --${enablestring:-enable}-image" >&5
8417 no_cache=0
8418 # Check whether --enable-image or --disable-image was given.
8419if test "${enable_image+set}" = set; then
8420 enableval="$enable_image"
8421
8422 if test "$enableval" = yes; then
8423 ac_cv_use_image='wxUSE_IMAGE=yes'
8424 else
8425 ac_cv_use_image='wxUSE_IMAGE=no'
8426 fi
8427
8428else
8429
8430 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8431 if test "x$LINE" != x ; then
8432 eval "DEFAULT_$LINE"
8433 else
8434 no_cache=1
8435 fi
8436
8437 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8438
8439fi
8440
8441
8442 eval "$ac_cv_use_image"
8443 if test "$no_cache" != 1; then
8444 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8445 fi
8446
8447 if test "$wxUSE_IMAGE" = yes; then
8448 echo "$ac_t""yes" 1>&6
8449 else
8450 echo "$ac_t""no" 1>&6
8451 fi
8452
8453
8454 enablestring=
8455 echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
8456echo "configure:8457: checking for --${enablestring:-enable}-gif" >&5
8457 no_cache=0
8458 # Check whether --enable-gif or --disable-gif was given.
8459if test "${enable_gif+set}" = set; then
8460 enableval="$enable_gif"
8461
8462 if test "$enableval" = yes; then
8463 ac_cv_use_gif='wxUSE_GIF=yes'
8464 else
8465 ac_cv_use_gif='wxUSE_GIF=no'
8466 fi
8467
8468else
8469
8470 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8471 if test "x$LINE" != x ; then
8472 eval "DEFAULT_$LINE"
8473 else
8474 no_cache=1
8475 fi
8476
8477 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8478
8479fi
8480
8481
8482 eval "$ac_cv_use_gif"
8483 if test "$no_cache" != 1; then
8484 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8485 fi
8486
8487 if test "$wxUSE_GIF" = yes; then
8488 echo "$ac_t""yes" 1>&6
8489 else
8490 echo "$ac_t""no" 1>&6
8491 fi
8492
8493
8494 enablestring=
8495 echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
8496echo "configure:8497: checking for --${enablestring:-enable}-pcx" >&5
8497 no_cache=0
8498 # Check whether --enable-pcx or --disable-pcx was given.
8499if test "${enable_pcx+set}" = set; then
8500 enableval="$enable_pcx"
8501
8502 if test "$enableval" = yes; then
8503 ac_cv_use_pcx='wxUSE_PCX=yes'
8504 else
8505 ac_cv_use_pcx='wxUSE_PCX=no'
8506 fi
8507
8508else
8509
8510 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8511 if test "x$LINE" != x ; then
8512 eval "DEFAULT_$LINE"
8513 else
8514 no_cache=1
8515 fi
8516
8517 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8518
8519fi
8520
8521
8522 eval "$ac_cv_use_pcx"
8523 if test "$no_cache" != 1; then
8524 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8525 fi
8526
8527 if test "$wxUSE_PCX" = yes; then
8528 echo "$ac_t""yes" 1>&6
8529 else
8530 echo "$ac_t""no" 1>&6
8531 fi
8532
8533
8534 enablestring=
8535 echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
8536echo "configure:8537: checking for --${enablestring:-enable}-iff" >&5
8537 no_cache=0
8538 # Check whether --enable-iff or --disable-iff was given.
8539if test "${enable_iff+set}" = set; then
8540 enableval="$enable_iff"
8541
8542 if test "$enableval" = yes; then
8543 ac_cv_use_iff='wxUSE_IFF=yes'
8544 else
8545 ac_cv_use_iff='wxUSE_IFF=no'
8546 fi
8547
8548else
8549
8550 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8551 if test "x$LINE" != x ; then
8552 eval "DEFAULT_$LINE"
8553 else
8554 no_cache=1
8555 fi
8556
8557 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8558
8559fi
8560
8561
8562 eval "$ac_cv_use_iff"
8563 if test "$no_cache" != 1; then
8564 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8565 fi
8566
8567 if test "$wxUSE_IFF" = yes; then
8568 echo "$ac_t""yes" 1>&6
8569 else
8570 echo "$ac_t""no" 1>&6
8571 fi
8572
8573
8574 enablestring=
8575 echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
8576echo "configure:8577: checking for --${enablestring:-enable}-pnm" >&5
8577 no_cache=0
8578 # Check whether --enable-pnm or --disable-pnm was given.
8579if test "${enable_pnm+set}" = set; then
8580 enableval="$enable_pnm"
8581
8582 if test "$enableval" = yes; then
8583 ac_cv_use_pnm='wxUSE_PNM=yes'
8584 else
8585 ac_cv_use_pnm='wxUSE_PNM=no'
8586 fi
8587
8588else
8589
8590 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8591 if test "x$LINE" != x ; then
8592 eval "DEFAULT_$LINE"
8593 else
8594 no_cache=1
8595 fi
8596
8597 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8598
8599fi
8600
8601
8602 eval "$ac_cv_use_pnm"
8603 if test "$no_cache" != 1; then
8604 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8605 fi
8606
8607 if test "$wxUSE_PNM" = yes; then
8608 echo "$ac_t""yes" 1>&6
8609 else
8610 echo "$ac_t""no" 1>&6
8611 fi
8612
8613
8614 enablestring=
8615 echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
8616echo "configure:8617: checking for --${enablestring:-enable}-xpm" >&5
8617 no_cache=0
8618 # Check whether --enable-xpm or --disable-xpm was given.
8619if test "${enable_xpm+set}" = set; then
8620 enableval="$enable_xpm"
8621
8622 if test "$enableval" = yes; then
8623 ac_cv_use_xpm='wxUSE_XPM=yes'
8624 else
8625 ac_cv_use_xpm='wxUSE_XPM=no'
8626 fi
8627
8628else
8629
8630 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8631 if test "x$LINE" != x ; then
8632 eval "DEFAULT_$LINE"
8633 else
8634 no_cache=1
8635 fi
8636
8637 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8638
8639fi
8640
8641
8642 eval "$ac_cv_use_xpm"
8643 if test "$no_cache" != 1; then
8644 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8645 fi
8646
8647 if test "$wxUSE_XPM" = yes; then
8648 echo "$ac_t""yes" 1>&6
8649 else
8650 echo "$ac_t""no" 1>&6
8651 fi
8652
8653
8654 enablestring=
8655 echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
8656echo "configure:8657: checking for --${enablestring:-enable}-ico_cur" >&5
8657 no_cache=0
8658 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8659if test "${enable_ico_cur+set}" = set; then
8660 enableval="$enable_ico_cur"
8661
8662 if test "$enableval" = yes; then
8663 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8664 else
8665 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8666 fi
8667
8668else
8669
8670 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8671 if test "x$LINE" != x ; then
8672 eval "DEFAULT_$LINE"
8673 else
8674 no_cache=1
8675 fi
8676
8677 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8678
8679fi
8680
8681
8682 eval "$ac_cv_use_ico_cur"
8683 if test "$no_cache" != 1; then
8684 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8685 fi
8686
8687 if test "$wxUSE_ICO_CUR" = yes; then
8688 echo "$ac_t""yes" 1>&6
8689 else
8690 echo "$ac_t""no" 1>&6
8691 fi
8692
8693
8694fi
8695
8696case "${host}" in
8697 *-pc-os2_emx | *-pc-os2-emx )
8698 PATH_IFS=';'
8699 LEX_STEM="lexyy"
8700 ;;
8701 *)
8702 PATH_IFS=':'
8703 LEX_STEM="lex.yy"
8704 ;;
8705esac
8706
8707
8708
8709 echo "saving argument cache $wx_arg_cache_file"
8710 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8711
8712
8713
8714echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8715echo "configure:8716: checking for toolkit" >&5
8716
8717if test "$wxUSE_GUI" = "yes"; then
8718
8719 if test "$USE_BEOS" = 1; then
8720 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8721 fi
8722
8723 if test "$TOOLKIT_GIVEN" = 1; then
8724 for toolkit in `echo $ALL_TOOLKITS`; do
8725 var=wxUSE_$toolkit
8726 eval "value=\$${var}"
8727 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8728 done
8729 else
8730 for toolkit in `echo $ALL_TOOLKITS`; do
8731 if test "$has_toolkit_in_cache" != 1; then
8732 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8733 else
8734 var=DEFAULT_wxUSE_$toolkit
8735 fi
8736 eval "wxUSE_$toolkit=\$${var}"
8737 done
8738 fi
8739
8740 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
8741 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
8742
8743 case "${host}" in
8744 *-pc-os2_emx | *-pc-os2-emx )
8745 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8746 esac
8747
8748 case "$NUM_TOOLKITS" in
8749 1)
8750 ;;
8751 0)
8752 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
8753 ;;
8754 *)
8755 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
8756 esac
8757
8758 for toolkit in `echo $ALL_TOOLKITS`; do
8759 var=wxUSE_$toolkit
8760 eval "value=\$${var}"
8761 if test "x$value" != x; then
8762 cache_var=CACHE_$toolkit
8763 eval "cache=\$${cache_var}"
8764 if test "$cache" = 1; then
8765 echo "$var=$value" >> ${wx_arg_cache_file}
8766 fi
8767 if test "$value" = 1; then
8768 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8769 echo "$ac_t""$toolkit_echo" 1>&6
8770 fi
8771 fi
8772 done
8773else
8774 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8775fi
8776
8777wants_win32=0
8778doesnt_want_win32=0
8779case "${host}" in
8780 *-*-cygwin*)
8781 if test "$wxUSE_MSW" = 1 ; then
8782 wants_win32=1
8783 else
8784 doesnt_want_win32=1
8785 fi
8786 ;;
8787 *-*-mingw*)
8788 wants_win32=1
8789 ;;
8790esac
8791
8792if test "$wants_win32" = 1 ; then
8793 USE_UNIX=0
8794 USE_WIN32=1
8795 cat >> confdefs.h <<\EOF
8796#define __WIN32__ 1
8797EOF
8798
8799 cat >> confdefs.h <<\EOF
8800#define __WIN95__ 1
8801EOF
8802
8803 cat >> confdefs.h <<\EOF
8804#define __WINDOWS__ 1
8805EOF
8806
8807 cat >> confdefs.h <<\EOF
8808#define __GNUWIN32__ 1
8809EOF
8810
8811 cat >> confdefs.h <<\EOF
8812#define STRICT 1
8813EOF
8814
8815 cat >> confdefs.h <<\EOF
8816#define WINVER 0x0400
8817EOF
8818
8819fi
8820if test "$doesnt_want_win32" = 1 ; then
8821 USE_UNIX=1
8822 USE_WIN32=0
8823fi
8824
8825if test "$USE_UNIX" = 1 ; then
8826 wxUSE_UNIX=yes
8827 cat >> confdefs.h <<\EOF
8828#define __UNIX__ 1
8829EOF
8830
8831fi
8832
8833
8834cat > confcache <<\EOF
8835# This file is a shell script that caches the results of configure
8836# tests run on this system so they can be shared between configure
8837# scripts and configure runs. It is not useful on other systems.
8838# If it contains results you don't want to keep, you may remove or edit it.
8839#
8840# By default, configure uses ./config.cache as the cache file,
8841# creating it if it does not exist already. You can give configure
8842# the --cache-file=FILE option to use a different cache file; that is
8843# what configure does when it calls configure scripts in
8844# subdirectories, so they share the cache.
8845# Giving --cache-file=/dev/null disables caching, for debugging configure.
8846# config.status only pays attention to the cache file if you give it the
8847# --recheck option to rerun configure.
8848#
8849EOF
8850# The following way of writing the cache mishandles newlines in values,
8851# but we know of no workaround that is simple, portable, and efficient.
8852# So, don't put newlines in cache variables' values.
8853# Ultrix sh set writes to stderr and can't be redirected directly,
8854# and sets the high bit in the cache file unless we assign to the vars.
8855(set) 2>&1 |
8856 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8857 *ac_space=\ *)
8858 # `set' does not quote correctly, so add quotes (double-quote substitution
8859 # turns \\\\ into \\, and sed turns \\ into \).
8860 sed -n \
8861 -e "s/'/'\\\\''/g" \
8862 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8863 ;;
8864 *)
8865 # `set' quotes correctly as required by POSIX, so do not add quotes.
8866 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8867 ;;
8868 esac >> confcache
8869if cmp -s $cache_file confcache; then
8870 :
8871else
8872 if test -w $cache_file; then
8873 echo "updating cache $cache_file"
8874 cat confcache > $cache_file
8875 else
8876 echo "not updating unwritable cache $cache_file"
8877 fi
8878fi
8879rm -f confcache
8880
8881
8882if test "$build" != "$host" ; then
8883 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8884 CC=$host_alias-gcc
8885 CXX=$host_alias-c++
8886 AR=$host_alias-ar
8887 RANLIB=$host_alias-ranlib
8888 DLLTOOL=$host_alias-dlltool
8889 RESCOMP=$host_alias-windres
8890 LD=$host_alias-ld
8891 NM=$host_alias-nm
8892 STRIP=$host_alias-strip
8893 else
8894 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8895 fi
8896fi
8897
8898CFLAGS=${CFLAGS:=}
8899# Extract the first word of "gcc", so it can be a program name with args.
8900set dummy gcc; ac_word=$2
8901echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8902echo "configure:8903: checking for $ac_word" >&5
8903if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8904 echo $ac_n "(cached) $ac_c" 1>&6
8905else
8906 if test -n "$CC"; then
8907 ac_cv_prog_CC="$CC" # Let the user override the test.
8908else
8909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8910 ac_dummy="$PATH"
8911 for ac_dir in $ac_dummy; do
8912 test -z "$ac_dir" && ac_dir=.
8913 if test -f $ac_dir/$ac_word; then
8914 ac_cv_prog_CC="gcc"
8915 break
8916 fi
8917 done
8918 IFS="$ac_save_ifs"
8919fi
8920fi
8921CC="$ac_cv_prog_CC"
8922if test -n "$CC"; then
8923 echo "$ac_t""$CC" 1>&6
8924else
8925 echo "$ac_t""no" 1>&6
8926fi
8927
8928if test -z "$CC"; then
8929 # Extract the first word of "cc", so it can be a program name with args.
8930set dummy cc; ac_word=$2
8931echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8932echo "configure:8933: checking for $ac_word" >&5
8933if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8934 echo $ac_n "(cached) $ac_c" 1>&6
8935else
8936 if test -n "$CC"; then
8937 ac_cv_prog_CC="$CC" # Let the user override the test.
8938else
8939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8940 ac_prog_rejected=no
8941 ac_dummy="$PATH"
8942 for ac_dir in $ac_dummy; do
8943 test -z "$ac_dir" && ac_dir=.
8944 if test -f $ac_dir/$ac_word; then
8945 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8946 ac_prog_rejected=yes
8947 continue
8948 fi
8949 ac_cv_prog_CC="cc"
8950 break
8951 fi
8952 done
8953 IFS="$ac_save_ifs"
8954if test $ac_prog_rejected = yes; then
8955 # We found a bogon in the path, so make sure we never use it.
8956 set dummy $ac_cv_prog_CC
8957 shift
8958 if test $# -gt 0; then
8959 # We chose a different compiler from the bogus one.
8960 # However, it has the same basename, so the bogon will be chosen
8961 # first if we set CC to just the basename; use the full file name.
8962 shift
8963 set dummy "$ac_dir/$ac_word" "$@"
8964 shift
8965 ac_cv_prog_CC="$@"
8966 fi
8967fi
8968fi
8969fi
8970CC="$ac_cv_prog_CC"
8971if test -n "$CC"; then
8972 echo "$ac_t""$CC" 1>&6
8973else
8974 echo "$ac_t""no" 1>&6
8975fi
8976
8977 if test -z "$CC"; then
8978 case "`uname -s`" in
8979 *win32* | *WIN32*)
8980 # Extract the first word of "cl", so it can be a program name with args.
8981set dummy cl; ac_word=$2
8982echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8983echo "configure:8984: checking for $ac_word" >&5
8984if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8985 echo $ac_n "(cached) $ac_c" 1>&6
8986else
8987 if test -n "$CC"; then
8988 ac_cv_prog_CC="$CC" # Let the user override the test.
8989else
8990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8991 ac_dummy="$PATH"
8992 for ac_dir in $ac_dummy; do
8993 test -z "$ac_dir" && ac_dir=.
8994 if test -f $ac_dir/$ac_word; then
8995 ac_cv_prog_CC="cl"
8996 break
8997 fi
8998 done
8999 IFS="$ac_save_ifs"
9000fi
9001fi
9002CC="$ac_cv_prog_CC"
9003if test -n "$CC"; then
9004 echo "$ac_t""$CC" 1>&6
9005else
9006 echo "$ac_t""no" 1>&6
9007fi
9008 ;;
9009 esac
9010 fi
9011 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
9012fi
9013
9014echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9015echo "configure:9016: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
9016
9017ac_ext=c
9018# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9019ac_cpp='$CPP $CPPFLAGS'
9020ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9021ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9022cross_compiling=$ac_cv_prog_cc_cross
9023
9024cat > conftest.$ac_ext << EOF
9025
9026#line 9027 "configure"
9027#include "confdefs.h"
9028
9029main(){return(0);}
9030EOF
9031if { (eval echo configure:9032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9032 ac_cv_prog_cc_works=yes
9033 # If we can't run a trivial program, we are probably using a cross compiler.
9034 if (./conftest; exit) 2>/dev/null; then
9035 ac_cv_prog_cc_cross=no
9036 else
9037 ac_cv_prog_cc_cross=yes
9038 fi
9039else
9040 echo "configure: failed program was:" >&5
9041 cat conftest.$ac_ext >&5
9042 ac_cv_prog_cc_works=no
9043fi
9044rm -fr conftest*
9045ac_ext=c
9046# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9047ac_cpp='$CPP $CPPFLAGS'
9048ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9049ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9050cross_compiling=$ac_cv_prog_cc_cross
9051
9052echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
9053if test $ac_cv_prog_cc_works = no; then
9054 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
9055fi
9056echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9057echo "configure:9058: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
9058echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
9059cross_compiling=$ac_cv_prog_cc_cross
9060
9061echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
9062echo "configure:9063: checking whether we are using GNU C" >&5
9063if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
9064 echo $ac_n "(cached) $ac_c" 1>&6
9065else
9066 cat > conftest.c <<EOF
9067#ifdef __GNUC__
9068 yes;
9069#endif
9070EOF
9071if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9072 ac_cv_prog_gcc=yes
9073else
9074 ac_cv_prog_gcc=no
9075fi
9076fi
9077
9078echo "$ac_t""$ac_cv_prog_gcc" 1>&6
9079
9080if test $ac_cv_prog_gcc = yes; then
9081 GCC=yes
9082else
9083 GCC=
9084fi
9085
9086ac_test_CFLAGS="${CFLAGS+set}"
9087ac_save_CFLAGS="$CFLAGS"
9088CFLAGS=
9089echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
9090echo "configure:9091: checking whether ${CC-cc} accepts -g" >&5
9091if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9092 echo $ac_n "(cached) $ac_c" 1>&6
9093else
9094 echo 'void f(){}' > conftest.c
9095if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
9096 ac_cv_prog_cc_g=yes
9097else
9098 ac_cv_prog_cc_g=no
9099fi
9100rm -f conftest*
9101
9102fi
9103
9104echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
9105if test "$ac_test_CFLAGS" = set; then
9106 CFLAGS="$ac_save_CFLAGS"
9107elif test $ac_cv_prog_cc_g = yes; then
9108 if test "$GCC" = yes; then
9109 CFLAGS="-g -O2"
9110 else
9111 CFLAGS="-g"
9112 fi
9113else
9114 if test "$GCC" = yes; then
9115 CFLAGS="-O2"
9116 else
9117 CFLAGS=
9118 fi
9119fi
9120
9121
9122echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
9123echo "configure:9124: checking how to run the C preprocessor" >&5
9124# On Suns, sometimes $CPP names a directory.
9125if test -n "$CPP" && test -d "$CPP"; then
9126 CPP=
9127fi
9128if test -z "$CPP"; then
9129if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9130 echo $ac_n "(cached) $ac_c" 1>&6
9131else
9132 # This must be in double quotes, not single quotes, because CPP may get
9133 # substituted into the Makefile and "${CC-cc}" will confuse make.
9134 CPP="${CC-cc} -E"
9135 # On the NeXT, cc -E runs the code through the compiler's parser,
9136 # not just through cpp.
9137 cat > conftest.$ac_ext <<EOF
9138#line 9139 "configure"
9139#include "confdefs.h"
9140#include <assert.h>
9141Syntax Error
9142EOF
9143ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9144{ (eval echo configure:9145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9145ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9146if test -z "$ac_err"; then
9147 :
9148else
9149 echo "$ac_err" >&5
9150 echo "configure: failed program was:" >&5
9151 cat conftest.$ac_ext >&5
9152 rm -rf conftest*
9153 CPP="${CC-cc} -E -traditional-cpp"
9154 cat > conftest.$ac_ext <<EOF
9155#line 9156 "configure"
9156#include "confdefs.h"
9157#include <assert.h>
9158Syntax Error
9159EOF
9160ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9161{ (eval echo configure:9162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9162ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9163if test -z "$ac_err"; then
9164 :
9165else
9166 echo "$ac_err" >&5
9167 echo "configure: failed program was:" >&5
9168 cat conftest.$ac_ext >&5
9169 rm -rf conftest*
9170 CPP="${CC-cc} -nologo -E"
9171 cat > conftest.$ac_ext <<EOF
9172#line 9173 "configure"
9173#include "confdefs.h"
9174#include <assert.h>
9175Syntax Error
9176EOF
9177ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9178{ (eval echo configure:9179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9179ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9180if test -z "$ac_err"; then
9181 :
9182else
9183 echo "$ac_err" >&5
9184 echo "configure: failed program was:" >&5
9185 cat conftest.$ac_ext >&5
9186 rm -rf conftest*
9187 CPP=/lib/cpp
9188fi
9189rm -f conftest*
9190fi
9191rm -f conftest*
9192fi
9193rm -f conftest*
9194 ac_cv_prog_CPP="$CPP"
9195fi
9196 CPP="$ac_cv_prog_CPP"
9197else
9198 ac_cv_prog_CPP="$CPP"
9199fi
9200echo "$ac_t""$CPP" 1>&6
9201
9202if test $ac_cv_prog_gcc = yes; then
9203 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
9204echo "configure:9205: checking whether ${CC-cc} needs -traditional" >&5
9205if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9206 echo $ac_n "(cached) $ac_c" 1>&6
9207else
9208 ac_pattern="Autoconf.*'x'"
9209 cat > conftest.$ac_ext <<EOF
9210#line 9211 "configure"
9211#include "confdefs.h"
9212#include <sgtty.h>
9213Autoconf TIOCGETP
9214EOF
9215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9216 egrep "$ac_pattern" >/dev/null 2>&1; then
9217 rm -rf conftest*
9218 ac_cv_prog_gcc_traditional=yes
9219else
9220 rm -rf conftest*
9221 ac_cv_prog_gcc_traditional=no
9222fi
9223rm -f conftest*
9224
9225
9226 if test $ac_cv_prog_gcc_traditional = no; then
9227 cat > conftest.$ac_ext <<EOF
9228#line 9229 "configure"
9229#include "confdefs.h"
9230#include <termio.h>
9231Autoconf TCGETA
9232EOF
9233if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9234 egrep "$ac_pattern" >/dev/null 2>&1; then
9235 rm -rf conftest*
9236 ac_cv_prog_gcc_traditional=yes
9237fi
9238rm -f conftest*
9239
9240 fi
9241fi
9242
9243echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
9244 if test $ac_cv_prog_gcc_traditional = yes; then
9245 CC="$CC -traditional"
9246 fi
9247fi
9248
9249
9250
9251ac_ext=C
9252# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9253ac_cpp='$CXXCPP $CPPFLAGS'
9254ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9255ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9256cross_compiling=$ac_cv_prog_cxx_cross
9257
9258
9259CXXFLAGS=${CXXFLAGS:=}
9260for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9261do
9262# Extract the first word of "$ac_prog", so it can be a program name with args.
9263set dummy $ac_prog; ac_word=$2
9264echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9265echo "configure:9266: checking for $ac_word" >&5
9266if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9267 echo $ac_n "(cached) $ac_c" 1>&6
9268else
9269 if test -n "$CXX"; then
9270 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9271else
9272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9273 ac_dummy="$PATH"
9274 for ac_dir in $ac_dummy; do
9275 test -z "$ac_dir" && ac_dir=.
9276 if test -f $ac_dir/$ac_word; then
9277 ac_cv_prog_CXX="$ac_prog"
9278 break
9279 fi
9280 done
9281 IFS="$ac_save_ifs"
9282fi
9283fi
9284CXX="$ac_cv_prog_CXX"
9285if test -n "$CXX"; then
9286 echo "$ac_t""$CXX" 1>&6
9287else
9288 echo "$ac_t""no" 1>&6
9289fi
9290
9291test -n "$CXX" && break
9292done
9293test -n "$CXX" || CXX="gcc"
9294
9295
9296echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9297echo "configure:9298: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9298
9299ac_ext=C
9300# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9301ac_cpp='$CXXCPP $CPPFLAGS'
9302ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9303ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9304cross_compiling=$ac_cv_prog_cxx_cross
9305
9306cat > conftest.$ac_ext << EOF
9307
9308#line 9309 "configure"
9309#include "confdefs.h"
9310
9311int main(){return(0);}
9312EOF
9313if { (eval echo configure:9314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9314 ac_cv_prog_cxx_works=yes
9315 # If we can't run a trivial program, we are probably using a cross compiler.
9316 if (./conftest; exit) 2>/dev/null; then
9317 ac_cv_prog_cxx_cross=no
9318 else
9319 ac_cv_prog_cxx_cross=yes
9320 fi
9321else
9322 echo "configure: failed program was:" >&5
9323 cat conftest.$ac_ext >&5
9324 ac_cv_prog_cxx_works=no
9325fi
9326rm -fr conftest*
9327ac_ext=C
9328# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9329ac_cpp='$CXXCPP $CPPFLAGS'
9330ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9331ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9332cross_compiling=$ac_cv_prog_cxx_cross
9333
9334echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9335if test $ac_cv_prog_cxx_works = no; then
9336 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9337fi
9338echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9339echo "configure:9340: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9340echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9341cross_compiling=$ac_cv_prog_cxx_cross
9342
9343echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9344echo "configure:9345: checking whether we are using GNU C++" >&5
9345if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9346 echo $ac_n "(cached) $ac_c" 1>&6
9347else
9348 cat > conftest.C <<EOF
9349#ifdef __GNUC__
9350 yes;
9351#endif
9352EOF
9353if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9354 ac_cv_prog_gxx=yes
9355else
9356 ac_cv_prog_gxx=no
9357fi
9358fi
9359
9360echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9361
9362if test $ac_cv_prog_gxx = yes; then
9363 GXX=yes
9364else
9365 GXX=
9366fi
9367
9368ac_test_CXXFLAGS="${CXXFLAGS+set}"
9369ac_save_CXXFLAGS="$CXXFLAGS"
9370CXXFLAGS=
9371echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9372echo "configure:9373: checking whether ${CXX-g++} accepts -g" >&5
9373if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9374 echo $ac_n "(cached) $ac_c" 1>&6
9375else
9376 echo 'void f(){}' > conftest.cc
9377if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9378 ac_cv_prog_cxx_g=yes
9379else
9380 ac_cv_prog_cxx_g=no
9381fi
9382rm -f conftest*
9383
9384fi
9385
9386echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9387if test "$ac_test_CXXFLAGS" = set; then
9388 CXXFLAGS="$ac_save_CXXFLAGS"
9389elif test $ac_cv_prog_cxx_g = yes; then
9390 if test "$GXX" = yes; then
9391 CXXFLAGS="-g -O2"
9392 else
9393 CXXFLAGS="-g"
9394 fi
9395else
9396 if test "$GXX" = yes; then
9397 CXXFLAGS="-O2"
9398 else
9399 CXXFLAGS=
9400 fi
9401fi
9402
9403
9404ac_ext=c
9405# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9406ac_cpp='$CPP $CPPFLAGS'
9407ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9408ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9409cross_compiling=$ac_cv_prog_cc_cross
9410
9411
9412# Extract the first word of "ranlib", so it can be a program name with args.
9413set dummy ranlib; ac_word=$2
9414echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9415echo "configure:9416: checking for $ac_word" >&5
9416if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9417 echo $ac_n "(cached) $ac_c" 1>&6
9418else
9419 if test -n "$RANLIB"; then
9420 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9421else
9422 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9423 ac_dummy="$PATH"
9424 for ac_dir in $ac_dummy; do
9425 test -z "$ac_dir" && ac_dir=.
9426 if test -f $ac_dir/$ac_word; then
9427 ac_cv_prog_RANLIB="ranlib"
9428 break
9429 fi
9430 done
9431 IFS="$ac_save_ifs"
9432 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9433fi
9434fi
9435RANLIB="$ac_cv_prog_RANLIB"
9436if test -n "$RANLIB"; then
9437 echo "$ac_t""$RANLIB" 1>&6
9438else
9439 echo "$ac_t""no" 1>&6
9440fi
9441
9442
9443# Extract the first word of "ar", so it can be a program name with args.
9444set dummy ar; ac_word=$2
9445echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9446echo "configure:9447: checking for $ac_word" >&5
9447if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9448 echo $ac_n "(cached) $ac_c" 1>&6
9449else
9450 if test -n "$AR"; then
9451 ac_cv_prog_AR="$AR" # Let the user override the test.
9452else
9453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9454 ac_dummy="$PATH"
9455 for ac_dir in $ac_dummy; do
9456 test -z "$ac_dir" && ac_dir=.
9457 if test -f $ac_dir/$ac_word; then
9458 ac_cv_prog_AR="ar"
9459 break
9460 fi
9461 done
9462 IFS="$ac_save_ifs"
9463 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9464fi
9465fi
9466AR="$ac_cv_prog_AR"
9467if test -n "$AR"; then
9468 echo "$ac_t""$AR" 1>&6
9469else
9470 echo "$ac_t""no" 1>&6
9471fi
9472
9473
9474# Find a good install program. We prefer a C program (faster),
9475# so one script is as good as another. But avoid the broken or
9476# incompatible versions:
9477# SysV /etc/install, /usr/sbin/install
9478# SunOS /usr/etc/install
9479# IRIX /sbin/install
9480# AIX /bin/install
9481# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9482# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9483# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9484# ./install, which can be erroneously created by make from ./install.sh.
9485echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9486echo "configure:9487: checking for a BSD compatible install" >&5
9487if test -z "$INSTALL"; then
9488if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9489 echo $ac_n "(cached) $ac_c" 1>&6
9490else
9491 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9492 for ac_dir in $PATH; do
9493 # Account for people who put trailing slashes in PATH elements.
9494 case "$ac_dir/" in
9495 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9496 *)
9497 # OSF1 and SCO ODT 3.0 have their own names for install.
9498 # Don't use installbsd from OSF since it installs stuff as root
9499 # by default.
9500 for ac_prog in ginstall scoinst install; do
9501 if test -f $ac_dir/$ac_prog; then
9502 if test $ac_prog = install &&
9503 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9504 # AIX install. It has an incompatible calling convention.
9505 :
9506 else
9507 ac_cv_path_install="$ac_dir/$ac_prog -c"
9508 break 2
9509 fi
9510 fi
9511 done
9512 ;;
9513 esac
9514 done
9515 IFS="$ac_save_IFS"
9516
9517fi
9518 if test "${ac_cv_path_install+set}" = set; then
9519 INSTALL="$ac_cv_path_install"
9520 else
9521 # As a last resort, use the slow shell script. We don't cache a
9522 # path for INSTALL within a source directory, because that will
9523 # break other packages using the cache if that directory is
9524 # removed, or if the path is relative.
9525 INSTALL="$ac_install_sh"
9526 fi
9527fi
9528echo "$ac_t""$INSTALL" 1>&6
9529
9530# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9531# It thinks the first close brace ends the variable substitution.
9532test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9533
9534test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9535
9536test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9537
9538
9539case ${INSTALL} in
9540 /* ) # Absolute
9541 ;;
9542 *)
9543 INSTALL=`pwd`/${INSTALL} ;;
9544esac
9545
9546
9547case "${host}" in
9548
9549 powerpc-*-darwin* )
9550 INSTALL_PROGRAM="cp -fp"
9551 INSTALL_DATA="cp -fp"
9552 ;;
9553 *)
9554 ;;
9555esac
9556
9557# Extract the first word of "strip", so it can be a program name with args.
9558set dummy strip; ac_word=$2
9559echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9560echo "configure:9561: checking for $ac_word" >&5
9561if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9562 echo $ac_n "(cached) $ac_c" 1>&6
9563else
9564 if test -n "$STRIP"; then
9565 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9566else
9567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9568 ac_dummy="$PATH"
9569 for ac_dir in $ac_dummy; do
9570 test -z "$ac_dir" && ac_dir=.
9571 if test -f $ac_dir/$ac_word; then
9572 ac_cv_prog_STRIP="strip"
9573 break
9574 fi
9575 done
9576 IFS="$ac_save_ifs"
9577 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9578fi
9579fi
9580STRIP="$ac_cv_prog_STRIP"
9581if test -n "$STRIP"; then
9582 echo "$ac_t""$STRIP" 1>&6
9583else
9584 echo "$ac_t""no" 1>&6
9585fi
9586
9587
9588echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9589echo "configure:9590: checking if make is GNU make" >&5
9590if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9591 echo $ac_n "(cached) $ac_c" 1>&6
9592else
9593
9594 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9595 egrep -s GNU > /dev/null); then
9596 wx_cv_prog_makeisgnu="yes"
9597 else
9598 wx_cv_prog_makeisgnu="no"
9599 fi
9600
9601fi
9602
9603echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9604
9605if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9606 IF_GNU_MAKE=""
9607else
9608 IF_GNU_MAKE="#"
9609fi
9610
9611
9612
9613if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9614echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9615echo "configure:9616: checking if make supports VPATH" >&5
9616if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9617 echo $ac_n "(cached) $ac_c" 1>&6
9618else
9619
9620cat - << EOF > confMake
9621check : file
9622 cp \$? \$@
9623 cp \$? final_file
9624EOF
9625
9626if test ! -d sub ; then
9627 mkdir sub
9628fi
9629echo dummy > sub/file
9630${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9631RESULT=$?
9632rm -f sub/file check final_file confMake
9633rmdir sub
9634if test "$RESULT" = 0; then
9635 wx_cv_prog_makevpath="yes"
9636else
9637 wx_cv_prog_makevpath="no"
9638fi
9639
9640fi
9641
9642echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9643
9644if test "x$wx_cv_prog_makevpath" != "xyes"; then
9645{ echo "configure: error:
9646You need a make-utility that is able to use the variable
9647VPATH correctly.
9648If your version of make does not support VPATH correctly,
9649please install GNU-make (possibly as gmake), and start
9650configure with the following command:
9651export MAKE=gmake; ./configure for sh-type shells
9652setenv MAKE gmake; ./configure for csh-type shells
9653Also please do remember to use gmake in this case every time
9654you are trying to compile.
9655" 1>&2; exit 1; }
9656fi fi
9657for ac_prog in 'bison -y' byacc
9658do
9659# Extract the first word of "$ac_prog", so it can be a program name with args.
9660set dummy $ac_prog; ac_word=$2
9661echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9662echo "configure:9663: checking for $ac_word" >&5
9663if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9664 echo $ac_n "(cached) $ac_c" 1>&6
9665else
9666 if test -n "$YACC"; then
9667 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9668else
9669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9670 ac_dummy="$PATH"
9671 for ac_dir in $ac_dummy; do
9672 test -z "$ac_dir" && ac_dir=.
9673 if test -f $ac_dir/$ac_word; then
9674 ac_cv_prog_YACC="$ac_prog"
9675 break
9676 fi
9677 done
9678 IFS="$ac_save_ifs"
9679fi
9680fi
9681YACC="$ac_cv_prog_YACC"
9682if test -n "$YACC"; then
9683 echo "$ac_t""$YACC" 1>&6
9684else
9685 echo "$ac_t""no" 1>&6
9686fi
9687
9688test -n "$YACC" && break
9689done
9690test -n "$YACC" || YACC="yacc"
9691
9692
9693# Extract the first word of "flex", so it can be a program name with args.
9694set dummy flex; ac_word=$2
9695echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9696echo "configure:9697: checking for $ac_word" >&5
9697if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9698 echo $ac_n "(cached) $ac_c" 1>&6
9699else
9700 if test -n "$LEX"; then
9701 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9702else
9703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9704 ac_dummy="$PATH"
9705 for ac_dir in $ac_dummy; do
9706 test -z "$ac_dir" && ac_dir=.
9707 if test -f $ac_dir/$ac_word; then
9708 ac_cv_prog_LEX="flex"
9709 break
9710 fi
9711 done
9712 IFS="$ac_save_ifs"
9713 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9714fi
9715fi
9716LEX="$ac_cv_prog_LEX"
9717if test -n "$LEX"; then
9718 echo "$ac_t""$LEX" 1>&6
9719else
9720 echo "$ac_t""no" 1>&6
9721fi
9722
9723if test -z "$LEXLIB"
9724then
9725 case "$LEX" in
9726 flex*) ac_lib=fl ;;
9727 *) ac_lib=l ;;
9728 esac
9729 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9730echo "configure:9731: checking for yywrap in -l$ac_lib" >&5
9731ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9732if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9733 echo $ac_n "(cached) $ac_c" 1>&6
9734else
9735 ac_save_LIBS="$LIBS"
9736LIBS="-l$ac_lib $LIBS"
9737cat > conftest.$ac_ext <<EOF
9738#line 9739 "configure"
9739#include "confdefs.h"
9740/* Override any gcc2 internal prototype to avoid an error. */
9741/* We use char because int might match the return type of a gcc2
9742 builtin and then its argument prototype would still apply. */
9743char yywrap();
9744
9745int main() {
9746yywrap()
9747; return 0; }
9748EOF
9749if { (eval echo configure:9750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9750 rm -rf conftest*
9751 eval "ac_cv_lib_$ac_lib_var=yes"
9752else
9753 echo "configure: failed program was:" >&5
9754 cat conftest.$ac_ext >&5
9755 rm -rf conftest*
9756 eval "ac_cv_lib_$ac_lib_var=no"
9757fi
9758rm -f conftest*
9759LIBS="$ac_save_LIBS"
9760
9761fi
9762if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9763 echo "$ac_t""yes" 1>&6
9764 LEXLIB="-l$ac_lib"
9765else
9766 echo "$ac_t""no" 1>&6
9767fi
9768
9769fi
9770
9771
9772echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9773echo "configure:9774: checking whether ln -s works" >&5
9774if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9775 echo $ac_n "(cached) $ac_c" 1>&6
9776else
9777 rm -f conftestdata
9778if ln -s X conftestdata 2>/dev/null
9779then
9780 rm -f conftestdata
9781 ac_cv_prog_LN_S="ln -s"
9782else
9783 ac_cv_prog_LN_S=ln
9784fi
9785fi
9786LN_S="$ac_cv_prog_LN_S"
9787if test "$ac_cv_prog_LN_S" = "ln -s"; then
9788 echo "$ac_t""yes" 1>&6
9789else
9790 echo "$ac_t""no" 1>&6
9791fi
9792
9793
9794case "${host}" in
9795 *-pc-os2_emx | *-pc-os2-emx )
9796 LIBS="$LIBS -lstdcpp"
9797 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9798 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
9799echo "configure:9800: checking for drand48 in -lcExt" >&5
9800ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9801if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9802 echo $ac_n "(cached) $ac_c" 1>&6
9803else
9804 ac_save_LIBS="$LIBS"
9805LIBS="-lcExt $LIBS"
9806cat > conftest.$ac_ext <<EOF
9807#line 9808 "configure"
9808#include "confdefs.h"
9809/* Override any gcc2 internal prototype to avoid an error. */
9810/* We use char because int might match the return type of a gcc2
9811 builtin and then its argument prototype would still apply. */
9812char drand48();
9813
9814int main() {
9815drand48()
9816; return 0; }
9817EOF
9818if { (eval echo configure:9819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9819 rm -rf conftest*
9820 eval "ac_cv_lib_$ac_lib_var=yes"
9821else
9822 echo "configure: failed program was:" >&5
9823 cat conftest.$ac_ext >&5
9824 rm -rf conftest*
9825 eval "ac_cv_lib_$ac_lib_var=no"
9826fi
9827rm -f conftest*
9828LIBS="$ac_save_LIBS"
9829
9830fi
9831if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9832 echo "$ac_t""yes" 1>&6
9833 LIBS="$LIBS -lcExt"
9834else
9835 echo "$ac_t""no" 1>&6
9836fi
9837
9838 else
9839 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9840 fi
9841 ;;
9842esac
9843
9844
9845if test "$wxUSE_MAC" != 1; then
9846 for ac_hdr in strings.h
9847do
9848ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9849echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9850echo "configure:9851: checking for $ac_hdr" >&5
9851if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9852 echo $ac_n "(cached) $ac_c" 1>&6
9853else
9854 cat > conftest.$ac_ext <<EOF
9855#line 9856 "configure"
9856#include "confdefs.h"
9857#include <$ac_hdr>
9858EOF
9859ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9860{ (eval echo configure:9861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9861ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9862if test -z "$ac_err"; then
9863 rm -rf conftest*
9864 eval "ac_cv_header_$ac_safe=yes"
9865else
9866 echo "$ac_err" >&5
9867 echo "configure: failed program was:" >&5
9868 cat conftest.$ac_ext >&5
9869 rm -rf conftest*
9870 eval "ac_cv_header_$ac_safe=no"
9871fi
9872rm -f conftest*
9873fi
9874if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9875 echo "$ac_t""yes" 1>&6
9876 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9877 cat >> confdefs.h <<EOF
9878#define $ac_tr_hdr 1
9879EOF
9880
9881else
9882 echo "$ac_t""no" 1>&6
9883fi
9884done
9885
9886fi
9887
9888for ac_hdr in stdlib.h
9889do
9890ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9891echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9892echo "configure:9893: checking for $ac_hdr" >&5
9893if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9894 echo $ac_n "(cached) $ac_c" 1>&6
9895else
9896 cat > conftest.$ac_ext <<EOF
9897#line 9898 "configure"
9898#include "confdefs.h"
9899#include <$ac_hdr>
9900EOF
9901ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9902{ (eval echo configure:9903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9903ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9904if test -z "$ac_err"; then
9905 rm -rf conftest*
9906 eval "ac_cv_header_$ac_safe=yes"
9907else
9908 echo "$ac_err" >&5
9909 echo "configure: failed program was:" >&5
9910 cat conftest.$ac_ext >&5
9911 rm -rf conftest*
9912 eval "ac_cv_header_$ac_safe=no"
9913fi
9914rm -f conftest*
9915fi
9916if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9917 echo "$ac_t""yes" 1>&6
9918 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9919 cat >> confdefs.h <<EOF
9920#define $ac_tr_hdr 1
9921EOF
9922
9923else
9924 echo "$ac_t""no" 1>&6
9925fi
9926done
9927
9928for ac_hdr in malloc.h
9929do
9930ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9931echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9932echo "configure:9933: checking for $ac_hdr" >&5
9933if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9934 echo $ac_n "(cached) $ac_c" 1>&6
9935else
9936 cat > conftest.$ac_ext <<EOF
9937#line 9938 "configure"
9938#include "confdefs.h"
9939#include <$ac_hdr>
9940EOF
9941ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9942{ (eval echo configure:9943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9943ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9944if test -z "$ac_err"; then
9945 rm -rf conftest*
9946 eval "ac_cv_header_$ac_safe=yes"
9947else
9948 echo "$ac_err" >&5
9949 echo "configure: failed program was:" >&5
9950 cat conftest.$ac_ext >&5
9951 rm -rf conftest*
9952 eval "ac_cv_header_$ac_safe=no"
9953fi
9954rm -f conftest*
9955fi
9956if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9957 echo "$ac_t""yes" 1>&6
9958 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9959 cat >> confdefs.h <<EOF
9960#define $ac_tr_hdr 1
9961EOF
9962
9963else
9964 echo "$ac_t""no" 1>&6
9965fi
9966done
9967
9968for ac_hdr in unistd.h
9969do
9970ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9971echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9972echo "configure:9973: checking for $ac_hdr" >&5
9973if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9974 echo $ac_n "(cached) $ac_c" 1>&6
9975else
9976 cat > conftest.$ac_ext <<EOF
9977#line 9978 "configure"
9978#include "confdefs.h"
9979#include <$ac_hdr>
9980EOF
9981ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9982{ (eval echo configure:9983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9983ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9984if test -z "$ac_err"; then
9985 rm -rf conftest*
9986 eval "ac_cv_header_$ac_safe=yes"
9987else
9988 echo "$ac_err" >&5
9989 echo "configure: failed program was:" >&5
9990 cat conftest.$ac_ext >&5
9991 rm -rf conftest*
9992 eval "ac_cv_header_$ac_safe=no"
9993fi
9994rm -f conftest*
9995fi
9996if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9997 echo "$ac_t""yes" 1>&6
9998 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9999 cat >> confdefs.h <<EOF
10000#define $ac_tr_hdr 1
10001EOF
10002
10003else
10004 echo "$ac_t""no" 1>&6
10005fi
10006done
10007
10008for ac_hdr in wchar.h
10009do
10010ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10011echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10012echo "configure:10013: checking for $ac_hdr" >&5
10013if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10014 echo $ac_n "(cached) $ac_c" 1>&6
10015else
10016 cat > conftest.$ac_ext <<EOF
10017#line 10018 "configure"
10018#include "confdefs.h"
10019#include <$ac_hdr>
10020EOF
10021ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10022{ (eval echo configure:10023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10023ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10024if test -z "$ac_err"; then
10025 rm -rf conftest*
10026 eval "ac_cv_header_$ac_safe=yes"
10027else
10028 echo "$ac_err" >&5
10029 echo "configure: failed program was:" >&5
10030 cat conftest.$ac_ext >&5
10031 rm -rf conftest*
10032 eval "ac_cv_header_$ac_safe=no"
10033fi
10034rm -f conftest*
10035fi
10036if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10037 echo "$ac_t""yes" 1>&6
10038 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10039 cat >> confdefs.h <<EOF
10040#define $ac_tr_hdr 1
10041EOF
10042
10043else
10044 echo "$ac_t""no" 1>&6
10045fi
10046done
10047
10048
10049if test "$ac_cv_header_wchar_h" != "yes"; then
10050 for ac_hdr in wcstr.h
10051do
10052ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10053echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10054echo "configure:10055: checking for $ac_hdr" >&5
10055if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10056 echo $ac_n "(cached) $ac_c" 1>&6
10057else
10058 cat > conftest.$ac_ext <<EOF
10059#line 10060 "configure"
10060#include "confdefs.h"
10061#include <$ac_hdr>
10062EOF
10063ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10064{ (eval echo configure:10065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10065ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10066if test -z "$ac_err"; then
10067 rm -rf conftest*
10068 eval "ac_cv_header_$ac_safe=yes"
10069else
10070 echo "$ac_err" >&5
10071 echo "configure: failed program was:" >&5
10072 cat conftest.$ac_ext >&5
10073 rm -rf conftest*
10074 eval "ac_cv_header_$ac_safe=no"
10075fi
10076rm -f conftest*
10077fi
10078if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10079 echo "$ac_t""yes" 1>&6
10080 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10081 cat >> confdefs.h <<EOF
10082#define $ac_tr_hdr 1
10083EOF
10084
10085else
10086 echo "$ac_t""no" 1>&6
10087fi
10088done
10089
10090fi
10091
10092for ac_hdr in fnmatch.h
10093do
10094ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10095echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10096echo "configure:10097: checking for $ac_hdr" >&5
10097if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10098 echo $ac_n "(cached) $ac_c" 1>&6
10099else
10100 cat > conftest.$ac_ext <<EOF
10101#line 10102 "configure"
10102#include "confdefs.h"
10103#include <$ac_hdr>
10104EOF
10105ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10106{ (eval echo configure:10107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10107ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10108if test -z "$ac_err"; then
10109 rm -rf conftest*
10110 eval "ac_cv_header_$ac_safe=yes"
10111else
10112 echo "$ac_err" >&5
10113 echo "configure: failed program was:" >&5
10114 cat conftest.$ac_ext >&5
10115 rm -rf conftest*
10116 eval "ac_cv_header_$ac_safe=no"
10117fi
10118rm -f conftest*
10119fi
10120if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10121 echo "$ac_t""yes" 1>&6
10122 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10123 cat >> confdefs.h <<EOF
10124#define $ac_tr_hdr 1
10125EOF
10126
10127else
10128 echo "$ac_t""no" 1>&6
10129fi
10130done
10131
10132
10133if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10134 for ac_func in fnmatch
10135do
10136echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10137echo "configure:10138: checking for $ac_func" >&5
10138if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10139 echo $ac_n "(cached) $ac_c" 1>&6
10140else
10141 cat > conftest.$ac_ext <<EOF
10142#line 10143 "configure"
10143#include "confdefs.h"
10144/* System header to define __stub macros and hopefully few prototypes,
10145 which can conflict with char $ac_func(); below. */
10146#include <assert.h>
10147/* Override any gcc2 internal prototype to avoid an error. */
10148/* We use char because int might match the return type of a gcc2
10149 builtin and then its argument prototype would still apply. */
10150char $ac_func();
10151
10152int main() {
10153
10154/* The GNU C library defines this for functions which it implements
10155 to always fail with ENOSYS. Some functions are actually named
10156 something starting with __ and the normal name is an alias. */
10157#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10158choke me
10159#else
10160$ac_func();
10161#endif
10162
10163; return 0; }
10164EOF
10165if { (eval echo configure:10166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10166 rm -rf conftest*
10167 eval "ac_cv_func_$ac_func=yes"
10168else
10169 echo "configure: failed program was:" >&5
10170 cat conftest.$ac_ext >&5
10171 rm -rf conftest*
10172 eval "ac_cv_func_$ac_func=no"
10173fi
10174rm -f conftest*
10175fi
10176
10177if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10178 echo "$ac_t""yes" 1>&6
10179 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10180 cat >> confdefs.h <<EOF
10181#define $ac_tr_func 1
10182EOF
10183
10184else
10185 echo "$ac_t""no" 1>&6
10186fi
10187done
10188
10189fi
10190
10191for ac_hdr in langinfo.h
10192do
10193ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10194echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10195echo "configure:10196: checking for $ac_hdr" >&5
10196if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10197 echo $ac_n "(cached) $ac_c" 1>&6
10198else
10199 cat > conftest.$ac_ext <<EOF
10200#line 10201 "configure"
10201#include "confdefs.h"
10202#include <$ac_hdr>
10203EOF
10204ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10205{ (eval echo configure:10206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10206ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10207if test -z "$ac_err"; then
10208 rm -rf conftest*
10209 eval "ac_cv_header_$ac_safe=yes"
10210else
10211 echo "$ac_err" >&5
10212 echo "configure: failed program was:" >&5
10213 cat conftest.$ac_ext >&5
10214 rm -rf conftest*
10215 eval "ac_cv_header_$ac_safe=no"
10216fi
10217rm -f conftest*
10218fi
10219if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10220 echo "$ac_t""yes" 1>&6
10221 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10222 cat >> confdefs.h <<EOF
10223#define $ac_tr_hdr 1
10224EOF
10225
10226else
10227 echo "$ac_t""no" 1>&6
10228fi
10229done
10230
10231
10232if test "$wxUSE_GUI" = "yes"; then
10233 if test "$wxUSE_UNIX" = "yes"; then
10234 for ac_hdr in X11/XKBlib.h
10235do
10236ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10237echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10238echo "configure:10239: checking for $ac_hdr" >&5
10239if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10240 echo $ac_n "(cached) $ac_c" 1>&6
10241else
10242 cat > conftest.$ac_ext <<EOF
10243#line 10244 "configure"
10244#include "confdefs.h"
10245#include <$ac_hdr>
10246EOF
10247ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10248{ (eval echo configure:10249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10249ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10250if test -z "$ac_err"; then
10251 rm -rf conftest*
10252 eval "ac_cv_header_$ac_safe=yes"
10253else
10254 echo "$ac_err" >&5
10255 echo "configure: failed program was:" >&5
10256 cat conftest.$ac_ext >&5
10257 rm -rf conftest*
10258 eval "ac_cv_header_$ac_safe=no"
10259fi
10260rm -f conftest*
10261fi
10262if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10263 echo "$ac_t""yes" 1>&6
10264 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10265 cat >> confdefs.h <<EOF
10266#define $ac_tr_hdr 1
10267EOF
10268
10269else
10270 echo "$ac_t""no" 1>&6
10271fi
10272done
10273
10274 fi
10275fi
10276
10277
10278echo $ac_n "checking for working const""... $ac_c" 1>&6
10279echo "configure:10280: checking for working const" >&5
10280if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10281 echo $ac_n "(cached) $ac_c" 1>&6
10282else
10283 cat > conftest.$ac_ext <<EOF
10284#line 10285 "configure"
10285#include "confdefs.h"
10286
10287int main() {
10288
10289/* Ultrix mips cc rejects this. */
10290typedef int charset[2]; const charset x;
10291/* SunOS 4.1.1 cc rejects this. */
10292char const *const *ccp;
10293char **p;
10294/* NEC SVR4.0.2 mips cc rejects this. */
10295struct point {int x, y;};
10296static struct point const zero = {0,0};
10297/* AIX XL C 1.02.0.0 rejects this.
10298 It does not let you subtract one const X* pointer from another in an arm
10299 of an if-expression whose if-part is not a constant expression */
10300const char *g = "string";
10301ccp = &g + (g ? g-g : 0);
10302/* HPUX 7.0 cc rejects these. */
10303++ccp;
10304p = (char**) ccp;
10305ccp = (char const *const *) p;
10306{ /* SCO 3.2v4 cc rejects this. */
10307 char *t;
10308 char const *s = 0 ? (char *) 0 : (char const *) 0;
10309
10310 *t++ = 0;
10311}
10312{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10313 int x[] = {25, 17};
10314 const int *foo = &x[0];
10315 ++foo;
10316}
10317{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10318 typedef const int *iptr;
10319 iptr p = 0;
10320 ++p;
10321}
10322{ /* AIX XL C 1.02.0.0 rejects this saying
10323 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10324 struct s { int j; const int *ap[3]; };
10325 struct s *b; b->j = 5;
10326}
10327{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10328 const int foo = 10;
10329}
10330
10331; return 0; }
10332EOF
10333if { (eval echo configure:10334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10334 rm -rf conftest*
10335 ac_cv_c_const=yes
10336else
10337 echo "configure: failed program was:" >&5
10338 cat conftest.$ac_ext >&5
10339 rm -rf conftest*
10340 ac_cv_c_const=no
10341fi
10342rm -f conftest*
10343fi
10344
10345echo "$ac_t""$ac_cv_c_const" 1>&6
10346if test $ac_cv_c_const = no; then
10347 cat >> confdefs.h <<\EOF
10348#define const
10349EOF
10350
10351fi
10352
10353echo $ac_n "checking for inline""... $ac_c" 1>&6
10354echo "configure:10355: checking for inline" >&5
10355if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10356 echo $ac_n "(cached) $ac_c" 1>&6
10357else
10358 ac_cv_c_inline=no
10359for ac_kw in inline __inline__ __inline; do
10360 cat > conftest.$ac_ext <<EOF
10361#line 10362 "configure"
10362#include "confdefs.h"
10363
10364int main() {
10365} $ac_kw foo() {
10366; return 0; }
10367EOF
10368if { (eval echo configure:10369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10369 rm -rf conftest*
10370 ac_cv_c_inline=$ac_kw; break
10371else
10372 echo "configure: failed program was:" >&5
10373 cat conftest.$ac_ext >&5
10374fi
10375rm -f conftest*
10376done
10377
10378fi
10379
10380echo "$ac_t""$ac_cv_c_inline" 1>&6
10381case "$ac_cv_c_inline" in
10382 inline | yes) ;;
10383 no) cat >> confdefs.h <<\EOF
10384#define inline
10385EOF
10386 ;;
10387 *) cat >> confdefs.h <<EOF
10388#define inline $ac_cv_c_inline
10389EOF
10390 ;;
10391esac
10392
10393
10394echo $ac_n "checking size of char""... $ac_c" 1>&6
10395echo "configure:10396: checking size of char" >&5
10396if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10397 echo $ac_n "(cached) $ac_c" 1>&6
10398else
10399 if test "$cross_compiling" = yes; then
10400 ac_cv_sizeof_char=1
10401else
10402 cat > conftest.$ac_ext <<EOF
10403#line 10404 "configure"
10404#include "confdefs.h"
10405#include <stdio.h>
10406main()
10407{
10408 FILE *f=fopen("conftestval", "w");
10409 if (!f) exit(1);
10410 fprintf(f, "%d\n", sizeof(char));
10411 exit(0);
10412}
10413EOF
10414if { (eval echo configure:10415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10415then
10416 ac_cv_sizeof_char=`cat conftestval`
10417else
10418 echo "configure: failed program was:" >&5
10419 cat conftest.$ac_ext >&5
10420 rm -fr conftest*
10421 ac_cv_sizeof_char=0
10422fi
10423rm -fr conftest*
10424fi
10425
10426fi
10427echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10428cat >> confdefs.h <<EOF
10429#define SIZEOF_CHAR $ac_cv_sizeof_char
10430EOF
10431
10432
10433echo $ac_n "checking size of short""... $ac_c" 1>&6
10434echo "configure:10435: checking size of short" >&5
10435if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10436 echo $ac_n "(cached) $ac_c" 1>&6
10437else
10438 if test "$cross_compiling" = yes; then
10439 ac_cv_sizeof_short=2
10440else
10441 cat > conftest.$ac_ext <<EOF
10442#line 10443 "configure"
10443#include "confdefs.h"
10444#include <stdio.h>
10445main()
10446{
10447 FILE *f=fopen("conftestval", "w");
10448 if (!f) exit(1);
10449 fprintf(f, "%d\n", sizeof(short));
10450 exit(0);
10451}
10452EOF
10453if { (eval echo configure:10454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10454then
10455 ac_cv_sizeof_short=`cat conftestval`
10456else
10457 echo "configure: failed program was:" >&5
10458 cat conftest.$ac_ext >&5
10459 rm -fr conftest*
10460 ac_cv_sizeof_short=0
10461fi
10462rm -fr conftest*
10463fi
10464
10465fi
10466echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10467cat >> confdefs.h <<EOF
10468#define SIZEOF_SHORT $ac_cv_sizeof_short
10469EOF
10470
10471
10472echo $ac_n "checking size of void *""... $ac_c" 1>&6
10473echo "configure:10474: checking size of void *" >&5
10474if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10475 echo $ac_n "(cached) $ac_c" 1>&6
10476else
10477 if test "$cross_compiling" = yes; then
10478 ac_cv_sizeof_void_p=4
10479else
10480 cat > conftest.$ac_ext <<EOF
10481#line 10482 "configure"
10482#include "confdefs.h"
10483#include <stdio.h>
10484main()
10485{
10486 FILE *f=fopen("conftestval", "w");
10487 if (!f) exit(1);
10488 fprintf(f, "%d\n", sizeof(void *));
10489 exit(0);
10490}
10491EOF
10492if { (eval echo configure:10493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10493then
10494 ac_cv_sizeof_void_p=`cat conftestval`
10495else
10496 echo "configure: failed program was:" >&5
10497 cat conftest.$ac_ext >&5
10498 rm -fr conftest*
10499 ac_cv_sizeof_void_p=0
10500fi
10501rm -fr conftest*
10502fi
10503
10504fi
10505echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10506cat >> confdefs.h <<EOF
10507#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10508EOF
10509
10510
10511echo $ac_n "checking size of int""... $ac_c" 1>&6
10512echo "configure:10513: checking size of int" >&5
10513if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10514 echo $ac_n "(cached) $ac_c" 1>&6
10515else
10516 if test "$cross_compiling" = yes; then
10517 ac_cv_sizeof_int=4
10518else
10519 cat > conftest.$ac_ext <<EOF
10520#line 10521 "configure"
10521#include "confdefs.h"
10522#include <stdio.h>
10523main()
10524{
10525 FILE *f=fopen("conftestval", "w");
10526 if (!f) exit(1);
10527 fprintf(f, "%d\n", sizeof(int));
10528 exit(0);
10529}
10530EOF
10531if { (eval echo configure:10532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10532then
10533 ac_cv_sizeof_int=`cat conftestval`
10534else
10535 echo "configure: failed program was:" >&5
10536 cat conftest.$ac_ext >&5
10537 rm -fr conftest*
10538 ac_cv_sizeof_int=0
10539fi
10540rm -fr conftest*
10541fi
10542
10543fi
10544echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10545cat >> confdefs.h <<EOF
10546#define SIZEOF_INT $ac_cv_sizeof_int
10547EOF
10548
10549
10550echo $ac_n "checking size of long""... $ac_c" 1>&6
10551echo "configure:10552: checking size of long" >&5
10552if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10553 echo $ac_n "(cached) $ac_c" 1>&6
10554else
10555 if test "$cross_compiling" = yes; then
10556 ac_cv_sizeof_long=4
10557else
10558 cat > conftest.$ac_ext <<EOF
10559#line 10560 "configure"
10560#include "confdefs.h"
10561#include <stdio.h>
10562main()
10563{
10564 FILE *f=fopen("conftestval", "w");
10565 if (!f) exit(1);
10566 fprintf(f, "%d\n", sizeof(long));
10567 exit(0);
10568}
10569EOF
10570if { (eval echo configure:10571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10571then
10572 ac_cv_sizeof_long=`cat conftestval`
10573else
10574 echo "configure: failed program was:" >&5
10575 cat conftest.$ac_ext >&5
10576 rm -fr conftest*
10577 ac_cv_sizeof_long=0
10578fi
10579rm -fr conftest*
10580fi
10581
10582fi
10583echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10584cat >> confdefs.h <<EOF
10585#define SIZEOF_LONG $ac_cv_sizeof_long
10586EOF
10587
10588
10589
10590case "${host}" in
10591 arm-*-linux* )
10592 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10593echo "configure:10594: checking size of long long" >&5
10594if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10595 echo $ac_n "(cached) $ac_c" 1>&6
10596else
10597 if test "$cross_compiling" = yes; then
10598 ac_cv_sizeof_long_long=8
10599else
10600 cat > conftest.$ac_ext <<EOF
10601#line 10602 "configure"
10602#include "confdefs.h"
10603#include <stdio.h>
10604main()
10605{
10606 FILE *f=fopen("conftestval", "w");
10607 if (!f) exit(1);
10608 fprintf(f, "%d\n", sizeof(long long));
10609 exit(0);
10610}
10611EOF
10612if { (eval echo configure:10613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10613then
10614 ac_cv_sizeof_long_long=`cat conftestval`
10615else
10616 echo "configure: failed program was:" >&5
10617 cat conftest.$ac_ext >&5
10618 rm -fr conftest*
10619 ac_cv_sizeof_long_long=0
10620fi
10621rm -fr conftest*
10622fi
10623
10624fi
10625echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10626cat >> confdefs.h <<EOF
10627#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10628EOF
10629
10630
10631 ;;
10632 *-hp-hpux* )
10633 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10634echo "configure:10635: checking size of long long" >&5
10635if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10636 echo $ac_n "(cached) $ac_c" 1>&6
10637else
10638 if test "$cross_compiling" = yes; then
10639 ac_cv_sizeof_long_long=0
10640else
10641 cat > conftest.$ac_ext <<EOF
10642#line 10643 "configure"
10643#include "confdefs.h"
10644#include <stdio.h>
10645main()
10646{
10647 FILE *f=fopen("conftestval", "w");
10648 if (!f) exit(1);
10649 fprintf(f, "%d\n", sizeof(long long));
10650 exit(0);
10651}
10652EOF
10653if { (eval echo configure:10654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10654then
10655 ac_cv_sizeof_long_long=`cat conftestval`
10656else
10657 echo "configure: failed program was:" >&5
10658 cat conftest.$ac_ext >&5
10659 rm -fr conftest*
10660 ac_cv_sizeof_long_long=0
10661fi
10662rm -fr conftest*
10663fi
10664
10665fi
10666echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10667cat >> confdefs.h <<EOF
10668#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10669EOF
10670
10671
10672 if test "$ac_cv_sizeof_long_long" != "0"; then
10673 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10674 fi
10675 ;;
10676 * )
10677 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10678echo "configure:10679: checking size of long long" >&5
10679if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10680 echo $ac_n "(cached) $ac_c" 1>&6
10681else
10682 if test "$cross_compiling" = yes; then
10683 ac_cv_sizeof_long_long=0
10684else
10685 cat > conftest.$ac_ext <<EOF
10686#line 10687 "configure"
10687#include "confdefs.h"
10688#include <stdio.h>
10689main()
10690{
10691 FILE *f=fopen("conftestval", "w");
10692 if (!f) exit(1);
10693 fprintf(f, "%d\n", sizeof(long long));
10694 exit(0);
10695}
10696EOF
10697if { (eval echo configure:10698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10698then
10699 ac_cv_sizeof_long_long=`cat conftestval`
10700else
10701 echo "configure: failed program was:" >&5
10702 cat conftest.$ac_ext >&5
10703 rm -fr conftest*
10704 ac_cv_sizeof_long_long=0
10705fi
10706rm -fr conftest*
10707fi
10708
10709fi
10710echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10711cat >> confdefs.h <<EOF
10712#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10713EOF
10714
10715
10716esac
10717
10718echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10719echo "configure:10720: checking size of wchar_t" >&5
10720if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10721 echo $ac_n "(cached) $ac_c" 1>&6
10722else
10723
10724 if test "$cross_compiling" = yes; then
10725
10726 case "${host}" in
10727 *-pc-msdosdjgpp )
10728 wx_cv_sizeof_wchar_t=0
10729 ;;
10730 * )
10731 wx_cv_sizeof_wchar_t=4
10732 ;;
10733 esac
10734
10735
10736else
10737 cat > conftest.$ac_ext <<EOF
10738#line 10739 "configure"
10739#include "confdefs.h"
10740
10741 /* DJGPP only has fake wchar_t: */
10742 #ifdef __DJGPP__
10743 # error "fake wchar_t"
10744 #endif
10745 #ifdef HAVE_WCHAR_H
10746 # ifdef __CYGWIN__
10747 # include <stddef.h>
10748 # endif
10749 # include <wchar.h>
10750 #endif
10751 #ifdef HAVE_STDLIB_H
10752 # include <stdlib.h>
10753 #endif
10754 #include <stdio.h>
10755 int main()
10756 {
10757 FILE *f=fopen("conftestval", "w");
10758 if (!f) exit(1);
10759 fprintf(f, "%i", sizeof(wchar_t));
10760 exit(0);
10761 }
10762
10763EOF
10764if { (eval echo configure:10765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10765then
10766 wx_cv_sizeof_wchar_t=`cat conftestval`
10767else
10768 echo "configure: failed program was:" >&5
10769 cat conftest.$ac_ext >&5
10770 rm -fr conftest*
10771 wx_cv_sizeof_wchar_t=0
10772fi
10773rm -fr conftest*
10774fi
10775
10776
10777fi
10778
10779echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10780
10781cat >> confdefs.h <<EOF
10782#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10783EOF
10784
10785
10786# Check whether --enable-largefile or --disable-largefile was given.
10787if test "${enable_largefile+set}" = set; then
10788 enableval="$enable_largefile"
10789 :
10790fi
10791
10792if test "$enable_largefile" != no; then
10793 wx_largefile=no
10794
10795 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10796echo "configure:10797: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10797if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10798 echo $ac_n "(cached) $ac_c" 1>&6
10799else
10800
10801 cat > conftest.$ac_ext <<EOF
10802#line 10803 "configure"
10803#include "confdefs.h"
10804#define _FILE_OFFSET_BITS 64
10805 #include <sys/types.h>
10806int main() {
10807typedef struct {
10808 unsigned int field: sizeof(off_t) == 8;
10809} wxlf;
10810
10811; return 0; }
10812EOF
10813if { (eval echo configure:10814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10814 rm -rf conftest*
10815 ac_cv_sys_file_offset_bits=64
10816else
10817 echo "configure: failed program was:" >&5
10818 cat conftest.$ac_ext >&5
10819 rm -rf conftest*
10820 ac_cv_sys_file_offset_bits=no
10821fi
10822rm -f conftest*
10823
10824
10825fi
10826
10827echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10828
10829 if test "$ac_cv_sys_file_offset_bits" != no; then
10830 wx_largefile=yes
10831 cat >> confdefs.h <<EOF
10832#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10833EOF
10834
10835 fi
10836
10837 if test "x$wx_largefile" != "xyes"; then
10838
10839 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10840echo "configure:10841: checking for _LARGE_FILES value needed for large files" >&5
10841if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10842 echo $ac_n "(cached) $ac_c" 1>&6
10843else
10844
10845 cat > conftest.$ac_ext <<EOF
10846#line 10847 "configure"
10847#include "confdefs.h"
10848#define _LARGE_FILES 1
10849 #include <sys/types.h>
10850int main() {
10851typedef struct {
10852 unsigned int field: sizeof(off_t) == 8;
10853} wxlf;
10854
10855; return 0; }
10856EOF
10857if { (eval echo configure:10858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10858 rm -rf conftest*
10859 ac_cv_sys_large_files=1
10860else
10861 echo "configure: failed program was:" >&5
10862 cat conftest.$ac_ext >&5
10863 rm -rf conftest*
10864 ac_cv_sys_large_files=no
10865fi
10866rm -f conftest*
10867
10868
10869fi
10870
10871echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10872
10873 if test "$ac_cv_sys_large_files" != no; then
10874 wx_largefile=yes
10875 cat >> confdefs.h <<EOF
10876#define _LARGE_FILES $ac_cv_sys_large_files
10877EOF
10878
10879 fi
10880
10881 fi
10882
10883 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10884echo "configure:10885: checking if large file support is available" >&5
10885 if test "x$wx_largefile" = "xyes"; then
10886 cat >> confdefs.h <<\EOF
10887#define HAVE_LARGEFILE_SUPPORT 1
10888EOF
10889
10890 fi
10891 echo "$ac_t""$wx_largefile" 1>&6
10892fi
10893
10894
10895if test "x$wx_largefile" = "xyes"; then
10896 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10897 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
10898 else
10899 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
10900 fi
10901 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
10902fi
10903
10904echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10905echo "configure:10906: checking whether byte ordering is bigendian" >&5
10906if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10907 echo $ac_n "(cached) $ac_c" 1>&6
10908else
10909 ac_cv_c_bigendian=unknown
10910# See if sys/param.h defines the BYTE_ORDER macro.
10911cat > conftest.$ac_ext <<EOF
10912#line 10913 "configure"
10913#include "confdefs.h"
10914#include <sys/types.h>
10915#include <sys/param.h>
10916int main() {
10917
10918#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10919 bogus endian macros
10920#endif
10921; return 0; }
10922EOF
10923if { (eval echo configure:10924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10924 rm -rf conftest*
10925 # It does; now see whether it defined to BIG_ENDIAN or not.
10926cat > conftest.$ac_ext <<EOF
10927#line 10928 "configure"
10928#include "confdefs.h"
10929#include <sys/types.h>
10930#include <sys/param.h>
10931int main() {
10932
10933#if BYTE_ORDER != BIG_ENDIAN
10934 not big endian
10935#endif
10936; return 0; }
10937EOF
10938if { (eval echo configure:10939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10939 rm -rf conftest*
10940 ac_cv_c_bigendian=yes
10941else
10942 echo "configure: failed program was:" >&5
10943 cat conftest.$ac_ext >&5
10944 rm -rf conftest*
10945 ac_cv_c_bigendian=no
10946fi
10947rm -f conftest*
10948else
10949 echo "configure: failed program was:" >&5
10950 cat conftest.$ac_ext >&5
10951fi
10952rm -f conftest*
10953if test $ac_cv_c_bigendian = unknown; then
10954if test "$cross_compiling" = yes; then
10955 ac_cv_c_bigendian=unknown
10956else
10957 cat > conftest.$ac_ext <<EOF
10958#line 10959 "configure"
10959#include "confdefs.h"
10960main () {
10961 /* Are we little or big endian? From Harbison&Steele. */
10962 union
10963 {
10964 long l;
10965 char c[sizeof (long)];
10966 } u;
10967 u.l = 1;
10968 exit (u.c[sizeof (long) - 1] == 1);
10969}
10970EOF
10971if { (eval echo configure:10972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10972then
10973 ac_cv_c_bigendian=no
10974else
10975 echo "configure: failed program was:" >&5
10976 cat conftest.$ac_ext >&5
10977 rm -fr conftest*
10978 ac_cv_c_bigendian=yes
10979fi
10980rm -fr conftest*
10981fi
10982
10983fi
10984fi
10985
10986echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10987if test $ac_cv_c_bigendian = unknown; then
10988 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
10989fi
10990if test $ac_cv_c_bigendian = yes; then
10991 cat >> confdefs.h <<\EOF
10992#define WORDS_BIGENDIAN 1
10993EOF
10994
10995fi
10996
10997
10998echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
10999echo "configure:11000: checking how to run the C++ preprocessor" >&5
11000if test -z "$CXXCPP"; then
11001if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
11002 echo $ac_n "(cached) $ac_c" 1>&6
11003else
11004 ac_ext=C
11005# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11006ac_cpp='$CXXCPP $CPPFLAGS'
11007ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11008ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11009cross_compiling=$ac_cv_prog_cxx_cross
11010 CXXCPP="${CXX-g++} -E"
11011 cat > conftest.$ac_ext <<EOF
11012#line 11013 "configure"
11013#include "confdefs.h"
11014#include <stdlib.h>
11015EOF
11016ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11017{ (eval echo configure:11018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11018ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11019if test -z "$ac_err"; then
11020 :
11021else
11022 echo "$ac_err" >&5
11023 echo "configure: failed program was:" >&5
11024 cat conftest.$ac_ext >&5
11025 rm -rf conftest*
11026 CXXCPP=/lib/cpp
11027fi
11028rm -f conftest*
11029 ac_cv_prog_CXXCPP="$CXXCPP"
11030ac_ext=C
11031# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11032ac_cpp='$CXXCPP $CPPFLAGS'
11033ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11034ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11035cross_compiling=$ac_cv_prog_cxx_cross
11036fi
11037fi
11038CXXCPP="$ac_cv_prog_CXXCPP"
11039echo "$ac_t""$CXXCPP" 1>&6
11040
11041
11042 if test "$cross_compiling" = "yes"; then
11043 cat >> confdefs.h <<\EOF
11044#define wxUSE_IOSTREAMH 1
11045EOF
11046
11047 else
11048
11049 ac_ext=C
11050# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11051ac_cpp='$CXXCPP $CPPFLAGS'
11052ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11053ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11054cross_compiling=$ac_cv_prog_cxx_cross
11055
11056
11057 for ac_hdr in iostream
11058do
11059ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11060echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11061echo "configure:11062: checking for $ac_hdr" >&5
11062if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11063 echo $ac_n "(cached) $ac_c" 1>&6
11064else
11065 cat > conftest.$ac_ext <<EOF
11066#line 11067 "configure"
11067#include "confdefs.h"
11068#include <$ac_hdr>
11069EOF
11070ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11071{ (eval echo configure:11072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11072ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11073if test -z "$ac_err"; then
11074 rm -rf conftest*
11075 eval "ac_cv_header_$ac_safe=yes"
11076else
11077 echo "$ac_err" >&5
11078 echo "configure: failed program was:" >&5
11079 cat conftest.$ac_ext >&5
11080 rm -rf conftest*
11081 eval "ac_cv_header_$ac_safe=no"
11082fi
11083rm -f conftest*
11084fi
11085if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11086 echo "$ac_t""yes" 1>&6
11087 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11088 cat >> confdefs.h <<EOF
11089#define $ac_tr_hdr 1
11090EOF
11091
11092else
11093 echo "$ac_t""no" 1>&6
11094fi
11095done
11096
11097
11098 if test "$ac_cv_header_iostream" = "yes" ; then
11099 :
11100 else
11101 cat >> confdefs.h <<\EOF
11102#define wxUSE_IOSTREAMH 1
11103EOF
11104
11105 fi
11106
11107 ac_ext=c
11108# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11109ac_cpp='$CPP $CPPFLAGS'
11110ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11111ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11112cross_compiling=$ac_cv_prog_cc_cross
11113
11114 fi
11115
11116
11117
11118 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
11119echo "configure:11120: checking if C++ compiler supports bool" >&5
11120if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11121 echo $ac_n "(cached) $ac_c" 1>&6
11122else
11123
11124
11125 ac_ext=C
11126# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11127ac_cpp='$CXXCPP $CPPFLAGS'
11128ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11129ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11130cross_compiling=$ac_cv_prog_cxx_cross
11131
11132
11133 cat > conftest.$ac_ext <<EOF
11134#line 11135 "configure"
11135#include "confdefs.h"
11136
11137
11138int main() {
11139
11140 bool b = true;
11141
11142 return 0;
11143
11144; return 0; }
11145EOF
11146if { (eval echo configure:11147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11147 rm -rf conftest*
11148
11149 wx_cv_cpp_bool=yes
11150
11151else
11152 echo "configure: failed program was:" >&5
11153 cat conftest.$ac_ext >&5
11154 rm -rf conftest*
11155
11156 wx_cv_cpp_bool=no
11157
11158
11159fi
11160rm -f conftest*
11161
11162 ac_ext=c
11163# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11164ac_cpp='$CPP $CPPFLAGS'
11165ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11166ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11167cross_compiling=$ac_cv_prog_cc_cross
11168
11169
11170fi
11171
11172echo "$ac_t""$wx_cv_cpp_bool" 1>&6
11173
11174 if test "$wx_cv_cpp_bool" = "yes"; then
11175 cat >> confdefs.h <<\EOF
11176#define HAVE_BOOL 1
11177EOF
11178
11179 fi
11180
11181
11182
11183 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
11184echo "configure:11185: checking if C++ compiler supports the explicit keyword" >&5
11185if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11186 echo $ac_n "(cached) $ac_c" 1>&6
11187else
11188
11189
11190 ac_ext=C
11191# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11192ac_cpp='$CXXCPP $CPPFLAGS'
11193ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11194ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11195cross_compiling=$ac_cv_prog_cxx_cross
11196
11197
11198 cat > conftest.$ac_ext <<EOF
11199#line 11200 "configure"
11200#include "confdefs.h"
11201
11202 class Foo { public: explicit Foo(int) {} };
11203
11204int main() {
11205
11206 return 0;
11207
11208; return 0; }
11209EOF
11210if { (eval echo configure:11211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11211 rm -rf conftest*
11212
11213 cat > conftest.$ac_ext <<EOF
11214#line 11215 "configure"
11215#include "confdefs.h"
11216
11217 class Foo { public: explicit Foo(int) {} };
11218 static void TakeFoo(const Foo& foo) { }
11219
11220int main() {
11221
11222 TakeFoo(17);
11223 return 0;
11224
11225; return 0; }
11226EOF
11227if { (eval echo configure:11228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11228 rm -rf conftest*
11229 wx_cv_explicit=no
11230else
11231 echo "configure: failed program was:" >&5
11232 cat conftest.$ac_ext >&5
11233 rm -rf conftest*
11234 wx_cv_explicit=yes
11235
11236fi
11237rm -f conftest*
11238
11239else
11240 echo "configure: failed program was:" >&5
11241 cat conftest.$ac_ext >&5
11242 rm -rf conftest*
11243 wx_cv_explicit=no
11244
11245fi
11246rm -f conftest*
11247
11248 ac_ext=c
11249# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11250ac_cpp='$CPP $CPPFLAGS'
11251ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11252ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11253cross_compiling=$ac_cv_prog_cc_cross
11254
11255
11256fi
11257
11258echo "$ac_t""$wx_cv_explicit" 1>&6
11259
11260 if test "$wx_cv_explicit" = "yes"; then
11261 cat >> confdefs.h <<\EOF
11262#define HAVE_EXPLICIT 1
11263EOF
11264
11265 fi
11266
11267
11268
11269SEARCH_INCLUDE="\
11270 /usr/local/include \
11271 \
11272 /usr/Motif-1.2/include \
11273 /usr/Motif-2.1/include \
11274 \
11275 /usr/include/Motif1.2 \
11276 /opt/xpm/include/X11 \
11277 /opt/GBxpm/include/ \
11278 /opt/GBxpm/X11/include/ \
11279 \
11280 /usr/Motif1.2/include \
11281 /usr/dt/include \
11282 /usr/openwin/include \
11283 \
11284 /usr/include/Xm \
11285 \
11286 /usr/X11R6/include \
11287 /usr/X11R6.4/include \
11288 /usr/X11R5/include \
11289 /usr/X11R4/include \
11290 \
11291 /usr/include/X11R6 \
11292 /usr/include/X11R5 \
11293 /usr/include/X11R4 \
11294 \
11295 /usr/local/X11R6/include \
11296 /usr/local/X11R5/include \
11297 /usr/local/X11R4/include \
11298 \
11299 /usr/local/include/X11R6 \
11300 /usr/local/include/X11R5 \
11301 /usr/local/include/X11R4 \
11302 \
11303 /usr/X11/include \
11304 /usr/include/X11 \
11305 /usr/local/X11/include \
11306 /usr/local/include/X11 \
11307 \
11308 /usr/X386/include \
11309 /usr/x386/include \
11310 /usr/XFree86/include/X11 \
11311 \
11312 X:/XFree86/include \
11313 X:/XFree86/include/X11 \
11314 \
11315 /usr/include/gtk \
11316 /usr/local/include/gtk \
11317 /usr/include/glib \
11318 /usr/local/include/glib \
11319 \
11320 /usr/include/qt \
11321 /usr/local/include/qt \
11322 \
11323 /usr/include/windows \
11324 /usr/include/wine \
11325 /usr/local/include/wine \
11326 \
11327 /usr/unsupported/include \
11328 /usr/athena/include \
11329 /usr/local/x11r5/include \
11330 /usr/lpp/Xamples/include \
11331 \
11332 /usr/openwin/share/include"
11333
11334SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11335
11336
11337cat > confcache <<\EOF
11338# This file is a shell script that caches the results of configure
11339# tests run on this system so they can be shared between configure
11340# scripts and configure runs. It is not useful on other systems.
11341# If it contains results you don't want to keep, you may remove or edit it.
11342#
11343# By default, configure uses ./config.cache as the cache file,
11344# creating it if it does not exist already. You can give configure
11345# the --cache-file=FILE option to use a different cache file; that is
11346# what configure does when it calls configure scripts in
11347# subdirectories, so they share the cache.
11348# Giving --cache-file=/dev/null disables caching, for debugging configure.
11349# config.status only pays attention to the cache file if you give it the
11350# --recheck option to rerun configure.
11351#
11352EOF
11353# The following way of writing the cache mishandles newlines in values,
11354# but we know of no workaround that is simple, portable, and efficient.
11355# So, don't put newlines in cache variables' values.
11356# Ultrix sh set writes to stderr and can't be redirected directly,
11357# and sets the high bit in the cache file unless we assign to the vars.
11358(set) 2>&1 |
11359 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11360 *ac_space=\ *)
11361 # `set' does not quote correctly, so add quotes (double-quote substitution
11362 # turns \\\\ into \\, and sed turns \\ into \).
11363 sed -n \
11364 -e "s/'/'\\\\''/g" \
11365 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11366 ;;
11367 *)
11368 # `set' quotes correctly as required by POSIX, so do not add quotes.
11369 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11370 ;;
11371 esac >> confcache
11372if cmp -s $cache_file confcache; then
11373 :
11374else
11375 if test -w $cache_file; then
11376 echo "updating cache $cache_file"
11377 cat confcache > $cache_file
11378 else
11379 echo "not updating unwritable cache $cache_file"
11380 fi
11381fi
11382rm -f confcache
11383
11384
11385if test "$USE_LINUX" = 1; then
11386 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
11387echo "configure:11388: checking for glibc 2.1 or later" >&5
11388if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11389 echo $ac_n "(cached) $ac_c" 1>&6
11390else
11391
11392 cat > conftest.$ac_ext <<EOF
11393#line 11394 "configure"
11394#include "confdefs.h"
11395#include <features.h>
11396int main() {
11397
11398 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11399 #error not glibc2.1
11400 #endif
11401
11402; return 0; }
11403EOF
11404if { (eval echo configure:11405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11405 rm -rf conftest*
11406
11407 wx_cv_lib_glibc21=yes
11408
11409else
11410 echo "configure: failed program was:" >&5
11411 cat conftest.$ac_ext >&5
11412 rm -rf conftest*
11413
11414 wx_cv_lib_glibc21=no
11415
11416
11417fi
11418rm -f conftest*
11419
11420fi
11421
11422echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11423 if test "$wx_cv_lib_glibc21" = "yes"; then
11424 cat >> confdefs.h <<\EOF
11425#define wxHAVE_GLIBC2 1
11426EOF
11427
11428 fi
11429fi
11430
11431if test "x$wx_cv_lib_glibc21" = "xyes"; then
11432 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
11433 cat >> confdefs.h <<\EOF
11434#define _GNU_SOURCE 1
11435EOF
11436
11437 fi
11438fi
11439
11440
11441
11442REGEX_INCLUDE=
11443if test "$wxUSE_REGEX" != "no"; then
11444 cat >> confdefs.h <<\EOF
11445#define wxUSE_REGEX 1
11446EOF
11447
11448
11449 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11450 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11451echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11452echo "configure:11453: checking for regex.h" >&5
11453if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11454 echo $ac_n "(cached) $ac_c" 1>&6
11455else
11456 cat > conftest.$ac_ext <<EOF
11457#line 11458 "configure"
11458#include "confdefs.h"
11459#include <regex.h>
11460EOF
11461ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11462{ (eval echo configure:11463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11463ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11464if test -z "$ac_err"; then
11465 rm -rf conftest*
11466 eval "ac_cv_header_$ac_safe=yes"
11467else
11468 echo "$ac_err" >&5
11469 echo "configure: failed program was:" >&5
11470 cat conftest.$ac_ext >&5
11471 rm -rf conftest*
11472 eval "ac_cv_header_$ac_safe=no"
11473fi
11474rm -f conftest*
11475fi
11476if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11477 echo "$ac_t""yes" 1>&6
11478 for ac_func in regcomp
11479do
11480echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11481echo "configure:11482: checking for $ac_func" >&5
11482if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11483 echo $ac_n "(cached) $ac_c" 1>&6
11484else
11485 cat > conftest.$ac_ext <<EOF
11486#line 11487 "configure"
11487#include "confdefs.h"
11488/* System header to define __stub macros and hopefully few prototypes,
11489 which can conflict with char $ac_func(); below. */
11490#include <assert.h>
11491/* Override any gcc2 internal prototype to avoid an error. */
11492/* We use char because int might match the return type of a gcc2
11493 builtin and then its argument prototype would still apply. */
11494char $ac_func();
11495
11496int main() {
11497
11498/* The GNU C library defines this for functions which it implements
11499 to always fail with ENOSYS. Some functions are actually named
11500 something starting with __ and the normal name is an alias. */
11501#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11502choke me
11503#else
11504$ac_func();
11505#endif
11506
11507; return 0; }
11508EOF
11509if { (eval echo configure:11510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11510 rm -rf conftest*
11511 eval "ac_cv_func_$ac_func=yes"
11512else
11513 echo "configure: failed program was:" >&5
11514 cat conftest.$ac_ext >&5
11515 rm -rf conftest*
11516 eval "ac_cv_func_$ac_func=no"
11517fi
11518rm -f conftest*
11519fi
11520
11521if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11522 echo "$ac_t""yes" 1>&6
11523 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11524 cat >> confdefs.h <<EOF
11525#define $ac_tr_func 1
11526EOF
11527
11528else
11529 echo "$ac_t""no" 1>&6
11530fi
11531done
11532
11533else
11534 echo "$ac_t""no" 1>&6
11535fi
11536
11537
11538 if test "x$ac_cv_func_regcomp" != "xyes"; then
11539 if test "$wxUSE_REGEX" = "sys" ; then
11540 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11541 else
11542 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11543 wxUSE_REGEX=builtin
11544 fi
11545 else
11546 wxUSE_REGEX=sys
11547 fi
11548 fi
11549
11550 if test "$wxUSE_REGEX" = "builtin" ; then
11551 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11552 fi
11553fi
11554
11555
11556ZLIB_INCLUDE=
11557ZLIB_LINK=
11558if test "$wxUSE_ZLIB" != "no" ; then
11559 cat >> confdefs.h <<\EOF
11560#define wxUSE_ZLIB 1
11561EOF
11562
11563
11564 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11565 if test "$USE_DARWIN" = 1; then
11566 system_zlib_h_ok="yes"
11567 else
11568 echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
11569echo "configure:11570: checking for zlib.h >= 1.1.4" >&5
11570if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11571 echo $ac_n "(cached) $ac_c" 1>&6
11572else
11573 if test "$cross_compiling" = yes; then
11574 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11575echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11576echo "configure:11577: checking for zlib.h" >&5
11577if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11578 echo $ac_n "(cached) $ac_c" 1>&6
11579else
11580 cat > conftest.$ac_ext <<EOF
11581#line 11582 "configure"
11582#include "confdefs.h"
11583#include <zlib.h>
11584EOF
11585ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11586{ (eval echo configure:11587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11587ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11588if test -z "$ac_err"; then
11589 rm -rf conftest*
11590 eval "ac_cv_header_$ac_safe=yes"
11591else
11592 echo "$ac_err" >&5
11593 echo "configure: failed program was:" >&5
11594 cat conftest.$ac_ext >&5
11595 rm -rf conftest*
11596 eval "ac_cv_header_$ac_safe=no"
11597fi
11598rm -f conftest*
11599fi
11600if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11601 echo "$ac_t""yes" 1>&6
11602 :
11603else
11604 echo "$ac_t""no" 1>&6
11605fi
11606
11607
11608else
11609 cat > conftest.$ac_ext <<EOF
11610#line 11611 "configure"
11611#include "confdefs.h"
11612
11613 #include <zlib.h>
11614 #include <stdio.h>
11615
11616
11617 int main()
11618 {
11619 FILE *f=fopen("conftestval", "w");
11620 if (!f) exit(1);
11621 fprintf(f, "%s",
11622 ZLIB_VERSION[0] == '1' &&
11623 (ZLIB_VERSION[2] > '1' ||
11624 (ZLIB_VERSION[2] == '1' &&
11625 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11626 exit(0);
11627 }
11628
11629
11630EOF
11631if { (eval echo configure:11632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11632then
11633 ac_cv_header_zlib_h=`cat conftestval`
11634else
11635 echo "configure: failed program was:" >&5
11636 cat conftest.$ac_ext >&5
11637 rm -fr conftest*
11638 ac_cv_header_zlib_h=no
11639fi
11640rm -fr conftest*
11641fi
11642
11643
11644fi
11645
11646echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
11647
11648 system_zlib_h_ok=$ac_cv_header_zlib_h
11649 fi
11650
11651 if test "$system_zlib_h_ok" = "yes"; then
11652 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11653echo "configure:11654: checking for deflate in -lz" >&5
11654ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11655if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11656 echo $ac_n "(cached) $ac_c" 1>&6
11657else
11658 ac_save_LIBS="$LIBS"
11659LIBS="-lz $LIBS"
11660cat > conftest.$ac_ext <<EOF
11661#line 11662 "configure"
11662#include "confdefs.h"
11663/* Override any gcc2 internal prototype to avoid an error. */
11664/* We use char because int might match the return type of a gcc2
11665 builtin and then its argument prototype would still apply. */
11666char deflate();
11667
11668int main() {
11669deflate()
11670; return 0; }
11671EOF
11672if { (eval echo configure:11673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11673 rm -rf conftest*
11674 eval "ac_cv_lib_$ac_lib_var=yes"
11675else
11676 echo "configure: failed program was:" >&5
11677 cat conftest.$ac_ext >&5
11678 rm -rf conftest*
11679 eval "ac_cv_lib_$ac_lib_var=no"
11680fi
11681rm -f conftest*
11682LIBS="$ac_save_LIBS"
11683
11684fi
11685if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11686 echo "$ac_t""yes" 1>&6
11687 ZLIB_LINK=" -lz"
11688else
11689 echo "$ac_t""no" 1>&6
11690fi
11691
11692 fi
11693
11694 if test "x$ZLIB_LINK" = "x" ; then
11695 if test "$wxUSE_ZLIB" = "sys" ; then
11696 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11697 else
11698 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
11699 wxUSE_ZLIB=builtin
11700 fi
11701 else
11702 wxUSE_ZLIB=sys
11703 fi
11704 fi
11705
11706 if test "$wxUSE_ZLIB" = "builtin" ; then
11707 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11708 fi
11709fi
11710
11711
11712PNG_INCLUDE=
11713PNG_LINK=
11714if test "$wxUSE_LIBPNG" != "no" ; then
11715 cat >> confdefs.h <<\EOF
11716#define wxUSE_LIBPNG 1
11717EOF
11718
11719
11720 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11721 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11722 wxUSE_LIBPNG=sys
11723 fi
11724
11725 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11726 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11727 wxUSE_LIBPNG=builtin
11728 fi
11729
11730 if test "$wxUSE_MGL" != 1 ; then
11731 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11732 echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
11733echo "configure:11734: checking for png.h > 0.90" >&5
11734if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11735 echo $ac_n "(cached) $ac_c" 1>&6
11736else
11737 if test "$cross_compiling" = yes; then
11738 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11739echo $ac_n "checking for png.h""... $ac_c" 1>&6
11740echo "configure:11741: checking for png.h" >&5
11741if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11742 echo $ac_n "(cached) $ac_c" 1>&6
11743else
11744 cat > conftest.$ac_ext <<EOF
11745#line 11746 "configure"
11746#include "confdefs.h"
11747#include <png.h>
11748EOF
11749ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11750{ (eval echo configure:11751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11751ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11752if test -z "$ac_err"; then
11753 rm -rf conftest*
11754 eval "ac_cv_header_$ac_safe=yes"
11755else
11756 echo "$ac_err" >&5
11757 echo "configure: failed program was:" >&5
11758 cat conftest.$ac_ext >&5
11759 rm -rf conftest*
11760 eval "ac_cv_header_$ac_safe=no"
11761fi
11762rm -f conftest*
11763fi
11764if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11765 echo "$ac_t""yes" 1>&6
11766 :
11767else
11768 echo "$ac_t""no" 1>&6
11769fi
11770
11771
11772else
11773 cat > conftest.$ac_ext <<EOF
11774#line 11775 "configure"
11775#include "confdefs.h"
11776
11777 #include <png.h>
11778 #include <stdio.h>
11779
11780 int main()
11781 {
11782 FILE *f=fopen("conftestval", "w");
11783 if (!f) exit(1);
11784 fprintf(f, "%s",
11785 PNG_LIBPNG_VER > 90 ? "yes" : "no");
11786 exit(0);
11787 }
11788
11789EOF
11790if { (eval echo configure:11791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11791then
11792 ac_cv_header_png_h=`cat conftestval`
11793else
11794 echo "configure: failed program was:" >&5
11795 cat conftest.$ac_ext >&5
11796 rm -fr conftest*
11797 ac_cv_header_png_h=no
11798fi
11799rm -fr conftest*
11800fi
11801
11802
11803fi
11804
11805echo "$ac_t""$ac_cv_header_png_h" 1>&6
11806
11807 if test "$ac_cv_header_png_h" = "yes"; then
11808 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11809echo "configure:11810: checking for png_check_sig in -lpng" >&5
11810ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11811if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11812 echo $ac_n "(cached) $ac_c" 1>&6
11813else
11814 ac_save_LIBS="$LIBS"
11815LIBS="-lpng -lz -lm $LIBS"
11816cat > conftest.$ac_ext <<EOF
11817#line 11818 "configure"
11818#include "confdefs.h"
11819/* Override any gcc2 internal prototype to avoid an error. */
11820/* We use char because int might match the return type of a gcc2
11821 builtin and then its argument prototype would still apply. */
11822char png_check_sig();
11823
11824int main() {
11825png_check_sig()
11826; return 0; }
11827EOF
11828if { (eval echo configure:11829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11829 rm -rf conftest*
11830 eval "ac_cv_lib_$ac_lib_var=yes"
11831else
11832 echo "configure: failed program was:" >&5
11833 cat conftest.$ac_ext >&5
11834 rm -rf conftest*
11835 eval "ac_cv_lib_$ac_lib_var=no"
11836fi
11837rm -f conftest*
11838LIBS="$ac_save_LIBS"
11839
11840fi
11841if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11842 echo "$ac_t""yes" 1>&6
11843 PNG_LINK=" -lpng"
11844else
11845 echo "$ac_t""no" 1>&6
11846fi
11847
11848 fi
11849
11850 if test "x$PNG_LINK" = "x" ; then
11851 if test "$wxUSE_LIBPNG" = "sys" ; then
11852 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11853 else
11854 echo "configure: warning: png library not found or too old, will use built-in instead" 1>&2
11855 wxUSE_LIBPNG=builtin
11856 fi
11857 else
11858 wxUSE_LIBPNG=sys
11859 fi
11860 fi
11861 fi
11862
11863 if test "$wxUSE_LIBPNG" = "builtin" ; then
11864 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11865 fi
11866
11867 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11868fi
11869
11870
11871JPEG_INCLUDE=
11872JPEG_LINK=
11873if test "$wxUSE_LIBJPEG" != "no" ; then
11874 cat >> confdefs.h <<\EOF
11875#define wxUSE_LIBJPEG 1
11876EOF
11877
11878
11879 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11880 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11881 wxUSE_LIBJPEG=sys
11882 fi
11883
11884 if test "$wxUSE_MGL" != 1 ; then
11885 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11886 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11887echo "configure:11888: checking for jpeglib.h" >&5
11888 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11889 echo $ac_n "(cached) $ac_c" 1>&6
11890else
11891 cat > conftest.$ac_ext <<EOF
11892#line 11893 "configure"
11893#include "confdefs.h"
11894
11895 #undef HAVE_STDLIB_H
11896 #include <stdio.h>
11897 #include <jpeglib.h>
11898
11899int main() {
11900
11901
11902; return 0; }
11903EOF
11904if { (eval echo configure:11905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11905 rm -rf conftest*
11906 ac_cv_header_jpeglib_h=yes
11907else
11908 echo "configure: failed program was:" >&5
11909 cat conftest.$ac_ext >&5
11910 rm -rf conftest*
11911 ac_cv_header_jpeglib_h=no
11912
11913fi
11914rm -f conftest*
11915
11916fi
11917
11918 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
11919
11920 if test "$ac_cv_header_jpeglib_h" = "yes"; then
11921 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11922echo "configure:11923: checking for jpeg_read_header in -ljpeg" >&5
11923ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11924if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11925 echo $ac_n "(cached) $ac_c" 1>&6
11926else
11927 ac_save_LIBS="$LIBS"
11928LIBS="-ljpeg $LIBS"
11929cat > conftest.$ac_ext <<EOF
11930#line 11931 "configure"
11931#include "confdefs.h"
11932/* Override any gcc2 internal prototype to avoid an error. */
11933/* We use char because int might match the return type of a gcc2
11934 builtin and then its argument prototype would still apply. */
11935char jpeg_read_header();
11936
11937int main() {
11938jpeg_read_header()
11939; return 0; }
11940EOF
11941if { (eval echo configure:11942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11942 rm -rf conftest*
11943 eval "ac_cv_lib_$ac_lib_var=yes"
11944else
11945 echo "configure: failed program was:" >&5
11946 cat conftest.$ac_ext >&5
11947 rm -rf conftest*
11948 eval "ac_cv_lib_$ac_lib_var=no"
11949fi
11950rm -f conftest*
11951LIBS="$ac_save_LIBS"
11952
11953fi
11954if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11955 echo "$ac_t""yes" 1>&6
11956 JPEG_LINK=" -ljpeg"
11957else
11958 echo "$ac_t""no" 1>&6
11959fi
11960
11961 fi
11962
11963 if test "x$JPEG_LINK" = "x" ; then
11964 if test "$wxUSE_LIBJPEG" = "sys" ; then
11965 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
11966 else
11967 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
11968 wxUSE_LIBJPEG=builtin
11969 fi
11970 else
11971 wxUSE_LIBJPEG=sys
11972 fi
11973 fi
11974 fi
11975
11976 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11977 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11978 fi
11979fi
11980
11981
11982TIFF_INCLUDE=
11983TIFF_LINK=
11984TIFF_PREREQ_LINKS=-lm
11985if test "$wxUSE_LIBTIFF" != "no" ; then
11986 cat >> confdefs.h <<\EOF
11987#define wxUSE_LIBTIFF 1
11988EOF
11989
11990
11991 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
11992 if test "$wxUSE_LIBJPEG" = "sys"; then
11993 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
11994 fi
11995 if test "$wxUSE_ZLIB" = "sys"; then
11996 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
11997 fi
11998 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
11999echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
12000echo "configure:12001: checking for tiffio.h" >&5
12001if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12002 echo $ac_n "(cached) $ac_c" 1>&6
12003else
12004 cat > conftest.$ac_ext <<EOF
12005#line 12006 "configure"
12006#include "confdefs.h"
12007#include <tiffio.h>
12008EOF
12009ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12010{ (eval echo configure:12011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12011ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12012if test -z "$ac_err"; then
12013 rm -rf conftest*
12014 eval "ac_cv_header_$ac_safe=yes"
12015else
12016 echo "$ac_err" >&5
12017 echo "configure: failed program was:" >&5
12018 cat conftest.$ac_ext >&5
12019 rm -rf conftest*
12020 eval "ac_cv_header_$ac_safe=no"
12021fi
12022rm -f conftest*
12023fi
12024if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12025 echo "$ac_t""yes" 1>&6
12026 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
12027echo "configure:12028: checking for TIFFError in -ltiff" >&5
12028ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12029if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12030 echo $ac_n "(cached) $ac_c" 1>&6
12031else
12032 ac_save_LIBS="$LIBS"
12033LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
12034cat > conftest.$ac_ext <<EOF
12035#line 12036 "configure"
12036#include "confdefs.h"
12037/* Override any gcc2 internal prototype to avoid an error. */
12038/* We use char because int might match the return type of a gcc2
12039 builtin and then its argument prototype would still apply. */
12040char TIFFError();
12041
12042int main() {
12043TIFFError()
12044; return 0; }
12045EOF
12046if { (eval echo configure:12047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12047 rm -rf conftest*
12048 eval "ac_cv_lib_$ac_lib_var=yes"
12049else
12050 echo "configure: failed program was:" >&5
12051 cat conftest.$ac_ext >&5
12052 rm -rf conftest*
12053 eval "ac_cv_lib_$ac_lib_var=no"
12054fi
12055rm -f conftest*
12056LIBS="$ac_save_LIBS"
12057
12058fi
12059if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12060 echo "$ac_t""yes" 1>&6
12061 TIFF_LINK=" -ltiff"
12062else
12063 echo "$ac_t""no" 1>&6
12064fi
12065
12066
12067else
12068 echo "$ac_t""no" 1>&6
12069fi
12070
12071
12072 if test "x$TIFF_LINK" = "x" ; then
12073 if test "$wxUSE_LIBTIFF" = "sys" ; then
12074 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
12075 else
12076 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
12077 wxUSE_LIBTIFF=builtin
12078 fi
12079 else
12080 wxUSE_LIBTIFF=sys
12081 fi
12082 fi
12083
12084 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12085 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
12086 fi
12087fi
12088
12089
12090AFMINSTALL=
12091WIN32INSTALL=
12092
12093TOOLKIT=
12094TOOLKIT_INCLUDE=
12095WIDGET_SET=
12096
12097if test "$USE_WIN32" = 1 ; then
12098 for ac_hdr in w32api.h
12099do
12100ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12101echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12102echo "configure:12103: checking for $ac_hdr" >&5
12103if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12104 echo $ac_n "(cached) $ac_c" 1>&6
12105else
12106 cat > conftest.$ac_ext <<EOF
12107#line 12108 "configure"
12108#include "confdefs.h"
12109#include <$ac_hdr>
12110EOF
12111ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12112{ (eval echo configure:12113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12113ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12114if test -z "$ac_err"; then
12115 rm -rf conftest*
12116 eval "ac_cv_header_$ac_safe=yes"
12117else
12118 echo "$ac_err" >&5
12119 echo "configure: failed program was:" >&5
12120 cat conftest.$ac_ext >&5
12121 rm -rf conftest*
12122 eval "ac_cv_header_$ac_safe=no"
12123fi
12124rm -f conftest*
12125fi
12126if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12127 echo "$ac_t""yes" 1>&6
12128 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12129 cat >> confdefs.h <<EOF
12130#define $ac_tr_hdr 1
12131EOF
12132
12133else
12134 echo "$ac_t""no" 1>&6
12135fi
12136done
12137
12138 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12139echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12140echo "configure:12141: checking for windows.h" >&5
12141if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12142 echo $ac_n "(cached) $ac_c" 1>&6
12143else
12144 cat > conftest.$ac_ext <<EOF
12145#line 12146 "configure"
12146#include "confdefs.h"
12147#include <windows.h>
12148EOF
12149ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12150{ (eval echo configure:12151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12151ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12152if test -z "$ac_err"; then
12153 rm -rf conftest*
12154 eval "ac_cv_header_$ac_safe=yes"
12155else
12156 echo "$ac_err" >&5
12157 echo "configure: failed program was:" >&5
12158 cat conftest.$ac_ext >&5
12159 rm -rf conftest*
12160 eval "ac_cv_header_$ac_safe=no"
12161fi
12162rm -f conftest*
12163fi
12164if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12165 echo "$ac_t""yes" 1>&6
12166 :
12167else
12168 echo "$ac_t""no" 1>&6
12169
12170 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12171
12172fi
12173
12174
12175 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
12176echo "configure:12177: checking if w32api has good enough MSIE support" >&5
12177if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12178 echo $ac_n "(cached) $ac_c" 1>&6
12179else
12180
12181 cat > conftest.$ac_ext <<EOF
12182#line 12183 "configure"
12183#include "confdefs.h"
12184#include <w32api.h>
12185int main() {
12186
12187 #define wxCHECK_W32API_VERSION( major, minor ) \
12188 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12189 && ( ( __W32API_MAJOR_VERSION > (major) ) \
12190 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12191
12192 #if !wxCHECK_W32API_VERSION(1,1)
12193 #error You need w32api 1.1 or newer
12194 #endif
12195
12196; return 0; }
12197EOF
12198if { (eval echo configure:12199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12199 rm -rf conftest*
12200
12201 wx_cv_w32api_win32_ie=yes
12202
12203else
12204 echo "configure: failed program was:" >&5
12205 cat conftest.$ac_ext >&5
12206 rm -rf conftest*
12207
12208 wx_cv_w32api_win32_ie=no
12209
12210fi
12211rm -f conftest*
12212
12213fi
12214
12215echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
12216 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12217 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12218 fi
12219
12220 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12221
12222 case "${host}" in
12223 *-*-cygwin* )
12224 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12225 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
12226 esac
12227
12228 if test "$wxUSE_ODBC" = "yes" ; then
12229 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12230 fi
12231
12232 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12233 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
12234
12235 WIN32INSTALL=win32install
12236fi
12237
12238if test "$USE_DARWIN" = 1; then
12239 if test "$wxUSE_PRECOMP" = "yes"; then
12240 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12241 else
12242 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12243 fi
12244fi
12245
12246if test "$wxUSE_GUI" = "yes"; then
12247 USE_GUI=1
12248
12249 GUI_TK_LIBRARY=
12250
12251 WXGTK12=
12252 WXGTK127=
12253 WXGTK20=
12254
12255 if test "$wxUSE_MSW" = 1 ; then
12256 TOOLKIT=MSW
12257 GUIDIST=MSW_DIST
12258
12259 case "${host}" in
12260 *-*-mingw32* )
12261 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
12262 esac
12263 fi
12264
12265 if test "$wxUSE_GTK" = 1; then
12266 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
12267echo "configure:12268: checking for GTK+ version" >&5
12268
12269 gtk_version_cached=1
12270 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12271 echo $ac_n "(cached) $ac_c" 1>&6
12272else
12273
12274 gtk_version_cached=0
12275 echo "$ac_t""" 1>&6
12276
12277 GTK_MODULES=
12278 if test "$wxUSE_THREADS" = "yes"; then
12279 GTK_MODULES=gthread
12280 fi
12281
12282 wx_cv_lib_gtk=
12283 if test "x$wxUSE_GTK2" = "xyes"; then
12284 # Check whether --enable-gtktest or --disable-gtktest was given.
12285if test "${enable_gtktest+set}" = set; then
12286 enableval="$enable_gtktest"
12287 :
12288else
12289 enable_gtktest=yes
12290fi
12291
12292
12293 pkg_config_args=gtk+-2.0
12294 for module in . $GTK_MODULES
12295 do
12296 case "$module" in
12297 gthread)
12298 pkg_config_args="$pkg_config_args gthread-2.0"
12299 ;;
12300 esac
12301 done
12302
12303 no_gtk=""
12304
12305 # Extract the first word of "pkg-config", so it can be a program name with args.
12306set dummy pkg-config; ac_word=$2
12307echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12308echo "configure:12309: checking for $ac_word" >&5
12309if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12310 echo $ac_n "(cached) $ac_c" 1>&6
12311else
12312 case "$PKG_CONFIG" in
12313 /*)
12314 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12315 ;;
12316 ?:/*)
12317 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12318 ;;
12319 *)
12320 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12321 ac_dummy="$PATH"
12322 for ac_dir in $ac_dummy; do
12323 test -z "$ac_dir" && ac_dir=.
12324 if test -f $ac_dir/$ac_word; then
12325 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12326 break
12327 fi
12328 done
12329 IFS="$ac_save_ifs"
12330 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12331 ;;
12332esac
12333fi
12334PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12335if test -n "$PKG_CONFIG"; then
12336 echo "$ac_t""$PKG_CONFIG" 1>&6
12337else
12338 echo "$ac_t""no" 1>&6
12339fi
12340
12341
12342 if test x$PKG_CONFIG != xno ; then
12343 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12344 :
12345 else
12346 echo *** pkg-config too old; version 0.7 or better required.
12347 no_gtk=yes
12348 PKG_CONFIG=no
12349 fi
12350 else
12351 no_gtk=yes
12352 fi
12353
12354 min_gtk_version=2.0.0
12355 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
12356echo "configure:12357: checking for GTK+ - version >= $min_gtk_version" >&5
12357
12358 if test x$PKG_CONFIG != xno ; then
12359 ## don't try to run the test against uninstalled libtool libs
12360 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12361 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12362 enable_gtktest=no
12363 fi
12364
12365 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12366 :
12367 else
12368 no_gtk=yes
12369 fi
12370 fi
12371
12372 if test x"$no_gtk" = x ; then
12373 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12374 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12375 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12376 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12377 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12378 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12379 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12380 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12381 if test "x$enable_gtktest" = "xyes" ; then
12382 ac_save_CFLAGS="$CFLAGS"
12383 ac_save_LIBS="$LIBS"
12384 CFLAGS="$CFLAGS $GTK_CFLAGS"
12385 LIBS="$GTK_LIBS $LIBS"
12386 rm -f conf.gtktest
12387 if test "$cross_compiling" = yes; then
12388 echo $ac_n "cross compiling; assumed OK... $ac_c"
12389else
12390 cat > conftest.$ac_ext <<EOF
12391#line 12392 "configure"
12392#include "confdefs.h"
12393
12394#include <gtk/gtk.h>
12395#include <stdio.h>
12396#include <stdlib.h>
12397
12398int
12399main ()
12400{
12401 int major, minor, micro;
12402 char *tmp_version;
12403
12404 system ("touch conf.gtktest");
12405
12406 /* HP/UX 9 (%@#!) writes to sscanf strings */
12407 tmp_version = g_strdup("$min_gtk_version");
12408 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12409 printf("%s, bad version string\n", "$min_gtk_version");
12410 exit(1);
12411 }
12412
12413 if ((gtk_major_version != $gtk_config_major_version) ||
12414 (gtk_minor_version != $gtk_config_minor_version) ||
12415 (gtk_micro_version != $gtk_config_micro_version))
12416 {
12417 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12418 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12419 gtk_major_version, gtk_minor_version, gtk_micro_version);
12420 printf ("*** was found! If pkg-config was correct, then it is best\n");
12421 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12422 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12423 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12424 printf("*** required on your system.\n");
12425 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12426 printf("*** to point to the correct configuration files\n");
12427 }
12428 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12429 (gtk_minor_version != GTK_MINOR_VERSION) ||
12430 (gtk_micro_version != GTK_MICRO_VERSION))
12431 {
12432 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12433 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12434 printf("*** library (version %d.%d.%d)\n",
12435 gtk_major_version, gtk_minor_version, gtk_micro_version);
12436 }
12437 else
12438 {
12439 if ((gtk_major_version > major) ||
12440 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12441 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12442 {
12443 return 0;
12444 }
12445 else
12446 {
12447 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12448 gtk_major_version, gtk_minor_version, gtk_micro_version);
12449 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12450 major, minor, micro);
12451 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12452 printf("***\n");
12453 printf("*** If you have already installed a sufficiently new version, this error\n");
12454 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12455 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12456 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12457 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12458 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12459 printf("*** so that the correct libraries are found at run-time))\n");
12460 }
12461 }
12462 return 1;
12463}
12464
12465EOF
12466if { (eval echo configure:12467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12467then
12468 :
12469else
12470 echo "configure: failed program was:" >&5
12471 cat conftest.$ac_ext >&5
12472 rm -fr conftest*
12473 no_gtk=yes
12474fi
12475rm -fr conftest*
12476fi
12477
12478 CFLAGS="$ac_save_CFLAGS"
12479 LIBS="$ac_save_LIBS"
12480 fi
12481 fi
12482 if test "x$no_gtk" = x ; then
12483 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12484 wx_cv_lib_gtk=2.0
12485 else
12486 echo "$ac_t""no" 1>&6
12487 if test "$PKG_CONFIG" = "no" ; then
12488 echo "*** A new enough version of pkg-config was not found."
12489 echo "*** See http://pkgconfig.sourceforge.net"
12490 else
12491 if test -f conf.gtktest ; then
12492 :
12493 else
12494 echo "*** Could not run GTK+ test program, checking why..."
12495 ac_save_CFLAGS="$CFLAGS"
12496 ac_save_LIBS="$LIBS"
12497 CFLAGS="$CFLAGS $GTK_CFLAGS"
12498 LIBS="$LIBS $GTK_LIBS"
12499 cat > conftest.$ac_ext <<EOF
12500#line 12501 "configure"
12501#include "confdefs.h"
12502
12503#include <gtk/gtk.h>
12504#include <stdio.h>
12505
12506int main() {
12507 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12508; return 0; }
12509EOF
12510if { (eval echo configure:12511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12511 rm -rf conftest*
12512 echo "*** The test program compiled, but did not run. This usually means"
12513 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12514 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12515 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12516 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12517 echo "*** is required on your system"
12518 echo "***"
12519 echo "*** If you have an old version installed, it is best to remove it, although"
12520 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12521else
12522 echo "configure: failed program was:" >&5
12523 cat conftest.$ac_ext >&5
12524 rm -rf conftest*
12525 echo "*** The test program failed to compile or link. See the file config.log for the"
12526 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12527fi
12528rm -f conftest*
12529 CFLAGS="$ac_save_CFLAGS"
12530 LIBS="$ac_save_LIBS"
12531 fi
12532 fi
12533 GTK_CFLAGS=""
12534 GTK_LIBS=""
12535 :
12536 fi
12537
12538
12539 rm -f conf.gtktest
12540
12541 else
12542 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12543if test "${with_gtk_prefix+set}" = set; then
12544 withval="$with_gtk_prefix"
12545 gtk_config_prefix="$withval"
12546else
12547 gtk_config_prefix=""
12548fi
12549
12550# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12551if test "${with_gtk_exec_prefix+set}" = set; then
12552 withval="$with_gtk_exec_prefix"
12553 gtk_config_exec_prefix="$withval"
12554else
12555 gtk_config_exec_prefix=""
12556fi
12557
12558# Check whether --enable-gtktest or --disable-gtktest was given.
12559if test "${enable_gtktest+set}" = set; then
12560 enableval="$enable_gtktest"
12561 :
12562else
12563 enable_gtktest=yes
12564fi
12565
12566
12567 for module in . $GTK_MODULES
12568 do
12569 case "$module" in
12570 gthread)
12571 gtk_config_args="$gtk_config_args gthread"
12572 ;;
12573 esac
12574 done
12575
12576 if test x$gtk_config_exec_prefix != x ; then
12577 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12578 if test x${GTK_CONFIG+set} != xset ; then
12579 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12580 fi
12581 fi
12582 if test x$gtk_config_prefix != x ; then
12583 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12584 if test x${GTK_CONFIG+set} != xset ; then
12585 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12586 fi
12587 fi
12588
12589 # Extract the first word of "gtk-config", so it can be a program name with args.
12590set dummy gtk-config; ac_word=$2
12591echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12592echo "configure:12593: checking for $ac_word" >&5
12593if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12594 echo $ac_n "(cached) $ac_c" 1>&6
12595else
12596 case "$GTK_CONFIG" in
12597 /*)
12598 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12599 ;;
12600 ?:/*)
12601 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12602 ;;
12603 *)
12604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12605 ac_dummy="$PATH"
12606 for ac_dir in $ac_dummy; do
12607 test -z "$ac_dir" && ac_dir=.
12608 if test -f $ac_dir/$ac_word; then
12609 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12610 break
12611 fi
12612 done
12613 IFS="$ac_save_ifs"
12614 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12615 ;;
12616esac
12617fi
12618GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12619if test -n "$GTK_CONFIG"; then
12620 echo "$ac_t""$GTK_CONFIG" 1>&6
12621else
12622 echo "$ac_t""no" 1>&6
12623fi
12624
12625 min_gtk_version=1.2.7
12626 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12627echo "configure:12628: checking for GTK - version >= $min_gtk_version" >&5
12628 no_gtk=""
12629 if test "$GTK_CONFIG" = "no" ; then
12630 no_gtk=yes
12631 else
12632 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12633 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12634 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12635 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12636 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12637 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12638 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12639 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12640 if test "x$enable_gtktest" = "xyes" ; then
12641 ac_save_CFLAGS="$CFLAGS"
12642 ac_save_LIBS="$LIBS"
12643 CFLAGS="$CFLAGS $GTK_CFLAGS"
12644 LIBS="$GTK_LIBS $LIBS"
12645 rm -f conf.gtktest
12646 if test "$cross_compiling" = yes; then
12647 echo $ac_n "cross compiling; assumed OK... $ac_c"
12648else
12649 cat > conftest.$ac_ext <<EOF
12650#line 12651 "configure"
12651#include "confdefs.h"
12652
12653#include <gtk/gtk.h>
12654#include <stdio.h>
12655#include <stdlib.h>
12656
12657int
12658main ()
12659{
12660 int major, minor, micro;
12661 char *tmp_version;
12662
12663 system ("touch conf.gtktest");
12664
12665 /* HP/UX 9 (%@#!) writes to sscanf strings */
12666 tmp_version = g_strdup("$min_gtk_version");
12667 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12668 printf("%s, bad version string\n", "$min_gtk_version");
12669 exit(1);
12670 }
12671
12672 if ((gtk_major_version != $gtk_config_major_version) ||
12673 (gtk_minor_version != $gtk_config_minor_version) ||
12674 (gtk_micro_version != $gtk_config_micro_version))
12675 {
12676 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12677 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12678 gtk_major_version, gtk_minor_version, gtk_micro_version);
12679 printf ("*** was found! If gtk-config was correct, then it is best\n");
12680 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12681 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12682 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12683 printf("*** required on your system.\n");
12684 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12685 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12686 printf("*** before re-running configure\n");
12687 }
12688#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12689 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12690 (gtk_minor_version != GTK_MINOR_VERSION) ||
12691 (gtk_micro_version != GTK_MICRO_VERSION))
12692 {
12693 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12694 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12695 printf("*** library (version %d.%d.%d)\n",
12696 gtk_major_version, gtk_minor_version, gtk_micro_version);
12697 }
12698#endif /* defined (GTK_MAJOR_VERSION) ... */
12699 else
12700 {
12701 if ((gtk_major_version > major) ||
12702 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12703 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12704 {
12705 return 0;
12706 }
12707 else
12708 {
12709 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12710 gtk_major_version, gtk_minor_version, gtk_micro_version);
12711 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12712 major, minor, micro);
12713 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12714 printf("***\n");
12715 printf("*** If you have already installed a sufficiently new version, this error\n");
12716 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12717 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12718 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12719 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12720 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12721 printf("*** so that the correct libraries are found at run-time))\n");
12722 }
12723 }
12724 return 1;
12725}
12726
12727EOF
12728if { (eval echo configure:12729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12729then
12730 :
12731else
12732 echo "configure: failed program was:" >&5
12733 cat conftest.$ac_ext >&5
12734 rm -fr conftest*
12735 no_gtk=yes
12736fi
12737rm -fr conftest*
12738fi
12739
12740 CFLAGS="$ac_save_CFLAGS"
12741 LIBS="$ac_save_LIBS"
12742 fi
12743 fi
12744 if test "x$no_gtk" = x ; then
12745 echo "$ac_t""yes" 1>&6
12746 wx_cv_lib_gtk=1.2.7
12747 else
12748 echo "$ac_t""no" 1>&6
12749 if test "$GTK_CONFIG" = "no" ; then
12750 echo "*** The gtk-config script installed by GTK could not be found"
12751 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12752 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12753 echo "*** full path to gtk-config."
12754 else
12755 if test -f conf.gtktest ; then
12756 :
12757 else
12758 echo "*** Could not run GTK test program, checking why..."
12759 CFLAGS="$CFLAGS $GTK_CFLAGS"
12760 LIBS="$LIBS $GTK_LIBS"
12761 cat > conftest.$ac_ext <<EOF
12762#line 12763 "configure"
12763#include "confdefs.h"
12764
12765#include <gtk/gtk.h>
12766#include <stdio.h>
12767
12768int main() {
12769 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12770; return 0; }
12771EOF
12772if { (eval echo configure:12773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12773 rm -rf conftest*
12774 echo "*** The test program compiled, but did not run. This usually means"
12775 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12776 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12777 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12778 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12779 echo "*** is required on your system"
12780 echo "***"
12781 echo "*** If you have an old version installed, it is best to remove it, although"
12782 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12783 echo "***"
12784 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12785 echo "*** came with the system with the command"
12786 echo "***"
12787 echo "*** rpm --erase --nodeps gtk gtk-devel"
12788else
12789 echo "configure: failed program was:" >&5
12790 cat conftest.$ac_ext >&5
12791 rm -rf conftest*
12792 echo "*** The test program failed to compile or link. See the file config.log for the"
12793 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12794 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12795 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12796fi
12797rm -f conftest*
12798 CFLAGS="$ac_save_CFLAGS"
12799 LIBS="$ac_save_LIBS"
12800 fi
12801 fi
12802 GTK_CFLAGS=""
12803 GTK_LIBS=""
12804 :
12805 fi
12806
12807
12808 rm -f conf.gtktest
12809
12810
12811 if test -z "$wx_cv_lib_gtk"; then
12812 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12813if test "${with_gtk_prefix+set}" = set; then
12814 withval="$with_gtk_prefix"
12815 gtk_config_prefix="$withval"
12816else
12817 gtk_config_prefix=""
12818fi
12819
12820# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12821if test "${with_gtk_exec_prefix+set}" = set; then
12822 withval="$with_gtk_exec_prefix"
12823 gtk_config_exec_prefix="$withval"
12824else
12825 gtk_config_exec_prefix=""
12826fi
12827
12828# Check whether --enable-gtktest or --disable-gtktest was given.
12829if test "${enable_gtktest+set}" = set; then
12830 enableval="$enable_gtktest"
12831 :
12832else
12833 enable_gtktest=yes
12834fi
12835
12836
12837 for module in . $GTK_MODULES
12838 do
12839 case "$module" in
12840 gthread)
12841 gtk_config_args="$gtk_config_args gthread"
12842 ;;
12843 esac
12844 done
12845
12846 if test x$gtk_config_exec_prefix != x ; then
12847 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12848 if test x${GTK_CONFIG+set} != xset ; then
12849 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12850 fi
12851 fi
12852 if test x$gtk_config_prefix != x ; then
12853 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12854 if test x${GTK_CONFIG+set} != xset ; then
12855 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12856 fi
12857 fi
12858
12859 # Extract the first word of "gtk-config", so it can be a program name with args.
12860set dummy gtk-config; ac_word=$2
12861echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12862echo "configure:12863: checking for $ac_word" >&5
12863if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12864 echo $ac_n "(cached) $ac_c" 1>&6
12865else
12866 case "$GTK_CONFIG" in
12867 /*)
12868 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12869 ;;
12870 ?:/*)
12871 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12872 ;;
12873 *)
12874 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12875 ac_dummy="$PATH"
12876 for ac_dir in $ac_dummy; do
12877 test -z "$ac_dir" && ac_dir=.
12878 if test -f $ac_dir/$ac_word; then
12879 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12880 break
12881 fi
12882 done
12883 IFS="$ac_save_ifs"
12884 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12885 ;;
12886esac
12887fi
12888GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12889if test -n "$GTK_CONFIG"; then
12890 echo "$ac_t""$GTK_CONFIG" 1>&6
12891else
12892 echo "$ac_t""no" 1>&6
12893fi
12894
12895 min_gtk_version=1.2.3
12896 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12897echo "configure:12898: checking for GTK - version >= $min_gtk_version" >&5
12898 no_gtk=""
12899 if test "$GTK_CONFIG" = "no" ; then
12900 no_gtk=yes
12901 else
12902 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12903 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12904 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12905 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12906 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12907 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12908 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12909 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12910 if test "x$enable_gtktest" = "xyes" ; then
12911 ac_save_CFLAGS="$CFLAGS"
12912 ac_save_LIBS="$LIBS"
12913 CFLAGS="$CFLAGS $GTK_CFLAGS"
12914 LIBS="$GTK_LIBS $LIBS"
12915 rm -f conf.gtktest
12916 if test "$cross_compiling" = yes; then
12917 echo $ac_n "cross compiling; assumed OK... $ac_c"
12918else
12919 cat > conftest.$ac_ext <<EOF
12920#line 12921 "configure"
12921#include "confdefs.h"
12922
12923#include <gtk/gtk.h>
12924#include <stdio.h>
12925#include <stdlib.h>
12926
12927int
12928main ()
12929{
12930 int major, minor, micro;
12931 char *tmp_version;
12932
12933 system ("touch conf.gtktest");
12934
12935 /* HP/UX 9 (%@#!) writes to sscanf strings */
12936 tmp_version = g_strdup("$min_gtk_version");
12937 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12938 printf("%s, bad version string\n", "$min_gtk_version");
12939 exit(1);
12940 }
12941
12942 if ((gtk_major_version != $gtk_config_major_version) ||
12943 (gtk_minor_version != $gtk_config_minor_version) ||
12944 (gtk_micro_version != $gtk_config_micro_version))
12945 {
12946 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12947 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12948 gtk_major_version, gtk_minor_version, gtk_micro_version);
12949 printf ("*** was found! If gtk-config was correct, then it is best\n");
12950 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12951 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12952 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12953 printf("*** required on your system.\n");
12954 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12955 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12956 printf("*** before re-running configure\n");
12957 }
12958#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12959 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12960 (gtk_minor_version != GTK_MINOR_VERSION) ||
12961 (gtk_micro_version != GTK_MICRO_VERSION))
12962 {
12963 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12964 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12965 printf("*** library (version %d.%d.%d)\n",
12966 gtk_major_version, gtk_minor_version, gtk_micro_version);
12967 }
12968#endif /* defined (GTK_MAJOR_VERSION) ... */
12969 else
12970 {
12971 if ((gtk_major_version > major) ||
12972 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12973 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12974 {
12975 return 0;
12976 }
12977 else
12978 {
12979 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12980 gtk_major_version, gtk_minor_version, gtk_micro_version);
12981 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12982 major, minor, micro);
12983 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12984 printf("***\n");
12985 printf("*** If you have already installed a sufficiently new version, this error\n");
12986 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12987 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12988 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12989 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12990 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12991 printf("*** so that the correct libraries are found at run-time))\n");
12992 }
12993 }
12994 return 1;
12995}
12996
12997EOF
12998if { (eval echo configure:12999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12999then
13000 :
13001else
13002 echo "configure: failed program was:" >&5
13003 cat conftest.$ac_ext >&5
13004 rm -fr conftest*
13005 no_gtk=yes
13006fi
13007rm -fr conftest*
13008fi
13009
13010 CFLAGS="$ac_save_CFLAGS"
13011 LIBS="$ac_save_LIBS"
13012 fi
13013 fi
13014 if test "x$no_gtk" = x ; then
13015 echo "$ac_t""yes" 1>&6
13016 wx_cv_lib_gtk=1.2.3
13017 else
13018 echo "$ac_t""no" 1>&6
13019 if test "$GTK_CONFIG" = "no" ; then
13020 echo "*** The gtk-config script installed by GTK could not be found"
13021 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13022 echo "*** your path, or set the GTK_CONFIG environment variable to the"
13023 echo "*** full path to gtk-config."
13024 else
13025 if test -f conf.gtktest ; then
13026 :
13027 else
13028 echo "*** Could not run GTK test program, checking why..."
13029 CFLAGS="$CFLAGS $GTK_CFLAGS"
13030 LIBS="$LIBS $GTK_LIBS"
13031 cat > conftest.$ac_ext <<EOF
13032#line 13033 "configure"
13033#include "confdefs.h"
13034
13035#include <gtk/gtk.h>
13036#include <stdio.h>
13037
13038int main() {
13039 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13040; return 0; }
13041EOF
13042if { (eval echo configure:13043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13043 rm -rf conftest*
13044 echo "*** The test program compiled, but did not run. This usually means"
13045 echo "*** that the run-time linker is not finding GTK or finding the wrong"
13046 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13047 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13048 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13049 echo "*** is required on your system"
13050 echo "***"
13051 echo "*** If you have an old version installed, it is best to remove it, although"
13052 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13053 echo "***"
13054 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13055 echo "*** came with the system with the command"
13056 echo "***"
13057 echo "*** rpm --erase --nodeps gtk gtk-devel"
13058else
13059 echo "configure: failed program was:" >&5
13060 cat conftest.$ac_ext >&5
13061 rm -rf conftest*
13062 echo "*** The test program failed to compile or link. See the file config.log for the"
13063 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13064 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
13065 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
13066fi
13067rm -f conftest*
13068 CFLAGS="$ac_save_CFLAGS"
13069 LIBS="$ac_save_LIBS"
13070 fi
13071 fi
13072 GTK_CFLAGS=""
13073 GTK_LIBS=""
13074 :
13075 fi
13076
13077
13078 rm -f conf.gtktest
13079
13080 fi
13081 fi
13082
13083 if test -z "$wx_cv_lib_gtk"; then
13084 wx_cv_lib_gtk=none
13085 else
13086 wx_cv_cflags_gtk=$GTK_CFLAGS
13087 wx_cv_libs_gtk=$GTK_LIBS
13088 fi
13089
13090
13091fi
13092
13093
13094 if test "$gtk_version_cached" = 1; then
13095 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
13096 fi
13097
13098 case "$wx_cv_lib_gtk" in
13099 2.0) WXGTK20=1
13100 TOOLKIT_VERSION=2
13101 ;;
13102 1.2.7) WXGTK127=1
13103 WXGTK12=1
13104 ;;
13105 1.2.3) WXGTK12=1
13106 ;;
13107 *) { echo "configure: error:
13108Please check that gtk-config is in path, the directory
13109where GTK+ libraries are installed (returned by
13110'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13111equivalent variable and GTK+ is version 1.2.3 or above.
13112 " 1>&2; exit 1; }
13113 ;;
13114 esac
13115
13116 if test "$WXGTK20" = 1; then
13117 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13118
13119 succeeded=no
13120
13121 if test -z "$PKG_CONFIG"; then
13122 # Extract the first word of "pkg-config", so it can be a program name with args.
13123set dummy pkg-config; ac_word=$2
13124echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13125echo "configure:13126: checking for $ac_word" >&5
13126if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13127 echo $ac_n "(cached) $ac_c" 1>&6
13128else
13129 case "$PKG_CONFIG" in
13130 /*)
13131 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13132 ;;
13133 ?:/*)
13134 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13135 ;;
13136 *)
13137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13138 ac_dummy="$PATH"
13139 for ac_dir in $ac_dummy; do
13140 test -z "$ac_dir" && ac_dir=.
13141 if test -f $ac_dir/$ac_word; then
13142 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13143 break
13144 fi
13145 done
13146 IFS="$ac_save_ifs"
13147 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13148 ;;
13149esac
13150fi
13151PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13152if test -n "$PKG_CONFIG"; then
13153 echo "$ac_t""$PKG_CONFIG" 1>&6
13154else
13155 echo "$ac_t""no" 1>&6
13156fi
13157
13158 fi
13159
13160 if test "$PKG_CONFIG" = "no" ; then
13161 echo "*** The pkg-config script could not be found. Make sure it is"
13162 echo "*** in your path, or set the PKG_CONFIG environment variable"
13163 echo "*** to the full path to pkg-config."
13164 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13165 else
13166 PKG_CONFIG_MIN_VERSION=0.9.0
13167 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13168 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
13169echo "configure:13170: checking for pangoft2" >&5
13170
13171 if $PKG_CONFIG --exists "pangoft2" ; then
13172 echo "$ac_t""yes" 1>&6
13173 succeeded=yes
13174
13175 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
13176echo "configure:13177: checking PANGOFT2_CFLAGS" >&5
13177 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
13178 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
13179
13180 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
13181echo "configure:13182: checking PANGOFT2_LIBS" >&5
13182 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
13183 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
13184 else
13185 PANGOFT2_CFLAGS=""
13186 PANGOFT2_LIBS=""
13187 ## If we have a custom action on failure, don't print errors, but
13188 ## do set a variable so people can do so.
13189 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
13190
13191 fi
13192
13193
13194
13195 else
13196 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13197 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13198 fi
13199 fi
13200
13201 if test $succeeded = yes; then
13202
13203 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13204 LIBS="$LIBS $PANGOFT2_LIBS"
13205
13206 else
13207
13208 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
13209 wxUSE_PRINTING_ARCHITECTURE="no"
13210
13211
13212 fi
13213
13214 fi
13215 else
13216 if test "$wxUSE_UNICODE" = "yes"; then
13217 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13218 wxUSE_UNICODE=no
13219 fi
13220 fi
13221
13222 if test "$USE_DARWIN" != 1; then
13223 for ac_func in poll
13224do
13225echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13226echo "configure:13227: checking for $ac_func" >&5
13227if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13228 echo $ac_n "(cached) $ac_c" 1>&6
13229else
13230 cat > conftest.$ac_ext <<EOF
13231#line 13232 "configure"
13232#include "confdefs.h"
13233/* System header to define __stub macros and hopefully few prototypes,
13234 which can conflict with char $ac_func(); below. */
13235#include <assert.h>
13236/* Override any gcc2 internal prototype to avoid an error. */
13237/* We use char because int might match the return type of a gcc2
13238 builtin and then its argument prototype would still apply. */
13239char $ac_func();
13240
13241int main() {
13242
13243/* The GNU C library defines this for functions which it implements
13244 to always fail with ENOSYS. Some functions are actually named
13245 something starting with __ and the normal name is an alias. */
13246#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13247choke me
13248#else
13249$ac_func();
13250#endif
13251
13252; return 0; }
13253EOF
13254if { (eval echo configure:13255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13255 rm -rf conftest*
13256 eval "ac_cv_func_$ac_func=yes"
13257else
13258 echo "configure: failed program was:" >&5
13259 cat conftest.$ac_ext >&5
13260 rm -rf conftest*
13261 eval "ac_cv_func_$ac_func=no"
13262fi
13263rm -f conftest*
13264fi
13265
13266if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13267 echo "$ac_t""yes" 1>&6
13268 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13269 cat >> confdefs.h <<EOF
13270#define $ac_tr_func 1
13271EOF
13272
13273else
13274 echo "$ac_t""no" 1>&6
13275fi
13276done
13277
13278 fi
13279
13280 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13281 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13282
13283 AFMINSTALL=afminstall
13284 TOOLKIT=GTK
13285 GUIDIST=GTK_DIST
13286
13287 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
13288echo "configure:13289: checking for gdk_im_open in -lgdk" >&5
13289ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13290if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13291 echo $ac_n "(cached) $ac_c" 1>&6
13292else
13293 ac_save_LIBS="$LIBS"
13294LIBS="-lgdk $LIBS"
13295cat > conftest.$ac_ext <<EOF
13296#line 13297 "configure"
13297#include "confdefs.h"
13298/* Override any gcc2 internal prototype to avoid an error. */
13299/* We use char because int might match the return type of a gcc2
13300 builtin and then its argument prototype would still apply. */
13301char gdk_im_open();
13302
13303int main() {
13304gdk_im_open()
13305; return 0; }
13306EOF
13307if { (eval echo configure:13308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13308 rm -rf conftest*
13309 eval "ac_cv_lib_$ac_lib_var=yes"
13310else
13311 echo "configure: failed program was:" >&5
13312 cat conftest.$ac_ext >&5
13313 rm -rf conftest*
13314 eval "ac_cv_lib_$ac_lib_var=no"
13315fi
13316rm -f conftest*
13317LIBS="$ac_save_LIBS"
13318
13319fi
13320if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13321 echo "$ac_t""yes" 1>&6
13322 cat >> confdefs.h <<\EOF
13323#define HAVE_XIM 1
13324EOF
13325
13326else
13327 echo "$ac_t""no" 1>&6
13328fi
13329
13330 fi
13331
13332 if test "$wxUSE_MGL" = 1; then
13333 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
13334echo "configure:13335: checking for SciTech MGL library" >&5
13335 if test "x$MGL_ROOT" = x ; then
13336 echo "$ac_t""not found" 1>&6
13337 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
13338 else
13339 echo "$ac_t""$MGL_ROOT" 1>&6
13340 fi
13341
13342 case "${host}" in
13343 *-*-linux* )
13344 mgl_os="linux/gcc/glibc*"
13345 ;;
13346 *-pc-msdosdjgpp )
13347 mgl_os=dos32/dj2
13348 ;;
13349 *)
13350 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
13351 esac
13352
13353 mgl_lib_type=""
13354
13355 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13356 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
13357 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
13358 mgl_lib_type=debug
13359 fi
13360 fi
13361 if test "x$mgl_lib_type" = x ; then
13362 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
13363 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
13364 mgl_lib_type=release
13365 else
13366 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13367 fi
13368 fi
13369
13370 wxUSE_UNIVERSAL="yes"
13371
13372 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13373 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13374
13375 AFMINSTALL=afminstall
13376 TOOLKIT=MGL
13377 GUIDIST=MGL_DIST
13378 fi
13379
13380 if test "$wxUSE_MICROWIN" = 1; then
13381 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
13382echo "configure:13383: checking for MicroWindows" >&5
13383 if test "x$MICROWINDOWS" = x ; then
13384 echo "$ac_t""not found" 1>&6
13385 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
13386 else
13387 echo "$ac_t""$MICROWINDOWS" 1>&6
13388 fi
13389
13390 if test -f $MICROWINDOWS/lib/libmwin.a; then
13391 echo "$ac_t""MicroWindows' libraries found." 1>&6
13392 else
13393 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
13394 fi
13395
13396 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13397 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13398
13399 wxUSE_UNIVERSAL="yes"
13400
13401 AFMINSTALL=afminstall
13402 TOOLKIT=MICROWIN
13403 GUIDIST=MICROWIN_DIST
13404
13405 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
13406 fi
13407
13408 if test "$wxUSE_X11" = 1; then
13409 # If we find X, set shell vars x_includes and x_libraries to the
13410# paths, otherwise set no_x=yes.
13411# Uses ac_ vars as temps to allow command line to override cache and checks.
13412# --without-x overrides everything else, but does not touch the cache.
13413echo $ac_n "checking for X""... $ac_c" 1>&6
13414echo "configure:13415: checking for X" >&5
13415
13416# Check whether --with-x or --without-x was given.
13417if test "${with_x+set}" = set; then
13418 withval="$with_x"
13419 :
13420fi
13421
13422# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13423if test "x$with_x" = xno; then
13424 # The user explicitly disabled X.
13425 have_x=disabled
13426else
13427 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13428 # Both variables are already set.
13429 have_x=yes
13430 else
13431if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13432 echo $ac_n "(cached) $ac_c" 1>&6
13433else
13434 # One or both of the vars are not set, and there is no cached value.
13435ac_x_includes=NO ac_x_libraries=NO
13436rm -fr conftestdir
13437if mkdir conftestdir; then
13438 cd conftestdir
13439 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
13440 cat > Imakefile <<'EOF'
13441acfindx:
13442 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
13443EOF
13444 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13445 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13446 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13447 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13448 for ac_extension in a so sl; do
13449 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
13450 test -f $ac_im_libdir/libX11.$ac_extension; then
13451 ac_im_usrlibdir=$ac_im_libdir; break
13452 fi
13453 done
13454 # Screen out bogus values from the imake configuration. They are
13455 # bogus both because they are the default anyway, and because
13456 # using them would break gcc on systems where it needs fixed includes.
13457 case "$ac_im_incroot" in
13458 /usr/include) ;;
13459 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
13460 esac
13461 case "$ac_im_usrlibdir" in
13462 /usr/lib | /lib) ;;
13463 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
13464 esac
13465 fi
13466 cd ..
13467 rm -fr conftestdir
13468fi
13469
13470if test "$ac_x_includes" = NO; then
13471 # Guess where to find include files, by looking for this one X11 .h file.
13472 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13473
13474 # First, try using that file with no special directory specified.
13475cat > conftest.$ac_ext <<EOF
13476#line 13477 "configure"
13477#include "confdefs.h"
13478#include <$x_direct_test_include>
13479EOF
13480ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13481{ (eval echo configure:13482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13482ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13483if test -z "$ac_err"; then
13484 rm -rf conftest*
13485 # We can compile using X headers with no special include directory.
13486ac_x_includes=
13487else
13488 echo "$ac_err" >&5
13489 echo "configure: failed program was:" >&5
13490 cat conftest.$ac_ext >&5
13491 rm -rf conftest*
13492 # Look for the header file in a standard set of common directories.
13493# Check X11 before X11Rn because it is often a symlink to the current release.
13494 for ac_dir in \
13495 /usr/X11/include \
13496 /usr/X11R6/include \
13497 /usr/X11R5/include \
13498 /usr/X11R4/include \
13499 \
13500 /usr/include/X11 \
13501 /usr/include/X11R6 \
13502 /usr/include/X11R5 \
13503 /usr/include/X11R4 \
13504 \
13505 /usr/local/X11/include \
13506 /usr/local/X11R6/include \
13507 /usr/local/X11R5/include \
13508 /usr/local/X11R4/include \
13509 \
13510 /usr/local/include/X11 \
13511 /usr/local/include/X11R6 \
13512 /usr/local/include/X11R5 \
13513 /usr/local/include/X11R4 \
13514 \
13515 /usr/X386/include \
13516 /usr/x386/include \
13517 /usr/XFree86/include/X11 \
13518 \
13519 /usr/include \
13520 /usr/local/include \
13521 /usr/unsupported/include \
13522 /usr/athena/include \
13523 /usr/local/x11r5/include \
13524 /usr/lpp/Xamples/include \
13525 \
13526 /usr/openwin/include \
13527 /usr/openwin/share/include \
13528 ; \
13529 do
13530 if test -r "$ac_dir/$x_direct_test_include"; then
13531 ac_x_includes=$ac_dir
13532 break
13533 fi
13534 done
13535fi
13536rm -f conftest*
13537fi # $ac_x_includes = NO
13538
13539if test "$ac_x_libraries" = NO; then
13540 # Check for the libraries.
13541
13542 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13543 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13544
13545 # See if we find them without any special options.
13546 # Don't add to $LIBS permanently.
13547 ac_save_LIBS="$LIBS"
13548 LIBS="-l$x_direct_test_library $LIBS"
13549cat > conftest.$ac_ext <<EOF
13550#line 13551 "configure"
13551#include "confdefs.h"
13552
13553int main() {
13554${x_direct_test_function}()
13555; return 0; }
13556EOF
13557if { (eval echo configure:13558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13558 rm -rf conftest*
13559 LIBS="$ac_save_LIBS"
13560# We can link X programs with no special library path.
13561ac_x_libraries=
13562else
13563 echo "configure: failed program was:" >&5
13564 cat conftest.$ac_ext >&5
13565 rm -rf conftest*
13566 LIBS="$ac_save_LIBS"
13567# First see if replacing the include by lib works.
13568# Check X11 before X11Rn because it is often a symlink to the current release.
13569for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13570 /usr/X11/lib \
13571 /usr/X11R6/lib \
13572 /usr/X11R5/lib \
13573 /usr/X11R4/lib \
13574 \
13575 /usr/lib/X11 \
13576 /usr/lib/X11R6 \
13577 /usr/lib/X11R5 \
13578 /usr/lib/X11R4 \
13579 \
13580 /usr/local/X11/lib \
13581 /usr/local/X11R6/lib \
13582 /usr/local/X11R5/lib \
13583 /usr/local/X11R4/lib \
13584 \
13585 /usr/local/lib/X11 \
13586 /usr/local/lib/X11R6 \
13587 /usr/local/lib/X11R5 \
13588 /usr/local/lib/X11R4 \
13589 \
13590 /usr/X386/lib \
13591 /usr/x386/lib \
13592 /usr/XFree86/lib/X11 \
13593 \
13594 /usr/lib \
13595 /usr/local/lib \
13596 /usr/unsupported/lib \
13597 /usr/athena/lib \
13598 /usr/local/x11r5/lib \
13599 /usr/lpp/Xamples/lib \
13600 /lib/usr/lib/X11 \
13601 \
13602 /usr/openwin/lib \
13603 /usr/openwin/share/lib \
13604 ; \
13605do
13606 for ac_extension in a so sl; do
13607 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
13608 ac_x_libraries=$ac_dir
13609 break 2
13610 fi
13611 done
13612done
13613fi
13614rm -f conftest*
13615fi # $ac_x_libraries = NO
13616
13617if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
13618 # Didn't find X anywhere. Cache the known absence of X.
13619 ac_cv_have_x="have_x=no"
13620else
13621 # Record where we found X for the cache.
13622 ac_cv_have_x="have_x=yes \
13623 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
13624fi
13625fi
13626 fi
13627 eval "$ac_cv_have_x"
13628fi # $with_x != no
13629
13630if test "$have_x" != yes; then
13631 echo "$ac_t""$have_x" 1>&6
13632 no_x=yes
13633else
13634 # If each of the values was on the command line, it overrides each guess.
13635 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13636 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13637 # Update the cache value to reflect the command line values.
13638 ac_cv_have_x="have_x=yes \
13639 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
13640 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
13641fi
13642
13643if test "$no_x" = yes; then
13644 # Not all programs may use this symbol, but it does not hurt to define it.
13645 cat >> confdefs.h <<\EOF
13646#define X_DISPLAY_MISSING 1
13647EOF
13648
13649 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13650else
13651 if test -n "$x_includes"; then
13652 X_CFLAGS="$X_CFLAGS -I$x_includes"
13653 fi
13654
13655 # It would also be nice to do this for all -L options, not just this one.
13656 if test -n "$x_libraries"; then
13657 X_LIBS="$X_LIBS -L$x_libraries"
13658 # For Solaris; some versions of Sun CC require a space after -R and
13659 # others require no space. Words are not sufficient . . . .
13660 case "`(uname -sr) 2>/dev/null`" in
13661 "SunOS 5"*)
13662 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13663echo "configure:13664: checking whether -R must be followed by a space" >&5
13664 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13665 cat > conftest.$ac_ext <<EOF
13666#line 13667 "configure"
13667#include "confdefs.h"
13668
13669int main() {
13670
13671; return 0; }
13672EOF
13673if { (eval echo configure:13674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13674 rm -rf conftest*
13675 ac_R_nospace=yes
13676else
13677 echo "configure: failed program was:" >&5
13678 cat conftest.$ac_ext >&5
13679 rm -rf conftest*
13680 ac_R_nospace=no
13681fi
13682rm -f conftest*
13683 if test $ac_R_nospace = yes; then
13684 echo "$ac_t""no" 1>&6
13685 X_LIBS="$X_LIBS -R$x_libraries"
13686 else
13687 LIBS="$ac_xsave_LIBS -R $x_libraries"
13688 cat > conftest.$ac_ext <<EOF
13689#line 13690 "configure"
13690#include "confdefs.h"
13691
13692int main() {
13693
13694; return 0; }
13695EOF
13696if { (eval echo configure:13697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13697 rm -rf conftest*
13698 ac_R_space=yes
13699else
13700 echo "configure: failed program was:" >&5
13701 cat conftest.$ac_ext >&5
13702 rm -rf conftest*
13703 ac_R_space=no
13704fi
13705rm -f conftest*
13706 if test $ac_R_space = yes; then
13707 echo "$ac_t""yes" 1>&6
13708 X_LIBS="$X_LIBS -R $x_libraries"
13709 else
13710 echo "$ac_t""neither works" 1>&6
13711 fi
13712 fi
13713 LIBS="$ac_xsave_LIBS"
13714 esac
13715 fi
13716
13717 # Check for system-dependent libraries X programs must link with.
13718 # Do this before checking for the system-independent R6 libraries
13719 # (-lICE), since we may need -lsocket or whatever for X linking.
13720
13721 if test "$ISC" = yes; then
13722 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13723 else
13724 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13725 # libraries were built with DECnet support. And karl@cs.umb.edu says
13726 # the Alpha needs dnet_stub (dnet does not exist).
13727 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13728echo "configure:13729: checking for dnet_ntoa in -ldnet" >&5
13729ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13730if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13731 echo $ac_n "(cached) $ac_c" 1>&6
13732else
13733 ac_save_LIBS="$LIBS"
13734LIBS="-ldnet $LIBS"
13735cat > conftest.$ac_ext <<EOF
13736#line 13737 "configure"
13737#include "confdefs.h"
13738/* Override any gcc2 internal prototype to avoid an error. */
13739/* We use char because int might match the return type of a gcc2
13740 builtin and then its argument prototype would still apply. */
13741char dnet_ntoa();
13742
13743int main() {
13744dnet_ntoa()
13745; return 0; }
13746EOF
13747if { (eval echo configure:13748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13748 rm -rf conftest*
13749 eval "ac_cv_lib_$ac_lib_var=yes"
13750else
13751 echo "configure: failed program was:" >&5
13752 cat conftest.$ac_ext >&5
13753 rm -rf conftest*
13754 eval "ac_cv_lib_$ac_lib_var=no"
13755fi
13756rm -f conftest*
13757LIBS="$ac_save_LIBS"
13758
13759fi
13760if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13761 echo "$ac_t""yes" 1>&6
13762 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13763else
13764 echo "$ac_t""no" 1>&6
13765fi
13766
13767 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13768 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13769echo "configure:13770: checking for dnet_ntoa in -ldnet_stub" >&5
13770ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13771if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13772 echo $ac_n "(cached) $ac_c" 1>&6
13773else
13774 ac_save_LIBS="$LIBS"
13775LIBS="-ldnet_stub $LIBS"
13776cat > conftest.$ac_ext <<EOF
13777#line 13778 "configure"
13778#include "confdefs.h"
13779/* Override any gcc2 internal prototype to avoid an error. */
13780/* We use char because int might match the return type of a gcc2
13781 builtin and then its argument prototype would still apply. */
13782char dnet_ntoa();
13783
13784int main() {
13785dnet_ntoa()
13786; return 0; }
13787EOF
13788if { (eval echo configure:13789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13789 rm -rf conftest*
13790 eval "ac_cv_lib_$ac_lib_var=yes"
13791else
13792 echo "configure: failed program was:" >&5
13793 cat conftest.$ac_ext >&5
13794 rm -rf conftest*
13795 eval "ac_cv_lib_$ac_lib_var=no"
13796fi
13797rm -f conftest*
13798LIBS="$ac_save_LIBS"
13799
13800fi
13801if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13802 echo "$ac_t""yes" 1>&6
13803 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13804else
13805 echo "$ac_t""no" 1>&6
13806fi
13807
13808 fi
13809
13810 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13811 # to get the SysV transport functions.
13812 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13813 # needs -lnsl.
13814 # The nsl library prevents programs from opening the X display
13815 # on Irix 5.2, according to dickey@clark.net.
13816 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13817echo "configure:13818: checking for gethostbyname" >&5
13818if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13819 echo $ac_n "(cached) $ac_c" 1>&6
13820else
13821 cat > conftest.$ac_ext <<EOF
13822#line 13823 "configure"
13823#include "confdefs.h"
13824/* System header to define __stub macros and hopefully few prototypes,
13825 which can conflict with char gethostbyname(); below. */
13826#include <assert.h>
13827/* Override any gcc2 internal prototype to avoid an error. */
13828/* We use char because int might match the return type of a gcc2
13829 builtin and then its argument prototype would still apply. */
13830char gethostbyname();
13831
13832int main() {
13833
13834/* The GNU C library defines this for functions which it implements
13835 to always fail with ENOSYS. Some functions are actually named
13836 something starting with __ and the normal name is an alias. */
13837#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13838choke me
13839#else
13840gethostbyname();
13841#endif
13842
13843; return 0; }
13844EOF
13845if { (eval echo configure:13846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13846 rm -rf conftest*
13847 eval "ac_cv_func_gethostbyname=yes"
13848else
13849 echo "configure: failed program was:" >&5
13850 cat conftest.$ac_ext >&5
13851 rm -rf conftest*
13852 eval "ac_cv_func_gethostbyname=no"
13853fi
13854rm -f conftest*
13855fi
13856
13857if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13858 echo "$ac_t""yes" 1>&6
13859 :
13860else
13861 echo "$ac_t""no" 1>&6
13862fi
13863
13864 if test $ac_cv_func_gethostbyname = no; then
13865 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13866echo "configure:13867: checking for gethostbyname in -lnsl" >&5
13867ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13868if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13869 echo $ac_n "(cached) $ac_c" 1>&6
13870else
13871 ac_save_LIBS="$LIBS"
13872LIBS="-lnsl $LIBS"
13873cat > conftest.$ac_ext <<EOF
13874#line 13875 "configure"
13875#include "confdefs.h"
13876/* Override any gcc2 internal prototype to avoid an error. */
13877/* We use char because int might match the return type of a gcc2
13878 builtin and then its argument prototype would still apply. */
13879char gethostbyname();
13880
13881int main() {
13882gethostbyname()
13883; return 0; }
13884EOF
13885if { (eval echo configure:13886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13886 rm -rf conftest*
13887 eval "ac_cv_lib_$ac_lib_var=yes"
13888else
13889 echo "configure: failed program was:" >&5
13890 cat conftest.$ac_ext >&5
13891 rm -rf conftest*
13892 eval "ac_cv_lib_$ac_lib_var=no"
13893fi
13894rm -f conftest*
13895LIBS="$ac_save_LIBS"
13896
13897fi
13898if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13899 echo "$ac_t""yes" 1>&6
13900 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13901else
13902 echo "$ac_t""no" 1>&6
13903fi
13904
13905 fi
13906
13907 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13908 # socket/setsockopt and other routines are undefined under SCO ODT
13909 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13910 # on later versions), says simon@lia.di.epfl.ch: it contains
13911 # gethostby* variants that don't use the nameserver (or something).
13912 # -lsocket must be given before -lnsl if both are needed.
13913 # We assume that if connect needs -lnsl, so does gethostbyname.
13914 echo $ac_n "checking for connect""... $ac_c" 1>&6
13915echo "configure:13916: checking for connect" >&5
13916if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13917 echo $ac_n "(cached) $ac_c" 1>&6
13918else
13919 cat > conftest.$ac_ext <<EOF
13920#line 13921 "configure"
13921#include "confdefs.h"
13922/* System header to define __stub macros and hopefully few prototypes,
13923 which can conflict with char connect(); below. */
13924#include <assert.h>
13925/* Override any gcc2 internal prototype to avoid an error. */
13926/* We use char because int might match the return type of a gcc2
13927 builtin and then its argument prototype would still apply. */
13928char connect();
13929
13930int main() {
13931
13932/* The GNU C library defines this for functions which it implements
13933 to always fail with ENOSYS. Some functions are actually named
13934 something starting with __ and the normal name is an alias. */
13935#if defined (__stub_connect) || defined (__stub___connect)
13936choke me
13937#else
13938connect();
13939#endif
13940
13941; return 0; }
13942EOF
13943if { (eval echo configure:13944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13944 rm -rf conftest*
13945 eval "ac_cv_func_connect=yes"
13946else
13947 echo "configure: failed program was:" >&5
13948 cat conftest.$ac_ext >&5
13949 rm -rf conftest*
13950 eval "ac_cv_func_connect=no"
13951fi
13952rm -f conftest*
13953fi
13954
13955if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13956 echo "$ac_t""yes" 1>&6
13957 :
13958else
13959 echo "$ac_t""no" 1>&6
13960fi
13961
13962 if test $ac_cv_func_connect = no; then
13963 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
13964echo "configure:13965: checking for connect in -lsocket" >&5
13965ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13966if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13967 echo $ac_n "(cached) $ac_c" 1>&6
13968else
13969 ac_save_LIBS="$LIBS"
13970LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13971cat > conftest.$ac_ext <<EOF
13972#line 13973 "configure"
13973#include "confdefs.h"
13974/* Override any gcc2 internal prototype to avoid an error. */
13975/* We use char because int might match the return type of a gcc2
13976 builtin and then its argument prototype would still apply. */
13977char connect();
13978
13979int main() {
13980connect()
13981; return 0; }
13982EOF
13983if { (eval echo configure:13984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13984 rm -rf conftest*
13985 eval "ac_cv_lib_$ac_lib_var=yes"
13986else
13987 echo "configure: failed program was:" >&5
13988 cat conftest.$ac_ext >&5
13989 rm -rf conftest*
13990 eval "ac_cv_lib_$ac_lib_var=no"
13991fi
13992rm -f conftest*
13993LIBS="$ac_save_LIBS"
13994
13995fi
13996if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13997 echo "$ac_t""yes" 1>&6
13998 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13999else
14000 echo "$ac_t""no" 1>&6
14001fi
14002
14003 fi
14004
14005 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14006 echo $ac_n "checking for remove""... $ac_c" 1>&6
14007echo "configure:14008: checking for remove" >&5
14008if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14009 echo $ac_n "(cached) $ac_c" 1>&6
14010else
14011 cat > conftest.$ac_ext <<EOF
14012#line 14013 "configure"
14013#include "confdefs.h"
14014/* System header to define __stub macros and hopefully few prototypes,
14015 which can conflict with char remove(); below. */
14016#include <assert.h>
14017/* Override any gcc2 internal prototype to avoid an error. */
14018/* We use char because int might match the return type of a gcc2
14019 builtin and then its argument prototype would still apply. */
14020char remove();
14021
14022int main() {
14023
14024/* The GNU C library defines this for functions which it implements
14025 to always fail with ENOSYS. Some functions are actually named
14026 something starting with __ and the normal name is an alias. */
14027#if defined (__stub_remove) || defined (__stub___remove)
14028choke me
14029#else
14030remove();
14031#endif
14032
14033; return 0; }
14034EOF
14035if { (eval echo configure:14036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14036 rm -rf conftest*
14037 eval "ac_cv_func_remove=yes"
14038else
14039 echo "configure: failed program was:" >&5
14040 cat conftest.$ac_ext >&5
14041 rm -rf conftest*
14042 eval "ac_cv_func_remove=no"
14043fi
14044rm -f conftest*
14045fi
14046
14047if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14048 echo "$ac_t""yes" 1>&6
14049 :
14050else
14051 echo "$ac_t""no" 1>&6
14052fi
14053
14054 if test $ac_cv_func_remove = no; then
14055 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14056echo "configure:14057: checking for remove in -lposix" >&5
14057ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14058if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14059 echo $ac_n "(cached) $ac_c" 1>&6
14060else
14061 ac_save_LIBS="$LIBS"
14062LIBS="-lposix $LIBS"
14063cat > conftest.$ac_ext <<EOF
14064#line 14065 "configure"
14065#include "confdefs.h"
14066/* Override any gcc2 internal prototype to avoid an error. */
14067/* We use char because int might match the return type of a gcc2
14068 builtin and then its argument prototype would still apply. */
14069char remove();
14070
14071int main() {
14072remove()
14073; return 0; }
14074EOF
14075if { (eval echo configure:14076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14076 rm -rf conftest*
14077 eval "ac_cv_lib_$ac_lib_var=yes"
14078else
14079 echo "configure: failed program was:" >&5
14080 cat conftest.$ac_ext >&5
14081 rm -rf conftest*
14082 eval "ac_cv_lib_$ac_lib_var=no"
14083fi
14084rm -f conftest*
14085LIBS="$ac_save_LIBS"
14086
14087fi
14088if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14089 echo "$ac_t""yes" 1>&6
14090 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14091else
14092 echo "$ac_t""no" 1>&6
14093fi
14094
14095 fi
14096
14097 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14098 echo $ac_n "checking for shmat""... $ac_c" 1>&6
14099echo "configure:14100: checking for shmat" >&5
14100if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14101 echo $ac_n "(cached) $ac_c" 1>&6
14102else
14103 cat > conftest.$ac_ext <<EOF
14104#line 14105 "configure"
14105#include "confdefs.h"
14106/* System header to define __stub macros and hopefully few prototypes,
14107 which can conflict with char shmat(); below. */
14108#include <assert.h>
14109/* Override any gcc2 internal prototype to avoid an error. */
14110/* We use char because int might match the return type of a gcc2
14111 builtin and then its argument prototype would still apply. */
14112char shmat();
14113
14114int main() {
14115
14116/* The GNU C library defines this for functions which it implements
14117 to always fail with ENOSYS. Some functions are actually named
14118 something starting with __ and the normal name is an alias. */
14119#if defined (__stub_shmat) || defined (__stub___shmat)
14120choke me
14121#else
14122shmat();
14123#endif
14124
14125; return 0; }
14126EOF
14127if { (eval echo configure:14128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14128 rm -rf conftest*
14129 eval "ac_cv_func_shmat=yes"
14130else
14131 echo "configure: failed program was:" >&5
14132 cat conftest.$ac_ext >&5
14133 rm -rf conftest*
14134 eval "ac_cv_func_shmat=no"
14135fi
14136rm -f conftest*
14137fi
14138
14139if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14140 echo "$ac_t""yes" 1>&6
14141 :
14142else
14143 echo "$ac_t""no" 1>&6
14144fi
14145
14146 if test $ac_cv_func_shmat = no; then
14147 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14148echo "configure:14149: checking for shmat in -lipc" >&5
14149ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14150if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14151 echo $ac_n "(cached) $ac_c" 1>&6
14152else
14153 ac_save_LIBS="$LIBS"
14154LIBS="-lipc $LIBS"
14155cat > conftest.$ac_ext <<EOF
14156#line 14157 "configure"
14157#include "confdefs.h"
14158/* Override any gcc2 internal prototype to avoid an error. */
14159/* We use char because int might match the return type of a gcc2
14160 builtin and then its argument prototype would still apply. */
14161char shmat();
14162
14163int main() {
14164shmat()
14165; return 0; }
14166EOF
14167if { (eval echo configure:14168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14168 rm -rf conftest*
14169 eval "ac_cv_lib_$ac_lib_var=yes"
14170else
14171 echo "configure: failed program was:" >&5
14172 cat conftest.$ac_ext >&5
14173 rm -rf conftest*
14174 eval "ac_cv_lib_$ac_lib_var=no"
14175fi
14176rm -f conftest*
14177LIBS="$ac_save_LIBS"
14178
14179fi
14180if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14181 echo "$ac_t""yes" 1>&6
14182 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14183else
14184 echo "$ac_t""no" 1>&6
14185fi
14186
14187 fi
14188 fi
14189
14190 # Check for libraries that X11R6 Xt/Xaw programs need.
14191 ac_save_LDFLAGS="$LDFLAGS"
14192 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14193 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14194 # check for ICE first), but we must link in the order -lSM -lICE or
14195 # we get undefined symbols. So assume we have SM if we have ICE.
14196 # These have to be linked with before -lX11, unlike the other
14197 # libraries we check for below, so use a different variable.
14198 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14199 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14200echo "configure:14201: checking for IceConnectionNumber in -lICE" >&5
14201ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14202if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14203 echo $ac_n "(cached) $ac_c" 1>&6
14204else
14205 ac_save_LIBS="$LIBS"
14206LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14207cat > conftest.$ac_ext <<EOF
14208#line 14209 "configure"
14209#include "confdefs.h"
14210/* Override any gcc2 internal prototype to avoid an error. */
14211/* We use char because int might match the return type of a gcc2
14212 builtin and then its argument prototype would still apply. */
14213char IceConnectionNumber();
14214
14215int main() {
14216IceConnectionNumber()
14217; return 0; }
14218EOF
14219if { (eval echo configure:14220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14220 rm -rf conftest*
14221 eval "ac_cv_lib_$ac_lib_var=yes"
14222else
14223 echo "configure: failed program was:" >&5
14224 cat conftest.$ac_ext >&5
14225 rm -rf conftest*
14226 eval "ac_cv_lib_$ac_lib_var=no"
14227fi
14228rm -f conftest*
14229LIBS="$ac_save_LIBS"
14230
14231fi
14232if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14233 echo "$ac_t""yes" 1>&6
14234 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14235else
14236 echo "$ac_t""no" 1>&6
14237fi
14238
14239 LDFLAGS="$ac_save_LDFLAGS"
14240
14241fi
14242
14243
14244 if test "$no_x" = "yes"; then
14245 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14246 fi
14247
14248 GUI_TK_LIBRARY="$X_LIBS"
14249 TOOLKIT_INCLUDE="$X_CFLAGS"
14250 AFMINSTALL=afminstall
14251 COMPILED_X_PROGRAM=0
14252
14253 if test "$wxUSE_NANOX" = "yes"; then
14254 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
14255echo "configure:14256: checking for MicroWindows/NanoX distribution" >&5
14256 if test "x$MICROWIN" = x ; then
14257 echo "$ac_t""not found" 1>&6
14258 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
14259 else
14260 echo "$ac_t""$MICROWIN" 1>&6
14261 cat >> confdefs.h <<\EOF
14262#define wxUSE_NANOX 1
14263EOF
14264
14265 fi
14266 fi
14267
14268 xpm_link=
14269 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14270echo "configure:14271: checking for Xpm library" >&5
14271
14272ac_find_libraries=
14273for ac_dir in $SEARCH_LIB /usr/lib;
14274 do
14275 for ac_extension in a so sl dylib; do
14276 if test -f "$ac_dir/libXpm.$ac_extension"; then
14277 ac_find_libraries=$ac_dir
14278 break 2
14279 fi
14280 done
14281 done
14282
14283 if test "$ac_find_libraries" != "" ; then
14284
14285 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14286 result=$?
14287 if test $result = 0; then
14288 ac_path_to_link=""
14289 else
14290 ac_path_to_link=" -L$ac_find_libraries"
14291 fi
14292
14293 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14294 xpm_link=" -lXpm"
14295 cat >> confdefs.h <<\EOF
14296#define wxHAVE_LIB_XPM 1
14297EOF
14298
14299 echo "$ac_t""found at $ac_find_libraries" 1>&6
14300 else
14301 cat > conftest.$ac_ext <<EOF
14302#line 14303 "configure"
14303#include "confdefs.h"
14304
14305 #include <X11/xpm.h>
14306
14307int main() {
14308
14309 int version;
14310 version = XpmLibraryVersion();
14311
14312; return 0; }
14313EOF
14314if { (eval echo configure:14315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14315 rm -rf conftest*
14316
14317 xpm_link=" -lXpm"
14318 cat >> confdefs.h <<\EOF
14319#define wxHAVE_LIB_XPM 1
14320EOF
14321
14322 echo "$ac_t""found in default search path" 1>&6
14323 COMPILED_X_PROGRAM=0
14324
14325else
14326 echo "configure: failed program was:" >&5
14327 cat conftest.$ac_ext >&5
14328 rm -rf conftest*
14329
14330 echo "$ac_t""no" 1>&6
14331 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14332
14333
14334fi
14335rm -f conftest*
14336 fi
14337
14338 if test "$wxUSE_UNICODE" = "yes"; then
14339
14340 succeeded=no
14341
14342 if test -z "$PKG_CONFIG"; then
14343 # Extract the first word of "pkg-config", so it can be a program name with args.
14344set dummy pkg-config; ac_word=$2
14345echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14346echo "configure:14347: checking for $ac_word" >&5
14347if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14348 echo $ac_n "(cached) $ac_c" 1>&6
14349else
14350 case "$PKG_CONFIG" in
14351 /*)
14352 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14353 ;;
14354 ?:/*)
14355 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14356 ;;
14357 *)
14358 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14359 ac_dummy="$PATH"
14360 for ac_dir in $ac_dummy; do
14361 test -z "$ac_dir" && ac_dir=.
14362 if test -f $ac_dir/$ac_word; then
14363 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14364 break
14365 fi
14366 done
14367 IFS="$ac_save_ifs"
14368 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14369 ;;
14370esac
14371fi
14372PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14373if test -n "$PKG_CONFIG"; then
14374 echo "$ac_t""$PKG_CONFIG" 1>&6
14375else
14376 echo "$ac_t""no" 1>&6
14377fi
14378
14379 fi
14380
14381 if test "$PKG_CONFIG" = "no" ; then
14382 echo "*** The pkg-config script could not be found. Make sure it is"
14383 echo "*** in your path, or set the PKG_CONFIG environment variable"
14384 echo "*** to the full path to pkg-config."
14385 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14386 else
14387 PKG_CONFIG_MIN_VERSION=0.9.0
14388 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14389 echo $ac_n "checking for pangox""... $ac_c" 1>&6
14390echo "configure:14391: checking for pangox" >&5
14391
14392 if $PKG_CONFIG --exists "pangox" ; then
14393 echo "$ac_t""yes" 1>&6
14394 succeeded=yes
14395
14396 echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
14397echo "configure:14398: checking PANGOX_CFLAGS" >&5
14398 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14399 echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14400
14401 echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
14402echo "configure:14403: checking PANGOX_LIBS" >&5
14403 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14404 echo "$ac_t""$PANGOX_LIBS" 1>&6
14405 else
14406 PANGOX_CFLAGS=""
14407 PANGOX_LIBS=""
14408 ## If we have a custom action on failure, don't print errors, but
14409 ## do set a variable so people can do so.
14410 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14411
14412 fi
14413
14414
14415
14416 else
14417 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14418 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14419 fi
14420 fi
14421
14422 if test $succeeded = yes; then
14423
14424 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14425 LIBS="$LIBS $PANGOX_LIBS"
14426
14427 else
14428
14429 { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14430
14431
14432 fi
14433
14434
14435 succeeded=no
14436
14437 if test -z "$PKG_CONFIG"; then
14438 # Extract the first word of "pkg-config", so it can be a program name with args.
14439set dummy pkg-config; ac_word=$2
14440echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14441echo "configure:14442: checking for $ac_word" >&5
14442if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14443 echo $ac_n "(cached) $ac_c" 1>&6
14444else
14445 case "$PKG_CONFIG" in
14446 /*)
14447 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14448 ;;
14449 ?:/*)
14450 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14451 ;;
14452 *)
14453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14454 ac_dummy="$PATH"
14455 for ac_dir in $ac_dummy; do
14456 test -z "$ac_dir" && ac_dir=.
14457 if test -f $ac_dir/$ac_word; then
14458 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14459 break
14460 fi
14461 done
14462 IFS="$ac_save_ifs"
14463 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14464 ;;
14465esac
14466fi
14467PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14468if test -n "$PKG_CONFIG"; then
14469 echo "$ac_t""$PKG_CONFIG" 1>&6
14470else
14471 echo "$ac_t""no" 1>&6
14472fi
14473
14474 fi
14475
14476 if test "$PKG_CONFIG" = "no" ; then
14477 echo "*** The pkg-config script could not be found. Make sure it is"
14478 echo "*** in your path, or set the PKG_CONFIG environment variable"
14479 echo "*** to the full path to pkg-config."
14480 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14481 else
14482 PKG_CONFIG_MIN_VERSION=0.9.0
14483 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14484 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
14485echo "configure:14486: checking for pangoft2" >&5
14486
14487 if $PKG_CONFIG --exists "pangoft2" ; then
14488 echo "$ac_t""yes" 1>&6
14489 succeeded=yes
14490
14491 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
14492echo "configure:14493: checking PANGOFT2_CFLAGS" >&5
14493 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14494 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14495
14496 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
14497echo "configure:14498: checking PANGOFT2_LIBS" >&5
14498 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14499 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14500 else
14501 PANGOFT2_CFLAGS=""
14502 PANGOFT2_LIBS=""
14503 ## If we have a custom action on failure, don't print errors, but
14504 ## do set a variable so people can do so.
14505 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14506
14507 fi
14508
14509
14510
14511 else
14512 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14513 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14514 fi
14515 fi
14516
14517 if test $succeeded = yes; then
14518
14519 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14520 LIBS="$LIBS $PANGOFT2_LIBS"
14521
14522 else
14523
14524 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14525 wxUSE_PRINTING_ARCHITECTURE="no"
14526
14527
14528 fi
14529
14530
14531 succeeded=no
14532
14533 if test -z "$PKG_CONFIG"; then
14534 # Extract the first word of "pkg-config", so it can be a program name with args.
14535set dummy pkg-config; ac_word=$2
14536echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14537echo "configure:14538: checking for $ac_word" >&5
14538if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14539 echo $ac_n "(cached) $ac_c" 1>&6
14540else
14541 case "$PKG_CONFIG" in
14542 /*)
14543 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14544 ;;
14545 ?:/*)
14546 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14547 ;;
14548 *)
14549 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14550 ac_dummy="$PATH"
14551 for ac_dir in $ac_dummy; do
14552 test -z "$ac_dir" && ac_dir=.
14553 if test -f $ac_dir/$ac_word; then
14554 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14555 break
14556 fi
14557 done
14558 IFS="$ac_save_ifs"
14559 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14560 ;;
14561esac
14562fi
14563PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14564if test -n "$PKG_CONFIG"; then
14565 echo "$ac_t""$PKG_CONFIG" 1>&6
14566else
14567 echo "$ac_t""no" 1>&6
14568fi
14569
14570 fi
14571
14572 if test "$PKG_CONFIG" = "no" ; then
14573 echo "*** The pkg-config script could not be found. Make sure it is"
14574 echo "*** in your path, or set the PKG_CONFIG environment variable"
14575 echo "*** to the full path to pkg-config."
14576 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14577 else
14578 PKG_CONFIG_MIN_VERSION=0.9.0
14579 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14580 echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
14581echo "configure:14582: checking for pangoxft" >&5
14582
14583 if $PKG_CONFIG --exists "pangoxft" ; then
14584 echo "$ac_t""yes" 1>&6
14585 succeeded=yes
14586
14587 echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
14588echo "configure:14589: checking PANGOXFT_CFLAGS" >&5
14589 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14590 echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14591
14592 echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
14593echo "configure:14594: checking PANGOXFT_LIBS" >&5
14594 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14595 echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14596 else
14597 PANGOXFT_CFLAGS=""
14598 PANGOXFT_LIBS=""
14599 ## If we have a custom action on failure, don't print errors, but
14600 ## do set a variable so people can do so.
14601 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14602
14603 fi
14604
14605
14606
14607 else
14608 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14609 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14610 fi
14611 fi
14612
14613 if test $succeeded = yes; then
14614
14615 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14616 LIBS="$LIBS $PANGOXFT_LIBS"
14617
14618 else
14619
14620 echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14621
14622
14623 fi
14624
14625 fi
14626
14627 wxUSE_UNIVERSAL="yes"
14628
14629 if test "$wxUSE_NANOX" = "yes"; then
14630 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14631 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1"
14632 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14633 else
14634 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14635 fi
14636
14637 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14638 TOOLKIT=X11
14639 GUIDIST=X11_DIST
14640 fi
14641
14642 if test "$wxUSE_WINE" = 1; then
14643 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
14644echo $ac_n "checking for windows.h""... $ac_c" 1>&6
14645echo "configure:14646: checking for windows.h" >&5
14646if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14647 echo $ac_n "(cached) $ac_c" 1>&6
14648else
14649 cat > conftest.$ac_ext <<EOF
14650#line 14651 "configure"
14651#include "confdefs.h"
14652#include <windows.h>
14653EOF
14654ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14655{ (eval echo configure:14656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14656ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14657if test -z "$ac_err"; then
14658 rm -rf conftest*
14659 eval "ac_cv_header_$ac_safe=yes"
14660else
14661 echo "$ac_err" >&5
14662 echo "configure: failed program was:" >&5
14663 cat conftest.$ac_ext >&5
14664 rm -rf conftest*
14665 eval "ac_cv_header_$ac_safe=no"
14666fi
14667rm -f conftest*
14668fi
14669if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14670 echo "$ac_t""yes" 1>&6
14671 :
14672else
14673 echo "$ac_t""no" 1>&6
14674
14675 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
14676
14677fi
14678
14679
14680 xpm_link=
14681 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14682echo "configure:14683: checking for Xpm library" >&5
14683
14684ac_find_libraries=
14685for ac_dir in $SEARCH_LIB /usr/lib;
14686 do
14687 for ac_extension in a so sl dylib; do
14688 if test -f "$ac_dir/libXpm.$ac_extension"; then
14689 ac_find_libraries=$ac_dir
14690 break 2
14691 fi
14692 done
14693 done
14694
14695 if test "$ac_find_libraries" != "" ; then
14696 GUI_TK_LIBRARY="-L$ac_find_libraries"
14697 xpm_link=" -lXpm"
14698 cat >> confdefs.h <<\EOF
14699#define wxHAVE_LIB_XPM 1
14700EOF
14701
14702 echo "$ac_t""found at $ac_find_libraries" 1>&6
14703 else
14704 echo "$ac_t""no" 1>&6
14705 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14706 fi
14707
14708 mesa_link=
14709 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
14710echo "configure:14711: checking for Mesa library" >&5
14711
14712ac_find_libraries=
14713for ac_dir in $SEARCH_LIB /usr/lib;
14714 do
14715 for ac_extension in a so sl dylib; do
14716 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
14717 ac_find_libraries=$ac_dir
14718 break 2
14719 fi
14720 done
14721 done
14722
14723 if test "$ac_find_libraries" != "" ; then
14724 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
14725 mesa_link=" -lMesaGL"
14726 echo "$ac_t""found at $ac_find_libraries" 1>&6
14727 else
14728 mesa_link=""
14729 echo "$ac_t""no" 1>&6
14730 echo "configure: warning: library will be compiled without Mesa support" 1>&2
14731 fi
14732
14733 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
14734 TOOLKIT=MSW
14735 GUIDIST=MSW_DIST
14736 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
14737 fi
14738
14739 if test "$wxUSE_MOTIF" = 1; then
14740 if test "$no_x" = yes; then
14741 # Not all programs may use this symbol, but it does not hurt to define it.
14742 cat >> confdefs.h <<\EOF
14743#define X_DISPLAY_MISSING 1
14744EOF
14745
14746 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14747else
14748 if test -n "$x_includes"; then
14749 X_CFLAGS="$X_CFLAGS -I$x_includes"
14750 fi
14751
14752 # It would also be nice to do this for all -L options, not just this one.
14753 if test -n "$x_libraries"; then
14754 X_LIBS="$X_LIBS -L$x_libraries"
14755 # For Solaris; some versions of Sun CC require a space after -R and
14756 # others require no space. Words are not sufficient . . . .
14757 case "`(uname -sr) 2>/dev/null`" in
14758 "SunOS 5"*)
14759 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
14760echo "configure:14761: checking whether -R must be followed by a space" >&5
14761 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14762 cat > conftest.$ac_ext <<EOF
14763#line 14764 "configure"
14764#include "confdefs.h"
14765
14766int main() {
14767
14768; return 0; }
14769EOF
14770if { (eval echo configure:14771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14771 rm -rf conftest*
14772 ac_R_nospace=yes
14773else
14774 echo "configure: failed program was:" >&5
14775 cat conftest.$ac_ext >&5
14776 rm -rf conftest*
14777 ac_R_nospace=no
14778fi
14779rm -f conftest*
14780 if test $ac_R_nospace = yes; then
14781 echo "$ac_t""no" 1>&6
14782 X_LIBS="$X_LIBS -R$x_libraries"
14783 else
14784 LIBS="$ac_xsave_LIBS -R $x_libraries"
14785 cat > conftest.$ac_ext <<EOF
14786#line 14787 "configure"
14787#include "confdefs.h"
14788
14789int main() {
14790
14791; return 0; }
14792EOF
14793if { (eval echo configure:14794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14794 rm -rf conftest*
14795 ac_R_space=yes
14796else
14797 echo "configure: failed program was:" >&5
14798 cat conftest.$ac_ext >&5
14799 rm -rf conftest*
14800 ac_R_space=no
14801fi
14802rm -f conftest*
14803 if test $ac_R_space = yes; then
14804 echo "$ac_t""yes" 1>&6
14805 X_LIBS="$X_LIBS -R $x_libraries"
14806 else
14807 echo "$ac_t""neither works" 1>&6
14808 fi
14809 fi
14810 LIBS="$ac_xsave_LIBS"
14811 esac
14812 fi
14813
14814 # Check for system-dependent libraries X programs must link with.
14815 # Do this before checking for the system-independent R6 libraries
14816 # (-lICE), since we may need -lsocket or whatever for X linking.
14817
14818 if test "$ISC" = yes; then
14819 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14820 else
14821 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14822 # libraries were built with DECnet support. And karl@cs.umb.edu says
14823 # the Alpha needs dnet_stub (dnet does not exist).
14824 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
14825echo "configure:14826: checking for dnet_ntoa in -ldnet" >&5
14826ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14827if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14828 echo $ac_n "(cached) $ac_c" 1>&6
14829else
14830 ac_save_LIBS="$LIBS"
14831LIBS="-ldnet $LIBS"
14832cat > conftest.$ac_ext <<EOF
14833#line 14834 "configure"
14834#include "confdefs.h"
14835/* Override any gcc2 internal prototype to avoid an error. */
14836/* We use char because int might match the return type of a gcc2
14837 builtin and then its argument prototype would still apply. */
14838char dnet_ntoa();
14839
14840int main() {
14841dnet_ntoa()
14842; return 0; }
14843EOF
14844if { (eval echo configure:14845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14845 rm -rf conftest*
14846 eval "ac_cv_lib_$ac_lib_var=yes"
14847else
14848 echo "configure: failed program was:" >&5
14849 cat conftest.$ac_ext >&5
14850 rm -rf conftest*
14851 eval "ac_cv_lib_$ac_lib_var=no"
14852fi
14853rm -f conftest*
14854LIBS="$ac_save_LIBS"
14855
14856fi
14857if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14858 echo "$ac_t""yes" 1>&6
14859 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14860else
14861 echo "$ac_t""no" 1>&6
14862fi
14863
14864 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14865 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
14866echo "configure:14867: checking for dnet_ntoa in -ldnet_stub" >&5
14867ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14868if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14869 echo $ac_n "(cached) $ac_c" 1>&6
14870else
14871 ac_save_LIBS="$LIBS"
14872LIBS="-ldnet_stub $LIBS"
14873cat > conftest.$ac_ext <<EOF
14874#line 14875 "configure"
14875#include "confdefs.h"
14876/* Override any gcc2 internal prototype to avoid an error. */
14877/* We use char because int might match the return type of a gcc2
14878 builtin and then its argument prototype would still apply. */
14879char dnet_ntoa();
14880
14881int main() {
14882dnet_ntoa()
14883; return 0; }
14884EOF
14885if { (eval echo configure:14886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14886 rm -rf conftest*
14887 eval "ac_cv_lib_$ac_lib_var=yes"
14888else
14889 echo "configure: failed program was:" >&5
14890 cat conftest.$ac_ext >&5
14891 rm -rf conftest*
14892 eval "ac_cv_lib_$ac_lib_var=no"
14893fi
14894rm -f conftest*
14895LIBS="$ac_save_LIBS"
14896
14897fi
14898if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14899 echo "$ac_t""yes" 1>&6
14900 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14901else
14902 echo "$ac_t""no" 1>&6
14903fi
14904
14905 fi
14906
14907 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14908 # to get the SysV transport functions.
14909 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
14910 # needs -lnsl.
14911 # The nsl library prevents programs from opening the X display
14912 # on Irix 5.2, according to dickey@clark.net.
14913 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
14914echo "configure:14915: checking for gethostbyname" >&5
14915if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14916 echo $ac_n "(cached) $ac_c" 1>&6
14917else
14918 cat > conftest.$ac_ext <<EOF
14919#line 14920 "configure"
14920#include "confdefs.h"
14921/* System header to define __stub macros and hopefully few prototypes,
14922 which can conflict with char gethostbyname(); below. */
14923#include <assert.h>
14924/* Override any gcc2 internal prototype to avoid an error. */
14925/* We use char because int might match the return type of a gcc2
14926 builtin and then its argument prototype would still apply. */
14927char gethostbyname();
14928
14929int main() {
14930
14931/* The GNU C library defines this for functions which it implements
14932 to always fail with ENOSYS. Some functions are actually named
14933 something starting with __ and the normal name is an alias. */
14934#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14935choke me
14936#else
14937gethostbyname();
14938#endif
14939
14940; return 0; }
14941EOF
14942if { (eval echo configure:14943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14943 rm -rf conftest*
14944 eval "ac_cv_func_gethostbyname=yes"
14945else
14946 echo "configure: failed program was:" >&5
14947 cat conftest.$ac_ext >&5
14948 rm -rf conftest*
14949 eval "ac_cv_func_gethostbyname=no"
14950fi
14951rm -f conftest*
14952fi
14953
14954if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14955 echo "$ac_t""yes" 1>&6
14956 :
14957else
14958 echo "$ac_t""no" 1>&6
14959fi
14960
14961 if test $ac_cv_func_gethostbyname = no; then
14962 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
14963echo "configure:14964: checking for gethostbyname in -lnsl" >&5
14964ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14965if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14966 echo $ac_n "(cached) $ac_c" 1>&6
14967else
14968 ac_save_LIBS="$LIBS"
14969LIBS="-lnsl $LIBS"
14970cat > conftest.$ac_ext <<EOF
14971#line 14972 "configure"
14972#include "confdefs.h"
14973/* Override any gcc2 internal prototype to avoid an error. */
14974/* We use char because int might match the return type of a gcc2
14975 builtin and then its argument prototype would still apply. */
14976char gethostbyname();
14977
14978int main() {
14979gethostbyname()
14980; return 0; }
14981EOF
14982if { (eval echo configure:14983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14983 rm -rf conftest*
14984 eval "ac_cv_lib_$ac_lib_var=yes"
14985else
14986 echo "configure: failed program was:" >&5
14987 cat conftest.$ac_ext >&5
14988 rm -rf conftest*
14989 eval "ac_cv_lib_$ac_lib_var=no"
14990fi
14991rm -f conftest*
14992LIBS="$ac_save_LIBS"
14993
14994fi
14995if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14996 echo "$ac_t""yes" 1>&6
14997 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14998else
14999 echo "$ac_t""no" 1>&6
15000fi
15001
15002 fi
15003
15004 # lieder@skyler.mavd.honeywell.com says without -lsocket,
15005 # socket/setsockopt and other routines are undefined under SCO ODT
15006 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
15007 # on later versions), says simon@lia.di.epfl.ch: it contains
15008 # gethostby* variants that don't use the nameserver (or something).
15009 # -lsocket must be given before -lnsl if both are needed.
15010 # We assume that if connect needs -lnsl, so does gethostbyname.
15011 echo $ac_n "checking for connect""... $ac_c" 1>&6
15012echo "configure:15013: checking for connect" >&5
15013if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
15014 echo $ac_n "(cached) $ac_c" 1>&6
15015else
15016 cat > conftest.$ac_ext <<EOF
15017#line 15018 "configure"
15018#include "confdefs.h"
15019/* System header to define __stub macros and hopefully few prototypes,
15020 which can conflict with char connect(); below. */
15021#include <assert.h>
15022/* Override any gcc2 internal prototype to avoid an error. */
15023/* We use char because int might match the return type of a gcc2
15024 builtin and then its argument prototype would still apply. */
15025char connect();
15026
15027int main() {
15028
15029/* The GNU C library defines this for functions which it implements
15030 to always fail with ENOSYS. Some functions are actually named
15031 something starting with __ and the normal name is an alias. */
15032#if defined (__stub_connect) || defined (__stub___connect)
15033choke me
15034#else
15035connect();
15036#endif
15037
15038; return 0; }
15039EOF
15040if { (eval echo configure:15041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15041 rm -rf conftest*
15042 eval "ac_cv_func_connect=yes"
15043else
15044 echo "configure: failed program was:" >&5
15045 cat conftest.$ac_ext >&5
15046 rm -rf conftest*
15047 eval "ac_cv_func_connect=no"
15048fi
15049rm -f conftest*
15050fi
15051
15052if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
15053 echo "$ac_t""yes" 1>&6
15054 :
15055else
15056 echo "$ac_t""no" 1>&6
15057fi
15058
15059 if test $ac_cv_func_connect = no; then
15060 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
15061echo "configure:15062: checking for connect in -lsocket" >&5
15062ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
15063if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15064 echo $ac_n "(cached) $ac_c" 1>&6
15065else
15066 ac_save_LIBS="$LIBS"
15067LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
15068cat > conftest.$ac_ext <<EOF
15069#line 15070 "configure"
15070#include "confdefs.h"
15071/* Override any gcc2 internal prototype to avoid an error. */
15072/* We use char because int might match the return type of a gcc2
15073 builtin and then its argument prototype would still apply. */
15074char connect();
15075
15076int main() {
15077connect()
15078; return 0; }
15079EOF
15080if { (eval echo configure:15081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15081 rm -rf conftest*
15082 eval "ac_cv_lib_$ac_lib_var=yes"
15083else
15084 echo "configure: failed program was:" >&5
15085 cat conftest.$ac_ext >&5
15086 rm -rf conftest*
15087 eval "ac_cv_lib_$ac_lib_var=no"
15088fi
15089rm -f conftest*
15090LIBS="$ac_save_LIBS"
15091
15092fi
15093if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15094 echo "$ac_t""yes" 1>&6
15095 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
15096else
15097 echo "$ac_t""no" 1>&6
15098fi
15099
15100 fi
15101
15102 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15103 echo $ac_n "checking for remove""... $ac_c" 1>&6
15104echo "configure:15105: checking for remove" >&5
15105if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15106 echo $ac_n "(cached) $ac_c" 1>&6
15107else
15108 cat > conftest.$ac_ext <<EOF
15109#line 15110 "configure"
15110#include "confdefs.h"
15111/* System header to define __stub macros and hopefully few prototypes,
15112 which can conflict with char remove(); below. */
15113#include <assert.h>
15114/* Override any gcc2 internal prototype to avoid an error. */
15115/* We use char because int might match the return type of a gcc2
15116 builtin and then its argument prototype would still apply. */
15117char remove();
15118
15119int main() {
15120
15121/* The GNU C library defines this for functions which it implements
15122 to always fail with ENOSYS. Some functions are actually named
15123 something starting with __ and the normal name is an alias. */
15124#if defined (__stub_remove) || defined (__stub___remove)
15125choke me
15126#else
15127remove();
15128#endif
15129
15130; return 0; }
15131EOF
15132if { (eval echo configure:15133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15133 rm -rf conftest*
15134 eval "ac_cv_func_remove=yes"
15135else
15136 echo "configure: failed program was:" >&5
15137 cat conftest.$ac_ext >&5
15138 rm -rf conftest*
15139 eval "ac_cv_func_remove=no"
15140fi
15141rm -f conftest*
15142fi
15143
15144if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15145 echo "$ac_t""yes" 1>&6
15146 :
15147else
15148 echo "$ac_t""no" 1>&6
15149fi
15150
15151 if test $ac_cv_func_remove = no; then
15152 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
15153echo "configure:15154: checking for remove in -lposix" >&5
15154ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15155if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15156 echo $ac_n "(cached) $ac_c" 1>&6
15157else
15158 ac_save_LIBS="$LIBS"
15159LIBS="-lposix $LIBS"
15160cat > conftest.$ac_ext <<EOF
15161#line 15162 "configure"
15162#include "confdefs.h"
15163/* Override any gcc2 internal prototype to avoid an error. */
15164/* We use char because int might match the return type of a gcc2
15165 builtin and then its argument prototype would still apply. */
15166char remove();
15167
15168int main() {
15169remove()
15170; return 0; }
15171EOF
15172if { (eval echo configure:15173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15173 rm -rf conftest*
15174 eval "ac_cv_lib_$ac_lib_var=yes"
15175else
15176 echo "configure: failed program was:" >&5
15177 cat conftest.$ac_ext >&5
15178 rm -rf conftest*
15179 eval "ac_cv_lib_$ac_lib_var=no"
15180fi
15181rm -f conftest*
15182LIBS="$ac_save_LIBS"
15183
15184fi
15185if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15186 echo "$ac_t""yes" 1>&6
15187 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
15188else
15189 echo "$ac_t""no" 1>&6
15190fi
15191
15192 fi
15193
15194 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
15195 echo $ac_n "checking for shmat""... $ac_c" 1>&6
15196echo "configure:15197: checking for shmat" >&5
15197if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15198 echo $ac_n "(cached) $ac_c" 1>&6
15199else
15200 cat > conftest.$ac_ext <<EOF
15201#line 15202 "configure"
15202#include "confdefs.h"
15203/* System header to define __stub macros and hopefully few prototypes,
15204 which can conflict with char shmat(); below. */
15205#include <assert.h>
15206/* Override any gcc2 internal prototype to avoid an error. */
15207/* We use char because int might match the return type of a gcc2
15208 builtin and then its argument prototype would still apply. */
15209char shmat();
15210
15211int main() {
15212
15213/* The GNU C library defines this for functions which it implements
15214 to always fail with ENOSYS. Some functions are actually named
15215 something starting with __ and the normal name is an alias. */
15216#if defined (__stub_shmat) || defined (__stub___shmat)
15217choke me
15218#else
15219shmat();
15220#endif
15221
15222; return 0; }
15223EOF
15224if { (eval echo configure:15225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15225 rm -rf conftest*
15226 eval "ac_cv_func_shmat=yes"
15227else
15228 echo "configure: failed program was:" >&5
15229 cat conftest.$ac_ext >&5
15230 rm -rf conftest*
15231 eval "ac_cv_func_shmat=no"
15232fi
15233rm -f conftest*
15234fi
15235
15236if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15237 echo "$ac_t""yes" 1>&6
15238 :
15239else
15240 echo "$ac_t""no" 1>&6
15241fi
15242
15243 if test $ac_cv_func_shmat = no; then
15244 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
15245echo "configure:15246: checking for shmat in -lipc" >&5
15246ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15247if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15248 echo $ac_n "(cached) $ac_c" 1>&6
15249else
15250 ac_save_LIBS="$LIBS"
15251LIBS="-lipc $LIBS"
15252cat > conftest.$ac_ext <<EOF
15253#line 15254 "configure"
15254#include "confdefs.h"
15255/* Override any gcc2 internal prototype to avoid an error. */
15256/* We use char because int might match the return type of a gcc2
15257 builtin and then its argument prototype would still apply. */
15258char shmat();
15259
15260int main() {
15261shmat()
15262; return 0; }
15263EOF
15264if { (eval echo configure:15265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15265 rm -rf conftest*
15266 eval "ac_cv_lib_$ac_lib_var=yes"
15267else
15268 echo "configure: failed program was:" >&5
15269 cat conftest.$ac_ext >&5
15270 rm -rf conftest*
15271 eval "ac_cv_lib_$ac_lib_var=no"
15272fi
15273rm -f conftest*
15274LIBS="$ac_save_LIBS"
15275
15276fi
15277if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15278 echo "$ac_t""yes" 1>&6
15279 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
15280else
15281 echo "$ac_t""no" 1>&6
15282fi
15283
15284 fi
15285 fi
15286
15287 # Check for libraries that X11R6 Xt/Xaw programs need.
15288 ac_save_LDFLAGS="$LDFLAGS"
15289 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15290 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15291 # check for ICE first), but we must link in the order -lSM -lICE or
15292 # we get undefined symbols. So assume we have SM if we have ICE.
15293 # These have to be linked with before -lX11, unlike the other
15294 # libraries we check for below, so use a different variable.
15295 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15296 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
15297echo "configure:15298: checking for IceConnectionNumber in -lICE" >&5
15298ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15299if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15300 echo $ac_n "(cached) $ac_c" 1>&6
15301else
15302 ac_save_LIBS="$LIBS"
15303LIBS="-lICE $X_EXTRA_LIBS $LIBS"
15304cat > conftest.$ac_ext <<EOF
15305#line 15306 "configure"
15306#include "confdefs.h"
15307/* Override any gcc2 internal prototype to avoid an error. */
15308/* We use char because int might match the return type of a gcc2
15309 builtin and then its argument prototype would still apply. */
15310char IceConnectionNumber();
15311
15312int main() {
15313IceConnectionNumber()
15314; return 0; }
15315EOF
15316if { (eval echo configure:15317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15317 rm -rf conftest*
15318 eval "ac_cv_lib_$ac_lib_var=yes"
15319else
15320 echo "configure: failed program was:" >&5
15321 cat conftest.$ac_ext >&5
15322 rm -rf conftest*
15323 eval "ac_cv_lib_$ac_lib_var=no"
15324fi
15325rm -f conftest*
15326LIBS="$ac_save_LIBS"
15327
15328fi
15329if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15330 echo "$ac_t""yes" 1>&6
15331 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
15332else
15333 echo "$ac_t""no" 1>&6
15334fi
15335
15336 LDFLAGS="$ac_save_LDFLAGS"
15337
15338fi
15339
15340
15341 if test "$no_x" = "yes"; then
15342 { echo "configure: error: X11 not found" 1>&2; exit 1; }
15343 fi
15344
15345 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15346 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
15347 AFMINSTALL=afminstall
15348 COMPILED_X_PROGRAM=0
15349
15350 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
15351echo "configure:15352: checking for Motif/Lesstif headers" >&5
15352
15353ac_find_includes=
15354for ac_dir in $SEARCH_INCLUDE /usr/include;
15355 do
15356 if test -f "$ac_dir/Xm/Xm.h"; then
15357 ac_find_includes=$ac_dir
15358 break
15359 fi
15360 done
15361
15362 if test "$ac_find_includes" != "" ; then
15363 echo "$ac_t""found in $ac_find_includes" 1>&6
15364
15365 if test "x$ac_find_includes" = "x/usr/include"; then
15366 ac_path_to_include=""
15367 else
15368 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15369 result=$?
15370 if test $result = 0; then
15371 ac_path_to_include=""
15372 else
15373 ac_path_to_include=" -I$ac_find_includes"
15374 fi
15375 fi
15376
15377 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
15378 else
15379 cat > conftest.$ac_ext <<EOF
15380#line 15381 "configure"
15381#include "confdefs.h"
15382
15383 #include <Xm/Xm.h>
15384
15385int main() {
15386
15387 int version;
15388 version = xmUseVersion;
15389
15390; return 0; }
15391EOF
15392if { (eval echo configure:15393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15393 rm -rf conftest*
15394
15395 echo "$ac_t""found in default search path" 1>&6
15396 COMPILED_X_PROGRAM=1
15397
15398else
15399 echo "configure: failed program was:" >&5
15400 cat conftest.$ac_ext >&5
15401 rm -rf conftest*
15402
15403 echo "$ac_t""no" 1>&6
15404 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15405
15406
15407fi
15408rm -f conftest*
15409 fi
15410
15411 if test "$COMPILED_X_PROGRAM" = 0; then
15412 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
15413echo "configure:15414: checking for Motif/Lesstif library" >&5
15414
15415ac_find_libraries=
15416for ac_dir in $SEARCH_LIB /usr/lib;
15417 do
15418 for ac_extension in a so sl dylib; do
15419 if test -f "$ac_dir/libXm.$ac_extension"; then
15420 ac_find_libraries=$ac_dir
15421 break 2
15422 fi
15423 done
15424 done
15425
15426 if test "$ac_find_libraries" != "" ; then
15427 echo "$ac_t""found at $ac_find_libraries" 1>&6
15428
15429
15430 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15431 result=$?
15432 if test $result = 0; then
15433 ac_path_to_link=""
15434 else
15435 ac_path_to_link=" -L$ac_find_libraries"
15436 fi
15437
15438 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15439 else
15440 save_CFLAGS=$CFLAGS
15441 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15442
15443 cat > conftest.$ac_ext <<EOF
15444#line 15445 "configure"
15445#include "confdefs.h"
15446
15447 #include <Xm/Xm.h>
15448
15449int main() {
15450
15451 int version;
15452 version = xmUseVersion;
15453
15454; return 0; }
15455EOF
15456if { (eval echo configure:15457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15457 rm -rf conftest*
15458
15459 echo "$ac_t""found in default search path" 1>&6
15460 COMPILED_X_PROGRAM=1
15461
15462else
15463 echo "configure: failed program was:" >&5
15464 cat conftest.$ac_ext >&5
15465 rm -rf conftest*
15466
15467 echo "$ac_t""no" 1>&6
15468 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15469
15470
15471fi
15472rm -f conftest*
15473
15474 CFLAGS=$save_CFLAGS
15475 fi
15476 fi
15477
15478 xpm_link=
15479 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
15480echo "configure:15481: checking for Xpm library" >&5
15481
15482ac_find_libraries=
15483for ac_dir in $SEARCH_LIB /usr/lib;
15484 do
15485 for ac_extension in a so sl dylib; do
15486 if test -f "$ac_dir/libXpm.$ac_extension"; then
15487 ac_find_libraries=$ac_dir
15488 break 2
15489 fi
15490 done
15491 done
15492
15493 if test "$ac_find_libraries" != "" ; then
15494
15495 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15496 result=$?
15497 if test $result = 0; then
15498 ac_path_to_link=""
15499 else
15500 ac_path_to_link=" -L$ac_find_libraries"
15501 fi
15502
15503 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15504
15505 xpm_link=" -lXpm"
15506 cat >> confdefs.h <<\EOF
15507#define wxHAVE_LIB_XPM 1
15508EOF
15509
15510 echo "$ac_t""found at $ac_find_libraries" 1>&6
15511 else
15512 save_CFLAGS=$CFLAGS
15513 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15514
15515 cat > conftest.$ac_ext <<EOF
15516#line 15517 "configure"
15517#include "confdefs.h"
15518
15519 #include <X11/xpm.h>
15520
15521int main() {
15522
15523 int version;
15524 version = XpmLibraryVersion();
15525
15526; return 0; }
15527EOF
15528if { (eval echo configure:15529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15529 rm -rf conftest*
15530
15531 xpm_link=" -lXpm"
15532 cat >> confdefs.h <<\EOF
15533#define wxHAVE_LIB_XPM 1
15534EOF
15535
15536 echo "$ac_t""found in default search path" 1>&6
15537 COMPILED_X_PROGRAM=0
15538
15539else
15540 echo "configure: failed program was:" >&5
15541 cat conftest.$ac_ext >&5
15542 rm -rf conftest*
15543
15544 echo "$ac_t""no" 1>&6
15545 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15546
15547
15548fi
15549rm -f conftest*
15550
15551 CFLAGS=$save_CFLAGS
15552 fi
15553
15554 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
15555echo "configure:15556: checking if we need -lXp and/or -lSM -lICE" >&5
15556 libp_link=""
15557 libsm_ice_link=""
15558 libs_found=0
15559 for libp in "" " -lXp"; do
15560 if test "$libs_found" = "0"; then
15561 for libsm_ice in " -lSM -lICE"; do
15562 if test "$libs_found" = "0"; then
15563 save_LIBS="$LIBS"
15564 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
15565 save_CFLAGS=$CFLAGS
15566 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15567
15568 cat > conftest.$ac_ext <<EOF
15569#line 15570 "configure"
15570#include "confdefs.h"
15571
15572 #include <Xm/Xm.h>
15573 #include <Xm/List.h>
15574
15575int main() {
15576
15577 XmString string = NULL;
15578 Widget w = NULL;
15579 int position = 0;
15580 XmListAddItem(w, string, position);
15581
15582; return 0; }
15583EOF
15584if { (eval echo configure:15585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15585 rm -rf conftest*
15586
15587 libp_link="$libp"
15588 libsm_ice_link="$libsm_ice"
15589 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
15590 libs_found=1
15591
15592else
15593 echo "configure: failed program was:" >&5
15594 cat conftest.$ac_ext >&5
15595 rm -rf conftest*
15596
15597
15598fi
15599rm -f conftest*
15600
15601 LIBS="$save_LIBS"
15602 CFLAGS=$save_CFLAGS
15603 fi
15604 done
15605 fi
15606 done
15607
15608 if test "$libs_found" = "0"; then
15609 echo "$ac_t""can't find the right libraries" 1>&6
15610 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
15611 fi
15612
15613 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
15614 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
15615 TOOLKIT=MOTIF
15616 GUIDIST=MOTIF_DIST
15617 fi
15618
15619 if test "$wxUSE_MAC" = 1; then
15620 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefile -I/Developer/Headers/FlatCarbon"
15621
15622 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
15623 TOOLKIT=MAC
15624 GUIDIST=MACX_DIST
15625 fi
15626
15627 if test "$wxUSE_PM" = 1; then
15628 TOOLKIT=PM
15629 GUIDIST=GTK_DIST
15630 echo "configure: warning: OS/2 PM requires old resource format, re-enabled" 1>&2
15631 wxUSE_PROLOGIO="yes"
15632 wxUSE_RESOURCES="yes"
15633 echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
15634 wxUSE_THREADS="no"
15635 fi
15636
15637 if test "$TOOLKIT" = "PM" ; then
15638 TOOLKIT_DIR="os2"
15639 else
15640 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15641 fi
15642
15643 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15644
15645 if test "$wxUSE_UNIVERSAL" = "yes"; then
15646 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15647
15648 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15649 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15650
15651 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15652 if test "$wxUSE_X11" = 1; then
15653 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15654 else
15655 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15656 fi
15657 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15658 WIDGET_SET=univ
15659 else
15660 ALL_OBJECTS="\$(GUIOBJS)"
15661 ALL_SOURCES="\$(ALL_SOURCES)"
15662 ALL_HEADERS="\$(ALL_HEADERS)"
15663 fi
15664
15665 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15666
15667 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15668 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15669 fi
15670
15671 if test "$wxUSE_HTML" = "yes"; then
15672 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15673 fi
15674
15675 if test "$wxUSE_LIBJPEG" = "builtin" ; then
15676 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15677 fi
15678 if test "$wxUSE_LIBTIFF" = "builtin" ; then
15679 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15680 fi
15681 if test "$wxUSE_LIBPNG" = "builtin" ; then
15682 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15683 fi
15684
15685 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15686 DISTDIR="wx\$(TOOLKIT)"
15687else
15688 USE_GUI=0
15689
15690 TOOLKIT_DIR="base"
15691
15692 if test "$USE_WIN32" = 1 ; then
15693 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15694 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15695
15696 TOOLKIT="MSW"
15697 else
15698 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15699 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15700 fi
15701
15702 ALL_SOURCES="\$(ALL_SOURCES)"
15703 ALL_HEADERS="\$(ALL_HEADERS)"
15704
15705 PORT_FILES="\${top_srcdir}/src/files.lst"
15706
15707 GUIDIST="BASE_DIST"
15708 DISTDIR="wxBase"
15709fi
15710
15711
15712if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
15713 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
15714fi
15715
15716if test "$wxUSE_REGEX" = "builtin" ; then
15717 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
15718fi
15719if test "$wxUSE_ZLIB" = "builtin" ; then
15720 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
15721fi
15722
15723
15724if test "$wxUSE_OPENGL" = "yes"; then
15725 if test "$wxUSE_MAC" = 1; then
15726 OPENGL_LIBS="-framework OpenGL -framework AGL"
15727 elif test "$wxUSE_MSW" = 1; then
15728 OPENGL_LIBS="-lopengl32 -lglu32"
15729 else
15730 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15731echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15732echo "configure:15733: checking for GL/gl.h" >&5
15733if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15734 echo $ac_n "(cached) $ac_c" 1>&6
15735else
15736 cat > conftest.$ac_ext <<EOF
15737#line 15738 "configure"
15738#include "confdefs.h"
15739#include <GL/gl.h>
15740EOF
15741ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15742{ (eval echo configure:15743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15743ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15744if test -z "$ac_err"; then
15745 rm -rf conftest*
15746 eval "ac_cv_header_$ac_safe=yes"
15747else
15748 echo "$ac_err" >&5
15749 echo "configure: failed program was:" >&5
15750 cat conftest.$ac_ext >&5
15751 rm -rf conftest*
15752 eval "ac_cv_header_$ac_safe=no"
15753fi
15754rm -f conftest*
15755fi
15756if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15757 echo "$ac_t""yes" 1>&6
15758
15759 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
15760echo "configure:15761: checking for -lGL" >&5
15761
15762ac_find_libraries=
15763for ac_dir in $SEARCH_LIB /usr/lib;
15764 do
15765 for ac_extension in a so sl dylib; do
15766 if test -f "$ac_dir/libGL.$ac_extension"; then
15767 ac_find_libraries=$ac_dir
15768 break 2
15769 fi
15770 done
15771 done
15772
15773 if test "$ac_find_libraries" != "" ; then
15774
15775 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15776 result=$?
15777 if test $result = 0; then
15778 ac_path_to_link=""
15779 else
15780 ac_path_to_link=" -L$ac_find_libraries"
15781 fi
15782
15783 if test "$ac_path_to_link" = " -L/usr/lib" ; then
15784 LDFLAGS_GL="$LDFLAGS"
15785 else
15786 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15787 fi
15788 OPENGL_LIBS="-lGL -lGLU"
15789 echo "$ac_t""yes" 1>&6
15790 else
15791 echo "$ac_t""no" 1>&6
15792 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
15793echo "configure:15794: checking for -lMesaGL" >&5
15794
15795ac_find_libraries=
15796for ac_dir in $SEARCH_LIB /usr/lib;
15797 do
15798 for ac_extension in a so sl dylib; do
15799 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
15800 ac_find_libraries=$ac_dir
15801 break 2
15802 fi
15803 done
15804 done
15805
15806 if test "$ac_find_libraries" != "" ; then
15807
15808 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15809 result=$?
15810 if test $result = 0; then
15811 ac_path_to_link=""
15812 else
15813 ac_path_to_link=" -L$ac_find_libraries"
15814 fi
15815
15816 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15817 OPENGL_LIBS="-lMesaGL -lMesaGLU"
15818 echo "$ac_t""yes" 1>&6
15819 else
15820 echo "$ac_t""no" 1>&6
15821 fi
15822 fi
15823
15824else
15825 echo "$ac_t""no" 1>&6
15826fi
15827
15828
15829 if test "x$OPENGL_LIBS" = "x"; then
15830 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
15831 fi
15832 fi
15833
15834 if test "$wxUSE_OPENGL" = "yes"; then
15835 cat >> confdefs.h <<\EOF
15836#define wxUSE_OPENGL 1
15837EOF
15838
15839 cat >> confdefs.h <<\EOF
15840#define wxUSE_GLCANVAS 1
15841EOF
15842
15843 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15844 fi
15845fi
15846
15847if test -z "$TOOLKIT_VPATH" ; then
15848 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
15849fi
15850
15851if test -n "$TOOLKIT" ; then
15852 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
15853fi
15854
15855lib_unicode_suffix=
15856if test "$wxUSE_UNICODE" = "yes"; then
15857 lib_unicode_suffix=u
15858fi
15859
15860lib_debug_suffix=
15861if test "$wxUSE_DEBUG_FLAG" = "yes"; then
15862 lib_debug_suffix=d
15863fi
15864
15865WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
15866
15867TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
15868TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
15869
15870if test "$cross_compiling" = "yes"; then
15871 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
15872 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
15873fi
15874
15875WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
15876WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
15877WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
15878
15879WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15880WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15881
15882WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
15883WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15884WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
15885WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15886
15887case "${host}" in
15888 *-*-cygwin* | *-*-mingw32* )
15889
15890
15891
15892 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
15893 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15894 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15895 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
15896 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
15897 else
15898 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
15899 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15900 fi
15901 ;;
15902
15903 *-*-darwin* )
15904 if test "$wxUSE_MAC" = 1; then
15905 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
15906 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
15907 fi
15908 ;;
15909esac
15910
15911WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
15912WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
15913
15914WXCONFIG_LIBS="-l${WX_LIBRARY}"
15915WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
15916
15917if test "$wxUSE_OPENGL" = "yes"; then
15918 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
15919 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
15920fi
15921
15922
15923
15924if test "$wxUSE_SHARED" = "yes"; then
15925 case "${host}" in
15926 *-pc-os2_emx | *-pc-os2-emx | \
15927 *-pc-msdosdjgpp )
15928 wxUSE_SHARED=no
15929 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
15930 ;;
15931 esac
15932fi
15933
15934if test "$wxUSE_SHARED" = "yes"; then
15935
15936 if test "$wxUSE_OPENGL" = "yes"; then
15937 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
15938 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
15939 else
15940 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
15941 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
15942 fi
15943
15944 if test "$GCC" = "yes"; then
15945 PIC_FLAG="-fPIC"
15946 fi
15947
15948
15949
15950 found_versioning=no
15951
15952
15953 if test $found_versioning = no ; then
15954 echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
15955echo "configure:15956: checking if the linker accepts --version-script" >&5
15956if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
15957 echo $ac_n "(cached) $ac_c" 1>&6
15958else
15959
15960 echo "VER_1 { *; };" >conftest.sym
15961 echo "int main() { return 0; }" >conftest.cpp
15962
15963 if { ac_try='
15964 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
15965 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:15966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
15966 if test -s conftest.stderr ; then
15967 wx_cv_version_script=no
15968 else
15969 wx_cv_version_script=yes
15970 fi
15971 else
15972 wx_cv_version_script=no
15973 fi
15974 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
15975
15976fi
15977
15978echo "$ac_t""$wx_cv_version_script" 1>&6
15979 if test $wx_cv_version_script = yes ; then
15980 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
15981 fi
15982 fi
15983
15984
15985 SHARED_LD="${CXX} -shared -o"
15986
15987 case "${host}" in
15988 *-hp-hpux* )
15989 if test "$GCC" = "yes"; then
15990 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
15991 else
15992 LDFLAGS="$LDFLAGS -L/usr/lib"
15993
15994 SHARED_LD="${CXX} -b -o"
15995 PIC_FLAG="+Z"
15996 fi
15997
15998 if test "$wxUSE_OPENGL" = "yes"; then
15999 WX_ALL_INSTALLED="preinstall_gl"
16000 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
16001 else
16002 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16003 fi
16004 ;;
16005
16006 *-*-linux* )
16007 if test "$GCC" != "yes"; then
16008 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
16009echo "configure:16010: checking for Intel compiler" >&5
16010if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
16011 echo $ac_n "(cached) $ac_c" 1>&6
16012else
16013
16014 cat > conftest.$ac_ext <<EOF
16015#line 16016 "configure"
16016#include "confdefs.h"
16017
16018int main() {
16019
16020 #ifndef __INTEL_COMPILER
16021 #error Not icc
16022 #endif
16023
16024; return 0; }
16025EOF
16026if { (eval echo configure:16027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16027 rm -rf conftest*
16028 wx_cv_prog_icc=yes
16029else
16030 echo "configure: failed program was:" >&5
16031 cat conftest.$ac_ext >&5
16032 rm -rf conftest*
16033 wx_cv_prog_icc=no
16034
16035fi
16036rm -f conftest*
16037
16038fi
16039
16040echo "$ac_t""$wx_cv_prog_icc" 1>&6
16041 if test "$wx_cv_prog_icc" = "yes"; then
16042 PIC_FLAG="-KPIC"
16043 fi
16044 fi
16045
16046 if test "$wxUSE_SONAME" = "yes" ; then
16047 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16048 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16049 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16050 fi
16051 ;;
16052
16053 *-*-solaris2* )
16054 if test "$GCC" = yes ; then
16055 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
16056 else
16057 SHARED_LD="${CXX} -G -o"
16058 PIC_FLAG="-KPIC"
16059 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16060 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
16061 fi
16062 ;;
16063
16064 *-*-darwin* )
16065 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16066 CFLAGS="$CFLAGS -fno-common"
16067 CXXFLAGS="$CXXFLAGS -fno-common"
16068 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16069 PIC_FLAG="-dynamic -fPIC"
16070 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
16071 SONAME_FLAGS_GL=${SONAME_FLAGS}
16072 ;;
16073
16074 *-*-aix* )
16075 if test "$GCC" != "yes"; then
16076 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
16077set dummy makeC++SharedLib; ac_word=$2
16078echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16079echo "configure:16080: checking for $ac_word" >&5
16080if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16081 echo $ac_n "(cached) $ac_c" 1>&6
16082else
16083 if test -n "$AIX_CXX_LD"; then
16084 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16085else
16086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16087 ac_dummy="$PATH"
16088 for ac_dir in $ac_dummy; do
16089 test -z "$ac_dir" && ac_dir=.
16090 if test -f $ac_dir/$ac_word; then
16091 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16092 break
16093 fi
16094 done
16095 IFS="$ac_save_ifs"
16096 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16097fi
16098fi
16099AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
16100if test -n "$AIX_CXX_LD"; then
16101 echo "$ac_t""$AIX_CXX_LD" 1>&6
16102else
16103 echo "$ac_t""no" 1>&6
16104fi
16105
16106
16107 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16108 fi
16109 ;;
16110
16111 *-*-cygwin* | *-*-mingw32* )
16112 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16113
16114 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16115 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16116
16117 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16118
16119 if test "$wxUSE_OPENGL" = "yes"; then
16120 WX_ALL_INSTALLED="preinstall_gl"
16121 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
16122 else
16123 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16124 fi
16125 ;;
16126
16127 *-*-beos* )
16128 SHARED_LD="${LD} -shared -o"
16129 ;;
16130
16131 *-*-irix* )
16132 if test "$GCC" != "yes"; then
16133 PIC_FLAG="-KPIC"
16134 fi
16135 ;;
16136
16137 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16138 *-*-sunos4* | \
16139 *-*-osf* | \
16140 *-*-dgux5* | \
16141 *-*-sysv5* )
16142 ;;
16143
16144 *)
16145 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
16146 esac
16147
16148 if test "x$WX_TARGET_LIBRARY" = "x"; then
16149 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16150 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16151 fi
16152
16153 WX_TARGET_LIBRARY_TYPE="so"
16154 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
16155fi
16156
16157if test "$wxUSE_SHARED" = "no"; then
16158
16159 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16160 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16161 fi
16162
16163 if test "$wxUSE_MAC" = 1; then
16164 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16165 fi
16166
16167 if test "$wxUSE_OPENGL" = "yes"; then
16168 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16169 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16170 else
16171 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16172 fi
16173
16174 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16175 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16176
16177 WX_TARGET_LIBRARY_TYPE="a"
16178 INSTALL_LIBRARY='$(INSTALL_DATA)'
16179
16180 STATIC_FLAG="yes"
16181else
16182 STATIC_FLAG="no"
16183fi
16184
16185if test "$wxUSE_MAC" = 1; then
16186 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16187 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16188 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16189 # Extract the first word of "Rez", so it can be a program name with args.
16190set dummy Rez; ac_word=$2
16191echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16192echo "configure:16193: checking for $ac_word" >&5
16193if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16194 echo $ac_n "(cached) $ac_c" 1>&6
16195else
16196 if test -n "$RESCOMP"; then
16197 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16198else
16199 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16200 ac_dummy="$PATH"
16201 for ac_dir in $ac_dummy; do
16202 test -z "$ac_dir" && ac_dir=.
16203 if test -f $ac_dir/$ac_word; then
16204 ac_cv_prog_RESCOMP="Rez"
16205 break
16206 fi
16207 done
16208 IFS="$ac_save_ifs"
16209 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16210fi
16211fi
16212RESCOMP="$ac_cv_prog_RESCOMP"
16213if test -n "$RESCOMP"; then
16214 echo "$ac_t""$RESCOMP" 1>&6
16215else
16216 echo "$ac_t""no" 1>&6
16217fi
16218
16219 # Extract the first word of "DeRez", so it can be a program name with args.
16220set dummy DeRez; ac_word=$2
16221echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16222echo "configure:16223: checking for $ac_word" >&5
16223if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16224 echo $ac_n "(cached) $ac_c" 1>&6
16225else
16226 if test -n "$DEREZ"; then
16227 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16228else
16229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16230 ac_dummy="$PATH"
16231 for ac_dir in $ac_dummy; do
16232 test -z "$ac_dir" && ac_dir=.
16233 if test -f $ac_dir/$ac_word; then
16234 ac_cv_prog_DEREZ="DeRez"
16235 break
16236 fi
16237 done
16238 IFS="$ac_save_ifs"
16239 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16240fi
16241fi
16242DEREZ="$ac_cv_prog_DEREZ"
16243if test -n "$DEREZ"; then
16244 echo "$ac_t""$DEREZ" 1>&6
16245else
16246 echo "$ac_t""no" 1>&6
16247fi
16248
16249 MACOSX_BUNDLE="bundle"
16250 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
16251 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
16252else
16253 if test "$wxUSE_PM" = 1; then
16254 LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
16255 fi
16256fi
16257
16258
16259echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
16260echo "configure:16261: checking for ANSI C header files" >&5
16261if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16262 echo $ac_n "(cached) $ac_c" 1>&6
16263else
16264 cat > conftest.$ac_ext <<EOF
16265#line 16266 "configure"
16266#include "confdefs.h"
16267#include <stdlib.h>
16268#include <stdarg.h>
16269#include <string.h>
16270#include <float.h>
16271EOF
16272ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16273{ (eval echo configure:16274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16274ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16275if test -z "$ac_err"; then
16276 rm -rf conftest*
16277 ac_cv_header_stdc=yes
16278else
16279 echo "$ac_err" >&5
16280 echo "configure: failed program was:" >&5
16281 cat conftest.$ac_ext >&5
16282 rm -rf conftest*
16283 ac_cv_header_stdc=no
16284fi
16285rm -f conftest*
16286
16287if test $ac_cv_header_stdc = yes; then
16288 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16289cat > conftest.$ac_ext <<EOF
16290#line 16291 "configure"
16291#include "confdefs.h"
16292#include <string.h>
16293EOF
16294if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16295 egrep "memchr" >/dev/null 2>&1; then
16296 :
16297else
16298 rm -rf conftest*
16299 ac_cv_header_stdc=no
16300fi
16301rm -f conftest*
16302
16303fi
16304
16305if test $ac_cv_header_stdc = yes; then
16306 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16307cat > conftest.$ac_ext <<EOF
16308#line 16309 "configure"
16309#include "confdefs.h"
16310#include <stdlib.h>
16311EOF
16312if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16313 egrep "free" >/dev/null 2>&1; then
16314 :
16315else
16316 rm -rf conftest*
16317 ac_cv_header_stdc=no
16318fi
16319rm -f conftest*
16320
16321fi
16322
16323if test $ac_cv_header_stdc = yes; then
16324 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16325if test "$cross_compiling" = yes; then
16326 :
16327else
16328 cat > conftest.$ac_ext <<EOF
16329#line 16330 "configure"
16330#include "confdefs.h"
16331#include <ctype.h>
16332#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16333#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16334#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16335int main () { int i; for (i = 0; i < 256; i++)
16336if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16337exit (0); }
16338
16339EOF
16340if { (eval echo configure:16341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16341then
16342 :
16343else
16344 echo "configure: failed program was:" >&5
16345 cat conftest.$ac_ext >&5
16346 rm -fr conftest*
16347 ac_cv_header_stdc=no
16348fi
16349rm -fr conftest*
16350fi
16351
16352fi
16353fi
16354
16355echo "$ac_t""$ac_cv_header_stdc" 1>&6
16356if test $ac_cv_header_stdc = yes; then
16357 cat >> confdefs.h <<\EOF
16358#define STDC_HEADERS 1
16359EOF
16360
16361fi
16362
16363echo $ac_n "checking for mode_t""... $ac_c" 1>&6
16364echo "configure:16365: checking for mode_t" >&5
16365if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16366 echo $ac_n "(cached) $ac_c" 1>&6
16367else
16368 cat > conftest.$ac_ext <<EOF
16369#line 16370 "configure"
16370#include "confdefs.h"
16371#include <sys/types.h>
16372#if STDC_HEADERS
16373#include <stdlib.h>
16374#include <stddef.h>
16375#endif
16376EOF
16377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16378 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16379 rm -rf conftest*
16380 ac_cv_type_mode_t=yes
16381else
16382 rm -rf conftest*
16383 ac_cv_type_mode_t=no
16384fi
16385rm -f conftest*
16386
16387fi
16388echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16389if test $ac_cv_type_mode_t = no; then
16390 cat >> confdefs.h <<\EOF
16391#define mode_t int
16392EOF
16393
16394fi
16395
16396echo $ac_n "checking for off_t""... $ac_c" 1>&6
16397echo "configure:16398: checking for off_t" >&5
16398if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16399 echo $ac_n "(cached) $ac_c" 1>&6
16400else
16401 cat > conftest.$ac_ext <<EOF
16402#line 16403 "configure"
16403#include "confdefs.h"
16404#include <sys/types.h>
16405#if STDC_HEADERS
16406#include <stdlib.h>
16407#include <stddef.h>
16408#endif
16409EOF
16410if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16411 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16412 rm -rf conftest*
16413 ac_cv_type_off_t=yes
16414else
16415 rm -rf conftest*
16416 ac_cv_type_off_t=no
16417fi
16418rm -f conftest*
16419
16420fi
16421echo "$ac_t""$ac_cv_type_off_t" 1>&6
16422if test $ac_cv_type_off_t = no; then
16423 cat >> confdefs.h <<\EOF
16424#define off_t long
16425EOF
16426
16427fi
16428
16429echo $ac_n "checking for pid_t""... $ac_c" 1>&6
16430echo "configure:16431: checking for pid_t" >&5
16431if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16432 echo $ac_n "(cached) $ac_c" 1>&6
16433else
16434 cat > conftest.$ac_ext <<EOF
16435#line 16436 "configure"
16436#include "confdefs.h"
16437#include <sys/types.h>
16438#if STDC_HEADERS
16439#include <stdlib.h>
16440#include <stddef.h>
16441#endif
16442EOF
16443if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16444 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16445 rm -rf conftest*
16446 ac_cv_type_pid_t=yes
16447else
16448 rm -rf conftest*
16449 ac_cv_type_pid_t=no
16450fi
16451rm -f conftest*
16452
16453fi
16454echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16455if test $ac_cv_type_pid_t = no; then
16456 cat >> confdefs.h <<\EOF
16457#define pid_t int
16458EOF
16459
16460fi
16461
16462echo $ac_n "checking for size_t""... $ac_c" 1>&6
16463echo "configure:16464: checking for size_t" >&5
16464if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16465 echo $ac_n "(cached) $ac_c" 1>&6
16466else
16467 cat > conftest.$ac_ext <<EOF
16468#line 16469 "configure"
16469#include "confdefs.h"
16470#include <sys/types.h>
16471#if STDC_HEADERS
16472#include <stdlib.h>
16473#include <stddef.h>
16474#endif
16475EOF
16476if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16477 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16478 rm -rf conftest*
16479 ac_cv_type_size_t=yes
16480else
16481 rm -rf conftest*
16482 ac_cv_type_size_t=no
16483fi
16484rm -f conftest*
16485
16486fi
16487echo "$ac_t""$ac_cv_type_size_t" 1>&6
16488if test $ac_cv_type_size_t = no; then
16489 cat >> confdefs.h <<\EOF
16490#define size_t unsigned
16491EOF
16492
16493fi
16494
16495echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
16496echo "configure:16497: checking for uid_t in sys/types.h" >&5
16497if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16498 echo $ac_n "(cached) $ac_c" 1>&6
16499else
16500 cat > conftest.$ac_ext <<EOF
16501#line 16502 "configure"
16502#include "confdefs.h"
16503#include <sys/types.h>
16504EOF
16505if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16506 egrep "uid_t" >/dev/null 2>&1; then
16507 rm -rf conftest*
16508 ac_cv_type_uid_t=yes
16509else
16510 rm -rf conftest*
16511 ac_cv_type_uid_t=no
16512fi
16513rm -f conftest*
16514
16515fi
16516
16517echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16518if test $ac_cv_type_uid_t = no; then
16519 cat >> confdefs.h <<\EOF
16520#define uid_t int
16521EOF
16522
16523 cat >> confdefs.h <<\EOF
16524#define gid_t int
16525EOF
16526
16527fi
16528
16529
16530
16531ac_ext=C
16532# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16533ac_cpp='$CXXCPP $CPPFLAGS'
16534ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16535ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16536cross_compiling=$ac_cv_prog_cxx_cross
16537
16538echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
16539echo "configure:16540: checking if size_t is unsigned int" >&5
16540if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16541 echo $ac_n "(cached) $ac_c" 1>&6
16542else
16543 cat > conftest.$ac_ext <<EOF
16544#line 16545 "configure"
16545#include "confdefs.h"
16546#include <stddef.h>
16547int main() {
16548
16549 return 0; }
16550
16551 struct Foo { void foo(size_t); void foo(unsigned int); };
16552
16553 int bar() {
16554
16555; return 0; }
16556EOF
16557if { (eval echo configure:16558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16558 rm -rf conftest*
16559 wx_cv_size_t_is_uint=no
16560else
16561 echo "configure: failed program was:" >&5
16562 cat conftest.$ac_ext >&5
16563 rm -rf conftest*
16564 wx_cv_size_t_is_uint=yes
16565
16566fi
16567rm -f conftest*
16568
16569fi
16570
16571echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
16572
16573if test "$wx_cv_size_t_is_uint" = "yes"; then
16574 cat >> confdefs.h <<\EOF
16575#define wxSIZE_T_IS_UINT 1
16576EOF
16577
16578else
16579 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
16580echo "configure:16581: checking if size_t is unsigned long" >&5
16581if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16582 echo $ac_n "(cached) $ac_c" 1>&6
16583else
16584 cat > conftest.$ac_ext <<EOF
16585#line 16586 "configure"
16586#include "confdefs.h"
16587#include <stddef.h>
16588int main() {
16589
16590 return 0; }
16591
16592 struct Foo { void foo(size_t); void foo(unsigned long); };
16593
16594 int bar() {
16595
16596; return 0; }
16597EOF
16598if { (eval echo configure:16599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16599 rm -rf conftest*
16600 wx_cv_size_t_is_ulong=no
16601else
16602 echo "configure: failed program was:" >&5
16603 cat conftest.$ac_ext >&5
16604 rm -rf conftest*
16605 wx_cv_size_t_is_ulong=yes
16606
16607fi
16608rm -f conftest*
16609
16610fi
16611
16612echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
16613
16614 if test "$wx_cv_size_t_is_ulong" = "yes"; then
16615 cat >> confdefs.h <<\EOF
16616#define wxSIZE_T_IS_ULONG 1
16617EOF
16618
16619 fi
16620fi
16621
16622ac_ext=c
16623# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16624ac_cpp='$CPP $CPPFLAGS'
16625ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16626ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16627cross_compiling=$ac_cv_prog_cc_cross
16628
16629
16630
16631echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
16632echo "configure:16633: checking for pw_gecos in struct passwd" >&5
16633if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
16634 echo $ac_n "(cached) $ac_c" 1>&6
16635else
16636
16637 cat > conftest.$ac_ext <<EOF
16638#line 16639 "configure"
16639#include "confdefs.h"
16640#include <pwd.h>
16641int main() {
16642
16643 char *p;
16644 struct passwd *pw;
16645 p = pw->pw_gecos;
16646
16647; return 0; }
16648EOF
16649if { (eval echo configure:16650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16650 rm -rf conftest*
16651
16652 wx_cv_struct_pw_gecos=yes
16653
16654else
16655 echo "configure: failed program was:" >&5
16656 cat conftest.$ac_ext >&5
16657 rm -rf conftest*
16658
16659 wx_cv_struct_pw_gecos=no
16660
16661
16662fi
16663rm -f conftest*
16664
16665
16666fi
16667
16668echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
16669
16670if test "$wx_cv_struct_pw_gecos" = "yes"; then
16671 cat >> confdefs.h <<\EOF
16672#define HAVE_PW_GECOS 1
16673EOF
16674
16675fi
16676
16677
16678if test "$wx_cv_sizeof_wchar_t" != "0"; then
16679 cat >> confdefs.h <<\EOF
16680#define wxUSE_WCHAR_T 1
16681EOF
16682
16683
16684 WCSLEN_FOUND=0
16685 WCHAR_LINK=
16686 for ac_func in wcslen
16687do
16688echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16689echo "configure:16690: checking for $ac_func" >&5
16690if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16691 echo $ac_n "(cached) $ac_c" 1>&6
16692else
16693 cat > conftest.$ac_ext <<EOF
16694#line 16695 "configure"
16695#include "confdefs.h"
16696/* System header to define __stub macros and hopefully few prototypes,
16697 which can conflict with char $ac_func(); below. */
16698#include <assert.h>
16699/* Override any gcc2 internal prototype to avoid an error. */
16700/* We use char because int might match the return type of a gcc2
16701 builtin and then its argument prototype would still apply. */
16702char $ac_func();
16703
16704int main() {
16705
16706/* The GNU C library defines this for functions which it implements
16707 to always fail with ENOSYS. Some functions are actually named
16708 something starting with __ and the normal name is an alias. */
16709#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16710choke me
16711#else
16712$ac_func();
16713#endif
16714
16715; return 0; }
16716EOF
16717if { (eval echo configure:16718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16718 rm -rf conftest*
16719 eval "ac_cv_func_$ac_func=yes"
16720else
16721 echo "configure: failed program was:" >&5
16722 cat conftest.$ac_ext >&5
16723 rm -rf conftest*
16724 eval "ac_cv_func_$ac_func=no"
16725fi
16726rm -f conftest*
16727fi
16728
16729if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16730 echo "$ac_t""yes" 1>&6
16731 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16732 cat >> confdefs.h <<EOF
16733#define $ac_tr_func 1
16734EOF
16735 WCSLEN_FOUND=1
16736else
16737 echo "$ac_t""no" 1>&6
16738fi
16739done
16740
16741
16742 if test "$WCSLEN_FOUND" = 0; then
16743 if test "$TOOLKIT" = "MSW"; then
16744 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
16745echo "configure:16746: checking for wcslen in -lmsvcrt" >&5
16746ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
16747if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16748 echo $ac_n "(cached) $ac_c" 1>&6
16749else
16750 ac_save_LIBS="$LIBS"
16751LIBS="-lmsvcrt $LIBS"
16752cat > conftest.$ac_ext <<EOF
16753#line 16754 "configure"
16754#include "confdefs.h"
16755/* Override any gcc2 internal prototype to avoid an error. */
16756/* We use char because int might match the return type of a gcc2
16757 builtin and then its argument prototype would still apply. */
16758char wcslen();
16759
16760int main() {
16761wcslen()
16762; return 0; }
16763EOF
16764if { (eval echo configure:16765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16765 rm -rf conftest*
16766 eval "ac_cv_lib_$ac_lib_var=yes"
16767else
16768 echo "configure: failed program was:" >&5
16769 cat conftest.$ac_ext >&5
16770 rm -rf conftest*
16771 eval "ac_cv_lib_$ac_lib_var=no"
16772fi
16773rm -f conftest*
16774LIBS="$ac_save_LIBS"
16775
16776fi
16777if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16778 echo "$ac_t""yes" 1>&6
16779 WCHAR_OK=1
16780else
16781 echo "$ac_t""no" 1>&6
16782fi
16783
16784 else
16785 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
16786echo "configure:16787: checking for wcslen in -lw" >&5
16787ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
16788if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16789 echo $ac_n "(cached) $ac_c" 1>&6
16790else
16791 ac_save_LIBS="$LIBS"
16792LIBS="-lw $LIBS"
16793cat > conftest.$ac_ext <<EOF
16794#line 16795 "configure"
16795#include "confdefs.h"
16796/* Override any gcc2 internal prototype to avoid an error. */
16797/* We use char because int might match the return type of a gcc2
16798 builtin and then its argument prototype would still apply. */
16799char wcslen();
16800
16801int main() {
16802wcslen()
16803; return 0; }
16804EOF
16805if { (eval echo configure:16806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16806 rm -rf conftest*
16807 eval "ac_cv_lib_$ac_lib_var=yes"
16808else
16809 echo "configure: failed program was:" >&5
16810 cat conftest.$ac_ext >&5
16811 rm -rf conftest*
16812 eval "ac_cv_lib_$ac_lib_var=no"
16813fi
16814rm -f conftest*
16815LIBS="$ac_save_LIBS"
16816
16817fi
16818if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16819 echo "$ac_t""yes" 1>&6
16820
16821 WCHAR_LINK=" -lw"
16822 WCSLEN_FOUND=1
16823
16824else
16825 echo "$ac_t""no" 1>&6
16826fi
16827
16828 fi
16829 fi
16830
16831 if test "$WCSLEN_FOUND" = 1; then
16832 cat >> confdefs.h <<\EOF
16833#define HAVE_WCSLEN 1
16834EOF
16835
16836 fi
16837
16838 for ac_func in wcsrtombs
16839do
16840echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16841echo "configure:16842: checking for $ac_func" >&5
16842if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16843 echo $ac_n "(cached) $ac_c" 1>&6
16844else
16845 cat > conftest.$ac_ext <<EOF
16846#line 16847 "configure"
16847#include "confdefs.h"
16848/* System header to define __stub macros and hopefully few prototypes,
16849 which can conflict with char $ac_func(); below. */
16850#include <assert.h>
16851/* Override any gcc2 internal prototype to avoid an error. */
16852/* We use char because int might match the return type of a gcc2
16853 builtin and then its argument prototype would still apply. */
16854char $ac_func();
16855
16856int main() {
16857
16858/* The GNU C library defines this for functions which it implements
16859 to always fail with ENOSYS. Some functions are actually named
16860 something starting with __ and the normal name is an alias. */
16861#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16862choke me
16863#else
16864$ac_func();
16865#endif
16866
16867; return 0; }
16868EOF
16869if { (eval echo configure:16870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16870 rm -rf conftest*
16871 eval "ac_cv_func_$ac_func=yes"
16872else
16873 echo "configure: failed program was:" >&5
16874 cat conftest.$ac_ext >&5
16875 rm -rf conftest*
16876 eval "ac_cv_func_$ac_func=no"
16877fi
16878rm -f conftest*
16879fi
16880
16881if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16882 echo "$ac_t""yes" 1>&6
16883 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16884 cat >> confdefs.h <<EOF
16885#define $ac_tr_func 1
16886EOF
16887
16888else
16889 echo "$ac_t""no" 1>&6
16890fi
16891done
16892
16893else
16894 echo "configure: warning: Wide character support is unavailable" 1>&2
16895fi
16896
16897
16898ac_ext=C
16899# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16900ac_cpp='$CXXCPP $CPPFLAGS'
16901ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16902ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16903cross_compiling=$ac_cv_prog_cxx_cross
16904
16905
16906for ac_func in vsnprintf
16907do
16908echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16909echo "configure:16910: checking for $ac_func" >&5
16910if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16911 echo $ac_n "(cached) $ac_c" 1>&6
16912else
16913 cat > conftest.$ac_ext <<EOF
16914#line 16915 "configure"
16915#include "confdefs.h"
16916/* System header to define __stub macros and hopefully few prototypes,
16917 which can conflict with char $ac_func(); below. */
16918#include <assert.h>
16919/* Override any gcc2 internal prototype to avoid an error. */
16920#ifdef __cplusplus
16921extern "C"
16922#endif
16923/* We use char because int might match the return type of a gcc2
16924 builtin and then its argument prototype would still apply. */
16925char $ac_func();
16926
16927int main() {
16928
16929/* The GNU C library defines this for functions which it implements
16930 to always fail with ENOSYS. Some functions are actually named
16931 something starting with __ and the normal name is an alias. */
16932#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16933choke me
16934#else
16935$ac_func();
16936#endif
16937
16938; return 0; }
16939EOF
16940if { (eval echo configure:16941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16941 rm -rf conftest*
16942 eval "ac_cv_func_$ac_func=yes"
16943else
16944 echo "configure: failed program was:" >&5
16945 cat conftest.$ac_ext >&5
16946 rm -rf conftest*
16947 eval "ac_cv_func_$ac_func=no"
16948fi
16949rm -f conftest*
16950fi
16951
16952if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16953 echo "$ac_t""yes" 1>&6
16954 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16955 cat >> confdefs.h <<EOF
16956#define $ac_tr_func 1
16957EOF
16958
16959else
16960 echo "$ac_t""no" 1>&6
16961fi
16962done
16963
16964
16965if test "$wxUSE_UNICODE" = yes; then
16966 for ac_func in fputwc wprintf vswprintf
16967do
16968echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16969echo "configure:16970: checking for $ac_func" >&5
16970if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16971 echo $ac_n "(cached) $ac_c" 1>&6
16972else
16973 cat > conftest.$ac_ext <<EOF
16974#line 16975 "configure"
16975#include "confdefs.h"
16976/* System header to define __stub macros and hopefully few prototypes,
16977 which can conflict with char $ac_func(); below. */
16978#include <assert.h>
16979/* Override any gcc2 internal prototype to avoid an error. */
16980#ifdef __cplusplus
16981extern "C"
16982#endif
16983/* We use char because int might match the return type of a gcc2
16984 builtin and then its argument prototype would still apply. */
16985char $ac_func();
16986
16987int main() {
16988
16989/* The GNU C library defines this for functions which it implements
16990 to always fail with ENOSYS. Some functions are actually named
16991 something starting with __ and the normal name is an alias. */
16992#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16993choke me
16994#else
16995$ac_func();
16996#endif
16997
16998; return 0; }
16999EOF
17000if { (eval echo configure:17001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17001 rm -rf conftest*
17002 eval "ac_cv_func_$ac_func=yes"
17003else
17004 echo "configure: failed program was:" >&5
17005 cat conftest.$ac_ext >&5
17006 rm -rf conftest*
17007 eval "ac_cv_func_$ac_func=no"
17008fi
17009rm -f conftest*
17010fi
17011
17012if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17013 echo "$ac_t""yes" 1>&6
17014 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17015 cat >> confdefs.h <<EOF
17016#define $ac_tr_func 1
17017EOF
17018
17019else
17020 echo "$ac_t""no" 1>&6
17021fi
17022done
17023
17024 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
17025echo "configure:17026: checking for _vsnwprintf" >&5
17026 cat > conftest.$ac_ext <<EOF
17027#line 17028 "configure"
17028#include "confdefs.h"
17029#include <wchar.h>
17030int main() {
17031&_vsnwprintf;
17032; return 0; }
17033EOF
17034if { (eval echo configure:17035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17035 rm -rf conftest*
17036 echo "$ac_t""yes" 1>&6
17037 cat >> confdefs.h <<\EOF
17038#define HAVE__VSNWPRINTF 1
17039EOF
17040
17041else
17042 echo "configure: failed program was:" >&5
17043 cat conftest.$ac_ext >&5
17044 rm -rf conftest*
17045 echo "$ac_t""no" 1>&6
17046fi
17047rm -f conftest*;
17048fi
17049
17050ac_ext=c
17051# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17052ac_cpp='$CPP $CPPFLAGS'
17053ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17054ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17055cross_compiling=$ac_cv_prog_cc_cross
17056
17057
17058
17059
17060if test "$TOOLKIT" != "MSW"; then
17061
17062
17063
17064ac_ext=C
17065# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17066ac_cpp='$CXXCPP $CPPFLAGS'
17067ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17068ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17069cross_compiling=$ac_cv_prog_cxx_cross
17070
17071
17072
17073 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
17074if test "${with_libiconv_prefix+set}" = set; then
17075 withval="$with_libiconv_prefix"
17076
17077 for dir in `echo "$withval" | tr : ' '`; do
17078 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17079 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17080 done
17081
17082fi
17083
17084
17085 echo $ac_n "checking for iconv""... $ac_c" 1>&6
17086echo "configure:17087: checking for iconv" >&5
17087if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17088 echo $ac_n "(cached) $ac_c" 1>&6
17089else
17090
17091 am_cv_func_iconv="no, consider installing GNU libiconv"
17092 am_cv_lib_iconv=no
17093 cat > conftest.$ac_ext <<EOF
17094#line 17095 "configure"
17095#include "confdefs.h"
17096#include <stdlib.h>
17097#include <iconv.h>
17098int main() {
17099iconv_t cd = iconv_open("","");
17100 iconv(cd,NULL,NULL,NULL,NULL);
17101 iconv_close(cd);
17102; return 0; }
17103EOF
17104if { (eval echo configure:17105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17105 rm -rf conftest*
17106 am_cv_func_iconv=yes
17107else
17108 echo "configure: failed program was:" >&5
17109 cat conftest.$ac_ext >&5
17110fi
17111rm -f conftest*
17112 if test "$am_cv_func_iconv" != yes; then
17113 am_save_LIBS="$LIBS"
17114 LIBS="$LIBS -liconv"
17115 cat > conftest.$ac_ext <<EOF
17116#line 17117 "configure"
17117#include "confdefs.h"
17118#include <stdlib.h>
17119#include <iconv.h>
17120int main() {
17121iconv_t cd = iconv_open("","");
17122 iconv(cd,NULL,NULL,NULL,NULL);
17123 iconv_close(cd);
17124; return 0; }
17125EOF
17126if { (eval echo configure:17127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17127 rm -rf conftest*
17128 am_cv_lib_iconv=yes
17129 am_cv_func_iconv=yes
17130else
17131 echo "configure: failed program was:" >&5
17132 cat conftest.$ac_ext >&5
17133fi
17134rm -f conftest*
17135 LIBS="$am_save_LIBS"
17136 fi
17137
17138fi
17139
17140echo "$ac_t""$am_cv_func_iconv" 1>&6
17141 if test "$am_cv_func_iconv" = yes; then
17142 cat >> confdefs.h <<\EOF
17143#define HAVE_ICONV 1
17144EOF
17145
17146 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
17147echo "configure:17148: checking if iconv needs const" >&5
17148if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17149 echo $ac_n "(cached) $ac_c" 1>&6
17150else
17151 cat > conftest.$ac_ext <<EOF
17152#line 17153 "configure"
17153#include "confdefs.h"
17154
17155#include <stdlib.h>
17156#include <iconv.h>
17157extern
17158#ifdef __cplusplus
17159"C"
17160#endif
17161#if defined(__STDC__) || defined(__cplusplus)
17162size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17163#else
17164size_t iconv();
17165#endif
17166
17167int main() {
17168
17169; return 0; }
17170EOF
17171if { (eval echo configure:17172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17172 rm -rf conftest*
17173 wx_cv_func_iconv_const="no"
17174else
17175 echo "configure: failed program was:" >&5
17176 cat conftest.$ac_ext >&5
17177 rm -rf conftest*
17178 wx_cv_func_iconv_const="yes"
17179
17180fi
17181rm -f conftest*
17182
17183fi
17184
17185echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
17186
17187 iconv_const=
17188 if test "x$wx_cv_func_iconv_const" = "xyes"; then
17189 iconv_const="const"
17190 fi
17191
17192 cat >> confdefs.h <<EOF
17193#define ICONV_CONST $iconv_const
17194EOF
17195
17196 fi
17197 LIBICONV=
17198 if test "$am_cv_lib_iconv" = yes; then
17199 LIBICONV="-liconv"
17200 fi
17201
17202
17203LIBS="$LIBICONV $LIBS"
17204ac_ext=c
17205# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17206ac_cpp='$CPP $CPPFLAGS'
17207ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17208ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17209cross_compiling=$ac_cv_prog_cc_cross
17210
17211
17212if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
17213 for ac_func in sigaction
17214do
17215echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17216echo "configure:17217: checking for $ac_func" >&5
17217if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17218 echo $ac_n "(cached) $ac_c" 1>&6
17219else
17220 cat > conftest.$ac_ext <<EOF
17221#line 17222 "configure"
17222#include "confdefs.h"
17223/* System header to define __stub macros and hopefully few prototypes,
17224 which can conflict with char $ac_func(); below. */
17225#include <assert.h>
17226/* Override any gcc2 internal prototype to avoid an error. */
17227/* We use char because int might match the return type of a gcc2
17228 builtin and then its argument prototype would still apply. */
17229char $ac_func();
17230
17231int main() {
17232
17233/* The GNU C library defines this for functions which it implements
17234 to always fail with ENOSYS. Some functions are actually named
17235 something starting with __ and the normal name is an alias. */
17236#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17237choke me
17238#else
17239$ac_func();
17240#endif
17241
17242; return 0; }
17243EOF
17244if { (eval echo configure:17245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17245 rm -rf conftest*
17246 eval "ac_cv_func_$ac_func=yes"
17247else
17248 echo "configure: failed program was:" >&5
17249 cat conftest.$ac_ext >&5
17250 rm -rf conftest*
17251 eval "ac_cv_func_$ac_func=no"
17252fi
17253rm -f conftest*
17254fi
17255
17256if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17257 echo "$ac_t""yes" 1>&6
17258 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17259 cat >> confdefs.h <<EOF
17260#define $ac_tr_func 1
17261EOF
17262
17263else
17264 echo "$ac_t""no" 1>&6
17265fi
17266done
17267
17268
17269 if test "$ac_cv_func_sigaction" = "no"; then
17270 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
17271 wxUSE_ON_FATAL_EXCEPTION=no
17272 fi
17273
17274 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
17275
17276 ac_ext=C
17277# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17278ac_cpp='$CXXCPP $CPPFLAGS'
17279ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17280ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17281cross_compiling=$ac_cv_prog_cxx_cross
17282
17283
17284 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
17285echo "configure:17286: checking for sa_handler type" >&5
17286if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17287 echo $ac_n "(cached) $ac_c" 1>&6
17288else
17289
17290 cat > conftest.$ac_ext <<EOF
17291#line 17292 "configure"
17292#include "confdefs.h"
17293#include <signal.h>
17294int main() {
17295
17296 extern void testSigHandler(int);
17297
17298 struct sigaction sa;
17299 sa.sa_handler = testSigHandler;
17300
17301; return 0; }
17302EOF
17303if { (eval echo configure:17304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17304 rm -rf conftest*
17305
17306 wx_cv_type_sa_handler=int
17307
17308else
17309 echo "configure: failed program was:" >&5
17310 cat conftest.$ac_ext >&5
17311 rm -rf conftest*
17312
17313 wx_cv_type_sa_handler=void
17314
17315fi
17316rm -f conftest*
17317
17318fi
17319
17320echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
17321
17322 ac_ext=c
17323# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17324ac_cpp='$CPP $CPPFLAGS'
17325ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17326ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17327cross_compiling=$ac_cv_prog_cc_cross
17328
17329
17330 cat >> confdefs.h <<EOF
17331#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
17332EOF
17333
17334 fi
17335fi
17336
17337for ac_func in mkstemp mktemp
17338do
17339echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17340echo "configure:17341: checking for $ac_func" >&5
17341if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17342 echo $ac_n "(cached) $ac_c" 1>&6
17343else
17344 cat > conftest.$ac_ext <<EOF
17345#line 17346 "configure"
17346#include "confdefs.h"
17347/* System header to define __stub macros and hopefully few prototypes,
17348 which can conflict with char $ac_func(); below. */
17349#include <assert.h>
17350/* Override any gcc2 internal prototype to avoid an error. */
17351/* We use char because int might match the return type of a gcc2
17352 builtin and then its argument prototype would still apply. */
17353char $ac_func();
17354
17355int main() {
17356
17357/* The GNU C library defines this for functions which it implements
17358 to always fail with ENOSYS. Some functions are actually named
17359 something starting with __ and the normal name is an alias. */
17360#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17361choke me
17362#else
17363$ac_func();
17364#endif
17365
17366; return 0; }
17367EOF
17368if { (eval echo configure:17369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17369 rm -rf conftest*
17370 eval "ac_cv_func_$ac_func=yes"
17371else
17372 echo "configure: failed program was:" >&5
17373 cat conftest.$ac_ext >&5
17374 rm -rf conftest*
17375 eval "ac_cv_func_$ac_func=no"
17376fi
17377rm -f conftest*
17378fi
17379
17380if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17381 echo "$ac_t""yes" 1>&6
17382 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17383 cat >> confdefs.h <<EOF
17384#define $ac_tr_func 1
17385EOF
17386 break
17387else
17388 echo "$ac_t""no" 1>&6
17389fi
17390done
17391
17392
17393echo $ac_n "checking for statfs""... $ac_c" 1>&6
17394echo "configure:17395: checking for statfs" >&5
17395if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17396 echo $ac_n "(cached) $ac_c" 1>&6
17397else
17398 cat > conftest.$ac_ext <<EOF
17399#line 17400 "configure"
17400#include "confdefs.h"
17401
17402 #if defined(__BSD__)
17403 #include <sys/param.h>
17404 #include <sys/mount.h>
17405 #else
17406 #include <sys/vfs.h>
17407 #endif
17408
17409int main() {
17410
17411 long l;
17412 struct statfs fs;
17413 statfs("/", &fs);
17414 l = fs.f_bsize;
17415 l += fs.f_blocks;
17416 l += fs.f_bavail;
17417
17418; return 0; }
17419EOF
17420if { (eval echo configure:17421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17421 rm -rf conftest*
17422
17423 wx_cv_func_statfs=yes
17424
17425else
17426 echo "configure: failed program was:" >&5
17427 cat conftest.$ac_ext >&5
17428 rm -rf conftest*
17429
17430 wx_cv_func_statfs=no
17431
17432
17433fi
17434rm -f conftest*
17435
17436fi
17437
17438echo "$ac_t""$wx_cv_func_statfs" 1>&6
17439
17440if test "$wx_cv_func_statfs" = "yes"; then
17441 cat >> confdefs.h <<\EOF
17442#define HAVE_STATFS 1
17443EOF
17444
17445else
17446 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
17447echo "configure:17448: checking for statvfs" >&5
17448if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17449 echo $ac_n "(cached) $ac_c" 1>&6
17450else
17451 cat > conftest.$ac_ext <<EOF
17452#line 17453 "configure"
17453#include "confdefs.h"
17454
17455 #include <sys/statvfs.h>
17456
17457int main() {
17458
17459 long l;
17460 struct statvfs fs;
17461 statvfs("/", &fs);
17462 l = fs.f_bsize;
17463 l += fs.f_blocks;
17464 l += fs.f_bavail;
17465
17466; return 0; }
17467EOF
17468if { (eval echo configure:17469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17469 rm -rf conftest*
17470
17471 wx_cv_func_statvfs=yes
17472
17473else
17474 echo "configure: failed program was:" >&5
17475 cat conftest.$ac_ext >&5
17476 rm -rf conftest*
17477
17478 wx_cv_func_statvfs=no
17479
17480
17481fi
17482rm -f conftest*
17483
17484fi
17485
17486echo "$ac_t""$wx_cv_func_statvfs" 1>&6
17487
17488 if test "$wx_cv_func_statvfs" = "yes"; then
17489 cat >> confdefs.h <<\EOF
17490#define HAVE_STATVFS 1
17491EOF
17492
17493 else
17494 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
17495 fi
17496fi
17497
17498if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
17499 for ac_func in fcntl flock
17500do
17501echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17502echo "configure:17503: checking for $ac_func" >&5
17503if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17504 echo $ac_n "(cached) $ac_c" 1>&6
17505else
17506 cat > conftest.$ac_ext <<EOF
17507#line 17508 "configure"
17508#include "confdefs.h"
17509/* System header to define __stub macros and hopefully few prototypes,
17510 which can conflict with char $ac_func(); below. */
17511#include <assert.h>
17512/* Override any gcc2 internal prototype to avoid an error. */
17513/* We use char because int might match the return type of a gcc2
17514 builtin and then its argument prototype would still apply. */
17515char $ac_func();
17516
17517int main() {
17518
17519/* The GNU C library defines this for functions which it implements
17520 to always fail with ENOSYS. Some functions are actually named
17521 something starting with __ and the normal name is an alias. */
17522#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17523choke me
17524#else
17525$ac_func();
17526#endif
17527
17528; return 0; }
17529EOF
17530if { (eval echo configure:17531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17531 rm -rf conftest*
17532 eval "ac_cv_func_$ac_func=yes"
17533else
17534 echo "configure: failed program was:" >&5
17535 cat conftest.$ac_ext >&5
17536 rm -rf conftest*
17537 eval "ac_cv_func_$ac_func=no"
17538fi
17539rm -f conftest*
17540fi
17541
17542if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17543 echo "$ac_t""yes" 1>&6
17544 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17545 cat >> confdefs.h <<EOF
17546#define $ac_tr_func 1
17547EOF
17548 break
17549else
17550 echo "$ac_t""no" 1>&6
17551fi
17552done
17553
17554
17555 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
17556 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
17557 wxUSE_SNGLINST_CHECKER=no
17558 fi
17559fi
17560
17561for ac_func in timegm
17562do
17563echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17564echo "configure:17565: checking for $ac_func" >&5
17565if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17566 echo $ac_n "(cached) $ac_c" 1>&6
17567else
17568 cat > conftest.$ac_ext <<EOF
17569#line 17570 "configure"
17570#include "confdefs.h"
17571/* System header to define __stub macros and hopefully few prototypes,
17572 which can conflict with char $ac_func(); below. */
17573#include <assert.h>
17574/* Override any gcc2 internal prototype to avoid an error. */
17575/* We use char because int might match the return type of a gcc2
17576 builtin and then its argument prototype would still apply. */
17577char $ac_func();
17578
17579int main() {
17580
17581/* The GNU C library defines this for functions which it implements
17582 to always fail with ENOSYS. Some functions are actually named
17583 something starting with __ and the normal name is an alias. */
17584#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17585choke me
17586#else
17587$ac_func();
17588#endif
17589
17590; return 0; }
17591EOF
17592if { (eval echo configure:17593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17593 rm -rf conftest*
17594 eval "ac_cv_func_$ac_func=yes"
17595else
17596 echo "configure: failed program was:" >&5
17597 cat conftest.$ac_ext >&5
17598 rm -rf conftest*
17599 eval "ac_cv_func_$ac_func=no"
17600fi
17601rm -f conftest*
17602fi
17603
17604if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17605 echo "$ac_t""yes" 1>&6
17606 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17607 cat >> confdefs.h <<EOF
17608#define $ac_tr_func 1
17609EOF
17610
17611else
17612 echo "$ac_t""no" 1>&6
17613fi
17614done
17615
17616
17617for ac_func in putenv setenv
17618do
17619echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17620echo "configure:17621: checking for $ac_func" >&5
17621if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17622 echo $ac_n "(cached) $ac_c" 1>&6
17623else
17624 cat > conftest.$ac_ext <<EOF
17625#line 17626 "configure"
17626#include "confdefs.h"
17627/* System header to define __stub macros and hopefully few prototypes,
17628 which can conflict with char $ac_func(); below. */
17629#include <assert.h>
17630/* Override any gcc2 internal prototype to avoid an error. */
17631/* We use char because int might match the return type of a gcc2
17632 builtin and then its argument prototype would still apply. */
17633char $ac_func();
17634
17635int main() {
17636
17637/* The GNU C library defines this for functions which it implements
17638 to always fail with ENOSYS. Some functions are actually named
17639 something starting with __ and the normal name is an alias. */
17640#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17641choke me
17642#else
17643$ac_func();
17644#endif
17645
17646; return 0; }
17647EOF
17648if { (eval echo configure:17649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17649 rm -rf conftest*
17650 eval "ac_cv_func_$ac_func=yes"
17651else
17652 echo "configure: failed program was:" >&5
17653 cat conftest.$ac_ext >&5
17654 rm -rf conftest*
17655 eval "ac_cv_func_$ac_func=no"
17656fi
17657rm -f conftest*
17658fi
17659
17660if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17661 echo "$ac_t""yes" 1>&6
17662 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17663 cat >> confdefs.h <<EOF
17664#define $ac_tr_func 1
17665EOF
17666 break
17667else
17668 echo "$ac_t""no" 1>&6
17669fi
17670done
17671
17672
17673HAVE_SOME_SLEEP_FUNC=0
17674if test "$USE_BEOS" = 1; then
17675 cat >> confdefs.h <<\EOF
17676#define HAVE_SLEEP 1
17677EOF
17678
17679 HAVE_SOME_SLEEP_FUNC=1
17680fi
17681
17682if test "$USE_DARWIN" = 1; then
17683 cat >> confdefs.h <<\EOF
17684#define HAVE_USLEEP 1
17685EOF
17686
17687 HAVE_SOME_SLEEP_FUNC=1
17688fi
17689
17690if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
17691 POSIX4_LINK=
17692 for ac_func in nanosleep
17693do
17694echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17695echo "configure:17696: checking for $ac_func" >&5
17696if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17697 echo $ac_n "(cached) $ac_c" 1>&6
17698else
17699 cat > conftest.$ac_ext <<EOF
17700#line 17701 "configure"
17701#include "confdefs.h"
17702/* System header to define __stub macros and hopefully few prototypes,
17703 which can conflict with char $ac_func(); below. */
17704#include <assert.h>
17705/* Override any gcc2 internal prototype to avoid an error. */
17706/* We use char because int might match the return type of a gcc2
17707 builtin and then its argument prototype would still apply. */
17708char $ac_func();
17709
17710int main() {
17711
17712/* The GNU C library defines this for functions which it implements
17713 to always fail with ENOSYS. Some functions are actually named
17714 something starting with __ and the normal name is an alias. */
17715#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17716choke me
17717#else
17718$ac_func();
17719#endif
17720
17721; return 0; }
17722EOF
17723if { (eval echo configure:17724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17724 rm -rf conftest*
17725 eval "ac_cv_func_$ac_func=yes"
17726else
17727 echo "configure: failed program was:" >&5
17728 cat conftest.$ac_ext >&5
17729 rm -rf conftest*
17730 eval "ac_cv_func_$ac_func=no"
17731fi
17732rm -f conftest*
17733fi
17734
17735if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17736 echo "$ac_t""yes" 1>&6
17737 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17738 cat >> confdefs.h <<EOF
17739#define $ac_tr_func 1
17740EOF
17741 cat >> confdefs.h <<\EOF
17742#define HAVE_NANOSLEEP 1
17743EOF
17744
17745else
17746 echo "$ac_t""no" 1>&6
17747echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
17748echo "configure:17749: checking for nanosleep in -lposix4" >&5
17749ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
17750if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17751 echo $ac_n "(cached) $ac_c" 1>&6
17752else
17753 ac_save_LIBS="$LIBS"
17754LIBS="-lposix4 $LIBS"
17755cat > conftest.$ac_ext <<EOF
17756#line 17757 "configure"
17757#include "confdefs.h"
17758/* Override any gcc2 internal prototype to avoid an error. */
17759/* We use char because int might match the return type of a gcc2
17760 builtin and then its argument prototype would still apply. */
17761char nanosleep();
17762
17763int main() {
17764nanosleep()
17765; return 0; }
17766EOF
17767if { (eval echo configure:17768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17768 rm -rf conftest*
17769 eval "ac_cv_lib_$ac_lib_var=yes"
17770else
17771 echo "configure: failed program was:" >&5
17772 cat conftest.$ac_ext >&5
17773 rm -rf conftest*
17774 eval "ac_cv_lib_$ac_lib_var=no"
17775fi
17776rm -f conftest*
17777LIBS="$ac_save_LIBS"
17778
17779fi
17780if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17781 echo "$ac_t""yes" 1>&6
17782
17783 cat >> confdefs.h <<\EOF
17784#define HAVE_NANOSLEEP 1
17785EOF
17786
17787 POSIX4_LINK=" -lposix4"
17788
17789else
17790 echo "$ac_t""no" 1>&6
17791
17792 for ac_func in usleep
17793do
17794echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17795echo "configure:17796: checking for $ac_func" >&5
17796if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17797 echo $ac_n "(cached) $ac_c" 1>&6
17798else
17799 cat > conftest.$ac_ext <<EOF
17800#line 17801 "configure"
17801#include "confdefs.h"
17802/* System header to define __stub macros and hopefully few prototypes,
17803 which can conflict with char $ac_func(); below. */
17804#include <assert.h>
17805/* Override any gcc2 internal prototype to avoid an error. */
17806/* We use char because int might match the return type of a gcc2
17807 builtin and then its argument prototype would still apply. */
17808char $ac_func();
17809
17810int main() {
17811
17812/* The GNU C library defines this for functions which it implements
17813 to always fail with ENOSYS. Some functions are actually named
17814 something starting with __ and the normal name is an alias. */
17815#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17816choke me
17817#else
17818$ac_func();
17819#endif
17820
17821; return 0; }
17822EOF
17823if { (eval echo configure:17824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17824 rm -rf conftest*
17825 eval "ac_cv_func_$ac_func=yes"
17826else
17827 echo "configure: failed program was:" >&5
17828 cat conftest.$ac_ext >&5
17829 rm -rf conftest*
17830 eval "ac_cv_func_$ac_func=no"
17831fi
17832rm -f conftest*
17833fi
17834
17835if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17836 echo "$ac_t""yes" 1>&6
17837 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17838 cat >> confdefs.h <<EOF
17839#define $ac_tr_func 1
17840EOF
17841 cat >> confdefs.h <<\EOF
17842#define HAVE_USLEEP 1
17843EOF
17844
17845else
17846 echo "$ac_t""no" 1>&6
17847echo "configure: warning: wxSleep() function will not work" 1>&2
17848
17849fi
17850done
17851
17852
17853
17854fi
17855
17856
17857
17858fi
17859done
17860
17861fi
17862
17863for ac_func in uname gethostname
17864do
17865echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17866echo "configure:17867: checking for $ac_func" >&5
17867if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17868 echo $ac_n "(cached) $ac_c" 1>&6
17869else
17870 cat > conftest.$ac_ext <<EOF
17871#line 17872 "configure"
17872#include "confdefs.h"
17873/* System header to define __stub macros and hopefully few prototypes,
17874 which can conflict with char $ac_func(); below. */
17875#include <assert.h>
17876/* Override any gcc2 internal prototype to avoid an error. */
17877/* We use char because int might match the return type of a gcc2
17878 builtin and then its argument prototype would still apply. */
17879char $ac_func();
17880
17881int main() {
17882
17883/* The GNU C library defines this for functions which it implements
17884 to always fail with ENOSYS. Some functions are actually named
17885 something starting with __ and the normal name is an alias. */
17886#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17887choke me
17888#else
17889$ac_func();
17890#endif
17891
17892; return 0; }
17893EOF
17894if { (eval echo configure:17895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17895 rm -rf conftest*
17896 eval "ac_cv_func_$ac_func=yes"
17897else
17898 echo "configure: failed program was:" >&5
17899 cat conftest.$ac_ext >&5
17900 rm -rf conftest*
17901 eval "ac_cv_func_$ac_func=no"
17902fi
17903rm -f conftest*
17904fi
17905
17906if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17907 echo "$ac_t""yes" 1>&6
17908 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17909 cat >> confdefs.h <<EOF
17910#define $ac_tr_func 1
17911EOF
17912 break
17913else
17914 echo "$ac_t""no" 1>&6
17915fi
17916done
17917
17918
17919
17920ac_ext=C
17921# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17922ac_cpp='$CXXCPP $CPPFLAGS'
17923ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17924ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17925cross_compiling=$ac_cv_prog_cxx_cross
17926
17927
17928for ac_func in strtok_r
17929do
17930echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17931echo "configure:17932: checking for $ac_func" >&5
17932if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17933 echo $ac_n "(cached) $ac_c" 1>&6
17934else
17935 cat > conftest.$ac_ext <<EOF
17936#line 17937 "configure"
17937#include "confdefs.h"
17938/* System header to define __stub macros and hopefully few prototypes,
17939 which can conflict with char $ac_func(); below. */
17940#include <assert.h>
17941/* Override any gcc2 internal prototype to avoid an error. */
17942#ifdef __cplusplus
17943extern "C"
17944#endif
17945/* We use char because int might match the return type of a gcc2
17946 builtin and then its argument prototype would still apply. */
17947char $ac_func();
17948
17949int main() {
17950
17951/* The GNU C library defines this for functions which it implements
17952 to always fail with ENOSYS. Some functions are actually named
17953 something starting with __ and the normal name is an alias. */
17954#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17955choke me
17956#else
17957$ac_func();
17958#endif
17959
17960; return 0; }
17961EOF
17962if { (eval echo configure:17963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17963 rm -rf conftest*
17964 eval "ac_cv_func_$ac_func=yes"
17965else
17966 echo "configure: failed program was:" >&5
17967 cat conftest.$ac_ext >&5
17968 rm -rf conftest*
17969 eval "ac_cv_func_$ac_func=no"
17970fi
17971rm -f conftest*
17972fi
17973
17974if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17975 echo "$ac_t""yes" 1>&6
17976 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17977 cat >> confdefs.h <<EOF
17978#define $ac_tr_func 1
17979EOF
17980
17981else
17982 echo "$ac_t""no" 1>&6
17983fi
17984done
17985
17986
17987ac_ext=c
17988# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17989ac_cpp='$CPP $CPPFLAGS'
17990ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17991ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17992cross_compiling=$ac_cv_prog_cc_cross
17993
17994
17995INET_LINK=
17996for ac_func in inet_addr
17997do
17998echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17999echo "configure:18000: checking for $ac_func" >&5
18000if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18001 echo $ac_n "(cached) $ac_c" 1>&6
18002else
18003 cat > conftest.$ac_ext <<EOF
18004#line 18005 "configure"
18005#include "confdefs.h"
18006/* System header to define __stub macros and hopefully few prototypes,
18007 which can conflict with char $ac_func(); below. */
18008#include <assert.h>
18009/* Override any gcc2 internal prototype to avoid an error. */
18010/* We use char because int might match the return type of a gcc2
18011 builtin and then its argument prototype would still apply. */
18012char $ac_func();
18013
18014int main() {
18015
18016/* The GNU C library defines this for functions which it implements
18017 to always fail with ENOSYS. Some functions are actually named
18018 something starting with __ and the normal name is an alias. */
18019#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18020choke me
18021#else
18022$ac_func();
18023#endif
18024
18025; return 0; }
18026EOF
18027if { (eval echo configure:18028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18028 rm -rf conftest*
18029 eval "ac_cv_func_$ac_func=yes"
18030else
18031 echo "configure: failed program was:" >&5
18032 cat conftest.$ac_ext >&5
18033 rm -rf conftest*
18034 eval "ac_cv_func_$ac_func=no"
18035fi
18036rm -f conftest*
18037fi
18038
18039if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18040 echo "$ac_t""yes" 1>&6
18041 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18042 cat >> confdefs.h <<EOF
18043#define $ac_tr_func 1
18044EOF
18045 cat >> confdefs.h <<\EOF
18046#define HAVE_INET_ADDR 1
18047EOF
18048
18049else
18050 echo "$ac_t""no" 1>&6
18051echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
18052echo "configure:18053: checking for inet_addr in -lnsl" >&5
18053ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18054if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18055 echo $ac_n "(cached) $ac_c" 1>&6
18056else
18057 ac_save_LIBS="$LIBS"
18058LIBS="-lnsl $LIBS"
18059cat > conftest.$ac_ext <<EOF
18060#line 18061 "configure"
18061#include "confdefs.h"
18062/* Override any gcc2 internal prototype to avoid an error. */
18063/* We use char because int might match the return type of a gcc2
18064 builtin and then its argument prototype would still apply. */
18065char inet_addr();
18066
18067int main() {
18068inet_addr()
18069; return 0; }
18070EOF
18071if { (eval echo configure:18072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18072 rm -rf conftest*
18073 eval "ac_cv_lib_$ac_lib_var=yes"
18074else
18075 echo "configure: failed program was:" >&5
18076 cat conftest.$ac_ext >&5
18077 rm -rf conftest*
18078 eval "ac_cv_lib_$ac_lib_var=no"
18079fi
18080rm -f conftest*
18081LIBS="$ac_save_LIBS"
18082
18083fi
18084if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18085 echo "$ac_t""yes" 1>&6
18086 INET_LINK="nsl"
18087else
18088 echo "$ac_t""no" 1>&6
18089echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
18090echo "configure:18091: checking for inet_addr in -lresolv" >&5
18091ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18092if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18093 echo $ac_n "(cached) $ac_c" 1>&6
18094else
18095 ac_save_LIBS="$LIBS"
18096LIBS="-lresolv $LIBS"
18097cat > conftest.$ac_ext <<EOF
18098#line 18099 "configure"
18099#include "confdefs.h"
18100/* Override any gcc2 internal prototype to avoid an error. */
18101/* We use char because int might match the return type of a gcc2
18102 builtin and then its argument prototype would still apply. */
18103char inet_addr();
18104
18105int main() {
18106inet_addr()
18107; return 0; }
18108EOF
18109if { (eval echo configure:18110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18110 rm -rf conftest*
18111 eval "ac_cv_lib_$ac_lib_var=yes"
18112else
18113 echo "configure: failed program was:" >&5
18114 cat conftest.$ac_ext >&5
18115 rm -rf conftest*
18116 eval "ac_cv_lib_$ac_lib_var=no"
18117fi
18118rm -f conftest*
18119LIBS="$ac_save_LIBS"
18120
18121fi
18122if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18123 echo "$ac_t""yes" 1>&6
18124 INET_LINK="resolv"
18125else
18126 echo "$ac_t""no" 1>&6
18127echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
18128echo "configure:18129: checking for inet_addr in -lsocket" >&5
18129ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18130if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18131 echo $ac_n "(cached) $ac_c" 1>&6
18132else
18133 ac_save_LIBS="$LIBS"
18134LIBS="-lsocket $LIBS"
18135cat > conftest.$ac_ext <<EOF
18136#line 18137 "configure"
18137#include "confdefs.h"
18138/* Override any gcc2 internal prototype to avoid an error. */
18139/* We use char because int might match the return type of a gcc2
18140 builtin and then its argument prototype would still apply. */
18141char inet_addr();
18142
18143int main() {
18144inet_addr()
18145; return 0; }
18146EOF
18147if { (eval echo configure:18148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18148 rm -rf conftest*
18149 eval "ac_cv_lib_$ac_lib_var=yes"
18150else
18151 echo "configure: failed program was:" >&5
18152 cat conftest.$ac_ext >&5
18153 rm -rf conftest*
18154 eval "ac_cv_lib_$ac_lib_var=no"
18155fi
18156rm -f conftest*
18157LIBS="$ac_save_LIBS"
18158
18159fi
18160if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18161 echo "$ac_t""yes" 1>&6
18162 INET_LINK="socket"
18163
18164else
18165 echo "$ac_t""no" 1>&6
18166fi
18167
18168
18169fi
18170
18171
18172fi
18173
18174
18175
18176fi
18177done
18178
18179
18180for ac_func in inet_aton
18181do
18182echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18183echo "configure:18184: checking for $ac_func" >&5
18184if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18185 echo $ac_n "(cached) $ac_c" 1>&6
18186else
18187 cat > conftest.$ac_ext <<EOF
18188#line 18189 "configure"
18189#include "confdefs.h"
18190/* System header to define __stub macros and hopefully few prototypes,
18191 which can conflict with char $ac_func(); below. */
18192#include <assert.h>
18193/* Override any gcc2 internal prototype to avoid an error. */
18194/* We use char because int might match the return type of a gcc2
18195 builtin and then its argument prototype would still apply. */
18196char $ac_func();
18197
18198int main() {
18199
18200/* The GNU C library defines this for functions which it implements
18201 to always fail with ENOSYS. Some functions are actually named
18202 something starting with __ and the normal name is an alias. */
18203#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18204choke me
18205#else
18206$ac_func();
18207#endif
18208
18209; return 0; }
18210EOF
18211if { (eval echo configure:18212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18212 rm -rf conftest*
18213 eval "ac_cv_func_$ac_func=yes"
18214else
18215 echo "configure: failed program was:" >&5
18216 cat conftest.$ac_ext >&5
18217 rm -rf conftest*
18218 eval "ac_cv_func_$ac_func=no"
18219fi
18220rm -f conftest*
18221fi
18222
18223if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18224 echo "$ac_t""yes" 1>&6
18225 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18226 cat >> confdefs.h <<EOF
18227#define $ac_tr_func 1
18228EOF
18229 cat >> confdefs.h <<\EOF
18230#define HAVE_INET_ATON 1
18231EOF
18232
18233else
18234 echo "$ac_t""no" 1>&6
18235 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
18236echo "configure:18237: checking for inet_aton in -l$INET_LINK" >&5
18237ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18238if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18239 echo $ac_n "(cached) $ac_c" 1>&6
18240else
18241 ac_save_LIBS="$LIBS"
18242LIBS="-l$INET_LINK $LIBS"
18243cat > conftest.$ac_ext <<EOF
18244#line 18245 "configure"
18245#include "confdefs.h"
18246/* Override any gcc2 internal prototype to avoid an error. */
18247/* We use char because int might match the return type of a gcc2
18248 builtin and then its argument prototype would still apply. */
18249char inet_aton();
18250
18251int main() {
18252inet_aton()
18253; return 0; }
18254EOF
18255if { (eval echo configure:18256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18256 rm -rf conftest*
18257 eval "ac_cv_lib_$ac_lib_var=yes"
18258else
18259 echo "configure: failed program was:" >&5
18260 cat conftest.$ac_ext >&5
18261 rm -rf conftest*
18262 eval "ac_cv_lib_$ac_lib_var=no"
18263fi
18264rm -f conftest*
18265LIBS="$ac_save_LIBS"
18266
18267fi
18268if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18269 echo "$ac_t""yes" 1>&6
18270 cat >> confdefs.h <<\EOF
18271#define HAVE_INET_ATON 1
18272EOF
18273
18274else
18275 echo "$ac_t""no" 1>&6
18276fi
18277
18278
18279fi
18280done
18281
18282
18283if test "x$INET_LINK" != "x"; then
18284 cat >> confdefs.h <<\EOF
18285#define HAVE_INET_ADDR 1
18286EOF
18287
18288 INET_LINK=" -l$INET_LINK"
18289fi
18290
18291fi
18292
18293
18294cat > confcache <<\EOF
18295# This file is a shell script that caches the results of configure
18296# tests run on this system so they can be shared between configure
18297# scripts and configure runs. It is not useful on other systems.
18298# If it contains results you don't want to keep, you may remove or edit it.
18299#
18300# By default, configure uses ./config.cache as the cache file,
18301# creating it if it does not exist already. You can give configure
18302# the --cache-file=FILE option to use a different cache file; that is
18303# what configure does when it calls configure scripts in
18304# subdirectories, so they share the cache.
18305# Giving --cache-file=/dev/null disables caching, for debugging configure.
18306# config.status only pays attention to the cache file if you give it the
18307# --recheck option to rerun configure.
18308#
18309EOF
18310# The following way of writing the cache mishandles newlines in values,
18311# but we know of no workaround that is simple, portable, and efficient.
18312# So, don't put newlines in cache variables' values.
18313# Ultrix sh set writes to stderr and can't be redirected directly,
18314# and sets the high bit in the cache file unless we assign to the vars.
18315(set) 2>&1 |
18316 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18317 *ac_space=\ *)
18318 # `set' does not quote correctly, so add quotes (double-quote substitution
18319 # turns \\\\ into \\, and sed turns \\ into \).
18320 sed -n \
18321 -e "s/'/'\\\\''/g" \
18322 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18323 ;;
18324 *)
18325 # `set' quotes correctly as required by POSIX, so do not add quotes.
18326 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18327 ;;
18328 esac >> confcache
18329if cmp -s $cache_file confcache; then
18330 :
18331else
18332 if test -w $cache_file; then
18333 echo "updating cache $cache_file"
18334 cat confcache > $cache_file
18335 else
18336 echo "not updating unwritable cache $cache_file"
18337 fi
18338fi
18339rm -f confcache
18340
18341
18342
18343CPP_MT_FLAG=
18344if test "$TOOLKIT" != "MSW"; then
18345
18346
18347 THREADS_LINK=
18348 THREADS_CFLAGS=
18349
18350 if test "$wxUSE_THREADS" = "yes" ; then
18351 if test "$wxUSE_WINE" = 1 ; then
18352 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
18353 wxUSE_THREADS="no"
18354 elif test "$USE_BEOS" = 1; then
18355 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
18356 wxUSE_THREADS="no"
18357 fi
18358 fi
18359
18360 if test "$wxUSE_THREADS" = "yes" ; then
18361
18362
18363 THREAD_OPTS="-pthread"
18364 case "${host}" in
18365 *-*-solaris2* | *-*-sunos4* )
18366 if test "x$GCC" = "xyes"; then
18367 THREAD_OPTS="-pthreads $THREAD_OPTS"
18368 else
18369 THREAD_OPTS="-mt $THREAD_OPTS"
18370 fi
18371 ;;
18372 *-*-freebsd*)
18373 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18374 ;;
18375 *-*-darwin* | *-*-cygwin* )
18376 THREAD_OPTS=""
18377 ;;
18378 *-*-aix*)
18379 THREAD_OPTS="pthreads"
18380 ;;
18381 esac
18382
18383 THREAD_OPTS="$THREAD_OPTS pthread none"
18384
18385 THREADS_OK=no
18386 for flag in $THREAD_OPTS; do
18387 case $flag in
18388 none)
18389 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
18390echo "configure:18391: checking whether pthreads work without any flags" >&5
18391 ;;
18392
18393 -*)
18394 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
18395echo "configure:18396: checking whether pthreads work with $flag" >&5
18396 THREADS_CFLAGS="$flag"
18397 ;;
18398
18399 *)
18400 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
18401echo "configure:18402: checking for the pthreads library -l$flag" >&5
18402 THREADS_LINK="-l$flag"
18403 ;;
18404 esac
18405
18406 save_LIBS="$LIBS"
18407 save_CFLAGS="$CFLAGS"
18408 LIBS="$THREADS_LINK $LIBS"
18409 CFLAGS="$THREADS_CFLAGS $CFLAGS"
18410
18411 cat > conftest.$ac_ext <<EOF
18412#line 18413 "configure"
18413#include "confdefs.h"
18414#include <pthread.h>
18415int main() {
18416pthread_create(0,0,0,0);
18417; return 0; }
18418EOF
18419if { (eval echo configure:18420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18420 rm -rf conftest*
18421 THREADS_OK=yes
18422else
18423 echo "configure: failed program was:" >&5
18424 cat conftest.$ac_ext >&5
18425fi
18426rm -f conftest*
18427
18428 LIBS="$save_LIBS"
18429 CFLAGS="$save_CFLAGS"
18430
18431 echo "$ac_t""$THREADS_OK" 1>&6
18432 if test "x$THREADS_OK" = "xyes"; then
18433 break;
18434 fi
18435
18436 THREADS_LINK=""
18437 THREADS_CFLAGS=""
18438 done
18439
18440 if test "x$THREADS_OK" != "xyes"; then
18441 wxUSE_THREADS=no
18442 echo "configure: warning: No thread support on this system... disabled" 1>&2
18443 else
18444 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
18445 LIBS="$THREADS_LINK $LIBS"
18446
18447 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
18448echo "configure:18449: checking if more special flags are required for pthreads" >&5
18449 flag=no
18450 case "${host}" in
18451 *-aix*)
18452 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
18453 flag="-D_THREAD_SAFE"
18454 ;;
18455 *-freebsd*)
18456 flag="-D_THREAD_SAFE"
18457 ;;
18458 *-hp-hpux* )
18459 flag="-D_REENTRANT"
18460 ;;
18461 *solaris* | alpha*-osf*)
18462 flag="-D_REENTRANT"
18463 ;;
18464 esac
18465 echo "$ac_t""${flag}" 1>&6
18466 if test "x$flag" != xno; then
18467 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
18468 fi
18469
18470 if test "x$THREADS_CFLAGS" != "x"; then
18471 CFLAGS="$CFLAGS $THREADS_CFLAGS"
18472 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
18473 fi
18474 fi
18475 fi
18476
18477 if test "$wxUSE_THREADS" = "yes" ; then
18478 for ac_func in thr_setconcurrency
18479do
18480echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18481echo "configure:18482: checking for $ac_func" >&5
18482if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18483 echo $ac_n "(cached) $ac_c" 1>&6
18484else
18485 cat > conftest.$ac_ext <<EOF
18486#line 18487 "configure"
18487#include "confdefs.h"
18488/* System header to define __stub macros and hopefully few prototypes,
18489 which can conflict with char $ac_func(); below. */
18490#include <assert.h>
18491/* Override any gcc2 internal prototype to avoid an error. */
18492/* We use char because int might match the return type of a gcc2
18493 builtin and then its argument prototype would still apply. */
18494char $ac_func();
18495
18496int main() {
18497
18498/* The GNU C library defines this for functions which it implements
18499 to always fail with ENOSYS. Some functions are actually named
18500 something starting with __ and the normal name is an alias. */
18501#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18502choke me
18503#else
18504$ac_func();
18505#endif
18506
18507; return 0; }
18508EOF
18509if { (eval echo configure:18510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18510 rm -rf conftest*
18511 eval "ac_cv_func_$ac_func=yes"
18512else
18513 echo "configure: failed program was:" >&5
18514 cat conftest.$ac_ext >&5
18515 rm -rf conftest*
18516 eval "ac_cv_func_$ac_func=no"
18517fi
18518rm -f conftest*
18519fi
18520
18521if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18522 echo "$ac_t""yes" 1>&6
18523 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18524 cat >> confdefs.h <<EOF
18525#define $ac_tr_func 1
18526EOF
18527
18528else
18529 echo "$ac_t""no" 1>&6
18530fi
18531done
18532
18533
18534 for ac_hdr in sched.h
18535do
18536ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18537echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18538echo "configure:18539: checking for $ac_hdr" >&5
18539if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18540 echo $ac_n "(cached) $ac_c" 1>&6
18541else
18542 cat > conftest.$ac_ext <<EOF
18543#line 18544 "configure"
18544#include "confdefs.h"
18545#include <$ac_hdr>
18546EOF
18547ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18548{ (eval echo configure:18549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18549ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18550if test -z "$ac_err"; then
18551 rm -rf conftest*
18552 eval "ac_cv_header_$ac_safe=yes"
18553else
18554 echo "$ac_err" >&5
18555 echo "configure: failed program was:" >&5
18556 cat conftest.$ac_ext >&5
18557 rm -rf conftest*
18558 eval "ac_cv_header_$ac_safe=no"
18559fi
18560rm -f conftest*
18561fi
18562if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18563 echo "$ac_t""yes" 1>&6
18564 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18565 cat >> confdefs.h <<EOF
18566#define $ac_tr_hdr 1
18567EOF
18568
18569else
18570 echo "$ac_t""no" 1>&6
18571fi
18572done
18573
18574 if test "$ac_cv_header_sched_h" = "yes"; then
18575 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
18576echo "configure:18577: checking for sched_yield" >&5
18577if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
18578 echo $ac_n "(cached) $ac_c" 1>&6
18579else
18580 cat > conftest.$ac_ext <<EOF
18581#line 18582 "configure"
18582#include "confdefs.h"
18583/* System header to define __stub macros and hopefully few prototypes,
18584 which can conflict with char sched_yield(); below. */
18585#include <assert.h>
18586/* Override any gcc2 internal prototype to avoid an error. */
18587/* We use char because int might match the return type of a gcc2
18588 builtin and then its argument prototype would still apply. */
18589char sched_yield();
18590
18591int main() {
18592
18593/* The GNU C library defines this for functions which it implements
18594 to always fail with ENOSYS. Some functions are actually named
18595 something starting with __ and the normal name is an alias. */
18596#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
18597choke me
18598#else
18599sched_yield();
18600#endif
18601
18602; return 0; }
18603EOF
18604if { (eval echo configure:18605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18605 rm -rf conftest*
18606 eval "ac_cv_func_sched_yield=yes"
18607else
18608 echo "configure: failed program was:" >&5
18609 cat conftest.$ac_ext >&5
18610 rm -rf conftest*
18611 eval "ac_cv_func_sched_yield=no"
18612fi
18613rm -f conftest*
18614fi
18615
18616if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
18617 echo "$ac_t""yes" 1>&6
18618 cat >> confdefs.h <<\EOF
18619#define HAVE_SCHED_YIELD 1
18620EOF
18621
18622else
18623 echo "$ac_t""no" 1>&6
18624
18625 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
18626echo "configure:18627: checking for sched_yield in -lposix4" >&5
18627ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
18628if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18629 echo $ac_n "(cached) $ac_c" 1>&6
18630else
18631 ac_save_LIBS="$LIBS"
18632LIBS="-lposix4 $LIBS"
18633cat > conftest.$ac_ext <<EOF
18634#line 18635 "configure"
18635#include "confdefs.h"
18636/* Override any gcc2 internal prototype to avoid an error. */
18637/* We use char because int might match the return type of a gcc2
18638 builtin and then its argument prototype would still apply. */
18639char sched_yield();
18640
18641int main() {
18642sched_yield()
18643; return 0; }
18644EOF
18645if { (eval echo configure:18646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18646 rm -rf conftest*
18647 eval "ac_cv_lib_$ac_lib_var=yes"
18648else
18649 echo "configure: failed program was:" >&5
18650 cat conftest.$ac_ext >&5
18651 rm -rf conftest*
18652 eval "ac_cv_lib_$ac_lib_var=no"
18653fi
18654rm -f conftest*
18655LIBS="$ac_save_LIBS"
18656
18657fi
18658if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18659 echo "$ac_t""yes" 1>&6
18660 cat >> confdefs.h <<\EOF
18661#define HAVE_SCHED_YIELD 1
18662EOF
18663 POSIX4_LINK=" -lposix4"
18664else
18665 echo "$ac_t""no" 1>&6
18666echo "configure: warning: wxThread::Yield will not work properly" 1>&2
18667
18668fi
18669
18670
18671
18672fi
18673
18674 fi
18675
18676 HAVE_PRIOR_FUNCS=0
18677 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
18678echo "configure:18679: checking for pthread_attr_getschedpolicy" >&5
18679if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
18680 echo $ac_n "(cached) $ac_c" 1>&6
18681else
18682 cat > conftest.$ac_ext <<EOF
18683#line 18684 "configure"
18684#include "confdefs.h"
18685/* System header to define __stub macros and hopefully few prototypes,
18686 which can conflict with char pthread_attr_getschedpolicy(); below. */
18687#include <assert.h>
18688/* Override any gcc2 internal prototype to avoid an error. */
18689/* We use char because int might match the return type of a gcc2
18690 builtin and then its argument prototype would still apply. */
18691char pthread_attr_getschedpolicy();
18692
18693int main() {
18694
18695/* The GNU C library defines this for functions which it implements
18696 to always fail with ENOSYS. Some functions are actually named
18697 something starting with __ and the normal name is an alias. */
18698#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
18699choke me
18700#else
18701pthread_attr_getschedpolicy();
18702#endif
18703
18704; return 0; }
18705EOF
18706if { (eval echo configure:18707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18707 rm -rf conftest*
18708 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
18709else
18710 echo "configure: failed program was:" >&5
18711 cat conftest.$ac_ext >&5
18712 rm -rf conftest*
18713 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
18714fi
18715rm -f conftest*
18716fi
18717
18718if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
18719 echo "$ac_t""yes" 1>&6
18720 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
18721echo "configure:18722: checking for pthread_attr_setschedparam" >&5
18722if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
18723 echo $ac_n "(cached) $ac_c" 1>&6
18724else
18725 cat > conftest.$ac_ext <<EOF
18726#line 18727 "configure"
18727#include "confdefs.h"
18728/* System header to define __stub macros and hopefully few prototypes,
18729 which can conflict with char pthread_attr_setschedparam(); below. */
18730#include <assert.h>
18731/* Override any gcc2 internal prototype to avoid an error. */
18732/* We use char because int might match the return type of a gcc2
18733 builtin and then its argument prototype would still apply. */
18734char pthread_attr_setschedparam();
18735
18736int main() {
18737
18738/* The GNU C library defines this for functions which it implements
18739 to always fail with ENOSYS. Some functions are actually named
18740 something starting with __ and the normal name is an alias. */
18741#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
18742choke me
18743#else
18744pthread_attr_setschedparam();
18745#endif
18746
18747; return 0; }
18748EOF
18749if { (eval echo configure:18750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18750 rm -rf conftest*
18751 eval "ac_cv_func_pthread_attr_setschedparam=yes"
18752else
18753 echo "configure: failed program was:" >&5
18754 cat conftest.$ac_ext >&5
18755 rm -rf conftest*
18756 eval "ac_cv_func_pthread_attr_setschedparam=no"
18757fi
18758rm -f conftest*
18759fi
18760
18761if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
18762 echo "$ac_t""yes" 1>&6
18763 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
18764echo "configure:18765: checking for sched_get_priority_max" >&5
18765if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
18766 echo $ac_n "(cached) $ac_c" 1>&6
18767else
18768 cat > conftest.$ac_ext <<EOF
18769#line 18770 "configure"
18770#include "confdefs.h"
18771/* System header to define __stub macros and hopefully few prototypes
18772else
18773 echo "$ac_t""no" 1>&6
18774which can conflict with char sched_get_priority_max(); below. */
18775#include <assert.h>
18776/* Override any gcc2 internal prototype to avoid an error. */
18777/* We use char because int might match the return type of a gcc2
18778 builtin and then its argument prototype would still apply. */
18779char sched_get_priority_max();
18780
18781int main() {
18782
18783/* The GNU C library defines this for functions which it implements
18784 to always fail with ENOSYS. Some functions are actually named
18785 something starting with __ and the normal name is an alias. */
18786#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
18787choke me
18788#else
18789sched_get_priority_max();
18790#endif
18791
18792; return 0; }
18793EOF
18794if { (eval echo configure:18795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18795 rm -rf conftest*
18796 eval "ac_cv_func_sched_get_priority_max=yes"
18797else
18798 echo "configure: failed program was:" >&5
18799 cat conftest.$ac_ext >&5
18800 rm -rf conftest*
18801 eval "ac_cv_func_sched_get_priority_max=no"
18802fi
18803rm -f conftest*
18804fi
18805
18806if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
18807 echo "$ac_t""yes" 1>&6
18808 HAVE_PRIOR_FUNCS=1
18809else
18810 echo "$ac_t""no" 1>&6
18811echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
18812echo "configure:18813: checking for sched_get_priority_max in -lposix4" >&5
18813ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
18814if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18815 echo $ac_n "(cached) $ac_c" 1>&6
18816else
18817 ac_save_LIBS="$LIBS"
18818LIBS="-lposix4 $LIBS"
18819cat > conftest.$ac_ext <<EOF
18820#line 18821 "configure"
18821#include "confdefs.h"
18822/* Override any gcc2 internal prototype to avoid an error. */
18823/* We use char because int might match the return type of a gcc2
18824 builtin and then its argument prototype would still apply. */
18825char sched_get_priority_max();
18826
18827int main() {
18828sched_get_priority_max()
18829; return 0; }
18830EOF
18831if { (eval echo configure:18832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18832 rm -rf conftest*
18833 eval "ac_cv_lib_$ac_lib_var=yes"
18834else
18835 echo "configure: failed program was:" >&5
18836 cat conftest.$ac_ext >&5
18837 rm -rf conftest*
18838 eval "ac_cv_lib_$ac_lib_var=no"
18839fi
18840rm -f conftest*
18841LIBS="$ac_save_LIBS"
18842
18843fi
18844if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18845 echo "$ac_t""yes" 1>&6
18846
18847 HAVE_PRIOR_FUNCS=1
18848 POSIX4_LINK=" -lposix4"
18849
18850else
18851 echo "$ac_t""no" 1>&6
18852fi
18853
18854
18855fi
18856
18857
18858else
18859 echo "$ac_t""no" 1>&6
18860fi
18861
18862
18863fi
18864
18865
18866 if test "$HAVE_PRIOR_FUNCS" = 1; then
18867 cat >> confdefs.h <<\EOF
18868#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
18869EOF
18870
18871 else
18872 echo "configure: warning: Setting thread priority will not work" 1>&2
18873 fi
18874
18875 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
18876echo "configure:18877: checking for pthread_cancel" >&5
18877if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
18878 echo $ac_n "(cached) $ac_c" 1>&6
18879else
18880 cat > conftest.$ac_ext <<EOF
18881#line 18882 "configure"
18882#include "confdefs.h"
18883/* System header to define __stub macros and hopefully few prototypes,
18884 which can conflict with char pthread_cancel(); below. */
18885#include <assert.h>
18886/* Override any gcc2 internal prototype to avoid an error. */
18887/* We use char because int might match the return type of a gcc2
18888 builtin and then its argument prototype would still apply. */
18889char pthread_cancel();
18890
18891int main() {
18892
18893/* The GNU C library defines this for functions which it implements
18894 to always fail with ENOSYS. Some functions are actually named
18895 something starting with __ and the normal name is an alias. */
18896#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
18897choke me
18898#else
18899pthread_cancel();
18900#endif
18901
18902; return 0; }
18903EOF
18904if { (eval echo configure:18905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18905 rm -rf conftest*
18906 eval "ac_cv_func_pthread_cancel=yes"
18907else
18908 echo "configure: failed program was:" >&5
18909 cat conftest.$ac_ext >&5
18910 rm -rf conftest*
18911 eval "ac_cv_func_pthread_cancel=no"
18912fi
18913rm -f conftest*
18914fi
18915
18916if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
18917 echo "$ac_t""yes" 1>&6
18918 cat >> confdefs.h <<\EOF
18919#define HAVE_PTHREAD_CANCEL 1
18920EOF
18921
18922else
18923 echo "$ac_t""no" 1>&6
18924echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
18925fi
18926
18927
18928 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
18929echo "configure:18930: checking for pthread_cleanup_push/pop" >&5
18930if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
18931 echo $ac_n "(cached) $ac_c" 1>&6
18932else
18933
18934 cat > conftest.$ac_ext <<EOF
18935#line 18936 "configure"
18936#include "confdefs.h"
18937#include <pthread.h>
18938int main() {
18939
18940 pthread_cleanup_push(NULL, NULL);
18941 pthread_cleanup_pop(0);
18942
18943; return 0; }
18944EOF
18945if { (eval echo configure:18946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18946 rm -rf conftest*
18947
18948 wx_cv_func_pthread_cleanup_push=yes
18949
18950else
18951 echo "configure: failed program was:" >&5
18952 cat conftest.$ac_ext >&5
18953 rm -rf conftest*
18954
18955 wx_cv_func_pthread_cleanup_push=no
18956
18957fi
18958rm -f conftest*
18959
18960fi
18961
18962echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
18963
18964 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
18965 cat >> confdefs.h <<\EOF
18966#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
18967EOF
18968
18969 fi
18970
18971
18972 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
18973echo "configure:18974: checking for pthread_mutexattr_t" >&5
18974if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
18975 echo $ac_n "(cached) $ac_c" 1>&6
18976else
18977
18978 cat > conftest.$ac_ext <<EOF
18979#line 18980 "configure"
18980#include "confdefs.h"
18981#include <pthread.h>
18982int main() {
18983
18984 pthread_mutexattr_t attr;
18985 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
18986
18987; return 0; }
18988EOF
18989if { (eval echo configure:18990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18990 rm -rf conftest*
18991
18992 wx_cv_type_pthread_mutexattr_t=yes
18993
18994else
18995 echo "configure: failed program was:" >&5
18996 cat conftest.$ac_ext >&5
18997 rm -rf conftest*
18998
18999 wx_cv_type_pthread_mutexattr_t=no
19000
19001
19002fi
19003rm -f conftest*
19004
19005fi
19006
19007echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
19008
19009 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
19010 cat >> confdefs.h <<\EOF
19011#define HAVE_PTHREAD_MUTEXATTR_T 1
19012EOF
19013
19014 else
19015 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
19016echo "configure:19017: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
19017if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19018 echo $ac_n "(cached) $ac_c" 1>&6
19019else
19020
19021 cat > conftest.$ac_ext <<EOF
19022#line 19023 "configure"
19023#include "confdefs.h"
19024#include <pthread.h>
19025int main() {
19026
19027 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
19028
19029; return 0; }
19030EOF
19031if { (eval echo configure:19032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19032 rm -rf conftest*
19033
19034 wx_cv_type_pthread_rec_mutex_init=yes
19035
19036else
19037 echo "configure: failed program was:" >&5
19038 cat conftest.$ac_ext >&5
19039 rm -rf conftest*
19040
19041 wx_cv_type_pthread_rec_mutex_init=no
19042
19043
19044fi
19045rm -f conftest*
19046
19047fi
19048
19049echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
19050 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
19051 cat >> confdefs.h <<\EOF
19052#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
19053EOF
19054
19055 else
19056 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
19057 fi
19058 fi
19059 fi
19060
19061else
19062 if test "$wxUSE_THREADS" = "yes" ; then
19063 case "${host}" in
19064 *-*-mingw32* )
19065 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
19066echo "configure:19067: checking if compiler supports -mthreads" >&5
19067if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19068 echo $ac_n "(cached) $ac_c" 1>&6
19069else
19070
19071 CFLAGS_OLD="$CFLAGS"
19072 CFLAGS="$CFLAGS -mthreads"
19073 cat > conftest.$ac_ext <<EOF
19074#line 19075 "configure"
19075#include "confdefs.h"
19076
19077int main() {
19078
19079; return 0; }
19080EOF
19081if { (eval echo configure:19082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19082 rm -rf conftest*
19083 wx_cv_cflags_mthread=yes
19084else
19085 echo "configure: failed program was:" >&5
19086 cat conftest.$ac_ext >&5
19087 rm -rf conftest*
19088 wx_cv_cflags_mthread=no
19089
19090fi
19091rm -f conftest*
19092
19093
19094fi
19095
19096echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19097
19098 if test "$wx_cv_cflags_mthread" = "yes"; then
19099 CXXFLAGS="$CXXFLAGS -mthreads"
19100 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19101 LDFLAGS="$LDFLAGS -mthreads"
19102 else
19103 CFLAGS="$CFLAGS_OLD"
19104 fi
19105 ;;
19106 esac
19107 fi
19108fi
19109
19110if test "$wxUSE_THREADS" = "yes"; then
19111 cat >> confdefs.h <<\EOF
19112#define wxUSE_THREADS 1
19113EOF
19114
19115
19116 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
19117else
19118 if test "$ac_cv_func_strtok_r" = "yes"; then
19119 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
19120echo "configure:19121: checking if -D_REENTRANT is needed" >&5
19121 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19122 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
19123 echo "$ac_t""yes" 1>&6
19124 else
19125 echo "$ac_t""no" 1>&6
19126 fi
19127 fi
19128fi
19129
19130if test "$WXGTK20" = 1 ; then
19131 cat >> confdefs.h <<EOF
19132#define __WXGTK20__ $WXGTK20
19133EOF
19134
19135 WXGTK12=1
19136fi
19137
19138if test "$WXGTK12" = 1 ; then
19139 cat >> confdefs.h <<EOF
19140#define __WXGTK12__ $WXGTK12
19141EOF
19142
19143fi
19144
19145if test "$WXGTK127" = 1 ; then
19146 cat >> confdefs.h <<EOF
19147#define __WXGTK127__ $WXGTK127
19148EOF
19149
19150fi
19151
19152WXDEBUG=
19153
19154if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19155 WXDEBUG="-g"
19156 wxUSE_OPTIMISE=no
19157fi
19158
19159if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19160 wxUSE_DEBUG_INFO=yes
19161 WXDEBUG="-ggdb"
19162fi
19163
19164if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
19165 cat >> confdefs.h <<\EOF
19166#define WXDEBUG 1
19167EOF
19168
19169 WXDEBUG_DEFINE="-D__WXDEBUG__"
19170else
19171 if test "$wxUSE_GTK" = 1 ; then
19172 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19173 fi
19174fi
19175
19176if test "$wxUSE_MEM_TRACING" = "yes" ; then
19177 cat >> confdefs.h <<\EOF
19178#define wxUSE_MEMORY_TRACING 1
19179EOF
19180
19181 cat >> confdefs.h <<\EOF
19182#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
19183EOF
19184
19185 cat >> confdefs.h <<\EOF
19186#define wxUSE_DEBUG_NEW_ALWAYS 1
19187EOF
19188
19189 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19190fi
19191
19192if test "$wxUSE_DMALLOC" = "yes" ; then
19193 DMALLOC_LIBS="-ldmalloc"
19194fi
19195
19196PROFILE=
19197if test "$wxUSE_PROFILE" = "yes" ; then
19198 PROFILE=" -pg"
19199fi
19200
19201CODE_GEN_FLAGS=
19202CODE_GEN_FLAGS_CXX=
19203if test "$GCC" = "yes" ; then
19204 if test "$wxUSE_NO_RTTI" = "yes" ; then
19205 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
19206 fi
19207 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19208 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19209 fi
19210 if test "$wxUSE_PERMISSIVE" = "yes" ; then
19211 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19212 fi
19213 if test "$USE_WIN32" = 1 ; then
19214 # I'm not even really sure what this was ever added to solve,
19215 # but someone added it for mingw native builds, so I guess
19216 # they had a reason, right??
19217 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19218 fi
19219
19220 case "${host}" in
19221 powerpc*-*-aix* )
19222 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19223 ;;
19224 *-hppa* )
19225 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19226 ;;
19227 esac
19228fi
19229
19230if test "$wxUSE_OPTIMISE" = "no" ; then
19231 OPTIMISE=
19232else
19233 if test "$GCC" = yes ; then
19234 OPTIMISE="-O2"
19235 case "${host}" in
19236 i586-*-*|i686-*-* )
19237 OPTIMISE="${OPTIMISE} "
19238 ;;
19239 esac
19240 else
19241 OPTIMISE="-O"
19242 fi
19243fi
19244
19245if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
19246 cat >> confdefs.h <<\EOF
19247#define WXWIN_COMPATIBILITY_2 1
19248EOF
19249
19250
19251 WXWIN_COMPATIBILITY_2_2="yes"
19252fi
19253
19254if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
19255 cat >> confdefs.h <<\EOF
19256#define WXWIN_COMPATIBILITY_2_2 1
19257EOF
19258
19259fi
19260
19261
19262if test "$wxUSE_GUI" = "yes"; then
19263 cat >> confdefs.h <<\EOF
19264#define wxUSE_GUI 1
19265EOF
19266
19267
19268 else
19269 cat >> confdefs.h <<\EOF
19270#define wxUSE_NOGUI 1
19271EOF
19272
19273fi
19274
19275
19276if test "$wxUSE_UNIX" = "yes"; then
19277 cat >> confdefs.h <<\EOF
19278#define wxUSE_UNIX 1
19279EOF
19280
19281fi
19282
19283
19284if test "$wxUSE_APPLE_IEEE" = "yes"; then
19285 cat >> confdefs.h <<\EOF
19286#define wxUSE_APPLE_IEEE 1
19287EOF
19288
19289fi
19290
19291if test "$wxUSE_TIMER" = "yes"; then
19292 cat >> confdefs.h <<\EOF
19293#define wxUSE_TIMER 1
19294EOF
19295
19296fi
19297
19298if test "$wxUSE_WAVE" = "yes"; then
19299 cat >> confdefs.h <<\EOF
19300#define wxUSE_WAVE 1
19301EOF
19302
19303fi
19304
19305if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
19306 cat >> confdefs.h <<\EOF
19307#define wxUSE_CMDLINE_PARSER 1
19308EOF
19309
19310fi
19311
19312if test "$wxUSE_STOPWATCH" = "yes"; then
19313 cat >> confdefs.h <<\EOF
19314#define wxUSE_STOPWATCH 1
19315EOF
19316
19317fi
19318
19319if test "$wxUSE_DATETIME" = "yes"; then
19320 cat >> confdefs.h <<\EOF
19321#define wxUSE_DATETIME 1
19322EOF
19323
19324fi
19325
19326if test "$wxUSE_TIMEDATE" = "yes"; then
19327 cat >> confdefs.h <<\EOF
19328#define wxUSE_TIMEDATE 1
19329EOF
19330
19331fi
19332
19333if test "$wxUSE_FILE" = "yes"; then
19334 cat >> confdefs.h <<\EOF
19335#define wxUSE_FILE 1
19336EOF
19337
19338fi
19339
19340if test "$wxUSE_FFILE" = "yes"; then
19341 cat >> confdefs.h <<\EOF
19342#define wxUSE_FFILE 1
19343EOF
19344
19345fi
19346
19347if test "$wxUSE_FILESYSTEM" = "yes"; then
19348 cat >> confdefs.h <<\EOF
19349#define wxUSE_FILESYSTEM 1
19350EOF
19351
19352fi
19353
19354if test "$wxUSE_FS_INET" = "yes"; then
19355 cat >> confdefs.h <<\EOF
19356#define wxUSE_FS_INET 1
19357EOF
19358
19359fi
19360
19361if test "$wxUSE_FS_ZIP" = "yes"; then
19362 cat >> confdefs.h <<\EOF
19363#define wxUSE_FS_ZIP 1
19364EOF
19365
19366fi
19367
19368if test "$wxUSE_ZIPSTREAM" = "yes"; then
19369 cat >> confdefs.h <<\EOF
19370#define wxUSE_ZIPSTREAM 1
19371EOF
19372
19373fi
19374
19375if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
19376 cat >> confdefs.h <<\EOF
19377#define wxUSE_ON_FATAL_EXCEPTION 1
19378EOF
19379
19380fi
19381
19382if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
19383 cat >> confdefs.h <<\EOF
19384#define wxUSE_SNGLINST_CHECKER 1
19385EOF
19386
19387fi
19388
19389if test "$wxUSE_BUSYINFO" = "yes"; then
19390 cat >> confdefs.h <<\EOF
19391#define wxUSE_BUSYINFO 1
19392EOF
19393
19394fi
19395
19396if test "$wxUSE_STD_IOSTREAM" = "yes"; then
19397 cat >> confdefs.h <<\EOF
19398#define wxUSE_STD_IOSTREAM 1
19399EOF
19400
19401fi
19402
19403if test "$wxUSE_TEXTBUFFER" = "yes"; then
19404 cat >> confdefs.h <<\EOF
19405#define wxUSE_TEXTBUFFER 1
19406EOF
19407
19408fi
19409
19410if test "$wxUSE_TEXTFILE" = "yes"; then
19411 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
19412 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
19413 else
19414 cat >> confdefs.h <<\EOF
19415#define wxUSE_TEXTFILE 1
19416EOF
19417
19418 fi
19419fi
19420
19421if test "$wxUSE_CONFIG" = "yes" ; then
19422 if test "$wxUSE_TEXTFILE" != "yes"; then
19423 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
19424 else
19425 cat >> confdefs.h <<\EOF
19426#define wxUSE_CONFIG 1
19427EOF
19428
19429 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
19430 fi
19431fi
19432
19433if test "$wxUSE_INTL" = "yes" ; then
19434 if test "$wxUSE_FILE" != "yes"; then
19435 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
19436 else
19437 cat >> confdefs.h <<\EOF
19438#define wxUSE_INTL 1
19439EOF
19440
19441 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
19442 GUIDIST="$GUIDIST INTL_DIST"
19443 fi
19444fi
19445
19446if test "$wxUSE_LOG" = "yes"; then
19447 cat >> confdefs.h <<\EOF
19448#define wxUSE_LOG 1
19449EOF
19450
19451
19452 if test "$wxUSE_LOGGUI" = "yes"; then
19453 cat >> confdefs.h <<\EOF
19454#define wxUSE_LOGGUI 1
19455EOF
19456
19457 fi
19458
19459 if test "$wxUSE_LOGWINDOW" = "yes"; then
19460 cat >> confdefs.h <<\EOF
19461#define wxUSE_LOGWINDOW 1
19462EOF
19463
19464 fi
19465
19466 if test "$wxUSE_LOGDIALOG" = "yes"; then
19467 cat >> confdefs.h <<\EOF
19468#define wxUSE_LOG_DIALOG 1
19469EOF
19470
19471 fi
19472fi
19473
19474if test "$wxUSE_LONGLONG" = "yes"; then
19475 cat >> confdefs.h <<\EOF
19476#define wxUSE_LONGLONG 1
19477EOF
19478
19479fi
19480
19481if test "$wxUSE_GEOMETRY" = "yes"; then
19482 cat >> confdefs.h <<\EOF
19483#define wxUSE_GEOMETRY 1
19484EOF
19485
19486fi
19487
19488if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
19489 cat >> confdefs.h <<\EOF
19490#define wxUSE_DIALUP_MANAGER 1
19491EOF
19492
19493 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
19494fi
19495
19496if test "$wxUSE_STREAMS" = "yes" ; then
19497 cat >> confdefs.h <<\EOF
19498#define wxUSE_STREAMS 1
19499EOF
19500
19501fi
19502
19503
19504if test "$wxUSE_DATETIME" = "yes"; then
19505 for ac_func in strptime
19506do
19507echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19508echo "configure:19509: checking for $ac_func" >&5
19509if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19510 echo $ac_n "(cached) $ac_c" 1>&6
19511else
19512 cat > conftest.$ac_ext <<EOF
19513#line 19514 "configure"
19514#include "confdefs.h"
19515/* System header to define __stub macros and hopefully few prototypes,
19516 which can conflict with char $ac_func(); below. */
19517#include <assert.h>
19518/* Override any gcc2 internal prototype to avoid an error. */
19519/* We use char because int might match the return type of a gcc2
19520 builtin and then its argument prototype would still apply. */
19521char $ac_func();
19522
19523int main() {
19524
19525/* The GNU C library defines this for functions which it implements
19526 to always fail with ENOSYS. Some functions are actually named
19527 something starting with __ and the normal name is an alias. */
19528#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19529choke me
19530#else
19531$ac_func();
19532#endif
19533
19534; return 0; }
19535EOF
19536if { (eval echo configure:19537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19537 rm -rf conftest*
19538 eval "ac_cv_func_$ac_func=yes"
19539else
19540 echo "configure: failed program was:" >&5
19541 cat conftest.$ac_ext >&5
19542 rm -rf conftest*
19543 eval "ac_cv_func_$ac_func=no"
19544fi
19545rm -f conftest*
19546fi
19547
19548if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19549 echo "$ac_t""yes" 1>&6
19550 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19551 cat >> confdefs.h <<EOF
19552#define $ac_tr_func 1
19553EOF
19554
19555else
19556 echo "$ac_t""no" 1>&6
19557fi
19558done
19559
19560
19561 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
19562echo "configure:19563: checking for timezone variable in <time.h>" >&5
19563if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
19564 echo $ac_n "(cached) $ac_c" 1>&6
19565else
19566
19567 cat > conftest.$ac_ext <<EOF
19568#line 19569 "configure"
19569#include "confdefs.h"
19570
19571 #include <time.h>
19572
19573int main() {
19574
19575 int tz;
19576 tz = timezone;
19577
19578; return 0; }
19579EOF
19580if { (eval echo configure:19581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19581 rm -rf conftest*
19582
19583 wx_cv_var_timezone=timezone
19584
19585else
19586 echo "configure: failed program was:" >&5
19587 cat conftest.$ac_ext >&5
19588 rm -rf conftest*
19589
19590 cat > conftest.$ac_ext <<EOF
19591#line 19592 "configure"
19592#include "confdefs.h"
19593
19594 #include <time.h>
19595
19596int main() {
19597
19598 int tz;
19599 tz = _timezone;
19600
19601; return 0; }
19602EOF
19603if { (eval echo configure:19604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19604 rm -rf conftest*
19605
19606 wx_cv_var_timezone=_timezone
19607
19608else
19609 echo "configure: failed program was:" >&5
19610 cat conftest.$ac_ext >&5
19611 rm -rf conftest*
19612
19613 cat > conftest.$ac_ext <<EOF
19614#line 19615 "configure"
19615#include "confdefs.h"
19616
19617 #include <time.h>
19618
19619int main() {
19620
19621 int tz;
19622 tz = __timezone;
19623
19624; return 0; }
19625EOF
19626if { (eval echo configure:19627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19627 rm -rf conftest*
19628
19629 wx_cv_var_timezone=__timezone
19630
19631else
19632 echo "configure: failed program was:" >&5
19633 cat conftest.$ac_ext >&5
19634 rm -rf conftest*
19635
19636 if test "$USE_DOS" = 0 ; then
19637 echo "configure: warning: no timezone variable" 1>&2
19638 fi
19639
19640
19641fi
19642rm -f conftest*
19643
19644
19645fi
19646rm -f conftest*
19647
19648
19649fi
19650rm -f conftest*
19651
19652
19653fi
19654
19655echo "$ac_t""$wx_cv_var_timezone" 1>&6
19656
19657 if test "x$wx_cv_var_timezone" != x ; then
19658 cat >> confdefs.h <<EOF
19659#define WX_TIMEZONE $wx_cv_var_timezone
19660EOF
19661
19662 fi
19663
19664 for ac_func in localtime
19665do
19666echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19667echo "configure:19668: checking for $ac_func" >&5
19668if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19669 echo $ac_n "(cached) $ac_c" 1>&6
19670else
19671 cat > conftest.$ac_ext <<EOF
19672#line 19673 "configure"
19673#include "confdefs.h"
19674/* System header to define __stub macros and hopefully few prototypes,
19675 which can conflict with char $ac_func(); below. */
19676#include <assert.h>
19677/* Override any gcc2 internal prototype to avoid an error. */
19678/* We use char because int might match the return type of a gcc2
19679 builtin and then its argument prototype would still apply. */
19680char $ac_func();
19681
19682int main() {
19683
19684/* The GNU C library defines this for functions which it implements
19685 to always fail with ENOSYS. Some functions are actually named
19686 something starting with __ and the normal name is an alias. */
19687#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19688choke me
19689#else
19690$ac_func();
19691#endif
19692
19693; return 0; }
19694EOF
19695if { (eval echo configure:19696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19696 rm -rf conftest*
19697 eval "ac_cv_func_$ac_func=yes"
19698else
19699 echo "configure: failed program was:" >&5
19700 cat conftest.$ac_ext >&5
19701 rm -rf conftest*
19702 eval "ac_cv_func_$ac_func=no"
19703fi
19704rm -f conftest*
19705fi
19706
19707if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19708 echo "$ac_t""yes" 1>&6
19709 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19710 cat >> confdefs.h <<EOF
19711#define $ac_tr_func 1
19712EOF
19713
19714else
19715 echo "$ac_t""no" 1>&6
19716fi
19717done
19718
19719
19720 if test "$ac_cv_func_localtime" = "yes"; then
19721 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
19722echo "configure:19723: checking for tm_gmtoff in struct tm" >&5
19723if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
19724 echo $ac_n "(cached) $ac_c" 1>&6
19725else
19726
19727 cat > conftest.$ac_ext <<EOF
19728#line 19729 "configure"
19729#include "confdefs.h"
19730
19731 #include <time.h>
19732
19733int main() {
19734
19735 struct tm tm;
19736 tm.tm_gmtoff++;
19737
19738; return 0; }
19739EOF
19740if { (eval echo configure:19741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19741 rm -rf conftest*
19742
19743 wx_cv_struct_tm_has_gmtoff=yes
19744
19745else
19746 echo "configure: failed program was:" >&5
19747 cat conftest.$ac_ext >&5
19748 rm -rf conftest*
19749 wx_cv_struct_tm_has_gmtoff=no
19750
19751fi
19752rm -f conftest*
19753
19754fi
19755
19756echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
19757 fi
19758
19759 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
19760 cat >> confdefs.h <<\EOF
19761#define WX_GMTOFF_IN_TM 1
19762EOF
19763
19764 fi
19765
19766 for ac_func in gettimeofday ftime
19767do
19768echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19769echo "configure:19770: checking for $ac_func" >&5
19770if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19771 echo $ac_n "(cached) $ac_c" 1>&6
19772else
19773 cat > conftest.$ac_ext <<EOF
19774#line 19775 "configure"
19775#include "confdefs.h"
19776/* System header to define __stub macros and hopefully few prototypes,
19777 which can conflict with char $ac_func(); below. */
19778#include <assert.h>
19779/* Override any gcc2 internal prototype to avoid an error. */
19780/* We use char because int might match the return type of a gcc2
19781 builtin and then its argument prototype would still apply. */
19782char $ac_func();
19783
19784int main() {
19785
19786/* The GNU C library defines this for functions which it implements
19787 to always fail with ENOSYS. Some functions are actually named
19788 something starting with __ and the normal name is an alias. */
19789#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19790choke me
19791#else
19792$ac_func();
19793#endif
19794
19795; return 0; }
19796EOF
19797if { (eval echo configure:19798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19798 rm -rf conftest*
19799 eval "ac_cv_func_$ac_func=yes"
19800else
19801 echo "configure: failed program was:" >&5
19802 cat conftest.$ac_ext >&5
19803 rm -rf conftest*
19804 eval "ac_cv_func_$ac_func=no"
19805fi
19806rm -f conftest*
19807fi
19808
19809if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19810 echo "$ac_t""yes" 1>&6
19811 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19812 cat >> confdefs.h <<EOF
19813#define $ac_tr_func 1
19814EOF
19815 break
19816else
19817 echo "$ac_t""no" 1>&6
19818fi
19819done
19820
19821
19822 if test "$ac_cv_func_gettimeofday" = "yes"; then
19823 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
19824echo "configure:19825: checking whether gettimeofday takes two arguments" >&5
19825if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
19826 echo $ac_n "(cached) $ac_c" 1>&6
19827else
19828
19829
19830 ac_ext=C
19831# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19832ac_cpp='$CXXCPP $CPPFLAGS'
19833ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19834ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19835cross_compiling=$ac_cv_prog_cxx_cross
19836
19837
19838 cat > conftest.$ac_ext <<EOF
19839#line 19840 "configure"
19840#include "confdefs.h"
19841
19842 #include <sys/time.h>
19843 #include <unistd.h>
19844
19845int main() {
19846
19847 struct timeval tv;
19848 gettimeofday(&tv, NULL);
19849
19850; return 0; }
19851EOF
19852if { (eval echo configure:19853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19853 rm -rf conftest*
19854 wx_cv_func_gettimeofday_has_2_args=yes
19855else
19856 echo "configure: failed program was:" >&5
19857 cat conftest.$ac_ext >&5
19858 rm -rf conftest*
19859 cat > conftest.$ac_ext <<EOF
19860#line 19861 "configure"
19861#include "confdefs.h"
19862
19863 #include <sys/time.h>
19864 #include <unistd.h>
19865
19866int main() {
19867
19868 struct timeval tv;
19869 gettimeofday(&tv);
19870
19871; return 0; }
19872EOF
19873if { (eval echo configure:19874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19874 rm -rf conftest*
19875 wx_cv_func_gettimeofday_has_2_args=no
19876else
19877 echo "configure: failed program was:" >&5
19878 cat conftest.$ac_ext >&5
19879 rm -rf conftest*
19880
19881 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
19882 wx_cv_func_gettimeofday_has_2_args=unknown
19883
19884
19885fi
19886rm -f conftest*
19887
19888fi
19889rm -f conftest*
19890 ac_ext=c
19891# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19892ac_cpp='$CPP $CPPFLAGS'
19893ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19894ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19895cross_compiling=$ac_cv_prog_cc_cross
19896
19897
19898fi
19899
19900echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
19901
19902 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
19903 cat >> confdefs.h <<\EOF
19904#define WX_GETTIMEOFDAY_NO_TZ 1
19905EOF
19906
19907 fi
19908 fi
19909
19910 cat >> confdefs.h <<\EOF
19911#define wxUSE_TIMEDATE 1
19912EOF
19913
19914 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
19915fi
19916
19917
19918if test "$wxUSE_SOCKETS" = "yes"; then
19919 if test "$wxUSE_MGL" = "1"; then
19920 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
19921 wxUSE_SOCKETS="no"
19922 fi
19923fi
19924
19925if test "$wxUSE_SOCKETS" = "yes"; then
19926 if test "$TOOLKIT" != "MSW"; then
19927 echo $ac_n "checking for socket""... $ac_c" 1>&6
19928echo "configure:19929: checking for socket" >&5
19929if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
19930 echo $ac_n "(cached) $ac_c" 1>&6
19931else
19932 cat > conftest.$ac_ext <<EOF
19933#line 19934 "configure"
19934#include "confdefs.h"
19935/* System header to define __stub macros and hopefully few prototypes,
19936 which can conflict with char socket(); below. */
19937#include <assert.h>
19938/* Override any gcc2 internal prototype to avoid an error. */
19939/* We use char because int might match the return type of a gcc2
19940 builtin and then its argument prototype would still apply. */
19941char socket();
19942
19943int main() {
19944
19945/* The GNU C library defines this for functions which it implements
19946 to always fail with ENOSYS. Some functions are actually named
19947 something starting with __ and the normal name is an alias. */
19948#if defined (__stub_socket) || defined (__stub___socket)
19949choke me
19950#else
19951socket();
19952#endif
19953
19954; return 0; }
19955EOF
19956if { (eval echo configure:19957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19957 rm -rf conftest*
19958 eval "ac_cv_func_socket=yes"
19959else
19960 echo "configure: failed program was:" >&5
19961 cat conftest.$ac_ext >&5
19962 rm -rf conftest*
19963 eval "ac_cv_func_socket=no"
19964fi
19965rm -f conftest*
19966fi
19967
19968if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
19969 echo "$ac_t""yes" 1>&6
19970 :
19971else
19972 echo "$ac_t""no" 1>&6
19973echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
19974echo "configure:19975: checking for socket in -lsocket" >&5
19975ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
19976if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19977 echo $ac_n "(cached) $ac_c" 1>&6
19978else
19979 ac_save_LIBS="$LIBS"
19980LIBS="-lsocket $LIBS"
19981cat > conftest.$ac_ext <<EOF
19982#line 19983 "configure"
19983#include "confdefs.h"
19984/* Override any gcc2 internal prototype to avoid an error. */
19985/* We use char because int might match the return type of a gcc2
19986 builtin and then its argument prototype would still apply. */
19987char socket();
19988
19989int main() {
19990socket()
19991; return 0; }
19992EOF
19993if { (eval echo configure:19994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19994 rm -rf conftest*
19995 eval "ac_cv_lib_$ac_lib_var=yes"
19996else
19997 echo "configure: failed program was:" >&5
19998 cat conftest.$ac_ext >&5
19999 rm -rf conftest*
20000 eval "ac_cv_lib_$ac_lib_var=no"
20001fi
20002rm -f conftest*
20003LIBS="$ac_save_LIBS"
20004
20005fi
20006if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20007 echo "$ac_t""yes" 1>&6
20008 if test "$INET_LINK" != " -lsocket"; then
20009 INET_LINK="$INET_LINK -lsocket"
20010 fi
20011else
20012 echo "$ac_t""no" 1>&6
20013
20014 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
20015 wxUSE_SOCKETS=no
20016
20017
20018fi
20019
20020
20021fi
20022
20023 fi
20024fi
20025
20026if test "$wxUSE_SOCKETS" = "yes" ; then
20027 if test "$TOOLKIT" != "MSW"; then
20028 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
20029echo "configure:20030: checking what is the type of the third argument of getsockname" >&5
20030if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20031 echo $ac_n "(cached) $ac_c" 1>&6
20032else
20033
20034
20035 ac_ext=C
20036# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20037ac_cpp='$CXXCPP $CPPFLAGS'
20038ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20039ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20040cross_compiling=$ac_cv_prog_cxx_cross
20041
20042
20043 cat > conftest.$ac_ext <<EOF
20044#line 20045 "configure"
20045#include "confdefs.h"
20046
20047 #include <sys/types.h>
20048 #include <sys/socket.h>
20049
20050int main() {
20051
20052 socklen_t len;
20053 getsockname(0, 0, &len);
20054
20055; return 0; }
20056EOF
20057if { (eval echo configure:20058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20058 rm -rf conftest*
20059 wx_cv_type_getsockname3=socklen_t
20060else
20061 echo "configure: failed program was:" >&5
20062 cat conftest.$ac_ext >&5
20063 rm -rf conftest*
20064 cat > conftest.$ac_ext <<EOF
20065#line 20066 "configure"
20066#include "confdefs.h"
20067
20068 #include <sys/types.h>
20069 #include <sys/socket.h>
20070
20071int main() {
20072
20073 size_t len;
20074 getsockname(0, 0, &len);
20075
20076; return 0; }
20077EOF
20078if { (eval echo configure:20079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20079 rm -rf conftest*
20080 wx_cv_type_getsockname3=size_t
20081else
20082 echo "configure: failed program was:" >&5
20083 cat conftest.$ac_ext >&5
20084 rm -rf conftest*
20085 cat > conftest.$ac_ext <<EOF
20086#line 20087 "configure"
20087#include "confdefs.h"
20088
20089 #include <sys/types.h>
20090 #include <sys/socket.h>
20091
20092int main() {
20093
20094 int len;
20095 getsockname(0, 0, &len);
20096
20097; return 0; }
20098EOF
20099if { (eval echo configure:20100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20100 rm -rf conftest*
20101 wx_cv_type_getsockname3=int
20102else
20103 echo "configure: failed program was:" >&5
20104 cat conftest.$ac_ext >&5
20105 rm -rf conftest*
20106 wx_cv_type_getsockname3=unknown
20107
20108fi
20109rm -f conftest*
20110
20111fi
20112rm -f conftest*
20113
20114fi
20115rm -f conftest*
20116
20117 ac_ext=c
20118# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20119ac_cpp='$CPP $CPPFLAGS'
20120ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20121ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20122cross_compiling=$ac_cv_prog_cc_cross
20123
20124
20125fi
20126
20127echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
20128
20129 if test "$wx_cv_type_getsockname3" = "unknown"; then
20130 wxUSE_SOCKETS=no
20131 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
20132 else
20133 cat >> confdefs.h <<EOF
20134#define SOCKLEN_T $wx_cv_type_getsockname3
20135EOF
20136
20137 fi
20138 fi
20139fi
20140
20141if test "$wxUSE_SOCKETS" = "yes" ; then
20142 cat >> confdefs.h <<\EOF
20143#define wxUSE_SOCKETS 1
20144EOF
20145
20146 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
20147fi
20148
20149
20150if test "$wxUSE_GUI" = "yes"; then
20151
20152 if test "$TOOLKIT" = "MAC"; then
20153 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
20154 wxUSE_JOYSTICK=no
20155 fi
20156 if test "$TOOLKIT" = "MOTIF"; then
20157 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
20158 wxUSE_JOYSTICK=no
20159 fi
20160 if test "$TOOLKIT" = "X11"; then
20161 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
20162 wxUSE_JOYSTICK=no
20163 fi
20164
20165 if test "$TOOLKIT" != "MSW"; then
20166 if test "$wxUSE_JOYSTICK" = "yes"; then
20167 for ac_hdr in linux/joystick.h
20168do
20169ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20170echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20171echo "configure:20172: checking for $ac_hdr" >&5
20172if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20173 echo $ac_n "(cached) $ac_c" 1>&6
20174else
20175 cat > conftest.$ac_ext <<EOF
20176#line 20177 "configure"
20177#include "confdefs.h"
20178#include <$ac_hdr>
20179EOF
20180ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20181{ (eval echo configure:20182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20182ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20183if test -z "$ac_err"; then
20184 rm -rf conftest*
20185 eval "ac_cv_header_$ac_safe=yes"
20186else
20187 echo "$ac_err" >&5
20188 echo "configure: failed program was:" >&5
20189 cat conftest.$ac_ext >&5
20190 rm -rf conftest*
20191 eval "ac_cv_header_$ac_safe=no"
20192fi
20193rm -f conftest*
20194fi
20195if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20196 echo "$ac_t""yes" 1>&6
20197 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20198 cat >> confdefs.h <<EOF
20199#define $ac_tr_hdr 1
20200EOF
20201
20202else
20203 echo "$ac_t""no" 1>&6
20204fi
20205done
20206
20207 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20208 wxUSE_JOYSTICK=no
20209 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
20210 fi
20211 fi
20212 fi
20213
20214 if test "$wxUSE_JOYSTICK" = "yes"; then
20215 cat >> confdefs.h <<\EOF
20216#define wxUSE_JOYSTICK 1
20217EOF
20218
20219 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20220 fi
20221fi
20222
20223
20224if test "$TOOLKIT" != "MSW"; then
20225
20226 HAVE_DL_FUNCS=0
20227 HAVE_SHL_FUNCS=0
20228 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20229 if test "$USE_DARWIN" = 1; then
20230 HAVE_DL_FUNCS=1
20231 else
20232 for ac_func in dlopen
20233do
20234echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20235echo "configure:20236: checking for $ac_func" >&5
20236if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20237 echo $ac_n "(cached) $ac_c" 1>&6
20238else
20239 cat > conftest.$ac_ext <<EOF
20240#line 20241 "configure"
20241#include "confdefs.h"
20242/* System header to define __stub macros and hopefully few prototypes,
20243 which can conflict with char $ac_func(); below. */
20244#include <assert.h>
20245/* Override any gcc2 internal prototype to avoid an error. */
20246/* We use char because int might match the return type of a gcc2
20247 builtin and then its argument prototype would still apply. */
20248char $ac_func();
20249
20250int main() {
20251
20252/* The GNU C library defines this for functions which it implements
20253 to always fail with ENOSYS. Some functions are actually named
20254 something starting with __ and the normal name is an alias. */
20255#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20256choke me
20257#else
20258$ac_func();
20259#endif
20260
20261; return 0; }
20262EOF
20263if { (eval echo configure:20264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20264 rm -rf conftest*
20265 eval "ac_cv_func_$ac_func=yes"
20266else
20267 echo "configure: failed program was:" >&5
20268 cat conftest.$ac_ext >&5
20269 rm -rf conftest*
20270 eval "ac_cv_func_$ac_func=no"
20271fi
20272rm -f conftest*
20273fi
20274
20275if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20276 echo "$ac_t""yes" 1>&6
20277 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20278 cat >> confdefs.h <<EOF
20279#define $ac_tr_func 1
20280EOF
20281
20282 cat >> confdefs.h <<\EOF
20283#define HAVE_DLOPEN 1
20284EOF
20285
20286 HAVE_DL_FUNCS=1
20287
20288else
20289 echo "$ac_t""no" 1>&6
20290echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
20291echo "configure:20292: checking for dlopen in -ldl" >&5
20292ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20293if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20294 echo $ac_n "(cached) $ac_c" 1>&6
20295else
20296 ac_save_LIBS="$LIBS"
20297LIBS="-ldl $LIBS"
20298cat > conftest.$ac_ext <<EOF
20299#line 20300 "configure"
20300#include "confdefs.h"
20301/* Override any gcc2 internal prototype to avoid an error. */
20302/* We use char because int might match the return type of a gcc2
20303 builtin and then its argument prototype would still apply. */
20304char dlopen();
20305
20306int main() {
20307dlopen()
20308; return 0; }
20309EOF
20310if { (eval echo configure:20311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20311 rm -rf conftest*
20312 eval "ac_cv_lib_$ac_lib_var=yes"
20313else
20314 echo "configure: failed program was:" >&5
20315 cat conftest.$ac_ext >&5
20316 rm -rf conftest*
20317 eval "ac_cv_lib_$ac_lib_var=no"
20318fi
20319rm -f conftest*
20320LIBS="$ac_save_LIBS"
20321
20322fi
20323if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20324 echo "$ac_t""yes" 1>&6
20325
20326 cat >> confdefs.h <<\EOF
20327#define HAVE_DLOPEN 1
20328EOF
20329
20330 HAVE_DL_FUNCS=1
20331 DL_LINK=" -ldl$DL_LINK"
20332
20333else
20334 echo "$ac_t""no" 1>&6
20335
20336 for ac_func in shl_load
20337do
20338echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20339echo "configure:20340: checking for $ac_func" >&5
20340if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20341 echo $ac_n "(cached) $ac_c" 1>&6
20342else
20343 cat > conftest.$ac_ext <<EOF
20344#line 20345 "configure"
20345#include "confdefs.h"
20346/* System header to define __stub macros and hopefully few prototypes,
20347 which can conflict with char $ac_func(); below. */
20348#include <assert.h>
20349/* Override any gcc2 internal prototype to avoid an error. */
20350/* We use char because int might match the return type of a gcc2
20351 builtin and then its argument prototype would still apply. */
20352char $ac_func();
20353
20354int main() {
20355
20356/* The GNU C library defines this for functions which it implements
20357 to always fail with ENOSYS. Some functions are actually named
20358 something starting with __ and the normal name is an alias. */
20359#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20360choke me
20361#else
20362$ac_func();
20363#endif
20364
20365; return 0; }
20366EOF
20367if { (eval echo configure:20368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20368 rm -rf conftest*
20369 eval "ac_cv_func_$ac_func=yes"
20370else
20371 echo "configure: failed program was:" >&5
20372 cat conftest.$ac_ext >&5
20373 rm -rf conftest*
20374 eval "ac_cv_func_$ac_func=no"
20375fi
20376rm -f conftest*
20377fi
20378
20379if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20380 echo "$ac_t""yes" 1>&6
20381 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20382 cat >> confdefs.h <<EOF
20383#define $ac_tr_func 1
20384EOF
20385
20386 cat >> confdefs.h <<\EOF
20387#define HAVE_SHL_LOAD 1
20388EOF
20389
20390 HAVE_SHL_FUNCS=1
20391
20392else
20393 echo "$ac_t""no" 1>&6
20394echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
20395echo "configure:20396: checking for dld in -lshl_load" >&5
20396ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20397if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20398 echo $ac_n "(cached) $ac_c" 1>&6
20399else
20400 ac_save_LIBS="$LIBS"
20401LIBS="-lshl_load $LIBS"
20402cat > conftest.$ac_ext <<EOF
20403#line 20404 "configure"
20404#include "confdefs.h"
20405/* Override any gcc2 internal prototype to avoid an error. */
20406/* We use char because int might match the return type of a gcc2
20407 builtin and then its argument prototype would still apply. */
20408char dld();
20409
20410int main() {
20411dld()
20412; return 0; }
20413EOF
20414if { (eval echo configure:20415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20415 rm -rf conftest*
20416 eval "ac_cv_lib_$ac_lib_var=yes"
20417else
20418 echo "configure: failed program was:" >&5
20419 cat conftest.$ac_ext >&5
20420 rm -rf conftest*
20421 eval "ac_cv_lib_$ac_lib_var=no"
20422fi
20423rm -f conftest*
20424LIBS="$ac_save_LIBS"
20425
20426fi
20427if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20428 echo "$ac_t""yes" 1>&6
20429
20430 HAVE_SHL_FUNCS=1
20431 DL_LINK=" -ldld$DL_LINK"
20432
20433else
20434 echo "$ac_t""no" 1>&6
20435fi
20436
20437
20438fi
20439done
20440
20441
20442fi
20443
20444
20445fi
20446done
20447
20448
20449 if test "$HAVE_DL_FUNCS" = 1; then
20450 for ac_func in dlerror
20451do
20452echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20453echo "configure:20454: checking for $ac_func" >&5
20454if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20455 echo $ac_n "(cached) $ac_c" 1>&6
20456else
20457 cat > conftest.$ac_ext <<EOF
20458#line 20459 "configure"
20459#include "confdefs.h"
20460/* System header to define __stub macros and hopefully few prototypes,
20461 which can conflict with char $ac_func(); below. */
20462#include <assert.h>
20463/* Override any gcc2 internal prototype to avoid an error. */
20464/* We use char because int might match the return type of a gcc2
20465 builtin and then its argument prototype would still apply. */
20466char $ac_func();
20467
20468int main() {
20469
20470/* The GNU C library defines this for functions which it implements
20471 to always fail with ENOSYS. Some functions are actually named
20472 something starting with __ and the normal name is an alias. */
20473#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20474choke me
20475#else
20476$ac_func();
20477#endif
20478
20479; return 0; }
20480EOF
20481if { (eval echo configure:20482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20482 rm -rf conftest*
20483 eval "ac_cv_func_$ac_func=yes"
20484else
20485 echo "configure: failed program was:" >&5
20486 cat conftest.$ac_ext >&5
20487 rm -rf conftest*
20488 eval "ac_cv_func_$ac_func=no"
20489fi
20490rm -f conftest*
20491fi
20492
20493if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20494 echo "$ac_t""yes" 1>&6
20495 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20496 cat >> confdefs.h <<EOF
20497#define $ac_tr_func 1
20498EOF
20499 cat >> confdefs.h <<\EOF
20500#define HAVE_DLERROR 1
20501EOF
20502
20503else
20504 echo "$ac_t""no" 1>&6
20505echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
20506echo "configure:20507: checking for dlerror in -ldl" >&5
20507ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
20508if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20509 echo $ac_n "(cached) $ac_c" 1>&6
20510else
20511 ac_save_LIBS="$LIBS"
20512LIBS="-ldl $LIBS"
20513cat > conftest.$ac_ext <<EOF
20514#line 20515 "configure"
20515#include "confdefs.h"
20516/* Override any gcc2 internal prototype to avoid an error. */
20517/* We use char because int might match the return type of a gcc2
20518 builtin and then its argument prototype would still apply. */
20519char dlerror();
20520
20521int main() {
20522dlerror()
20523; return 0; }
20524EOF
20525if { (eval echo configure:20526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20526 rm -rf conftest*
20527 eval "ac_cv_lib_$ac_lib_var=yes"
20528else
20529 echo "configure: failed program was:" >&5
20530 cat conftest.$ac_ext >&5
20531 rm -rf conftest*
20532 eval "ac_cv_lib_$ac_lib_var=no"
20533fi
20534rm -f conftest*
20535LIBS="$ac_save_LIBS"
20536
20537fi
20538if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20539 echo "$ac_t""yes" 1>&6
20540 cat >> confdefs.h <<\EOF
20541#define HAVE_DLERROR 1
20542EOF
20543
20544else
20545 echo "$ac_t""no" 1>&6
20546fi
20547
20548fi
20549done
20550
20551 fi
20552 fi
20553
20554 if test "$HAVE_DL_FUNCS" = 0; then
20555 if test "$HAVE_SHL_FUNCS" = 0; then
20556 if test "$USE_UNIX" = 1; then
20557 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
20558 wxUSE_DYNAMIC_LOADER=no
20559 wxUSE_DYNLIB_CLASS=no
20560 else
20561 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
20562 fi
20563 fi
20564 fi
20565 fi
20566fi
20567
20568if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
20569 cat >> confdefs.h <<\EOF
20570#define wxUSE_DYNAMIC_LOADER 1
20571EOF
20572
20573elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20574 cat >> confdefs.h <<\EOF
20575#define wxUSE_DYNLIB_CLASS 1
20576EOF
20577
20578fi
20579
20580
20581if test "$wxUSE_FONTMAP" = "yes" ; then
20582 cat >> confdefs.h <<\EOF
20583#define wxUSE_FONTMAP 1
20584EOF
20585
20586fi
20587
20588if test "$wxUSE_UNICODE" = "yes" ; then
20589 cat >> confdefs.h <<\EOF
20590#define wxUSE_UNICODE 1
20591EOF
20592
20593
20594 if test "$wxUSE_MSW" != 1; then
20595 wxUSE_UNICODE_MSLU=no
20596 fi
20597
20598 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
20599 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
20600echo "configure:20601: checking for main in -lunicows" >&5
20601ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
20602if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20603 echo $ac_n "(cached) $ac_c" 1>&6
20604else
20605 ac_save_LIBS="$LIBS"
20606LIBS="-lunicows $LIBS"
20607cat > conftest.$ac_ext <<EOF
20608#line 20609 "configure"
20609#include "confdefs.h"
20610
20611int main() {
20612main()
20613; return 0; }
20614EOF
20615if { (eval echo configure:20616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20616 rm -rf conftest*
20617 eval "ac_cv_lib_$ac_lib_var=yes"
20618else
20619 echo "configure: failed program was:" >&5
20620 cat conftest.$ac_ext >&5
20621 rm -rf conftest*
20622 eval "ac_cv_lib_$ac_lib_var=no"
20623fi
20624rm -f conftest*
20625LIBS="$ac_save_LIBS"
20626
20627fi
20628if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20629 echo "$ac_t""yes" 1>&6
20630
20631 cat >> confdefs.h <<\EOF
20632#define wxUSE_UNICODE_MSLU 1
20633EOF
20634
20635
20636else
20637 echo "$ac_t""no" 1>&6
20638
20639 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
20640 Applications will only run on Windows NT/2000/XP!" 1>&2
20641 wxUSE_UNICODE_MSLU=no
20642
20643fi
20644
20645 fi
20646fi
20647
20648if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
20649 cat >> confdefs.h <<\EOF
20650#define wxUSE_EXPERIMENTAL_PRINTF 1
20651EOF
20652
20653fi
20654
20655
20656
20657IODBC_C_SRC=""
20658if test "$wxUSE_ODBC" = "yes" ; then
20659 cat >> confdefs.h <<\EOF
20660#define wxUSE_ODBC 1
20661EOF
20662
20663 WXODBCFLAG="-D_IODBC_"
20664 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
20665fi
20666
20667
20668if test "$wxUSE_POSTSCRIPT" = "yes" ; then
20669 cat >> confdefs.h <<\EOF
20670#define wxUSE_POSTSCRIPT 1
20671EOF
20672
20673fi
20674
20675cat >> confdefs.h <<\EOF
20676#define wxUSE_AFM_FOR_POSTSCRIPT 1
20677EOF
20678
20679
20680cat >> confdefs.h <<\EOF
20681#define wxUSE_NORMALIZED_PS_FONTS 1
20682EOF
20683
20684
20685
20686if test "$wxUSE_CONSTRAINTS" = "yes"; then
20687 cat >> confdefs.h <<\EOF
20688#define wxUSE_CONSTRAINTS 1
20689EOF
20690
20691 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
20692fi
20693
20694if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20695
20696
20697 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20698 cat >> confdefs.h <<\EOF
20699#define wxUSE_MDI_ARCHITECTURE 1
20700EOF
20701
20702 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
20703 fi
20704fi
20705
20706if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
20707 cat >> confdefs.h <<\EOF
20708#define wxUSE_DOC_VIEW_ARCHITECTURE 1
20709EOF
20710
20711 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
20712 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20713 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
20714 fi
20715fi
20716
20717if test "$wxUSE_HELP" = "yes"; then
20718 cat >> confdefs.h <<\EOF
20719#define wxUSE_HELP 1
20720EOF
20721
20722 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
20723
20724 if test "$wxUSE_MSW" = 1; then
20725 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
20726 cat >> confdefs.h <<\EOF
20727#define wxUSE_MS_HTML_HELP 1
20728EOF
20729
20730 fi
20731 fi
20732
20733 if test "$wxUSE_WXHTML_HELP" = "yes"; then
20734 if test "$wxUSE_HTML" = "yes"; then
20735 cat >> confdefs.h <<\EOF
20736#define wxUSE_WXHTML_HELP 1
20737EOF
20738
20739 else
20740 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
20741 wxUSE_WXHTML_HELP=no
20742 fi
20743 fi
20744fi
20745
20746if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
20747 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20748 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
20749 else
20750 cat >> confdefs.h <<\EOF
20751#define wxUSE_PRINTING_ARCHITECTURE 1
20752EOF
20753
20754 fi
20755 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
20756fi
20757
20758if test "$wxUSE_PROLOGIO" = "yes" ; then
20759 cat >> confdefs.h <<\EOF
20760#define wxUSE_PROLOGIO 1
20761EOF
20762
20763 ALL_OBJECTS="$ALL_OBJECTS parser.o"
20764fi
20765
20766if test "$wxUSE_RESOURCES" = "yes" ; then
20767 if test "$wxUSE_NANOX" = "yes"; then
20768 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
20769 else
20770 cat >> confdefs.h <<\EOF
20771#define wxUSE_RESOURCES 1
20772EOF
20773
20774 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
20775 fi
20776 if test "$wxUSE_PROLOGIO" != "yes" ; then
20777 ALL_OBJECTS="$ALL_OBJECTS parser.o"
20778 fi
20779fi
20780
20781if test "$wxUSE_X_RESOURCES" = "yes"; then
20782 cat >> confdefs.h <<\EOF
20783#define wxUSE_X_RESOURCES 1
20784EOF
20785
20786fi
20787
20788
20789if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
20790 -o "$wxUSE_CLIPBOARD" = "yes" \
20791 -o "$wxUSE_OLE" = "yes" \
20792 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
20793 for ac_hdr in ole2.h
20794do
20795ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20796echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20797echo "configure:20798: checking for $ac_hdr" >&5
20798if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20799 echo $ac_n "(cached) $ac_c" 1>&6
20800else
20801 cat > conftest.$ac_ext <<EOF
20802#line 20803 "configure"
20803#include "confdefs.h"
20804#include <$ac_hdr>
20805EOF
20806ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20807{ (eval echo configure:20808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20808ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20809if test -z "$ac_err"; then
20810 rm -rf conftest*
20811 eval "ac_cv_header_$ac_safe=yes"
20812else
20813 echo "$ac_err" >&5
20814 echo "configure: failed program was:" >&5
20815 cat conftest.$ac_ext >&5
20816 rm -rf conftest*
20817 eval "ac_cv_header_$ac_safe=no"
20818fi
20819rm -f conftest*
20820fi
20821if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20822 echo "$ac_t""yes" 1>&6
20823 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20824 cat >> confdefs.h <<EOF
20825#define $ac_tr_hdr 1
20826EOF
20827
20828else
20829 echo "$ac_t""no" 1>&6
20830fi
20831done
20832
20833
20834 if test "$ac_cv_header_ole2_h" = "yes" ; then
20835 if test "$GCC" = yes ; then
20836
20837 ac_ext=C
20838# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20839ac_cpp='$CXXCPP $CPPFLAGS'
20840ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20841ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20842cross_compiling=$ac_cv_prog_cxx_cross
20843
20844
20845 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
20846echo "configure:20847: checking if g++ requires -fvtable-thunks" >&5
20847 cat > conftest.$ac_ext <<EOF
20848#line 20849 "configure"
20849#include "confdefs.h"
20850#include <windows.h>
20851 #include <ole2.h>
20852int main() {
20853
20854; return 0; }
20855EOF
20856if { (eval echo configure:20857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20857 rm -rf conftest*
20858 echo "$ac_t""no" 1>&6
20859else
20860 echo "configure: failed program was:" >&5
20861 cat conftest.$ac_ext >&5
20862 rm -rf conftest*
20863 echo "$ac_t""yes" 1>&6
20864 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
20865fi
20866rm -f conftest*
20867 ac_ext=c
20868# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20869ac_cpp='$CPP $CPPFLAGS'
20870ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20871ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20872cross_compiling=$ac_cv_prog_cc_cross
20873
20874 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
20875 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
20876 cat >> confdefs.h <<\EOF
20877#define wxUSE_OLE 1
20878EOF
20879
20880
20881 fi
20882
20883 cat >> confdefs.h <<\EOF
20884#define wxUSE_DATAOBJ 1
20885EOF
20886
20887 else
20888 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
20889
20890 wxUSE_CLIPBOARD=no
20891 wxUSE_DRAG_AND_DROP=no
20892 wxUSE_DATAOBJ=no
20893 wxUSE_OLE=no
20894 fi
20895
20896 if test "$wxUSE_METAFILE" = "yes"; then
20897 cat >> confdefs.h <<\EOF
20898#define wxUSE_METAFILE 1
20899EOF
20900
20901
20902 cat >> confdefs.h <<\EOF
20903#define wxUSE_ENH_METAFILE 1
20904EOF
20905
20906 fi
20907fi
20908
20909if test "$wxUSE_WINE" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
20910 -o "$wxUSE_CLIPBOARD" = "yes" \
20911 -o "$wxUSE_OLE" = "yes" \
20912 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
20913 for ac_hdr in ole2.h
20914do
20915ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20916echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20917echo "configure:20918: checking for $ac_hdr" >&5
20918if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20919 echo $ac_n "(cached) $ac_c" 1>&6
20920else
20921 cat > conftest.$ac_ext <<EOF
20922#line 20923 "configure"
20923#include "confdefs.h"
20924#include <$ac_hdr>
20925EOF
20926ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20927{ (eval echo configure:20928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20928ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20929if test -z "$ac_err"; then
20930 rm -rf conftest*
20931 eval "ac_cv_header_$ac_safe=yes"
20932else
20933 echo "$ac_err" >&5
20934 echo "configure: failed program was:" >&5
20935 cat conftest.$ac_ext >&5
20936 rm -rf conftest*
20937 eval "ac_cv_header_$ac_safe=no"
20938fi
20939rm -f conftest*
20940fi
20941if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20942 echo "$ac_t""yes" 1>&6
20943 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20944 cat >> confdefs.h <<EOF
20945#define $ac_tr_hdr 1
20946EOF
20947
20948else
20949 echo "$ac_t""no" 1>&6
20950fi
20951done
20952
20953
20954 if test "$ac_cv_header_ole2_h" = "yes" ; then
20955 if test "$GCC" = yes ; then
20956
20957 ac_ext=C
20958# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20959ac_cpp='$CXXCPP $CPPFLAGS'
20960ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20961ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20962cross_compiling=$ac_cv_prog_cxx_cross
20963
20964
20965 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
20966echo "configure:20967: checking if g++ requires -fvtable-thunks" >&5
20967 cat > conftest.$ac_ext <<EOF
20968#line 20969 "configure"
20969#include "confdefs.h"
20970#include <windows.h>
20971 #include <ole2.h>
20972int main() {
20973
20974; return 0; }
20975EOF
20976if { (eval echo configure:20977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20977 rm -rf conftest*
20978 echo "$ac_t""no" 1>&6
20979else
20980 echo "configure: failed program was:" >&5
20981 cat conftest.$ac_ext >&5
20982 rm -rf conftest*
20983 echo "$ac_t""yes" 1>&6
20984 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
20985fi
20986rm -f conftest*
20987 ac_ext=c
20988# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20989ac_cpp='$CPP $CPPFLAGS'
20990ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20991ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20992cross_compiling=$ac_cv_prog_cc_cross
20993
20994 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
20995 LIBS=" -lwine_uuid$LIBS"
20996 cat >> confdefs.h <<\EOF
20997#define wxUSE_OLE 1
20998EOF
20999
21000
21001 fi
21002
21003 cat >> confdefs.h <<\EOF
21004#define wxUSE_DATAOBJ 1
21005EOF
21006
21007 else
21008 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
21009
21010 wxUSE_CLIPBOARD=no
21011 wxUSE_DRAG_AND_DROP=no
21012 wxUSE_DATAOBJ=no
21013 wxUSE_OLE=no
21014 fi
21015
21016 if test "$wxUSE_METAFILE" = "yes"; then
21017 cat >> confdefs.h <<\EOF
21018#define wxUSE_METAFILE 1
21019EOF
21020
21021
21022 cat >> confdefs.h <<\EOF
21023#define wxUSE_ENH_METAFILE 1
21024EOF
21025
21026 fi
21027fi
21028
21029if test "$wxUSE_IPC" = "yes"; then
21030 if test "$wxUSE_SOCKETS" != "yes"; then
21031 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
21032 fi
21033
21034 cat >> confdefs.h <<\EOF
21035#define wxUSE_IPC 1
21036EOF
21037
21038fi
21039
21040if test "$wxUSE_CLIPBOARD" = "yes"; then
21041 if test "$wxUSE_MGL" = 1; then
21042 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
21043 wxUSE_CLIPBOARD=no
21044 fi
21045
21046 if test "$wxUSE_CLIPBOARD" = "yes"; then
21047 cat >> confdefs.h <<\EOF
21048#define wxUSE_CLIPBOARD 1
21049EOF
21050
21051
21052 cat >> confdefs.h <<\EOF
21053#define wxUSE_DATAOBJ 1
21054EOF
21055
21056 fi
21057fi
21058
21059if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
21060 if test "$wxUSE_GTK" = 1; then
21061 if test "$WXGTK12" != 1; then
21062 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
21063 wxUSE_DRAG_AND_DROP=no
21064 fi
21065 fi
21066
21067 if test "$wxUSE_MOTIF" = 1; then
21068 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
21069 wxUSE_DRAG_AND_DROP=no
21070 fi
21071
21072 if test "$wxUSE_X11" = 1; then
21073 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
21074 wxUSE_DRAG_AND_DROP=no
21075 fi
21076
21077 if test "$wxUSE_MGL" = 1; then
21078 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
21079 wxUSE_DRAG_AND_DROP=no
21080 fi
21081
21082 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
21083 cat >> confdefs.h <<\EOF
21084#define wxUSE_DRAG_AND_DROP 1
21085EOF
21086
21087 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21088 fi
21089
21090fi
21091
21092if test "$wxUSE_SPLINES" = "yes" ; then
21093 cat >> confdefs.h <<\EOF
21094#define wxUSE_SPLINES 1
21095EOF
21096
21097fi
21098
21099
21100USES_CONTROLS=0
21101if test "$wxUSE_CONTROLS" = "yes"; then
21102 USES_CONTROLS=1
21103fi
21104
21105if test "$wxUSE_ACCEL" = "yes"; then
21106 cat >> confdefs.h <<\EOF
21107#define wxUSE_ACCEL 1
21108EOF
21109
21110 USES_CONTROLS=1
21111fi
21112
21113if test "$wxUSE_BUTTON" = "yes"; then
21114 cat >> confdefs.h <<\EOF
21115#define wxUSE_BUTTON 1
21116EOF
21117
21118 USES_CONTROLS=1
21119fi
21120
21121if test "$wxUSE_BMPBUTTON" = "yes"; then
21122 cat >> confdefs.h <<\EOF
21123#define wxUSE_BMPBUTTON 1
21124EOF
21125
21126 USES_CONTROLS=1
21127fi
21128
21129if test "$wxUSE_CALCTRL" = "yes"; then
21130 cat >> confdefs.h <<\EOF
21131#define wxUSE_CALENDARCTRL 1
21132EOF
21133
21134 USES_CONTROLS=1
21135 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
21136fi
21137
21138if test "$wxUSE_CARET" = "yes"; then
21139 cat >> confdefs.h <<\EOF
21140#define wxUSE_CARET 1
21141EOF
21142
21143 USES_CONTROLS=1
21144 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21145fi
21146
21147if test "$wxUSE_COMBOBOX" = "yes"; then
21148 cat >> confdefs.h <<\EOF
21149#define wxUSE_COMBOBOX 1
21150EOF
21151
21152 USES_CONTROLS=1
21153fi
21154
21155if test "$wxUSE_CHOICE" = "yes"; then
21156 cat >> confdefs.h <<\EOF
21157#define wxUSE_CHOICE 1
21158EOF
21159
21160 USES_CONTROLS=1
21161fi
21162
21163if test "$wxUSE_CHECKBOX" = "yes"; then
21164 cat >> confdefs.h <<\EOF
21165#define wxUSE_CHECKBOX 1
21166EOF
21167
21168 USES_CONTROLS=1
21169fi
21170
21171if test "$wxUSE_CHECKLST" = "yes"; then
21172 cat >> confdefs.h <<\EOF
21173#define wxUSE_CHECKLISTBOX 1
21174EOF
21175
21176 USES_CONTROLS=1
21177 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21178fi
21179
21180if test "$wxUSE_GAUGE" = "yes"; then
21181 cat >> confdefs.h <<\EOF
21182#define wxUSE_GAUGE 1
21183EOF
21184
21185 USES_CONTROLS=1
21186fi
21187
21188if test "$wxUSE_NEW_GRID" = "yes"; then
21189 wxUSE_GRID="yes"
21190 cat >> confdefs.h <<\EOF
21191#define wxUSE_NEW_GRID 1
21192EOF
21193
21194 USES_CONTROLS=1
21195 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
21196fi
21197
21198if test "$wxUSE_GRID" = "yes"; then
21199 cat >> confdefs.h <<\EOF
21200#define wxUSE_GRID 1
21201EOF
21202
21203 USES_CONTROLS=1
21204 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
21205fi
21206
21207if test "$wxUSE_IMAGLIST" = "yes"; then
21208 cat >> confdefs.h <<\EOF
21209#define wxUSE_IMAGLIST 1
21210EOF
21211
21212fi
21213
21214if test "$wxUSE_LISTBOX" = "yes"; then
21215 cat >> confdefs.h <<\EOF
21216#define wxUSE_LISTBOX 1
21217EOF
21218
21219 USES_CONTROLS=1
21220fi
21221
21222if test "$wxUSE_LISTCTRL" = "yes"; then
21223 if test "$wxUSE_IMAGLIST" = "yes"; then
21224 cat >> confdefs.h <<\EOF
21225#define wxUSE_LISTCTRL 1
21226EOF
21227
21228 USES_CONTROLS=1
21229 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21230 else
21231 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
21232 fi
21233fi
21234
21235if test "$wxUSE_NOTEBOOK" = "yes"; then
21236 cat >> confdefs.h <<\EOF
21237#define wxUSE_NOTEBOOK 1
21238EOF
21239
21240 USES_CONTROLS=1
21241 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21242fi
21243
21244if test "$wxUSE_PROPSHEET" = "yes"; then
21245 cat >> confdefs.h <<\EOF
21246#define wxUSE_PROPSHEET 1
21247EOF
21248
21249 USES_CONTROLS=1
21250 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
21251fi
21252
21253if test "$wxUSE_RADIOBOX" = "yes"; then
21254 cat >> confdefs.h <<\EOF
21255#define wxUSE_RADIOBOX 1
21256EOF
21257
21258 USES_CONTROLS=1
21259fi
21260
21261if test "$wxUSE_RADIOBTN" = "yes"; then
21262 cat >> confdefs.h <<\EOF
21263#define wxUSE_RADIOBTN 1
21264EOF
21265
21266 USES_CONTROLS=1
21267fi
21268
21269if test "$wxUSE_SASH" = "yes"; then
21270 cat >> confdefs.h <<\EOF
21271#define wxUSE_SASH 1
21272EOF
21273
21274 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21275fi
21276
21277if test "$wxUSE_SCROLLBAR" = "yes"; then
21278 cat >> confdefs.h <<\EOF
21279#define wxUSE_SCROLLBAR 1
21280EOF
21281
21282 USES_CONTROLS=1
21283 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
21284fi
21285
21286if test "$wxUSE_SLIDER" = "yes"; then
21287 cat >> confdefs.h <<\EOF
21288#define wxUSE_SLIDER 1
21289EOF
21290
21291 USES_CONTROLS=1
21292fi
21293
21294if test "$wxUSE_SPINBTN" = "yes"; then
21295 cat >> confdefs.h <<\EOF
21296#define wxUSE_SPINBTN 1
21297EOF
21298
21299 USES_CONTROLS=1
21300fi
21301
21302if test "$wxUSE_SPINCTRL" = "yes"; then
21303 cat >> confdefs.h <<\EOF
21304#define wxUSE_SPINCTRL 1
21305EOF
21306
21307 USES_CONTROLS=1
21308fi
21309
21310if test "$wxUSE_SPLITTER" = "yes"; then
21311 cat >> confdefs.h <<\EOF
21312#define wxUSE_SPLITTER 1
21313EOF
21314
21315 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21316fi
21317
21318if test "$wxUSE_STATBMP" = "yes"; then
21319 cat >> confdefs.h <<\EOF
21320#define wxUSE_STATBMP 1
21321EOF
21322
21323 USES_CONTROLS=1
21324fi
21325
21326if test "$wxUSE_STATBOX" = "yes"; then
21327 cat >> confdefs.h <<\EOF
21328#define wxUSE_STATBOX 1
21329EOF
21330
21331 USES_CONTROLS=1
21332fi
21333
21334if test "$wxUSE_STATTEXT" = "yes"; then
21335 cat >> confdefs.h <<\EOF
21336#define wxUSE_STATTEXT 1
21337EOF
21338
21339 USES_CONTROLS=1
21340fi
21341
21342if test "$wxUSE_STATLINE" = "yes"; then
21343 if test "$wxUSE_WINE" = 1 ; then
21344 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
21345 else
21346 cat >> confdefs.h <<\EOF
21347#define wxUSE_STATLINE 1
21348EOF
21349
21350 USES_CONTROLS=1
21351 fi
21352fi
21353
21354if test "$wxUSE_STATUSBAR" = "yes"; then
21355 cat >> confdefs.h <<\EOF
21356#define wxUSE_STATUSBAR 1
21357EOF
21358
21359 USES_CONTROLS=1
21360
21361 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
21362fi
21363
21364if test "$wxUSE_TABDIALOG" = "yes"; then
21365 cat >> confdefs.h <<\EOF
21366#define wxUSE_TAB_DIALOG 1
21367EOF
21368
21369 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21370fi
21371
21372if test "$wxUSE_TEXTCTRL" = "yes"; then
21373 cat >> confdefs.h <<\EOF
21374#define wxUSE_TEXTCTRL 1
21375EOF
21376
21377 USES_CONTROLS=1
21378 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21379fi
21380
21381if test "$wxUSE_TOGGLEBTN" = "yes"; then
21382 if test "$wxUSE_MAC" = 1; then
21383 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
21384 wxUSE_TOGGLEBTN=no
21385 fi
21386 if test "$wxUSE_UNIVERSAL" = "yes"; then
21387 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
21388 wxUSE_TOGGLEBTN=no
21389 fi
21390
21391 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21392 cat >> confdefs.h <<\EOF
21393#define wxUSE_TOGGLEBTN 1
21394EOF
21395
21396 USES_CONTROLS=1
21397 fi
21398fi
21399
21400if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
21401 cat >> confdefs.h <<\EOF
21402#define wxUSE_TOOLBAR_SIMPLE 1
21403EOF
21404
21405 wxUSE_TOOLBAR="yes"
21406 USES_CONTROLS=1
21407fi
21408
21409if test "$wxUSE_TOOLBAR" = "yes"; then
21410 cat >> confdefs.h <<\EOF
21411#define wxUSE_TOOLBAR 1
21412EOF
21413
21414 USES_CONTROLS=1
21415
21416 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21417 wxUSE_TOOLBAR_NATIVE="yes"
21418 fi
21419
21420 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
21421 cat >> confdefs.h <<\EOF
21422#define wxUSE_TOOLBAR_NATIVE 1
21423EOF
21424
21425 USES_CONTROLS=1
21426 fi
21427
21428 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
21429fi
21430
21431if test "$wxUSE_TOOLTIPS" = "yes"; then
21432 if test "$wxUSE_MOTIF" = 1; then
21433 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
21434 else
21435 if test "$wxUSE_WINE" = 1; then
21436 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
21437 else
21438 if test "$wxUSE_UNIVERSAL" = "yes"; then
21439 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
21440 else
21441 cat >> confdefs.h <<\EOF
21442#define wxUSE_TOOLTIPS 1
21443EOF
21444
21445 fi
21446 fi
21447 fi
21448fi
21449
21450if test "$wxUSE_TREECTRL" = "yes"; then
21451 if test "$wxUSE_IMAGLIST" = "yes"; then
21452 cat >> confdefs.h <<\EOF
21453#define wxUSE_TREECTRL 1
21454EOF
21455
21456 USES_CONTROLS=1
21457 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21458 else
21459 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
21460 fi
21461fi
21462
21463if test "$wxUSE_POPUPWIN" = "yes"; then
21464 if test "$wxUSE_MAC" = 1; then
21465 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
21466 else
21467 if test "$wxUSE_MOTIF" = 1; then
21468 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
21469 else
21470 if test "$wxUSE_PM" = 1; then
21471 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
21472 else
21473 cat >> confdefs.h <<\EOF
21474#define wxUSE_POPUPWIN 1
21475EOF
21476
21477
21478 USES_CONTROLS=1
21479 fi
21480 fi
21481 fi
21482fi
21483
21484if test "$wxUSE_TIPWINDOW" = "yes"; then
21485 if test "$wxUSE_PM" = 1; then
21486 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
21487 else
21488 cat >> confdefs.h <<\EOF
21489#define wxUSE_TIPWINDOW 1
21490EOF
21491
21492 fi
21493fi
21494
21495if test "$USES_CONTROLS" = 1; then
21496 cat >> confdefs.h <<\EOF
21497#define wxUSE_CONTROLS 1
21498EOF
21499
21500fi
21501
21502
21503if test "$wxUSE_TREELAYOUT" = "yes"; then
21504 cat >> confdefs.h <<\EOF
21505#define wxUSE_TREELAYOUT 1
21506EOF
21507
21508 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
21509fi
21510
21511if test "$wxUSE_DRAGIMAGE" = "yes"; then
21512 cat >> confdefs.h <<\EOF
21513#define wxUSE_DRAGIMAGE 1
21514EOF
21515
21516 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21517fi
21518
21519if test "$wxUSE_MENUS" = "yes"; then
21520 cat >> confdefs.h <<\EOF
21521#define wxUSE_MENUS 1
21522EOF
21523
21524 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
21525fi
21526
21527if test "$wxUSE_METAFILE" = "yes"; then
21528 cat >> confdefs.h <<\EOF
21529#define wxUSE_METAFILE 1
21530EOF
21531
21532fi
21533
21534if test "$wxUSE_MIMETYPE" = "yes"; then
21535 cat >> confdefs.h <<\EOF
21536#define wxUSE_MIMETYPE 1
21537EOF
21538
21539fi
21540
21541if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
21542 cat >> confdefs.h <<\EOF
21543#define wxUSE_SYSTEM_OPTIONS 1
21544EOF
21545
21546if test "$TOOLKIT" = "MSW"; then
21547 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21548fi
21549
21550fi
21551
21552if test "$wxUSE_PROTOCOL" = "yes"; then
21553 if test "$wxUSE_SOCKETS" != "yes"; then
21554 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
21555 wxUSE_PROTOCOL=no
21556 fi
21557
21558 if test "$wxUSE_PROTOCOL" = "yes"; then
21559 cat >> confdefs.h <<\EOF
21560#define wxUSE_PROTOCOL 1
21561EOF
21562
21563
21564 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
21565 cat >> confdefs.h <<\EOF
21566#define wxUSE_PROTOCOL_HTTP 1
21567EOF
21568
21569 fi
21570 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
21571 cat >> confdefs.h <<\EOF
21572#define wxUSE_PROTOCOL_FTP 1
21573EOF
21574
21575 fi
21576 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
21577 cat >> confdefs.h <<\EOF
21578#define wxUSE_PROTOCOL_FILE 1
21579EOF
21580
21581 fi
21582 fi
21583fi
21584
21585if test "$wxUSE_URL" = "yes"; then
21586 if test "$wxUSE_PROTOCOL" != "yes"; then
21587 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
21588 wxUSE_URL=no
21589 fi
21590 if test "$wxUSE_URL" = "yes"; then
21591 cat >> confdefs.h <<\EOF
21592#define wxUSE_URL 1
21593EOF
21594
21595 fi
21596fi
21597
21598if test "$wxUSE_MINIFRAME" = "yes"; then
21599 cat >> confdefs.h <<\EOF
21600#define wxUSE_MINIFRAME 1
21601EOF
21602
21603 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
21604fi
21605
21606if test "$wxUSE_HTML" = "yes"; then
21607 cat >> confdefs.h <<\EOF
21608#define wxUSE_HTML 1
21609EOF
21610
21611 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
21612fi
21613
21614if test "$wxUSE_VALIDATORS" = "yes"; then
21615 cat >> confdefs.h <<\EOF
21616#define wxUSE_VALIDATORS 1
21617EOF
21618
21619 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
21620fi
21621
21622if test "$wxUSE_PALETTE" = "yes" ; then
21623 cat >> confdefs.h <<\EOF
21624#define wxUSE_PALETTE 1
21625EOF
21626
21627fi
21628
21629if test "$wxUSE_IMAGE" = "yes" ; then
21630 cat >> confdefs.h <<\EOF
21631#define wxUSE_IMAGE 1
21632EOF
21633
21634fi
21635
21636if test "$wxUSE_GIF" = "yes" ; then
21637 cat >> confdefs.h <<\EOF
21638#define wxUSE_GIF 1
21639EOF
21640
21641fi
21642
21643if test "$wxUSE_PCX" = "yes" ; then
21644 cat >> confdefs.h <<\EOF
21645#define wxUSE_PCX 1
21646EOF
21647
21648fi
21649
21650if test "$wxUSE_IFF" = "yes" ; then
21651 cat >> confdefs.h <<\EOF
21652#define wxUSE_IFF 1
21653EOF
21654
21655fi
21656
21657if test "$wxUSE_PNM" = "yes" ; then
21658 cat >> confdefs.h <<\EOF
21659#define wxUSE_PNM 1
21660EOF
21661
21662fi
21663
21664if test "$wxUSE_XPM" = "yes" ; then
21665 cat >> confdefs.h <<\EOF
21666#define wxUSE_XPM 1
21667EOF
21668
21669fi
21670
21671if test "$wxUSE_ICO_CUR" = "yes" ; then
21672 cat >> confdefs.h <<\EOF
21673#define wxUSE_ICO_CUR 1
21674EOF
21675
21676fi
21677
21678if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
21679 LIBS=" -lunicows $LIBS"
21680fi
21681
21682
21683if test "$wxUSE_CHOICEDLG" = "yes"; then
21684 cat >> confdefs.h <<\EOF
21685#define wxUSE_CHOICEDLG 1
21686EOF
21687
21688fi
21689
21690if test "$wxUSE_COLOURDLG" = "yes"; then
21691 cat >> confdefs.h <<\EOF
21692#define wxUSE_COLOURDLG 1
21693EOF
21694
21695fi
21696
21697if test "$wxUSE_FILEDLG" = "yes"; then
21698 cat >> confdefs.h <<\EOF
21699#define wxUSE_FILEDLG 1
21700EOF
21701
21702fi
21703
21704if test "$wxUSE_FINDREPLDLG" = "yes"; then
21705 cat >> confdefs.h <<\EOF
21706#define wxUSE_FINDREPLDLG 1
21707EOF
21708
21709fi
21710
21711if test "$wxUSE_FONTDLG" = "yes"; then
21712 cat >> confdefs.h <<\EOF
21713#define wxUSE_FONTDLG 1
21714EOF
21715
21716fi
21717
21718if test "$wxUSE_DIRDLG" = "yes"; then
21719 if test "$wxUSE_TREECTRL" != "yes"; then
21720 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
21721 else
21722 cat >> confdefs.h <<\EOF
21723#define wxUSE_DIRDLG 1
21724EOF
21725
21726 fi
21727fi
21728
21729if test "$wxUSE_MSGDLG" = "yes"; then
21730 cat >> confdefs.h <<\EOF
21731#define wxUSE_MSGDLG 1
21732EOF
21733
21734fi
21735
21736if test "$wxUSE_NUMBERDLG" = "yes"; then
21737 cat >> confdefs.h <<\EOF
21738#define wxUSE_NUMBERDLG 1
21739EOF
21740
21741fi
21742
21743if test "$wxUSE_PROGRESSDLG" = "yes"; then
21744 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21745 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
21746 else
21747 cat >> confdefs.h <<\EOF
21748#define wxUSE_PROGRESSDLG 1
21749EOF
21750
21751 fi
21752fi
21753
21754if test "$wxUSE_SPLASH" = "yes"; then
21755 cat >> confdefs.h <<\EOF
21756#define wxUSE_SPLASH 1
21757EOF
21758
21759fi
21760
21761if test "$wxUSE_STARTUP_TIPS" = "yes"; then
21762 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21763 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
21764 else
21765 cat >> confdefs.h <<\EOF
21766#define wxUSE_STARTUP_TIPS 1
21767EOF
21768
21769 fi
21770fi
21771
21772if test "$wxUSE_TEXTDLG" = "yes"; then
21773 cat >> confdefs.h <<\EOF
21774#define wxUSE_TEXTDLG 1
21775EOF
21776
21777fi
21778
21779if test "$wxUSE_WIZARDDLG" = "yes"; then
21780 cat >> confdefs.h <<\EOF
21781#define wxUSE_WIZARDDLG 1
21782EOF
21783
21784 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
21785fi
21786
21787
21788if test "$cross_compiling" = "yes"; then
21789 OSINFO="\"$host\""
21790else
21791 OSINFO=`uname -s -r -m`
21792 OSINFO="\"$OSINFO\""
21793fi
21794
21795cat >> confdefs.h <<EOF
21796#define WXWIN_OS_DESCRIPTION $OSINFO
21797EOF
21798
21799
21800
21801if test "x$prefix" != "xNONE"; then
21802 wxPREFIX=$prefix
21803else
21804 wxPREFIX=$ac_default_prefix
21805fi
21806
21807cat >> confdefs.h <<EOF
21808#define wxINSTALL_PREFIX "$wxPREFIX"
21809EOF
21810
21811
21812
21813
21814
21815if test "$wxUSE_MAC" = 1 ; then
21816 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
21817fi
21818
21819
21820LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
21821
21822have_cos=0
21823have_floor=0
21824for ac_func in cos
21825do
21826echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21827echo "configure:21828: checking for $ac_func" >&5
21828if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21829 echo $ac_n "(cached) $ac_c" 1>&6
21830else
21831 cat > conftest.$ac_ext <<EOF
21832#line 21833 "configure"
21833#include "confdefs.h"
21834/* System header to define __stub macros and hopefully few prototypes,
21835 which can conflict with char $ac_func(); below. */
21836#include <assert.h>
21837/* Override any gcc2 internal prototype to avoid an error. */
21838/* We use char because int might match the return type of a gcc2
21839 builtin and then its argument prototype would still apply. */
21840char $ac_func();
21841
21842int main() {
21843
21844/* The GNU C library defines this for functions which it implements
21845 to always fail with ENOSYS. Some functions are actually named
21846 something starting with __ and the normal name is an alias. */
21847#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21848choke me
21849#else
21850$ac_func();
21851#endif
21852
21853; return 0; }
21854EOF
21855if { (eval echo configure:21856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21856 rm -rf conftest*
21857 eval "ac_cv_func_$ac_func=yes"
21858else
21859 echo "configure: failed program was:" >&5
21860 cat conftest.$ac_ext >&5
21861 rm -rf conftest*
21862 eval "ac_cv_func_$ac_func=no"
21863fi
21864rm -f conftest*
21865fi
21866
21867if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21868 echo "$ac_t""yes" 1>&6
21869 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21870 cat >> confdefs.h <<EOF
21871#define $ac_tr_func 1
21872EOF
21873 have_cos=1
21874else
21875 echo "$ac_t""no" 1>&6
21876fi
21877done
21878
21879for ac_func in floor
21880do
21881echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21882echo "configure:21883: checking for $ac_func" >&5
21883if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21884 echo $ac_n "(cached) $ac_c" 1>&6
21885else
21886 cat > conftest.$ac_ext <<EOF
21887#line 21888 "configure"
21888#include "confdefs.h"
21889/* System header to define __stub macros and hopefully few prototypes,
21890 which can conflict with char $ac_func(); below. */
21891#include <assert.h>
21892/* Override any gcc2 internal prototype to avoid an error. */
21893/* We use char because int might match the return type of a gcc2
21894 builtin and then its argument prototype would still apply. */
21895char $ac_func();
21896
21897int main() {
21898
21899/* The GNU C library defines this for functions which it implements
21900 to always fail with ENOSYS. Some functions are actually named
21901 something starting with __ and the normal name is an alias. */
21902#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21903choke me
21904#else
21905$ac_func();
21906#endif
21907
21908; return 0; }
21909EOF
21910if { (eval echo configure:21911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21911 rm -rf conftest*
21912 eval "ac_cv_func_$ac_func=yes"
21913else
21914 echo "configure: failed program was:" >&5
21915 cat conftest.$ac_ext >&5
21916 rm -rf conftest*
21917 eval "ac_cv_func_$ac_func=no"
21918fi
21919rm -f conftest*
21920fi
21921
21922if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21923 echo "$ac_t""yes" 1>&6
21924 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21925 cat >> confdefs.h <<EOF
21926#define $ac_tr_func 1
21927EOF
21928 have_floor=1
21929else
21930 echo "$ac_t""no" 1>&6
21931fi
21932done
21933
21934echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
21935echo "configure:21936: checking if floating point functions link without -lm" >&5
21936if test "$have_cos" = 1 -a "$have_floor" = 1; then
21937 echo "$ac_t""yes" 1>&6
21938else
21939 echo "$ac_t""no" 1>&6
21940 LIBS="$LIBS -lm"
21941 # use different functions to avoid configure caching
21942 have_sin=0
21943 have_ceil=0
21944 for ac_func in sin
21945do
21946echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21947echo "configure:21948: checking for $ac_func" >&5
21948if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21949 echo $ac_n "(cached) $ac_c" 1>&6
21950else
21951 cat > conftest.$ac_ext <<EOF
21952#line 21953 "configure"
21953#include "confdefs.h"
21954/* System header to define __stub macros and hopefully few prototypes,
21955 which can conflict with char $ac_func(); below. */
21956#include <assert.h>
21957/* Override any gcc2 internal prototype to avoid an error. */
21958/* We use char because int might match the return type of a gcc2
21959 builtin and then its argument prototype would still apply. */
21960char $ac_func();
21961
21962int main() {
21963
21964/* The GNU C library defines this for functions which it implements
21965 to always fail with ENOSYS. Some functions are actually named
21966 something starting with __ and the normal name is an alias. */
21967#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21968choke me
21969#else
21970$ac_func();
21971#endif
21972
21973; return 0; }
21974EOF
21975if { (eval echo configure:21976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21976 rm -rf conftest*
21977 eval "ac_cv_func_$ac_func=yes"
21978else
21979 echo "configure: failed program was:" >&5
21980 cat conftest.$ac_ext >&5
21981 rm -rf conftest*
21982 eval "ac_cv_func_$ac_func=no"
21983fi
21984rm -f conftest*
21985fi
21986
21987if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21988 echo "$ac_t""yes" 1>&6
21989 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21990 cat >> confdefs.h <<EOF
21991#define $ac_tr_func 1
21992EOF
21993 have_sin=1
21994else
21995 echo "$ac_t""no" 1>&6
21996fi
21997done
21998
21999 for ac_func in ceil
22000do
22001echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22002echo "configure:22003: checking for $ac_func" >&5
22003if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22004 echo $ac_n "(cached) $ac_c" 1>&6
22005else
22006 cat > conftest.$ac_ext <<EOF
22007#line 22008 "configure"
22008#include "confdefs.h"
22009/* System header to define __stub macros and hopefully few prototypes,
22010 which can conflict with char $ac_func(); below. */
22011#include <assert.h>
22012/* Override any gcc2 internal prototype to avoid an error. */
22013/* We use char because int might match the return type of a gcc2
22014 builtin and then its argument prototype would still apply. */
22015char $ac_func();
22016
22017int main() {
22018
22019/* The GNU C library defines this for functions which it implements
22020 to always fail with ENOSYS. Some functions are actually named
22021 something starting with __ and the normal name is an alias. */
22022#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22023choke me
22024#else
22025$ac_func();
22026#endif
22027
22028; return 0; }
22029EOF
22030if { (eval echo configure:22031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22031 rm -rf conftest*
22032 eval "ac_cv_func_$ac_func=yes"
22033else
22034 echo "configure: failed program was:" >&5
22035 cat conftest.$ac_ext >&5
22036 rm -rf conftest*
22037 eval "ac_cv_func_$ac_func=no"
22038fi
22039rm -f conftest*
22040fi
22041
22042if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22043 echo "$ac_t""yes" 1>&6
22044 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22045 cat >> confdefs.h <<EOF
22046#define $ac_tr_func 1
22047EOF
22048 have_ceil=1
22049else
22050 echo "$ac_t""no" 1>&6
22051fi
22052done
22053
22054 echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
22055echo "configure:22056: checking if floating point functions link with -lm" >&5
22056 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
22057 echo "$ac_t""yes" 1>&6
22058 else
22059 echo "$ac_t""no" 1>&6
22060 # not sure we should warn the user, crash, etc.
22061 fi
22062fi
22063
22064if test "$wxUSE_GUI" = "yes"; then
22065
22066 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
22067
22068
22069 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
22070 drawing dynamic erase event exec font image \
22071 minimal propsize rotate widgets"
22072
22073 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
22074else
22075 SAMPLES_SUBDIRS="console"
22076fi
22077
22078
22079INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22080-I\${top_srcdir}/include \
22081$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22082$TOOLKIT_INCLUDE"
22083
22084if test "$wxUSE_GTK" = 1; then
22085 WXCONFIG_INCLUDE=
22086else
22087 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22088fi
22089
22090if test "$GXX" = yes ; then
22091 CXXWARNINGS="-Wall"
22092
22093 if test "$wxUSE_NO_DEPS" = "no" ; then
22094 CFLAGS="-MMD $CFLAGS"
22095 CXXFLAGS="-MMD $CXXFLAGS"
22096 fi
22097fi
22098
22099EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
22100
22101CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
22102CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
22103CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
22104LIBS=`echo $LIBS | sed 's/ \+/ /g'`
22105
22106LDFLAGS="$LDFLAGS $PROFILE"
22107
22108SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
22208echo "configure:22209: checking whether ${MAKE-make} sets \${MAKE}" >&5
22209set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22210if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22211 echo $ac_n "(cached) $ac_c" 1>&6
22212else
22213 cat > conftestmake <<\EOF
22214all:
22215 @echo 'ac_maketemp="${MAKE}"'
22216EOF
22217# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22218eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
22219if test -n "$ac_maketemp"; then
22220 eval ac_cv_prog_make_${ac_make}_set=yes
22221else
22222 eval ac_cv_prog_make_${ac_make}_set=no
22223fi
22224rm -f conftestmake
22225fi
22226if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
22227 echo "$ac_t""yes" 1>&6
22228 SET_MAKE=
22229else
22230 echo "$ac_t""no" 1>&6
22231 SET_MAKE="MAKE=${MAKE-make}"
22232fi
22233
22234
22235if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22236 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
22237fi
22238
22239
22240
22241wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22242wx_cv_if_gnu_make=$IF_GNU_MAKE
22243wx_cv_path_ifs=$PATH_IFS
22244wx_cv_program_ext=$PROGRAM_EXT
22245wx_cv_target_library=$WX_TARGET_LIBRARY
22246wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22247wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
22248wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22249wx_cv_release=${WX_RELEASE}
22250wx_cv_current=${WX_CURRENT}
22251wx_cv_revision=${WX_REVISION}
22252wx_cv_age=${WX_AGE}
22253wx_cv_use_gui=${USE_GUI}
22254wx_cv_use_resources=${wxUSE_RESOURCES}
22255export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22256 wx_cv_path_ifs wx_cv_program_ext \
22257 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
22258 wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
22259 wx_cv_use_gui wx_cv_use_resources
22260
22261subdirs="demos samples utils contrib"
22262
22263
22264trap '' 1 2 15
22265cat > confcache <<\EOF
22266# This file is a shell script that caches the results of configure
22267# tests run on this system so they can be shared between configure
22268# scripts and configure runs. It is not useful on other systems.
22269# If it contains results you don't want to keep, you may remove or edit it.
22270#
22271# By default, configure uses ./config.cache as the cache file,
22272# creating it if it does not exist already. You can give configure
22273# the --cache-file=FILE option to use a different cache file; that is
22274# what configure does when it calls configure scripts in
22275# subdirectories, so they share the cache.
22276# Giving --cache-file=/dev/null disables caching, for debugging configure.
22277# config.status only pays attention to the cache file if you give it the
22278# --recheck option to rerun configure.
22279#
22280EOF
22281# The following way of writing the cache mishandles newlines in values,
22282# but we know of no workaround that is simple, portable, and efficient.
22283# So, don't put newlines in cache variables' values.
22284# Ultrix sh set writes to stderr and can't be redirected directly,
22285# and sets the high bit in the cache file unless we assign to the vars.
22286(set) 2>&1 |
22287 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22288 *ac_space=\ *)
22289 # `set' does not quote correctly, so add quotes (double-quote substitution
22290 # turns \\\\ into \\, and sed turns \\ into \).
22291 sed -n \
22292 -e "s/'/'\\\\''/g" \
22293 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22294 ;;
22295 *)
22296 # `set' quotes correctly as required by POSIX, so do not add quotes.
22297 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22298 ;;
22299 esac >> confcache
22300if cmp -s $cache_file confcache; then
22301 :
22302else
22303 if test -w $cache_file; then
22304 echo "updating cache $cache_file"
22305 cat confcache > $cache_file
22306 else
22307 echo "not updating unwritable cache $cache_file"
22308 fi
22309fi
22310rm -f confcache
22311
22312trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22313
22314test "x$prefix" = xNONE && prefix=$ac_default_prefix
22315# Let make expand exec_prefix.
22316test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22317
22318# Any assignment to VPATH causes Sun make to only execute
22319# the first set of double-colon rules, so remove it if not needed.
22320# If there is a colon in the path, we need to keep it.
22321if test "x$srcdir" = x.; then
22322 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22323fi
22324
22325trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22326
22327DEFS=-DHAVE_CONFIG_H
22328
22329# Without the "./", some shells look in PATH for config.status.
22330: ${CONFIG_STATUS=./config.status}
22331
22332echo creating $CONFIG_STATUS
22333rm -f $CONFIG_STATUS
22334cat > $CONFIG_STATUS <<EOF
22335#! /bin/sh
22336# Generated automatically by configure.
22337# Run this file to recreate the current configuration.
22338# This directory was configured as follows,
22339# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22340#
22341# $0 $ac_configure_args
22342#
22343# Compiler output produced by configure, useful for debugging
22344# configure, is in ./config.log if it exists.
22345
22346ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22347for ac_option
22348do
22349 case "\$ac_option" in
22350 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22351 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22352 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22353 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22354 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22355 exit 0 ;;
22356 -help | --help | --hel | --he | --h)
22357 echo "\$ac_cs_usage"; exit 0 ;;
22358 *) echo "\$ac_cs_usage"; exit 1 ;;
22359 esac
22360done
22361
22362ac_given_srcdir=$srcdir
22363ac_given_INSTALL="$INSTALL"
22364
22365trap 'rm -fr `echo "
22366 wx-config
22367 version-script
22368 src/make.env
22369 src/makeprog.env
22370 src/makelib.env
22371 Makefile
22372 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22373EOF
22374cat >> $CONFIG_STATUS <<EOF
22375
22376# Protect against being on the right side of a sed subst in config.status.
22377sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22378 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22379$ac_vpsub
22380$extrasub
22381s%@SHELL@%$SHELL%g
22382s%@CFLAGS@%$CFLAGS%g
22383s%@CPPFLAGS@%$CPPFLAGS%g
22384s%@CXXFLAGS@%$CXXFLAGS%g
22385s%@FFLAGS@%$FFLAGS%g
22386s%@DEFS@%$DEFS%g
22387s%@LDFLAGS@%$LDFLAGS%g
22388s%@LIBS@%$LIBS%g
22389s%@exec_prefix@%$exec_prefix%g
22390s%@prefix@%$prefix%g
22391s%@program_transform_name@%$program_transform_name%g
22392s%@bindir@%$bindir%g
22393s%@sbindir@%$sbindir%g
22394s%@libexecdir@%$libexecdir%g
22395s%@datadir@%$datadir%g
22396s%@sysconfdir@%$sysconfdir%g
22397s%@sharedstatedir@%$sharedstatedir%g
22398s%@localstatedir@%$localstatedir%g
22399s%@libdir@%$libdir%g
22400s%@includedir@%$includedir%g
22401s%@oldincludedir@%$oldincludedir%g
22402s%@infodir@%$infodir%g
22403s%@mandir@%$mandir%g
22404s%@host@%$host%g
22405s%@host_alias@%$host_alias%g
22406s%@host_cpu@%$host_cpu%g
22407s%@host_vendor@%$host_vendor%g
22408s%@host_os@%$host_os%g
22409s%@target@%$target%g
22410s%@target_alias@%$target_alias%g
22411s%@target_cpu@%$target_cpu%g
22412s%@target_vendor@%$target_vendor%g
22413s%@target_os@%$target_os%g
22414s%@build@%$build%g
22415s%@build_alias@%$build_alias%g
22416s%@build_cpu@%$build_cpu%g
22417s%@build_vendor@%$build_vendor%g
22418s%@build_os@%$build_os%g
22419s%@CC@%$CC%g
22420s%@CPP@%$CPP%g
22421s%@CXX@%$CXX%g
22422s%@RANLIB@%$RANLIB%g
22423s%@AR@%$AR%g
22424s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22425s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22426s%@INSTALL_DATA@%$INSTALL_DATA%g
22427s%@STRIP@%$STRIP%g
22428s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22429s%@YACC@%$YACC%g
22430s%@LEX@%$LEX%g
22431s%@LEXLIB@%$LEXLIB%g
22432s%@LN_S@%$LN_S%g
22433s%@CXXCPP@%$CXXCPP%g
22434s%@PKG_CONFIG@%$PKG_CONFIG%g
22435s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22436s%@GTK_LIBS@%$GTK_LIBS%g
22437s%@GTK_CONFIG@%$GTK_CONFIG%g
22438s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22439s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22440s%@X_CFLAGS@%$X_CFLAGS%g
22441s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22442s%@X_LIBS@%$X_LIBS%g
22443s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
22444s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22445s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22446s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22447s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
22448s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22449s%@RESCOMP@%$RESCOMP%g
22450s%@DEREZ@%$DEREZ%g
22451s%@LIBICONV@%$LIBICONV%g
22452s%@LEX_STEM@%$LEX_STEM%g
22453s%@PATH_IFS@%$PATH_IFS%g
22454s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22455s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22456s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22457s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22458s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
22459s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
22460s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22461s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22462s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22463s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22464s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22465s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22466s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22467s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22468s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22469s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22470s%@WX_ALL@%$WX_ALL%g
22471s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22472s%@SHARED_LD@%$SHARED_LD%g
22473s%@PIC_FLAG@%$PIC_FLAG%g
22474s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22475s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22476s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22477s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22478s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22479s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
22480s%@STATIC_FLAG@%$STATIC_FLAG%g
22481s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22482s%@USE_GUI@%$USE_GUI%g
22483s%@AFMINSTALL@%$AFMINSTALL%g
22484s%@WIN32INSTALL@%$WIN32INSTALL%g
22485s%@TOOLKIT@%$TOOLKIT%g
22486s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22487s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22488s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22489s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22490s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
22491s%@cross_compiling@%$cross_compiling%g
22492s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22493s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22494s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22495s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22496s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22497s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
22498s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
22499s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22500s%@ALL_HEADERS@%$ALL_HEADERS%g
22501s%@ALL_SOURCES@%$ALL_SOURCES%g
22502s%@GUIDIST@%$GUIDIST%g
22503s%@PORT_FILES@%$PORT_FILES%g
22504s%@DISTDIR@%$DISTDIR%g
22505s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22506s%@LDFLAGS_GL@%$LDFLAGS_GL%g
22507s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
22508s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22509s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22510s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22511s%@EXTRADEFS@%$EXTRADEFS%g
22512s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
22513s%@RESFLAGS@%$RESFLAGS%g
22514s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22515s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22516s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22517s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22518s%@LIBWXMACRES@%$LIBWXMACRES%g
22519s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
22520s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
22521s%@GCC@%$GCC%g
22522s%@DLLTOOL@%$DLLTOOL%g
22523s%@AS@%$AS%g
22524s%@NM@%$NM%g
22525s%@LD@%$LD%g
22526s%@MAKEINFO@%$MAKEINFO%g
22527s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
22528s%@SET_MAKE@%$SET_MAKE%g
22529s%@subdirs@%$subdirs%g
22530
22531CEOF
22532EOF
22533
22534cat >> $CONFIG_STATUS <<\EOF
22535
22536# Split the substitutions into bite-sized pieces for seds with
22537# small command number limits, like on Digital OSF/1 and HP-UX.
22538ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22539ac_file=1 # Number of current file.
22540ac_beg=1 # First line for current file.
22541ac_end=$ac_max_sed_cmds # Line after last line for current file.
22542ac_more_lines=:
22543ac_sed_cmds=""
22544while $ac_more_lines; do
22545 if test $ac_beg -gt 1; then
22546 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22547 else
22548 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22549 fi
22550 if test ! -s conftest.s$ac_file; then
22551 ac_more_lines=false
22552 rm -f conftest.s$ac_file
22553 else
22554 if test -z "$ac_sed_cmds"; then
22555 ac_sed_cmds="sed -f conftest.s$ac_file"
22556 else
22557 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22558 fi
22559 ac_file=`expr $ac_file + 1`
22560 ac_beg=$ac_end
22561 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22562 fi
22563done
22564if test -z "$ac_sed_cmds"; then
22565 ac_sed_cmds=cat
22566fi
22567EOF
22568
22569cat >> $CONFIG_STATUS <<EOF
22570
22571CONFIG_FILES=\${CONFIG_FILES-"wx-config
22572 version-script
22573 src/make.env
22574 src/makeprog.env
22575 src/makelib.env
22576 Makefile
22577 "}
22578EOF
22579cat >> $CONFIG_STATUS <<\EOF
22580for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22581 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22582 case "$ac_file" in
22583 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22584 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22585 *) ac_file_in="${ac_file}.in" ;;
22586 esac
22587
22588 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22589
22590 # Remove last slash and all that follows it. Not all systems have dirname.
22591 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22592 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22593 # The file is in a subdirectory.
22594 test ! -d "$ac_dir" && mkdir "$ac_dir"
22595 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22596 # A "../" for each directory in $ac_dir_suffix.
22597 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22598 else
22599 ac_dir_suffix= ac_dots=
22600 fi
22601
22602 case "$ac_given_srcdir" in
22603 .) srcdir=.
22604 if test -z "$ac_dots"; then top_srcdir=.
22605 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22606 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22607 *) # Relative path.
22608 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22609 top_srcdir="$ac_dots$ac_given_srcdir" ;;
22610 esac
22611
22612 case "$ac_given_INSTALL" in
22613 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22614 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22615 esac
22616
22617 echo creating "$ac_file"
22618 rm -f "$ac_file"
22619 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22620 case "$ac_file" in
22621 *Makefile*) ac_comsub="1i\\
22622# $configure_input" ;;
22623 *) ac_comsub= ;;
22624 esac
22625
22626 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22627 sed -e "$ac_comsub
22628s%@configure_input@%$configure_input%g
22629s%@srcdir@%$srcdir%g
22630s%@top_srcdir@%$top_srcdir%g
22631s%@INSTALL@%$INSTALL%g
22632" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22633fi; done
22634rm -f conftest.s*
22635
22636# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22637# NAME is the cpp macro being defined and VALUE is the value it is being given.
22638#
22639# ac_d sets the value in "#define NAME VALUE" lines.
22640ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22641ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22642ac_dC='\3'
22643ac_dD='%g'
22644# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22645ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22646ac_uB='\([ ]\)%\1#\2define\3'
22647ac_uC=' '
22648ac_uD='\4%g'
22649# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22650ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22651ac_eB='$%\1#\2define\3'
22652ac_eC=' '
22653ac_eD='%g'
22654
22655if test "${CONFIG_HEADERS+set}" != set; then
22656EOF
22657cat >> $CONFIG_STATUS <<EOF
22658 CONFIG_HEADERS="setup.h:setup.h.in"
22659EOF
22660cat >> $CONFIG_STATUS <<\EOF
22661fi
22662for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22663 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22664 case "$ac_file" in
22665 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22666 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22667 *) ac_file_in="${ac_file}.in" ;;
22668 esac
22669
22670 echo creating $ac_file
22671
22672 rm -f conftest.frag conftest.in conftest.out
22673 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22674 cat $ac_file_inputs > conftest.in
22675
22676EOF
22677
22678# Transform confdefs.h into a sed script conftest.vals that substitutes
22679# the proper values into config.h.in to produce config.h. And first:
22680# Protect against being on the right side of a sed subst in config.status.
22681# Protect against being in an unquoted here document in config.status.
22682rm -f conftest.vals
22683cat > conftest.hdr <<\EOF
22684s/[\\&%]/\\&/g
22685s%[\\$`]%\\&%g
22686s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22687s%ac_d%ac_u%gp
22688s%ac_u%ac_e%gp
22689EOF
22690sed -n -f conftest.hdr confdefs.h > conftest.vals
22691rm -f conftest.hdr
22692
22693# This sed command replaces #undef with comments. This is necessary, for
22694# example, in the case of _POSIX_SOURCE, which is predefined and required
22695# on some systems where configure will not decide to define it.
22696cat >> conftest.vals <<\EOF
22697s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22698EOF
22699
22700# Break up conftest.vals because some shells have a limit on
22701# the size of here documents, and old seds have small limits too.
22702
22703rm -f conftest.tail
22704while :
22705do
22706 ac_lines=`grep -c . conftest.vals`
22707 # grep -c gives empty output for an empty file on some AIX systems.
22708 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22709 # Write a limited-size here document to conftest.frag.
22710 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22711 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22712 echo 'CEOF
22713 sed -f conftest.frag conftest.in > conftest.out
22714 rm -f conftest.in
22715 mv conftest.out conftest.in
22716' >> $CONFIG_STATUS
22717 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22718 rm -f conftest.vals
22719 mv conftest.tail conftest.vals
22720done
22721rm -f conftest.vals
22722
22723cat >> $CONFIG_STATUS <<\EOF
22724 rm -f conftest.frag conftest.h
22725 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22726 cat conftest.in >> conftest.h
22727 rm -f conftest.in
22728 if cmp -s $ac_file conftest.h 2>/dev/null; then
22729 echo "$ac_file is unchanged"
22730 rm -f conftest.h
22731 else
22732 # Remove last slash and all that follows it. Not all systems have dirname.
22733 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22734 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22735 # The file is in a subdirectory.
22736 test ! -d "$ac_dir" && mkdir "$ac_dir"
22737 fi
22738 rm -f $ac_file
22739 mv conftest.h $ac_file
22740 fi
22741fi; done
22742
22743EOF
22744cat >> $CONFIG_STATUS <<EOF
22745
22746 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
22747 LN_S="${LN_S}"
22748
22749
22750EOF
22751cat >> $CONFIG_STATUS <<\EOF
22752
22753 if test ! -h wx-config; then
22754 chmod +x wx-config
22755 mv wx-config wx${TOOLCHAIN_NAME}-config
22756 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
22757 fi
22758
22759 if test ! -d lib; then
22760 mkdir lib
22761 fi
22762 if test ! -d lib/wx; then
22763 mkdir lib/wx
22764 fi
22765 if test ! -d lib/wx/include; then
22766 mkdir lib/wx/include
22767 fi
22768 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
22769 mkdir lib/wx/include/${TOOLCHAIN_NAME}
22770 fi
22771 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
22772 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
22773 fi
22774 if test -f setup.h; then
22775 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
22776 fi
22777
22778exit 0
22779EOF
22780chmod +x $CONFIG_STATUS
22781rm -fr confdefs* $ac_clean_files
22782test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
22783
22784if test "$no_recursion" != yes; then
22785
22786 # Remove --cache-file and --srcdir arguments so they do not pile up.
22787 ac_sub_configure_args=
22788 ac_prev=
22789 for ac_arg in $ac_configure_args; do
22790 if test -n "$ac_prev"; then
22791 ac_prev=
22792 continue
22793 fi
22794 case "$ac_arg" in
22795 -cache-file | --cache-file | --cache-fil | --cache-fi \
22796 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22797 ac_prev=cache_file ;;
22798 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22799 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
22800 ;;
22801 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22802 ac_prev=srcdir ;;
22803 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22804 ;;
22805 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
22806 esac
22807 done
22808
22809 for ac_config_dir in demos samples utils contrib; do
22810
22811 # Do not complain, so a configure script can configure whichever
22812 # parts of a large source tree are present.
22813 if test ! -d $srcdir/$ac_config_dir; then
22814 continue
22815 fi
22816
22817 echo configuring in $ac_config_dir
22818
22819 case "$srcdir" in
22820 .) ;;
22821 *)
22822 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
22823 else
22824 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
22825 fi
22826 ;;
22827 esac
22828
22829 ac_popdir=`pwd`
22830 cd $ac_config_dir
22831
22832 # A "../" for each directory in /$ac_config_dir.
22833 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
22834
22835 case "$srcdir" in
22836 .) # No --srcdir option. We are building in place.
22837 ac_sub_srcdir=$srcdir ;;
22838 /*) # Absolute path.
22839 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
22840 *) # Relative path.
22841 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
22842 esac
22843
22844 # Check for guested configure; otherwise get Cygnus style configure.
22845 if test -f $ac_sub_srcdir/configure; then
22846 ac_sub_configure=$ac_sub_srcdir/configure
22847 elif test -f $ac_sub_srcdir/configure.in; then
22848 ac_sub_configure=$ac_configure
22849 else
22850 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
22851 ac_sub_configure=
22852 fi
22853
22854 # The recursion is here.
22855 if test -n "$ac_sub_configure"; then
22856
22857 # Make the cache file name correct relative to the subdirectory.
22858 case "$cache_file" in
22859 /*) ac_sub_cache_file=$cache_file ;;
22860 *) # Relative path.
22861 ac_sub_cache_file="$ac_dots$cache_file" ;;
22862 esac
22863 case "$ac_given_INSTALL" in
22864 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22865 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22866 esac
22867
22868 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
22869 # The eval makes quoting arguments work.
22870 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
22871 then :
22872 else
22873 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
22874 fi
22875 fi
22876
22877 cd $ac_popdir
22878 done
22879fi
22880
22881
22882echo
22883echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
22884echo ""
22885echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
22886
22887echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
22888echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
22889echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
22890
22891echo " Which libraries should wxWindows use?"
22892echo " jpeg ${wxUSE_LIBJPEG-none}"
22893echo " png ${wxUSE_LIBPNG-none}"
22894echo " regex ${wxUSE_REGEX}"
22895echo " tiff ${wxUSE_LIBTIFF-none}"
22896echo " zlib ${wxUSE_ZLIB}"
22897
22898echo ""
22899